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 |
---|---|---|---|---|---|---|
/ renamed from: e | public void mo8821e() {
if (!((Activity) C3720a.this._context).getClass().getSimpleName().equalsIgnoreCase(LiveViewMoviePantilterCheckRangeActivity.class.getSimpleName())) {
C2331d.m10114a((Activity) C3720a.this, C2328a.ON_PANTILTER_ERROR, (Bundle) null);
} else {
C3720a.this.finish();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void e() {\n\n\t}",
"public void e() {\n }",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"public String toString()\r\n {\r\n return e.toString();\r\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public Object element() { return e; }",
"@Override\n public void e(int i0, int i1) {\n\n }",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"private static Throwable handle(final Throwable e) {\r\n\t\te.printStackTrace();\r\n\r\n\t\tif (e.getCause() != null) {\r\n\t\t\te.getCause().printStackTrace();\r\n\t\t}\r\n\t\tif (e instanceof SAXException) {\r\n\t\t\t((SAXException) e).getException().printStackTrace();\r\n\t\t}\r\n\t\treturn e;\r\n\t}",
"void event(Event e) throws Exception;",
"Event getE();",
"public int getE() {\n return e_;\n }",
"@Override\n\tpublic void onException(Exception e) {\n\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(2));\r\n\t\t\t}",
"public byte e()\r\n/* 84: */ {\r\n/* 85:86 */ return this.e;\r\n/* 86: */ }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(1));\r\n\t\t\t}",
"public void toss(Exception e);",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public int getE() {\n return e_;\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private String getStacktraceFromException(Exception e) {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tPrintStream ps = new PrintStream(baos);\n\t\te.printStackTrace(ps);\n\t\tps.close();\n\t\treturn baos.toString();\n\t}",
"protected void processEdge(Edge e) {\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"E \" + super.toString();\n\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, et.get(0));\r\n\t\t\t}",
"public Element getElement() {\n/* 78 */ return this.e;\n/* */ }",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"void mo57276a(Exception exc);",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }",
"@Override\r\n\t\t\tpublic void onError(Throwable e) {\n\r\n\t\t\t}",
"private void sendOldError(Exception e) {\n }",
"private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n protected void processMouseEvent(MouseEvent e) {\n super.processMouseEvent(e);\n }",
"private void printInfo(SAXParseException e) {\n\t}",
"@Override\n\t\tpublic void onError(Throwable e) {\n\t\t\tSystem.out.println(\"onError\");\n\t\t}",
"String exceptionToStackTrace( Exception e ) {\n StringWriter stringWriter = new StringWriter();\n PrintWriter printWriter = new PrintWriter(stringWriter);\n e.printStackTrace( printWriter );\n return stringWriter.toString();\n }",
"public <E> E getE(E e){\n return e;\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@PortedFrom(file = \"tSignatureUpdater.h\", name = \"vE\")\n private void vE(NamedEntity e) {\n sig.add(e);\n }",
"@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}",
"void showResultMoError(String e);",
"public int E() {\n \treturn E;\n }",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"static public String getStackTrace(Exception e) {\n java.io.StringWriter s = new java.io.StringWriter(); \n e.printStackTrace(new java.io.PrintWriter(s));\n String trace = s.toString();\n \n if(trace==null || trace.length()==0 || trace.equals(\"null\"))\n return e.toString();\n else\n return trace;\n }",
"@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }",
"public static void error(boolean e) {\n E = e;\n }",
"public void out_ep(Edge e) {\r\n\r\n\t\tif (triangulate == 0 & plot == 1) {\r\n\t\t\tclip_line(e);\r\n\t\t}\r\n\r\n\t\tif (triangulate == 0 & plot == 0) {\r\n\t\t\tSystem.err.printf(\"e %d\", e.edgenbr);\r\n\t\t\tSystem.err.printf(\" %d \", e.ep[le] != null ? e.ep[le].sitenbr : -1);\r\n\t\t\tSystem.err.printf(\"%d\\n\", e.ep[re] != null ? e.ep[re].sitenbr : -1);\r\n\t\t}\r\n\r\n\t}",
"public void m58944a(E e) {\n this.f48622a = e;\n }",
"void mo43357a(C16726e eVar) throws RemoteException;",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"@Override\n\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t}",
"static String getElementText(Element e) {\n if (e.getChildNodes().getLength() == 1) {\n Text elementText = (Text) e.getFirstChild();\n return elementText.getNodeValue();\n }\n else\n return \"\";\n }",
"public RuntimeException processException(RuntimeException e)\n\n {\n\treturn new RuntimeException(e);\n }",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\n\t\t\t}",
"@java.lang.Override\n public java.lang.String getE() {\n java.lang.Object ref = e_;\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 e_ = s;\n return s;\n }\n }",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(2));\r\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}",
"com.walgreens.rxit.ch.cda.EIVLEvent getEvent();",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tevent(e, vt.get(4));\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"public e o() {\r\n return k();\r\n }",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}"
]
| [
"0.72328156",
"0.66032064",
"0.6412127",
"0.6362734",
"0.633999",
"0.62543726",
"0.6232265",
"0.6159535",
"0.61226326",
"0.61226326",
"0.60798717",
"0.6049423",
"0.60396963",
"0.60011584",
"0.5998842",
"0.59709895",
"0.59551716",
"0.5937381",
"0.58854383",
"0.5870234",
"0.5863486",
"0.58606255",
"0.58570576",
"0.5832809",
"0.57954526",
"0.5784194",
"0.57723534",
"0.576802",
"0.57466",
"0.57258075",
"0.5722709",
"0.5722404",
"0.57134414",
"0.56987166",
"0.5683048",
"0.5671214",
"0.5650087",
"0.56173986",
"0.56142104",
"0.56100404",
"0.5604611",
"0.55978096",
"0.5597681",
"0.55941516",
"0.55941516",
"0.55941516",
"0.5578516",
"0.55689955",
"0.5568649",
"0.5564652",
"0.5561944",
"0.5561737",
"0.5560318",
"0.555748",
"0.5550611",
"0.5550611",
"0.5550611",
"0.5550611",
"0.5547971",
"0.55252135",
"0.5523029",
"0.55208814",
"0.5516037",
"0.5512",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118424",
"0.55118227",
"0.5509796",
"0.5509671",
"0.5503605",
"0.55015326",
"0.5499632",
"0.54921895",
"0.54892236",
"0.5483562",
"0.5483562",
"0.5482999",
"0.54812574",
"0.5479943",
"0.54787004",
"0.54778624",
"0.5472073",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.54695076",
"0.5468417",
"0.54673034",
"0.54645115"
]
| 0.0 | -1 |
/ renamed from: f | public void mo8822f() {
if (C2274o.m9903i(C3720a.this.f12125b.mo8842J())) {
if (!C2331d.m10125b((Activity) C3720a.this, C2328a.ON_PANTILTER_SET_HOME_POSITION)) {
C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {
public void run() {
C2331d.m10114a((Activity) C3720a.this, C2328a.ON_PANTILTER_SET_HOME_POSITION, (Bundle) null);
}
});
}
} else if (C2274o.m9902h(C3720a.this.f12125b.mo8842J())) {
C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {
public void run() {
C3720a.this.f12125b.mo8868e(C3720a.this._context.getText(R.string.cmn_msg_just_a_moment).toString());
}
});
} else {
if (C2274o.m9917w(C3720a.this.f12125b.mo8842J()) && !C3720a.this._isStartPreset) {
C3720a.this._isStartPreset = true;
}
if (C2331d.m10125b((Activity) C3720a.this, C2328a.ON_PANTILTER_SET_HOME_POSITION)) {
C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {
public void run() {
C2331d.m10100a((Activity) C3720a.this);
}
});
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void func_70305_f() {}",
"public static Forca get_f(){\n\t\treturn f;\n\t}",
"void mo84656a(float f);",
"public final void mo8765a(float f) {\n }",
"@Override\n public int f() {\n return 0;\n }",
"public void f() {\n }",
"void mo9704b(float f, float f2, int i);",
"void mo56155a(float f);",
"public void f() {\n }",
"void mo9696a(float f, float f2, int i);",
"@Override\n\tpublic void f2() {\n\t\t\n\t}",
"public void f() {\n Message q_ = q_();\n e.c().a(new f(255, a(q_.toByteArray())), getClass().getSimpleName(), i().a(), q_);\n }",
"void mo72112a(float f);",
"void mo9694a(float f, float f2);",
"void f1() {\r\n\t}",
"public amj p()\r\n/* 543: */ {\r\n/* 544:583 */ return this.f;\r\n/* 545: */ }",
"double cFromF(double f) {\n return (f-32) * 5 / 9;\n }",
"void mo34547J(float f, float f2);",
"@Override\n\tpublic void f1() {\n\n\t}",
"public void f() {\n this.f25459e.J();\n }",
"public abstract void mo70718c(String str, float f);",
"public byte f()\r\n/* 89: */ {\r\n/* 90:90 */ return this.f;\r\n/* 91: */ }",
"C3579d mo19694a(C3581f fVar) throws IOException;",
"public abstract void mo70714b(String str, float f);",
"void mo9705c(float f, float f2);",
"FunctionCall getFc();",
"@Override\n\tpublic void af(String t) {\n\n\t}",
"void mo9695a(float f, float f2, float f3, float f4, float f5);",
"public abstract void mo70705a(String str, float f);",
"void mo21075f();",
"static double transform(int f) {\n return (5.0 / 9.0 * (f - 32));\n\n }",
"private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }",
"void mo9703b(float f, float f2);",
"public abstract int mo123247f();",
"void mo6072a(float f) {\n this.f2347q = this.f2342e.mo6054a(f);\n }",
"public float mo12718a(float f) {\n return f;\n }",
"public abstract void mo70706a(String str, float f, float f2);",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"public int getF() {\n\t\treturn f;\n\t}",
"public void f()\r\n {\r\n float var1 = 0.5F;\r\n float var2 = 0.125F;\r\n float var3 = 0.5F;\r\n this.a(0.5F - var1, 0.5F - var2, 0.5F - var3, 0.5F + var1, 0.5F + var2, 0.5F + var3);\r\n }",
"void mo9698a(String str, float f);",
"private static float m82748a(float f) {\n if (f == 0.0f) {\n return 1.0f;\n }\n return 0.0f;\n }",
"static void feladat4() {\n\t}",
"public int getf(){\r\n return f;\r\n}",
"private static double FToC(double f) {\n\t\treturn (f-32)*5/9;\n\t}",
"public void a(Float f) {\n ((b.b) this.b).a(f);\n }",
"public Flt(float f) {this.f = new Float(f);}",
"static double f(double x){\n \treturn Math.sin(x);\r\n }",
"private float m23258a(float f, float f2, float f3) {\n return f + ((f2 - f) * f3);\n }",
"public double getF();",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"final void mo6072a(float f) {\n this.f2349i = this.f2348h.mo6057b(f);\n }",
"private float m87322b(float f) {\n return (float) Math.sin((double) ((float) (((double) (f - 0.5f)) * 0.4712389167638204d)));\n }",
"public void colores(int f) {\n this.f = f;\n }",
"static float m51586b(float f, float f2, float f3) {\n return ((f2 - f) * f3) + f;\n }",
"void mo3193f();",
"public void mo3777a(float f) {\n this.f1443S = f;\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"static void feladat9() {\n\t}",
"private double f2c(double f)\n {\n return (f-32)*5/9;\n }",
"public void e(Float f) {\n ((b.b) this.b).e(f);\n }",
"int mo9691a(String str, String str2, float f);",
"void mo196b(float f) throws RemoteException;",
"public void d(Float f) {\n ((b.b) this.b).d(f);\n }",
"static void feladat7() {\n\t}",
"public void b(Float f) {\n ((b.b) this.b).b(f);\n }",
"long mo54439f(int i);",
"public void c(Float f) {\n ((b.b) this.b).c(f);\n }",
"@java.lang.Override\n public java.lang.String getF() {\n java.lang.Object ref = f_;\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 f_ = s;\n return s;\n }\n }",
"public static void detectComponents(String f) {\n\t\t\n\t}",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"public void f() {\n if (this instanceof b) {\n b bVar = (b) this;\n Message q_ = bVar.q_();\n e.c().a(new f(bVar.b(), q_.toByteArray()), getClass().getSimpleName(), i().a(), q_);\n return;\n }\n f a2 = a();\n if (a2 != null) {\n e.c().a(a2, getClass().getSimpleName(), i().a(), (Message) null);\n }\n }",
"void mo54440f();",
"public int F()\r\n/* 24: */ {\r\n/* 25: 39 */ return aqt.a(0.5D, 1.0D);\r\n/* 26: */ }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public abstract int mo9741f();",
"void testMethod() {\n f();\n }",
"public static int m22547b(float f) {\n return 4;\n }",
"public float mo12728b(float f) {\n return f;\n }",
"public void mo1963f() throws cf {\r\n }",
"public abstract File mo41087j();",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"public abstract int f(int i2);",
"static void feladat6() {\n\t}",
"public void furyo ()\t{\n }",
"long mo30295f();",
"public void a(zf zfVar, Canvas canvas, float f, float f2) {\n }",
"public T fjern();",
"public static void feec() {\n\t}",
"@Override\n\tdouble f(double x) {\n\t\treturn x;\n\t}",
"static void feladat3() {\n\t}",
"static void feladat8() {\n\t}",
"public void mo3797c(float f) {\n this.f1455ad[0] = f;\n }",
"public abstract double fct(double x);",
"public interface b {\n boolean f(@NonNull File file);\n }",
"public void setF(){\n\t\tf=calculateF();\n\t}",
"public FI_() {\n }",
"static void feladat5() {\n\t}",
"private final void m57544f(int i) {\n this.f47568d.m63092a(new C15335a(i, true));\n }",
"public abstract long f();"
]
| [
"0.7323683",
"0.65213245",
"0.649907",
"0.64541733",
"0.6415534",
"0.63602704",
"0.6325114",
"0.63194084",
"0.630473",
"0.62578535",
"0.62211406",
"0.6209556",
"0.6173324",
"0.61725706",
"0.61682224",
"0.6135272",
"0.6130462",
"0.6092916",
"0.6089471",
"0.6073019",
"0.6069227",
"0.6045645",
"0.60285485",
"0.6017334",
"0.60073197",
"0.59810024",
"0.59757596",
"0.5967885",
"0.5942414",
"0.59418225",
"0.5939683",
"0.59241796",
"0.58987755",
"0.5894165",
"0.58801377",
"0.5879881",
"0.5830818",
"0.57981277",
"0.5790314",
"0.578613",
"0.5775656",
"0.5772591",
"0.57630384",
"0.5752546",
"0.5752283",
"0.5735288",
"0.5733957",
"0.57191586",
"0.57179475",
"0.57131994",
"0.57131445",
"0.5706053",
"0.5689441",
"0.56773764",
"0.5667179",
"0.56332076",
"0.5623908",
"0.56229013",
"0.5620846",
"0.5620233",
"0.5616687",
"0.5610022",
"0.5601161",
"0.55959773",
"0.5594083",
"0.55762523",
"0.5570697",
"0.5569185",
"0.5552703",
"0.55498457",
"0.5549487",
"0.5540512",
"0.55403346",
"0.5538902",
"0.5538738",
"0.55373883",
"0.55234814",
"0.55215186",
"0.551298",
"0.5508332",
"0.5507449",
"0.55046654",
"0.550407",
"0.55029416",
"0.5494386",
"0.5493873",
"0.54900146",
"0.5487203",
"0.54866016",
"0.54843825",
"0.5478175",
"0.547722",
"0.54764897",
"0.5472811",
"0.54662675",
"0.5460087",
"0.5458977",
"0.54567033",
"0.54565614",
"0.5454854",
"0.5442333"
]
| 0.0 | -1 |
/ renamed from: g | public void mo8823g() {
if (C3720a.this.f12125b != null) {
C3720a.this.mo8808a(C3720a.this.f12125b.mo8839G());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void g() {\n }",
"public void gored() {\n\t\t\n\t}",
"public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void stg() {\n\n\t}",
"public xm n()\r\n/* 274: */ {\r\n/* 275:287 */ if ((this.g == null) && (this.h != null) && (this.h.length() > 0)) {\r\n/* 276:288 */ this.g = this.o.a(this.h);\r\n/* 277: */ }\r\n/* 278:290 */ return this.g;\r\n/* 279: */ }",
"int getG();",
"private final zzgy zzgb() {\n }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"private static void g() {\n h h10 = q;\n synchronized (h10) {\n h10.f();\n Object object = h10.e();\n object = object.iterator();\n boolean bl2;\n while (bl2 = object.hasNext()) {\n Object object2 = object.next();\n object2 = (g)object2;\n Object object3 = ((g)object2).getName();\n object3 = i.h.d.j((String)object3);\n ((g)object2).h((i.h.c)object3);\n }\n return;\n }\n }",
"public int g()\r\n {\r\n return 1;\r\n }",
"void mo28307a(zzgd zzgd);",
"void mo21076g();",
"void mo56163g();",
"void mo98971a(C29296g gVar, int i);",
"public int getG();",
"void mo98970a(C29296g gVar);",
"public abstract long g();",
"public com.amap.api.col.n3.al g(java.lang.String r6) {\n /*\n r5 = this;\n r0 = 0\n if (r6 == 0) goto L_0x003a\n int r1 = r6.length()\n if (r1 > 0) goto L_0x000a\n goto L_0x003a\n L_0x000a:\n java.util.List<com.amap.api.col.n3.al> r1 = r5.c\n monitor-enter(r1)\n java.util.List<com.amap.api.col.n3.al> r2 = r5.c // Catch:{ all -> 0x0037 }\n java.util.Iterator r2 = r2.iterator() // Catch:{ all -> 0x0037 }\n L_0x0013:\n boolean r3 = r2.hasNext() // Catch:{ all -> 0x0037 }\n if (r3 == 0) goto L_0x0035\n java.lang.Object r3 = r2.next() // Catch:{ all -> 0x0037 }\n com.amap.api.col.n3.al r3 = (com.amap.api.col.n3.al) r3 // Catch:{ all -> 0x0037 }\n java.lang.String r4 = r3.getCity() // Catch:{ all -> 0x0037 }\n boolean r4 = r6.equals(r4) // Catch:{ all -> 0x0037 }\n if (r4 != 0) goto L_0x0033\n java.lang.String r4 = r3.getPinyin() // Catch:{ all -> 0x0037 }\n boolean r4 = r6.equals(r4) // Catch:{ all -> 0x0037 }\n if (r4 == 0) goto L_0x0013\n L_0x0033:\n monitor-exit(r1) // Catch:{ all -> 0x0037 }\n return r3\n L_0x0035:\n monitor-exit(r1)\n return r0\n L_0x0037:\n r6 = move-exception\n monitor-exit(r1)\n throw r6\n L_0x003a:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.am.g(java.lang.String):com.amap.api.col.n3.al\");\n }",
"public int getG() {\r\n\t\treturn g;\r\n\t}",
"private Gng() {\n }",
"void mo57277b();",
"int mo98967b(C29296g gVar);",
"public void mo21782G() {\n }",
"public final void mo74763d(C29296g gVar) {\n }",
"private final java.lang.String m14284g() {\n /*\n r3 = this;\n b.h.b.a.b.b.ah r0 = r3.f8347b\n b.h.b.a.b.b.m r0 = r0.mo7065b()\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5339d\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x0056\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e\n if (r1 == 0) goto L_0x0056\n b.h.b.a.b.j.a.a.e r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e) r0\n b.h.b.a.b.e.a$c r0 = r0.mo9643H()\n b.h.b.a.b.g.i$c r0 = (p073b.p085h.p087b.p088a.p090b.p117g.C2383i.C2387c) r0\n b.h.b.a.b.g.i$f<b.h.b.a.b.e.a$c, java.lang.Integer> r1 = p073b.p085h.p087b.p088a.p090b.p112e.p114b.C2330b.f7137i\n java.lang.String r2 = \"JvmProtoBuf.classModuleName\"\n p073b.p079e.p081b.C1489j.m6969a(r1, r2)\n java.lang.Object r0 = p073b.p085h.p087b.p088a.p090b.p112e.p113a.C2288f.m11197a(r0, r1)\n java.lang.Integer r0 = (java.lang.Integer) r0\n if (r0 == 0) goto L_0x003e\n b.h.b.a.b.e.a.c r1 = r3.f8350e\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n java.lang.String r0 = r1.mo8811a(r0)\n if (r0 == 0) goto L_0x003e\n goto L_0x0040\n L_0x003e:\n java.lang.String r0 = \"main\"\n L_0x0040:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n java.lang.String r0 = p073b.p085h.p087b.p088a.p090b.p116f.C2361g.m11709a(r0)\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0056:\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5336a\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x00a0\n boolean r0 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p094b.C1680ab\n if (r0 == 0) goto L_0x00a0\n b.h.b.a.b.b.ah r0 = r3.f8347b\n if (r0 == 0) goto L_0x0098\n b.h.b.a.b.j.a.a.j r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2638j) r0\n b.h.b.a.b.j.a.a.f r0 = r0.mo9635N()\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i\n if (r1 == 0) goto L_0x00a0\n b.h.b.a.b.d.b.i r0 = (p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i) r0\n b.h.b.a.b.i.d.b r1 = r0.mo8045e()\n if (r1 == 0) goto L_0x00a0\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n b.h.b.a.b.f.f r0 = r0.mo8042b()\n java.lang.String r0 = r0.mo9039a()\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0098:\n b.u r0 = new b.u\n java.lang.String r1 = \"null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor\"\n r0.<init>(r1)\n throw r0\n L_0x00a0:\n java.lang.String r0 = \"\"\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p073b.p085h.p087b.p088a.C3008g.C3011c.m14284g():java.lang.String\");\n }",
"void mo16687a(T t, C4621gg ggVar) throws IOException;",
"public final void mo74759a(C29296g gVar) {\n }",
"int mo98966a(C29296g gVar);",
"void mo57278c();",
"public double getG();",
"public boolean h()\r\n/* 189: */ {\r\n/* 190:187 */ return this.g;\r\n/* 191: */ }",
"private void kk12() {\n\n\t}",
"gp(go goVar, String str) {\n super(str);\n this.f82115a = goVar;\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}",
"@Override\n\tpublic void draw(Graphics g) {\n\t\t\n\t}",
"C2841w mo7234g();",
"public abstract long g(int i2);",
"public final h.c.b<java.lang.Object> g() {\n /*\n r2 = this;\n h.c.b<java.lang.Object> r0 = r2.f15786a\n if (r0 == 0) goto L_0x0005\n goto L_0x001d\n L_0x0005:\n h.c.e r0 = r2.b()\n h.c.c$b r1 = h.c.c.f14536c\n h.c.e$b r0 = r0.get(r1)\n h.c.c r0 = (h.c.c) r0\n if (r0 == 0) goto L_0x001a\n h.c.b r0 = r0.c(r2)\n if (r0 == 0) goto L_0x001a\n goto L_0x001b\n L_0x001a:\n r0 = r2\n L_0x001b:\n r2.f15786a = r0\n L_0x001d:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.coroutines.jvm.internal.ContinuationImpl.g():h.c.b\");\n }",
"void mo41086b();",
"public abstract int mo123248g();",
"public void getK_Gelisir(){\n K_Gelistir();\r\n }",
"int mo54441g(int i);",
"private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"public String getGg() {\n return gg;\n }",
"public void g() {\n this.f25459e.Q();\n }",
"void mo1761g(int i);",
"public abstract void bepaalGrootte();",
"public void referToGP(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"public final i g() {\n return new i();\n }",
"public abstract void mo42331g();",
"@Override\n public void func_104112_b() {\n \n }",
"public int g2dsg(int v) { return g2dsg[v]; }",
"void NhapGT(int thang, int nam) {\n }",
"Gruppo getGruppo();",
"public void method_4270() {}",
"public abstract String mo41079d();",
"public abstract String mo118046b();",
"public void setGg(String gg) {\n this.gg = gg;\n }",
"public abstract CharSequence mo2161g();",
"void mo119582b();",
"private void strin() {\n\n\t}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public String BFS(int g) {\n\t\t//TODO\n\t}",
"void mo21073d();",
"private stendhal() {\n\t}",
"public void golpearJugador(Jugador j) {\n\t\t\n\t}",
"public void ganar() {\n // TODO implement here\n }",
"public static Object gvRender(Object... arg) {\r\nUNSUPPORTED(\"e2g1sf67k7u629a0lf4qtd4w8\"); // int gvRender(GVC_t *gvc, graph_t *g, const char *format, FILE *out)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"4lkoedjryn54aff3fyrsewwu5\"); // agerr (AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pjgp86rkudo6mihbako5yps2\"); // format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"f3a98gxettwtewduvje9y3524\"); // return -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"8d9xfgejx5vgd6shva5wk5k06\"); // \treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"2ai20uylya195fbdqwjy9bz0n\"); // job->output_file = out;\r\nUNSUPPORTED(\"10kpqi6pvibjsxjyg0g76lix3\"); // if (out == NULL)\r\nUNSUPPORTED(\"d47ukby9krmz2k8ycmzzynnfr\"); // \tjob->flags |= (1<<27);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"void mo41083a();",
"@VisibleForTesting\n public final long g(long j) {\n long j2 = j - this.f10062b;\n this.f10062b = j;\n return j2;\n }",
"void mo72113b();",
"@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}",
"@Override\n\tpublic void render(Graphics g) {\n\t\t\n\t}",
"public void b(gy ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public void a(gy ☃) {}",
"Gtr createGtr();",
"TGG createTGG();",
"public abstract String mo9239aw();",
"public void setG(boolean g) {\n\tthis.g = g;\n }",
"private static C8504ba m25889b(C2272g gVar) throws Exception {\n return m25888a(gVar);\n }",
"void mo21074e();",
"private String pcString(String g, String d) {\n return g+\"^part_of(\"+d+\")\";\n }",
"public abstract String mo13682d();",
"public void mo38117a() {\n }",
"public abstract void mo70713b();",
"public Gitlet(int a) {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void draw(Graphics2D g) {\n\t\t\n\t}",
"public abstract T zzg(T t, T t2);",
"public int mo9232aG() {\n return 0;\n }",
"public void mo3286a(C0813g gVar) {\n this.f2574g = gVar;\n }",
"public void mo21787L() {\n }",
"@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }",
"public String DFS(int g) {\n\t\t//TODO\n\t}",
"public static Object gvRenderContext(Object... arg) {\r\nUNSUPPORTED(\"6bxfu9f9cshxn0i97berfl9bw\"); // int gvRenderContext(GVC_t *gvc, graph_t *g, const char *format, void *context)\r\nUNSUPPORTED(\"erg9i1970wdri39osu8hx2a6e\"); // {\r\nUNSUPPORTED(\"1bh3yj957he6yv2dkeg4pzwdk\"); // int rc;\r\nUNSUPPORTED(\"1ag9dz4apxn0w3cz8w2bfm6se\"); // GVJ_t *job;\r\nUNSUPPORTED(\"8msotrfl0cngiua3j57ylm26b\"); // g = g->root;\r\nUNSUPPORTED(\"exts51afuertju5ed5v7pdpg7\"); // /* create a job for the required format */\r\nUNSUPPORTED(\"dn6z1r1bbrtmr58m8dnfgfnm0\"); // rc = gvjobs_output_langname(gvc, format);\r\nUNSUPPORTED(\"5apijrijm2r8b1g2l4x7iee7s\"); // job = gvc->job;\r\nUNSUPPORTED(\"5wvj0ph8uqfgg8jl3g39jsf51\"); // if (rc == 999) {\r\nUNSUPPORTED(\"8r1a6szpsnku0jhatqkh0qo75\"); // \t\tagerr(AGERR, \"Format: \\\"%s\\\" not recognized. Use one of:%s\\n\",\r\nUNSUPPORTED(\"2pj79j8toe6bactkaedt54xcv\"); // \t\t\t format, gvplugin_list(gvc, API_device, format));\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ect62lxc3zm51lhzifift55m\"); // job->output_lang = gvrender_select(job, job->output_langname);\r\nUNSUPPORTED(\"ewlceg1k4gs2e6syq4ear5kzo\"); // if (!(agbindrec(g, \"Agraphinfo_t\", 0, NOT(0)) && GD_drawing(g)) && !(job->flags & (1<<26))) {\r\nUNSUPPORTED(\"3yo4xyapbp7osp8uyz4kff98s\"); // \tagerrorf( \"Layout was not done\\n\");\r\nUNSUPPORTED(\"b0epxudfxjm8kichhaautm2qi\"); // \t\treturn -1;\r\nUNSUPPORTED(\"dvgyxsnyeqqnyzq696k3vskib\"); // }\r\nUNSUPPORTED(\"ex1rhur9nlj950oe8r621uxxk\"); // job->context = context;\r\nUNSUPPORTED(\"3hvm1mza6yapsb3hi7bkw03cs\"); // job->external_context = NOT(0);\r\nUNSUPPORTED(\"9szsye4q9jykqvtk0bc1r91d0\"); // rc = gvRenderJobs(gvc, g);\r\nUNSUPPORTED(\"7l8ugws8ptgtlxc1ymmh3cf18\"); // gvrender_end_job(job);\r\nUNSUPPORTED(\"dql0bth0nzsrpiu9vnffonrhf\"); // gvdevice_finalize(job);\r\nUNSUPPORTED(\"a9p7yonln7g91ge7xab3xf9dr\"); // gvjobs_delete(gvc);\r\nUNSUPPORTED(\"5bc9k4vsl6g7wejc5xefc5964\"); // return rc;\r\nUNSUPPORTED(\"c24nfmv9i7o5eoqaymbibp7m7\"); // }\r\n\r\nthrow new UnsupportedOperationException();\r\n}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"void mo54435d();"
]
| [
"0.678414",
"0.67709124",
"0.6522526",
"0.64709187",
"0.6450875",
"0.62853396",
"0.6246107",
"0.6244691",
"0.6212993",
"0.61974055",
"0.61380696",
"0.6138033",
"0.6105423",
"0.6057178",
"0.60355175",
"0.60195917",
"0.59741",
"0.596904",
"0.59063077",
"0.58127505",
"0.58101356",
"0.57886875",
"0.5771653",
"0.57483286",
"0.57415104",
"0.5739937",
"0.5737405",
"0.5734033",
"0.5716611",
"0.5702987",
"0.5702633",
"0.568752",
"0.5673585",
"0.5656889",
"0.5654594",
"0.56383264",
"0.56383264",
"0.5633443",
"0.5619376",
"0.56107736",
"0.55950445",
"0.55687404",
"0.5560633",
"0.5544451",
"0.553233",
"0.55284953",
"0.5526995",
"0.5523609",
"0.5522537",
"0.5520261",
"0.5508765",
"0.54931",
"0.5475987",
"0.5471256",
"0.5469798",
"0.54696023",
"0.5466119",
"0.5450189",
"0.5445573",
"0.54424983",
"0.54304206",
"0.5423924",
"0.54234356",
"0.5420949",
"0.54093313",
"0.53971386",
"0.53892636",
"0.53887594",
"0.5388692",
"0.53799766",
"0.5377014",
"0.5375743",
"0.53676707",
"0.53666615",
"0.53654546",
"0.536411",
"0.536411",
"0.5361922",
"0.53584075",
"0.5357915",
"0.53526837",
"0.53503513",
"0.534265",
"0.5342214",
"0.53399533",
"0.533597",
"0.5332819",
"0.5331027",
"0.5329743",
"0.5329616",
"0.5325393",
"0.53252953",
"0.5323291",
"0.53207254",
"0.5314264",
"0.53122807",
"0.53109974",
"0.5310432",
"0.53044266",
"0.5304416",
"0.5302328"
]
| 0.0 | -1 |
/ renamed from: a | public void mo8814a(final String str) {
C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {
public void run() {
if (C3720a.this.f12125b == null) {
return;
}
if (str.equalsIgnoreCase("ia")) {
C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));
C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_ia_icon));
} else if (str.equalsIgnoreCase("manual")) {
C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));
C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_manual_icon));
} else if (str.equalsIgnoreCase("4kphoto")) {
C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));
C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_4kphoto_icon));
} else if (str.equalsIgnoreCase("slowzoom")) {
C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(true));
C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(R.drawable.recmode_slow_zoom_icon));
} else {
C3720a.this.f12125b.f12208ae.mo3216a(Boolean.valueOf(false));
C3720a.this.f12125b.f12209af.mo3216a(Integer.valueOf(0));
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
]
| [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
]
| 0.0 | -1 |
/ renamed from: a | public void mo8815a(final String str, final String str2) {
C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {
public void run() {
if (C3720a.this.f12125b != null) {
boolean z = false;
if (str != null && str.equalsIgnoreCase("mp4_4k")) {
C3720a.this.f12125b.f12308w.mo3216a("mp4_4kPhoto");
z = true;
}
if (!z) {
C3720a.this.f12125b.f12308w.mo3216a(str2);
}
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
]
| [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
]
| 0.0 | -1 |
/ renamed from: a | public void mo8816a(final String str, final boolean z, final boolean z2) {
C3720a.this._cameraUtil.mo6032a((Runnable) new Runnable() {
public void run() {
boolean z = true;
C1892f a = C1712b.m6919c().mo4896a();
if (C3720a.this.f12125b == null) {
return;
}
if (!C1879a.m7545b(a, "1.6") || !str.equalsIgnoreCase("mp4_4k") || !C3720a.this.f12125b.mo8884t()) {
C3720a.this.f12125b.f12152A.mo3216a(Boolean.valueOf(true));
if (z2) {
C1344c<Boolean> cVar = C3720a.this.f12125b.f12153B;
if (C3720a.this.f12125b.mo8885u() || !C3720a.this.f12125b.mo8849Q() || C3720a.this.f12125b.mo8850R() || C3720a.this.f12125b.mo8851S()) {
z = false;
}
cVar.mo3216a(Boolean.valueOf(z));
} else {
C3720a.this.f12125b.f12153B.mo3216a(Boolean.valueOf(false));
}
C3720a.this.f12125b.f12263bh.mo3216a(Boolean.valueOf(false));
return;
}
C3720a.this.f12125b.f12152A.mo3216a(Boolean.valueOf(false));
C3720a.this.f12125b.f12263bh.mo3216a(Boolean.valueOf(true));
if (C3720a.this.f12125b.mo8846N()) {
return;
}
if (z) {
C3720a.this.f12125b.f12262bg.mo3216a(Boolean.valueOf(true));
} else {
C3720a.this.f12125b.f12262bg.mo3216a(Boolean.valueOf(false));
}
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
]
| [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
]
| 0.0 | -1 |
/ renamed from: a | public void mo6081a() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public void acionou(int a){\n\t\t\tb=a;\n\t\t}",
"public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}",
"public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }",
"public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}",
"public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }",
"public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }",
"public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }",
"public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }",
"public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }",
"public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}",
"public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}",
"public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}",
"protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }",
"public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }",
"public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }",
"public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }",
"public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}",
"public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }",
"interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }",
"public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}",
"public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }",
"private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }",
"interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
]
| [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064",
"0.5794689",
"0.57890314",
"0.57838726",
"0.5775679",
"0.57694733",
"0.5769128",
"0.57526815",
"0.56907034",
"0.5677874",
"0.5670547",
"0.56666386",
"0.56592244",
"0.5658682",
"0.56574154",
"0.5654324",
"0.5644676",
"0.56399715",
"0.5638734",
"0.5630582",
"0.56183887",
"0.5615435",
"0.56069666",
"0.5605207",
"0.56005067",
"0.559501",
"0.55910283",
"0.5590222",
"0.55736613",
"0.5556682",
"0.5554544",
"0.5550076",
"0.55493855",
"0.55446684",
"0.5538079",
"0.5529058",
"0.5528109",
"0.552641",
"0.5525864",
"0.552186",
"0.5519972",
"0.5509587",
"0.5507195",
"0.54881203",
"0.5485328",
"0.54826045",
"0.5482066",
"0.5481586",
"0.5479751",
"0.54776895",
"0.54671466",
"0.5463307",
"0.54505056",
"0.54436916",
"0.5440517",
"0.5439747",
"0.5431944",
"0.5422869",
"0.54217863",
"0.5417556",
"0.5403905",
"0.5400223",
"0.53998446",
"0.5394735",
"0.5388649",
"0.5388258",
"0.5374842",
"0.5368887",
"0.53591394",
"0.5357029",
"0.5355688",
"0.535506",
"0.5355034",
"0.53494394",
"0.5341044",
"0.5326166",
"0.53236824",
"0.53199095",
"0.53177035",
"0.53112453",
"0.5298229"
]
| 0.0 | -1 |
/ renamed from: b | public void mo6082b() {
if (m14898d()) {
C3720a.this.StartBrowser();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"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}",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"@Override\n\tpublic void b() {\n\n\t}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public bb b() {\n return a(this.a);\n }",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract void b(StringBuilder sb);",
"public void b() {\n }",
"public void b() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }",
"public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public void b() {\n ((a) this.a).b();\n }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }",
"public t b() {\n return a(this.a);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }",
"private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract T zzm(B b);",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }",
"public abstract void zzc(B b, int i, int i2);",
"public interface b {\n}",
"public interface b {\n}",
"private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }",
"BSubstitution createBSubstitution();",
"public void b(ahd paramahd) {}",
"void b();",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"B database(S database);",
"public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}",
"public abstract C0631bt mo9227aB();",
"public an b() {\n return a(this.a);\n }",
"protected abstract void a(bru parambru);",
"static void go(Base b) {\n\t\tb.add(8);\n\t}",
"void mo46242a(bmc bmc);",
"public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }",
"public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract BoundType b();",
"public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }",
"b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }",
"private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }",
"public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }",
"interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"public abstract void zzb(B b, int i, long j);",
"public abstract void zza(B b, int i, zzeh zzeh);",
"int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}",
"private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }",
"public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }",
"public abstract void a(StringBuilder sb);",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public abstract void zzf(Object obj, B b);",
"public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public abstract void a(b paramb, int paramInt1, int paramInt2);",
"public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }",
"void mo83703a(C32456b<T> bVar);",
"public void a(String str) {\n ((b.b) this.b).d(str);\n }",
"public void selectB() { }",
"BOperation createBOperation();",
"void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }",
"public void b(String str) {\n ((b.b) this.b).e(str);\n }",
"public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }",
"public abstract void zza(B b, int i, T t);",
"public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }",
"public abstract void zza(B b, int i, long j);",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo9798a(byte b);",
"public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }",
"private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"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 lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }"
]
| [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.5886636",
"0.58828026",
"0.5855491",
"0.584618",
"0.5842517",
"0.5824137",
"0.5824071",
"0.58097327",
"0.5802052",
"0.58012927",
"0.579443",
"0.5792392",
"0.57902914",
"0.5785124",
"0.57718205",
"0.57589084",
"0.5735892",
"0.5735892",
"0.5734873",
"0.5727929",
"0.5720821",
"0.5712531",
"0.5706813",
"0.56896514",
"0.56543154",
"0.5651059",
"0.5649904",
"0.56496733",
"0.5647035",
"0.5640965",
"0.5640109",
"0.563993",
"0.5631903",
"0.5597427",
"0.55843794",
"0.5583287",
"0.557783",
"0.55734867",
"0.55733293",
"0.5572254",
"0.55683887",
"0.55624336",
"0.55540246",
"0.5553985",
"0.55480546",
"0.554261",
"0.5535739",
"0.5529958",
"0.5519634",
"0.5517503",
"0.55160624",
"0.5511545",
"0.5505353",
"0.5500533",
"0.5491741",
"0.5486198",
"0.5481978",
"0.547701",
"0.54725856",
"0.5471632",
"0.5463497",
"0.5460805",
"0.5454913",
"0.5454885",
"0.54519916",
"0.5441594",
"0.5436747",
"0.5432453",
"0.5425923",
"0.5424724",
"0.54189867",
"0.54162544",
"0.54051477",
"0.53998184",
"0.53945845",
"0.53887725",
"0.5388146",
"0.5387678",
"0.53858143",
"0.53850687",
"0.5384439"
]
| 0.0 | -1 |
/ renamed from: d | private boolean m14898d() {
if (C3720a.this.f12125b.mo8884t()) {
C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_NOW_MOVIE_RECORDING, (Bundle) null);
return false;
} else if (C3720a.this.f12125b.mo8885u() || C3720a.this.f12125b.mo8886v()) {
C2331d.m10114a((Activity) C3720a.this, C2328a.ON_ERROR_NOW_PIC_CAPTURE, (Bundle) null);
return false;
} else if (C3720a.this.f12125b.mo8887w()) {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }",
"public abstract int d();",
"private void m2248a(double d, String str) {\n this.f2954c = d;\n this.f2955d = (long) d;\n this.f2953b = str;\n this.f2952a = ValueType.doubleValue;\n }",
"public int d()\n {\n return 1;\n }",
"public interface C19512d {\n /* renamed from: dd */\n void mo34676dd(int i, int i2);\n }",
"void mo21073d();",
"@Override\n public boolean d() {\n return false;\n }",
"int getD();",
"public void dor(){\n }",
"public int getD() {\n\t\treturn d;\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}",
"public String getD() {\n return d;\n }",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"public final void mo91715d() {\n }",
"public D() {}",
"void mo17013d();",
"public int getD() {\n return d_;\n }",
"void mo83705a(C32458d<T> dVar);",
"public void d() {\n\t\tSystem.out.println(\"d method\");\n\t}",
"double d();",
"public float d()\r\n/* 15: */ {\r\n/* 16:163 */ return this.b;\r\n/* 17: */ }",
"protected DNA(Population pop, DNA d) {\n\t\t// TODO: implement this\n\t}",
"public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }",
"public abstract C17954dh<E> mo45842a();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void visitTdetree(Tdetree p) {\n\n\t}",
"public abstract void mo56925d();",
"void mo54435d();",
"public void mo21779D() {\n }",
"public void d() {\n this.f20599d.a(this.f20598c);\n this.f20598c.a(this);\n this.f20601f = new a(new d());\n d.a(this.f20596a, this.f20597b, this.f20601f);\n this.f20596a.setLayoutManager(new NPALinearLayoutManager(getContext()));\n ((s) this.f20596a.getItemAnimator()).setSupportsChangeAnimations(false);\n this.f20596a.setAdapter(this.f20601f);\n this.f20598c.a(this.f20602g);\n }",
"@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }",
"void mo28307a(zzgd zzgd);",
"List<String> d();",
"d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }",
"public int getD() {\n return d_;\n }",
"public void addDField(String d){\n\t\tdfield.add(d);\n\t}",
"public void mo3749d() {\n }",
"public a dD() {\n return new a(this.HG);\n }",
"public String amd_to_dma(java.sql.Date d)\n {\n String resp = \"\";\n if (d!=null)\n {\n String sdat = d.toString();\n String sano = sdat.substring(0,4);\n String smes = sdat.substring(5,7);\n String sdia = sdat.substring(8,10);\n resp = sdia+\"/\"+smes+\"/\"+sano;\n }\n return resp;\n }",
"public void mo130970a(double d) {\n SinkDefaults.m149818a(this, d);\n }",
"public abstract int getDx();",
"public void mo97908d() {\n }",
"public com.c.a.d.d d() {\n return this.k;\n }",
"private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }",
"public boolean d() {\n return false;\n }",
"void mo17023d();",
"String dibujar();",
"@Override\n\tpublic void setDurchmesser(int d) {\n\n\t}",
"public void mo2470d() {\n }",
"public abstract VH mo102583a(ViewGroup viewGroup, D d);",
"public abstract String mo41079d();",
"public void setD ( boolean d ) {\n\n\tthis.d = d;\n }",
"public Dx getDx() {\n/* 32 */ return this.dx;\n/* */ }",
"DoubleNode(int d) {\n\t data = d; }",
"DD createDD();",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"public void setD(String d) {\n this.d = d == null ? null : d.trim();\n }",
"public int d()\r\n {\r\n return 20;\r\n }",
"float getD();",
"public static int m22546b(double d) {\n return 8;\n }",
"void mo12650d();",
"String mo20732d();",
"static void feladat4() {\n\t}",
"void mo130799a(double d);",
"public void mo2198g(C0317d dVar) {\n }",
"@Override\n public void d(String TAG, String msg) {\n }",
"private double convert(double d){\n\t\tDecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance();\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\",symbols); \n\t\treturn Double.valueOf(df.format(d));\n\t}",
"public void d(String str) {\n ((b.b) this.b).g(str);\n }",
"public abstract void mo42329d();",
"public abstract long mo9229aD();",
"public abstract String getDnForPerson(String inum);",
"public interface ddd {\n public String dan();\n\n}",
"@Override\n public void func_104112_b() {\n \n }",
"public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}",
"public void mo5117a(C0371d c0371d, double d) {\n new C0369b(this, c0371d, d).start();\n }",
"public interface C27442s {\n /* renamed from: d */\n List<EffectPointModel> mo70331d();\n}",
"public final void m22595a(double d) {\n mo4383c(Double.doubleToRawLongBits(d));\n }",
"public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }",
"public Vector2d(double d) {\n\t\tthis.x = d;\n\t\tthis.y = d;\n\t}",
"DomainHelper dh();",
"private Pares(PLoc p, PLoc s, int d){\n\t\t\tprimero=p;\n\t\t\tsegundo=s;\n\t\t\tdistancia=d;\n\t\t}",
"static double DEG_to_RAD(double d) {\n return d * Math.PI / 180.0;\n }",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"private final VH m112826b(ViewGroup viewGroup, D d) {\n return mo102583a(viewGroup, d);\n }",
"public Double getDx();",
"public void m25658a(double d) {\n if (d <= 0.0d) {\n d = 1.0d;\n }\n this.f19276f = (float) (50.0d / d);\n this.f19277g = new C4658a(this, this.f19273c);\n }",
"boolean hasD();",
"public abstract void mo27386d();",
"MergedMDD() {\n }",
"@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@Override\n public Chunk d(int i0, int i1) {\n return null;\n }",
"public void d(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 47: */ {\r\n/* 48: 68 */ BlockPosition localdt = paramdt.offset(((EnumDirection)parambec.getData(a)).opposite());\r\n/* 49: 69 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 50: 70 */ if (((localbec.getType() instanceof bdq)) && (((Boolean)localbec.getData(bdq.b)).booleanValue())) {\r\n/* 51: 71 */ paramaqu.g(localdt);\r\n/* 52: */ }\r\n/* 53: */ }",
"double defendre();",
"public static int setDimension( int d ) {\n int temp = DPoint.d;\n DPoint.d = d;\n return temp;\n }",
"public Datum(Datum d) {\n this.dan = d.dan;\n this.mesec = d.mesec;\n this.godina = d.godina;\n }",
"public Nodo (String d, Nodo n){\n\t\tdato = d;\n\t\tsiguiente=n;\n\t}"
]
| [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222",
"0.5541367",
"0.5534182",
"0.55326",
"0.550431",
"0.55041796",
"0.5500838",
"0.54946786",
"0.5475938",
"0.5466879",
"0.5449981",
"0.5449007",
"0.54464436",
"0.5439673",
"0.543565",
"0.5430978",
"0.5428843",
"0.5423923",
"0.542273",
"0.541701",
"0.5416963",
"0.54093426",
"0.53927654",
"0.53906536",
"0.53793144",
"0.53732955",
"0.53695524",
"0.5366731",
"0.53530186",
"0.535299",
"0.53408253",
"0.5333639",
"0.5326304",
"0.53250664",
"0.53214055",
"0.53208005",
"0.5316437",
"0.53121597",
"0.52979535",
"0.52763224",
"0.5270543",
"0.526045",
"0.5247397",
"0.5244388",
"0.5243049",
"0.5241726",
"0.5241194",
"0.523402",
"0.5232349",
"0.5231111",
"0.5230985",
"0.5219358",
"0.52145815",
"0.5214168",
"0.5209237",
"0.52059376",
"0.51952434",
"0.5193699",
"0.51873696",
"0.5179743",
"0.5178796",
"0.51700175",
"0.5164517",
"0.51595956",
"0.5158281",
"0.51572365",
"0.5156627",
"0.5155795",
"0.51548296",
"0.51545656",
"0.5154071",
"0.51532024",
"0.5151545",
"0.5143571",
"0.5142079",
"0.5140048",
"0.51377696",
"0.5133826",
"0.5128858",
"0.5125679",
"0.5121545"
]
| 0.0 | -1 |
/ renamed from: c | public void mo6083c() {
Intent intent = new Intent(C3720a.this._context, GuidanceMenuActivity.class);
C3720a.this.finish();
C3720a.this.startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
"public void c() {\n }",
"void mo17012c();",
"C2451d mo3408a(C2457e c2457e);",
"void mo88524c();",
"void mo86a(C0163d c0163d);",
"void mo17021c();",
"public abstract void mo53562a(C18796a c18796a);",
"void mo4874b(C4718l c4718l);",
"void mo4873a(C4718l c4718l);",
"C12017a mo41088c();",
"public abstract void mo70702a(C30989b c30989b);",
"void mo72114c();",
"public void mo12628c() {\n }",
"C2841w mo7234g();",
"public interface C0335c {\n }",
"public void mo1403c() {\n }",
"public static void c3() {\n\t}",
"public static void c1() {\n\t}",
"void mo8712a(C9714a c9714a);",
"void mo67924c();",
"public void mo97906c() {\n }",
"public abstract void mo27385c();",
"String mo20731c();",
"public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }",
"public interface C0939c {\n }",
"void mo1582a(String str, C1329do c1329do);",
"void mo304a(C0366h c0366h);",
"void mo1493c();",
"private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}",
"java.lang.String getC3();",
"C45321i mo90380a();",
"public interface C11910c {\n}",
"void mo57277b();",
"String mo38972c();",
"static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}",
"public static void CC2_1() {\n\t}",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }",
"public void mo56167c() {\n }",
"public interface C0136c {\n }",
"private void kk12() {\n\n\t}",
"abstract String mo1748c();",
"public abstract void mo70710a(String str, C24343db c24343db);",
"public interface C0303q extends C0291e {\n /* renamed from: a */\n void mo1747a(int i);\n\n /* renamed from: a */\n void mo1749a(C0288c cVar);\n\n /* renamed from: a */\n void mo1751a(byte[] bArr);\n\n /* renamed from: b */\n void mo1753b(int i);\n\n /* renamed from: c */\n void mo1754c(int i);\n\n /* renamed from: d */\n void mo1755d(int i);\n\n /* renamed from: e */\n int mo1756e(int i);\n\n /* renamed from: g */\n int mo1760g();\n\n /* renamed from: g */\n void mo1761g(int i);\n\n /* renamed from: h */\n void mo1763h(int i);\n}",
"C3577c mo19678C();",
"public abstract int c();",
"public abstract int c();",
"public final void mo11687c() {\n }",
"byte mo30283c();",
"private java.lang.String c(java.lang.String r7) {\n /*\n r6 = this;\n r2 = \"\";\n r0 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n if (r0 == 0) goto L_0x0050;\n L_0x0006:\n r0 = new java.lang.StringBuilder;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = java.lang.String.valueOf(r7);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0.<init>(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = \".\";\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r6.e;\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.append(r1);\t Catch:{ FileNotFoundException -> 0x0052 }\n r0 = r0.toString();\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x001f:\n r1 = r6.d;\t Catch:{ FileNotFoundException -> 0x0052 }\n r1 = r1.openFileInput(r0);\t Catch:{ FileNotFoundException -> 0x0052 }\n L_0x0025:\n r3 = new java.io.BufferedReader;\n r4 = new java.io.InputStreamReader;\n r0 = r1;\n r0 = (java.io.InputStream) r0;\n r5 = \"UTF-8\";\n r5 = java.nio.charset.Charset.forName(r5);\n r4.<init>(r0, r5);\n r3.<init>(r4);\n r0 = new java.lang.StringBuffer;\n r0.<init>();\n L_0x003d:\n r4 = r3.readLine();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n if (r4 != 0) goto L_0x0061;\n L_0x0043:\n r0 = r0.toString();\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007d }\n r1.close();\t Catch:{ IOException -> 0x007d }\n r3.close();\t Catch:{ IOException -> 0x007d }\n L_0x004f:\n return r0;\n L_0x0050:\n r0 = r7;\n goto L_0x001f;\n L_0x0052:\n r0 = move-exception;\n r0 = r6.d;\t Catch:{ IOException -> 0x005e }\n r0 = r0.getAssets();\t Catch:{ IOException -> 0x005e }\n r1 = r0.open(r7);\t Catch:{ IOException -> 0x005e }\n goto L_0x0025;\n L_0x005e:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0061:\n r0.append(r4);\t Catch:{ IOException -> 0x0065, all -> 0x0073 }\n goto L_0x003d;\n L_0x0065:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x0070 }\n r1.close();\t Catch:{ IOException -> 0x0070 }\n r3.close();\t Catch:{ IOException -> 0x0070 }\n r0 = r2;\n goto L_0x004f;\n L_0x0070:\n r0 = move-exception;\n r0 = r2;\n goto L_0x004f;\n L_0x0073:\n r0 = move-exception;\n r1 = (java.io.InputStream) r1;\t Catch:{ IOException -> 0x007f }\n r1.close();\t Catch:{ IOException -> 0x007f }\n r3.close();\t Catch:{ IOException -> 0x007f }\n L_0x007c:\n throw r0;\n L_0x007d:\n r1 = move-exception;\n goto L_0x004f;\n L_0x007f:\n r1 = move-exception;\n goto L_0x007c;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.a.b.b.c(java.lang.String):java.lang.String\");\n }",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}",
"public static void mmcc() {\n\t}",
"java.lang.String getCit();",
"public abstract C mo29734a();",
"C15430g mo56154a();",
"void mo41086b();",
"@Override\n public void func_104112_b() {\n \n }",
"public interface C9223b {\n }",
"public abstract String mo11611b();",
"void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);",
"String getCmt();",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"interface C2578d {\n}",
"public interface C1803l extends C1813t {\n /* renamed from: b */\n C1803l mo7382b(C2778au auVar);\n\n /* renamed from: f */\n List<C1700ar> mo7233f();\n\n /* renamed from: g */\n C2841w mo7234g();\n\n /* renamed from: q */\n C1800i mo7384q();\n}",
"double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }",
"void mo72113b();",
"void mo1749a(C0288c cVar);",
"public interface C0764b {\n}",
"void mo41083a();",
"String[] mo1153c();",
"C1458cs mo7613iS();",
"public interface C0333a {\n }",
"public abstract int mo41077c();",
"public interface C8843g {\n}",
"public abstract void mo70709a(String str, C41018cm c41018cm);",
"void mo28307a(zzgd zzgd);",
"public static void mcdc() {\n\t}",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"C1435c mo1754a(C1433a c1433a, C1434b c1434b);",
"public interface C0389gj extends C0388gi {\n}",
"C5727e mo33224a();",
"C12000e mo41087c(String str);",
"public abstract String mo118046b();",
"public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }",
"public interface C0938b {\n }",
"void mo80455b();",
"public interface C0385a {\n }",
"public interface C5527c {\n /* renamed from: a */\n int mo4095a(int i);\n\n /* renamed from: b */\n C5537g mo4096b(int i);\n}",
"public interface C32231g {\n /* renamed from: a */\n void mo8280a(int i, int i2, C1207m c1207m);\n}",
"public interface C11994b {\n /* renamed from: a */\n C11996a mo41079a(String str);\n\n /* renamed from: a */\n C11996a mo41080a(String str, C11997b bVar, String... strArr);\n\n /* renamed from: a */\n C11998c mo41081a(String str, C11999d dVar, String... strArr);\n\n /* renamed from: a */\n C12000e mo41082a(String str, C12001f fVar, String... strArr);\n\n /* renamed from: a */\n void mo41083a();\n\n /* renamed from: a */\n void mo41084a(C12018b bVar, ConnectionState... connectionStateArr);\n\n /* renamed from: b */\n C11996a mo41085b(String str);\n\n /* renamed from: b */\n void mo41086b();\n\n /* renamed from: c */\n C12000e mo41087c(String str);\n\n /* renamed from: c */\n C12017a mo41088c();\n\n /* renamed from: d */\n void mo41089d(String str);\n\n /* renamed from: e */\n C11998c mo41090e(String str);\n\n /* renamed from: f */\n C12000e mo41091f(String str);\n\n /* renamed from: g */\n C11998c mo41092g(String str);\n}"
]
| [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",
"0.60513836",
"0.6049069",
"0.6030368",
"0.60263443",
"0.60089093",
"0.59970635",
"0.59756917",
"0.5956231",
"0.5949343",
"0.5937446",
"0.5911776",
"0.59034705",
"0.5901311",
"0.5883238",
"0.5871533",
"0.5865361",
"0.5851141",
"0.581793",
"0.5815705",
"0.58012",
"0.578891",
"0.57870495",
"0.5775621",
"0.57608724",
"0.5734331",
"0.5731584",
"0.5728505",
"0.57239383",
"0.57130504",
"0.57094604",
"0.570793",
"0.5697671",
"0.56975955",
"0.56911296",
"0.5684489",
"0.5684489",
"0.56768984",
"0.56749034",
"0.5659463",
"0.56589085",
"0.56573",
"0.56537443",
"0.5651912",
"0.5648272",
"0.5641736",
"0.5639226",
"0.5638583",
"0.56299245",
"0.56297386",
"0.56186295",
"0.5615729",
"0.56117755",
"0.5596015",
"0.55905765",
"0.55816257",
"0.55813104",
"0.55723965",
"0.5572061",
"0.55696625",
"0.5566985",
"0.55633485",
"0.555888",
"0.5555646",
"0.55525774",
"0.5549722",
"0.5548184",
"0.55460495",
"0.5539394",
"0.5535825",
"0.55300397",
"0.5527975",
"0.55183905",
"0.5517322",
"0.5517183",
"0.55152744",
"0.5514932",
"0.55128884",
"0.5509501",
"0.55044043",
"0.54984957"
]
| 0.0 | -1 |
/ access modifiers changed from: protected / renamed from: a | public abstract String mo8770a(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n protected void prot() {\n }",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public abstract String a();",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"public void a() {\r\n }",
"public void a() {\n ((a) this.a).a();\n }",
"@Override\n public void b() {\n }",
"public abstract void m15813a();",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"private abstract void privateabstract();",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"public abstract void mo27464a();",
"public abstract Object mo26777y();",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"public abstract Object mo1771a();",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void b() {\n\n\t}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"public void a() {\n }",
"public void a() {\n }",
"private stendhal() {\n\t}",
"public void b() {\r\n }",
"public abstract void mo30696a();",
"public abstract void mo102899a();",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public abstract void mo3994a();",
"public final void mo51373a() {\n }",
"public abstract T a();",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public static void a() {\n\n }",
"public void mo38117a() {\n }",
"public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }",
"public abstract void mo27386d();",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo4359a();",
"public void m23075a() {\n }",
"public void b() {\n }",
"public void b() {\n }",
"public abstract int a();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"void m1864a() {\r\n }",
"public abstract void afvuren();",
"public abstract void mo27385c();",
"@Override\n public void perish() {\n \n }",
"public abstract void mo56925d();",
"protected void h() {}",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public abstract void mo35054b();",
"public String i() {\n/* 44 */ return this.a.toString();\n/* */ }",
"public abstract void mo53562a(C18796a c18796a);",
"@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public abstract void alimentarse();",
"public void mo4359a() {\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract String mo118046b();",
"protected void a(dh paramdh) {}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public abstract void mo45765b();",
"public abstract BoundType a();",
"public void mo2740a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public static a c() {\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }",
"public abstract Object mo1185b();",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo9848a() {\n }",
"private final void i() {\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo6549b();",
"public void mo6944a() {\n }",
"public void mo12930a() {\n }",
"public abstract void a(StringBuilder sb);",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public abstract void mo1184a(Object obj);",
"public static void main(String[] args) {\r\n\t\t//A obj = new A(); //A cannot be resolved to a type...try to access the class A method in thz class -- error \r\n\t // obj.i = 80; //here..The field A.i is not visible...it, allow as to create the object, but still it is not allow as to access thev & m, bcoz if we dont specify anything-- default(V & M) so it only accessible within the package.\r\n\t\r\n\t // obj.j = 90; //The field A.j is not visible -- error, cant access since it is protected.\r\n\t // obj.flow(); //The method flow() from the type A is not visible, cant access since it is protected.\r\n\t \r\n\t B obj1 = new B(); //extended class A, so we can access its V and M here.\r\n\t obj1.j = 70;\r\n\t obj1.flow();\r\n\t \r\n\t A obj3 = new A(); // here no need to extend class A , just create obj for A class and access it, bcoz it is \"public\".\r\n\t obj3.D = 100;\r\n\t obj3.sub();\r\n\t}",
"public void mo21825b() {\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public abstract boolean a();"
]
| [
"0.75464964",
"0.73093235",
"0.71735907",
"0.692263",
"0.68435764",
"0.6787232",
"0.67364866",
"0.6659923",
"0.6635336",
"0.6635336",
"0.65571475",
"0.65408033",
"0.65371394",
"0.6500136",
"0.6494878",
"0.6494545",
"0.6485399",
"0.6476603",
"0.64670885",
"0.6403744",
"0.6394189",
"0.63858354",
"0.63791156",
"0.6359318",
"0.635862",
"0.63452816",
"0.6342364",
"0.6338125",
"0.6318679",
"0.6308252",
"0.6302185",
"0.6302185",
"0.6297184",
"0.6286423",
"0.6281061",
"0.6277148",
"0.62757826",
"0.62720114",
"0.6261936",
"0.6259821",
"0.62542534",
"0.62433994",
"0.6240186",
"0.62257165",
"0.62044704",
"0.6188935",
"0.61817116",
"0.6180415",
"0.6169017",
"0.6164467",
"0.6156291",
"0.6156291",
"0.6153341",
"0.6152147",
"0.61438286",
"0.6107348",
"0.6106999",
"0.6105938",
"0.61047196",
"0.61005807",
"0.60873705",
"0.60854256",
"0.60787046",
"0.60570186",
"0.6056411",
"0.60460806",
"0.6044947",
"0.6044947",
"0.6043863",
"0.604216",
"0.60415447",
"0.6019007",
"0.6006512",
"0.6003148",
"0.59860367",
"0.59761965",
"0.5969308",
"0.5968431",
"0.59634477",
"0.5958228",
"0.595593",
"0.59471744",
"0.5946021",
"0.59442663",
"0.59337384",
"0.5933126",
"0.59321463",
"0.5931256",
"0.5929537",
"0.5924491",
"0.59230584",
"0.591813",
"0.5916826",
"0.5914802",
"0.5913617",
"0.59135664",
"0.58989006",
"0.5897495",
"0.5892505",
"0.5891249",
"0.58905417"
]
| 0.0 | -1 |
/ access modifiers changed from: protected / renamed from: b | public boolean mo8810b() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"@Override\n\tpublic void b() {\n\n\t}",
"public abstract void mo70713b();",
"@Override\n protected void prot() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"public void b() {\r\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"@Override\n\tpublic void b1() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public void b() {\n }",
"public void b() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public abstract void mo35054b();",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"protected void h() {}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public abstract void mo6549b();",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"private abstract void privateabstract();",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"public abstract int b();",
"public abstract Object mo1185b();",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"public abstract void mo45765b();",
"public abstract void mo27386d();",
"public abstract void mo56925d();",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public abstract Object mo26777y();",
"public abstract void mo957b();",
"public void mo21825b() {\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"protected void b(dh paramdh) {}",
"public abstract void mo27385c();",
"public abstract void mo27464a();",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"public abstract String mo118046b();",
"public abstract void m15813a();",
"public abstract void mo30696a();",
"@Override\n\tpublic void b() {\n\t\tSystem.out.println(\"b method\");\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"protected FanisamBato(){\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"public abstract void mo102899a();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public static void bi() {\n\t}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public abstract B zzjo();",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo115190b() {\n }",
"public void mo23813b() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"public abstract int mo4375b();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract Object mo1771a();",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"public /* bridge */ /* synthetic */ void mo55095b() {\n super.mo55095b();\n }",
"protected abstract void a(bru parambru);",
"public abstract C0631bt mo9227aB();",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public abstract void b(StringBuilder sb);",
"public abstract BoundType b();",
"public abstract void mo3994a();",
"private BigB()\r\n{\tsuper();\t\r\n}",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\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}",
"public final void mo1285b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"public abstract void mo42331g();",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void b() {\n ((a) this.a).b();\n }"
]
| [
"0.7265121",
"0.7075299",
"0.6953316",
"0.6844512",
"0.6816989",
"0.6797015",
"0.67873454",
"0.67873454",
"0.6723842",
"0.66859716",
"0.6652532",
"0.66338354",
"0.65748096",
"0.65464336",
"0.6536778",
"0.65149367",
"0.65149367",
"0.6452143",
"0.64504886",
"0.64404196",
"0.6414875",
"0.641153",
"0.6386676",
"0.6355687",
"0.63508534",
"0.6335443",
"0.6324126",
"0.6312756",
"0.62922996",
"0.6291582",
"0.6272673",
"0.62701267",
"0.62601364",
"0.6259485",
"0.62522626",
"0.62508285",
"0.62501675",
"0.62425685",
"0.6235272",
"0.6235147",
"0.62297195",
"0.6216518",
"0.6212196",
"0.62107265",
"0.61710304",
"0.616948",
"0.6164889",
"0.6159172",
"0.6146264",
"0.61439264",
"0.61377615",
"0.61330664",
"0.6131889",
"0.6100915",
"0.6100915",
"0.6099606",
"0.60924095",
"0.60884696",
"0.6081648",
"0.6076159",
"0.60736793",
"0.6060345",
"0.6059754",
"0.60476923",
"0.6043321",
"0.60329974",
"0.6030755",
"0.60282946",
"0.60244143",
"0.6024067",
"0.6020798",
"0.60185266",
"0.6018331",
"0.6010388",
"0.59947157",
"0.59925604",
"0.5988265",
"0.5985382",
"0.5975725",
"0.5975725",
"0.5973315",
"0.59699446",
"0.5965304",
"0.5962395",
"0.5955547",
"0.59533215",
"0.5953039",
"0.59468246",
"0.59434986",
"0.5940361",
"0.59382147",
"0.5933838",
"0.59235877",
"0.59232384",
"0.59232384",
"0.591151",
"0.5910204",
"0.59100556",
"0.5906048",
"0.5901089",
"0.58910865"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void SetLiveViewMode(int i, boolean z) {
this._lastLiveViewMode = i;
this._isPictureRecMode = z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected / renamed from: a | public void mo8809a(int i, boolean z, String str) {
this._lastLiveViewMode = i;
this._isPictureRecMode = z;
C1347a.m5304a(this._lastLiveViewMode);
getWindow().addFlags(128);
this._context = this;
this._handler = new Handler();
this.f12124a = new Bundle();
this.f12127d = new C3722a();
this.f12125b = (C3733b) C2316j.m10030a("LiveViewMoviePantilterBaseViewModel");
if (this.f12125b == null) {
this.f12125b = new C3733b(this._context, this._handler);
this.f12125b.mo8853a(this._context, this._handler, (C3787a) this.f12127d);
C2316j.m10032a("LiveViewMoviePantilterBaseViewModel", this.f12125b);
this.f12125b.mo8859b(this._lastLiveViewMode);
} else {
this.f12125b.mo8853a(this._context, this._handler, (C3787a) this.f12127d);
}
C2028e a = C2253z.m9680a((Context) null, false);
if (a != null) {
C1846e i2 = a.mo5285i();
this.f12129f = str;
if (i2 != null && i2.mo4656E() != null && i2.mo4656E().equalsIgnoreCase("manual") && str.equalsIgnoreCase("manual")) {
Intent intent = new Intent(this._context, LiveViewMoviePantilterManualMovieActivity.class);
Activity activity = (Activity) this._context;
activity.finish();
activity.startActivity(intent);
activity.overridePendingTransition(0, 0);
} else if (!(i2 == null || i2.mo4656E() == null || ((!C2274o.m9901g(i2.mo4656E()) && !C2274o.m9904j(i2.mo4656E()) && !C2274o.m9911q(i2.mo4656E()) && !C2274o.m9918x(i2.mo4656E()) && !C2274o.m9881E(i2.mo4656E()) && !C2274o.m9882F(i2.mo4656E()) && !C2274o.m9903i(i2.mo4656E())) || !str.equalsIgnoreCase("manual")))) {
Intent intent2 = new Intent(this._context, LiveViewMoviePantilterPresetActivity.class);
Activity activity2 = (Activity) this._context;
activity2.finish();
activity2.startActivity(intent2);
activity2.overridePendingTransition(0, 0);
}
}
this._optionMenuUtil = new C2308e();
this._optionMenuUtil.mo6072a(this, this._handler, this);
this._tabMenuUtil = new C2311f();
this.f12128e = new C3732b();
this._tabMenuUtil.mo6085a(1, this);
this._tabMenuUtil.mo6078a(this.f12128e);
SetupCameraWatching(false, C2328a.DMS_FILEUPLOADED_NOTIFY, C2328a.DMS_FILEUPLOADING_ERROR, C2328a.ON_SUBSCRIBE_UPDATE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n protected void prot() {\n }",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public abstract String a();",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"public void a() {\r\n }",
"public void a() {\n ((a) this.a).a();\n }",
"@Override\n public void b() {\n }",
"public abstract void m15813a();",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"private abstract void privateabstract();",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"public abstract void mo27464a();",
"public abstract Object mo26777y();",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"public abstract Object mo1771a();",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void b() {\n\n\t}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"public void a() {\n }",
"public void a() {\n }",
"private stendhal() {\n\t}",
"public void b() {\r\n }",
"public abstract void mo30696a();",
"public abstract void mo102899a();",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public abstract void mo3994a();",
"public final void mo51373a() {\n }",
"public abstract T a();",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public static void a() {\n\n }",
"public void mo38117a() {\n }",
"public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }",
"public abstract void mo27386d();",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo4359a();",
"public void m23075a() {\n }",
"public void b() {\n }",
"public void b() {\n }",
"public abstract int a();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"void m1864a() {\r\n }",
"public abstract void afvuren();",
"public abstract void mo27385c();",
"@Override\n public void perish() {\n \n }",
"public abstract void mo56925d();",
"protected void h() {}",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public abstract void mo35054b();",
"public String i() {\n/* 44 */ return this.a.toString();\n/* */ }",
"public abstract void mo53562a(C18796a c18796a);",
"@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public abstract void alimentarse();",
"public void mo4359a() {\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract String mo118046b();",
"protected void a(dh paramdh) {}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public abstract void mo45765b();",
"public abstract BoundType a();",
"public void mo2740a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public static a c() {\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }",
"public abstract Object mo1185b();",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo9848a() {\n }",
"private final void i() {\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo6549b();",
"public void mo6944a() {\n }",
"public void mo12930a() {\n }",
"public abstract void a(StringBuilder sb);",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public abstract void mo1184a(Object obj);",
"public static void main(String[] args) {\r\n\t\t//A obj = new A(); //A cannot be resolved to a type...try to access the class A method in thz class -- error \r\n\t // obj.i = 80; //here..The field A.i is not visible...it, allow as to create the object, but still it is not allow as to access thev & m, bcoz if we dont specify anything-- default(V & M) so it only accessible within the package.\r\n\t\r\n\t // obj.j = 90; //The field A.j is not visible -- error, cant access since it is protected.\r\n\t // obj.flow(); //The method flow() from the type A is not visible, cant access since it is protected.\r\n\t \r\n\t B obj1 = new B(); //extended class A, so we can access its V and M here.\r\n\t obj1.j = 70;\r\n\t obj1.flow();\r\n\t \r\n\t A obj3 = new A(); // here no need to extend class A , just create obj for A class and access it, bcoz it is \"public\".\r\n\t obj3.D = 100;\r\n\t obj3.sub();\r\n\t}",
"public void mo21825b() {\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public abstract boolean a();"
]
| [
"0.75464964",
"0.73093235",
"0.71735907",
"0.692263",
"0.68435764",
"0.6787232",
"0.67364866",
"0.6659923",
"0.6635336",
"0.6635336",
"0.65571475",
"0.65408033",
"0.65371394",
"0.6500136",
"0.6494878",
"0.6494545",
"0.6485399",
"0.6476603",
"0.64670885",
"0.6403744",
"0.6394189",
"0.63858354",
"0.63791156",
"0.6359318",
"0.635862",
"0.63452816",
"0.6342364",
"0.6338125",
"0.6318679",
"0.6308252",
"0.6302185",
"0.6302185",
"0.6297184",
"0.6286423",
"0.6281061",
"0.6277148",
"0.62757826",
"0.62720114",
"0.6261936",
"0.6259821",
"0.62542534",
"0.62433994",
"0.6240186",
"0.62257165",
"0.62044704",
"0.6188935",
"0.61817116",
"0.6180415",
"0.6169017",
"0.6164467",
"0.6156291",
"0.6156291",
"0.6153341",
"0.6152147",
"0.61438286",
"0.6107348",
"0.6106999",
"0.6105938",
"0.61047196",
"0.61005807",
"0.60873705",
"0.60854256",
"0.60787046",
"0.60570186",
"0.6056411",
"0.60460806",
"0.6044947",
"0.6044947",
"0.6043863",
"0.604216",
"0.60415447",
"0.6019007",
"0.6006512",
"0.6003148",
"0.59860367",
"0.59761965",
"0.5969308",
"0.5968431",
"0.59634477",
"0.5958228",
"0.595593",
"0.59471744",
"0.5946021",
"0.59442663",
"0.59337384",
"0.5933126",
"0.59321463",
"0.5931256",
"0.5929537",
"0.5924491",
"0.59230584",
"0.591813",
"0.5916826",
"0.5914802",
"0.5913617",
"0.59135664",
"0.58989006",
"0.5897495",
"0.5892505",
"0.5891249",
"0.58905417"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void onDestroy() {
if ((getChangingConfigurations() & 128) == 128 && this.f12125b != null) {
this.f12125b.mo6021b(true);
}
super.onDestroy();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void onResume() {
super.onResume();
if (this.f12125b != null) {
if (this.f12126c != null) {
this.f12126c.mo8947b();
}
if (this.f12125b.mo6024f()) {
this.f12125b.mo6021b(false);
if (this.f12129f.equalsIgnoreCase("check")) {
this.f12125b.mo8864c(this._isPictureRecMode);
return;
}
return;
}
this.f12125b.mo8864c(this._isPictureRecMode);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void onPause() {
super.onPause();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void onSaveInstanceState(Bundle bundle) {
super.onSaveInstanceState(bundle);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void onActivityResult(int i, int i2, Intent intent) {
C1846e eVar;
Bundle extras = intent.getExtras();
if (!CheckActivityResult(i, i2, intent)) {
this._isCheck = extras.getBoolean("PantilterCheckRange");
String string = extras.getString("PantilterMode");
C2028e a = C2253z.m9680a((Context) null, false);
if (a != null) {
eVar = a.mo5285i();
if (eVar != null && this._isCheck) {
string = eVar.mo4656E();
}
} else {
eVar = null;
}
if (string != null && !string.equalsIgnoreCase("")) {
if (string.equalsIgnoreCase("manual")) {
Intent intent2 = new Intent(this._context, LiveViewMoviePantilterManualMovieActivity.class);
Activity activity = (Activity) this._context;
activity.finish();
activity.startActivity(intent2);
activity.overridePendingTransition(0, 0);
} else if (string.equalsIgnoreCase("preset") || string.equalsIgnoreCase("presethome") || string.equalsIgnoreCase("presetpausehome")) {
Intent intent3 = new Intent(this._context, LiveViewMoviePantilterPresetActivity.class);
Activity activity2 = (Activity) this._context;
activity2.finish();
activity2.startActivity(intent3);
activity2.overridePendingTransition(0, 0);
} else if (string.equalsIgnoreCase("party") || string.equalsIgnoreCase("partypause") || string.equalsIgnoreCase("movingobj") || string.equalsIgnoreCase("mvobj") || string.equalsIgnoreCase("movingobjpause")) {
Intent intent4 = new Intent(this._context, LiveViewMoviePantilterAutoMovieActivity.class);
Activity activity3 = (Activity) this._context;
activity3.finish();
activity3.startActivity(intent4);
activity3.overridePendingTransition(0, 0);
} else if (eVar == null || eVar.mo4656E().equalsIgnoreCase("") || !eVar.mo4656E().equalsIgnoreCase("noconnect")) {
if (eVar != null && !eVar.mo4656E().equalsIgnoreCase("") && eVar.mo4656E().equalsIgnoreCase("error") && this._isCheck) {
C2331d.m10114a((Activity) this, C2328a.ON_PANTILTER_ERROR, (Bundle) null);
}
} else if (this._isCheck) {
C2331d.m10114a((Activity) this, C2328a.ON_PANTILTER_NO_CONNECT, (Bundle) null);
}
}
if (this.f12125b != null) {
this.f12125b.mo8864c(this._isPictureRecMode);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void OnFinishActiviy() {
super.OnFinishActiviy();
C2316j.m10034b("LiveViewMoviePantilterBaseViewModel");
if (this.f12126c != null) {
this.f12126c.mo8945a();
}
if (this.f12125b != null) {
this.f12125b.mo3205a();
this.f12125b = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public boolean IsEnableOptionMenu() {
if (this.f12125b.mo8885u()) {
C2331d.m10114a((Activity) this, C2328a.ON_ERROR_NOW_PIC_CAPTURE, (Bundle) null);
return false;
} else if (!this.f12125b.mo8871g()) {
return false;
} else {
if (!((Boolean) this.f12125b.f12207ad.mo3217b()).booleanValue()) {
return false;
}
if (!C2274o.m9889M(this.f12125b.mo8842J()) && !C2274o.m9890N(this.f12125b.mo8842J())) {
return true;
}
C2331d.m10114a((Activity) this, C2328a.ON_CANNOT_CHANGE_SETUP, (Bundle) null);
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public void OnSetupBrowser(Intent intent) {
this.f12125b.mo8854a(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected | public C2291c GetViewModel() {
return this.f12125b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
]
| [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
]
| 0.0 | -1 |
/ access modifiers changed from: protected / renamed from: a | public void mo8808a(int i) {
if (this.f12125b != null) {
this.f12125b.mo8862c(i);
}
if (i == 1) {
if (this.f12130g != null) {
this.f12130g.setVisibility(0);
}
if (this.f12131h != null) {
this.f12131h.setVisibility(4);
}
if (this.f12133j != null) {
this.f12133j.setVisibility(4);
}
if (this.f12132i != null) {
this.f12132i.setVisibility(4);
}
} else if (i == 2) {
if (this.f12131h != null) {
this.f12131h.setVisibility(0);
}
if (this.f12130g != null) {
this.f12130g.setVisibility(4);
}
if (this.f12133j != null) {
this.f12133j.setVisibility(4);
}
if (this.f12132i != null) {
this.f12132i.setVisibility(4);
}
} else if (i == 3) {
if (this.f12133j != null) {
this.f12133j.setVisibility(0);
}
if (this.f12130g != null) {
this.f12130g.setVisibility(4);
}
if (this.f12131h != null) {
this.f12131h.setVisibility(4);
}
if (this.f12132i != null) {
this.f12132i.setVisibility(4);
}
} else if (i == 4) {
if (this.f12132i != null) {
this.f12132i.setVisibility(0);
}
if (this.f12130g != null) {
this.f12130g.setVisibility(4);
}
if (this.f12131h != null) {
this.f12131h.setVisibility(4);
}
if (this.f12133j != null) {
this.f12133j.setVisibility(4);
}
} else {
if (this.f12130g != null) {
this.f12130g.setVisibility(0);
}
if (this.f12131h != null) {
this.f12131h.setVisibility(4);
}
if (this.f12133j != null) {
this.f12133j.setVisibility(4);
}
if (this.f12132i != null) {
this.f12132i.setVisibility(4);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n protected void prot() {\n }",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public abstract String a();",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"public void a() {\r\n }",
"public void a() {\n ((a) this.a).a();\n }",
"@Override\n public void b() {\n }",
"public abstract void m15813a();",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"public abstract void mo70713b();",
"private abstract void privateabstract();",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"public abstract void mo27464a();",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"public abstract Object mo26777y();",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"public abstract Object mo1771a();",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void b() {\n\n\t}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"public void a() {\n }",
"public void a() {\n }",
"private stendhal() {\n\t}",
"public void b() {\r\n }",
"public abstract void mo30696a();",
"public abstract void mo102899a();",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public abstract void mo3994a();",
"public final void mo51373a() {\n }",
"public abstract T a();",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public static void a() {\n\n }",
"public void mo38117a() {\n }",
"public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }",
"public abstract void mo27386d();",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void mo4359a();",
"public void m23075a() {\n }",
"public void b() {\n }",
"public void b() {\n }",
"public abstract int a();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"void m1864a() {\r\n }",
"public abstract void afvuren();",
"public abstract void mo27385c();",
"@Override\n public void perish() {\n \n }",
"public abstract void mo56925d();",
"protected void h() {}",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"public abstract void mo35054b();",
"public abstract void mo53562a(C18796a c18796a);",
"public String i() {\n/* 44 */ return this.a.toString();\n/* */ }",
"@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public abstract void alimentarse();",
"public void mo4359a() {\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public abstract String mo118046b();",
"protected void a(dh paramdh) {}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public abstract void mo45765b();",
"public abstract BoundType a();",
"public void mo2740a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public static a c() {\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public abstract Object mo1185b();",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo9848a() {\n }",
"private final void i() {\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public abstract void mo6549b();",
"public void mo6944a() {\n }",
"public void mo12930a() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public abstract void a(StringBuilder sb);",
"public abstract void mo1184a(Object obj);",
"public static void main(String[] args) {\r\n\t\t//A obj = new A(); //A cannot be resolved to a type...try to access the class A method in thz class -- error \r\n\t // obj.i = 80; //here..The field A.i is not visible...it, allow as to create the object, but still it is not allow as to access thev & m, bcoz if we dont specify anything-- default(V & M) so it only accessible within the package.\r\n\t\r\n\t // obj.j = 90; //The field A.j is not visible -- error, cant access since it is protected.\r\n\t // obj.flow(); //The method flow() from the type A is not visible, cant access since it is protected.\r\n\t \r\n\t B obj1 = new B(); //extended class A, so we can access its V and M here.\r\n\t obj1.j = 70;\r\n\t obj1.flow();\r\n\t \r\n\t A obj3 = new A(); // here no need to extend class A , just create obj for A class and access it, bcoz it is \"public\".\r\n\t obj3.D = 100;\r\n\t obj3.sub();\r\n\t}",
"public void mo21825b() {\n }",
"public abstract boolean a();",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }"
]
| [
"0.75482184",
"0.73110867",
"0.71752286",
"0.6923019",
"0.6844372",
"0.6787214",
"0.67374206",
"0.6661343",
"0.6636236",
"0.6636236",
"0.6556949",
"0.6541325",
"0.6537825",
"0.65008605",
"0.649674",
"0.64957714",
"0.64868635",
"0.64772385",
"0.64669675",
"0.6403976",
"0.6394509",
"0.638634",
"0.63795227",
"0.63587344",
"0.6358719",
"0.6345551",
"0.63426226",
"0.63391",
"0.6320165",
"0.6308596",
"0.63041246",
"0.63041246",
"0.62970495",
"0.6288033",
"0.6281189",
"0.6277513",
"0.6276802",
"0.62723786",
"0.62628835",
"0.6260575",
"0.6253678",
"0.6245432",
"0.6241261",
"0.62258065",
"0.62042606",
"0.6189291",
"0.6183658",
"0.61813295",
"0.6169633",
"0.61653507",
"0.6157958",
"0.6157958",
"0.615417",
"0.6152453",
"0.6144313",
"0.61083984",
"0.6106638",
"0.6106509",
"0.6104673",
"0.61000127",
"0.60871965",
"0.6086071",
"0.6079129",
"0.6056789",
"0.6056742",
"0.6047124",
"0.6046154",
"0.6046154",
"0.6044363",
"0.6043611",
"0.6042396",
"0.6018335",
"0.6006424",
"0.60026795",
"0.5986159",
"0.597657",
"0.5970352",
"0.59678763",
"0.5965256",
"0.5958105",
"0.59565073",
"0.5946909",
"0.5945325",
"0.5945083",
"0.593385",
"0.59335953",
"0.5932888",
"0.5932193",
"0.5930692",
"0.59243345",
"0.5922687",
"0.59181565",
"0.5917741",
"0.59161997",
"0.59148526",
"0.59137434",
"0.5898866",
"0.58983666",
"0.5893691",
"0.58920944",
"0.58911866"
]
| 0.0 | -1 |
TODO: save history stack here | public void preCommitChanges() {
if (onEditListener != null)
onEditListener.onPreEdit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private History() {}",
"void writeStackToRecentsBlocking() {\n final ContentResolver resolver = getContentResolver();\n final ContentValues values = new ContentValues();\n\n final byte[] rawStack = DurableUtils.writeToArrayOrNull(mState.stack);\n\n // Remember location for next app launch\n final String packageName = getCallingPackageMaybeExtra();\n values.clear();\n values.put(ResumeColumns.STACK, rawStack);\n values.put(ResumeColumns.EXTERNAL, 0);\n resolver.insert(RecentsProvider.buildResume(packageName), values);\n }",
"public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}",
"private static void addToHistory() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tFileChannel resultChannel = null;\n\t\tFileChannel historyChannel = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(\"result.txt\"));\n\t\t\tfos = new FileOutputStream(new File(\"history.txt\"), true);\n\t\t\t\n\t\t\tfos.write(\"\\n\\n\".getBytes(\"utf-8\"));\n\t\t\tfos.flush();\n\t\t\t\n\t\t\tresultChannel = fis.getChannel();\n\t\t\thistoryChannel = fos.getChannel();\n\n\t\t\tresultChannel.transferTo(0, resultChannel.size(), historyChannel);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\tif (fos != null) {\n\t\t\t\t\tfos.close();\n\t\t\t\t}\n\t\t\t\tif(resultChannel != null) {\n\t\t\t\t\tresultChannel.close();\n\t\t\t\t}\n\t\t\t\tif(historyChannel != null) {\n\t\t\t\t\thistoryChannel.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void printHistoryReverse()\r\n\t{\r\n\t\tStack temp = new Stack(SIZE);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nBrowsing History (Most Recent to Oldest):\");\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(chronological.peek());\t\t//print out value currently at the top of stack\r\n\t\t\ttemp.push(chronological.pop());\t\t\t\t\t//pop the top of stack and push to another stack\r\n\t\t}\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t\tchronological.push(temp.pop());\t\t\t\t\t//push all elements of temp back to the original stack\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"private void persistHistoricalData() {\n /*\n r4 = this;\n r1 = r4.mInstanceLock;\n monitor-enter(r1);\n r0 = r4.mReadShareHistoryCalled;\t Catch:{ all -> 0x000f }\n if (r0 != 0) goto L_0x0012;\n L_0x0007:\n r0 = new java.lang.IllegalStateException;\t Catch:{ all -> 0x000f }\n r2 = \"No preceding call to #readHistoricalData\";\n r0.<init>(r2);\t Catch:{ all -> 0x000f }\n throw r0;\t Catch:{ all -> 0x000f }\n L_0x000f:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x000f }\n throw r0;\n L_0x0012:\n r0 = r4.mHistoricalRecordsChanged;\t Catch:{ all -> 0x000f }\n if (r0 != 0) goto L_0x0018;\n L_0x0016:\n monitor-exit(r1);\t Catch:{ all -> 0x000f }\n L_0x0017:\n return;\n L_0x0018:\n r0 = 0;\n r4.mHistoricalRecordsChanged = r0;\t Catch:{ all -> 0x000f }\n r0 = 1;\n r4.mCanReadHistoricalData = r0;\t Catch:{ all -> 0x000f }\n r0 = r4.mHistoryFileName;\t Catch:{ all -> 0x000f }\n r0 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x000f }\n if (r0 != 0) goto L_0x0031;\n L_0x0026:\n r0 = SERIAL_EXECUTOR;\t Catch:{ all -> 0x000f }\n r2 = new com.actionbarsherlock.widget.ActivityChooserModel$HistoryPersister;\t Catch:{ all -> 0x000f }\n r3 = 0;\n r2.<init>();\t Catch:{ all -> 0x000f }\n r0.execute(r2);\t Catch:{ all -> 0x000f }\n L_0x0031:\n monitor-exit(r1);\t Catch:{ all -> 0x000f }\n goto L_0x0017;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.actionbarsherlock.widget.ActivityChooserModel.persistHistoricalData():void\");\n }",
"StackManipulation cached();",
"void onHistoryButtonClicked();",
"@Override\n public void updateHistory(Command c) {\n }",
"private void setHistory(final CreateUrlRequest request)\n {\n String token = Session.getInstance().generateUrl(request);\n History.newItem(token, true);\n }",
"public String getHistory () {\n\t\treturn history;\n\t}",
"public void openHistory() {\n usingHistoryScreen = true;\n myActivity.setContentView(R.layout.history);\n Button historyButtonToGame = myActivity.findViewById(R.id.button8);\n TextView historyText = myActivity.findViewById(R.id.textView46);\n historyText.setText(state.getHistory());\n historyText.setMovementMethod(new ScrollingMovementMethod());\n gui.invalidate();\n historyButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingHistoryScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }",
"protected abstract void createHistoryEvents();",
"private static int getHistory(SearchTreeNode parent, MazeState current, MazeProblem problem) {\n\t\treturn parent.history + problem.getCost(current);\n\t}",
"private void addHistory(String s) {\r\n\t\tcurrentPlayer.getHistory().add(s);\r\n\t\tif (currentPlayer.getHistory().size() > 6) currentPlayer.getHistory().remove(0);\r\n\t\t//updatePlayArea(currentPlayer, false);\r\n\t}",
"private void rememberState() {\n int size = pageHistory.size();\n for ( int i = historyCursor + 1; i < size; i++ ) {\n pageHistory.remove( historyCursor + 1 );\n }\n // Add current state to history if different from current one\n PageState newState = new PageState();\n if ( historyCursor < 0 || !pageHistory.get( historyCursor ).equals( newState ) ) {\n pageHistory.add( newState );\n historyCursor = pageHistory.size() - 1;\n }\n }",
"protected void intentBrowsingHistory() {\n \t// TODO accessTokenの取得がBookmarkとかぶる部分共通に‥\n \n \t// ログイン状態か確認。Cookie制御は確認済かつ表示前にチェックが走るのでここでは確認しない。\n \tString accessToken = null;\n String refreshToken = null;\n try {\n SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);\n accessToken = settings.getString(ACCESS_TOKEN, null);\n refreshToken = settings.getString(REFRESH_TOKEN, null);\n } catch (Exception e) {\n //\n }\n \n if (isNotEmpty(accessToken) && isNotEmpty(refreshToken)) { \n \tIntent intent = new Intent(this, BrowsingHistoryList.class);\n \tstartActivity(intent);\n } else {\n Intent loginIntent = new Intent(this, UserLogin.class);\n startActivityForResult(loginIntent, APL_REQUEST_BROWSINGHISTORY);\n }\n \t\n \t\n }",
"private void initializeUndoHistory() {\n \t\tif (fHistory != null && fUndoContext != null)\n \t\t\tfHistory.dispose(fUndoContext, true, true, false);\n \n \t}",
"public void loadHistory(SyncedList<MSensor> history) {\n this.history = history;\n }",
"protected void saveHistoryData() throws RemoteHomeManagerException {\n int expected = (isCurrentState()) ? 1 : 0;\n if (isEnabledScheduler()) {\n Boolean action = getLightSchedule().getCurrentSchedule();\n expected = action?1:0;\n }\n HistoryData history = new HistoryData();\n history.setDeviceId(getDeviceId());\n history.setDataName(\"ONOFF\");\n history.setDataValue(((isCurrentState())?1:0)+\"|\"+expected);\n history.setDataTimestamp();\n m.getPersistance().addHistoryData(history);\n RemoteHomeManager.log.debug(\"Saved history data: \"+history.toString());\n }",
"public void showMoveHistory() {\n\t\ttry {\n\t\t\tif (gameMoveHistoryStage == null) {\n\t\t\t\tgameMoveHistoryStage = new Stage();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void switchToHistory() {\r\n\t\thistoryPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"historyPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"private void prevHistoryEntry()\n {\n if (this.historyPos > 0) {\n this.historyPos--;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n }\n }",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tfinal WebHistory history=engine.getHistory();\r\n\t\t ObservableList<WebHistory.Entry> entryList=history.getEntries();\r\n\t\t int currentIndex=history.getCurrentIndex();\r\n//\t\t Out(\"currentIndex = \"+currentIndex);\r\n//\t\t Out(entryList.toString().replace(\"],\",\"]\\n\"));\r\n\t\t\t if(history.getCurrentIndex()<entryList.size()-1){\r\n\t\t\t \r\n\t\t Platform.runLater(new Runnable() { public void run() { history.go(1); } });\r\n\t\t System.out.println(entryList.get(currentIndex<entryList.size()-1?currentIndex+1:currentIndex).getUrl());\r\n\t\t\t}\r\n\t\t}",
"@Override\n public void backtrack() {\n if (!stack.isEmpty()) {\n int index = (Integer) stack.pop();\n\n if (index > arr.length) {//popping the insert function unneeded push\n insert((Integer) stack.pop());\n stack.pop();\n }\n if (index < arr.length) {//popping the delete function unneeded push\n delete(index);\n stack.pop();\n stack.pop();\n }\n System.out.println(\"backtracking performed\");\n }\n }",
"public void setCurrentImageHistory(Stack<ColorImage> img) {\n currentImage = img;\n }",
"public void saveAllHistory() {\n\n\t\tfor (Map.Entry<Integer, History> entry : mapOfHistorys.entrySet()) {\n\t\t\tHistory history = entry.getValue();\n\t\t\thistory.save();\n\t\t\t\n\t\t}\n\t}",
"public abstract void processHistoryRequest(Message message);",
"public void storeFileHistory() {\n\t\ttheFileHistory.store(theConfiguration);\n\t}",
"@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}",
"private void updateHistory() {\n if(isHistoryUpdated == false) {\n preloader.launch();\n final Timer networkTimeoutTimer = new Timer();\n networkTimeoutTimer.schedule(new TimerTask() {\n @Override\n public void run() {\n ChatActivity.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n preloader.done();\n showNetWorkAlertDialog();\n }\n });\n }\n }, 15000);\n textViewTop.setText(currDialogObject.name);\n ImageLoader.getInstance().displayImage(currDialogObject.avatarUrl, imageAvatar);\n int dialogId = currDialogObject.dialogId;\n SocketWorker.getInstance().getDialogHistory(dialogId, new IOAcknowledge() {\n @Override\n public void ack(Object... args) {\n networkTimeoutTimer.cancel();\n final JSONObject ackJson = (JSONObject) args[0];\n ChatActivity.this.runOnUiThread(new Runnable() {\n public void run() {\n if (GlobalHelper.successStatusFromJson(ackJson, true, null)) {\n parseHistory(ackJson);\n\n } else {\n networkTimeoutTimer.cancel();\n preloader.cancel(getString(R.string.error), getString(R.string.message_network_error));\n }\n }\n });\n }\n });\n }\n\t}",
"private void readHistoricalData() {\n /*\n r4 = this;\n r1 = r4.mInstanceLock;\n monitor-enter(r1);\n r0 = r4.mCanReadHistoricalData;\t Catch:{ all -> 0x0028 }\n if (r0 == 0) goto L_0x000b;\n L_0x0007:\n r0 = r4.mHistoricalRecordsChanged;\t Catch:{ all -> 0x0028 }\n if (r0 != 0) goto L_0x000d;\n L_0x000b:\n monitor-exit(r1);\t Catch:{ all -> 0x0028 }\n L_0x000c:\n return;\n L_0x000d:\n r0 = 0;\n r4.mCanReadHistoricalData = r0;\t Catch:{ all -> 0x0028 }\n r0 = 1;\n r4.mReadShareHistoryCalled = r0;\t Catch:{ all -> 0x0028 }\n r0 = r4.mHistoryFileName;\t Catch:{ all -> 0x0028 }\n r0 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x0028 }\n if (r0 != 0) goto L_0x0026;\n L_0x001b:\n r0 = SERIAL_EXECUTOR;\t Catch:{ all -> 0x0028 }\n r2 = new com.actionbarsherlock.widget.ActivityChooserModel$HistoryLoader;\t Catch:{ all -> 0x0028 }\n r3 = 0;\n r2.<init>();\t Catch:{ all -> 0x0028 }\n r0.execute(r2);\t Catch:{ all -> 0x0028 }\n L_0x0026:\n monitor-exit(r1);\t Catch:{ all -> 0x0028 }\n goto L_0x000c;\n L_0x0028:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0028 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.actionbarsherlock.widget.ActivityChooserModel.readHistoricalData():void\");\n }",
"private Object appendHistory(final Context ctx, final NumberMgmtHistory history) throws HomeException,\r\n HomeInternalException\r\n {\r\n final Home home = getHome(ctx);\r\n if (!validate(ctx, history))\r\n {\r\n return null;\r\n }\r\n return home.create(ctx, history);\r\n }",
"public void showHistory(){\n \tif (historyExample==null) historyExample = new HistoryExample();\n setWidgetAsExample(historyExample);\n }",
"private void printBrowsingHistory()\r\n\t{\r\n\t\tQueue temp = new Queue(SIZE);\r\n\t\tObject element;\r\n\t\t\r\n\t\tSystem.out.println(\"\\nBrowsing History (Oldest to Most Recent):\");\r\n\t\tfor (int i = 0; i < queueCount; i++)\r\n\t\t{\r\n\t\t\telement = rChronological.dequeue();\t\t\t\t//dequeue first element to the variable element\r\n\t\t\tSystem.out.println(element);\t\t\t\t\t//print out the value of element (the URL)\r\n\t\t\ttemp.enqueue(element);\t\t\t\t\t\t\t//enqueue element to a temporary queue\r\n\t\t}\r\n\t\tfor (int i = 0; i < queueCount; i++)\r\n\t\t\trChronological.enqueue(temp.dequeue());\t\t\t//put all elements in temp back to the original queue\r\n\t}",
"public BuildHistory(){\n buildHistory = new ArrayList<Build>();\n }",
"public void clearHistory() {\n historyStack.clear();\n lastTransition = null;\n }",
"public void visit (String site) {\r\n backHistory.add(current);\r\n current = site;\r\n forwardHistory.clear();\r\n\r\n }",
"private IOperationHistory getOperationHistory() {\n return PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();\n }",
"private boolean dataToHistory(DataEntry oldEntry) {\n\t\tif (oldEntry != null) {\n\t\t\tif (bufferIndex < MAX_HISTORY_ENTRIES) {\n\t\t\t\toldEntries[bufferIndex++] = new HistoryEntry(oldEntry.getProductId(), oldEntry);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public String toString ()\r\n\t{\r\n\t\treturn history + \" \";\r\n\t}",
"void clearHistoryData();",
"public final void undo() {\n\t\tthis.historyManager.undo();\n\t}",
"public void updateHistoryButtonState(ChatPanel chatPanel)\n {\n mainToolBar.changeHistoryButtonsState(chatPanel);\n }",
"public void storeResidueHistory() {\n\t\ttheResidueHistory.store(theConfiguration);\n\t}",
"private void loadMoreHistoryChat(){\n loadChatHistory(CHAT_LIMIT,headIndex,0);\n }",
"private void storeUserInputHistory(String input) {\n if (userInputHistoryPointer != userInputHistory.size() - 1\n || (userInputHistoryPointer == userInputHistory.size() - 1\n && !input.equals(userInputHistory.get(userInputHistoryPointer)))) {\n userInputHistory.add(input);\n }\n userInputHistoryPointer = userInputHistory.size();\n currentInput = null;\n }",
"public void back () {\r\n if (backHistory.size() > 1) {\r\n forwardHistory.addFirst(current);\r\n current = backHistory.getLast();\r\n backHistory.removeLast();\r\n }\r\n }",
"protected void toggleHistory(final Context ctx,\r\n final SubscriberNumberMgmtHistory history)\r\n throws AgentException\r\n {\r\n\r\n try\r\n {\r\n SubscriberNumberMgmtHistory cloneHistory = (SubscriberNumberMgmtHistory) history.clone();\r\n\r\n if (cloneHistory.getLatest() != latest_)\r\n {\r\n cloneHistory.setLatest(latest_);\r\n cloneHistory.setEndTimestamp(endTimestamp_);\r\n }\r\n setHistory((SubscriberNumberMgmtHistory)home_.store(ctx, cloneHistory));\r\n // there should only be one entry with latest set to true\r\n setAddNewHistoryRequired(true);\r\n count_++;\r\n throw new AbortVisitException();\r\n }\r\n catch(CloneNotSupportedException cloneEx)\r\n {\r\n throw new AgentException(cloneEx);\r\n }\r\n catch (HomeException hEx)\r\n {\r\n throw new AgentException(hEx);\r\n }\r\n }",
"private void Writehistory (List list, savekq savehistory){\n if (kiemtrasopt(list) < 10) {\n list.add(0, savehistory);\n } else {\n list.remove(9);\n list.add(0, savehistory);\n }\n }",
"public Stack<ColorImage> getCurrentImageHistory() {\n return currentImage;\n }",
"public void addCommandToHistory(String command) {\r\n commandHistory.add(command);\r\n }",
"public void setHistoryCleared() {\n\n // If jelly bean or above.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {\n\n // Finish all activities on\n // the current stack.\n activity.finishAffinity();\n } else {\n activity.finish();\n }\n }",
"protected void addToHistory(ModelContainer model, \n\t\t\tList<OWLOntologyChange> appliedChanges, METADATA metadata) {\n\t\t// do nothing, for now\n\t}",
"public boolean histRPN(String s){\n int i = getNumber(s);\n if(history.isEmpty()) {\n System.out.println(\"the history is empty\");\n return false;\n }\n if(Math.abs(i) > stack.size()) {\n System.out.println(\"index out of bounds, please select an other number\");\n return false;\n }\n if(i < 0){\n stack.push(history.get(history.size() + i ));\n }\n else {\n stack.push(history.get(i));\n }\n return true;\n }",
"@UiHandler(\"history\")\n public void showHistory (ClickEvent event){\n \tshowHistory();\n }",
"private void updateStack(String url)\r\n\t{\r\n\t\tStack temp = new Stack(SIZE);\r\n\t\tObject temp2 = ' ';\r\n\t\tint count = 0;\t\t\t\t\t\t\t//keeps track of how many elements are pushed into temp\r\n\t\t\r\n\t\tfor (int i = 0; i < siteVisited; i++)\r\n\t\t{\r\n\t\t\tif (!url.equals(chronological.peek()))\r\n\t\t\t{\r\n\t\t\t\ttemp.push(chronological.pop());\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttemp2 = chronological.pop();\r\n\t\t\t\tbreak;\t\t\t\t\t\t//break out of the loop\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (int i = 0; i < count; i++)\t\t//move the elements in temp back into the stack\r\n\t\t\tchronological.push(temp.pop());\r\n\t\tchronological.push(temp2);\r\n\t}",
"private void openHistoryManagementWindow() {\r\n\t\tnew JFrameHistory(this.jFrameMainWindow.getUser());\r\n\t}",
"public void maybeUpdateNavigationHistory() {\n WebContents webContents = mClient.getWebContents();\n if (mClearAllForwardHistoryRequired && webContents != null) {\n webContents.getNavigationController().pruneForwardEntries();\n } else if (mShouldClearRedirectHistoryForTabClobbering && webContents != null) {\n // http://crbug/479056: Even if we clobber the current tab, we want to remove\n // redirect history to be consistent.\n NavigationController navigationController = webContents.getNavigationController();\n int indexBeforeRedirection =\n mClient.getOrCreateRedirectHandler()\n .getLastCommittedEntryIndexBeforeStartingNavigation();\n int lastCommittedEntryIndex = getLastCommittedEntryIndex();\n for (int i = lastCommittedEntryIndex - 1; i > indexBeforeRedirection; --i) {\n boolean ret = navigationController.removeEntryAtIndex(i);\n assert ret;\n }\n }\n mClearAllForwardHistoryRequired = false;\n mShouldClearRedirectHistoryForTabClobbering = false;\n }",
"public BuildHistory(ArrayList<Build> buildHistory) {\n this.buildHistory = buildHistory;\n }",
"public void botaohistory(View v) {\n startActivity(new Intent(this, com.example.appstore.history.class));\n }",
"@Test\n public void revertBackTest() {\n stack.revertBack(stack2);\n assertEquals(stack2.toString(), stack.toString());\n\n ResourceStack stack3 = new ResourceStack(99,99,99,99);\n stack2.revertBack(stack3);\n assertEquals(stack3.toString(), stack2.toString());\n }",
"private FXDealHistory() {}",
"public List<Order> getOrderHistory();",
"private void push( Card card ) {\r\n undoStack.add( card );\r\n }",
"public void showHistorySwitchAction() {\n\t\tanimalsListPanel.switchToPast();\n\t}",
"public UpdateHistory() {\n this(\"update_history\", null);\n }",
"private List<Performance> quizHistory(){\n\t\treturn history;\n\t}",
"public UndoStack() {\n super();\n undoPointer = -1;\n }",
"List<HistoryData> loadAllHistoryData();",
"public void resetHistory() {\n SharedPreferences.Editor editor = preferences.edit();\n editor.remove(\"usernameHistory\");\n editor.apply();\n }",
"public History() {\n }",
"void saveNewTargetsForLater() {\n while (!newFutureTargets.isEmpty()) {tempStack.push(newFutureTargets.pop());}\n while (!tempStack.isEmpty()) {laterFutureTargets.push(tempStack.pop());}\n }",
"public void prev()\n {\n if (mHistoryIdx == 0) {\n return;\n }\n\n mCommandList.get(--mHistoryIdx).undo();\n this.setChanged();\n this.notifyObservers(mHistoryIdx);\n }",
"private void addToHistory(String msg){\n\t\ttry{\n\t\t\tlockHistory.writeLock().lock();\n\t\t\thistory.add(msg);\n\t\t\tlogOut.write(msg);\n\t\t\tlogOut.newLine();\n\t\t\tlogOut.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tlockHistory.writeLock().unlock();\n\t\t}\n\t}",
"public void refreshHistory() {\n whitesEaten = \"\";\n blacksEaten = \"\";\n whitePiecesEaten.setText(\"None\");\n blackPiecesEaten.setText(\"None\");\n\n moveHistory.clear();\n }",
"private void nextHistoryEntry()\n {\n // get next history entry (into input text field)\n if (this.historyPos < this.history.size()) {\n this.historyPos++;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n // if last index => input text must be cleaned\n } else if (this.historyPos == this.history.size()) {\n this.textInput.setText(\"\"); //$NON-NLS-1$\n this.textInput.setSelection(0);\n }\n }",
"public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }",
"private JList getHistoryList() {\n if (historyList == null) {\n historyList = new JList();\n historyList.setModel(new ListListModel(new ArrayList()));\n historyList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n historyList.setCellRenderer(new HistoryListCellRenderer());\n historyList.addListSelectionListener(new ListSelectionListener() {\n\n public void valueChanged(ListSelectionEvent e) {\n final History history = (History) historyList.getSelectedValue();\n\n getViewPanel().setHistory(history);\n\n /*\n * Toggle the buttons off if no action needs to be taken\n */\n\n if (!isLocked() && getUserAccount().isAdministrator()) {\n final OkCancelButtonPanel panel = getButtonPanel();\n\n panel.getOkayButton().setEnabled((history != null) && !history.isProcessed());\n panel.getCancelButton().setEnabled((history != null) && !history.isProcessed());\n }\n\n }\n\n });\n }\n\n return historyList;\n }",
"private void historyButtonListener() {\n JButton historyButton = gui.getHistory_Button();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n gui.getHistory_TextArea().setText(\"\");\n gui.getFrame_History().setVisible(true);\n gui.getFrame_History().setSize(415, 250);\n gui.getHistory_TextArea().setEditable(false);\n for (int key : requestsAnswered.keySet()) {\n gui.getHistory_TextArea().append(requestsAnswered.get(key).getFormattedRequest());\n }\n for (int key : processingRequests.keySet()) {\n gui.getHistory_TextArea().append(processingRequests.get(key).getFormattedRequest());\n }\n };\n historyButton.addActionListener(actionListener);\n }",
"public void dispAll(){\n System.out.println(\"HISTORY :\");\n for(int i=0;i<history.size();i++)\n System.out.print(history.get(i) + \" | \");\n System.out.println(\"\\nSTACK :\");\n Stack <Object> acc = new Stack<>();\n while (!stack.isEmpty())acc.push(stack.pop());\n while (!acc.isEmpty()){\n System.out.print(acc.peek()+ \" | \");\n stack.push(acc.pop());\n }\n System.out.println(\"\\nVariables Stockes : \" + variables.toString());\n }",
"public interface HistoryService {\n /**\n * 查询历史住房信息\n * @param map\n * @return\n */\n List<Map> getHistory(Map map);\n\n /**\n * 获取分页总数量\n * @return\n */\n int getCount(Map map);\n}",
"public void getHistory() {\n List<Map<String, String>> HistoryList = null;\n HistoryList = getData();\n String[] fromwhere = {\"Line\", \"Station\", \"Repair_Time_Start\", \"Repair_Time_Finish\", \"Repair_Duration\"};\n int[] viewwhere = {R.id.Line, R.id.Station, R.id.RepairTimeStart, R.id.RepairTimeFinish, R.id.Duration};\n ABH = new SimpleAdapter(BreakdownHistory.this, HistoryList, R.layout.list_history, fromwhere, viewwhere);\n BreakdownHistory.setAdapter(ABH);\n }",
"private List<ThroughNode> popStackStackForward() {\n List<ThroughNode> popped = nodeStackStack.peek();\n nodeStackStack.push(C.tail(popped));\n return popped;\n }",
"public void pushState();",
"public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}",
"Request back();",
"private void setActiveHistory(History activeHistory) {\n\t\tthis.activeHistory = activeHistory;\n\t\tactiveHistory.activate();\n\t}",
"public void afterClickHistory(View view) {\n }",
"private int enterHistory(int state) {\n\t\tboolean skip_entry = false;\n\t\tif (state >= STATE_MAX) {\n\t\t\tstate = (state - STATE_MAX);\n\t\t\tskip_entry = true;\n\t\t}\n\t\twhile (true) {\n\t\t\tswitch (state) {\n\t\t\t\tcase STATE_Ready:\n\t\t\t\t\t/* in leaf state: return state id */\n\t\t\t\t\treturn STATE_Ready;\n\t\t\t\tcase STATE_TOP:\n\t\t\t\t\tstate = this.history[STATE_TOP];\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t/* should not occur */\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tskip_entry = false;\n\t\t}\n\t\t/* return NO_STATE; // required by CDT but detected as unreachable by JDT because of while (true) */\n\t}",
"org.naru.park.ParkController.CommonAction getGetUserHistory();",
"private static Map pushOnStack(SessionState state)\n\t{\n\t\tMap current_stack_frame = null;\n\t\tStack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK);\n\t\tif(operations_stack == null)\n\t\t{\n\t\t\toperations_stack = new Stack();\n\t\t\tstate.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack);\n\t\t}\n\t\tif(operations_stack.size() < MAXIMUM_SUSPENDED_OPERATIONS_STACK_DEPTH)\n\t\t{\n\t\t\tcurrent_stack_frame = (Map) operations_stack.push(new Hashtable());\n\t\t}\n\t\tObject helper_mode = state.getAttribute(STATE_RESOURCES_HELPER_MODE);\n\t\tif(helper_mode != null)\n\t\t{\n\t\t\tcurrent_stack_frame.put(STATE_RESOURCES_HELPER_MODE, helper_mode);\n\t\t}\n\t\treturn current_stack_frame;\n\n\t}",
"@Override\n protected void onRestoreInstanceState(Bundle savedInstanceState) {\n super.onRestoreInstanceState(savedInstanceState);\n\n history.setText(savedInstanceState.getString(\"HISTORY\"));\n }",
"protected abstract List breakOutOfStateStack();",
"@Override\n public void goBack() {\n\n }",
"public HistoryGraph() {\n revisions = new HashSet<Revision>();\n orderedRevisions = new ArrayList<Revision>();\n }",
"int getBacklog();",
"public History() {\n\tthis.timestampMinute = new Date();\n\tthis.status = false;\n\n }",
"@Transactional\n public History save(History history) {\n return historyRepository.save(history);\n }"
]
| [
"0.66590047",
"0.6593928",
"0.6432448",
"0.63175243",
"0.62784815",
"0.62652975",
"0.62652975",
"0.62603354",
"0.62490225",
"0.62368774",
"0.62336576",
"0.61786574",
"0.6168931",
"0.61261714",
"0.61247015",
"0.60499454",
"0.60451406",
"0.6020046",
"0.59740555",
"0.5961896",
"0.5898309",
"0.5893714",
"0.5830676",
"0.5824857",
"0.58203435",
"0.58127177",
"0.57978725",
"0.5782297",
"0.57780594",
"0.577529",
"0.57692784",
"0.5767344",
"0.5763169",
"0.57509714",
"0.574811",
"0.574584",
"0.5744788",
"0.5737323",
"0.5732941",
"0.5724849",
"0.57181627",
"0.5708638",
"0.57078093",
"0.5702803",
"0.56955814",
"0.5685877",
"0.5682877",
"0.566437",
"0.56619185",
"0.56446",
"0.5638424",
"0.5604184",
"0.5603741",
"0.5598006",
"0.55682313",
"0.5566149",
"0.5566081",
"0.5564041",
"0.5560024",
"0.55553746",
"0.5546129",
"0.55368894",
"0.55210555",
"0.5500549",
"0.54985315",
"0.5489424",
"0.5488005",
"0.54805166",
"0.5439227",
"0.5434904",
"0.54332185",
"0.54331315",
"0.54213613",
"0.541718",
"0.54087543",
"0.5407378",
"0.54056644",
"0.5404661",
"0.54000777",
"0.5388166",
"0.5386269",
"0.5378728",
"0.53776103",
"0.5377045",
"0.5375803",
"0.5373432",
"0.5373174",
"0.53717107",
"0.53667814",
"0.53667593",
"0.5364259",
"0.5363261",
"0.5360556",
"0.53585196",
"0.5355679",
"0.53551877",
"0.5351108",
"0.5342145",
"0.53386426",
"0.5337692",
"0.53363705"
]
| 0.0 | -1 |
////////////////////////////////////////////////////////////////////// View impl ////////////////////////////////////////////////////////////////////// | @Override
public boolean onTouchEvent(@NonNull MotionEvent event) {
scaleGestureDetector.onTouchEvent(event);
gestureDetector.onTouchEvent(event);
if (event.getPointerCount() == 1) {
int action = event.getActionMasked(),
pointerIndex = event.getActionIndex();
MotionEvent.PointerCoords coords;
int width = getWidth(),
height = getHeight();
float rWidth = modifiedSize.width(),
rHeight = modifiedSize.height();
int ex, ey;
switch (action) {
case MotionEvent.ACTION_DOWN:
{
isDrawing = true;
coords = new MotionEvent.PointerCoords();
event.getPointerCoords(pointerIndex, coords);
targetRenderer.createEditCache(editingFrame);
ex = (int)((coords.x - (width - rWidth) / 2 - modifiedOffset.x) / (zoom * scaleFactor));
ey = (int)((coords.y - (height - rHeight) / 2 - modifiedOffset.y) / (zoom * scaleFactor));
brush.touchStart(new Point(ex, ey));
invalidate();
}
break;
case MotionEvent.ACTION_MOVE:
{
if (isDrawing && !brush.isCanceled()) {
coords = new MotionEvent.PointerCoords();
event.getPointerCoords(pointerIndex, coords);
ex = (int) ((coords.x - (width - rWidth) / 2 - modifiedOffset.x) / (zoom * scaleFactor));
ey = (int) ((coords.y - (height - rHeight) / 2 - modifiedOffset.y) / (zoom * scaleFactor));
brush.touchDelta(new Point(ex, ey));
invalidate();
}
else {
brush.cancel();
}
}
break;
case MotionEvent.ACTION_UP:
{
if (isDrawing && !brush.isCanceled()) {
coords = new MotionEvent.PointerCoords();
event.getPointerCoords(pointerIndex, coords);
ex = (int) ((coords.x - (width - rWidth) / 2 - modifiedOffset.x) / (zoom * scaleFactor));
ey = (int) ((coords.y - (height - rHeight) / 2 - modifiedOffset.y) / (zoom * scaleFactor));
brush.touchEnd(new Point(ex, ey));
isDrawing = false;
invalidate();
}
}
break;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"public abstract String getView();",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"private View() {}",
"void view();",
"StableView view();",
"View mo73990a(View view);",
"public interface View {\n\t\n\tpublic DifferenceOperators getOperator();\n\tpublic double getUtility(DistanceMetric distanceMetric);\n\tpublic double getUtility(DistanceMetric distanceMetric,\n\t\t\tboolean normalizeDistributions);\n //Added by Himos\n public double getUtilitywithfunc(DistanceMetric distanceMetric, Constants.AggregateFunctions AGF,\n\t\t\tboolean normalizeDistributions);\n\tpublic List<View> constituentViews();\n \n // public String getHighFunction(); \n\t//public View getTopDifferent();\n\n}",
"public abstract View mo2155b();",
"public String getView();",
"public String getView();",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"public interface View {\n}",
"public interface View {\n}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"View createView();",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"public abstract void mo8519a(View view);",
"public interface IView {\n\n\n\n\n\n}",
"public View() {\n // (this constructor is here just for the javadoc tag)\n }",
"void mo12147a(View view);",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"public View getView() { return view; }",
"@Override\n\tpublic void viewItem() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"@Override\n public View getView() {\n return mView;\n }",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"@Override\n public View getView()\n {\n return view;\n }",
"java.lang.String getView();",
"protected abstract void bindingView();",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic View getView() {\n\t\treturn this.view;\r\n\t}",
"@Override\n\tpublic View getView() {\n\t\treturn super.getView();\n\t}",
"@Override\n public void prepareView() {\n }",
"protected ReliedOnView() {}",
"public interface View_1 extends BaseView {\n\n void viewCall(String result);\n}",
"@Override\r\n public View getView() {\r\n return mBaseView;\r\n }",
"@Override\n public void initView() {\n }",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"public interface View {\n void setupViews();\n void onClickMonth();\n void onClickYear();\n void onSuccess(RevenueModel body);\n void onSuccessWithdrawl(BaseResponse body);\n void onFailure();\n void onFailureWithdrawl();\n }",
"@Override\n public void initView() {\n\n }",
"@Override\n\tprotected void RefreshView() {\n\t\t\n\t}",
"@Override\n\tprotected void refreshView() {\n\t\t\n\t}",
"public abstract View a(Object obj);",
"public abstract void viewRun();",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"public interface BaseView {\n}",
"private void setViews() {\n\n }",
"private void addViews() {\n\t}",
"public interface BaseView {\n\n}",
"public interface BaseView {\n\n}",
"public interface BaseView {\n\n}",
"public interface BaseView {\n\n}",
"ViewElement getViewElement();",
"@Override\n\tpublic View GetDynamicView() {\n\t\treturn null;\n\t}",
"public interface EmptyView extends BaseView {\n}",
"interface View {\n\n void displayError(String error);\n\n String getBarcode();\n \n String getDescription();\n \n BigDecimal getPrice();\n \n \n }",
"public Object caseView(View object) {\r\n\t\treturn null;\r\n\t}",
"ViewElement createViewElement();",
"protected abstract void initView();",
"public void initView(){}",
"public abstract void initView();",
"@Override\n public void onViewCreate() {\n }",
"public interface IView {\n\n /**\n * Renders this IView as a visual, text or svg.\n *\n * @param model the IViewModel that this IView is using\n */\n void render(IViewModel model);\n\n void edit(IController controller);\n}",
"public interface BaseView {\n\n String getViewTag();\n}",
"public interface View {\n\n public void Update();\n public void Clear(String scopeName);\n\n public ViewScope getMainView();\n public ViewScope getCanvasView();\n public ViewScope getToolbarView();\n public ViewScope getTopMenuView();\n\n public void drawRectangle(String viewName, Rectangle rectangle, int pos_x, int pos_y, double scale);\n public void drawRectangle(String viewName, Rectangle rectangle, int pos_x, int pos_y);\n public void drawRectangle(String viewName, Rectangle rectangle, double scale);\n public void drawRectangle(String viewName, Rectangle rectangle);\n public void drawPolygon(String viewName, Polygon polygon, int pos_x, int pos_y, double scale);\n public void drawImage(String viewName, String path, int pos_x, int pos_y, int width, int height);\n public void drawText(String viewName, String text, int x, int y, int size);\n\n}",
"Object getViewDetails();",
"public interface View{\n void setupViews();\n void onClickSubmitReview();\n void showSuccessfullReviewSubmit();\n void showErrorSubmitReview();\n }",
"public void mo1637a(View view) {\n }",
"public interface IViewGetter<T,V extends View> {\n V createView(Context context);\n void initView(V view, T bean);\n}",
"public interface View {\n // If needed, Specify methods here that will be called on the view in response to model updates\n void register(android.view.View v);\n }",
"default View getView() {\n return null;\n }",
"private void initView() {\n\n }",
"protected <V extends View> V view( final int childViewIndex )\n {\n return updater.view( childViewIndex );\n }",
"@Override\n protected View getUpperView() {\n return null;\n }",
"@Override\n\tpublic void refreshView() {\n\n\t}",
"public interface TrackingView extends BaseView{\n\n\n}",
"protected abstract void initializeView();",
"public View getView() {\n return view;\n }",
"ViewComponent createViewComponent();",
"protected abstract void populateView(View v, T model);",
"public abstract void initViews();",
"public interface ILView {\n\n\tString getKey();\n\tObject get();\n\tboolean invalidate();\n\tvoid clear();\n\n}",
"void mo6505cu(View view);",
"public interface OwnEventsView extends BaseView {\n\n void adaptEventsList(List<EventModel> eventModelsList);\n\n void viewEvent(EventModel eventModel);\n\n void showViewRefreshing();\n\n void hideViewRefreshing();\n\n void hideViewEmpty();\n\n void showViewEmpty();\n\n}",
"Views getViews();",
"public abstract void mo2152a(View view);",
"protected abstract void initViews();",
"public View getView() {\n\t\treturn view;\n\t}",
"private void initViews() {\n\n\t}"
]
| [
"0.79268503",
"0.73391426",
"0.7279614",
"0.7279614",
"0.7237854",
"0.7205291",
"0.720124",
"0.72001845",
"0.7192455",
"0.7165331",
"0.7158269",
"0.7158269",
"0.7146037",
"0.7146037",
"0.7128039",
"0.7128039",
"0.7121517",
"0.7110498",
"0.7031584",
"0.7031584",
"0.7031021",
"0.7018812",
"0.7017702",
"0.6988741",
"0.6974641",
"0.69651204",
"0.6960166",
"0.6941223",
"0.6928521",
"0.6927178",
"0.69264454",
"0.69105405",
"0.6881361",
"0.68672323",
"0.68657845",
"0.68657845",
"0.6834851",
"0.68194324",
"0.6818871",
"0.68123615",
"0.67945594",
"0.6787461",
"0.6782551",
"0.67655253",
"0.67655253",
"0.6759755",
"0.6753691",
"0.67280114",
"0.67241013",
"0.6698246",
"0.6687603",
"0.6680913",
"0.6680913",
"0.6680913",
"0.6680913",
"0.6680913",
"0.6680913",
"0.6680913",
"0.66760385",
"0.6671785",
"0.66652215",
"0.66652215",
"0.66652215",
"0.66652215",
"0.6655728",
"0.6637347",
"0.6631093",
"0.6623758",
"0.66229284",
"0.66173106",
"0.66093427",
"0.6594807",
"0.6593026",
"0.65813726",
"0.65788484",
"0.6572065",
"0.656679",
"0.65627337",
"0.65569896",
"0.65548897",
"0.6528772",
"0.6515291",
"0.65054226",
"0.6491737",
"0.6487928",
"0.6472716",
"0.6466408",
"0.64463747",
"0.64451516",
"0.64430225",
"0.6438211",
"0.6425413",
"0.6420962",
"0.6394002",
"0.6392068",
"0.638188",
"0.6371584",
"0.6364303",
"0.63586986",
"0.63540614",
"0.63471293"
]
| 0.0 | -1 |
////////////////////////////////////////////////////////////////////// ScaleGestureDetector.OnScaleGestureListener impl ////////////////////////////////////////////////////////////////////// | @Override
public boolean onScale(ScaleGestureDetector scaleGestureDetector) {
zoom *= scaleGestureDetector.getScaleFactor();
recalculateView();
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void onScaleEnd(ScaleGestureDetector detector) {\n\t}",
"@Override\n\tpublic void onScaleEnd(ScaleGestureDetector detector) {\n\t}",
"@Override\n public void onScaleEnd(ScaleGestureDetector detector) {\n }",
"private class <init> extends android.view.ScaleGestureListener\n{\n\n final TouchImageView this$0;\n\n public boolean onScale(ScaleGestureDetector scalegesturedetector)\n {\n TouchImageView.access$20(TouchImageView.this, scalegesturedetector.getScaleFactor(), scalegesturedetector.getFocusX(), scalegesturedetector.getFocusY(), true);\n if (TouchImageView.access$19(TouchImageView.this) != null)\n {\n TouchImageView.access$19(TouchImageView.this).onMove();\n }\n return true;\n }",
"@Override\n public boolean onScale(ScaleGestureDetector detector) {\n return false;\n }",
"@Override\n public boolean onScale(ScaleGestureDetector detector) {\n return false;\n }",
"@Override\n public boolean onScale(ScaleGestureDetector detector) {\n return false;\n }",
"void onScaleChange(float scaleFactor, float focusX, float focusY);",
"public static interface OnScaleChangeListener {\n /**\n * Callback for when the scale changes\n *\n * @param scaleFactor the scale factor (<1 for zoom out, >1 for zoom in)\n * @param focusX focal point X position\n * @param focusY focal point Y position\n */\n void onScaleChange(float scaleFactor, float focusX, float focusY);\n }",
"@Override\n public boolean onScaleBegin(ScaleGestureDetector detector) {\n return true;\n }",
"@Override\n public boolean onScaleBegin(ScaleGestureDetector detector) {\n return true;\n }",
"@Override\n public boolean onScaleBegin(ScaleGestureDetector detector) {\n return true;\n }",
"protected abstract void onScalePercentChange(int zoom);",
"@Override\n public boolean onScale(ScaleGestureDetector detector) {\n\n Matrix mMatrix = new Matrix();\n //缩放比例\n float scale = detector.getScaleFactor() / 3;\n mMatrix.setScale(scale, scale);\n\n //锁定整个SurfaceView\n Canvas mCanvas = mSurfaceHolder.lockCanvas();\n //清屏\n mCanvas.drawColor(Color.BLACK);\n //画缩放后的图\n mCanvas.drawBitmap(mBitmap, mMatrix, null);\n //绘制完成,提交修改\n mSurfaceHolder.unlockCanvasAndPost(mCanvas);\n //重新锁一次\n mSurfaceHolder.lockCanvas(new Rect(0, 0, 0, 0));\n mSurfaceHolder.unlockCanvasAndPost(mCanvas);\n\n return false;\n }",
"private void onScaleClick() {\n PropertyValuesHolder scaleXHolder = PropertyValuesHolder.ofFloat(\"scaleX\", 1.5f);\r\n PropertyValuesHolder scaleYHolder = PropertyValuesHolder.ofFloat(\"scaleY\", 1.5f);\r\n Animator scaleAnimator = ObjectAnimator.ofPropertyValuesHolder(\r\n animatedView, scaleXHolder, scaleYHolder);\r\n scaleAnimator.setDuration(animationDuration);\r\n scaleAnimator.setInterpolator(new AccelerateDecelerateInterpolator());\r\n scaleAnimator.start();\r\n }",
"@Override\n public boolean dispatchTouchEvent(MotionEvent event) {\n super.dispatchTouchEvent ( event );\n\n mScaleGestureDetector.onTouchEvent ( event );\n return mScaleGestureDetector.onTouchEvent ( event );\n\n }",
"@Override \n public boolean onTouchEvent(MotionEvent ev) {\n mScaleDetector.onTouchEvent(ev);\n \t\n final int action = ev.getAction();\n switch (action & MotionEvent.ACTION_MASK) {\n\t case MotionEvent.ACTION_DOWN: {\n\t float x = ev.getX();\n\t float y = ev.getY();\n\t \n\t mPreviousX = x;\n\t mPreviousY = y;\n\t\n\t // Save the ID of this pointer\n\t mActivePointerId = ev.getPointerId(0);\n\t break;\n\t }\n\t case MotionEvent.ACTION_MOVE: {\n\t final int pointerIndex = ev.findPointerIndex(mActivePointerId);\n\t final float x = ev.getX(pointerIndex);\n\t final float y = ev.getY(pointerIndex);\n\t \n\t if (!mScaleDetector.isInProgress()) {\n\t\t float dx = x - mPreviousX;\n\t\t float dy = y - mPreviousY;\n\t\t Shared.renderer().mAngleX += dx * TOUCH_SCALE_FACTOR;\n\t\t Shared.renderer().mAngleY += dy * TOUCH_SCALE_FACTOR;\n\t\t requestRender();\n\t }\n\t \n\t mPreviousX = x;\n\t mPreviousY = y;\n\t break;\n\t }\n\t \n\t case MotionEvent.ACTION_UP: {\n\t mActivePointerId = INVALID_POINTER_ID;\n\t break;\n\t }\n\t \n\t case MotionEvent.ACTION_CANCEL: {\n\t mActivePointerId = INVALID_POINTER_ID;\n\t break;\n\t }\n\t \n\t case MotionEvent.ACTION_POINTER_UP: {\n\t // Extract the index of the pointer that left the touch sensor\n\t final int pointerIndex = (action & MotionEvent.ACTION_POINTER_INDEX_MASK) \n\t >> MotionEvent.ACTION_POINTER_INDEX_SHIFT;\n\t final int pointerId = ev.getPointerId(pointerIndex);\n\t if (pointerId == mActivePointerId) {\n\t // This was our active pointer going up. Choose a new\n\t // active pointer and adjust accordingly.\n\t final int newPointerIndex = pointerIndex == 0 ? 1 : 0;\n\t mPreviousX = ev.getX(newPointerIndex);\n\t mPreviousY = ev.getY(newPointerIndex);\n\t mActivePointerId = ev.getPointerId(newPointerIndex);\n\t }\n\t break;\n\t }\n }\n return true;\n }",
"@Override\n public void setScale(float scale) {\n this.scale = scale;\n }",
"@Override\r\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\tLog.i(\"lyc\", \"touched---------------\");\r\n\t\tswitch (event.getAction() & MotionEvent.ACTION_MASK) {\r\n\t\tcase MotionEvent.ACTION_POINTER_DOWN:\r\n\t\t\tbeforeLenght = spacing(event);\r\n\t\t\tif (beforeLenght > 5f) {\r\n\t\t\t\tisScale = true;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase MotionEvent.ACTION_MOVE:\r\n\t\t\t/* 处理拖动 */\r\n\t\t\t// if (isScale) {\r\n\t\t\t// afterLenght = spacing(event);\r\n\t\t\t// if (afterLenght < 5f)\r\n\t\t\t// break;\r\n\t\t\t// float gapLenght = afterLenght - beforeLenght;\r\n\t\t\t// if (gapLenght == 0) {\r\n\t\t\t// break;\r\n\t\t\t// } else if (Math.abs(gapLenght) > 5f) {\r\n\t\t\t// float scaleRate = gapLenght / 854;\r\n\t\t\t// Animation myAnimation_Scale = new ScaleAnimation(\r\n\t\t\t// currentScale, currentScale + scaleRate,\r\n\t\t\t// currentScale, currentScale + scaleRate,\r\n\t\t\t// Animation.RELATIVE_TO_SELF, 0.5f,\r\n\t\t\t// Animation.RELATIVE_TO_SELF, 0.5f);\r\n\t\t\t// myAnimation_Scale.setDuration(100);\r\n\t\t\t// myAnimation_Scale.setFillAfter(true);\r\n\t\t\t// myAnimation_Scale.setFillEnabled(true);\r\n\t\t\t// currentScale = currentScale + scaleRate;\r\n\t\t\t// gallery.getSelectedView().setLayoutParams(\r\n\t\t\t// new Gallery.LayoutParams(\r\n\t\t\t// (int) (480 * (currentScale)),\r\n\t\t\t// (int) (854 * (currentScale))));\r\n\t\t\t// beforeLenght = afterLenght;\r\n\t\t\t// }\r\n\t\t\t// return true;\r\n\t\t\t// }\r\n\t\t\tbreak;\r\n\t\tcase MotionEvent.ACTION_POINTER_UP:\r\n\t\t\tisScale = false;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"public void setScale(float scale) {\n this.scale = scale;\n }",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public void setScale(final float scale) {\n if (equal(mScale, scale) != true) {\n Log.d(TAG, \"setScale(): old: %.2f, new: %.2f\", mScale, scale);\n mScale = scale;\n setScale(mSceneRootObject, scale);\n setScale(mMainCameraRootObject, scale);\n setScale(mLeftCameraRootObject, scale);\n setScale(mRightCameraRootObject, scale);\n for (OnScaledListener listener : mOnScaledListeners) {\n try {\n listener.onScaled(scale);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(TAG, e, \"setScale()\");\n }\n }\n }\n }",
"public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"protected void zoomToScale(float scale) {\n \t\tif (tweening) {\n \t\t\tscaleIntegrator.target(scale);\n \t\t} else {\n \t\t\tmapDisplay.sc = scale;\n \t\t\t// Also update Integrator to support correct tweening after switch\n \t\t\tscaleIntegrator.target(scale);\n \t\t\tscaleIntegrator.set(scale);\n \t\t}\n \t}",
"@Override\n\t\tpublic void onChartScale(MotionEvent me, float scaleX, float scaleY) {\n\t\t\tsyncCharts();\n\t\t}",
"public void setScale(float scale);",
"public void setCanScale(boolean scale){\n mScale = scale;\n }",
"public interface GridPaneScaledListener extends java.util.EventListener {\n\n /**\n * Called when the scale of the GridPane has been changed.\n *\n * @param e GridPaneScaledEvent to process\n */\n public void gridPaneScaled (GridPaneScaledEvent e);\n}",
"public void setScalePublic(float scale) {\n\t\tdouble posXTmp = posX;\n\t\tdouble posYTmp = posY;\n\t\tdouble posZTmp = posZ;\n\t\tboolean onGroundTmp = onGround;\n\n\t\tsetScale(scale);\n\n\t\t// workaround for a vanilla bug; the position is apparently not set correcty\n\t\t// after changing the entity size, causing asynchronous server/client positioning\n\t\tsetPosition(posXTmp, posYTmp, posZTmp);\n\n\t\t// otherwise, setScale stops the dragon from landing while it is growing\n\t\tonGround = onGroundTmp;\n\t}",
"public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}",
"public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}",
"@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}",
"public boolean hasScale() { return hasScale; }",
"public void setScaleMotionListeners(\r\n\t\t\tList<OrthoScaleMotionListener> scaleMotionListeners) {\r\n\t\tthis.scaleMotionListeners = scaleMotionListeners;\r\n\t}",
"public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }",
"public void scaleBy(float scale) {\n internalGroup.scaleBy(scale);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n\n }",
"public void setScale(float scale) {\n setLocalScale(scale);\n }",
"private void scaleImagePanel(float scale){\n float oldZoom = imagePanel.getScale();\n float newZoom = oldZoom+scale;\n Rectangle oldView = scrollPane.getViewport().getViewRect();\n // resize the panel for the new zoom\n imagePanel.setScale(newZoom);\n // calculate the new view position\n Point newViewPos = new Point();\n newViewPos.x = (int)(Math.max(0, (oldView.x + oldView.width / 2) * newZoom / oldZoom - oldView.width / 2));\n newViewPos.y = (int)(Math.max(0, (oldView.y + oldView.height / 2) * newZoom / oldZoom - oldView.height / 2));\n scrollPane.getViewport().setViewPosition(newViewPos);\n }",
"public void setScale(double scale) {\n\t\tdouble tx = this.transform.getTranslateX();\n\t\tdouble ty = this.transform.getTranslateY();\n\t\tthis.transform.setToScale(scale, scale);\n\t\tthis.transform.translate(tx, ty);\n\t}",
"ScaleType getScale();",
"public void scale(float scale) {\n if (scale != 1.0f) {\n left = (int) (left * scale + 0.5f);\n top = (int) (top * scale + 0.5f);\n right = (int) (right * scale + 0.5f);\n bottom = (int) (bottom * scale + 0.5f);\n }\n }",
"public float getScale();",
"protected abstract void handleZoom();",
"@Override\n public float getScale() {\n return scale;\n }",
"public ImageScale getScale() {\n return this.scale;\n }",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"public double getScale(\n )\n {return scale;}",
"private double scale (double curr, double goal, double scale, double threshold) {\n return (Math.abs(goal - curr) < threshold ?\n goal : goal * scale + curr * (1 - scale));\n }",
"public boolean onTouch(android.view.View r4, android.view.MotionEvent r5) {\r\n /*\r\n r3 = this;\r\n boolean r4 = r3.mAnimatingZoomEnding\r\n r0 = 1\r\n if (r4 != 0) goto L_0x008f\r\n int r4 = r5.getPointerCount()\r\n r1 = 2\r\n if (r4 <= r1) goto L_0x000e\r\n goto L_0x008f\r\n L_0x000e:\r\n android.view.ScaleGestureDetector r4 = r3.mScaleGestureDetector\r\n r4.onTouchEvent(r5)\r\n android.view.GestureDetector r4 = r3.mGestureDetector\r\n r4.onTouchEvent(r5)\r\n int r4 = r5.getAction()\r\n r4 = r4 & 255(0xff, float:3.57E-43)\r\n if (r4 == 0) goto L_0x0079\r\n if (r4 == r0) goto L_0x006a\r\n if (r4 == r1) goto L_0x002e\r\n r2 = 3\r\n if (r4 == r2) goto L_0x006a\r\n r2 = 5\r\n if (r4 == r2) goto L_0x0079\r\n r5 = 6\r\n if (r4 == r5) goto L_0x006a\r\n goto L_0x008f\r\n L_0x002e:\r\n int r4 = r3.mState\r\n if (r4 != r1) goto L_0x008f\r\n android.graphics.PointF r4 = r3.mCurrentMovementMidPoint\r\n com.ablanco.zoomy.MotionUtils.midPointOfEvent(r4, r5)\r\n android.graphics.PointF r4 = r3.mCurrentMovementMidPoint\r\n float r5 = r4.x\r\n android.graphics.PointF r1 = r3.mInitialPinchMidPoint\r\n float r2 = r1.x\r\n float r5 = r5 - r2\r\n r4.x = r5\r\n float r5 = r4.y\r\n float r1 = r1.y\r\n float r5 = r5 - r1\r\n r4.y = r5\r\n float r5 = r4.x\r\n android.graphics.Point r1 = r3.mTargetViewCords\r\n int r2 = r1.x\r\n float r2 = (float) r2\r\n float r5 = r5 + r2\r\n r4.x = r5\r\n float r5 = r4.y\r\n int r1 = r1.y\r\n float r1 = (float) r1\r\n float r5 = r5 + r1\r\n r4.y = r5\r\n float r5 = r4.x\r\n float r4 = r4.y\r\n android.widget.ImageView r1 = r3.mZoomableView\r\n r1.setX(r5)\r\n android.widget.ImageView r5 = r3.mZoomableView\r\n r5.setY(r4)\r\n goto L_0x008f\r\n L_0x006a:\r\n int r4 = r3.mState\r\n if (r4 == r0) goto L_0x0075\r\n if (r4 == r1) goto L_0x0071\r\n goto L_0x008f\r\n L_0x0071:\r\n r3.endZoomingView()\r\n goto L_0x008f\r\n L_0x0075:\r\n r4 = 0\r\n r3.mState = r4\r\n goto L_0x008f\r\n L_0x0079:\r\n int r4 = r3.mState\r\n if (r4 == 0) goto L_0x008d\r\n if (r4 == r0) goto L_0x0080\r\n goto L_0x008f\r\n L_0x0080:\r\n r3.mState = r1\r\n android.graphics.PointF r4 = r3.mInitialPinchMidPoint\r\n com.ablanco.zoomy.MotionUtils.midPointOfEvent(r4, r5)\r\n android.view.View r4 = r3.mTarget\r\n r3.startZoomingView(r4)\r\n goto L_0x008f\r\n L_0x008d:\r\n r3.mState = r0\r\n L_0x008f:\r\n return r0\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.ablanco.zoomy.ZoomableTouchListener.onTouch(android.view.View, android.view.MotionEvent):boolean\");\r\n }",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"void addGestureHandler(GestureEventListener listener);",
"public float getScale() {\n return this.scale;\n }",
"public void visitScale( DevCat devCat ) {}",
"public List<OrthoScaleMotionListener> getScaleMotionListeners() {\r\n\t\treturn scaleMotionListeners;\r\n\t}",
"void onResized(int width, int height);",
"@Override\n\tpublic void handleScale(float scale, int moveYDistance) {\n\t\t scale = 0.6f + 0.4f * scale;\n//\t ViewCompat.setScaleX(mMoocRefreshView, scale);\n//\t ViewCompat.setScaleY(mMoocRefreshView, scale);\n\t}",
"public float getScale() {\n \t\treturn scale;\n \t}",
"public double getScale(){\n\t\treturn scale;\n\t}",
"public void onResized(Integer width,Integer height);",
"public void setScaleStart(double scaleStart) {\n\t\tm_dScaleStart = scaleStart;\n\t}",
"public void scale(float scale, float scale2) {\n\t\t\n\t}",
"public Scale getScale() {\n return this.scale;\n }",
"public float getScale()\n\t{\n\t\treturn scale;\n\t}",
"public double getScale() {\n return scale;\n }",
"public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }",
"public void scale(float x, float y);",
"public void adjustZoomLvl(double scale){\n zoomLevel = ZoomCalculator.calculateZoom(scale);\n scale = ZoomCalculator.setScale(zoomLevel);\n transform.setToScale(scale, -scale);\n }",
"public void zoomScale(double scaleDelta) {\n \t\tzoomToScale((float) (mapDisplay.sc * scaleDelta));\n \t}",
"public void zoomScaleIn() {\n \t\tzoomScale(SCALE_DELTA_IN);\n \t}",
"public void setScale(double value) {\n this.scale = value;\n }",
"public abstract void onPull(float scaleOfLayout);",
"public void setScaleEnd(double scaleEnd) {\n\t\tm_dScaleEnd = scaleEnd;\n\t}",
"public float getScale() {\n\t\treturn scale;\n\t}",
"public double getScale() {\r\n return scale;\r\n }",
"public double getScale() {\n return this.scale;\n }",
"@Override\n public void onScale(float ratio){\n isReady = true;\n mRatio = ratio;\n }",
"public void scaleTransform(Vector3f scale) {\r\n\t\tm[0][0] = scale.x; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = 0.0f;\r\n\t\tm[1][0] = 0.0f; m[1][1] = scale.y; m[1][2] = 0.0f; m[1][3] = 0.0f;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = scale.z; m[2][3] = 0.0f;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\r\n\t}",
"@Override\r\n\t\t\tpublic void handle(ScrollEvent e) {\n\t\t\t\tif (e.isControlDown() && getSkinnable().isScalableOnScroll()) {\r\n\t\t\t\t\tdouble delta = e.getDeltaY();\r\n\t\t\t\t\tdouble newValue = localScaleFactor.get();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue + ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue > ZOOM_MAX) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MAX;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the zoom.\r\n\t\t\t\t\t\tnewValue = newValue - ZOOM_DELTA;\r\n\t\t\t\t\t\tif (newValue < ZOOM_MIN) {\r\n\t\t\t\t\t\t\tnewValue = ZOOM_MIN;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlocalScaleFactor.set(newValue);\r\n\t\t\t\t\ttakeSnap(prevX.get(), prevY.get());\r\n\t\t\t\t}\r\n\t\t\t\t// If scrolled with ALT key press\r\n\t\t\t\telse if (e.isAltDown() && getSkinnable().isResizableOnScroll()) {\r\n\t\t\t\t\tfinal double delta = e.getDeltaY();\r\n\t\t\t\t\tif (delta > 0) { // Increasing the size.\r\n\t\t\t\t\t\tlocalRadius.set(localRadius.get() + RADIUS_DELTA);\r\n\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\r\n\t\t\t\t\t} else if (delta < 0) { // Decreasing the size.\r\n\t\t\t\t\t\tif (localRadius.get() > MIN_RADIUS) {\r\n\t\t\t\t\t\t\tlocalRadius.set(localRadius.get() - RADIUS_DELTA);\r\n\t\t\t\t\t\t\tshiftViewerContent(prevX.get(), prevY.get(), localRadius.get(), localScaleFactor.get());\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}",
"public double getScale() {\r\n\t\treturn scale;\r\n\t}",
"public double getScale() {\n return scale;\n }",
"public TiledView setScales(AxisScale hscale, AxisScale vscale) {\n return null;\n }",
"void setScale(ScaleSelector sensor, int scaleNo);",
"public void scale(double s);",
"int getScale();",
"void scale(double factor);",
"void onZoom() {\n\t\tmZoomPending=true;\n\t}",
"public void setScaled(long _scaled) {\n\t\tscaled = _scaled;\n\t}",
"public void scale(Vector2 scale)\n\t{\n\t\tthis.scaleBasis(scale);\n\t\tthis.matrix[2] = this.matrix[2].multiply(scale);\n\t}",
"public int getScale() {\n return scale_;\n }",
"public void setScale(double scale, double xscale, double yscale) {\n\t\tif (this.scale != scale || this.xscale != xscale || this.yscale != yscale) {\n\t\t\tthis.scale = scale;\n\t\t\tthis.xscale = xscale;\n\t\t\tthis.yscale = yscale;\n\n\t\t\t// calculate the absolute coordinates and dimensions on the base\n\t\t\t// of the given scale parameters\n\t\t\tint x = (int) (xRel * xscale);\n\t\t\tint y = (int) (yRel * yscale);\n\t\t\tint width = (int) (widthRel * scale);\n\t\t\tint height = (int) (heightRel * scale);\n\n\t\t\t// the border rope holders must always be at the border\n\t\t\t// small rounding failures are eliminated here\n\t\t\tif (this instanceof Seilaufhaenger) {\n\t\t\t\tSeilaufhaenger aufhaenger = (Seilaufhaenger) this;\n\t\t\t\tif (!aufhaenger.isUnderTreibscheibe()) {\n\t\t\t\t\tif (aufhaenger.getHimmel() == Seilaufhaenger.NORD) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.SUED) {\n\t\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\t\tx = 1;\n\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t} else if (aufhaenger.getHimmel() == Seilaufhaenger.WEST) {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\t\t\tif (y < 1)\n\t\t\t\t\t\t\ty = 1;\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\t}\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\tsetLocation(x, y);\n\t\t\t\t} else {\n\t\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\t\tif (x < 1)\n\t\t\t\t\t\tx = 1;\n\t\t\t\t\t// moves and resizes the element\n\t\t\t\t\tsetSize(width, height);\n\t\t\t\t\t// setLocation(x, y);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (x > aufzugschacht.getWidth() - width - 1)\n\t\t\t\t\tx = aufzugschacht.getWidth() - width - 1;\n\t\t\t\tif (y > aufzugschacht.getHeight() - width - 1)\n\t\t\t\t\ty = aufzugschacht.getHeight() - height - 1;\n\t\t\t\tif (x < 1)\n\t\t\t\t\tx = 1;\n\t\t\t\tif (y < 1)\n\t\t\t\t\ty = 1;\n\t\t\t\t// moves and resizes the element\n\t\t\t\tsetSize(width, height);\n\t\t\t\tsetLocation(x, y);\n\t\t\t}\n\t\t}\n\t}",
"public void setScale(float scaleX, float scaleY) {\n internalGroup.setScale(scaleX, scaleY);\n dataTrait.scaleX = scaleX;\n dataTrait.scaleY = scaleY;\n resetSprite();\n }",
"public void addZoomListener(ZoomListener listener) {\n\tlisteners.add(listener);\n}",
"public void zoomIn() {\n if (scale < 0.8) {\n double scaleFactor = (scale + 0.03) / scale;\n currentXOffset = scaleFactor * (currentXOffset - viewPortWidth / 2) + viewPortWidth / 2;\n currentYOffset = scaleFactor * (currentYOffset - viewPortHeight / 2) + viewPortHeight / 2;\n scale += 0.03;\n\n selectionChanged = true;\n gameChanged = true;\n }\n\n }",
"@Override\n\t\tpublic void OnDoubleFingerStartZoom(MotionEvent ev) {\n\n\t\t}",
"public void setScale(int scale) {\n\t\tif ((numberType == NumericFieldType.DOUBLE) && (scale <= 0)) {\n\t\t\tnumberType = NumericFieldType.INTEGER;\n\t\t}\n\t\tthis.scale = scale;\n\t\trequestRepaint();\n\t}",
"public void onTouch(int scaledX, int scaledY, PlayState playState) {\n resumeButton.onTouchDown(scaledX, scaledY);\n restartButton.onTouchDown(scaledX, scaledY);\n instructionsButton.onTouchDown(scaledX, scaledY);\n saveGameButton.onTouchDown(scaledX,scaledY);\n quitButton.onTouchDown(scaledX, scaledY);\n backArrowButton.onTouchDown(scaledX,scaledY);\n\n resumeButtonOnTouch(scaledX, scaledY, playState);\n restartButtonOnTouch(scaledX, scaledY, playState);\n instructionsButtonOnTouch(scaledX, scaledY, playState);\n saveGameButtonOnTouch(scaledX, scaledY, playState);\n quitButtonOnTouch(scaledX, scaledY, playState);\n backArrowButtonOnTouch(scaledX, scaledY, playState);\n\n }",
"public void setScale(double scale) {\n double oldScale = scale;\n this.scale = scale;\n if (actor != null) {\n actor.SetScale(normalActorSize * scale);\n double[] x = new double[3];\n for (int i=0; i<3; i++) {\n axeTitleActor[i].SetScale(normalTitleSize * scale);\n for (int k=0; k<3; k++) x[k] = axeTitlePosition[i][k]*scale*normalActorSize;\n axeTitleActor[i].SetPosition(x);\n }\n }\n firePropertyChange(\"scale\", new Double(oldScale), new Double(scale));\n }",
"private void onScroll(double wheelDelta, Point2D mousePoint) {\n double zoomFactor = Math.exp(wheelDelta * zoomIntensity);\n\n Bounds innerBounds = zoomNode.getLayoutBounds();\n Bounds viewportBounds = getViewportBounds();\n\n // calculate pixel offsets from [0, 1] range\n double valX = this.getHvalue() * (innerBounds.getWidth() - viewportBounds.getWidth());\n double valY = this.getVvalue() * (innerBounds.getHeight() - viewportBounds.getHeight());\n scaleValue = scaleValue * zoomFactor;\n \n // calculate minimum zoom\n if(Math.max(target.getLayoutBounds().getWidth()*scaleValue, target.getLayoutBounds().getHeight()*scaleValue) < minViewPortSize) {\n\n \tscaleValue = minViewPortSize / Math.max(target.getLayoutBounds().getWidth(), target.getLayoutBounds().getHeight());\n updateScale();\n this.layout();\n \n } else if(scaleValue > zoom_max) {\n \tscaleValue = zoom_max;\n \tupdateScale();\n this.layout();\n }else {\n \tupdateScale();\n this.layout();\n\n // convert target coordinates to zoomTarget coordinates\n Point2D posInZoomTarget = target.parentToLocal(zoomNode.parentToLocal(mousePoint));\n\n // calculate adjustment of scroll position\n Point2D adjustment = target.getLocalToParentTransform().deltaTransform(posInZoomTarget.multiply(zoomFactor - 1));\n\n // convert back to [0, 1] range\n Bounds updatedInnerBounds = zoomNode.getBoundsInLocal();\n this.setHvalue((valX + adjustment.getX()) / (updatedInnerBounds.getWidth() - viewportBounds.getWidth()));\n this.setVvalue((valY + adjustment.getY()) / (updatedInnerBounds.getHeight() - viewportBounds.getHeight()));\n }\n }",
"public void gridPaneScaled (GridPaneScaledEvent e);"
]
| [
"0.75386494",
"0.7469598",
"0.73553205",
"0.7241531",
"0.6945962",
"0.6945962",
"0.6945962",
"0.69226885",
"0.6911964",
"0.6787455",
"0.6787455",
"0.6787455",
"0.6639282",
"0.65243906",
"0.6295962",
"0.6246675",
"0.61506206",
"0.6103163",
"0.6080111",
"0.6024774",
"0.6001399",
"0.59953403",
"0.59428793",
"0.59341425",
"0.5931911",
"0.5924798",
"0.5915079",
"0.5903526",
"0.58682895",
"0.58474344",
"0.58440965",
"0.5841482",
"0.5809053",
"0.58049875",
"0.57644224",
"0.57208854",
"0.5719122",
"0.5649633",
"0.5638359",
"0.55973035",
"0.5574758",
"0.55688804",
"0.55638844",
"0.5545439",
"0.55355763",
"0.54997164",
"0.5430211",
"0.5407217",
"0.54061806",
"0.54015875",
"0.53838617",
"0.53410625",
"0.53403115",
"0.5340003",
"0.5333678",
"0.5328511",
"0.5324478",
"0.5315165",
"0.53083056",
"0.53052336",
"0.52917033",
"0.5286313",
"0.52841294",
"0.5283082",
"0.5282652",
"0.52819437",
"0.52724344",
"0.52719927",
"0.5268014",
"0.52674747",
"0.5265602",
"0.5253223",
"0.52497476",
"0.5249225",
"0.52401316",
"0.5236719",
"0.52324814",
"0.5219033",
"0.52137995",
"0.52122015",
"0.5188807",
"0.5188183",
"0.5187289",
"0.51746386",
"0.5158842",
"0.5149732",
"0.5130008",
"0.5129648",
"0.5129495",
"0.51276004",
"0.5110719",
"0.5095206",
"0.5093772",
"0.50933254",
"0.5088155",
"0.5086096",
"0.5085939",
"0.50839543",
"0.50772023",
"0.5062374"
]
| 0.7214348 | 4 |
////////////////////////////////////////////////////////////////////// GestureDetector.OnGestureListener impl ////////////////////////////////////////////////////////////////////// | @Override
public boolean onDown(MotionEvent motionEvent) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addGestureHandler(GestureEventListener listener);",
"public interface GestureListener {\n\t/**\n\t * Invoked when the {@link Gesture} has just started (i.e. it passed from state POSSIBLE_DETECTION to state IN_PROGRESS).\n\t * This callback is invoked only for live gestures.\n\t * @param gesture The data associated to the gesture\n\t */\n\tpublic void onGestureStarted(GestureData gesture);\n\t/**\n\t * Invoked on each frame while the {@link Gesture} is in state IN_PROGRESS.\n\t * This callback is invoked only for live gestures.\n\t * @param gesture The data associated to the gesture\n\t */\n\tpublic void onGestureInProgress(GestureData gesture);\n\t/**\n\t * Invoked when the {@link Gesture} has completed (i.e. it passed from state IN_PROGESS to state COMPLETED).\n\t * This callback is always invoked (i.e. both on live and non-live gestures).\n\t * @param gesture The data associated to the gesture\n\t */\n\tpublic void onGestureCompleted(GestureData gesture);\n}",
"public interface SimpleGestureListener {\n void onSwipe(int direction);\n\n void onDoubleTap();\n}",
"public interface SimpleGestureListener {\n\n void onSwipe(int direction);\n void onDoubleTap();\n}",
"boolean onGestureStarted();",
"@Override //abstract method from OnGestureListener\n\tpublic boolean onDown(MotionEvent e){\n\t\treturn true;\n\t}",
"boolean onGestureCompleted(int gestureId);",
"@Override\n public boolean onTouchEvent(MotionEvent e) {\n return gestureDetector.onTouchEvent(e);\n }",
"@Override\r\n public boolean onTouch(View v, MotionEvent event) {\n\treturn mGestureDetector.onTouchEvent(event);\r\n }",
"@Override\n public boolean onTouchEvent(MotionEvent event)\n {\n return gestureDetector.onTouchEvent(event);\n }",
"void removeGestureHandler(GestureEventListener listener);",
"public void setOnGestureChangedListener(OnGestureChangedListener listener) {\n this.mOnGestureChangedListener = listener;\n }",
"@Override\n public void onChanged(SgestureHand.Info info) {\n handleGesture(info);\n }",
"public interface Listener {\n /**\n * Called when the user has performed a double tap and then held down\n * the second tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n */\n void onDoubleTapAndHold(MotionEvent event, int policyFlags);\n\n /**\n * Called when the user lifts their finger on the second tap of a double\n * tap.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n boolean onDoubleTap(MotionEvent event, int policyFlags);\n\n /**\n * Called when the system has decided the event stream is a gesture.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureStarted();\n\n /**\n * Called when an event stream is recognized as a gesture.\n *\n * @param gestureId ID of the gesture that was recognized.\n *\n * @return true if the event is consumed, else false\n */\n boolean onGestureCompleted(int gestureId);\n\n /**\n * Called when the system has decided an event stream doesn't match any\n * known gesture.\n *\n * @param event The most recent MotionEvent received.\n * @param policyFlags The policy flags of the most recent event.\n *\n * @return true if the event is consumed, else false\n */\n public boolean onGestureCancelled(MotionEvent event, int policyFlags);\n }",
"@Override\n public boolean onTouchEvent( MotionEvent event )\n {\n if ( gesture_detector.onTouchEvent( event ) )\n {\n return true;\n }\n else\n {\n return super.onTouchEvent( event );\n }\n }",
"@Override\r\n\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\r\n\t\treturn this.mGestureDetector.onTouchEvent( event );\r\n\t}",
"private GestureDetector createGestureDetector(Context context) {\n final Context c = context;\r\n\r\n GestureDetector gestureDetector = new GestureDetector(context);\r\n //Create a base listener for generic gestures\r\n gestureDetector.setBaseListener( new GestureDetector.BaseListener() {\r\n @Override\r\n public boolean onGesture(Gesture gesture) {\r\n if (gesture == Gesture.TAP) {\r\n am.playSoundEffect(Sounds.TAP);\r\n // do something on tap\r\n if(currentCardIndex == 0) {\r\n Intent listening = new Intent(c, VoiceRecognitionActivity.class);\r\n startActivity(listening);\r\n }\r\n else if(currentCardIndex == 1){\r\n Intent learning = new Intent(c, LessonActivity.class);\r\n startActivity(learning);\r\n }\r\n else if(currentCardIndex == 2){\r\n Intent learning = new Intent(c, QueryActivity.class);\r\n startActivity(learning);\r\n }\r\n else if(currentCardIndex == 3){\r\n Intent learning = new Intent(c, GPSActivity.class);\r\n startActivity(learning);\r\n }\r\n return true;\r\n } else if (gesture == Gesture.TWO_TAP) {\r\n // do something on two finger tap\r\n return true;\r\n } else if (gesture == Gesture.SWIPE_RIGHT) {\r\n // do something on right (forward) swipe\r\n am.playSoundEffect(Sounds.SELECTED);\r\n if(currentCardIndex < 3) {\r\n currentCardIndex++;\r\n setContentView(menuCards.get(currentCardIndex).getView());\r\n }\r\n return true;\r\n } else if (gesture == Gesture.SWIPE_LEFT) {\r\n // do something on left (backwards) swipe\r\n am.playSoundEffect(Sounds.SELECTED);\r\n if(currentCardIndex > 0) {\r\n currentCardIndex--;\r\n setContentView(menuCards.get(currentCardIndex).getView());\r\n }\r\n return true;\r\n }\r\n return false;\r\n }\r\n });\r\n gestureDetector.setFingerListener(new GestureDetector.FingerListener() {\r\n @Override\r\n public void onFingerCountChanged(int previousCount, int currentCount) {\r\n // do something on finger count changes\r\n }\r\n });\r\n gestureDetector.setScrollListener(new GestureDetector.ScrollListener() {\r\n @Override\r\n public boolean onScroll(float displacement, float delta, float velocity) {\r\n // do something on scrolling\r\n return false;\r\n }\r\n });\r\n return gestureDetector;\r\n }",
"public interface GestureHandler {\r\n /**\r\n * It will be called when a specific gesture triggered.\r\n * You can implement the handler logic in this method. Such as , launch a application.\r\n * @param metaData GestureMetaData\r\n */\r\n void onActive(GestureMetaData metaData);\r\n\r\n /**\r\n * It will be called when the user release the finger in HOVER mode.\r\n * In this function you can release resource. Wait for the next called.\r\n */\r\n void onExit();\r\n\r\n /**\r\n * Return the gestureType if onActive is triggered. Otherwise return -1;\r\n * @return gestureType\r\n */\r\n int isActive();\r\n\r\n /**\r\n * Settings\r\n * @return\r\n */\r\n List<GestureHandlerSetting> settings();\r\n\r\n String name();\r\n\r\n int icon();\r\n\r\n}",
"@Override\r\n\tpublic boolean onTouchEvent(MotionEvent event) {\n\t\tthis.mGestureDetector.onTouchEvent( event );\r\n\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n if (mGestureDetector != null) {\n return mGestureDetector.onMotionEvent(event);\n }\n return super.onGenericMotionEvent(event);\n }",
"public boolean onDown(MotionEvent e) { return true; }",
"public interface GestureRecorderListener {\n\n void onGestureRecorded(List<float[]> values);\n\n IBinder getBinder();\n\n void startClassification(String defaultGesture);\n}",
"public Listener getGestureListener() {\n return this.mGestureListener;\n }",
"@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n if (mGestureDetector != null) {\n return mGestureDetector.onMotionEvent(event);\n }\n return false;\n }",
"@Override\n public void onDownMotionEvent() {\n \n }",
"@Override\r\n\tpublic boolean dispatchTouchEvent(MotionEvent ev) {\n\t\tmGestureDetector.onTouchEvent(ev);\r\n\t\treturn super.dispatchTouchEvent(ev);\r\n\t}",
"Gesture<E> getGesture();",
"@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false; // was false\n\t}",
"@Override\n\tpublic boolean onTouch(View view, MotionEvent event) {\n\t\treturn this._gestureDetector.onTouchEvent(event);\n\t}",
"@Override\r\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\tSystem.out.println(\"onDown\");\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean onDown(MotionEvent e) {\n return true;\n }",
"public interface HandWaveGestureListener {\n\n /**\n * Invoked when a hand wave gesture is detected.\n */\n void onHandWaveGesture();\n}",
"@SuppressLint(\"ClickableViewAccessibility\")\n @Override\n public boolean onTouchEvent(MotionEvent event) {\n return gestureHandler.onTouchEvent(event);\n }",
"@Override\n\t\t\tpublic boolean onDown(MotionEvent arg0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public void onTouchEvent(RecyclerView rv, MotionEvent e) {\n }",
"@Override\n public boolean onTouchEvent(MotionEvent e) {\n final boolean ret = super.onTouchEvent(e);\n\n int action = e.getActionMasked();\n if (action == MotionEvent.ACTION_UP) {\n if (!mWasFlingCalledForGesture) {\n ((CarLayoutManager) getLayoutManager()).settleScrollForFling(this, 0);\n }\n mWasFlingCalledForGesture = false;\n }\n\n return ret;\n }",
"@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n return mGestureDetector.onMotionEvent(event)\n || super.onGenericMotionEvent(event);\n }",
"public interface TouchHandler extends View.OnTouchListener {\n public boolean isTouchDown(int pointer);\n public int getTouchX(int pointer);\n public int getTouchY(int pointer);\n public List<Input.TouchEvent> getTouchEvents();\n}",
"@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\treturn false;\n\t}",
"@Override\n @SuppressLint(\"ClickableViewAccessibility\")\n public boolean onTouchEvent(MotionEvent ev) {\n if (mScroller != null && mScroller.onTouchEvent(ev)) return true;\n if (mScroller != null && mGestureDetector == null) {\n mGestureDetector = new GestureDetector(getContext(), new GestureDetector.SimpleOnGestureListener() {\n @Override\n public boolean onFling(MotionEvent e1, MotionEvent e2, float velocityX, float velocityY) {\n // If fling happens, index bar shows\n mScroller.show();\n return super.onFling(e1, e2, velocityX, velocityY);\n }\n });\n }\n if (mGestureDetector != null) mGestureDetector.onTouchEvent(ev);\n if (mScroller != null && ev.getAction() == MotionEvent.ACTION_UP) postInvalidate();\n return super.onTouchEvent(ev);\n }",
"private class <init> extends android.view.ScaleGestureListener\n{\n\n final TouchImageView this$0;\n\n public boolean onScale(ScaleGestureDetector scalegesturedetector)\n {\n TouchImageView.access$20(TouchImageView.this, scalegesturedetector.getScaleFactor(), scalegesturedetector.getFocusX(), scalegesturedetector.getFocusY(), true);\n if (TouchImageView.access$19(TouchImageView.this) != null)\n {\n TouchImageView.access$19(TouchImageView.this).onMove();\n }\n return true;\n }",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\treturn gestureScanner.onTouchEvent(event);\n\n\t\t\t}",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n\n mGestureDetector.onTouchEvent(event);\n\n final int action = event.getActionMasked();\n final int x = (int) event.getRawX();\n final int y = (int) event.getRawY();\n\n switch (action) {\n case MotionEvent.ACTION_DOWN:\n mDownX = x;\n mDownY = y;\n mLastX = x;\n mLastY = y;\n mDragStarted = false;\n setPressed(true);\n break;\n\n case MotionEvent.ACTION_MOVE:\n int dx = x - mLastX;\n int dy = y - mLastY;\n mLastX = x;\n mLastY = y;\n\n if (!mDragStarted) {\n if (Math.abs(x - mDownX) > mTouchSlop || Math.abs(y - mDownY) > mTouchSlop) {\n mDragStarted = true;\n if (mCallbacks != null) {\n mCallbacks.onDragStart(x, y);\n }\n }\n }\n\n if (mDragStarted) {\n if (mCallbacks != null) {\n mCallbacks.onDrag(dx, dy);\n }\n }\n break;\n\n case MotionEvent.ACTION_CANCEL:\n case MotionEvent.ACTION_UP:\n setPressed(false);\n if (mCallbacks != null) {\n mCallbacks.onDragEnd(x, y);\n }\n break;\n\n default:\n break;\n }\n\n return true;\n }",
"@Override\r\n public boolean onGenericMotionEvent(MotionEvent event) {\r\n if(loading) {\r\n //open up the general menu\r\n setContentView(menuCards.get(0).getView());\r\n loading = false;\r\n return true;\r\n }\r\n else{\r\n if (mGestureDetector != null) {\r\n return mGestureDetector.onMotionEvent(event);\r\n }\r\n return false;\r\n }\r\n }",
"@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n logger.debug(\"Generic motion event has occurred!\");\n return glassGestureDetector.onMotionEvent(event);\n }",
"@Override\n public boolean onDown(MotionEvent arg0) {\n return false;\n }",
"private void onSwipeRight() {\n\t\tcurrentGestureDetected = \"direita\";\r\n\t\t\r\n\t}",
"public BtnOnOffListener(){\r\n\t\t\t\t\r\n\t\t\tprocessGestureEventHelper( false);\r\n\t\t}",
"public static interface OnViewTapListener {\n\n /**\n * A callback to receive where the user taps on a ImageView. You will receive a callback if\n * the user taps anywhere on the view, tapping on 'whitespace' will not be ignored.\n *\n * @param view - View the user tapped.\n * @param x - where the user tapped from the left of the View.\n * @param y - where the user tapped from the top of the View.\n */\n void onViewTap(View view, float x, float y);\n }",
"@Override\n public void onUpOrCancelMotionEvent() {\n \n }",
"@Override public boolean onTouchEvent(MotionEvent event) {\n super.onTouchEvent(event);\n boolean clickCaptured = processTouchEvent(event);\n boolean scrollCaptured = scroller != null && scroller.onTouchEvent(event);\n boolean singleTapCaptured = getGestureDetectorCompat().onTouchEvent(event);\n return clickCaptured || scrollCaptured || singleTapCaptured;\n }",
"@Override\n public boolean onGenericMotionEvent(MotionEvent event) {\n if (this.gestureDetector != null) {\n return this.gestureDetector.onMotionEvent(event);\n }\n return false;\n }",
"@Override\r\n\tpublic boolean onTouchEvent(final MotionEvent e) {\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public void setOnTouchListener(OnTouchListener l) {\n super.setOnTouchListener(l);\r\n this.l = l;\r\n }",
"@Override\n\t\tpublic void OnDoubleFingerDown(MotionEvent ev) {\n\n\t\t}",
"@Override\r\n public boolean onDown(MotionEvent e)\r\n {\n return false;\r\n }",
"@Override\n\t\tpublic boolean onDown(MotionEvent e) {\n\t\t\treturn false;\n\t\t}",
"@Override\r\n\t\tpublic void onTouchButtonDown(View arg0, MotionEvent arg1) {\n\r\n\t\t}",
"@Override\n\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\tgestures = new GestureDetector(new fakeGestureListener());\n\t\t}",
"@Override\r\n\tpublic void onTouchUp(LTouch e) {\n\t}",
"@Override\r\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\r\n\t}",
"private GestureDetectorCompat getGestureDetectorCompat() {\n if (gestureDetector == null) {\n GestureDetector.OnGestureListener gestureListener = new SimpleOnGestureListener() {\n\n @Override public boolean onSingleTapUp(MotionEvent e) {\n boolean handled = false;\n int position = shape.getNoxItemHit(e.getX(), e.getY());\n if (position >= 0) {\n handled = true;\n NoxItem noxItem = noxItemCatalog.getNoxItem(position);\n listener.onNoxItemClicked(position, noxItem);\n }\n return handled;\n }\n };\n gestureDetector = new GestureDetectorCompat(getContext(), gestureListener);\n }\n return gestureDetector;\n }",
"@Override\n public boolean onTouchEvent(MotionEvent ev) {\n return mDetector.onTouchEvent(ev) || super.onTouchEvent(ev);\n }",
"@Override\n\t\t\t\tpublic boolean onDown(MotionEvent e) {\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n // Pass activity on touch event to the gesture detector.\n gestureDetectorCompat.onTouchEvent(event);\n // Return true to tell android OS that event has been consumed, do not pass it to other event listeners.\n return true;\n }",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onDown(MotionEvent e) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onInterceptTouchEvent(MotionEvent ev) {\n\t\tint action = ev.getAction();\n\t\tswitch (action) {\n\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\tmDownX = ev.getX();\n\t\t\tmDownY = ev.getY();\n\t\t\tbreak;\n\t\tcase MotionEvent.ACTION_UP:\n\t\t\tsuper.onInterceptTouchEvent(ev);\n\t\t\treturn false;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onInterceptTouchEvent(ev);\n\t}",
"@Override\r\n public boolean onDown(MotionEvent e) {\n return false;\r\n }",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n gestureDetectorCompat.onTouchEvent(event);\n // Return true to tell android OS that event has been consumed, do not pass it to other event list\n // eners.\n return true;\n }",
"public boolean onTouchEvent(MotionEvent event) {\n if (gestureDetector.onTouchEvent(event))\n return true;\n else\n return false;\n }",
"public void setupGestures() {\n mGestureDetector = new GestureDetector(\n new GestureDetector.SimpleOnGestureListener() {\n @Override\n public boolean onFling(MotionEvent e1, MotionEvent e2,\n float velocityX, float velocityY) {\n float deltaX = e2.getRawX() - e1.getRawX();\n float deltaY = e2.getRawY() - e1.getRawY();\n int minSlideWidth = mFlipper.getWidth() / 2;\n\n if (Math.abs(deltaY) < 100) {\n if (deltaX > minSlideWidth) {\n slideRight();\n return true;\n }\n\n if (deltaX < -minSlideWidth) {\n slideLeft();\n return true;\n }\n }\n return false;\n }\n });\n mGestureDetector.setIsLongpressEnabled(true);\n\n mTouchListener = new OnTouchListener() {\n public boolean onTouch(View v, MotionEvent event) {\n return mGestureDetector.onTouchEvent(event);\n }\n };\n mFlipper.setLongClickable(true);\n mFlipper.setOnTouchListener(mTouchListener);\n }",
"public interface TouchCallback {\n /**\n * Callback from TouchHandler used to notify the listener about a\n * point on the screen being pressed.\n * @param pos Position touched, in screen pixel coordinates\n */\n public void touched(Vector pos);\n\n /**\n * Callback from TouchHandler used to notify the listener about a\n * point on the screen being long pressed.\n * @param pos Position long touched, in screen pixel coordinates.\n */\n public void longTouched(Vector pos);\n /**\n * Callback from TouchHandler used to notify the listener about the\n * user dragging his finger across the screen.\n * @param start Position the dragging action originated from. Screen pixel coordinates.\n * @param dist Distance dragged. This is a vector originating from the starting position.\n */\n public void move(Vector start,Vector dist);\n\n /**\n * Callback from TouchHandler used to notify the listener about a two finger pinch.\n * The degree of the pinch is calculated as follows: No pinch gives a degree of 1.\n * If the fingers were spaced 100 pixels apart, but are now 50 pixels apart, degree equals 2.\n * This means: degree>1 implies zoom out, and degree<1 implies zoom in.\n *\n * @param center Center position (point between fingers on screen), pixel coordinates.\n * @param degree Degree of pinch.\n */\n public void scale(Vector center, float degree);\n}",
"@Override\n public boolean onDown(MotionEvent e) {\n return false;\n }",
"public interface OnTapListener {\n void onTapView(int position);\n}",
"@Override\n public boolean onTouchEvent(MotionEvent event) {\n boolean result = mDetector.onTouchEvent(event);\n\n // If the GestureDetector doesn't want this event, do some custom processing.\n // This code just tries to detect when the user is done scrolling by looking\n // for ACTION_UP events.\n if (!result) {\n if (event.getAction() == MotionEvent.ACTION_UP) {\n // User is done scrolling, it's now safe to do things like autocenter\n stopScrolling();\n result = true;\n }\n }\n return result;\n }",
"public void onTouchDown(NMapView arg0, MotionEvent arg1) {\n\n }",
"void onActive(GestureMetaData metaData);",
"public GestureClass getGestureClass(){\r\n return gestureClass;\r\n }",
"public interface FlickListener {\r\n\r\n\t\t/**\r\n\t\t * Item flicked.\r\n\t\t *\r\n\t\t * @param multiTouchElement\r\n\t\t * the multi touch element\r\n\t\t * @param targetSpatial\r\n\t\t * the target spatial\r\n\t\t * @param newLocationX\r\n\t\t * the new location x\r\n\t\t * @param newLocationY\r\n\t\t * the new location y\r\n\t\t * @param oldLocationX\r\n\t\t * the old location x\r\n\t\t * @param oldLocationY\r\n\t\t * the old location y\r\n\t\t */\r\n\t\tpublic void itemFlicked(FlickMover multiTouchElement,\r\n\t\t\t\tSpatial targetSpatial, float newLocationX, float newLocationY,\r\n\t\t\t\tfloat oldLocationX, float oldLocationY);\r\n\t}",
"@Override\r\n\tpublic boolean onDown(MotionEvent arg0) {\n\t\ttextView_reader.onDown(arg0);\r\n\t\treturn false;\r\n\t}",
"@Override\n public boolean onTouchEvent (MotionEvent me){\n detector.onTouchEvent(me);\n return super.onTouchEvent(me);\n }",
"@Override\r\n public boolean onTouchEvent(MotionEvent event) {\n \t\r\n \tif(!enableScrollFlag) return false;\r\n\r\n if (mVelocityTracker == null) {\r\n mVelocityTracker = VelocityTracker.obtain();\r\n }\r\n mVelocityTracker.addMovement(event);\r\n\r\n final int action = event.getAction();\r\n final float x = event.getX();\r\n final float y = event.getY();\r\n \r\n\r\n switch (action) {\r\n case MotionEvent.ACTION_DOWN:\r\n \t\r\n if (!mScroller.isFinished()) {\r\n mScroller.abortAnimation();\r\n }\r\n mLastMotionX = x;\r\n mTouchState = TOUCH_STATE_SCROLLING;\r\n break;\r\n case MotionEvent.ACTION_MOVE:\r\n \t\r\n if (mTouchState == TOUCH_STATE_SCROLLING) {\r\n // Scroll to follow the motion event\r\n final int deltaX = (int) (mLastMotionX - x);\r\n mLastMotionX = x;\r\n\r\n final int scrollX = getScrollX();\r\n\r\n if (deltaX < 0) {\r\n if (scrollX > 0) {\r\n \t\r\n \tif(mLeftViewAvailable) {\r\n \t\tscrollBy(Math.max(-scrollX, deltaX), 0);\r\n } else if(scrollX > getChildAt(0).getRight()) {\r\n \tscrollBy(Math.max(-(scrollX - getChildAt(0).getRight()), deltaX), 0);\r\n }\r\n }\r\n } else if (deltaX > 0) {\r\n int availableToScroll = 0;\r\n if(mRightViewAvailable) {\r\n \tavailableToScroll = getChildAt(getChildCount() - 1).getRight() - scrollX - getWidth();\r\n } else {\r\n \tavailableToScroll = getChildAt(1).getRight() - scrollX - getWidth();\r\n }\r\n \r\n if (availableToScroll > 0) {\r\n scrollBy(Math.min(availableToScroll, deltaX), 0);\r\n }\r\n }\r\n }\r\n \r\n if(Math.abs(onClickDownX - x) > 50 || Math.abs(onClickDownY - y) > 50) {\r\n \tonClickAble = false;\r\n }\r\n \r\n \r\n break;\r\n case MotionEvent.ACTION_UP:\r\n \t\r\n \tboolean clickHandle = false;\r\n \tlong deltaTime = System.currentTimeMillis() - onClickStartTime;\r\n \tif(mCurrentScreen != 1 && onClickAble && deltaTime < 2000) {\r\n \t\tif(mCurrentScreen == 0) {\r\n \t\t\tif(x > getWidth() - mSlideLength) {\r\n \t\t\t\tsnapToScreen(1);\r\n \t\t\t\tclickHandle = true;\r\n \t\t\t}\r\n \t\t} else if(mCurrentScreen == 2) {\r\n \t\t\tif(x < mSlideLength) {\r\n \t\t\t\tsnapToScreen(1);\r\n \t\t\t\tclickHandle = true;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n if (mTouchState == TOUCH_STATE_SCROLLING) {\r\n \t\r\n \tif(!clickHandle) {\r\n \t\tfinal VelocityTracker velocityTracker = mVelocityTracker;\r\n velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity);\r\n int velocityX = (int) velocityTracker.getXVelocity();\r\n\r\n if (velocityX > SNAP_VELOCITY && mCurrentScreen > 0) {\r\n // Fling hard enough to move left\r\n snapToScreen(mCurrentScreen - 1);\r\n } else if (velocityX < -SNAP_VELOCITY && mCurrentScreen < getChildCount() - 1) {\r\n // Fling hard enough to move right\r\n snapToScreen(mCurrentScreen + 1);\r\n } else {\r\n snapToDestination();\r\n }\r\n \t}\r\n\r\n if (mVelocityTracker != null) {\r\n mVelocityTracker.recycle();\r\n mVelocityTracker = null;\r\n }\r\n }\r\n \r\n break;\r\n case MotionEvent.ACTION_CANCEL:\r\n mTouchState = TOUCH_STATE_REST;\r\n break;\r\n }\r\n \r\n if(scrollingListener != null) {\r\n \tint scrollX = getScrollX();\r\n \tif(scrollX == (getWidth() - mSlideLength)) {\r\n \t\tscrollingListener.scrolling(scrollX, 0);\r\n \t} else if(scrollX < (getWidth() - mSlideLength)) {\r\n \t\tscrollingListener.scrolling(scrollX, -1);\r\n \t} else {\r\n \t\tscrollingListener.scrolling(scrollX, 1);\r\n \t}\r\n }\r\n \r\n return true;\r\n }",
"@Override\r\n\tpublic boolean onSingleTapUp(MotionEvent arg0) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean dispatchTouchEvent(MotionEvent ev) {\n\t\tsuper.dispatchTouchEvent(ev);\n\t\treturn gdDetector.onTouchEvent(ev);\n\t}",
"void onHandWaveGesture();",
"@Override\n\t\t\tpublic boolean onSingleTapUp(MotionEvent arg0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public void onLongPress(MotionEvent e) {\n }",
"@Override\n public boolean dispatchTouchEvent(MotionEvent event){\n checkGestureForSwipe(event);\n return super.dispatchTouchEvent(event);\n }",
"@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\treturn true;\n\t\t\t}"
]
| [
"0.77869856",
"0.74477303",
"0.7303115",
"0.72864187",
"0.72662526",
"0.7123929",
"0.70787543",
"0.6857345",
"0.68232036",
"0.6642094",
"0.6635181",
"0.66263264",
"0.65921956",
"0.659196",
"0.6548168",
"0.6508557",
"0.6480855",
"0.64591277",
"0.64207184",
"0.64164937",
"0.6385502",
"0.6330545",
"0.6298126",
"0.6296436",
"0.6296239",
"0.626582",
"0.6224678",
"0.62087566",
"0.6195083",
"0.61749244",
"0.6169444",
"0.6143618",
"0.61275834",
"0.6111293",
"0.60953045",
"0.6092281",
"0.60623175",
"0.6052656",
"0.6036353",
"0.6036353",
"0.6036353",
"0.6025953",
"0.60169953",
"0.60100883",
"0.60013676",
"0.59985983",
"0.5995077",
"0.5994005",
"0.59786993",
"0.5968293",
"0.5967814",
"0.5958469",
"0.59433067",
"0.5943159",
"0.5941674",
"0.5937617",
"0.590495",
"0.58912385",
"0.58828884",
"0.58809143",
"0.5865715",
"0.58600825",
"0.5853023",
"0.5853023",
"0.58462423",
"0.58388054",
"0.5836237",
"0.5835546",
"0.5827322",
"0.5827322",
"0.5827322",
"0.5827322",
"0.5827322",
"0.5827322",
"0.5827322",
"0.5827322",
"0.5827322",
"0.5827322",
"0.5826243",
"0.5822524",
"0.5817319",
"0.5809292",
"0.5798181",
"0.57973355",
"0.57946527",
"0.5790985",
"0.57902044",
"0.57867765",
"0.5773285",
"0.5770265",
"0.5757949",
"0.57482725",
"0.5742875",
"0.5734739",
"0.5732609",
"0.5725438",
"0.572256",
"0.5708487",
"0.57000506",
"0.5699925",
"0.5689699"
]
| 0.0 | -1 |
private String textGrammer, textPunct, textSpell; | public CustomSelectionsPagerAdapter(Context context, FragmentManager fm){//String textGrammer, String textPunct, String textSpell) {
super(fm);
this.context = context;
this.context = context;
//this.textGrammer = textGrammer;
//this.textPunct = textPunct;
//this.textSpell = textSpell;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getWord(){\n return this.word;\n }",
"public String getWord(){\r\n\t\t return word;\r\n\t }",
"private void addCustomWords() {\r\n\r\n }",
"@Override\n public String getWord(){\n return word;\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 void getWord() {\n\t\t\n\t}",
"public String getWord(){\r\n\t\treturn word;\r\n\t}",
"private SpreedWord() {\n\n }",
"public void setGrammarText(String aGrammarText);",
"public String getCorrectionWord(String misspell);",
"java.lang.String getWord();",
"public String getWord(){\n\t\treturn word;\n\t}",
"public String getGrammarText();",
"private void initialiseWordsToSpell(){\n\t\t//normal quiz\n\t\tif(quiz_type==PanelID.Quiz){\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Quiz);\n\t\t} else { //review quiz\n\t\t\twords_to_spell = parent_frame.getPreQuizHandler().getWordsForSpellingQuiz(parent_frame.getDataHandler().getNumWordsInQuiz(), PanelID.Review);\n\t\t}\t\n\t}",
"void setWord(Word word);",
"public String getWord() {\n return this.word;\n }",
"public void highLightWords(){\n }",
"public static String getWord() {\r\n\t\treturn Text;\r\n\t}",
"public String getWord() {\n return word;\n }",
"public interface IWord2Spell {\r\n String word2spell();\r\n}",
"String getPunctuation();",
"public Word (String word){\n this.word = word;\n count = 0;\n }",
"public String propergram(String word){\n // word.toLowerCase();\n String[] tempstr =word.split(\"_\");\n String tempstr2;\n\n for(int i=0;i<tempstr.length;i++){\n if((tempstr[i].charAt(0))>='A'&&(tempstr[i].charAt(0))<='Z') {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0)));\n }\n else {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0))).toUpperCase();\n }\n tempstr[i] = tempstr2.concat(tempstr[i].substring(1));\n if (i != 0) {\n word=word.concat(\" \").concat(tempstr[i]);\n } else {\n word = tempstr[i];\n }\n\n }\n return word;\n\n\n }",
"@Override\n\tpublic void setTraining(String text) {\n\t\tmyWords = text.split(\"\\\\s+\");\n\t\tmyMap = new HashMap<String , ArrayList<String>>();\n\t\t\n\t\tfor (int i = 0; i <= myWords.length-myOrder; i++)\n\t\t{\n\t\t\tWordGram key = new WordGram(myWords, i, myOrder);\n\t\t\tif (!myMap.containsKey(key))\n\t\t\t{\n\t\t\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\tlist.add(myWords[i+myOrder]);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t} else {\n\t\t\t\t\tlist.add(PSEUDO_EOS);\n\t\t\t\t\tmyMap.put(key, list);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (i+myOrder != myWords.length)\n\t\t\t\t{\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(myWords[i+myOrder]);\n\t\t\t\t} else {\n\t\t\t\t\t((ArrayList<String>) myMap.get(key)).add(PSEUDO_EOS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public String getTerm(){\n return this.term;\n }",
"public DoubleWord(){\n\t\tsuper();\n\t}",
"public void setWord(String word){\n this.word = word; //Only used in testing.\n }",
"public interface DictionaryCorrectior {\n\n\t/**\n\t * get correction word that have the most possibility from the misspelled text\n\t * @author liyuan\n\t * \n\t */\n\tpublic String getCorrectionWord(String misspell);\n\t\n\t\n\t\n\t/**\n\t * get a list of correction words from the misspelled text\n\t * @author liyuan\n\t * \n\t */\n\tpublic String[] getCorrectionList(String misspell);\n}",
"public void setHangmanWord()\n {\n if(word == null || word == \"\") return;\n\n String hangmanWord = \"\";\n for(int i=0; i<word.length(); i++)\n {\n if(showChar[i])\n hangmanWord += word.substring(i, i+1)+\" \";\n else\n hangmanWord += \"_ \";\n }\n\n wordTextField.setText(hangmanWord.substring(0, hangmanWord.length()-1));\n }",
"private static String updateSpelling(String text) {\n\t\tStringBuilder upSpell = new StringBuilder(32);\n\t\tchar ch = ' ';\n\t\t\n\t\tfor (int i = 0; i<text.length(); i++) {\n\t\t\tif(ch == ' ' && text.charAt(i) != ' ') {\n\t\t\t\tupSpell.append(Character.toUpperCase(text.charAt(i)));\n\t\t\t\t\n\t\t\t}else if(Character.isLetter(text.charAt(i))) {\n\t\t\t\tupSpell.append(Character.toLowerCase(text.charAt(i)));\n\t\t\t\t\n\t\t\t}\n\t\t\t// if anything other type of input is added besides letters.\n\t\t\telse {\n\t\t\t\tupSpell.append(text.charAt(i));\n\t\t\t}\n\t\t\t//This will keep track of previous characters inputed.\n\t\t\tch = text.charAt(i);\t\t\t\n\t\t\t\n\t\t}\n\t\treturn upSpell.toString(); \n\t\t\n\t}",
"public String getWord()\n\t{\n\t\treturn word;\n\t}",
"public String getWord() {\n\t\treturn word;\r\n\t}",
"public String getMyword() {\n return myword;\n }",
"public String getWord()\r\n\t\t{\r\n\t\t\treturn word;\r\n\t\t}",
"void setVersesWithWord(Word word);",
"public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }",
"public NormalSwear(String word) {\n this.word = word;\n }",
"PhrasesIdentification() {\n }",
"public String getSentence(){\r\n\t\t return sentence;\r\n\t }",
"public String getKeyword(String word) {\n\t\tboolean foundPunct = false;\n String returnStr = \"\";\n for(int inc = 0; inc < word.length(); inc++) {\n char testChar = word.charAt(inc);\n if(Character.isLetter(testChar) == true) {\n if(foundPunct == true) {return null;}\n else{returnStr = returnStr + Character.toString(testChar).toLowerCase();}}\n else {foundPunct = true;}}\n if(noiseWords.contains(returnStr) == true) {\n return null;}\n if(returnStr == \"\") {\n return null;}\n return returnStr;\n\t}",
"public DictionaryWord(String text){\n\t\tthis.text = text;\n\t\tisVisible = true;\n\t}",
"public TextPassage(String text, int tpIndex, Vocabulary voc) {\r\n\t\tthis.text = text;\r\n\t\tthis.tpIndex = tpIndex;\r\n\t\twords = new TIntArrayList();\r\n\t\tString[] tokens = text.split(\"[\\\\W0-9]\");\r\n\t\tfor (int i = 0; i < tokens.length; i++) {\r\n\t\t\tString token = tokens[i].toLowerCase();\r\n\t\t\tif (token.length() > 1 && voc.contains(token)) {\r\n\t\t\t\twords.add(voc.getTypeIndex(token).intValue());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public WordsToGuess(String w)\n\t{\n\t\tword = w;\n\t}",
"public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}",
"public abstract String guessedWord();",
"public static void main(String[] args) {\n String exclamation1 = \"Ouch!\";\n String exclamation2 = \"Hoorah!\";\n String exclamation3 = \"Amazing!\";\n String adverb1 = \"stupidly\";\n String adverb2 = \"happily\";\n String adverb3 = \"shamefully\";\n String noun1 = \"car\";\n String noun2 = \"book\";\n String noun3 = \"bird\";\n String adjective1 = \"tall\";\n String adjective2 = \"smart\";\n String adjective3 = \"funny\";\n System.out.println( exclamation1+ \" he said \" + adverb1 +\n \" as he jumped into his convertible \" + noun1 +\n \" and drove off with his \" + adjective1 + \" wife.\");\n\n\n\n\n }",
"private static void splitWord() {\n\t\tint i = 1;\r\n\t\tfor(String doc : DocsTest) {\r\n\t\t\tArrayList<String> wordAll = new ArrayList<String>();\r\n\t\t\tfor (String word : doc.split(\"[,.() ; % : / \\t -]\")) {\r\n\t\t\t\tword = word.toLowerCase();\r\n\t\t\t\tif(word.length()>1 && !mathMethod.isNumeric(word)) {\r\n\t\t\t\t\twordAll.add(word);\r\n\t\t\t\t\tif(!wordList.contains(word)) {\r\n\t\t\t\t\t\twordList.add(word);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twordAll.removeAll(stopword);\r\n\t\t\tDoclist.put(i, wordAll);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\twordList.removeAll(stopword);\r\n\t}",
"public void run() {\n\n /**\n * Replace all delimiters with single space so that words can be\n * tokenized with space as delimiter.\n */\n for (int x : delimiters) {\n text = text.replace((char) x, ' ');\n }\n\n StringTokenizer tokenizer = new StringTokenizer(text, \" \");\n boolean findCompoundWords = PrefsHelper.isFindCompoundWordsEnabled();\n ArrayList<String> ufl = new ArrayList<String>();\n for (; tokenizer.hasMoreTokens();) {\n String word = tokenizer.nextToken().trim();\n boolean endsWithPunc = word.matches(\".*[,.!?;]\");\n \n // Remove punctuation marks from both ends\n String prevWord = null;\n while (!word.equals(prevWord)) {\n prevWord = word;\n word = removePunctuation(word);\n }\n \n // Check spelling in word lists\n boolean found = checkSpelling(word);\n if (findCompoundWords) {\n if (!found) {\n ufl.add(word);\n if (endsWithPunc) pushErrorToListener(ufl);\n } else {\n pushErrorToListener(ufl);\n }\n } else {\n if (!found) listener.addWord(word);\n }\n }\n pushErrorToListener(ufl);\n }",
"public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}",
"@Override\n public String getText() {\n return analyzedWord;\n }",
"WordCounter(String inputText){\r\n \r\n wordSource = inputText;\r\n }",
"protected MergeSpellingData()\r\n\t{\r\n\t}",
"private void initVar() {\n\n sTextLD = sTextMLD;\n\n }",
"private String processWord(String word){\r\n\t\tString lword = word.toLowerCase();\r\n\t\tfor (int i = 0;i<word.length();++i){\r\n\t\t\tstemmer.add(lword.charAt(i));\r\n\t\t}\r\n\t\tstemmer.stem();\r\n\t\treturn stemmer.toString();\r\n\t}",
"public TestAbestiakniveltres(String Wording,String Correct){\r\n wording=Wording;\r\n correct=Correct;\r\n\r\n }",
"public Word getWord() {\n return word;\n }",
"public String getTermText() {\n return termText;\n }",
"public String getKeyword(String word) {\n\t\t/** COMPLETE THIS METHOD **/\n\t\t//strip trailing punctuation\n\t\tint n = 1;\n\t\tString output = \"\";\n\t\tword = word.toLowerCase();\n\t\tint j = 0;\n\t\twhile(j<word.length())\n\t\t{\n\t\t\tif(Character.isLetter(word.charAt(j)))\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//return null;\n\t\t\t}\n\t\t\tj++;\n\t\t}\n\t\t\n\t\twhile(n<word.length())\n\t\t{\n\t\t\t\n\t\t\tif( word.charAt(word.length()-n) == '.' ||\n\t\t\t\t\tword.charAt(word.length()-n) == ',' ||\n\t\t\t\t\tword.charAt(word.length()-n) == '?' || \n\t\t\t\t\tword.charAt(word.length()-n) == ':' ||\n\t\t\t\t\tword.charAt(word.length()-n) == ';' ||\n\t\t\t\t\tword.charAt(word.length()-n) == '!' )\n\t\t\t{\n\t\t\t\toutput = word.substring(0, word.length()-n);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tn++;\n\t\t}\n\t\tif( !(word.charAt(word.length()-1) == '.' ||\n\t\t\t\tword.charAt(word.length()-1) == ',' ||\n\t\t\t\tword.charAt(word.length()-1) == '?' || \n\t\t\t\tword.charAt(word.length()-1) == ':' ||\n\t\t\t\tword.charAt(word.length()-1) == ';' ||\n\t\t\t\tword.charAt(word.length()-1) == '!' )\n\t\t\t\t)\n\t\t{\n\t\t\toutput = word.substring(0, word.length());\n\t\t}\n\t\t// check if there are only alphanumeric characters\n\t\t\n\t\tArrayList<String> items = new ArrayList<>();\n\t\t\n\t\t\n\t try {\n\t \t\n\t Scanner scanner = new Scanner(new File(\"noisewords.txt\"));\n\t while (scanner.hasNextLine()) {\n\t String line = scanner.nextLine();\n\t items.add(line);\n\t \n\t }\n\t scanner.close();\n\t } catch (FileNotFoundException e) {\n\t e.printStackTrace();\n\t }\n\t int i = 0;\n\t boolean ans = false;\n\t while(i<items.size()) {\n\t\t if(output.equals(items.get(i))) \n\t\t {\n\t\t \tans = true;\n\t\t \tbreak;\n\t\t }\n\t\t else\n\t\t {\n\t\t \t ans = false;\n\t\t }\n\t\t i++;\n\t }\n\t //System.out.println(ans);\n\t if(ans == true)\n\t {\n\t \t return null;\n\t }\n\t /* int a = 0;\n\t\twhile(a<items.size())\n\t\t{\n\t\t\tSystem.out.println(items.get(a));\n\t\t\ta++;\n\t\t}*/\n\t\t// following line is a placeholder to make the program compile\n\t\t// you should modify it as needed when you write your code\n\t\tif(output != null)\n\t\t{\n\t\t\treturn output;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public Command()\r\n {\r\n this.aSecondWord = null;\r\n }",
"@Override\r\n\tprotected void getIntentWord() {\n\t\tsuper.getIntentWord();\r\n\t}",
"public String getPhrase()\n {\n return this.phrase;\n }",
"WordCounter(){\r\n }",
"java.lang.String getPunctuationToAppend();",
"public String phraseWords(String input) {\n document = new Annotation(input);\n // run all Annotators on this text\n pipeline.annotate(document);\n String pos = document.get(CoreAnnotations.PhraseWordsTagAnnotation.class);\n\n return pos;\n }",
"public void setTermText(String text) {\n termText = text;\n termBuffer = null;\n }",
"Dialogue(ArrayList<String> text){\n this.text = text;\n }",
"default String getNormalizedText() {\n return meta(\"nlpcraft:nlp:normtext\");\n }",
"private void save_meaning_word() {\n\t\tif(this.dwd!=null && this.main_word!=null)\n\t\t{\n\n\n\t\t\tString meaning_word=\"\";\n\t\t\tif(isHindi)\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.eng_word;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.hin_word;\n\t\t\t}\n\n\t\t\tDictCommon.SaveWord(meaning_word,!isHindi);\n\t\t\tToast.makeText(view.getContext(), \"word \"+meaning_word+\" successfully saved!!!\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"@Override\r\n\tpublic void frases() {\n\t\t\r\n\t\tthis.frase.add(\"Não há que ser forte. Há que ser flexível.\");\r\n this.frase.add(\"Gente todo dia arruma os cabelos, por que não o coração?\");\r\n this.frase.add(\"Há três coisas que jamais voltam; a flecha lançada, a palavra dita e a oportunidade perdida.\");\r\n this.frase.add(\"Melhor pensar alto do que não pensar nada.\");\r\n this.frase.add(\"A juventude não é uma época da vida, é um estado de espírito.\");\r\n this.frase.add(\" Podemos escolher o que semear, mas somos obrigados a colher o que plantamos.\");\r\n this.frase.add(\"Dê toda a atenção para a formação dos teus filhos, sobretudo por exemplos de tua própria vida.\");\r\n \r\n\t\t\r\n\t}",
"public String getPhrase() {\n return phrase;\n }",
"private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n char c = text.charAt(i);\n if (c == '.') {\n if (++i < textLength) {\n c = text.charAt(i);\n if (c == '.') {\n ssb.append(c);\n } else if (c == 'c') {\n languageCodeStart = ssb.length();\n } else if (c == 'C') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.language_code_tag),\n languageCodeStart, ssb.length(), 0);\n languageCodeStart = ssb.length();\n } else if (c == 'u') {\n untranslatedStart = ssb.length();\n } else if (c == 'U') {\n ssb.setSpan(new TextAppearanceSpan(BrowseWordsActivity.this,\n R.style.untranslated_word),\n untranslatedStart, ssb.length(), 0);\n untranslatedStart = ssb.length();\n } else if (c == '0') {\n Resources res = getResources();\n ssb.append(res.getString(R.string.no_translations));\n }\n }\n } else\n ssb.append(c);\n }\n\n return ssb;\n }",
"@Override\n public String toString() {\n \treturn title + \":\" + word ;\n }",
"public Keyword(String word, int rank){\n this.keyword = word;\n this.rank = rank;\n this.decomplist = new ArrayList<Decomposition>();\n }",
"public String getSpelling() {\n\t\treturn this.spelling;\n\t}",
"public void addWord(Word word);",
"public TweetCorrected(String text) {\n super(text);\n }",
"public Word(final String word1, final String level1,\n final String hint11, final String hint21) {\n\n\n this.word = word1;\n this.level = level1;\n this.hint1 = hint11;\n this.hint2 = hint21;\n }",
"public void getTerm()\n\t\t{\n\t\t\t//Open SciencePhrases.txt\n\t\t\tFile f1 = new File(\"SciencePhrases.txt\");\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tspIn = new Scanner(f1);\n\t\t\t}\n\t\t\tcatch(FileNotFoundException e)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Cannot create SciencePhrases.txt to be written \"\n\t\t\t\t\t\t+ \"to.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\t//Storing term at curTerm in the variables term and picTerm\n\t\t\tString cur = new String(\"\");\n\t\t\tfor(int i = 0; i<curTerm; i++)\n\t\t\t{\n\t\t\t\tterm = \"\";\n\t\t\t\twhile(!cur.equals(\"-\"))\n\t\t\t\t\tcur = spIn.nextLine();\n\t\t\t\tcur = spIn.nextLine();\n\t\t\t\tpicTerm = cur;\n\t\t\t\tcur = spIn.nextLine();\n\t\t\t\twhile(!cur.equals(\"-\"))\n\t\t\t\t{\n\t\t\t\t\tterm += cur;\n\t\t\t\t\tcur = spIn.nextLine();\n\t\t\t\t}\n\t\t\t}\t\n\t\t}",
"public void addTWord(String word){\n\t\tsentence.add(new TWord(word));\n\t}",
"@Override\n public void add(String text) {\n String[] fromWords = text.split(\"\\\\s+\");\n wordsArray = new String[fromWords.length];\n wordsArray = fromWords;\n }",
"@ZAttr(id=1073)\n public String[] getPrefSpellIgnoreWord() {\n return getMultiAttr(Provisioning.A_zimbraPrefSpellIgnoreWord);\n }",
"public WordTokenizer( char[] texts ) {\n\t\t// this constructor will tokenize the input texts (usually it is the char array for a whole document)\n\t\t\n\t\tString s=String.valueOf(texts);//convert character array to string\n\t\twords = s.split(\"\\\\W+\");//split string through various character\n\t\t// \\W means all the demoninate except [a-zA-Z0-9]\n\t}",
"List<String> tokenize2(String doc) {\n String stemmed = StanfordLemmatizer.stemText(doc);\n List<String> res = new ArrayList<String>();\n\n for (String s : stemmed.split(\"[\\\\p{Punct}\\\\s]+\"))\n res.add(s);\n return res;\n }",
"public String getMotclef()\r\n {\r\n return this.aMotclef;\r\n }",
"public static void main(String[] args) {\n String textString = \"Hello, world! I am program.\";\n\n\n// System.out.println(Arrays.toString(\"a;b;c;d\".split(\"(?=;)\")));\n// String[] split = \"a;b;c;d\".split(\"(?=\\\\p{Punct}\\s?)|\\s\");\n /*String[] split = \"a;b;c;d\".split(\"(?=\\\\p{Punct}\\s?)\");\n System.out.println(Arrays.toString(split));*/\n// String[] split1 = \"Hello, world!\".split(\"(?=\\\\p{Punct}\\s?)|\\s\");\n /*String[] split1 = \"Hello, world!\".split(\"(?=(\\\\p{Punct}\\s?))\");\n System.out.println(Arrays.toString(split1));*/\n// System.out.println(Arrays.toString(\"a;b;c;d\".split(\"((?<=;)|(?=;))\")));\n\n// String[] sentenceElementStrings = sentenceString.split(\"(?=\\\\p{Punct}\\s?)|\\s\");\n// System.out.println(\"Hello world! \\\\I am program.\");\n Text text = new Text(textString);\n\n System.out.println(\"Original text:\\n\" + text);\n\n text.swapFirstAndLastWordsInSentences();\n\n System.out.println(\"Text after swapping:\\n\" + text);\n }",
"public static Set<String> getEnglishWords()\n{\n return english_words;\n}",
"private static String getPhraseInput() {\n\t\treturn getQuery(\"Query Phrase\");\n\t}",
"public interface MorphemesDetector {\n\n String detectSuffix(String token);\n\n}",
"public void setWordPosition() {\n this.wordPosition = wordPosition;\n }",
"public static void computeLetters(Context c) {\n try {\n WordsDatabase base = new WordsDatabase(c);\n SQLiteDatabase db = base.getReadableDatabase();\n //Cursor cursor = db.rawQuery(\"select `set`, name from Words\", null);\n Cursor cursor = db.rawQuery(\"select distinct `set` from Words\", null);\n StringBuilder sb = new StringBuilder();\n if (cursor.moveToFirst()) {\n do {\n String letter = cursor.getString(0);\n if (letter != null)\n letter = letter.trim(); // remove extra spaces just-in-case\n// Log.e(\"Dictée\",\"word: \"+cursor.getString(1) + \" - \"+cursor.getString(0));\n sb.append('\\'');\n sb.append(letter);\n sb.append(\"',\");\n all_letters_array.add(letter);\n } while (cursor.moveToNext());\n }\n cursor.close();\n sb.deleteCharAt(sb.length()-1); // remove the last ','\n all_letters = sb.toString();\n if (last_letter == null || last_letter.isEmpty())\n last_letter = all_letters_array.getLast();\n db.close();\n Set<String> prefs = PreferenceManager.getDefaultSharedPreferences(c).getStringSet(c.getString(R.string.soundsTitle),null);\n if (prefs != null) {\n LinkedList<String> toRemove = new LinkedList<>();\n for (String entry : prefs)\n if (!all_letters_array.contains(entry)) {\n toRemove.add(entry);\n Log.d(\"Removed preference:\", entry);\n }\n prefs.removeAll(toRemove);\n PreferenceManager.getDefaultSharedPreferences(c).edit().\n putStringSet(c.getString(R.string.soundsTitle), prefs)\n .apply();\n }\n } catch (Exception e) {\n Log.e(\"Dictée\",\"Unable to compute letters from database\",e);\n }\n }",
"public static void checkPunctuation(List<Token> token) {\r\n\t\tfor (Token tk : token) {\r\n\t\t\t//if (tk.getName().matches(\"[!\\\"#$%&'()*+,-./:;<=>?@\\\\[]^_`\\\\{|\\\\}~]\")) {\r\n\t\t\tif (tk.getName().matches(\"[\\\\W]\")) {\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.PUNCTUATION));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void addWords(){\n wordList.add(\"EGE\");\n wordList.add(\"ABBAS\");\n wordList.add(\"KAZIM\");\n }",
"private static String spellPunctuation(String string) {\n\t\tchar[] in = string.toCharArray();\n\t\tStringBuilder out = new StringBuilder();\n\t\t\n\t\tchar b = 0; //previous\n\t\tchar c = 0; //current\n\t\tchar d = 0; //next\n\t\tint n = in.length;\n\t\t\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tc = in[i];\n\t\t\t\n\t\t\tif (i+1 < n) {\n\t\t\t\td = in[i+1];\n\t\t\t}\n\t\t\t\n\t\t\tswitch (c) {\n\t\t\t\tcase ',':\n\t\t\t\t\tif (d != ' ') {\n\t\t\t\t\t\tout.append(\" comma \");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tout.append(\" comma\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '.':\n\t\t\t\t\tif (d == ' ') { //skip periods at the end of sentences\n\t\t\t\t\t\t//skip\n\t\t\t\t\t}\n\t\t\t\t\telse { //keep number with a decimal intact\n\t\t\t\t\t\tout.append(c);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase ';':\n\t\t\t\t\tout.append(\" semicolon\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase ':':\n\t\t\t\t\tout.append(\" colon\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '\\u201c':\n\t\t\t\t\tout.append(\"begin quote \");\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '\\u201d':\n\t\t\t\t\tout.append(\" end quote\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '\"':\n\t\t\t\t\tif (b == ' ') { //previous is space; start string\n\t\t\t\t\t\tout.append(\"begin quote \");\n\t\t\t\t\t}\n\t\t\t\t\telse if (c == ' ') { //next is space; end string\n\t\t\t\t\t\tout.append(\" end quote\");\n\t\t\t\t\t}\n\t\t\t\t\telse { //mid-word\n\t\t\t\t\t\tout.append(\" double quote \");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '\\'': //single quote\n\t\t\t\tcase '\\u2019': //apostrophe\n\t\t\t\t\tif (b == ' ') { //previous is space; start string\n\t\t\t\t\t\tout.append(\"begin quote \");\n\t\t\t\t\t}\n\t\t\t\t\telse if (c == ' ') { //next is space; end string\n\t\t\t\t\t\tout.append(\" end quote\");\n\t\t\t\t\t}\n\t\t\t\t\telse { //mid-word\n\t\t\t\t\t\t//contraction apostrophe is ignored; don't -> dont\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '%':\n\t\t\t\t\tout.append(\" percent\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tout.append(c);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tb = c;\n\t\t}\n\t\t\n\t\treturn out.toString();\n\t}",
"public interface Text {\n\n String HELP = \"Sage 'Alexa, weiter', um die nächste Anweisung zu erhalten. \";\n String STOP = \"Lasst euch weiterhin feiern! \";\n String FALLBACK = \"Leider konnte der Herr dich nicht verstehen \";\n\n String PICOLO_START = \"Willkommen bei Picolo! Möchtest du ein neues Spiel starten? \";\n String[] ANZAHL_SPIELER = {\n \"Wie viele Spieler spielen mit?\",\n \"Nenne mir die Anzahl der teilnehmenden Spieler\",\n \"Wie viele Spieler gibt es heute?\"\n };\n String[] SPIELER_NAME_FRAGEN = {\n \"Nenne mir deinen Namen Spieler \",\n \"Bitte sage mir deinen Namen Spieler \",\n \"Sag mir bitte deinen Namen Spieler \"\n };\n String NAECHSTE_AUFGABE = \"Wollt ihr die nächste Aufgabe Wissen? \";\n String ERSTE_ANWEISUNG = \"Alles klar, Los geht´s! \";\n String WIEDERHOLEN_FEHLER = \"Das Spiel wurde noch nicht gestartet. Deswegen kann ich nichts wiederholen. Bitte starte vorher das Spiel. \";\n\n //SSML Aussprache\n\n /**TODO\n * SSML Text bearbeiten\n */\n String HELP_SSML = \"Sage 'Alexa, weiter', um die nächste Anweisung zu erhalten. \";\n String STOP_SSML = \"Lasst euch weiterhin feiern! \";\n String FALLBACK_SSML = \"Ich habe dich leider nicht verstanden. \";\n}",
"void onTranslation(Sentence sentence);",
"String getFromText();",
"private void updateTextBox(){\n\t\tString tmpWord = game.getTempAnswer().toString();\n\t\tString toTextBox = \"\";\n\t\tStringBuilder sb = new StringBuilder(tmpWord);\n\n\t\t//if a letter is blank in the temp answer make it an underscore. Goes for as long as the word length\n\t\tfor (int i = 0; i<tmpWord.length();i++){\n\t\t\tif(sb.charAt(i) == ' ')\n\t\t\t\tsb.setCharAt(i, '_');\n\t\t}\n\t\ttoTextBox = sb.toString();\n\t\ttextField.setText(toTextBox);\n\t\tlblWord.setText(toTextBox);\n\t}",
"@Test\n public void spacesInKeywordTest() {\n tester.correct(\"Laaa Laaa Laaaa Li\" );\n }",
"private static String Lemmatize(String strTemp) {\n Properties obj = new Properties();\n obj.setProperty(\"annotators\", \"tokenize, ssplit, pos, lemma\"); //setting the properties although using only for lemmatization purpose but one cannot\n // removed the tokenize ssplit pos arguments\n StanfordCoreNLP pipeObj = new StanfordCoreNLP(obj);\t\t//using stanFord library and creating its object\n Annotation annotationObj;\n annotationObj = new Annotation(strTemp); //creating annotation object and passing the string word\n pipeObj.annotate(annotationObj);\n String finalLemma = new Sentence(strTemp).lemma(0); //we only using the lemma of the passed string Word rest of the features like pos, ssplit, tokenized are ignored\n //although we can use it but tokenization has been done perviously\n //with my own code\n return finalLemma;\n }",
"public List<RichWord> spellCheckText(List<String> inputText) {\n\t\t\r\n\t\tfor(String s : inputText) {\r\n\t\t\tif(dizionario.contains(s)) {\r\n\t\t\t\tRichWord parola = new RichWord(s, true);\r\n\t\t\t\tparoleInput.add(parola);\r\n\t\t\t}else {\r\n\t\t\t\tRichWord parola = new RichWord(s, false);\r\n\t\t\t\tparoleInput.add(parola);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn paroleInput;\r\n\t}",
"public Suggestion (Text text, String[] suggestions) {\n\t\tthis.text = text;\n\t\tthis.suggestions = suggestions;\n\t}"
]
| [
"0.63907814",
"0.6375359",
"0.617512",
"0.6122733",
"0.608389",
"0.60555774",
"0.6038784",
"0.5982274",
"0.5980534",
"0.5980465",
"0.59712505",
"0.59702766",
"0.59700984",
"0.5947606",
"0.59430504",
"0.58978283",
"0.589458",
"0.58726424",
"0.58428586",
"0.5841193",
"0.58286166",
"0.5803172",
"0.57919484",
"0.5789198",
"0.5777176",
"0.57604355",
"0.57384884",
"0.5708044",
"0.565983",
"0.56238914",
"0.5615498",
"0.5615192",
"0.56112975",
"0.5601412",
"0.55947983",
"0.5593538",
"0.5575951",
"0.55729085",
"0.5567518",
"0.55535704",
"0.5547366",
"0.5539725",
"0.5523557",
"0.5520932",
"0.55113584",
"0.5505202",
"0.5474441",
"0.5471722",
"0.5457616",
"0.54390836",
"0.54388034",
"0.5427792",
"0.5426162",
"0.542046",
"0.5418029",
"0.54090124",
"0.53945154",
"0.5393734",
"0.5390149",
"0.5389902",
"0.5386798",
"0.5379294",
"0.5377461",
"0.53402483",
"0.53331286",
"0.53144956",
"0.53011036",
"0.5282747",
"0.52809495",
"0.52781683",
"0.527764",
"0.5276444",
"0.5271541",
"0.5270293",
"0.52693224",
"0.5262955",
"0.52616286",
"0.5255992",
"0.5252005",
"0.52417463",
"0.5238059",
"0.5235383",
"0.52351624",
"0.52338904",
"0.52334267",
"0.5227638",
"0.5226414",
"0.52249163",
"0.5220072",
"0.52180314",
"0.5213972",
"0.5207548",
"0.5207394",
"0.5207298",
"0.51992714",
"0.5186684",
"0.51862967",
"0.5185693",
"0.5184676",
"0.5183361",
"0.51829743"
]
| 0.0 | -1 |
Get the instance name. | public String getName() {
return m_name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getName() {\n\t\treturn name + instanceName;\n\t}",
"@Override\n\tpublic String getInstanceName() {\n\t\treturn instanceName;\n\t}",
"public String getName() {\n return instance.getName();\n }",
"public String getInstanceName() {\n return this.mInstanceName;\n }",
"public String getName() {\n return instance.getName();\n }",
"public String getName() {\n return instance.getName();\n }",
"public String getName() {\n return instance.getName();\n }",
"java.lang.String getInstanceName();",
"@Override\n public String toString()\n {\n return instanceName;\n }",
"@Override\n public String toString()\n {\n return instanceName;\n }",
"public final String getName() {\n if (name == null) {\n name = this.getClass().getSimpleName().substring(3);\n }\n return name;\n }",
"public static String getName() {\n return name;\n }",
"public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }",
"public com.google.protobuf.ByteString\n getNameBytes() {\n return instance.getNameBytes();\n }",
"public com.google.protobuf.ByteString\n getNameBytes() {\n return instance.getNameBytes();\n }",
"public com.google.protobuf.ByteString\n getNameBytes() {\n return instance.getNameBytes();\n }",
"public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }",
"@Override\n\t\tpublic String getInstanceName() {\n\t\t\treturn null;\n\t\t}",
"public String getName() {\n\t\treturn this.toString();\n\t}",
"public String name() {\n this.use();\n\n return name;\n }",
"public com.google.protobuf.ByteString\n getNameBytes() {\n return instance.getNameBytes();\n }",
"public final Identifier getName() {\n return getMemberImpl().getName();\n }",
"public String getName() {\n return name.get();\n }",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }",
"public String getName() {\r\n return this.name();\r\n }",
"public String getName ()\n {\n if (__name == null)\n {\n __name = getName (getClass ());\n }\n return __name;\n }",
"public java.lang.String getName();",
"public final String getName() {\n\treturn name.getName();\n }",
"com.google.protobuf.ByteString getInstanceNameBytes();",
"public String getName() {\n return (String) getValue(NAME);\n }",
"public String getInstName() {\n\t\t\treturn instName;\n\t\t}",
"public final String name() {\n\t\treturn name;\n\t}",
"protected String logInstanceName() {\n\t\treturn getClass().getName();\n\t}",
"public String getInstName() {\n return instName;\n }",
"public final String name() {\n return name;\n }",
"public String getInstName() {\r\n return instName;\r\n }",
"public Object getName() {\n\t\treturn this.name;\n\t}",
"public Object getName() {\n\t\treturn this.name;\n\t}",
"public String getName() {\r\n \treturn this.getClass().getName();\r\n }",
"protected String getName() {\n\t\treturn name;\n\t}",
"protected String getName() {\n\t\treturn name;\n\t}",
"public final String getName() {\n\t\treturn this.name;\n\t}",
"public final String getName() {\n return this.name;\n }",
"public final String name ()\r\n {\r\n return _name;\r\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"public final String getName() {\n return name;\n }",
"@Override\n\t\tfinal public String getName() {\n\t\t\treturn this.Name;\n\t\t}",
"public String getName() {\r\n assert name != null;\r\n return name;\r\n }",
"public String getName()\n {\n return (this.name);\n }",
"public String getName() {\n return name_;\n }",
"public final String getName() {\r\n return name;\r\n }",
"@Override\n public String getName() {\n return this.getClass().getSimpleName();\n }",
"public String getName ()\n {\n return name_;\n }",
"public String getName() {\n return name_;\n }",
"public String getName() {\n return name_;\n }",
"public String getName() {\n return name_;\n }",
"protected String getName() {\n\t\t\t\treturn name;\n\t\t\t}",
"public String getName() {\r\n return this.NAME;\r\n }",
"public final String getName() {\n return name;\n }",
"public String getName() {\n if (MyName != null) {\n return new String(MyName);\n }\n return null;\n }",
"public String getName()\n\t{\n\t\treturn this._name;\n\t}",
"@Override\r\n\tpublic String getName() {\n\t\treturn this.name;\r\n\t}",
"public String getName()\r\n\t{\r\n\t\treturn this._name;\r\n\t}",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();"
]
| [
"0.8368315",
"0.8250052",
"0.8058744",
"0.80170304",
"0.7992931",
"0.7992931",
"0.7992931",
"0.7977898",
"0.74686575",
"0.74686575",
"0.7328434",
"0.7144274",
"0.71351534",
"0.7069427",
"0.7069427",
"0.7069427",
"0.70673704",
"0.70650524",
"0.7062352",
"0.70386285",
"0.7027763",
"0.7024144",
"0.70113313",
"0.6977937",
"0.6942409",
"0.6933583",
"0.68766487",
"0.68356425",
"0.6829013",
"0.6815942",
"0.68013513",
"0.67907363",
"0.6786999",
"0.6783749",
"0.6772718",
"0.6772665",
"0.6772188",
"0.67675817",
"0.67675817",
"0.67665446",
"0.6752672",
"0.6752672",
"0.6749745",
"0.67475235",
"0.6718179",
"0.6712048",
"0.6712048",
"0.6712048",
"0.6712048",
"0.6712048",
"0.67101",
"0.6693808",
"0.6690321",
"0.6686951",
"0.6685999",
"0.66757125",
"0.66694796",
"0.6665257",
"0.6665257",
"0.6665257",
"0.6663522",
"0.6658732",
"0.665576",
"0.664487",
"0.6644024",
"0.66411144",
"0.6641",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643",
"0.66406643"
]
| 0.0 | -1 |
Get the list of object created by the described instance. | public String[] getCreatedObjects() {
return m_createdObjects;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}",
"List<SoftObjectReference> getObjects();",
"@SuppressWarnings(\"unchecked\")\r\n public List<DomainObject> getList() {\r\n Session session = getSession();\r\n try {\r\n session.flush();\r\n return session.createQuery(\"from \" + getPersistentClass().getName()).list();\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getList() Method:\" + e, e);\r\n throw e;\r\n }\r\n }",
"public ArrayList getObjsList() {\n return objList;\n }",
"Collection<Instance> getInstances();",
"protected Object[] getList() {\n return list;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<T> list() {\n\t\treturn sessionFactory.getCurrentSession().createCriteria(clazz).addOrder(org.hibernate.criterion.Order.asc(\"id\")).list();\n\t}",
"public static ArrayList<InstanceEntity> getInstances() {\n ILifeCycleServiceRest resourceserviceproxy =\n ConsumerFactory.createConsumer(MsbUtil.getNsocLifecycleBaseUrl(),\n ILifeCycleServiceRest.class);\n String result = \"\";\n try {\n result = resourceserviceproxy.getVnfInstances();\n } catch (Exception e1) {\n LOG.error(\"query vim info faild.\", e1);\n return null;\n }\n if (ToolUtil.isEmptyString(result)) {\n return null;\n }\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<InstanceEntity>>() {}.getType();\n return gson.fromJson(result, listType);\n }",
"private Collection getInstances() {\n \t\tCollection instances=null;\r\n\r\n //instances = cls.getInstances();\r\n \t\tRDFProperty ready = owlModel.getRDFProperty(oTab.namespacePrefix + \":\" + oTab.pReady);\r\n\r\n \t\tif ( ready != null )\r\n \t\t{\r\n \t\t\tinstances = owlModel.getRDFResourcesWithPropertyValue(ready, true);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tSystem.out.println(\"*** Could not lookup property defintion for \" + oTab.namespacePrefix + \":\" + oTab.pReady + \" Ontology not imported\");\r\n \t\t}\r\n\r\n return instances;\r\n }",
"public Collection getRegisteredObjects() {\n return usedByObjects;\n }",
"public List<ObservateurGenerateurAsync> getListobs() {\n\t\treturn listobs;\n\t}",
"Object getTolist();",
"private List<T> createObjects(ResultSet resultSet) {\n\t\tList<T> list = new ArrayList<T>();\n\t\ttry {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\tT instance = type.newInstance();\n\t\t\t\tfor (Field field : type.getDeclaredFields()) {\n\t\t\t\t\tObject value = resultSet.getObject(field.getName());\n\t\t\t\t\tPropertyDescriptor propertyDescriptor = new PropertyDescriptor(field.getName(), type);\n\t\t\t\t\tMethod method = propertyDescriptor.getWriteMethod();\n\t\t\t\t\tmethod.invoke(instance, value);\n\t\t\t\t}\n\t\t\t\tlist.add(instance);\n\t\t\t}\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SecurityException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IntrospectionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"public List<T> getSavedObjects() {\n // Lazily generate the object, in case it's not needed.\n if (objects == null) {\n if (dbObjects.length > 0) {\n if (dbObjects[0] instanceof JacksonDBObject) {\n throw new UnsupportedOperationException(\n \"Saved object retrieval not supported when using stream serialization\");\n }\n }\n objects = jacksonDBCollection.convertFromDbObjects(dbObjects);\n }\n return objects;\n }",
"public List<GameObject> getObjects () {\n\t\treturn objects;\n\t}",
"public List<ServiceInstance> getAllInstances();",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<T> getList() {\n\t\tthis.hql = \"select m from \" + entityClassName + \" as m \";\n\t\tList<T> resultSet = entity.createQuery(this.hql).getResultList();\n\t\treturn resultSet;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public <T> List<T> list() {\n return (List<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }",
"public List<ServiceInstance<InstanceDetails>> listInstances() throws Exception {\n\t\tCollection<String> serviceNames = serviceDiscovery.queryForNames();\n\t\tSystem.out.println(serviceNames.size() + \" type(s)\");\n\t\tList<ServiceInstance<InstanceDetails>> list = new ArrayList<>();\n\t\tfor (String serviceName : serviceNames) {\n\t\t\tCollection<ServiceInstance<InstanceDetails>> instances = serviceDiscovery.queryForInstances(serviceName);\n\t\t\tSystem.out.println(serviceName);\n\t\t\tfor (ServiceInstance<InstanceDetails> instance : instances) {\n\t\t\t\toutputInstance(instance);\n\t\t\t\tlist.add(instance);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"private ArrayList<T> createObjects(ResultSet resultSet) {\n\t\tArrayList<T> list = new ArrayList<T>();\n\t\ttry {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tT instance = null;\n\t\t\t\ttry {\n\t\t\t\t\tinstance = type.getDeclaredConstructor().newInstance();\n\t\t\t\t} catch (NoSuchMethodException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tfor (Field field : type.getDeclaredFields()) {\n\t\t\t\t\tObject value = resultSet.getObject(field.getName());\n\t\t\t\t\tPropertyDescriptor propertyDescriptor = new PropertyDescriptor(field.getName(), type);\n\t\t\t\t\tMethod method = propertyDescriptor.getWriteMethod();\n\t\t\t\t\tmethod.invoke(instance, value);\n\t\t\t\t}\n\t\t\t\tlist.add(instance);\n\t\t\t}\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SecurityException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IntrospectionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"private List<T> createObjects(ResultSet rs){\n\t\tList<T> list = new ArrayList<T>();\n\t\t\n\t\ttry {\n\t\t\twhile(rs.next()) {\n\t\t\t\tT instance = type.newInstance();\n\t\t\t\tfor(Field field : type.getDeclaredFields()) {\n\t\t\t\t\tObject value = rs.getObject(field.getName());\n\t\t\t\t\tPropertyDescriptor pd = new PropertyDescriptor(field.getName(), type);\n\t\t\t\t\tMethod method = pd.getWriteMethod();\n\t\t\t\t\tmethod.invoke(instance, value);\n\t\t\t\t}\n\t\t\t\tlist.add(instance);\n\t\t\t}\n\t\t}catch(InstantiationException e) {\n\t\t\te.getStackTrace();\n\t\t} catch (java.beans.IntrospectionException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"public List getTheObjects() {\r\n if (theObjects == null) {\r\n setTheObjects(new Vector());\r\n }\r\n return theObjects;\r\n }",
"public List<New> list();",
"@Override\n\tpublic List<TaskKeeper> getList() {\n\t\treturn (List<TaskKeeper>) taskKeeperRepositories.findAll();\n\t}",
"public List<Object> getObjectsForTest() {\n return objects;\n }",
"public List<Observer> getList() {\n return list;\n }",
"public List getList();",
"public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\n if (instance == null) {\n iterator.remove();\n } else {\n res.add(instance);\n }\n }\n return res;\n }\n }",
"public ArrayList<String> getObjects(){\n ArrayList<String> objs = new ArrayList<>();\n for (int i = 0; i < field.length; i++){\n objs.add(\"Asteroid\");\n }\n return objs;\n }",
"TaskList getList();",
"public java.util.List<SeriesInstance> getInstance() { \n\t\tif (myInstance == null) {\n\t\t\tmyInstance = new java.util.ArrayList<SeriesInstance>();\n\t\t}\n\t\treturn myInstance;\n\t}",
"public List<T> list()\n\t{\n\t\tfinal List<T> list = this.dao.findAll();\n\t\treturn list;\n\t}",
"public List<OnlineObject> getNewObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn new ArrayList<OnlineObject>(this.recentlyAddedObjects);\n\t\t}\n\t}",
"public abstract List<Object> getAll();",
"public static GameObjectList getInstance() {\n if (_instance == null) {\n _instance = new GameObjectList();\n }\n return _instance;\n }",
"private List<SimpleComponent> list() {\n\t\treturn this.list(null);\n\t}",
"public abstract List<T> getList();",
"public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}",
"public List<T> getList() {\n\t\treturn list;\n\t}",
"public Object[] getList() {\n Object[] list = new Object[size()];\n copyInto(list);\n return list;\n }",
"public Collection<GObject> getObjects();",
"public List<Person> getPersonList(){\n return personList;\n }",
"public java.util.List<SeriesInstance> getInstanceElement() { \n\t\tif (myInstance == null) {\n\t\t\tmyInstance = new java.util.ArrayList<SeriesInstance>();\n\t\t}\n\t\treturn myInstance;\n\t}",
"<T> IList<T> getObjects(Class<T> type);",
"private List<Entity> getListObjectByObject(final Entity entity){\n\t\tList<Entity> result = null;\n\t\tAbstractDao<Entity> aDao = new AbstractDao<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic Class getEntityClass() {\n\t\t\t\t\treturn entity.getClass();\n\t\t\t\t}\n\t\t\t};\n\t\t\ttry {\n\t\t\t\tresult = aDao.findByExample(entity);\n\t\t\t} catch (DAOTechnicalException e) {\n\t\t\t\tLOG.debug(e.getMessage());\n\t\t\t}\n\t\t\treturn result;\n\t\t}",
"public final List getList()\n {\n return this.list;\n }",
"public List<ValueObject> getValueObjects()\r\n {\r\n List<ValueObject> vos = new ArrayList<ValueObject>();\r\n vos.add(getValueObject());\r\n return vos;\r\n }",
"public List<T> findAll() {\n\n\t\tConnection dbConnection = ConnectionFactory.getConnection();\n\t\tPreparedStatement findStatement = null;\n\t\tResultSet rs = null;\n\t\tString findStatementString = \"SELECT * FROM \" + type.getSimpleName();\n\n\t\ttry {\n\t\t\tfindStatement = dbConnection.prepareStatement(findStatementString);\n\t\t\trs = findStatement.executeQuery();\n\t\t\treturn createObjects(rs);\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:findAll\" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionFactory.close(rs);\n\t\t\tConnectionFactory.close(findStatement);\n\t\t\tConnectionFactory.close(dbConnection);\n\t\t}\n\t\treturn null;\n\t}",
"public List<Event> getCreatedEvents() {\n return createdEvents;\n }",
"public <T extends Base> List<T> list(Class<T> T) throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn Core.list(T, getHttpMethodExecutor());\n\t}",
"@Override\n\tpublic ArrayList<Object> getList() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\n\t\tString hsql=\"from hibernate.pojo.GmSite as site where site.display='true'\";\n\t\tQuery query = session.createQuery(hsql);\n\t\tsession.getTransaction().commit();\n\t\tArrayList<Object> list = new ArrayList<Object>();\n\t\tlist = (ArrayList<Object>) query.list();\n\t\t\n\t\tsession.close();\n\t\treturn list;\n\t}",
"T[] getObjects() {\n\t\treturn this.array;\n\t}",
"public final List<CharacterInstance> getInstances() {\n return instances;\n }",
"public ArrayList<Instance> getTestInstances() {\n ArrayList<Instance> testing = new ArrayList<>();\n testing.addAll(instances.subList(targetsize, instances.size()));\n return testing;\n }",
"public List<FieldObject> getFieldObjects() {\n return _fieldObjects;\n }",
"public List<People> getPeople();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"List<T> getAll();",
"public List<Classinfo> list() {\n\t\treturn null;\r\n\t}",
"public ObjectList getList(){\n return payroll;\n }",
"@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}",
"@Override\n public List<Object> list() {\n return null;\n }",
"protected abstract List<E> getList();",
"public List<Person> getListSynchronsprecher() {\n\t\treturn this.listSynchronsprecher;\n\t}",
"public UserList list();",
"@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Curso.findAll\", null);\n }",
"public static Object getLista(Object obj) {\n\t\tConexionDB db=new TipoComisionDB();\r\n\t\treturn db.getAll(obj);\r\n\t}",
"private List<BdmDocument> getDocumentList() {\n\t\tList<BdmDocument> documents = new ArrayList<>(1);\n\t\tdocuments.add(new BdmDocument(this.getTestBdm()));\n\t\treturn documents;\n\t}",
"public ArrayList<GUIObject> getChildObjects() {\n return new ArrayList<>();\n }",
"public String[] listObjectNames();",
"@Override\r\n\tpublic List<ComVO> comList() {\n\t\treturn adao.ComList();\r\n\t}",
"public Map<String, Object> getObjects() {\n return objects;\n }",
"List<SchoolMasterVo> getSchoolMasterVoList();",
"List<T> obtenerAll();",
"@NonNull\n public List<T> getList() {\n return data;\n }",
"public List<Object> selectAllToObject(Class clazz) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, clazz);\n ConnectionPoll.releaseConnection(connection);\n return crudService.selectAll(clazz);\n }",
"@Override\n\tpublic List<AposentadoriaCompulsoria> listaDeObjetos() {\n\t\treturn null;\n\t}",
"public List getList() {\n return Arrays.asList(toJavaArray()); \n }",
"public List<ServiceRegistry> getServiceRegistrys() {\n\t\treturn (new ServiceRegistryDAO()).getCloneList();\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@PersistenceContext\n\tpublic static List<KoeficientObject> getInListAllValueKoeficientObject() {\n\t\tEntityManagerFactory emfactory = GlobalVariableForSQL_DBase.getDBase();\n\t\tEntityManager entitymanager = GlobalVariableForSQL_DBase.getEntityManagerDBase(emfactory);\n\t\tentitymanager.getTransaction().begin();\n\t\tQuery query = entitymanager.createNamedQuery(\"getListAllKoeficientObject\");\n\t\tList<KoeficientObject> list = query.getResultList();\n\t\tentitymanager.close();\n\t\temfactory.close();\n\t\treturn list;\n\t}",
"public List<Service> list(){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \treturn criteria.list();\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t\r\n\tpublic List<ParadaUtil> listar() {\n\t\tiniciarTransacao();\r\n\t\tCriteria c = s.createCriteria(ParadaUtil.class);\r\n\t\tc.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\r\n\t\treturn c.list();\r\n\t}",
"public List<Instance> getSamples(){\n\t\treturn arrIns;\n\t}",
"public java.util.List getList() {\n\t\treturn list;\n\t}",
"@Override\r\n\tpublic List<OwnerVO> ownerList() {\n\t\treturn adao.OwnerList();\r\n\t}",
"ArrayList<E> getAllObjects() throws DatabaseNotAccessibleException;",
"@Override\n\tpublic List<Tags> getlist() {\n\t\treturn TagsRes.findAll();\n\t}",
"java.util.List<UserOuterClass.ExperimentInfo> \n getExperimentsList();",
"private List getList() {\n if(itemsList == null) {\n itemsList = new ArrayList<>();\n }\n return itemsList;\n }",
"public List<ObserverAsync<Capteur>> getListObserver() {\n\t\tList<ObserverAsync<Capteur>> ret = new ArrayList<ObserverAsync<Capteur>>();\n\t\tIterator ite = this.listObserver.iterator();\n\t\twhile(ite.hasNext()){\n\t\t\tret.add((ObserverAsync<Capteur>) ite.next());\n\t\t}\n\t\t\n\t\treturn ret;\n\t}",
"private StudentRecord[] getList() {\r\n\t\treturn this.list;\r\n\t}",
"@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Inscripcion.findAll\", null);\n }",
"@DISPID(10)\n\t// = 0xa. The runtime will prefer the VTID if present\n\t@VTID(19)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject list();",
"@Override\r\n\tpublic Object getList() {\n\t\treturn userDao.getList();\r\n\t}",
"private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}",
"public static java.util.List<DBFactory<? extends DBRecord<?>>> getFactoryList()\n {\n return DBFactory.factoryList;\n }",
"public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}"
]
| [
"0.70608085",
"0.67258805",
"0.65590906",
"0.65047765",
"0.6441355",
"0.6420093",
"0.6397176",
"0.62915015",
"0.626626",
"0.622109",
"0.62061185",
"0.6197611",
"0.6158046",
"0.61495227",
"0.6132931",
"0.61321163",
"0.61030585",
"0.6073462",
"0.6073422",
"0.60640126",
"0.6052663",
"0.59895986",
"0.59882426",
"0.5975468",
"0.5964804",
"0.59449244",
"0.5943022",
"0.5936581",
"0.59265006",
"0.59187394",
"0.5866885",
"0.5857486",
"0.58510315",
"0.58485067",
"0.5827237",
"0.58242404",
"0.5816828",
"0.58164114",
"0.5791794",
"0.5783032",
"0.57533026",
"0.5731874",
"0.5729961",
"0.5712076",
"0.5708878",
"0.57085097",
"0.5706402",
"0.5697744",
"0.56972724",
"0.5696928",
"0.5687526",
"0.5653531",
"0.56420434",
"0.5636476",
"0.56332994",
"0.56259024",
"0.56213415",
"0.56213415",
"0.56213415",
"0.56213415",
"0.56213415",
"0.56110126",
"0.5610939",
"0.559955",
"0.55920744",
"0.55891466",
"0.55724806",
"0.556466",
"0.5556525",
"0.5550672",
"0.5547648",
"0.55459416",
"0.55432034",
"0.55429906",
"0.5534259",
"0.5532575",
"0.5529569",
"0.55260897",
"0.55223995",
"0.5522012",
"0.55214655",
"0.55114895",
"0.5507177",
"0.5504683",
"0.5502239",
"0.5492048",
"0.5491401",
"0.54887",
"0.5484985",
"0.54747504",
"0.5472092",
"0.54459554",
"0.5440407",
"0.5436395",
"0.543191",
"0.5431737",
"0.54300386",
"0.5425689",
"0.54254013",
"0.5425252"
]
| 0.6220102 | 10 |
Set the array of objects created by the described instance. | public void setCreatedObjects(String[] objects) {
m_createdObjects = objects;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void set(Object[] objects) {\r\n this.objects = objects;\r\n }",
"protected void setArray(Object[] array){\r\n\t \tthis.array = array;\r\n\t }",
"public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }",
"public static void setInstance(GameObjectList gameObjects) {\n _instance = gameObjects;\n }",
"protected MyAbstractList(E[] objects) {\n for (int i = 0; i < objects.length; i++)\n add(objects[i]);\n }",
"public void setArray(Object[] array)\n\t{\n\t\tif (SanityManager.DEBUG)\n\t\t{\n\t\t\tSanityManager.ASSERT(array != null, \n\t\t\t\t\t\"array input to setArray() is null, code can't handle this.\");\n\t\t}\n\n\t\tthis.array = ArrayUtil.copy( array );\n\t}",
"void setStart(Object[] newStart);",
"public void set(Object[] newContents) {\r\n\t\tAssert.isNotNull(newContents);\r\n\t\tdata.clear();\r\n\t\tdata.addAll(Arrays.asList(newContents));\r\n\r\n\t\tIConcurrentModelListener[] listeners = getListeners();\r\n\t\tfor (IConcurrentModelListener listener : listeners) {\r\n\t\t\tlistener.setContents(newContents);\r\n\t\t}\r\n\t}",
"void setObjectDefinitionArray(com.exacttarget.wsdl.partnerapi.ObjectDefinition[] objectDefinitionArray);",
"void setObjectDefinitionArray(int i, com.exacttarget.wsdl.partnerapi.ObjectDefinition objectDefinition);",
"public void setOracleArray(Object[] paramArrayOfObject)\n/* */ {\n/* 672 */ if ((this.factory == null) && (this.old_factory == null)) {\n/* 673 */ setDatumArray((Datum[])paramArrayOfObject);\n/* */ } else {\n/* 675 */ setObjectArray(paramArrayOfObject);\n/* */ }\n/* */ }",
"void setPlaces(Place[] places);",
"public void inicialisation(){\r\n\t\t\r\n\t\tgoods = new AutoParts[0];\r\n\t\tclient = new Client[0];\r\n\t\t\r\n\t\tshop = new Shopping[0];\r\n\t\tsale = new Sale[0];\r\n\t\ttransaction = new Document[0];\r\n\t\t\r\n\t\tbalancesAutoParts = new BalancesAutoParts[0];\r\n\t\t\r\n\t\tprices = new Prices[0];\r\n\t\t\r\n\t\tagriment = new Agreement[0];\r\n\t\t\r\n\t}",
"public Set(){\n setSet(new int[0]);\n }",
"public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }",
"public ObjectStack() {\n this.collection = new ArrayIndexedCollection();\n }",
"protected MyAbstractClass(E[] objects) //contructor\n{\nfor(int i = 0; i < objects.length; i++)\nadd(objects[i]);\n}",
"public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}",
"public void fillPropertyArray()\n \t{\n \t\tsuper.fillPropertyArray();\n \t\tsuper.fillPropertyArray( gui );\n \t}",
"public void setItems(){\n }",
"T[] getObjects() {\n\t\treturn this.array;\n\t}",
"private void setEverything(){\r\n int listLength = propertyList.length -1;\r\n arrayIterator = new ArrayIterator<>(propertyList, listLength+1);\r\n\r\n this.priceTree = new SearchTree<>(new PriceComparator());\r\n this.stockTree = new SearchTree<>(new StockComparator());\r\n this.ratingTree = new SearchTree<>(new RatingComparator());\r\n this.deliveryTree= new SearchTree<>(new DeliveryTimeComparator());\r\n\r\n this.foodArray = new ArrayQueue<>();\r\n this.restaurantArray = new ArrayQueue<>();\r\n\r\n // Fill arrays from property list.\r\n createFoodArray();\r\n arrayIterator.setCurrent(0); //Since the restaurantArray will use the same iterator\r\n createRestaurantArray();\r\n\r\n // Fill Binary Search Trees\r\n createFoodTrees();\r\n createRestaurantTrees();\r\n }",
"@Override\n\tpublic void setInstances(Instances insts) {\n\t\t\n\t}",
"public static void main(String[] args) {\n EmpClass[] obj = new EmpClass[4];\n int i;\n for(i=0;i<=obj.length;i++) {\n\n obj[i]=new EmpClass(1,\"AG\");\n\n obj[i].getData();\n obj[i].putData();\n }\n /* for (i=0;i<=3;i++) {\n obj.getData();\n obj.putData();\n }*/\n // obj.putData();\n }",
"public void setInstances(List<double[]> features) {\n\t\tthis.instances = features;\n\t}",
"PropertyArray() {\n this.myArrayList = new ArrayList<>();\n }",
"public void setTheObjects(List newTheObjects) {\r\n theObjects = newTheObjects;\r\n }",
"public void setArray(int i, Array x);",
"private RubyArray(Ruby runtime, RubyClass klass, int length) {\n super(runtime, klass);\n values = new IRubyObject[length];\n }",
"protected void setArray (JField jf, Vector nodes, Object obj, XmlDescriptor desc,\n\t\t\t\t\t\t\t UnmarshalContext context) throws Exception {\n\t\tif (nodes.size () == 0) return;\n\t\tClass thisClass = obj.getClass();\n\n\t\tObject theArray = Array.newInstance (getAClass (jf.getObjectType ()), nodes.size ());\n\t\tObject value = null;\n Method m = null;\n\n\t\tm = getASetMethod (thisClass, \"set\" + jf.getGetSet(), theArray.getClass ());\n\n\t\tfor (int i=0; i< nodes.size (); i++) {\n\t\t\t// W3CXmlNode ..\n\t\t\tXmlNode thisNode = ((XmlNode)nodes.elementAt (i));\n\t\t\tif (jf instanceof JCompositeField) {\n\t\t\t\tXmlDescriptor fieldDesc = (XmlDescriptor)this.classList.get (jf.getObjectType());\n\t\t\t\tvalue = unmarshal (thisNode, context, fieldDesc);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tvalue = getPrimitive (thisNode, jf, context);\n\t\t\t\t\n\t\t\t}\n\n\t\t\tArray.set (theArray, i, value);\n\t\t}\n\t\tm.invoke(obj, new Object[]{theArray});\n\t}",
"void setTvAttrib() {\r\n obj1.brandname = \"PANASONIC\"; //setting brandname for obj1\r\n obj1.size = 65; //setting size for obj1\r\n vendor.add(obj1); //adding to arraylist vendor\r\n\r\n obj2.brandname = \"KELVIN\"; //setting brandname for obj2\r\n obj2.size = 51; //setting size for obj2\r\n vendor.add(obj2); //adding to arraylist vendor\r\n\r\n obj3.brandname = \"SONY\"; //setting size for obj2\r\n obj3.size = 42; //setting size for obj2\r\n vendor.add(obj3); //adding to arraylist vendor\r\n\r\n }",
"public ZYArraySet(int initLength){\n if(initLength<0)\n throw new IllegalArgumentException(\"The length cannot be nagative\");\n elements = (ElementType[])new Object[initLength];\n }",
"public void set(String[] as);",
"@Override\n public void setParameters(Object[] params) {\n this.parameters = params != null ? params : new Object[0];\n }",
"@BeforeClass\r\n public static void setUp() throws Exception {\r\n instance = new Array1();\r\n }",
"public ObjectMappers() {\n\t\tthis.objectMappers = ImmutableList.of();\n\t}",
"public Company(int size) {\n employees = new Person[size];\n }",
"public void setItems(Object[] newItems)\n {\n items = new Vector(newItems.length);\n for (int i=0; i < newItems.length; i++)\n {\n items.addElement(newItems[i]);\n }\n }",
"void setContents(T[] contents);",
"private void setData() {\n populateInterfaceElements();\n }",
"public ObjectStack() {collection = new ArrayIndexedCollection();}",
"public void setCarItems(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = COMPANY_CAR_OPTIONS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\tthis.car_options = comboItems;\r\n\t}",
"ArrayProxyValue createArrayProxyValue();",
"public ObjectStack() {\n\t\tcollection = new ArrayBackedIndexedCollection();\n\t}",
"@Override\n\t\tpublic void setParameters(Object[] parameters) {\n\t\t\t\n\t\t}",
"public static void initializeClassAttributes() {\n\t\tAboraSupport.findAboraClass(IntegerVarArray.class).setAttributes( new Set().add(\"CONCRETE\").add(\"PSEUDOCOPY\"));\n\t}",
"void setDatumArray(Datum[] paramArrayOfDatum)\n/* */ {\n/* 979 */ if (paramArrayOfDatum == null) {\n/* 980 */ setNullArray();\n/* */ }\n/* */ else {\n/* 983 */ this.length = paramArrayOfDatum.length;\n/* 984 */ this.elements = null;\n/* 985 */ this.datums = ((Datum[])paramArrayOfDatum.clone());\n/* 986 */ this.pickled = null;\n/* 987 */ this.pickledCorrect = false;\n/* */ }\n/* */ }",
"@Override\n\tpublic void setDataset(final Instances instances) {\n\n\t}",
"private void init() {\n setMinutes(new int[] {});\n setHours(new int[] {});\n setDaysOfMonth(new int[] {});\n setMonths(new int[] {});\n setDaysOfWeek(new int[] {});\n }",
"public void setValues(List<Object> values);",
"public synchronized void setAttributeInstances(final Set<? extends AttributeType> newValues) {\n attributeInstances = copySet(newValues, attributeInstances, AttributeType.class);\n }",
"public static void main(String[] args) {\n ObjectArray[] objectArray = new ObjectArray[3];\n //Add new ObjectArray objects to the array\n objectArray[0] = new ObjectArray(\"ONE\");\n objectArray[1] = new ObjectArray(\"TWO\");\n objectArray[2] = new ObjectArray(\"THREE\");\n }",
"PropertyArray put(Object value) {\n PropertyObject.testValidity(value);\n this.myArrayList.add(value);\n return this;\n }",
"public void populateVehicleList() {\n\t\tfor (int i = 0; i < VEHICLE_LIST_SIZE; i++) {\n\t\t\tvehicleList[i] = createNewVehicle();\n\t\t}\n\t}",
"void setStarArray(stars.StarType[] starArray);",
"public void setObject(int i, T obj);",
"private Object createArray(Class<?> clazz)\n\t{\n\t\tObject mockValue;\n\t\tClass<?> componentType = clazz.getComponentType();\n\t\tmockValue = createInstanceOfType(componentType);\n\t\tObject array = Array.newInstance(componentType, MOCK_ARRAY_SIZE);\n\t\tfor (int ctr = 0; ctr < MOCK_ARRAY_SIZE; ctr++)\n\t\t{\n\t\t\tArray.set(array, ctr, mockValue);\n\t\t}\n\t\tmockValue = array;\n\t\treturn mockValue;\n\t}",
"@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }",
"public void init() {\n initLayers();\n for (int i = 0; i < indivCount; i++) {\n ArrayList<Layer> iLayers = new ArrayList<>();\n for (Layer l : layers)\n iLayers.add(l.cloneSettings());\n individuals[i] = new Individual(iLayers);\n }\n }",
"public ArrayRegister(int size) {\r\n persons = new Person[size];\r\n count = 0;\r\n }",
"public synchronized void setFeatureInstances(final Set<? extends FeatureType> newValues) {\n featureInstances = copySet(newValues, featureInstances, FeatureType.class);\n }",
"public GameObjectCollection() {\n\t\tgameObjects = new Vector<GameObject>();\n\t}",
"private void setArrays() {\n // Set the tile arrays\n tileLogic = new boolean[size][size];\n tilesTex = new TextureRegion[size][size];\n\n // Set all tilesTex to clear\n for(int y = 0; y < size; y++)\n for(int x = 0; x < size; x++)\n tilesTex[x][y] = new TextureRegion(assets.clearTile);\n }",
"private void init() {\n filmCollection = new FilmCollection();\n cameraCollection = new CameraCollection();\n }",
"@Test\r\n public void testSetUserHobbies()\r\n {\r\n System.out.println(\"setUserHobbies\");\r\n String[] userHobbies = {\"Football\", \"Rugby\"};\r\n String occupation = \"Doctor\";\r\n String[] hobbies = {\"Reading\", \"Cooking\"};\r\n int id = 5;\r\n LifeStyleBean instance = new LifeStyleBean(occupation, hobbies, id);\r\n instance.setUserHobbies(userHobbies);\r\n Assert.assertArrayEquals(userHobbies, instance.getUserHobbies());\r\n }",
"void setArrayGeneric(int paramInt)\n/* */ {\n/* 1062 */ this.length = paramInt;\n/* 1063 */ this.datums = new Datum[paramInt];\n/* 1064 */ this.pickled = null;\n/* 1065 */ this.pickledCorrect = false;\n/* */ }",
"public Zookeeper(Animal[] my_zoo){\n zoo = my_zoo;\n }",
"public void set(NioImageBuffer[] images) {\n\n \tthrow new UnsupportedOperationException();\n /*\n checkForLiveOrCompiled();\n\tint depth = ((ImageComponent3DRetained)this.retained).getDepth();\n\n if (depth != images.length)\n\t throw new IllegalArgumentException(J3dI18N.getString(\"ImageComponent3D1\"));\n for (int i=0; i<depth; i++) {\n ((ImageComponent3DRetained)this.retained).set(i, images[i]);\n }\n */\n }",
"public ResizingArray() {\r\n super();\r\n this.aObjects = new Object[ResizingArray.DEFAULT_SIZE];\r\n this.aFreeElements = new int[ResizingArray.DEFAULT_SIZE];\r\n }",
"private void setObjects(){\n \n initialImg = \"\";\n initialImgDir= \"\";\n boolean first = true;\n \n \n for(IDataObject object : objects){\n \n locationFieldX.setText(doubleFormat.format(object.getXf()));\n locationFieldY.setText(doubleFormat.format(object.getYf()));\n locationFieldZ.setText(doubleFormat.format(object.getZf()));\n nameField.setText(object.getName());\n \n String rotX = doubleFormat.format(object.getRotationX());\n String rotY = doubleFormat.format(object.getRotationY());\n String rotZ = doubleFormat.format(object.getRotationZ());\n String scale = doubleFormat.format(object.getScale());\n \n //if more items are selected, check if they are different.\n if(!first && !rotationFieldX.getText().equals(rotX))\n rotationFieldX.setText(BUNDLE.getString(\"DifferentValues\"));\n else\n rotationFieldX.setText(rotX);\n \n if(!first && !rotationFieldY.getText().equals(rotY))\n rotationFieldY.setText(BUNDLE.getString(\"DifferentValues\"));\n else\n rotationFieldY.setText(rotY);\n \n if(!first && !rotationFieldZ.getText().equals(rotZ))\n rotationFieldZ.setText(BUNDLE.getString(\"DifferentValues\"));\n else\n rotationFieldZ.setText(rotZ);\n \n if(!first && !scaleField.getText().equals(scale))\n scaleField.setText(BUNDLE.getString(\"DifferentValues\"));\n else\n scaleField.setText(scale);\n\n if(initialImg != null){\n String imgNameLocal = object.getImgClass().getName();\n \n if(initialImg.equals(\"\"))\n initialImg = imgNameLocal;\n else if(initialImg.equals(imgNameLocal))\n initialImg = null;\n }\n\n if(initialImgDir != null){\n String imgDirLocal = object.getImgClass().getDir();\n \n if(initialImgDir.equals(\"\"))\n initialImgDir = imgDirLocal;\n else if(initialImgDir.equals(imgDirLocal))\n initialImgDir = null;\n }\n if(first)\n first = false;\n }\n \n initialX = locationFieldX.getText();\n initialY = locationFieldY.getText();\n initialZ = locationFieldZ.getText();\n initialRotX = rotationFieldX.getText();\n initialRotY = rotationFieldY.getText();\n initialRotZ = rotationFieldZ.getText();\n initialScale = scaleField.getText();\n initialName = nameField.getText();\n \n //lock specific fields, if there are more than one\n //item selected.\n if(objects.size()>1){\n locationFieldX.setText(\"\");\n locationFieldY.setText(\"\");\n locationFieldZ.setText(\"\");\n nameField.setText(\"\");\n locationFieldX.setEnabled(false);\n locationFieldY.setEnabled(false);\n locationFieldZ.setEnabled(false);\n nameField.setEnabled(false);\n setLabelColorStandard(xLabel, disabledColor);\n setLabelColorStandard(yLabel, disabledColor);\n setLabelColorStandard(zLabel, disabledColor);\n setLabelColorStandard(nameLabel, disabledColor);\n }else{\n locationFieldX.setEnabled(true);\n locationFieldY.setEnabled(true);\n locationFieldZ.setEnabled(true);\n nameField.setEnabled(true);\n setLabelColorStandard(xLabel, Color.red);\n setLabelColorStandard(yLabel, Color.blue);\n setLabelColorStandard(zLabel, Color.green);\n setLabelColorStandard(nameLabel, normalColor);\n }\n }",
"public EmbeddedObjects() {\n super();\n this._embeddedObjectList = new java.util.Vector<de.lsem.simulation.transformation.anylogic.generator.persistant.EmbeddedObject>();\n }",
"protected abstract void setClueModels();",
"public Manager() {\n\t\tsuper();\n\t\temployees = new Employee[10];\n\t}",
"public void setWorkPatterns(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = WORK_PATTERNS_OPTIONS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t\tthis.work_patterns = comboItems;\r\n\t}",
"public Driver() {\r\n\t\tShoe shoes[] = new Shoe[10]; //Array of ten shoes\r\n\t}",
"@Before\r\n public void setupTestCases() {\r\n instance = new ShoppingListArray();\r\n }",
"public void setShapes(Object shapes) {\r\n this.shapes = shapes;\r\n }",
"public MutableArray(Object[] paramArrayOfObject, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 180 */ this.sqlType = paramInt;\n/* 181 */ this.old_factory = paramCustomDatumFactory;\n/* 182 */ this.isNChar = false;\n/* */ \n/* 184 */ setObjectArray(paramArrayOfObject);\n/* */ }",
"protected Object[] getArray(){\r\n\t \treturn array;\r\n\t }",
"@Override\r\n\tpublic Object[] toArray() {\n\t\treturn set.toArray();\r\n\t}",
"public RepositorioClientesArray() {\n\t\tclientes = new Cliente[TAMANHO_CACHE];\n\t\tindice = 0;\n\t}",
"public void set(BufferedImage[] images) {\n checkForLiveOrCompiled();\n\tint depth = ((ImageComponent3DRetained)this.retained).getDepth();\n\n if (depth != images.length)\n throw new IllegalArgumentException(J3dI18N.getString(\"ImageComponent3D1\"));\n for (int i=0; i<depth; i++) {\n ((ImageComponent3DRetained)this.retained).set(i, images[i]);\n }\n }",
"public void setPresentationAsArray(Object[] presentation);",
"public void setAnimals(ArrayOfAnimalModel param) {\n localAnimalsTracker = true;\n\n this.localAnimals = param;\n }",
"public void setPointArray(java.util.List[] pointArray)\n {\n synchronized (monitor())\n {\n check_orphaned();\n arraySetterHelper(pointArray, POINT$0);\n }\n }",
"public void setAtoms(IAtom[] atoms) {\n this.atoms = atoms;\n atomCount = atoms.length;\n notifyChanged();\n }",
"public void setElementAt(Object obj, int index);",
"private void iniAllObjects(){\n References = new HashSet<>();\n\n TurnBack = findViewById(R.id.onItem_back);\n TurnBack.setOnClickListener(this);\n ShowOptions = findViewById(R.id.onItem_options);\n ShowOptions.setOnClickListener(this);\n\n RefrButton = findViewById(R.id.onItem_refr);\n RefrButton.setOnClickListener(this);\n RootButton = findViewById(R.id.onItem_root);\n RootButton.setOnClickListener(this);\n BackPageButton = findViewById(R.id.onItem_backpage);\n BackPageButton.setOnClickListener(this);\n AddPageButton = findViewById(R.id.onItem_add);\n AddPageButton.setOnClickListener(this);\n\n ItemType = findViewById(R.id.onItem_type);\n ItemWord = findViewById(R.id.onItem_word);\n ItemTran = findViewById(R.id.onItem_tran);\n ItemFon = findViewById(R.id.onItem_fon);\n ItemFlag = findViewById(R.id.onItem_flag);\n\n //iniRecyclerViewFragment();\n setObjectsContent();\n\n DotLayout = findViewById(R.id.onItem_dot);\n\n SlideViewPager = findViewById(R.id.onItem_ViewPager);\n SlideViewPager.addOnPageChangeListener(this);\n sliderAdapter = new SliderAdapter(this, getIntent().getExtras().getString(\"ThisInfo\"));\n SlideViewPager.setAdapter(sliderAdapter);\n\n addDotIndicator(0);\n }",
"public void setTimeLimitAsArray(Object[] timeLimit);",
"public void setWorkContractItems(){\r\n\t\tComboItem[] comboItems;\r\n\t\t//array list is used as interim solution due to the fact that regular arrays size is immutable\r\n\t\tArrayList<ComboItem> itemList = new ArrayList<ComboItem>();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t//Query database and populate array list with values. \r\n\t\t\tResultSet result = WORK_CONTRACT_OPTIONS.executeQuery();\r\n\t\t\twhile(result.next()){\r\n\t\t\t\titemList.add(new ComboItem(result.getInt(1), result.getString(2)));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Initialise new array with needed size\r\n\t\t\tcomboItems = new ComboItem[itemList.size()];\r\n\t\t\t//convert arraylist object into array\r\n\t\t\tcomboItems = itemList.toArray(comboItems);\r\n\t\t} catch (SQLException e) {\r\n\t\t\t//initialise empty array to be returned\r\n\t\t\tcomboItems = new ComboItem[0];\r\n\t\t\tlogger.log(Level.SEVERE, e.getMessage());\r\n\t\t} \r\n\t\t\r\n\t\tthis.work_contracts = comboItems;\r\n\t}",
"public void setParamValues(Object[] values);",
"void setArrayElement(int index, Object value);",
"void setArrayElement(int index, Object value);",
"public ArrayTaskList() {\n\t\tcount = 0;\n\t\tmassTask = new Task[10];\n\t}",
"public void setArr(int[] arr){ this.arr = arr; }",
"protected List<PObject> createIndependentObjects(final int num) {\n final List<PObject> pcs = new ArrayList<PObject>();\n final EntityManager entityManager = emf.createEntityManager();\n entityManager.getTransaction().begin();\n for (int i = 0; i < num; i++) {\n final PObject pobj = new PObject();\n pcs.add(pobj);\n entityManager.persist(pobj);\n pobj.setValue(10 + i);\n }\n entityManager.getTransaction().commit();\n entityManager.clear();\n return pcs;\n }",
"protected void setProperties(P[] properties) {\n\t\tthis.properties = properties;\n\t}",
"public void setAllNodesArray(ArrayList<Student> x) {\n students = x;\n }",
"public void setInstances(Instances inst) {\r\n\r\n\t\tm_Instances = inst;\r\n\r\n\t\tm_ignoreKeyModel.removeAllElements();\r\n\r\n\t\tString[] attribNames = new String[m_Instances.numAttributes()];\r\n\t\tfor (int i = 0; i < m_Instances.numAttributes(); i++) {\r\n\t\t\tString name = m_Instances.attribute(i).name();\r\n\t\t\tm_ignoreKeyModel.addElement(name);\r\n\r\n\t\t\tString type = \"\";\r\n\t\t\tswitch (m_Instances.attribute(i).type()) {\r\n\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\ttype = \"(Nom) \";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.NUMERIC:\r\n\t\t\t\ttype = \"(Num) \";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.STRING:\r\n\t\t\t\ttype = \"(Str) \";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.DATE:\r\n\t\t\t\ttype = \"(Dat) \";\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.RELATIONAL:\r\n\t\t\t\ttype = \"(Rel) \";\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\ttype = \"(???) \";\r\n\t\t\t}\r\n\t\t\tString attnm = m_Instances.attribute(i).name();\r\n\r\n\t\t\tattribNames[i] = type + attnm;\r\n\t\t}\r\n\r\n\t\tm_StartBut.setEnabled(m_RunThread == null);\r\n\t\tm_StopBut.setEnabled(m_RunThread != null);\r\n\t\tm_ignoreBut.setEnabled(true);\r\n\t\tm_ClassCombo.setModel(new DefaultComboBoxModel(attribNames));\r\n\t\tif (inst.classIndex() == -1)\r\n\t\t\tm_ClassCombo.setSelectedIndex(attribNames.length - 1);\r\n\t\telse\r\n\t\t\tm_ClassCombo.setSelectedIndex(inst.classIndex());\r\n\t\t//TODO KernelPanel\r\n\r\n\t}",
"protected abstract void setShapes();"
]
| [
"0.70344055",
"0.6294958",
"0.6031354",
"0.5994978",
"0.5823617",
"0.5595322",
"0.55799335",
"0.5578921",
"0.55634785",
"0.55603015",
"0.5527839",
"0.5506616",
"0.5504601",
"0.5472562",
"0.54605937",
"0.5438352",
"0.5437212",
"0.5432332",
"0.54252124",
"0.53796047",
"0.5365228",
"0.5347272",
"0.53316796",
"0.531632",
"0.5300166",
"0.5283368",
"0.52812004",
"0.52792424",
"0.5277324",
"0.5261439",
"0.5253394",
"0.52489424",
"0.52406317",
"0.52378035",
"0.52335095",
"0.52295554",
"0.52119595",
"0.5184196",
"0.5180317",
"0.51745504",
"0.51646",
"0.5151083",
"0.514457",
"0.5137363",
"0.5136946",
"0.5134997",
"0.51213443",
"0.5118776",
"0.51148784",
"0.5093155",
"0.50914013",
"0.50900143",
"0.5083125",
"0.50656223",
"0.5058928",
"0.50555533",
"0.50479513",
"0.50468713",
"0.5038579",
"0.50351375",
"0.5033954",
"0.5028436",
"0.5026644",
"0.50211114",
"0.5019472",
"0.50138134",
"0.50093126",
"0.49969372",
"0.49931523",
"0.49897018",
"0.4977883",
"0.4973935",
"0.49733746",
"0.49705678",
"0.49679598",
"0.49656588",
"0.4963167",
"0.49555302",
"0.4954502",
"0.49428198",
"0.4942619",
"0.49420047",
"0.49413782",
"0.49356818",
"0.4935276",
"0.49347633",
"0.49347064",
"0.493419",
"0.49276787",
"0.49276394",
"0.49252832",
"0.49209058",
"0.49209058",
"0.4920622",
"0.4918097",
"0.4917406",
"0.4907428",
"0.49063593",
"0.49011797",
"0.48984873"
]
| 0.6181667 | 2 |
Get the component type description of the described instance. | public ComponentTypeDescription getComponentDescription() {
return m_type;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String componentTypeName();",
"@Override\n\tpublic String getType() {\n\t\treturn this.description.getType();\n\t}",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\r\n return typeDesc;\r\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }",
"public static org.apache.axis.description.TypeDesc getTypeDesc() {\n return typeDesc;\n }"
]
| [
"0.7327212",
"0.6967048",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.6839606",
"0.68289846",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927",
"0.67813927"
]
| 0.79368186 | 0 |
Get the plugged handler list. | public HandlerDescription[] getHandlers() {
return m_handlers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static HandlerList getHandlerList() {\n return handlers;\n }",
"public static HandlerList getHandlerList() {\n return handlers;\n }",
"public final static HandlerList getHandlerList(){\n return handlers;\n }",
"@Override\n public final HandlerList getHandlers(){\n return handlers;\n }",
"@Override\n public HandlerList getHandlers() {\n return handlers;\n }",
"@Override\n public HandlerList getHandlers() {\n return handlers;\n }",
"@NotNull\n @Contract(pure = true)\n @SuppressWarnings(\"unused\")\n public static HandlerList getHandlerList() {\n return HANDLERS;\n }",
"@NotNull\n @Contract(pure = true)\n @Override\n public HandlerList getHandlers() {\n return HANDLERS;\n }",
"@Override\n\tpublic List<BlackList> getAllHandler() {\n\t\treturn blackListDao.getAllHandler();\n\t}",
"public PhaseHandler[] getAllHandlers() {\r\n return this.delegate.getAllHandlers();\r\n }",
"public Map<HandlerRegistryInfo, PhaseHandler> getHandlers() {\r\n return this.delegate.getHandlers();\r\n }",
"public List<String> getHandles() {\n\t\treturn handles;\n\t}",
"@Override\n public List<MHandler> getHandlers()\n {\n return null;\n }",
"List<FeatureExtensionHandler> getFeatureExtensionHandlers() {\n return this.featureExtensionHandlers;\n }",
"String[] getHandles();",
"public List<QueryParamHandler> queryParamHandlers() {\n return Collections.unmodifiableList(queryParamHandlers);\n }",
"Map<String, Handler> handlers();",
"java.util.List<com.google.cloud.dialogflow.cx.v3beta1.EventHandler>\n getRepromptEventHandlersList();",
"public static ParticleHandlers getHandlers() {\n return INSTANCE;\n }",
"public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder>\n getRepromptEventHandlersBuilderList() {\n return getRepromptEventHandlersFieldBuilder().getBuilderList();\n }",
"public String[] getRegisteredChannels()\n {\n int x = 0;\n String[] ret = new String[channelToHandlers.size()];\n \n for (String value : channelToHandlers.keySet())\n {\n ret[x++] = value;\n }\n return ret;\n }",
"public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByHandlerList() {\n if (imagesByHandlerBuilder_ == null) {\n return java.util.Collections.unmodifiableList(imagesByHandler_);\n } else {\n return imagesByHandlerBuilder_.getMessageList();\n }\n }",
"@Override\r\n\tpublic Collection<EventHandler> getEventHandlers() {\n\t\treturn null;\r\n\t}",
"@Override\n public List<XulEventHandler> getEventHandlers() {\n return null;\n }",
"public Collection<IRequestHandler<?>> getRegisteredValues() {\n return registry.values();\n }",
"public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> getImagesByHandlerList() {\n return imagesByHandler_;\n }",
"public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.EventHandler>\n getRepromptEventHandlersList() {\n if (repromptEventHandlersBuilder_ == null) {\n return java.util.Collections.unmodifiableList(repromptEventHandlers_);\n } else {\n return repromptEventHandlersBuilder_.getMessageList();\n }\n }",
"public List<MediaHandler> selectMediaHandlersList( Plugin plugin )\n {\n List<MediaHandler> mediaHandlerList = new ArrayList<MediaHandler>( );\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );\n daoUtil.executeQuery( );\n\n while ( daoUtil.next( ) )\n {\n MediaHandler mediaHandler = new MediaHandler( );\n\n mediaHandler.setId( daoUtil.getInt( 1 ) );\n mediaHandler.setIdAccount( daoUtil.getInt( 2 ) );\n mediaHandler.setName( daoUtil.getString( 3 ) );\n mediaHandler.setDescription( daoUtil.getString( 4 ) );\n mediaHandler.setIconUrl( daoUtil.getString( 5 ) );\n mediaHandler.setInsertTemplate( daoUtil.getString( 6 ) );\n mediaHandler.setMediaType( daoUtil.getString( 7 ) );\n\n mediaHandlerList.add( mediaHandler );\n }\n\n daoUtil.free( );\n\n return mediaHandlerList;\n }",
"public ListenerRegistration[] bake() {\n ListenerRegistration[] handlers = this.handlers;\n if (handlers != null) {\n return handlers; // don't re-bake when still valid\n }\n List<ListenerRegistration> entries = new ArrayList<ListenerRegistration>();\n for (Order order : Order.values()) {\n addToEntries(entries, order);\n }\n this.handlers = handlers = entries.toArray(new ListenerRegistration[entries.size()]);\n return handlers;\n }",
"public java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage.Builder> \n getImagesByHandlerBuilderList() {\n return getImagesByHandlerFieldBuilder().getBuilderList();\n }",
"public ArrayList<ClientHandler> getClientList()\n {\n return clientList;\n }",
"public Map<String,ClientHandler> getUserList()\n {\n return userList;\n }",
"@Override\r\n\tpublic Collection<StepHandler> getStepHandlers() {\n\t\treturn null;\r\n\t}",
"<T extends WithId<T>> Collection<AuditHandler<T>> handlersFor(final T current) {\n @SuppressWarnings({\"unchecked\", \"rawtypes\"})\n final Map<Class<T>, List<AuditHandler<T>>> muddled = (Map) handlerCache;\n\n @SuppressWarnings({\"unchecked\", \"rawtypes\"})\n final Class<T> clazz = (Class) current.getClass();\n\n return muddled.computeIfAbsent(clazz, Auditing::determineHandlersFor);\n }",
"Object getExceptionHandlers();",
"public HandlerRegistry getHandlerRegistry() {\n\t\treturn null;\n\t}",
"public List<ModeHandler> getOrderedModeHandlers() {\r\n ArrayList arrayList = new ArrayList();\r\n arrayList.add(new NativeHandler(this, null));\r\n arrayList.add(new FeedHandler(this, null));\r\n arrayList.add(new WebShareHandler(this, null));\r\n arrayList.add(new CameraEffectHandler(this, null));\r\n arrayList.add(new ShareStoryHandler(this, null));\r\n return arrayList;\r\n }",
"public Set < String > getListeningPluginChannels ( ) {\n\t\treturn extract ( handle -> handle.getListeningPluginChannels ( ) );\n\t}",
"public Handler getHandler();",
"public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList() {\n if (imagesByHandlerBuilder_ != null) {\n return imagesByHandlerBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(imagesByHandler_);\n }\n }",
"java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>\n getRepromptEventHandlersOrBuilderList();",
"default Set<String> getContextHandles() {\n Response response = execute(DriverCommand.GET_CONTEXT_HANDLES, ImmutableMap.of());\n Object value = response.getValue();\n try {\n //noinspection unchecked\n List<String> returnedValues = (List<String>) value;\n return new LinkedHashSet<>(returnedValues);\n } catch (ClassCastException ex) {\n throw new WebDriverException(\n \"Returned value cannot be converted to List<String>: \" + value, ex);\n }\n }",
"public IPacketHandler[] getChannelHandlers(String channel)\n {\n ArrayList<IPacketHandler> handlers = channelToHandlers.get(channel);\n if (handlers != null)\n {\n return handlers.toArray(new IPacketHandler[0]);\n }\n return new IPacketHandler[0];\n }",
"public List<PromptHandlerConfig> getPromptHandlerConfigs() {\n return promptHandlerConfigs;\n }",
"java.util.List<com.yahoo.xpathproto.TransformTestProtos.ContentImage> \n getImagesByHandlerList();",
"public IPacketHandler[] getChannelHandlers(NetworkManager manager, String channel)\n {\n if (connections.containsKey(manager))\n {\n ConnectionInstance con = getConnection(manager);\n return con.getChannelHandlers(channel);\n }\n return new IPacketHandler[0];\n }",
"public List<FlowHandleResult> getHanResultList() {\n\t\treturn mFlowHandleResults;\r\n\t}",
"public ContentHandler[] forType(String type) {\n return impl.forType(type);\n }",
"public List getList() throws HibException;",
"public java.util.List<\n ? extends com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>\n getRepromptEventHandlersOrBuilderList() {\n if (repromptEventHandlersBuilder_ != null) {\n return repromptEventHandlersBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(repromptEventHandlers_);\n }\n }",
"public java.util.List<? extends com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder> \n getImagesByHandlerOrBuilderList() {\n return imagesByHandler_;\n }",
"public Class<?> getHandler();",
"public Iterable<L> getListeners() {\r\n if (weakHandler || listeners.size() == 0) return weak.keySet();\r\n if (weak.size() == 0) return listeners.keySet();\r\n LinkedList<L> ll = new LinkedList<L>(listeners.keySet());\r\n ll.addAll(weak.keySet());\r\n return ll;\r\n }",
"public List<String> listeners();",
"public List<Observer> getList() {\n return list;\n }",
"public Enumeration getControlHandlerNames();",
"public ContentHandler[] forAction(String action) {\n return impl.forAction(action);\n }",
"public MessageHandlerChain<MessageType> getHandlerChain();",
"@Override\n public List<BrowserDescriptor> getBrowserSafeListForBroker() {\n List<BrowserDescriptor> browserDescriptors = new ArrayList<>();\n final HashSet<String> signatureHashes = new HashSet<String>();\n signatureHashes.add(\"7fmduHKTdHHrlMvldlEqAIlSfii1tl35bxj1OXN5Ve8c4lU6URVu4xtSHc3BVZxS6WWJnxMDhIfQN0N0K2NDJg==\");\n final BrowserDescriptor chrome = new BrowserDescriptor(\n \"com.android.chrome\",\n signatureHashes,\n null,\n null\n );\n browserDescriptors.add(chrome);\n\n return browserDescriptors;\n }",
"private void callHandlerAddedForAllHandlers() {\n /*\n r2 = this;\n monitor-enter(r2)\n r0 = 1\n r2.registered = r0 // Catch:{ all -> 0x0015 }\n io.netty.channel.DefaultChannelPipeline$PendingHandlerCallback r0 = r2.pendingHandlerCallbackHead // Catch:{ all -> 0x0015 }\n r1 = 0\n r2.pendingHandlerCallbackHead = r1 // Catch:{ all -> 0x0015 }\n monitor-exit(r2) // Catch:{ all -> 0x0015 }\n L_0x000a:\n if (r0 == 0) goto L_0x0012\n r0.execute()\n io.netty.channel.DefaultChannelPipeline$PendingHandlerCallback r0 = r0.next\n goto L_0x000a\n L_0x0012:\n return\n L_0x0013:\n monitor-exit(r2) // Catch:{ all -> 0x0015 }\n throw r0\n L_0x0015:\n r0 = move-exception\n goto L_0x0013\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p043io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers():void\");\n }",
"public final static List<KaranteeniPlugin> getPluginInstances() {\r\n\t\treturn new ArrayList<KaranteeniPlugin>(kPluginInstances.values());\r\n\t}",
"public Handler getHandler() {\r\n return handler;\r\n }",
"public Handler getHandler() {\r\n return handler;\r\n }",
"@Override\n\tpublic Handler getHandler() {\n\t\t// TODO Auto-generated method stub\n\t\treturn mHandler;\n\t}",
"@java.lang.Override\n public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.EventHandler>\n getRepromptEventHandlersList() {\n return repromptEventHandlers_;\n }",
"public HandlerRegistryInfo[] getHandlerRegistrationInfo(PhaseHandler handler) {\r\n return this.delegate.getHandlerRegistrationInfo(handler);\r\n }",
"public ValueListHandler getActualListHandler(QueryEJBEvent event) {\n\t\treturn new QueryLogisticsSettingListHandler();\n\t}",
"protected List<Object> getModules() {\n return new ArrayList<>();\n }",
"public List<Script> getWatchedScripts() {\n try {\n return new ArrayList<Script>(watchedScripts);\n } finally {\n }\n }",
"public int getImagesByHandlerCount() {\n return imagesByHandler_.size();\n }",
"public List<ServiceRegistry> getServiceRegistrys() {\n\t\treturn (new ServiceRegistryDAO()).getCloneList();\r\n\t}",
"public AuthenticationResultHandler[] getAuthenticationResultHandlers()\n {\n return this.authenticationResultHandlers;\n }",
"public AuthenticationResultHandler[] getAuthenticationResultHandlers()\n {\n return this.authenticationResultHandlers;\n }",
"public synchronized List<EventListener> getListeners() {\n \treturn listeners;\n }",
"protected Object[] getList() {\n return list;\n }",
"public String[] getSoundDevicesList();",
"public Enumeration getControlHandlerNames()\r\n {\r\n return m_loopVectors.keys();\r\n }",
"public Collection<Plugin> getPlugins()\n {\n final List<Plugin> plugins;\n synchronized ( this )\n {\n plugins = Arrays.asList(pluginsLoaded.values().toArray(new Plugin[0]));\n }\n return Collections.unmodifiableCollection( plugins );\n }",
"HandlerHelper getHandlerHelper() {\n return handlerHelper;\n }",
"public Handler getHandler() {\n return mHandler;\n }",
"private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler());\n }",
"@Override\r\n\tpublic void attachHandlers() {\n\r\n\t}",
"private List<IUserLoginPlugin> getLoginPlugins()\n/* */ {\n/* 341 */ if (this.plugins == null)\n/* 342 */ this.plugins = PluginManager.newIns().getExtInstances(\"loginplugin\", IUserLoginPlugin.class);\n/* 343 */ return this.plugins;\n/* */ }",
"@Override\n\tpublic Set<Class<? extends IndexingItemHandler>> getDependencies() {\n\t\treturn null;\n\t}",
"public static List<String> getPhpList() {\n return phpList;\n }",
"public static List<ProtocolDescriptor> getInstalledAddons() {\n\t\tif (!init)\n\t\t\tinit();\n\n\t\treturn installedAddons;\n\t}",
"protected EventListenerList getEventListenerList() {\r\n return listenerList;\r\n }",
"public String getHandler() {\n return handler;\n }",
"public List<String> openFileHandles() {\n return this.openFileHandles;\n }",
"String[][] getHooks()\n {\n return hooks;\n }",
"public FunctionInfo[] getFunctions() {\n/* 236 */ return this.functions;\n/* */ }",
"@ClientConfig(JsonMode.Function)\n\r\n\tpublic Object getHandler () {\r\n\t\treturn (Object) getStateHelper().eval(PropertyKeys.handler);\r\n\t}",
"@Override\n\tpublic Handler getHandler() {\n\t\treturn mHandler;\n\t}",
"protected abstract <E extends Event> List<EventHandler<? extends Event>> lookupHandlers(final E event);",
"public List<String> getAllPluginNames() {\n\t\treturn allPluginNames;\n\t}",
"public Object[] getListenersArray() {\r\n Object[] list = null;\r\n synchronized (listeners) {\r\n Object[] list1 = weakHandler ? null : listeners.keySet().toArray();\r\n Object[] list2 = weak.keySet().toArray();\r\n if (list1 == null) list = list2;\r\n else if (list2.length == 0) list = list1;\r\n else if (list1.length == 0) list = list2;\r\n else {\r\n list = new Object[list1.length + list2.length];\r\n System.arraycopy(list1, 0, list, 0, list1.length);\r\n System.arraycopy(list2, 0, list, list1.length, list2.length);\r\n }\r\n }\r\n return list;\r\n }",
"@Override\n public void loadRequestHandlers(List<String> list) {\n\n this.requestHandlers.add(\n new SoletDispatcher(\n this.workingDir,\n new ApplicationLoadingServiceImpl(\n new EmbeddedApplicationScanningService(configService, workingDir),\n this.configService,\n this.workingDir + configService.getConfigParam(ConfigConstants.ASSETS_DIR_NAME, String.class)\n ),\n this.configService\n ));\n\n this.requestHandlers.add(new ResourceHandler(workingDir, s -> Collections.singletonList(\"\"), this.configService));\n }",
"public ProxyConfig[] getProxyConfigList();",
"protected List<Object> getInterceptors()\r\n/* 29: */ {\r\n/* 30:68 */ List<Object> interceptors = new ArrayList();\r\n/* 31:69 */ for (InterceptorRegistration registration : this.registrations) {\r\n/* 32:70 */ interceptors.add(registration.getInterceptor());\r\n/* 33: */ }\r\n/* 34:72 */ return interceptors;\r\n/* 35: */ }",
"public Set<String> getRegisteredFunctions();"
]
| [
"0.8038699",
"0.8038699",
"0.7997195",
"0.76912344",
"0.74999255",
"0.74999255",
"0.7420918",
"0.71063024",
"0.7078629",
"0.6947107",
"0.6922612",
"0.6623886",
"0.66209906",
"0.6479527",
"0.63534904",
"0.6298387",
"0.6289736",
"0.62674844",
"0.6246816",
"0.62295085",
"0.6187506",
"0.61687636",
"0.61353",
"0.6127645",
"0.6126752",
"0.60615396",
"0.60306495",
"0.59773815",
"0.59741133",
"0.59693116",
"0.589215",
"0.5882436",
"0.5815536",
"0.5768441",
"0.5756644",
"0.5755138",
"0.57339907",
"0.57091117",
"0.5708097",
"0.56958103",
"0.5669487",
"0.56493956",
"0.5645041",
"0.56202483",
"0.5615989",
"0.56034875",
"0.5601174",
"0.5559399",
"0.550786",
"0.5478118",
"0.5459401",
"0.5431434",
"0.54279006",
"0.5408859",
"0.5388642",
"0.5381178",
"0.5367653",
"0.53674334",
"0.5355612",
"0.5342177",
"0.5338424",
"0.53363174",
"0.53363174",
"0.5313912",
"0.5312567",
"0.5305993",
"0.53046525",
"0.5301095",
"0.529453",
"0.5293767",
"0.5289765",
"0.52835274",
"0.52835274",
"0.5279676",
"0.527271",
"0.52678585",
"0.5258412",
"0.52503765",
"0.52488023",
"0.5244103",
"0.52397263",
"0.523922",
"0.5227611",
"0.52219224",
"0.52217346",
"0.52205855",
"0.5209053",
"0.5204119",
"0.52001023",
"0.51969475",
"0.5178248",
"0.5171409",
"0.5159027",
"0.5149926",
"0.5144976",
"0.51352215",
"0.51351756",
"0.5128747",
"0.5128362",
"0.51229393"
]
| 0.7635028 | 4 |
Add an handler description to the list. | public void addHandler(HandlerDescription desc) {
// Verify that the dependency description is not already in the array.
for (int i = 0; i < m_handlers.length; i++) {
if (m_handlers[i] == desc) {
return; // NOTHING TO DO, the description is already in the
// array
}
}
// The component Description is not in the array, add it
HandlerDescription[] newHd = new HandlerDescription[m_handlers.length + 1];
System.arraycopy(m_handlers, 0, newHd, 0, m_handlers.length);
newHd[m_handlers.length] = desc;
m_handlers = newHd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addDetailsHander(DetailsPmHandler detailsHandlers);",
"public void addDescription(String description) {\n\t\tthis.description = description;\n\t}",
"void addDetailsHanders(DetailsPmHandler... detailsHandlers);",
"public void addHandler(EventHandler handler);",
"public void addDescription(String description) {\n String desc = getDescription();\n if (desc == null) {\n setDescription(description);\n } else {\n setDescription(desc + \" | \" + description);\n }\n }",
"public void addDescription (String description)\n\t{\n\t\tString desc = getDescription();\n\t\tif (desc == null)\n\t\t\tsetDescription(description);\n\t\telse\n\t\t\tsetDescription(desc + \" | \" + description);\n\t}",
"Builder addDescription(String value);",
"public void bind(ItemHandler handler) {\n if (handler.getOption().equals(Option.ALL)) {\n for (Map.Entry<Option, List<ItemHandler>> entry : handlerLists.entrySet()) {\n entry.getValue().add(handler);\n }\n } else {\n List<ItemHandler> list = handlerLists.get(handler.getOption());\n list.add(handler);\n }\n }",
"public DocumentListDefinitionBuilder addDescription(final String description) {\n documentListDefinitionImpl.setDescription(description);\n return this;\n }",
"public void addNotificationHandler(String serviceName, NotificationHandler handler);",
"public void addHandler(String handlerPath, ElementHandler handler) {\r\n handlers.put(handlerPath, handler);\r\n }",
"public HandlerList(HandlerList parent) {\n handlerSlots = new EnumMap<Order, ArrayList<ListenerRegistration>>(Order.class);\n for (Order o : Order.values()) {\n handlerSlots.put(o, new ArrayList<ListenerRegistration>());\n }\n ALL_LISTS.add(this);\n\n this.parent = parent;\n if (parent != null) {\n parent.addChild(this);\n }\n }",
"@Override\r\n\tpublic void addStepHandler(StepHandler handler) {\n\t\t\r\n\t}",
"public void addDescription(String value){\n ((MvwDefinitionDMO) core).addDescription(value);\n }",
"public static String addUploadHandler( IUploadHandler handler ) {\n String key = String.valueOf( handler.hashCode() );\n handlers.put( key, handler );\n return \"fileupload?handler=\" + key;\n }",
"@Override\n\tpublic void RegisterHandler(HotSpotServerEventHandler handler) {\n\t\teventHandlers.add(handler);\n\t}",
"public void registerHandler(Object handler)\n {\n\n }",
"public void addHandle(RepositoryServerHandleImpl handle) {\n\t\tsynchronized (handleList) {\n\t\t\thandleList.add(handle);\n\t\t}\n\t}",
"private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler());\n }",
"@Override\n\tpublic void addDescription(BaseDescription description) {\n\t\taddDescriptionToRegistry(description);\n\t\tif (description.getPinNumber() % 2 == 0) {\n\t\t\trightPanel.add(description);\n\t\t} else {\n\t\t\tleftPanel.add(description);\n\t\t}\n\t}",
"public void addNewToDo(String description) {\n Todo todo = new Todo(description);\n taskList.add(todo);\n printSuccessfulAddMessage(todo.toString());\n }",
"public void setDescription(java.lang.Object description) {\n this.description = description;\n }",
"void setDescription(java.lang.String description);",
"void setDescription(final String description);",
"public void addDescription(String descRef) {\r\n\r\n\t\twaitAndSendKeys(DESCRIPTION_TXTAREA, descRef);\r\n\r\n\t}",
"void setDescription(String description);",
"public void addMessageHandler(MessageHandler handler) {\r\n\t\tif (handler == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (MessageHandler h : handlers) {\r\n\t\t\tif (h == handler) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\thandlers.add(handler);\r\n\t}",
"public void addHandler(RequestType type, ApiInterface apiInterface, String pathSpec, String... argNames) {\n ApiSpec spec = new ApiSpec(apiInterface, argNames);\n switch (type) {\n case GET:\n getStructure.addChildWithSubPath(pathSpec, spec);\n break;\n case POST:\n postStructure.addChildWithSubPath(pathSpec, spec);\n break;\n case PUT:\n putStructure.addChildWithSubPath(pathSpec, spec);\n break;\n case DELETE:\n delStructure.addChildWithSubPath(pathSpec, spec);\n break;\n }\n }",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription(java.lang.String[] description) {\n this.description = description;\n }",
"public void addImageDesc(String imgDescription){repairImagesDesc.add(imgDescription);}",
"public InterceptorType<T> setDescription(String description)\n {\n childNode.create(\"description\").text(description);\n return this;\n }",
"public interface AddHandler<T> extends EventHandler {\r\n void onAdd(AddEvent<T> event);\r\n }",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"Builder addDescription(Text value);",
"public void setDescription (String description);",
"@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }",
"@Override\n\tpublic void addHandlerListener(IHandlerListener handlerListener) {\n\n\t}",
"public void setDescription(final String description);",
"public void setDescription(String descr);",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType addNewDescription();",
"public void setDescription(String description) { this.description = description; }",
"public void setDescription(String sDescription);",
"public void setDescription(java.lang.String value) {\n this.description = value;\n }",
"public void addItem(Item i) {\r\n assert (ic != null);\r\n \r\n ic.setItem(i);\r\n ic.setHandler(handler);\r\n items.add(ic.getItem());\r\n }",
"public void setDescription(String desc);",
"public void addTimerUpdateHandler(TimerUpdateHandler handler) {\r\n handlers.add(handler);\r\n }",
"public static void addHandler(String key, DataHandler dh) {\n\t\tif (handler.containsKey(key)) return;\n\t\t\n\t\thandler.put(key, dh);\n\t}",
"public abstract void setDescription(String description);",
"public abstract void setDescription(String description);",
"public DescriptionBuilder addToDescription(String toAdd) {\n descriptor.addToDescription(toAdd);\n return this;\n }",
"public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }",
"public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }",
"public void setDescription(java.lang.String description) {\r\n this.description = description;\r\n }",
"Builder addDetailedDescription(String value);",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(java.lang.String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public interface Management {\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n void createHandler(final String handlerClassName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n void deleteHandler(final String handlerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n void updateHandler(final String handlerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n Logger getLogger(final String loggerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n void closeHandler(final String handlerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n Handler getHandler(final String handlerName);\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n Map<String, Logger> loggers();\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n Map<String, Handler> handlers();\n\n /**\n * This is a method description.\n *\n * <p>Another description after blank line.\n *\n * @author admin\n */\n ClassLoaderLogInfo getClassLoaderLogInfo();\n}",
"public void setDescription(String _description) {\n this._description = _description;\n }",
"void onRemoteDescriptionSet();",
"public <E extends Event> void addHandler(Event.Type<E> ec, EventHandlerI<E> l);",
"protected void addDescriptionPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_SecuritySchema_description_feature\"),\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_SecuritySchema_description_feature\", \"_UI_SecuritySchema_type\"),\n\t\t\t\t CorePackage.Literals.SECURITY_SCHEMA__DESCRIPTION,\n\t\t\t\t true,\n\t\t\t\t false,\n\t\t\t\t false,\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\n\t\t\t\t null,\n\t\t\t\t null));\n\t}",
"protected void addDescriptionPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_Configuration_description_feature\"),\r\n\t\t\t\t getString(\"_UI_PropertyDescriptor_description\", \"_UI_Configuration_description_feature\", \"_UI_Configuration_type\"),\r\n\t\t\t\t SpringConfigDslPackage.Literals.CONFIGURATION__DESCRIPTION,\r\n\t\t\t\t true,\r\n\t\t\t\t false,\r\n\t\t\t\t false,\r\n\t\t\t\t ItemPropertyDescriptor.GENERIC_VALUE_IMAGE,\r\n\t\t\t\t null,\r\n\t\t\t\t null));\r\n\t}",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"void createHandler(final String handlerClassName);",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }"
]
| [
"0.63396907",
"0.61720544",
"0.604897",
"0.59837526",
"0.5964927",
"0.58938926",
"0.5698042",
"0.5630976",
"0.5599729",
"0.55843836",
"0.55637896",
"0.5513497",
"0.5510804",
"0.5490231",
"0.54728013",
"0.5410598",
"0.5408767",
"0.53743",
"0.53741395",
"0.5357223",
"0.5356635",
"0.53184396",
"0.53181154",
"0.53003776",
"0.5298493",
"0.52756417",
"0.52739275",
"0.5273426",
"0.5272485",
"0.5272485",
"0.5272485",
"0.5272485",
"0.5272485",
"0.5272485",
"0.52700293",
"0.526015",
"0.5257058",
"0.5250896",
"0.5244566",
"0.5244566",
"0.5244566",
"0.5244566",
"0.5244566",
"0.5241436",
"0.5234293",
"0.52291787",
"0.52199924",
"0.5219121",
"0.52174175",
"0.521051",
"0.52103",
"0.5201758",
"0.5181928",
"0.5173777",
"0.5170883",
"0.517018",
"0.5164174",
"0.5156668",
"0.5156668",
"0.51295215",
"0.51241857",
"0.51241857",
"0.51241857",
"0.5117916",
"0.5116893",
"0.5116893",
"0.5116893",
"0.5116893",
"0.5116893",
"0.5116893",
"0.5116893",
"0.5116893",
"0.5116893",
"0.5116761",
"0.5116761",
"0.5114809",
"0.5113253",
"0.51036525",
"0.5095378",
"0.5095102",
"0.5094679",
"0.5088733",
"0.5085652",
"0.5085652",
"0.5085652",
"0.5085652",
"0.5085652",
"0.5084057",
"0.5084057",
"0.5084057",
"0.5084057",
"0.5084057",
"0.50737846",
"0.50720084",
"0.50720084",
"0.50720084",
"0.50663704",
"0.50663704",
"0.50663704",
"0.50663704"
]
| 0.7599185 | 0 |
Add an instance description to the contained instance list. | public void addInstance(InstanceDescription inst) {
// Verify that the dependency description is not already in the array.
for (int i = 0; i < m_containedInstances.length; i++) {
if (m_containedInstances[i].getName().equals(inst.getName())) {
return; // NOTHING TO DO, the description is already in the array
}
}
// The component Description is not in the array, add it
InstanceDescription[] newCi = new InstanceDescription[m_containedInstances.length + 1];
System.arraycopy(m_containedInstances, 0, newCi, 0, m_containedInstances.length);
newCi[m_containedInstances.length] = inst;
m_containedInstances = newCi;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addInstance(Instance instance);",
"public void addDescription(String description) {\n\t\tthis.description = description;\n\t}",
"public void add(Map<Variable, Object> instance) {\n\t\tthis.listInstance.add(instance);\n\t}",
"public void addDescription(String description) {\n String desc = getDescription();\n if (desc == null) {\n setDescription(description);\n } else {\n setDescription(desc + \" | \" + description);\n }\n }",
"public void addDescription (String description)\n\t{\n\t\tString desc = getDescription();\n\t\tif (desc == null)\n\t\t\tsetDescription(description);\n\t\telse\n\t\t\tsetDescription(desc + \" | \" + description);\n\t}",
"public DocumentListDefinitionBuilder addDescription(final String description) {\n documentListDefinitionImpl.setDescription(description);\n return this;\n }",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType addNewDescription();",
"public void addInstance(double[] instance) {\n\t\tinstances.add(instance.clone());\n\t}",
"public void addDescription(String value){\n ((MvwDefinitionDMO) core).addDescription(value);\n }",
"Builder addDescription(String value);",
"public void add(SolvingInstance solvingInstance) {\n si.add(solvingInstance);\n }",
"public Element getDescription() {\n Element instance = new Element(\"Instance\", \"\");\n instance.addAttribute(new Attribute(\"name\", getName())); // Name\n // State\n if (m_state == ComponentInstance.STOPPED) {\n instance.addAttribute(new Attribute(\"state\", \"stopped\"));\n }\n if (m_state == ComponentInstance.VALID) {\n instance.addAttribute(new Attribute(\"state\", \"valid\"));\n }\n if (m_state == ComponentInstance.INVALID) {\n instance.addAttribute(new Attribute(\"state\", \"invalid\"));\n }\n if (m_state == ComponentInstance.DISPOSED) {\n instance.addAttribute(new Attribute(\"state\", \"disposed\"));\n }\n // Bundle\n instance.addAttribute(new Attribute(\"bundle\", Long.toString(m_bundleId)));\n \n // Component Type\n instance.addAttribute(new Attribute(\"component.type\", m_type.getName()));\n \n // Handlers\n for (int i = 0; i < m_handlers.length; i++) {\n instance.addElement(m_handlers[i].getHandlerInfo());\n }\n // Created Object (empty is composite)\n for (int i = 0; i < m_createdObjects.length; i++) {\n Element obj = new Element(\"Object\", \"\");\n obj.addAttribute(new Attribute(\"name\", ((Object) m_createdObjects[i]).toString()));\n instance.addElement(obj);\n }\n // Contained instance (exposing architecture) (empty if primitive)\n if (m_containedInstances.length > 0) {\n Element inst = new Element(\"ContainedInstances\", \"\");\n for (int i = 0; i < m_containedInstances.length; i++) {\n inst.addElement(m_containedInstances[i].getDescription());\n instance.addElement(inst);\n }\n }\n return instance;\n \n }",
"com.microsoft.schemas.xrm._2011.contracts.Label addNewDescription();",
"public Builder addTag(String tag, List<String> description) {\n this.otherTags.computeIfAbsent(tag, k -> new ArrayList<>())\n .add(List.copyOf(description));\n return this;\n }",
"public final void addInstance(CharacterInstance instance) {\n instances.add(instance);\n }",
"void add(T instance);",
"public void addDescription(Object value) throws DmcValueException {\n ((MvwDefinitionDMO) core).addDescription(value);\n }",
"public void addNewToDo(String description) {\n Todo todo = new Todo(description);\n taskList.add(todo);\n printSuccessfulAddMessage(todo.toString());\n }",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType insertNewDescription(int i);",
"public void addNewEvent(String description, String date) {\n Events event = new Events(description, date);\n taskList.add(event);\n printSuccessfulAddMessage(event.toString());\n }",
"public Builder addTag(String tag, String description) {\n this.otherTags.computeIfAbsent(tag, k -> new ArrayList<>())\n .add(List.of(description.split(\"\\n\")));\n return this;\n }",
"Builder addDescription(Text value);",
"public void addNewInstance(String className, String instanceName) {\n\t\tOntClass ontClass = model.getOntClass(getDefaultNS()+className);\n\t\tif(ontClass==null) throw new IllegalArgumentException(\"Class: '\"+className+\"' not found\");\n\t\tmodel.createIndividual(getDefaultNS()+instanceName, ontClass);\n\t}",
"@Override\n\tpublic void addDescription(BaseDescription description) {\n\t\taddDescriptionToRegistry(description);\n\t\tif (description.getPinNumber() % 2 == 0) {\n\t\t\trightPanel.add(description);\n\t\t} else {\n\t\t\tleftPanel.add(description);\n\t\t}\n\t}",
"public void addInstance(int index, double[] instance) {\n\t\tinstances.add(index, instance.clone());\n\t}",
"public void addImageDesc(String imgDescription){repairImagesDesc.add(imgDescription);}",
"public void addDescription(String descRef) {\r\n\r\n\t\twaitAndSendKeys(DESCRIPTION_TXTAREA, descRef);\r\n\r\n\t}",
"public void xsetDescription(org.apache.xmlbeans.XmlString description)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DESCRIPTION$2);\n }\n target.set(description);\n }\n }",
"public void instanceAdded(Contextual<?> bean, CreationalContext<?> context, Object instance);",
"public void setDescription(java.lang.Object description) {\n this.description = description;\n }",
"public void AddArtifactInstance(ArtifactInstance Artifact, ProcessInstance Process)\r\n\t{\n\t\t\r\n\t\tProcess.addArtifactInstance(Artifact);\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"private static void addInstance(String[] args,CuratorFramework client,String command,\n List<ExampleServer> servers) throws Exception {\n \n if (args.length < 2) {\n System.err.println(\"syntax error (expected add <name> <description>): \" + command);\n return;\n }\n \n StringBuilder description = new StringBuilder();\n for (int i = 1; i < args.length; ++i) {\n if (i > 1) {\n description.append(' ');\n }\n description.append(args[i]);\n }\n \n String serviceName = args[0];\n ExampleServer server = new ExampleServer(client,PATH,serviceName,description.toString());\n servers.add(server);\n server.start();\n \n System.out.println(serviceName + \" added\");\n }",
"Builder addDetailedDescription(String value);",
"public DescriptionBuilder addToDescription(String toAdd) {\n descriptor.addToDescription(toAdd);\n return this;\n }",
"public TimeEntry description(String description) {\n this.description = description;\n return this;\n }",
"public void setDescription(String description) { this.description = description; }",
"public br.pucrio.dslmetrics.core.mtbl.parsers.mtblfile.MetricDescriptionType addNewMetricDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n br.pucrio.dslmetrics.core.mtbl.parsers.mtblfile.MetricDescriptionType target = null;\n target = (br.pucrio.dslmetrics.core.mtbl.parsers.mtblfile.MetricDescriptionType)get_store().add_element_user(METRICDESCRIPTION$0);\n return target;\n }\n }",
"public void setDescription(String description) {\n this.description = description;\n this.updated = new Date();\n }",
"public void addInstancesToInstaceGroup(\n String zone, String instanceGroupName, List<InstanceReference> instances) throws IOException {\n if (instances != null && !CollectionUtils.isEmpty(instances)) {\n InstanceGroupsAddInstancesRequest request = new InstanceGroupsAddInstancesRequest();\n request.setInstances(instances);\n log.debug(\"Adding instances \" + instances + \"to instance group \" + instanceGroupName);\n Operation response =\n compute\n .instanceGroups()\n .addInstances(project, zone, instanceGroupName, request)\n .execute();\n operationPoller.waitForOperationCompletion(response);\n log.info(\"Sucessfully added instances to instance group: \" + instanceGroupName);\n }\n }",
"public void xsetDescription(org.apache.xmlbeans.XmlString description)\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(DESCRIPTION$14);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$14);\n }\n target.set(description);\n }\n }",
"public void xsetDescription(org.apache.xmlbeans.XmlString description)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(DESCRIPTION$8);\r\n }\r\n target.set(description);\r\n }\r\n }",
"public static void addContentGroupDescription( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, CONTENTGROUPDESCRIPTION, value);\r\n\t}",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }",
"public static void addContentGroupDescription(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.String value) {\r\n\t\tBase.add(model, instanceResource, CONTENTGROUPDESCRIPTION, value);\r\n\t}",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"@Override\n public void updateDescription() {\n if(this.amount == 1) {\n this.description = DESCRIPTIONS[0] + DESCRIPTIONS[1];\n }\n else {\n this.description = DESCRIPTIONS[0] + DiminishingStacks + DESCRIPTIONS[2];\n }\n\n }",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription (String description);",
"public RunAsType<T> setDescription(String description)\n {\n childNode.create(\"description\").text(description);\n return this;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(final String description);",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void insertInstanceInNode(int index_node, Instance instance) {\r\n \r\n noduri.get(index_node).instances.add(0, instance);\r\n noduri.get(index_node).dimensiune++;\r\n }",
"interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }",
"void setDescription(final String description);",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String Description) {\n this.Description = Description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }"
]
| [
"0.6684182",
"0.638069",
"0.60797477",
"0.60562885",
"0.59660083",
"0.58393437",
"0.57979184",
"0.5785381",
"0.5772208",
"0.57304126",
"0.5711367",
"0.57084906",
"0.56897014",
"0.56893176",
"0.5667163",
"0.56647444",
"0.56519896",
"0.55737627",
"0.55084485",
"0.5488408",
"0.5471547",
"0.5468994",
"0.54649603",
"0.5449132",
"0.5358718",
"0.532618",
"0.5325158",
"0.53010637",
"0.52975804",
"0.52794194",
"0.5269785",
"0.5250964",
"0.5229526",
"0.5219901",
"0.5216192",
"0.5194958",
"0.51890475",
"0.517342",
"0.51702005",
"0.5163098",
"0.515664",
"0.51537514",
"0.5136794",
"0.5136794",
"0.5136794",
"0.5136794",
"0.5136794",
"0.5136794",
"0.51230836",
"0.5114942",
"0.51117444",
"0.51081795",
"0.51046395",
"0.50993747",
"0.50993747",
"0.50993747",
"0.50993747",
"0.50993747",
"0.5093826",
"0.50864923",
"0.50863594",
"0.50863594",
"0.5086314",
"0.5081389",
"0.5081389",
"0.5081389",
"0.5081389",
"0.5081389",
"0.50813",
"0.50793403",
"0.5076425",
"0.5076248",
"0.50754225",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636",
"0.5068636"
]
| 0.69680446 | 0 |
Set the state of the component. | public void setState(int state) {
m_state = state;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setState(State state) { model.setState(state); }",
"void setState(int state);",
"public void setState(int state);",
"public void setState(int state);",
"void setState(Object state);",
"void setState(State state);",
"public void setState(final State state);",
"public void setComponentState(State state)\n {\n iconPartStates[0] = state;\n iconPartStates[1] = state;\n iconPartStates[2] = state;\n iconPartStates[3] = state;\n this.paintImmediately(this.getVisibleRect());\n }",
"public void setState(State state) {\n this.state = state;\n }",
"public void setState(State state) {\n this.state = state;\n }",
"public void setState(State newState) {this.state = newState;}",
"private void setState( int state )\n {\n m_state.setState( state );\n }",
"public void setState(State state) {\n\t\tthis.state = state;\n\t}",
"void setState(boolean state);",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"public void setState(Integer state) {\r\n this.state = state;\r\n }",
"@Override\n\tpublic void setState(STATE state) {\n\n\t}",
"public void setState(final StateReference state);",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(Integer state) {\n this.state = state;\n }",
"public void setState(int state) {\n \t\tthis.state = state;\n \t}",
"public void setState(@NotNull State state) {\n this.state = state;\n }",
"public void setState(String state);",
"public void setState(Integer state) {\n\t\tthis.state = state;\n\t}",
"public void setState(StateController state) {\n this.state = state;\n }",
"void setState(SimulationState state) {\n\t\tthis.state = state;\n\t}",
"void setState(String state);",
"public void setState (State state) {\n synchronized (this) {\n this.state = state;\n }\n }",
"public synchronized void set() {\n this.currentState = EventState.UP;\n notify();\n }",
"protected void setState(final State state) {\n this.state.set(state);\n }",
"public void setState(int state) {\n\t\t\tmState = state;\n\t\t}",
"public void setState(State state) {\n synchronized (stateLock){\n this.state = state;\n }\n }",
"public void setState(Boolean state) {\n this.state = state;\n }",
"private void setComponentState(\n org.apache.hadoop.yarn.service.api.records.ComponentState state) {\n org.apache.hadoop.yarn.service.api.records.ComponentState curState =\n componentSpec.getState();\n if (!curState.equals(state)) {\n componentSpec.setState(state);\n LOG.info(\"[COMPONENT {}] spec state changed from {} -> {}\",\n componentSpec.getName(), curState, state);\n }\n }",
"public void setState(boolean state) {\n\t\tthis.state = state;\n\t}",
"@Override\n public void setState(int state) {\n synchronized(LOCK_STATE) {\n this.state = state;\n }\n }",
"public void setState(NodeState state) {\n this.state = state;\n }",
"public void setState(String state){\n this.state = state;\n }",
"public void setState(java.lang.CharSequence value) {\n this.state = value;\n }",
"protected final void setState(State s) {\n state = s;\n }",
"protected void setState(int value) {\r\n\t\tdState = value;\r\n\t\tstateChanged();\r\n\t\t\r\n\t\t// System debug\r\n\t\tSystem.out.println(\"State changed: \" + STATUS[dState]);\r\n\t}",
"private void SetState(VehicleState state) {\n this.state = state;\n }",
"public void setState(Byte state) {\n this.state = state;\n }",
"public void setState(Byte state) {\n this.state = state;\n }",
"private void setComponentStatus() {}",
"public abstract void setState(String sValue);",
"public void setState(State stateParam) {\n this.state = stateParam;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state)\n\t{\n\t\tState = state;\n\t}",
"public void setState(int i) {\n this.mState = i;\n }",
"public void setState(String state)\r\n\t{\r\n\t\tthis.state=state;\r\n\t}",
"public void setState(WorkerState state) {\n this.state = state;\n }",
"void setState(Object sender, ConditionT condition, Params params, StateT state);",
"public void setState(String state)\r\n\t{\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String state) {\r\n\t\tthis.state = state;\r\n\t}",
"public void setState(String s) {\r\n\t\tstate = s;\t\t\r\n\t}",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(String state) {\n this.state = state;\n }",
"public void setState(States s) {\n\t\tthis.state = s;\n\t}",
"public void setState( boolean bool ) { state = bool; }",
"public void setState(PlayerState state) {\n this.state = state;\n }",
"public void SetState(int s) {\n this.state=LS[s];\n }",
"public void setState(String state)\n\t{\n\t\tthis.state = state; \n\t}",
"public void setActive() {\n setState(true);\n }",
"private void setState(State newState) {\n mStateStartTime = System.currentTimeMillis();\n\n // Update the UI with the name of the current state\n mCurrentStateTextView.setText(newState.name());\n\n // Opportunity to do stuff when a new state is set.\n switch (newState) {\n case READY:\n break;\n case RUNNING_A_SCRIPT:\n runScript();\n break;\n case SEEKING_HOME:\n break;\n case SUCCESS:\n break;\n }\n mState = newState;\n }",
"public void setState(String state) {\n\t\tthis.state = state;\n\t}",
"public void setState(String state) {\n\t\tthis.state = state;\n\t}",
"public void setState(int newState) {\n state = newState;\n }",
"public void setState(String State) {\n this.State = State;\n }",
"public void setState(org.apache.axis.types.UnsignedInt state) {\n this.state = state;\n }",
"public void setState(String state)\n {\n switch(state) {\n case \"Clock-In\": this.state = new ClockedIn();break;\n case \"Clock-Out\": this.state = new ClockedOut();break;\n }\n }",
"public void setState(Long state) {\n this.state = state;\n }",
"public void setState(int state) {\n\t\tif (state == CHASE)\n\t\t\tthis.state = CHASE;\n\t\telse if (state == RUN) \n\t\t\tthis.state = RUN;\n\t}",
"public void updateState();",
"private void setMechanicState(MechanicState state) {\r\n if (this.state == state) {\r\n return;\r\n }\r\n this.state = state;\r\n }",
"private void setCurrentState(StateEnum state)\n {\n m_CurrentState = state;\n m_DoneInit = false;\n switch(m_CurrentState)\n {\n case QB:\n m_A1Label.setText( \"PS\");\n m_A2Label.setText( \"PC\");\n m_A3Label.setText( \"ACC\");\n m_A4Label.setText( \"APB\");\n m_Sim1Label.setText( \"Sim Run\");\n m_Sim2Label.setText( \"Sim Pass\");\n m_Sim3Label.setText( \"Sim Pocket\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( true);\n m_Sim4UpDown.setEnabled( false);\n \n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( true);\n m_APBBox.setEnabled( true);\n break;\n case SKILL:\n m_A1Label.setText( \"BC\");\n m_A2Label.setText( \"REC\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"Sim Rush\");\n m_Sim2Label.setText( \"Sim Catch\");\n m_Sim3Label.setText( \"<HTML> Sim Punt<br>return</HTML>\");\n m_Sim4Label.setText( \"<HTML> Sim Kick<br>return</HTML>\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( true);\n m_Sim4UpDown.setEnabled( true);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case OLINE:\n m_A1Label.setText( \"\");\n m_A2Label.setText( \"\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"\");\n m_Sim2Label.setText( \"\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( false);\n m_Sim2UpDown.setEnabled( false);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_PS_BC_PI_KABox.setEnabled( false);\n m_PC_REC_QU_KABox.setEnabled( false);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case DEFENSE:\n m_A1Label.setText( \"PI\");\n m_A2Label.setText( \"QU\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"<HTML> Sim Pass<br>rush </HTML>\");\n m_Sim2Label.setText( \"Sim Coverage\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( true);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n case KICKER:\n m_A1Label.setText( \"KA\");\n m_A2Label.setText( \"AKB\");\n m_A3Label.setText( \"\");\n m_A4Label.setText( \"\");\n m_Sim1Label.setText( \"Sim KA\");\n m_Sim2Label.setText( \"\");\n m_Sim3Label.setText( \"\");\n m_Sim4Label.setText( \"\");\n m_Sim1UpDown.setEnabled( true);\n m_Sim2UpDown.setEnabled( false);\n m_Sim3UpDown.setEnabled( false);\n m_Sim4UpDown.setEnabled( false);\n m_Sim1UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim2UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim3UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_Sim4UpDown.setModel(new SpinnerNumberModel(0, 0, 15, 1));\n m_PS_BC_PI_KABox.setEnabled( true);\n m_PC_REC_QU_KABox.setEnabled( true);\n m_ACCBox.setEnabled( false);\n m_APBBox.setEnabled( false);\n break;\n }\n m_DoneInit = true;\n }",
"private synchronized void setState(int state) {\n if (D) Log.d(TAG, \"setState() \" + mState + \" -> \" + state);\n mState = state;\n\n // Give the new state to the Handler so the UI Activity can update\n mHandler.obtainMessage(RemoteBluetooth.MESSAGE_STATE_CHANGE, state, -1).sendToTarget();\n }",
"@Override protected void setState(State s) {\n session.setState(s);\n super.setState(s);\n }",
"public void setCurrentState(State state) {\n currentState = state;\n }",
"public static void setState(States state) {\r\n\t\tcurrentState = state;\r\n\t}",
"public void setState(GameState s) {\n this.state = s;\n }",
"public void setState(java.lang.String state) {\r\n this.state = state;\r\n }",
"@objid (\"dec04375-0805-4a30-ba61-5edb1bdcf44a\")\n void setDataState(BpmnDataState value);",
"void __setState(int i)\n {\n m_state = i;\n }",
"private void setState(State newState) {\n state = newState;\n switch (newState) {\n case IDLE:\n toggleReco.setText(\"Tap to speak.\");\n break;\n case LISTENING:\n toggleReco.setText(getResources().getString(R.string.listening));\n break;\n case PROCESSING:\n toggleReco.setText(getResources().getString(R.string.processing));\n break;\n }\n }",
"public void set_state(String state) throws Exception{\n\t\tthis.state = state;\n\t}",
"@Override\n public void set(boolean state) {\n if (isInverted) {\n super.set(!state);\n } else {\n super.set(state);\n }\n }",
"public void setState(State state)\n\t{\n\t\tsetState(conferenceInfo, state);\n\t}"
]
| [
"0.74178433",
"0.7387019",
"0.7332385",
"0.7332385",
"0.7295377",
"0.7290158",
"0.7287992",
"0.71999705",
"0.7143486",
"0.7143486",
"0.7131445",
"0.7096951",
"0.7059045",
"0.700781",
"0.6987059",
"0.6987059",
"0.6982251",
"0.6939933",
"0.69262266",
"0.69262266",
"0.69262266",
"0.69262266",
"0.69262266",
"0.69262266",
"0.6910332",
"0.6886556",
"0.6885417",
"0.68472093",
"0.6842655",
"0.68410206",
"0.6811374",
"0.6809546",
"0.6807632",
"0.68045425",
"0.6803826",
"0.67517143",
"0.6746453",
"0.67439556",
"0.6704908",
"0.66907024",
"0.66821635",
"0.6670889",
"0.66486216",
"0.6639911",
"0.66323787",
"0.6627316",
"0.66094005",
"0.66094005",
"0.6601629",
"0.6588576",
"0.655955",
"0.65447253",
"0.65447253",
"0.6544399",
"0.6542151",
"0.6529556",
"0.6528104",
"0.6527369",
"0.65164983",
"0.6504865",
"0.6504865",
"0.650481",
"0.6501766",
"0.6501766",
"0.6501766",
"0.6501766",
"0.6501766",
"0.6501766",
"0.6501766",
"0.6501766",
"0.64994305",
"0.6487804",
"0.64869654",
"0.64791596",
"0.6474642",
"0.64695877",
"0.6465664",
"0.6422301",
"0.6422301",
"0.64067286",
"0.63897383",
"0.63826704",
"0.63799673",
"0.6377566",
"0.637617",
"0.63519615",
"0.6334472",
"0.6333662",
"0.6330873",
"0.63266814",
"0.63249856",
"0.63036704",
"0.6291739",
"0.6266015",
"0.62499475",
"0.624981",
"0.6247522",
"0.62458056",
"0.6241531",
"0.62386817"
]
| 0.6997384 | 14 |
Get the state of the described instance. | public int getState() {
return m_state;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public State getState() {\n return state.get();\n }",
"public State getState();",
"public State getState();",
"public State state() {\n return state;\n }",
"public State GetState()\n {\n return this.state;\n }",
"public T getState() {\r\n\t\treturn state;\r\n\t}",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"public State getState() {\n return state;\n }",
"protected S state() {\n return state;\n }",
"public State state() {\n return _state;\n }",
"public S getState() {\r\n\t\treturn state;\r\n\t}",
"public State getState () {\n synchronized (this) {\n return state;\n }\n }",
"public IState getState();",
"Object getState();",
"InstanceState getState() {\n return state;\n }",
"public State getState() {\n\t\treturn state;\n\t}",
"public State getState() {\n\t\treturn state;\n\t}",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"public State getState()\r\n\t{\r\n\t\treturn this.state;\r\n\t}",
"private State getState()\n {\n return state;\n }",
"public TState getState() {\n return state;\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public Integer getState() {\r\n return state;\r\n }",
"public State getState() { return model.getState(); }",
"public STATE getState() {\n\t\n\t\treturn state;\n\t}",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Integer getState() {\n return state;\n }",
"public Long getState() {\n return state;\n }",
"StateT getState();",
"public State getState(){return this.state;}",
"public int getState(){\n return state;\n }",
"public S getCurrentState();",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state;\n }",
"public int getState() {\n return state;\n }",
"public int getState();",
"public int getState();",
"public int getState();",
"public int getState();",
"public int getState() {return state;}",
"public int getState() {return state;}",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state_;\n }",
"public int getState() {\n return state;\n }",
"public int getState() {\n return _state;\n }",
"public int getState() {\n return state.getValue();\n }",
"public GameState GetState(){\n\t\treturn this.state;\n\t}",
"public AeBpelState getState();",
"public int getState(){\n\t\treturn state;\n\t}",
"protected final State getState() {\n return state;\n }",
"@java.lang.Override\n public com.google.cloud.datafusion.v1beta1.Instance.State getState() {\n com.google.cloud.datafusion.v1beta1.Instance.State result =\n com.google.cloud.datafusion.v1beta1.Instance.State.forNumber(state_);\n return result == null\n ? com.google.cloud.datafusion.v1beta1.Instance.State.UNRECOGNIZED\n : result;\n }",
"public State state();",
"@java.lang.Override\n public com.google.cloud.datafusion.v1beta1.Instance.State getState() {\n com.google.cloud.datafusion.v1beta1.Instance.State result =\n com.google.cloud.datafusion.v1beta1.Instance.State.forNumber(state_);\n return result == null\n ? com.google.cloud.datafusion.v1beta1.Instance.State.UNRECOGNIZED\n : result;\n }",
"public S getState() {\n return currentState;\n }",
"public BaseSensorState getState() {\n return state;\n }",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"public int getState() {\n\t\treturn state;\n\t}",
"public Boolean getState() {\n return state;\n }",
"public String state() {\n return this.state;\n }",
"public String state() {\n return this.state;\n }",
"public GameObjectState getState() {\r\n\t\treturn state;\r\n\t}",
"@NotNull\r\n State getState();",
"public state getStatus(){\n return this.st;\n }",
"public int getState()\n {\n return m_state.getState();\n }",
"public boolean getState( ) { return state; }",
"public int getState() {\n return this.mState;\n }",
"public Byte getState() {\n return state;\n }",
"public Byte getState() {\n return state;\n }",
"public int getState() {\n \t\treturn state;\n \t}",
"public GameState getState() {\n\t\treturn state;\n\t}",
"public int getState() {\n return mState;\n }",
"public Integer getaState() {\n return aState;\n }",
"@java.lang.Override public int getStateValue() {\n return state_;\n }",
"public byte getState() {\n return myState;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }"
]
| [
"0.7799891",
"0.76080203",
"0.76080203",
"0.75777465",
"0.75774276",
"0.75673074",
"0.7552952",
"0.7552952",
"0.7552952",
"0.7552952",
"0.7552952",
"0.74993116",
"0.7496209",
"0.7479023",
"0.7448512",
"0.7447859",
"0.74380684",
"0.7433076",
"0.7415784",
"0.7415784",
"0.7411409",
"0.7411409",
"0.7411409",
"0.7411409",
"0.74035364",
"0.74025935",
"0.73640597",
"0.73040164",
"0.73040164",
"0.72990507",
"0.7294382",
"0.7286271",
"0.7286271",
"0.7286271",
"0.7286271",
"0.7286271",
"0.7286271",
"0.7243628",
"0.7212323",
"0.7211847",
"0.71986336",
"0.71811664",
"0.71789926",
"0.71789926",
"0.71789926",
"0.71789926",
"0.71789926",
"0.71760464",
"0.71760464",
"0.71672237",
"0.71672237",
"0.71672237",
"0.71672237",
"0.7158745",
"0.7158745",
"0.7141524",
"0.7141524",
"0.7141524",
"0.7141524",
"0.7140534",
"0.7140197",
"0.70865655",
"0.707689",
"0.70333296",
"0.7017001",
"0.7013128",
"0.70072734",
"0.70064217",
"0.70042205",
"0.7002614",
"0.6997654",
"0.6983018",
"0.69808227",
"0.69808227",
"0.69808227",
"0.69808227",
"0.69808227",
"0.69808227",
"0.69753313",
"0.69744796",
"0.6962089",
"0.6962089",
"0.6958581",
"0.69584256",
"0.6945281",
"0.6923414",
"0.6914374",
"0.6898924",
"0.68939805",
"0.68939805",
"0.6891156",
"0.68724453",
"0.68689406",
"0.68620545",
"0.6860903",
"0.68603045",
"0.6858577",
"0.6858577",
"0.6858577",
"0.6858577"
]
| 0.70848674 | 62 |
Get the bundle id of the bundle containing the described instance. | public long getBundleId() {
return m_bundleId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getBundleId() {\n return this.bundleId;\n }",
"public String getId() {\n return mBundle.getString(KEY_ID);\n }",
"public long getBundleID(){\n return localBundleID;\n }",
"public String getBundleId() {\n\t return PLUGIN_ID;\n\t}",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public java.lang.String getApplicationBundleIdentifier() {\r\n return applicationBundleIdentifier;\r\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public int getId() {\n return instance.getId();\n }",
"public Bundle getBundle(long id) {\n \t\treturn (framework.getBundle(id));\n \t}",
"public String getComponentId();",
"public UUID getComponentId();",
"public String getBundleName()\n {\n return _bundleName;\n }",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _surveyLocalService.getBeanIdentifier();\n\t}",
"public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _kpiEntryLocalService.getBeanIdentifier();\n\t}",
"public BundleDescription getBundle() {\n \t\treturn bundle;\n \t}",
"@NotNull\n @Generated\n @Selector(\"bundle\")\n public native NSBundle bundle();",
"public Integer getId() {\n return id.get();\n }",
"public Bundle getBundle() {\n \t\tcheckValid();\n \n \t\treturn getBundleImpl();\n \t}",
"public String getId() {\n if (id == null)\n return \"\"; //$NON-NLS-1$\n return id;\n }",
"public java.lang.String getBeanIdentifier() {\n\t\treturn _preschoolParentLocalService.getBeanIdentifier();\n\t}",
"public String getBundleLocation() {\n return bundleLocation;\n }",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _vanBanPhapQuyLocalService.getBeanIdentifier();\n\t}",
"int getIdInstance();",
"public Integer getId() {\n return (Integer) get(0);\n }",
"public int getId() throws android.os.RemoteException;",
"int getID()\n throws RemoteException;",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n\t\treturn getService().getBeanIdentifier();\n\t}",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public static java.lang.String getBeanIdentifier() {\n return getService().getBeanIdentifier();\n }",
"public int getBId() {\n return instance.getBId();\n }",
"public Long getId() {\n return this.id.get();\n }",
"public String getId() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"public final long getId() {\r\n return id;\r\n }",
"public java.lang.String getBeanIdentifier() {\n\t\treturn _primarySchoolStudentLocalService.getBeanIdentifier();\n\t}",
"public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }",
"public int getId() {\n\t\treturn ID;\n\t}",
"public String getComponentId() {\n \t\treturn componentId;\n \t}",
"public Long getId() {\n return super.getId();\n }",
"Object getId();",
"public Object getId() {\n return id;\n }",
"public Object getId() {\n return id;\n }",
"@Override\n\tpublic java.lang.String getBeanIdentifier() {\n\t\treturn _esfResultLocalService.getBeanIdentifier();\n\t}",
"public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}",
"String getImplicitBundleIdentifier(int columnIndex);",
"public final Integer getId() {\n\t\treturn this.id;\n\t}",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@Override\n\tpublic int getId() {\n\t\treturn ID;\n\t}",
"public java.lang.Integer getId() {\n return id;\n }",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId () {\n\t\treturn id;\n\t}",
"public ModuleRevisionId getId() {\n return descriptor.getResolvedModuleRevisionId();\n }",
"public java.lang.String getBeanIdentifier() {\n return _examConfigLocalService.getBeanIdentifier();\n }",
"public java.lang.Integer getId() {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId() {\n\t\treturn id;\n\t}",
"public java.lang.Integer getId() {\n return id;\n }"
]
| [
"0.74695873",
"0.70451146",
"0.6723863",
"0.6350649",
"0.6288362",
"0.6268641",
"0.62220746",
"0.6171428",
"0.6171428",
"0.6171428",
"0.6171428",
"0.6171428",
"0.6171428",
"0.6171428",
"0.60294646",
"0.5966642",
"0.59610456",
"0.59278214",
"0.5885509",
"0.58812594",
"0.5870453",
"0.58568454",
"0.5837653",
"0.5801638",
"0.57853836",
"0.577556",
"0.5764589",
"0.57476586",
"0.5737181",
"0.5698238",
"0.56900406",
"0.5688853",
"0.5653583",
"0.5649231",
"0.5649231",
"0.5649231",
"0.5649231",
"0.5649231",
"0.56445",
"0.56445",
"0.56445",
"0.56445",
"0.56445",
"0.56203234",
"0.5604765",
"0.5601517",
"0.5579807",
"0.5573283",
"0.5570325",
"0.55669004",
"0.55651987",
"0.5565003",
"0.5552357",
"0.5551631",
"0.5551631",
"0.55514383",
"0.55455375",
"0.5538974",
"0.5538738",
"0.55322313",
"0.55322313",
"0.55322313",
"0.55322313",
"0.55317974",
"0.55305105",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55268896",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55258155",
"0.55219066",
"0.55206364",
"0.5517631",
"0.5517631",
"0.5517546"
]
| 0.7328095 | 1 |
Get the list of contained instance in the describe instance. This list contains only instances who exposed their architecture. | public InstanceDescription[] getContainedInstances() {
return m_containedInstances;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<Instance> getInstances();",
"public List<ServiceInstance> getAllInstances();",
"public static ArrayList<InstanceEntity> getInstances() {\n ILifeCycleServiceRest resourceserviceproxy =\n ConsumerFactory.createConsumer(MsbUtil.getNsocLifecycleBaseUrl(),\n ILifeCycleServiceRest.class);\n String result = \"\";\n try {\n result = resourceserviceproxy.getVnfInstances();\n } catch (Exception e1) {\n LOG.error(\"query vim info faild.\", e1);\n return null;\n }\n if (ToolUtil.isEmptyString(result)) {\n return null;\n }\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<InstanceEntity>>() {}.getType();\n return gson.fromJson(result, listType);\n }",
"public List<ServiceInstance<InstanceDetails>> listInstances() throws Exception {\n\t\tCollection<String> serviceNames = serviceDiscovery.queryForNames();\n\t\tSystem.out.println(serviceNames.size() + \" type(s)\");\n\t\tList<ServiceInstance<InstanceDetails>> list = new ArrayList<>();\n\t\tfor (String serviceName : serviceNames) {\n\t\t\tCollection<ServiceInstance<InstanceDetails>> instances = serviceDiscovery.queryForInstances(serviceName);\n\t\t\tSystem.out.println(serviceName);\n\t\t\tfor (ServiceInstance<InstanceDetails> instance : instances) {\n\t\t\t\toutputInstance(instance);\n\t\t\t\tlist.add(instance);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"private Collection getInstances() {\n \t\tCollection instances=null;\r\n\r\n //instances = cls.getInstances();\r\n \t\tRDFProperty ready = owlModel.getRDFProperty(oTab.namespacePrefix + \":\" + oTab.pReady);\r\n\r\n \t\tif ( ready != null )\r\n \t\t{\r\n \t\t\tinstances = owlModel.getRDFResourcesWithPropertyValue(ready, true);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tSystem.out.println(\"*** Could not lookup property defintion for \" + oTab.namespacePrefix + \":\" + oTab.pReady + \" Ontology not imported\");\r\n \t\t}\r\n\r\n return instances;\r\n }",
"public SortedSet<WVnfInstance> getAllVnfInstances ()\n\t{\n\t\treturn n.getResources().stream().filter(r->!r.getType().contains(WNetConstants.LISTSEPARATORANDINVALIDNAMECHARACTER)).map(r->new WVnfInstance(r)).collect(Collectors.toCollection(TreeSet::new));\n\t}",
"@RequestMapping(value = \"/discovery-client/instances\", method = RequestMethod.GET)\n public Map<String, Integer> getAllInstances() {\n final Map<String, Integer> response = new HashMap<>();\n\n final Applications applications = discoveryClient.getApplications();\n final List<Application> applicationList = applications.getRegisteredApplications();\n\n //TODO Java 8 Stream\n // Get instances from eureka\n for (final Application app : applicationList) {\n response.put(app.getName(), app.getInstances().size());\n }\n\n return response;\n }",
"public ArrayList<Instance> getTestInstances() {\n ArrayList<Instance> testing = new ArrayList<>();\n testing.addAll(instances.subList(targetsize, instances.size()));\n return testing;\n }",
"public final List<CharacterInstance> getInstances() {\n return instances;\n }",
"@Override\n\tpublic Instances getInstances() {\n\t\treturn null;\n\t}",
"public List<HealthInspectorsInfo> availableInspectors() {\n return INSPECTORS.stream().map(HealthInspectorsInfo::new).collect(Collectors.toList());\n }",
"private List<String> getRunningInstances()\n {\n final long maxResults = 500L; // 500 is sadly the max, see below\n\n ArrayList<String> ids = new ArrayList<>();\n try {\n final String project = envConfig.getProjectId();\n final String zone = envConfig.getZoneName();\n final String managedInstanceGroupName = envConfig.getManagedInstanceGroupName();\n\n Compute computeService = createComputeService();\n Compute.InstanceGroupManagers.ListManagedInstances request =\n computeService\n .instanceGroupManagers()\n .listManagedInstances(project, zone, managedInstanceGroupName);\n // Notice that while the doc says otherwise, there is not nextPageToken to page\n // through results and so everything needs to be in the same page\n request.setMaxResults(maxResults);\n InstanceGroupManagersListManagedInstancesResponse response = request.execute();\n for (ManagedInstance mi : response.getManagedInstances()) {\n ids.add(GceUtils.extractNameFromInstance(mi.getInstance()));\n }\n log.debug(\"Found running instances [%s]\", String.join(\",\", ids));\n }\n catch (Exception e) {\n log.error(e, \"Unable to get instances.\");\n }\n return ids;\n }",
"public ArrayList<Instance> getTrainInstances() {\n ArrayList<Instance> training = new ArrayList<>();\n training.addAll(instances.subList(0, targetsize));\n return training;\n }",
"public void getRunningInstances() {\n LogContainerResultCallback resultCallback = new LogContainerResultCallback();\n //override method onNext of resultcallback\n dockerClient.logContainerCmd(\"id\").exec(resultCallback);\n dockerClient.attachContainerCmd(\"id\").withStdIn(new ByteArrayInputStream(\"list\\n\".getBytes()));\n }",
"public ArrayList<String> getLabels() {\n ArrayList<String> labels = new ArrayList<>();\n labels.add(instances.get(0).getLabel());\n for (Instance instance : instances) {\n if (!(labels.contains(instance.getLabel()))) {\n labels.add(instance.getLabel());\n }\n }\n return labels;\n }",
"public List<ServiceInstance> getAllInstances(String serviceName);",
"@Override\n\tpublic Set<Tuple<String, String>> getInstancesLinked() {\n\t\treturn instancesLinkedSet;\n\t}",
"@CheckReturnValue\n Stream<? extends Thing.Remote<SomeRemoteThing, SomeRemoteType>> instances();",
"@GET\n\t@Path( \"/all-children\" + OPTIONAL_INSTANCE_PATH )\n\t@Produces( MediaType.APPLICATION_JSON )\n\tList<Instance> listAllChildrenInstances( @PathParam(\"name\") String applicationName, @PathParam(\"instancePath\") String instancePath );",
"public List<ProcessInstance> getProcessInstances() {\r\n return this.processInstances;\r\n }",
"public static SortBuilder[] allInstances() {\n \t\treturn (SortBuilder[]) allInstances.toArray(new SortBuilder[allInstances.size()]);\n \t}",
"java.util.List<UserOuterClass.ExperimentInfo> \n getExperimentsList();",
"public List<ServiceInstance> lookupInstances(String serviceName);",
"private static void listInstances(ServiceDiscovery<InstanceDetails> serviceDiscovery) throws\n Exception {\n \n try {\n Collection<String> serviceNames = serviceDiscovery.queryForNames();\n System.out.println(serviceNames.size() + \" type(s)\");\n for (String serviceName : serviceNames) {\n Collection<ServiceInstance<InstanceDetails>> instances = serviceDiscovery\n .queryForInstances(serviceName);\n System.out.println(serviceName);\n for (ServiceInstance<InstanceDetails> instance : instances) {\n outputInstance(instance);\n }\n }\n } finally {\n CloseableUtils.closeQuietly(serviceDiscovery);\n }\n }",
"public List<Instance> getSamples(){\n\t\treturn arrIns;\n\t}",
"public Iterator<Example> getNeighbors(Instance instance){\n\t\tSet<Example> set=new HashSet<Example>();\n\t\tfor(Iterator<Feature> i=instance.featureIterator();i.hasNext();){\n\t\t\tFeature f=i.next();\n\t\t\tfor(Iterator<Example> j=featureIndex(f).iterator();j.hasNext();){\n\t\t\t\tset.add(j.next());\n\t\t\t}\n\t\t}\n\t\treturn set.iterator();\n\t}",
"@Override\n public List<Workload> getAll() throws InstanceNotFoundException {\n List<Workload> list = new ArrayList<>();\n workloadRepository.findAll().forEach(list::add);\n if (list.isEmpty()) {\n throw new InstanceNotFoundException(\"Here is no Workloads\");\n }\n return list;\n }",
"public Set<HasInstance> getHasInstanceRelationships() {\n\t\treturn this.instanceOf;\n\t}",
"public String getGroup ()\n {\n return \"instances\";\n }",
"List<ManagedEndpoint> all();",
"public List<JFrogPlatformInstance> getJfrogInstances() {\n return RepositoriesUtils.getJFrogPlatformInstances();\n }",
"public List<ServiceInstance> getAllInstancesByKey(ServiceInstanceQuery query);",
"@GET\n\t@Path( \"/children\" + OPTIONAL_INSTANCE_PATH )\n\t@Produces( MediaType.APPLICATION_JSON )\n\tList<Instance> listChildrenInstances( @PathParam(\"name\") String applicationName, @PathParam(\"instancePath\") String instancePath );",
"public com.sforce.soap.enterprise.QueryResult getProcessInstances() {\r\n return processInstances;\r\n }",
"private static ArrayList<Integer> getInterestingHalPids() {\r\n try {\r\n IServiceManager serviceManager = IServiceManager.getService();\r\n ArrayList<IServiceManager.InstanceDebugInfo> dump =\r\n serviceManager.debugDump();\r\n HashSet<Integer> pids = new HashSet<>();\r\n for (IServiceManager.InstanceDebugInfo info : dump) {\r\n if (info.pid == IServiceManager.PidConstant.NO_PID) {\r\n continue;\r\n }\r\n\r\n if (Watchdog.HAL_INTERFACES_OF_INTEREST.contains(info.interfaceName) ||\r\n CAR_HAL_INTERFACES_OF_INTEREST.contains(info.interfaceName)) {\r\n pids.add(info.pid);\r\n }\r\n }\r\n\r\n return new ArrayList<Integer>(pids);\r\n } catch (RemoteException e) {\r\n return new ArrayList<Integer>();\r\n }\r\n }",
"public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }",
"public List<Park> getParkRegistry() {\n return this.pf.getParkList();\n }",
"List<SoftObjectReference> getObjects();",
"public ArrayList<String> getPageInstanceIDs() {\n\t\treturn this.pageInstanceIDs;\n\t}",
"static <T extends BuildSystemExtensionPoint> ImmutableList<T> getInstances(\n ExtensionPointName<T> extensionPointName, BuildSystemName buildSystemName) {\n return Arrays.stream(extensionPointName.getExtensions())\n .filter(f -> f.getSupportedBuildSystems().contains(buildSystemName))\n .collect(toImmutableList());\n }",
"public List<I> get() {\n synchronized (refs) {\n List<I> res = new ArrayList<>();\n for (Iterator<WeakReference<I>> iterator = refs.iterator(); iterator.hasNext(); ) {\n WeakReference<I> ref = iterator.next();\n I instance = ref.get();\n if (instance == null) {\n iterator.remove();\n } else {\n res.add(instance);\n }\n }\n return res;\n }\n }",
"public List<JFrogPlatformInstance> getJfrogInstances() {\n List<JFrogPlatformInstance> jfrogInstances = new ArrayList<>(RepositoriesUtils.getJFrogPlatformInstances());\n ArtifactoryServer propertyServer = getArtifactoryServerFromPipeline();\n if (propertyServer != null) {\n jfrogInstances.add(new JFrogPlatformInstance(propertyServer));\n }\n return jfrogInstances;\n }",
"@Test\n\tpublic void testListInstances_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tInstanceSelector aSelector = new InstanceSelector();\n\n\t\tSAPInstance[] result = fixture.listInstances(aSelector);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public List<SpecialContainer> getSpecialContainers(){\n return this.specialContainers;\n }",
"protected SortedSet<Select2OptGroup> getListOfAllInstances(Class<? extends DefinitionsChildId> clazz) throws RepositoryCorruptException {\n Select2DataWithOptGroups data = new Select2DataWithOptGroups();\n\n IRepository repo = RepositoryFactory.getRepository();\n Collection<? extends DefinitionsChildId> instanceIds = repo.getAllElementsReferencingGivenType(clazz, this.id.getQName());\n\n for (DefinitionsChildId instanceId : instanceIds) {\n String groupText = instanceId.getNamespace().getDecoded();\n String text = BackendUtils.getName(instanceId, repo);\n data.add(groupText, instanceId.getQName().toString(), text);\n }\n\n return data.asSortedSet();\n }",
"public java.util.List<SeriesInstance> getInstanceElement() { \n\t\tif (myInstance == null) {\n\t\t\tmyInstance = new java.util.ArrayList<SeriesInstance>();\n\t\t}\n\t\treturn myInstance;\n\t}",
"public final static List<KaranteeniPlugin> getPluginInstances() {\r\n\t\treturn new ArrayList<KaranteeniPlugin>(kPluginInstances.values());\r\n\t}",
"@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testListInstances_4()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tInstanceSelector aSelector = new InstanceSelector();\n\n\t\tSAPInstance[] result = fixture.listInstances(aSelector);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public IPresentablePart[] getPartList() {\r\n\t\treturn tabs.getPartList();\r\n\t}",
"public List<PafDimMember> getIChildren() {\r\n\t\t\r\n\t\tList<PafDimMember> childList = new ArrayList<PafDimMember>();\r\n\t\tchildList.add(this);\r\n\t\tif (children != null) {\r\n\t\t\tchildList.addAll(children);\r\n\t\t}\r\n\t\treturn childList;\r\n\t}",
"public List<VirtualMachineDescriptor> listVirtualMachines() {\n ArrayList<VirtualMachineDescriptor> result =\n new ArrayList<VirtualMachineDescriptor>();\n\n MonitoredHost host;\n Set<Integer> vms;\n try {\n host = MonitoredHost.getMonitoredHost(new HostIdentifier((String)null));\n vms = host.activeVms();\n } catch (Throwable t) {\n if (t instanceof ExceptionInInitializerError) {\n t = t.getCause();\n }\n if (t instanceof ThreadDeath) {\n throw (ThreadDeath)t;\n }\n if (t instanceof SecurityException) {\n return result;\n }\n throw new InternalError(t); // shouldn't happen\n }\n\n for (Integer vmid: vms) {\n String pid = vmid.toString();\n String name = pid; // default to pid if name not available\n boolean isAttachable = false;\n MonitoredVm mvm = null;\n try {\n mvm = host.getMonitoredVm(new VmIdentifier(pid));\n try {\n isAttachable = MonitoredVmUtil.isAttachable(mvm);\n // use the command line as the display name\n name = MonitoredVmUtil.commandLine(mvm);\n } catch (Exception e) {\n }\n if (isAttachable) {\n result.add(new HotSpotVirtualMachineDescriptor(this, pid, name));\n }\n } catch (Throwable t) {\n if (t instanceof ThreadDeath) {\n throw (ThreadDeath)t;\n }\n } finally {\n if (mvm != null) {\n mvm.detach();\n }\n }\n }\n return result;\n }",
"public List<ServiceInstance> getAllInstances(String serviceName, ServiceInstanceQuery query);",
"public List<InstanceType> listInstanceTypes() throws IOException,\n\t\t\tClassNotFoundException {\n\t\treturn list(InstanceType.class);\n\t}",
"public java.util.List<String> getReservedInstancesIds() {\n if (reservedInstancesIds == null) {\n reservedInstancesIds = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n reservedInstancesIds.setAutoConstruct(true);\n }\n return reservedInstancesIds;\n }",
"public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }",
"public java.util.List<ReservedInstancesConfiguration> getTargetConfigurations() {\n if (targetConfigurations == null) {\n targetConfigurations = new com.amazonaws.internal.ListWithAutoConstructFlag<ReservedInstancesConfiguration>();\n targetConfigurations.setAutoConstruct(true);\n }\n return targetConfigurations;\n }",
"public List<ServiceHealth> getServiceInstances(String service);",
"@Nullable\n public static Collection<EnvoyContainer> getAllEnvoys(){\n return envoys.values();\n }",
"@Test(expected = java.rmi.RemoteException.class)\n\tpublic void testListInstances_2()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tInstanceSelector aSelector = new InstanceSelector();\n\n\t\tSAPInstance[] result = fixture.listInstances(aSelector);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public java.util.List<String> getInstanceTypes() {\n if (instanceTypes == null) {\n instanceTypes = new com.amazonaws.internal.SdkInternalList<String>();\n }\n return instanceTypes;\n }",
"public final ArrayList<Instance> coveredInstances(final Instances data) {\n //TODO ELM: this fucks a lot, since it changes the reference to the dataset. actually, it should make a copy or something. ok, I put, that instances are added directly. this is a problem\n final ArrayList<Instance> covd = new ArrayList<>(data.numInstances());\n final Enumeration<Instance> e = data.enumerateInstances();\n\n while (e.hasMoreElements()) {\n final Instance i = e.nextElement();\n\n if (covers(i))\n covd.add(i);\n }\n\n return covd;\n }",
"public List<ITabDescriptor> getElements() {\n\t\treturn elements;\n\t}",
"public List<Application> getVisibleApplications() {\n return null;\r\n }",
"public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @KonfigVerdi\n @Produces\n public <V> List<V> getKonfigVerdiList(final InjectionPoint ip) {\n KonfigVerdi annotation = getAnnotation(ip);\n String key = annotation.value();\n Converter converter = getConverter(annotation.converter());\n List<V> verdier = getVerdi(ip, annotation, KonfigVerdiProviderOutput.LIST, key, converter);\n return verdier;\n }",
"public Map<String, Map<String, String>> getAllInstanceFeatures(String params)\n {\n Map<String, Map<String, String>> feats = new HashMap<String, Map<String, String>>();\n List<String> instanceNames = getAllInstanceStrings(params);\n for(String name: instanceNames)\n {\n feats.put(name, new HashMap<String, String>());\n }\n return feats;\n }",
"@java.lang.Override\n public java.util.List<UserOuterClass.ExperimentInfo> getExperimentsList() {\n return experiments_;\n }",
"public tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleList getExampleList() {\n if (kindCase_ == 1) {\n return (tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleList) kind_;\n }\n return tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleList.getDefaultInstance();\n }",
"public final ArrayList<String> getEquipment() {\r\n\t\tArrayList<String> allEquipment = new ArrayList<String>();\r\n\r\n\t\t// for every workout in the workoutList\r\n\t\tfor (Workout i : workoutList) {\r\n\t\t\tallEquipment.add(String.valueOf(i.getEquipment()));\r\n\t\t}\r\n\r\n\t\tallEquipment = (ArrayList<String>) allEquipment.stream().distinct().collect(Collectors.toList());\r\n\r\n\t\treturn allEquipment;\r\n\t}",
"@Test(expected = org.apache.axis.NoEndPointException.class)\n\tpublic void testListInstances_5()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub((URL) null, new DeployWSServiceLocator());\n\t\tInstanceSelector aSelector = new InstanceSelector();\n\n\t\tSAPInstance[] result = fixture.listInstances(aSelector);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"private ArrayList<Computer> getInfectList() {\n ArrayList<Computer> infectList = new ArrayList<>();\n\n for (int i = 0; i < computers.length; i++) {\n if (computers[i].isVirus()) {\n for (int j = 0; j < matrix.length; j++) {\n if (matrix[i][j] && !computers[j].isVirus()) {\n infectList.add(computers[j]);\n }\n }\n }\n }\n\n return infectList;\n }",
"public ArrayList darEscenarios( )\n {\n return escenarios;\n }",
"public java.util.List<com.google.protobuf.ByteString>\n getExamplesList() {\n return java.util.Collections.unmodifiableList(examples_);\n }",
"public java.util.List<com.google.protobuf.ByteString>\n getExamplesList() {\n return java.util.Collections.unmodifiableList(examples_);\n }",
"public List<InstanceStateChange> terminateInstances() {\n final TerminateInstancesRequest terminateInstancesRequest = new TerminateInstancesRequest(getInstanceIds());\n final TerminateInstancesResult result = ec2.terminateInstances(terminateInstancesRequest);\n return result.getTerminatingInstances();\n }",
"public java.util.List<UserOuterClass.ExperimentInfo> getExperimentsList() {\n if (experimentsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(experiments_);\n } else {\n return experimentsBuilder_.getMessageList();\n }\n }",
"public java.util.List<SeriesInstance> getInstance() { \n\t\tif (myInstance == null) {\n\t\t\tmyInstance = new java.util.ArrayList<SeriesInstance>();\n\t\t}\n\t\treturn myInstance;\n\t}",
"public AllInstanceExpressionElements getAllInstanceExpressionAccess() {\r\n\t\treturn pAllInstanceExpression;\r\n\t}",
"public Collection<Experiment> getExperiments();",
"public static Instances getData()\n {\n return data;\n }",
"public List<IBS2101105RsResult> getHouseList() {\n return houseList;\n }",
"ImmutableList<T> getServices();",
"public Map<String, LearnlabDomainMetricsReport> getRemoteInstanceReports() {\n return remoteInstanceReports;\n }",
"public List<ServiceInstance> queryInstancesByKey(ServiceInstanceQuery query);",
"@Test(expected = org.apache.axis.AxisFault.class)\n\tpublic void testListInstances_3()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tInstanceSelector aSelector = new InstanceSelector();\n\n\t\tSAPInstance[] result = fixture.listInstances(aSelector);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"public Collection<BusinessInterfaceDescriptor<?>> getLocalBusinessInterfaces() {\n \n Set<BusinessInterfaceDescriptor<?>> localBusIntfs = new HashSet<BusinessInterfaceDescriptor<?>>();\n\n if( ejbDesc.getType().equals(EjbSessionDescriptor.TYPE) ) {\n\n EjbSessionDescriptor sessionDesc = (EjbSessionDescriptor) ejbDesc;\n Set<String> localNames = sessionDesc.getLocalBusinessClassNames();\n\n // Add superinterfaces that are also marked as Local\n Set<String> extraNames = new HashSet<String>();\n for(String local : localNames) {\n try {\n Class localClass = sessionDesc.getEjbBundleDescriptor().getClassLoader().loadClass(local);\n addIfLocal(localClass.getInterfaces(), extraNames);\n } catch(ClassNotFoundException e) {\n throw new IllegalStateException(e);\n }\n }\n\n localNames.addAll(extraNames);\n\n // Include the no-interface Local view\n if( sessionDesc.isLocalBean() ) {\n localNames.add(sessionDesc.getEjbClassName());\n }\n\n\n for(String local : localNames) {\n try {\n\n Class localClass = sessionDesc.getEjbBundleDescriptor().getClassLoader().loadClass(local);\n BusinessInterfaceDescriptor busIntfDesc =\n new BusinessInterfaceDescriptorImpl(localClass);\n localBusIntfs.add(busIntfDesc);\n\n } catch(ClassNotFoundException e) {\n throw new IllegalStateException(e);\n }\n }\n }\n \n return localBusIntfs;\n }",
"public List<String> getPrivateDnsNames() {\n return getInstances(Running).stream().map(Instance::getPrivateDnsName).collect(Collectors.toList());\n }",
"public List<Container> findAll() {\n\t\tSession currentSession = em.unwrap(Session.class);\n\t\t\n\t\t//create the query\n\t\tQuery<Container> query = currentSession.createQuery(\"from Container\", Container.class);\n\t\t\n\t\t//execute query and get result list\n\t\tList<Container> containers = query.getResultList();\n\t\t//System.out.println(containers);\n\t\t//return the results\n\t\treturn containers;\n\t}",
"public List<String> containers() {\n return this.containers;\n }",
"java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();",
"java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();",
"@Override\r\n\tpublic List<Agent> agentWhole() {\n\t\treturn agentMapper.agentWhole();\r\n\t}",
"List<IViewEntity> getEntities();",
"public List<Classinfo> list() {\n\t\treturn null;\r\n\t}",
"Map<ServerName, List<String>> getDeployedHRIs(final HBaseAdmin admin) throws IOException {\n ClusterStatus status = admin.getClusterStatus();\n Collection<ServerName> regionServers = status.getServers();\n Map<ServerName, List<String>> mm =\n new HashMap<ServerName, List<String>>();\n for (ServerName hsi : regionServers) {\n AdminProtos.AdminService.BlockingInterface server = ((HConnection) connection).getAdmin(hsi);\n\n // list all online regions from this region server\n List<HRegionInfo> regions = ProtobufUtil.getOnlineRegions(server);\n List<String> regionNames = new ArrayList<String>();\n for (HRegionInfo hri : regions) {\n regionNames.add(hri.getRegionNameAsString());\n }\n mm.put(hsi, regionNames);\n }\n return mm;\n }",
"InstancesPackage getInstancesPackage();",
"@Override\n\tpublic ArrayList<Object> getList() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tsession.beginTransaction();\n\t\tString hsql=\"from hibernate.pojo.GmSite as site where site.display='true'\";\n\t\tQuery query = session.createQuery(hsql);\n\t\tsession.getTransaction().commit();\n\t\tArrayList<Object> list = new ArrayList<Object>();\n\t\tlist = (ArrayList<Object>) query.list();\n\t\t\n\t\tsession.close();\n\t\treturn list;\n\t}",
"public Collection getRegisteredObjects() {\n return usedByObjects;\n }",
"ImmutableList<SchemaOrgType> getWorkExampleList();",
"public List<String> getPublicDnsNames() {\n return getInstances(Running).stream().map(Instance::getPublicDnsName).collect(Collectors.toList());\n }"
]
| [
"0.73898137",
"0.7038304",
"0.6745967",
"0.66692334",
"0.64015615",
"0.6315873",
"0.6279606",
"0.6219004",
"0.61234885",
"0.60927427",
"0.60732716",
"0.6070413",
"0.5951471",
"0.59193194",
"0.59177345",
"0.5854487",
"0.5849709",
"0.5710603",
"0.57020503",
"0.5670706",
"0.56522906",
"0.5649986",
"0.5644886",
"0.5643558",
"0.5643434",
"0.563973",
"0.56335145",
"0.56021374",
"0.5598806",
"0.5591558",
"0.5566127",
"0.5556048",
"0.5540184",
"0.5536015",
"0.5526544",
"0.5517493",
"0.5512163",
"0.54958093",
"0.5487371",
"0.54841655",
"0.5468647",
"0.54636276",
"0.5435806",
"0.5428557",
"0.5426266",
"0.54157966",
"0.5411245",
"0.54110736",
"0.5408896",
"0.53991705",
"0.539824",
"0.53961015",
"0.5395886",
"0.5391216",
"0.53861064",
"0.5356972",
"0.5346026",
"0.5334683",
"0.5332932",
"0.5332762",
"0.5329074",
"0.53281915",
"0.53281856",
"0.5325298",
"0.5295562",
"0.5286704",
"0.5274232",
"0.5266903",
"0.5264802",
"0.52643585",
"0.52627987",
"0.5260831",
"0.5247994",
"0.5247994",
"0.52307415",
"0.522864",
"0.52275205",
"0.52255994",
"0.5221915",
"0.52163094",
"0.52001345",
"0.517837",
"0.5177699",
"0.51738834",
"0.51636535",
"0.5162552",
"0.51603997",
"0.51602584",
"0.51592296",
"0.51562643",
"0.51562643",
"0.51493484",
"0.51492167",
"0.5133658",
"0.5132798",
"0.5130648",
"0.5124727",
"0.51173484",
"0.5113338",
"0.51127744"
]
| 0.74165004 | 0 |
Get the instance description. | public Element getDescription() {
Element instance = new Element("Instance", "");
instance.addAttribute(new Attribute("name", getName())); // Name
// State
if (m_state == ComponentInstance.STOPPED) {
instance.addAttribute(new Attribute("state", "stopped"));
}
if (m_state == ComponentInstance.VALID) {
instance.addAttribute(new Attribute("state", "valid"));
}
if (m_state == ComponentInstance.INVALID) {
instance.addAttribute(new Attribute("state", "invalid"));
}
if (m_state == ComponentInstance.DISPOSED) {
instance.addAttribute(new Attribute("state", "disposed"));
}
// Bundle
instance.addAttribute(new Attribute("bundle", Long.toString(m_bundleId)));
// Component Type
instance.addAttribute(new Attribute("component.type", m_type.getName()));
// Handlers
for (int i = 0; i < m_handlers.length; i++) {
instance.addElement(m_handlers[i].getHandlerInfo());
}
// Created Object (empty is composite)
for (int i = 0; i < m_createdObjects.length; i++) {
Element obj = new Element("Object", "");
obj.addAttribute(new Attribute("name", ((Object) m_createdObjects[i]).toString()));
instance.addElement(obj);
}
// Contained instance (exposing architecture) (empty if primitive)
if (m_containedInstances.length > 0) {
Element inst = new Element("ContainedInstances", "");
for (int i = 0; i < m_containedInstances.length; i++) {
inst.addElement(m_containedInstances[i].getDescription());
instance.addElement(inst);
}
}
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.Object getDescription() {\n return description;\n }",
"public String getDescription() {\n if (description == null) {\n description = Description.getDescription(this);\n }\n return description;\n }",
"public String getDescription() {\n return this.Description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n\n return this.description;\n }",
"public String getDescription() {\r\n return this.description;\r\n }",
"public String getDescription() {\r\n return this.description;\r\n }",
"public String getDescription() {\n return _description;\n }",
"public String getDescription() {\n return _description;\n }",
"public String getDescription () {\n return description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\n return this.description;\n }",
"public String getDescription() {\r\n return _description;\r\n }",
"public java.lang.String getDescription() {\n return this._description;\n }",
"public java.lang.String getDescription()\n {\n return this._description;\n }",
"public String getDescription() {\n return desc;\n }",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription() {\r\n\t\treturn this.description;\r\n\t}",
"public String getDescription()\n {\n return this.description;\n }",
"public String getDescription() {\n\t\treturn this.description;\n\t}",
"public String getDescription() {\n return desc;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }",
"public String getDescription() {\n return description;\n }"
]
| [
"0.79736316",
"0.7912372",
"0.77597404",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.77352786",
"0.772587",
"0.77151483",
"0.77151483",
"0.7713198",
"0.7713198",
"0.76983786",
"0.76972264",
"0.76808333",
"0.76808333",
"0.76808333",
"0.7679085",
"0.7671533",
"0.7670422",
"0.76615816",
"0.76555365",
"0.7647618",
"0.7647618",
"0.7647618",
"0.7647618",
"0.7647618",
"0.7645513",
"0.7645482",
"0.7636148",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634",
"0.7633634"
]
| 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 ItemCotizacion)) {
return false;
}
ItemCotizacion other = (ItemCotizacion) object;
if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public int getId(){ return id; }",
"public int getId() {return id;}",
"public int getId() {return Id;}",
"public int getId(){return id;}",
"public void setId(long id) {\n id_ = id;\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public Integer getId(){return id;}",
"public int id() {return id;}",
"public long getId(){return this.id;}",
"public int getId(){\r\n return this.id;\r\n }",
"@Override public String getID() { return id;}",
"public Long id() { return this.id; }",
"public Integer getId() { return id; }",
"@Override\n\tpublic Integer getId() {\n return id;\n }",
"@Override\n public Long getId () {\n return id;\n }",
"@Override\n public long getId() {\n return id;\n }",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public String getId(){return id;}",
"@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}",
"public Integer getId() { return this.id; }",
"@Override\r\n public int getId() {\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"public int getId() {\n return id;\n }",
"public long getId() { return _id; }",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public long getId() { return id; }",
"public long getId() { return id; }",
"public void setId(Long id) \n {\n this.id = id;\n }",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}",
"public void setId(String id) {\n this.id = id;\n }",
"@Override\n\tpublic void setId(Long id) {\n\t}",
"public Long getId() {\n return id;\n }",
"public long getId() { return this.id; }",
"public int getId()\n {\n return id;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}",
"protected abstract String getId();",
"@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public int getId ()\r\n {\r\n return id;\r\n }",
"@Override\n public int getField(int id) {\n return 0;\n }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"public int getId(){\r\n return localId;\r\n }",
"void setId(int id) {\n this.id = id;\n }",
"@Override\n public Integer getId() {\n return id;\n }",
"@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"@Override\n public int getId() {\n return id;\n }",
"@Override\n public int getId() {\n return id;\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }",
"@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}",
"public int getId()\r\n {\r\n return id;\r\n }",
"public void setId(Long id){\n this.id = id;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"private void clearId() {\n \n id_ = 0;\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public abstract Long getId();",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"@Override\n public long getId() {\n return this.id;\n }",
"public String getId(){ return id.get(); }",
"@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public Long getId() \n {\n return id;\n }",
"@Override\n\tpublic void setId(int id) {\n\n\t}",
"public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }",
"@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}",
"public int getID(){\n return id;\n }",
"public int getId()\n {\n return id;\n }",
"public String getID(){\n return Id;\n }"
]
| [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.6477893",
"0.6426692",
"0.6418966",
"0.6416817",
"0.6401561",
"0.63664836",
"0.63549376",
"0.63515353",
"0.6347672",
"0.6324549",
"0.6319196",
"0.6301484",
"0.62935394",
"0.62935394",
"0.62832105",
"0.62710917",
"0.62661785",
"0.6265274",
"0.6261401",
"0.6259253",
"0.62559646",
"0.6251244",
"0.6247282",
"0.6247282",
"0.6245526",
"0.6238957",
"0.6238957",
"0.6232451",
"0.62247443",
"0.6220427",
"0.6219304",
"0.6211484",
"0.620991",
"0.62023336",
"0.62010616",
"0.6192621",
"0.61895776",
"0.61895776",
"0.61893976",
"0.61893976",
"0.61893976",
"0.6184292",
"0.618331",
"0.61754644",
"0.6173718",
"0.6168409",
"0.6166131",
"0.6161708",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.6157667",
"0.61556244",
"0.61556244",
"0.61430943",
"0.61340135",
"0.6128617",
"0.6127841",
"0.61065215",
"0.61043483",
"0.61043483",
"0.6103568",
"0.61028486",
"0.61017346",
"0.6101399",
"0.6098963",
"0.6094214",
"0.6094",
"0.6093529",
"0.6093529",
"0.6091623",
"0.60896",
"0.6076881",
"0.60723215",
"0.6071593",
"0.6070138",
"0.6069936",
"0.6069529"
]
| 0.0 | -1 |
Returns the prompt counts in each campaign_prompt_group | @Override
public List<?> execute() {
try {
return _jdbcTemplate.query(_sql, new RowMapper() {
public Object mapRow(ResultSet rs, int rowNum) throws SQLException {
int campaignId = rs.getInt(1);
int groupId = rs.getInt(2);
int count = rs.getInt(3);
return new CampaignPromptGroupItemCount(campaignId, groupId, count);
}
});
} catch (org.springframework.dao.DataAccessException dae) {
_logger.error("an exception occurred running the sql '" + _sql + "' " + dae.getMessage());
throw new DataAccessException(dae);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int promptNumPlayers() {\r\n Object[] options = {1, 2, 3, 4};\r\n int numPlr = (int) JOptionPane.showInputDialog(\r\n null,\r\n \"How many people are playing?\",\r\n \"Welcome!\",\r\n JOptionPane.PLAIN_MESSAGE,\r\n null,\r\n options,\r\n 1);\r\n\r\n players = new Player[numPlr];\r\n\r\n for (int i = 0; i < numPlr; i++) {\r\n players[i] = new Player();\r\n }\r\n\r\n return numPlr;\r\n }",
"int getResponsesCount();",
"int getGroupCount();",
"int getConditionalResponsesCount();",
"int getParticipantsCount();",
"int getParticipantsCount();",
"public void numberOfChoices() {\n\t\tcommon.waitForElement(mcqChoices, 60);\n\t\tchoicesinMCQ = mcqChoices.getText();\n\t\tarr = choicesinMCQ.split(\"\\\\W+\");\n\t\tnumberOfChoicesinMCQ = arr[3];\n\t\tlastOption = numberOfChoicesinMCQ.charAt(0);\n\t\tint a = 1;\n\t\tfor (char x = firstOption; x < lastOption; x++) {\n\t\t\tfirstOption += 1;\n\t\t\ta += 1;\n\t\t}\n\t\tfor (choice = 0; choice < a; choice++) {\n\t\t\tcommon.waitForElement(mcqChoices, 60);\n\t\t\tanswerChoice.get(choice).click();\n\t\t}\n\t\tchoice = 0;\n\t\ta = 1;\n\t\tfirstOption = 'A';\n\t}",
"public List getPrompts() {\n\t\tif (prompts == null) {\n\t\t\tprompts = new ArrayList();\n\t\t\tList nodes = doc.selectNodes(\"/metadataFieldInfo/field/prompts/prompt\");\n\t\t\tif (nodes != null) {\n\t\t\t\tfor (Iterator i = nodes.iterator(); i.hasNext();) {\n\t\t\t\t\tElement promptEl = (Element) i.next();\n\t\t\t\t\tprompts.add(promptEl.getTextTrim());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn prompts;\n\t}",
"List<PlayedQuestion> getPlayedQuestionsCount();",
"public static int countDifferentQuestionsAnsweredByAll (String group) {\n ArrayList<Character> answeredQuestions = new ArrayList<Character>();\n HashMap<Character, Integer> count = new HashMap<Character, Integer>();\n \n String[] people = group.split(\"\\n\");\n for (String person : people) {\n for (int i = 0; i < person.length(); i++) {\n char question = person.charAt(i);\n \n if (!answeredQuestions.contains(question)) {\n answeredQuestions.add(question);\n count.put(question, 1);\n } else {\n count.replace(question, answeredQuestions.get(question) + 1);\n }\n }\n }\n \n int sum = 0;\n for (int j = 0; j < answeredQuestions.size(); j++) {\n System.out.println(j + \"/\" + answeredQuestions.size());\n if (count.get(answeredQuestions.get(j)) == people.length) {\n sum++;\n }\n }\n \n return sum;\n }",
"private void printSelectionCountResults(){\n\t\tSystem.out.print(\"\\n\");\n\t\tfor(Character answer: q.getPossibleAnswers()){\n\t\t\tSystem.out.print(answer+\": \"+selections.get(q.getPossibleAnswers().indexOf(answer))+\"\\n\");\n\t\t}\n\t}",
"int getAndSequenceGroupsCount();",
"private void setPromptLabels()\n\t{\n\t\tpromptLabels = new JLabel[promptNum];\n\t\tpromptLabels[0] = new JLabel(\"Seconds To Next Person\");\n\t\tpromptLabels[1] = new JLabel(\"Average Seconds Per Eatery\");\n\t\tpromptLabels[2] = new JLabel(\"Average Seconds Per Cashier\");\n\t\tpromptLabels[3] = new JLabel(\"Seconds Before Person Leaves\");\n\t\tpromptLabels[4] = new JLabel(\"Number of Eateries\");\n\t\tpromptLabels[5] = new JLabel(\"Number of Cashiers\");\n\t}",
"int getExperiencesCount();",
"int getNumberOfAllQuestions();",
"private static int[] countLetters (String msg) {\n int[] counts = new int[26];\n for (char c : msg.toCharArray()) {\n char cuc = Character.toUpperCase(c);\n if (Character.isAlphabetic(cuc)) counts[ALPHABET.indexOf(cuc)]++;\n }\n \n return counts;\n }",
"private int inputNumPlayers() {\n\t\t\t// set up dialog box\n\t\t\tString[] options = {\"OK\"};\n\t\t\tJPanel panel = new JPanel(new GridLayout(0, 1));\n\t\t\tJLabel lbl = new JLabel(\"How many players? (2-6)\");\n\t\t\tJTextField txt = new JTextField(10);\n\t\t\tpanel.add(lbl);\n\t\t\tpanel.add(txt);\n\t\t\t\n\t\t\t// show dialog box\n\t\t\tJOptionPane.showOptionDialog(frame, panel, \"# Players\",\n\t\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options , options[0]);\n\t\t\tString numPlayersResponse = txt.getText();\n\t\t\t\n\t\t\t// determine input validity\n\t\t\tint numPlayers = 0;\n\t\t\ttry{\n\t\t\t\tnumPlayers = Integer.parseInt(numPlayersResponse);\n\t\t\t\t// check for out of bounds number\n\t\t\t\twhile(numPlayers < 2 || numPlayers > 6){\n\t\t\t\t\tpanel.remove(lbl);\n\t\t\t\t\ttxt.setText(\"\");\n\t\t\t\t\tlbl = new JLabel(\"Invalid number. Must be 2-6 players.\");\n\t\t\t\t\tpanel.add(lbl);\n\t\t\t\t\tJOptionPane.showOptionDialog(frame, panel, \"# Players\",\n\t\t\t\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options , options[0]);\n\t\t\t\t\tnumPlayersResponse = txt.getText();\n\t\t\t\t\tnumPlayers = Integer.parseInt(numPlayersResponse);\n\t\t\t\t}\n\t\t\t} catch(NumberFormatException e){\n\t\t\t\t// player entered nothing or a non-numeric string\n\t\t\t\treturn inputNumPlayers();\n\t\t\t}\n\t\t\treturn numPlayers;\n\t\t}",
"private void getNumPlayers() {\n\t\tSystem.out.println(\"How many people are playing? (must be between \"+MIN_PLAYERS+\" and \"+MAX_PLAYERS+\")\");\n\t\tnumPlayers = GetInput.getInstance().anInteger(MIN_PLAYERS, MAX_PLAYERS);\n\t}",
"@Query(\"select count(r) from Reply r group by r.comment\")\n\tCollection<Double> dashboardRepliesPerComment();",
"int getResumesCount();",
"public void NumberOfPlayers()\r\n {\r\n Input=JOptionPane.showInputDialog(\"Type the number of players\", JOptionPane.YES_NO_OPTION);\r\n \r\n SecondInput = JOptionPane.showInputDialog(\"How many of those \"+ Input +\" players will be AI ?\", JOptionPane.YES_NO_OPTION);\r\n \r\n while(Converter(SecondInput) >= Converter(Input))\r\n {\r\n if(Converter(SecondInput) >= Converter(Input))\r\n {\r\n JOptionPane.showMessageDialog(this,\"AI players can't be equal or more than the original number of players!\",\r\n \"ERROR\",\r\n JOptionPane.ERROR_MESSAGE);\r\n\r\n SecondInput = JOptionPane.showInputDialog(\"How many of those \"+ Input +\" players will be AI ?\", JOptionPane.YES_NO_OPTION);\r\n }\r\n \r\n }\r\n \r\n if(Input!=null)\r\n {\r\n int j = Converter(Input); \r\n \r\n Start();\r\n }\r\n \r\n }",
"int getMessageIdCount();",
"long getTotalAcceptCount();",
"int getAchievementsCount();",
"int getChannelStatisticsCount();",
"@Override\n\tpublic int getCsclPollsChoicesCount() {\n\t\treturn csclPollsChoicePersistence.countAll();\n\t}",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"@Override\n public long[] getGroupCount(TableUniqueName tableName, List<Set<ColNameExpr>> columnSetList)\n throws VerdictException {\n int setCount = 1;\n long[] groupCounts = new long[columnSetList.size()];\n List<String> countStringList = new ArrayList<>();\n for (Set<ColNameExpr> columnSet : columnSetList) {\n List<String> colStringList = new ArrayList<>();\n for (ColNameExpr col : columnSet) {\n String colString = String.format(\"COALESCE(CAST(%s as STRING), '%s')\",\n col.getCol(), NULL_STRING);\n colStringList.add(colString);\n }\n String concatString = \"\";\n for (int i = 0; i < colStringList.size(); ++i) {\n concatString += colStringList.get(i);\n if (i < colStringList.size() - 1) {\n concatString += \",\";\n }\n }\n String countString = String.format(\"COUNT(DISTINCT(CONCAT_WS(',', %s))) as cnt%d\",\n concatString, setCount++);\n countStringList.add(countString);\n }\n String sql = \"SELECT \";\n for (int i = 0; i < countStringList.size(); ++i) {\n sql += countStringList.get(i);\n if (i < countStringList.size() - 1) {\n sql += \", \";\n }\n }\n sql += String.format(\" FROM %s\", tableName);\n\n Dataset<Row> df = executeSpark2Query(sql);\n for (int i = 0; i < groupCounts.length; ++i) {\n groupCounts[i] = df.collectAsList().get(0).getLong(i);\n }\n return groupCounts;\n }",
"public String getCampaignLikesCounts() {\n return pollLikesCounts;\n }",
"private static String[] prompt(String prompt) {\n\t\tSystem.out.print(prompt);\n\t\tString line = scnr.nextLine();\n\t\tString []words = line.trim().split(\" \", 2);\n\t\treturn words;\n\t}",
"public String[] replyToChallenge(String name, String instruction, int numPrompts, String[] prompt,\r\n\t\t\tboolean[] echo) throws IOException\r\n\t{\r\n\t\tString[] result = new String[numPrompts];\r\n\r\n\t\tfor (int i = 0; i < numPrompts; i++)\r\n\t\t{\r\n\t\t\t/* Often, servers just send empty strings for \"name\" and \"instruction\" */\r\n\t\t\t\r\n\t\t\tresult[i] = listener.onInteraction(lastError, name, instruction, prompt[i], echo[i]);\r\n\r\n\t\t\tif (lastError != null) lastError = null; // show lastError only once\r\n\r\n\t\t\t/*if (result[i] == null)\r\n\t\t\t\tthrow new IOException(\"Login aborted by user\");*/\r\n\r\n\t\t\tpromptCount++;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public Integer getNumCompetitions() {\r\n return numCompetitions;\r\n }",
"int getRepromptEventHandlersCount();",
"private void showResults() {\n if (!sent) {\n if(checkAnswerOne()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerTwo()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerThree()) {\n nbOfCorrectAnswers++;\n }\n if(checkAnswerFour()) {\n nbOfCorrectAnswers++;\n }\n\n showResultAsToast(nbOfCorrectAnswers);\n\n } else {\n showResultAsToast(nbOfCorrectAnswers);\n }\n }",
"int getQuestCount();",
"public Integer getAnswerCount() {\n return answerCount;\n }",
"int getUserQuestJobsCount();",
"int getRequestedValuesCount();",
"public int printChoicesForShowtimes() {\n\t\tint i=0;\n\t\tint N = this.getDataLength();\n\t\twhile(i<N) {\n\t\t\tif (this.dataList.get(i).isComingSoon())\n\t\t\t\tbreak;\n\t\t\tSystem.out.println(i+\" : \"+this.dataList.get(i).toString());\n\t\t\t++i;\n\t\t}\n\t\t\n\t\treturn i;\n\t}",
"int getCiphersCount();",
"public int getNoOfPlayers()\r\n\t{\r\n\t\tString noOfPlayers = JOptionPane.showInputDialog(null, \"Please enter the number of players from 1-6\", \"Number of Players\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t//Check to see if the entry was invalid\r\n\t\twhile(!isNumber(noOfPlayers) || Integer.parseInt(noOfPlayers) < 1 || Integer.parseInt(noOfPlayers) > 6)\r\n\t\t{\r\n\t\t\tif(!isNumber(noOfPlayers))\r\n\t\t\t\tnoOfPlayers = JOptionPane.showInputDialog(null, \"You must enter a NUMBER. Please re-enter the number of players from 1-6\", \"NUMBER of Players\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\telse\r\n\t\t\t\tnoOfPlayers = JOptionPane.showInputDialog(null, \"Please re-enter the number of players from 1-6\", \"Players must be between 1 and 6\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t\t\r\n\t\treturn Integer.parseInt(noOfPlayers);\r\n\t}",
"public int getNumGuesses() {\n\t\treturn this.guessList.length;\n\t}",
"public int getNumberCandidatesPerMention() {\n return numberCandidatesPerMention;\n }",
"public int getParticipantsCount()\n {\n return participants.size();\n }",
"public int[] getDataMsgPerDay() {\n\t\tint[] result = new int[24];\n\t\tint it = 0;\n\t\tfor (LocalTime hour = LocalTime.now().with(LocalTime.MIN); hour\n\t\t\t\t.isBefore(LocalTime.now().with(LocalTime.MAX).minusHours(1)); hour = hour.plusHours(1)) {\n\t\t\tLocalTime hourOfDay = hour;\n\t\t\tcontador = 0;\n\t\t\tcurrentUser.getContacts().forEach(contact -> {\n\t\t\t\tcontador += contact.getMessages().stream()\n\t\t\t\t\t\t.filter(m -> (m.getTime().toLocalTime().getHour() == hourOfDay.getHour())\n\t\t\t\t\t\t\t\t&& (m.getSpeaker() == currentUser.getId()))\n\t\t\t\t\t\t.count();\n\t\t\t});\n\t\t\tresult[it] = contador;\n\t\t\tit++;\n\t\t}\n\t\treturn result;\n\t}",
"private Integer[] getNumberOfCards() {\n Integer[] numberOfCards = new Integer[players.length];\n\n for (int i = 0; i < players.length; i++) {\n numberOfCards[i] = players[i].getHand().length;\n }\n\n return numberOfCards;\n }",
"public int getTravelGroupListCount(Map conditions);",
"@Override\r\n public String[] getResult(){\n int max = Collections.max(user_input.values());\r\n //iterate the inputs and find the players who matches\r\n List<String> winners = new ArrayList<>();\r\n for (Entry<String, Integer> entry : user_input.entrySet()) {\r\n if (entry.getValue()==max) {\r\n winners.add(entry.getKey());\r\n }\r\n }\r\n return Arrays.copyOf(winners.toArray(), winners.size(), String[].class);\r\n }",
"int getAndConditionGroupsCount();",
"int getAchieveInfoCount();",
"int getStudentResponseCount();",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn grpcallinginfo.getCallingGroupMembersize();\n\t\t}",
"public Integer getRepeatedResponses() {\r\n return repeatedResponses;\r\n }",
"public static void printGroupByCountryCount(){\n for (CountryGroup group : query.groupByCountry()) {\n System.out.println(\"There are \" + group.people.size() + \" people in \" + group.country);\n }\n }",
"int getFHPackagesCount();",
"int getMessagesCount();",
"int getMessagesCount();",
"int getMessagesCount();",
"public static int GetNumberOfPlayers () {\n int result;\r\n\r\n // LOOP UNTIL A VALID NUMBER IS ENTERED\r\n do {\r\n // PROMPT THE USER\r\n System.out.print(\"Enter the number of players: \");\r\n\r\n // GET THE RESULT & MAKE SOME SPACE\r\n result = input.nextInt();\r\n input.nextLine();\r\n System.out.println();\r\n\r\n // MUST HAVE AT LEAST TWO PLAYERS\r\n if (result < 2) {\r\n System.out.println(\"You need at least two players!\\n\");\r\n }\r\n\r\n } while (result < 2);\r\n\r\n // RETURN THE RESULT\r\n return result;\r\n }",
"public int getResponsesCount() {\n if (responsesBuilder_ == null) {\n return responses_.size();\n } else {\n return responsesBuilder_.getCount();\n }\n }",
"public Prompt getPrompt() {\n return prompt;\n }",
"public int getTotalActivitySwitches() {\n return (int) neurons.stream().filter(n -> n.getValueRange() > 0).count();\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int cases = scanner.nextInt();\n\n for (int i = 0; i < cases; i++) {\n int contestants = scanner.nextInt();\n\n if (contestants <= 1) {\n System.out.println(contestants);\n continue;\n }\n\n int [] skillList = new int[contestants];\n\n for (int j = 0; j < contestants; j++) {\n skillList[j] = scanner.nextInt();\n }\n\n Arrays.sort(skillList);\n Map<Integer, Integer> skillLevelFrequency = new LinkedHashMap<Integer, Integer>();\n int skillLevel = skillList[0];\n int frequency = 1;\n\n for (int j = 1; j < contestants; j++) {\n if (skillLevel == skillList[j]) {\n frequency++;\n }\n else {\n skillLevelFrequency.put(skillLevel, frequency);\n skillLevel = skillList[j];\n frequency = 1;\n }\n }\n\n List<Integer> team = new ArrayList<Integer>();\n int minGroupSize = Integer.MAX_VALUE;\n }\n }",
"public int getExperiencesCount() {\n if (experiencesBuilder_ == null) {\n return experiences_.size();\n } else {\n return experiencesBuilder_.getCount();\n }\n }",
"protected abstract void fillPromptText();",
"int countByExample(MessageGroupExample example);",
"int getMsgCount();",
"int getMsgCount();",
"int getNumberOfQuestions();",
"int getExperimentsCount();",
"public String getPrompt() { return prompt; }",
"public int getConditionalResponsesCount() {\n return conditionalResponses_.size();\n }",
"public String getCclPromptPattern() {\n return cclPromptPattern;\n }",
"public int getResponsesCount() {\n return responses_.size();\n }",
"int getFeedItemSetsCount();",
"public int getParticipantsCount() {\n return participants_.size();\n }",
"public int getParticipantsCount() {\n return participants_.size();\n }",
"public List<Integer> askPlayerCardsToUse();",
"public int askHowManyUsers() {\r\n\t\tint userAmount = 0;\r\n\t\tboolean correctInput = false;\r\n\r\n\t\twhile (correctInput == false) {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\t\"How many players would like to participate in the game?\\nPlease type 1,2,3 or 4. If you type 1 a virtual user will automatically be created. Otherwise have fun playing with your human friends!\");\r\n\t\t\ttry {\r\n\t\t\t\tuserAmount = input.nextInt();\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tif (userAmount == 1 || userAmount == 2 || userAmount == 3 || userAmount == 4 || userAmount == 5) {\r\n\t\t\t\t\tcorrectInput = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (userAmount > 5) {\r\n\t\t\t\t\t\tSystem.out.println(\"Five players is the maximum!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (userAmount == 0) {\r\n\t\t\t\t\t\tSystem.out.println(\"At least one person should play!\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (InputMismatchException e) {\r\n\t\t\t\tSystem.out.println(\"Please type a number\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn userAmount;\r\n\t}",
"int getGrammarMatchCount();",
"private int getAnswersCount(int experiment, Configuration config) {\n return getAnswersCountWithoutWorker(experiment, -1, config);\n }",
"private int[] countClaimedChunks(ClaimProfile profile) {\n int[] counts = new int[] { 0, 0 };\n\n for (ChunkData claimedChunk : profile.getClaimedChunks()) {\n counts[claimedChunk.isGroupChunk() ? 0 : 1]++;\n }\n\n return counts;\n }",
"private int promptForPassengerNumbers() throws Exception {\n\t\tint numPassengers = 0;\n\t\tboolean validPassengerNumbers = false;\n\t\t\n\t\t// By pass user input validation.\n\t\tif (!testingWithValidation) {\n\t\t\treturn Integer.parseInt(console.nextLine());\n\t\t} \n\t\t\n\t\telse {\n\t\t\t\n\t\t\twhile (!validPassengerNumbers) {\n\t\t\t\tnumPassengers = Integer.parseInt(console.nextLine());\n\t\t\t\tString validId = application.isValidPassengerCapacity(numPassengers);\n\t\t\t\t\n\t\t\t\tif (validId.contains(\"Error:\")) {\n\t\t\t\t\tSystem.out.println(validId);\n\t\t\t\t\tSystem.out.println(\"Enter passenger capacity: \");\n\t\t\t\t\tSystem.out.println(\"(or hit ENTER to exit)\");\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\tvalidPassengerNumbers = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn numPassengers;\n\t\t}\n\t}",
"int getNewlyAvailableQuestsCount();",
"private void setPromptFields()\n\t{\n\t\tpromptFields = new JTextField[promptNum];\n\t\tfor(int i = 0; i < promptFields.length; i++)\n\t\t{\n\t\t\tpromptFields[i] = new JTextField(20);\n\t\t}\n\t}",
"public Integer getCollapsedAnswerCount() {\n return collapsedAnswerCount;\n }",
"Integer getNumQuestions();",
"public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }",
"public static void printPrompt(String array[]) {\n String choices[] = array;\n for (int x = 0; x < choices.length; x++) {\n if (x == 0) {\n System.out.println(choices[x]);\n } else {\n System.out.println(x + \" \" + choices[x]);\n }\n }\n }",
"public interface CardCounts {\n\n int[] FULL_SETS_CARD_COUNTS = {324, 162, 162, 180, 180, 180, 324, 180, 182, 54, 99, 189, 100, 129};\n\n int[] PREMIUM_SETS_CARD_COUNTS = {6, 11, 2, 7, 6, 18, 6, 6, 12, 12, 6, 20};\n\n int[] VIRTUAL_SETS_CARD_COUNTS = {146, 42, 15, 36, 58, 23, 14, 30, 59, 56, 47, 61, 6, 59, 22, 27, 49, 52, 32, 48, 10, 75};\n\n int[] VIRTUAL_PREMIUM_SETS_CARD_COUNTS = {8};\n\n int[] DREAM_CARD_SETS_CARD_COUNTS = {0};\n\n int[] PLAYTESTING_SETS_CARD_COUNTS = {200};\n\n int[] LEGACY_SETS_CARD_COUNTS = {999};\n}",
"int getPortPairGroupCount();",
"public static Long countActivities(){\n List<String> activities = distinctActivities();\n Long count = activities.stream().count();\n return count;\n }",
"private void countSelections(){\n\t\tfor(Student student: students){\n\t\t\tArrayList<Character> studentAnswers = student.getAnswers();\n\t\t\tSystem.out.print(\"student: \"+student.toString() + \"\\n\");\n\t\t\tfor(Character answer: studentAnswers){\n\t\t\t\tint timesSelected = selections.get(q.getPossibleAnswers().indexOf(answer));\n\t\t\t\tselections.set(q.getPossibleAnswers().indexOf(answer), timesSelected+1);\n\t\t\t}\n\t\t}\n\t}",
"public int getExperiencesCount() {\n return experiences_.size();\n }",
"int getCommandCount();",
"int getOptionsCount();"
]
| [
"0.5348707",
"0.5089634",
"0.5079494",
"0.50379044",
"0.50372314",
"0.50372314",
"0.5030014",
"0.50033116",
"0.49929088",
"0.49395594",
"0.48944572",
"0.48409274",
"0.4816939",
"0.48106852",
"0.47497305",
"0.47346532",
"0.47333437",
"0.47155574",
"0.4678383",
"0.46755156",
"0.4669099",
"0.46532667",
"0.4649063",
"0.4644883",
"0.46061042",
"0.46058726",
"0.45893878",
"0.45893878",
"0.45893878",
"0.45893878",
"0.45893878",
"0.45797345",
"0.4575004",
"0.45698777",
"0.45622596",
"0.45408",
"0.4536263",
"0.45345137",
"0.45337257",
"0.4500232",
"0.44882357",
"0.4481894",
"0.4473534",
"0.44730827",
"0.446715",
"0.4467024",
"0.44652477",
"0.44620112",
"0.44602504",
"0.44567427",
"0.4449576",
"0.4442667",
"0.4441844",
"0.44363984",
"0.4430538",
"0.44124165",
"0.4412145",
"0.4407602",
"0.44073343",
"0.44048348",
"0.4399101",
"0.4399101",
"0.4399101",
"0.43951103",
"0.43842232",
"0.43779892",
"0.4373063",
"0.4370568",
"0.43687877",
"0.43664324",
"0.43645853",
"0.43577522",
"0.43577522",
"0.4352815",
"0.43505996",
"0.43474475",
"0.4340286",
"0.43375415",
"0.43335205",
"0.43334475",
"0.433297",
"0.433297",
"0.43322766",
"0.4329081",
"0.43255264",
"0.43251103",
"0.43245274",
"0.43215162",
"0.43196896",
"0.43194026",
"0.43173698",
"0.43132383",
"0.43071118",
"0.43047222",
"0.4303333",
"0.42880785",
"0.4276062",
"0.42753586",
"0.42728245",
"0.42578506",
"0.4256475"
]
| 0.0 | -1 |
Needs to be overridden to be used as a key | @Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
CustomPair c = (CustomPair)o;
if (c.a == a && c.b == b)
return true;
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n default String getKey(){\n return key();\n }",
"abstract public String getKey();",
"@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}",
"@Override\n public String getKey() {\n return key;\n }",
"@Override\n protected final Object getKey()\n {\n return this;\n }",
"private void setKey() {\n\t\t \n\t}",
"@Override\n public int key() {\n return this.key;\n }",
"@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}",
"@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}",
"String newKey();",
"@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}",
"@Override\n public void key() {\n \n }",
"@Override\n public void setKey(byte[] key) {\n }",
"void setKey(K key);",
"String setKey(String newKey);",
"@Override\n public String getKey()\n {\n return id; \n }",
"@Override\n public int getKey() {\n return key_;\n }",
"public abstract String getRefKey();",
"@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn getKey() != null ? getKey().hashCode() : 0;\n\t}",
"@Override\n public int hashCode() {\n return key.hashCode();\n }",
"public abstract int getKeybind();",
"protected String getKey(String baseKey){\n \treturn getKey(baseKey, id);\n }",
"void setKey(String key);",
"@Override\r\n public K lowerKey(final K key) {\n return null;\r\n }",
"@Test public void keyDefinition() {\n fail( \"Not yet implemented\" );\n }",
"Object getKey();",
"public void setKey(int key){\r\n this.key = key; \r\n }",
"@Override\n public String toString(){\n return key;\n }",
"public java.lang.String getKey(){\n return localKey;\n }",
"@Override\n public int getKey() {\n return this.key;\n }",
"@Override\n public int hashCode() {\n return super.hashCode();\n }",
"@Override\n public int getKey() {\n return key_;\n }",
"@Override\n\t\t\tpublic boolean containsKey(Object key) {\n\t\t\t\treturn false;\n\t\t\t}",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"@Override\n public final int hashCode() {\n return super.hashCode();\n }",
"private void setKey(String key){\n\t\tthis.key=key;\n\t}",
"public Object getKey() { return name; }",
"@Override\n\t\t\t\t\tpublic Attribute handleMapKey(Element parent, FTypeRef src) {\n\t\t\t\t\t\treturn super.handleMapKey(parent, src);\n\t\t\t\t\t}",
"@Test\n\tpublic void hashCodeDifferentId() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setId(2);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}",
"@Override\r\n public int hashCode() {\r\n return super.hashCode();\r\n }",
"String key();",
"@Override\n\tprotected Map getKeyMethodMap() {\n\t\treturn null;\n\t}",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"@Test\n\tpublic void hashCodeDifferentSequenceNumber() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setSequenceNumber(2);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}",
"public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }",
"@Test\n\tpublic void hashCodeSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tAssert.assertEquals(key.hashCode(), key.hashCode());\n\t}",
"@Override\n public int hashCode() {\n return super.hashCode();\n }",
"@Override\n public int hashCode() {\n return super.hashCode();\n }",
"@Override\n public int hashCode() {\n return super.hashCode();\n }",
"@Override\n public int hashCode() {\n return super.hashCode();\n }",
"private void setKey(String key) {\n this.key = key;\n }",
"public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}",
"private NoValue(K key) {\n this.key = key;\n }",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }",
"@Override\n\t\tpublic K getKey() {\n\t\t\treturn k;\n\t\t}",
"@Test\n\tpublic void hashCodeSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tAssert.assertEquals(key1.hashCode(), key2.hashCode());\n\t}",
"public Sitedoc2SplaceKey() {\n\tsuper();\n}",
"XClass getMapKey();",
"@Override\n\tpublic boolean containsKey(Object key) {\n\t\treturn false;\n\t}",
"void setKey(java.lang.String key);",
"@Test\n public void testBackdoorModificationSameKey()\n {\n testBackdoorModificationSameKey(this);\n }",
"public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }",
"void setKey(int key);",
"@Override\n public int hashCode() {\n return 1;\n }",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}",
"@Override\r\n\tpublic int hashCode() {\n\t\treturn super.hashCode();\r\n\t}",
"private DataKeys(String pKey) {\n key = pKey;\n }",
"protected MapElement(long key) {\r\n super(key);\r\n }",
"public OwnMap() {\n super();\n keySet = new OwnSet();\n }",
"@Override\n public String toString() {\n return key;\n }",
"abstract public String getImageKey();",
"@Override\n public String toString() {\n return String.valueOf(key);\n }",
"@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }",
"private com.hps.july.persistence.SuperRegionKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.SuperRegionKey keyClass = new com.hps.july.persistence.SuperRegionKey();\n keyClass.supregid = f0;\n return keyClass;\n }",
"public K setKey(K key);"
]
| [
"0.7249212",
"0.7060323",
"0.70323616",
"0.70323616",
"0.69939965",
"0.69879174",
"0.69565445",
"0.6887688",
"0.66760963",
"0.66551125",
"0.66140103",
"0.6596695",
"0.65329635",
"0.6497596",
"0.638905",
"0.63607115",
"0.6355972",
"0.63454276",
"0.6339114",
"0.6333256",
"0.6312363",
"0.63100076",
"0.6289861",
"0.62836367",
"0.6267098",
"0.6257558",
"0.6250533",
"0.6245523",
"0.6243153",
"0.6237625",
"0.6231377",
"0.6224333",
"0.62224185",
"0.6215537",
"0.62115824",
"0.6209872",
"0.62079537",
"0.62079537",
"0.62079537",
"0.62079537",
"0.62079537",
"0.62079537",
"0.6197304",
"0.61971486",
"0.6190776",
"0.61836934",
"0.61780113",
"0.6177965",
"0.6171977",
"0.6165118",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.6161269",
"0.614947",
"0.6144924",
"0.61441886",
"0.61408967",
"0.6133105",
"0.6133105",
"0.6133105",
"0.6133105",
"0.6132979",
"0.61329347",
"0.61200655",
"0.6109728",
"0.6109728",
"0.6109728",
"0.6109728",
"0.6106942",
"0.6099771",
"0.6081326",
"0.6080451",
"0.60705245",
"0.60668486",
"0.60624385",
"0.60560447",
"0.6045417",
"0.60438776",
"0.6028337",
"0.60271657",
"0.60271657",
"0.60271657",
"0.60257155",
"0.6016352",
"0.6015863",
"0.6013821",
"0.60081005",
"0.60018003",
"0.6001753",
"0.5994773",
"0.59904325"
]
| 0.0 | -1 |
Needs to be overridden to be used as a key. I used a tutorial to come up with this | @Override
public int hashCode() {
int result = (int) (a ^ (a >>> 32));
result = 31 * result + (b != null ? b.hashCode() : 0);
result = 31 * result + (a != null ? a.hashCode() : 0);
result = 31 * result + (b != null ? b.hashCode() : 0);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n default String getKey(){\n return key();\n }",
"abstract public String getKey();",
"private void setKey() {\n\t\t \n\t}",
"String newKey();",
"@Override\n public void key() {\n \n }",
"@Override\n public String getKey() {\n return key;\n }",
"@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn null;\n\t}",
"@Test public void keyDefinition() {\n fail( \"Not yet implemented\" );\n }",
"String setKey(String newKey);",
"@Override\n protected final Object getKey()\n {\n return this;\n }",
"public abstract int getKeybind();",
"@Override\n public int key() {\n return this.key;\n }",
"void setKey(String key);",
"String key();",
"public void key(){\n }",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}",
"protected String getKey(String baseKey){\n \treturn getKey(baseKey, id);\n }",
"public void setKey(int key){\r\n this.key = key; \r\n }",
"public Sitedoc2SplaceKey() {\n\tsuper();\n}",
"void setKey(int key);",
"@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}",
"Object getKey();",
"@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}",
"private void setKey(String key){\n\t\tthis.key=key;\n\t}",
"void setKey(K key);",
"public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"@Override\n public void setKey(byte[] key) {\n }",
"public interface Key {\n\n String SHARE_KEY = \"userIndo\";//用户信息\n String SHARE_USER_ID = \"userId\";//用户账号\n\n}",
"void setKey(java.lang.String key);",
"private void setKey(String key) {\n this.key = key;\n }",
"public abstract String getRefKey();",
"abstract public String getImageKey();",
"@Override\n public String getKey()\n {\n return id; \n }",
"@Override\n public String toString(){\n return key;\n }",
"@Override\n\tpublic String getKey() {\n\t\t LiuLiang_Key = Util.getMaiYuanConfig(\"LiuLiang_Key\");\n\t\treturn LiuLiang_Key;\n\t}",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public java.lang.String getKey(){\n return localKey;\n }",
"@Test\n public void testBackdoorModificationSameKey()\n {\n testBackdoorModificationSameKey(this);\n }",
"public Object getKey() { return name; }",
"public FuncTestKey() {\n super();\n }",
"protected abstract String getScriptKey();",
"@Override\n public int getKey() {\n return key_;\n }",
"@Override\n\tpublic void updateKey() {\n\t\tkey = String.format(\"%s;%s;%s;%s;%s;%s;%s\", dim, x1, y1, z1, x2, y2, z2);\n\t}",
"@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}",
"XClass getMapKey();",
"public String getMinKey();",
"@Override\n\tpublic boolean containsKey(Object arg0) {\n\t\treturn false;\n\t}",
"@Test\n\tpublic void hashCodeSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tAssert.assertEquals(key1.hashCode(), key2.hashCode());\n\t}",
"public PIEBankPlatinumKey() {\n\tsuper();\n}",
"public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}",
"void setKey(final String key);",
"public MyKeyAdapter() {\r\n super();\r\n }",
"@Override\r\n public K lowerKey(final K key) {\n return null;\r\n }",
"protected String getKey(int index)\n/* */ {\n/* 1425 */ return null;\n/* */ }",
"String getLookupKey();",
"private DataKeys(String pKey) {\n key = pKey;\n }",
"void setKey(int i, int key);",
"int getKey();",
"int getKey();",
"@Override\n public void keyPressed(KeyEvent e) {\n \n \n }",
"@Override\n public int getKey() {\n return this.key;\n }",
"@Override\n public int getKey() {\n return key_;\n }",
"short getDefaultKeyIx();",
"public void setKey(int key);",
"public void setKey(int key);",
"private String getKey (String keyBase, Object field)\n\t{\n\t\treturn ((field == null) ? keyBase : (keyBase + \"_related\"));\t//NOI18N\n\t}",
"public interface SKey {\n\n String FAIL_STORE = \"job.fail.store\";\n\n String LOADBALANCE = \"loadbalance\";\n\n String EVENT_CENTER = \"event.center\";\n\n String REMOTING = \"lts.remoting\";\n\n String REMOTING_SERIALIZABLE_DFT = \"lts.remoting.serializable.default\";\n\n String ZK_CLIENT_KEY = \"zk.client\";\n\n String JOB_ID_GENERATOR = \"id.generator\";\n\n String JOB_LOGGER = \"job.logger\";\n\n String JOB_QUEUE = \"job.queue\";\n}",
"@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void Encrypt(Object key) {\n\n\t}",
"@Test\n\tpublic void hashCodeSameObject() {\n\t\tProductScanImageURIKey key = this.getDefaultKey();\n\t\tAssert.assertEquals(key.hashCode(), key.hashCode());\n\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"protected void setKey(String key) {\r\n this.key = key;\r\n }",
"default String getKey() {\n return key(getClassName(), getName());\n }",
"public interface Keys {\n String VIEW_PAGER_INDEX = \"view_pager_index\";\n String LOCAL_MUSIC_POSITION = \"local_music_position\";\n String LOCAL_MUSIC_OFFSET = \"local_music_offset\";\n String PLAYLIST_POSITION = \"playlist_position\";\n String PLAYLIST_OFFSET = \"playlist_offset\";\n}"
]
| [
"0.70007443",
"0.6788944",
"0.67846835",
"0.66283447",
"0.6542637",
"0.6530388",
"0.6526644",
"0.6526644",
"0.64968854",
"0.6322872",
"0.6289384",
"0.62783456",
"0.6255026",
"0.6235916",
"0.6235733",
"0.6175737",
"0.61631817",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6160104",
"0.6143978",
"0.6129535",
"0.6119111",
"0.61169136",
"0.6104405",
"0.6098429",
"0.6085704",
"0.6067302",
"0.6056572",
"0.6043183",
"0.6031225",
"0.60100245",
"0.60100245",
"0.60100245",
"0.60100245",
"0.60100245",
"0.60100245",
"0.6002568",
"0.5998645",
"0.59946537",
"0.5984196",
"0.5972315",
"0.59646213",
"0.59522945",
"0.5939197",
"0.59343606",
"0.5934185",
"0.5934185",
"0.5934185",
"0.5934185",
"0.5898774",
"0.5896292",
"0.58952844",
"0.58727425",
"0.586294",
"0.585476",
"0.5854408",
"0.585429",
"0.58399224",
"0.58358675",
"0.58281547",
"0.5813682",
"0.57865167",
"0.5773773",
"0.57700795",
"0.57656616",
"0.57653147",
"0.57644343",
"0.57636046",
"0.57523024",
"0.5747174",
"0.57471097",
"0.57471097",
"0.574684",
"0.5746389",
"0.5739547",
"0.57368994",
"0.5734714",
"0.5734714",
"0.5724544",
"0.5719825",
"0.57146823",
"0.57146823",
"0.57146823",
"0.57146823",
"0.5711211",
"0.57104206",
"0.5700859",
"0.568335",
"0.56783235",
"0.56782794"
]
| 0.0 | -1 |
Checks the number for being a prime number | private static boolean isPrime(int n) {
if (n == 2)
return true;
if (n <= 1 || n % 2 == 0)
return false;
for (int i = 3; i <= Math.sqrt(n); i+=2) {
if (n % i == 0)
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean isPrime(int number){\n for(int divisor = 2; divisor <= number / 2; divisor++){\n if(number % divisor == 0){ // If true. number is not prime\n return false;\n }\n }\n return true; // Number is prime\n }",
"private static boolean isPrime(int number) {\n\n\t\tif (number <= NUMBER_ONE) {\n\t\t\treturn false; \n\t\t}\n\n\t\tfor (int i = NUMBER_TWO; i < number; i++) {\n\t\t\tif (number % i == NUMBER_ZERO) { \n\t\t\t\treturn false; \n\t\t\t}\n\t\t}\n\t\treturn true; \n\t}",
"static boolean isPrime(int number)\n {\n // Loop through and check if it is dividable with divisors\n for(int divisor = 2; divisor <= number / 2; divisor++)\n {\n if(number % divisor == 0)\n return false; // if it can be divided return false\n }\n\n return true; // if it cannot be divided return true\n }",
"public boolean isPrime()\r\n\t{\r\n\t\tif (currentNumber == 2 || currentNumber == 0)\r\n\t {\r\n\t \tprocessLastDigit();\r\n\t\t\treturn true;\r\n\t }\r\n\t\telse if (currentNumber % 2 == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n \r\n\t for (int factor = 3; factor <= Math.sqrt(currentNumber); factor += 2)\r\n\t {\r\n\t if(currentNumber % factor == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n\t }\r\n \tprocessLastDigit();\r\n\t return true;\r\n\t}",
"private boolean isPrime(int number) {\n if (number < 2) return false;\n if (number == 2) return true;\n if (number % 2 == 0) return false;\n for (int i = 3; i * i <= number; i += 2)\n if (number % i == 0) return false;\n return true;\n }",
"public static boolean isPrime(int number){\r\n\t\tfor (int i = 2; i<number; i++){\r\n\t\t\tif(number/i==0){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean isPrimeNumber(int number) {\n if (number < 2) return false;\n int sqrt = (int) Math.sqrt(number);\n for (int i = 2; i <= sqrt; i++) {\n if (number % i == 0) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isPrime(int number){\r\n\t\t//Start loop from too to exclude division by 1\r\n\t\tint i = 2;\r\n\t\twhile(i < number){\r\n\t\t\tif(number % i == 0){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private static boolean isPrimeNumber(double number) {\n\t\tif(number <= 0)\n\t\t\treturn false;\n\t\tif(number == 1)\n\t\t\treturn true;\n\t\t\t\n\t\tfor (double i = 2; i < number; i++) {\t\t\t\n\t\t\tif((number%i == 0))\n\t\t\t\treturn false;\t\t\t\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"private static boolean isPrime(final int number)\n {\n return number > 1 &&\n IntStream\n .range(2, number - 1)\n .noneMatch(new IntPredicate()\n {\n @Override\n public boolean test(final int value)\n {\n return number % value == 0;\n }\n });\n }",
"public static void primeCheck(int num){\n \n boolean divisible = false;\n for(int i = 2;i<num;i++){\n if(num%i==0&&num!=i){\n divisible = true;\n }\n }\n if(divisible==true){\n System.out.println(\"The number is not a prime.\");\n }\n else{\n System.out.println(\"The number is a prime.\");\n }\n }",
"static boolean isPrime(String number)\n {\n int num = Integer.valueOf(number);\n\n for(int i = 2; i * i <= num; i++)\n {\n if ((num % i) == 0)\n return false;\n }\n return num > 1 ? true : false;\n }",
"public static boolean isPrime(int number) {\n if (number <= 1) {\n return false;\n }\n for (int i = 2; i <=Math.sqrt(number); i++) {\n if (number % i == 0) {\n return false;\n }\n }\n return true;\n }",
"public boolean isPrime(int number) {\r\n for (int divisor = 2; divisor <= number / 2; divisor++) {\r\n if (number % divisor == 0) \r\n return false;\r\n }\r\n return true;\r\n }",
"public static boolean isPrime(int number) {\n for (int j = 2 ; j < number ; j++) {\n if (number % j == 0) {\n return false; // number is divisible so its not prime\n }\n }\n return true; // number is prime now\n }",
"public boolean isPrime(Integer number) {\n int end = number / 2;\n for(int i = 2; i <= end; i++)\n if(number % i == 0)\n return false;\n return true;\n }",
"private boolean isItPrime(int checkPrime) {\n\t\tint i;\n\t\t// We dont devide the number by itself or one\n\t\tfor (i = 2; i < checkPrime; i++) {\n\n\t\t\tif (checkPrime % i == 0) {\n\t\t\t\t// If there is no rest after modulus, the number is divisible\n\t\t\t\tSystem.out.println(\"\\nSorry, not a prime number\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\\nLooks like you found a prime buddy!\");\n\t\treturn true;\n\t}",
"public static boolean isPrime(int number) {\r\n\t\tif (number == 0 || number == 1) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tfor (int i = 2; i <= number / 2; i++) {\r\n\t\t\t\tif (number % i == 0) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}",
"public static boolean isPrime(int num){\n if(num<=1){\n return false;\n }\n for(int i=2;i<=(long)Math.sqrt(num) ; i++){\n if(num%i==0){\n return false;\n }\n }\n return true;\n }",
"private boolean isPrime(int x) {\n for (int i = 2; i <= x / i; i++) {\n if (x % i == 0) {\n return false;\n }\n }\n return true;\n }",
"private static boolean isPrime(int num) {\n\t\tfor(int divisor=2;divisor<=num/2;divisor++){\n\t\t\tif(num%divisor==0) return false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isPrimeNumber(int num) {\r\n\t\t\t\r\n\t\tif(num<=1) {\r\n\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=2;i<num;i++) {\r\n\t\t\t\r\n\t\t\tif(num%i==0) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t\t\r\n\t\t}",
"public static boolean isPrime(MyInteger number1){\r\n\t\tfor (int i = 2; i<number1.getInt(); i++){\r\n\t\t\tif(number1.getInt()/i==0){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isPrime(BigInteger number) {\n\n\t\tBigInteger one = new BigInteger(\"1\");\n\t\tBigInteger counter = one.add(one); //two\n\n\n\t\t//while counter < number\n\t\twhile(counter.compareTo(number) <0) {\n\t\t\tif(isDivisible(number, counter)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//increment the counter\n\t\t\tcounter = counter.add(one);\n\t\t}\n\n\t\treturn true;\n\t}",
"public static boolean isPrime(int number){\n\t\tboolean isPrime = true;\n\t\tif(number == 1){\n\t\t\tisPrime = true;\n\t\t\tSystem.out.println(number);\n\t\t}\n\t\t\n\t\tfor(int i= 2 ;i < number;i++ ){\n\t\t\tif(number % i == 0){\n\t\t\t\tisPrime = false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\treturn isPrime;\n\t}",
"private static boolean isPrime(int x) {\n if (x<=1)\n return false;\n else\n return !isDivisible(x, 2);\n }",
"static boolean isPrime(long num) {\n\t\tif(num==1)\n\t\t\treturn false;\n\t\tif(num==2 || num==3)\n\t\t\treturn true;\n\t\t\n\t\tif(num%2==0 || num%3==0)\n\t\t\treturn false;\n\t\t\n\t\tfor(int value=5; value*value<=num; value+=6)\n\t\t\tif(num%value==0 || num%(value+2)==0)\n\t\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean isPrime(int value){\n if (value == 0 || value == 1){\n return false;\n }\n // Check all numbers up to the square root of the number\n for (int i = 2; i*i < value+1; i++) {\n if (value % i == 0) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isPrime(int num) {\n\n if (num <= 1) {\n return false;\n }\n\n if (num == 2) {\n return true;\n }\n\n for (int i = 3; i < num; i++) {\n\n if (num % i == 0) {\n return false;\n }\n\n }\n\n return true;\n\n }",
"public static boolean isPrime(int num) {\n for (int i = 2; i < num; i++) {\r\n if (num % i == 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"private boolean determinePrime(int num) {\n int temp;\n boolean isPrime = true;\n \n if(num <= 1)\n {\n isPrime = false;\n }\n else\n {\n for(int i = 2;i<=num/2; i++)\n {\n //divide the number by i, get the remainder \n temp = num % i;\n \n //if remainder is 0, the number is not prime\n if(temp == 0)\n {\n isPrime = false;\n break;\n }\n }\n }\n \n return isPrime;\n }",
"private boolean isPrime(long num) {\n if (num < 2) // prime numbers are positive and above 1\n return false;\n long max = (long) sqrt(num); // get the rounded square root of the number to check for primality\n for (int j = 2; j <= max; j++) {\n if (num % j == 0) {\n return false; // not a prime number as is divisible\n }\n }\n return true; // optimus prime :-)\n }",
"public boolean primeCheck(Long n){\n\t\t//checks whether an int is prime or not.\n\t\t\n\t\t //check if n is a multiple of 2\n\t\t if (n%2==0) return false;\n\t\t //if not, then just check the odds\n\t\t for(int i=3;i*i<=n;i+=2) {\n\t\t if(n%i==0)\n\t\t return false;\n\t\t }\n\t\t \n\t\t return true;\n\t\t\n\t}",
"public static int is_prime(int num) {\n\t\t\n\t\t /* Initializes recursion */\n\t\treturn check_if_prime(num, firstprime);\n\t}",
"public static boolean isPrime(int x){ \n\t\t\n\t\tfor(int i = 2; i <= Math.sqrt(x); i++){\n\t\t\tif(x%i == 0){\n\t\t\t return false; \n\t\t\t}\n\t\t}\t\n\t\treturn true; \t\n\t}",
"public static boolean isPrime(int value) {\n /* counter keep track of number of modulo operation\n in prime number,the modulus returns 0 two times only\n 1.when it is devided by 1\n 2.when it is devided by it self \n */\n int counter = 0;\n // zero , one is not prime\n if (value == 0 || value == 1) {\n counter = 0;\n } else {\n // starting from 2,doing modulus operation\n for(int i = 2;i<=value;i++){\n if (value%i==0) {\n counter++;\n }\n }\n }\n // checking the counter,we done modulus starting from 2,so we don't have to consider 1st case\n // counter is one means the value is only devisible by it self(2nd case)\n if (counter==1) {\n return true;\n }\n // if the number is devisible by numbers other than one and the number it self,then it is not prime\n else{\n return false;\n } \n }",
"public boolean isPrime(int myNumber) {\n for (int i = 2; i < myNumber/2; i++) {\n if (myNumber % i == 0) {\n System.out.println(myNumber + \" can be divided by \" + i);\n return false;\n }\n }\n return true;\n }",
"public static boolean isPrime(int num)\n {\n //test for numbers less than 2 because they aren't prime\n if(num < 2)\n {\n return false;\n }\n //test to see if the number has factors\n for(int i = 2; i < num; i ++)\n {\n if(num % i == 0) \n return false;\n }\n \n return true;\n }",
"private boolean isprime(long i) {\n\t\t\n\t\tif(i<=2) \n\t\treturn true;\n\t\tfor(long n = 2;n< i;n++) {\n\t\t\tif(i%n ==0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private static boolean isPrime(long n) {\n\t\tboolean isPrime = true;\n\t\tif (n < 2) {\n\t\t\tisPrime = false;\n\t\t} else if (n == 2) {\n\t\t\tisPrime = true;\n\t\t} else if (n % 2l == 1) {\n\t\t\tisPrime = false;\n\t\t\tprimeLog.log(n + \" is divisible by 2\");\n\t\t}\n\t\t// Check n against all odd numbers greater than 2\n\t\tfor (int i = 3; isPrime && i * i <= n; i += 2) {\n\t\t\t// If n is divisible by i then n is not prime\n\t\t\tif (n % i == 0) {\n\t\t\t\tprimeLog.log(n + \" is divisible by \" + i);\n\t\t\t\tisPrime = false;\n\t\t\t}\n\t\t}\n\t\tglobalLog.appendToCurrent(\": \" + isPrime);\n\t\tglobalLog.stepOut();\n\t\tprimeLog.appendToCurrent(\": \" + isPrime);\n\t\treturn isPrime;\n\t}",
"public boolean isPrime(){\r\n\t\tfor (int i = 2; i<value; i++){\r\n\t\t\tif(value/i==0){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isPrime(int n) \n{ \n//base case \nif (n <= 1) \nreturn false; \n//loop executes from 2 to n-1 \nfor (int i = 2; i < n; i++) \nif (n % i == 0) \n//returns false if the condition returns true \nreturn false; \n//returns true if the condition returns false \nreturn true; \n}",
"public boolean isPrime(int number) {\n\n\t\t// Eliminate even numbers\n\t\tif (number % 2 == 0)\n\t\t\treturn false;\n\n\t\t// Check if its a multiple of odd numbers\n\t\tfor (int i = 3; i * i <= number; i += 2) {\n\n\t\t\tif (number % i == 0)\n\t\t\t\treturn false;\n\n\t\t}\n\n\t\t// If we make it here we know it is prime\n\t\treturn true;\n\n\t}",
"static boolean isPrime(int n)\n {\n if (n <= 1)\n return false;\n\n // Check if number is 2\n else if (n == 2)\n return true;\n\n // Check if n is a multiple of 2\n else if (n % 2 == 0)\n return false;\n\n // If not, then just check the odds\n for (int i = 3; i <= Math.sqrt(n); i += 2)\n {\n if (n % i == 0)\n return false;\n }\n return true;\n }",
"static boolean isPrime(int a){ //isPrime function evaluates if the int is prime takes int and returns boolean\n //logic:\n //a number is prime if no other number is divisible by it other than 1 and itself.\n //algorithim: modulos every number until n to see if is divisible and modulos == 0 \n //faster way: check everynumber up until half of the the number. ( int division will cut off the decimal ) since if it is double, it will also be divisible by 2\n //not, start the loop after 1 because 1 is neither prime nor composite\n if ( a == 1){\n System.out.println(\"Error: 1 is neither prime nor composite\");\n return false;\n }//end if\n for(int i = 2; i <= (a/2); i++){\n if(a % i == 0)//if the number is divisible by any number other than itself then it is not prime.\n return false;\n }//end for\n return true; //if the number succesfully passes through the loop then it is a prime number and return true\n \n }",
"public static boolean isPrime(int i) {\n\t\t\n\t\treturn false;\n\t}",
"private boolean isPrime(int n) {\r\n for (int divisor = 2; divisor < n; divisor++) {\r\n if (n % divisor == 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"private boolean isPrime(long n) {\n return BigInteger.valueOf(n).isProbablePrime(10);\n }",
"public static void primeNumber() {\n\t\tboolean isprimeNumber = false;\n\t\tSystem.out.println(\"prime numbers between 1 and 1000 are\");\n\n\t\tfor (int i = 2; i <1000; i++) {\n\t\tif(calculation(i)==true)\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\tprime++;\n\t\t}\n\t\t\n\t}\n\t\tSystem.out.println(prime+\" numbers are prime\");\n\t}",
"public boolean isAPrimeNumber(int x){\n for(int i = 1; i <= x;i++){\n\n //if the mod = 0 then it is a divisor\n if(x % i == 0) {\n\n //increment count\n count++;\n\n }\n //if count is greater than 2 we return true because prime numbers\n //Can only be divisble by 1 and itself\n if(count > 2){\n\n return false;\n }\n\n\n\n }\n\n //If the entire loop finishes then we return true\n return true;\n }",
"public int primetest(int primenumber){ // method tests if number is prime\n\t\tfor (int j=2; j < prime.size()+2; j++){\n\t\t\tif ((primenumber % prime.get(j-2)) == 0){\n \t \t\t\treturn 0;\n \t \t\t}\n \t\t}\n \t\tprime.add(prime.size(), primenumber);\n \t\treturn 1;\n\n\t}",
"public static boolean isPrime(int number) {\n\t\tboolean isPrime = true;\n\t\tfor (int testNum = 2; testNum <= number / 2.0; testNum++) {\n\t\t\tif (number % testNum == 0)\n\t\t\t\tisPrime = false;\n\t\t}\n\t\t\treturn isPrime;\n\t}",
"private static boolean isPrime(int n) {\n if (n%2==0) return false;\r\n //if not, then just check the odds\r\n for(int i=3;i*i<=n;i+=2) {\r\n if(n%i==0)\r\n return false;\r\n }\r\n return true;\r\n }",
"static boolean isPrime(long n) {\n long sqrt = (long)Math.sqrt((double)n);\n int idx = Collections.binarySearch(SMALL_PRIMES, sqrt);\n return !IntStream.range(0, idx > 0 ? idx + 1 : (-idx - 1))\n .mapToLong(SMALL_PRIMES::get)\n .anyMatch(p -> n % p == 0L);\n }",
"public static void Prime(int number)\n\t {\n\t \tboolean isPrime=true;\n\t \tfor(int i=2;i<=number/2;i++)\n\t \t{\n\t \tint temp;\n\t \t\n\t \ttemp=number%i;\n\t \tif(temp==0) \n\t \t{\n\t \t\tisPrime=false;\n\t \t\tFactorization(number); //Calling Factorization method\n\t \t\tbreak;\n\t \t\t\n\t \t}\n\t \t\n }\n\t \tif(isPrime)\n\t \t{\n\t \t\tSystem.out.println(\"Entered number is prime number\");\n\t\t \tcheck();\t\n\t \t}\n\t}",
"public static void checkPrime(int n ) {\n int i, m = 0, flag = 0;\n m = n / 2;\n\n\n if (n == 0 || n == 1) {\n System.out.println(n + \" is not a prime number\");\n } else {\n for (i = 2; i < 100; i++) {\n if (n % i == 0) {\n System.out.println(n + \" is not prime number\");\n flag = 1;\n break;\n }\n }\n\n if (flag == 0) {\n System.out.println(n + \"is a prime number\");\n }\n }\n }",
"public static boolean prime(long n) {\n\t\t\t//is n a multiple of 2?\n\t\t\tif (n == 1) return false;\n\t\t if (n % 2 == 0) return false;\n\t\t //if it isnt, check odd numbers\n\t\t for (int i = 3; i * i <= n; i += 2) {\n\t\t if(n % i == 0)\n\t\t return false;\n\t\t }\n\t\t return true; //n is prime\n\t\t}",
"public static boolean isPrime(int num) {\n\t\tdouble root = Math.sqrt(num);\n\t\tfor (int i = 2; i <= root; i++) {\n\t\t\tif(num % i == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isPrime( int n )\n {\n if( n == 2 || n == 3 )\n return true;\n\n if( n == 1 || n % 2 == 0 )\n return false;\n\n for( int i = 3; i * i <= n; i += 2 )\n if( n % i == 0 )\n return false;\n\n return true;\n }",
"static boolean checkIsPrime(int n) {\n for (int i = 2; i <= Math.sqrt(n); i++) {\n if (n % i == 0) {\n return false;\n }\n }\n return true;\n }",
"public boolean checkPrime(int n) {\n\t\tif (n <= 1) {\n\t\t\tSystem.out.println(\"Integer is not prime: \"+ n);\n\t\t\treturn false;\n\t\t}\n\t\tif (n == 2) {\n\t\t\tSystem.out.println(\"Integer is prime: \"+ n);\n\t\t\treturn true;\n\t\t}\n\t\tif (n % 2 == 0) {\n\t\t\tSystem.out.println(\"Integer is not prime: \"+ n);\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = 3; i <= Math.sqrt(n) + 1; i = i + 2) {\n\t\t\tif (n % i == 0) {\n\t\t\t\tSystem.out.println(\"Integer is not prime: \"+ n);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Integer is prime: \"+ n);\n\t\treturn true;\n\t}",
"public static boolean isPrime(int num) {\r\n\t\tassert num >= 2 : \"failed precondition. num must be >= 2. num: \" + num;\r\n\t\tfinal double LIMIT = Math.sqrt(num);\r\n\t\t//is Prime is set true if num is 2 or if num is odd number\r\n\t\tboolean isPrime = (num == 2) ? true : num % 2 != 0;\r\n\t\tint div = 3;\r\n\t\t//if isPrime is false ( which will happen for all even numbers ) this loop is not entered\r\n\t\t//all odd numbers greater than 2 will enter this loop and we will be in loop until \r\n\t\t//isPrime set to false because we found a factor or till we reach the LIMI i.e. sqrt and that point\r\n\t\t//we exit loop with truy and return that, if we exit before that we return with false\r\n\t\twhile(div <= LIMIT && isPrime) {\r\n\t\t\tisPrime = num % div != 0;\r\n\t\t\tdiv += 2;\r\n\t\t}\r\n\t\treturn isPrime;\r\n\t}",
"private static boolean isPrime(int n) {\n\t if(n == 2 || n == 3)\n\t return true;\n\n\t if(n == 1 || n % 2 == 0)\n\t return false;\n\n\t for (int i = 3; i * i <= n; i += 2) {\n\t if (n % i == 0)\n\t return false;\n\t }\n\t return true;\n\t }",
"static boolean isPrime(long n)\n {\n // Corner cases\n if (n <= 1)\n return false;\n if (n <= 3)\n return true;\n \n // This is checked so that we can skip\n // middle five numbers in below loop\n if (n % 2 == 0 || n % 3 == 0)\n return false;\n \n for (int i = 5; i * i <= n; i = i + 6)\n if (n % i == 0 || n % (i + 2) == 0)\n return false;\n \n return true;\n }",
"public void primeNumber(int a)\n { boolean result = false;\n int i;\n if(a!=1)\n {\n for( i=2;i<a;i++)\n {\n if(a%i==0)\n {\n break;\n }\n\n }\n if(a==i)\n {\n System.out.println(i);\n result=true;\n }\n }\n }",
"private static boolean isPrimeLambda(int number) {\t\t\n\t\treturn number > 1 && IntStream.range(2, number).noneMatch(index -> number % index == 0);\n\t}",
"public static boolean isPrime(MyInteger n1){\n return n1.isPrime();\n }",
"public static boolean is_prime(long n){\n if(n == 1) return false;\n if(n == 2) return true;\n if(n % 2 == 0) return false;\n else{\n long sqrt = (long)Math.sqrt(n);\n boolean result = true;\n for(long i = 2; i <= sqrt; i++)\n if(n % i == 0)\n return false;\n }\n return true;\n }",
"public static boolean isPrime(BigInteger number){\r\n\t\tBigInteger two = new BigInteger(\"2\");\r\n\t\tBigInteger border = number.divide(two);\r\n\t\tBigInteger start;\r\n\t\t\r\n\t\tfor (start = two; start.compareTo(border) <= 0; start = start.add(BigInteger.ONE)){\r\n\t\t\tif (number.remainder(start).equals(BigInteger.ZERO)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public static boolean isPrime(int n)\n {\n for(int i = 1; i < n/2; i++)\n {\n if(n%i == 0)\n return false;\n }\n return true;\n }",
"private static boolean isPrime(int i) {\n\t\tif(i == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor (int j = 2; j <= i / 2; j++) {\n\t\t\tif (i % j == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public void isPrime(int num)\r\n\t{\r\n\t\tboolean check;\r\n\t\tcheck=checkNumber(num);\r\n\t\tif(check)\r\n\t\t System.out.printf(\"%s\",toString());\r\n\t\telse\r\n\t\t\tSystem.out.printf(\"%d is not prime\",number);\r\n\t\t\t \r\n\t\t\t\r\n\t\t\t\r\n\t}",
"public static boolean calculation(int number) \n\t{\n\t\tboolean isPrime=false;\n\t\tint counter = 0;\n\t\tfor (int i=1; i <=number; i++) {\n\t\t\t\n\t\t\tif (number % i == 0) {\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\t\tif(counter==2)\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\treturn isPrime;\n\t}",
"public boolean isPrime()\n\t{\n\t\treturn isPrime(value);\n\t}",
"public static boolean isPrime(int n) {\n\t\tif (n <= 1) {\n\t\treturn false;\n\t\t}\n\t\tint numberOfDivisor = 0;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\tif (n % i == 0) {\n\t\tnumberOfDivisor++;\n\t\t}\n\t\t}\n\t\t// Divisor is only 1 and itself.\n\t\treturn numberOfDivisor == 2;\n\t\t}",
"private static boolean isPrime(int n) {\n\t\t//check if n is less than 2\n\t\tif (n<2) return false;\n\t\t//check if n is equal 2\n\t\tif (n==2) return true;\n\t\t//check if n is a multiple of 2\n\t\tif (n%2==0) return false;\n\t\t//if not, then just check the odds\n\t\tfor(int i=3;i*i<=n;i+=2) {\n\t\t\tif(n%i==0)\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static int check_if_prime(int num, int i) {\n\t\tif (num < firstprime)\n\t\t\treturn 0; \t\t\n\t\t\n\t\t// stop condition: didn't find divisors other than self and one\n\t\telse if (i > num - 1)\n\t\t\treturn 1; \t\t\n\t\t\n\t\t// stop condition: return since found a divisor\n\t\telse if (num % i == 0)\n\t\t\treturn 0; \t\t\n\t\t\n\t\t/* Continues recursion */\n\t\treturn check_if_prime(num, i + 1); \n\t}",
"private static boolean isPrime(int n) {\n\t\t\n\t\tif (n <= 1) return false;\n\t\tfor (int i = 2; i * i <= n; i++) {\n\t\t\tif (n % i == 0) return false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public static boolean isPrime(int n) {\n for(int i=2;i<n;i++) {\n if(n%i==0)\n return false;\n }\n return true;\n }",
"public static boolean isPrime(MyInteger value)\n\t{\n\t\treturn isPrime(value.getValue());\n\t}",
"public static boolean isPrimeNumber(int num) {\n\t\t//edge/corner condition\n\t\twhile(num<=1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor(int i=2;i<num;i++) {\n\t\t\tif(num%i==0)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isPrime(final long n){\n if (n<=0){\r\n throw new IllegalArgumentException(\"Error in n: can't procces negative numbers.\");\r\n }\r\n if (n == 1){\r\n return false;\r\n }\r\n\r\n // Testing for all numbers\r\n for (long i = 2; i < n; i++) {\r\n if (n%i == 0){\r\n return false;\r\n }\r\n }\r\n //TODO: probando el TODO\r\n return true;\r\n\r\n }",
"public boolean isPrime(int n) {\r\n //check if n is a multiple of 2\r\n if (n % 2 == 0) return false;\r\n //if not, then just check the odds\r\n for (int i = 3; i * i <= n; i += 2) {\r\n if (n % i == 0)\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean isPrime()\n\t{\n\t\treturn ! exactDivision;\n\t}",
"private static boolean isPrime( int n )\n\t{\n\t\tif( n == 2 || n == 3 )\n\t\t\treturn true;\n\n\t\tif( n == 1 || n % 2 == 0 )\n\t\t\treturn false;\n\n\t\tfor( int i = 3; i * i <= n; i += 2 )\n\t\t\tif( n % i == 0 )\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"public static boolean isPrime(int x) {\n boolean isPrime = false;\n if (x > 1) {\n isPrime = true;\n for (int i = 2; i <= x / 2; ++i) {\n if (x % i == 0) {\n isPrime = false;\n break;\n }\n }\n }\n return isPrime;\n }",
"public static boolean isPrime(int num) {\n boolean flag = false;\n if(num>=2) {\n for (int i = 2; i <= num / 2; ++i) {\n // condition for nonprime number\n if (num % i == 0) {\n flag = true;\n break;\n }\n }\n } else return false;\n\n return !flag;\n }",
"public static boolean isPrime(int n) {\n\t if (n%2==0) return false;\n\t //if not, then just check the odds\n\t for(int i=3;i*i<=n;i+=2) {\n\t if(n%i==0)\n\t return false;\n\t }\n\t return true;\n\t}",
"private static boolean isPrime(final int n)\n\t{\n\t\tif ((n == 2) || (n == 3))\n\t\t\treturn true;\n\n\t\tif ((n == 1) || ((n & 1) == 0))\n\t\t\treturn false;\n\n\t\tfor (int a = 3; a * a <= n; a += 2)\n\t\t\tif ((n % a) == 0)\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"private static boolean isPrime(int n) {\n\t\tif (n == 2 || n == 3)\n\t\t\treturn true;\n\n\t\tif (n == 1 || n % 2 == 0)\n\t\t\treturn false;\n\n\t\tfor (int i = 3; i * i <= n; i += 2)\n\t\t\tif (n % i == 0)\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"private static boolean isPrime(long n)\r\n {\r\n //Variable that will be returned, by default true\r\n boolean prime = true;\r\n //Start at 3 and increment by 2\r\n for(int i = 3;i<n/2;i=i+2)\r\n {\r\n //If the remainder of the division of n by i is 0, return prime as false \r\n if(n%i==0)\r\n {\r\n prime = false;\r\n return prime;\r\n }\r\n }\r\n //return the default value if the program gets to here\r\n return prime;\r\n }",
"private boolean isPrime(int n) {\n\t\tif (n == 1 || n == 2)\n\t\t\treturn true;\n\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tif (n % i == 0)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isPrime() {\n boolean isPrime = true;\n for (int i = 2; i < value; i++) {\n if (value % i == 0) {\n isPrime = false;\n }\n }\n return isPrime;\n }",
"protected static boolean isPrime(int n )\r\n\t{\r\n\t\tif( n == 2 || n == 3 )\r\n\t\t\treturn true;\r\n\t\tif( n == 1 || n % 2 == 0 )\r\n\t\t\treturn false;\r\n\t\tfor( int i = 3; i * i <= n; i += 2 )\r\n\t\t\tif( n % i == 0 )\r\n\t\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"public boolean isPrime(int n) {\n\t\tif (n % 2 == 0)\r\n\t\t\treturn false;\r\n\t\t// if not, then just check the odds\r\n\t\tfor (int i = 3; i * i <= n; i += 2) {\r\n\t\t\tif (n % i == 0)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public Boolean isPrime(int n) {\n if (n == 2) {\n return false;\n }\n if (n == 3) {\n return true;\n }\n if (n%2 == 0) {\n return false;\n }\n if (n%3 == 0) {\n return false;\n }\n\n int a = 5;\n int b = 2;\n\n while (a*a <= n) {\n if (n%a == 0) {\n return false;\n }\n a += b;\n b = 6 - b;\n }\n return true;\n }",
"private static boolean checkPrime(int size){\n boolean prime = true;\n //if can divide by two then it is not prime\n if (size%2==0) prime = false;\n //if not, then just check the odds as all even numbers are divisible by 2\n for(int i = 3; i*i <= size; i += 2) {\n if(size % i == 0)\n prime = false;\n }\n return prime;\n }",
"public static boolean isPrime(int n) {\n\n if(n == 1) { // if int n is the number 1 it cannot be prime by definition\n return false; // hence return false\n }\n\n for (int l = 2; l <= n/2; l++) { // set i = to 2 because we know 1 goes into every prime,\n if (n % l == 0) { // then increment i because you only want to test if numbers go into n up to half the value of n.\n return false; // i.e., after checking if 50 goes into 100, you don't need to keep checking beyond 50\n } // if a number is even it's not prime except 2\n } // keep incrementing i and see if larger and larger numbers divide evenly into n\n // if they do, return false, because it's not prime\n return true; // otherwise, return 2\n // anytime loop is exited, we know it's prime\n }",
"public static PerformOperation isPrime() {\n return (num) -> {\n if (num < 2) { return false; }\n if (num == 2) { return true; }\n if (num % 2 == 0) { return false; }\n if (num < 9) { return true; }\n\n int max = (int) Math.sqrt(num);\n for (int i = 3; i <= max; i+=2) {\n if (num % i == 0) { return false; };\n }\n return true;\n };\n }",
"public static boolean isPrime(int n) {\r\n\t\tint c = 0;\r\n\t\tfor (int i = n; i >= 1; i--) {\r\n\t\t\tif (n % i == 0) {\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// returns true if number is prime\r\n\t\tif (c == 2) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}"
]
| [
"0.81174225",
"0.811161",
"0.80594605",
"0.80132645",
"0.8002805",
"0.79299325",
"0.7915492",
"0.7891341",
"0.78613335",
"0.78314775",
"0.78282493",
"0.7767527",
"0.7763246",
"0.77612245",
"0.775088",
"0.77484137",
"0.7740494",
"0.7710587",
"0.7710073",
"0.7619709",
"0.7618804",
"0.76141214",
"0.7607866",
"0.7605216",
"0.7601926",
"0.7574507",
"0.7572947",
"0.75699735",
"0.7557315",
"0.75527906",
"0.7546927",
"0.7545337",
"0.75394696",
"0.7512094",
"0.7504177",
"0.75024277",
"0.7486126",
"0.7465517",
"0.74599165",
"0.74471414",
"0.74402684",
"0.7440154",
"0.74383944",
"0.7417633",
"0.7408452",
"0.7403877",
"0.73836845",
"0.73803574",
"0.7378949",
"0.73787516",
"0.73721117",
"0.736879",
"0.7361161",
"0.7358498",
"0.73557127",
"0.73389226",
"0.73324245",
"0.7332036",
"0.7318007",
"0.72961813",
"0.7292907",
"0.72891605",
"0.7279387",
"0.72689235",
"0.7265862",
"0.7260921",
"0.7258955",
"0.72584975",
"0.7241412",
"0.72377527",
"0.7233918",
"0.72173554",
"0.7216796",
"0.7207292",
"0.7203239",
"0.7198763",
"0.7195341",
"0.71950626",
"0.7193252",
"0.7189053",
"0.7187733",
"0.71819997",
"0.71763605",
"0.71729445",
"0.7171524",
"0.7160162",
"0.71525013",
"0.7124709",
"0.7104329",
"0.7096426",
"0.7095587",
"0.708493",
"0.70799214",
"0.7079648",
"0.70795035",
"0.70792097",
"0.7072588",
"0.707024",
"0.7062928",
"0.70587456"
]
| 0.7250085 | 68 |
map would not have been necessary but I used it to keep track of iterated places. Not good to keep here but due to time I will just keep it. | public static void main(String[] args) {
int[][] map = new int[N][N];
// 1D to 2D index map
CustomPair[] indToVal = new CustomPair[(N * N) + 1];
// 2D to value map
Map<CustomPair, Integer> gridToValue = new HashMap<>();
// Direction to start
Direction dir = Direction.RIGHT;
int j = 1;
int y = N / 2;
// shift left for even n's
int x = (N % 2 == 0) ? y - 1 : y;
/**
* We use y, x here because the grid is sort of turned around.
* */
while(j <= ((N * N))) {
CustomPair currentIndex = new CustomPair(y, x);
// if the number is not prime it is traversable
if (!isPrime(j)) {
map[y][x] = 1;
gridToValue.put(currentIndex, j);
} else {
map[y][x] = -1;
}
// add the value to 1d to 2d index values
indToVal[j] = currentIndex;
switch(dir){
case RIGHT:
if(x <= (N - 1) && map[y - 1][x] == 0 && j > 1)
dir = Direction.UP;
break;
case UP:
if(map[y][x - 1] == 0)
dir = Direction.LEFT;
break;
case LEFT:
if(x == 0 || map[y + 1][x] == 0)
dir = Direction.DOWN;
break;
case DOWN:
if(map[y][x + 1] == 0)
dir = Direction.RIGHT;
break;
}
// update the grid index
switch(dir){
case RIGHT:
x++;
break;
case UP:
y--;
break;
case LEFT:
x--;
break;
case DOWN:
y++;
break;
}
// update 1D index
j++;
}
Scanner sc = new Scanner(System.in);
int caseNum = 1;
while (sc.hasNextInt()) {
int start = sc.nextInt();
int goal = sc.nextInt();
// find the shortest path
Queue<CustomPair> q = new LinkedList<>();
// 2D grid to distance values
Map<CustomPair, Integer> distMap = new HashMap<>();
// start is 0
distMap.put(indToVal[start], 0);
q.add(indToVal[start]);
while (!q.isEmpty()) {
CustomPair cur = q.remove();
// for each neighbour (4 potential moves)
for (int i = 0; i < 4; i++) {
int nx = cur.a + X_NEIG_INDEX[i];
int ny = cur.b + Y_NEIG_INDEX[i];
CustomPair neighP = new CustomPair(nx, ny);
// if the value is not in the grid
if (!gridToValue.containsKey(neighP))
continue;
// if the value is already visited
if (distMap.containsKey(neighP))
continue;
distMap.put(neighP, distMap.get(cur) + 1);
q.add(neighP);
}
}
// print for Kattis reasons
String msg = "Case " + caseNum + ": ";
if (!distMap.containsKey(indToVal[goal]) ||
distMap.getOrDefault(indToVal[goal], -1) == -1 && start != goal)
System.out.println(msg + " impossible");
else
System.out.println(msg + "" + distMap.get(indToVal[goal]));
caseNum++;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void processTilesetMap() {\r\n for (int t = 0; t < this.getTileSetCount(); t++) {\r\n TileSet tileSet = this.getTileSet(t);\r\n this.tilesetNameToIDMap.put(tileSet.name, t);\r\n }\r\n }",
"private void placesInit()\n {\n\n for(Map.Entry<String,Place> placeEntry: placesMap.entrySet())\n {\n addPlace(placeEntry.getKey(),placeEntry.getValue());\n }\n\n }",
"Iterator<BoardPosition> possibleMovingPositions(BoardPosition from, Game game, Map<BoardPosition, Piece> pieceMap);",
"protected abstract void getAllUniformLocations();",
"public void doScan() {\n\t\tSystemMapObject[] results = scan();\r\n\t\t// add to its current map.\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\tupdateMowerCords();\r\n\t\t// NorthWest\r\n\t\tif (y + 1 >= this.map.size()) {\r\n\t\t\tthis.map.add(new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(y + 1).add(0, results[7]);\r\n\t\t} else if (x - 1 <= 0) {\r\n\t\t\tthis.map.get(y + 1).add(x, results[7]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x - 1, results[7]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// West\r\n\t\tif (this.map.get(y).size() < 2) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else if (x - 1 < 0) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x - 1, results[6]);\r\n\t\t}\r\n\t\t// SouthWest\r\n\t\tupdateMowerCords();\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() < 2) {\r\n\t\t\tthis.map.get(y - 1).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() <= x - 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[5]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x - 1, results[5]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// North\r\n\t\tif (y + 1 < this.map.size() && x >= this.map.get(y + 1).size()) {\r\n\t\t\tif (x >= this.map.get(y + 1).size()) {\r\n\t\t\t\tthis.map.get(y+1).add(results[0]);\r\n\t\t\t} else {\r\n\t\t\t\tthis.map.get(y + 1).add(x, results[0]);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x, results[0]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// NorthEast\r\n\t\tif (this.map.get(y + 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y + 1).add(results[1]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x + 1, results[1]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// East\r\n\t\tif (this.map.get(y).size() <= x + 1) {\r\n\t\t\tthis.map.get(y).add(results[2]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x + 1, results[2]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\r\n\t\t// South\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(results[4]);\r\n\t\t} else if (x >= this.map.get(y - 1).size()) {\r\n\t\t\tthis.map.get(y - 1).add(results[4]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x, results[4]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// South East\r\n\t\tif (this.map.get(y - 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[3]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x + 1, results[3]);\r\n\t\t}\r\n\r\n\t\tupdateMowerCords();\r\n\t\t// System.out.println(\"This is your X:\" + this.x);\r\n\t\t// System.out.println(\"This is your Y:\" + this.y);\r\n\t\t//\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\t// System.out.println(\"-------------------------------------------------------------------------------------\");\r\n\r\n\t}",
"private void lookThroughLocations(ArrayList<String> produced){\n int cnt = 0;\n for(int i = 0; i < locations.size(); i++){\n ArrayList<Artefacts> locationArtifacts = locations.get(i).getArtefacts();\n for(int j = 0; j < locationArtifacts.size(); j++){\n for(String k : produced){\n if(locationArtifacts.get(j).getName().equals(k)){\n currentLocation.addArtefactToCurrentLocation(locationArtifacts.get(j));\n locationArtifacts.remove(j);\n }\n }\n }\n }\n for(int i = 0; i < locations.size(); i++){\n ArrayList<Characters> locationCharacters = locations.get(i).getCharacters();\n for(int j = 0; j < locationCharacters.size(); j++){\n for(String k : produced){\n if(locationCharacters.get(j).getName().equals(k)){\n currentLocation.addCharacterToCurrentLocation(locationCharacters.get(j));\n locationCharacters.remove(j);\n }\n }\n }\n }\n }",
"void populatePidToHolderMap() {\n\t\tSet<Integer> visited = new HashSet<Integer>();\n\t\tQueue<Integer> visitQueue = new LinkedList<Integer>();\n\t\tvisitQueue.add(pid);\n\t\tvisited.add(pid);\n\t\twhile(!visitQueue.isEmpty()) {\n\t\t\tint nodePid = visitQueue.poll();\n\t\t\tList<Integer> neighborList = neighborMap.get(nodePid);\n\t\t\tfor (int neighborPid : neighborList) {\n\t\t\t\tif (!visited.contains(neighborPid)) {\n\t\t\t\t\tpidToHolderMap.put(neighborPid, nodePid);\n\t\t\t\t\tvisitQueue.add(neighborPid);\n\t\t\t\t\tvisited.add(neighborPid);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void generateMap () {\n for (int i = 0 ; i < n ; i++) {\n mapCoordinate[i] = new CoordinateInfo(100 * random.nextFloat(), 100 * random.nextFloat());\n\n for (int j = 0 ; j <= i ; j++) {\n mapDistance[i][j] = mapDistance[j][i] = getDistance(mapCoordinate[i], mapCoordinate[j]);\n }\n }\n }",
"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 Iterable<Place> places(){\n return places;\n }",
"private static void testMap(final OurMap<Integer, String> map) {\n System.out.printf(\"%n%s%n\", map.getClass());\n assert map.size() == 0;\n assert !map.containsKey(117);\n assert !map.containsKey(-2);\n assert map.get(117) == null;\n assert map.put(117, \"A\") == null;\n assert map.containsKey(117);\n assert map.get(117).equals(\"A\");\n assert map.put(17, \"B\") == null;\n assert map.size() == 2;\n assert map.containsKey(17);\n assert map.get(117).equals(\"A\");\n assert map.get(17).equals(\"B\");\n assert map.put(117, \"C\").equals(\"A\");\n assert map.containsKey(117);\n assert map.get(117).equals(\"C\");\n assert map.size() == 2;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n assert map.remove(117).equals(\"C\");\n assert !map.containsKey(117);\n assert map.get(117) == null;\n assert map.size() == 1;\n assert map.putIfAbsent(17, \"D\").equals(\"B\");\n assert map.get(17).equals(\"B\");\n assert map.size() == 1;\n assert map.containsKey(17);\n assert map.putIfAbsent(217, \"E\") == null;\n assert map.get(217).equals(\"E\");\n assert map.size() == 2;\n assert map.containsKey(217);\n assert map.putIfAbsent(34, \"F\") == null;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n }",
"Iterable<Position<E>> positions();",
"private void processLayerMap() {\r\n for (int l = 0; l < layers.size(); l++) {\r\n Layer layer = layers.get(l);\r\n this.layerNameToIDMap.put(layer.name, l);\r\n }\r\n }",
"private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }",
"private void scanForLocations(Element elem) {\n \n String location = getLocation(elem);\n if (location != null) {\n locationToElement.put(location, elem);\n DOM.setInnerHTML(elem, \"\");\n } else {\n int len = DOM.getChildCount(elem);\n for (int i = 0; i < len; i++) {\n scanForLocations(DOM.getChild(elem, i));\n }\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}",
"private void getPlaces() {\n places = new ArrayList<Place>();\n ref = new Firebase(\"https://flickering-torch-2192.firebaseio.com/places\");\n Query likeQuery = ref.orderByChild(\"likes\").limitToLast(10);\n likeQuery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot querySnapshot) {\n for (DataSnapshot d : querySnapshot.getChildren()) {\n ref.child(d.getKey()).addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()) {\n Place p = dataSnapshot.getValue(Place.class);\n mMap.addMarker(new MarkerOptions().position(new LatLng(p.getLat(), p.getLon()))\n .title(p.getName()).snippet(p.getDescription())\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.happy_marker)));\n }\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n\n }\n });\n }\n }\n\n @Override\n public void onCancelled(FirebaseError error) {\n showToast(error.getMessage());\n }\n });\n\n LatLng bristol = new LatLng(51.4556676, -2.6266423);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(bristol, zoomLevel));\n }",
"private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }",
"public MapIterator() {\n findNext(false);\n }",
"private static void createMap()\r\n {\r\n position = new String[8][8];\r\n for(int i=0;i<8;i++)\r\n {\r\n int z=0;\r\n for(int j=72;j>=65;j--)\r\n {\r\n position[i][z]=(char)j+\"\"+(i+1); //uses ascii char placement for letters\r\n z++;\r\n }\r\n }\r\n \r\n }",
"public abstract String[] map() throws TooFewNocNodesException;",
"public void testing(){\n //-2 because the last one has the double bracket\n finalSites = new String[(sites.length -1)][10]; //the final 2d array to hold onto the sites\n for(int i = 0; i < (sites.length -1); i++) { //for all of the sites\n String temp = sites[i];\n String temp1 = temp.replaceAll(\"\\\"\", \"\"); // get rid of the \"\" around each thing\n String temp2 = temp1.replaceAll(\"\\\\[\", \"\"); //get rid of the brackets\n tempSites = temp2.split(\",\"); //split site info by comma\n for (int j = 0; j < tempSites.length; j++) { //from 0 -->10 (id, site id, lat, long....)\n finalSites[i][j] = tempSites[j]; //put the value into the final array\n if(i == (sites.length-2) && j == (tempSites.length -1)){ //sites.length - 2 && tempSites.length.\n makeMap(); //new method to help break up the code...\n break; //redundant\n }\n } //end j for\n } //end i for\n }",
"public void updateMarkers(){\n markerMap = new HashMap<>();\n googleMap.clear();\n for (Station station : main.getStations()) {\n float fillLevel = station.getFillLevel();\n float colour = fillLevel * 120;\n Marker marker = googleMap.addMarker(new MarkerOptions().position(station.getLocation()).title(station.getName()).snippet(Integer.toString(station.getOccupancy())).icon(BitmapDescriptorFactory.defaultMarker(colour)));\n marker.setTag(station.getId());\n markerMap.put(station.getId(), marker);\n }\n }",
"public void scanCurrentPlace()\r\n\t{\r\n\t\tSystem.out.println(this.getCurrentPlace().toString());\r\n\t\tSystem.out.println(\"The place contains these objects: \");\r\n\t\tSystem.out.println(this.getCurrentPlace().getItems().toString());\r\n\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn loc.hashCode();\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 }",
"@Override\n\tpublic boolean on(GetMapObjectsEvent t) {\n\t\t\n\t\tPlayer player = t.getPlayer();\n\t\tS2LatLng pos = player.s2LatLngPos();\n\t\tWorld world = t.getGame().getWorld();\n\t\tGameSettings settings = t.getGame().getSettings();\n\t\tlong ts = System.currentTimeMillis();\n\t\tFunction<UniqueLocatable, MapObjectInfo> f = u -> getMapObjectInfo(u, settings, ts, player, pos);\n\t\t\n\t\tfor(int i=0;i<t.size();i++){\n\t\t\tWorldCell cell = world.getCell(t.cellIds[i]);\n\t\t\tif(cell == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\t// Don't let them scan cells too far away\n\t\t\t// TODO: Make the limit configurable!\n\t\t\tif(cell.distanceTo(pos) > 1000)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\tt.cells[i] = new CellInfo(ts, Iterators.filter(Iterators.transform(cell.objects().iterator(), f), e -> e != null));\n\t\t}\n\t\t\n\t\tt.status = MapObjectsStatus.SUCCESS;\n\t\treturn true;\n\t}",
"public interface IWordMap {\n\n\t/**\n\t * Adds a new position to an entry of the map. Creates the entry if the word is\n\t * not already present in the map.\n\t */\n\tpublic void addPos(String word, IPosition pos);\n\n\t/**\n\t * Removes from the map the entry for word.\n\t * \n\t * @throws WordException\n\t * if no entry with word in the map.\n\t */\n\tpublic void removeWord(String word) throws WordException;\n\n\t/**\n\t * Removes from the map position for word.\n\t * \n\t * @throws WordException\n\t * if no entry with word in the map or if word is not associated\n\t * with given position.\n\t */\n\tpublic void removePos(String word, IPosition pos) throws WordException;\n\n\t/**\n\t * Returns an iterator over all words of the map.\n\t */\n\tpublic Iterator<String> words();\n\n\t/**\n\t * Returns an iterator over the positions of a given word.\n\t * \n\t * @throws WordException\n\t * if no entry with word in the map.\n\t */\n\tpublic Iterator<IPosition> positions(String word) throws WordException;\n\n\t/**\n\t * Returns the number of entries stored in the map.\n\t */\n\tpublic int numberOfEntries();\n\n}",
"private HashMap<String, Marker> loadNMarkers(){\n HashMap<String, Marker> map = new HashMap<String, Marker>();\n if (googleMap != null) {\n googleMap.clear();\n }\n float alpha = (float) 0.5;\n if (main.state.getBookingState() != State.RESERVE_BIKE_SELECTION_STATE && main.state.getBookingState() != State.RESERVE_DOCK_SELECTION_STATE){\n alpha = 1;\n }\n for (Station station : stationList) {\n float fillLevel = station.getFillLevel(); // change the marker colors depending on the station fill levels\n float colour = fillLevel * 120;\n Marker marker = googleMap.addMarker(new MarkerOptions().position(station.getLocation()).title(station.getName()).snippet(Integer.toString(station.getOccupancy())).icon(BitmapDescriptorFactory.defaultMarker(colour)).alpha(alpha));\n marker.setTag(station.getId()); // set tag to reference markers later\n map.put(station.getId(), marker);\n }\n return map;\n }",
"@Override\n public Map<Direction, List<Coordinate>> getPossibleMoves() {\n\n Map<Direction, List<Coordinate>> moves = new HashMap<>();\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //Jumps\n List<Coordinate> jumps = new ArrayList<>();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (Board.inBounds(tempCoordinate1)) {\n jumps.add(tempCoordinate1);\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (Board.inBounds(tempCoordinate2)) {\n jumps.add(tempCoordinate2);\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (Board.inBounds(tempCoordinate3)) {\n jumps.add(tempCoordinate3);\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (Board.inBounds(tempCoordinate4)) {\n jumps.add(tempCoordinate4);\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (Board.inBounds(tempCoordinate5)) {\n jumps.add(tempCoordinate5);\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (Board.inBounds(tempCoordinate6)) {\n jumps.add(tempCoordinate6);\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (Board.inBounds(tempCoordinate7)) {\n jumps.add(tempCoordinate7);\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n if (Board.inBounds(tempCoordinate8)) {\n jumps.add(tempCoordinate8);\n }\n\n if (!jumps.isEmpty()) {\n moves.put(Direction.Jump, jumps);\n }\n return moves;\n }",
"void cachePositions(Collection<Position> positions);",
"public interface Map {\n /**\n * Return the distance between two coordinates.\n * \n * @param coord1 valid coordinates\n * @param coord2 valid coordinates\n * @return return distance between coord1 and coord2.\n * Returns Integer.MAX_VALUE if there is no path\n * between coordinates.\n */\n public int distance(Coord coord1, Coord coord2);\n\n /**\n * Return coordinates of a localisation.\n * \n * @param address a known localisation\n * @param return coordinates of the localisation, null\n * if the location doesn't exist.\n */\n public Coord addressToCoord(String localisation);\n /**\n * Returns the address closest to the localisation\n *\n * @param loc : the concerned localisation \n * @post returns one of the closest addresses to loc, null if\n * there isn't any.\n */\n public String coordToAddress(Coord loc);\n\n /**\n * Add an obstacle at coordinate obstacleCoord\n * \n * @param obstacleCoord coordinates of the new obstacle. Must be valid\n * \n */\n\n public void addObstacle(Coord obstacleCoord);\n\n /**\n * Remove an obstacle at coordinates\n * \n * @param obstacleCoord must be coordinates of a recorded obstacle\n */\n public void removeObstacle(Coord obstacleCoord);\n /**\n * Adds a list of addresses->localisations in the map.\n *\n * @param address must be a list of lines with one address and one coordinate\n * on each, separated by an @. the coordinate must be on a street.\n * @return returns the list of invalid address.\n */\n public String addAddressList(BufferedReader address);\n /**\n * Adds an address in the Map. \n * @param Address a string representing the address, can be anything.\n * @param coord the coord of the address, can be anywhere.\n */\n public void addAddress(String Address, Coord coord);\n /**\n * Sets the street on the map\n * \n * the distance between roads is 10. the roads start at coordinate 0.\n * so numx = 5 -> roads at x = [0,10,20,30,40]\n * \n * @param: numx : > 0 :the amount of North-South streets.\n * @param: numy : > 0 :the amount of West-East streets.\n * \n */\n public void setStreets(int numx, int numy);\n}",
"public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }",
"Map<BoardCellCoordinates, Set<Integer>> getWinningCoordinates();",
"public void updateMap(HashMap<Coordinate, MapTile> currentView) {\n\t\t\tfor (Coordinate key : currentView.keySet()) {\n\t\t\t\tif (!map.containsKey(key)) {\n\t\t\t\t\tMapTile value = currentView.get(key);\n\t\t\t\t\tmap.put(key, value);\n\t\t\t\t\tif (value.getType() == MapTile.Type.TRAP) {\n\t\t\t\t\t\tTrapTile value2 = (TrapTile) value; // downcast to find type\n\t\t\t\t\t\tif (value2.getTrap().equals(\"parcel\") && possibleTiles.contains(key)) {\n\t\t\t\t\t\t\tparcelsFound++;\n\t\t\t\t\t\t\tparcels.add(key);\n\t\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\t\tphase = \"search\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"lava\")) {\n\t\t\t\t\t\t\tlava.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"health\")) {\n\t\t\t\t\t\t\thealth.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"water\")) {\n\t\t\t\t\t\t\twater.add(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (value.getType() == MapTile.Type.FINISH) {\n\t\t\t\t\t\texitFound = true;\n\t\t\t\t\t\texit.add(key);\n\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\tphase = \"search\";\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}",
"HashMap<GamePiece, Integer> distanceMap(GamePiece from) {\n ArrayDeque<GamePiece> worklist = new ArrayDeque<GamePiece>();\n HashMap<GamePiece, Integer> distances = new HashMap<GamePiece, Integer>();\n ArrayList<GamePiece> seen = new ArrayList<GamePiece>();\n distances.put(from, 0);\n worklist.add(from);\n\n while (worklist.size() > 0) {\n GamePiece next = worklist.removeFirst();\n\n if (seen.contains(next)) {\n // if seen has the next element don't do anything with it\n }\n else {\n for (String s : this.directions) {\n if (next.hasNeighbor(s) && next.connected(s) && !seen.contains(next.neighbors.get(s))) {\n distances.put(next.neighbors.get(s), distances.get(next) + 1);\n worklist.addFirst(next.neighbors.get(s));\n }\n }\n seen.add(next);\n }\n }\n return distances;\n }",
"private void drawMarkers () {\n // Danh dau chang chua di qua\n boolean danhDauChangChuaDiQua = false;\n // Ve tat ca cac vi tri chang tren ban do\n for (int i = 0; i < OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().size(); i++) {\n\n TourTimesheet timesheet = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourTimesheet().get(i);\n // Khoi tao vi tri chang\n LatLng position = new LatLng(timesheet.getmBuildingLocation().latitude, timesheet.getmBuildingLocation().longitude);\n // Thay doi icon vi tri chang\n MapNumberMarkerLayoutBinding markerLayoutBinding = DataBindingUtil.inflate(getLayoutInflater(), R.layout.map_number_marker_layout, null, false);\n // Thay doi so thu tu timesheet\n markerLayoutBinding.number.setText(String.valueOf(i + 1));\n // Thay doi trang thai markup\n // Lay ngay cua tour\n Date tourDate = OnlineManager.getInstance().mTourList.get(tourOrder).getmDate();\n // Kiem tra xem ngay dien ra tour la truoc hay sau hom nay. 0: hom nay, 1: sau, -1: truoc\n int dateEqual = Tour.afterToday(tourDate);\n // Kiem tra xem tour da dien ra chua\n if (dateEqual == -1) {\n // Tour da dien ra, thay doi mau sac markup thanh xam\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n } else if (dateEqual == 1) {\n // Tour chua dien ra, thay doi mau sac markup thanh vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Kiem tra xem chang hien tai la truoc hay sau gio nay. 0: gio nay, 1: gio sau, -1: gio truoc\n int srcStartEqual = Tour.afterCurrentHour(timesheet.getmStartTime());\n int srcEndEqual = Tour.afterCurrentHour(timesheet.getmEndTime());\n if(srcStartEqual == 1){\n // Chang chua di qua\n if (danhDauChangChuaDiQua == true) {\n // Neu la chang sau chang sap toi thi chuyen thanh mau mau vang\n markerLayoutBinding.markerImage.setColorFilter(Color.YELLOW, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Neu la chang ke tiep thi giu nguyen mau do\n danhDauChangChuaDiQua = true;\n }\n } else if(srcStartEqual == -1 && srcEndEqual == 1){\n // Chang dang di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP);\n } else{\n // Chang da di qua\n markerLayoutBinding.markerImage.setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_ATOP);\n }\n }\n // Marker google map\n View markerView = markerLayoutBinding.getRoot();\n // Khoi tao marker\n MarkerOptions markerOptions = new MarkerOptions()\n .draggable(false)\n .title(timesheet.getmBuildingName() + '-' + timesheet.getmClassroomName())\n .position(position)\n .icon(BitmapDescriptorFactory.fromBitmap(getMarkerBitmapFromView(markerView)));\n if (timesheet.getmClassroomNote() != null && !timesheet.getmClassroomNote().equals(\"\") && !timesheet.getmClassroomNote().equals(\"null\")) {\n markerOptions.snippet(timesheet.getmClassroomNote());\n }\n mMap.addMarker(markerOptions);\n // add marker to the array list to display on AR Camera\n markerList.add(markerOptions);\n // Goi su kien khi nhan vao tieu de marker\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n // TODO: Chuyen sang man hinh thong tin chang khi nhan vao tieu de chang\n openTimesheetInfo(marker.getTitle());\n }\n });\n }\n }",
"private void poetries() {\n\n\t}",
"public void removePlaces(){\n List<Place> copies = new ArrayList<>(places);\n for(Place p : copies){\n p.reset();\n }\n }",
"private void buildLabelLocs() {\n this.labelLocs = new HashMap<String, Integer>();\n for (int n = 0; n < this.code.size(); n++) {\n TACOp op = this.code.get(n);\n if (op.getType() == TACOpType.LABEL) {\n this.labelLocs.put(op.getLabel(), n);\n }\n }\n }",
"public Iterable<MapElement> elements() {\n return new MapIterator() {\n\n @Override\n public MapElement next() {\n return findNext(true);\n }\n \n };\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 void mDeptLocationMembers() {\n \n PersistenceManager pm = PMF.get().getPersistenceManager();\n // dept iterator\n System.out.println(\"111 mDeptLocations inside mDeptLocationMembers: \" + mDeptLocations.size());\n Iterator iterDept = mDeptLocations.entrySet().iterator();\n while (iterDept.hasNext()) {\n Entry<Long, List<Location>> pairsDept = (Entry<Long, List<Location>>)iterDept.next();\n if (!pairsDept.getValue().isEmpty()) {\n // location iterator\n for (Location l : pairsDept.getValue()) {\n // member iterator\n List<Member> mLocationMembers = new ArrayList<Member>(); \n Iterator iterMember = mMemberCurrentLocation.entrySet().iterator();\n while (iterMember.hasNext()) {\n Entry<Long, Tracking> pairsMember = (Entry<Long, Tracking>)iterMember.next(); \n // determine members, regardless of dept, at this location\n if (l.getid().equals(pairsMember.getValue().getlocationId())) {\n Member m = pm.getObjectById(Member.class, pairsMember.getKey());\n mLocationMembers.add(m);\n System.out.println(\"m: \" + m.getlastName());\n System.out.println(\"mLocationMembers qty: \" + mLocationMembers.size());\n } \n }\n mDeptLocationMembers.put(l.getid(), mLocationMembers); \n }\n }\n }\n System.out.println(\"mDeptLocationMembers TOTAL qty: \" + mDeptLocationMembers.size());\n System.out.println(\"Exit: mDeptLocationMembers\");\n\n }",
"public void checkMarkers(int num) {\n\t\t\n\t}",
"public ArrayList<Map> getMapsArrayContainsThisPlaceOfInterest()\r\n\t{\r\n\t\treturn this._mapsArrayContainsThisPlaceOfInterest;\r\n\t}",
"public int infectNeighbours(Map map);",
"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 }",
"private void addAllNeighbours(@NonNull final Location searchLoc) {\n for (int x = -1; x < 2; x++) {\n for (int y = -1; y < 2; y++) {\n if ((x == 0) && (y == 0)) {\n continue;\n }\n final long foundKey = Location.getKey(searchLoc.getScX() + x, searchLoc.getScY() + y,\n searchLoc.getScZ());\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }\n }\n \n final long foundKey = Location.getKey(searchLoc.getScX(), searchLoc.getScY(), searchLoc.getScZ() + 1);\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }",
"Map<Long,String> getPlaces(String experiment_no,String laboratory_no) throws IOException;",
"public static void main(String[] args){\n\n TreeMap<Student, String> tmap = new TreeMap<>(new newComparator());\n tmap.put(new Student(\"aaaa\",12), \"Beijing\");\n tmap.put(new Student(\"bbbb\",12), \"Guangzhou\");\n tmap.put(new Student(\"dddd\",16), \"Zhuzhou\");\n tmap.put(new Student(\"cccc\",11), \"Shanghai\");\n tmap.put(new Student(\"aaaa\",19), \"Hongkong\");\n\n Set<Map.Entry<Student, String>> es = tmap.entrySet();\n Iterator<Map.Entry<Student, String>> it = es.iterator();\n\n\n /*\n while(it.hasNext()){\n Student stu = it.next();\n String location = map.get(stu);\n System.out.println(stu +\" --------- \"+location);\n }\n */\n\n while(it.hasNext()){\n Map.Entry<Student, String> me = it.next();\n Student stu = me.getKey();\n String addr = me.getValue();\n System.out.println(stu+\" ::: \"+ addr);\n\n }\n\n\n }",
"private void addAllAbove(@NonNull final Location searchLoc, final int limit) {\n int currX = searchLoc.getScX();\n int currY = searchLoc.getScY();\n int currZ = searchLoc.getScZ();\n \n while (currZ <= limit) {\n currX -= MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currY += MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currZ++;\n final long foundKey = Location.getKey(currX, currY, currZ);\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }\n }",
"private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }",
"private void intElementCoordinates() throws InvalidLevelCharacterException, NoGhostSpawnPointException, NoPacmanSpawnPointException, NoItemsException {\n\n\t\tint ps = 0;// player spawn point counter\n\t\tint gs = 0;// ghost spawn point counter\n\t\tint item = 0;// item counter\n\t\t\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\t\t// j*MAPDENSITY as x coordinate, i*MAPDENSITY as y\n\t\t\t\t\t// coordinate\n\t\t\t\t\tfloat[] xy = { j * MAPDENSITY, i * MAPDENSITY };\n\t\t\t\t\t// add coordinates in to right category\n\t\t\t\t\tif (mapElementStringArray[i][j].equals(\"X\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Wall(new Vector2f(xy), getWallType(\n\t\t\t\t\t\t\t\ti, j));\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\" \")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Dot(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tdots.add((Dot)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"P\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PlayerSpawnPoint(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tplayerSpawnPoints.add((PlayerSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\taPlayerSpawnPointRow=i;\n\t\t\t\t\t\taPlayerSpawnPointCol=j;\n\t\t\t\t\t\tps++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"G\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new GhostSpawnPoint(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tghostSpawnPoints.add((GhostSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\tgs++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"B\"))\n\t\t\t\t\t\tmapElementArray[i][j] = new InvisibleWall(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"S\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new SpeedUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tspeedUps.add((SpeedUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"T\")){\n\t\t\t\t\t\tmapElementArray[i][j] = new Teleporter(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tteleporters.add((Teleporter)mapElementArray[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"U\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PowerUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tpowerUps.add((PowerUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else\n\t\t\t\t\t\t// thrwo invalidLevelCharacterException\n\t\t\t\t\t\tthrow new InvalidLevelCharacterException(\n\t\t\t\t\t\t\t\tmapElementStringArray[i][j].charAt(0));\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check for PacmanSpawnPoint, GhostSpawnPoint and item exceptions\n\t\t\tif (gs == 0)\n\t\t\t\tthrow new NoGhostSpawnPointException();\n\t\t\tif (ps == 0)\n\t\t\t\tthrow new NoPacmanSpawnPointException();\n\t\t\tif (item == 0)\n\t\t\t\tthrow new NoItemsException();\n\t\t\n\t}",
"public Position findWeedPosition() {\n int x = 0;\n int y = 0;\n int sum = 0;\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(sum==0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n x = i;\n y = j;\n sum = tmpSum;\n }\n }\n else {\n x = i;\n y = j;\n sum = tmpX + tmpY;\n\n }\n }\n }\n\n }\n }\n return new Position(x,y);\n }",
"protected abstract boolean isMarkerPositionInternal(int index);",
"HashSet<Square> pieceLocations(Piece side) {\r\n assert side != EMPTY;\r\n HashSet<Square> squareSides = new HashSet<Square>();\r\n for (Square mapSquare : map.keySet()) {\r\n if (get(mapSquare) == side) {\r\n squareSides.add(mapSquare);\r\n }\r\n }\r\n return squareSides;\r\n }",
"private void reachAllValidPoint(int[][] tempMap, int i, int j) {\n\n\t\ttempMap[i][j] = 0;\n\t\t\n\t\t//moving in edge\n\t\tif (j > 0\n\t\t\t\t&& tempMap[i][j - 1] == 1\n\t\t\t\t&& (mapElementArray[i][j - 1] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j - 1] instanceof Teleporter || mapElementArray[i][j - 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, j - 1);\n\t\t}\n\t\tif (j + 1 < width\n\t\t\t\t&& tempMap[i][j + 1] == 1\n\t\t\t\t&& (mapElementArray[i][j + 1] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j + 1] instanceof Teleporter || mapElementArray[i][j + 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, j + 1);\n\t\t}\n\t\tif (i - 1 >= 0\n\t\t\t\t&& tempMap[i - 1][j] == 1\n\t\t\t\t&& (mapElementArray[i - 1][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i - 1][j] instanceof Teleporter || mapElementArray[i][j - 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i - 1, j);\n\t\t}\n\t\tif (i + 1 < height\n\t\t\t\t&& tempMap[i + 1][j] == 1\n\t\t\t\t&& (mapElementArray[i + 1][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i + 1][j] instanceof Teleporter || mapElementArray[i + 1][j] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i + 1, j);\n\t\t}\n\t\t\n\t\t//moving at edge, must consider if this point is a RandPaar\n\t\tif (i == 0 && tempMap[height - 1][j] == 1\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, height - 1, j);\n\t\t} else if (i == height - 1 && tempMap[0][j] == 1\n\t\t\t\t&& !(mapElementArray[0][j] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[0][j] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[0][j] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, 0, j);\n\t\t} else if (j == 0 && tempMap[i][width - 1] == 1\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, width - 1);\n\t\t} else if (j == width - 1 && tempMap[i][0] == 1\n\t\t\t\t&& !(mapElementArray[i][0] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[i][0] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[i][0] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, 0);\n\t\t}\n\t}",
"private void returnDriverLocationstoMaps() {\n }",
"@Override\n public Iterator<Entry<Integer, T>> iterator() {\n List<Entry<Integer, T>> pairs = new ArrayList<Entry<Integer, T>>(count);\n\n for(int i = 0; i < count; i++) {\n pairs.add(new MapEntry<T>(extractKey(buckets[i]), (T)data[i]));\n }\n\n return pairs.iterator();\n }",
"public int askMap();",
"private void addAllBelow(@NonNull final Location searchLoc, final int limit) {\n int currX = searchLoc.getScX();\n int currY = searchLoc.getScY();\n int currZ = searchLoc.getScZ();\n \n while (currZ >= limit) {\n currX += MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currY -= MapDisplayManager.TILE_PERSPECTIVE_OFFSET;\n currZ--;\n final long foundKey = Location.getKey(currX, currY, currZ);\n synchronized (unchecked) {\n if (!unchecked.contains(foundKey)) {\n unchecked.add(foundKey);\n }\n }\n }\n }",
"private static void findWords(BoggleCell currentCell, String wordSoFar, List<BoggleCell> positionsAlreadyVisited, Set<String> foundWords, Set<String> dict) {\n if (positionsAlreadyVisited.contains(currentCell)) {\n if (DEBUG) {\n System.out.println(\"already visited=\" + currentCell);\n }\n return;\n }\n\n // every iteration, I mark myself as visited\n positionsAlreadyVisited.add(currentCell);\n\n // lookup letter in index\n String letterLookup = currentCell.letter;\n\n // add current letter to current word\n final String possibleWord = wordSoFar.concat(letterLookup);\n\n /*\n OPTIMIZATION\n is there a dictionary word that starts with our possible word? if so, we can keep going on this path\n */\n if (dict.stream().noneMatch((word) -> word.startsWith(possibleWord))) {\n return;\n }\n\n if (DEBUG) {\n System.out.println(\"possible word=\" + possibleWord + \" \" + dict.contains(possibleWord));\n }\n\n // is current word in dictionary\n if (dict.contains(possibleWord)) {\n foundWords.add(possibleWord);\n }\n\n // for each connected cell\n for (BoggleCell boggleCell : currentCell.related) {\n if (DEBUG) {\n System.out.println(\"walking from \" + currentCell + \" to \" + boggleCell);\n for (BoggleCell visited: positionsAlreadyVisited) {\n System.out.println(\"visited=\" + visited);\n }\n }\n\n // my visited positions\n List<BoggleCell> myVisitedPositions = new ArrayList<>(positionsAlreadyVisited);\n findWords(boggleCell, possibleWord, myVisitedPositions, foundWords, dict);\n }\n }",
"private void initializationMapOfLastDistance(){\r\n Float val = 0.00f;\r\n for(Build b: allBuildings_){\r\n saveLastDistance.put(b.getName(), val);\r\n }\r\n }",
"@Override\n public Iterator<Location> iterator() {\n return new NeighborhoodIterator(this, new Location(0, 0));\n }",
"private void drawMembersLocation () {\n // Ve tat ca cac vi tri thanh vien tren ban do\n ArrayList<TourMember> tourMembers = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourMember();\n for (int i = 0; i < tourMembers.size(); i++) {\n TourMember tourMember = tourMembers.get(i);\n // Neu khong co vi tri thi khong ve\n if (tourMember.getmLocation() == null) {\n break;\n }\n // Thay doi mau vi tri thanh vien\n MapMemberPositionLayoutBinding memberLocationLayoutBinding = DataBindingUtil.inflate(getLayoutInflater(), R.layout.map_member_position_layout, null, false);\n // Thay doi trang thai markup\n // Kiem tra xem vai tro cua thanh vien trong tour\n int function = tourMember.getmFunction();\n // Kiem tra xem tour da dien ra chua\n if (function == 1) {\n // Truong doan, thay doi mau sac markup thanh do\n memberLocationLayoutBinding.memberLocationImage.setColorFilter(Color.RED, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Cac thanh vien con lai, thay doi mau sac markup thanh xanh\n memberLocationLayoutBinding.memberLocationImage.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP);\n }\n // Marker google map\n View markerView = memberLocationLayoutBinding.getRoot();\n // Khoi tao marker\n MarkerOptions markerOptions = new MarkerOptions()\n .draggable(false)\n .title(tourMember.getUserInfo().getFullName())\n .position(tourMember.getmLocation())\n .icon(BitmapDescriptorFactory.fromBitmap(getMemberLocationBitmapFromView(markerView)));\n if (tourMember.getmFunction() == 0) {\n // Thanh vien\n markerOptions.snippet(getString(R.string.tour_function_member));\n } else if (tourMember.getmFunction() == 1) {\n // Truong doan\n markerOptions.snippet(getString(R.string.tour_function_leader));\n } else if (tourMember.getmFunction() == 2) {\n // Pho doan\n markerOptions.snippet(getString(R.string.tour_function_vice_leader));\n } else {\n // Phu huynh\n markerOptions.snippet(getString(R.string.tour_function_parent));\n }\n mMap.addMarker(markerOptions);\n\n // Goi su kien khi nhan vao tieu de thanh vien\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n // TODO: Chuyen sang man hinh nhan tin khi nhan vao tieu de thanh vien\n return;\n// openTimesheetInfo(marker.getTitle());\n }\n });\n }\n }",
"public Map<Actor, Location> getAllActors(GameMap gameMap) {\n\n Map<Actor, Location> dinosaursList = new HashMap<>();\n for (int x: gameMap.getXRange()) {\n for (int y: gameMap.getYRange()) {\n Location location = gameMap.at(x,y);\n Actor actor = gameMap.getActorAt(location);\n if (location.containsAnActor() ) {\n dinosaursList.put(actor,location);\n }\n }\n }\n return dinosaursList;\n }",
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"private void ShowNearbyPlaces(List<HashMap<String, String>> nearbyPlacesList) {\n for (int i = 0; i < nearbyPlacesList.size(); i++) {\n Log.d(\"onPostExecute\",\"Entered into showing locations\");\n MarkerOptions markerOptions = new MarkerOptions();\n HashMap<String, String> googlePlace = nearbyPlacesList.get(i);\n double lat = Double.parseDouble(googlePlace.get(\"lat\"));\n double lng = Double.parseDouble(googlePlace.get(\"lng\"));\n String placeName = googlePlace.get(\"place_name\");\n String vicinity = googlePlace.get(\"vicinity\");\n LatLng latLng = new LatLng(lat, lng);\n markerOptions.position(latLng);\n markerOptions.title(placeName);\n markerOptions.snippet(vicinity);\n\n if (this.mKind == \"police\")\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE));\n else if (this.mKind == \"hospital\")\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE));\n\n mMap.addMarker(markerOptions);\n }\n mMap.animateCamera(CameraUpdateFactory.zoomTo(12));\n }",
"public void loadPlaces() {\n\n if (getActivity() == null || !isAdded())\n return;\n\n //clear markers\n markers.clear();\n map.clear();\n\n //add new markers\n for (int i = 0; i < places.size(); i++) {\n LatLng coordinate = new LatLng(places.get(i).gpslat, places.get(i).gpslng);\n\n //add marker with no icon\n Marker marker;\n\n marker = map.addMarker(new MarkerOptions().position(coordinate).icon(BitmapDescriptorFactory.fromBitmap(resizeMapIcons(\"pin\", 100))));\n marker.setTag(i);\n markers.add(marker);\n\n //load icon from server using the picasso library\n places.get(i).loadPinBitmap(context, i, new Place.PinLoadedListener() {\n @Override\n public void onLoaded(Bitmap bitmap, Place place, int i) {\n markers.get(i).setIcon(BitmapDescriptorFactory.fromBitmap(bitmap));\n }\n\n @Override\n public void onFailed(Place place, int i) {\n\n }\n });\n }\n\n //create list\n mAdapter = new MapPlaceAdapter(places, new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n //open ad. If ad not open attempt to open rate\n if (!((MainActivity) getActivity()).loadInterstitial()) {\n if (!AskRate()) {\n System.out.println(\"click: \" + places.get(i).id + \" \" + places.get(i).name);\n Intent intent = new Intent(context, SinglePlaceActivity.class);\n intent.putExtra(ITEM_KEY, places.get(i).id);\n startActivity(intent);\n }\n }\n }\n }, context);\n mRecyclerView.swapAdapter(mAdapter, false);\n scrollListener.resetState();\n\n //set marker to first item\n if (places.size() > 0) {\n Place p = places.get(0);\n gotoMap(p.gpslat, p.gpslng);\n }\n }",
"void numberOfOpenMapInformation(int number, int pIndex);",
"private int findNumOpenSpots(Point p) {\n boolean[][] visited = new boolean[17][17];\n Queue<Point> queue = new LinkedList<Point>();\n queue.add(p);\n\n int numEmpty = 0;\n while (!queue.isEmpty()) {\n Point cp = queue.poll();\n if (gameState[cp.x][cp.y] == States.EMPTY && !visited[cp.x][cp.y]) {\n numEmpty++;\n visited[cp.x][cp.y] = true;\n\n if (cp.x - 1 > 0) {\n queue.add(new Point(cp.x - 1, cp.y));\n }\n if (cp.x + 1 < 16) {\n queue.add(new Point(cp.x + 1, cp.y));\n }\n if (cp.y - 1 > 0) {\n queue.add(new Point(cp.x, cp.y - 1));\n }\n if (cp.y + 1 < 16) {\n queue.add(new Point(cp.x, cp.y + 1));\n }\n }\n }\n return numEmpty;\n }",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"private int getNextAvailablePositionOfContentMap() {\n\n\t\treturn contentMap.size() + 1;\n\n\t}",
"private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\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 Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }",
"public Map<Integer, List<CellEntry>> buildShipMap() {\n Map<Integer, List<CellEntry>> shipCellMap = new HashMap<>();\n for (int i = 0; i < BOARD_CELL_NUM_PER_SIDE; i++) {\n for (int j = 0; j < BOARD_CELL_NUM_PER_SIDE; j++) {\n Cell cell = getCell(i, j);\n if (cell.getShipIndex() != -1) {\n int shipIndex = cell.getShipIndex();\n if (!shipCellMap.containsKey(shipIndex)) {\n shipCellMap.put(shipIndex, new ArrayList<>());\n }\n\n CellEntry cellEntry = new CellEntry(cell.getIndex(), cell.getShipIndex());\n shipCellMap.get(shipIndex).add(cellEntry);\n }\n }\n }\n return shipCellMap;\n }",
"@Test\n public void testSmallPillarNeighbors(){\n //test pillar at (0,0)\n pillar = smallPillarMap.get(Maze.position(0,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,0)\n pillar = smallPillarMap.get(Maze.position(1,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,0)\n pillar = smallPillarMap.get(Maze.position(2,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n\n //test pillar at (0,1)\n pillar = smallPillarMap.get(Maze.position(0,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n\n //test pillar at (1,1)\n pillar = smallPillarMap.get(Maze.position(1,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(4, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (2,1)\n pillar = smallPillarMap.get(Maze.position(2,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n\n //test pillar at (0,2)\n pillar = smallPillarMap.get(Maze.position(0,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,2)\n pillar = smallPillarMap.get(Maze.position(1,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,2)\n pillar = smallPillarMap.get(Maze.position(2,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n }",
"private static void showMap() {\n\t\tSet<Point> pointSet = map.keySet();\n\t\tfor (Point p : pointSet) {\n\t\t\tSystem.out.println(map.get(p));\n\t\t}\n\t}",
"Map<Coord, ICell> getAllCells();",
"private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}",
"void mapChosen(int map);",
"private void initIDFMap(List<List<Map<String,List<Double>>>> tfMap){\n\t\tfor (int i = 0; i < tfMap.size(); i++) {\n\t\t\tList<Map<String,List<Double>>> gestureDocument = tfMap.get(i);\n\t\t\tfor (int j = 0; j < gestureDocument.size(); j++) {\n\t\t\t\tMap<String,List<Double>> tempMap = gestureDocument.get(j);\n\t\t\t\tIterator<Entry<String, List<Double>>> it = tempMap.entrySet().iterator();\n\t\t\t\t while (it.hasNext()) {\n\t\t\t\t Map.Entry<String,Integer> pairs = (Map.Entry)it.next(); \n\t\t\t\t if(getTfIDFMapGlobal().containsKey(pairs.getKey()))\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), getTfIDFMapGlobal().get(pairs.getKey())+1);\n\t\t\t\t else\n\t\t\t\t \tgetTfIDFMapGlobal().put(pairs.getKey(), 1);\n\t\t\t\t }\n\t\t\t}\n\t\t}\n\t}",
"public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}",
"private void exploreUnseenMap(Coordinate currPos) {\n\t\tif (control.currentPath == null) {\n\t\t\t//loop through unseen coords, finding best path there\n\t\t\tArrayList<Coordinate> path = null;\n\t\t\tArrayList<Coordinate> bestPath = null;\n\t\t\tfor (Coordinate coord: control.unseenCoords) {\n\t\t\t\tSet<Coordinate> tempHazards = new HashSet<>(control.hazardsMap.keySet());\n\t\t\t\tpath = control.findPath(currPos, coord, tempHazards);\n\t\t\t\tif (path.size() > 0) {\n\t\t\t\t\tif (bestPath == null || path.size() < bestPath.size()) {\n\t\t\t\t\t\tbestPath = path;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (bestPath == null || bestPath.size() == 0) {\n\t\t\t\tfor (Coordinate coord: control.unseenCoords) {\n\t\t\t\t\tSet<Coordinate> tempHazards = new HashSet<>(control.hazardsMap.keySet());\n\t\t\t\t\tpath = control.findPath(currPos, coord, tempHazards);\n\t\t\t\t\tfor (Coordinate hazard : control.hazardsMap.keySet()) {\n\t\t\t\t\t\ttempHazards.remove(hazard);\n\t\t\t\t\t\tpath = control.findPath(currPos, coord, tempHazards);\n\t\t\t\t\t\tif (path.size() > 0) {\n\t\t\t\t\t\t\tif (bestPath == null || path.size() < bestPath.size()) {\n\t\t\t\t\t\t\t\tbestPath = path;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tcontrol.setPath(bestPath);\n\t\t}\n\t}",
"private void getMapping() {\n double [][] chars = new double[CHAR_SET_SIZE][1];\n for (int i = 0; i < chars.length; i++) {\n chars[i][0] = i;\n }\n Matrix b = new Matrix(key).times(new Matrix(chars));\n map = b.getArray();\n }",
"private void setUpRouteIDsAndIndexes() {\n\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n routeIDSet.add(routeID);\n }\n }\n\n buildHash();\n\n for (int i = 0; i < routeIDsOfBillboards.size(); i++) {\n\n List<Integer> routeIndexes = new ArrayList<>();\n List<Integer> routeIDs = routeIDsOfBillboards.get(i);\n for (int j = 0; j < routeIDs.size(); j++) {\n\n int routeID = routeIDs.get(j);\n int routeIndex = (int) routeIDMap.get(routeID);\n routeIndexes.add(routeIndex);\n }\n routeIndexesOfBillboards.add(routeIndexes);\n }\n }",
"private static void addEntriesToMap(\n\t\tMap<Character,Integer> map,String toSort, String poolOfOccurances\n\t\t){\n\n\t\t//Loop the toStort\n\t\tfor(int i=0;i<toSort.length();i++){\n\t\t\tmap.put(toSort.charAt(i),new Integer(getCharacterFrequence(toSort.charAt(i),poolOfOccurances)));\n\t\t}\n\n\t}",
"@Override\n\tpublic synchronized Collection<Place> getPlaces() {\n\t\treturn this.places;\n\t}",
"Object visitMapOfReferences(MapOfReferencesNode node, Object state);",
"@Override\n\tpublic int getCount()\n\t{\n\t\treturn maps.size();\n\t}",
"public boolean mapsToPlace(Place where) {\n\t\treturn false;\r\n\t}",
"private void populateMap(Cursor data) {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity());\n String language = preferences.getString(getActivity().getString(R.string.pref_key_language), getActivity().getString(R.string.pref_language_english));\n\n if (mMap != null && data.moveToFirst()) {\n //Get visibile bounds of map\n LatLngBounds bounds = mMap.getProjection().getVisibleRegion().latLngBounds;\n if (data.moveToFirst()) {\n do {\n int stationId = data.getInt(StationContract.COL_STATION_ID);\n if (bounds.contains(new LatLng(data.getDouble(StationContract.COL_STATION_LAT), data.getDouble(StationContract.COL_STATION_LONG)))) {\n\n if (mMarkerMap.indexOfKey(stationId)<0) {\n int bikesAvailable = data.getInt(StationContract.COL_BIKES_AVAILABLE);\n int spacesAvailable = data.getInt(StationContract.COL_SPACES_AVAILABLE);\n int markerDrawable = Utilities.getMarkerIconDrawable(bikesAvailable, spacesAvailable);\n String snippet = getString(R.string.snippet_string_bikes) + String.valueOf(bikesAvailable) + \" \" + getString(R.string.snippet_string_spaces) + String.valueOf(spacesAvailable);\n\n\n String title;\n if (language.equals(getActivity().getString(R.string.pref_language_english))) {\n title = data.getString(StationContract.COL_STATION_NAME_EN);\n } else if(language.equals(getActivity().getString(R.string.pref_language_pinyin))){\n int stringId = getResources().getIdentifier(\"station\" + String.valueOf(stationId), \"string\", getActivity().getPackageName());\n title = getString(stringId);\n }\n else {\n title = data.getString(StationContract.COL_STATION_NAME_ZH);\n }\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getDouble(StationContract.COL_STATION_LAT), data.getDouble(StationContract.COL_STATION_LONG))).title(title);\n markerOptions.snippet(snippet);\n markerOptions.icon(BitmapDescriptorFactory.fromResource(markerDrawable));\n Marker marker = mMap.addMarker(markerOptions);\n mIdMap.put(marker, stationId);\n mMarkerMap.put(stationId, marker);\n }\n } else {\n //If the marker was previously on screen, remove it from the map and hashmap\n if (mMarkerMap.indexOfKey(stationId)>=0) {\n mMarkerMap.get(stationId).remove();\n mMarkerMap.remove(stationId);\n }\n }\n\n } while (data.moveToNext());\n }\n //If a station ID has been set from detail fragment, display its info window\n if (mStationId != -1) {\n Marker currentMarker = mMarkerMap.get(mStationId);\n if (currentMarker != null) {\n currentMarker.showInfoWindow();\n }\n }\n }\n }",
"private void updateFriendsLocation(ArrayList<ObjectLocation> friends_location){\n if(mMap==null)\n return;\n //if friends names is not ready yet which should not ever happen then return\n if(friends_names.isEmpty())\n return;\n\n //this do only first time, if markers is set then just update markers location (else branch)\n if(markers.isEmpty()) {\n for (int i = 0; i < friends_location.size(); i++) {\n LatLng latLng = new LatLng(friends_location.get(i).getLat(), friends_location.get(i).getLng());\n String friendID = friends_location.get(i).getObjectId();\n\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .title(friends_names.get(friendID))//set friend name in title\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_default_friend));\n\n //this is necessary for onInfoWindowClick\n Marker marker = mMap.addMarker(markerOptions);\n markerOnClick.put(marker,new MyMarker(friends_location.get(i).getObjectId(),true));\n //this is necessary for later update -friend icon(once) and his location on every change\n markers.put(friendID, marker);\n\n //make request for image\n userHandler.getUserImageInBitmap(friends_location.get(i).getObjectId(), REQUEST_TAG, new GetFriendsBitmapListener(this,friendID));\n }\n Log.i(LOG_TAG,\"Friends placed on the map, for the first time.\");\n }else{\n for (int i = 0; i < friends_location.size(); i++) {\n String friendID = friends_location.get(i).getObjectId();\n animateMarker(markers.get(friendID),new LatLng(friends_location.get(i).getLat(),friends_location.get(i).getLng()),new LatLngInterpolator.Linear());\n }\n }\n }",
"public MapElement next() {\n return findNext(true);\n }",
"private static void iterator() {\n\t\t\r\n\t}",
"public void colocarMarcadores(){\n\n if(seeOnMap != 0){\n\n for (int n=0; n<c.getCount(); n++) {\n c.moveToPosition(n);\n Double lat = c.getDouble(c.getColumnIndex(\"lat\"));\n Double lng = c.getDouble(c.getColumnIndex(\"lon\"));\n String name = c.getString(c.getColumnIndex(\"title\"));\n\n map.addMarker(new MarkerOptions().position(new LatLng(lat, lng))\n .title(name));\n }\n }\n }",
"private Map<String, String> solutionForCNSHIsFullCNCHHasOnlyOnePlace() {\r\n Map<String, String> map = new HashMap<>();\r\n map.put(this.students[0].getName(), this.schools[2].getName());\r\n map.put(this.students[1].getName(), this.schools[2].getName());\r\n map.put(this.students[2].getName(), this.schools[1].getName());\r\n map.put(this.students[3].getName(), this.schools[2].getName());\r\n return map;\r\n }",
"public int makeGlobal(){\r\n\t\tif(mapExists && this.creationTime > SimClock.getTime() - TIMEOUT){\r\n\t\t//TODO: merge new maps\t\r\n\t\t\treturn globalMap.size();\r\n\t\t}\r\n\t\telse if(mapExists && this.creationTime <= SimClock.getTime() - TIMEOUT){\r\n\t\t//restart my map\r\n\t\t\tglobalMap = null;\r\n\t\t\tsynced = -1;\r\n\t\t\tmapExists = false;\r\n\t\t\tref_id = -1;\r\n\t\t\tthis.creationTime = SimClock.getTime();\r\n\t\t\t\r\n\t\t}\r\n\t\t//usar 3 estáticos para ajustar coordenadas\r\n\t\t\r\n\t\tMap<Integer, Coord> m = new HashMap<Integer, Coord>();\r\n\t\tArrayList<Integer> staticNBs = new ArrayList<Integer>();\r\n\t\t/*first find the static nodes i have in my map*/\r\n\t\tif(this.myMap == null || this.myMap.getMap() == null) return -1;\r\n\t\tfor(Map.Entry<Integer, Coord> nb : this.myMap.getMap().entrySet()){\r\n\t\t\t/*add them to my map*/\r\n\t\t\tif (staticNodes.keySet().contains(nb.getKey())){\r\n\t\t\t\tstaticNBs.add(nb.getKey());\t\r\n\t\t\t\tm.put(nb.getKey(), staticNodes.get(nb.getKey()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(staticNBs.size() < 3){\r\n\t\t\t//core.Debug.p(\"can't determine global coordinates\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\telse{\r\n\t\t\t//map centered on certain static node, using real coordinates.\r\n\t\t\tMap.Entry<Integer, NodePositionsSet> s = startingGlobalMap(staticNBs);\r\n\t\t\t//core.Debug.p(\"***map centered on static node\" + ref_id + \"***\");\r\n\t\t\t//core.Debug.p(this.toString());\r\n\t\t\tif(s.getValue() != null){\r\n\t\t\t\t//core.Debug.p(\"globalmap not null! wohoo!\");\r\n\t\t\t\t//core.Debug.p(\"t= \" + SimClock.getTime() + \" base map:\" + realMap(s.getValue().getMap()));\r\n\t\t\t\t/*now mix this map*/\r\n\t\t\t\t//core.Debug.p(\"+++mixed map:\" + realMap(s.getValue().getMap()));\r\n\t\t\t\tglobalMap = NodePositionsSet.mixMap(s.getValue().getMap(), myMap.getMap(), ref_id, myID);\r\n\t\t\t\t//core.Debug.p(\"+++mixed map:\" + realMap(globalMap));\r\n\t\t\t\tif(globalMap == null) return -1;\r\n\t\t\t\tlocalmix();\r\n\t\t\t\tif(globalMap == null) return -1;\r\n\t\t\t\tthis.updateTime = SimClock.getTime();\r\n\t\t\t\treturn globalMap.size();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcore.Debug.p(\"can't determine global coordinates\");\r\n\t\t\t\treturn -1;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void updateMarkers() {\n\t\tArrayList<Parking> items = getMarkersForLocation();\n\t\tfor (Parking item : items) {\n\t\t\tint id = item.getParkingId();\n\t\t\tParking inHashItem = parkingsArray.get(id);\n\t\t\tparkingsArray.delete(id);\n\t\t\t// if the item already exists, update the position\n\t\t\tif (inHashItem != null) {\n\t\t\t\tLog.d(\"Markers\", \"An old item\");\n\t\t\t\tparkingsArray.put(id, inHashItem); // put it at the end\n\t\t\t} else {\n\t\t\t\tLog.d(\"Markers\", \"A new item\");\n\t\t\t\titem.addMarkerToMap(map);\n\t\t\t\tparkingsArray.put(id, item);\n\t\t\t}\n\t\t}\n\n\t\t// remove extras\n\t\tremoveOldMarkers();\n\t}"
]
| [
"0.5798012",
"0.57339734",
"0.5634272",
"0.56222796",
"0.55476487",
"0.5545402",
"0.5426086",
"0.53940314",
"0.53908134",
"0.5365846",
"0.53395545",
"0.53329146",
"0.5316962",
"0.5302704",
"0.52953035",
"0.5289144",
"0.52871436",
"0.52737355",
"0.52731067",
"0.5256809",
"0.5251751",
"0.52486795",
"0.5245437",
"0.5235011",
"0.5231661",
"0.523145",
"0.52267605",
"0.5223297",
"0.5222579",
"0.5217225",
"0.5208022",
"0.52067584",
"0.52044827",
"0.52010584",
"0.5196085",
"0.5180046",
"0.51787037",
"0.517711",
"0.51702875",
"0.5161179",
"0.51600367",
"0.51560754",
"0.51535505",
"0.5152283",
"0.5151817",
"0.5147522",
"0.5143786",
"0.5143484",
"0.5140337",
"0.5140034",
"0.5138769",
"0.5137655",
"0.51160336",
"0.51098764",
"0.51096016",
"0.5093209",
"0.5092058",
"0.50852203",
"0.5082828",
"0.50760907",
"0.50719976",
"0.506612",
"0.5064231",
"0.5056467",
"0.5050771",
"0.504913",
"0.5042812",
"0.50427186",
"0.5030881",
"0.5028735",
"0.5017303",
"0.501417",
"0.500791",
"0.50046957",
"0.50030506",
"0.49926478",
"0.49920085",
"0.4985748",
"0.498213",
"0.49771807",
"0.49710125",
"0.4969799",
"0.49657127",
"0.49646053",
"0.49633813",
"0.4963333",
"0.49612537",
"0.49611142",
"0.49585706",
"0.4954568",
"0.49533895",
"0.4949745",
"0.49478394",
"0.4945945",
"0.49442032",
"0.49398735",
"0.49360296",
"0.49350035",
"0.49337947",
"0.49293303",
"0.49269548"
]
| 0.0 | -1 |
This function is responsible to display a string array to the out stream | public void displayData(String[] str); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void writearray(String[]array) {\n\t\t for (int i = 0; i < array.length; i++) {\n\t\t\tSystem.out.println(array[i]);\n\t\t}\n\t}",
"public static void showStringArray(String[] arr)\n {\n System.out.println(\"...........................................\");\n\n for (int i = 0; i < arr.length; i++) {\n System.out.print(arr[i] + \" \");\n }\n System.out.println();\n\n }",
"public static void showArray(String[] a) {\n for (int row=0; row<a.length; row++) {\n Logger.print(a[row] + \" \");\n }\n Logger.print(\"\\n\");\n }",
"public static void printStringArr(String[] arr){\n\t for(int i = 0; i < arr.length; i++){\n\t System.out.println(arr[i]);\n\t }\n\t}",
"public void printStringArr(String[] s) {\r\n\t\tfor(int i=0;i<s.length;i++){\r\n\t\t\tSystem.out.print(s[i]+\" \");\r\n\t }System.out.println();\r\n\t}",
"private void printOut(String[] printerMakerResult)\n {\n //shows user the printerMaker result\n\n for(int i=0;i<printerMakerResult.length;i++)\n {\n outVideo.println(printerMakerResult[i]);\n outVideo.flush();\n }\n }",
"public String toString()\n\t{\n\t\t// For empty array\n\t\tif(length() < 1)\n\t\t\tSystem.out.print(\"\");\n\t\tString output = \"\";\n\n\t\tfor(int index = 0; index < length(); index++)\n\t\t{\n\t\t\toutput = output + data[index];\n\t\t\tif(index+1 < length())\n\t\t\t{\n\t\t\t\toutput = output + \" \";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}",
"private void showArray(ArrayList<String[]> arr) {\n for(String[] row: arr){\n for(String x: row){\n System.out.print(x + \"\\t\\t\");\n }\n System.out.println();\n } \n System.out.println(\"------------------------------------\");\n }",
"public void print()\n\t{\n\t\tStringBuffer print = new StringBuffer();\n\t\tif (arraySize != 0)\n\t\t{\n\t\t\tfor (int index = 0; index < arraySize - 1; index++) \n\t\t\t{ \n\t\t\t\tprint.append(array[index] + \", \");\n\t\t\t}\n\t\t\tprint.append(array[arraySize - 1]);\n\t\t\tSystem.out.println(print.toString());\n\t\t}\n\t}",
"public String display(){\n StringBuilder str = new StringBuilder();\n\n for(int i = 0; i < 3; ++i){\n if( Array[i] != null ) {\n str.append('\\n' + Names[i] + '\\n');\n str.append(Array[i].display());\n }\n }\n return str.toString();\n }",
"private void displayArray() {\r\n System.out.println(\"CEK ARRAY : \");\r\n for (i = 0; i < array.length; i++) {\r\n System.out.print(array[i]+\",\");\r\n }\r\n }",
"private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \" \";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public void printToClient(char[] charArray) {\n for (int i = 0; i < charArray.length; i++) {\n out.print(charArray[i] + \" \");\n }\n out.println();\n }",
"public void display()\n {\n System.out.println(�\\n The elements are�);\n for(int i=0; i<n; i++)\n System.out.println(� �+a[i]);\n }",
"private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}",
"public static void jkPrintArrOneStr(String[] inputArr) {\n\n int printArrLen = inputArr.length;\n\n for (int printCount = 0; printCount < printArrLen; printCount++) {\n System.out.print(inputArr[printCount]);\n if (printCount != printArrLen - 1) System.out.print(\", \");\n }\n System.out.println();\n //---------------------------- /print elements of array\n\n }",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"public static void MostrarArray(int array[]) {\n for (int i = 0; i < array.length; i++) {\n System.out.print(array[i] + \" | \");\n }\n System.out.println();\n }",
"static void printArray(char [] a) {\n\t\tfor (int i=0; i< a.length; i++) System.out.print(a[i]); \n\t\tSystem.out.println();\n\t}",
"public static void printArray(String[] dataArray) {\n\t\t\n\t\tif (dataArray == null) {\n\t\t\tSystem.out.print(\"Empty Array\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint length = dataArray.length;\n\t\t\n\t\tSystem.out.print(\"\\nData: \\n\");\n\t\tSystem.out.print(\"Number of Entries: \" + (length) + \" \\n\");\n\t\t\n\t\tfor (int i = 0; i < length ; i++) { \n\t\t\tSystem.out.print(dataArray[i].toString() + \"\\t\");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}",
"private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }",
"public static void printArray(String[] array){\n int noOfElement=array.length; // Number of element is the length of this array\n for(int i=0;i<array.length;i++){ // print out the each element in array with \" \"(space) splitting\n System.out.print(array[i]+\" \");}}",
"private void writeline(String ... args) {\r\n\t\twriteArrayToLine(args);\r\n\t}",
"@Override\n public String toString(){\n String result = \"\";\n for(int i = 0; i < numItems; i++){\n result += arr[i] + \" \";\n }\n return result;\n }",
"public String print(int[] array)\n {\n StringBuilder inputSB = new StringBuilder();\n String input;\n\n for(int i = 0; i < array.length; i++)\n {\n inputSB.append(array[i]);\n if(i != (array.length - 1))\n {\n inputSB.append(\",\");\n }\n }\n\n input = inputSB.toString();\n return input;\n }",
"protected static void show(Comparable[] a) {\n\t\t\r\n\t\tString retStr = \"\";\r\n\t\tfor(int i=0 ; i< a.length; i++)\r\n\t\t\tretStr+=\" \"+a[i];\r\n\t\t\r\n\t\tSystem.out.println(retStr);\r\n\t\t\r\n\t}",
"private void show(String[] str) {\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tLog.d(\"str\", str[i]);\r\n\t\t}\r\n\r\n\t}",
"private void show(String[] str) {\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tLog.d(\"str\", str[i]);\r\n\t\t}\r\n\r\n\t}",
"public static void printArray(char[] array) {\n for (int i = 0; i < array.length; i++) {\n System.out.print(array[i] + \" \");\n }\n System.out.println();\n }",
"public void display()\r\n\t{\r\n\t\tif(this.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Empty... nothing to display\");\r\n\t\t}else\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The Array: \");\t\r\n\t\tfor (int i =0; i<bookArray.length; i++)\r\n\t\t{\r\n\t\t\tif(bookArray[i]!=null)\r\n\t\t\t\tSystem.out.println(\"\\t\"+'\"'+bookArray[i]+'\"');\r\n\t\t}\r\n\t }\r\n\t}",
"private void writeArrayToLine(String[ ] args) {\r\n\t\tStringBuilder buf = new StringBuilder();\r\n\t\tif (args.length>0) buf.append(args[0]);\r\n\t\tint k = 1;\r\n\t\twhile(k < args.length) buf.append(delim).append(args[k++]);\r\n\t\tout.println(buf.toString());\r\n\t}",
"public static void printStrArray(String[] s, boolean lineNumbers) {\n\t\tif (s!=null) {\n\t\t\tif (lineNumbers) {\n\t\t\t\tfor (int i=0; i<s.length; i++)\n\t\t\t\t\tSystem.out.println(i+\": \"+s[i]);\n\t\t\t} else {\n\t\t\t\tfor (int i=0; i<s.length; i++)\n\t\t\t\t\tSystem.out.println(s[i]);\n\t\t\t}\n\n\t\t}\n\t}",
"public static void Display(int[] array) {\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\"\\t\");\n }\n System.out.println();\n }",
"public static void show(Comparable[] a) {\n StringBuilder s= new StringBuilder();\n s.append(\"[\");\n for (int i = 0; i < a.length-1; i++) {\n s.append(a[i] + \", \");\n }\n s.append(a[a.length-1] + \"]\\n\");\n System.out.println(s.toString());\n }",
"public void outputToConsole() {\r\n for (String line : data) {\r\n System.out.println(line);\r\n }\r\n }",
"public static void printArray(String[] arr) {\n\t\tfor(int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\t}\n\t}",
"private static void Display(Cars[] arr) {\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.println(arr[i]);\n\n\t\t}\n\t}",
"public void printArray()\n {\n for (int i=0;i<array.length; i++)\n {\n System.out.print(array[i] + \" \"); \n }\n System.out.println();\n }",
"public void toString(final int[] array) {\n String s = \"\";\n for (int p = 0; p < array.length - 1; p++) {\n s += array[p] + \",\";\n }\n s = s + array[array.length - 1];\n System.out.println(s);\n }",
"private static void printArray(Object[] array) {\n for (Object t : array) {\n System.out.println(\" \" + t + \", \");\n }\n }",
"public void print(String[] a){\n\t\tfor(int i = 0; i < a.length; i++){\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}",
"public String toString()\n {\n // create a counter called count\n int count = 0;\n // create empty string for concatenation purposes\n String retString = \"\";\n while(count < size)\n {\n // appending to retString\n retString += arr[count] + \" \";\n // increment count\n count++;\n }\n return retString;\n }",
"public void writeString() {\n\t\tIterator iterator = stringList.listIterator(0);\n\t\tString out = \"\";\n\t\twhile(iterator.hasNext()) {\n\t\t\tout += iterator.next();\n\t\t}\n\t\tSystem.out.println(out);;\n\t}",
"public String toString() {\n int iMax = array.length - 1;\n if (iMax == -1)\n return \"[]\";\n\n StringBuilder b = new StringBuilder();\n b.append('[');\n for (int i = 0; ; i++) {\n b.append(getRaw(byteOffset(i)));\n if (i == iMax)\n return b.append(']').toString();\n b.append(',').append(' ');\n }\n }",
"public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}",
"static String printArray(int[] numbers) {\n\t\tint index = 0;\r\n\t\tString array = \"\";\r\n\t\twhile (index < numbers.length) {\r\n\t\t\tarray = array + numbers[index] + \" \";\r\n\t\t\tindex++;\r\n\t\t}\r\n\t\tprintln(array);\r\n\t\treturn array;\r\n\t}",
"void displayResults(final InvokeResult[] results)\n {\n for (int i = 0; i < results.length; ++i)\n {\n final InvokeResult result = results[i];\n\n final String s = new SmartStringifier(\"\\n\", false).stringify(result);\n println(s + \"\\n\");\n }\n }",
"void printArray(CatalogueItem arr[])\r\n {\r\n int n = arr.length;\r\n for (int i=0; i<n; ++i)\r\n System.out.print(\r\n \"id: \" + arr[i].getItemId() + \" \"\r\n + \"name: \" + arr[i].getItemName() + \" \"\r\n + \"category: \" + arr[i].getCategory() + \"\\n\");\r\n System.out.println();\r\n System.out.println();\r\n }",
"public void display() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(a[i] + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static String listArray(int num[]) {\n String out = \"{\"; //prints out { for beginingg output of an array output\n for (int j = 0; j < num.length; j++) { //loops through array \n if (j > 0) { //if the indice is greater than 0, print a comma to seperate the array elements neatly\n out += \", \";\n }\n out += num[j]; //assigns the value of the array at num[j] to out\n }\n out += \"} \"; //ending part of 'out' String\n return out; //return out string \n }",
"public void print(String s, boolean[] array) {\r\n int size = array.length;\r\n \r\n System.out.println(s);\r\n for (int i = 0; i < size ; i++) {\r\n System.out.print( array[i] +\" \");\r\n }\r\n System.out.println();\r\n }",
"public String toString() { \n\t\t String str=\"\";\n\t\t for(int i=0; i< size; i++)\n\t\t\t str += data[i]+\" \";\n\t\t return str;\n\t }",
"private static void show(Comparable[] a) {\n for (int i = 0; i < a.length; i++) {\n System.out.printf(\"a[%d] = %s\\n\", i + 1, a[i].toString());\n }\n System.out.println();\n }",
"public void fileOutput(String[][] arrOfstr, String fileName){\n try (Formatter output = new Formatter(fileName)) {\n //loop through 2d array and output it to text file\n for (int counter2 = 0; counter2 < 3; counter2++) {\n for (int counter3 = 0; counter3 < arrOfstr[counter2].length; counter3++) {\n output.format(\"%s \", arrOfstr[counter2][counter3]);\n }\n output.format(\"%n\");\n }\n //catch if file not found\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"\\nContents of SimpleArray:\\n\" + Arrays.toString(array);\n\t}",
"static void printArray(Comparable[] arr) {\n\t\tint n = arr.length;\n\t\tfor (int i = 0; i < n; ++i)\n\t\t\tSystem.out.print(arr[i] + \" \");\n\t\tSystem.out.println();\n\t}",
"public String toString(){\r\n\t \tString str = \"\";\r\n\t \tint i=0;\r\n\t \tfor(; i < numElems-1; i++){\r\n\t \t\tstr += array[i].toString();\r\n\t \t\tstr += \", \";\r\n\t \t}\r\n\t \tstr += array[numElems-1];\r\n\t \treturn str;\r\n\t }",
"@Override\n public String toString() {\n String arrString = \"\";\n \n //loop to add all the elements\n for (int i = 0; i < this.array.length; i++) {\n arrString = arrString + \" \" + this.array[i];\n }\n \n return arrString;\n }",
"private static void printSortedArray(String outputFileName) {\n try {\n File output = new File(outputFileName);\n BufferedWriter writer = new BufferedWriter(new FileWriter(output));\n for(int i = 0; i < array.length; i++) {\n writer.write(array[i] + \"\\n\");\n }\n writer.close();\n }\n catch(IOException e){\n System.out.println(\"File Error\");\n }\n }",
"private static void displayAnswers(String[] answers, int size)\n {\n System.out.println(\"/////////////////////////List of Answers//////////////////////////\");\n for(int i=0; i < size ; i++){ // Go through every elements in []answers array\n System.out.printf(\"%s \\n\",answers[i]); //\n }//for j\n System.out.println();\n }",
"public static void printArray(int[] arr) {\n String output = \"[ \";\n for (int i = 0; i < arr.length; i++) {\n if (i != 0) {\n output += \", \" + arr[i];\n }\n else {\n output += arr[i];\n }\n }\n output += \" ]\";\n System.out.println(output);\n }",
"public void print() {\n\t\t\tfor (int i = 0; i < nowLength; i++) {\n\t\t\t\tSystem.out.print(ray[i] + \" \");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}",
"public static void displayValues(int [] array){\n System.out.println(Arrays.toString(array));\n }",
"public void stringPresentation () {\n System.out.println ( \"****** String Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n bookArrayList = new Request().postRequestBook();\n for (Book book: bookArrayList) {\n System.out.println(book.toString());\n }\n ClientEntry.showMenu ( );\n\n }",
"@Override\n\tpublic String toString() {\n\t\tString s = \"\";\n\t\ts += \"[\";\n\t\tif (size() > 0) {\n\t\t\ts += arr[0];\n\t\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\t\ts += \", \" + arr[i];\n\t\t\t}\n\t\t}\n\t\ts += \"]\";\n\t\treturn s;\n\t}",
"public String toString() {\r\n\t\tString elements = \"<\";\r\n\t\t\r\n\t\tfor(int i = 0; i < count; i++) {\r\n\t\t\telements += \" \" + array[i];\r\n\t\t\t}\r\n\t\t\r\n\t\t\telements += \" >\";\r\n\t\t\treturn elements;\r\n\t }",
"public void print(String s, int[] array) {\r\n int size = array.length;\r\n \r\n System.out.println(s);\r\n for (int i = 0; i < size ; i++) {\r\n System.out.print( array[i] +\" \");\r\n }\r\n System.out.println();\r\n }",
"public static void mostrararray(int[] miarray) {\r\n\r\n\t\tfor (int i = 0; i < miarray.length; i++) {\r\n\r\n\t\t\tSystem.out.print(miarray[i] + \" \");\r\n\r\n\t\t}\r\n\r\n\t}",
"private static void writeArray(int[] randomArray) {\n\t\tfor (int i = 0; i < randomArray.length; i++) {\r\n\t\t\tSystem.out.print(\" \" + i + \" . eleman :\" + randomArray[i]);\r\n\t\t}\r\n\t}",
"private static void printArray(int[] arr) {\n\t\tSystem.out.println(\"array is \");\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public String toString()\n\t{\n\t\tSystem.out.print(\"Array list contains: [ \");\n\t\tfor(int i=0; i<size; i++)\n\t\t\tSystem.out.print(myArray[i]+ \", \");\n\t\treturn\" ]\";\n\t}",
"private void mostrarArrayDNI(String[] arrayDNI) {\r\n System.out.println(\"\\nDNI Introduïts\");\r\n System.out.println(\"--------------\");\r\n for (int x = 0; x < arrayDNI.length; x++) {\r\n System.out.println(arrayDNI[x]);\r\n }\r\n System.out.println(\"\\n\");\r\n }",
"private static void printArray(int[] array) {\n\t\tif(array==null){\n\t\t\tSystem.out.println(\"Nothing in the array.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint Len = array.length;\n\t\tfor(int i=0; i<Len; i++){\n\t\t\tSystem.out.print(\" \" + array[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}",
"private static <T> void show(Comparable<T>[] a) {\n\t\tfor(int i=0; i<a.length; i++) \r\n\t\t\tSystem.out.print(a[i] + \" \");\r\n\t\tSystem.out.println();\r\n\t}",
"public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }",
"public static void printArray(int[] array){\n for(int i=0;i<array.length;i++){\n System.out.print(array[i]+\" \");\n }}",
"public void display(){\n \tfor(int i=0;i<size;i++){\n \tSystem.out.print(elements[i]+\" \");\n \t}\n\t}",
"private static void printArray(int[] array) {\n\t\tfor(int i: array) {\n\t\t\tSystem.out.print(i + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"@Override\n public void run() {\n\tInteger[] array1 = {1,2,3};\n\tString[] array2 = {\"Vipul\",\"Ankita\"};\n\tprint(array1);\n\tprint(array2);\n\t\n }",
"public synchronized String toString()\n\t{\n\t\treturn Arrays.toString(array);\n\t}",
"public void printArray(long[] array) {\n System.out.println(Arrays.toString(array));\n }",
"private String array2CSV(){\r\n String returnMsg = \"\";\r\n for(String[] line : this.linesToPrint){\r\n for(String item : line){\r\n returnMsg += item;\r\n returnMsg += \";\";\r\n }\r\n returnMsg = returnMsg.substring(0,returnMsg.length()-1);\r\n returnMsg += \"\\n\";\r\n }\r\n return returnMsg;\r\n }",
"@Override\n public String toString() {\n if (arrayLen != 1) {\n setLength(stringArray, arrayLen);\n String s = join(stringArray);\n // Create a new array to allow everything to get GC'd.\n stringArray = new String[] {s};\n arrayLen = 1;\n }\n return stringArray[0];\n }",
"public static void printArray(double[] array) {\r\n\r\n for (int i = 0; i < array.length; i++) {\r\n System.out.print(\"[\" + array[i] + \"] \");\r\n }\r\n System.out.println(\"\");\r\n }",
"public static void displayArray(Participant[] participantArray)\n {\n for(int x = 0; x < participantArray.length; ++x)\n System.out.println(\"\\nParticipant #\" + (x + 1) +\n participantArray[x].toString());\n }",
"public String toString()\n {\n\n String elem;\n StringBuilder s = new StringBuilder();\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array1[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n s.append('|');\n for(int i = 0 ; i < n ; i++)\n {\n elem = Integer.toString(array2[i]);\n s.append(elem);\n if(i < (n-1))\n s.append(',');\n }\n return s.toString();\n }",
"static void printArray(int[] array) {\n\n\n for (int i = 0; i < array.length; i++) {\n\n System.out.print(array[i] + \" \");\n\n\n }\n\n System.out.println();\n\n }",
"public void mostrar() {\r\n\t\tfor (int i = 0; i < bolsa.length; i++) {\r\n\t\t\tSystem.out.printf(\"#%d: %d\\t\", i, bolsa[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public String toString() {\n String[] collect = new String[this.array.length];\n for (int i = 0; i < this.array.length; i++) {\n collect[i] = String.valueOf(this.array[i]);\n }\n return \"[\" + String.join(\";\", collect) + \"]\";\n }",
"private static void display(int[] arr) {\n\t\tif (null != arr && arr.length > 0) {\n\t\t\tfor (int n : arr) {\n\t\t\t\tSystem.out.print(n + \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public String toString(ArrayList<Integer> arr) {\n\t\tString mssg = \"\";\n\t\tfor(int i = 0; i < arr.size(); i++) {\n\t\t\tmssg += arr.get(i) + \" \";\n\t\t}\n\t\treturn mssg;\n\t}",
"private String buildOutput() {\n\t\tStringBuilder out = new StringBuilder();\n\t\tfor (char[] col : this.output) {\n\t\t\tfor (char c : col) {\n\t\t\t\tout.append(c);\n\t\t\t}\n\t\t\tout.append(\"\\n\");\n\t\t}\n\n\t\treturn out.toString();\n\t}",
"public static void printArray(double[] a) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.format(\"%.2f \",a[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public static void printCharArray(java.io.PrintWriter ostr, String s) {\n ostr.print(\"{\");\n for (int i = 0; i < s.length(); i++) {\n ostr.print(\"0x\" + Integer.toHexString((int)s.charAt(i)) + \", \");\n }\n ostr.print(\"0}\");\n }",
"public void printByteArray(byte[] text){\n for (int j = 0; j < text.length; ++ j)\n System.out.printf (\"%02x\", text[j]);\n System.out.println();\n }",
"@Override\n public String toString() {\n return \"array read on \" + System.identityHashCode(array) + \"; index=\" + index + \"; stream=\" + getStream().getStreamNumber();\n }",
"public static void printArray(int[] array) {\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.print(\"array = [\");\r\n\t\tfor (int i=0; i < SIZE_OF_ARRAY-1; i++)\r\n\t\t\tSystem.out.print(\"\"+ array[i]+\" | \");\r\n\t\tSystem.out.println(\"\"+ array[SIZE_OF_ARRAY-1]+\"]\");\r\n\t\tSystem.out.println(\"-------------------------------------------------\"\r\n\t\t\t\t+ \"-------------------\");\r\n\t}",
"public static void displayArr(int[] a)\r\n {\r\n for(int i : a)\r\n System.out.print(i + \" \");\r\n System.out.println();\r\n }"
]
| [
"0.73077",
"0.7027714",
"0.6682315",
"0.64938843",
"0.64582264",
"0.6447932",
"0.64463556",
"0.64133894",
"0.6407089",
"0.63579124",
"0.6350905",
"0.63245964",
"0.6317407",
"0.62700963",
"0.62465084",
"0.6245697",
"0.6215244",
"0.6215244",
"0.6209983",
"0.6206571",
"0.6198197",
"0.6177804",
"0.61703604",
"0.6166851",
"0.61643493",
"0.61591125",
"0.6083504",
"0.6073986",
"0.6073986",
"0.60672194",
"0.6063834",
"0.605576",
"0.6046704",
"0.6037884",
"0.6037188",
"0.6033048",
"0.6016166",
"0.60006785",
"0.5976082",
"0.5952444",
"0.5935135",
"0.5924868",
"0.5921542",
"0.5921275",
"0.5916641",
"0.59159756",
"0.59152436",
"0.5905261",
"0.5892381",
"0.58900106",
"0.58839196",
"0.588345",
"0.5861764",
"0.5861494",
"0.5857922",
"0.584088",
"0.58322406",
"0.5816849",
"0.5808332",
"0.57953674",
"0.5781406",
"0.5774931",
"0.57656616",
"0.57533747",
"0.57391375",
"0.5733075",
"0.57281315",
"0.57145673",
"0.57071775",
"0.570562",
"0.5702273",
"0.56940746",
"0.5687771",
"0.56853855",
"0.5680726",
"0.5666979",
"0.5666765",
"0.5650774",
"0.56501305",
"0.56366587",
"0.563525",
"0.56328136",
"0.5626711",
"0.5625815",
"0.56248903",
"0.56239575",
"0.5611059",
"0.55982006",
"0.55886036",
"0.55790687",
"0.55785596",
"0.55763173",
"0.5574932",
"0.5570355",
"0.5566842",
"0.5566744",
"0.55599034",
"0.55523175",
"0.55512685",
"0.5542979"
]
| 0.67888176 | 2 |
This function is responsible to display a string to the out stream | public void displayData(String str); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void display(String s)\r\n\t{\r\n\t\t//Use to write a string to a line in the output stream without moving the cursor\r\n\t\t//to the next line.\r\n\t\toutStream.print(s);\r\n\t}",
"private void printOut(String s)\n {\n outVideo.println(s);\n outVideo.flush();\n }",
"public void output (String s)\n\t{\n\t\toutputArea.append (s + \"\\n\");\n\t\toutputArea.setCaretPosition (outputArea.getDocument().getLength());\n\t}",
"protected void print(Object s) throws IOException {\n out.write(Convert.escapeUnicode(s.toString()));\n }",
"public static void displayln(String s)\r\n\t{\n\t\toutStream.println(s);\r\n\t}",
"@Override\r\n\tpublic void display(String s) {\n\t\tSystem.out.println(s + \"바나나입니다.\");\r\n\t}",
"protected void println(String string) {\n this.output.println(string);\n this.dataSize += (string.getBytes().length);\n }",
"protected void printOut(String str)\n { if (stdout!=null) System.out.println(str);\n }",
"static void show(final String string) {\n System.out.println(string);\n }",
"@Override\n\t\t\tpublic void print(String str) {\n\t\t\t\tSystem.out.println(str);\n\t\t\t}",
"void drawOutput(String output);",
"protected void printString(String str, Writer out) throws IOException {\r\n if (currentFormat.textNormalize) {\r\n str = Text.normalizeString( str);\r\n }\r\n else if (currentFormat.textTrim) {\r\n str = str.trim();\r\n }\r\n out.write( escapeElementEntities( str));\r\n }",
"public void println(String s) {\n\t\t\n\t\t//out.println(s);\n\t\toutput += s;\n\t}",
"public void print(String someString) {\r\n try {\r\n innerStream.write(someString.getBytes(\"UTF8\"));\r\n } catch (Exception e) {\r\n LogManager.getRootLogger().error(e);\r\n }\r\n }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}",
"public static void raw(String string){\n System.out.print(string);\n return;\n }",
"protected void writeln(String s)\n {\n out.println(s);\n }",
"void PrintOnScreen(String toPrnt);",
"protected void print(String string) {\n this.output.print(string);\n this.dataSize += (string.getBytes().length);\n }",
"private void display(String msg) {\n\t\tString msgF = \"\\tClient- \" + msg + \"\\n\\n >> \";\n System.out.print(msgF);\n }",
"public boolean outputText(String incomingText)\n\t{\n\t\ttxtArea.append(\"[\"+getTimeStamp()+\"] \"+ incomingText +\"\\n\");\n\t\tSystem.out.println(\"[\"+getTimeStamp()+\"] \"+ incomingText +\"\\n\");//##testing##\n\t\treturn true;\n\t}",
"private void writeText(HttpServletResponse response, String outText) throws IOException {\n\t\tresponse.setContentType(CONTENT_TYPE);\n\t\tPrintWriter out = response.getWriter();\n\t\tout.print(outText);\n\t\t// 將輸出資料列印出來除錯用\n\t\tSystem.out.println(\"output: \" + outText);\n\n\t}",
"public void stringPresentation () {\n System.out.println ( \"****** String Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n bookArrayList = new Request().postRequestBook();\n for (Book book: bookArrayList) {\n System.out.println(book.toString());\n }\n ClientEntry.showMenu ( );\n\n }",
"void print(String string) { printStream.print(string); }",
"public void display()\n\t{\n\t\tSystem.out.println(data+\" \");\n\t}",
"public void printToOutputBox(String stringToPrint) {\n try {\n ((JTextArea)scrollOutput.getViewport().getView()).append(\"\" + stringToPrint+\"\\n\");\n }\n catch (NullPointerException | IndexOutOfBoundsException e) {\n // Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, e);\n }\n }",
"public void displayTextToConsole();",
"public String toString(){\n\t\tFileHandler fw = new FileHandler(); //Create new object for file write\n \tformatText(title);\n \tformatText(snippet);\n \tsnippet = removeLineBreak(snippet);\n \t\n \t//Print out contents to screen\n \tSystem.out.println(urlLabel + link);\n \tSystem.out.println(titleLabel + title);\n\t\tSystem.out.println(snippetLabel + snippet);\n\t\t\n\t\t//Write contents to file\n\t\tfw.writeToFile(urlLabel, link, fw.file, false);\n\t\tfw.writeToFile(titleLabel, title, fw.file, false);\n\t\tfw.writeToFile(snippetLabel, snippet, fw.file, false);\n\t\tfw.writeToFile(\"---------- END OF RESULT -----------\",\"\", fw.file, false);\n\t return \"\";\n\t}",
"protected synchronized void writeOut(String data) {\n\t\t\n\t\tif(output != null)\n\t\t\toutput.println(data);\n\t\telse\n\t\t\tSystem.out.println(this.name + \" output not initialized\");\n\t}",
"public void writeString() {\n\t\tIterator iterator = stringList.listIterator(0);\n\t\tString out = \"\";\n\t\twhile(iterator.hasNext()) {\n\t\t\tout += iterator.next();\n\t\t}\n\t\tSystem.out.println(out);;\n\t}",
"private void print(final String string)\n\t{\n\t\tchatTextArea.append(string);\n\t\tmainFrame.revalidate();\n \t\tmainFrame.repaint();\n\t\tchatVeritacalScrollBar.setValue(chatVeritacalScrollBar.getMaximum());\n\t}",
"private void visualizeData(String s) {\n System.out.println(\"Data received: \" + s);\n }",
"java.lang.String getOutput();",
"public void write(String str) {\n Log.d(TAG, \"-> \"+str);\n mmOutStream.println(str);\n mmOutStream.flush();\n }",
"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 void write (String s) {\n pw.print(s);\n }",
"public void println(String str){\n\t\tSystem.out.println(str);\n\t}",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"public void printString() {\n\t\tSystem.out.println(name);\n\t\t\n\t\t\n\t}",
"public void displayPreviewMessage(String str) {\n }",
"public void print(String string){\n // make sure that the global weka log picks it up\n System.out.print(string);\n logStatusMessage(string); \n }",
"@Override\n public void showText(String s){\n }",
"private static void displayMessage(String message) {\n\t\toutput.append(message);\n\t}",
"public void outputToBrowser(HttpServletResponse res, String output) {\n\t\tPrintWriter out;\n\t\ttry {\n\t\t\tout = new PrintWriter(res.getOutputStream());\n\t\t\tint length = output.length();\n\t\t\tres.setContentType(\"text/html\");\n\t\t\tres.setContentLength(length);\n\t\t\tout.println(output);\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected abstract String display();",
"protected void output(String message) {\n \t\tSystem.out.print(message);\n \t}",
"String getOutput();",
"@Override\r\n public void display(PrintWriter out) {\r\n if (this.nrBasic > 0) {\r\n out.println(\"Basic\");\r\n } else {\r\n super.display(out);\r\n }\r\n }",
"private void sout() {\n\t\t\n\t}",
"public void display() {\n System.out.println(toString());\n }",
"public void writeln (String s) {\n pw.println(s);\n }",
"public void send(String str){\n\t\tif(out != null){\n\t\t\tout.println(str);\n\t\t}\n\t}",
"public void println(String string) {\n // make sure that the global weka log picks it up\n System.out.println(string); \n logStatusMessage(string);\n }",
"private void printOut(String[] printerMakerResult)\n {\n //shows user the printerMaker result\n\n for(int i=0;i<printerMakerResult.length;i++)\n {\n outVideo.println(printerMakerResult[i]);\n outVideo.flush();\n }\n }",
"void write(String s)\n\t\t{\n\t\t\tfor(int i = 0; i < sp; i++)\n\t\t\t\tXMLStream.print(\" \");\n\t\t\tXMLStream.println(\"<\" + s + \"/>\");\n\t\t}",
"public void printString(String str) {\r\n System.out.println(str);\r\n }",
"public void display(String result);",
"void printTextToConsole(String content){\n }",
"void msgDisplay(String s);",
"public void readAndPrint(String str);",
"private void print(String s) {\n if (console) {\n con.cPrint(s);\n return;\n }\n System.out.print(s);\n\n }",
"private void displayLine()\n {\n System.out.println(\"#################################################\");\n }",
"public void displayToScreen(String str){\r\n textPane1.setText(str);\r\n paintDiamond();\r\n }",
"@Override\n public void write (final String s, final int off, final int len)\n {\n if (text != null)\n {\n text.append (s.substring (off, off + len));\n if ((col += len) > wrap)\n println ();\n }\n else\n {\n super.write (s, off, len);\n flush ();\n }\n }",
"public String outputString(Text text) {\r\n StringWriter out = new StringWriter();\r\n try {\r\n output(text, out); // output() flushes\r\n } catch (IOException e) { }\r\n return out.toString();\r\n }",
"private void display(String string) {\n JOptionPane.showMessageDialog(null, string);\n }",
"public void printToScreen() {\n String type = \"\";\n switch (this.type) {\n case 1:\n type = \"Fashion\";\n break;\n case 2:\n type = \"Electronic\";\n break;\n case 3:\n type = \"Consumable\";\n break;\n case 4:\n type = \"Household appliance\";\n break;\n }\n// System.out.println(\"Type : \" + type);\n System.out.printf(\"%6d%15s%6f%20s\\n\", id, name, price, type);\n }",
"private void ex01(){\n String student = \"Student\";\n int id;\n String full;\n myWindow.clearOut();\n id = 31552544;\n full = student + \" \" + id;\n myWindow.readIn(id);\n myWindow.writeOut(\"Hello, \");\n myWindow.writeOutLine(full);\n //YOUR CODE ABOVE HERE\n }",
"private void outputResults(String s){\n \tjTextAreaResults.setRows(jTextAreaResults.getRows()+ s.split(\"\\n\").length );\n \tjTextAreaResults.setText(jTextAreaResults.getText()+\"\\n\"+s);\n }",
"public void streamOutput(String type,Object currentObj);",
"protected void dbgOut(String text_out)\n {\n if (debugOn)\n System.out.println(text_out);\n }",
"private void display(String msg) {\n cg.append(msg + \"\\n\");\n }",
"public void display(StringBuffer stream) {\n\t\tint iSet, iMove;\n\n\t\tstream.append(\"Player \" + (iPlayer + 1) + \"\\n\\n\");\n\n\t\tfor (iSet = 0; iSet < movesLists.length; iSet++) {\n\n\t\t\tstream.append(\"\\tInformation Set \" + (iSet + 1) + \"\\n\\n\");\n\t\t\tfor (iMove = 0; iMove < movesLists[iSet].size(); iMove++) {\n\t\t\t\tstream.append(\"\\t\\t\"\n\t\t\t\t\t\t+ movesLists[iSet].get(iMove)\n\t\t\t\t\t\t+ \"\\t->\\t\"\n\t\t\t\t\t\t+ roundValue(((Double) probsLists[iSet].get(iMove))\n\t\t\t\t\t\t\t\t.doubleValue()) + \"\\n\");\n\t\t\t}\n\t\t\tstream.append(\"\\n\");\n\t\t}\n\t}",
"public void println(String pVal) throws IOException {\n mPrintWriter.println(pVal);\n }",
"public void println( String string )\n\t{\n\t\tSystem.out.println( string );\n\t}",
"private void consoleOutput(String textOutput){\r\n\t\tSystem.out.println(textOutput);\r\n\t}",
"private void display(String msg) {\n\t\tif(cg == null)\n\t\t\tSystem.out.println(msg); // println for Console mode\n\t\telse\n\t\t\tcg.append(msg + \"\\n\"); // Append to, for example, JTextArea in the ClientGUI\n\t}",
"void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}",
"private synchronized void display(String msg) {\n\n\t\t//guiConversation.append(msg);\n\t\tSystem.out.println(msg);\n\t}",
"private void display(String msg) {\n\t\t\tif(clientGui == null)\n\t\t\t\tSystem.out.println(msg); \t// terminal\n\t\t\telse\n\t\t\t\tclientGui.append(msg + \"\\n\");\t// JTextArea\n\t}",
"private void out(Object obj) {\r\n\t\tSystem.out.println(deb + obj.toString());\r\n\t}",
"@Override\n\tpublic void printtest(String s)\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Now executing the command \" + s + \"...\");\n\t\tSystem.out.println(\"The Results of this command are:\");\n\t\tif(!s.contentEquals(\"toString\")) System.out.println(toStringCursor());\n\t\telse System.out.println(toString());\n\t}",
"private void println(String s) {\n if (console) {\n con.cPrintln(s);\n return;\n }\n System.out.println(s);\n\n }",
"public String toString() { \r\n\t\tif(sw!=null) { return sw.toString(); } \r\n\t\telse { return \"AsciiWriter \"+wr; }\r\n\t}",
"public String getText(){\n return this.sOut.toString();\n }",
"@Override\n public void render() {\n System.out.println(this.input);\n return;\n }",
"public void print( String string )\n\t{\n\t\tSystem.out.print( string );\n\t}",
"private void showMessage ( final String str ){\r\n\t\tSwingUtilities.invokeLater(\r\n\t\t\t\tnew Runnable(){\r\n\t\t\t\t\tpublic void run(){\r\n\t\t\t\t\t\tdisplayArea.append(str);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n );\r\n\t}",
"private void redirectSystemStreams() {\r\n\t\tOutputStream out = new OutputStream() {\r\n\t\t\t@Override\r\n\t\t\tpublic void write(int b) throws IOException {\r\n\t\t\t\tupdateTextArea(String.valueOf((char) b));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b, int off, int len) throws IOException {\r\n\t\t\t\tupdateTextArea(new String(b, off, len));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b) throws IOException {\r\n\t\t\t\twrite(b, 0, b.length);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tSystem.setOut(new PrintStream(out, true));\r\n\t\tSystem.setErr(new PrintStream(out, true));\r\n\t}",
"@Override\n public void println ()\n {\n if (text != null)\n {\n text.append (Out.NL);\n col = 0;\n }\n else\n super.println ();\n }",
"public String display();",
"public String echo(String str) {\n\t\treturn str;\r\n\t}",
"public void display(){\n System.out.println(\"\\n Car 2:\");\n System.out.println(toString());\n }",
"public static void sendToStdOut(String output) {\n System.out.println(output);\n }",
"public String outputString(ProcessingInstruction pi) {\r\n StringWriter out = new StringWriter();\r\n try {\r\n output(pi, out); // output() flushes\r\n } catch (IOException e) { }\r\n return out.toString();\r\n }",
"public String echo(String str) {\n\t\t\treturn str;\r\n\t\t}",
"private void displayData(String data) {\n if (data != null) {\n mTerminal.append((\"\\n\" + data));\n setShareIntent(mTerminal.getText().toString());\n }\n }",
"private void print(String text) {\n\t\tSystem.out.println(text);\n\t}",
"public void display(String s) {\r\n\t\tif(s != null && s != \"\"){\r\n\t\t\tSystem.out.println(s);\r\n\t\t}else{\r\n\t\t\tSystem.out.println(s);\r\n\t\t}\r\n\t}",
"void print(String s) {\n System.out.format(\"%s\", this.toString(s));\n }"
]
| [
"0.7685223",
"0.7282721",
"0.693309",
"0.6690836",
"0.6589915",
"0.65164435",
"0.6486417",
"0.6425449",
"0.6409507",
"0.6358205",
"0.6338979",
"0.63277096",
"0.6294504",
"0.6287549",
"0.6262403",
"0.6254749",
"0.6246486",
"0.6246026",
"0.6232917",
"0.62066716",
"0.6201512",
"0.61960286",
"0.6196027",
"0.61908937",
"0.618584",
"0.61640656",
"0.6156411",
"0.6148313",
"0.61480296",
"0.61452943",
"0.6133925",
"0.6124851",
"0.6109554",
"0.6098778",
"0.60963404",
"0.6096219",
"0.6081337",
"0.6073195",
"0.60632664",
"0.6050857",
"0.604713",
"0.60400784",
"0.6028837",
"0.6019143",
"0.60145694",
"0.60139024",
"0.59962314",
"0.59823036",
"0.59612596",
"0.59608567",
"0.59499174",
"0.59484273",
"0.5943547",
"0.5943167",
"0.5940738",
"0.593934",
"0.59384865",
"0.5938277",
"0.5926265",
"0.5921239",
"0.5921196",
"0.5919765",
"0.5917827",
"0.591192",
"0.5907516",
"0.5904127",
"0.59035975",
"0.589913",
"0.58934593",
"0.58847684",
"0.58734167",
"0.58663607",
"0.5861196",
"0.58550334",
"0.5852683",
"0.5840236",
"0.58147526",
"0.5814172",
"0.5811469",
"0.58079225",
"0.5805643",
"0.5804625",
"0.58041555",
"0.58031034",
"0.5791817",
"0.578009",
"0.5776105",
"0.57711506",
"0.57656527",
"0.57597303",
"0.57501435",
"0.5737452",
"0.5736717",
"0.5734156",
"0.5732878",
"0.5728034",
"0.5723004",
"0.5719724",
"0.5714328",
"0.57135177"
]
| 0.6028558 | 43 |
This function is responsible to display a 3d maze to the out stream | public void displayData(Maze3d maze); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showGenerate3dMaze(String message);",
"Maze3d generate(int x, int y, int z) throws Exception;",
"public void displayMaze(){\n System.out.println(\"---- SOLUTION------\");\n for(int j = 0; j < maze.length; j++){\n for(int k = 0; k < maze[0].length; k++){\n System.out.print(maze[j] [k]);\n }\n System.out.println();\n\n }\n }",
"public void draw() {\t\n \t\t// Draw the centre of the maze\n \t\tPoint2D.Double centrePoint = GetCentrePoint();\n \t\t// if size is a factor of 10, this will be a multiple of 2\n \t\tint centreSize = getCentreSize();\n \t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n \t\tStdDraw.filledSquare(centrePoint.getX(), centrePoint.getY(), (centreSize / 2)-0.05);\n \t\t//Draw all the power switches\n \t\tdrawPowerSwitch(switches[0].x, switches[0].y);\n \t\tdrawPowerSwitch(switches[1].x, switches[1].y);\n \t\tdrawPowerSwitch(switches[2].x, switches[2].y);\n \t\tdrawPowerSwitch(switches[3].x, switches[3].y);\n \t\t\n \t\t\n \t\t// Get the data from the maze\n \t\tboolean south[][] = getSouth();\n \t\tboolean north[][] = getNorth();\n \t\tboolean east[][] = getEast();\n \t\tboolean west[][] = getWest();\n \t\tboolean sensor[][] = ms.getMotionSensors();\n \n \t\t//Draw the maze and motion sensors\n \t\tfor (int x = 1; x <= size; x++) {\n \t\t\tfor (int y = 1; y <= size; y++) {\n \t\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n \t\t\t\tif (south[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y, x + 1, y);\n \t\t\t\t}\n \t\t\t\tif (north[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y + 1, x + 1, y + 1);\n \t\t\t\t}\n \t\t\t\tif (west[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y, x, y + 1);\n \t\t\t\t}\n \t\t\t\tif (east[x][y]) {\n \t\t\t\t\tStdDraw.line(x + 1, y, x + 1, y + 1);\n \t\t\t\t}\n \t\t\t\tif (sensor[x][y]) {\n \t\t\t\t\tStdDraw.setPenColor(StdDraw.MAGENTA);\n \t\t\t\t\tStdDraw.filledTriangle(x + 0.5, y + 0.4, 0.5);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"String printMaze(boolean showBarriers);",
"public void print_maze () {\n \n System.out.println();\n\n for (int row=0; row < grid.length; row++) {\n for (int column=0; column < grid[row].length; column++)\n System.out.print (grid[row][column]);\n System.out.println();\n }\n\n System.out.println();\n \n }",
"public void printMaze()\r\n\t{\r\n\t\tfor(int i = 0;i<maze.length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tfor(int j = 0;j<maze[0].length;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tfor(int k = 0;k<maze[0][0].length;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(maze[i][j][k]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t}",
"public void printDebugMaze() {\n\t\tSystem.out.println(width);\n\t\tSystem.out.println(height);\n\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tSystem.out.print(maze[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public void showMazeSize(int size);",
"public void print(){\n for(int i=0; i<maze.length;i+=1) {\n for (int j = 0; j < maze[0].length; j += 1){\n if(i == start.getRowIndex() && j == start.getColumnIndex())\n System.out.print('S');\n else if(i == goal.getRowIndex() && j == goal.getColumnIndex())\n System.out.print('E');\n else if(maze[i][j]==1)\n System.out.print(\"█\");\n else if(maze[i][j]==0)\n System.out.print(\" \");\n\n\n }\n System.out.println();\n }\n }",
"Maze makeMaze();",
"public Maze(byte[] arr)\n {\n try {\n\n int rowSizeInt;\n int colSizeInt;\n int entryRowInt;\n int entryColInt;\n int exitRowInt;\n int exitColInt;\n\n byte[] RowSizeBytes = Arrays.copyOfRange(arr, 0, 4);\n byte[] ColSizeBytes = Arrays.copyOfRange(arr, 4, 8);\n\n byte[] StartRowBytes = Arrays.copyOfRange(arr, 8, 12);\n byte[] StartColBytes = Arrays.copyOfRange(arr, 12, 16);\n\n byte[] EndRowBytes = Arrays.copyOfRange(arr, 16, 20);\n byte[] EndColBytes = Arrays.copyOfRange(arr, 20, 24);\n\n rowSizeInt = ByteBuffer.wrap(RowSizeBytes).getInt();\n colSizeInt = ByteBuffer.wrap(ColSizeBytes).getInt();\n entryRowInt = ByteBuffer.wrap(StartRowBytes).getInt();\n entryColInt = ByteBuffer.wrap(StartColBytes).getInt();\n exitRowInt = ByteBuffer.wrap(EndRowBytes).getInt();\n exitColInt = ByteBuffer.wrap(EndColBytes).getInt();\n\n this.data = new int[rowSizeInt][colSizeInt];\n\n //Sets the visual int matrix\n int byteArrIndex = 24;\n for (int i = 0; i < rowSizeInt; i++)\n {\n for (int j = 0; j < colSizeInt; j++)\n {\n this.data[i][j] = arr[byteArrIndex++];\n }\n }\n\n this.PositionMatrix = new Position[rowSizeInt / 2 + 1][colSizeInt / 2 + 1];\n int counter = 0;\n for (int i = 0; i < rowSizeInt / 2 + 1; i++)\n {\n for (int j = 0; j < colSizeInt / 2 + 1; j++)\n {\n this.PositionMatrix[i][j] = new Position(i, j);\n this.PositionMatrix[i][j].setId(counter);\n counter++;\n }\n }\n\n this.data[entryRowInt * 2][entryColInt * 2] = 0;\n this.data[exitRowInt * 2][exitColInt * 2] = 0;\n\n intToPositionArr(this.PositionMatrix, data);\n\n this.data[entryRowInt * 2][entryColInt * 2] = 83;\n this.data[exitRowInt * 2][exitColInt * 2] = 69;\n\n this.entry = PositionMatrix[entryRowInt][entryColInt];\n this.exit = PositionMatrix[exitRowInt][exitColInt];\n }\n\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"void maze(char[][] mz, int p_row, int p_col, int h_row, int h_col){\n \n if (mz[p_row][p_col] == 'F'){\n //Base case -End maze\n printMaze(mz);\n System.out.println(\"Maze Successfully Completed!\");\n } else {\n if (h_row-1 == p_row){\n //If facing East\n if(mz[h_row][h_col] != '#'){ //If right turn available\n //Update player\n mz[p_row][p_col] = 'X'; \n p_row += 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col -= 1;\n printMaze(mz); \n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row][p_col+1] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col += 1;\n printMaze(mz);\n } else if (mz[p_row-1][p_col] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 2;\n h_col += 1;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 2;\n h_col -= 1;\n printMaze(mz);\n }\n }\n } else if (h_row+1 == p_row){\n //If facing West\n if(mz[h_row][h_col] != '#'){\n //Look right\n mz[p_row][p_col] = 'X'; \n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 0;\n h_col += 1;\n printMaze(mz);\n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row][p_col-1] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col -= 1;\n printMaze(mz);\n } else if (mz[p_row+1][p_col] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 1;\n p_col -= 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col -= 1;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col += 1;\n printMaze(mz);\n }\n }\n \n } else if (h_col -1 == p_col){\n //If facing North\n if(mz[h_row][h_col] != '#'){ \n //Take right if available\n //Update player\n mz[p_row][p_col] = 'X'; \n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col -= 0;\n printMaze(mz); \n } else {\n //If hand position is a wall check in front of player\n if(mz[p_row-1][p_col] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col += 0;\n printMaze(mz);\n } else if (mz[p_row][p_col-1] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col -= 2;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col -= 2;\n printMaze(mz);\n }\n }\n } else if (h_col+1 == p_col){\n //If facing South\n if(mz[h_row][h_col] != '#'){\n //Look right\n mz[p_row][p_col] = 'X'; \n p_row -= 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col += 0;\n printMaze(mz);\n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row+1][p_col] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col += 0;\n printMaze(mz);\n } else if (mz[p_row][p_col+1] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col += 2;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col += 1;\n printMaze(mz);\n }\n }\n \n }\n maze(mz, p_row, p_col, h_row, h_col); \n }\n }",
"public Maze3d() {\r\n\t\tthis.maze = null;\r\n\t\tthis.startPosition = null;\r\n\t\tthis.goalPosition = null;\r\n\t}",
"public void showSaveMaze(String message);",
"public static void show(int mat3d[][][]) {\n //for loop which runs 3 times again\n for(int s=0; s<3; s++) {\n //this for loop does the same as the first method\n for(int j=0; j<(3+2*s); j++) {\n //for follows pattern of array ^^\n for(int c=0; c<(s+j+1); c++) {\n //prints of the array slot for s,j,c\n System.out.print(mat3d[s][j][c]);\n //prints out a blank space to seperate\n System.out.print(\" \");\n }\n //prints out blank line to seperate \n System.out.println();\n }\n \n System.out.println();\n }\n }",
"public void render(String filename) throws FileNotFoundException {\r\n int pix_h, pix_w;\r\n pix_h = (int) window.getPix_h();\r\n pix_w = (int) window.getPix_w();\r\n \r\n Pixel[][] grid = new Pixel[pix_h][pix_w];\r\n \r\n for(int i = 0; i < pix_h; i++) {\r\n for(int j = 0; j < pix_w; j++) {\r\n \r\n Point p = window.getDelta_h().const_mult(j).vec_add(window.getDelta_w().const_mult(i)).point_add(window.getUl());\r\n Vec d = p.point_sub(window.getEye()).normalize();\r\n Ray r = new Ray(d, window.getEye());\r\n Color c = ray_trace(r);\r\n \r\n grid[i][j] = new Pixel(p, c);\r\n }\r\n }\r\n \r\n try(\r\n PrintWriter toFile = new PrintWriter(filename);\r\n ){\r\n toFile.println(\"P3\");\r\n toFile.println(pix_w + \" \" + pix_h);\r\n toFile.println(255);\r\n \r\n for(int i = 0; i < pix_h; i++) {\r\n int k = 0;\r\n for(int j = 0; j < pix_w; j++) {\r\n if(k>10) {\r\n toFile.println();\r\n k = 0;\r\n }\r\n toFile.print(\r\n (int) Math.ceil(grid[i][j].getColor().getR()*255) + \" \" +\r\n (int) Math.ceil(grid[i][j].getColor().getG()*255) + \" \" +\r\n (int) Math.ceil(grid[i][j].getColor().getB()*255) + \" \");\r\n k++;\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n }",
"public void display(PApplet g) { // this needs to be changed to a smaller radius to avoid unecessary computations.\n\t\tfor (Block b : maze)\n\t\t\tb.display(g);\n\t}",
"public void display() {\n\t\tSystem.out.println(x + \" \" + y + \" \" + z);\n\t}",
"public void render() {\n // Every cell is an individual quad\n for (int x = 0; x < z.length-1; x++)\n {\n beginShape(QUAD_STRIP);\n for (int y = 0; y < z[x].length; y++)\n {\n // one quad at a time\n // each quad's color is determined by the height value at each vertex\n // (clean this part up)\n stroke(0xffff69b4);\n stroke(0xffbbbbbb);\n float currentElevation = z[x][y];\n float currentShade = map(currentElevation, -120, 120, 0, 255);\n // fill(currentShade, 255);\n noFill();\n float xCoordinate = x*scl-w/2;\n float yCoordinate = y*scl-h/2;\n vertex(xCoordinate, yCoordinate, z[x][y]);\n vertex(xCoordinate + scl, yCoordinate, z[x+1][y]);\n }\n endShape();\n }\n }",
"public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }",
"public Maze3D generate(int depth, int row, int column) throws Exception {\n if (row < 2 || column < 2 || depth < 2)\n throw new Exception(\"Invalid inputs Maze most be at least 2x2x2\");\n Maze3D myMaze = new Maze3D(depth,row, column); //create an empty maze\n for (int r = 0; r <row ; r++) { //init to 1 all the cells\n for (int c = 0; c <column ; c++) {\n for (int d = 0; d < depth; d++) {\n myMaze.maze[d][r][c]= 1;\n\n }\n }\n }\n boolean [][][] VisitedCells = new boolean[depth][row][column]; //create an boolean matrix that saved cell as visited or not\n int randomDepth = Ran.nextInt((depth)); //select random depth number\n int randomRow = Ran.nextInt((row)); //select random row number\n Position3D StartPos = new Position3D(randomDepth,randomRow, 0);\n myMaze.maze[randomDepth][randomRow][0]= 0; //change selected start position to 0\n myMaze.setStartPosition(StartPos); //set the start position of the maze\n changeStatus(randomDepth,randomRow,0,VisitedCells); //change Start position as visited\n //choose random goal position cell in the maze\n int randomDepth_2 = Ran.nextInt((depth)); //select random depth number\n int randomRow_2 = Ran.nextInt((row)); //select random row number\n Position3D EndPos = new Position3D(randomDepth_2,randomRow_2, (column-1));\n myMaze.maze[randomDepth_2][randomRow_2][(column-1)]= 0; //change selected goal position to 0\n myMaze.setGoalPosition(EndPos); //set the start position of the maze\n changeStatus(randomDepth_2,randomRow_2,(column-1),VisitedCells);//mark as visited\n stack.push(StartPos);\n while (!stack.empty()) {\n Position3D curr = stack.pop();\n //check if the current cell have any neighbors which have not been visited, and find them all\n ArrayList<Position3D> neighbors = findNeighbors(curr, myMaze, VisitedCells); //find all options of moving forward\n if (neighbors.size() > 0) { //iterate over all neighbors\n stack.push(curr); //push curr into the stack\n myMaze.maze[curr.getDepthIndex()][curr.getRowIndex()][curr.getColumnIndex()] = 0; //change it's place to 1\n Position3D Neighbor = ChooseNeighbor(neighbors); //choose one unvisited random neighbor\n changeStatus(Neighbor.getDepthIndex(),Neighbor.getRowIndex(),Neighbor.getColumnIndex(), VisitedCells); //mark him as visited neighbor\n removeWall(curr, Neighbor, VisitedCells, myMaze); //remove the wall & mark as visited\n stack.push(Neighbor);\n }\n }\n //handle odd maze problems - open the walls which surround the goal cell\n for (int d = EndPos.getDepthIndex()-1; d < EndPos.getDepthIndex()+2; d++) {\n for (int r = EndPos.getRowIndex()-1; r < EndPos.getRowIndex()+2; r++) {\n for (int c = EndPos.getColumnIndex()-1; c < EndPos.getColumnIndex()+1; c++) {\n if (pointOnGrid(d,r,c,myMaze)){\n myMaze.maze[d][r][c]= 0; //change selected cell to 0\n changeStatus(d,r,c,VisitedCells);\n }\n }}\n }\n return myMaze;\n }",
"private void renderSkybox(int p_73971_1_, int p_73971_2_, float p_73971_3_) {\n\t\tthis.mc.getFramebuffer().unbindFramebuffer();\n\t\tGlStateManager.viewport(0, 0, 256, 256);\n\t\tthis.drawPanorama(p_73971_1_, p_73971_2_, p_73971_3_);\n\t\tthis.rotateSkybox();\n\t\tthis.mc.getFramebuffer().bindFramebuffer(true);\n\t\tGlStateManager.viewport(0, 0, this.mc.displayWidth, this.mc.displayHeight);\n\t\tTessellator var4 = Tessellator.getInstance();\n\t\tWorldRenderer var5 = var4.getWorldRenderer();\n\t\tvar5.startDrawingQuads();\n\t\tfloat var6 = this.width > this.height ? 120.0F / (float) this.width : 120.0F / (float) this.height;\n\t\tfloat var7 = (float) this.height * var6 / 256.0F;\n\t\tfloat var8 = (float) this.width * var6 / 256.0F;\n\t\tvar5.func_178960_a(1.0F, 1.0F, 1.0F, 1.0F);\n\t\tint var9 = this.width;\n\t\tint var10 = this.height;\n\t\tvar5.addVertexWithUV(0.0D, (double) var10, (double) this.zLevel, (double) (0.5F - var7),\n\t\t\t\t(double) (0.5F + var8));\n\t\tvar5.addVertexWithUV((double) var9, (double) var10, (double) this.zLevel, (double) (0.5F - var7),\n\t\t\t\t(double) (0.5F - var8));\n\t\tvar5.addVertexWithUV((double) var9, 0.0D, (double) this.zLevel, (double) (0.5F + var7), (double) (0.5F - var8));\n\t\tvar5.addVertexWithUV(0.0D, 0.0D, (double) this.zLevel, (double) (0.5F + var7), (double) (0.5F + var8));\n\t\tvar4.draw();\n\t}",
"public void renderImage()\n {\n for (int i = 0; i < _imageWriter.getNx(); i++)\n {\n for (int j = 0; j < _imageWriter.getNy(); j++)\n {\n Ray ray;\n ray = new Ray(_scene.getCamera().constructRayThroughPixel(_imageWriter.getNx(), _imageWriter.getNy(),j,i,\n _scene.getScreenDistance(), _imageWriter.getWidth(),_imageWriter.getHeight()));\n\n if(i==255 && j==255)\n System.out.print(\"111\");\n Map<Geometry, List<Point3D>> intersectionPoints = new HashMap<>(getSceneRayIntersections(ray));\n\n if(intersectionPoints.isEmpty())\n _imageWriter.writePixel(j, i, _scene.getBackground());\n else\n {\n Map<Geometry, Point3D> closestPoint = getClosestPoint(intersectionPoints);\n Map.Entry<Geometry,Point3D> entry;\n Iterator<Entry<Geometry, Point3D>> it = closestPoint.entrySet().iterator();\n entry = it.next();\n _imageWriter.writePixel(j, i, calcColor(entry.getKey(), entry.getValue(), ray));\n }\n\n }\n }\n //printGrid(1);\n\n }",
"public Maze3d(int[][][] m)\r\n\t{\r\n\t\tthis.maze = m;\r\n\t}",
"public void outputVisualObjects ()\n\t{\n\t\toutput (\"\\n> (visual-objects)\\n\");\n\t\tif (model!=null) model.outputVisualObjects();\n\t}",
"public void startApp() throws MIDletStateChangeException {\n // Catch exceptions here before they go too far.\n try {\n // Create a new M3G world.\n myWorld = new World();\n\n // In this world, we have a root group which will contain everything else\n // and which is tilted 15 degrees towards the camera.\n Group rootGroup2 = new Group();\n myWorld.addChild(rootGroup2);\n rootGroup2.setOrientation(15.0f, 1.0f, 0.0f, 0.0f);\n\n // Under this, we have a second group which will be the one we rotate\n // to get an all-round view of the game grid.\n rootGroup = new Group();\n rootGroup2.addChild(rootGroup);\n\n // We now create a parallel camera - parallel projection is faster than\n // perspective, and since we are rendering 512 separate objects that's a\n // saving worth having.\n Camera myCamera = new Camera();\n myWorld.addChild(myCamera);\n myWorld.setActiveCamera(myCamera);\n\n myCamera.setParallel(CUBESIZE * 1.5f, 1.0f, -CUBESIZE, CUBESIZE);\n\n // This is geometry data for the shape that represents a single cell - a cube. \n // It consists of 6 triangle strips, one for each face, each of which\n // has 2 triangles (and therefore 4 vertices). We will set the vertex\n // colors so that the colors of the sides are different from each other.\n\n // This data is shared by all the cells in the grid, rather than each having\n // its own copy. This keeps memory overhead down.\n int[][] aaStripLengths = {\n { 4 },\n { 4 },\n { 4 },\n { 4 },\n { 4 },\n { 4 }\n };\n\n // These are the vertex positions\n short[] aPos =\n {\n \n // Front\n -1, -1, 1, // B\n 1, -1, 1, // C\n -1, 1, 1, // A\n 1, 1, 1, // D\n // Bottom\n -1, -1, -1, // F\n 1, -1, -1, // G\n -1, -1, 1, // B\n 1, -1, 1, // C\n // Top\n -1, 1, 1, // A\n 1, 1, 1, // D\n -1, 1, -1, // E\n 1, 1, -1, // H\n // Right\n 1, 1, 1, // D\n 1, -1, 1, // C\n 1, 1, -1, // H\n 1, -1, -1, // G\n // Left\n -1, -1, 1, // B\n -1, 1, 1, // A\n -1, -1, -1, // F\n -1, 1, -1, // E\n // Back\n 1, -1, -1, // G\n -1, -1, -1, // F\n 1, 1, -1, // H\n -1, 1, -1 // E\n };\n\n // These are the colors for the vertices\n byte[] aCol =\n {\n \n // Front\n -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, // Bottom\n 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, // Top\n 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, \n // Right\n -1, -1, 0, -1, -1, 0, -1, -1, 0, -1, -1, 0, \n // Left\n -1, 0, -1, -1, 0, -1, -1, 0, -1, -1, 0, -1, // Back\n 0, -1, -1, 0, -1, -1, 0, -1, -1, 0, -1, -1,\n };\n\n // Calculate the number of submeshes and vertices directly from the sizes\n // of the arrays. This prevents us getting a mismatch if we decide to change\n // the cells to a different shape later.\n int cSubmeshes = aaStripLengths.length;\n int cVertices = aPos.length / 3;\n\n // We will share a default appearance between all the faces on the cube. Each\n // face is a separate \"submesh\" - it can have a separate appearance if we wish.\n Appearance app = new Appearance();\n\n // We need to specify an appearance and the submesh data for each face.\n Appearance[] appa = new Appearance[cSubmeshes];\n IndexBuffer[] iba = new IndexBuffer[cSubmeshes];\n\n int startIndex = 0;\n\n for (int i = 0; i < cSubmeshes; i++) {\n // We use the same appearance for each.\n appa[i] = app;\n\n // And we create a new triangle strip array for each submesh.\n // The start index for each one just follows on from previous submeshes.\n iba[i] = new TriangleStripArray(startIndex, aaStripLengths[i]);\n\n for (int j = 0; j < aaStripLengths[i].length; j++)\n startIndex += aaStripLengths[i][j];\n }\n\n // Now we create a new vertex buffer that contains all the above information\n VertexBuffer vertexBuffer = new VertexBuffer();\n vertexBuffer.setDefaultColor(0xFFFFFFFF); // white\n\n {\n // Copy the vertex positions into a VertexArray object\n VertexArray vaPos = new VertexArray(cVertices, 3, 2);\n vaPos.set(0, cVertices, aPos);\n vertexBuffer.setPositions(vaPos, 0.40f, null);\n }\n\n {\n // Copy the vertex colors into a VertexArray object\n VertexArray vaCols = new VertexArray(cVertices, 3, 1);\n vaCols.set(0, cVertices, aCol);\n vertexBuffer.setColors(vaCols);\n }\n\n // Create all the cells, in a random state.\n // The X, Y and Z positions of the cells range from -CUBESIZE/2 to +CUBESIZE/2 units.\n // They are all children of the rootGroup object.\n cells = new Mesh[NUMCELLS];\n nextState = new byte[NUMCELLS];\n currentState = new byte[NUMCELLS];\n rand = new Random();\n\n int index = 0;\n\n for (int i = 0; i < CUBESIZE; i++) {\n float x = ((i * 2) - CUBESIZE) * 0.5f;\n\n for (int j = 0; j < CUBESIZE; j++) {\n float y = ((j * 2) - CUBESIZE) * 0.5f;\n\n for (int k = 0; k < CUBESIZE; k++) {\n float z = ((k * 2) - CUBESIZE) * 0.5f;\n\n Mesh m = new Mesh(vertexBuffer, iba, appa);\n m.setTranslation(x, y, z);\n rootGroup.addChild(m);\n\n // This test gives a 1 in 4 chance of being alive at the start\n currentState[index] = (rand.nextInt() > 0x40000000) ? (byte)1 : (byte)0;\n cells[index++] = m;\n }\n }\n }\n\n // Attach to display\n myDisplay.setCurrent(myCanvas);\n\n // Force a repaint so that we get the update loop started.\n myCanvas.repaint();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void display() {\n JFrame win = new JFrame(\"My Maze\");\n win.setLocation(25, 25);\n win.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n win.add(this);\n win.pack();\n win.setVisible(true);\n }",
"public void showLoadMaze(String message);",
"public void drawMaze(PaintEvent e)\r\n\t{\r\n\t\tString temp=\"\";\r\n\t\tboardGame=new MazeCanvas[this.matrix.getRows()][this.matrix.getCols()];\r\n\t\t\r\n\t\t\tfor(int i=0;i<matrix.getRows();i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j=0;j<matrix.getCols();j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(i!=matrix.getRows()-1 && j!=matrix.getCols())\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(matrix.getCell(i, j).getUp()==true)\r\n\t\t\t\t\t\ttemp+=\"U\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getRight()==true)\r\n\t\t\t\t\t\ttemp+=\"R\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getDown()==true)\r\n\t\t\t\t\t\ttemp+=\"D\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getLeft()==true)\r\n\t\t\t\t\t\ttemp+=\"L\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tboardGame[i][j]=new MazeCanvas(this, SWT.FILL);\r\n\t\t\t\t\tboardGame[i][j].setcImage(new Image(this.getDisplay(), \"Images//FloorImages//floor\"+temp+\".jpg\"));\r\n\t\t\t\t\tboardGame[i][j].setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));\r\n\t\t\t\t\tboardGame[i][j].drawCell(e, (getSize().x/matrix.getCols())*j , (getSize().y/matrix.getRows())*i , (getSize().x/matrix.getCols()), (getSize().y/matrix.getRows()));\r\n\t\t\t\t\ttemp=\"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tboardGame[i][j]=new MazeCanvas(this, SWT.FILL);\r\n\t\t\t\t\tboardGame[i][j].setcImage(new Image(this.getDisplay(), \"Images//FloorImageSolution//floor\"+temp+\".jpg\"));\r\n\t\t\t\t\tboardGame[i][j].setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));\r\n\t\t\t\t\tboardGame[i][j].drawCell(e, (getSize().x/matrix.getCols())*j , (getSize().y/matrix.getRows())*i , (getSize().x/matrix.getCols()), (getSize().y/matrix.getRows()));\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnewmaze=false;\r\n\t\t\t\r\n\t}",
"public void showGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n clientOutputStream.print(grid[i][j] + \" \");\n }\n clientOutputStream.println();\n }\n clientOutputStream.println();\n clientOutputStream.flush();\n }",
"public void print(){\n for (int i = 0; i < rows; i++)\n {\n for (int j = 0; j < cols; j++)\n {\n if (start.getCol()==j&&start.getRow()==i)\n System.out.print('S');\n else if (end.getCol()==j&&end.getRow()==i)\n System.out.print('E');\n else if (maze[i][j]==1)\n System.out.print('\\u2588');\n else if (maze[i][j]==0)\n System.out.print('\\u2591');\n if (j!=cols-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n //System.out.println(\"-------\");\n }",
"public void Display() \n {\n float theta = velocity.heading() + PI/2;\n fill(175);\n stroke(0);\n pushMatrix();\n translate(pos.x,pos.y);\n rotate(theta);\n beginShape();\n vertex(0, -birdSize*2);\n vertex(-birdSize, birdSize*2);\n vertex(birdSize, birdSize*2);\n endShape(CLOSE);\n popMatrix();\n }",
"public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }",
"public String toString() {\n String mazeVisual = \"\";\n Maze routeMaze = this.getMaze();\n for (int row = 0; row < routeMaze.getTiles().size(); row++) {\n for (int col = 0; col < routeMaze.getTiles().get(0).size(); col++) {\n if (route.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"*\");\n } else if (popped.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"-\");\n } else {\n mazeVisual = (mazeVisual + routeMaze.getTiles().get(row).get(col).toString());\n }\n if ((col + 1) == routeMaze.getTiles().get(0).size()) {\n mazeVisual = mazeVisual + \"\\n\";\n }\n }\n }\n return mazeVisual;\n }",
"private void mainScene(){\n // create maze load and route load/save buttons\n Button loadMazeButton = new Button(\"Load Maze\");\n loadMazeButton.setStyle(buttonStyle);\n loadMazeButton.setMinHeight(50);\n loadMazeButton.setMinWidth(170);\n Button loadRouteButton = new Button(\"Load Route\");\n loadRouteButton.setStyle(buttonStyle);\n loadRouteButton.setMinHeight(50);\n loadRouteButton.setMinWidth(170);\n Button saveRouteButton = new Button(\"Save Route\");\n saveRouteButton.setStyle(buttonStyle);\n saveRouteButton.setMinHeight(50);\n saveRouteButton.setMinWidth(170);\n\n // organise them in a HBox\n HBox routeBox = new HBox();\n routeBox.setAlignment(Pos.CENTER);\n routeBox.setSpacing(10);\n routeBox.setPadding(new Insets(10.0));\n routeBox.getChildren().addAll(\n loadMazeButton, loadRouteButton, saveRouteButton\n );\n\n // create maze display and display it in a VBox\n vMaze = null;\n tileBox = new VBox();\n tileBox.setAlignment(Pos.CENTER);\n tileBox.setBackground(new Background(\n new BackgroundFill(\n Color.rgb(176,188,60),\n CornerRadii.EMPTY,\n Insets.EMPTY\n )\n ));\n\n // which further goes into a HBox\n // this creates two layers of background: the interior\n // of the maze and the exterior to the left and right\n HBox tileBackground = new HBox();\n tileBackground.setAlignment(Pos.CENTER);\n tileBackground.setMinHeight(VisualMaze.DISPLAY_HEIGHT);\n tileBackground.setMinWidth(VisualMaze.DISPLAY_WIDTH);\n tileBackground.getChildren().add(tileBox);\n\n // create step button and label for messages\n Button stepButton = new Button(\"Next Step\");\n stepButton.setMinHeight(50);\n stepButton.setMinWidth(80);\n stepButton.setStyle(buttonStyle);\n mainMessage = new Label();\n mainMessage.setFont(new Font(\"Arial\", 30));\n mainMessage.setTextFill(Color.web(\"#c4bd52\"));\n mainMessage.setContentDisplay(ContentDisplay.CENTER);\n\n // and organise them on a borderpane\n BorderPane stepBox = new BorderPane();\n stepBox.setPadding(new Insets(10.0));\n stepBox.setRight(stepButton);\n stepBox.setLeft(mainMessage);\n\n // load all containers on a root container\n VBox root = new VBox();\n root.setAlignment(Pos.CENTER);\n root.setBackground(new Background(\n new BackgroundFill(\n Color.rgb(80,76,76),\n CornerRadii.EMPTY,\n Insets.EMPTY\n )\n ));\n root.getChildren().addAll(routeBox, tileBackground, stepBox);\n \n // set the main scene\n main = new Scene(root);\n\n // set the button events\n stepButton.setOnAction(e->{nextStep();});\n loadMazeButton.setOnAction(e->{requestInput(RequestType.MAZE);});\n loadRouteButton.setOnAction(e->{requestInput(RequestType.LROUTE);});\n saveRouteButton.setOnAction(e->{requestInput(RequestType.SROUTE);});\n }",
"public void printMaze(Position p){\r\n for (int i = 0; i < mazeData[i].length; i++) {\r\n for (int j = 0; j < mazeData.length; j++) {\r\n if(p.getX()==j&&p.getY()==i)\r\n System.out.print(\"X\");\r\n else\r\n System.out.print(mazeData[j][i]);\r\n }\r\n System.out.print(\"\\n\");\r\n }\r\n }",
"public interface View {\r\n\t/**\r\n\t * starting the user interface\r\n\t */\r\n\tpublic void start();\r\n\t/**\r\n\t * returning the command that the user entered\r\n\t * @return string with the command that user entered\r\n\t */\r\n\tpublic String getUserCommand();\r\n\t/**\r\n\t * display the error in the commands that the client wrote\r\n\t * @param message string telling what is the error\r\n\t */\r\n\tpublic void showError(String error);\r\n\t/**\r\n\t * display the outcome of command:dir <path>\r\n\t * displaying the files and directories of the specified path\r\n\t * @param dirArray string's array with the names of files and directories in the specified path\r\n\t */\r\n\tpublic void showDirPath(String[] list);\r\n\t/**\r\n\t * display the message that the maze is ready\r\n\t * @param message string with the massege:maze is ready\r\n\t */\r\n\tpublic void showGenerate3dMaze(String message);\r\n\t/**\r\n\t * displaying the specified maze\r\n\t * @param byteArr byte array representing the maze\r\n\t */\r\n\tpublic void showDisplayName(byte[] byteArr);\r\n\t/**\r\n\t * displaying the cross section which the client asked for\r\n\t * @param crossSection 2d array with the cross section asked\r\n\t */\r\n\tpublic void showDisplayCrossSectionBy(int[][] crossSection);\r\n\t/**\r\n\t * displaying the string:the maze has been saved\r\n\t * @param str string with the word:maze has been saved\r\n\t */\r\n\tpublic void showSaveMaze(String message);\r\n\t/**\r\n\t * displaying the string:the maze has been loaded\r\n\t * @param str string with the word:maze has been loaded\r\n\t */\r\n\tpublic void showLoadMaze(String message);\r\n\t/**\r\n\t * display the maze size in memory(bytes)\r\n\t * @param size the size of the maze in bytes\r\n\t */\r\n\tpublic void showMazeSize(int size);\r\n\t/**\r\n\t * display the maze size in file(bytes)\r\n\t * @param length the size of the maze in file\r\n\t */\r\n\tpublic void showFileSize(long size);\r\n\t/**\r\n\t * displaying the string:solution for maze is ready\r\n\t * @param message string with the words:solution for maze is ready\r\n\t */\r\n\tpublic void showSolveMaze(String message);\r\n\t/**\r\n\t * displaying the solution of the specified maze\r\n\t * @param sol the solution of the maze\r\n\t */\r\n\tpublic void showDisplaySolution(Solution<Position> solution);\r\n\t/**\r\n\t * a command that only gui has:solve from <name> <algorithm> <x> <y> <z>\r\n\t * showing the outcome of this command,in other wards display the solution from specific point in the maze\r\n\t * @param message message that the solution is ready\r\n\t */\r\n\tpublic void showSolveFrom(String message);\r\n\t/**\r\n\t * a command that only gui has:display half solution <name>\r\n\t * displaying a solution for the specified maze\r\n\t * @param solution solution that was calculated in the model\r\n\t */\r\n\tpublic void showDisplayHalfSolution(Solution<Position> solution);\r\n\t/**\r\n\t * display a message about some error\r\n\t */\r\n\tpublic void showExit();\r\n\t/**\r\n\t * displaying help,which shows the commands the client can write\r\n\t */\r\n\tpublic void showHelp();\r\n\t/**\r\n\t * a command that only gui have: load xml\r\n\t * @param p properties object that was loaded by the xml file\r\n\t */\r\n\tpublic void showLoadXML(Properties p);\r\n}",
"public void showSolveMaze(String message);",
"protected void skybox() {\n Triple pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, col1, col2, col3, col4;\n\n pos1 = new Triple(0, 0, 0);\n pos2 = new Triple(100, 0, 0);\n pos3 = new Triple(100, 0, 100);\n pos4 = new Triple(0, 0, 100);\n pos5 = new Triple(0, 100, 0);\n pos6 = new Triple(100, 100, 0);\n pos7 = new Triple(100, 100, 100);\n pos8 = new Triple(0, 100, 100);\n\n // Front Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0),\n new Vertex(pos2, .25, 0),\n new Vertex(pos3, .25, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos3, .25, 1),\n new Vertex(pos4, 0, 1),\n new Vertex(pos1, 0, 0),\n 21 ) );\n\n // Left Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 1, 0),\n new Vertex(pos5, .75, 0),\n new Vertex(pos8, .75, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos8, .75, 1),\n new Vertex(pos4, 1, 1),\n new Vertex(pos1, 1, 0),\n 21 ) );\n\n // Right Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos2, .25, 0),\n new Vertex(pos6, .5, 0),\n new Vertex(pos7, .5, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, .5, 1),\n new Vertex(pos3, .25, 1),\n new Vertex(pos2, .25, 0),\n 21 ) );\n\n // Back Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos5, .75, 0),\n new Vertex(pos6, .5, 0),\n new Vertex(pos7, .5, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, .5, 1),\n new Vertex(pos8, .75, 1),\n new Vertex(pos5, .75, 0),\n 21 ) );\n\n // Top Triangles\n// frozenSoups.addTri( new Triangle(new Vertex(pos4, 0, 0),\n// new Vertex(pos3, 0, 1),\n// new Vertex(pos7, 1, 1),\n// 20 ) );\n\n// frozenSoups.addTri( new Triangle(new Vertex(pos7, 0, 0),\n// new Vertex(pos8, 1, 0),\n// new Vertex(pos4, 1, 1),\n// 20 ) );\n }",
"public void display() { \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tSystem.out.print(\"|\"); \r\n\t\t\tfor (int j=0; j<3; j++){ \r\n\t\t\t\tSystem.out.print(board[i][j] + \"|\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(); \r\n\t\t}\r\n\t\tSystem.out.println(); \r\n\t}",
"protected void renderOrthographics() {\n\t\tthis.enableOrthoMode(true); // set orthographic projection mode\r\n\t\t/*\r\n\t\t * for (each node in orthoQueue) { node.draw(this); //tell node to draw\r\n\t\t * itself using this renderer }\r\n\t\t */\r\n\t\tdrawQueue(orthoQueue);\r\n\t\tthis.enableOrthoMode(false); // return to perspective projection\r\n\t}",
"public static void render() throws IOException, Exception {\n for(int y = MAP_HEIGHT; y!=0; --y) {\n for(int x=MAP_WIDTH;x!=0; --x) {\n draw[x][y] = true;\n if(y <2 || MAP_Y_MAX<y || x<2 || MAP_X_MAX<x) map[x][y] =0;\n }\n }\n //frames++;\n for(int y = MAP_HEIGHT-1; y!=2; --y) {\n int step = -1;\n int kezdo = MAP_X_MAX;\n int vegzo = 0;\n if(rnd.nextBoolean()) {\n step = 1;\n kezdo = 2;\n vegzo = MAP_X_MAX+2;\n }\n int oldx=kezdo;\n char oldtype = map[kezdo][y];\n for(int x=kezdo;x!=vegzo;x=x+step) {\n if(oldtype!=0)if(!Start.isPaused) Physics.handleTemp(x, y);\n if(map[x][y] == oldtype) continue;\n if(step == 1) {\n if(oldtype!=0)drawMaterial(oldx,y,x-step,oldtype);\n if(!Start.isPaused)Properties.phys.get((int)oldtype).invoke(null, oldx,y,x-step,oldtype);\n// callPhysics(Properties.anns.get((int)oldtype), new Object[] {oldx,y,x-step,(char)oldtype});\n //Physics.bytype(oldx,y,x-step,oldtype);\n } else {\n if(oldtype!=0)drawMaterial(x-step,y,oldx,oldtype);\n if(!Start.isPaused)Properties.phys.get((int)oldtype).invoke(null, x-step,y,oldx,oldtype);\n// callPhysics(Properties.anns.get((int)oldtype), new Object[] {x-step,y,oldx,(char)oldtype});\n //Physics.bytype(x-step,y,oldx,oldtype);\n }\n oldx=x;\n oldtype=map[oldx][y];\n }\n }\n //toRender.draw(0, 0);\n }",
"public void show() {\n\t\tfor (Leaf l : leaves) {\n\t\t\tl.show();\n\t\t}\n\t\tfor (int i = 0; i < branches.size(); i++) {\n\t\t\tBranch3D b = branches.get(i);\n\t\t\tif (b.getParent() != null) {\n\t\t\t\t/*\n\t\t\t\t * core.stroke(255); core.line(b.getPos().x, b.getPos().y,\n\t\t\t\t * b.getParent().getPos().x, b.getParent().getPos().y);\n\t\t\t\t */\n\t\t\t\tfloat sw = PApplet.map(i, 0, branches.size(), 6, 0);\n\t\t\t\tcore.strokeWeight(sw);\n\t\t\t\tcore.stroke(255);\n\n\t\t\t\tcore.line(b.getPos().x, b.getPos().y, b.getPos().z, b.getParent().getPos().x, b.getParent().getPos().y,\n\t\t\t\t\t\tb.getParent().getPos().z);\n\n\t\t\t\t/*\n\t\t\t\t * core.pushMatrix(); core.translate(b.getPos().x, b.getPos().y,\n\t\t\t\t * b.getPos().z); float height = b.getPos().z -\n\t\t\t\t * b.getParent().getPos().z;\n\t\t\t\t * DrawUtils.getInstance().drawCylinder(core, 1, 1, height, 3);\n\t\t\t\t * core.popMatrix();\n\t\t\t\t */\n\t\t\t}\n\t\t}\n\t}",
"public void print(final PrintStream output) {\r\n // TODO your job\r\n // print row by row\r\n PrintStream rowPrinter = new PrintStream(output);\r\n for ( char[] x : mazeData){\r\n rowPrinter.println(x);\r\n }\r\n }",
"public void display() {\n float dRadial = reactionRadialMax - reactionRadial;\n if(dRadial != 0){\n noStroke();\n reactionRadial += abs(dRadial) * radialEasing;\n fill(255,255,255,150-reactionRadial*(255/reactionRadialMax));\n ellipse(location.x, location.y, reactionRadial, reactionRadial);\n }\n \n // grow text from point of origin\n float dText = textSizeMax - textSize;\n if(dText != 0){\n noStroke();\n textSize += abs(dText) * surfaceEasing;\n textSize(textSize);\n }\n \n // draw agent (point)\n fill(255);\n pushMatrix();\n translate(location.x, location.y);\n float r = 3;\n ellipse(0, 0, r, r);\n popMatrix();\n noFill(); \n \n // draw text \n textSize(txtSize);\n float lifeline = map(leftToLive, 0, lifespan, 25, 255);\n if(mouseOver()){\n stroke(229,28,35);\n fill(229,28,35);\n }\n else {\n stroke(255);\n fill(255);\n }\n \n text(word, location.x, location.y);\n \n // draw connections to neighboars\n gaze();\n }",
"void display() {\n pushMatrix();\n pushStyle();\n \n translate(_x, _y);\n rotate(_rotVector.heading() - _front);\n if (_flipped) scale(-1, 1);\n imageMode(CENTER);\n image(_img, 0, 0, _w, _h);\n \n popStyle();\n popMatrix();\n }",
"private void drawMaze(Graphics g) {\n\t\tGraphics2D g2 = (Graphics2D) g;\n\n\t\t//draw the maze \n\t\tfor (int i = 0; i < maze.numRows(); i++) {\n\t\t\tfor (int j = 0; j < maze.numCols(); j++) {\n\t\t\t\tif (maze.hasWallAt(new MazeCoord(i, j))) {\n\t\t\t\t\tg2.setColor(Color.BLACK);\n\t\t\t\t} else {\n\t\t\t\t\tg2.setColor(Color.WHITE);\n\t\t\t\t}\n\t\t\t\tint x = START_X + BOX_WIDTH * i;\n\t\t\t\tint y = START_Y + BOX_HEIGHT * j;\n\t\t\t\tg2.fill(new Rectangle(y, x, BOX_WIDTH, BOX_HEIGHT));\n\t\t\t}\n\t\t}\n\n\t\t//draw the boundary\n\t\tg2.setColor(Color.BLACK);\n\t\tg2.draw(new Rectangle(START_X, START_Y, BOX_WIDTH * maze.numCols(), BOX_HEIGHT * maze.numRows()));\n\n\t\t//draw the entry block\n\t\tint y = START_Y + maze.getEntryLoc().getRow() * BOX_HEIGHT + INSET;\n\t\tint x = START_X + maze.getEntryLoc().getCol() * BOX_WIDTH + INSET;\n\t\tg2.setColor(Color.YELLOW);\n\t\tg2.fill(new Rectangle(x, y, BOX_WIDTH - INSET * 2, BOX_HEIGHT - INSET * 2));\n\n\t\t//draw the exit block\n\t\ty = START_Y + maze.getExitLoc().getRow() * BOX_HEIGHT + INSET;\n\t\tx = START_X + maze.getExitLoc().getCol() * BOX_WIDTH + INSET;\n\t\tg2.setColor(Color.GREEN);\n\t\tg2.fill(new Rectangle(x, y, BOX_WIDTH - INSET * 2, BOX_HEIGHT - INSET * 2));\n\t}",
"protected abstract void draw(Maze maze);",
"@Override\r\n\tpublic Maze3d generate(int x_axis, int y_axis, int z_axis, IPickCellStrategy pickStrategy) {\r\n\t\tMaze3d maze = new Maze3d(x_axis, y_axis, z_axis);\r\n\t\tPickStrategy = pickStrategy;\r\n\t\t//step 1\r\n\t\t//Let listOfCells be a list of cells, initially empty\r\n\t\tSystem.out.println(\"Starting Growing Tree Maze3d Generator. TotalX = \" + maze.getX_axis() + \"TotalY = \" + maze.getY_axis() + \"TotalZ = \" + maze.getZ_axis());\r\n\t\tList<Position> listOfCells = new ArrayList<Position>();\r\n\t\t\r\n\t\t//step 2\r\n\t\t//Add one cell to C, at random\r\n\t\tRandom rand = new Random(); \r\n\t\tint x = randOddNumber(maze.getX_axis());\r\n\t\tint y = randOddNumber(maze.getY_axis()); \r\n\t\tint z = randOddNumber(maze.getZ_axis()); \t\t\r\n\t\tlistOfCells.add(new Position(x,y,z));\r\n\t\tSystem.out.println(\"Random start = \" + listOfCells.get(0).toString());\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//Repeat steps 3-4 until C is empty\r\n\t\twhile(listOfCells.isEmpty() == false){\r\n\t\t\t//step 3\r\n\t\t\t//Choose a cell c from C\r\n\t\t\tPosition chosenCell = PickStrategy.Pick(listOfCells);\r\n\t\t\t\r\n\t\t\t//step 4\r\n\t\t\t//If c has unvisited neighbors:\r\n\t\t\t//Choose an unvisited neighbor of cell c. Call it neighborCell\r\n\t\t\tList<Position> listOfUnvisitedNeighbors = maze.getUnvisitedNeighbors(chosenCell);\r\n\t\t\tif(listOfUnvisitedNeighbors.isEmpty() == false){\r\n\t\t\t\tPosition unvisitedNeighbor = listOfUnvisitedNeighbors.get(rand.nextInt(listOfUnvisitedNeighbors.size()));\r\n\t\t\t\tmaze.RemoveWallBetweenCells(chosenCell, unvisitedNeighbor);\r\n\t\t\t\tlistOfCells.add(unvisitedNeighbor);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tlistOfCells.remove(chosenCell);\r\n\t\t}\r\n\t\t\r\n\t\t//Generate entrance and exit\r\n\t\tboolean foundStart= false;\r\n\t\tboolean foundEnd= false;\r\n\t\tList<Position> temp = null;\r\n\t\t\r\n\t\tfor (int m = 1; m < maze.getX_axis()-1; m=m+2) {\r\n\t\t\tfor (int n = 1; n < maze.getY_axis()-1; n=n+2) {\r\n\t\t\t\tif (maze.getValueAt(m,n,1) == 0 && !foundStart)\r\n\t\t\t\t{\r\n\t\t\t\t\tmaze.setStartPosition(new Position(m,n,1));\r\n\t\t\t\t\tfoundStart = true;\r\n\t\t\t\t\tbreak;\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\tfor (int m = 1; m < maze.getX_axis()-1; m=m+2) {\r\n\t\t\tfor (int n = 1; n < maze.getY_axis()-1; n=n+2) {\r\n\t\t\t\tif (maze.getValueAt(m,n,maze.getZ_axis()-2) == 0 && !foundEnd)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tmaze.setGoalPosition(new Position(m,n,maze.getZ_axis()-2));\r\n\t\t\t\t\tfoundEnd = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\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\treturn maze;\r\n\t}",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"private void makeMaze() {\n\t\ttry {\n\t\t\tthis.end = ImageIO.read(new File(\"images/tiles/end_locked.png\"));\n\t\t\tint w = getWidth()/gui.getModel().getDifficulty();\n\t\t\tint h = getHeight()/gui.getModel().getDifficulty();\n\t\t\tint difficulty = gui.getModel().getDifficulty();\n\t\t\tmazeImage = new BufferedImage(difficulty*(getWidth()/difficulty), difficulty*(getHeight()/difficulty), BufferedImage.TYPE_INT_RGB);\n\t\t\tGraphics2D g = mazeImage.createGraphics();\n\t\t\tString tile = \"\";\n\t\t\tfor (BaseState s: gui.getModel().getMaze()) {\n\t\t\t\tint x = s.getX(); int y = s.getY();\n\t\t\t\t\n\t\t\t\t// check walls\n\t\t\t\tint numSides = 0;\n\t\t\t\tboolean rightWall = false;\n\t\t\t\tboolean leftWall = false;\n\t\t\t\tboolean topWall = false;\n\t\t\t\tboolean bottomWall = false;\n\t\t\t\tif (s.getRight() == null) rightWall = true;\n\t\t\t\tif (s.getLeft() == null) leftWall = true;\n\t\t\t\tif (s.getUp() == null) topWall = true;\n\t\t\t\tif (s.getDown() == null) bottomWall = true;\n\t\t\t\tif (topWall) numSides++;\n\t\t\t\tif (leftWall) numSides++;\n\t\t\t\tif (bottomWall) numSides++;\n\t\t\t\tif (rightWall) numSides++;\n\t\t\t\t\n\t\t\t\t// find tile type\n\t\t\t\tif (numSides == 3) { // dead end\n\t\t\t\t\tif (!rightWall) tile = \"images/tiles/deadend_left.bmp\";\n\t\t\t\t\telse if (!leftWall) tile = \"images/tiles/deadend_right.bmp\";\n\t\t\t\t\telse if (!topWall) tile = \"images/tiles/deadend_bottom.bmp\";\n\t\t\t\t\telse if (!bottomWall) tile = \"images/tiles/deadend_top.bmp\";\n\t\t\t\t} else if (numSides == 2) { // corner or hall\n\t\t\t\t\t//hall\n\t\t\t\t\tif (rightWall && leftWall) tile = \"images/tiles/hall_vertical.bmp\";\n\t\t\t\t\telse if (topWall && bottomWall) tile = \"images/tiles/hall_horizontal.bmp\";\n\t\t\t\t\t//corner\n\t\t\t\t\telse if (topWall && leftWall) tile = \"images/tiles/corner_top_left.bmp\";\n\t\t\t\t\telse if (topWall && rightWall) tile = \"images/tiles/corner_top_right.bmp\";\n\t\t\t\t\telse if (bottomWall && leftWall) tile = \"images/tiles/corner_bottom_left.bmp\";\n\t\t\t\t\telse if (bottomWall && rightWall) tile = \"images/tiles/corner_bottom_right.bmp\";\n\t\t\t\t} else if (numSides == 1) { // single side\n\t\t\t\t\tif (leftWall) tile = \"images/tiles/wall_left.bmp\";\n\t\t\t\t\telse if (rightWall) tile = \"images/tiles/wall_right.bmp\";\n\t\t\t\t\telse if (topWall) tile = \"images/tiles/wall_top.bmp\";\n\t\t\t\t\telse if (bottomWall) tile = \"images/tiles/wall_bottom.bmp\";\n\t\t\t\t} else { // open\n\t\t\t\t\ttile = \"images/tiles/open.bmp\";\n\t\t\t\t}\n\t\t\t\t// draw tile\n\t\t\t\tg.drawImage(ImageIO.read(new File(tile)), x*w, y*h, w, h, null);\n\t\t\t\t\n\t\t\t\t// check for ending and draw if need be\n\t\t\t\tif (s.getX() == gui.getModel().getDifficulty() - 1 && s.getY() == gui.getModel().getDifficulty() - 1) {\n\t\t\t\t\tg.drawImage(ImageIO.read(new File(\"images/tiles/end_unlocked.png\")), x*w, y*h, w, h, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException e) {System.err.println(\"Images not found.\");}\n\t}",
"public void renderScene() {\n\t\tscene.ready=false;\n\t\tscene.num_points=0;\n\t\tscene.num_triangles=0;\n\t\tscene.num_tri_vertices=0;\n\t\tscene.list_of_triangles.clear(); // reset the List of Triangles (for z-sorting purposes)\n\t\tscene.num_objects_visible=0;\n\t\ttotal_cost=0;\n\t\tupdateLighting();\n\t\tfor (int i=0; i<num_vobjects;i++) {\n\t\t\tif (vobject[i].potentially_visible) {\n\t\t\t\tif (checkVisible(i)) {\n\t\t\t\t\tscene.num_objects_visible++;\n\t\t\t\t\tcalculateRelativePoints(i);\n\t\t\t\t\tif (scene.dot_field) {defineDots(i);} \n\t\t\t\t\tif (scene.wireframe) {defineTriangles(i);}\n\t\t\t\t\tif (scene.solid_poly) {defineTriangles(i);}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tif (scene.z_sorted) {Collections.sort(scene.list_of_triangles);}\n\t\tscene.ready=true;\n\t}",
"public Maze3d(int y,int z,int x)\r\n\t{\r\n\t\tthis.maze = new int[y][z][x];\r\n\t\tfor(int i = 0;i<y;i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0;j<z;j++)\r\n\t\t\t{\r\n\t\t\t\tfor(int k = 0;k<x;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.maze[i][j][k]=1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void renderCube(double x, double y, double z, int xDim, int yDim, int zDim, int offsetU, int offsetV, IIcon icon, int flag)\n\t{\n\t\trenderCube(x, y, z, xDim, yDim, zDim, offsetU, offsetV, icon, flag, 16, 16);\n\t}",
"void save3(PrintWriter pw){\n\t\t\t pw.println(\" \");\n\t\t\t int YEG = 0;\n int XEG = 0;\n for(int i =0; i < this.position.length;i++){\n for(int p= 0; p < this.position.length; p++){\n if(this.position[i][p] == 1){\n YEG = i;\n XEG = p;\n }//end of if statement\n }//end of inner for loop\n }//end of outer for loop\n pw.println(YEG + \" \" + XEG);\n\t\t }",
"private void createMaze(Tile currentTile) {\n\n while (numberOfCellsVisited < CAST_WIDTH * CAST_HEIGHT) {\n\n // Get coordinates of current tile and set as visited\n int currentX = currentTile.getPosition().getX();\n int currentY = currentTile.getPosition().getY();\n tempMap[currentY][currentX].setVisited(true);\n\n // Begin neighbourhood scan\n ArrayList<Integer> neighbours = new ArrayList<>();\n\n // If a neighbour is not visited and its projected position is within bounds, add it to the list of valid neighbours\n // North neighbour\n if (currentY - 1 >= 0) {\n if (!tempMap[currentY - 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(0);\n }\n //Southern neighbour\n if (currentY + 1 < CAST_HEIGHT) { //y index if increased is not greater than height of the chamber\n if (!tempMap[currentY + 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(1);\n }\n //Eastern neighbour\n if (currentX + 1 < CAST_WIDTH) { //check edge case\n if (!tempMap[currentY][currentX + 1].isVisited()) { //check if visited\n neighbours.add(2);\n }\n }\n //Western neighbour\n if (currentX - 1 >= 0) {\n if (!tempMap[currentY][currentX - 1].isVisited()) {\n neighbours.add(3);\n }\n }\n if (!neighbours.isEmpty()) {\n\n //generate random number between 0 and 3 for direction\n Random rand = new Random();\n boolean randomizer;\n int myDirection;\n do {\n myDirection = rand.nextInt(4);\n randomizer = neighbours.contains(myDirection);\n } while (!randomizer);\n\n //knock down wall\n switch (myDirection) {\n case 0 -> { // North\n tempMap[currentY][currentX].getPathDirection()[0] = true;\n currentTile = tempMap[currentY - 1][currentX];\n }\n case 1 -> { // South\n tempMap[currentY][currentX].getPathDirection()[1] = true;\n currentTile = tempMap[currentY + 1][currentX];\n }\n case 2 -> { // East\n tempMap[currentY][currentX].getPathDirection()[2] = true;\n currentTile = tempMap[currentY][currentX + 1];\n }\n case 3 -> { // West\n tempMap[currentY][currentX].getPathDirection()[3] = true;\n currentTile = tempMap[currentY][currentX - 1];\n }\n }\n\n mapStack.push(currentTile);\n numberOfCellsVisited++;\n } else {\n currentTile = mapStack.pop(); //backtrack\n }\n }\n\n castMaze(tempMap[0][0], -1);\n }",
"@Override\r\n public void generateMaze(String[] arr) {\r\n\tint z = Integer.parseInt(arr[arr.length-1]);\r\n\tint y = Integer.parseInt(arr[arr.length-2]);\r\n\tint x = Integer.parseInt(arr[arr.length-3]);\r\n\tString name = arr[arr.length-4];\r\n\tFuture<Maze3d> fCallMaze = threadpool.submit(new Callable<Maze3d>() {\r\n\r\n\t @Override\r\n\t public Maze3d call() throws Exception {\r\n\t\tMyMaze3dGenerator mg = new MyMaze3dGenerator(x, y, z);\r\n\t\tMaze3d m = mg.generate(x, y, z);\r\n\t\treturn m;\r\n\t }\r\n\t});\r\n\ttry {\r\n\t hMaze.put(name, fCallMaze.get());\r\n\t hPosition.put(name, fCallMaze.get().getStart());\r\n\t} catch (InterruptedException | ExecutionException e) {\r\n\t // TODO Auto-generated catch block\r\n\t e.printStackTrace();\r\n\t}\r\n\tString[] messege = (\"maze is ready:\" + name).split(\":\");\r\n\tsetChanged();\r\n\tnotifyObservers(messege);\r\n }",
"@Override\n public void display(GLAutoDrawable drawable) {\n if (ds == null) {\n return;\n }\n\n //VolumetricDataSet ds = new VolumetricDataSet(FileReader.class.getResourceAsStream(\"/marschnerlobb.raw\"), 41, 41, 41);\n int[][][] allDimensions = ds.getVolumeData();\n\n int[] dimensions = ds.getDimensions();\n\n int x = dimensions[0];\n int y = dimensions[1];\n int z = dimensions[2];\n\n System.out.println(\"x = \" + x);\n System.out.println(\"y = \" + y);\n System.out.println(\"z = \" + z);\n\n GL gl = drawable.getGL();\n\n gl.glClear(GL.GL_COLOR_BUFFER_BIT);\n\n// gl.glColor3f(0.94f, 0.94f, 0.94f);\n// gl.glBegin(GL.GL_POLYGON);\n// gl.glVertex2f(330, 0);\n// gl.glVertex2f(330, 720);\n// gl.glVertex2f(333, 0);\n// gl.glVertex2f(333, 720);\n// gl.glEnd();\n//\n// gl.glBegin(GL.GL_POLYGON);\n// gl.glVertex2f(165, 0);\n// gl.glVertex2f(165, 720);\n// gl.glVertex2f(168, 0);\n// gl.glVertex2f(168, 720);\n// gl.glEnd();\n// gl.glPushMatrix();\n// gl.glTranslated(-200.0, 0.0, 0.0);\n gl.glBegin(GL.GL_QUADS);\n\n for (int i = 0; i < z; i++) {\n for (int j = 0; j < y; j++) {\n float col = (float) allDimensions[j][100][i] / 255f;\n System.out.println(allDimensions[100][j][i] + \": \" + col);\n gl.glColor3f(col, col, col);\n\n gl.glVertex2d(i, j);\n gl.glVertex2d((i + 1), j);\n gl.glVertex2d((i + 1), (j + 1));\n gl.glVertex2d(i, (j + 1));\n System.out.println(\"x \" + i + \": y \" + j);\n }\n\n }\n gl.glEnd();\n //gl.glPopMatrix();\n\n// gl.glPushMatrix();\n// gl.glTranslated(0.0, 0.0, 0.0);\n// gl.glBegin(GL.GL_POLYGON);\n//\n// for (int i = 1; i < 41; i++) {\n// for (int j = 0; j < 41; j++) {\n// if (allDimensions[j][i][0] <= 225) {\n// gl.glColor3f(0, 1, 0);\n// } else {\n// gl.glColor3f(1, 1, 1);\n// }\n//\n// gl.glVertex2d(allDimensions[0][j][i], allDimensions[0][i][j]);\n// }\n//\n// }\n// gl.glEnd();\n// gl.glPopMatrix();\n gl.glFlush();\n }",
"public void drawSimple(int pitch, int yaw, int roll, int eyePitch, int eyeX, int eyeY, int eyeZ) {\n\t\tint centerX = Draw3D.centerX;\n\t\tint centerY = Draw3D.centerY;\n\t\tint sinPitch = sin[pitch];\n\t\tint cosPitch = cos[pitch];\n\t\tint sinYaw = sin[yaw];\n\t\tint cosYaw = cos[yaw];\n\t\tint sinRoll = sin[roll];\n\t\tint cosRoll = cos[roll];\n\t\tint sinEyePitch = sin[eyePitch];\n\t\tint cosEyePitch = cos[eyePitch];\n\t\tint midZ = ((eyeY * sinEyePitch) + (eyeZ * cosEyePitch)) >> 16;\n\n\t\tfor (int v = 0; v < vertexCount; v++) {\n\t\t\tint x = vertexX[v];\n\t\t\tint y = vertexY[v];\n\t\t\tint z = vertexZ[v];\n\n\t\t\t// Local Space -> Model Space\n\n\t\t\tif (roll != 0) {\n\t\t\t\tint x_ = ((y * sinRoll) + (x * cosRoll)) >> 16;\n\t\t\t\ty = ((y * cosRoll) - (x * sinRoll)) >> 16;\n\t\t\t\tx = x_;\n\t\t\t}\n\n\t\t\tif (pitch != 0) {\n\t\t\t\tint y_ = ((y * cosPitch) - (z * sinPitch)) >> 16;\n\t\t\t\tz = ((y * sinPitch) + (z * cosPitch)) >> 16;\n\t\t\t\ty = y_;\n\t\t\t}\n\n\t\t\tif (yaw != 0) {\n\t\t\t\tint x_ = ((z * sinYaw) + (x * cosYaw)) >> 16;\n\t\t\t\tz = ((z * cosYaw) - (x * sinYaw)) >> 16;\n\t\t\t\tx = x_;\n\t\t\t}\n\n\t\t\t// Model Space -> View Space\n\n\t\t\tx += eyeX;\n\t\t\ty += eyeY;\n\t\t\tz += eyeZ;\n\n\t\t\tint y_ = ((y * cosEyePitch) - (z * sinEyePitch)) >> 16;\n\t\t\tz = ((y * sinEyePitch) + (z * cosEyePitch)) >> 16;\n\t\t\ty = y_;\n\n\t\t\t// View Space -> Screen Space\n\n\t\t\tvertexScreenX[v] = centerX + ((x << 9) / z);\n\t\t\tvertexScreenY[v] = centerY + ((y << 9) / z);\n\t\t\tvertexScreenZ[v] = z - midZ;\n\n\t\t\t// Store viewspace coordinates to be transformed into screen space later (textured or clipped triangles)\n\n\t\t\tif (texturedFaceCount > 0) {\n\t\t\t\tvertexViewSpaceX[v] = x;\n\t\t\t\tvertexViewSpaceY[v] = y;\n\t\t\t\tvertexViewSpaceZ[v] = z;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tdraw(false, false, 0);\n\t\t} catch (Exception ignored) {\n\t\t}\n\t}",
"public static DeformableMesh3D createRectangleMesh(double width, double height, double depth, double segment_size){\n ArrayList<double[]> pts = new ArrayList<double[]>();\n ArrayList<int[]> connections = new ArrayList<int[]>();\n ArrayList<int[]> triangles = new ArrayList<int[]>();\n //For the complete length there will be n+1 nodes\n int nx = (int)(width/segment_size + 0.5) + 1;\n int ny = (int)(height/segment_size+0.5) + 1;\n int nz = (int)(depth/segment_size+0.5) + 1;\n double actual_w = (nx-1)*segment_size;\n double actual_h = (ny-1)*segment_size;\n double actual_z = (nz-1)*segment_size;\n\n int dex;\n\n //top face x-y @ actual_z/2\n int top_starting_dex = pts.size();\n for(int i = 0; i<nx; i++){\n for(int j = 0; j<ny; j++){\n dex = top_starting_dex + i*ny + j;\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n j*segment_size - actual_h/2,\n actual_z/2\n });\n\n //create a connection\n if(i>0){\n connections.add(new int[]{\n dex,\n dex - ny\n });\n }\n\n if(j>0){\n connections.add(new int[]{\n dex,\n dex-1\n });\n }\n }\n }\n\n for(int i = 1; i<nx; i++){\n for(int j = 1; j<ny; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n (j-0.5)*segment_size - actual_h/2,\n actual_z/2\n });\n //first\n int a_dex = top_starting_dex + (i-1)*ny + (j-1);\n connections.add(new int[]{dex,a_dex});\n int b_dex = top_starting_dex + (i)*ny + (j-1);\n connections.add(new int[]{dex,b_dex});\n int c_dex = top_starting_dex + (i)*ny + (j);\n connections.add(new int[]{dex,c_dex});\n int d_dex = top_starting_dex + (i-1)*ny + (j);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, a_dex, b_dex});\n triangles.add(new int[]{dex, b_dex, c_dex});\n triangles.add(new int[]{dex, c_dex, d_dex});\n triangles.add(new int[]{dex, d_dex, a_dex});\n\n }\n }\n\n\n //bottom face x-y @ -actual_z/2\n int bottom_starting_dex = pts.size();\n for(int i = 0; i<nx; i++){\n for(int j = 0; j<ny; j++){\n\n dex = bottom_starting_dex + i*ny + j;\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n j*segment_size - actual_h/2,\n -actual_z/2\n });\n\n //create a connection\n if(i>0){\n connections.add(new int[]{\n dex,\n dex - ny\n });\n }\n\n if(j>0){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n //bottom face\n for(int i = 1; i<nx; i++){\n for(int j = 1; j<ny; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n (j-0.5)*segment_size - actual_h/2,\n -actual_z/2\n });\n //first\n int a_dex = bottom_starting_dex + (i-1)*ny + (j-1);\n connections.add(new int[]{dex,a_dex});\n int b_dex = bottom_starting_dex + (i)*ny + (j-1);\n connections.add(new int[]{dex,b_dex});\n int c_dex = bottom_starting_dex + (i)*ny + (j);\n connections.add(new int[]{dex,c_dex});\n int d_dex = bottom_starting_dex + (i-1)*ny + (j);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n\n //left face y-z @ -actual_x/2\n int left_starting_dex = pts.size();\n for(int i = 0; i<ny; i++){\n for(int j = 1; j<nz-1; j++){\n dex = left_starting_dex + i*(nz-2) + (j-1);\n pts.add(new double[]{\n -actual_w/2,\n i*segment_size - actual_h/2,\n j*segment_size - actual_z/2\n });\n\n //creates a connection\n if(i>0){\n //previous row\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n //previous column\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n }\n }\n\n\n //left face connections\n for(int i = 0; i<ny; i++){\n connections.add(new int[]{\n top_starting_dex + i,\n left_starting_dex + i*(nz-2) + (nz-3)\n });\n\n connections.add(new int[]{\n bottom_starting_dex + i,\n left_starting_dex + i*(nz-2)\n });\n\n }\n\n //left face triangles\n for(int i = 1; i<ny; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = left_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = left_starting_dex + (i)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = left_starting_dex + (i)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = left_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n //left face merging triangles\n for(int i = 1; i<ny; i++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = bottom_starting_dex + i-1;\n int b_dex = bottom_starting_dex + i;\n int c_dex = left_starting_dex + i*(nz-2);\n int d_dex = left_starting_dex + (i-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n dex = pts.size();\n\n pts.add(new double[]{\n -actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = top_starting_dex + i;\n b_dex = top_starting_dex + i-1;\n c_dex = left_starting_dex + (i-1)*(nz-2) + (nz-3);\n d_dex = left_starting_dex + (i)*(nz-2) + (nz-3);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //right face y-z @ actual_x/2\n int right_starting_dex = pts.size();\n for(int i = 0; i<ny; i++){\n for(int j = 1; j<nz-1; j++){\n dex = right_starting_dex + i*(nz-2) + (j-1);\n pts.add(new double[]{\n actual_w/2,\n i*segment_size - actual_h/2,\n j*segment_size - actual_z/2\n });\n\n //creates a connection\n if(i>0){\n //previous row\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n //previous column\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n }\n }\n\n for(int i = 0; i<ny; i++){\n connections.add(new int[]{\n top_starting_dex + i + ny*(nx-1),\n right_starting_dex + i*(nz-2) + (nz-3)\n });\n\n connections.add(new int[]{\n bottom_starting_dex + i + ny*(nx-1),\n right_starting_dex + i*(nz-2)\n });\n\n }\n\n //right face triangles\n for(int i = 1; i<ny; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = right_starting_dex + (i)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = right_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = right_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = right_starting_dex + (i)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n //right face merging triangles\n for(int i = 1; i<ny; i++){\n /*\n connections.add(new int[]{\n top_starting_dex + i,\n left_starting_dex + i*(nz-2) + (nz-3)\n });\n */\n dex = pts.size();\n\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = bottom_starting_dex + i + ny*(nx-1);\n int b_dex = bottom_starting_dex + i-1 + ny*(nx-1);\n int c_dex = right_starting_dex + (i-1)*(nz-2);\n int d_dex = right_starting_dex + (i)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n dex = pts.size();\n\n pts.add(new double[]{\n actual_w/2,\n (i-0.5)*segment_size - actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = top_starting_dex + i-1 + ny*(nx-1);\n b_dex = top_starting_dex + i + ny*(nx-1);\n c_dex = right_starting_dex + (i)*(nz-2) + (nz-3);\n d_dex = right_starting_dex + (i-1)*(nz-2) + (nz-3);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n\n //front face x-z @ -actual_y/2\n int front_starting_dex = pts.size();\n for(int i = 1; i<nx-1; i++){\n for(int j = 1; j<nz-1; j++){\n dex = front_starting_dex + (i-1)*(nz-2) + (j-1);\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n -actual_h/2,\n j*segment_size - actual_z/2\n });\n\n if(i>1){\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n\n //connect to top and bottom.\n for(int i = 1; i<nx-1; i++){\n connections.add(new int[]{\n front_starting_dex + (i-1)*(nz - 2),\n bottom_starting_dex + i*ny\n });\n\n connections.add(new int[]{\n front_starting_dex + (i-1)*(nz - 2) + (nz-3),\n top_starting_dex + i*ny\n });\n\n }\n\n //connect to left and right\n for(int j = 1; j<nz-1; j++){\n connections.add(new int[]{\n front_starting_dex + (j-1),\n left_starting_dex + j - 1\n });\n\n connections.add(new int[]{\n front_starting_dex + (j-1) + (nz-2)*(nx-3),\n right_starting_dex + j - 1\n });\n }\n\n //front face triangles\n for(int i = 2; i<nx-1; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = front_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = front_starting_dex + (i-2)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = front_starting_dex + (i-2)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = front_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n //front face triangles merging to top/bottom sans corners.\n for(int i = 2; i<nx-1; i++){\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = front_starting_dex + (i-2)*(nz - 2);\n int b_dex = front_starting_dex + (i-1)*(nz - 2);\n int c_dex = bottom_starting_dex + i*ny;\n int d_dex = bottom_starting_dex + (i-1)*ny;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n -actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = front_starting_dex + (i-1)*(nz - 2) + (nz-3);\n b_dex = front_starting_dex + (i-2)*(nz - 2) + (nz-3);\n c_dex = top_starting_dex + (i-1)*ny;\n d_dex = top_starting_dex + i*ny;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //front face triangles merging to left and right sans corners.\n for(int j = 2; j<nz-1; j++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n -actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n int a_dex = front_starting_dex + (j-1);\n int b_dex = front_starting_dex + (j-2);\n int c_dex = left_starting_dex + j - 2;\n int d_dex = left_starting_dex + j - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n a_dex = front_starting_dex + (j-2) + (nz-2)*(nx-3);\n b_dex = front_starting_dex + (j-1) + (nz-2)*(nx-3);\n c_dex = right_starting_dex + j - 1;\n d_dex = right_starting_dex + j - 2;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n //front triangles four corners.\n for(int j = 1; j<nz; j+=nz-2){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n -actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n\n\n int a_dex, b_dex, c_dex, d_dex;\n\n if(j==1){\n a_dex = front_starting_dex;\n b_dex = bottom_starting_dex + ny;\n c_dex = bottom_starting_dex;\n d_dex = left_starting_dex;\n } else{\n a_dex = front_starting_dex + nz-3;\n b_dex = left_starting_dex + nz-3;\n c_dex = top_starting_dex;\n d_dex = top_starting_dex + ny;\n }\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n -actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n\n if(j==1){\n a_dex = front_starting_dex + (nx-3)*(nz - 2);\n b_dex = right_starting_dex;\n c_dex = bottom_starting_dex + (nx-1)*(ny);\n d_dex = bottom_starting_dex + (nx-2)*(ny);\n } else{\n a_dex = front_starting_dex + (nx-2)*(nz - 2) -1;\n b_dex = top_starting_dex + (nx-2)*(ny);\n c_dex = top_starting_dex + (nx-1)*(ny);\n d_dex = right_starting_dex + nz-3;\n }\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n\n //back plane\n int back_starting_dex = pts.size();\n for(int i = 1; i<nx-1; i++){\n for(int j = 1; j<nz-1; j++){\n dex = back_starting_dex + (i-1)*(nz-2) + (j-1);\n pts.add(new double[]{\n i*segment_size - actual_w/2,\n actual_h/2,\n j*segment_size - actual_z/2\n });\n\n if(i>1){\n connections.add(new int[]{\n dex,\n dex - (nz-2)\n });\n }\n\n if(j>1){\n connections.add(new int[]{\n dex,\n dex - 1\n });\n }\n\n\n }\n }\n\n\n //connect to top and bottom.\n for(int i = 1; i<nx-1; i++){\n connections.add(new int[]{\n back_starting_dex + (i-1)*(nz - 2),\n bottom_starting_dex + i*ny + ny-1\n });\n\n connections.add(new int[]{\n back_starting_dex + (i-1)*(nz - 2) + (nz-3),\n top_starting_dex + i*ny + ny-1\n });\n\n }\n\n\n //connect to left and right\n for(int j = 1; j<nz-1; j++){\n connections.add(new int[]{\n back_starting_dex + (j-1),\n left_starting_dex + j - 1 + (ny-1)*(nz-2)\n });\n\n connections.add(new int[]{\n back_starting_dex + (j-1) + (nz-2)*(nx-3),\n right_starting_dex + j - 1 + (ny-1)*(nz-2)\n });\n }\n\n //back face triangles\n for(int i = 2; i<nx-1; i++){\n for(int j = 2; j<nz-1; j++){\n dex = pts.size();\n //add center\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n //first\n int a_dex = back_starting_dex + (i-2)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,a_dex});\n int b_dex = back_starting_dex + (i-1)*(nz-2) + (j-2) ;\n connections.add(new int[]{dex,b_dex});\n int c_dex = back_starting_dex + (i-1)*(nz-2) + (j-1);\n connections.add(new int[]{dex,c_dex});\n int d_dex = back_starting_dex + (i-2)*(nz-2) + (j-1);\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n }\n\n\n //back face triangles merging to top/bottom sans corners.\n for(int i = 2; i<nx-1; i++){\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n (0.5)*segment_size - actual_z/2\n });\n\n int a_dex = back_starting_dex + (i-1)*(nz - 2);\n int b_dex = back_starting_dex + (i-2)*(nz - 2);\n int c_dex = bottom_starting_dex + (i-1)*ny + ny - 1;\n int d_dex = bottom_starting_dex + (i)*ny + ny - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (i-0.5)*segment_size - actual_w/2,\n actual_h/2,\n -(0.5)*segment_size + actual_z/2\n });\n\n a_dex = back_starting_dex + (i-2)*(nz - 2) + (nz-3);\n b_dex = back_starting_dex + (i-1)*(nz - 2) + (nz-3);\n c_dex = top_starting_dex + (i)*ny + ny - 1;\n d_dex = top_starting_dex + (i-1)*ny + ny - 1;\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n }\n\n //back face triangles merging to left and right sans corners.\n for(int j = 2; j<nz-1; j++){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n int a_dex = back_starting_dex + (j-2);\n int b_dex = back_starting_dex + (j-1);\n int c_dex = left_starting_dex + j - 1 + (ny-1)*(nz-2);\n int d_dex = left_starting_dex + j - 2 + (ny-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n a_dex = back_starting_dex + (j-1) + (nz-2)*(nx-3);\n b_dex = back_starting_dex + (j-2) + (nz-2)*(nx-3);\n c_dex = right_starting_dex + j - 2+ (ny-1)*(nz-2);\n d_dex = right_starting_dex + j - 1+ (ny-1)*(nz-2);\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n //back triangles four corners.\n for(int j = 1; j<nz; j+=nz-2){\n\n dex = pts.size();\n\n pts.add(new double[]{\n 0.5*segment_size - actual_w/2,\n actual_h/2,\n (j - 0.5)*segment_size - actual_z/2\n });\n\n\n\n int a_dex, b_dex, c_dex, d_dex;\n\n if(j==1){\n a_dex = back_starting_dex;\n b_dex = left_starting_dex + (ny-1)*(nz-2);\n c_dex = bottom_starting_dex + ny -1;\n d_dex = bottom_starting_dex + 2*ny - 1;\n } else{\n a_dex = back_starting_dex + nz-3;\n b_dex = top_starting_dex + 2*ny - 1;\n c_dex = top_starting_dex + ny - 1;\n d_dex = left_starting_dex + (ny)*(nz-2) - 1 ;\n }\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n dex = pts.size();\n\n pts.add(new double[]{\n (-0.5)*segment_size + actual_w/2,\n actual_h/2,\n (j-0.5)*segment_size - actual_z/2\n });\n\n\n if(j==1){\n a_dex = back_starting_dex + (nx-3)*(nz - 2);\n b_dex = bottom_starting_dex + (nx-1)*(ny) - 1;\n c_dex = bottom_starting_dex + (nx)*(ny) - 1;\n d_dex = right_starting_dex + (nz-2)*(ny-1);\n } else{\n a_dex = back_starting_dex + (nx-2)*(nz - 2) -1;\n b_dex = right_starting_dex + (nz-2)*(ny-1) + nz - 3;\n c_dex = top_starting_dex + (nx)*(ny) -1;\n d_dex = top_starting_dex + (nx-1)*(ny) -1;\n }\n\n connections.add(new int[]{dex,a_dex});\n connections.add(new int[]{dex,b_dex});\n connections.add(new int[]{dex,c_dex});\n connections.add(new int[]{dex,d_dex});\n\n triangles.add(new int[]{dex, b_dex, a_dex});\n triangles.add(new int[]{dex, c_dex, b_dex});\n triangles.add(new int[]{dex, d_dex, c_dex});\n triangles.add(new int[]{dex, a_dex, d_dex});\n\n\n }\n\n final DeformableMesh3D mesh = new DeformableMesh3D(pts, connections, triangles);\n\n return mesh;\n }",
"public void render() {\n int pixel = getPixelSize();\n for (int xx = x; xx<x+w; xx += pixel) {\n for (int yy = y; yy<y+h; yy += pixel) {\n Location next = getLocation(xx, yy);\n if (next != null) { // This way if a wall is spawned at the edge it's ok\n next.setColor(color(255,255,255));\n next.setType(LocationType.WALL);\n getGridCache().add(next);\n }\n }\n }\n }",
"private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }",
"public void displayGrid(){\n \tint max = currentOcean.getMaxGrid(); // modified by Ludo\n \tint line = max*2 +1; \t\t\t\t// modified by Ludo\n \tfor(int i=0; i<max+1;i++){\t\t\t// modified by Ludo\n \t int lineStart = 0 + line*i;\t\t// modified by Ludo\n \t int lineEnd = line + line*i;\t\t// modified by Ludo\n \t System.out.println(currentOcean.toString().substring(lineStart, lineEnd)); // modified by Ludo\n }\n }",
"public static void main(String[] args) {\n double T = Double.parseDouble(args[0]);\n double dt = Double.parseDouble(args[1]);\n String filename = args[2];\n Planet[] planets = readPlanets(filename);\n double radius = readRadius(filename);\n\n //Drawing the background\n String imageToDraw = \"images/starfield.jpg\";\n StdDraw.setScale(-radius, radius);\n StdDraw.picture(0, 0, imageToDraw);\n\n //Drawing all of the planets\n for(Planet p : planets) {\n p.draw();\n }\n\n //Enabling double buffering\n StdDraw.enableDoubleBuffering();\n\n //Creating animation\n for(double t=0; t<=T; t+=dt){\n double[] xForces = new double[planets.length];\n double[] yForces = new double[planets.length];\n\n /**\n * Calculating the net x and y forces for\n * each planet and storing in the arrays respectively\n */\n for(int i=0; i<planets.length; i++) {\n xForces[i] = planets[i].calcNetForceExertedByX(planets);\n yForces[i] = planets[i].calcNetForceExertedByY(planets);\n }\n\n //Updating each planets\n for(int i=0; i<planets.length; i++) {\n planets[i].update(dt, xForces[i], yForces[i]);\n }\n\n //Drawing background image\n StdDraw.picture(0, 0, imageToDraw);\n \n //Drawing all planets\n for(Planet p : planets) {\n p.draw();\n }\n\n //Showing offscreen buffer and setting pause 10 ms\n StdDraw.show();\n StdDraw.pause(10);\n }\n \n //Printing the universe\n StdOut.printf(\"%d\\n\", planets.length);\n StdOut.printf(\"%.2e\\n\", radius);\n for (int i = 0; i < planets.length; i++) {\n StdOut.printf(\"%11.4e %11.4e %11.4e %11.4e %11.4e %12s\\n\",\n planets[i].xxPos, planets[i].yyPos, planets[i].xxVel,\n planets[i].yyVel, planets[i].mass, planets[i].imgFileName); \n}\n }",
"public Maze3d(byte[] b)\r\n\t{\r\n\t\tthis.maze = new int[(int)b[0]][(int)b[1]][(int)b[2]];\r\n\t\tthis.setStartPosition((int)b[3], (int)b[4], (int)b[5]);\r\n\t\tthis.setGoalPosition((int)b[6],(int)b[7],(int)b[8]);\r\n\t\tint counter = 9;\r\n\t\tfor(int i = 0;i<b[0];i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0;j<b[1];j++)\r\n\t\t\t{\r\n\t\t\t\tfor(int k = 0;k<b[2];k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.maze[i][j][k] = (int)b[counter];\r\n\t\t\t\t\tcounter++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void setMaze(IMaze maze);",
"public void showMap() {\n//\t\tSystem.out.print(\" \");\n//\t\tfor (int i = 0; i < maxY; i++) {\n//\t\t\tSystem.out.print(i);\n//\t\t\tSystem.out.print(' ');\n//\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 0; i < maxX; i++) {\n//\t\t\tSystem.out.print(i + \" \");\n\t\t\tfor (int j = 0; j < maxY; j++) {\n\t\t\t\tSystem.out.print(coveredMap[i][j]);\n\t\t\t\tSystem.out.print(' ');\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void print() {\n System.out.println();\n for (int level = 0; level < 4; level++) {\n System.out.print(\" Z = \" + level + \" \");\n }\n System.out.println();\n for (int row = 3; row >= 0; row--) {\n for (int level = 0; level < 4; level++) {\n for (int column = 0; column < 4; column++) {\n System.out.print(get(column, row, level));\n System.out.print(\" \");\n }\n System.out.print(\" \");\n }\n System.out.println();\n }\n System.out.println();\n }",
"void castMaze(Tile currentMap, int prevDirection) {\n int y = currentMap.getPosition().getY();\n int x = currentMap.getPosition().getX();\n\n map[(2 * y) + 1][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n if (currentMap.getPathDirection()[0] && prevDirection != 1) {\n map[(2 * y)][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y - 1][x], 0);\n }\n if (currentMap.getPathDirection()[1] && prevDirection != 0) {\n map[(2 * y) + 2][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y + 1][x], 1);\n }\n if (currentMap.getPathDirection()[2] && prevDirection != 3) {\n map[(2 * y) + 1][(2 * x) + 2].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y][x + 1], 2);\n }\n if (currentMap.getPathDirection()[3] && prevDirection != 2) {\n map[(2 * y) + 1][(2 * x)].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y][x - 1], 3);\n }\n }",
"@Override\n public void write(byte[] byteMaze){\n int rowSize = ((byteMaze[0] & 0xFF) <<8) | (byteMaze[1] & 0xFF);\n int colSize = ((byteMaze[2] & 0xFF) <<8) | (byteMaze[3] & 0xFF);\n if (rowSize*colSize>= 170*170) { // Threshold between big and small mazes\n write(1); //first byte - tells the decompressor which method was used\n writeBig(byteMaze);\n }\n else {\n write(0);\n writeSmall(byteMaze);\n }\n }",
"public GameField() { //generation of maze size and more\n for (int i = 0; i < 18; i++) {\n for (int j = 0; j < 18; j++) {\n System.out.print(\" \" + Map[i][j] + \" \");\n }\n System.out.println();\n }\n width = height = 40;\n }",
"public void display(GLAutoDrawable drawable){\n GL4 gl = (GL4) GLContext.getCurrentGL();\n \n gl.glClear(GL_DEPTH_BUFFER_BIT);\n \n // not needed if bkg is black\n float bkg[] = { 1.0f, 1.0f, 1.0f, 1.0f };\n FloatBuffer bkgBuffer = Buffers.newDirectFloatBuffer(bkg);\n gl.glClearBufferfv(GL_COLOR, 0, bkgBuffer);\n\n \n gl.glUseProgram(rendering_program); // loads program from init with the two shaders\n \n // define perspective matrix \n //perspective\n float aspect = (float) myCanvas.getWidth()/(float) myCanvas.getHeight();\n Matrix3D pMat = this.perspectiveMethod(60.0f, aspect, 0.1f, 100.0f);\t\t//for persective projection /zentrische Projektion\n Matrix3D oMat = this.orthographicMethod(1.0f, -1.0f, 1.0f, -1.0f, 0.1f, 100.0f); //for orthographic projection\n \n \n //copy perspective and MV matricies to corressponding uniform variables\n int mv_loc = gl.glGetUniformLocation(rendering_program, \"mv_matrix\");\n int proj_loc = gl.glGetUniformLocation(rendering_program, \"proj_matrix\");\n \n //build view matrix\n Matrix3D vMat = new Matrix3D();\n vMat.translate(-cameraX, -cameraY, -cameraZ);\n \n //build model matrix\n Matrix3D mMat = new Matrix3D(); //for right now we dont do anything (rotate, translate etc.) in with the mMat in this project\n\n Matrix3D mvMat = new Matrix3D();\n mvMat.concatenate(vMat);\t\t\t//first view matrix \n mvMat.concatenate(mMat);\t\t\t//second we put the model matrix on it (A * B)\n \n\n //plug the mvMat and pMat into the shader uniform variables \n gl.glUniformMatrix4fv(mv_loc, 1, false, mvMat.getFloatValues(),0);\n gl.glUniformMatrix4fv(proj_loc, 1, false, pMat.getFloatValues(),0);\n \n \n //be sure to bind the vbo before assigning the attribute pointer\n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[0]); \n // now set the \"location = 0\" info in the shaders to the point info from vbo[0]\n gl.glVertexAttribPointer(0, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(0);\n \n gl.glBindBuffer(GL_ARRAY_BUFFER, vbo[1]);\n gl.glVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n gl.glEnableVertexAttribArray(1);\n \n gl.glLineWidth(10.0f);\n \n gl.glEnable(GL_DEPTH_TEST);\n gl.glDrawArrays(GL_LINES, 0, 4);\n\n }",
"public void displayPantry(){\r\n jam1.displayJam();\r\n jam2.displayJam();\r\n jam3.displayJam();\r\n \r\n }",
"public MazeBug() {\r\n setColor(Color.GREEN);\r\n last = new Location(0, 0);\r\n crossLocation = new Stack<ArrayList<Location>>();\r\n crossLocation.push(new ArrayList<Location>());\r\n hasShown = false;\r\n isEnd = false;\r\n probablyDir = new int[] { 0, 0, 0, 0 };\r\n stepCount = 0;\r\n }",
"@Override\r\n\tpublic void mazeSize(Maze3d maze, String name) {\r\n\t\tString s = \"maze size \" + name + \" is \" +(maze.getXSize()*maze.getYSize()*maze.getZSize()*Integer.SIZE)/8+ \" bytes\";\r\n\t\tcontroller.printStr(s);\r\n\t}",
"public void renderLoop() {\n\t\tplayer.move(calculateVectorDirectionBetweenEyeAndCenter());\n\t\tcamera.move();\n\t\tm.setLookAt(camera.getPosition().x,\n\t\t\t\tcamera.getPosition().y + 10,\n\t\t\t\tcamera.getPosition().z,\n\t\t\t\tplayer.getPosition().x,\n\t\t\t\tplayer.getPosition().y + 10,\n\t\t\t\tplayer.getPosition().z,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).x,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).y,\n\t\t\t\tcalculateUpVectorOfCameraPosition(secondOrthogonalVector).z);\n\t\tm.get(fb);\n\n\t\tglLoadMatrixf(fb);\n\t\t\n\t\tglPushMatrix();\n\t\t\tupdateSpotLight();\n\t\t\tupdatePointLight();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_BACK, GL_FILL);\n\t\t\tglPolygonMode(GL_FRONT, GL_POINT);\n\t\t\tterrain.generateCave();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglPolygonMode(GL_FRONT, GL_FILL);\n\t\t\tterrain.generateGround();\n\t\tglPopMatrix();\n\n\t\tglPushMatrix();\n\t\t\tterrain.drawEnd();\n\t\tglPopMatrix();\n\t\t\n\t\tglPushMatrix();\n\t\t\tglTranslatef(player.getPosition().x, player.getPosition().y, player.getPosition().z);\n\t\t\tglRotatef(player.getRotY(), 0, 1, 0);\n\t\t\tplayer.getModel().draw(player.getMoveAngle());\n\t\tglPopMatrix();\n\t}",
"public void saveMaze(File file) throws IOException {\n PrintWriter outputFile = new PrintWriter(file);\n\n Cell[][] grid = maze.getGrid();\n\n outputFile.write(\"BFS\\n\");\n\n // Saves the original (not shortest) BFS path.\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 outputFile.write(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 outputFile.write(currentCell.topRow());\n }\n }\n outputFile.write(\"+\");\n outputFile.write(\"\\n\");\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 outputFile.write(currentCell.zeroDistanceColumn());\n else\n outputFile.write(currentCell.distanceColumn());\n }\n outputFile.write(\"|\");\n outputFile.write(\"\\n\");\n }\n }\n\n // Saves the shortest BFS path.\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 outputFile.write(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 outputFile.write(currentCell.topRow());\n }\n }\n outputFile.write(\"+\");\n outputFile.write(\"\\n\");\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 outputFile.write(currentCell.zeroDistanceColumn2());\n else if (parents.contains(currentCell))\n outputFile.write(currentCell.zeroDistanceColumn2());\n else\n outputFile.write(currentCell.distanceColumn2());\n }\n outputFile.write(\"|\");\n outputFile.write(\"\\n\");\n }\n }\n // Saves the shortest path, length, and visited cells.\n outputFile.write(\"Path:\");\n for (Cell currentCell : parents) {\n outputFile.write(\"(\" + currentCell.x + \",\" + currentCell.y + \") \");\n }\n outputFile.write(\"\\n\");\n outputFile.write(\"Visited Cells: \" + visitedCells + \"\\n\");\n outputFile.write(\"Length of Path: \" + parents.size() + \"\\n\");\n outputFile.close();\n\n }",
"public void draw(float[] vpMatrix, float[] mvMatrix, float[] positions, float[] sizes,\n float[] colors, boolean render3d) {\n // Add program to OpenGL ES environment\n GLES30.glUseProgram(mProgram);\n\n // get the handles to the attribute\n vertexAttr = GLES30.glGetAttribLocation(mProgram, \"a_vertex\");\n posAttr = GLES30.glGetAttribLocation(mProgram, \"a_position\");\n int sizeAttr = GLES30.glGetAttribLocation(mProgram, \"a_size\");\n int coloAttr = GLES30.glGetAttribLocation(mProgram, \"a_color\");\n int texAttr = GLES30.glGetAttribLocation(mProgram, \"a_texCoord\");\n int normalAttr = GLES30.glGetAttribLocation(mProgram, \"a_normal\");\n\n // load vertices\n if (render3d) {\n GLES30.glEnableVertexAttribArray(vertexAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mVertex3dVBO);\n GLES30.glVertexAttribPointer(vertexAttr, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, 0);\n GLES30.glVertexAttribDivisor(vertexAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(texAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mTex3dCoordVBO);\n GLES30.glVertexAttribPointer(texAttr, 2,\n GLES30.GL_FLOAT, false,\n 2 * 4, 0);\n GLES30.glVertexAttribDivisor(texAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(normalAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mNormal3dVBO);\n GLES30.glVertexAttribPointer(normalAttr, 3,\n GLES30.GL_FLOAT, false,\n 3 * 4, 0);\n GLES30.glVertexAttribDivisor(normalAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n } else {\n GLES30.glEnableVertexAttribArray(vertexAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mVertexVBO);\n GLES30.glVertexAttribPointer(vertexAttr, COORDS_PER_VERTEX,\n GLES30.GL_FLOAT, false,\n vertexStride, 0);\n GLES30.glVertexAttribDivisor(vertexAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(texAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mTexCoordVBO);\n GLES30.glVertexAttribPointer(texAttr, 2,\n GLES30.GL_FLOAT, false,\n 2 * 4, 0);\n GLES30.glVertexAttribDivisor(texAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n GLES30.glEnableVertexAttribArray(normalAttr);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mNormal2dVBO);\n GLES30.glVertexAttribPointer(normalAttr, 3,\n GLES30.GL_FLOAT, false,\n 3 * 4, 0);\n GLES30.glVertexAttribDivisor(normalAttr, 0);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n }\n\n\n ByteBuffer bb = ByteBuffer.allocateDirect(positions.length * 4);\n bb.order(ByteOrder.nativeOrder());\n FloatBuffer fb = bb.asFloatBuffer();\n fb.put(positions);\n fb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mPosVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, positions.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, positions.length * 4, fb);\n\n GLES30.glEnableVertexAttribArray(posAttr);\n GLES30.glVertexAttribPointer(posAttr, COORDS_PER_VERTEX, GLES30.GL_FLOAT,\n false, vertexStride, 0);\n GLES30.glVertexAttribDivisor(posAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n ByteBuffer bb2 = ByteBuffer.allocateDirect(sizes.length * 4);\n bb2.order(ByteOrder.nativeOrder());\n FloatBuffer sb = bb2.asFloatBuffer();\n sb.put(sizes);\n sb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mSizeVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, sizes.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, sizes.length * 4, sb);\n\n GLES30.glEnableVertexAttribArray(sizeAttr);\n GLES30.glVertexAttribPointer(sizeAttr, 3, GLES30.GL_FLOAT,\n false, 3 * 4, 0);\n GLES30.glVertexAttribDivisor(sizeAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n ByteBuffer bb3 = ByteBuffer.allocateDirect(colors.length * 4);\n bb3.order(ByteOrder.nativeOrder());\n FloatBuffer cb = bb3.asFloatBuffer();\n cb.put(colors);\n cb.position(0);\n\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, mColorVBO);\n GLES30.glBufferData(GLES30.GL_ARRAY_BUFFER, colors.length * 4, null, GLES30.GL_DYNAMIC_DRAW);\n GLES30.glBufferSubData(GLES30.GL_ARRAY_BUFFER, 0, colors.length * 4, cb);\n\n GLES30.glEnableVertexAttribArray(coloAttr);\n GLES30.glVertexAttribPointer(coloAttr, 4, GLES30.GL_FLOAT,\n false, 4 * 4, 0);\n GLES30.glVertexAttribDivisor(sizeAttr, 1);\n GLES30.glBindBuffer(GLES30.GL_ARRAY_BUFFER, 0);\n\n\n // get handle to fragment shader's uTexture member\n int mTextureUniformHandle = GLES30.glGetUniformLocation(mProgram, \"u_texture\");\n // Set the active texture unit to texture unit 0.\n GLES30.glActiveTexture(GLES30.GL_TEXTURE0);\n // Bind the texture to this unit.\n GLES30.glBindTexture(GLES30.GL_TEXTURE_CUBE_MAP, mTextureDataHandle);\n // Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n GLES30.glUniform1i(mTextureUniformHandle, 0);\n\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"a_mvpMatrix\");\n // Pass the projection and view transformation to the shader\n GLES30.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, vpMatrix, 0);\n\n // get handle to shape's transformation matrix\n mMVMatrixHandle = GLES30.glGetUniformLocation(mProgram, \"u_mvMatrix\");\n // Pass the projection and view transformation to the shader\n GLES30.glUniformMatrix4fv(mMVMatrixHandle, 1, false, mvMatrix, 0);\n\n // set the light position\n mLightPosHandle = GLES30.glGetUniformLocation(mProgram, \"u_lightPos\");\n GLES30.glUniform3f(mLightPosHandle, 100.0f, 10.0f, 10.0f);\n\n// int mRenderHandle = GLES30.glGetUniformLocation(mProgram, \"u_renderMode\");\n// GLES30.glUniform1ui(mRenderHandle, (render3d) ? 1 : 0);\n int mRenderHandle = GLES30.glGetUniformLocation(mProgram, \"u_renderMode\");\n// Log.d(\"asdf\", \"render mode: \" + render3d + ((render3d) ? 1 : 0));\n GLES30.glUniform1f(mRenderHandle, ((render3d) ? 1.0f : 0.0f));\n\n\n// GLES30.glDrawArraysInstanced(GLES30.GL_TRIANGLES, 0, 6, numInstances);\n if (render3d) {\n GLES30.glDrawArraysInstanced(GLES30.GL_TRIANGLES, 0, 36, numInstances);\n } else {\n GLES30.glDrawElementsInstanced(GLES30.GL_TRIANGLES, drawOrder.length, GLES30.GL_UNSIGNED_SHORT, orderBuffer, numInstances);\n }\n\n GLES30.glDisableVertexAttribArray(mPosVBO);\n GLES30.glDisableVertexAttribArray(mVertexVBO);\n }",
"public void printMaze(char[][] maze) {\r\n // Go through every row\r\n for (int row = 0; row < maze.length; row++) {\r\n // Go though column\r\n for (int col = 0; col < maze[row].length; col++) {\r\n System.out.print(maze[row][col]);\r\n }\r\n System.out.println(\"\");\r\n }\r\n }",
"public static void main(String[] args) {\n char [][] strtMaze = new char[][]{\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n {'#', '.', '.', '.', '#', '.', '.', '.', '.', '.', '.', '#'},\n {'.', '.', '#', '.', '#', '.', '#', '#', '#', '#', '.', '#'},\n {'#', '#', '#', '.', '#', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '#', '#', '#', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '.', '#', 'F', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '#', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '.', '#', '#', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '#', '.', '.', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n };\n //Get start position of person\n int pstartx = 2;\n int pstarty = 0;\n //Get start position of hand\n int hstartx = 3; //If same as pstart(facing north south)\n int hstarty = 0;//If same as pstart (facing east west)\n RecursionOutLab maze1 = new RecursionOutLab();\n maze1.maze(strtMaze, pstartx, pstarty, hstartx, hstarty);\n }",
"@Override\n public void render() {\n\n renderer.prepWindowRender(globalGameData.getGameWindow());\n renderer.setRenderSpace(0,0,500,500);\n\n\n renderEnvironment(getMainCamera(),testPlayer.getPlayerEntity().getEntityView().getViewableRegions(), instancedGridMesh);\n renderer.enableTransparency();\n walkieTalkie.render(renderer,renderer.getRenderWidth());\n renderer.disableTransparency();\n\n\n\n renderer.setRenderSpace(500,0,500,500);\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderEnvironment(getMainCamera(),currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions(), instancedGridMesh);\n }\n\n renderer.setRenderSpace(1000,0,500,500);\n renderer.enableTransparency();\n renderer.render2DTextItems(debugItems, \"Default2D\");\n renderer.disableTransparency();\n\n /*\n if (currentPlayers.containsKey(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\"))) {\n renderer.setRenderSpace(500, 0, 500, 500);\n for (Region region : currentPlayers.get(UUID.fromString(\"087954ba-2b12-4215-9a90-f7b810797562\")).getEntityView().getViewableRegions()) {\n for (Block block : region.getBlocksArray()) {\n if (block instanceof CustomRenderBlock) {\n ((CustomRenderBlock) block).renderCustomBlock(renderer, camera);\n }\n }\n for (Entity entity : region.getEntities()) {\n entity.render(renderer, camera);\n }\n }\n }\n */\n\n\n //renderer.setRenderSpace(500,0,280,500);\n //SpriteItem spriteItem = new SpriteItem(AssetLoader.getTextureAsset(\"Noise\"),280,500,true);\n //spriteItem.setPosition(0,0,0);\n //renderer.render2DSpriteItem(spriteItem,\"Default2D\");\n //spriteItem.cleanup();\n\n\n\n /*\n renderer.getShader(\"DebugShader2D\").bind();\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, shaderTestBitmap.getId());\n glActiveTexture(GL_TEXTURE2);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect1.getId());\n glActiveTexture(GL_TEXTURE3);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect2.getId());\n glActiveTexture(GL_TEXTURE4);\n glBindTexture(GL_TEXTURE_2D, shaderTestEffect3.getId());\n renderer.getShader(\"DebugShader2D\").setUniform(\"bitmap\", 1);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect1\", 2);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect2\", 3);\n renderer.getShader(\"DebugShader2D\").setUniform(\"effect3\", 4);\n i++;\n i %= 600;\n float framePercent = i / 600.0f;\n renderer.getShader(\"DebugShader2D\").setUniform(\"frame\", framePercent);\n System.out.println(i);\n shaderTest.setPosition((float)gameInput.getMouseX(),(float)gameInput.getMouseY(),0);\n renderer.render2DSprite(shaderTest, \"DebugShader2D\");\n */\n\n\n\n\n\n }",
"private void generateCube() {\n\t\tverts = new Vector[] {new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3), new Vector(3)};\n\t\tverts[0].setElement(0, -1);\n\t\tverts[0].setElement(1, -1);\n\t\tverts[0].setElement(2, -1);\n\t\t\n\t\tverts[1].setElement(0, 1);\n\t\tverts[1].setElement(1, -1);\n\t\tverts[1].setElement(2, -1);\n\t\t\n\t\tverts[2].setElement(0, -1);\n\t\tverts[2].setElement(1, -1);\n\t\tverts[2].setElement(2, 1);\n\t\t\n\t\tverts[3].setElement(0, 1);\n\t\tverts[3].setElement(1, -1);\n\t\tverts[3].setElement(2, 1);\n\t\t\n\t\tverts[4].setElement(0, -1);\n\t\tverts[4].setElement(1, 1);\n\t\tverts[4].setElement(2, -1);\n\t\t\n\t\tverts[5].setElement(0, 1);\n\t\tverts[5].setElement(1, 1);\n\t\tverts[5].setElement(2, -1);\n\t\t\n\t\tverts[6].setElement(0, -1);\n\t\tverts[6].setElement(1, 1);\n\t\tverts[6].setElement(2, 1);\n\t\t\n\t\tverts[7].setElement(0, 1);\n\t\tverts[7].setElement(1, 1);\n\t\tverts[7].setElement(2, 1);\n\t\t\n\t\tfaces = new int[][] {{0, 3, 2}, {0, 1, 3}, {0, 4, 5}, {0, 5, 1}, {0, 2, 6}, {0, 6, 4}, {2, 7, 6}, {2, 3, 7}, {3, 1, 5}, {3, 5, 7}, {4, 7, 5}, {4, 6, 7}}; // List the vertices of each face by index in verts. Vertices must be listed in clockwise order from outside of the shape so that the faces pointing away from the camera can be culled or shaded differently\n\t}",
"public void printTiles() {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n System.out.println(\"//\");\n System.out.println(\"ROW: \" + tiles[i][k].getRow());\n System.out.println(\"COL: \" + tiles[i][k].getColumn());\n System.out.println(\"TER: \" + tiles[i][k].getTerrain().getName());\n }\n }\n }",
"public static void STAGE4() {\r\n\t\t\tOverseer4.setLevel4True();\r\n\t\t\t_z = new Maze(3);\r\n\t\t\t_s = new StringMap4();\r\n\t\t\tfinal JFrame fram = new JFrame();\r\n\t\t\t_p = new Player(_z);\r\n\t\t\t_q = new Question2();\r\n\t\t\t_q.questionpickL4();\r\n\t\t\t\r\n\t \t/*\r\n\t\t\t *UPDATES THE MAP TO WORLD 4\r\n\t\t\t *Sets up the JFrame and JPanel and updates the Map layout\r\n\t\t\t *Perform the required actions when there are inputs from keyboard\r\n\t\t\t *Functions the same as Overseer's constructor but without the introductions and a different world layout\r\n\t\t\t */\r\n\t\t scene = _s.updateMap(_p, _z, \"\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t fram.setTitle(\"World 4\");\r\n\t\t fram.setVisible(true);\r\n\t\t fram.setSize(800,800);\r\n\t\t fram.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t fram.setResizable(false);\r\n\t\t fram.add(scene);\r\n\t\t fram.add(_s.getMap());\r\n\t\t fram.addKeyListener(new KeyListener() {\r\n\t\t \tpublic void keyTyped(KeyEvent e) {}\r\n\t\t \t\r\n\t\t \tpublic void keyReleased(KeyEvent e) { }\r\n\r\n\t\t \tpublic void keyPressed(KeyEvent e) { \r\n\t\t \t\tint input = e.getKeyCode();\r\n\t\t \t\t\r\n\t\t \t\t//W - UP\r\n\t\t \t\tif(input == KeyEvent.VK_W) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"NORTH\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\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//S - DOWN\r\n\t\t \t\telse if(input == KeyEvent.VK_S) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"SOUTH\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\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//D - RIGHT\r\n\t\t \t\telse if(input == KeyEvent.VK_D) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"EAST\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\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//A - LEFT\r\n\t\t \t\telse if(input == KeyEvent.VK_A) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"WEST\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene); \r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\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//EXIT BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_E) {\r\n\t Window.msg(\"You left Princess Peach alone! \\nBowser has won, keeping Peach forever...\");\r\n\t\t \t\tSystem.exit(0);\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//HELP BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_H) {\r\n\t\t \t\t\tWindow.msg(\"HELP:\"\r\n\t\t \t\t\t\t\t+ \"\\nUse W A S D keys to help you move around the maze.\"\r\n\t\t \t\t\t\t\t+ \"\\n Clicking E will exit the game, h will allow you to access help screen, and c for some neat credits.\"\r\n\t\t \t\t\t\t\t+ \"Your goal is to make it to princess peach by traveling through each world and staying alive.\"\r\n\t\t \t\t\t\t\t+ \"\\n\\n EXCLAMATION BLOCKS: Triggering it will either help you or give you an disadvantage....BEWARE!\"\r\n\t\t \t\t\t\t\t+ \"\\n\\n QUESTION BLOCKS: Not just any ordinary block with the traditional coins and power-ups.\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t-These cause questions to pop up. Getting them correct gives you 20 extra turns,\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t but getting them incorrect decreases the number of turns Mario has by 10.\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t -Leaving the question block empty results in getting it automatically wrong!!\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n *The whole Mushroom Kingdom depends on you...You got this Mario!!!*\");\r\n\t\t \t\t\t\t//\t+ \"Not answering a question correctly will lead to uncertain DOOM...\");\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//CREDITS BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_C) {\r\n\t\t \t\t\tWindow.msg(\"END CREDITS\"\r\n\t\t\t\t\t+ \"\\n Code Outline: Me\"\r\n\t\t\t\t\t+ \"\\n Game Ideas: Me\"\r\n\t\t\t\t\t+ \"\\n All Other Code: Nathan\"\r\n\t\t\t\t\t+ \"\\n And Mario and Peach Lived Happily Ever After!\"\r\n\t\t\t\t\t+ \"The End\");\r\n\t\t \t\t\t\r\n\t\t \t\t}\r\n\t\t \t};\r\n\t\t \t});\r\n\t\t \t//revalidates the frame\r\n\t\t \tfram.revalidate();\r\n\t\t \t//used to dispose frame to start a new level/world\r\n\t\t \tif(Level4 == false) {\r\n\t \t\t\tfram.dispose();\r\n\t \t\t}\r\n\t\t }",
"public Maze(){}",
"private void constructMaze() {\r\n\t\t\r\n\t\t// manual code to construct a sample maze going cell by cell\r\n\t\tgridSheet[0][0].breakSouthWall();\r\n\t\tgridSheet[1][0].breakEastWall();\r\n\t\tgridSheet[1][1].breakSouthWall();\r\n\t\tgridSheet[2][1].breakWestWall();\r\n\t\tgridSheet[2][0].breakSouthWall();\r\n\t\tgridSheet[2][1].breakEastWall();\r\n\t\tgridSheet[2][2].breakSouthWall();\r\n\t\tgridSheet[3][2].breakSouthWall();\r\n\t\tgridSheet[4][2].breakWestWall();\r\n\t\tgridSheet[4][1].breakNorthWall();\r\n\t\tgridSheet[4][1].breakWestWall();\r\n\t\tgridSheet[2][2].breakEastWall();\r\n\t\tgridSheet[2][3].breakNorthWall();\r\n\t\tgridSheet[1][3].breakWestWall();\r\n\t\tgridSheet[1][3].breakNorthWall();\r\n\t\tgridSheet[0][3].breakWestWall();\r\n\t\tgridSheet[0][2].breakWestWall();\r\n\t\tgridSheet[0][3].breakEastWall();\r\n\t\tgridSheet[0][4].breakSouthWall();\r\n\t\tgridSheet[1][4].breakSouthWall();\r\n\t\tgridSheet[2][4].breakSouthWall();\r\n\t\tgridSheet[3][4].breakWestWall();\r\n\t\tgridSheet[3][4].breakSouthWall();\r\n\t\tgridSheet[4][4].breakWestWall();\r\n\t\t\r\n\t}",
"void display()\n\t{\n\t\ttiles[fruit[0]][fruit[1]][fruit[2]] = \" *\";\n\n\t\t// does not write over head\n\t\tif (theSnake.getLength() == 3)\n\t\t{\n\t\t\tfor (int i = 1; i < theSnake.getLength(); i++)\n\t\t\t{\n\t\t\t\t// Places snake body parts onto the board\n\t\t\t\t//in each of its positions\n\t\t\t\ttiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] = \" @\";\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor (int i = theSnake.getLength() - 1; tiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] != \" @\"\n\t\t\t\t&& i != 0; i--)\n\t\t\t{\n\t\t\t\t// Places snake body parts onto the board\n\t\t\t\t//in each of its positions\n\t\t\t\ttiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] = \" @\";\n\t\t\t}\n\t\t\t// places snake body part where its head was in the previous update\n\t\t\ttiles[theSnake.getXofPartI(1)][theSnake.getYofPartI(1)][theSnake.getZofPartI(1)] = \" @\";\n\t\t}\n\n\t\t// Print basic instructions\n\t\tangles.append(\"\\n\\tq: to quit\\n\\t8: up\\t5: down\\t\\t\\t\\t\\t\\t8: up\\t5: down\\n\\t4: left\\t6: right\\t\\t\\t\\t\\t9: left\\t3:right\\n\\t9:\");\n\t\tangles.append(\"surfacing\\t3: deeper\\t\\t\\t\\t4: surfacing\\t6: deeper\\n\");\n\n\t\t// print the board to console\n\t\tfor (int y = 0; y < size; y++){\n\t\t\tangles.append(\"\\t\");\n\t\t\tdisplayLine(y, \"xy\");\n\n\t\t\tangles.append(\"\\t\\t\");\n\t\t\tdisplayLine(y, \"zy\");\n\t\t\tangles.append(\"\\n\");\n\t\t}\n\n\t\tangles.append(\"\\n\\n\");\n\t\tfor (int z = 0; z < size; z++) {\n\t\t\tangles.append(\"\\t\");\n\t\t\tdisplayLine(z, \"xz\");\n\t\t\tangles.append(\"\\n\");\n\t\t}\n\t\t\n\t\tSystem.out.println(angles);\n\t\tangles.replace(0, angles.length(), \"\");\n\n\t\t// removes snake from board completely so we don't have to keep track\n\t\t//of conditions.\n\t\t//for (int i = 0; i < theSnake.getLength(); i++)\n\t\t//{\n\n\t\t// Only the last snake body part will need to be taken off\n\t\ttiles[theSnake.getXofPartI(theSnake.getLength() - 1)][theSnake.getYofPartI(theSnake.getLength() - 1)][theSnake.getZofPartI(theSnake.getLength() - 1)] = \" \";\n\t\t//}\n\t}",
"public void printMiniMap() \n { \n /* this.miniMapFrame(); */\n }",
"private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\n\t}",
"public void Print(int visibility) {\n System.out.println(\"We are at location \" + row + \",\" + col + \" in terrain \" + map[row][col]);\n for(int j = row-visibility; j <= row + visibility; j++) {\n for(int i = col-visibility; i <= col + visibility; i++) {\n if(i >= 0 && i <= (maxC -1) && j >= 0 && j <= (maxR -1))\n System.out.print(map[j][i]);\n else\n System.out.print(\"X\");\n }\n System.out.println(\"\");\n }\n }",
"public static void mazeSize(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze four = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct = null;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\tif(randomDirection == 1)\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = four.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\t//System.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+n);\n\t\t\t\t\t\tfour.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfour.remove_wall(col, row, 'r');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(four, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\tfour.draw();\n\t\tfour.printCellNumbers();\t\n\t}",
"public void printMatriz(){\n for(int i = 0; i < 9; i++){\n for (int j = 0; j < 9; j++){\n if(matriz[i][j] != 0){\n //trata os espacamntos\n if((j+1)%3 == 0)\n System.out.printf(matriz[i][j] + \" \");\n else\n System.out.printf(matriz[i][j] + \" \");\n }else{\n if((j+1)%3 == 0)\n System.out.printf(\" \");\n else\n System.out.printf(\" \");\n }\n }\n if((i+1)%3 == 0){\n System.out.println(\"\\n\");\n }\n else\n System.out.println();\n\n }\n }",
"public void display(){\n\t\tSystem.out.println(\"node: \"+name+\", at \"+drawnNode.getXPosition()+\",\"+drawnNode.getYPosition()+\", colour \"+drawnNode.getColour());\n\t\tif(outArcs.length > 0)\n\t\t\tSystem.out.println(\"out arcs:\");\n\t\tfor(int i=0;i<outArcs.length;i++)\n\t\t\tSystem.out.println(\"to \"+outArcs[i].getEndNode().getName());\n\t}",
"public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}",
"public void run() throws Exception {\n settings = WindowSettings.builder()\n// .setWindowMode( WindowMode.FULLSCREEN )\n// .setWindowMode( WindowMode.BORDERLESS )\n .setWindowMode( WindowMode.WINDOWED )\n .setMonitorIndex( 1 )\n .setResizeable( true )\n// .setPositionX( -1920 )\n// .setWidth( -1 )\n// .setHeight( -1 )\n .build();\n \n //Here most likely we will only use Rectangle for objects like bullets and characters and RectangleGrid for terrain\n //RectangleGrid provides nice method for translating array position into rendered space position so they can be shared for same terrains\n //Texture path can be either file in filesystem or within jar\n var texture1 = Texture.create( \"resources/First Oracle/grid.png\" );\n var texture2 = Texture.create( \"resources/First Oracle/texture3D.png\" );\n var overlayObject = new DirectableRectangle();\n overlayObject.setTexture( texture1 );\n \n //Example initialisation of map\n var terrain = new StaticCubeGrid();\n terrain.setTexture( texture2 );\n \n var array = new CubeGrid[ 20 ][ 10 ][ 20 ];\n \n for ( var x = 0; x < 20; x++ ) {\n for ( var y = 0; y < 10; y++ ) {\n for ( var z = 0; z < 20; z++ ) {\n array[ x ][ y ][ z ] = terrain;\n }\n }\n }\n \n //GridRenderer will be changed so it works as either 2D or 3D. For now leave it as it is so you can see whether the rendering still works.\n grid3DRenderer = new BoundedGrid3D( 100, 25, 5 );\n grid2DRenderer = new DummyGrid2D();\n //Rendered scene is what is displayed via OpenGL rendering, it should be most likely moved to SceneProvider\n //Which will provide next scenes to renderObject when something changes.\n renderedScene = new RenderableSceneMutable( settings );\n \n //Scene provider could be used for providing different scenes. For example one for open credits, one for main menu and one for game.\n //New scenes could be created when other scene is presented and immediately switched to when ready.\n //Now we are providing one scene so this simple lambda can be used instead.\n sceneProvider = () -> renderedScene ;\n\n //Overlay is rendered on top of anything so it's good for UI elements, although only 2D objects are supported.\n RegistrableOverlay overlay = new RegistrableOverlayImpl();\n overlay.registerOverlay( overlayObject );\n renderedScene.setOverlay( overlay );\n \n //Renderer is class that contains all information like scenes and grids.\n renderer = new WindowRenderer(\n grid2DRenderer,\n grid3DRenderer,\n sceneProvider\n );\n \n //Window is window displayed with OpenGL\n //Also it initialises OpenGL (via init()) content and initialises most of the objects passed via parameters\n //It also contains rendering loop which is done via run() method, best if called as another thread since it will block current thread for ever.\n window = WindowBuilder.simpleWindow( settings, renderer ).build();\n \n //Camera controller provides two cameras: 2D and 3D, which are updated corresponding to used input.\n cameraController = CameraController.createAndStart( window, settings, CameraKeyMap.getFunctionalKeyLayout(), 10, 15f );\n \n //Now the Scene3D is being set up like camera, which objects etc.\n //Scene2D is similar but you are providing 2D Objects instead of 3D\n //Scenes 2D and 3D are designed to be used for in game objects like characters, terrain or items\n renderedScene.setScene3D( new RenderableScene3DImpl( cameraController.getCamera3D(), Collections.emptyList(), array, FirstOracleConstants.INDEX_ZERO_3I ) );\n \n //Background is bunch of 2D objects rendered beneath other elements, so could be used for background images or skybox.\n //It also provides background colour which can be seen when there are no objects displayed in some places.\n renderedScene.setBackground( new RenderableBackgroundImpl( IdentityCamera2D.getCamera(), Collections.emptyList(), FirstOracleConstants.WHITE ) );\n \n overlay.registerOverlay( new FpsCounter( window ) );\n \n //At last the window loop must be run in this thread. ( or thread where init() was called )\n window.run();\n }",
"private void resetOutput() {\n\t\t/* Add one additional row/column on each side which will\n\t\t * contain the wall. */\n\t\tthis.output = new char[this.game.height() + 2][this.game.width() + 2];\n\n\t\tfor (int y = 0; y < this.output.length; y++) {\n\t\t\tfor (int x = 0; x < this.output[0].length; x++) {\n\t\t\t\tthis.output[y][x] = ' ';\n\t\t\t}\n\t\t}\n\t}",
"public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }",
"void renderHotspots() {\n boolean afterCurrent = false;\n boolean hasLastPos = false;\n float lastX = 0.0f;\n float lastY = 0.0f;\n float lastZ = 0.0f;\n \n final float halfWidth = 0.1f / 2;\n final float halfLength = 0.1f / 2;\n final float halfHeight = 0.1f / 2;\n final float eyeHeight = 0.91712f;//1.1f;\n \n // Find pan position offset vector\n if (selectedTimeInterval.getLocationMetadataEntry() == null) {\n return;\n }\n \n if (!dstLocationVectorExists)\n return;\n \n GL11.glLoadIdentity();\n // set up for tracking hotspot screen x,y\n\t\tfloat projectedXYZ[] = new float[3]; \t\t\n\t\tprojectionMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_PROJECTION_MATRIX, projectionMatrix);\n\t\tgetMatrixAsArray(projectionMatrix, projectionArray);\n\t\tviewportMatrix.clear();\n\t\tGL11.glGetInteger(GL11.GL_VIEWPORT, viewportMatrix);\n\t\tviewportArray[0] = viewportMatrix.get(0);\n\t\tviewportArray[1] = viewportMatrix.get(1);\n\t\tviewportArray[2] = viewportMatrix.get(2);\n\t\tviewportArray[3] = viewportMatrix.get(3);\n //System.out.println(\"\"+viewportArray[0] + \" \"+ viewportArray[1]+\" \"+viewportArray[2]+\" \"+viewportArray[3] ); \n\t\tmodelMatrix.clear();\n\t\tGL11.glGetFloat(GL11.GL_MODELVIEW_MATRIX, modelMatrix);\n\t\tgetMatrixAsArray(modelMatrix, modelArray);\n \n GL11.glBindTexture(GL11.GL_TEXTURE_2D, 0); // no texture\n \n for (int i=0; i<roverTrackingList.size()-1; i++) {\n \tRoverTrackingListEntry listEntry = (RoverTrackingListEntry) roverTrackingList.get(i);\n\t\t\tlistEntry.screenX = 0.0f;\n\t\t\tlistEntry.screenY = 0.0f;\n \t\n double da = listEntry.locationMetadataEntry.rover_origin_offset_vector_a + listEntry.siteMetadataEntry.offset_vector_a - currentLocationVectorA;\n double db = listEntry.locationMetadataEntry.rover_origin_offset_vector_b + listEntry.siteMetadataEntry.offset_vector_b - currentLocationVectorB;\n double dc = listEntry.locationMetadataEntry.rover_origin_offset_vector_c + listEntry.siteMetadataEntry.offset_vector_c - currentLocationVectorC;\n \n float x = (float) db;\n float y = (-(float)dc) - eyeHeight;\n float z = - (float) da;\n\n // calculate brightness of point based on number of images visible for location\n float brightness = 0.0f;\n \n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getNumEnabledImages() > 2) {\n \t// track screen x, y of hotspot\n \t\t\tGLU.gluProject(x, y, z, modelArray, projectionArray, viewportArray, projectedXYZ);\n \t\t\tif (projectedXYZ[2] < 1.0f) {\n\t \t\t\tlistEntry.screenX = projectedXYZ[0];\n\t \t\t\t// transform y from opengl screen coords to regular screen coords\n\t \t\t\tlistEntry.screenY = viewportArray[3] - projectedXYZ[1];\n \t\t\t}\n \t\n \t// render hotspot\n GL11.glLoadIdentity();\n GL11.glTranslatef(x, y, z);\n //System.out.println(\"\"+listEntry.screenX+\" \"+listEntry.screenY);\n \n brightness = 0.5f + 0.1f * listEntry.locationListEntry.getNumEnabledImages();\n if (brightness > 1.0f) {\n brightness = 1.0f;\n }\n \n GL11.glBegin(GL11.GL_QUADS); // D draw A Quad\n \n if (listEntry.locationListEntry.getStartLocation().equals(selectedTimeInterval.getStartLocation())) {\n GL11.glColor3f(brightness, 0.0f, brightness); \n }\n else if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n }\n \n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Top)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Bottom Left Of The Quad (Top)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Bottom Right Of The Quad (Top)\n\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Top Right Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Top Left Of The Quad (Bottom)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Bottom)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Bottom)\n\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Front)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Front)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Front)\n\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Back)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Back)\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Back)\n\n GL11.glVertex3f(-halfWidth, halfHeight, halfLength); // Top Right Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, halfHeight, -halfLength); // Top Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, -halfLength); // Bottom Left Of The Quad (Left)\n GL11.glVertex3f(-halfWidth, -halfHeight, halfLength); // Bottom Right Of The Quad (Left)\n\n GL11.glVertex3f(halfWidth, halfHeight, -halfLength); // Top Right Of The Quad (Right)\n GL11.glVertex3f(halfWidth, halfHeight, halfLength); // Top Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, halfLength); // Bottom Left Of The Quad (Right)\n GL11.glVertex3f(halfWidth, -halfHeight, -halfLength); // Bottom Right Of The Quad (Right)\n \n GL11.glEnd(); // Done Drawing The Quads\n\t }\n \n if (hasLastPos && !listEntry.segmentStart) {\n brightness = 0.5f;\n if (afterCurrent) {\n GL11.glColor3f(0.0f, 0.0f, brightness);\n }\n else {\n GL11.glColor3f(brightness, 0.0f, 0.0f);\n } \n GL11.glLoadIdentity();\n GL11.glBegin(GL11.GL_LINES); \n// GL11.glColor3f(1.0f, 0.0f, 0.0f); \n GL11.glVertex3f(lastX, lastY, lastZ);\n GL11.glVertex3f(x, y, z);\n GL11.glEnd();\n }\n \n lastX = x;\n lastY = y;\n lastZ = z;\n hasLastPos = true;\n if (listEntry.locationListEntry != null && listEntry.locationListEntry.getStartLocation().equals(this.selectedTimeInterval.getStartLocation())) {\n afterCurrent = true;\n }\n }\n }",
"@Override\n \tpublic void globe(int M, int N) {\n\t\tvertices = new double[][] { { 1, 1, 1, 0, 0, 1 },\n\t\t\t\t{ 1, -1, 1, 0, 0, 1 }, { -1, -1, 1, 0, 0, 1 },\n\t\t\t\t{ -1, 1, 1, 0, 0, 1 }, { 1, 1, -1, 0, 0, -1 },\n\t\t\t\t{ 1, -1, -1, 0, 0, -1 }, { -1, -1, -1, 0, 0, -1 },\n\t\t\t\t{ -1, 1, -1, 0, 0, -1 }, { 1, 1, 1, 1, 0, 0 },\n\t\t\t\t{ 1, -1, 1, 1, 0, 0 }, { 1, -1, -1, 1, 0, 0 },\n\t\t\t\t{ 1, 1, -1, 1, 0, 0 }, { -1, 1, 1, -1, 0, 0 },\n\t\t\t\t{ -1, -1, 1, -1, 0, 0 }, { -1, -1, -1, -1, 0, 0 },\n\t\t\t\t{ -1, 1, -1, -1, 0, 0 }, { 1, 1, 1, 0, 1, 0 },\n\t\t\t\t{ -1, 1, 1, 0, 1, 0 }, { -1, 1, -1, 0, 1, 0 },\n\t\t\t\t{ 1, 1, -1, 0, 1, 0 }, { 1, -1, 1, 0, -1, 0 },\n\t\t\t\t{ -1, -1, 1, 0, -1, 0 }, { -1, -1, -1, 0, -1, 0 },\n\t\t\t\t{ 1, -1, -1, 0, -1, 0 }, };\n \t\tfaces = new int[6][4];\n \t\tfor (int i = 0; i < faces.length; i++) {\n \t\t\tfaces[i] = new int[] { i * 4, i * 4 + 1, i * 4 + 2, i * 4 + 3 };\n \t\t}\n \n \t\tthis.m.identity();\n \t}"
]
| [
"0.72297454",
"0.6357432",
"0.6194989",
"0.61074454",
"0.59898835",
"0.59888065",
"0.59225994",
"0.5762759",
"0.5752902",
"0.5730204",
"0.5702785",
"0.56917125",
"0.56724745",
"0.56446356",
"0.5628586",
"0.56066763",
"0.5584579",
"0.55794317",
"0.5530535",
"0.55162245",
"0.5507059",
"0.54629815",
"0.54560906",
"0.5429063",
"0.5394798",
"0.53733",
"0.5368023",
"0.53449184",
"0.5342464",
"0.532899",
"0.5328503",
"0.5327991",
"0.5319758",
"0.5317522",
"0.53127295",
"0.53107655",
"0.5299466",
"0.52902645",
"0.5285871",
"0.5277239",
"0.52632064",
"0.5256199",
"0.5236172",
"0.5210762",
"0.5202329",
"0.518859",
"0.5186328",
"0.517935",
"0.5175745",
"0.5171184",
"0.516678",
"0.51363575",
"0.5131007",
"0.51244146",
"0.51136756",
"0.51079226",
"0.51023036",
"0.50878143",
"0.5085971",
"0.50767326",
"0.5060419",
"0.5052674",
"0.5047971",
"0.5044555",
"0.5030248",
"0.5027007",
"0.5026121",
"0.5024108",
"0.5022266",
"0.501831",
"0.5014366",
"0.50111103",
"0.4994888",
"0.4994628",
"0.4994236",
"0.49938372",
"0.49916106",
"0.4987545",
"0.4980901",
"0.49808976",
"0.49773958",
"0.49721313",
"0.4967325",
"0.49654898",
"0.4962819",
"0.49610347",
"0.49537688",
"0.495091",
"0.4950472",
"0.4947209",
"0.4946656",
"0.49400035",
"0.49276486",
"0.492292",
"0.4915679",
"0.49118567",
"0.4911159",
"0.49104747",
"0.49054295",
"0.49035358"
]
| 0.7715988 | 0 |
This function is responsible to display a 2d maze to the out stream | public void displayData(int[][] arr); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void draw() {\t\n \t\t// Draw the centre of the maze\n \t\tPoint2D.Double centrePoint = GetCentrePoint();\n \t\t// if size is a factor of 10, this will be a multiple of 2\n \t\tint centreSize = getCentreSize();\n \t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n \t\tStdDraw.filledSquare(centrePoint.getX(), centrePoint.getY(), (centreSize / 2)-0.05);\n \t\t//Draw all the power switches\n \t\tdrawPowerSwitch(switches[0].x, switches[0].y);\n \t\tdrawPowerSwitch(switches[1].x, switches[1].y);\n \t\tdrawPowerSwitch(switches[2].x, switches[2].y);\n \t\tdrawPowerSwitch(switches[3].x, switches[3].y);\n \t\t\n \t\t\n \t\t// Get the data from the maze\n \t\tboolean south[][] = getSouth();\n \t\tboolean north[][] = getNorth();\n \t\tboolean east[][] = getEast();\n \t\tboolean west[][] = getWest();\n \t\tboolean sensor[][] = ms.getMotionSensors();\n \n \t\t//Draw the maze and motion sensors\n \t\tfor (int x = 1; x <= size; x++) {\n \t\t\tfor (int y = 1; y <= size; y++) {\n \t\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n \t\t\t\tif (south[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y, x + 1, y);\n \t\t\t\t}\n \t\t\t\tif (north[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y + 1, x + 1, y + 1);\n \t\t\t\t}\n \t\t\t\tif (west[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y, x, y + 1);\n \t\t\t\t}\n \t\t\t\tif (east[x][y]) {\n \t\t\t\t\tStdDraw.line(x + 1, y, x + 1, y + 1);\n \t\t\t\t}\n \t\t\t\tif (sensor[x][y]) {\n \t\t\t\t\tStdDraw.setPenColor(StdDraw.MAGENTA);\n \t\t\t\t\tStdDraw.filledTriangle(x + 0.5, y + 0.4, 0.5);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"public void displayMaze(){\n System.out.println(\"---- SOLUTION------\");\n for(int j = 0; j < maze.length; j++){\n for(int k = 0; k < maze[0].length; k++){\n System.out.print(maze[j] [k]);\n }\n System.out.println();\n\n }\n }",
"public void print_maze () {\n \n System.out.println();\n\n for (int row=0; row < grid.length; row++) {\n for (int column=0; column < grid[row].length; column++)\n System.out.print (grid[row][column]);\n System.out.println();\n }\n\n System.out.println();\n \n }",
"public void printMaze()\r\n\t{\r\n\t\tfor(int i = 0;i<maze.length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tfor(int j = 0;j<maze[0].length;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tfor(int k = 0;k<maze[0][0].length;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(maze[i][j][k]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t}",
"public void print(){\n for(int i=0; i<maze.length;i+=1) {\n for (int j = 0; j < maze[0].length; j += 1){\n if(i == start.getRowIndex() && j == start.getColumnIndex())\n System.out.print('S');\n else if(i == goal.getRowIndex() && j == goal.getColumnIndex())\n System.out.print('E');\n else if(maze[i][j]==1)\n System.out.print(\"█\");\n else if(maze[i][j]==0)\n System.out.print(\" \");\n\n\n }\n System.out.println();\n }\n }",
"public void printDebugMaze() {\n\t\tSystem.out.println(width);\n\t\tSystem.out.println(height);\n\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tSystem.out.print(maze[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"String printMaze(boolean showBarriers);",
"public void displayData(Maze3d maze);",
"private void drawMaze(Graphics g) {\n\t\tGraphics2D g2 = (Graphics2D) g;\n\n\t\t//draw the maze \n\t\tfor (int i = 0; i < maze.numRows(); i++) {\n\t\t\tfor (int j = 0; j < maze.numCols(); j++) {\n\t\t\t\tif (maze.hasWallAt(new MazeCoord(i, j))) {\n\t\t\t\t\tg2.setColor(Color.BLACK);\n\t\t\t\t} else {\n\t\t\t\t\tg2.setColor(Color.WHITE);\n\t\t\t\t}\n\t\t\t\tint x = START_X + BOX_WIDTH * i;\n\t\t\t\tint y = START_Y + BOX_HEIGHT * j;\n\t\t\t\tg2.fill(new Rectangle(y, x, BOX_WIDTH, BOX_HEIGHT));\n\t\t\t}\n\t\t}\n\n\t\t//draw the boundary\n\t\tg2.setColor(Color.BLACK);\n\t\tg2.draw(new Rectangle(START_X, START_Y, BOX_WIDTH * maze.numCols(), BOX_HEIGHT * maze.numRows()));\n\n\t\t//draw the entry block\n\t\tint y = START_Y + maze.getEntryLoc().getRow() * BOX_HEIGHT + INSET;\n\t\tint x = START_X + maze.getEntryLoc().getCol() * BOX_WIDTH + INSET;\n\t\tg2.setColor(Color.YELLOW);\n\t\tg2.fill(new Rectangle(x, y, BOX_WIDTH - INSET * 2, BOX_HEIGHT - INSET * 2));\n\n\t\t//draw the exit block\n\t\ty = START_Y + maze.getExitLoc().getRow() * BOX_HEIGHT + INSET;\n\t\tx = START_X + maze.getExitLoc().getCol() * BOX_WIDTH + INSET;\n\t\tg2.setColor(Color.GREEN);\n\t\tg2.fill(new Rectangle(x, y, BOX_WIDTH - INSET * 2, BOX_HEIGHT - INSET * 2));\n\t}",
"public void print(){\n for (int i = 0; i < rows; i++)\n {\n for (int j = 0; j < cols; j++)\n {\n if (start.getCol()==j&&start.getRow()==i)\n System.out.print('S');\n else if (end.getCol()==j&&end.getRow()==i)\n System.out.print('E');\n else if (maze[i][j]==1)\n System.out.print('\\u2588');\n else if (maze[i][j]==0)\n System.out.print('\\u2591');\n if (j!=cols-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n //System.out.println(\"-------\");\n }",
"public void showGenerate3dMaze(String message);",
"public void showMazeSize(int size);",
"Maze makeMaze();",
"public void showSaveMaze(String message);",
"public void display(PApplet g) { // this needs to be changed to a smaller radius to avoid unecessary computations.\n\t\tfor (Block b : maze)\n\t\t\tb.display(g);\n\t}",
"void maze(char[][] mz, int p_row, int p_col, int h_row, int h_col){\n \n if (mz[p_row][p_col] == 'F'){\n //Base case -End maze\n printMaze(mz);\n System.out.println(\"Maze Successfully Completed!\");\n } else {\n if (h_row-1 == p_row){\n //If facing East\n if(mz[h_row][h_col] != '#'){ //If right turn available\n //Update player\n mz[p_row][p_col] = 'X'; \n p_row += 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col -= 1;\n printMaze(mz); \n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row][p_col+1] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col += 1;\n printMaze(mz);\n } else if (mz[p_row-1][p_col] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 2;\n h_col += 1;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 2;\n h_col -= 1;\n printMaze(mz);\n }\n }\n } else if (h_row+1 == p_row){\n //If facing West\n if(mz[h_row][h_col] != '#'){\n //Look right\n mz[p_row][p_col] = 'X'; \n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 0;\n h_col += 1;\n printMaze(mz);\n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row][p_col-1] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col -= 1;\n printMaze(mz);\n } else if (mz[p_row+1][p_col] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 1;\n p_col -= 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col -= 1;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col += 1;\n printMaze(mz);\n }\n }\n \n } else if (h_col -1 == p_col){\n //If facing North\n if(mz[h_row][h_col] != '#'){ \n //Take right if available\n //Update player\n mz[p_row][p_col] = 'X'; \n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col -= 0;\n printMaze(mz); \n } else {\n //If hand position is a wall check in front of player\n if(mz[p_row-1][p_col] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col += 0;\n printMaze(mz);\n } else if (mz[p_row][p_col-1] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col -= 2;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col -= 2;\n printMaze(mz);\n }\n }\n } else if (h_col+1 == p_col){\n //If facing South\n if(mz[h_row][h_col] != '#'){\n //Look right\n mz[p_row][p_col] = 'X'; \n p_row -= 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col += 0;\n printMaze(mz);\n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row+1][p_col] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col += 0;\n printMaze(mz);\n } else if (mz[p_row][p_col+1] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col += 2;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col += 1;\n printMaze(mz);\n }\n }\n \n }\n maze(mz, p_row, p_col, h_row, h_col); \n }\n }",
"private void makeMaze() {\n\t\ttry {\n\t\t\tthis.end = ImageIO.read(new File(\"images/tiles/end_locked.png\"));\n\t\t\tint w = getWidth()/gui.getModel().getDifficulty();\n\t\t\tint h = getHeight()/gui.getModel().getDifficulty();\n\t\t\tint difficulty = gui.getModel().getDifficulty();\n\t\t\tmazeImage = new BufferedImage(difficulty*(getWidth()/difficulty), difficulty*(getHeight()/difficulty), BufferedImage.TYPE_INT_RGB);\n\t\t\tGraphics2D g = mazeImage.createGraphics();\n\t\t\tString tile = \"\";\n\t\t\tfor (BaseState s: gui.getModel().getMaze()) {\n\t\t\t\tint x = s.getX(); int y = s.getY();\n\t\t\t\t\n\t\t\t\t// check walls\n\t\t\t\tint numSides = 0;\n\t\t\t\tboolean rightWall = false;\n\t\t\t\tboolean leftWall = false;\n\t\t\t\tboolean topWall = false;\n\t\t\t\tboolean bottomWall = false;\n\t\t\t\tif (s.getRight() == null) rightWall = true;\n\t\t\t\tif (s.getLeft() == null) leftWall = true;\n\t\t\t\tif (s.getUp() == null) topWall = true;\n\t\t\t\tif (s.getDown() == null) bottomWall = true;\n\t\t\t\tif (topWall) numSides++;\n\t\t\t\tif (leftWall) numSides++;\n\t\t\t\tif (bottomWall) numSides++;\n\t\t\t\tif (rightWall) numSides++;\n\t\t\t\t\n\t\t\t\t// find tile type\n\t\t\t\tif (numSides == 3) { // dead end\n\t\t\t\t\tif (!rightWall) tile = \"images/tiles/deadend_left.bmp\";\n\t\t\t\t\telse if (!leftWall) tile = \"images/tiles/deadend_right.bmp\";\n\t\t\t\t\telse if (!topWall) tile = \"images/tiles/deadend_bottom.bmp\";\n\t\t\t\t\telse if (!bottomWall) tile = \"images/tiles/deadend_top.bmp\";\n\t\t\t\t} else if (numSides == 2) { // corner or hall\n\t\t\t\t\t//hall\n\t\t\t\t\tif (rightWall && leftWall) tile = \"images/tiles/hall_vertical.bmp\";\n\t\t\t\t\telse if (topWall && bottomWall) tile = \"images/tiles/hall_horizontal.bmp\";\n\t\t\t\t\t//corner\n\t\t\t\t\telse if (topWall && leftWall) tile = \"images/tiles/corner_top_left.bmp\";\n\t\t\t\t\telse if (topWall && rightWall) tile = \"images/tiles/corner_top_right.bmp\";\n\t\t\t\t\telse if (bottomWall && leftWall) tile = \"images/tiles/corner_bottom_left.bmp\";\n\t\t\t\t\telse if (bottomWall && rightWall) tile = \"images/tiles/corner_bottom_right.bmp\";\n\t\t\t\t} else if (numSides == 1) { // single side\n\t\t\t\t\tif (leftWall) tile = \"images/tiles/wall_left.bmp\";\n\t\t\t\t\telse if (rightWall) tile = \"images/tiles/wall_right.bmp\";\n\t\t\t\t\telse if (topWall) tile = \"images/tiles/wall_top.bmp\";\n\t\t\t\t\telse if (bottomWall) tile = \"images/tiles/wall_bottom.bmp\";\n\t\t\t\t} else { // open\n\t\t\t\t\ttile = \"images/tiles/open.bmp\";\n\t\t\t\t}\n\t\t\t\t// draw tile\n\t\t\t\tg.drawImage(ImageIO.read(new File(tile)), x*w, y*h, w, h, null);\n\t\t\t\t\n\t\t\t\t// check for ending and draw if need be\n\t\t\t\tif (s.getX() == gui.getModel().getDifficulty() - 1 && s.getY() == gui.getModel().getDifficulty() - 1) {\n\t\t\t\t\tg.drawImage(ImageIO.read(new File(\"images/tiles/end_unlocked.png\")), x*w, y*h, w, h, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException e) {System.err.println(\"Images not found.\");}\n\t}",
"public void showGrid() {\n for (int i = minRow; i <= maxRow; i++) {\n for (int j = minCol; j <= maxCol; j++) {\n clientOutputStream.print(grid[i][j] + \" \");\n }\n clientOutputStream.println();\n }\n clientOutputStream.println();\n clientOutputStream.flush();\n }",
"public void saveMaze(File file) throws IOException {\n PrintWriter outputFile = new PrintWriter(file);\n\n Cell[][] grid = maze.getGrid();\n\n outputFile.write(\"BFS\\n\");\n\n // Saves the original (not shortest) BFS path.\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 outputFile.write(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 outputFile.write(currentCell.topRow());\n }\n }\n outputFile.write(\"+\");\n outputFile.write(\"\\n\");\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 outputFile.write(currentCell.zeroDistanceColumn());\n else\n outputFile.write(currentCell.distanceColumn());\n }\n outputFile.write(\"|\");\n outputFile.write(\"\\n\");\n }\n }\n\n // Saves the shortest BFS path.\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 outputFile.write(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 outputFile.write(currentCell.topRow());\n }\n }\n outputFile.write(\"+\");\n outputFile.write(\"\\n\");\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 outputFile.write(currentCell.zeroDistanceColumn2());\n else if (parents.contains(currentCell))\n outputFile.write(currentCell.zeroDistanceColumn2());\n else\n outputFile.write(currentCell.distanceColumn2());\n }\n outputFile.write(\"|\");\n outputFile.write(\"\\n\");\n }\n }\n // Saves the shortest path, length, and visited cells.\n outputFile.write(\"Path:\");\n for (Cell currentCell : parents) {\n outputFile.write(\"(\" + currentCell.x + \",\" + currentCell.y + \") \");\n }\n outputFile.write(\"\\n\");\n outputFile.write(\"Visited Cells: \" + visitedCells + \"\\n\");\n outputFile.write(\"Length of Path: \" + parents.size() + \"\\n\");\n outputFile.close();\n\n }",
"public void printMaze(Position p){\r\n for (int i = 0; i < mazeData[i].length; i++) {\r\n for (int j = 0; j < mazeData.length; j++) {\r\n if(p.getX()==j&&p.getY()==i)\r\n System.out.print(\"X\");\r\n else\r\n System.out.print(mazeData[j][i]);\r\n }\r\n System.out.print(\"\\n\");\r\n }\r\n }",
"public void drawMaze(PaintEvent e)\r\n\t{\r\n\t\tString temp=\"\";\r\n\t\tboardGame=new MazeCanvas[this.matrix.getRows()][this.matrix.getCols()];\r\n\t\t\r\n\t\t\tfor(int i=0;i<matrix.getRows();i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j=0;j<matrix.getCols();j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(i!=matrix.getRows()-1 && j!=matrix.getCols())\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(matrix.getCell(i, j).getUp()==true)\r\n\t\t\t\t\t\ttemp+=\"U\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getRight()==true)\r\n\t\t\t\t\t\ttemp+=\"R\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getDown()==true)\r\n\t\t\t\t\t\ttemp+=\"D\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getLeft()==true)\r\n\t\t\t\t\t\ttemp+=\"L\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tboardGame[i][j]=new MazeCanvas(this, SWT.FILL);\r\n\t\t\t\t\tboardGame[i][j].setcImage(new Image(this.getDisplay(), \"Images//FloorImages//floor\"+temp+\".jpg\"));\r\n\t\t\t\t\tboardGame[i][j].setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));\r\n\t\t\t\t\tboardGame[i][j].drawCell(e, (getSize().x/matrix.getCols())*j , (getSize().y/matrix.getRows())*i , (getSize().x/matrix.getCols()), (getSize().y/matrix.getRows()));\r\n\t\t\t\t\ttemp=\"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tboardGame[i][j]=new MazeCanvas(this, SWT.FILL);\r\n\t\t\t\t\tboardGame[i][j].setcImage(new Image(this.getDisplay(), \"Images//FloorImageSolution//floor\"+temp+\".jpg\"));\r\n\t\t\t\t\tboardGame[i][j].setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));\r\n\t\t\t\t\tboardGame[i][j].drawCell(e, (getSize().x/matrix.getCols())*j , (getSize().y/matrix.getRows())*i , (getSize().x/matrix.getCols()), (getSize().y/matrix.getRows()));\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnewmaze=false;\r\n\t\t\t\r\n\t}",
"public String toString() {\n String mazeVisual = \"\";\n Maze routeMaze = this.getMaze();\n for (int row = 0; row < routeMaze.getTiles().size(); row++) {\n for (int col = 0; col < routeMaze.getTiles().get(0).size(); col++) {\n if (route.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"*\");\n } else if (popped.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"-\");\n } else {\n mazeVisual = (mazeVisual + routeMaze.getTiles().get(row).get(col).toString());\n }\n if ((col + 1) == routeMaze.getTiles().get(0).size()) {\n mazeVisual = mazeVisual + \"\\n\";\n }\n }\n }\n return mazeVisual;\n }",
"protected abstract void draw(Maze maze);",
"public void printMaze(char[][] maze) {\r\n // Go through every row\r\n for (int row = 0; row < maze.length; row++) {\r\n // Go though column\r\n for (int col = 0; col < maze[row].length; col++) {\r\n System.out.print(maze[row][col]);\r\n }\r\n System.out.println(\"\");\r\n }\r\n }",
"private void createMaze(Tile currentTile) {\n\n while (numberOfCellsVisited < CAST_WIDTH * CAST_HEIGHT) {\n\n // Get coordinates of current tile and set as visited\n int currentX = currentTile.getPosition().getX();\n int currentY = currentTile.getPosition().getY();\n tempMap[currentY][currentX].setVisited(true);\n\n // Begin neighbourhood scan\n ArrayList<Integer> neighbours = new ArrayList<>();\n\n // If a neighbour is not visited and its projected position is within bounds, add it to the list of valid neighbours\n // North neighbour\n if (currentY - 1 >= 0) {\n if (!tempMap[currentY - 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(0);\n }\n //Southern neighbour\n if (currentY + 1 < CAST_HEIGHT) { //y index if increased is not greater than height of the chamber\n if (!tempMap[currentY + 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(1);\n }\n //Eastern neighbour\n if (currentX + 1 < CAST_WIDTH) { //check edge case\n if (!tempMap[currentY][currentX + 1].isVisited()) { //check if visited\n neighbours.add(2);\n }\n }\n //Western neighbour\n if (currentX - 1 >= 0) {\n if (!tempMap[currentY][currentX - 1].isVisited()) {\n neighbours.add(3);\n }\n }\n if (!neighbours.isEmpty()) {\n\n //generate random number between 0 and 3 for direction\n Random rand = new Random();\n boolean randomizer;\n int myDirection;\n do {\n myDirection = rand.nextInt(4);\n randomizer = neighbours.contains(myDirection);\n } while (!randomizer);\n\n //knock down wall\n switch (myDirection) {\n case 0 -> { // North\n tempMap[currentY][currentX].getPathDirection()[0] = true;\n currentTile = tempMap[currentY - 1][currentX];\n }\n case 1 -> { // South\n tempMap[currentY][currentX].getPathDirection()[1] = true;\n currentTile = tempMap[currentY + 1][currentX];\n }\n case 2 -> { // East\n tempMap[currentY][currentX].getPathDirection()[2] = true;\n currentTile = tempMap[currentY][currentX + 1];\n }\n case 3 -> { // West\n tempMap[currentY][currentX].getPathDirection()[3] = true;\n currentTile = tempMap[currentY][currentX - 1];\n }\n }\n\n mapStack.push(currentTile);\n numberOfCellsVisited++;\n } else {\n currentTile = mapStack.pop(); //backtrack\n }\n }\n\n castMaze(tempMap[0][0], -1);\n }",
"public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }",
"public void display() {\n JFrame win = new JFrame(\"My Maze\");\n win.setLocation(25, 25);\n win.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n win.add(this);\n win.pack();\n win.setVisible(true);\n }",
"public void displayGrid(){\n \tint max = currentOcean.getMaxGrid(); // modified by Ludo\n \tint line = max*2 +1; \t\t\t\t// modified by Ludo\n \tfor(int i=0; i<max+1;i++){\t\t\t// modified by Ludo\n \t int lineStart = 0 + line*i;\t\t// modified by Ludo\n \t int lineEnd = line + line*i;\t\t// modified by Ludo\n \t System.out.println(currentOcean.toString().substring(lineStart, lineEnd)); // modified by Ludo\n }\n }",
"public void paintComponent(Graphics g)\n {\n\t Graphics2D g2 = (Graphics2D) g;\n\t // draw start point and end point\n\t g2.setColor(START_COLOR);\n\t Rectangle myStart = new Rectangle(START_X + maze.getEntryLoc().getCol()*BOX_WIDTH+INSET, START_Y + maze.getEntryLoc().getRow()*BOX_HEIGHT+INSET, BOX_WIDTH-INSET*TWO_SIDE, BOX_HEIGHT-INSET*TWO_SIDE);\n\t g2.fill(myStart);\n\t g2.setColor(END_COLOR);\n\t Rectangle myEnd = new Rectangle(START_X + maze.getExitLoc().getCol()*BOX_WIDTH+INSET, START_Y + maze.getExitLoc().getRow()*BOX_HEIGHT+INSET, BOX_WIDTH-INSET*TWO_SIDE, BOX_HEIGHT-INSET*TWO_SIDE);\n\t g2.fill(myEnd);\n\t //draw walls and borders\n\t g2.setColor(WALL_COLOR);\n\t Rectangle myWall;\n\t for (int i = FOR_INIT; i < maze.numRows(); i++){\n\t\t for (int j = FOR_INIT; j < maze.numCols(); j++){\n\t\t\t if (maze.hasWallAt(new MazeCoord(i,j))){\n\t\t\t\t myWall= new Rectangle(START_X + j*BOX_WIDTH, START_Y + i*BOX_HEIGHT, BOX_WIDTH, BOX_HEIGHT);\n\t\t\t\t g2.fill(myWall);\n\t\t\t }\n\t\t }\n\t }\n\t myWall = new Rectangle(START_X,START_Y,maze.numCols()*BOX_WIDTH,maze.numRows()*BOX_HEIGHT);\n\t g2.draw(myWall);\n\t //draw path use linkedlist \n\t g2.setColor(PATH_COLOR);\n\t double x1,y1,x2,y2;\n\t ListIterator<MazeCoord> iter = maze.getPath().listIterator(); \n\t MazeCoord temp = null;\n\t if (iter.hasNext()){\n\t\t temp = iter.next();\n\t }\n\t //use iteration to get the value\n\t while (iter.hasNext()){\n\t\t x1 = START_X + temp.getCol() * BOX_WIDTH + BOX_WIDTH / TWO_SIDE;\n\t\t y1 = START_Y + temp.getRow() * BOX_HEIGHT + BOX_HEIGHT / TWO_SIDE;\n\t\t temp = iter.next();\n\t\t x2 = START_X + temp.getCol() * BOX_WIDTH + BOX_WIDTH / TWO_SIDE;\n\t\t y2 = START_Y + temp.getRow() * BOX_HEIGHT + BOX_HEIGHT / TWO_SIDE;\n\t\t Line2D.Double myPath = new Line2D.Double(x1, y1, x2, y2);\t \n\t\t g2.draw(myPath);\n\t }\t\t\t \n }",
"public void showMap() {\n//\t\tSystem.out.print(\" \");\n//\t\tfor (int i = 0; i < maxY; i++) {\n//\t\t\tSystem.out.print(i);\n//\t\t\tSystem.out.print(' ');\n//\t\t}\n\t\tSystem.out.println();\n\t\tfor (int i = 0; i < maxX; i++) {\n//\t\t\tSystem.out.print(i + \" \");\n\t\t\tfor (int j = 0; j < maxY; j++) {\n\t\t\t\tSystem.out.print(coveredMap[i][j]);\n\t\t\t\tSystem.out.print(' ');\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void printBoard() {\n printStream.println(\n \" \" + positions.get(0) + \"| \" + positions.get(1) + \" |\" + positions.get(2) + \"\\n\" +\n \"---------\\n\" +\n \" \" + positions.get(3) + \"| \" + positions.get(4) + \" |\" + positions.get(5) + \"\\n\" +\n \"---------\\n\" +\n \" \" + positions.get(6) + \"| \" + positions.get(7) + \" |\" + positions.get(8) + \"\\n\");\n }",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"public void printMap()\r\n {\r\n\t\tint x = 0;\r\n for(Room[] row : rooms)\r\n {\r\n \tStringBuilder top = new StringBuilder(); // top row of room\r\n \tStringBuilder mid = new StringBuilder(); // mid row of room\r\n \tStringBuilder bot = null;\r\n \tif (x == row.length - 1) { // if the last row\r\n \t\tbot = new StringBuilder(); // bot row of room\r\n \t}\r\n \t\r\n for (Room room : row)\r\n {\r\n \tString roomStr = room.toString();\r\n top.append(roomStr.substring(0, 3)); // 0-3 top, 3-6, mid, 6-9 bot\r\n mid.append(roomStr.substring(3, 6)); \r\n if (x == row.length - 1) { //if the last row\r\n \tbot.append(roomStr.substring(6, 9)); //append the bot row\r\n }\r\n }\r\n // add new lines\r\n top.append('\\n');\r\n mid.append('\\n');\r\n \r\n System.out.print(top);\r\n System.out.print(mid);\r\n \r\n if (x == row.length - 1) {\r\n \tbot.append('\\n');\r\n \tSystem.out.print(bot);\r\n }\r\n x++;\r\n }\r\n }",
"public void showSolveMaze(String message);",
"public void showLoadMaze(String message);",
"public Maze(byte[] arr)\n {\n try {\n\n int rowSizeInt;\n int colSizeInt;\n int entryRowInt;\n int entryColInt;\n int exitRowInt;\n int exitColInt;\n\n byte[] RowSizeBytes = Arrays.copyOfRange(arr, 0, 4);\n byte[] ColSizeBytes = Arrays.copyOfRange(arr, 4, 8);\n\n byte[] StartRowBytes = Arrays.copyOfRange(arr, 8, 12);\n byte[] StartColBytes = Arrays.copyOfRange(arr, 12, 16);\n\n byte[] EndRowBytes = Arrays.copyOfRange(arr, 16, 20);\n byte[] EndColBytes = Arrays.copyOfRange(arr, 20, 24);\n\n rowSizeInt = ByteBuffer.wrap(RowSizeBytes).getInt();\n colSizeInt = ByteBuffer.wrap(ColSizeBytes).getInt();\n entryRowInt = ByteBuffer.wrap(StartRowBytes).getInt();\n entryColInt = ByteBuffer.wrap(StartColBytes).getInt();\n exitRowInt = ByteBuffer.wrap(EndRowBytes).getInt();\n exitColInt = ByteBuffer.wrap(EndColBytes).getInt();\n\n this.data = new int[rowSizeInt][colSizeInt];\n\n //Sets the visual int matrix\n int byteArrIndex = 24;\n for (int i = 0; i < rowSizeInt; i++)\n {\n for (int j = 0; j < colSizeInt; j++)\n {\n this.data[i][j] = arr[byteArrIndex++];\n }\n }\n\n this.PositionMatrix = new Position[rowSizeInt / 2 + 1][colSizeInt / 2 + 1];\n int counter = 0;\n for (int i = 0; i < rowSizeInt / 2 + 1; i++)\n {\n for (int j = 0; j < colSizeInt / 2 + 1; j++)\n {\n this.PositionMatrix[i][j] = new Position(i, j);\n this.PositionMatrix[i][j].setId(counter);\n counter++;\n }\n }\n\n this.data[entryRowInt * 2][entryColInt * 2] = 0;\n this.data[exitRowInt * 2][exitColInt * 2] = 0;\n\n intToPositionArr(this.PositionMatrix, data);\n\n this.data[entryRowInt * 2][entryColInt * 2] = 83;\n this.data[exitRowInt * 2][exitColInt * 2] = 69;\n\n this.entry = PositionMatrix[entryRowInt][entryColInt];\n this.exit = PositionMatrix[exitRowInt][exitColInt];\n }\n\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }",
"public void print(final PrintStream output) {\r\n // TODO your job\r\n // print row by row\r\n PrintStream rowPrinter = new PrintStream(output);\r\n for ( char[] x : mazeData){\r\n rowPrinter.println(x);\r\n }\r\n }",
"public void printMiniMap() \n { \n /* this.miniMapFrame(); */\n }",
"public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }",
"public void printMap(){\n\n for (Tile [] tile_row : this.layout)\n {\n for (Tile tile : tile_row)\n {\n if (tile.isShelf()){\n System.out.print(\" R \");\n }\n else if (tile.isDP()){\n System.out.print(\" D \");\n }\n\n else {\n System.out.print(\" * \");\n }\n\n }\n System.out.println();\n }\n\n }",
"public void MakeMaze() {\n\n\t\t// ints for random x , y and direction\n\t\tint rx = 0;\n\t\tint ry = 0;\n\t\tint rd = 0;\n\t\tgenMaze = true;\n\n\t\t// c used to count tries, if there are too many the main loop jumps to\n\t\t// the end of the function\n\t\tint c = 0;\n\n\t\t// fill the map with walls\n\t\tfor (int ix = 0; ix < max_x; ix++) {\n\t\t\tfor (int iy = 0; iy < max_y; iy++) {\n\t\t\t\tmap[ix][iy] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// fill the cell array with unvisited cells\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\tcell[ix][iy] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// choose a \"random\" x,y pair. centre of screen used here instead\n\t\trx = maxCells_x / 2;\n\t\try = maxCells_y / 2;\n\n\t\t// mark cell visited\n\t\tcell[rx][ry] = 1;\n\n\t\t// count cells\n\t\tcountCells();\n\n\t\t// start main generator loop\n\t\twhile (visitedCells < totalCells) {\n\n\t\t\tc++;\n\n\t\t\tif (c > magicNumber) {\n\t\t\t\tgenMaze = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\trd = rand.nextInt(4);\n\n\t\t\t// dig tunnels\n\n\t\t\t// up\n\n\t\t\tif (genMaze) {\n\t\t\t\tif (rd == 0) { // up\n\t\t\t\t\tif (inRange(rx * CELL_RAD, ry * CELL_RAD - 1) == 1\n\t\t\t\t\t\t\t&& (cell[rx][ry - 1]) == 0 || rand.nextInt(7) == 7) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, ry * CELL_RAD, rx * CELL_RAD,\n\t\t\t\t\t\t\t\t(ry - 1) * CELL_RAD);\n\t\t\t\t\t\try--;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (rd == 1) { // down\n\t\t\t\t\tif (inRange(rx + CELL_RAD, ry * CELL_RAD + 1) == 1\n\t\t\t\t\t\t\t&& (cell[rx][ry + 1] == 0 || rand.nextInt(7) == 7)) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, (ry) * CELL_RAD, rx * CELL_RAD,\n\t\t\t\t\t\t\t\t(ry + 1) * CELL_RAD);\n\t\t\t\t\t\try++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (rd == 2) { // left\n\t\t\t\t\tif (inRange((rx * CELL_RAD) - 1, ry * CELL_RAD) == 1\n\t\t\t\t\t\t\t&& (cell[rx - 1][ry] == 0 || rand.nextInt(7) == 7)) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, ry * CELL_RAD,\n\t\t\t\t\t\t\t\t(rx - 1) * CELL_RAD, ry * CELL_RAD);\n\t\t\t\t\t\trx--;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else if (rd == 3) { // right\n\t\t\t\t\tif (inRange(rx * CELL_RAD + 1, ry * CELL_RAD) == 1\n\t\t\t\t\t\t\t&& (cell[rx + 1][ry]) == 0 || rand.nextInt(7) == 7) {\n\t\t\t\t\t\tclink((rx) * CELL_RAD, ry * CELL_RAD, (rx + 1)\n\t\t\t\t\t\t\t\t* CELL_RAD, ry * CELL_RAD);\n\t\t\t\t\t\trx++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// mark the cell as visited\n\n\t\t\t\tcell[rx][ry] = 1;\n\n\t\t\t\t// place a \"floor\" tile on the map where the maze cell should be\n\t\t\t\tmap[rx * CELL_RAD][ry * CELL_RAD] = 0;\n\n\t\t\t\t// count the cells to establish how many have been visited\n\t\t\t\tcountCells();\n\t\t\t}\n\t\t}\n\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tmap[ix * CELL_RAD][iy * CELL_RAD] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void printBoard() {\n System.out.println(\"---+---+---\");\n for (int x = 0; x < boardLength; x++) {\n for (int y = 0; y < boardWidth; y++) {\n char currentPlace = getFromCoordinates(x, y);\n System.out.print(String.format(\" %s \", currentPlace));\n\n if (y != 2) {\n System.out.print(\"|\");\n }\n }\n System.out.println();\n System.out.println(\"---+---+---\");\n }\n }",
"public void render() {\n int pixel = getPixelSize();\n for (int xx = x; xx<x+w; xx += pixel) {\n for (int yy = y; yy<y+h; yy += pixel) {\n Location next = getLocation(xx, yy);\n if (next != null) { // This way if a wall is spawned at the edge it's ok\n next.setColor(color(255,255,255));\n next.setType(LocationType.WALL);\n getGridCache().add(next);\n }\n }\n }\n }",
"public void printGrid(){\n\t\tfor(int i=0;i<getHeight();i++){\n\t\t\tfor(int j=0;j<getWidth();j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tSystem.out.print(\"- \");\n\t\t\t\telse if(getGrid(i,j).isPath())\n\t\t\t\t\tSystem.out.print(\"1 \");\n\t\t\t\telse if(getGrid(i,j).isScenery())\n\t\t\t\t\tSystem.out.print(\"0 \");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\"? \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void hideInnerMaze(){\n for(int i = 0; i < 20; i ++){\n for(int j = 0; j < 15; j ++){\n if(maze[i][j] == VISIBLESPACE){\n maze[i][j] = NOTVISIBLESPACE;\n }\n }\n }\n\n //SET OUTER WALL TO VISIBLE\n for(int i = 0; i < 20; i ++){\n maze[i][0] = VISIBLEWALL;\n maze[i][14] = VISIBLEWALL;\n }\n for(int i = 0; i < 15; i ++){\n maze[0][i] = VISIBLEWALL;\n maze[19][i] = VISIBLEWALL;\n }\n }",
"public void display() {\n float dRadial = reactionRadialMax - reactionRadial;\n if(dRadial != 0){\n noStroke();\n reactionRadial += abs(dRadial) * radialEasing;\n fill(255,255,255,150-reactionRadial*(255/reactionRadialMax));\n ellipse(location.x, location.y, reactionRadial, reactionRadial);\n }\n \n // grow text from point of origin\n float dText = textSizeMax - textSize;\n if(dText != 0){\n noStroke();\n textSize += abs(dText) * surfaceEasing;\n textSize(textSize);\n }\n \n // draw agent (point)\n fill(255);\n pushMatrix();\n translate(location.x, location.y);\n float r = 3;\n ellipse(0, 0, r, r);\n popMatrix();\n noFill(); \n \n // draw text \n textSize(txtSize);\n float lifeline = map(leftToLive, 0, lifespan, 25, 255);\n if(mouseOver()){\n stroke(229,28,35);\n fill(229,28,35);\n }\n else {\n stroke(255);\n fill(255);\n }\n \n text(word, location.x, location.y);\n \n // draw connections to neighboars\n gaze();\n }",
"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 }",
"private void generateMaze(int x, int y) {generateMaze(getCell(x, y)); // gerar a partir da celula\r\n }",
"private void constructMaze() {\r\n\t\t\r\n\t\t// manual code to construct a sample maze going cell by cell\r\n\t\tgridSheet[0][0].breakSouthWall();\r\n\t\tgridSheet[1][0].breakEastWall();\r\n\t\tgridSheet[1][1].breakSouthWall();\r\n\t\tgridSheet[2][1].breakWestWall();\r\n\t\tgridSheet[2][0].breakSouthWall();\r\n\t\tgridSheet[2][1].breakEastWall();\r\n\t\tgridSheet[2][2].breakSouthWall();\r\n\t\tgridSheet[3][2].breakSouthWall();\r\n\t\tgridSheet[4][2].breakWestWall();\r\n\t\tgridSheet[4][1].breakNorthWall();\r\n\t\tgridSheet[4][1].breakWestWall();\r\n\t\tgridSheet[2][2].breakEastWall();\r\n\t\tgridSheet[2][3].breakNorthWall();\r\n\t\tgridSheet[1][3].breakWestWall();\r\n\t\tgridSheet[1][3].breakNorthWall();\r\n\t\tgridSheet[0][3].breakWestWall();\r\n\t\tgridSheet[0][2].breakWestWall();\r\n\t\tgridSheet[0][3].breakEastWall();\r\n\t\tgridSheet[0][4].breakSouthWall();\r\n\t\tgridSheet[1][4].breakSouthWall();\r\n\t\tgridSheet[2][4].breakSouthWall();\r\n\t\tgridSheet[3][4].breakWestWall();\r\n\t\tgridSheet[3][4].breakSouthWall();\r\n\t\tgridSheet[4][4].breakWestWall();\r\n\t\t\r\n\t}",
"public static void draw() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + board[0][0] + \" | \" + board[0][1] + \" | \"\n\t\t\t\t+ board[0][2]);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + board[1][0] + \" | \" + board[1][1] + \" | \"\n\t\t\t\t+ board[1][2]);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\"---+---+---\");\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println(\" \" + board[2][0] + \" | \" + board[2][1] + \" | \"\n\t\t\t\t+ board[2][2]);\n\t\tSystem.out.println(\" | | \");\n\t\tSystem.out.println();\n\t}",
"public void printWalls(){\n\t\tSystem.out.printf(\"Cell [%d][%d] -- (%d, %d, %d, %d)\\n\",position[0],\n\t\t\t\t\t\tposition[1],eastWall, northWall, westWall, southWall);\n\t}",
"void display()\n\t{\n\t\ttiles[fruit[0]][fruit[1]][fruit[2]] = \" *\";\n\n\t\t// does not write over head\n\t\tif (theSnake.getLength() == 3)\n\t\t{\n\t\t\tfor (int i = 1; i < theSnake.getLength(); i++)\n\t\t\t{\n\t\t\t\t// Places snake body parts onto the board\n\t\t\t\t//in each of its positions\n\t\t\t\ttiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] = \" @\";\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tfor (int i = theSnake.getLength() - 1; tiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] != \" @\"\n\t\t\t\t&& i != 0; i--)\n\t\t\t{\n\t\t\t\t// Places snake body parts onto the board\n\t\t\t\t//in each of its positions\n\t\t\t\ttiles[theSnake.getXofPartI(i)][theSnake.getYofPartI(i)][theSnake.getZofPartI(i)] = \" @\";\n\t\t\t}\n\t\t\t// places snake body part where its head was in the previous update\n\t\t\ttiles[theSnake.getXofPartI(1)][theSnake.getYofPartI(1)][theSnake.getZofPartI(1)] = \" @\";\n\t\t}\n\n\t\t// Print basic instructions\n\t\tangles.append(\"\\n\\tq: to quit\\n\\t8: up\\t5: down\\t\\t\\t\\t\\t\\t8: up\\t5: down\\n\\t4: left\\t6: right\\t\\t\\t\\t\\t9: left\\t3:right\\n\\t9:\");\n\t\tangles.append(\"surfacing\\t3: deeper\\t\\t\\t\\t4: surfacing\\t6: deeper\\n\");\n\n\t\t// print the board to console\n\t\tfor (int y = 0; y < size; y++){\n\t\t\tangles.append(\"\\t\");\n\t\t\tdisplayLine(y, \"xy\");\n\n\t\t\tangles.append(\"\\t\\t\");\n\t\t\tdisplayLine(y, \"zy\");\n\t\t\tangles.append(\"\\n\");\n\t\t}\n\n\t\tangles.append(\"\\n\\n\");\n\t\tfor (int z = 0; z < size; z++) {\n\t\t\tangles.append(\"\\t\");\n\t\t\tdisplayLine(z, \"xz\");\n\t\t\tangles.append(\"\\n\");\n\t\t}\n\t\t\n\t\tSystem.out.println(angles);\n\t\tangles.replace(0, angles.length(), \"\");\n\n\t\t// removes snake from board completely so we don't have to keep track\n\t\t//of conditions.\n\t\t//for (int i = 0; i < theSnake.getLength(); i++)\n\t\t//{\n\n\t\t// Only the last snake body part will need to be taken off\n\t\ttiles[theSnake.getXofPartI(theSnake.getLength() - 1)][theSnake.getYofPartI(theSnake.getLength() - 1)][theSnake.getZofPartI(theSnake.getLength() - 1)] = \" \";\n\t\t//}\n\t}",
"public void printTiles() {\r\n for (int row=0; row<BOARD_MAX_WIDTH; row++) {\r\n for (int col=0; col<BOARD_MAX_WIDTH; col++) {\r\n System.out.print(tiles[row][col]);\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\tString s = new String(\"\");\r\n\t\tfor (int i = 0; i < maze.length; i++) {\r\n\t\t\ts+= \"\\n\";\r\n\t\t\ts+= \"Floor #\";\r\n\t\t\ts+= (i+1);\r\n\t\t\ts+= \":\";\r\n\t\t\ts+= \"\\n\";\r\n\t\t\tfor (int j = 0; j < maze[0].length; j++) {\r\n\t\t\t\ts+= \"\\n\";\r\n\t\t\t\tfor (int j2 = 0; j2 < maze[0][0].length; j2++) {\r\n\t\t\t\t\ts += this.maze[i][j][j2];\r\n\t\t\t\t\ts += \" \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ts+= \"\\n\";\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"static void printBoard() \r\n {\r\n \tSystem.out.println(\"/---|---|---\\\\\");\r\n \tSystem.out.println(\"| \" + board[0][0] + \" | \" + board[0][1] + \" | \" + \r\n \tboard[0][2] + \" |\");\r\n \tSystem.out.println(\"|-----------|\");\r\n \tSystem.out.println(\"| \" + board[1][0] + \" | \" + board[1][1] + \" | \" + \r\n \tboard[1][2] + \" |\");\r\n \tSystem.out.println(\"|-----------|\");\r\n \tSystem.out.println(\"| \" + board[2][0] + \" | \" + board[2][1] + \" | \" + \r\n \tboard[2][2] + \" |\");\r\n \tSystem.out.println(\"\\\\---|---|---/\");\r\n }",
"public void drawTextualMap(){\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j] instanceof Room){\n\t\t\t\t\tif(((Room)grid[i][j]).getItems().size()>0)\n\t\t\t\t\t\tSystem.out.print(\" I \");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\" R \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\"rows = \"+grid.length+\" cols = \"+grid[0].length);\n\t\tSystem.out.println(\"I = Room has Item, R = Room has no Item, '=' = Is a Hallway\");\n\n\t}",
"public void displayGrid ()\n {\n for (int i = 0; i < getDimX(); i++) {\n System.out.print(\"[ \");\n for (int y = 0; y < getDimY(); y++) {\n System.out.print(m_grid[i][y]);\n System.out.print(\" \");\n }\n System.out.println(\"]\");\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 GameField() { //generation of maze size and more\n for (int i = 0; i < 18; i++) {\n for (int j = 0; j < 18; j++) {\n System.out.print(\" \" + Map[i][j] + \" \");\n }\n System.out.println();\n }\n width = height = 40;\n }",
"private void showTheMove() {\n\r\n updateTicTacToeShape();\r\n for (int ii=0; ii<5; ii++) {\r\n System.out.println(ticTacToeShape[ii]);\r\n }\r\n }",
"public void printMap()\n {\n this.mapFrame.paint();\n this.miniMapFrame.paint();\n }",
"public void paint() {\n for (int row = 0; row < ROWS; ++row) {\n for (int col = 0; col < COLS; ++col) {\n cells[row][col].paint();\n if (col < COLS - 1) System.out.print(\"|\");\n }\n System.out.println();\n if (row < ROWS - 1) {\n System.out.println(\"-----------\");\n }\n }\n }",
"public void display() { \r\n\t\tfor (int i=0; i<3; i++){ \r\n\t\t\tSystem.out.print(\"|\"); \r\n\t\t\tfor (int j=0; j<3; j++){ \r\n\t\t\t\tSystem.out.print(board[i][j] + \"|\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(); \r\n\t\t}\r\n\t\tSystem.out.println(); \r\n\t}",
"void printGrid() {\n\t\tSystem.out.println();\n\t\tfor (int row = 0; row < moleGrid.length; row++) {\n\t\t\tfor (int col = 0; col < moleGrid[row].length; col++) {\n\t\t\t\tSystem.out.print(moleGrid[row][col] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"void setMaze(IMaze maze);",
"public void printGrid()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\t\t\t\t// Else print element of grid\n\t\t\t\telse System.out.print( grid[x][y] + \" \" );\n\t\t\t}\n\t\t\tSystem.out.print( \"\\n\" );\n\t\t}\n\t\tSystem.out.print( \"\\n\" );\n\t}",
"public static void mazeSize(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze four = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct = null;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\tif(randomDirection == 1)\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = four.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\t//System.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+n);\n\t\t\t\t\t\tfour.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfour.remove_wall(col, row, 'r');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(four, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\tfour.draw();\n\t\tfour.printCellNumbers();\t\n\t}",
"public void show()\n\t{\n\t\tSystem.out.print(\" \");\n\t\tfor(int i=1;i<=row;i++)\n\t\t{\n\t\t\tSystem.out.print(i+\" \");\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t for(int i=0;i<col;i++)\n\t\t{\n\t \t\n\t \tSystem.out.print(i+1+\" \");\n\t\t\tfor(int j=0;j<player1[i].length;j++)\n\t\t\t\tSystem.out.print(player1[i][j]+\" \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public int[][] createMaze(int level){\n\t\t\n\t\tint[][] matriz = null;\n\t\t\n\t\tswitch (level) {\n\t\tcase 1:\n\t\t\tint[][] m1= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,0,0,0},{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,0,1,0,1,0,1,0,1,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,1,6,1,0,1,0,1,0},{0,1,0,1,0,2,0,2,0,1,0,1,0},{0,2,0,2,0,3,0,3,0,2,0,2,0},\n\t\t\t\t\t{3,0,3,3,0,2,17,2,0,3,3,0,3},{7,0,2,2,0,3,0,3,0,2,2,0,7},{0,3,0,3,0,1,1,1,0,3,0,3,0},\n\t\t\t\t\t{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,0,1,0,2,0,2,0,1,0,1,0},{0,1,0,1,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\n\t\t\tmatriz = m1;\t\t\t\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\tint[][] m2= {\n\t\t\t\t\t{0,0,0,6,0,0,0,6,0,0,0,0,0},{0,1,0,6,0,0,0,1,0,1,0,1,0},{0,1,0,0,0,0,1,1,0,1,6,1,0},\n\t\t\t\t\t{0,0,0,1,0,17,0,0,0,6,0,0,0},{11,0,0,1,0,0,6,0,0,1,11,1,6},{11,11,0,0,0,1,0,0,6,0,11,0,0},\n\t\t\t\t\t{0,1,1,1,11,11,11,6,0,0,11,1,0},{0,0,0,6,11,1,0,1,0,1,0,1,0},{6,1,0,6,0,1,0,1,0,0,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,1,1,1,0,1,6,1,0},{0,1,0,1,0,1,1,1,0,0,0,0,0},{0,1,0,0,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,0,13,0,0,1,1,1,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m2;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tint[][] m3= {\n\t\t\t\t\t{0,17,0,0,1,0,0,0,1,0,0,0,0},{0,11,11,11,1,0,0,0,0,0,8,8,8},{1,11,11,11,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{11,11,11,11,0,0,0,1,0,1,1,1,4},{11,11,11,11,1,1,1,2,0,1,0,5,0},{11,11,11,11,0,0,1,0,0,0,0,5,0},\n\t\t\t\t\t{0,11,0,0,0,0,6,6,6,0,0,11,0},{0,3,0,3,0,0,0,0,0,11,11,11,11},{1,4,5,1,4,5,2,2,2,11,11,11,11},\n\t\t\t\t\t{0,0,0,0,0,1,0,3,3,11,11,11,11},{1,0,0,9,0,0,0,2,2,11,11,11,0},{1,1,0,9,0,0,0,0,0,11,11,11,0},\n\t\t\t\t\t{6,1,1,0,0,0,13,0,0,1,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m3;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tint[][] m4= {\n\t\t\t\t\t{0,11,11,0,0,0,17,0,0,0,0,11,0},{11,11,0,0,3,1,1,3,3,0,0,0,11},{11,0,0,5,1,1,1,1,1,1,3,0,7},\n\t\t\t\t\t{7,0,0,1,1,1,1,1,1,1,1,4,0},{0,0,5,2,0,0,0,2,1,1,0,4,0},{12,0,5,0,9,0,9,0,1,4,0,0,0},\n\t\t\t\t\t{0,0,1,0,3,3,0,0,1,4,0,12,12},{0,0,1,1,1,1,1,1,1,1,0,0,0},{0,5,1,1,1,1,1,1,1,1,4,0,0},\n\t\t\t\t\t{0,2,2,1,1,1,1,1,1,2,2,0,0},{0,1,1,3,2,1,1,2,3,1,1,0,11},{11,0,2,2,0,0,0,0,2,2,0,11,11},\n\t\t\t\t\t{6,11,0,0,0,0,13,0,0,0,11,11,6},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m4;\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tint[][] m5= {\n\t\t\t\t\t{0,0,0,0,1,1,0,0,0,0,0,0,0},{8,0,3,0,1,0,0,0,7,7,6,0,0},{6,0,1,0,0,0,1,0,0,0,17,0,0},\n\t\t\t\t\t{1,0,1,1,1,0,1,1,0,12,12,0,12},{2,0,0,0,2,0,0,0,0,12,0,0,0},{0,0,3,0,12,12,0,12,12,12,0,1,1},\n\t\t\t\t\t{1,1,0,0,12,1,0,1,4,0,0,0,0},{0,0,0,0,12,0,0,0,0,0,10,9,0},{12,12,12,0,12,0,6,0,1,0,10,0,0},\n\t\t\t\t\t{0,0,0,3,3,0,0,0,0,0,10,1,1},{0,0,0,0,1,2,2,2,1,3,0,0,0},{1,1,2,0,0,0,0,0,0,2,1,0,0},\n\t\t\t\t\t{2,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m5;\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tint[][] m6= {\n\t\t\t\t\t{0,0,17,0,0,5,0,4,11,11,0,0,0},{0,4,10,0,4,0,0,0,5,11,4,5,11},{0,4,10,0,4,0,1,0,5,11,4,5,11},\n\t\t\t\t\t{0,1,0,0,1,0,6,0,1,11,0,1,11},{0,0,0,5,7,0,1,0,2,9,0,11,11},{1,1,4,0,0,11,1,11,0,0,5,1,1},\n\t\t\t\t\t{0,0,0,0,5,11,11,11,4,0,0,0,0},{6,1,1,0,2,11,11,11,2,5,1,1,6},{7,7,7,0,3,0,11,0,3,0,7,7,7},\n\t\t\t\t\t{0,1,0,0,1,0,0,0,1,0,0,0,0},{0,1,4,0,0,2,0,2,0,0,5,1,11},{0,0,2,0,0,0,0,0,0,0,11,11,11},\n\t\t\t\t\t{0,0,3,0,0,0,13,0,0,0,3,11,11},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m6;\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tint[][] m7= {\n\t\t\t\t\t{0,0,0,17,0,0,0,7,7,0,0,0,0},{0,0,6,7,7,7,0,0,0,0,6,0,0},{0,0,6,0,0,0,11,0,7,6,6,0,0},\n\t\t\t\t\t{0,6,0,0,0,11,6,0,0,0,6,0,0},{0,0,0,0,11,6,6,0,0,0,7,6,0},{0,6,0,11,6,6,6,0,6,0,0,0,0},\n\t\t\t\t\t{0,10,0,6,6,0,0,0,6,6,0,0,0},{9,0,0,0,6,0,6,6,6,0,0,10,0},{0,10,6,0,0,0,6,6,11,0,0,6,0},\n\t\t\t\t\t{0,6,0,0,0,0,6,11,0,0,6,6,0},{0,7,7,6,0,0,11,0,0,6,0,0,0},{0,0,0,0,0,0,0,0,0,7,0,8,6},\n\t\t\t\t\t{8,8,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m7;\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tint[][] m8= {\n\t\t\t\t\t{0,0,1,0,0,1,0,3,0,1,0,0,0},{11,1,1,1,0,1,0,8,0,1,4,0,0},{11,11,11,0,0,2,0,1,0,2,0,5,4},\n\t\t\t\t\t{11,12,12,12,12,12,12,12,12,12,12,0,12},{0,1,0,0,0,0,3,3,0,0,17,0,0},{0,0,1,0,0,5,1,1,2,1,2,7,7},\n\t\t\t\t\t{1,1,0,1,0,5,1,1,11,1,8,8,1},{0,0,0,6,0,8,0,11,11,11,11,0,0},{12,12,0,12,12,12,12,12,0,12,12,12,12},\n\t\t\t\t\t{11,11,0,5,0,0,3,3,0,0,0,0,0},{11,11,1,0,4,0,0,5,0,8,3,1,0},{11,8,1,0,4,0,0,0,0,2,0,1,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,3,0,2,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m8;\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tint[][] m9= {\n\t\t\t\t\t{0,0,0,1,0,0,0,0,0,8,11,0,0},{1,0,0,17,0,0,8,11,10,6,9,0,1},{0,0,0,8,11,10,6,9,0,7,11,0,0},\n\t\t\t\t\t{0,0,10,6,9,0,7,11,0,0,0,0,0},{0,0,0,7,11,0,0,0,0,0,0,0,0},{0,0,0,11,8,11,0,11,8,11,0,0,0},\n\t\t\t\t\t{6,1,0,10,6,9,0,10,6,9,0,1,6},{0,0,0,11,7,11,0,11,7,11,0,0,0},{0,0,0,0,8,0,0,0,8,0,0,0,0},\n\t\t\t\t\t{1,0,0,10,6,9,0,10,6,9,0,0,1},{1,0,0,11,7,11,0,11,7,11,0,0,1},{0,0,3,0,0,0,0,0,0,0,3,0,0},\n\t\t\t\t\t{0,0,1,1,0,0,13,0,0,1,1,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m9;\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\tint[][] m10= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,5,2,1,0,0,0,0,0,0,1,2,4},{5,2,0,0,1,0,11,11,0,1,0,0,5},\n\t\t\t\t\t{1,0,0,0,1,11,11,11,11,1,0,0,5},{1,0,0,5,1,11,6,6,11,1,4,0,1},{5,3,3,1,12,12,12,12,12,12,1,1,1},\n\t\t\t\t\t{0,1,1,1,6,6,1,6,6,1,1,1,4},{0,0,1,1,6,0,1,0,6,1,1,4,0},{0,0,1,1,1,1,1,1,1,1,1,4,0},\n\t\t\t\t\t{1,11,2,2,2,6,6,2,2,2,2,11,1},{1,11,11,11,11,11,11,11,11,11,11,11,1},{0,0,11,11,11,0,0,0,11,11,11,11,0},\n\t\t\t\t\t{0,0,0,4,0,0,13,0,0,0,4,0,0},\n\t\t\t\t\t};\n\t\t\tmatriz = m10;\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tint[][] m11= {\n\t\t\t\t\t{0,0,17,0,0,6,0,1,0,1,1,0,0},{0,5,1,1,1,1,0,1,0,0,0,0,0},{0,0,0,4,0,1,0,1,1,0,11,11,11},\n\t\t\t\t\t{0,5,0,0,0,0,0,6,0,11,11,11,11},{0,5,0,1,1,1,6,1,1,11,11,2,6},{0,2,2,2,6,0,0,1,0,11,11,0,5},\n\t\t\t\t\t{5,1,1,1,0,6,11,11,11,11,11,0,0},{0,0,0,6,0,0,11,11,11,11,11,1,0},{6,1,0,11,11,11,11,6,11,11,11,1,0},\n\t\t\t\t\t{5,1,11,11,11,11,11,0,0,0,0,1,4},{0,1,11,11,0,0,0,0,7,1,1,1,0},{0,0,11,11,0,0,0,0,0,1,0,5,0},\n\t\t\t\t\t{0,3,11,11,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m11;\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\tint[][] m12= {\n\t\t\t\t\t{0,0,0,17,0,0,0,1,1,1,0,0,0},{0,1,1,1,3,0,3,0,0,1,0,0,0},{0,0,0,0,1,0,2,0,0,0,0,1,1},\n\t\t\t\t\t{0,12,12,12,12,12,0,1,4,0,0,1,7},{0,0,8,8,8,12,0,1,0,6,9,1,0},{1,0,1,1,1,12,12,12,0,12,1,1,0},\n\t\t\t\t\t{0,0,0,0,6,12,0,0,0,12,7,0,0},{12,12,12,0,12,12,1,1,0,12,0,0,0},{0,0,0,0,0,1,7,7,0,12,12,12,0},\n\t\t\t\t\t{1,1,1,0,0,0,0,0,0,0,0,0,0},{0,0,1,0,7,7,0,0,0,1,1,0,5},{1,0,0,0,0,0,0,0,0,1,0,0,1},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m12;\n\t\t\tbreak;\n\t\tcase 13:\n\t\t\tint[][] m13= {\n\t\t\t\t\t{0,0,0,0,3,0,0,0,3,0,0,0,0},{0,1,1,1,1,0,0,0,1,1,1,1,0},{0,1,0,0,0,0,1,0,0,0,0,6,0},\n\t\t\t\t\t{0,6,0,1,2,0,0,0,2,1,0,1,1},{0,1,0,4,11,8,6,8,11,5,0,6,1},{0,2,0,0,11,11,11,11,11,0,0,7,1},\n\t\t\t\t\t{1,8,0,0,11,11,11,11,11,0,0,3,1},{1,6,0,4,11,7,6,7,11,5,0,1,0},{1,1,0,1,3,0,0,0,3,1,0,6,0},\n\t\t\t\t\t{1,6,0,0,0,0,1,0,0,0,0,1,0},{1,1,1,1,1,0,0,0,1,1,1,6,6},{1,1,0,0,2,0,0,0,2,0,0,1,0},\n\t\t\t\t\t{1,1,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m13;\n\t\t\tbreak;\n\t\tcase 14:\n\t\t\tint[][] m14= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{11,11,0,0,3,1,1,1,3,0,0,11,11},{11,0,0,5,1,1,1,1,1,4,0,0,11},\n\t\t\t\t\t{0,0,0,1,1,11,1,11,1,1,0,0,0},{0,0,0,1,11,11,1,11,11,1,0,0,0},{11,0,0,1,1,1,1,1,1,1,0,0,11},\n\t\t\t\t\t{11,11,0,0,1,11,1,11,1,0,0,11,11},{12,12,12,0,1,1,1,1,1,0,12,12,12},{0,0,0,0,5,5,5,5,5,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,4,4,4,4,4,0,0,0,0},{10,10,10,0,0,0,0,0,0,0,9,9,9},{4,4,4,0,0,0,0,0,0,0,5,5,5},\n\t\t\t\t\t{9,9,9,10,0,0,13,0,0,9,10,10,10},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m14;\n\t\t\tbreak;\n\t\tcase 15:\n\t\t\tint[][] m15= {\n\t\t\t\t\t{0,0,17,0,1,1,0,0,1,0,0,0,0},{0,11,11,1,1,0,0,0,1,0,0,0,0},{11,11,11,11,11,11,11,11,1,1,0,0,0},\n\t\t\t\t\t{11,7,1,11,1,1,1,11,11,11,11,1,6},{11,11,1,11,11,11,7,11,11,1,9,1,0},{0,11,11,1,8,11,11,11,11,1,0,1,0},\n\t\t\t\t\t{0,1,1,1,1,1,11,11,1,1,4,11,11},{10,7,1,1,0,0,0,1,2,0,0,0,11},{0,1,0,1,0,7,3,2,11,11,1,4,11},\n\t\t\t\t\t{0,1,0,0,5,1,2,11,11,1,0,0,11},{0,1,1,4,5,2,11,11,3,11,1,11,11},{0,0,1,0,11,0,0,0,1,11,2,11,0},\n\t\t\t\t\t{0,0,2,0,0,0,13,0,0,11,11,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m15;\n\t\t\tbreak;\n\t\tcase 16:\n\t\t\tint[][] m16= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,6,11,6,0,0,0,0,0,0,0,0},{0,0,0,11,0,11,8,0,0,0,0,0,0},\n\t\t\t\t\t{0,11,0,0,0,0,11,3,0,0,0,0,0},{0,11,11,0,0,11,0,11,8,0,0,0,0},{0,11,0,11,0,11,0,0,11,3,0,0,0},\n\t\t\t\t\t{0,11,0,0,11,0,0,0,11,11,8,0,0},{0,0,11,0,0,0,0,11,11,11,11,3,0},{0,0,0,11,0,0,11,0,11,11,11,11,0},\n\t\t\t\t\t{1,0,0,0,0,0,11,0,0,11,11,11,6},{1,1,0,0,0,0,0,11,0,11,11,11,11},{6,1,1,0,0,0,0,0,11,0,11,11,11},\n\t\t\t\t\t{6,6,1,1,0,0,13,0,11,0,0,11,11},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m16;\n\t\t\tbreak;\n\t\tcase 17:\n\t\t\tint[][] m17= {\n\t\t\t\t\t{0,0,0,0,3,0,0,0,0,0,3,0,0},{0,1,0,1,1,17,0,14,14,14,1,1,0},{0,1,0,0,1,0,6,14,14,14,14,14,0},\n\t\t\t\t\t{14,14,14,9,1,0,0,1,14,14,14,14,0},{14,14,14,14,14,14,1,1,5,4,0,0,0},{0,0,10,14,14,14,14,1,5,4,0,7,7},\n\t\t\t\t\t{1,1,1,1,14,14,14,14,14,14,14,1,1},{0,0,0,1,1,14,14,14,14,9,0,0,0},{0,1,1,1,0,14,14,14,1,1,0,1,0},\n\t\t\t\t\t{14,14,14,1,14,0,0,0,0,1,0,1,0},{14,14,14,14,14,7,0,7,0,0,3,1,0},{1,14,14,14,14,0,0,0,0,1,0,0,0},\n\t\t\t\t\t{1,1,9,0,0,0,13,0,0,1,0,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m17;\n\t\t\tbreak;\n\t\tcase 18:\n\t\t\tint[][] m18= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,6,6,6,11,0},{0,1,0,17,0,0,0,0,6,0,0,6,0},{1,11,1,0,0,0,1,1,1,1,0,6,0},\n\t\t\t\t\t{0,1,11,1,0,0,1,0,11,1,6,6,0},{0,0,1,0,11,6,1,11,0,1,0,0,0},{0,0,0,0,6,0,1,6,1,1,0,0,0},\n\t\t\t\t\t{0,0,1,1,6,1,0,6,0,0,0,0,0},{0,0,1,0,11,1,6,11,0,0,0,0,0},{6,6,6,11,0,1,0,0,1,1,0,0,0},\n\t\t\t\t\t{6,0,1,1,1,1,0,0,1,6,6,0,0},{6,0,0,6,0,0,0,0,0,6,1,1,0},{11,6,6,6,0,0,0,0,0,0,1,6,6},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,6,6},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m18;\n\t\t\tbreak;\n\t\tcase 19:\n\t\t\tint[][] m19= {\n\t\t\t\t\t{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,17,1,0,1,0,1,0,1,0,1,0},{0,7,0,7,0,7,0,7,0,7,0,7,0},\n\t\t\t\t\t{3,0,3,0,1,0,0,0,1,0,3,0,3},{1,0,1,2,1,0,1,0,1,2,1,0,1},{7,0,7,0,6,0,7,0,6,0,7,0,7},\n\t\t\t\t\t{11,11,0,0,1,0,11,0,1,0,0,11,11},{11,11,11,11,1,2,11,2,1,11,11,11,11},{11,11,11,11,11,11,11,11,11,11,11,11,11},\n\t\t\t\t\t{3,0,3,0,1,11,11,11,1,0,3,0,3},{0,1,0,1,0,0,11,0,0,1,0,1,0},{0,1,0,1,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,2,0,2,0,0,13,0,0,2,0,2,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m19;\n\t\t\tbreak;\n\t\tcase 20:\n\t\t\tint[][] m20= {\n\t\t\t\t\t{0,0,0,12,0,1,0,0,1,0,1,0,0},{0,0,0,17,0,0,0,0,1,0,6,0,0},{0,0,0,12,0,3,6,0,1,0,1,0,0},\n\t\t\t\t\t{7,0,1,12,0,6,0,3,2,0,1,0,0},{0,0,1,12,0,0,0,1,0,0,0,0,0},{1,0,1,12,12,0,12,12,12,12,0,0,1},\n\t\t\t\t\t{0,0,0,3,0,0,0,11,0,12,0,7,7},{1,1,5,1,0,6,11,11,11,12,0,3,3},{2,0,5,0,0,1,11,11,11,12,0,1,0},\n\t\t\t\t\t{0,8,0,0,0,1,0,11,0,12,0,11,0},{0,1,0,8,0,2,2,2,0,0,11,11,11},{0,1,0,1,0,0,0,0,0,12,11,11,11},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,12,0,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m20;\n\t\t\tbreak;\n\t\tcase 21:\n\t\t\tint[][] m21= {\n\t\t\t\t\t{0,0,0,3,3,3,0,0,3,0,0,0,0},{0,3,1,1,1,1,1,1,1,1,0,17,0},{0,11,11,11,11,11,11,11,11,1,1,0,0},\n\t\t\t\t\t{11,11,0,0,0,0,0,0,11,11,1,1,0},{11,0,6,0,0,6,0,0,0,11,11,11,0},{11,0,6,0,0,6,0,0,0,11,11,11,0},\n\t\t\t\t\t{11,0,0,11,0,0,0,0,11,11,1,1,4},{11,11,11,11,11,11,11,11,11,1,1,1,4},{1,11,11,1,1,11,11,11,1,1,1,1,0},\n\t\t\t\t\t{0,1,1,1,1,1,1,1,1,1,1,0,6},{6,0,1,6,1,1,1,1,1,1,4,0,6},{0,6,1,2,6,0,0,0,1,1,6,6,6},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m21;\n\t\t\tbreak;\n\t\tcase 22:\n\t\t\tint[][] m22= {\n\t\t\t\t\t{0,0,0,0,0,11,0,0,0,0,0,0,0},{0,0,0,0,11,6,11,0,0,0,17,0,0},{0,0,11,0,0,11,0,0,11,11,0,0,0},\n\t\t\t\t\t{0,11,1,11,0,0,0,11,1,1,11,0,0},{0,0,11,1,11,0,0,0,11,11,0,0,11},{11,0,0,11,0,0,11,0,0,0,0,11,6},\n\t\t\t\t\t{1,11,0,0,0,11,6,11,0,0,11,0,11},{6,1,11,0,0,0,11,0,0,11,6,11,0},{1,11,0,0,11,0,0,0,11,0,11,0,0},\n\t\t\t\t\t{11,0,0,11,1,11,0,11,1,11,0,0,0},{0,0,0,11,1,11,0,0,11,0,0,11,0},{0,11,0,0,11,0,0,0,0,0,11,6,11},\n\t\t\t\t\t{11,6,11,0,0,0,13,0,0,11,1,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m22;\n\t\t\tbreak;\n\t\tcase 23:\n\t\t\tint[][] m23= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,6,6,0,0,17,0,0,0},{0,0,0,0,0,0,6,0,0,0,0,0,0},\n\t\t\t\t\t{0,6,6,11,11,1,6,1,11,11,6,6,0},{0,0,0,6,11,11,6,11,11,6,0,0,0},{11,0,0,0,6,11,11,11,6,0,0,0,11},\n\t\t\t\t\t{6,11,0,0,0,11,11,11,0,0,0,11,6},{11,0,0,0,8,7,11,7,8,0,0,0,11},{0,0,0,0,6,0,8,0,6,0,0,0,0},\n\t\t\t\t\t{0,0,0,6,0,0,6,0,0,6,0,0,0},{0,0,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\t\t\t\t{0,0,6,0,0,0,13,0,0,0,6,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m23;\n\t\t\tbreak;\n\t\tcase 24:\n\t\t\tint[][] m24= {\n\t\t\t\t\t{0,0,6,0,1,7,0,0,0,0,5,0,0},{0,17,1,0,1,11,0,2,1,1,1,0,0},{0,11,11,0,1,11,5,4,0,0,0,6,6},\n\t\t\t\t\t{11,11,11,11,11,11,1,1,1,0,5,1,0},{0,0,11,11,3,3,7,1,0,5,1,2,5},{1,7,0,3,2,2,0,0,0,1,2,0,5},\n\t\t\t\t\t{5,0,3,1,14,14,14,14,14,14,14,14,14},{5,0,2,0,14,14,14,14,14,14,14,14,14},{0,0,6,0,14,14,14,14,14,14,14,14,14},\n\t\t\t\t\t{1,0,1,0,14,14,14,14,14,14,14,14,14},{5,0,1,0,14,14,14,14,14,14,14,14,14},{5,0,1,0,0,0,0,0,14,14,14,14,14},\n\t\t\t\t\t{0,0,2,0,0,0,13,0,0,14,14,14,14},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m24;\n\t\t\tbreak;\n\t\tcase 25:\n\t\t\tint[][] m25= {\n\t\t\t\t\t{0,0,0,6,0,1,0,1,0,1,0,6,0},{0,1,0,1,0,0,0,0,0,6,0,0,0},{0,1,0,1,0,0,6,0,0,6,0,6,6},\n\t\t\t\t\t{0,1,17,0,0,1,0,6,1,0,0,0,6},{0,0,0,0,1,1,0,1,1,0,6,0,0},{0,0,6,0,1,0,0,1,1,0,1,1,0},\n\t\t\t\t\t{6,0,6,0,0,1,0,6,0,0,6,1,0},{0,0,1,1,0,1,0,0,0,1,6,0,0},{0,6,1,1,0,1,1,0,1,1,0,0,1},\n\t\t\t\t\t{0,1,0,0,0,1,6,0,0,0,0,1,1},{0,0,0,1,0,1,1,6,0,6,0,0,1},{1,0,1,1,0,0,0,0,0,1,6,0,0},\n\t\t\t\t\t{1,0,1,0,0,0,13,0,0,1,1,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m25;\n\t\t\tbreak;\n\t\tcase 26:\n\t\t\tint[][] m26= {\n\t\t\t\t\t{0,0,12,12,0,0,0,0,0,0,0,0,0},{8,0,0,12,11,0,4,0,0,17,0,0,0},{11,8,0,0,0,0,9,0,4,0,12,12,0},\n\t\t\t\t\t{11,11,0,7,3,5,0,0,9,11,12,0,0},{11,11,11,0,0,6,3,5,0,0,0,0,8},{11,11,7,8,0,5,0,6,3,0,0,8,11},\n\t\t\t\t\t{11,7,0,0,2,6,0,5,0,7,0,11,11},{0,0,0,0,0,4,2,6,0,0,11,11,11},{0,0,12,11,10,0,0,4,2,8,7,11,11},\n\t\t\t\t\t{0,12,12,0,5,0,10,0,0,0,0,0,11},{0,0,0,0,0,0,5,0,11,12,0,0,7},{6,0,0,0,0,0,0,0,0,12,12,0,0},\n\t\t\t\t\t{6,6,0,0,0,0,13,0,0,0,0,0,6},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m26;\n\t\t\tbreak;\n\t\tcase 27:\n\t\t\tint[][] m27= {\n\t\t\t\t\t{0,0,0,0,6,0,0,0,0,0,0,0,0},{6,6,0,0,6,0,17,6,6,0,0,0,0},{0,6,0,0,6,0,0,0,6,0,6,6,11},\n\t\t\t\t\t{0,6,0,0,6,6,6,0,11,0,6,0,0},{0,1,0,0,0,0,6,0,6,6,6,0,0},{11,6,6,0,6,1,6,1,1,0,0,0,0},\n\t\t\t\t\t{0,0,6,11,6,11,0,0,1,0,0,6,6},{0,0,6,0,0,11,0,0,6,0,0,6,0},{0,0,1,0,0,6,0,0,6,6,1,6,0},\n\t\t\t\t\t{11,6,6,6,11,11,1,6,6,0,1,6,0},{0,0,0,1,0,0,0,0,11,11,0,1,0},{0,0,0,6,0,0,0,0,0,11,0,1,0},\n\t\t\t\t\t{0,0,0,6,0,0,13,0,0,6,0,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m27;\n\t\t\tbreak;\n\t\tcase 28:\n\t\t\tint[][] m28= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,10,9,0},{0,0,0,0,0,0,8,0,0,17,6,0,0},{0,0,0,0,0,3,11,3,0,1,4,0,0},\n\t\t\t\t\t{0,0,0,0,8,11,11,11,8,1,4,0,0},{0,0,0,3,11,11,14,11,11,1,4,0,0},{0,0,8,11,11,14,14,14,11,11,4,0,0},\n\t\t\t\t\t{0,3,11,11,14,14,14,14,14,11,11,3,0},{8,11,11,14,14,14,14,14,14,14,11,11,8},{11,11,14,14,14,14,14,14,14,14,14,11,11},\n\t\t\t\t\t{0,11,14,14,14,14,14,14,14,14,14,11,0},{0,11,14,14,14,14,14,14,14,14,14,11,0},{0,11,14,14,14,0,0,0,14,14,14,11,0},\n\t\t\t\t\t{0,11,14,14,0,0,13,0,0,14,14,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m28;\n\t\t\tbreak;\n\t\tcase 29:\n\t\t\tint[][] m29= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,1,0,0},{0,1,12,12,0,6,0,1,0,0,17,0,0},{0,0,12,12,1,11,11,11,12,12,0,6,0},\n\t\t\t\t\t{0,0,0,0,0,11,11,11,12,12,1,0,0},{0,6,0,0,12,12,0,11,0,0,0,0,0},{11,11,1,0,12,12,6,0,0,0,0,1,0},\n\t\t\t\t\t{11,11,11,0,0,0,0,0,0,6,0,0,6},{0,1,12,12,0,1,0,0,0,0,0,0,0},{6,0,12,12,11,11,12,12,11,11,0,1,0},\n\t\t\t\t\t{0,0,0,0,11,0,12,12,11,11,12,12,0},{0,0,0,6,11,0,0,0,11,11,12,12,0},{0,0,1,0,1,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{1,0,0,0,0,0,13,0,0,1,6,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m29;\n\t\t\tbreak;\n\t\tcase 30:\n\t\t\tint[][] m30= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,3,3,0,0,0,8,0,0},{0,8,8,0,3,11,11,8,0,3,11,3,0},\n\t\t\t\t\t{3,11,11,3,11,11,11,11,3,11,11,11,3},{11,11,11,11,11,11,11,11,11,11,11,11,11},{6,11,12,11,11,11,11,11,12,11,11,11,11},\n\t\t\t\t\t{11,11,12,12,12,11,11,11,12,12,12,11,6},{11,11,11,11,12,11,6,11,11,11,12,11,11},{11,11,11,11,11,11,11,11,11,11,11,11,11},\n\t\t\t\t\t{11,11,11,11,11,2,2,11,11,11,11,11,7},{7,11,11,11,2,0,0,2,11,11,11,7,0},{0,7,2,2,0,0,0,0,2,2,2,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m30;\n\t\t\tbreak;\n\t\tcase 31:\n\t\t\tint[][] m31= {\n\t\t\t\t\t{0,0,0,12,0,0,0,0,12,0,0,0,0},{12,12,0,12,0,12,12,12,12,0,12,12,12},{11,11,1,0,0,1,0,0,12,0,12,11,12},\n\t\t\t\t\t{11,12,12,12,12,0,6,0,0,1,11,11,11},{11,11,0,12,0,0,12,0,12,12,12,12,11},{12,12,17,12,0,12,12,0,0,12,0,0,0},\n\t\t\t\t\t{0,0,1,11,1,0,1,11,0,12,0,0,12},{0,12,12,11,12,12,12,12,0,11,1,0,12},{1,0,0,1,0,0,0,0,11,11,12,0,12},\n\t\t\t\t\t{12,12,0,12,12,0,12,1,12,12,12,0,0},{0,0,1,0,11,11,0,0,11,12,0,0,12},{0,12,12,12,11,0,0,0,0,12,0,12,12},\n\t\t\t\t\t{0,12,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m31;\n\t\t\tbreak;\n\t\tcase 32:\n\t\t\tint[][] m32= {\n\t\t\t\t\t{14,14,14,14,14,14,0,14,14,14,14,14,14},{14,14,14,14,14,14,14,14,14,14,14,14,14},{14,14,14,1,14,14,14,14,14,1,14,14,14},\n\t\t\t\t\t{14,1,0,1,0,1,14,1,0,1,0,1,14},{14,2,2,1,0,17,0,0,0,1,2,2,14},{14,14,14,1,3,1,6,1,3,1,14,14,14},\n\t\t\t\t\t{6,14,14,14,0,7,0,7,0,14,14,14,6},{14,14,14,14,0,3,0,3,0,14,14,14,14},{14,14,14,14,0,1,0,1,0,14,14,14,14},\n\t\t\t\t\t{14,14,14,1,0,0,3,0,0,1,14,14,14},{14,1,14,1,0,7,7,7,0,1,14,1,14},{0,1,3,1,0,0,0,0,0,1,3,1,0},\n\t\t\t\t\t{0,2,0,0,0,0,13,0,0,0,0,2,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m32;\n\t\t\tbreak;\n\t\tcase 33:\n\t\t\tint[][] m33= {\n\t\t\t\t\t{0,0,0,0,6,0,0,0,0,6,0,0,0},{0,6,0,0,0,6,0,0,6,11,11,0,0},{0,0,6,0,0,0,0,6,11,8,9,0,0},\n\t\t\t\t\t{0,0,0,6,0,11,11,11,11,11,0,10,0},{0,9,0,0,6,11,11,6,0,0,0,6,0},{0,7,9,11,0,6,0,0,6,0,0,10,0},\n\t\t\t\t\t{0,0,11,11,11,11,11,0,0,6,0,0,0},{0,8,9,11,0,6,11,0,0,0,6,0,0},{0,11,11,11,6,0,6,0,8,0,0,6,0},\n\t\t\t\t\t{11,11,11,6,0,0,0,0,10,0,0,0,0},{0,0,6,0,0,0,0,0,0,0,0,10,6},{0,0,0,0,0,0,0,0,0,8,9,0,0},\n\t\t\t\t\t{9,0,8,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m33;\n\t\t\tbreak;\n\t\tcase 34:\n\t\t\tint[][] m34= {\n\t\t\t\t\t{0,0,0,0,4,5,0,0,0,0,0,0,0},{4,4,4,5,0,4,0,0,4,4,0,0,0},{4,4,4,1,1,0,0,17,4,1,4,0,0},\n\t\t\t\t\t{5,5,0,1,4,0,0,5,4,1,1,0,0},{0,4,0,1,5,4,0,4,1,1,1,0,0},{0,4,5,0,0,1,4,1,5,5,1,0,0},\n\t\t\t\t\t{0,4,0,0,5,1,1,4,0,4,1,0,0},{0,5,0,0,4,1,1,4,0,4,1,0,0},{0,5,2,2,0,1,1,1,0,4,4,2,1},\n\t\t\t\t\t{0,5,0,0,5,4,1,5,4,4,4,5,5},{0,0,4,0,1,5,4,1,1,0,0,5,0},{0,0,4,5,4,0,0,0,1,4,0,4,0},\n\t\t\t\t\t{0,0,4,5,0,0,13,0,0,1,1,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m34;\n\t\t\tbreak;\n\t\tcase 35:\n\t\t\tint[][] m35= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,1,0,1,0,0,0,0,0,0},{11,0,0,11,1,11,1,11,0,0,11,0,0},\n\t\t\t\t\t{1,11,11,1,1,1,1,1,11,11,1,11,0},{1,1,1,1,6,1,6,1,1,1,1,11,0},{12,12,12,1,1,1,1,1,12,12,12,11,0},\n\t\t\t\t\t{12,1,1,1,1,1,1,1,1,1,12,12,11},{1,1,1,12,1,1,1,12,1,1,1,11,11},{1,1,12,12,12,1,12,12,12,1,1,12,12},\n\t\t\t\t\t{11,12,12,11,11,11,11,11,12,12,11,12,11},{0,11,11,0,0,0,0,0,11,11,0,11,0},{0,0,0,0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m35;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn matriz;\n\t}",
"public void printMap()\n {\n if(this.firstTime)\n {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() { setVisible(true); }\n });\n this.firstTime = false;\n }\n screen.repaint();\n }",
"public void printVisitedCells()\r\n\t{\r\n\t\tSystem.out.print(\"+ +\");\r\n\t\tfor (int i = 1; i < this.getWidth(); i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"-+\");\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\r\n\t\tfor (int i = 0; i < this.getHeight(); i++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < this.getWidth(); j++)\r\n\t\t\t{\r\n\t\t\t\tCell c = this.getCellAt(i, j);\r\n\t\t\t\t// if cells are connected, no wall is printed in between them\r\n\t\t\t\tif (c.hasDoorwayTo(Cell.WEST))\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\"|\");\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(c.getDiscoveryTime() != -1)\r\n\t\t\t\t\tSystem.out.print(c.getDiscoveryTime() % 10);\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"|\");\r\n\t\t\t\r\n\t\t\tfor (int j = 0; j < this.getWidth(); j++)\r\n\t\t\t{\r\n\t\t\t\tCell c = this.getCellAt(i, j);\r\n\t\t\t\tSystem.out.print(\"+\");\r\n\r\n\t\t\t\tif (c.hasDoorwayTo(Cell.SOUTH) || c == this.getCellAt(getHeight()-1, getWidth()-1))\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"+\");\r\n\t\t}\r\n\t}",
"public void Print(int visibility) {\n System.out.println(\"We are at location \" + row + \",\" + col + \" in terrain \" + map[row][col]);\n for(int j = row-visibility; j <= row + visibility; j++) {\n for(int i = col-visibility; i <= col + visibility; i++) {\n if(i >= 0 && i <= (maxC -1) && j >= 0 && j <= (maxR -1))\n System.out.print(map[j][i]);\n else\n System.out.print(\"X\");\n }\n System.out.println(\"\");\n }\n }",
"public void printGridAsChild()\n\t{\n\t\tfor ( int y = 0; y < height; y++)\n\t\t{\n\t\t\tSystem.out.print( \"\\t\" );\n\t\t\tfor ( int x = 0; x < width; x++ )\n\t\t\t{\n\t\t\t\t// If x & y are the same as the empty tile coordinates, print empty tile\n\t\t\t\tif ( x == x0 && y == y0 ) System.out.print( \" \" );\n\t\t\t\t// Else print element of grid\n\t\t\t\telse System.out.print( grid[x][y] + \" \" );\n\t\t\t}\n\t\t\tSystem.out.print( \"\\n\" );\n\t\t}\n\t\tSystem.out.print( \"\\n\" );\n\t}",
"@Override\n public void generateMaze() {\n //Opens up the entrance to the maze\n MazeCell current=maze[0][0];\n current.openWall(Directions.North.getBValue());\n\n //A list of sets. The sets contain the cells which can be accessed from one another.\n List<List<MazeCell>> sets=new LinkedList<>();\n //All the walls in the maze\n List<InnerWall> wallList=new LinkedList<>();\n //Initially create a set for each cell\n //Also add the walls to the list\n for(int row=0;row< maze.length;row++){\n for(int column=0;column<maze[0].length;column++){\n sets.add(Arrays.asList(maze[row][column]));\n List<MazeCell> valid=returnValidNeighbours(maze[row][column].getX(), maze[row][column].getY());\n for(int i=0;i<valid.size();i++){\n wallList.add(new InnerWall(maze[row][column], valid.get(i)));\n }\n }\n }\n //Now we have as many wall sets as maze cells, each containing four walls.\n\n Random rnd=new Random();\n int idx;\n //Loops until only one set remains, meaning all cells can be reached from any cell\n while(sets.size()!=1){\n //Select a random wall\n idx=wallList.size()>1 ? rnd.nextInt(wallList.size()) : 0;\n InnerWall w= wallList.get(idx);\n //The two neighbouring cells\n MazeCell c1=w.parent;\n MazeCell c2=w.connected;\n\n //Their relative directions\n Directions d=Directions.getOffsetDirection(c1.getX(),c1.getY(),c2.getX(),c2.getY());\n\n //Check if the two cells are already connected\n if((c1.getOpenWalls() % d.getBValue())==d.getBValue())\n continue;\n\n //Two new sets\n List<MazeCell> set1=null;\n List<MazeCell> set2=null;\n //We get the sets\n boolean b1,b2;\n b1=b2=false;\n //We loop through the set of sets looking for the two which contains the two cells\n for(List<MazeCell> list : sets) {\n if(list.contains(c1)){\n set1=list;\n b1=true;\n }\n if(list.contains(c2)) {\n set2=list;\n b2=true;\n }\n if(b1 && b2)\n break;\n }\n //If the two sets are disjoint then we join them together\n if(set1!=null && set2!=null && !set1.equals(set2)){\n\n //We connect the two cells\n c1.openWall(d.getBValue());\n c2.openOppositeWall(d.getBValue());\n\n if(sleepDrawTime>0) {\n try {\n Thread.sleep(sleepDrawTime);\n mf.repaint();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n //Join the two sets\n List<MazeCell> temp= Stream.concat(set1.stream(), set2.stream())\n .collect(Collectors.toList());\n sets.remove(set2);\n sets.remove(set1);\n sets.add(temp);\n }\n //We remove the wall from the list\n wallList.remove(w);\n //As the walls are double-sided, two cells share a wall, we have to find the opposite cell's wall in the list\n InnerWall oppositeWall=wallList.stream().filter((x)->x.parent==w.connected).findFirst().orElse(null);\n wallList.remove(oppositeWall);\n\n\n }\n //We open an exit in the last row.\n maze[maze.length-1][rnd.nextInt(maze[0].length)].openWall(Directions.South.getBValue());\n\n }",
"private void resetOutput() {\n\t\t/* Add one additional row/column on each side which will\n\t\t * contain the wall. */\n\t\tthis.output = new char[this.game.height() + 2][this.game.width() + 2];\n\n\t\tfor (int y = 0; y < this.output.length; y++) {\n\t\t\tfor (int x = 0; x < this.output[0].length; x++) {\n\t\t\t\tthis.output[y][x] = ' ';\n\t\t\t}\n\t\t}\n\t}",
"private void createSubmarineMaze() {\n \t\tgenerate(1, 1); // generate the maze\n \n \t\t// delete centre\n \t\tfor (int i = centreMin; i < centreMax; i++) {\n \t\t\tfor (int j = centreMin; j < centreMax; j++) {\n \t\t\t\t//walls exist from both sides, ensure that both sides are drawn\n \t\t\t\tif (j != centreMax-1) north[i][j] = false;\n \t\t\t\tif (j != centreMin) south[i][j] = false;\n \t\t\t}\n \t\t}\n \t\tfor (int i = centreMin; i < centreMax; i++) {\n \t\t\tfor (int j = centreMin; j < centreMax; j++) {\n \t\t\t\tif (i != centreMax-1) east[i][j] = false;\n \t\t\t\tif (i != centreMin) west[i][j] = false;\n \t\t\t}\n \t\t}\n \t\n \t\t/*\n \t\t * draw centre\n \t\t * \n \t\t * // delete some random walls for (int i = 0; i < N * 100; i++) { int x\n \t\t * = (int) (1 + Math.random() * (N - 1)); int y = (int) (1 +\n \t\t * Math.random() * (N - 1)); north[x][y] = south[x][y + 1] = false; }\n \t\t * \n \t\t * // add some random walls for (int i = 0; i < N * 1; i++) { int x =\n \t\t * (int) (N / 2 + Math.random() * (N / 2)); int y = (int) (N / 2 +\n \t\t * Math.random() * (N / 2)); east[x][y] = west[x + 1][y] = true; }\n \t\t */\n \t}",
"public static void main(String[] args) {\n char [][] strtMaze = new char[][]{\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n {'#', '.', '.', '.', '#', '.', '.', '.', '.', '.', '.', '#'},\n {'.', '.', '#', '.', '#', '.', '#', '#', '#', '#', '.', '#'},\n {'#', '#', '#', '.', '#', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '#', '#', '#', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '.', '#', 'F', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '#', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '.', '#', '#', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '#', '.', '.', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n };\n //Get start position of person\n int pstartx = 2;\n int pstarty = 0;\n //Get start position of hand\n int hstartx = 3; //If same as pstart(facing north south)\n int hstarty = 0;//If same as pstart (facing east west)\n RecursionOutLab maze1 = new RecursionOutLab();\n maze1.maze(strtMaze, pstartx, pstarty, hstartx, hstarty);\n }",
"public String toString() {\n \n //call vertex names & coordinates helper function\n String firstHalf = vertexNamesAndCoordsToString();\n \n //call edges helper function\n String secondHalf = edgesLeavingVertexToString();\n \n //combine the first and second halves\n String stringMazeTotal = firstHalf + \"\\n\" + secondHalf;\n \n //return the result: the maze in string form\n return stringMazeTotal;\n \n }",
"public void consoleBoardDisplay(){\n\t\tString cell[][] = ttt.getCells();\n\t\tSystem.out.println(\"\\n\" +\n\t\t\t\"R0: \" + cell[0][0] + '|' + cell[0][1] + '|' + cell[0][2] + \"\\n\" +\n\t\t\t\" \" + '-' + '+' + '-' + '+' + '-' + \"\\n\" +\n\t\t\t\"R1: \" + cell[1][0] + '|' + cell[1][1] + '|' + cell[1][2] + \"\\n\" +\n\t\t\t\" \" + '-' + '+' + '-' + '+' + '-' + \"\\n\" +\n\t\t\t\"R2: \" + cell[2][0] + '|' + cell[2][1] + '|' + cell[2][2] + \"\\n\"\n\t\t);\n\t}",
"public Maze(){}",
"public void printNode(){\r\n // make an appropriately lengthed array of formatting\r\n // to separate rows/space coordinates\r\n String[] separators = new String[puzzleSize + 2];\r\n separators[0] = \"\\n((\";\r\n for (int i=0; i<puzzleSize; i++)\r\n separators[i+1] = \") (\";\r\n separators[puzzleSize+1] = \"))\";\r\n // print the rows\r\n for (int i = 0; i<puzzleSize; i++){\r\n System.out.print(separators[i]);\r\n for (int j = 0; j<puzzleSize; j++){\r\n System.out.print(this.state[i][j]);\r\n if (j<puzzleSize-1)\r\n System.out.print(\" \");\r\n }\r\n }\r\n // print the space's coordinates\r\n int x = (int)this.space.getX();\r\n int y = (int)this.space.getY();\r\n System.out.print(separators[puzzleSize] + x + \" \" + y + separators[puzzleSize+1]);\r\n }",
"public void displayBoard() {\n System.out.printf(\"%20s\",\"\"); // to add spacing\n for(int i = 0; i < space[0].length; i++) //Put labels for number axis\n {\n System.out.printf(\"%4d\",i+1);\n }\n System.out.println();\n for(int row = 0; row < this.space.length; row++) { //Put letter labels and appropriate coordinate values\n System.out.print(\" \"+ (char)(row+'A') + \"|\");\n for (String emblem: this.space[row]) //coordinate values\n System.out.print(emblem + \" \");\n System.out.println();\n }\n }",
"public static void map(int location)\n\t{\n\t\tswitch(location)\n\t\t{\t\n\t\t\tcase 1:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # X # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * X # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # X # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # X # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * X # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # X # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 7:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # X * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 8:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * X # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 9:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # X * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 10:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * X # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 11:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # X # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 12:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # X # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\");\n\t\t}//end switch(location)\n\t\t\n\t}",
"private void PrintPath(Stack<MazePoint> stack, boolean hasExit)\n {\n if(hasExit)\n {\n //reverse the sPath\n Stack<MazePoint> sExitPath = new Stack<MazePoint>();\n MazePoint exitPoint = stack.top();\n int size = stack.getSize();\n while(!stack.isEmpty())\n {\n MazePoint p = stack.top();\n sExitPath.push(p);\n stack.pop();\n \n int pRow = p.getRow();\n int pColumn = p.getColumn();\n cMaze[pRow][pColumn].markPath();\n }\n MazePoint startPoint = sExitPath.top();\n \n System.out.println(\"Path to follow from Start \" + startPoint.toString() + \" to Exit \" + exitPoint.toString() + \" - \" + size + \" steps:\");\n //print the sExitPath\n while(!sExitPath.isEmpty())\n {\n MazePoint p = sExitPath.top();\n sExitPath.pop();\n System.out.println(p.toString());\n }\n System.out.print(\"\\n\");\n }\n else\n {\n System.out.println(\"There is no exit out of the maze.\");\n }\n //PrintContents();\n for(int i=0; i< cMaze.length; i++)\n {\n for(int j=0; j<cMaze[i].length; j++)\n {\n char locationData = cMaze[i][j].getLocationData();\n //when it is not on the path and visited\n if(locationData != ('.') && cMaze[i][j].wasVisited())\n {\n System.out.print('V');\n }\n else\n {\n System.out.print(locationData);\n }\n }\n System.out.print(\"\\n\");\n }\n \n PrintItems();\n }",
"public void Display() \n {\n float theta = velocity.heading() + PI/2;\n fill(175);\n stroke(0);\n pushMatrix();\n translate(pos.x,pos.y);\n rotate(theta);\n beginShape();\n vertex(0, -birdSize*2);\n vertex(-birdSize, birdSize*2);\n vertex(birdSize, birdSize*2);\n endShape(CLOSE);\n popMatrix();\n }",
"public void mazeChanged(Maze maze);",
"public void printMatrix(){\n for (int row = 0; row < matrix.length; row++){\n for (int count = 0; count < matrix[row].length; count++){\n System.out.print(\"----\");\n }\n System.out.println();\n System.out.print('|');\n for (int column = 0; column < matrix[row].length; column++){\n if (matrix[row][column] == SHIP)\n System.out.print('X' + \" | \");\n else if (matrix[row][column] == HIT)\n System.out.print('+' + \" | \");\n else if (matrix[row][column] == MISS)\n System.out.print('*' + \" | \");\n else\n System.out.print(\" \" + \" | \");\n }\n System.out.println();\n }\n }",
"public void generateMaze() {\n if (this.stateOfTheMaze != 0)\n throw new IllegalArgumentException(\"To generate the maze the state of it must be \\\"untouched grid\\\".\");\n Stack<Box> stack = new Stack<>();\n Random random = new Random();\n int randomRow = random.nextInt(this.grid.length);\n int randomColumn = random.nextInt(this.grid[randomRow].length);\n Box startBox = this.grid[randomRow][randomColumn];\n startBox.use();\n stack.push(startBox);\n while (!stack.isEmpty()) {\n Box aux = stack.peek();\n if (allAdjacentUsed(aux))\n stack.pop();\n else\n stack.push(movement(aux));\n }\n this.stateOfTheMaze++;\n }",
"private void generateMaze(int x, int y) {\r\n\t\t\t\tgenerateMaze(getCell(x, y)); // Gerar a partir da celula\r\n\t\t\t}",
"public static void pathMethod (int x, int y, int rows, int columns, int startPointX, int startPointY, int endPointX, int endPointY, String [][]copyArray, String [][]realArray, int decider) throws Exception{ \r\n \r\n String up = copyArray[y-1][x];\r\n String down = copyArray[y+1][x];\r\n String right = copyArray[y][x+1]; //moves the coordinate up one, down one, right one, left one and stores it into up down left right; \r\n String left = copyArray[y][x-1];\r\n \r\n if(up.equals(\"X\")||down.equals(\"X\")||right.equals(\"X\")||left.equals(\"X\")){ //if up right left or down is equal to the endpoint, the maze is solvable, and we can now print the final array\r\n System.out.println(\"\\nThe maze is solvable!\");\r\n// printFinalArray(realArray, counter, xvalues, yvalues); //solution is found already - sends back to another method to print final solution\r\n regenerate(decider); //then sends to regenerate method where it asks if user would like to create another maze\r\n }\r\n \r\n else if(copyArray[startPointY+1][startPointX].equals(\"B\")&©Array[startPointY-1][startPointX].equals(\"B\")&©Array[startPointY][startPointX+1].equals(\"B\")&©Array[startPointY][startPointX-1].equals(\"B\")){\r\n \r\n System.out.println(\"\\nSorry, your maze is unsolvable.\\n\\n\"); //if at the start point we cannot go up down left or right - no possible moves - not solvable - end of maze \r\n regenerate(decider); //call the method that gives users the option to recreate the maze if it was unsolvable \r\n } \r\n \r\n else if(up.equals(\"O\")){ //if the coordinate in the up direction is O\r\n counter=counter+1; //incrementing counter so we can input it the coordinate arrays\r\n copyArray[y][x] = \"V\"; //changing the values to 'V' so we can know that we already visited it\r\n y=y-1; //moving coordinate up one \r\n xvalues[counter]=x; //storing this coordinate into the arrays with the counter\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider); //recalling method\r\n }\r\n \r\n else if(down.equals(\"O\")){ //if down = O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n y=y+1; \r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else if(right.equals(\"O\")){ //if right equals O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n x=x+1;\r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else if(left.equals(\"O\")){ //if left equals O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n x=x-1;\r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else { //if neither up down left or right work\r\n for(int i = 0; i<rows; i++){ //makes all the 'V's go back to O\r\n for(int j = 0; j<columns; j++){\r\n if(copyArray[i][j].equals(\"V\")){\r\n copyArray[i][j] = \"O\";\r\n }\r\n }\r\n }\r\n copyArray[y][x] = \"B\"; //make the coordinate that you cant make a move with B, so it shortens the possible path options\r\n for(int i = 0 ; i<counter; i++){\r\n xvalues[i] = 0; //resets the coordinate arrays back to 0\r\n yvalues[i] = 0;\r\n }\r\n counter=0; //resets counter back to 0;\r\n pathMethod(startPointX, startPointY, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider); //resends the startpoints instead of x and y; only thing different is that one coordinate is now marked \"B\"\r\n } \r\n }",
"private void displayBoard(Board board)\n {\n for (int i = 0; i < size; i++)\n {\n System.out.print(\"|\");\n for (int j = 0; j < size; j++)\n \n System.out.print(board.array[i][j] + \"|\");\n System.out.println();\n }\n }",
"private void displayGrid() {\r\n System.out.print(this.grid);\r\n }",
"public void display() {\n PVector d = location.get();\n float diam = d.y/height;\n println(diam);\n\n stroke(0);\n fill(255,0,0);\n ellipse (location.x, location.y, diameter, diameter);\n }",
"public void display() {\n drawLine();\n for(int i=0; i < nRows; i++) {\n System.out.print(\"|\");\n for(int j=0; j < nCols; j++) {\n if(used[i][j] && board[i][j].equals(\" \")) {\n System.out.print(\" x |\");\n }\n else {\n System.out.print(\" \" + board[i][j] + \" |\");\n }\n }\n System.out.println(\"\");\n drawLine();\n }\n }",
"void castMaze(Tile currentMap, int prevDirection) {\n int y = currentMap.getPosition().getY();\n int x = currentMap.getPosition().getX();\n\n map[(2 * y) + 1][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n if (currentMap.getPathDirection()[0] && prevDirection != 1) {\n map[(2 * y)][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y - 1][x], 0);\n }\n if (currentMap.getPathDirection()[1] && prevDirection != 0) {\n map[(2 * y) + 2][(2 * x) + 1].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y + 1][x], 1);\n }\n if (currentMap.getPathDirection()[2] && prevDirection != 3) {\n map[(2 * y) + 1][(2 * x) + 2].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y][x + 1], 2);\n }\n if (currentMap.getPathDirection()[3] && prevDirection != 2) {\n map[(2 * y) + 1][(2 * x)].setTerrain(Terrain.EMPTY);\n castMaze(tempMap[y][x - 1], 3);\n }\n }",
"public void displayBoard() {\n newLine();\n for (int row = _board[0].length - 1; row >= 0; row -= 1) {\n String pair = new String();\n for (int col = 0; col < _board.length; col += 1) {\n pair += \"|\";\n pair += _board[col][row].abbrev();\n }\n System.out.println(pair + \"|\");\n newLine();\n }\n }",
"public static void render() throws IOException, Exception {\n for(int y = MAP_HEIGHT; y!=0; --y) {\n for(int x=MAP_WIDTH;x!=0; --x) {\n draw[x][y] = true;\n if(y <2 || MAP_Y_MAX<y || x<2 || MAP_X_MAX<x) map[x][y] =0;\n }\n }\n //frames++;\n for(int y = MAP_HEIGHT-1; y!=2; --y) {\n int step = -1;\n int kezdo = MAP_X_MAX;\n int vegzo = 0;\n if(rnd.nextBoolean()) {\n step = 1;\n kezdo = 2;\n vegzo = MAP_X_MAX+2;\n }\n int oldx=kezdo;\n char oldtype = map[kezdo][y];\n for(int x=kezdo;x!=vegzo;x=x+step) {\n if(oldtype!=0)if(!Start.isPaused) Physics.handleTemp(x, y);\n if(map[x][y] == oldtype) continue;\n if(step == 1) {\n if(oldtype!=0)drawMaterial(oldx,y,x-step,oldtype);\n if(!Start.isPaused)Properties.phys.get((int)oldtype).invoke(null, oldx,y,x-step,oldtype);\n// callPhysics(Properties.anns.get((int)oldtype), new Object[] {oldx,y,x-step,(char)oldtype});\n //Physics.bytype(oldx,y,x-step,oldtype);\n } else {\n if(oldtype!=0)drawMaterial(x-step,y,oldx,oldtype);\n if(!Start.isPaused)Properties.phys.get((int)oldtype).invoke(null, x-step,y,oldx,oldtype);\n// callPhysics(Properties.anns.get((int)oldtype), new Object[] {x-step,y,oldx,(char)oldtype});\n //Physics.bytype(x-step,y,oldx,oldtype);\n }\n oldx=x;\n oldtype=map[oldx][y];\n }\n }\n //toRender.draw(0, 0);\n }",
"public static void readAndDisplaymazePath(String Path){\n\t\tint Msize = 9;\n\t\tString Steps[] = Path.split(\"\\\\r\\\\n|\\\\n|\\\\r\");\n\t\tfor(int i=0; i < Steps.length; i++){\n\t\t\tString CordinateS[] = Steps[i].replaceAll(\"[^\\\\d ]\", \"\").split(\" \");\n\t\t\tif (CordinateS.length == 2){\n\t\t\tint c1 =Integer.parseInt(CordinateS[0])*Msize + Integer.parseInt(CordinateS[1]);\n\t\t\tnote(butPos[c1], 60); //127 yellow\n\t\t\t} else {System.out.println(\"Error:\" + Steps[i] + \":\"+ Arrays.toString(CordinateS));}\n\t\t} //end for\n\t}",
"public interface View {\r\n\t/**\r\n\t * starting the user interface\r\n\t */\r\n\tpublic void start();\r\n\t/**\r\n\t * returning the command that the user entered\r\n\t * @return string with the command that user entered\r\n\t */\r\n\tpublic String getUserCommand();\r\n\t/**\r\n\t * display the error in the commands that the client wrote\r\n\t * @param message string telling what is the error\r\n\t */\r\n\tpublic void showError(String error);\r\n\t/**\r\n\t * display the outcome of command:dir <path>\r\n\t * displaying the files and directories of the specified path\r\n\t * @param dirArray string's array with the names of files and directories in the specified path\r\n\t */\r\n\tpublic void showDirPath(String[] list);\r\n\t/**\r\n\t * display the message that the maze is ready\r\n\t * @param message string with the massege:maze is ready\r\n\t */\r\n\tpublic void showGenerate3dMaze(String message);\r\n\t/**\r\n\t * displaying the specified maze\r\n\t * @param byteArr byte array representing the maze\r\n\t */\r\n\tpublic void showDisplayName(byte[] byteArr);\r\n\t/**\r\n\t * displaying the cross section which the client asked for\r\n\t * @param crossSection 2d array with the cross section asked\r\n\t */\r\n\tpublic void showDisplayCrossSectionBy(int[][] crossSection);\r\n\t/**\r\n\t * displaying the string:the maze has been saved\r\n\t * @param str string with the word:maze has been saved\r\n\t */\r\n\tpublic void showSaveMaze(String message);\r\n\t/**\r\n\t * displaying the string:the maze has been loaded\r\n\t * @param str string with the word:maze has been loaded\r\n\t */\r\n\tpublic void showLoadMaze(String message);\r\n\t/**\r\n\t * display the maze size in memory(bytes)\r\n\t * @param size the size of the maze in bytes\r\n\t */\r\n\tpublic void showMazeSize(int size);\r\n\t/**\r\n\t * display the maze size in file(bytes)\r\n\t * @param length the size of the maze in file\r\n\t */\r\n\tpublic void showFileSize(long size);\r\n\t/**\r\n\t * displaying the string:solution for maze is ready\r\n\t * @param message string with the words:solution for maze is ready\r\n\t */\r\n\tpublic void showSolveMaze(String message);\r\n\t/**\r\n\t * displaying the solution of the specified maze\r\n\t * @param sol the solution of the maze\r\n\t */\r\n\tpublic void showDisplaySolution(Solution<Position> solution);\r\n\t/**\r\n\t * a command that only gui has:solve from <name> <algorithm> <x> <y> <z>\r\n\t * showing the outcome of this command,in other wards display the solution from specific point in the maze\r\n\t * @param message message that the solution is ready\r\n\t */\r\n\tpublic void showSolveFrom(String message);\r\n\t/**\r\n\t * a command that only gui has:display half solution <name>\r\n\t * displaying a solution for the specified maze\r\n\t * @param solution solution that was calculated in the model\r\n\t */\r\n\tpublic void showDisplayHalfSolution(Solution<Position> solution);\r\n\t/**\r\n\t * display a message about some error\r\n\t */\r\n\tpublic void showExit();\r\n\t/**\r\n\t * displaying help,which shows the commands the client can write\r\n\t */\r\n\tpublic void showHelp();\r\n\t/**\r\n\t * a command that only gui have: load xml\r\n\t * @param p properties object that was loaded by the xml file\r\n\t */\r\n\tpublic void showLoadXML(Properties p);\r\n}",
"private void generateMap(){\n if(currDirections != null){\n\n\t \tPoint edge = new Point(mapPanel.getWidth(), mapPanel.getHeight());\n \tmapPanel.paintImmediately(0, 0, edge.x, edge.y);\n\t \t\n\t \t\n\t \t// setup advanced graphics object\n\t Graphics2D g = (Graphics2D)mapPanel.getGraphics();\n\t g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t g.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_NORMALIZE);\n\n\t \n\t Route rt = currDirections.getRoute();\n\t\n\t boolean singleStreet = rt.getGeoSegments().size() == 1;\n\t Route contextRoute = (!singleStreet ? rt : \n\t \t\tnew Route( virtualGPS.findFullSegment(rt.getEndingGeoSegment()) ) );\n\t \n\t // calculate the longitude and latitude bounds\n\t int[] bounds = calculateCoverage( contextRoute , edge);\n\t \n\t Collection<StreetSegment> map = virtualGPS.getContext(bounds, contextRoute);\n\t \n\t \n\t // draw every segment of the map\n\t g.setColor(Color.GRAY);\n\t for(GeoSegment gs : map){\n\t \tdrawSegment(g, bounds, edge, gs);\n\t }\n\t \n\t // draw the path over the produced map in BLUE\n\t g.setColor(Color.BLUE);\n\t for(GeoFeature gf : rt.getGeoFeatures()){\n\t for(GeoSegment gs : gf.getGeoSegments()){\n\t\t \tdrawSegment(g, bounds, edge, gs);\n\t }\n\t Point start = derivePoint(bounds, edge, gf.getStart());\n\t Point end = derivePoint(bounds, edge, gf.getEnd());\n\t \n\t int dX = (int)(Math.abs(start.x - end.x) / 2.0);\n\t int dY = (int)(Math.abs(start.y - end.y) / 2.0);\n\n if(!jCheckBoxHideStreetNames.isSelected()){\n \tg.setFont(new Font(g.getFont().getFontName(), Font.BOLD, g.getFont().getSize()));\n \tg.drawString(gf.getName(), start.x + (start.x<end.x ? dX : -dX),\n \t\t\tstart.y + (start.y<end.y ? dY : -dY));\n }\n\t }\n }\n }"
]
| [
"0.6997694",
"0.68787634",
"0.6809773",
"0.6709176",
"0.6702724",
"0.66335064",
"0.66265064",
"0.6529234",
"0.6519984",
"0.64250296",
"0.62989444",
"0.6287873",
"0.6245923",
"0.6218585",
"0.6149942",
"0.61402804",
"0.61338973",
"0.60088843",
"0.60062355",
"0.60040414",
"0.59968275",
"0.5978535",
"0.5957059",
"0.5925648",
"0.5923791",
"0.5887045",
"0.5849432",
"0.5829024",
"0.582585",
"0.57886666",
"0.5771022",
"0.57370937",
"0.57354605",
"0.56956697",
"0.5676778",
"0.56733197",
"0.56482047",
"0.5632106",
"0.56249136",
"0.5621049",
"0.56159747",
"0.5610145",
"0.5608985",
"0.5591114",
"0.55837953",
"0.5581334",
"0.5578758",
"0.55753034",
"0.55686593",
"0.55628747",
"0.5562061",
"0.55500686",
"0.55461484",
"0.5541912",
"0.55412936",
"0.55398625",
"0.55359375",
"0.5512486",
"0.54906195",
"0.5488162",
"0.54841757",
"0.54724294",
"0.5472175",
"0.546877",
"0.5464464",
"0.5459028",
"0.5457732",
"0.54529876",
"0.5442941",
"0.5433223",
"0.5416707",
"0.5415197",
"0.5405952",
"0.5400411",
"0.5399715",
"0.53968453",
"0.5389909",
"0.5380739",
"0.5380248",
"0.5371419",
"0.53495556",
"0.5347625",
"0.53434485",
"0.5342828",
"0.53395724",
"0.5333243",
"0.53329116",
"0.5331116",
"0.53282595",
"0.5315432",
"0.5313577",
"0.53101754",
"0.5304686",
"0.5304427",
"0.53041977",
"0.53039265",
"0.5302409",
"0.52991503",
"0.5293575",
"0.5286747",
"0.52855915"
]
| 0.0 | -1 |
This function is responsible to display a solution to a 3d maze | public void displayData(Solution solution); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showGenerate3dMaze(String message);",
"public void displayData(Maze3d maze);",
"public void showSolveMaze(String message);",
"public void showDisplaySolution(Solution<Position> solution);",
"public void displayMaze(){\n System.out.println(\"---- SOLUTION------\");\n for(int j = 0; j < maze.length; j++){\n for(int k = 0; k < maze[0].length; k++){\n System.out.print(maze[j] [k]);\n }\n System.out.println();\n\n }\n }",
"Maze3d generate(int x, int y, int z) throws Exception;",
"public void showDisplayHalfSolution(Solution<Position> solution);",
"Maze makeMaze();",
"String printMaze(boolean showBarriers);",
"public void showMazeSize(int size);",
"static private void showSolution() {\n\t\tfor (int x = 1; x <= 6; ++x) {\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tSystem.out.print(color[x - 1][y - 1]\n\t\t\t\t\t\t+ Messages.getString(\"dddcube.stringkey.0\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tSystem.out.print(Messages.getString(\"dddcube.stringkey.1\")); //$NON-NLS-1$\n\t\t\tfor (int y = 1; y <= 6; ++y) {\n\t\t\t\tSystem.out.print(offset[x - 1][y - 1]\n\t\t\t\t\t\t+ Messages.getString(\"dddcube.stringkey.0\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\tSystem.out.print(Messages.getString(\"dddcube.stringkey.1\")); //$NON-NLS-1$\n\t\t\tbricks.showColorBricks(x);\n\n\t\t\tSystem.out.println(Messages.getString(\"dddcube.stringkey.2\")); //$NON-NLS-1$\n\t\t}\n\t}",
"public Maze3D generate(int depth, int row, int column) throws Exception {\n if (row < 2 || column < 2 || depth < 2)\n throw new Exception(\"Invalid inputs Maze most be at least 2x2x2\");\n Maze3D myMaze = new Maze3D(depth,row, column); //create an empty maze\n for (int r = 0; r <row ; r++) { //init to 1 all the cells\n for (int c = 0; c <column ; c++) {\n for (int d = 0; d < depth; d++) {\n myMaze.maze[d][r][c]= 1;\n\n }\n }\n }\n boolean [][][] VisitedCells = new boolean[depth][row][column]; //create an boolean matrix that saved cell as visited or not\n int randomDepth = Ran.nextInt((depth)); //select random depth number\n int randomRow = Ran.nextInt((row)); //select random row number\n Position3D StartPos = new Position3D(randomDepth,randomRow, 0);\n myMaze.maze[randomDepth][randomRow][0]= 0; //change selected start position to 0\n myMaze.setStartPosition(StartPos); //set the start position of the maze\n changeStatus(randomDepth,randomRow,0,VisitedCells); //change Start position as visited\n //choose random goal position cell in the maze\n int randomDepth_2 = Ran.nextInt((depth)); //select random depth number\n int randomRow_2 = Ran.nextInt((row)); //select random row number\n Position3D EndPos = new Position3D(randomDepth_2,randomRow_2, (column-1));\n myMaze.maze[randomDepth_2][randomRow_2][(column-1)]= 0; //change selected goal position to 0\n myMaze.setGoalPosition(EndPos); //set the start position of the maze\n changeStatus(randomDepth_2,randomRow_2,(column-1),VisitedCells);//mark as visited\n stack.push(StartPos);\n while (!stack.empty()) {\n Position3D curr = stack.pop();\n //check if the current cell have any neighbors which have not been visited, and find them all\n ArrayList<Position3D> neighbors = findNeighbors(curr, myMaze, VisitedCells); //find all options of moving forward\n if (neighbors.size() > 0) { //iterate over all neighbors\n stack.push(curr); //push curr into the stack\n myMaze.maze[curr.getDepthIndex()][curr.getRowIndex()][curr.getColumnIndex()] = 0; //change it's place to 1\n Position3D Neighbor = ChooseNeighbor(neighbors); //choose one unvisited random neighbor\n changeStatus(Neighbor.getDepthIndex(),Neighbor.getRowIndex(),Neighbor.getColumnIndex(), VisitedCells); //mark him as visited neighbor\n removeWall(curr, Neighbor, VisitedCells, myMaze); //remove the wall & mark as visited\n stack.push(Neighbor);\n }\n }\n //handle odd maze problems - open the walls which surround the goal cell\n for (int d = EndPos.getDepthIndex()-1; d < EndPos.getDepthIndex()+2; d++) {\n for (int r = EndPos.getRowIndex()-1; r < EndPos.getRowIndex()+2; r++) {\n for (int c = EndPos.getColumnIndex()-1; c < EndPos.getColumnIndex()+1; c++) {\n if (pointOnGrid(d,r,c,myMaze)){\n myMaze.maze[d][r][c]= 0; //change selected cell to 0\n changeStatus(d,r,c,VisitedCells);\n }\n }}\n }\n return myMaze;\n }",
"public void print_maze () {\n \n System.out.println();\n\n for (int row=0; row < grid.length; row++) {\n for (int column=0; column < grid[row].length; column++)\n System.out.print (grid[row][column]);\n System.out.println();\n }\n\n System.out.println();\n \n }",
"void maze(char[][] mz, int p_row, int p_col, int h_row, int h_col){\n \n if (mz[p_row][p_col] == 'F'){\n //Base case -End maze\n printMaze(mz);\n System.out.println(\"Maze Successfully Completed!\");\n } else {\n if (h_row-1 == p_row){\n //If facing East\n if(mz[h_row][h_col] != '#'){ //If right turn available\n //Update player\n mz[p_row][p_col] = 'X'; \n p_row += 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col -= 1;\n printMaze(mz); \n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row][p_col+1] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col += 1;\n printMaze(mz);\n } else if (mz[p_row-1][p_col] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 2;\n h_col += 1;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 2;\n h_col -= 1;\n printMaze(mz);\n }\n }\n } else if (h_row+1 == p_row){\n //If facing West\n if(mz[h_row][h_col] != '#'){\n //Look right\n mz[p_row][p_col] = 'X'; \n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 0;\n h_col += 1;\n printMaze(mz);\n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row][p_col-1] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 0;\n h_col -= 1;\n printMaze(mz);\n } else if (mz[p_row+1][p_col] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 1;\n p_col -= 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col -= 1;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col += 1;\n printMaze(mz);\n }\n }\n \n } else if (h_col -1 == p_col){\n //If facing North\n if(mz[h_row][h_col] != '#'){ \n //Take right if available\n //Update player\n mz[p_row][p_col] = 'X'; \n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col -= 0;\n printMaze(mz); \n } else {\n //If hand position is a wall check in front of player\n if(mz[p_row-1][p_col] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col += 0;\n printMaze(mz);\n } else if (mz[p_row][p_col-1] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col -= 2;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col -= 2;\n printMaze(mz);\n }\n }\n } else if (h_col+1 == p_col){\n //If facing South\n if(mz[h_row][h_col] != '#'){\n //Look right\n mz[p_row][p_col] = 'X'; \n p_row -= 0;\n p_col -= 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row -= 1;\n h_col += 0;\n printMaze(mz);\n } else { \n //If hand position is a wall check in front of player\n if(mz[p_row+1][p_col] != '#'){\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 1;\n p_col += 0;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col += 0;\n printMaze(mz);\n } else if (mz[p_row][p_col+1] != '#'){\n //Turn left 90 and if not a wall move up\n //Update player\n mz[p_row][p_col] = 'X';\n p_row += 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 1;\n h_col += 2;\n printMaze(mz);\n } else {\n //Turn around\n //Update player\n mz[p_row][p_col] = 'X';\n p_row -= 0;\n p_col += 1;\n if (mz[p_row][p_col] == 'F'){\n mz[p_row][p_col] = 'F';\n } else {\n mz[p_row][p_col] = 'O';\n }\n //Update hand\n h_row += 2;\n h_col += 1;\n printMaze(mz);\n }\n }\n \n }\n maze(mz, p_row, p_col, h_row, h_col); \n }\n }",
"public void printMaze()\r\n\t{\r\n\t\tfor(int i = 0;i<maze.length;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t\tfor(int j = 0;j<maze[0].length;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tfor(int k = 0;k<maze[0][0].length;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(maze[i][j][k]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\");\r\n\t}",
"public void solveMaze() throws MazeException {\n\n long startTime = System.currentTimeMillis();\n List<Maze.Room> solution = path();\n long endTime = System.currentTimeMillis();\n\n double timeToSolve = (endTime - startTime) / 1000.0;\n\n setSolution(Optional.<List<Maze.Room>>of(solution));\n setTimeToSolve(Optional.<Double>of(timeToSolve));\n setSolved(true);\n }",
"@Override\r\n\tpublic void solveMaze(String[] args, Maze3d maze) {\r\n\t\tthreadpool.execute(new Runnable() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSearchable<Position> s = new Maze3dDomain(maze);\r\n\t\t\t\tif(args.length>=3 && args.length<5)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(args[2].equals(\"BFS\")==true)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tBFS<Position> solve = new BFS<Position>(new StateCostComparator<Position>());\r\n\t\t\t\t\t\tcontroller.setSolution(solve.search(s).getSol(),args[1]);\r\n\t\t\t\t\t\tcontroller.printStr(\"solution for \" +args[1]+ \" is ready\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcontroller.printStr(\"Algorithm is not exist\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(args.length>=5)\r\n\t\t\t\t{\r\n\t\t\t\t\tif((args[2]+\" \"+args[3]+\" \"+args[4]).equals(\"Astar Air Distance\")==true)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tBFS<Position> solve = new Astar<Position>(new StateCostComparator<Position>(),new MazeAirDistance(s));\r\n\t\t\t\t\t\tcontroller.setSolution(solve.search(s).getSol(),args[1]);\r\n\t\t\t\t\t\tcontroller.printStr(\"solution for \" +args[1]+ \" is ready\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if((args[2]+\" \"+args[3]+\" \"+args[4]).equals(\"Astar Manhattan Distance\")==true)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tBFS<Position> solve = new Astar<Position>(new StateCostComparator<Position>(),new MazeManhattanDistance(s));\r\n\t\t\t\t\t\tcontroller.setSolution(solve.search(s).getSol(),args[1]);\r\n\t\t\t\t\t\tcontroller.printStr(\"solution for \" +args[1]+ \" is ready\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcontroller.printStr(\"Algorithm is not exist\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tcontroller.printStr(\"Algorithm is not exist\");\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void showSaveMaze(String message);",
"public void print(){\n for(int i=0; i<maze.length;i+=1) {\n for (int j = 0; j < maze[0].length; j += 1){\n if(i == start.getRowIndex() && j == start.getColumnIndex())\n System.out.print('S');\n else if(i == goal.getRowIndex() && j == goal.getColumnIndex())\n System.out.print('E');\n else if(maze[i][j]==1)\n System.out.print(\"█\");\n else if(maze[i][j]==0)\n System.out.print(\" \");\n\n\n }\n System.out.println();\n }\n }",
"public void generateSolution() {\n if (this.stateOfTheMaze != 1)\n throw new IllegalArgumentException(\"To generate the maze the state of it must be \\\"generated maze\\\".\");\n Queue<Box> queue = new LinkedList<>();\n queue.add(this.startBox);\n boolean notFinished = true;\n while (notFinished) {\n Box aux = queue.peek();\n LinkedList<Box> movements = movementWithWalls(aux);\n movements.remove(aux.getPrevious());\n for (Box box : movements) {\n box.setPrevious(aux);\n queue.add(box);\n if (box.equals(this.endBox))\n notFinished = false;\n }\n queue.remove();\n }\n Box anotherAux = this.endBox;\n while (!anotherAux.equals(this.startBox)) {\n anotherAux.setAsSolution();\n anotherAux = anotherAux.getPrevious();\n }\n this.stateOfTheMaze++;\n }",
"public void showLoadMaze(String message);",
"public static void main (String[] args) {\n\n Maze labyrinth = new Maze();\n \n labyrinth.print_maze();\n\n if (labyrinth.solve(0, 0)) {\n \t System.out.println (\"Maze solved!\");\n \t labyrinth.print_maze();\n \t }\n else\n System.out.println (\"No solution.\");\n\n }",
"private static void solveProblem3D (ISearchable domain, ISearchingAlgorithm searcher) throws NullError, LowBoundInput, OutOfBoundMatrixInput {\n Solution solution = searcher.solve(domain);\n System.out.println(String.format(\"'%s' algorithm - nodes evaluated: %s\", searcher.getName(), searcher.getNumberOfNodesEvaluated()));\n //Printing Solution Path\n System.out.println(\"Solution path:\");\n ArrayList<AState> solutionPath = solution.getSolutionPath();\n for (int i = 0; i < solutionPath.size(); i++) {\n System.out.println(String.format(\"%s %s\", i, solutionPath.get(i)));\n }\n }",
"public boolean solve(final int startRow, final int startCol) {\r\n\r\n // TODO\r\n // validate arguments: ensure position is within maze area\r\n\r\n if(mazeData [startRow][startCol] == WALL) {\r\n throw new IllegalArgumentException(\" we're in a wall buddy\");\r\n }\r\n else if (startRow > mazeData.length-1 || startCol > mazeData.length-1 ){\r\n throw new IllegalArgumentException(\" we're out of bounds \");\r\n }\r\n\r\n\r\n\r\n\r\n\r\n // TODO create local class for row/col positions\r\n class Position {\r\n private int row;\r\n private int col;\r\n\r\n // TODO add instance variables\r\n public Position(final int row, final int col) {\r\n this.row = row;\r\n this.col= col;\r\n }\r\n\r\n\r\n\r\n // TODO toString if desired\r\n public String toString() {\r\n return \"Row: \" + this.row + \"Column: \"+ this.col;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n // define the stack (work queue)\r\n final var queue = Collections.asLifoQueue(new LinkedList<Position>());\r\n //Queue<Position> queue = new LinkedList<Position>(); // EXTRA CREDIT PART 2\r\n\r\n // put starting position in queue\r\n queue.add(new Position(startRow, startCol));\r\n\r\n\r\n\r\n\r\n\r\n // look for a way out of the maze from the current position\r\n while (!queue.isEmpty()) {\r\n\r\n\r\n final Position pos = queue.remove();\r\n\r\n // if this is a wall, then ignore this position (and skip the remaining steps of the loop body)\r\n if (mazeData [pos.row][pos.col]== WALL){\r\n continue; // jumps to next spot in que , by skipping to next iteration of loops by saying continue\r\n }\r\n\r\n\r\n // otherwise mark this place as visited (drop a breadcrumb)\r\n if (mazeData [pos.row][pos.col]== VISITED){\r\n continue; // jumps to next spot in que , by skipping to next iteration of loops by saying continue\r\n }\r\n else if(mazeData [pos.row][pos.col]== EMPTY){\r\n mazeData [pos.row][pos.col]= VISITED;\r\n }\r\n\r\n // if we're already on the perimeter, then this is a way out and we should return success (true) right away\r\n if (pos.row == 0|| pos.col ==0 || pos.row == mazeData.length-1 || pos.col == mazeData[0].length-1){\r\n mazeData[startRow][startCol] = START;\r\n return true;\r\n }\r\n\r\n queue.add(new Position(pos.row+1,pos.col ));//down\r\n queue.add(new Position(pos.row-1,pos.col ));//up\r\n queue.add(new Position(pos.row,pos.col-1 )); //left\r\n queue.add(new Position(pos.row, pos.col + 1)); //right\r\n\r\n\r\n }//end of while\r\n\r\n\r\n\r\n // mark starting position\r\n mazeData[startRow][startCol] = START;\r\n\r\n // if we've looked everywhere but haven't gotten out, then return failure (false)\r\n return false;\r\n }",
"public void draw() {\t\n \t\t// Draw the centre of the maze\n \t\tPoint2D.Double centrePoint = GetCentrePoint();\n \t\t// if size is a factor of 10, this will be a multiple of 2\n \t\tint centreSize = getCentreSize();\n \t\tStdDraw.setPenColor(StdDraw.BOOK_LIGHT_BLUE);\n \t\tStdDraw.filledSquare(centrePoint.getX(), centrePoint.getY(), (centreSize / 2)-0.05);\n \t\t//Draw all the power switches\n \t\tdrawPowerSwitch(switches[0].x, switches[0].y);\n \t\tdrawPowerSwitch(switches[1].x, switches[1].y);\n \t\tdrawPowerSwitch(switches[2].x, switches[2].y);\n \t\tdrawPowerSwitch(switches[3].x, switches[3].y);\n \t\t\n \t\t\n \t\t// Get the data from the maze\n \t\tboolean south[][] = getSouth();\n \t\tboolean north[][] = getNorth();\n \t\tboolean east[][] = getEast();\n \t\tboolean west[][] = getWest();\n \t\tboolean sensor[][] = ms.getMotionSensors();\n \n \t\t//Draw the maze and motion sensors\n \t\tfor (int x = 1; x <= size; x++) {\n \t\t\tfor (int y = 1; y <= size; y++) {\n \t\t\t\tStdDraw.setPenColor(StdDraw.BLACK);\n \t\t\t\tif (south[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y, x + 1, y);\n \t\t\t\t}\n \t\t\t\tif (north[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y + 1, x + 1, y + 1);\n \t\t\t\t}\n \t\t\t\tif (west[x][y]) {\n \t\t\t\t\tStdDraw.line(x, y, x, y + 1);\n \t\t\t\t}\n \t\t\t\tif (east[x][y]) {\n \t\t\t\t\tStdDraw.line(x + 1, y, x + 1, y + 1);\n \t\t\t\t}\n \t\t\t\tif (sensor[x][y]) {\n \t\t\t\t\tStdDraw.setPenColor(StdDraw.MAGENTA);\n \t\t\t\t\tStdDraw.filledTriangle(x + 0.5, y + 0.4, 0.5);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"public void printDebugMaze() {\n\t\tSystem.out.println(width);\n\t\tSystem.out.println(height);\n\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tSystem.out.print(maze[x][y]);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public String toString() {\n String mazeVisual = \"\";\n Maze routeMaze = this.getMaze();\n for (int row = 0; row < routeMaze.getTiles().size(); row++) {\n for (int col = 0; col < routeMaze.getTiles().get(0).size(); col++) {\n if (route.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"*\");\n } else if (popped.contains(routeMaze.getTiles().get(row).get(col))) {\n mazeVisual = (mazeVisual + \"-\");\n } else {\n mazeVisual = (mazeVisual + routeMaze.getTiles().get(row).get(col).toString());\n }\n if ((col + 1) == routeMaze.getTiles().get(0).size()) {\n mazeVisual = mazeVisual + \"\\n\";\n }\n }\n }\n return mazeVisual;\n }",
"@Test\n public void testSolveGivenMazeTwice() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n shortestPath = MazeSolver.pStar(largeMaze, 25);\n shortestPath2 = MazeSolver.pStar(largeMaze, 25);\n\n assertEquals(9, shortestPath.size());\n\n assertEquals(shortestPath.size(), shortestPath2.size());\n\n assertEquals(\"<0, 0>\", shortestPath.get(0).getCoordinateString());\n assertEquals(\"<1, 0>\", shortestPath.get(1).getCoordinateString());\n assertEquals(\"<1, 1>\", shortestPath.get(2).getCoordinateString());\n assertEquals(\"<1, 2>\", shortestPath.get(3).getCoordinateString());\n assertEquals(\"<1, 3>\", shortestPath.get(4).getCoordinateString());\n assertEquals(\"<1, 4>\", shortestPath.get(5).getCoordinateString());\n assertEquals(\"<2, 4>\", shortestPath.get(6).getCoordinateString());\n assertEquals(\"<3, 4>\", shortestPath.get(7).getCoordinateString());\n assertEquals(\"<4, 4>\", shortestPath.get(8).getCoordinateString());\n\n assertEquals(\"<0, 0>\", shortestPath2.get(0).getCoordinateString());\n assertEquals(\"<0, 1>\", shortestPath2.get(1).getCoordinateString());\n assertEquals(\"<0, 2>\", shortestPath2.get(2).getCoordinateString());\n assertEquals(\"<0, 3>\", shortestPath2.get(3).getCoordinateString());\n assertEquals(\"<0, 4>\", shortestPath2.get(4).getCoordinateString());\n assertEquals(\"<1, 4>\", shortestPath2.get(5).getCoordinateString());\n assertEquals(\"<2, 4>\", shortestPath2.get(6).getCoordinateString());\n assertEquals(\"<3, 4>\", shortestPath2.get(7).getCoordinateString());\n assertEquals(\"<4, 4>\", shortestPath2.get(8).getCoordinateString());\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }",
"public static void main(String[] args) throws Exception {\n\n String[] options=new String[2];\n options[0]=\"Smart\";\n options[1]=\"Dummy\";\n String choice=\"\";\n String availableChars[] = {\"5x5maze.txt\",\"7x7maze.txt\",\"8x8maze.txt\",\"9x9maze.txt\",\"10x10maze.txt\",\"12x12maze.txt\"};\n\n int choiceG = JOptionPane.showOptionDialog(JOptionPane.getRootFrame(),\n \"Would you like to use the smart or dummy solution?\",\n \"Flow Free solver\",0,\n JOptionPane.INFORMATION_MESSAGE,null,options,null\n );\n if(choiceG==0){\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,false);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n else{\n choice = (String) JOptionPane.showInputDialog(JOptionPane.getRootFrame(),\n \"Which puzzle size would you like to solve?\",\n \"Choose puzzle\",\n JOptionPane.PLAIN_MESSAGE,\n null,\n availableChars,\n 2);\n try{\n int[][] numberedMap=loadMap(choice);\n Node[] map=linkNodes(numberedMap);\n height=numberedMap.length;\n width=numberedMap[0].length;\n\n FlowDrawer.getInstance();\n FlowDrawer.setBoard(numberedMap);\n FlowFinder f=new FlowFinder(numberedMap,map,true);\n }\n catch(Exception e){System.out.println(e+\" \"+e.getStackTrace()[0].getLineNumber());}\n }\n\n\n\n }",
"@Override\n\t\t\tpublic void run() \n\t\t\t{\n\t\t\t\tif(!(mazeCollection.containsKey(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Maze doesn't exist\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t//if solution for this maze exists\n\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0])))\n\t\t\t\t{\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\tif(paramArray[1].toString().equals(\"bfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> bfs=new BFS<Position>();\n\t\t\t\t\tSolution<Position> sol=bfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if(paramArray[1].toString().equals(\"dfs\"))\n\t\t\t\t{\n\t\t\t\t\tMazeAdapter ms=new MazeAdapter(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\n\t\t\t\t\tSearcher<Position> dfs=new DFS<Position>();\n\t\t\t\t\tSolution<Position> sol=dfs.search(ms);\n\t\t\t\t\t\n\t\t\t\t\t//check if solution for the maze already exists, if so, replace it with the new one\n\t\t\t\t\tif(mazeSolutions.containsKey(mazeCollection.get(paramArray[0]))) {\n\t\t\t\t\t\tmazeSolutions.remove(mazeCollection.get(paramArray[0]));\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tmazeSolutions.put(mazeCollection.get(paramArray[0]), sol);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tc.passSolve(\"Solution for \"+paramArray[0]+ \" is ready\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tc.passError(\"Invalid algorithm\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public static void main(String[] args) {\n char [][] strtMaze = new char[][]{\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n {'#', '.', '.', '.', '#', '.', '.', '.', '.', '.', '.', '#'},\n {'.', '.', '#', '.', '#', '.', '#', '#', '#', '#', '.', '#'},\n {'#', '#', '#', '.', '#', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '#', '#', '#', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '.', '#', 'F', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '#', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '.', '#', '#', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '#', '.', '.', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n };\n //Get start position of person\n int pstartx = 2;\n int pstarty = 0;\n //Get start position of hand\n int hstartx = 3; //If same as pstart(facing north south)\n int hstarty = 0;//If same as pstart (facing east west)\n RecursionOutLab maze1 = new RecursionOutLab();\n maze1.maze(strtMaze, pstartx, pstarty, hstartx, hstarty);\n }",
"public static void show(int mat3d[][][]) {\n //for loop which runs 3 times again\n for(int s=0; s<3; s++) {\n //this for loop does the same as the first method\n for(int j=0; j<(3+2*s); j++) {\n //for follows pattern of array ^^\n for(int c=0; c<(s+j+1); c++) {\n //prints of the array slot for s,j,c\n System.out.print(mat3d[s][j][c]);\n //prints out a blank space to seperate\n System.out.print(\" \");\n }\n //prints out blank line to seperate \n System.out.println();\n }\n \n System.out.println();\n }\n }",
"@Override\r\n\tpublic Maze3d generate(int x_axis, int y_axis, int z_axis, IPickCellStrategy pickStrategy) {\r\n\t\tMaze3d maze = new Maze3d(x_axis, y_axis, z_axis);\r\n\t\tPickStrategy = pickStrategy;\r\n\t\t//step 1\r\n\t\t//Let listOfCells be a list of cells, initially empty\r\n\t\tSystem.out.println(\"Starting Growing Tree Maze3d Generator. TotalX = \" + maze.getX_axis() + \"TotalY = \" + maze.getY_axis() + \"TotalZ = \" + maze.getZ_axis());\r\n\t\tList<Position> listOfCells = new ArrayList<Position>();\r\n\t\t\r\n\t\t//step 2\r\n\t\t//Add one cell to C, at random\r\n\t\tRandom rand = new Random(); \r\n\t\tint x = randOddNumber(maze.getX_axis());\r\n\t\tint y = randOddNumber(maze.getY_axis()); \r\n\t\tint z = randOddNumber(maze.getZ_axis()); \t\t\r\n\t\tlistOfCells.add(new Position(x,y,z));\r\n\t\tSystem.out.println(\"Random start = \" + listOfCells.get(0).toString());\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\t//Repeat steps 3-4 until C is empty\r\n\t\twhile(listOfCells.isEmpty() == false){\r\n\t\t\t//step 3\r\n\t\t\t//Choose a cell c from C\r\n\t\t\tPosition chosenCell = PickStrategy.Pick(listOfCells);\r\n\t\t\t\r\n\t\t\t//step 4\r\n\t\t\t//If c has unvisited neighbors:\r\n\t\t\t//Choose an unvisited neighbor of cell c. Call it neighborCell\r\n\t\t\tList<Position> listOfUnvisitedNeighbors = maze.getUnvisitedNeighbors(chosenCell);\r\n\t\t\tif(listOfUnvisitedNeighbors.isEmpty() == false){\r\n\t\t\t\tPosition unvisitedNeighbor = listOfUnvisitedNeighbors.get(rand.nextInt(listOfUnvisitedNeighbors.size()));\r\n\t\t\t\tmaze.RemoveWallBetweenCells(chosenCell, unvisitedNeighbor);\r\n\t\t\t\tlistOfCells.add(unvisitedNeighbor);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tlistOfCells.remove(chosenCell);\r\n\t\t}\r\n\t\t\r\n\t\t//Generate entrance and exit\r\n\t\tboolean foundStart= false;\r\n\t\tboolean foundEnd= false;\r\n\t\tList<Position> temp = null;\r\n\t\t\r\n\t\tfor (int m = 1; m < maze.getX_axis()-1; m=m+2) {\r\n\t\t\tfor (int n = 1; n < maze.getY_axis()-1; n=n+2) {\r\n\t\t\t\tif (maze.getValueAt(m,n,1) == 0 && !foundStart)\r\n\t\t\t\t{\r\n\t\t\t\t\tmaze.setStartPosition(new Position(m,n,1));\r\n\t\t\t\t\tfoundStart = true;\r\n\t\t\t\t\tbreak;\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\tfor (int m = 1; m < maze.getX_axis()-1; m=m+2) {\r\n\t\t\tfor (int n = 1; n < maze.getY_axis()-1; n=n+2) {\r\n\t\t\t\tif (maze.getValueAt(m,n,maze.getZ_axis()-2) == 0 && !foundEnd)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tmaze.setGoalPosition(new Position(m,n,maze.getZ_axis()-2));\r\n\t\t\t\t\tfoundEnd = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\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\treturn maze;\r\n\t}",
"@Test\n public void testSolveIrregularBeginAndEndMaze(){\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(1, 0));\n largeMaze.setEnd(Maze.position(3, 4));\n shortestPath = MazeSolver.pStar(largeMaze, 25);\n\n assertEquals(\"<1, 0>\", shortestPath.get(0).getCoordinateString());\n assertEquals(\"<1, 1>\", shortestPath.get(1).getCoordinateString());\n assertEquals(\"<1, 2>\", shortestPath.get(2).getCoordinateString());\n assertEquals(\"<1, 3>\", shortestPath.get(3).getCoordinateString());\n assertEquals(\"<2, 3>\", shortestPath.get(4).getCoordinateString());\n assertEquals(\"<2, 4>\", shortestPath.get(5).getCoordinateString());\n assertEquals(\"<3, 4>\", shortestPath.get(6).getCoordinateString());\n\n assertEquals(7, shortestPath.size());\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }",
"private int solve(int r, int c, int result){\n if(animate){\n\n clearTerminal();\n System.out.println(this);\n\n wait(150);\n }\n\n //COMPLETE SOLVE\n if (maze[r][c] == 'E'){\n return result;\n } else {\n maze[r][c] = '@';\n }\n for (int i = 0; i < moves.length; i++){\n int rowI = moves[i].x;\n int colI = moves[i].y;\n if (maze[r + rowI][c + colI] == ' ' || maze[r + rowI][c + colI] == 'E'){\n int solvler = solve(r + rowI, c + colI, result + 1);\n if (solvler != -1){\n return solvler;\n }\n }\n }\n maze[r][c] = '.';\n return -1; //so it compiles\n }",
"@Test\n public void testSolveBackwardMaze(){\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(3, 4));\n largeMaze.setEnd(Maze.position(1, 0));\n shortestPath = MazeSolver.pStar(largeMaze, 25);\n\n assertEquals(null, shortestPath);\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }",
"public void testSolve1() {\n test = new Location(0, 1);\n maze2.setCell(test, MazeCell.WALL);\n test = new Location(1, 1);\n maze2.setStartLocation(test);\n test = new Location(0, 0);\n maze2.setGoalLocation(test);\n assertEquals(\"(0, 0) (1, 0) (1, 1) \", maze2.solve());\n }",
"public Maze3d() {\r\n\t\tthis.maze = null;\r\n\t\tthis.startPosition = null;\r\n\t\tthis.goalPosition = null;\r\n\t}",
"public static String findPath(Maze maze) {\n \tint m = maze.getNumRows();\n \tint n = maze.getNumCols();\n\n \t//define a visited matrix\n \tboolean[][] visited = new boolean[m][n];\n \tsetvisited(false, visited);\n\n \t//define a direction matrix\n \tint[][] dir_mtr = new int[m][n];\n \tinit_dir(-1,dir_mtr);\n\n\n\n \t//define a stack\n \tStack<MazeLocation> s;\n \ts = new StackRefBased<MazeLocation>();\n\n \tMazeLocation entry = maze.getEntry();\n \tMazeLocation exit = maze.getExit();\n \t// System.out.println(entry.toString());\n \ts.push(entry);\n\n\t\tMazeLocation temp; \n\t\tString result = \"\"; \t\n\n\t\ttry{\n\t\t\tint x,y;\n\n\n\t\t\twhile(!s.isEmpty()){\n\n \t\ttemp = s.peek();\n \t\tx = temp.getRow();\n \t\ty = temp.getCol();\n \t\tdir_mtr[x][y]+=1;\n\n \t\tif(temp.toString().equals(exit.toString())){\n \t\t\tSystem.out.println(\"find the path\");\n \t\t\tbreak;\n\n \t\t}\n\n \t\tif(dir_mtr[x][y]==0){ \n \t\t\t//checking the up direction\n \t\t\tif(x-1>=0 && !maze.isWall(x-1,y) && !visited[x-1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x-1,y,maze.isWall(x-1,y));\n \t\t\t\tvisited[x-1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==1){\n \t\t\t//checking the left direction\n \t\t\tif(y-1>=0 && !maze.isWall(x,y-1) && !visited[x][y-1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y-1,maze.isWall(x,y-1));\n \t\t\t\tvisited[x][y-1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n\n \t\t}else if(dir_mtr[x][y]==2){\n \t\t\t//checking the down direction\n \t\t\tif(x+1<m && !maze.isWall(x+1,y) && !visited[x+1][y]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x+1,y,maze.isWall(x+1,y));\n \t\t\t\tvisited[x+1][y] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else if(dir_mtr[x][y]==3){\n \t\t\t//checking the right direction\n \t\t\tif(y+1<n && !maze.isWall(x,y+1) && !visited[x][y+1]){\n \t\t\t\tMazeLocation testnode = new MazeLocation(x,y+1,maze.isWall(x,y+1));\n \t\t\t\tvisited[x][y+1] = true;\n \t\t\t\ts.push(testnode);\n\n \t\t\t}\n \t\t\t\n \t\t}else{\n \t\t\tvisited[x][y] = false;\n \t\t\ts.pop();\n \t\t}\n\n\n\n \t\t\n \t}\n\n \t//reverse the stack\n \tStack<MazeLocation> reverse;\n \treverse = new StackRefBased<MazeLocation>();\n \twhile(!s.isEmpty()){\n\t\t\t reverse.push(s.pop()); \t//push the node to the reverse stack\n\t\t\t }\n\n\n \t//if the stack is not empty, then we find the path\n\t\tif(!reverse.isEmpty()){\n\t\t\tresult = reverse.toString();\n\n\t\t}\n\n \t\n \n\n\t\t}\n\t\tcatch (StackEmptyException see) {\n \n }\n\n\n \treturn result;\n\n\n }",
"private void createMaze(Tile currentTile) {\n\n while (numberOfCellsVisited < CAST_WIDTH * CAST_HEIGHT) {\n\n // Get coordinates of current tile and set as visited\n int currentX = currentTile.getPosition().getX();\n int currentY = currentTile.getPosition().getY();\n tempMap[currentY][currentX].setVisited(true);\n\n // Begin neighbourhood scan\n ArrayList<Integer> neighbours = new ArrayList<>();\n\n // If a neighbour is not visited and its projected position is within bounds, add it to the list of valid neighbours\n // North neighbour\n if (currentY - 1 >= 0) {\n if (!tempMap[currentY - 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(0);\n }\n //Southern neighbour\n if (currentY + 1 < CAST_HEIGHT) { //y index if increased is not greater than height of the chamber\n if (!tempMap[currentY + 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(1);\n }\n //Eastern neighbour\n if (currentX + 1 < CAST_WIDTH) { //check edge case\n if (!tempMap[currentY][currentX + 1].isVisited()) { //check if visited\n neighbours.add(2);\n }\n }\n //Western neighbour\n if (currentX - 1 >= 0) {\n if (!tempMap[currentY][currentX - 1].isVisited()) {\n neighbours.add(3);\n }\n }\n if (!neighbours.isEmpty()) {\n\n //generate random number between 0 and 3 for direction\n Random rand = new Random();\n boolean randomizer;\n int myDirection;\n do {\n myDirection = rand.nextInt(4);\n randomizer = neighbours.contains(myDirection);\n } while (!randomizer);\n\n //knock down wall\n switch (myDirection) {\n case 0 -> { // North\n tempMap[currentY][currentX].getPathDirection()[0] = true;\n currentTile = tempMap[currentY - 1][currentX];\n }\n case 1 -> { // South\n tempMap[currentY][currentX].getPathDirection()[1] = true;\n currentTile = tempMap[currentY + 1][currentX];\n }\n case 2 -> { // East\n tempMap[currentY][currentX].getPathDirection()[2] = true;\n currentTile = tempMap[currentY][currentX + 1];\n }\n case 3 -> { // West\n tempMap[currentY][currentX].getPathDirection()[3] = true;\n currentTile = tempMap[currentY][currentX - 1];\n }\n }\n\n mapStack.push(currentTile);\n numberOfCellsVisited++;\n } else {\n currentTile = mapStack.pop(); //backtrack\n }\n }\n\n castMaze(tempMap[0][0], -1);\n }",
"private void makeMaze() {\n\t\ttry {\n\t\t\tthis.end = ImageIO.read(new File(\"images/tiles/end_locked.png\"));\n\t\t\tint w = getWidth()/gui.getModel().getDifficulty();\n\t\t\tint h = getHeight()/gui.getModel().getDifficulty();\n\t\t\tint difficulty = gui.getModel().getDifficulty();\n\t\t\tmazeImage = new BufferedImage(difficulty*(getWidth()/difficulty), difficulty*(getHeight()/difficulty), BufferedImage.TYPE_INT_RGB);\n\t\t\tGraphics2D g = mazeImage.createGraphics();\n\t\t\tString tile = \"\";\n\t\t\tfor (BaseState s: gui.getModel().getMaze()) {\n\t\t\t\tint x = s.getX(); int y = s.getY();\n\t\t\t\t\n\t\t\t\t// check walls\n\t\t\t\tint numSides = 0;\n\t\t\t\tboolean rightWall = false;\n\t\t\t\tboolean leftWall = false;\n\t\t\t\tboolean topWall = false;\n\t\t\t\tboolean bottomWall = false;\n\t\t\t\tif (s.getRight() == null) rightWall = true;\n\t\t\t\tif (s.getLeft() == null) leftWall = true;\n\t\t\t\tif (s.getUp() == null) topWall = true;\n\t\t\t\tif (s.getDown() == null) bottomWall = true;\n\t\t\t\tif (topWall) numSides++;\n\t\t\t\tif (leftWall) numSides++;\n\t\t\t\tif (bottomWall) numSides++;\n\t\t\t\tif (rightWall) numSides++;\n\t\t\t\t\n\t\t\t\t// find tile type\n\t\t\t\tif (numSides == 3) { // dead end\n\t\t\t\t\tif (!rightWall) tile = \"images/tiles/deadend_left.bmp\";\n\t\t\t\t\telse if (!leftWall) tile = \"images/tiles/deadend_right.bmp\";\n\t\t\t\t\telse if (!topWall) tile = \"images/tiles/deadend_bottom.bmp\";\n\t\t\t\t\telse if (!bottomWall) tile = \"images/tiles/deadend_top.bmp\";\n\t\t\t\t} else if (numSides == 2) { // corner or hall\n\t\t\t\t\t//hall\n\t\t\t\t\tif (rightWall && leftWall) tile = \"images/tiles/hall_vertical.bmp\";\n\t\t\t\t\telse if (topWall && bottomWall) tile = \"images/tiles/hall_horizontal.bmp\";\n\t\t\t\t\t//corner\n\t\t\t\t\telse if (topWall && leftWall) tile = \"images/tiles/corner_top_left.bmp\";\n\t\t\t\t\telse if (topWall && rightWall) tile = \"images/tiles/corner_top_right.bmp\";\n\t\t\t\t\telse if (bottomWall && leftWall) tile = \"images/tiles/corner_bottom_left.bmp\";\n\t\t\t\t\telse if (bottomWall && rightWall) tile = \"images/tiles/corner_bottom_right.bmp\";\n\t\t\t\t} else if (numSides == 1) { // single side\n\t\t\t\t\tif (leftWall) tile = \"images/tiles/wall_left.bmp\";\n\t\t\t\t\telse if (rightWall) tile = \"images/tiles/wall_right.bmp\";\n\t\t\t\t\telse if (topWall) tile = \"images/tiles/wall_top.bmp\";\n\t\t\t\t\telse if (bottomWall) tile = \"images/tiles/wall_bottom.bmp\";\n\t\t\t\t} else { // open\n\t\t\t\t\ttile = \"images/tiles/open.bmp\";\n\t\t\t\t}\n\t\t\t\t// draw tile\n\t\t\t\tg.drawImage(ImageIO.read(new File(tile)), x*w, y*h, w, h, null);\n\t\t\t\t\n\t\t\t\t// check for ending and draw if need be\n\t\t\t\tif (s.getX() == gui.getModel().getDifficulty() - 1 && s.getY() == gui.getModel().getDifficulty() - 1) {\n\t\t\t\t\tg.drawImage(ImageIO.read(new File(\"images/tiles/end_unlocked.png\")), x*w, y*h, w, h, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException e) {System.err.println(\"Images not found.\");}\n\t}",
"public void displaySolution() {\r\n Problem pb = new Problem(sources, destinations, costMatrix);\r\n pb.printProblem();\r\n Solution sol = new Solution(pb);\r\n sol.computeCost();\r\n }",
"public interface View {\r\n\t/**\r\n\t * starting the user interface\r\n\t */\r\n\tpublic void start();\r\n\t/**\r\n\t * returning the command that the user entered\r\n\t * @return string with the command that user entered\r\n\t */\r\n\tpublic String getUserCommand();\r\n\t/**\r\n\t * display the error in the commands that the client wrote\r\n\t * @param message string telling what is the error\r\n\t */\r\n\tpublic void showError(String error);\r\n\t/**\r\n\t * display the outcome of command:dir <path>\r\n\t * displaying the files and directories of the specified path\r\n\t * @param dirArray string's array with the names of files and directories in the specified path\r\n\t */\r\n\tpublic void showDirPath(String[] list);\r\n\t/**\r\n\t * display the message that the maze is ready\r\n\t * @param message string with the massege:maze is ready\r\n\t */\r\n\tpublic void showGenerate3dMaze(String message);\r\n\t/**\r\n\t * displaying the specified maze\r\n\t * @param byteArr byte array representing the maze\r\n\t */\r\n\tpublic void showDisplayName(byte[] byteArr);\r\n\t/**\r\n\t * displaying the cross section which the client asked for\r\n\t * @param crossSection 2d array with the cross section asked\r\n\t */\r\n\tpublic void showDisplayCrossSectionBy(int[][] crossSection);\r\n\t/**\r\n\t * displaying the string:the maze has been saved\r\n\t * @param str string with the word:maze has been saved\r\n\t */\r\n\tpublic void showSaveMaze(String message);\r\n\t/**\r\n\t * displaying the string:the maze has been loaded\r\n\t * @param str string with the word:maze has been loaded\r\n\t */\r\n\tpublic void showLoadMaze(String message);\r\n\t/**\r\n\t * display the maze size in memory(bytes)\r\n\t * @param size the size of the maze in bytes\r\n\t */\r\n\tpublic void showMazeSize(int size);\r\n\t/**\r\n\t * display the maze size in file(bytes)\r\n\t * @param length the size of the maze in file\r\n\t */\r\n\tpublic void showFileSize(long size);\r\n\t/**\r\n\t * displaying the string:solution for maze is ready\r\n\t * @param message string with the words:solution for maze is ready\r\n\t */\r\n\tpublic void showSolveMaze(String message);\r\n\t/**\r\n\t * displaying the solution of the specified maze\r\n\t * @param sol the solution of the maze\r\n\t */\r\n\tpublic void showDisplaySolution(Solution<Position> solution);\r\n\t/**\r\n\t * a command that only gui has:solve from <name> <algorithm> <x> <y> <z>\r\n\t * showing the outcome of this command,in other wards display the solution from specific point in the maze\r\n\t * @param message message that the solution is ready\r\n\t */\r\n\tpublic void showSolveFrom(String message);\r\n\t/**\r\n\t * a command that only gui has:display half solution <name>\r\n\t * displaying a solution for the specified maze\r\n\t * @param solution solution that was calculated in the model\r\n\t */\r\n\tpublic void showDisplayHalfSolution(Solution<Position> solution);\r\n\t/**\r\n\t * display a message about some error\r\n\t */\r\n\tpublic void showExit();\r\n\t/**\r\n\t * displaying help,which shows the commands the client can write\r\n\t */\r\n\tpublic void showHelp();\r\n\t/**\r\n\t * a command that only gui have: load xml\r\n\t * @param p properties object that was loaded by the xml file\r\n\t */\r\n\tpublic void showLoadXML(Properties p);\r\n}",
"public static void mazeHeight(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze three = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = three.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber + n)){\n\t\t\t\t\t\tS.unionByHeight(randomNumber, randomNumber+n);\n\t\t\t\t\t\tthree.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber+1)){\n\t\t\t\t\t\tS.unionByHeight(randomNumber, randomNumber+1);\n\t\t\t\t\t\tthree.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tbuildAdjacencyList(three, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\tthree.draw();\n\t\tthree.printCellNumbers();\t\n\t}",
"public static void main( String [ ] args )\r\n {\r\n \r\n \t\r\n \t\r\n \tint maze_row=0;\r\n \tint maze_column=0;\r\n \t\r\n\t\t\r\n\t\tScanner type = new Scanner(System.in);\r\n\t\t\r\n\t\t\r\n\t\tdo\r\n\t\t\t{\r\n\t\t\ttry \r\n\t\t\t\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"Please enter number of row between 1 and 20: \");\r\n\t\t\t\tmaze_row = Integer.valueOf(type.next());\r\n\t\t\t}\r\n\t\t\tcatch (NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"Input didn't match with the requirement: Try Again\");\r\n\t\t\t\tmaze_row=21;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t}\r\n\t\twhile(maze_row>20 || maze_row<1);\r\n\t\tdo\r\n\t\t{\r\n\t\ttry \r\n\t\t\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Please enter number of column between 1 and 20: \");\r\n\t\t\tmaze_column = Integer.valueOf(type.next());\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\t//System.out.println(\"Input didn't match with the requirement: Try Again\");\r\n\t\t\tmaze_column=21;\r\n\t\t\t\t\r\n\t\t}\r\n\t\t}\r\n\twhile(maze_column>20 ||maze_column<1);\r\n\t\t\r\n\t\ttype.close();\r\n\t\tSystem.out.println();\r\n \tcreateMaze(maze_row,maze_column);\r\n \tshowMaze();\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t/* int NumElements = 128;\r\n int NumInSameSet = 16;\r\n\r\n DisjSets ds = new DisjSets( NumElements );\r\n int set1, set2;\r\n\r\n for( int k = 1; k < NumInSameSet; k *= 2 )\r\n {\r\n for( int j = 0; j + k < NumElements; j += 2 * k )\r\n {\r\n set1 = ds.find( j );\r\n set2 = ds.find( j + k );\r\n ds.union( set1, set2 );\r\n }\r\n }\r\n\r\n for( int i = 0; i < NumElements; i++ )\r\n {\r\n System.out.print( ds.find( i )+ \"*\" );\r\n if( i % NumInSameSet == NumInSameSet - 1 )\r\n System.out.println( );\r\n }\r\n System.out.println( );*/\r\n }",
"public static void pathMethod (int x, int y, int rows, int columns, int startPointX, int startPointY, int endPointX, int endPointY, String [][]copyArray, String [][]realArray, int decider) throws Exception{ \r\n \r\n String up = copyArray[y-1][x];\r\n String down = copyArray[y+1][x];\r\n String right = copyArray[y][x+1]; //moves the coordinate up one, down one, right one, left one and stores it into up down left right; \r\n String left = copyArray[y][x-1];\r\n \r\n if(up.equals(\"X\")||down.equals(\"X\")||right.equals(\"X\")||left.equals(\"X\")){ //if up right left or down is equal to the endpoint, the maze is solvable, and we can now print the final array\r\n System.out.println(\"\\nThe maze is solvable!\");\r\n// printFinalArray(realArray, counter, xvalues, yvalues); //solution is found already - sends back to another method to print final solution\r\n regenerate(decider); //then sends to regenerate method where it asks if user would like to create another maze\r\n }\r\n \r\n else if(copyArray[startPointY+1][startPointX].equals(\"B\")&©Array[startPointY-1][startPointX].equals(\"B\")&©Array[startPointY][startPointX+1].equals(\"B\")&©Array[startPointY][startPointX-1].equals(\"B\")){\r\n \r\n System.out.println(\"\\nSorry, your maze is unsolvable.\\n\\n\"); //if at the start point we cannot go up down left or right - no possible moves - not solvable - end of maze \r\n regenerate(decider); //call the method that gives users the option to recreate the maze if it was unsolvable \r\n } \r\n \r\n else if(up.equals(\"O\")){ //if the coordinate in the up direction is O\r\n counter=counter+1; //incrementing counter so we can input it the coordinate arrays\r\n copyArray[y][x] = \"V\"; //changing the values to 'V' so we can know that we already visited it\r\n y=y-1; //moving coordinate up one \r\n xvalues[counter]=x; //storing this coordinate into the arrays with the counter\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider); //recalling method\r\n }\r\n \r\n else if(down.equals(\"O\")){ //if down = O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n y=y+1; \r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else if(right.equals(\"O\")){ //if right equals O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n x=x+1;\r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else if(left.equals(\"O\")){ //if left equals O\r\n copyArray[y][x] = \"V\";\r\n counter=counter+1;\r\n x=x-1;\r\n xvalues[counter]=x;\r\n yvalues[counter]=y;\r\n pathMethod(x, y, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider);\r\n }\r\n \r\n else { //if neither up down left or right work\r\n for(int i = 0; i<rows; i++){ //makes all the 'V's go back to O\r\n for(int j = 0; j<columns; j++){\r\n if(copyArray[i][j].equals(\"V\")){\r\n copyArray[i][j] = \"O\";\r\n }\r\n }\r\n }\r\n copyArray[y][x] = \"B\"; //make the coordinate that you cant make a move with B, so it shortens the possible path options\r\n for(int i = 0 ; i<counter; i++){\r\n xvalues[i] = 0; //resets the coordinate arrays back to 0\r\n yvalues[i] = 0;\r\n }\r\n counter=0; //resets counter back to 0;\r\n pathMethod(startPointX, startPointY, rows, columns, startPointX, startPointY, endPointX, endPointY, copyArray, realArray, decider); //resends the startpoints instead of x and y; only thing different is that one coordinate is now marked \"B\"\r\n } \r\n }",
"public void solveMaze( int x0, int y0, int x1, int y1 ) {\n visited = new boolean[rows+1][cols+1];\n solve(x0, y0, x1, y1);\n }",
"public void printGrid() {\n // Creation of depth Z\n for (int d = 0; d < grid[0][0].length; d++) {\n System.out.println(\"\");\n int layer = d + 1;\n System.out.println(\"\");\n System.out.println(\"Grid layer: \" + layer);\n // Creation of height Y\n for (int h = 1; h < grid.length; h++) {\n System.out.println(\"\");\n // Creation of width X\n for (int w = 1; w < grid[0].length; w++) {\n if (grid[h][w][d] == null) {\n System.out.print(\" . \");\n } else {\n String gridContent = grid[h][w][d];\n char identifier = gridContent.charAt(0);\n\n int n = 0;\n if(grid[h][w][d].length() == 3) {\n n = grid[h][w][d].charAt(2) % 5;\n } else if (grid[h][w][d].length() == 2) {\n n = grid[h][w][d].charAt(1)%5;\n }\n if(n == 0) n = 6;\n\n // Labelling\n if (identifier == 'G' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'G') {\n System.out.print(\"\\033[47m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n } else if (identifier == 'L' && grid[h][w][d].length() == 3) {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n } else if (identifier == 'L') {\n System.out.print(\"\\033[3\"+ n + \"m\");\n System.out.print(grid[h][w][d]);\n System.out.print(\"\\033[0m\");\n System.out.print(\" \");\n }\n }\n }\n }\n }\n System.out.println(\"\");\n }",
"public MazeBug() {\r\n setColor(Color.GREEN);\r\n last = new Location(0, 0);\r\n crossLocation = new Stack<ArrayList<Location>>();\r\n crossLocation.push(new ArrayList<Location>());\r\n hasShown = false;\r\n isEnd = false;\r\n probablyDir = new int[] { 0, 0, 0, 0 };\r\n stepCount = 0;\r\n }",
"public void display(PApplet g) { // this needs to be changed to a smaller radius to avoid unecessary computations.\n\t\tfor (Block b : maze)\n\t\t\tb.display(g);\n\t}",
"private void init() {\n mPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mPaint.setStyle(Style.STROKE);\n mPaint.setColor(ContextCompat.getColor(getContext(), R.color.colorPrimary));\n mPaint.setStrokeCap(Paint.Cap.ROUND);\n mPaint.setStrokeJoin(Paint.Join.ROUND);\n mPaint.setStrokeWidth(10f);\n mPath = new Path();\n\n solutionCellsVisited = 0;\n\n solvedMaze = false;\n\n solved = new ArrayList<Boolean>();\n\n for (int i = 0; i < solutionPath.length; i++) {\n solved.add(false);\n }\n // Log.d(\"SOLVED_LENGTH\", Integer.toString(solved.size()));\n }",
"protected boolean solve(int currentRow, int currentColumn) {\n \tint currentBlock = m.maze[currentRow][currentColumn];\t\t\t\t\t\t\t// get the current block that we are on\r\n \t\r\n if (m.isBlockEmpty(currentBlock)) {\t\t\t\t\t\t\t\t\t\t\t\t// make sure current block is empty\r\n \tm.maze[currentRow][currentColumn] = 2; \t\t\t\t\t\t\t\t// add this block to the path as a potential solution\r\n repaint();\r\n \r\n m.blocksTraversed++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t// keep track of how many blocks were traversed over\r\n \r\n if (currentRow == m.rows-2 && currentColumn == m.columns-2) {\t\t\t\t// current block is bottom right, path has been found\r\n \tGUI.ta.append(m.blocksTraversed + \" blocks were traversed while solving the maze.\\n\");\r\n \tdouble percentage = (((double) m.blocksTraversed / (m.rows * m.columns))*100) * 2;\r\n DecimalFormat f = new DecimalFormat(\"##.00\");\r\n \tGUI.ta.append(\"This results in \" + f.format(percentage) + \"% of the maze being traveled.\\n\");\r\n \treturn true;\r\n }\r\n \r\n try { Thread.sleep(1); }\r\n catch (InterruptedException e) { }\r\n \r\n int topBlock = currentRow - 1;\t\t\t\t\t\t\t\t\t\t\t\t// block directly above the current block\r\n int leftBlock = currentColumn - 1;\t\t\t\t\t\t\t\t\t\t\t// block directly left of the current block\r\n int bottomBlock = currentRow + 1;\t\t\t\t\t\t\t\t\t\t\t// block directly below the current block\r\n int rightBlock = currentColumn + 1;\t\t\t\t\t\t\t\t\t\t\t// block directly right of the current block\r\n \r\n if (solve(topBlock, currentColumn) || solve(currentRow, leftBlock) ||\t\t// a solution was found\r\n \tsolve(bottomBlock, currentColumn) || solve(currentRow, rightBlock))\r\n \treturn true;\r\n \r\n m.maze[currentRow][currentColumn] = 4; \t\t\t\t\t\t\t\t\t// no solution from current block so make the block visited instead\r\n repaint();\r\n \r\n synchronized(this) {\r\n try { wait(1); }\r\n catch (InterruptedException e) { }\r\n }\r\n }\r\n return false;\r\n }",
"@Override\r\n public void solve(String[] arr) {\r\n\tString nameAlg = arr[arr.length - 1];\r\n\tsb = new StringBuilder();\r\n\tfor (int i = 1; i < arr.length - 1; i++) {\r\n\t sb.append(arr[i]);\r\n\t}\r\n\tString name = sb.toString();\r\n\tMaze3d tempMaze = hMaze.get(name);\r\n\tif ((hSol.get(tempMaze)) != null) {\r\n\t setChanged();\r\n\t notifyObservers((\"solution:\" + name).split(\":\"));\r\n\t}\r\n\tFuture<Solution<Position>> fCallSolution = threadpool.submit(new Callable<Solution<Position>>() {\r\n\r\n\t @Override\r\n\t public Solution<Position> call() throws Exception {\r\n\r\n\t\tMaze3d m = hMaze.get(name);\r\n\t\tSearchableMaze sMaze = new SearchableMaze(m);\r\n\t\tCommonSearcher<Position> cs;\r\n\t\tSolution<Position> s = new Solution<Position>();\r\n\t\tswitch (nameAlg) {\r\n\t\tcase \"Astar\":\r\n\t\t cs = new AStar<Position>(new MazeManhattenDistance());\r\n\t\t s = cs.search(sMaze);\r\n\t\t break;\r\n\t\tcase \"A*\":\r\n\t\t cs = new AStar<Position>(new MazeManhattenDistance());\r\n\t\t s = cs.search(sMaze);\r\n\t\t break;\r\n\t\tcase \"BFS\":\r\n\t\t cs = new BFS<Position>();\r\n\t\t s = cs.search(sMaze);\r\n\t\t break;\r\n\t\t}\r\n\t\treturn s;\r\n\t }\r\n\t});\r\n\ttry {\r\n\t hSol.put(tempMaze, fCallSolution.get());\r\n\t} catch (InterruptedException | ExecutionException e) {\r\n\t // TODO Auto-generated catch block\r\n\t e.printStackTrace();\r\n\t}\r\n\tsetChanged();\r\n\tnotifyObservers((\"solution:\" + name).split(\":\"));\r\n }",
"public void display() {\n float dRadial = reactionRadialMax - reactionRadial;\n if(dRadial != 0){\n noStroke();\n reactionRadial += abs(dRadial) * radialEasing;\n fill(255,255,255,150-reactionRadial*(255/reactionRadialMax));\n ellipse(location.x, location.y, reactionRadial, reactionRadial);\n }\n \n // grow text from point of origin\n float dText = textSizeMax - textSize;\n if(dText != 0){\n noStroke();\n textSize += abs(dText) * surfaceEasing;\n textSize(textSize);\n }\n \n // draw agent (point)\n fill(255);\n pushMatrix();\n translate(location.x, location.y);\n float r = 3;\n ellipse(0, 0, r, r);\n popMatrix();\n noFill(); \n \n // draw text \n textSize(txtSize);\n float lifeline = map(leftToLive, 0, lifespan, 25, 255);\n if(mouseOver()){\n stroke(229,28,35);\n fill(229,28,35);\n }\n else {\n stroke(255);\n fill(255);\n }\n \n text(word, location.x, location.y);\n \n // draw connections to neighboars\n gaze();\n }",
"@Override\n public ArrayList<int[]> solveMaze() {\n\n\n try {\n Client client = new Client(InetAddress.getLocalHost(), 5401, new IClientStrategy() {\n @Override\n public void clientStrategy(InputStream inFromServer, OutputStream outToServer) {\n try {\n ObjectOutputStream toServer = new ObjectOutputStream(outToServer);\n ObjectInputStream fromServer = new ObjectInputStream(inFromServer);\n toServer.flush();\n toServer.writeObject(maze); //send maze to server\n toServer.flush();\n Solution mazeSolution = (Solution) fromServer.readObject(); //read generated maze (compressed with MyCompressor) from server\n\n ArrayList<AState> mazeSolutionSteps = mazeSolution.getSolutionPath();\n solutionArray = new ArrayList<>();\n for (AState mazeSolutionStep : mazeSolutionSteps) {\n\n String[] dimensions = mazeSolutionStep.toString().split(\"[{},]\");\n int[] position = new int[2];\n position[0] = Integer.parseInt(dimensions[1]);\n position[1] = Integer.parseInt(dimensions[2]);\n\n solutionArray.add(position);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n client.communicateWithServer();\n } catch (UnknownHostException e) {\n e.printStackTrace();\n }\n\n\n return solutionArray;\n }",
"private void print_solution() {\n System.out.print(\"\\n\");\n for (int i = 0; i < rowsCount; i++) {\n for (int j = 0; j < colsCount; j++) {\n System.out.print(cells[i][j].getValue());\n }\n System.out.print(\"\\n\");\n }\n }",
"public static void mazeSize(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze four = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct = null;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\tif(randomDirection == 1)\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = four.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\t//System.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+n);\n\t\t\t\t\t\tfour.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfour.remove_wall(col, row, 'r');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(four, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\tfour.draw();\n\t\tfour.printCellNumbers();\t\n\t}",
"public void displayPantry(){\r\n jam1.displayJam();\r\n jam2.displayJam();\r\n jam3.displayJam();\r\n \r\n }",
"private void solve(int x, int y, boolean draw) {\n \t\t// these are the walls of the maze, maze solver should not go beyond\n \t\t// walls\n \t\t// if (x == 0 || y == 0 || x == N + 1 || y == N + 1) {\n \t\t// return;\n \t\t// }\n \n \t\t// if we have already visited this position\n \t\t// or if deep levels of the recursion have found the target\n \t\tif (foundTarget || visited[x][y])\n \t\t\treturn;\n \n \t\t// this position is new, mark it as visited\n \t\tvisited[x][y] = true;\n \n \t\tif (draw) {\n \t\t\t// Draw a blue dot to show we have been here\n \t\t\tStdDraw.setPenColor(StdDraw.BLUE);\n \t\t\tStdDraw.filledCircle(x + 0.5, y + 0.5, 0.25);\n \t\t\tStdDraw.show(SOLVER_SPEED);\n \t\t}\n \n \t\t// if we have reached the maze solve target\n \t\tif (x == target.x && y == target.y) {\n \t\t\tfoundTarget = true;\n \t\t}\n \n \t\t// Try go another place\n \t\tif (!north[x][y])\n \t\t\tsolve(x, y + 1, draw);\n \t\tif (!east[x][y])\n \t\t\tsolve(x + 1, y, draw);\n \t\tif (!south[x][y])\n \t\t\tsolve(x, y - 1, draw);\n \t\tif (!west[x][y])\n \t\t\tsolve(x - 1, y, draw);\n \n \t\tif (foundTarget)\n \t\t\treturn;\n \n \t\tif (draw) {\n \t\t\t// Draw a grey dot to show we have backtracked\n \t\t\tStdDraw.setPenColor(StdDraw.GRAY);\n \t\t\tStdDraw.filledCircle(x + 0.5, y + 0.5, 0.25);\n \t\t\tStdDraw.show(SOLVER_SPEED);\n \t\t}\n \t}",
"@Override\r\n public void solveMaze() {\r\n threadPool.execute(() -> {\r\n maze.setStartPotision(new Position(PlayerPositionRow,PlayerPositionCol));\r\n try {\r\n Client client = new Client(InetAddress.getLocalHost(), 5401, new IClientStrategy() {\r\n public void clientStrategy(InputStream inFromServer, OutputStream outToServer) {\r\n try {\r\n ObjectOutputStream toServer = new ObjectOutputStream(outToServer);\r\n ObjectInputStream fromServer = new ObjectInputStream(inFromServer);\r\n toServer.flush();\r\n toServer.writeObject(maze);\r\n toServer.flush();\r\n s = (Solution) fromServer.readObject();\r\n } catch (Exception var10) {\r\n var10.printStackTrace();\r\n }\r\n\r\n }\r\n });\r\n client.communicateWithServer();\r\n try {\r\n Thread.sleep(5000);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n setChanged();\r\n notifyObservers(\"solve\");\r\n });\r\n }",
"public MazeBug() {\n\n\tsetColor(Color.BLACK);\n\tlast = new Location(0, 0);\n\n\tdirCounter.put(Location.NORTH, 0);\n\tdirCounter.put(Location.SOUTH, 0);\n\tdirCounter.put(Location.EAST, 0);\n\tdirCounter.put(Location.WEST, 0);\n\n }",
"private void initializeGrid(Boolean makeMaze) {\r\n\t\t\tint oldRows = rows;\r\n\t\t\tint oldColumns = columns;\r\n\t\t\ttry {\r\n\t\t\t\tif (!rowsField.getText().isEmpty()) {\r\n\t\t\t\t\trows = Integer.parseInt(rowsField.getText());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"O Número de Linhas tem que ser respeitado! (5~50)\", \"Erro\",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\trows = oldRows;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"O Número de Linhas tem que ser respeitado! (5~50)\", \"Erro\",\r\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\trows = oldRows;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (rows < 5 || rows > 50) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"O Número de Linhas tem que ser respeitado! (5~50)\", \"Erro\",\r\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\trows = oldRows;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tif (!columnsField.getText().isEmpty()) {\r\n\t\t\t\t\tcolumns = Integer.parseInt(columnsField.getText());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"O Número de Colunas tem que ser respeitado! (5~50)\", \"Erro\",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\tcolumns = oldColumns;\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t} catch (NumberFormatException ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"O Número de Colunas tem que ser respeitado! (5~50)\", \"Erro\",\r\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tcolumns = oldColumns;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif (columns < 5 || columns > 50) {\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"O Número de Colunas tem que ser respeitado! (5~50)\", \"Erro\",\r\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tcolumns = oldColumns;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsquareSize = 500 / (rows > columns ? rows : columns);\r\n\t\t\tarrowSize = squareSize / 2;\r\n\t\t\t// the maze must have an odd number of rows and columns\r\n\t\t\tif (makeMaze && rows % 2 == 0) {\r\n\t\t\t\trows -= 1;\r\n\t\t\t}\r\n\t\t\tif (makeMaze && columns % 2 == 0) {\r\n\t\t\t\tcolumns -= 1;\r\n\t\t\t}\r\n\t\t\tgrid = new int[rows][columns];\r\n\t\t\trobotStart = new Cell(rows - 2, 1);\r\n\t\t\ttargetPos = new Cell(1, columns - 2);\r\n\t\t\tdfs.setEnabled(true);\r\n\t\t\tdfs.setSelected(true);\r\n\t\t\tbfs.setEnabled(true);\r\n\t\t\taStar.setEnabled(true);\r\n\t\t\tguloso.setEnabled(true);\r\n\t\t\tdijkstra.setEnabled(true);\r\n\t\t\tdiagonal.setSelected(false);\r\n\t\t\tdiagonal.setEnabled(true);\r\n\t\t\tdrawArrows.setSelected(false);\r\n\t\t\tdrawArrows.setEnabled(true);\r\n\t\t\tslider.setValue(500);\r\n\t\t\tif (makeMaze) {\r\n\t\t\t\tMyMaze maze = new MyMaze(rows / 2, columns / 2);\r\n\t\t\t} else {\r\n\t\t\t\tfillGrid();\r\n\t\t\t}\r\n\t\t}",
"public void drawMaze(PaintEvent e)\r\n\t{\r\n\t\tString temp=\"\";\r\n\t\tboardGame=new MazeCanvas[this.matrix.getRows()][this.matrix.getCols()];\r\n\t\t\r\n\t\t\tfor(int i=0;i<matrix.getRows();i++)\r\n\t\t\t{\r\n\t\t\t\tfor(int j=0;j<matrix.getCols();j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(i!=matrix.getRows()-1 && j!=matrix.getCols())\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif(matrix.getCell(i, j).getUp()==true)\r\n\t\t\t\t\t\ttemp+=\"U\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getRight()==true)\r\n\t\t\t\t\t\ttemp+=\"R\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getDown()==true)\r\n\t\t\t\t\t\ttemp+=\"D\";\r\n\t\t\t\t\tif(matrix.getCell(i, j).getLeft()==true)\r\n\t\t\t\t\t\ttemp+=\"L\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tboardGame[i][j]=new MazeCanvas(this, SWT.FILL);\r\n\t\t\t\t\tboardGame[i][j].setcImage(new Image(this.getDisplay(), \"Images//FloorImages//floor\"+temp+\".jpg\"));\r\n\t\t\t\t\tboardGame[i][j].setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));\r\n\t\t\t\t\tboardGame[i][j].drawCell(e, (getSize().x/matrix.getCols())*j , (getSize().y/matrix.getRows())*i , (getSize().x/matrix.getCols()), (getSize().y/matrix.getRows()));\r\n\t\t\t\t\ttemp=\"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\tboardGame[i][j]=new MazeCanvas(this, SWT.FILL);\r\n\t\t\t\t\tboardGame[i][j].setcImage(new Image(this.getDisplay(), \"Images//FloorImageSolution//floor\"+temp+\".jpg\"));\r\n\t\t\t\t\tboardGame[i][j].setLayoutData(new GridData(SWT.FILL,SWT.FILL,true,true));\r\n\t\t\t\t\tboardGame[i][j].drawCell(e, (getSize().x/matrix.getCols())*j , (getSize().y/matrix.getRows())*i , (getSize().x/matrix.getCols()), (getSize().y/matrix.getRows()));\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnewmaze=false;\r\n\t\t\t\r\n\t}",
"public static void main(String[] args) { \n \n //read in filename from user\n String filenameInput = args[0];\n \n //create new maze/graph\n Maze newMaze = new Maze(filenameInput);\n \n //call toString\n //String stringMaze = newMaze.toString();\n \n //print the string maze\n //System.out.println(stringMaze);\n \n //call findPath\n //System.out.println(newMaze.findPath());\n \n for (Vertex v : newMaze.findPath()) System.out.print(v.getName());\n \n //print solution?\n //System.out.println(newMaze.solution);\n \n \n }",
"private void constructMaze() {\r\n\t\t\r\n\t\t// manual code to construct a sample maze going cell by cell\r\n\t\tgridSheet[0][0].breakSouthWall();\r\n\t\tgridSheet[1][0].breakEastWall();\r\n\t\tgridSheet[1][1].breakSouthWall();\r\n\t\tgridSheet[2][1].breakWestWall();\r\n\t\tgridSheet[2][0].breakSouthWall();\r\n\t\tgridSheet[2][1].breakEastWall();\r\n\t\tgridSheet[2][2].breakSouthWall();\r\n\t\tgridSheet[3][2].breakSouthWall();\r\n\t\tgridSheet[4][2].breakWestWall();\r\n\t\tgridSheet[4][1].breakNorthWall();\r\n\t\tgridSheet[4][1].breakWestWall();\r\n\t\tgridSheet[2][2].breakEastWall();\r\n\t\tgridSheet[2][3].breakNorthWall();\r\n\t\tgridSheet[1][3].breakWestWall();\r\n\t\tgridSheet[1][3].breakNorthWall();\r\n\t\tgridSheet[0][3].breakWestWall();\r\n\t\tgridSheet[0][2].breakWestWall();\r\n\t\tgridSheet[0][3].breakEastWall();\r\n\t\tgridSheet[0][4].breakSouthWall();\r\n\t\tgridSheet[1][4].breakSouthWall();\r\n\t\tgridSheet[2][4].breakSouthWall();\r\n\t\tgridSheet[3][4].breakWestWall();\r\n\t\tgridSheet[3][4].breakSouthWall();\r\n\t\tgridSheet[4][4].breakWestWall();\r\n\t\t\r\n\t}",
"public static void printFinalArray(String[][] realArray, int counter, int [] xvalues, int [] yvalues){ //method print the final solved maze if possible, with the + signs in the correct path\r\n System.out.println(\"\\nThe Solved Maze: \");\r\n for(int i = 1; i<=counter; i++){\r\n realArray[yvalues[i]][xvalues[i]] = \"+\"; //changes the coordinate points to '+'\r\n }\r\n \r\n for(int i = 0; i<realArray.length; i++){\r\n for(int j = 0; j<realArray[i].length; j++){ //prints the array\r\n System.out.print(realArray[i][j]+\" \");\r\n }\r\n System.out.println();\r\n } \r\n }",
"public void MakeMaze() {\n\n\t\t// ints for random x , y and direction\n\t\tint rx = 0;\n\t\tint ry = 0;\n\t\tint rd = 0;\n\t\tgenMaze = true;\n\n\t\t// c used to count tries, if there are too many the main loop jumps to\n\t\t// the end of the function\n\t\tint c = 0;\n\n\t\t// fill the map with walls\n\t\tfor (int ix = 0; ix < max_x; ix++) {\n\t\t\tfor (int iy = 0; iy < max_y; iy++) {\n\t\t\t\tmap[ix][iy] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// fill the cell array with unvisited cells\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\tcell[ix][iy] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// choose a \"random\" x,y pair. centre of screen used here instead\n\t\trx = maxCells_x / 2;\n\t\try = maxCells_y / 2;\n\n\t\t// mark cell visited\n\t\tcell[rx][ry] = 1;\n\n\t\t// count cells\n\t\tcountCells();\n\n\t\t// start main generator loop\n\t\twhile (visitedCells < totalCells) {\n\n\t\t\tc++;\n\n\t\t\tif (c > magicNumber) {\n\t\t\t\tgenMaze = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\trd = rand.nextInt(4);\n\n\t\t\t// dig tunnels\n\n\t\t\t// up\n\n\t\t\tif (genMaze) {\n\t\t\t\tif (rd == 0) { // up\n\t\t\t\t\tif (inRange(rx * CELL_RAD, ry * CELL_RAD - 1) == 1\n\t\t\t\t\t\t\t&& (cell[rx][ry - 1]) == 0 || rand.nextInt(7) == 7) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, ry * CELL_RAD, rx * CELL_RAD,\n\t\t\t\t\t\t\t\t(ry - 1) * CELL_RAD);\n\t\t\t\t\t\try--;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (rd == 1) { // down\n\t\t\t\t\tif (inRange(rx + CELL_RAD, ry * CELL_RAD + 1) == 1\n\t\t\t\t\t\t\t&& (cell[rx][ry + 1] == 0 || rand.nextInt(7) == 7)) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, (ry) * CELL_RAD, rx * CELL_RAD,\n\t\t\t\t\t\t\t\t(ry + 1) * CELL_RAD);\n\t\t\t\t\t\try++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (rd == 2) { // left\n\t\t\t\t\tif (inRange((rx * CELL_RAD) - 1, ry * CELL_RAD) == 1\n\t\t\t\t\t\t\t&& (cell[rx - 1][ry] == 0 || rand.nextInt(7) == 7)) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, ry * CELL_RAD,\n\t\t\t\t\t\t\t\t(rx - 1) * CELL_RAD, ry * CELL_RAD);\n\t\t\t\t\t\trx--;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else if (rd == 3) { // right\n\t\t\t\t\tif (inRange(rx * CELL_RAD + 1, ry * CELL_RAD) == 1\n\t\t\t\t\t\t\t&& (cell[rx + 1][ry]) == 0 || rand.nextInt(7) == 7) {\n\t\t\t\t\t\tclink((rx) * CELL_RAD, ry * CELL_RAD, (rx + 1)\n\t\t\t\t\t\t\t\t* CELL_RAD, ry * CELL_RAD);\n\t\t\t\t\t\trx++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// mark the cell as visited\n\n\t\t\t\tcell[rx][ry] = 1;\n\n\t\t\t\t// place a \"floor\" tile on the map where the maze cell should be\n\t\t\t\tmap[rx * CELL_RAD][ry * CELL_RAD] = 0;\n\n\t\t\t\t// count the cells to establish how many have been visited\n\t\t\t\tcountCells();\n\t\t\t}\n\t\t}\n\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tmap[ix * CELL_RAD][iy * CELL_RAD] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void print(){\n for (int i = 0; i < rows; i++)\n {\n for (int j = 0; j < cols; j++)\n {\n if (start.getCol()==j&&start.getRow()==i)\n System.out.print('S');\n else if (end.getCol()==j&&end.getRow()==i)\n System.out.print('E');\n else if (maze[i][j]==1)\n System.out.print('\\u2588');\n else if (maze[i][j]==0)\n System.out.print('\\u2591');\n if (j!=cols-1){\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n //System.out.println(\"-------\");\n }",
"static void printSolution(int sol[][]) {\n for (int x = 0; x < N; x++) {\n for (int y = 0; y < N; y++)\n System.out.print(sol[x][y] + \" \");\n System.out.println();\n }\n }",
"public void showpuzzle(){\n\t\tpuzzle();\n\t\tframe.setVisible(true);\n\t\twordHint = 0;\n\t\tif(wordHint == length){\n\t\t\tCollections.shuffle(puzzle);\n\t\t\twordHint++;\n\t\t}\n\t}",
"public void printMaze(Position p){\r\n for (int i = 0; i < mazeData[i].length; i++) {\r\n for (int j = 0; j < mazeData.length; j++) {\r\n if(p.getX()==j&&p.getY()==i)\r\n System.out.print(\"X\");\r\n else\r\n System.out.print(mazeData[j][i]);\r\n }\r\n System.out.print(\"\\n\");\r\n }\r\n }",
"public static void showSolution(Node node) {\n\t\tString solution = \"\";\n\t\tint movesToSolve = 0;\n\n\t\twhile (node.previousNode != null) {\n\t\t\tsolution = node.toString() + \"\\n\" + solution;\n\t\t\tnode = node.previousNode;\n\t\t\tmovesToSolve++;\n\t\t}\n\t\tsolution = node.toString() + \"\\n\" + solution;\n\t\tSystem.out.print(solution);\n\t\tSystem.out.println(\"Took \" + movesToSolve + \" moves to solve puzzle.\");\n\t}",
"public Maze3d(int[][][] m)\r\n\t{\r\n\t\tthis.maze = m;\r\n\t}",
"@Override\r\n public String bringSolution(String arr) {\r\n\tMaze3d maze = hMaze.get(arr);\r\n//\tSolution<Position> s = hSol.get(maze);\r\n\tif (maze != null) {\r\n\t Stack<Position> sol = hSol.get(maze).getSolution();\r\n\t sb = new StringBuilder();\r\n\t while (!sol.isEmpty()) {\r\n\t\tsb.append(sol.pop());\r\n\t }\r\n\t return sb.toString();\r\n\t}\r\n\treturn \"Solution do not exist for \" + arr + \" maze.\";\r\n }",
"protected void skybox() {\n Triple pos1, pos2, pos3, pos4, pos5, pos6, pos7, pos8, col1, col2, col3, col4;\n\n pos1 = new Triple(0, 0, 0);\n pos2 = new Triple(100, 0, 0);\n pos3 = new Triple(100, 0, 100);\n pos4 = new Triple(0, 0, 100);\n pos5 = new Triple(0, 100, 0);\n pos6 = new Triple(100, 100, 0);\n pos7 = new Triple(100, 100, 100);\n pos8 = new Triple(0, 100, 100);\n\n // Front Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 0, 0),\n new Vertex(pos2, .25, 0),\n new Vertex(pos3, .25, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos3, .25, 1),\n new Vertex(pos4, 0, 1),\n new Vertex(pos1, 0, 0),\n 21 ) );\n\n // Left Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos1, 1, 0),\n new Vertex(pos5, .75, 0),\n new Vertex(pos8, .75, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos8, .75, 1),\n new Vertex(pos4, 1, 1),\n new Vertex(pos1, 1, 0),\n 21 ) );\n\n // Right Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos2, .25, 0),\n new Vertex(pos6, .5, 0),\n new Vertex(pos7, .5, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, .5, 1),\n new Vertex(pos3, .25, 1),\n new Vertex(pos2, .25, 0),\n 21 ) );\n\n // Back Triangles\n frozenSoups.addTri( new Triangle(new Vertex(pos5, .75, 0),\n new Vertex(pos6, .5, 0),\n new Vertex(pos7, .5, 1),\n 21 ) );\n\n frozenSoups.addTri( new Triangle(new Vertex(pos7, .5, 1),\n new Vertex(pos8, .75, 1),\n new Vertex(pos5, .75, 0),\n 21 ) );\n\n // Top Triangles\n// frozenSoups.addTri( new Triangle(new Vertex(pos4, 0, 0),\n// new Vertex(pos3, 0, 1),\n// new Vertex(pos7, 1, 1),\n// 20 ) );\n\n// frozenSoups.addTri( new Triangle(new Vertex(pos7, 0, 0),\n// new Vertex(pos8, 1, 0),\n// new Vertex(pos4, 1, 1),\n// 20 ) );\n }",
"public Maze(byte[] arr)\n {\n try {\n\n int rowSizeInt;\n int colSizeInt;\n int entryRowInt;\n int entryColInt;\n int exitRowInt;\n int exitColInt;\n\n byte[] RowSizeBytes = Arrays.copyOfRange(arr, 0, 4);\n byte[] ColSizeBytes = Arrays.copyOfRange(arr, 4, 8);\n\n byte[] StartRowBytes = Arrays.copyOfRange(arr, 8, 12);\n byte[] StartColBytes = Arrays.copyOfRange(arr, 12, 16);\n\n byte[] EndRowBytes = Arrays.copyOfRange(arr, 16, 20);\n byte[] EndColBytes = Arrays.copyOfRange(arr, 20, 24);\n\n rowSizeInt = ByteBuffer.wrap(RowSizeBytes).getInt();\n colSizeInt = ByteBuffer.wrap(ColSizeBytes).getInt();\n entryRowInt = ByteBuffer.wrap(StartRowBytes).getInt();\n entryColInt = ByteBuffer.wrap(StartColBytes).getInt();\n exitRowInt = ByteBuffer.wrap(EndRowBytes).getInt();\n exitColInt = ByteBuffer.wrap(EndColBytes).getInt();\n\n this.data = new int[rowSizeInt][colSizeInt];\n\n //Sets the visual int matrix\n int byteArrIndex = 24;\n for (int i = 0; i < rowSizeInt; i++)\n {\n for (int j = 0; j < colSizeInt; j++)\n {\n this.data[i][j] = arr[byteArrIndex++];\n }\n }\n\n this.PositionMatrix = new Position[rowSizeInt / 2 + 1][colSizeInt / 2 + 1];\n int counter = 0;\n for (int i = 0; i < rowSizeInt / 2 + 1; i++)\n {\n for (int j = 0; j < colSizeInt / 2 + 1; j++)\n {\n this.PositionMatrix[i][j] = new Position(i, j);\n this.PositionMatrix[i][j].setId(counter);\n counter++;\n }\n }\n\n this.data[entryRowInt * 2][entryColInt * 2] = 0;\n this.data[exitRowInt * 2][exitColInt * 2] = 0;\n\n intToPositionArr(this.PositionMatrix, data);\n\n this.data[entryRowInt * 2][entryColInt * 2] = 83;\n this.data[exitRowInt * 2][exitColInt * 2] = 69;\n\n this.entry = PositionMatrix[entryRowInt][entryColInt];\n this.exit = PositionMatrix[exitRowInt][exitColInt];\n }\n\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"public void printShortestPath() {\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.zeroDistanceColumn2());\n else if (parents.contains(currentCell))\n System.out.print(currentCell.zeroDistanceColumn2());\n else\n System.out.print(currentCell.distanceColumn2());\n }\n System.out.print(\"|\");\n System.out.println();\n }\n }\n }",
"private void mainScene(){\n // create maze load and route load/save buttons\n Button loadMazeButton = new Button(\"Load Maze\");\n loadMazeButton.setStyle(buttonStyle);\n loadMazeButton.setMinHeight(50);\n loadMazeButton.setMinWidth(170);\n Button loadRouteButton = new Button(\"Load Route\");\n loadRouteButton.setStyle(buttonStyle);\n loadRouteButton.setMinHeight(50);\n loadRouteButton.setMinWidth(170);\n Button saveRouteButton = new Button(\"Save Route\");\n saveRouteButton.setStyle(buttonStyle);\n saveRouteButton.setMinHeight(50);\n saveRouteButton.setMinWidth(170);\n\n // organise them in a HBox\n HBox routeBox = new HBox();\n routeBox.setAlignment(Pos.CENTER);\n routeBox.setSpacing(10);\n routeBox.setPadding(new Insets(10.0));\n routeBox.getChildren().addAll(\n loadMazeButton, loadRouteButton, saveRouteButton\n );\n\n // create maze display and display it in a VBox\n vMaze = null;\n tileBox = new VBox();\n tileBox.setAlignment(Pos.CENTER);\n tileBox.setBackground(new Background(\n new BackgroundFill(\n Color.rgb(176,188,60),\n CornerRadii.EMPTY,\n Insets.EMPTY\n )\n ));\n\n // which further goes into a HBox\n // this creates two layers of background: the interior\n // of the maze and the exterior to the left and right\n HBox tileBackground = new HBox();\n tileBackground.setAlignment(Pos.CENTER);\n tileBackground.setMinHeight(VisualMaze.DISPLAY_HEIGHT);\n tileBackground.setMinWidth(VisualMaze.DISPLAY_WIDTH);\n tileBackground.getChildren().add(tileBox);\n\n // create step button and label for messages\n Button stepButton = new Button(\"Next Step\");\n stepButton.setMinHeight(50);\n stepButton.setMinWidth(80);\n stepButton.setStyle(buttonStyle);\n mainMessage = new Label();\n mainMessage.setFont(new Font(\"Arial\", 30));\n mainMessage.setTextFill(Color.web(\"#c4bd52\"));\n mainMessage.setContentDisplay(ContentDisplay.CENTER);\n\n // and organise them on a borderpane\n BorderPane stepBox = new BorderPane();\n stepBox.setPadding(new Insets(10.0));\n stepBox.setRight(stepButton);\n stepBox.setLeft(mainMessage);\n\n // load all containers on a root container\n VBox root = new VBox();\n root.setAlignment(Pos.CENTER);\n root.setBackground(new Background(\n new BackgroundFill(\n Color.rgb(80,76,76),\n CornerRadii.EMPTY,\n Insets.EMPTY\n )\n ));\n root.getChildren().addAll(routeBox, tileBackground, stepBox);\n \n // set the main scene\n main = new Scene(root);\n\n // set the button events\n stepButton.setOnAction(e->{nextStep();});\n loadMazeButton.setOnAction(e->{requestInput(RequestType.MAZE);});\n loadRouteButton.setOnAction(e->{requestInput(RequestType.LROUTE);});\n saveRouteButton.setOnAction(e->{requestInput(RequestType.SROUTE);});\n }",
"public Maze3d(int y,int z,int x)\r\n\t{\r\n\t\tthis.maze = new int[y][z][x];\r\n\t\tfor(int i = 0;i<y;i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0;j<z;j++)\r\n\t\t\t{\r\n\t\t\t\tfor(int k = 0;k<x;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.maze[i][j][k]=1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public Maze getCurMaze();",
"public String toString() {\n \n //call vertex names & coordinates helper function\n String firstHalf = vertexNamesAndCoordsToString();\n \n //call edges helper function\n String secondHalf = edgesLeavingVertexToString();\n \n //combine the first and second halves\n String stringMazeTotal = firstHalf + \"\\n\" + secondHalf;\n \n //return the result: the maze in string form\n return stringMazeTotal;\n \n }",
"public void printPuzzle() {\n\t\tSystem.out.print(\" +-----------+-----------+-----------+\\n\");\n\t\tString value = \"\";\n\t\tfor (int row = 0; row < puzzle.length; row++) {\n\t\t\tfor (int col = 0; col < puzzle[0].length; col++) {\n\t\t\t\t// if number is 0, print a blank\n\t\t\t\tif (puzzle[row][col] == 0) value = \" \";\n\t\t\t\telse value = \"\" + puzzle[row][col];\n\t\t\t\tif (col % 3 == 0)\n\t\t\t\t\tSystem.out.print(\" | \" + value);\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \" + value);\n\t\t\t}\n\t\t\tif ((row + 1) % 3 == 0)\n\t\t\t\tSystem.out.print(\" |\\n +-----------+-----------+-----------+\\n\");\n\t\t\telse\n\t\t\t\tSystem.out.print(\" |\\n\");\n\t\t}\n\t}",
"public void display() {\n JFrame win = new JFrame(\"My Maze\");\n win.setLocation(25, 25);\n win.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n win.add(this);\n win.pack();\n win.setVisible(true);\n }",
"@Override\r\n\tpublic Maze3d generate(int x, int y, int z) {\r\n\r\n\t\tif(x <= 0 || y <= 0 || z <= 0)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t\r\n\t\t// Creates a maze full with walls\r\n\t\tMaze3d maze3d = new Maze3d(x, y, z);\r\n\t\tmaze3d.fillWalls();\r\n\t\t\r\n\t\tArrayList<Position> cells = new ArrayList<Position>();\r\n\t\t\r\n\t\t// Sets the starting position and add it to cells\r\n\t\tPosition p = getEntrance(maze3d);\r\n\t\tmaze3d.setStartPosition(p);\r\n\t\tcells.add(p);\r\n\t\t// Determines cell choose method\r\n\t\tint chooseMethod = rand.nextInt(2);\r\n\t\tChooser c;\r\n\t\tif(chooseMethod == 0)\r\n\t\t\tc = new MazeLastCellChooser();\r\n\t\telse\r\n\t\t\tc = new MazeRandomCellChooser();\r\n\t\t\r\n\t\t// Maze generation algorithm\r\n\t\twhile(!cells.isEmpty()){\r\n\t\t\tp = c.choose(cells);\r\n\t\t\tArrayList<Position> unvisited = getUnivisitedNeighbors(maze3d, p);\r\n\t\t\tif(unvisited.isEmpty()){\r\n\t\t\t\tmaze3d.setCell(p);\r\n\t\t\t\tcells.remove(p);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Chooses a random neighbor and carves a passage into it\r\n\t\t\t\tPosition neighbor = unvisited.get(rand.nextInt(unvisited.size()));\r\n\t\t\t\t\r\n\t\t\t\tcarve(maze3d, p, neighbor);\r\n\t\t\t\tcells.add(neighbor);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Sets entrance and exit\r\n\t\tmaze3d.setGoalPosition(getExit(maze3d));\r\n\t\treturn maze3d;\r\n\t}",
"public void drawMainWindow(){\n\n p.pushMatrix();\n p.translate(0,0);// translate whole window if necessary\n\n // window stuff\n // show name and draw\n p.stroke(0);\n p.strokeWeight(2);\n p.textSize(30);\n p.fill(0);\n p.text(\"Work space\",15,35);\n p.rectMode(CORNER);\n p.fill(219, 216, 206);\n p.rect(-285,40,1000,700);\n p.rectMode(CENTER);\n\n // show \"pause\" text\n if(pause) {\n p.fill(0);\n p.textSize(20);\n p.text(\"PAUSE\", 20, 60);\n p.textSize(12);\n }\n\n // draw coordinates lines\n drawCoordinateSystem();\n showRouteAsked();\n calculatePointer();\n\n // main mainManipulator\n manipulator.showManipulator(false);\n manipulator.route(true);\n\n if(routeAsked.size()>0) {\n if(!pause) manipulator.moveManally(routeAsked.get(0).copy());\n\n if (manipulator.segment_2_end.dist(routeAsked.get(0)) < 1) {\n routeAsked.remove(0);\n }\n\n // if you want to make it work with nn:\n\n// p.circle(routeAsked.get(0).x,routeAsked.get(0).y,15);\n// manipulator.setTarget(routeAsked.get(0));\n// manipulator.route(true);\n// if (!pause) manipulator.update();\n// manipulator.showManipulator(true);\n//\n// if (manipulator.targetDistFromAgent < 10) {\n// routeAsked.remove(0);\n// }\n }\n\n\n // pointer\n // show pointer and line to the pointer\n p.stroke(2);\n p.stroke(133, 168, 13,100);\n p.line(BASE_POS.x,BASE_POS.y,p.cos(pointerAngle)*pointerDist+BASE_POS.x,p.sin(pointerAngle)*pointerDist+BASE_POS.y);\n p.fill(207, 95, 43);\n p.noStroke();\n p.ellipse(pointerPos.x,pointerPos.y,15,15);\n\n p.popMatrix();\n }",
"public int[][] createMaze(int level){\n\t\t\n\t\tint[][] matriz = null;\n\t\t\n\t\tswitch (level) {\n\t\tcase 1:\n\t\t\tint[][] m1= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,0,0,0},{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,0,1,0,1,0,1,0,1,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,1,6,1,0,1,0,1,0},{0,1,0,1,0,2,0,2,0,1,0,1,0},{0,2,0,2,0,3,0,3,0,2,0,2,0},\n\t\t\t\t\t{3,0,3,3,0,2,17,2,0,3,3,0,3},{7,0,2,2,0,3,0,3,0,2,2,0,7},{0,3,0,3,0,1,1,1,0,3,0,3,0},\n\t\t\t\t\t{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,0,1,0,2,0,2,0,1,0,1,0},{0,1,0,1,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\n\t\t\tmatriz = m1;\t\t\t\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\tint[][] m2= {\n\t\t\t\t\t{0,0,0,6,0,0,0,6,0,0,0,0,0},{0,1,0,6,0,0,0,1,0,1,0,1,0},{0,1,0,0,0,0,1,1,0,1,6,1,0},\n\t\t\t\t\t{0,0,0,1,0,17,0,0,0,6,0,0,0},{11,0,0,1,0,0,6,0,0,1,11,1,6},{11,11,0,0,0,1,0,0,6,0,11,0,0},\n\t\t\t\t\t{0,1,1,1,11,11,11,6,0,0,11,1,0},{0,0,0,6,11,1,0,1,0,1,0,1,0},{6,1,0,6,0,1,0,1,0,0,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,1,1,1,0,1,6,1,0},{0,1,0,1,0,1,1,1,0,0,0,0,0},{0,1,0,0,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,1,0,1,0,0,13,0,0,1,1,1,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m2;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tint[][] m3= {\n\t\t\t\t\t{0,17,0,0,1,0,0,0,1,0,0,0,0},{0,11,11,11,1,0,0,0,0,0,8,8,8},{1,11,11,11,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{11,11,11,11,0,0,0,1,0,1,1,1,4},{11,11,11,11,1,1,1,2,0,1,0,5,0},{11,11,11,11,0,0,1,0,0,0,0,5,0},\n\t\t\t\t\t{0,11,0,0,0,0,6,6,6,0,0,11,0},{0,3,0,3,0,0,0,0,0,11,11,11,11},{1,4,5,1,4,5,2,2,2,11,11,11,11},\n\t\t\t\t\t{0,0,0,0,0,1,0,3,3,11,11,11,11},{1,0,0,9,0,0,0,2,2,11,11,11,0},{1,1,0,9,0,0,0,0,0,11,11,11,0},\n\t\t\t\t\t{6,1,1,0,0,0,13,0,0,1,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m3;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tint[][] m4= {\n\t\t\t\t\t{0,11,11,0,0,0,17,0,0,0,0,11,0},{11,11,0,0,3,1,1,3,3,0,0,0,11},{11,0,0,5,1,1,1,1,1,1,3,0,7},\n\t\t\t\t\t{7,0,0,1,1,1,1,1,1,1,1,4,0},{0,0,5,2,0,0,0,2,1,1,0,4,0},{12,0,5,0,9,0,9,0,1,4,0,0,0},\n\t\t\t\t\t{0,0,1,0,3,3,0,0,1,4,0,12,12},{0,0,1,1,1,1,1,1,1,1,0,0,0},{0,5,1,1,1,1,1,1,1,1,4,0,0},\n\t\t\t\t\t{0,2,2,1,1,1,1,1,1,2,2,0,0},{0,1,1,3,2,1,1,2,3,1,1,0,11},{11,0,2,2,0,0,0,0,2,2,0,11,11},\n\t\t\t\t\t{6,11,0,0,0,0,13,0,0,0,11,11,6},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m4;\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tint[][] m5= {\n\t\t\t\t\t{0,0,0,0,1,1,0,0,0,0,0,0,0},{8,0,3,0,1,0,0,0,7,7,6,0,0},{6,0,1,0,0,0,1,0,0,0,17,0,0},\n\t\t\t\t\t{1,0,1,1,1,0,1,1,0,12,12,0,12},{2,0,0,0,2,0,0,0,0,12,0,0,0},{0,0,3,0,12,12,0,12,12,12,0,1,1},\n\t\t\t\t\t{1,1,0,0,12,1,0,1,4,0,0,0,0},{0,0,0,0,12,0,0,0,0,0,10,9,0},{12,12,12,0,12,0,6,0,1,0,10,0,0},\n\t\t\t\t\t{0,0,0,3,3,0,0,0,0,0,10,1,1},{0,0,0,0,1,2,2,2,1,3,0,0,0},{1,1,2,0,0,0,0,0,0,2,1,0,0},\n\t\t\t\t\t{2,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m5;\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tint[][] m6= {\n\t\t\t\t\t{0,0,17,0,0,5,0,4,11,11,0,0,0},{0,4,10,0,4,0,0,0,5,11,4,5,11},{0,4,10,0,4,0,1,0,5,11,4,5,11},\n\t\t\t\t\t{0,1,0,0,1,0,6,0,1,11,0,1,11},{0,0,0,5,7,0,1,0,2,9,0,11,11},{1,1,4,0,0,11,1,11,0,0,5,1,1},\n\t\t\t\t\t{0,0,0,0,5,11,11,11,4,0,0,0,0},{6,1,1,0,2,11,11,11,2,5,1,1,6},{7,7,7,0,3,0,11,0,3,0,7,7,7},\n\t\t\t\t\t{0,1,0,0,1,0,0,0,1,0,0,0,0},{0,1,4,0,0,2,0,2,0,0,5,1,11},{0,0,2,0,0,0,0,0,0,0,11,11,11},\n\t\t\t\t\t{0,0,3,0,0,0,13,0,0,0,3,11,11},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m6;\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tint[][] m7= {\n\t\t\t\t\t{0,0,0,17,0,0,0,7,7,0,0,0,0},{0,0,6,7,7,7,0,0,0,0,6,0,0},{0,0,6,0,0,0,11,0,7,6,6,0,0},\n\t\t\t\t\t{0,6,0,0,0,11,6,0,0,0,6,0,0},{0,0,0,0,11,6,6,0,0,0,7,6,0},{0,6,0,11,6,6,6,0,6,0,0,0,0},\n\t\t\t\t\t{0,10,0,6,6,0,0,0,6,6,0,0,0},{9,0,0,0,6,0,6,6,6,0,0,10,0},{0,10,6,0,0,0,6,6,11,0,0,6,0},\n\t\t\t\t\t{0,6,0,0,0,0,6,11,0,0,6,6,0},{0,7,7,6,0,0,11,0,0,6,0,0,0},{0,0,0,0,0,0,0,0,0,7,0,8,6},\n\t\t\t\t\t{8,8,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m7;\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\tint[][] m8= {\n\t\t\t\t\t{0,0,1,0,0,1,0,3,0,1,0,0,0},{11,1,1,1,0,1,0,8,0,1,4,0,0},{11,11,11,0,0,2,0,1,0,2,0,5,4},\n\t\t\t\t\t{11,12,12,12,12,12,12,12,12,12,12,0,12},{0,1,0,0,0,0,3,3,0,0,17,0,0},{0,0,1,0,0,5,1,1,2,1,2,7,7},\n\t\t\t\t\t{1,1,0,1,0,5,1,1,11,1,8,8,1},{0,0,0,6,0,8,0,11,11,11,11,0,0},{12,12,0,12,12,12,12,12,0,12,12,12,12},\n\t\t\t\t\t{11,11,0,5,0,0,3,3,0,0,0,0,0},{11,11,1,0,4,0,0,5,0,8,3,1,0},{11,8,1,0,4,0,0,0,0,2,0,1,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,3,0,2,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m8;\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\tint[][] m9= {\n\t\t\t\t\t{0,0,0,1,0,0,0,0,0,8,11,0,0},{1,0,0,17,0,0,8,11,10,6,9,0,1},{0,0,0,8,11,10,6,9,0,7,11,0,0},\n\t\t\t\t\t{0,0,10,6,9,0,7,11,0,0,0,0,0},{0,0,0,7,11,0,0,0,0,0,0,0,0},{0,0,0,11,8,11,0,11,8,11,0,0,0},\n\t\t\t\t\t{6,1,0,10,6,9,0,10,6,9,0,1,6},{0,0,0,11,7,11,0,11,7,11,0,0,0},{0,0,0,0,8,0,0,0,8,0,0,0,0},\n\t\t\t\t\t{1,0,0,10,6,9,0,10,6,9,0,0,1},{1,0,0,11,7,11,0,11,7,11,0,0,1},{0,0,3,0,0,0,0,0,0,0,3,0,0},\n\t\t\t\t\t{0,0,1,1,0,0,13,0,0,1,1,0,0},\n\t\t\t\t\t};\t\t\t\n\t\t\tmatriz = m9;\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\tint[][] m10= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,5,2,1,0,0,0,0,0,0,1,2,4},{5,2,0,0,1,0,11,11,0,1,0,0,5},\n\t\t\t\t\t{1,0,0,0,1,11,11,11,11,1,0,0,5},{1,0,0,5,1,11,6,6,11,1,4,0,1},{5,3,3,1,12,12,12,12,12,12,1,1,1},\n\t\t\t\t\t{0,1,1,1,6,6,1,6,6,1,1,1,4},{0,0,1,1,6,0,1,0,6,1,1,4,0},{0,0,1,1,1,1,1,1,1,1,1,4,0},\n\t\t\t\t\t{1,11,2,2,2,6,6,2,2,2,2,11,1},{1,11,11,11,11,11,11,11,11,11,11,11,1},{0,0,11,11,11,0,0,0,11,11,11,11,0},\n\t\t\t\t\t{0,0,0,4,0,0,13,0,0,0,4,0,0},\n\t\t\t\t\t};\n\t\t\tmatriz = m10;\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\tint[][] m11= {\n\t\t\t\t\t{0,0,17,0,0,6,0,1,0,1,1,0,0},{0,5,1,1,1,1,0,1,0,0,0,0,0},{0,0,0,4,0,1,0,1,1,0,11,11,11},\n\t\t\t\t\t{0,5,0,0,0,0,0,6,0,11,11,11,11},{0,5,0,1,1,1,6,1,1,11,11,2,6},{0,2,2,2,6,0,0,1,0,11,11,0,5},\n\t\t\t\t\t{5,1,1,1,0,6,11,11,11,11,11,0,0},{0,0,0,6,0,0,11,11,11,11,11,1,0},{6,1,0,11,11,11,11,6,11,11,11,1,0},\n\t\t\t\t\t{5,1,11,11,11,11,11,0,0,0,0,1,4},{0,1,11,11,0,0,0,0,7,1,1,1,0},{0,0,11,11,0,0,0,0,0,1,0,5,0},\n\t\t\t\t\t{0,3,11,11,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m11;\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\tint[][] m12= {\n\t\t\t\t\t{0,0,0,17,0,0,0,1,1,1,0,0,0},{0,1,1,1,3,0,3,0,0,1,0,0,0},{0,0,0,0,1,0,2,0,0,0,0,1,1},\n\t\t\t\t\t{0,12,12,12,12,12,0,1,4,0,0,1,7},{0,0,8,8,8,12,0,1,0,6,9,1,0},{1,0,1,1,1,12,12,12,0,12,1,1,0},\n\t\t\t\t\t{0,0,0,0,6,12,0,0,0,12,7,0,0},{12,12,12,0,12,12,1,1,0,12,0,0,0},{0,0,0,0,0,1,7,7,0,12,12,12,0},\n\t\t\t\t\t{1,1,1,0,0,0,0,0,0,0,0,0,0},{0,0,1,0,7,7,0,0,0,1,1,0,5},{1,0,0,0,0,0,0,0,0,1,0,0,1},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m12;\n\t\t\tbreak;\n\t\tcase 13:\n\t\t\tint[][] m13= {\n\t\t\t\t\t{0,0,0,0,3,0,0,0,3,0,0,0,0},{0,1,1,1,1,0,0,0,1,1,1,1,0},{0,1,0,0,0,0,1,0,0,0,0,6,0},\n\t\t\t\t\t{0,6,0,1,2,0,0,0,2,1,0,1,1},{0,1,0,4,11,8,6,8,11,5,0,6,1},{0,2,0,0,11,11,11,11,11,0,0,7,1},\n\t\t\t\t\t{1,8,0,0,11,11,11,11,11,0,0,3,1},{1,6,0,4,11,7,6,7,11,5,0,1,0},{1,1,0,1,3,0,0,0,3,1,0,6,0},\n\t\t\t\t\t{1,6,0,0,0,0,1,0,0,0,0,1,0},{1,1,1,1,1,0,0,0,1,1,1,6,6},{1,1,0,0,2,0,0,0,2,0,0,1,0},\n\t\t\t\t\t{1,1,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m13;\n\t\t\tbreak;\n\t\tcase 14:\n\t\t\tint[][] m14= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{11,11,0,0,3,1,1,1,3,0,0,11,11},{11,0,0,5,1,1,1,1,1,4,0,0,11},\n\t\t\t\t\t{0,0,0,1,1,11,1,11,1,1,0,0,0},{0,0,0,1,11,11,1,11,11,1,0,0,0},{11,0,0,1,1,1,1,1,1,1,0,0,11},\n\t\t\t\t\t{11,11,0,0,1,11,1,11,1,0,0,11,11},{12,12,12,0,1,1,1,1,1,0,12,12,12},{0,0,0,0,5,5,5,5,5,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,4,4,4,4,4,0,0,0,0},{10,10,10,0,0,0,0,0,0,0,9,9,9},{4,4,4,0,0,0,0,0,0,0,5,5,5},\n\t\t\t\t\t{9,9,9,10,0,0,13,0,0,9,10,10,10},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m14;\n\t\t\tbreak;\n\t\tcase 15:\n\t\t\tint[][] m15= {\n\t\t\t\t\t{0,0,17,0,1,1,0,0,1,0,0,0,0},{0,11,11,1,1,0,0,0,1,0,0,0,0},{11,11,11,11,11,11,11,11,1,1,0,0,0},\n\t\t\t\t\t{11,7,1,11,1,1,1,11,11,11,11,1,6},{11,11,1,11,11,11,7,11,11,1,9,1,0},{0,11,11,1,8,11,11,11,11,1,0,1,0},\n\t\t\t\t\t{0,1,1,1,1,1,11,11,1,1,4,11,11},{10,7,1,1,0,0,0,1,2,0,0,0,11},{0,1,0,1,0,7,3,2,11,11,1,4,11},\n\t\t\t\t\t{0,1,0,0,5,1,2,11,11,1,0,0,11},{0,1,1,4,5,2,11,11,3,11,1,11,11},{0,0,1,0,11,0,0,0,1,11,2,11,0},\n\t\t\t\t\t{0,0,2,0,0,0,13,0,0,11,11,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m15;\n\t\t\tbreak;\n\t\tcase 16:\n\t\t\tint[][] m16= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,6,11,6,0,0,0,0,0,0,0,0},{0,0,0,11,0,11,8,0,0,0,0,0,0},\n\t\t\t\t\t{0,11,0,0,0,0,11,3,0,0,0,0,0},{0,11,11,0,0,11,0,11,8,0,0,0,0},{0,11,0,11,0,11,0,0,11,3,0,0,0},\n\t\t\t\t\t{0,11,0,0,11,0,0,0,11,11,8,0,0},{0,0,11,0,0,0,0,11,11,11,11,3,0},{0,0,0,11,0,0,11,0,11,11,11,11,0},\n\t\t\t\t\t{1,0,0,0,0,0,11,0,0,11,11,11,6},{1,1,0,0,0,0,0,11,0,11,11,11,11},{6,1,1,0,0,0,0,0,11,0,11,11,11},\n\t\t\t\t\t{6,6,1,1,0,0,13,0,11,0,0,11,11},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m16;\n\t\t\tbreak;\n\t\tcase 17:\n\t\t\tint[][] m17= {\n\t\t\t\t\t{0,0,0,0,3,0,0,0,0,0,3,0,0},{0,1,0,1,1,17,0,14,14,14,1,1,0},{0,1,0,0,1,0,6,14,14,14,14,14,0},\n\t\t\t\t\t{14,14,14,9,1,0,0,1,14,14,14,14,0},{14,14,14,14,14,14,1,1,5,4,0,0,0},{0,0,10,14,14,14,14,1,5,4,0,7,7},\n\t\t\t\t\t{1,1,1,1,14,14,14,14,14,14,14,1,1},{0,0,0,1,1,14,14,14,14,9,0,0,0},{0,1,1,1,0,14,14,14,1,1,0,1,0},\n\t\t\t\t\t{14,14,14,1,14,0,0,0,0,1,0,1,0},{14,14,14,14,14,7,0,7,0,0,3,1,0},{1,14,14,14,14,0,0,0,0,1,0,0,0},\n\t\t\t\t\t{1,1,9,0,0,0,13,0,0,1,0,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m17;\n\t\t\tbreak;\n\t\tcase 18:\n\t\t\tint[][] m18= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,6,6,6,11,0},{0,1,0,17,0,0,0,0,6,0,0,6,0},{1,11,1,0,0,0,1,1,1,1,0,6,0},\n\t\t\t\t\t{0,1,11,1,0,0,1,0,11,1,6,6,0},{0,0,1,0,11,6,1,11,0,1,0,0,0},{0,0,0,0,6,0,1,6,1,1,0,0,0},\n\t\t\t\t\t{0,0,1,1,6,1,0,6,0,0,0,0,0},{0,0,1,0,11,1,6,11,0,0,0,0,0},{6,6,6,11,0,1,0,0,1,1,0,0,0},\n\t\t\t\t\t{6,0,1,1,1,1,0,0,1,6,6,0,0},{6,0,0,6,0,0,0,0,0,6,1,1,0},{11,6,6,6,0,0,0,0,0,0,1,6,6},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,6,6},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m18;\n\t\t\tbreak;\n\t\tcase 19:\n\t\t\tint[][] m19= {\n\t\t\t\t\t{0,1,0,1,0,1,0,1,0,1,0,1,0},{0,1,17,1,0,1,0,1,0,1,0,1,0},{0,7,0,7,0,7,0,7,0,7,0,7,0},\n\t\t\t\t\t{3,0,3,0,1,0,0,0,1,0,3,0,3},{1,0,1,2,1,0,1,0,1,2,1,0,1},{7,0,7,0,6,0,7,0,6,0,7,0,7},\n\t\t\t\t\t{11,11,0,0,1,0,11,0,1,0,0,11,11},{11,11,11,11,1,2,11,2,1,11,11,11,11},{11,11,11,11,11,11,11,11,11,11,11,11,11},\n\t\t\t\t\t{3,0,3,0,1,11,11,11,1,0,3,0,3},{0,1,0,1,0,0,11,0,0,1,0,1,0},{0,1,0,1,0,0,0,0,0,1,0,1,0},\n\t\t\t\t\t{0,2,0,2,0,0,13,0,0,2,0,2,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m19;\n\t\t\tbreak;\n\t\tcase 20:\n\t\t\tint[][] m20= {\n\t\t\t\t\t{0,0,0,12,0,1,0,0,1,0,1,0,0},{0,0,0,17,0,0,0,0,1,0,6,0,0},{0,0,0,12,0,3,6,0,1,0,1,0,0},\n\t\t\t\t\t{7,0,1,12,0,6,0,3,2,0,1,0,0},{0,0,1,12,0,0,0,1,0,0,0,0,0},{1,0,1,12,12,0,12,12,12,12,0,0,1},\n\t\t\t\t\t{0,0,0,3,0,0,0,11,0,12,0,7,7},{1,1,5,1,0,6,11,11,11,12,0,3,3},{2,0,5,0,0,1,11,11,11,12,0,1,0},\n\t\t\t\t\t{0,8,0,0,0,1,0,11,0,12,0,11,0},{0,1,0,8,0,2,2,2,0,0,11,11,11},{0,1,0,1,0,0,0,0,0,12,11,11,11},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,12,0,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m20;\n\t\t\tbreak;\n\t\tcase 21:\n\t\t\tint[][] m21= {\n\t\t\t\t\t{0,0,0,3,3,3,0,0,3,0,0,0,0},{0,3,1,1,1,1,1,1,1,1,0,17,0},{0,11,11,11,11,11,11,11,11,1,1,0,0},\n\t\t\t\t\t{11,11,0,0,0,0,0,0,11,11,1,1,0},{11,0,6,0,0,6,0,0,0,11,11,11,0},{11,0,6,0,0,6,0,0,0,11,11,11,0},\n\t\t\t\t\t{11,0,0,11,0,0,0,0,11,11,1,1,4},{11,11,11,11,11,11,11,11,11,1,1,1,4},{1,11,11,1,1,11,11,11,1,1,1,1,0},\n\t\t\t\t\t{0,1,1,1,1,1,1,1,1,1,1,0,6},{6,0,1,6,1,1,1,1,1,1,4,0,6},{0,6,1,2,6,0,0,0,1,1,6,6,6},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m21;\n\t\t\tbreak;\n\t\tcase 22:\n\t\t\tint[][] m22= {\n\t\t\t\t\t{0,0,0,0,0,11,0,0,0,0,0,0,0},{0,0,0,0,11,6,11,0,0,0,17,0,0},{0,0,11,0,0,11,0,0,11,11,0,0,0},\n\t\t\t\t\t{0,11,1,11,0,0,0,11,1,1,11,0,0},{0,0,11,1,11,0,0,0,11,11,0,0,11},{11,0,0,11,0,0,11,0,0,0,0,11,6},\n\t\t\t\t\t{1,11,0,0,0,11,6,11,0,0,11,0,11},{6,1,11,0,0,0,11,0,0,11,6,11,0},{1,11,0,0,11,0,0,0,11,0,11,0,0},\n\t\t\t\t\t{11,0,0,11,1,11,0,11,1,11,0,0,0},{0,0,0,11,1,11,0,0,11,0,0,11,0},{0,11,0,0,11,0,0,0,0,0,11,6,11},\n\t\t\t\t\t{11,6,11,0,0,0,13,0,0,11,1,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m22;\n\t\t\tbreak;\n\t\tcase 23:\n\t\t\tint[][] m23= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,6,6,0,0,17,0,0,0},{0,0,0,0,0,0,6,0,0,0,0,0,0},\n\t\t\t\t\t{0,6,6,11,11,1,6,1,11,11,6,6,0},{0,0,0,6,11,11,6,11,11,6,0,0,0},{11,0,0,0,6,11,11,11,6,0,0,0,11},\n\t\t\t\t\t{6,11,0,0,0,11,11,11,0,0,0,11,6},{11,0,0,0,8,7,11,7,8,0,0,0,11},{0,0,0,0,6,0,8,0,6,0,0,0,0},\n\t\t\t\t\t{0,0,0,6,0,0,6,0,0,6,0,0,0},{0,0,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\t\t\t\t{0,0,6,0,0,0,13,0,0,0,6,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m23;\n\t\t\tbreak;\n\t\tcase 24:\n\t\t\tint[][] m24= {\n\t\t\t\t\t{0,0,6,0,1,7,0,0,0,0,5,0,0},{0,17,1,0,1,11,0,2,1,1,1,0,0},{0,11,11,0,1,11,5,4,0,0,0,6,6},\n\t\t\t\t\t{11,11,11,11,11,11,1,1,1,0,5,1,0},{0,0,11,11,3,3,7,1,0,5,1,2,5},{1,7,0,3,2,2,0,0,0,1,2,0,5},\n\t\t\t\t\t{5,0,3,1,14,14,14,14,14,14,14,14,14},{5,0,2,0,14,14,14,14,14,14,14,14,14},{0,0,6,0,14,14,14,14,14,14,14,14,14},\n\t\t\t\t\t{1,0,1,0,14,14,14,14,14,14,14,14,14},{5,0,1,0,14,14,14,14,14,14,14,14,14},{5,0,1,0,0,0,0,0,14,14,14,14,14},\n\t\t\t\t\t{0,0,2,0,0,0,13,0,0,14,14,14,14},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m24;\n\t\t\tbreak;\n\t\tcase 25:\n\t\t\tint[][] m25= {\n\t\t\t\t\t{0,0,0,6,0,1,0,1,0,1,0,6,0},{0,1,0,1,0,0,0,0,0,6,0,0,0},{0,1,0,1,0,0,6,0,0,6,0,6,6},\n\t\t\t\t\t{0,1,17,0,0,1,0,6,1,0,0,0,6},{0,0,0,0,1,1,0,1,1,0,6,0,0},{0,0,6,0,1,0,0,1,1,0,1,1,0},\n\t\t\t\t\t{6,0,6,0,0,1,0,6,0,0,6,1,0},{0,0,1,1,0,1,0,0,0,1,6,0,0},{0,6,1,1,0,1,1,0,1,1,0,0,1},\n\t\t\t\t\t{0,1,0,0,0,1,6,0,0,0,0,1,1},{0,0,0,1,0,1,1,6,0,6,0,0,1},{1,0,1,1,0,0,0,0,0,1,6,0,0},\n\t\t\t\t\t{1,0,1,0,0,0,13,0,0,1,1,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m25;\n\t\t\tbreak;\n\t\tcase 26:\n\t\t\tint[][] m26= {\n\t\t\t\t\t{0,0,12,12,0,0,0,0,0,0,0,0,0},{8,0,0,12,11,0,4,0,0,17,0,0,0},{11,8,0,0,0,0,9,0,4,0,12,12,0},\n\t\t\t\t\t{11,11,0,7,3,5,0,0,9,11,12,0,0},{11,11,11,0,0,6,3,5,0,0,0,0,8},{11,11,7,8,0,5,0,6,3,0,0,8,11},\n\t\t\t\t\t{11,7,0,0,2,6,0,5,0,7,0,11,11},{0,0,0,0,0,4,2,6,0,0,11,11,11},{0,0,12,11,10,0,0,4,2,8,7,11,11},\n\t\t\t\t\t{0,12,12,0,5,0,10,0,0,0,0,0,11},{0,0,0,0,0,0,5,0,11,12,0,0,7},{6,0,0,0,0,0,0,0,0,12,12,0,0},\n\t\t\t\t\t{6,6,0,0,0,0,13,0,0,0,0,0,6},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m26;\n\t\t\tbreak;\n\t\tcase 27:\n\t\t\tint[][] m27= {\n\t\t\t\t\t{0,0,0,0,6,0,0,0,0,0,0,0,0},{6,6,0,0,6,0,17,6,6,0,0,0,0},{0,6,0,0,6,0,0,0,6,0,6,6,11},\n\t\t\t\t\t{0,6,0,0,6,6,6,0,11,0,6,0,0},{0,1,0,0,0,0,6,0,6,6,6,0,0},{11,6,6,0,6,1,6,1,1,0,0,0,0},\n\t\t\t\t\t{0,0,6,11,6,11,0,0,1,0,0,6,6},{0,0,6,0,0,11,0,0,6,0,0,6,0},{0,0,1,0,0,6,0,0,6,6,1,6,0},\n\t\t\t\t\t{11,6,6,6,11,11,1,6,6,0,1,6,0},{0,0,0,1,0,0,0,0,11,11,0,1,0},{0,0,0,6,0,0,0,0,0,11,0,1,0},\n\t\t\t\t\t{0,0,0,6,0,0,13,0,0,6,0,1,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m27;\n\t\t\tbreak;\n\t\tcase 28:\n\t\t\tint[][] m28= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,10,9,0},{0,0,0,0,0,0,8,0,0,17,6,0,0},{0,0,0,0,0,3,11,3,0,1,4,0,0},\n\t\t\t\t\t{0,0,0,0,8,11,11,11,8,1,4,0,0},{0,0,0,3,11,11,14,11,11,1,4,0,0},{0,0,8,11,11,14,14,14,11,11,4,0,0},\n\t\t\t\t\t{0,3,11,11,14,14,14,14,14,11,11,3,0},{8,11,11,14,14,14,14,14,14,14,11,11,8},{11,11,14,14,14,14,14,14,14,14,14,11,11},\n\t\t\t\t\t{0,11,14,14,14,14,14,14,14,14,14,11,0},{0,11,14,14,14,14,14,14,14,14,14,11,0},{0,11,14,14,14,0,0,0,14,14,14,11,0},\n\t\t\t\t\t{0,11,14,14,0,0,13,0,0,14,14,11,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m28;\n\t\t\tbreak;\n\t\tcase 29:\n\t\t\tint[][] m29= {\n\t\t\t\t\t{0,0,0,0,0,0,0,0,0,0,1,0,0},{0,1,12,12,0,6,0,1,0,0,17,0,0},{0,0,12,12,1,11,11,11,12,12,0,6,0},\n\t\t\t\t\t{0,0,0,0,0,11,11,11,12,12,1,0,0},{0,6,0,0,12,12,0,11,0,0,0,0,0},{11,11,1,0,12,12,6,0,0,0,0,1,0},\n\t\t\t\t\t{11,11,11,0,0,0,0,0,0,6,0,0,6},{0,1,12,12,0,1,0,0,0,0,0,0,0},{6,0,12,12,11,11,12,12,11,11,0,1,0},\n\t\t\t\t\t{0,0,0,0,11,0,12,12,11,11,12,12,0},{0,0,0,6,11,0,0,0,11,11,12,12,0},{0,0,1,0,1,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{1,0,0,0,0,0,13,0,0,1,6,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m29;\n\t\t\tbreak;\n\t\tcase 30:\n\t\t\tint[][] m30= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,0,3,3,0,0,0,8,0,0},{0,8,8,0,3,11,11,8,0,3,11,3,0},\n\t\t\t\t\t{3,11,11,3,11,11,11,11,3,11,11,11,3},{11,11,11,11,11,11,11,11,11,11,11,11,11},{6,11,12,11,11,11,11,11,12,11,11,11,11},\n\t\t\t\t\t{11,11,12,12,12,11,11,11,12,12,12,11,6},{11,11,11,11,12,11,6,11,11,11,12,11,11},{11,11,11,11,11,11,11,11,11,11,11,11,11},\n\t\t\t\t\t{11,11,11,11,11,2,2,11,11,11,11,11,7},{7,11,11,11,2,0,0,2,11,11,11,7,0},{0,7,2,2,0,0,0,0,2,2,2,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m30;\n\t\t\tbreak;\n\t\tcase 31:\n\t\t\tint[][] m31= {\n\t\t\t\t\t{0,0,0,12,0,0,0,0,12,0,0,0,0},{12,12,0,12,0,12,12,12,12,0,12,12,12},{11,11,1,0,0,1,0,0,12,0,12,11,12},\n\t\t\t\t\t{11,12,12,12,12,0,6,0,0,1,11,11,11},{11,11,0,12,0,0,12,0,12,12,12,12,11},{12,12,17,12,0,12,12,0,0,12,0,0,0},\n\t\t\t\t\t{0,0,1,11,1,0,1,11,0,12,0,0,12},{0,12,12,11,12,12,12,12,0,11,1,0,12},{1,0,0,1,0,0,0,0,11,11,12,0,12},\n\t\t\t\t\t{12,12,0,12,12,0,12,1,12,12,12,0,0},{0,0,1,0,11,11,0,0,11,12,0,0,12},{0,12,12,12,11,0,0,0,0,12,0,12,12},\n\t\t\t\t\t{0,12,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m31;\n\t\t\tbreak;\n\t\tcase 32:\n\t\t\tint[][] m32= {\n\t\t\t\t\t{14,14,14,14,14,14,0,14,14,14,14,14,14},{14,14,14,14,14,14,14,14,14,14,14,14,14},{14,14,14,1,14,14,14,14,14,1,14,14,14},\n\t\t\t\t\t{14,1,0,1,0,1,14,1,0,1,0,1,14},{14,2,2,1,0,17,0,0,0,1,2,2,14},{14,14,14,1,3,1,6,1,3,1,14,14,14},\n\t\t\t\t\t{6,14,14,14,0,7,0,7,0,14,14,14,6},{14,14,14,14,0,3,0,3,0,14,14,14,14},{14,14,14,14,0,1,0,1,0,14,14,14,14},\n\t\t\t\t\t{14,14,14,1,0,0,3,0,0,1,14,14,14},{14,1,14,1,0,7,7,7,0,1,14,1,14},{0,1,3,1,0,0,0,0,0,1,3,1,0},\n\t\t\t\t\t{0,2,0,0,0,0,13,0,0,0,0,2,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m32;\n\t\t\tbreak;\n\t\tcase 33:\n\t\t\tint[][] m33= {\n\t\t\t\t\t{0,0,0,0,6,0,0,0,0,6,0,0,0},{0,6,0,0,0,6,0,0,6,11,11,0,0},{0,0,6,0,0,0,0,6,11,8,9,0,0},\n\t\t\t\t\t{0,0,0,6,0,11,11,11,11,11,0,10,0},{0,9,0,0,6,11,11,6,0,0,0,6,0},{0,7,9,11,0,6,0,0,6,0,0,10,0},\n\t\t\t\t\t{0,0,11,11,11,11,11,0,0,6,0,0,0},{0,8,9,11,0,6,11,0,0,0,6,0,0},{0,11,11,11,6,0,6,0,8,0,0,6,0},\n\t\t\t\t\t{11,11,11,6,0,0,0,0,10,0,0,0,0},{0,0,6,0,0,0,0,0,0,0,0,10,6},{0,0,0,0,0,0,0,0,0,8,9,0,0},\n\t\t\t\t\t{9,0,8,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m33;\n\t\t\tbreak;\n\t\tcase 34:\n\t\t\tint[][] m34= {\n\t\t\t\t\t{0,0,0,0,4,5,0,0,0,0,0,0,0},{4,4,4,5,0,4,0,0,4,4,0,0,0},{4,4,4,1,1,0,0,17,4,1,4,0,0},\n\t\t\t\t\t{5,5,0,1,4,0,0,5,4,1,1,0,0},{0,4,0,1,5,4,0,4,1,1,1,0,0},{0,4,5,0,0,1,4,1,5,5,1,0,0},\n\t\t\t\t\t{0,4,0,0,5,1,1,4,0,4,1,0,0},{0,5,0,0,4,1,1,4,0,4,1,0,0},{0,5,2,2,0,1,1,1,0,4,4,2,1},\n\t\t\t\t\t{0,5,0,0,5,4,1,5,4,4,4,5,5},{0,0,4,0,1,5,4,1,1,0,0,5,0},{0,0,4,5,4,0,0,0,1,4,0,4,0},\n\t\t\t\t\t{0,0,4,5,0,0,13,0,0,1,1,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m34;\n\t\t\tbreak;\n\t\tcase 35:\n\t\t\tint[][] m35= {\n\t\t\t\t\t{0,0,17,0,0,0,0,0,0,0,0,0,0},{0,0,0,0,1,0,1,0,0,0,0,0,0},{11,0,0,11,1,11,1,11,0,0,11,0,0},\n\t\t\t\t\t{1,11,11,1,1,1,1,1,11,11,1,11,0},{1,1,1,1,6,1,6,1,1,1,1,11,0},{12,12,12,1,1,1,1,1,12,12,12,11,0},\n\t\t\t\t\t{12,1,1,1,1,1,1,1,1,1,12,12,11},{1,1,1,12,1,1,1,12,1,1,1,11,11},{1,1,12,12,12,1,12,12,12,1,1,12,12},\n\t\t\t\t\t{11,12,12,11,11,11,11,11,12,12,11,12,11},{0,11,11,0,0,0,0,0,11,11,0,11,0},{0,0,0,0,0,0,0,0,0,0,0,0,0},\n\t\t\t\t\t{0,0,0,0,0,0,13,0,0,0,0,0,0},\n\t\t\t\t\t};\t\n\t\t\tmatriz = m35;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn matriz;\n\t}",
"@Test\n public void testGivenMaze() {\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(0, 0));\n largeMaze.setEnd(Maze.position(4, 4));\n shortestPath = MazeSolver.pStar(largeMaze, 25);\n\n assertEquals(\"<0, 0>\", shortestPath.get(0).getCoordinateString());\n assertEquals(\"<1, 0>\", shortestPath.get(1).getCoordinateString());\n assertEquals(\"<1, 1>\", shortestPath.get(2).getCoordinateString());\n assertEquals(\"<1, 2>\", shortestPath.get(3).getCoordinateString());\n assertEquals(\"<1, 3>\", shortestPath.get(4).getCoordinateString());\n assertEquals(\"<1, 4>\", shortestPath.get(5).getCoordinateString());\n assertEquals(\"<2, 4>\", shortestPath.get(6).getCoordinateString());\n assertEquals(\"<3, 4>\", shortestPath.get(7).getCoordinateString());\n assertEquals(\"<4, 4>\", shortestPath.get(8).getCoordinateString());\n\n assertEquals(9, shortestPath.size());\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tQueue<maze> q = new LinkedList<>();\n\t\tint N = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\tint output = 0;\n\t\tscan.nextLine();\n\t\tint arr[][] = new int[N][M];\n\t\tint isVisit[][] = new int[N][M];\n\t\tisVisit[0][0] = 1;\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tString line = scan.nextLine();\n\t\t\tfor(int j=0;j<M;j++)\n\t\t\t{\n\t\t\t\tarr[i][j] = line.charAt(j) - '0';\n\t\t\t}\n\t\t}\n\t\tq.add(new maze(0, 0, 1));\n\t\twhile(!q.isEmpty())\n\t\t{\n\t\t\tmaze temp = q.poll();\n\t\t\tif(temp.x == M-1 && temp.y == N-1)\n\t\t\t{\n\t\t\t\toutput = temp.block;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0;i<4;i++)\n\t\t\t{\n\t\t\t\tint x = temp.x + dx[i];\n\t\t\t\tint y = temp.y + dy[i];\n\t\t\t\t\n\t\t\t\tif(0 <= x && x < M && 0 <= y && y < N && arr[y][x] == 1 && isVisit[y][x] == 0)\n\t\t\t\t{\n\t\t\t\t\tq.add(new maze(x, y, (temp.block + 1)));\n\t\t\t\t\tisVisit[y][x] = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(output);\n\t}",
"static List<int[][]> solveKT() {\n\t List<int[][]> result = new ArrayList<>();\n\t int sol[][] = new int[8][8];\n\t /* Initialization of solution matrix */\n for (int x = 0; x < N; x++)\n for (int y = 0; y < N; y++)\n sol[x][y] = -1;\n\t int xMove[] = {2, 1, -1, -2, -2, -1, 1, 2};\n int yMove[] = {1, 2, 2, 1, -1, -2, -2, -1};\n\n // Since the Knight is initially at the first block\n sol[0][0] = 0;\n\t \n solveKTUtil(0, 0, 1, sol, xMove, yMove, result);\n return result;\n \n\n \n\n \n \n\n \n }",
"public boolean solveMaze(int x, int y, String direction){\n\n if (maze[x][y] == \"E\"){\n solved = true;\n return solved;\n\n }\n\n if(!(maze[x][y].equals(\"S\") || maze[x][y].equals(\"E\"))){\n maze[x][y] = \"X\";\n }\n\n if(direction != \"up\" && isReachable(x+1, y)){\n solveMaze(x + 1, y, \"down\");\n if(solved) return true;\n }\n if(direction != \"left\" && isReachable(x, y+ 1)){\n solveMaze(x, y + 1, \"right\");\n if(solved) return true;\n }\n if(direction != \"down\" && isReachable(x-1, y)){\n solveMaze(x - 1 , y, \"up\");\n if(solved) return true;\n }\n if(direction != \"right\" && isReachable(x, y -1)){\n solveMaze(x, y - 1, \"left\");\n if(solved) return true;\n }\n\n //If cannot move, do backtracking\n if(!solved) {\n maze[x][y] = \" \";\n return false;\n }\n\n return false;\n }",
"public static void solveMaze(String inputFile, String outputFile) \r\n\t{\t\r\n\t\t\r\n\t\tif(new File(inputFile).isFile() == false)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tthrow new FileNotFoundException();\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Gets the dimensions to assign to the 2d String array size\r\n\t\tString[][] Dimensions = getDimensions(inputFile);\r\n\t\t\r\n\t\t//Gets each row and column character of the maze file and adds it the 2d String array\r\n\t\tString[][] Map = getMap(inputFile, Dimensions);\r\n\t\t\r\n\t\tint startRow = 0;\r\n\t\tint startColumn = 0;\t\t\r\n\t\t\r\n\t\t\r\n\t\t//This finds the Starting values, startRow and startColumn\r\n\t\tfor(int i = 0; i < Map.length; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < Map[0].length; j++)\r\n\t\t\t{\r\n\t\t\t\tString check = Map[i][j];\r\n\t\t\t\tif (check.compareTo(\"S\") == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tstartRow = i;\r\n\t\t\t\t\tstartColumn = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//This sends the startRow, startColumn, 2d String array named Map (which contains all the coordinates), \r\n\t\t//and the output and input file names to getPath. \r\n\t\tSystem.out.println(getPath(startRow, startColumn, Map, outputFile, inputFile));\t\t\r\n\t}",
"public void display() {\n\t\tfor (int i = 0; i < player.length; ++i) {\n\t\t\t// inserting empty line in every 3 rows.\n\t\t\tif (i % 3 == 0 && i != 0) {\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor (int j = 0; j < player[i].length; ++j) {\n\t\t\t\t// inserting empty space in every 3 columns.\n\t\t\t\tif (j % 3 == 0 && j != 0) {\n\t\t\t\t\tSystem.out.print(' ');\n\t\t\t\t}\n\t\t\t\tif (problem[i][j] == 0 && player[i][j] == 0) {\n\t\t\t\t\tSystem.out.print(\"( )\");\n\t\t\t\t} else if (problem[i][j] == 0) {\n\t\t\t\t\tSystem.out.print(\"(\" + player[i][j] + \")\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"[\" + player[i][j] + \"]\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}",
"protected abstract void draw(Maze maze);",
"public MocoSolution solveAndVisualize() {\n return new MocoSolution(opensimMocoJNI.MocoTrack_solveAndVisualize(swigCPtr, this), true);\n }",
"public static void STAGE4() {\r\n\t\t\tOverseer4.setLevel4True();\r\n\t\t\t_z = new Maze(3);\r\n\t\t\t_s = new StringMap4();\r\n\t\t\tfinal JFrame fram = new JFrame();\r\n\t\t\t_p = new Player(_z);\r\n\t\t\t_q = new Question2();\r\n\t\t\t_q.questionpickL4();\r\n\t\t\t\r\n\t \t/*\r\n\t\t\t *UPDATES THE MAP TO WORLD 4\r\n\t\t\t *Sets up the JFrame and JPanel and updates the Map layout\r\n\t\t\t *Perform the required actions when there are inputs from keyboard\r\n\t\t\t *Functions the same as Overseer's constructor but without the introductions and a different world layout\r\n\t\t\t */\r\n\t\t scene = _s.updateMap(_p, _z, \"\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t fram.setTitle(\"World 4\");\r\n\t\t fram.setVisible(true);\r\n\t\t fram.setSize(800,800);\r\n\t\t fram.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t fram.setResizable(false);\r\n\t\t fram.add(scene);\r\n\t\t fram.add(_s.getMap());\r\n\t\t fram.addKeyListener(new KeyListener() {\r\n\t\t \tpublic void keyTyped(KeyEvent e) {}\r\n\t\t \t\r\n\t\t \tpublic void keyReleased(KeyEvent e) { }\r\n\r\n\t\t \tpublic void keyPressed(KeyEvent e) { \r\n\t\t \t\tint input = e.getKeyCode();\r\n\t\t \t\t\r\n\t\t \t\t//W - UP\r\n\t\t \t\tif(input == KeyEvent.VK_W) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"NORTH\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\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//S - DOWN\r\n\t\t \t\telse if(input == KeyEvent.VK_S) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"SOUTH\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\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//D - RIGHT\r\n\t\t \t\telse if(input == KeyEvent.VK_D) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"EAST\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene);\r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\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//A - LEFT\r\n\t\t \t\telse if(input == KeyEvent.VK_A) {\r\n\t\t \t\t\tscene = _s.updateMap(_p, _z, \"WEST\", _m, _r1, _r2, _r3, _sword, _q,_c, _ex);\r\n\t\t\t \t\tfram.add(scene); \r\n\t\t\t \t\tfram.revalidate();\r\n\t\t\t \t\t\r\n\t\t\t \t\t//used to dispose frame to start a new level/world\r\n\t\t\t \t\tif(Level4 == false) {\r\n\t\t\t \t\t\tfram.dispose();\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//EXIT BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_E) {\r\n\t Window.msg(\"You left Princess Peach alone! \\nBowser has won, keeping Peach forever...\");\r\n\t\t \t\tSystem.exit(0);\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//HELP BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_H) {\r\n\t\t \t\t\tWindow.msg(\"HELP:\"\r\n\t\t \t\t\t\t\t+ \"\\nUse W A S D keys to help you move around the maze.\"\r\n\t\t \t\t\t\t\t+ \"\\n Clicking E will exit the game, h will allow you to access help screen, and c for some neat credits.\"\r\n\t\t \t\t\t\t\t+ \"Your goal is to make it to princess peach by traveling through each world and staying alive.\"\r\n\t\t \t\t\t\t\t+ \"\\n\\n EXCLAMATION BLOCKS: Triggering it will either help you or give you an disadvantage....BEWARE!\"\r\n\t\t \t\t\t\t\t+ \"\\n\\n QUESTION BLOCKS: Not just any ordinary block with the traditional coins and power-ups.\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t-These cause questions to pop up. Getting them correct gives you 20 extra turns,\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t but getting them incorrect decreases the number of turns Mario has by 10.\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n\t\t -Leaving the question block empty results in getting it automatically wrong!!\" + \r\n\t\t \t\t\t\t\t\t\t\t\t\t \"\\n *The whole Mushroom Kingdom depends on you...You got this Mario!!!*\");\r\n\t\t \t\t\t\t//\t+ \"Not answering a question correctly will lead to uncertain DOOM...\");\r\n\t\t \t\t}\r\n\t\t \t\t\r\n\t\t \t\t//CREDITS BUTTON\r\n\t\t \t\telse if(input == KeyEvent.VK_C) {\r\n\t\t \t\t\tWindow.msg(\"END CREDITS\"\r\n\t\t\t\t\t+ \"\\n Code Outline: Me\"\r\n\t\t\t\t\t+ \"\\n Game Ideas: Me\"\r\n\t\t\t\t\t+ \"\\n All Other Code: Nathan\"\r\n\t\t\t\t\t+ \"\\n And Mario and Peach Lived Happily Ever After!\"\r\n\t\t\t\t\t+ \"The End\");\r\n\t\t \t\t\t\r\n\t\t \t\t}\r\n\t\t \t};\r\n\t\t \t});\r\n\t\t \t//revalidates the frame\r\n\t\t \tfram.revalidate();\r\n\t\t \t//used to dispose frame to start a new level/world\r\n\t\t \tif(Level4 == false) {\r\n\t \t\t\tfram.dispose();\r\n\t \t\t}\r\n\t\t }",
"public void showPuzzle() {\n\n for (int r = 0; r < numbers.length; r++) {\n for (int c = 0; c < numbers[r].length; c++) {\n System.out.print(numbers[r][c] + \"\\t\");\n }\n System.out.println();\n }\n }",
"private void drawMaze(Graphics g) {\n\t\tGraphics2D g2 = (Graphics2D) g;\n\n\t\t//draw the maze \n\t\tfor (int i = 0; i < maze.numRows(); i++) {\n\t\t\tfor (int j = 0; j < maze.numCols(); j++) {\n\t\t\t\tif (maze.hasWallAt(new MazeCoord(i, j))) {\n\t\t\t\t\tg2.setColor(Color.BLACK);\n\t\t\t\t} else {\n\t\t\t\t\tg2.setColor(Color.WHITE);\n\t\t\t\t}\n\t\t\t\tint x = START_X + BOX_WIDTH * i;\n\t\t\t\tint y = START_Y + BOX_HEIGHT * j;\n\t\t\t\tg2.fill(new Rectangle(y, x, BOX_WIDTH, BOX_HEIGHT));\n\t\t\t}\n\t\t}\n\n\t\t//draw the boundary\n\t\tg2.setColor(Color.BLACK);\n\t\tg2.draw(new Rectangle(START_X, START_Y, BOX_WIDTH * maze.numCols(), BOX_HEIGHT * maze.numRows()));\n\n\t\t//draw the entry block\n\t\tint y = START_Y + maze.getEntryLoc().getRow() * BOX_HEIGHT + INSET;\n\t\tint x = START_X + maze.getEntryLoc().getCol() * BOX_WIDTH + INSET;\n\t\tg2.setColor(Color.YELLOW);\n\t\tg2.fill(new Rectangle(x, y, BOX_WIDTH - INSET * 2, BOX_HEIGHT - INSET * 2));\n\n\t\t//draw the exit block\n\t\ty = START_Y + maze.getExitLoc().getRow() * BOX_HEIGHT + INSET;\n\t\tx = START_X + maze.getExitLoc().getCol() * BOX_WIDTH + INSET;\n\t\tg2.setColor(Color.GREEN);\n\t\tg2.fill(new Rectangle(x, y, BOX_WIDTH - INSET * 2, BOX_HEIGHT - INSET * 2));\n\t}",
"public void display() {\n\t\tSystem.out.println(x + \" \" + y + \" \" + z);\n\t}",
"public static void displayWorld() {\n\t//First row\n\t\tSystem.out.print(\"+\");\n\t\tfor (int i = 0; i < Params.world_width; i++) {\n\t\t\tSystem.out.print(\"-\");\n\t\t}\n\t\tSystem.out.println(\"+\");\n\t//Grid\n\t\tfor (int row = 0; row < Params.world_height; row++) {\n\t\t\tSystem.out.print(\"|\");\n\t\t\tList<Critter> crittersInRow = new java.util.ArrayList<Critter>();\n\t\t\tfor (Critter c: population) {\n\t\t\t\tif (c.y_coord == row) {\n\t\t\t\t\tcrittersInRow.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int col = 0; col < Params.world_width; col++) {\n\t\t\t\tboolean critterExists = false;\t\t\t//Becomes true if we find critter in the location\n\t\t\t\tfor (Critter c2: crittersInRow) {\n\t\t\t\t\tif (c2.x_coord == col) {\n\t\t\t\t\t\tif (!critterExists) {\t\t\t//Solves problem of more than 1 critter in location after adding but before stepping\n\t\t\t\t\t\t\tSystem.out.print(c2.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcritterExists = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!critterExists) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"|\");\n\t\t}\n\t//Last row\n\t\tSystem.out.print(\"+\");\n\t\tfor (int i = 0; i < Params.world_width; i++) {\n\t\t\tSystem.out.print(\"-\");\n\t\t}\n\t\tSystem.out.println(\"+\");\n\t}",
"public void createMaze(int rows, int cols) {\n\t\t\n\t\tint total = rows*cols;\n\t\tDisjSets ds = new DisjSets(total); //Create an object of the disjoint set class\n\t\t \n\t\tList<List<Node>> maze = new ArrayList<List<Node>>();\n\t\t \n\t\tmaze = initializeMaze(rows, cols, maze); //Initialize the maze\n\t\t \n\t\tRandom rand = new Random();\n\t\t \n\t\twhile(ds.find(0) != ds.find(total - 1)) {\n\t\t\t \n\t\t\tint currRow = rand.nextInt(rows); //Random row number\n\t\t\tint currCol = rand.nextInt(cols); //Random column number\n\t\t\tNode currNode = maze.get(currRow).get(currCol); //Current node(cell)\n\t\t\tint currValue = currNode.value;\n\t\t\t \n\t\t\tint root1 = ds.find(currValue); //Find on current node(cell)\n\t\t\tint root2;\n\t\t\tboolean removeHorizontal = false;\n\t\t\t \n\t\t\tif(currValue == total - 1) {\n\t\t\t\tcontinue; //Don't do anything if the current cell is the bottom-rightmost cell\n\t\t\t}\n\t\t\t \n\t\t\tif(currRow == rows - 1) {\n\t\t\t\t//Last row -- can only break the right wall, can't break the wall to the bottom \n\t\t\t\troot2 = ds.find(currValue + 1);\n\t\t\t} else if(currCol == cols - 1) {\n\t\t\t\t//Last column -- can only break the wall to the bottom, can't break the right wall \n\t\t\t\troot2 = ds.find(currValue + cols);\n\t\t\t\tremoveHorizontal = true;\n\t\t\t} else {\n\t\t\t\t//Neither last row nor last column\n\t\t\t\t//Randomly select either right wall or wall to the bottom to break\n\t\t\t\tboolean selectRight;\n\t\t\t\tselectRight = rand.nextBoolean();\n\t\t\t\t \n\t\t\t\tif(selectRight) {\n\t\t\t\t\troot2 = ds.find(currValue + 1);\n\t\t\t\t} else {\n\t\t\t\t\troot2 = ds.find(currValue + cols);\n\t\t\t\t\tremoveHorizontal = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Finds resulted in different sets\n\t\t\tif(root1 != root2) {\n\t\t\t\t \n\t\t\t\tds.union(root1, root2); //Take union of the two sets\n\t\t\t\t \n\t\t\t\tif(removeHorizontal) {\n\t\t\t\t\tcurrNode.horizontal = false; //Break the horizontal wall\n\t\t\t\t} else {\n\t\t\t\t\tcurrNode.vertical = false; //Break the vertical wall\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Leave the bottom right corner open\n\t\tNode destination = maze.get(rows - 1).get(cols - 1);\n\t\tdestination.horizontal = false;\n\t\tdestination.vertical = false;\n\t\t \n\t\tprintMaze(rows, cols, maze); //Print the final maze\n\t}",
"public void drawTextualMap(){\n\t\tfor(int i=0; i<grid.length; i++){\n\t\t\tfor(int j=0; j<grid[0].length; j++){\n\t\t\t\tif(grid[i][j] instanceof Room){\n\t\t\t\t\tif(((Room)grid[i][j]).getItems().size()>0)\n\t\t\t\t\t\tSystem.out.print(\" I \");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\" R \");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tSystem.out.println(\"rows = \"+grid.length+\" cols = \"+grid[0].length);\n\t\tSystem.out.println(\"I = Room has Item, R = Room has no Item, '=' = Is a Hallway\");\n\n\t}"
]
| [
"0.75429755",
"0.7153322",
"0.70552945",
"0.6549965",
"0.64789796",
"0.624753",
"0.6208674",
"0.6203087",
"0.60738504",
"0.6037304",
"0.60267013",
"0.60099304",
"0.5993315",
"0.59579587",
"0.59332794",
"0.59134084",
"0.5855112",
"0.57968616",
"0.5788144",
"0.5774432",
"0.57701814",
"0.5765627",
"0.5748304",
"0.5736435",
"0.57356995",
"0.5727366",
"0.5724852",
"0.5720069",
"0.5700533",
"0.56907314",
"0.5662518",
"0.5647633",
"0.56366605",
"0.56280524",
"0.5624776",
"0.5621746",
"0.5621412",
"0.55845654",
"0.557771",
"0.55574936",
"0.5550667",
"0.5539073",
"0.553366",
"0.5532438",
"0.5508973",
"0.55044633",
"0.5497106",
"0.5492176",
"0.5488787",
"0.5460945",
"0.5450795",
"0.54294455",
"0.53991926",
"0.5398673",
"0.5396702",
"0.539617",
"0.5391147",
"0.5358034",
"0.53480834",
"0.5340541",
"0.5332442",
"0.53261465",
"0.5321568",
"0.5318383",
"0.5311359",
"0.5307348",
"0.52790415",
"0.5266609",
"0.52654696",
"0.5264589",
"0.5263718",
"0.52566344",
"0.52529454",
"0.5249569",
"0.52276474",
"0.52254933",
"0.5218294",
"0.52100897",
"0.52099353",
"0.5208475",
"0.5206004",
"0.5199007",
"0.51982266",
"0.51932544",
"0.5192646",
"0.518729",
"0.5177449",
"0.5167105",
"0.51658565",
"0.5156088",
"0.51558566",
"0.5149658",
"0.5143281",
"0.51416296",
"0.513761",
"0.51301026",
"0.5128049",
"0.5121322",
"0.51190317",
"0.51183677",
"0.51181114"
]
| 0.0 | -1 |
This function start cli start method | public void start() throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }",
"public void start() {}",
"public void start() {}",
"private CommandLine() {\n\t}",
"protected void start() {\n }",
"public void start() {\n }",
"public void start() {\n\n }",
"void start(String option);",
"public void start()\n {\n }",
"private void start() {\n\n\t}",
"public CLI()\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = \"\";\r\n\t\t//this.exitStr = exitStr;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}",
"public void start() {\n\n\t}",
"public void start(){\n }",
"public void start()\n {}",
"public void start() {\n io.println(\"Welcome to 2SAT-solver app!\\n\");\n String command = \"\";\n run = true;\n while (run) {\n while (true) {\n io.println(\"\\nType \\\"new\\\" to insert an CNF, \\\"help\\\" for help or \\\"exit\\\" to exit the application\");\n command = io.nextLine();\n if (command.equals(\"new\") || command.equals(\"help\") || command.equals(\"exit\")) {\n break;\n }\n io.println(\"Invalid command. Please try again.\");\n }\n switch (command) {\n case \"new\":\n insertNew();\n break;\n case \"help\":\n displayHelp();\n break;\n case \"exit\":\n io.println(\"Thank you for using this app.\");\n run = false;\n }\n\n }\n }",
"void main(CommandLine cmd);",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public void start();",
"public static void main(String[] args)\n {\n\n DemoCliApp demo = new DemoCliApp();\n demo.run();\n }",
"public void start() {\n\t\t\n\t}",
"public void start() {\n\t\t\n\t}",
"public int start( String[] cmdLine )\n {\n int exitCode = 0;\n Console console = null;\n\n if (null == System.getSecurityManager())\n {\n System.setSecurityManager( new RMISecurityManager() );\n }\n\n // Load the hsp properties.\n Property.loadProperties( cmdLine );\n Property.load( TuiConsole.class );\n\n // See if the command line has the console.\n String registryHost = System.getProperty( Console.JICOS_CONSOLE_HOST );\n int registryPort = RegistrationManager.PORT;\n boolean showHelp = false;\n //\n switch (cmdLine.length)\n {\n case 1:\n if (\"-help\".equals( cmdLine[0] ))\n {\n showHelp = true;\n }\n else\n {\n loadStartupConfig( cmdLine[0] );\n }\n break;\n\n case 0:\n break;\n\n default:\n showHelp = true;\n exitCode = 1;\n break;\n }\n\n if (showHelp)\n {\n System.err.println( \"Usage: <java> TuiConsole [config.xml]\" );\n if( 0 != exitCode )\n {\n System.exit( exitCode );\n }\n }\n\n \n // Startup files.\n String fileName = null;\n String homePrefix = \"/.jicos/\";\n String localPrefix = \".\";\n String suffix = \".conf\";\n \n if( System.getProperty( \"os.name\" ).toLowerCase().startsWith( \"window\" ) )\n {\n homePrefix = \"Application Data/Jicos/\";\n localPrefix = \"\";\n }\n \n // See if there is a global startupfile.\n if( null != (fileName = System.getProperty( \"user.home\" )) )\n {\n fileName += homePrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n }\n \n // See if there is a start-up file in the local directory\n fileName = \"./\" + localPrefix + \"tuiconsole\" + suffix;\n doStartup( new File( fileName ) );\n \n mainLoop();\n return (CMD_Error);\n }",
"public static void main(String[] args) {\n/* 66 */ logger.info(\"WurmServerGuiMain starting\");\n/* 67 */ HashSet<String> allowedArgStrings = new HashSet<>();\n/* 68 */ for (GuiCommandLineArgument argument : GuiCommandLineArgument.values())\n/* */ {\n/* 70 */ allowedArgStrings.add(argument.getArgumentString());\n/* */ }\n/* */ \n/* 73 */ SimpleArgumentParser parser = new SimpleArgumentParser(args, allowedArgStrings);\n/* 74 */ String dbToStart = \"\";\n/* 75 */ if (parser.hasOption(GuiCommandLineArgument.START.getArgumentString())) {\n/* 76 */ dbToStart = parser.getOptionValue(GuiCommandLineArgument.START.getArgumentString());\n/* 77 */ if (dbToStart == null || dbToStart.isEmpty()) {\n/* 78 */ System.err.println(\"Start param needs to be followed by server dir: Start=<ServerDir>\");\n/* 79 */ System.exit(1);\n/* */ } \n/* */ } \n/* */ \n/* 83 */ Servers.arguments = parser;\n/* 84 */ String adminPass = \"\";\n/* 85 */ if (parser.hasOption(GuiCommandLineArgument.ADMIN_PWD.getArgumentString())) {\n/* */ \n/* 87 */ adminPass = parser.getOptionValue(GuiCommandLineArgument.ADMIN_PWD.getArgumentString());\n/* 88 */ if (adminPass == null || adminPass.isEmpty()) {\n/* */ \n/* 90 */ System.err.println(\"The admin password needs to be set or it will not be possible to change the settings within the game.\");\n/* */ }\n/* */ else {\n/* */ \n/* 94 */ WurmServerGuiController.adminPassword = adminPass;\n/* */ } \n/* */ } \n/* */ \n/* 98 */ if (!dbToStart.isEmpty()) {\n/* */ \n/* 100 */ System.out.println(\"Should start without GUI here!\");\n/* 101 */ WurmServerGuiController.startDB(dbToStart);\n/* */ }\n/* */ else {\n/* */ \n/* 105 */ Application.launch(WurmServerGuiMain.class, (String[])null);\n/* */ } \n/* */ \n/* 108 */ logger.info(\"WurmServerGuiMain finished\");\n/* */ }",
"public static void main(String[] args) {\n boolean cmdStart = false;\n if (args.length != 0) {\n GuiUtils guiUtils = new GuiUtils();\n String errorResponse = guiUtils.verifyPort(args[0]);\n if (errorResponse != null) {\n System.err.println(\"Could not start the Server: \" + errorResponse);\n System.exit(-1);\n } else {\n int port = Integer.parseInt(args[0]);\n HangmanServer hangmanServer = new HangmanServer();\n hangmanServer.config = new ServerConfiguration(port);\n hangmanServer.run();\n cmdStart = true;\n }\n }\n \n if (!cmdStart) {\n launch(args);\n }\n }",
"public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }",
"public static void main(String[] args){\r\n\t\tstart();\r\n\t}",
"void start() {\n }",
"public void start() {\n\t\tFile splashFile = new File(\"Splash\", \"title\");\r\n\t\tsplashString = TextFileReader.getContents(splashFile);\r\n\t\tsendOutput(splashString);\r\n\t\tsendOutput(\"Version \" + versionNum);\r\n\t\tsendOutput(\"by \" + author);\r\n\t\tprintMenu();\r\n\t}",
"public void start(){\r\n\t\tThread cliThread = new Thread(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tString line= \"1\";\r\n\t\t\t\twhile(!line.equals(\"exit\")) {\r\n\t\t\t\t\tSystem.out.println(\"\\n\");\r\n\t\t\t\t\tfor(String str: commandsSet.keySet())\r\n\t\t\t\t\t\tSystem.out.println(\"* \" + str);\r\n\t\t\t\t\tSystem.out.println(\"\\nEnter command\");\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tline=in.readLine();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\tStringBuilder argusb= new StringBuilder();\r\n\t\t\t\t\t\tStringBuilder command=new StringBuilder();\r\n\t\t\t\t\t\tString[] split=line.split(\" \");\r\n\t\t\t\t\t\tint j=0;\r\n\t\t\t\t\t\tfor (int i =0;i<split.length;i++) {\r\n\t\t\t\t\t\t\tif (split[i].startsWith(\"<\")){\r\n\t\t\t\t\t\t\t\tsplit[i] = split[i].replace(\"<\",\"\");\r\n\t\t\t\t\t\t\t\tsplit[i] = split[i].replace(\">\", \"\");\r\n\t\t\t\t\t\t\t\tsplit[i]= split[i].toLowerCase();\r\n\t\t\t\t\t\t\t\targusb.append(split[i]);\r\n\t\t\t\t\t\t\t\targusb.append(\" \");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tcommand.append(\" \");\r\n\t\t\t\t\t\t\t\tcommand.append(split[i]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcommand.deleteCharAt(0);\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\tcontroller.handleUserCommand(command.toString(),argusb.toString().split(\" \"));\r\n\t\t\t\t\t\t}catch (Exception e){\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\t\r\n\t\t\t\t\t\targusb=null;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//out.write(\"The Program closed Good Bye\");\r\n\t\t\t{ try {\r\n\t\t\t\tin.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"The In stream can't be close\");\r\n\t\t\t} \r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\t\r\n\t\t\tcliThread.start();\t\r\n\t\t}",
"public static void main( String[] cmdLine ) throws MalformedURLException,\n NotBoundException, RemoteException\n {\n TuiConsole tuiConsole = new TuiConsole();\n System.exit( tuiConsole.start( cmdLine ) );\n }",
"public static void main(String[] args) {\n new Snake().start();\r\n }",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void start();",
"void setup(CommandLine cmd);",
"public void start()\r\n\t{\n\tSystem.out.println(\"normal start method\");\r\n\t}",
"private void initialize() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Starting Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // start\n try {\n\t\t\t\tBootstrap.main(commandLineArgs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n }",
"public start() {\n\t\tsuper();\n\t}",
"public static void main (String[] args){\r\n\t\tnew Server().startRunning();\r\n\t}",
"public void start() {\n System.out.println(\"start\");\n }",
"public void start() {\n\t\tstartFilesConfig(true);\n\t\tstartSpamFilterTest(false);\n\t}",
"public static void main(String[] args)\n {\n MessageHandler runner = new MessageHandler();\n runner.processArgs(args);\n \n String command = runner.getConfiguration(\"command\");\n String host = runner.getConfiguration(\"host\");\n int port = runner.getConfiguration().getInt(\"port\");\n \n boolean isStart = false;\n boolean isRestart = false;\n boolean isStatus = false;\n \n if ( true ) {\n if (command.equalsIgnoreCase(\"shutdown\")){\n command = SHUTDOWN;\n }\n else if(command.equalsIgnoreCase(\"status\")) {\n command = STATUS;\n isStatus = true;\n } else if(command.equalsIgnoreCase(\"restart\")) {\n command = RESTART;\n }\n else if( command.equalsIgnoreCase(\"start\") ){\n command = START;\n isStart = true;\n }\n }\n \n if( port > -1 ) {\n if( !isStart ){\n boolean needsStarted = false;\n \n try {\n runner.client(host, port,command);\n } catch(IOException ex) {\n String showCommand = command;\n if ( showCommand != null)\n showCommand = command;\n Helper.writeLog(1,\"unable to send command: '\" + showCommand + \"' stack: \" + ex.toString());\n if( isStatus ){\n needsStarted = true;\n }\n }\n \n if( isRestart ){\n try {\n command = START + \"@\" + SECRETCODE;\n \n runner.client(host, port,command);\n } catch(IOException ex) {\n String showCommand = command;\n if ( showCommand != null)\n showCommand = command;\n Helper.writeLog(1,\"unable to send command: '\" + showCommand + \"' stack: \" + ex.toString());\n }\n }\n\n if( needsStarted ){\n runner.startServer(port);\n }\n else {\n System.exit(0);\n }\n }\n else {\n runner.startServer(port);\n }\n }\n }",
"public void startup() {\n\t\tstart();\n }",
"public static void main(String[] args)\n {\n new StartMain(args).go();\n }",
"public void starting();",
"public void start() {\n\t\tSystem.out.println(\"开启系统1\");\r\n\t}",
"Start createStart();",
"public static void main(String[] args) {\nMaestro go = new Maestro();\n\t\t\n\t\tgo.Start();\n\n\t}",
"public void start() {\n String command = \"\";\n boolean exitCommandIsNotGiven = true;\n System.out.println(\"\\nSorting Algorithms Demonstration\\n\");\n\n while (exitCommandIsNotGiven) {\n command = initialMenu(command);\n exitCommandIsNotGiven = handleStartMenuCommands(command);\n }\n }",
"public static void main(String[] args)\n {\n Console con = new Console();\n MasterAddress master_to_connect;\n master_to_connect = parseArgs(args);\n if (master_to_connect == null)\n {\n printUsageAndExit(null);\n }\n else\n {\n Config.setMasterAddress(master_to_connect);\n }\n con.start(master_to_connect);\n }",
"void start ();",
"public static void main(final String[] args) {\n final CliMain mainObj = new CliMain();\n \n\n mainObj.mainMenu();\n }",
"@Override public void start() {\n }",
"public static void main(String[] args) {\n//\t\tip = args[0];\n\t\tlaunch(args);\n\t}",
"public static void main(String[] args){\n cmd = args;\r\n init(cmd);\r\n }",
"public void start(){\n\t\tsuper.start();\n\t}",
"public static void main(String[] args) {\n\t\ttry {\r\n\t\t\tRuntime runtime=Runtime.instance();\r\n\t\t\tProperties properties=new ExtendedProperties();\r\n\t\t\tproperties.setProperty(Profile.GUI, \"true\");\r\n\t\t\tProfile profile=new ProfileImpl(properties);\r\n\t\t\tAgentContainer mainContainer=runtime.createMainContainer(profile);\r\n\t\t\tmainContainer.start();\r\n\t\t} catch (ControllerException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desired for test.\r\n\t\tBPCC_Util.setLogLevel(LogLevelEnum.DEBUG);\r\n\t\t\r\n\t\t// Initialize class global variables.\r\n\t\tinitVars();\r\n\t\t\r\n\t\tcreateAndShowGUI();\r\n\t}",
"void start(String name);",
"public static void main(final String[] args) {\n ManualStartUi.newStyleBuilder();\n }",
"public void start()\n {\n uploadDataFromFile();\n menu.home();\n home();\n }",
"public void start() throws CoreHunterException;",
"@Override\n public void start() { }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n public void start() {\n }",
"@Override\n\tpublic void start() {\n\n\t}",
"public void startApp()\r\n\t{\n\t}",
"public static void main( String[] args )\n\t{\n\t\tResourceBundle rbm = ResourceBundle.getBundle( rbmFile );\n\t\tCommandLine userInput = prepCli( prepCliParser(), args, rbm );\n\t\tBerCli doesStuff = prepDoer( userInput );\n\t\tdoesStuff.setSessionConfig( prepConfig( userInput, rbm ) );\n\t\tdoesStuff.satisfySession();\n\t}",
"@Override\r\n public void start() {\r\n }",
"public void start(){\n CoffeeMakerHelper coffeeMakerHelper = new CoffeeMakerHelper(inputArgs[0]);\n coffeeMakerService = coffeeMakerHelper.parseJsonFile();\n computeCoffeeMaker();\n }",
"public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPort())\n .ignoreOut1().unsafe());\n }",
"public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }",
"public static void main(String[] args) {\n\n CLInterface cli = new CLInterface();\n cli.start();\n\n GUInterface gui = new GUInterface();\n new Thread(gui).start();\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tlaunch(args);\r\n\r\n\t}"
]
| [
"0.67378193",
"0.66738206",
"0.66738206",
"0.6641625",
"0.66270405",
"0.6624879",
"0.660719",
"0.6597221",
"0.6567576",
"0.6549685",
"0.6535571",
"0.65308756",
"0.6478965",
"0.6473847",
"0.64499277",
"0.64477396",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6409068",
"0.6390719",
"0.6375169",
"0.6375169",
"0.6351386",
"0.6339318",
"0.63386834",
"0.6332083",
"0.6311633",
"0.63086087",
"0.6297952",
"0.62903553",
"0.6288697",
"0.6286478",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.62853366",
"0.6268763",
"0.62333184",
"0.62266195",
"0.62254834",
"0.6223372",
"0.6204264",
"0.6199494",
"0.6196164",
"0.6179472",
"0.61787355",
"0.612936",
"0.6125019",
"0.61208016",
"0.6111504",
"0.6108486",
"0.6073784",
"0.60690486",
"0.6058469",
"0.60547304",
"0.6054306",
"0.6050173",
"0.60423946",
"0.60417247",
"0.6040644",
"0.60363054",
"0.60343605",
"0.6034145",
"0.60291755",
"0.6023144",
"0.6019777",
"0.6019777",
"0.6019777",
"0.6019777",
"0.6019777",
"0.6019777",
"0.6019777",
"0.60169065",
"0.6016871",
"0.60109085",
"0.6009745",
"0.6009047",
"0.60041004",
"0.60025865",
"0.60003364",
"0.59982604"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onDateSet(DatePicker view, int year, int monthOfYear,
int dayOfMonth) {
tanggal.set(Calendar.YEAR, year);
tanggal.set(Calendar.MONTH, monthOfYear);
tanggal.set(Calendar.DAY_OF_MONTH, dayOfMonth);
myCalendar.set(Calendar.YEAR, year);
myCalendar.set(Calendar.MONTH, monthOfYear);
myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);
updateLabel();
} | {
"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 |
Viene creato un frame che si occupa di controllare se l'utente abbia cliccato per sbaglio sul tasto back; ci sono 2 opzioni disponibili. Viene settata la misura e gli viene associato un ContentPane. | public void actionPerformed(ActionEvent evento){
JFrame controllo = new JFrame();
controllo.setSize(400,200);
Container cont = controllo.getContentPane();
/**
* Viene creato un pannello che viene aggiunto al ContentPane e ne vengono settati sfondo e layout.
*/
JPanel center = new JPanel();
center.setBackground(MenuPrincipale.COLORE_SFONDO);
center.setLayout(new GridLayout(1,1));
cont.add(center,BorderLayout.CENTER);
/**
* Viene aggiunta una JLabel al pannello centrale del frame.
* Ne vengono settati font e colore.
*/
JLabel domanda = new JLabel("Vuoi tornare alla lista dei Tavoli?",SwingConstants.CENTER);
domanda.setFont(new Font("Garamond", Font.BOLD, 20));
domanda.setForeground(Color.BLACK);
center.add(domanda);
/**
* Viene creato un poi un secondo pannello,situato nella parte bassa del frame.
* Ne vengono impostati layout e viene aggiunto al ContentPane.
*/
JPanel down = new JPanel();
down.setLayout(new GridLayout(1,2));
cont.add(down, BorderLayout.SOUTH);
/**
* Viene aggiunto il bottone "no" al pannello down, con le impostazioni grafiche settate.
*/
JButton no = new JButton("NO");
no.setFont(new Font("Garamond", Font.BOLD, 18));
no.setBackground(MenuPrincipale.COLORE_BOTTONI);
no.setForeground(Color.BLACK);
down.add(no);
/**
* Se si clicca il tasto "no", si chiude semplicemente questo frame di controllo e si rimane sul Menù.
*/
no.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent evento){
controllo.dispose();
}
});
/**
* Si crea poi anche un bottone "si" che viene aggiunto al pannello down, con le impostazioni grafiche settate.
*/
JButton si = new JButton("SI");
si.setFont(new Font("Garamond", Font.BOLD, 18));
si.setBackground(MenuPrincipale.COLORE_BOTTONI);
si.setForeground(Color.BLACK);
down.add(si);
/**
* Se si clicca il tasto "si", viene chiuso il frame di controllo, viene chiuso il menù e si torna all'elenco dei tavoli.
*/
si.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evento) {
controllo.dispose();
ordinazione.dispose();
new ElencoTavoliCameriere();
}
});
/**
* Si rende visibile il frame editable_menu, si colloca al centro e si può chiudere con il tasto "X".
*/
controllo.setVisible(true);
controllo.setLocationRelativeTo(null);
controllo.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }",
"private void setFrame() {\r\n this.getContentPane().setLayout(null);\r\n this.addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent evt) {\r\n close();\r\n }\r\n });\r\n MainClass.frameTool.startup(this, FORM_TITLE, FORM_WIDTH, FORM_HEIGHT, \r\n false, true, false, false, FORM_BACKGROUND_COLOR,\r\n SNAKE_ICON);\r\n }",
"public void CreateTheFrame()\n {\n setSize(250, 300);\n setMaximumSize( new Dimension(250, 300) );\n setMinimumSize(new Dimension(250, 300));\n setResizable(false);\n\n pane = getContentPane();\n insets = pane.getInsets();\n\n // Apply the null layout\n pane.setLayout(null);\n }",
"private void buildFrame(){\n this.setVisible(true);\n this.getContentPane();\n this.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.setDefaultCloseOperation(EXIT_ON_CLOSE);\t \n\t }",
"public void setFrameContent() {\n\t\tbigPanel.add(panelA);\n\t\tbigPanel.add(panelB);\n\t\tframe.add(bigPanel);\n\t\t//frame.add(panel);\n\t frame.setVisible(true);\n\t}",
"Frame createFrame();",
"public boolean controleFrame(BorderPane br) {\n\t\treturn true ;\n\t\t\n\t}",
"public FrameProduto() { \n this.getContentPane().setBackground(new Color(47, 64, 80));\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }",
"private void setContent() {\n\t\t// sets window content visible\n\t\tthis.getContentPane().setVisible(true);\n\n\t\t// sets up desktop area inside JFrame for JInternalFrame\n\t\tdesktop = new JDesktopPane();\n\t\tdesktop.setOpaque(false);\n\t\ti_console = getNewInternalFrame();\n\t\ti_palette = getNewInternalFrame();\n\n\t\tJPanel s_workspace = new JPanel(new BorderLayout());\n\t\tJPanel s_palette = new JPanel(new BorderLayout());\n\t\tdock_palette.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ti_palette_docked = !i_palette_docked;\n\t\t\t\ti_palette.setSize(new Dimension(250, 200));\n\t\t\t}\n\t\t});\n\t\ts_palette.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif (SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\trightMenuClick = true;\n\t\t\t\t\trmenu.removeAll();\n\t\t\t\t\trmenu.add(dock_palette);\n\t\t\t\t\trmenu.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t\tif (SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\trightMenuClick = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// palette internalframe content\n\n\t\ts_palette.setLayout(new BoxLayout(s_palette, BoxLayout.Y_AXIS));\n\n\t\tJButton button_DRect = new JButton(\"DraggableRect\");\n\t\tbutton_DRect.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_DRect.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_DRect.addActionListener(this);\n\t\tbutton_DRect.setActionCommand(\"draggableRect\");\n\t\ts_palette.add(button_DRect);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Assignment = new JButton(\"Assignment\");\n\t\tbutton_Assignment.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Assignment.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Assignment.addActionListener(this);\n\t\tbutton_Assignment.setActionCommand(\"assignment\");\n\t\ts_palette.add(button_Assignment);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Conditional = new JButton(\"Conditional\");\n\t\tbutton_Conditional.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Conditional.addActionListener(this);\n\t\tbutton_Conditional.setActionCommand(\"conditional\");\n\t\tbutton_Conditional.setMaximumSize(new Dimension(125, 25));\n\t\ts_palette.add(button_Conditional);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Loop = new JButton(\"Loop\");\n\t\tbutton_Loop.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Loop.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Loop.addActionListener(this);\n\t\tbutton_Loop.setActionCommand(\"loop\");\n\t\ts_palette.add(button_Loop);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\t// ---------------------------------------------------------------------------------\n\n\t\tJButton button_Function = new JButton(\"Function\");\n\t\tbutton_Function.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Function.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Function.addActionListener(this);\n\t\tbutton_Function.setActionCommand(\"function\");\n\t\ts_palette.add(button_Function);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\t// -------------------------------------------------------------------------------\n\t\tJButton button_Start = new JButton(\"Start\");\n\t\tbutton_Start.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Start.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Start.addActionListener(this);\n\t\tbutton_Start.setActionCommand(\"start\");\n\t\ts_palette.add(button_Start);\n\n\t\ts_palette.add(Box.createRigidArea(new Dimension(0, 10)));\n\n\t\tJButton button_Text = new JButton(\"Script\");\n\t\tbutton_Text.setAlignmentX(JButton.CENTER_ALIGNMENT);\n\t\tbutton_Text.setMaximumSize(new Dimension(125, 25));\n\t\tbutton_Text.addActionListener(this);\n\t\tbutton_Text.setActionCommand(\"script\");\n\t\ts_palette.add(button_Text);\n\n\t\tJPanel s_output = new JPanel(new BorderLayout());\n\n\t\tdock_console.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ti_console_docked = !i_console_docked;\n\t\t\t\tif (!i_console_docked) {\n\t\t\t\t\ti_console.setSize(new Dimension(250, 200));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcodeLabel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tif (SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\trightMenuClick = true;\n\t\t\t\t\trmenu.removeAll();\n\t\t\t\t\trmenu.add(dock_console);\n\t\t\t\t\trmenu.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t\tif (SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\trightMenuClick = false;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tJScrollPane codeScrollPane = new JScrollPane(codeLabel); // made\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// scrollPane\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// connecting\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// codeLabel\n\t\tJScrollPane s_workspace_ScrollPane = new JScrollPane(s_workspace);\n\t\tJScrollPane s_palette_ScrollPane = new JScrollPane(s_palette);\n\t\tJScrollPane s_output_ScrollPane = new JScrollPane(s_output);\n\t\t// JScrollPane s_main_ScrollPane = new JScrollPane(desktop);\n\n\t\ti_console.getContentPane().add(codeScrollPane);\n\t\ti_palette.getContentPane().add(s_palette_ScrollPane);\n\n\t\tcodeScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); \n\t\ts_workspace_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\ts_palette_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\ts_output_ScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t// s_main_ScrollPane\n\t\t// .setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tdesktop.add(i_console);\n\t\tdesktop.add(i_palette);\n\t\tthis.setContentPane(desktop);\n\t\t// this.setContentPane(s_main_ScrollPane);\n\n\t\t// buffer panel between JFrame and p_main content\n\t\tbufferPanel.setVisible(true);\n\t\tbufferPanel.setLayout(new GridBagLayout());\n\t\tbufferPanel.setOpaque(false);\n\t\tthis.getContentPane().add(bufferPanel);\n\n\t\t// GridBagConstraints for setting p_main into bufferPanel\n\t\tGridBagConstraints gbc_p_main = new GridBagConstraints();\n\t\tgbc_p_main.anchor = GridBagConstraints.CENTER;\n\t\tgbc_p_main.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_p_main.weightx = 1;\n\t\tgbc_p_main.weighty = 1;\n\t\tgbc_p_main.gridx = 0;\n\t\tgbc_p_main.gridy = 0;\n\t\tgbc_p_main.fill = GridBagConstraints.BOTH;\n\n\t\t// initializes JPanel encapsulating the content (p_main)\n\t\tp_main.setVisible(true);\n\t\tp_main.setBorder(BorderFactory.createLineBorder(Color.black));\n\t\tp_main.setRequestFocusEnabled(false);\n\t\tp_main.setOpaque(false);\n\t\tp_main.setFocusable(false);\n\t\t// p_main.setBackground(Color.WHITE);\n\t\tbufferPanel.add(p_main, gbc_p_main);\n\t\tGridBagLayout gbl_p_main = new GridBagLayout();\n\t\tgbl_p_main.columnWidths = new int[] { 0, 0, 0, 0 };\n\t\tgbl_p_main.rowHeights = new int[] { 0, 0, 0, 0, 0, 0, 0, 0 };\n\t\tgbl_p_main.columnWeights = new double[] { 1.0, 2.0, 1.0, Double.MIN_VALUE };\n\t\tgbl_p_main.rowWeights = new double[] { 1.0, 2.0, 2.0, 2.0, 2.0, 4.0, 1.0, Double.MIN_VALUE };\n\t\tp_main.setLayout(gbl_p_main);\n\n\t\t// this is the left panel\n\t\t// initializes p_palette\n\t\tp_palette.setVisible(true);\n\t\tp_palette.setOpaque(false);\n\t\tGridBagConstraints gbc_p_palette = new GridBagConstraints();\n\t\tgbc_p_palette.anchor = GridBagConstraints.WEST;\n\t\tgbc_p_palette.gridheight = 6;\n\t\tgbc_p_palette.insets = new Insets(0, 0, 5, 5);\n\t\tgbc_p_palette.fill = GridBagConstraints.BOTH;\n\t\tgbc_p_palette.gridx = 0;\n\t\tgbc_p_palette.gridy = 0;\n\n\t\tp_main.add(p_palette, gbc_p_palette);\n\t\tGridBagLayout gbl_p_palette = new GridBagLayout();\n\t\tgbl_p_palette.columnWidths = new int[] { 0 };\n\t\tgbl_p_palette.rowHeights = new int[] { 0 };\n\t\tgbl_p_palette.columnWeights = new double[] { Double.MIN_VALUE };\n\t\tgbl_p_palette.rowWeights = new double[] { Double.MIN_VALUE };\n\t\tp_palette.setLayout(gbl_p_palette);\n\n\t\t// this is the bottom panel\n\t\t// initializes p_console\n\t\tp_console.setVisible(true);\n\t\tp_console.setOpaque(false);\n\t\tGridBagConstraints gbc_p_console = new GridBagConstraints();\n\t\tgbc_p_console.anchor = GridBagConstraints.WEST;\n\t\tgbc_p_console.gridwidth = 2;\n\t\tgbc_p_console.insets = new Insets(0, 0, 5, 0);\n\t\tgbc_p_console.fill = GridBagConstraints.BOTH;\n\t\tgbc_p_console.gridx = 1;\n\t\tgbc_p_console.gridy = 5;\n\t\tp_main.add(p_console, gbc_p_console);\n\t\t/*\n\t\t * GridBagLayout gbl_p_console = new GridBagLayout();\n\t\t * gbl_p_console.columnWidths = new int[]{0}; gbl_p_console.rowHeights =\n\t\t * new int[]{0}; gbl_p_console.columnWeights = new\n\t\t * double[]{Double.MIN_VALUE}; gbl_p_console.rowWeights = new\n\t\t * double[]{Double.MIN_VALUE}; p_console.setLayout(gbl_p_console);\n\t\t */\n\t\tp_console.setLayout(new BorderLayout());\n\n\t}",
"private void configurarFrame() {\n\t\t\n\t\tthis.setSize(600, 250);\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.setLocationRelativeTo(null);\n\t\tthis.setTitle(\"Tabuada\");\n\t\tthis.setLayout(new BorderLayout(5,5));\n\t\tthis.getContentPane().add(painelTopo, BorderLayout.PAGE_START);\n\t\tthis.getContentPane().add(painelCentro, BorderLayout.CENTER);\n\t}",
"public frameCliclistas() {\n initComponents();\n setLocationRelativeTo(this);\n show_ciclistas();\n }",
"private void setupFrame() {\n this.setTitle(TITRE);\n this.setPreferredSize(new Dimension(TAILLE_FRAME[1], TAILLE_FRAME[0]));\n this.setResizable(false);\n \n this.getContentPane().setBackground(new Color(0,153,0));\n this.getContentPane().setLayout(new GridLayout(3,1)); \n \n this.pack();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setVisible(true);\n }",
"public GUI() {\n this.setSize(1500,1000);\n this.setResizable(false);\n this.setTitle(\"Warriors Jeu\");\n this.setLocation(10,10);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n // affichage de la barre\n this.setJMenuBar(this.BarreDeMenu());\n this.setContentPane(this.ZoneTravail()); \n \n backPanel.setPreferredSize(new Dimension(1500, 1000));\n this.add(backPanel);\n \n avatarPanel.setPreferredSize(new Dimension(200,150));\n this.add(avatarPanel);\n \n \n //appel du plateau (class Plateau)--en test pour l'instant--\n // this.setContentPane(new Plateau());\n \n \n // doit être à la fin sinon on affiche la fenêtre avant que la barre ne lui soit associée...\n this.setVisible(true);\n \n }",
"public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"FRAME createFRAME();",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public frameTaller() {\r\n\t\tsetModal(true);\r\n\t\tsetBounds(100, 100, 770, 490);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\t\r\n\t\tJLayeredPane layeredPane = new JLayeredPane();\r\n\t\tlayeredPane.setBounds(10, 95, 734, 343);\r\n\t\tcontentPanel.add(layeredPane);\r\n\t\tlayeredPane.setLayout(null);\r\n\t\t\r\n\t\tJPanel pnlConsulta = new JPanel();\r\n\t\tpnlConsulta.setVisible(false);\r\n\t\tpnlConsulta.setBounds(0, 0, 734, 343);\r\n\t\tlayeredPane.add(pnlConsulta);\r\n\t\tpnlConsulta.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblMatrcula_1 = new JLabel(\"Matrícula:\");\r\n\t\tlblMatrcula_1.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblMatrcula_1.setBounds(191, 11, 76, 19);\r\n\t\tpnlConsulta.add(lblMatrcula_1);\r\n\t\t\r\n\t\ttxt_BusMat = new JTextField();\r\n\t\ttxt_BusMat.setBounds(277, 12, 156, 20);\r\n\t\tpnlConsulta.add(txt_BusMat);\r\n\t\ttxt_BusMat.setColumns(10);\r\n\t\t\r\n\t\tJButton btnBuscar = new JButton(\"buscar\");\r\n\t\tbtnBuscar.setBounds(539, 11, 89, 23);\r\n\t\tpnlConsulta.add(btnBuscar);\r\n\t\t\r\n\t\tJTextPane txt_result = new JTextPane();\r\n\t\ttxt_result.setBackground(SystemColor.menu);\r\n\t\ttxt_result.setBounds(10, 60, 714, 272);\r\n\t\tpnlConsulta.add(txt_result);\r\n\t\t\r\n\t\tJPanel pnlAddVehi = new JPanel();\r\n\t\tpnlAddVehi.setVisible(false);\r\n\t\tpnlAddVehi.setBounds(0, 0, 734, 343);\r\n\t\tlayeredPane.add(pnlAddVehi);\r\n\t\tpnlAddVehi.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblMatrcula = new JLabel(\"Matrícula:\");\r\n\t\tlblMatrcula.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblMatrcula.setBounds(23, 68, 107, 14);\r\n\t\tpnlAddVehi.add(lblMatrcula);\r\n\t\t\r\n\t\tJLabel lblNPuertas = new JLabel(\"Nº Puertas:\");\r\n\t\tlblNPuertas.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblNPuertas.setBounds(23, 93, 107, 14);\r\n\t\tpnlAddVehi.add(lblNPuertas);\r\n\t\t\r\n\t\tJLabel lblNRuedas = new JLabel(\"Nº Ruedas:\");\r\n\t\tlblNRuedas.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblNRuedas.setBounds(23, 118, 107, 14);\r\n\t\tpnlAddVehi.add(lblNRuedas);\r\n\t\t\r\n\t\tJLabel lblModelo = new JLabel(\"Modelo:\");\r\n\t\tlblModelo.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblModelo.setBounds(23, 143, 107, 14);\r\n\t\tpnlAddVehi.add(lblModelo);\r\n\t\t\r\n\t\tJLabel lblCapMotor = new JLabel(\"Cap. Motor:\");\r\n\t\tlblCapMotor.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblCapMotor.setBounds(23, 181, 107, 14);\r\n\t\tpnlAddVehi.add(lblCapMotor);\r\n\t\t\r\n\t\tJLabel lblVelMxima = new JLabel(\"Vel. Máxima:\");\r\n\t\tlblVelMxima.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblVelMxima.setBounds(23, 206, 107, 14);\r\n\t\tpnlAddVehi.add(lblVelMxima);\r\n\t\t\r\n\t\tJCheckBox chkDepor = new JCheckBox(\"Es Deportivo\");\r\n\t\tchkDepor.setBounds(87, 38, 97, 23);\r\n\t\tpnlAddVehi.add(chkDepor);\r\n\t\t\r\n\t\tJCheckBox chkAirbag = new JCheckBox(\"¿Airbags?\");\r\n\t\tchkAirbag.setBounds(198, 104, 97, 23);\r\n\t\tpnlAddVehi.add(chkAirbag);\r\n\t\t\r\n\t\ttxt_mat = new JTextField();\r\n\t\ttxt_mat.setBounds(140, 67, 155, 20);\r\n\t\tpnlAddVehi.add(txt_mat);\r\n\t\ttxt_mat.setColumns(10);\r\n\t\t\r\n\t\ttxt_np = new JTextField();\r\n\t\ttxt_np.setColumns(10);\r\n\t\ttxt_np.setBounds(140, 92, 41, 20);\r\n\t\tpnlAddVehi.add(txt_np);\r\n\t\t\r\n\t\ttxt_nr = new JTextField();\r\n\t\ttxt_nr.setColumns(10);\r\n\t\ttxt_nr.setBounds(140, 117, 41, 20);\r\n\t\tpnlAddVehi.add(txt_nr);\r\n\t\t\r\n\t\ttxt_mod = new JTextField();\r\n\t\ttxt_mod.setColumns(10);\r\n\t\ttxt_mod.setBounds(140, 142, 155, 20);\r\n\t\tpnlAddVehi.add(txt_mod);\r\n\t\t\r\n\t\ttxt_vm = new JTextField();\r\n\t\ttxt_vm.setEnabled(false);\r\n\t\ttxt_vm.setColumns(10);\r\n\t\ttxt_vm.setBounds(140, 205, 155, 20);\r\n\t\tpnlAddVehi.add(txt_vm);\r\n\t\t\r\n\t\ttxt_cm = new JTextField();\r\n\t\ttxt_cm.setEnabled(false);\r\n\t\ttxt_cm.setColumns(10);\r\n\t\ttxt_cm.setBounds(140, 180, 155, 20);\r\n\t\tpnlAddVehi.add(txt_cm);\r\n\t\t\r\n\t\tJLabel lblDni = new JLabel(\"DNI:\");\r\n\t\tlblDni.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblDni.setBounds(375, 59, 107, 14);\r\n\t\tpnlAddVehi.add(lblDni);\r\n\t\t\r\n\t\tJLabel lblNombre = new JLabel(\"Nombre:\");\r\n\t\tlblNombre.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblNombre.setBounds(375, 93, 107, 14);\r\n\t\tpnlAddVehi.add(lblNombre);\r\n\t\t\r\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos:\");\r\n\t\tlblApellidos.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblApellidos.setBounds(375, 118, 107, 14);\r\n\t\tpnlAddVehi.add(lblApellidos);\r\n\t\t\r\n\t\tJLabel lblEdad = new JLabel(\"Edad:\");\r\n\t\tlblEdad.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblEdad.setBounds(375, 148, 107, 14);\r\n\t\tpnlAddVehi.add(lblEdad);\r\n\t\t\r\n\t\tJLabel lblFecha = new JLabel(\"Fecha:\");\r\n\t\tlblFecha.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblFecha.setBounds(10, 280, 62, 14);\r\n\t\tpnlAddVehi.add(lblFecha);\r\n\t\t\r\n\t\tJLabel lblTiempo = new JLabel(\"Tiempo:\");\r\n\t\tlblTiempo.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblTiempo.setBounds(171, 280, 62, 14);\r\n\t\tpnlAddVehi.add(lblTiempo);\r\n\t\t\r\n\t\tJLabel lblReparacin = new JLabel(\"Total Reparación:\");\r\n\t\tlblReparacin.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblReparacin.setBounds(10, 318, 132, 14);\r\n\t\tpnlAddVehi.add(lblReparacin);\r\n\t\t\r\n\t\ttxt_date = new JTextField();\r\n\t\ttxt_date.setColumns(10);\r\n\t\ttxt_date.setBounds(74, 279, 87, 20);\r\n\t\tpnlAddVehi.add(txt_date);\r\n\t\t\r\n\t\ttxt_time = new JTextField();\r\n\t\ttxt_time.setColumns(10);\r\n\t\ttxt_time.setBounds(243, 279, 87, 20);\r\n\t\tpnlAddVehi.add(txt_time);\r\n\t\t\r\n\t\ttxt_cost = new JTextField();\r\n\t\ttxt_cost.setColumns(10);\r\n\t\ttxt_cost.setBounds(152, 317, 178, 20);\r\n\t\tpnlAddVehi.add(txt_cost);\r\n\t\t\r\n\t\tJSeparator separator = new JSeparator();\r\n\t\tseparator.setBounds(10, 244, 697, 2);\r\n\t\tpnlAddVehi.add(separator);\r\n\t\t\r\n\t\tJSeparator separator_1 = new JSeparator();\r\n\t\tseparator_1.setBounds(23, 29, 272, 2);\r\n\t\tpnlAddVehi.add(separator_1);\r\n\t\t\r\n\t\tJSeparator separator_2 = new JSeparator();\r\n\t\tseparator_2.setBounds(371, 29, 319, 2);\r\n\t\tpnlAddVehi.add(separator_2);\r\n\t\t\r\n\t\ttxt_DNI = new JTextField();\r\n\t\ttxt_DNI.setColumns(10);\r\n\t\ttxt_DNI.setBounds(492, 58, 155, 20);\r\n\t\tpnlAddVehi.add(txt_DNI);\r\n\t\t\r\n\t\ttxt_name = new JTextField();\r\n\t\ttxt_name.setColumns(10);\r\n\t\ttxt_name.setBounds(492, 92, 155, 20);\r\n\t\tpnlAddVehi.add(txt_name);\r\n\t\t\r\n\t\ttxt_SurName = new JTextField();\r\n\t\ttxt_SurName.setColumns(10);\r\n\t\ttxt_SurName.setBounds(492, 117, 155, 20);\r\n\t\tpnlAddVehi.add(txt_SurName);\r\n\t\t\r\n\t\ttxt_age = new JTextField();\r\n\t\ttxt_age.setColumns(10);\r\n\t\ttxt_age.setBounds(492, 147, 155, 20);\r\n\t\tpnlAddVehi.add(txt_age);\r\n\t\t\r\n\t\tJLabel lblDatosVehiculo = new JLabel(\"Datos Vehículo\");\r\n\t\tlblDatosVehiculo.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblDatosVehiculo.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblDatosVehiculo.setBounds(23, 0, 272, 27);\r\n\t\tpnlAddVehi.add(lblDatosVehiculo);\r\n\t\t\r\n\t\tJLabel lblDatosCliente = new JLabel(\"Datos Cliente\");\r\n\t\tlblDatosCliente.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblDatosCliente.setFont(new Font(\"Tahoma\", Font.BOLD, 15));\r\n\t\tlblDatosCliente.setBounds(375, 0, 315, 27);\r\n\t\tpnlAddVehi.add(lblDatosCliente);\r\n\t\t\r\n\t\tJButton btnAadir = new JButton(\"Añadir\");\r\n\t\tbtnAadir.setBounds(443, 278, 89, 23);\r\n\t\tpnlAddVehi.add(btnAadir);\r\n\t\t\r\n\t\tJButton btnCancelar = new JButton(\"Cancelar\");\r\n\t\tbtnCancelar.setBounds(586, 278, 89, 23);\r\n\t\tpnlAddVehi.add(btnCancelar);\r\n\t\t\r\n\t\tJSeparator separator_3 = new JSeparator();\r\n\t\tseparator_3.setOrientation(SwingConstants.VERTICAL);\r\n\t\tseparator_3.setBounds(337, 21, 1, 212);\r\n\t\tpnlAddVehi.add(separator_3);\r\n\t\t\r\n\t\tJLabel lblTaller = new JLabel(\"Taller\");\r\n\t\tlblTaller.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblTaller.setFont(new Font(\"Palatino Linotype\", Font.BOLD, 24));\r\n\t\tlblTaller.setBounds(10, 32, 734, 33);\r\n\t\tcontentPanel.add(lblTaller);\r\n\t\t\r\n\t\tJButton btnAadirVehculo = new JButton(\"Añadir Vehículo\");\r\n\t\tbtnAadirVehculo.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tpnlAddVehi.setVisible(true);\r\n\t\t\t\tpnlConsulta.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAadirVehculo.setBounds(111, 39, 105, 23);\r\n\t\tcontentPanel.add(btnAadirVehculo);\r\n\t\t\r\n\t\tJButton btnConsulta = new JButton(\"Consulta\");\r\n\t\tbtnConsulta.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpnlAddVehi.setVisible(false);\r\n\t\t\t\tpnlConsulta.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnConsulta.setBounds(536, 39, 105, 23);\r\n\t\tcontentPanel.add(btnConsulta);\r\n\t}",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"private void customizeFrame(JFrame frame) {\r\n frame.setTitle(getTitle());\r\n frame.setResizable(false);\r\n frame.setPreferredSize(new Dimension(width + 15, height + 36));\r\n frame.setVisible(true);\r\n\r\n frame.setLayout(new BorderLayout());\r\n frame.add(panel, BorderLayout.CENTER);\r\n frame.setLocationRelativeTo(null);\r\n\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n frame.pack();\r\n }",
"public void createWindow(){\n JFrame frame = new JFrame(\"Baser Aps sick leave prototype\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(screenSize.width,screenSize.height);\n frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\n /**\n * Setting up the main layout\n */\n Container allContent = frame.getContentPane();\n allContent.setLayout(new BorderLayout()); //main layout is BorderLayout\n\n /**\n * Stuff in the content pane\n */\n JButton button = new JButton(\"Press\");\n JTextPane text = new JTextPane();\n text.setText(\"POTATO TEST\");\n text.setEditable(false);\n JMenuBar menuBar = new JMenuBar();\n JMenu file = new JMenu(\"File\");\n JMenu help = new JMenu(\"Help\");\n JMenuItem open = new JMenuItem(\"Open...\");\n JMenuItem saveAs = new JMenuItem(\"Save as\");\n open.addMouseListener(new MouseListener() {\n @Override\n public void mouseClicked(MouseEvent e) {\n fileChooser.showOpenDialog(frame);\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n\n }\n });\n file.add(open);\n file.add(saveAs);\n menuBar.add(file);\n menuBar.add(help);\n\n allContent.add(button, LINE_START); // Adds Button to content pane of frame at position LINE_START\n allContent.add(text, LINE_END); // Adds the text to the frame, at position LINE_END\n allContent.add(menuBar, PAGE_START);\n\n\n\n frame.setVisible(true);\n }",
"private void setFrame()\r\n\t{\r\n\t\tthis.setName(\"Project 3\");\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setSize(300, 300);\r\n\t\tthis.setLocation(650, 100);\r\n\t\tthis.setVisible(false);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.add(panel, BorderLayout.CENTER);\r\n\t}",
"public DeanFrame(String ID) {\n\t\tthis.ID = ID;\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 900, 750);\n\t\tthis.setTitle(ID);\n\t\tcontentPane = new JPanel() ;\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tcontentPane.setBounds(0,0,900,750);\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\n\n\n\n\n//添加上栏的buttons\n\t\tJButton btnNewButton = new JButton(\"scu_educational management system\");\n\t\tbtnNewButton.setFont(new Font(\"Bookman Old Style\", Font.ITALIC, 18));\n\t\tbtnNewButton.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(0, 0, 372, 49);\n\t\tcontentPane.add(btnNewButton);\n\n\t\tJButton btnNewButton_1 = new JButton(\"\\u4F5C\\u606F\\u8868\");\n\t\tbtnNewButton_1.setFont(new Font(\"????\", Font.PLAIN, 17));\n\t\tbtnNewButton_1.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/clock.png\")));\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tWork_Rest frame=new Work_Rest();\n\t\t\t\tframe.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(516, 1, 122, 48);\n\t\tcontentPane.add(btnNewButton_1);\n\n\t\tJButton btnNewButton_2 = new JButton(\"\\u6B22\\u8FCE\\u56DE\\u6765\\uFF0C\\u5B66\\u751F\\u540D\\u5B57\");\n\t\tbtnNewButton_2.setFont(new Font(\"????\", Font.PLAIN, 17));\n\t\tbtnNewButton_2.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/user.png\")));\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setBounds(635, 1, 211, 48);\n\t\tcontentPane.add(btnNewButton_2);\n\n\t\tDate date=new Date();\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString time=sdf.format(date);\n\t\tJButton btnNewButton_3 = new JButton(time);\n\t\tbtnNewButton_3.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/calendar.png\")));\n\t\tbtnNewButton_3.setBounds(369, 1, 152, 49);\n\t\tcontentPane.add(btnNewButton_3);\n\n\n\n\n\n\n\n\n\n\t\t//����\n\t\tJButton btnNewButton_4 = new JButton(\"\\u7BA1\\u7406\\u9009\\u8BFE\");//����ѡ��\n\t\tbtnNewButton_4.setBounds(0, 46, 160, 42);\n\t\tcontentPane.add(btnNewButton_4);\n\t\tJList list = new JList();\n\t\tlist.setVisible(false);\n\t\tlist.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"\\u5BA1\\u6838\\u6559\\u5E08\\u8868\", \"\\u5F00\\u653E\\u9009\\u8BFE\", \"\\u5220\\u9664\\u9009\\u8BFE\\u6761\\u76EE\", \"\\u9009\\u8BFE\\u516C\\u544A\"};\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});\n\t\tlist.setBounds(0, 89, 160, 80);\n\t\tcontentPane.add(list);\n\n\n\t\tJButton btnNewButton_5 = new JButton(\"\\u7BA1\\u7406\\u4FE1\\u606F\");\n\t\tbtnNewButton_5.setBounds(0, 86, 160, 40);\n\t\tcontentPane.add(btnNewButton_5);\n\t\t\n\t\tJButton btnNewButton_6 = new JButton(\"\\u7BA1\\u7406\\u8003\\u52A1\");\n\t\tbtnNewButton_6.setBounds(0, 126, 160, 40);\n\t\tcontentPane.add(btnNewButton_6);\n\t\t\n\t\tJList list_1 = new JList();\n\t\tlist_1.setVisible(false);\n\t\tlist_1.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"\\u4FEE\\u6539\\u5B66\\u751F\\u4FE1\\u606F\", \"\\u4FEE\\u6539\\u6559\\u5E08\\u4FE1\\u606F\", \"\\u4FEE\\u6539\\u6559\\u52A1\\u5458\\u4FE1\\u606F\"};\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});\n\t\tlist_1.setBounds(0, 126, 160, 74);\n\t\tcontentPane.add(list_1);\n\t\t\n\t\tJList list_2 = new JList();\n\t\tlist_2.setVisible(false);\n\t\tlist_2.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"\\u67E5\\u770B\\u8003\\u8BD5\\u5B89\\u6392\", \"\\u5B89\\u6392\\u8003\\u8BD5\"};\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});\n\t\tlist_2.setBounds(0, 166, 160, 49);\n\t\tcontentPane.add(list_2);\n\t\tbtnNewButton_4.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/down.png\")));\n\t\tbtnNewButton_5.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/down.png\")));\n\t\tbtnNewButton_6.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/down.png\")));\n\n\t\tbtnNewButton_4.addActionListener(event->{\n\t\t\tif (state==false){\n\t\t\t\tlist.setVisible(true);\n\t\t\t\tbtnNewButton_4.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/up.png\")));\n\t\t\t\tbtnNewButton_5.setLocation(btnNewButton_5.getX(),btnNewButton_5.getY()+80);\n\t\t\t\tlist_1.setLocation(list_1.getX(),list_1.getY()+80);\n\t\t\t\tbtnNewButton_6.setLocation(btnNewButton_6.getX(),btnNewButton_6.getY()+80);\n\t\t\t\tlist_2.setLocation(list_2.getX(),list_2.getY()+80);\n\t\t\t\tstate=true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstate=false;\n\t\t\t\tlist.setVisible(false);\n\t\t\t\tbtnNewButton_4.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/down.png\")));\n\t\t\t\tbtnNewButton_5.setLocation(btnNewButton_5.getX(),btnNewButton_5.getY()-80);\n\t\t\t\tlist_1.setLocation(list_1.getX(),list_1.getY()-80);\n\t\t\t\tbtnNewButton_6.setLocation(btnNewButton_6.getX(),btnNewButton_6.getY()-80);\n\t\t\t\tlist_2.setLocation(list_2.getX(),list_2.getY()-80);\n\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_5.addActionListener(event->{\n\t\t\tif (state1==false){\n\n\t\t\t\tbtnNewButton_5.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/up.png\")));\n\t\t\t\tlist_1.setVisible(true);\n\t\t\t\tbtnNewButton_6.setLocation(btnNewButton_6.getX(),btnNewButton_6.getY()+74);\n\t\t\t\tlist_2.setLocation(list_2.getX(),list_2.getY()+74);\n\t\t\t\tstate1=true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbtnNewButton_5.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/down.png\")));\n\t\t\t\tlist_1.setVisible(false);\n\t\t\t\tbtnNewButton_6.setLocation(btnNewButton_6.getX(),btnNewButton_6.getY()-74);\n\t\t\t\tlist_2.setLocation(list_2.getX(),list_2.getY()-74);\n\t\t\t\tstate1=false;\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_6.addActionListener(event->{\n\t\t\tif (state3==false){\n\t\t\t\tbtnNewButton_6.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/up.png\")));\n\t\t\t\tlist_2.setVisible(true);\n\t\t\t\tstate3 = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbtnNewButton_6.setIcon(new ImageIcon(this.getClass().getClassLoader().getResource(\"Images/down.png\")));\n\t\t\t\tstate3=false;\n\t\t\t\tlist_2.setVisible(false);\n\t\t\t}\n\t\t});\n\n\n\t}",
"private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}",
"public SudoFrame() {\n topPanel = new JTabbedPane();\n bottomPanel = new JPanel();\n bottomPanel.setOpaque(false);\n\n paintButton();\n paintSudo();\n\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Soduku\");\n\n JPanel contentPaneBoss = new ContentPanel();\n this.setContentPane(contentPaneBoss);\n\n contentPaneBoss.setLayout(new BoxLayout(contentPaneBoss, BoxLayout.Y_AXIS));\n// contentPaneBoss.add(Box.createVerticalStrut(5));\n contentPaneBoss.add(topPanel);\n contentPaneBoss.add(Box.createVerticalStrut(5));\n contentPaneBoss.add(bottomPanel);\n contentPaneBoss.add(Box.createVerticalStrut(5));\n\n this.setBounds(900, 100, 450, 450);\n // this.pack();\n// this.setResizable(false);\n this.setVisible(true);\n }",
"public FrameCadastro(String tipo[]){\r\n\t\tsuper(\"ApartManager-Cadastro\");\r\n\t\t\r\n\t\tPanelCadastro panelC = new PanelCadastro(tipo);\r\n\t\t\r\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\r\n\t\tsetSize(700, 700);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetVisible(true);\r\n\t\tsetResizable(false);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tsetContentPane(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\tpanelC.setBounds(0, 0, 700, 700);\r\n\t\tpanel.add(panelC);\r\n\t\tpanel.setVisible(true);\r\n\t}",
"public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }",
"public void setContent (ZFrame frame)\n {\n if (content != null)\n content.destroy ();\n content = frame;\n }",
"public void setContent (ZFrame frame)\n {\n if (content != null)\n content.destroy ();\n content = frame;\n }",
"public FrameControl() {\n initComponents();\n }",
"public addStFrame() {\n initComponents();\n }",
"private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }",
"private void prepareFrame() {\n logger.debug(\"prepareFrame : enter\");\n\n // initialize the actions :\n registerActions();\n final Container container;\n\n if (Bootstrapper.isHeadless()) {\n container = null;\n } else {\n final JFrame frame = new JFrame(ApplicationDescription.getInstance().getProgramName());\n\n // handle frame icon\n final Image jmmcFavImage = ResourceImage.JMMC_FAVICON.icon().getImage();\n frame.setIconImage(jmmcFavImage);\n\n // get screen size to adjust minimum window size :\n final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n logger.info(\"screen size = {} x {}\", screenSize.getWidth(), screenSize.getHeight());\n // hack for screens smaller than 1024x768 screens:\n final int appWidth = 950;\n final int appHeightMin = (screenSize.getHeight() >= 850) ? 800 : 700;\n\n final Dimension dim = new Dimension(appWidth, appHeightMin);\n frame.setMinimumSize(dim);\n frame.addComponentListener(new ComponentResizeAdapter(dim));\n frame.setPreferredSize(INITIAL_DIMENSION);\n\n App.setFrame(frame);\n\n container = frame.getContentPane();\n }\n // init the main panel:\n createContent(container);\n\n StatusBar.show(\"application started.\");\n\n logger.debug(\"prepareFrame : exit\");\n }",
"public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"public TamanhoInternalFrameTest() {\r\n initComponents();\r\n setExtendedState(java.awt.Frame.MAXIMIZED_BOTH); // iniciar com tela full\r\n}",
"private void insertNewInternalFrame(JInternalFrame treeDisplay) {\n jInternalFrameTree = treeDisplay;\n jLayeredPane1.add(jInternalFrameTree, JLayeredPane.PALETTE_LAYER);\n jInternalFrameTree.setMaximizable(true);\n jInternalFrameTree.setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE);\n jInternalFrameTree.setIconifiable(true);\n jInternalFrameTree.setClosable(true);\n jInternalFrameTree.setVisible(true);\n jInternalFrameTree.addMouseListener(new MouseAdapter(){\n public void mouseClicked(MouseEvent event){\n doMouseClicked(event);\n }\n\n private void doMouseClicked(MouseEvent event) {\n if(event.getButton() == MouseEvent.BUTTON3 && event.getComponent().getParent().getParent() instanceof JSplitPane){\n jInternalFrameTree = ((JInternalFrame)event.getComponent());\n JPopupMenu jPopupMenu = new JPopupMenu();\n JMenuItem jMenuItem = new JMenuItem(\"Window Preview\");\n jPopupMenu.add(jMenuItem);\n jMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n setNewWindowEnabled(false);\n }\n\n private void setNewWindowEnabled(boolean b) {\n JFrame frame = new JFrame();\n JMenuBar jMenuBar = new JMenuBar();\n JMenu jMenu = new JMenu(\"Restore size\");\n jMenu.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent event){\n jMenuSelected(event);\n }\n\n private void jMenuSelected(MouseEvent event) {\n if(event.getComponent() instanceof JMenu){\n Container container = event.getComponent().getParent().getParent().getParent();\n jInternalFrameTree = new JInternalFrame(((JFrame)event.getComponent().getParent().getParent().getParent().getParent()).getTitle());\n jInternalFrameTree.setToolTipText(\"teste\");\n //jInternalFrameTree.add(null);\n insertNewInternalFrame(jInternalFrameTree);\n }\n }\n });\n jMenuBar.add(jMenu);\n frame.setJMenuBar(jMenuBar);\n frame.setTitle(jInternalFrameTree.getTitle());\n frame.add(jInternalFrameTree.getContentPane());\n try {\n jInternalFrameTree.setClosed(true);\n } catch (PropertyVetoException ex) {\n Logger.getLogger(Tool.class.getName()).log(Level.SEVERE, null, ex);\n }\n //jInternalFrameTree.dispose();\n //jInternalFrameTree = null;\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.setSize(800, 800);\n frame.setVisible(true);\n }\n });\n jPopupMenu.show(event.getComponent(), event.getX(), event.getY());\n }\n }\n });\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 1280, 720);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnBack = new JButton(\"Back\");\r\n\t\tbtnBack.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tPrincipal window = new Principal();\r\n\t\t\t\t\twindow.frame.setVisible(true);\r\n\t\t\t\t} catch (Exception a) {\r\n\t\t\t\t\ta.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnBack.setBounds(26, 28, 171, 41);\r\n\t\tframe.getContentPane().add(btnBack);\r\n\t}",
"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 limpaFrameInicial ()\n {\n this.getContentPane().remove(jPanelApresentacao);\n this.repaint();\n }",
"public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }",
"public void addChildFrame(JFrame frame);",
"public void switchFrameToContent()\r\n\t{\r\n\t\tdriver.switchTo().defaultContent();\r\n\t\tSync.waitForFrame(driver, \"ContentWin Frame\", \"contentWin\", 6);\r\n\t\tSync.waitForFrame(driver, \"_yuiResizeMonitor Frame\", \"_yuiResizeMonitor\", 6);\t\t\r\n\t}",
"private JFrame getJFrame() {\n\t\tif (jFrame == null) {\n\t\t\tjFrame = new JFrame();\n\t\t\tjFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tjFrame.setJMenuBar(getJJMenuBar());\n\t\t\tjFrame.setSize(400, 200);\n\t\t\tjFrame.setContentPane(getJContentPane());\n\t\t\tjFrame.setTitle(\"Mancala\");\n\t\t}\n\t\treturn jFrame;\n\t}",
"public FrameInsert() {\n initComponents();\n }",
"public frameTermino() {\n initComponents();\n conCategorias = false;\n }",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }",
"public void buildFrame();",
"public FirstNewFrame() {\n\t\tjbInit();\n\t}",
"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}",
"private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }",
"private void agregarAlPanel(JInternalFrame frame)\n\t{\n\t\tframe.setBounds(10 * (contentPane.getAllFrames().length + 1), 50 + (10 * (contentPane.getAllFrames().length + 1)), (int)frame.getBounds().getWidth(), (int)frame.getBounds().getHeight());\n\t\tcontentPane.add(frame);\n\t\tframe.moveToFront();\n\t}",
"public NslmEditorFrame(SchEditorFrame fm, Module module) {\n\n\tsuper(\"Nslm\"); // initialize the EditorFrame\n\tsetLocation(new Point(100,100));\n\t//setSize(800,1000); //not working\n\t//todo: query the screen size\n\n\tparentFrame=fm;\n okCancelPopup=new WarningDialogOkCancel(this); \n\tsetTitle(\"NSLM Editor\");\n\tif (module!=null) {\n\t boolean found=executiveFrame.windowsAndModulesOpen.contains(\"Nslm\",module);\n\t if (!found) {\n\t\tcurrModule=module;\t\t\n\t } else {//found\n\t\twarningPopup.display(\"IconEditorFrame: that module already open in an Icon Editor\");\n\t currModule=null;\n\t }\n\t} else {\n\t currModule=null;\n\t}\n\n\tif (module != null) {\n\t setTitle(\"NSLM Editor: Module \"+currModule.moduleName);\n\t} else {\n\t setTitle(\"NSLM Editor\");\n\t}\n\n\t//The setting of the background was too anoying for now - on off button /// panel did not get the get the background color.\n\t// Need seperate background color for NSLM Editor window -not black\n\t//\tNslmEditorPanel.drawBack_col = SCSUtility.returnCol(UserPref.drawBackgroundColor );\n\t//\tNslmEditorPanel.noActionTakenBack_col = SCSUtility.returnCol(UserPref.noActionTakenBackgroundColor );\n\t//\tNslmEditorPanel.currBackgroundCol=NslmEditorPanel.noActionTakenBack_col;\n\n \n // Graphics -----------------------------\n\tBorderLayout borderlayout1=new BorderLayout(); //layout of frame\n\tgetContentPane().setLayout(borderlayout1);\n\t// nslmMenuBar -----------------------------\n // File and Help\n\t// add to Center and will appear by default in a vertical manner\n\tnslmMenuBar=createNslmMenuBar();\n setJMenuBar(nslmMenuBar); \n\t//getContentPane().setMenuBar(nslmMenuBar); \n\t//add(nslmMenuBar,BorderLayout.NORTH); //add to this frame\n\t// myNslmEditorPanel -----------------------------\n\tmyNslmEditorPanel = new JPanel();\n\tcreateNslmPanel(myNslmEditorPanel);\n\n\tmyNslmPane = new JScrollPane(myNslmEditorPanel,ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\tgetContentPane().add(myNslmPane,BorderLayout.CENTER); //add to this frame\n\tmyNslmEditorPanel.setVisible(false);\n\t//myStatusPanel -----------------------------\n\tmyStatusPanel = new StatusPanel();\n\tgetContentPane().add(myStatusPanel,BorderLayout.SOUTH); //add to this frame\n\n\t// myNslmEditorPanel.setBackground(NslmEditorPanel.currBackgroundCol);\n\t\n\taddWindowListener(new DWAdapter()); //from EditorFrame\n\tmessagePopup = new MessageDialog(this);\n\n //-------\n\t// Now see if there was already a module open from Sch or Icon\n\tif (currModule==null) {\n\t return;\n\t}\n\tif (currModule.myNslm==null) {\n\t //System.out.println(\"Debug:NslmEditorFrame: constructor and non null currModule\");\n\t boolean worked=executiveFrame.windowsAndModulesOpen.addInPieces(\"Nslm\",currModule);\n\t finishNew();\n\t setTitle(\"Nslm Editor: \"+currModule.moduleName);\n\t return;\n\t}\n\t//a NSLM view exists by that name\n\t//System.out.println(\"Debug:NslmEditorFrame: constructor and non null currIcon\");\n boolean worked=executiveFrame.windowsAndModulesOpen.addInPieces(\"Nslm\",currModule);\n\tfinishOpen();\n\tsetTitle(\"Nslm Editor: \"+currModule.moduleName);\n\t\n\t\n\n }",
"private void createAndInitPictureFrame() {\r\n frame = new com.FingerVeinScanner.Frame(picture,picture2);\r\n\t\tthis.pictureFrame = frame.getFrame(); // Create the JFrame.\r\n\t\tthis.pictureFrame.setResizable(true); // Allow the user to resize it.\r\n\t\tthis.pictureFrame.getContentPane().\r\n\t\tsetLayout(new BorderLayout()); // Use border layout.\r\n\t\tthis.pictureFrame.setDefaultCloseOperation\r\n\t\t(JFrame.DISPOSE_ON_CLOSE); // When closed, stop.\r\n\t\tthis.pictureFrame.setTitle(picture.getTitle());\r\n\t\t//PictureExplorerFocusTraversalPolicy newPolicy =\r\n\t\t//\tnew PictureExplorerFocusTraversalPolicy();\r\n\t\t//this.pictureFrame.setFocusTraversalPolicy(newPolicy);\r\n\t}",
"public void zeigeFenster()\r\n {\r\n _frame.setSize(479, 293);\r\n _frame.setVisible(true);\r\n }",
"public MainFrame(){\n super(\"Across Madrid\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setBounds(100,100,700,500);\n\n contentPane = new JPanel(new CardLayout());\n setContentPane(contentPane);\n \n fillContentPane();\n }",
"private void basicUIButtonActionPerformed() {\n dbCopyFrame basicFrame = new dbCopyFrame(mainFrame, true);\n basicFrame.pack();\n basicFrame.setVisible(true);\n }",
"public void rebuildFrame(){\n \n // Re-initialize frame with default attributes\n controlFrame.dispose();\n controlFrame = buildDefaultFrame(\"CSCI 446 - A.I. - Montana State University\");\n \n // Initialize header with default attributes\n header = buildDefaultHeader();\n \n // Initialize control panel frame with default attributes\n controlPanel = buildDefaultPanel(BoxLayout.Y_AXIS);\n \n // Combine objects\n controlPanel.add(header, BorderLayout.NORTH);\n controlFrame.add(controlPanel);\n \n }",
"@Override\n\tpublic JPanel createContentPane() {\n\t\t// Fabriken holen\n\t\tGridBagConstraintsFactory gbcf = GridBagConstraintsFactory.getInstance();\n\t\tWidgetFactory wf = WidgetFactory.getInstance();\n\t\t// Widgets erzeugen\n\t\tJPanel panel = wf.getContentPane(\"MainFrame\", true);\n\t\tpanel.add(createPanelStoredServices(), gbcf.getTableConstraints(0, 1, 1, 1));\n\t\tpanel.add(createPanelEditService(), gbcf.getTableConstraints(0, 2, 1, 1));\n\t\treturn panel;\n\t}",
"public MFrame() {\n this.setTitle(\"Sistema Punto de Venta\");\n this.setLocationRelativeTo(null);\n this.setSize(new Dimension(800,600));\n this.setResizable(true);\n this.setVisible(true);\n initComponents();\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }",
"public Frame(String title) {\r\n\t\tframeSettings(title);\r\n\r\n\t\tdeserializeBG();\r\n\r\n\t\t// PANEL DU HAUT\r\n\t\tsmartphone.add(bannerPanel, BorderLayout.NORTH);\r\n\r\n\t\t/* Design but not visible - START */\r\n\t\t/* Panels left & right - Definition of screen margins (background) */\r\n\t\tsmartphone.add(leftPanel, BorderLayout.WEST);\r\n\t\tsmartphone.add(rightPanel, BorderLayout.EAST);\r\n\t\tleftPanel.setOpaque(false);\r\n\t\trightPanel.setOpaque(false);\r\n\r\n\t\tpanL.setLayout(new FlowLayout(0, 7, 0));\r\n\t\tleftPanel.add(panL);\r\n\t\tpanL.setOpaque(false);\r\n\r\n\t\tpanR.setLayout(new FlowLayout(0, 7, 0));\r\n\t\trightPanel.add(panR);\r\n\t\tpanR.setOpaque(false);\r\n\t\t/* Design but not visible - END */\r\n\r\n\t\t/* South panel */\r\n\t\tsmartphone.add(southPanel, BorderLayout.SOUTH);\r\n\t\tsouthPanel.setOpaque(false);\r\n\r\n\t\tsouthPanel.setLayout(new BorderLayout());\r\n\r\n\t\tsouthPanel.add(southMenu);\r\n\r\n\t\tsouthMenu.setLayout(new FlowLayout(FlowLayout.CENTER, 50, 11));\r\n\t\tsouthMenu.setOpaque(false);\r\n\t\tsouthMenu.add(iconEmpty);\r\n\t\tsouthMenu.add(iconHome);\r\n\t\tsouthMenu.add(iconEmpty2);\r\n\r\n\t\tsouthPanel.add(southMenu);\r\n\r\n\t\t/* Main screen */\r\n\t\tsmartphone.add(switchPanel);\r\n\t\tswitchPanel.add(centerPanel, \"mainpanel\");\r\n\r\n\t\tcenterPanel.setLayout(new BorderLayout());\r\n\t\tcenterPanel.setPreferredSize(new Dimension(480, 40));\r\n\r\n\t\t/* Adding background to the center panel */\r\n\t\tcenterPanel.add(background, BorderLayout.CENTER);\r\n\r\n\t\t/* Allows you to add the correct spacing for applications */\r\n\t\tbackground.setLayout(new FlowLayout(30, 50, 80));\r\n\r\n\t\t// AJOUTER LES ICONS SUR LE BACKGROUND\r\n\t\tbackground.add(iconGallery);\r\n\t\tbackground.add(iconContact);\r\n\t\tbackground.add(iconCalculator);\r\n\r\n\t\tbackground.add(iconClock);\r\n\t\tbackground.add(iconMusic);\r\n\t\tbackground.add(iconShutdown);\r\n\r\n\t\tbackground.add(iconSettings);\r\n\r\n\t\tbackground.setOpaque(false);\r\n\r\n\t\t/* Listeners for functions */\r\n\t\ticonHome.addActionListener(new Home());\r\n\t\ticonShutdown.addActionListener(new Shutdown());\r\n\r\n\t\t/* Listeners for applications */\r\n\t\ticonGallery.addActionListener(new RunGallery());\r\n\t\ticonClock.addActionListener(new RunClock());\r\n\t\ticonMusic.addActionListener(new RunMusic());\r\n\t\ticonContact.addActionListener(new RunContact());\r\n\t\ticonSettings.addActionListener(new RunSettings());\r\n\t\ticonCalculator.addActionListener(new RunCalculator());\r\n\r\n\t\t/* Adding applications to the switchpanel */\r\n\t\tswitchPanel.add(musicpanel, \"musicpanel\");\r\n\t\tswitchPanel.add(clockpanel, \"clockpanel\");\r\n\t\tswitchPanel.add(contactpanel, \"contactpanel\");\r\n\t\tswitchPanel.add(settingspanel, \"settingspanel\");\r\n\t\tswitchPanel.add(calculatorpanel, \"calculatorpanel\");\r\n\t\tswitchPanel.add(gallerypanel, \"gallerypanel\");\r\n\r\n\t\t/* Adding the smartphone in the main frame */\r\n\t\tthis.add(smartphone);\r\n\t}",
"public VorhabenUebersicht(JFrame frame) {\n this.frame = frame;\n centerPanel = new JTabbedPane();\n centerPanel.setPreferredSize(new Dimension(700, 500));\n dialogBauen();\n }",
"public Badminton()\n { \n frame.add(new Board()); \n frame.setSize(900, 900);\n frame.setResizable(false);\n frame.setTitle(\"PE Class\");\n //frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }",
"public MainFrame() {\n initComponents();\n setLocationRelativeTo(null); \n btnHome.setBackground(Color.CYAN);\n btnHome.setSelected(rootPaneCheckingEnabled);\n }",
"private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\n\t\tJLabel lblDesignCopyrights = new JLabel(\"design copyrights \\u00A9 chinmaya\");\n\t\tlblDesignCopyrights.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\n\t\tlblDesignCopyrights.setForeground(new Color(255, 255, 224));\n\t\tlblDesignCopyrights.setBounds(1711, 1018, 183, 23);\n\t\tframe.getContentPane().add(lblDesignCopyrights);\n\t\t\n\t\tJPanel background = new JPanel();\n\t\tbackground.setLayout(null);\n\t\tbackground.setBackground(Color.DARK_GRAY);\n\t\tbackground.setBounds(14, 200, 1880, 809);\n\t\tframe.getContentPane().add(background);\n\t\t\n\t\t\n\t\tJLabel lblTypesOfMachine = new JLabel(\"MACHINE NAME\");\n\t\tlblTypesOfMachine.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblTypesOfMachine.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTypesOfMachine.setForeground(Color.WHITE);\n\t\tlblTypesOfMachine.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblTypesOfMachine.setBounds(69, 378, 178, 30);\n\t\tbackground.add(lblTypesOfMachine);\n\t\t\n\t\t\n\t\tJLabel lblAppointment = new JLabel(\"LIST TO DO\");\n\t\tlblAppointment.setForeground(Color.WHITE);\n\t\tlblAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblAppointment.setBounds(69, 117, 319, 48);\n\t\tbackground.add(lblAppointment);\n\t\t\n\t\tJLabel lblQuantity = new JLabel(\"QUANTITY\");\n\t\tlblQuantity.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblQuantity.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuantity.setForeground(Color.WHITE);\n\t\tlblQuantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblQuantity.setBounds(69, 428, 178, 30);\n\t\tbackground.add(lblQuantity);\n\t\t\n\t\tPanel panel = new Panel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setBounds(0, 30, 1880, 67);\n\t\tbackground.add(panel);\n\t\t\n\t\tJButton cusbtn = new JButton(\"CUSTOMER\");\n\t\tcusbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t customer cr = new customer();\n\t\t cr.csStart();\n\t\t frame.dispose();\n\t\t\t}\n\t\t});\n\t\tcusbtn.setForeground(Color.WHITE);\n\t\tcusbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcusbtn.setBackground(Color.BLACK);\n\t\tcusbtn.setBounds(1257, 11, 613, 44);\n\t\tpanel.add(cusbtn);\n\t\t\n\t\tJButton bilbtn = new JButton(\"INVOICE\");\n\t\tbilbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tadminInvoice inv= new adminInvoice();\n\t\t\t\tinv. adminInvoiceStart();\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\t\t});\n\t\tbilbtn.setForeground(Color.WHITE);\n\t\tbilbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbilbtn.setBackground(Color.BLACK);\n\t\tbilbtn.setBounds(633, 11, 613, 44);\n\t\tpanel.add(bilbtn);\n\t\t\n\t\tJButton prdbtn = new JButton(\"PRODUCTS\");\n\t\tprdbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tadminproducts prd = new adminproducts();\n\t\t\t\tprd.adminPrd();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprdbtn.setForeground(Color.WHITE);\n\t\tprdbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tprdbtn.setBackground(Color.BLACK);\n\t\tprdbtn.setBounds(10, 11, 613, 44);\n\t\tpanel.add(prdbtn);\n\t\t\n\t\tJLabel lblCustomerName = new JLabel(\"CUSTOMER NAME\");\n\t\tlblCustomerName.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblCustomerName.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblCustomerName.setForeground(Color.WHITE);\n\t\tlblCustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblCustomerName.setBounds(69, 278, 178, 30);\n\t\tbackground.add(lblCustomerName);\n\t\t\n\t\tJLabel lblMachineType = new JLabel(\"MACHINE TYPE\");\n\t\tlblMachineType.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblMachineType.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblMachineType.setForeground(Color.WHITE);\n\t\tlblMachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblMachineType.setBounds(69, 328, 178, 30);\n\t\tbackground.add(lblMachineType);\n\t\t\n\t\t\n\t\tJButton btnStore = new JButton(\"STORE\");\n\t\tbtnStore.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tString dateEntry=date.getText();\n\t\t\t\tString cusname= customerName.getText();\t\n\t\t\t\tString machType=machineType.getText();\n\t\t\t\tString machName=machineName.getText();\n\t\t\t\tString quan=quantity.getText();\n\t\t\t\tString dl= deadline.getText();\n\t\t\t\tConnection con;\n\t\t\t\tPreparedStatement insert;\n\t\t\t\t\n\t\t\t\tif(dateEntry.isEmpty()||cusname.isEmpty()||machName.isEmpty()||machType.isEmpty()||quan.isEmpty()||dl.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"no field must be left empty\",\"registration error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\t\n\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Appointment added!!\");\n\t\t\t\t}\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t\t\t\tinsert = con.prepareStatement(\"insert into appointment (date,cusname,machType,machName,quan,deadline) values (?,?,?,?,?,?)\");\n\t\t insert.setString(1, dateEntry);\n\t\t insert.setString(2, cusname);\n\t\t insert.setString(3, machType);\n\t\t insert.setString(4, machName);\n\t\t insert.setString(5, quan);\n\t\t insert.setString(6, dl);\n\t\t insert.executeUpdate();\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnStore.setForeground(Color.WHITE);\n\t\tbtnStore.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnStore.setBackground(Color.BLACK);\n\t\tbtnStore.setBounds(580, 578, 116, 44);\n\t\tbackground.add(btnStore);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setBounds(1000, 230, 613, 267);\n\t\tbackground.add(scrollPane);\n\t\t\n\t\tinvoice = new JTable();\n\t\tscrollPane.setViewportView(invoice);\n\t\t\n\t\tJLabel lblInvoice = new JLabel(\"VIEW TO-DO LIST\");\n\t\tlblInvoice.setForeground(Color.WHITE);\n\t\tlblInvoice.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblInvoice.setBounds(1010, 117, 387, 48);\n\t\tbackground.add(lblInvoice);\n\t\t\n\t\tquantity = new JTextField();\n\t\tquantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tquantity.setColumns(10);\n\t\tquantity.setBounds(279, 428, 289, 30);\n\t\tbackground.add(quantity);\n\t\t\n\t\tmachineName = new JTextField();\n\t\tmachineName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineName.setColumns(10);\n\t\tmachineName.setBounds(279, 328, 289, 30);\n\t\tbackground.add(machineName);\n\t\t\n\t\tmachineType = new JTextField();\n\t\tmachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineType.setColumns(10);\n\t\tmachineType.setBounds(279, 378, 289, 30);\n\t\tbackground.add(machineType);\n\t\t\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(279, 278, 289, 30);\n\t\tbackground.add(customerName);\n\t\t\n\t\tJLabel deadlineLbl = new JLabel(\"DEADLINE\");\n\t\tdeadlineLbl.setVerticalAlignment(SwingConstants.TOP);\n\t\tdeadlineLbl.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tdeadlineLbl.setForeground(Color.WHITE);\n\t\tdeadlineLbl.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tdeadlineLbl.setBounds(69, 481, 178, 30);\n\t\tbackground.add(deadlineLbl);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"DATE\");\n\t\tlblDate.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblDate.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblDate.setForeground(Color.WHITE);\n\t\tlblDate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblDate.setBounds(69, 228, 178, 30);\n\t\tbackground.add(lblDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(279, 228, 289, 30);\n\t\tbackground.add(date);\n\t\t\n\t\tJButton btnView = new JButton(\"VIEW\");\n\t\tbtnView.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tConnection con = null;\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t String query=\"select * from appointment \";\n\t\t\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnView.setForeground(Color.WHITE);\n\t\tbtnView.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnView.setBackground(Color.BLACK);\n\t\tbtnView.setBounds(1584, 578, 116, 44);\n\t\tbackground.add(btnView);\n\t\t\n\t\tdeadline = new JTextField();\n\t\tdeadline.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdeadline.setColumns(10);\n\t\tdeadline.setBounds(279, 481, 289, 30);\n\t\tbackground.add(deadline);\n\t\t\n\t\tJPanel header = new JPanel();\n\t\theader.setLayout(null);\n\t\theader.setBackground(Color.DARK_GRAY);\n\t\theader.setBounds(14, 23, 1880, 163);\n\t\tframe.getContentPane().add(header);\n\t\t\n\t\tJPanel mwtitle = new JPanel();\n\t\tmwtitle.setLayout(null);\n\t\tmwtitle.setForeground(Color.WHITE);\n\t\tmwtitle.setBackground(Color.BLACK);\n\t\tmwtitle.setBounds(209, 7, 649, 151);\n\t\theader.add(mwtitle);\n\t\t\n\t\tJLabel label = new JLabel(\"MACHINE WORKS\");\n\t\tlabel.setForeground(Color.WHITE);\n\t\tlabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 69));\n\t\tlabel.setBounds(20, 11, 605, 72);\n\t\tmwtitle.add(label);\n\t\t\n\t\tJLabel lblWhereAllThe = new JLabel(\"Where all the WORK is done by MACHINE\");\n\t\tlblWhereAllThe.setForeground(Color.ORANGE);\n\t\tlblWhereAllThe.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblWhereAllThe.setBounds(38, 94, 581, 48);\n\t\tmwtitle.add(lblWhereAllThe);\n\t\t\n\t\tJLabel logolbl = new JLabel(\"\");\n\t\tlogolbl.setIcon(new ImageIcon(\"C:\\\\Users\\\\CHINMAYA SH\\\\Pictures\\\\download.png\"));\n\t\tlogolbl.setBounds(58, 7, 151, 151);\n\t\theader.add(logolbl);\n\t\t\n\t\tJButton lgbtn = new JButton(\"LOGOUT\");\n\t\tlgbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged out Successfull !!\");\n\t\t\t\tindex ind = new index();\n\t\t\t\tind.indexStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tlgbtn.setForeground(Color.WHITE);\n\t\tlgbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tlgbtn.setBackground(Color.BLACK);\n\t\tlgbtn.setBounds(1674, 60, 116, 44);\n\t\theader.add(lgbtn);\n\t\t\n\t\tJButton button_1 = new JButton(\"SIGN UP\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tsignup sg = new signup();\n\t\t\t\tsg.signupStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbutton_1.setForeground(Color.WHITE);\n\t\tbutton_1.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbutton_1.setBackground(Color.BLACK);\n\t\tbutton_1.setBounds(1488, 60, 116, 44);\n\t\theader.add(button_1);\n\t\t\n\t\tJButton btnAppointment = new JButton(\"TO-DO\");\n\t\tbtnAppointment.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tappointments ap = new appointments();\n\t\t\t\tap.appointmentList();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnAppointment.setForeground(Color.WHITE);\n\t\tbtnAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnAppointment.setBackground(Color.BLACK);\n\t\tbtnAppointment.setBounds(1309, 60, 125, 44);\n\t\theader.add(btnAppointment);\n\t\tframe.setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1920\t, 1080);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\n\t}",
"private void initMainFrame(){\n \n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n this.setSize(MAINFRAMESIZE);\n BoxLayout bl = new BoxLayout(getContentPane(), BoxLayout.Y_AXIS);\n this.getContentPane().setLayout(bl);\n this.setPreferredSize(MAINFRAMESIZE);\n this.setResizable(false);\n this.pack();\n }",
"public void addFrame(GInternalFrame internalFrame) {\r\n\t\tinternalFrame.setDesktopPane(this);\r\n\t\tint spos = (frames.size() + 1) * 12;\r\n\t\tint left = getFrame().getAbsoluteLeft() + spos;\r\n\t\tint top = getFrame().getAbsoluteTop() + spos;\r\n\r\n\t\t// System.out.println(\"HippoDesktopPane.add frame gf.absleft \" +\r\n\t\t// getFrame().getAbsoluteLeft() + \" gf.abstop \"\r\n\t\t// + getFrame().getAbsoluteTop() + \" \" + spos);\r\n\r\n\t\tSelectBoxManagerImpl selectBoxManager = ((DefaultGFrame) internalFrame)\r\n\t\t\t\t.getSelectBoxManager();\r\n\t\tif (selectBoxManager instanceof SelectBoxManagerImplIE6) {\r\n\t\t\tgetFrame().add(selectBoxManager.getBlockerWidget(), left, top);\r\n\t\t}\r\n\t\tgetFrame().add((Widget) internalFrame);\r\n\t\tinternalFrame.setLocation(left, top);\r\n\r\n\t\t// NOTE needed to add this to get the windwos to pop ontop of the ocean\r\n\t\tDOM.setStyleAttribute(((DefaultGInternalFrame) internalFrame).getElement(), \"position\",\r\n\t\t\t\t\"absolute\");\r\n\r\n\t\tframes.add(internalFrame);\r\n\r\n\t\t// internalFrame.setTheme(theme);\r\n\t}",
"public ControlFrame addControlFrame(String theName, int theWidth, int theHeight) {\n Frame f = new Frame(theName);\n ControlFrame p = new ControlFrame(this, theWidth, theHeight);\n f.add(p);\n p.init();\n f.setTitle(theName);\n f.setSize(p.w, p.h);\n f.setLocation(50, 250);\n f.setResizable(false);\n f.setVisible(true);\n return p;\n}",
"public TermoFrame() throws IOException, URISyntaxException {\n this.setContentPane(new Fundo());\n initComponents();\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 FrameEjercicio1() {\n super(\"Control de Ratón\");\n setLayout(new FlowLayout());\n setFocusable(true);\n\n class MouseHandler extends MouseAdapter { // Uso el adaptador para no escribir funciones vacías\n\n @Override\n public void mouseExited(MouseEvent e) {\n setTitle(titulo);\n }\n\n @Override\n public void mouseMoved(MouseEvent e) {\n\n if(e.getSource().getClass() == JButton.class){\n setTitle(String.format(titulo + \" - (X:%d Y:%d)\", e.getX() + (int)((JButton)e.getSource()).getBounds().getX(), e.getY() + (int)((JButton)e.getSource()).getBounds().getY())); \n }\n else{\n setTitle(String.format(titulo + \" - (X:%d Y:%d)\", e.getX(), e.getY()));\n }\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON1) {\n btnClickIzquierdo.setBackground(colorFondoBotones);\n } else if (e.getButton() == MouseEvent.BUTTON3) {\n btnClickDerecho.setBackground(colorFondoBotones);\n }\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n btnClickIzquierdo.setBackground(null);\n btnClickDerecho.setBackground(null);\n }\n }\n\n MouseHandler mh = new MouseHandler(); // Creo el MouseHandler\n // Añado los listeners al ContentPane\n getContentPane().addMouseListener(mh);\n getContentPane().addMouseMotionListener(mh);\n \n addKeyListener(this); // Añado el KeyListener\n\n btnClickIzquierdo = new JButton(\"Click Izquierdo\");\n btnClickIzquierdo.setSize(btnClickIzquierdo.getPreferredSize());\n btnClickIzquierdo.addMouseMotionListener(mh); // También añado el MotionListener a los botones para que muestre las coordenadas aún cuando esté encima de ellos\n add(btnClickIzquierdo);\n\n btnClickDerecho = new JButton(\"Click Derecho\");\n btnClickDerecho.setSize(btnClickDerecho.getPreferredSize());\n btnClickDerecho.addMouseMotionListener(mh);\n add(btnClickDerecho);\n\n lblTeclas = new JLabel(\"Teclas\");\n lblTeclas.setSize(lblTeclas.getPreferredSize());\n add(lblTeclas);\n\n }",
"private JFrame getHlavneOkno() {\n\t\tif (hlavneOkno == null) {\n\t\t\thlavneOkno = new JFrame();\n\t\t\thlavneOkno.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\thlavneOkno.setBackground(new Color(238, 238, 238));\n\t\t\thlavneOkno.setResizable(true);\n\t\t\thlavneOkno.setLocation(new Point(200, 100));\n\t\t\thlavneOkno.setJMenuBar(getMenuLista());\n\t\t\thlavneOkno.setSize(571, 551);\n\t\t\thlavneOkno.setContentPane(getHlavneOknoObsah());\n\t\t\thlavneOkno.setTitle(\"SluchAnal v1.0\");\n\t\t}\n\t\treturn hlavneOkno;\n\t}",
"private void changeFrame() {\n\t\t\n\t\tselected.setVisible(!selected.isVisible());\n\t}",
"public static void changeFrame() {\r\n\t\t\r\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n if(e.getSource()==backButton){\r\n HomeFrame frame=new HomeFrame();\r\n frame.setTitle(\"Home Form\");\r\n frame.setVisible(true);\r\n frame.setBounds(10,10,370,500);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setResizable(false);\r\n this.dispose();\r\n \r\n }\r\n else if(e.getSource()==addButton){\r\n if(!debit.isSelected() && !credit.isSelected()){\r\n JOptionPane.showMessageDialog(this, \"Please select type of payment.\");\r\n }else{\r\n try {\r\n AddMoneyFrame frame;\r\n frame = new AddMoneyFrame();\r\n frame.setTitle(\"Verification Form\");\r\n frame.setVisible(true);\r\n frame.setBounds(10,10,370,500);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setResizable(false);\r\n this.dispose();\r\n } catch (ParseException ex) {\r\n Logger.getLogger(WalletFrame.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch(Exception ex){\r\n System.err.print(ex);\r\n }\r\n }\r\n \r\n \r\n }\r\n else{\r\n throw new UnsupportedOperationException(\"Not supported yet.\");\r\n \r\n }\r\n \r\n \r\n }",
"private static JFrame createFrame(){\n\t\t// Create the frame of the demonstration.\n\t\tJFrame demoFrame = new JFrame(\"Dock effect demonstration frame.\");\n\t\tdemoFrame.setSize(new Dimension(800, 600));\n\t\tdemoFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t// Create the content pane of the frame.\n\t\tJPanel contentPane = new JPanel();\n\t\tdemoFrame.setContentPane(contentPane);\n\t\t\n\t\t// Create and add the docking area of the demonstration.\n\t\tDockEffectPanel<JPanel> dockEffectPanel = createDockEffectPanel();\n\t\tdockEffectPanel.setBorder(BorderFactory.createEtchedBorder()); // Put a border on the dock effect panel\n\t\t\n\t\t// Create the layout of the docking area.\n\t\tGroupLayout layout = new GroupLayout(contentPane);\n\t\tcontentPane.setLayout(layout);\n\t\tlayout.setHorizontalGroup(layout.createSequentialGroup()\n\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t\t.addComponent(dockEffectPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t);\n\t\tlayout.setVerticalGroup(layout.createSequentialGroup()\n\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t\t.addComponent(dockEffectPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t);\n\t\t\n\t\treturn demoFrame;\n\t}",
"public MercadoFrame() {\n initComponents();\n }",
"private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }",
"public FrameOpcoesAgenda() {\n initComponents();\n }",
"public HomeFrame() {\n super();\n\n this.setSize(400, 80);\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n this.setTitle(\"Reed-Muller code sending simulator\");\n JPanel panel = new JPanel();\n\n JButton sendVector = new JButton();\n sendVector.setText(\"Vector\");\n sendVector.addActionListener(e -> new VectorFrame());\n\n JButton sendText = new JButton();\n sendText.setText(\"Text\");\n sendText.addActionListener(e -> new TextFrame());\n\n panel.add(sendVector);\n panel.add(sendText);\n\n panel.setVisible(true);\n this.add(panel);\n this.setVisible(true);\n }",
"public AlterarSenhaFrame() {\n initComponents();\n }",
"public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}",
"private void setLayout (){\r\n /* define placeholders for content*/\r\n HBox mainFrame= new HBox(); //the Main frame component.\r\n root.getChildren().add(mainFrame); //add it to the scene\r\n \r\n \r\n \r\n mainFrame.getChildren().addAll(leftPane,rightPane);\r\n \r\n Rectangle leftR= new Rectangle(600.0, 900.0);\r\n leftR.setFill(Color.WHITE);\r\n Rectangle rightR= new Rectangle(300.0, 900.0);\r\n rightR.setFill(Color.RED);\r\n rightPane.getChildren().add(rightR);\r\n leftPane.getChildren().add(leftR);\r\n \r\n \r\n }",
"public void setContentPane(AMenu container){\n\t\t\n\t\t// aktuelles Panel entfernen, sofern vorhanden\n\t\tif(content.getComponents().length != 0)\n\t\t\tcontent.removeAll();\n\t\t\n\t\t// neues Panel setzen\n\t\tcontent.add(container);\n\t\t\n\t\t\n\t\t// Framegröße auf Panelgröße anpassen\n\t\tif(container.getOriginalSize().height > getHeight() || container.getOriginalSize().width > getWidth()){\n\t\t\tcontainer.setPreferredSize(container.getOriginalSize());\n\t\t\t\n\t\t\tpack();\n\t\t\t\t\t\t\n\t\t\t//Frameminimumgröße auf Panelgröße festlegen\n\t\t\tsetMinimumSize(getSize());\n\t\t}else{\n\t\t\tvController.resizePanel(container);\n\t\t}\n\t\t\n\t\tvalidate();\n\t\trepaint();\n\t}",
"static void abrir() {\n frame = new ModificarPesos();\n //Create and set up the window.\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //Set up the content pane.\n frame.addComponentsToPane(frame.getContentPane());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"void frameSetUp() {\r\n\t\tJFrame testFrame = new JFrame();\r\n\t\ttestFrame.setSize(700, 400);\r\n\t\ttestFrame.setResizable(false);\r\n\t\ttestFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttestFrame.setLayout(new GridLayout(0, 2));\r\n\t\tmainFrame = testFrame;\r\n\t}",
"private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }",
"public mainframe() {\n initComponents();\n }",
"public void makeWindow(JFrame frame,JPanel panel,JPanel centerPanel,String stage)\n {\n super.makeWindow(frame,panel,centerPanel,stage);\n Container contentPane = frame.getContentPane();\n if(stage.equals(\"b1\")){\n bit1Modules(contentPane);\n }else{\n bit2Modules(contentPane);\n }\n frame.revalidate();\n frame.repaint();\n //frame.setResizable(false);\n frame.pack();\n frame.setVisible(true);\n }",
"public MainFrame() {\n super(\"Gestione Concessionaria\");\n this.initComponents();\n this.generaFasciaPrezzo();\n this.pack();\n this.setLocationRelativeTo(null);\n this.initPanels();\n this.ToggleMenu.addActionListener(this);\n }",
"public GameFrame() {\n\t\tsuper(\"Treasure Hunt - Game\");\n\t\tthis.setSize(1800,1000);\n\t\t\n\t\tthis.setVisible(true);\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(1775,850));\n\t\tthis.setLocationRelativeTo(null);\n\t\t\n\t\tthis.controller = new Controller(this);\n\t\t\n\t\t// Main container\n\t\tContainer main = this.getContentPane();\n\t\tmain.setLayout(new BorderLayout());\n\t\t\n\t\t// Buttons pane\n\t\tGameButtonsPanel buttonsPane = new GameButtonsPanel(controller);\n\t\tmain.add(buttonsPane,\"North\");\n\t\tthis.buttonsPanel = buttonsPane;\n\t\t\n\t\t// Game pane\n\t\tthis.gamePanel = new GamePanel(this);\n\t\tmain.add(gamePanel);\n\t\t\n\t\t\n\t\t// Menu bar\n\t\tthis.menuBar = new GameMenuBar(controller);\n\t\tthis.setJMenuBar(this.menuBar);\n\t\t\n\t\t\n\t\tthis.revalidate();\n\t\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 290, 217);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t frame.setLocationRelativeTo(null);\n\t frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);\n\t frame.setVisible(true);\n\t\t\n\t\tJLabel lblAfter = new JLabel(\"Afternoon\");\n\t\tlblAfter.setFont(new Font(\"Segoe Script\", Font.BOLD, 25));\n\t\tlblAfter.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblAfter.setBounds(0, 11, 264, 40);\n\t\tframe.getContentPane().add(lblAfter);\n\t\t\n\t\tJButton btnAdministracin = new JButton(\"Administraci\\u00F3n\");\n\t\tbtnAdministracin.setFont(new Font(\"Segoe Script\", Font.PLAIN, 15));\n\t\tbtnAdministracin.setBounds(45, 133, 185, 26);\n\t\tframe.getContentPane().add(btnAdministracin);\n\t\t\n\t\tbtnAdministracin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tPantalla1_1 pantallaAdministracion = new Pantalla1_1();\n\t\t\t\tpantallaAdministracion.frame.setVisible(true);\n\t\t\t\tPantalla1.frame.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJButton btnBar = new JButton(\"BAR\");\n\t\tbtnBar.setFont(new Font(\"Segoe Script\", Font.PLAIN, 15));\n\t\tbtnBar.setBounds(45, 62, 185, 60);\n\t\tframe.getContentPane().add(btnBar);\n\t\t\n\t\tJLabel lblA = new JLabel(\"a\");\n\t\tlblA.setIcon(new ImageIcon(Pantalla1.class.getResource(\"/img/fondo-de-malla-degradado-abstracto-borrosa_1159-3174.jpg\")));\n\t\tlblA.setBounds(0, 0, 274, 178);\n\t\tframe.getContentPane().add(lblA);\n\t\t\n\t\tbtnBar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tPantalla2_1 pantallaBar = new Pantalla2_1();\n\t\t\t\tpantallaBar.frame.setVisible(true);\n\t\t\t\tPantalla1.frame.setVisible(false);\n\t\t\t}\n\t\t});\n\t}",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 321, 383);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton botoUnir = new JButton(\"Unir Arxius\");\n\t\tbotoUnir.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tFinestraUnir a = new FinestraUnir();\n\t\t\t\ta.frmUnir.setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbotoUnir.setBounds(10, 196, 279, 65);\n\t\tframe.getContentPane().add(botoUnir);\n\t\t\n\t\tJButton botDividir = new JButton(\"Dividir Arxiu\");\n\t\tbotDividir.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tFinestraDividir a = new FinestraDividir();\n\t\t\t\ta.frmFinestraDividir.setVisible(true);\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tbotDividir.setBounds(10, 87, 279, 65);\n\t\tframe.getContentPane().add(botDividir);\n\t}",
"private Node createFrameHolder(Data<X,Y> dataItem){\n Node frameHolder = dataItem.getNode();\n if (frameHolder == null){\n frameHolder = new StackPane();\n dataItem.setNode(frameHolder);\n }\n frameHolder.getStyleClass().add(getStyleClass(dataItem.getExtraValue()));\n return frameHolder;\n }",
"public RunFrame(MainFrame mainFrame) {\n\tthis.mainFrame = mainFrame;\n\tmainFrame.addScriptEventListener(scrEvtLis);\n\tsetAlwaysOnTop(true);\n setFocusable(false);\n setLocationByPlatform(true);\n\tsetLayout(new GridBagLayout());\n\tsetUndecorated(true);\n\tsetTitle(\"JUltima Toolbar\");\n\n\taddMouseListener(this);\n\taddMouseMotionListener(this);\n }",
"public void WZQFrame() {\n\t\tJFrame jf = new javax.swing.JFrame();\n\t\tjf.setTitle(\"五子棋\");\n\t\tjf.setDefaultCloseOperation(3);\n\t\tjf.setSize(1246, 1080);\n\t\tjf.setLocationRelativeTo(null);\n\t\tjf.setResizable(false);\n \n\t\tjf.setLayout(new FlowLayout());\n\t\tthis.setLayout(new FlowLayout());\n \n\t\tthis.setPreferredSize(new Dimension(1030, 1080));\n \n\t\t// this.setBackground(Color.CYAN);\n\t\t// 把面板对象添加到窗体上\n\t\tjf.add(this);\n\t\tJPanel jp1 = new JPanel();\n\t\tjp1.setPreferredSize(new Dimension(200, 1080));\n\t\tjp1.setLayout(new FlowLayout());\n\t\tjf.add(jp1);\n\t\tLoginListener ll = new LoginListener();\n\t\tString[] str = { \"悔棋\", \"重新开始\" };\n\t\tfor (int i = 0; i < str.length; i++) {\n\t\t\tJButton jbu1 = new JButton(str[i]);\n\t\t\tjbu1.setPreferredSize(new Dimension(150, 80));\n\t\t\tjbu1.setFont(new Font(\"楷体\", Font.BOLD,20));//设置字体\n\t\t\tjp1.add(jbu1);\n\t\t\tjbu1.addActionListener(ll);\n\t\t}\n\t\t\n\t\tjf.setVisible(true);\n \n\t\tGraphics g = this.getGraphics();\n \n\t\tthis.addMouseListener(ll);\n \n\t\tll.setG(g);\n\t\tll.setU(this);\n\t}",
"public MainFrame(String title, String m, String k, boolean f) {\n\t\tsuper(title);\n\t\tL1 += m;\n\t\tL2 += k;\n\t\tnumofcomponents = f;\n\t\tCreateView();\n\t\t\n\t\tsetSize(670,560);\n\t\tsetResizable(false);\n\t\t//panel = new JPanel();\n\t\tsetLocationRelativeTo(null);\n\t\n \n\t}"
]
| [
"0.73186487",
"0.68838143",
"0.6829883",
"0.682637",
"0.68238014",
"0.6773366",
"0.67274594",
"0.6727076",
"0.6628015",
"0.65428054",
"0.6540571",
"0.65257984",
"0.651128",
"0.64907277",
"0.6480556",
"0.6474829",
"0.6452996",
"0.64282537",
"0.6427147",
"0.6417509",
"0.64128464",
"0.64045686",
"0.6372601",
"0.63534766",
"0.6329665",
"0.6301774",
"0.62904805",
"0.6288362",
"0.62866694",
"0.6278517",
"0.6278517",
"0.6275331",
"0.6270776",
"0.6269578",
"0.626928",
"0.6262698",
"0.6258034",
"0.6251999",
"0.6247603",
"0.62441057",
"0.62428755",
"0.62398857",
"0.623501",
"0.6233045",
"0.6226486",
"0.622339",
"0.6220406",
"0.6212207",
"0.6207942",
"0.62030554",
"0.62021905",
"0.61993676",
"0.6198256",
"0.6196214",
"0.61957353",
"0.61947435",
"0.619337",
"0.61926275",
"0.6190935",
"0.61787957",
"0.6175682",
"0.61748666",
"0.61599666",
"0.6151604",
"0.6148928",
"0.6145917",
"0.61446035",
"0.6138489",
"0.61354184",
"0.61342204",
"0.6128909",
"0.6116296",
"0.6108502",
"0.6104445",
"0.61030304",
"0.6095701",
"0.6090966",
"0.6090526",
"0.60877556",
"0.6086953",
"0.60837895",
"0.6078307",
"0.60732853",
"0.6068565",
"0.60641825",
"0.60624504",
"0.60618114",
"0.6060472",
"0.6057699",
"0.6053336",
"0.6052369",
"0.6048124",
"0.60445464",
"0.603364",
"0.60245746",
"0.601065",
"0.60083896",
"0.6007963",
"0.6007676",
"0.6005682"
]
| 0.60401446 | 93 |
Cliccando "", diminuisco l'attributo relativo alle quantita. | public void actionPerformed(ActionEvent evento) {
String por = numpor.getText().trim();
if (Integer.parseInt(por)>0) {
Integer count = quantita.getPiatto(indicecorrente).getNumcategory() - 1;
quantita.getPiatto(indicecorrente).setNumcategory(count);
String porz = count.toString();
numpor.setText(" " + porz);
contatore_quantita=count;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void remove(int offs, int len) throws BadLocationException {\n super.remove(offs, len);\n String text = super.getText(0, super.getLength());\n if(text != null && !text.equals(\"\")){\n this.edge.setWeight(Integer.parseInt(text));\n } else {\n this.edge.setWeight(0);\n }\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"public String espaceAttribut(final String nomAttribut) {\n return(null);\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"private String trim(String attribute) {\n if (attribute.length() > 20) {\n return attribute.substring(0, 20) + \"...\";\n } else {\n return attribute;\n }\n }",
"private String detalhes() {\n\t\tString saida = \"\";\n\t\t\n\t\tfor (String string : detalhes) {\n\t\t\tif(string != null) {\n\t\t\t\tsaida += string + System.lineSeparator();\n\t\t\t} \n\t\t}\n\t\treturn saida.substring(0, saida.length() - 1);\n\t}",
"private String getIntroduzione(StrutturaDati _cell) {\n\t\tfor (StrutturaDati testo : _cell.getAttributi()) {\n\t\t\tif (testo.isText()) {\n\t\t\t\treturn testo.getNome().trim();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public\n void remove(int offset, int len) throws BadLocationException {\n String str = getText(offset, len);\n if (str.indexOf(\".\") != -1) {\n firstDecimal = true;\n }\n super.remove(offset, len);\n }",
"@Override\n\t@Field(offset=214, length=8, paddingChar=' ', align=Align.LEFT)\n\tpublic String getMotivoOcorrencia() {\n\t\treturn super.getMotivoOcorrencia();\n\t}",
"static void trim() {\n if (a.size() == 0)\n return;\n Object o = a.get(a.size() - 1);\n StringBuilder sb = new StringBuilder();\n if (o instanceof Token)\n sb.append( ((Token)o).image );\n else\n sb.append((String)o);\n while(sb.length() > 0 && sb.charAt(sb.length() - 1) == ' ')\n sb.deleteCharAt(sb.length() - 1);\n a.set(a.size() - 1, sb.toString() );\n }",
"@Override\r\n public void insertString(int offs, String str, AttributeSet a)\r\n throws BadLocationException {\n\r\n if (getLength() + str.length() > max) {\r\n // If it does, then truncate it\r\n\r\n str = str.substring(0, max - getLength());\r\n }\r\n super.insertString(offs, str, a);\r\n }",
"public String Alrevez() {\n String retorno = \"\";\n for (int i = getCadena().length() - 1; i >= 0; i--) {\n retorno += getCadena().charAt(i);\n }\n return retorno;\n }",
"@Override\n\tpublic Contato buscaContatoNome(String nome) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String lireFichierPalindromique() throws IOException {\n\t\treturn null;\n\t}",
"private static void concretizarAtribuicao(String nome) {\n\t\tif (gestor.atribuirLugar(nome))\n\t\t\tSystem.out.println(\"ATRIBUICAO de lugar a \" + nome);\n\t\telse\n\t\t\tSystem.out.println(\"ERRO: Nao foi possivel atribuir lugar a \" + nome);\n\t}",
"private String getCampo3() {\r\n String campo = this.campoLivre.substring(15);\r\n return boleto.getDigitoCampo(campo);\r\n }",
"private String getCampo3() {\n String campo = this.campoLivre.substring(15);\n System.out.println(\"campo3 \" + campo);\n return boleto.getDigitoCampo(campo);\n }",
"public String espaceAttribut(final Element refAttribut) {\n return(null);\n }",
"public String getApellidos() { return (this.apellidos == null) ? \"\" : this.apellidos; }",
"@Override\n\tpublic String stringValue(final Attribute att) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString(final Attribute att) {\n\t\treturn null;\n\t}",
"private void limpaCampos() {\r\n\t\tnome.setText(\"\");\r\n\t\tsituacao.setSelectedIndex(0);\r\n\t\tidade.setText(\"\");\r\n\t\terroNome.setText(\"\");\r\n\t\terroIdade.setText(\"\");\r\n\t}",
"public ArrayList<String> mostraLlistaDiscret(){\n ArrayList<String> tauleta = new ArrayList<>();\n int p = 0;\n System.out.print(\"num atribs disc de 0: \"+list.getAtribs().get(0).getAtribsDisc().size());\n ArrayList<Atribut> disc = new ArrayList<Atribut>();\n\n for (int i=0; i<list.getAtribs().size(); i++){\n if (list.getAtribs().get(i).getDiscret()) disc.add(list.getAtribs().get(i));\n }\n\n\n String aux = \"\";\n for (int i=0; i<disc.size(); i++){\n for (int k=0; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += disc.get(i).getAtribsDisc().get(k).getNom() + \"\\t\";\n }\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = \"\";\n for (int i = 0; i < disc.size(); i++) {\n int f = 0;\n if (!disc.get(i).getShowDefault()) f++;\n for (int k=f; k<disc.get(i).getAtribsDisc().size(); k++) {\n aux += String.valueOf(disc.get(i).getAtribsDisc().get(k).getCasos().get(j)) + \"\\t\";\n }\n }\n tauleta.add(aux);\n }\n return tauleta;\n }",
"private int Dataposi(String cadena,int posicion){\r\n\t\tif(cadena.length() > posicion && posicion >= 0)\r\n\t\t\treturn cadena.charAt(cadena.length()-posicion-1)-48;\r\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic String toString(final Attribute att, final int afterDecimalPoint) {\n\t\treturn null;\n\t}",
"private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }",
"public static String cadenaDescomponer(String cadena, int posicion, String caracter){\n String caddenaRetorno = \"cadena\"; //Va a tomar valor o lo va a descomponer\n //si se pide una posicion mas\n if(posicion >1){\n //recorrido para quitar datos\n for(int i=0; i<posicion-1;i++){\n //descomposicion pol@juy@5245@liok\n caddenaRetorno = caddenaRetorno.substring(caddenaRetorno.indexOf(caracter) + 1);\n\n }\n }\n //cuando encuentre el valor\n if(caddenaRetorno.indexOf(cadena) > 0){\n caddenaRetorno = caddenaRetorno.substring(0,caddenaRetorno.indexOf(caracter));\n }\n\n //retornamos el valor limpio\n return caddenaRetorno;\n }",
"@Override\n public void replace(FilterBypass fb, int offset, int length, String text, AttributeSet attrs)\n throws BadLocationException {\n if (text.equals(last) && last.equals(\"^\")) {\n text = \"\";\n }\n last = text;\n super.replace(fb, offset, length, text, attrs);\n }",
"public String imprimirListaFormateada() {\n\t\t// Cuando quieran unir un monton de cadenas\n\t\tStringBuilder provLis = new StringBuilder();\n\t\tfor (Proveedor provTmp : BdMemoria.proveedores) {\n\t\t\tif (provTmp != null) {\n\t\t\t\tprovLis.append(provTmp.getIdProveedor()).append(\"-\").append(provTmp.getNombreProv())\n\t\t\t\t\t\t.append(\" !! \");\n\t\t\t}\n\n\t\t}\n\t\treturn provLis.toString();\n\t}",
"private void trim() {\n read(0);\n }",
"public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }",
"@Override\n\t@Field(offset=37, length=1, paddingChar=' ', align=Align.LEFT)\n\tpublic String getDvContaCedente() {\n\t\treturn super.getDvContaCedente();\n\t}",
"public void attributDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}",
"public String actualizarDimension()\r\n/* 278: */ {\r\n/* 279:302 */ setDimensionContable(null);\r\n/* 280:303 */ return null;\r\n/* 281: */ }",
"public XMLString trim() {\n/* 780 */ return new XMLStringDefault(this.m_str.trim());\n/* */ }",
"public CensoCCVnoREMExcluidos() {\n this.nombre = \"\";\n this.apellidom = \"\";\n this.apellidop = \"\";\n this.rut = \"\";\n this.edad = 0;\n this.razon_exclusion = \"\";\n }",
"@Override\n\tpublic String crearTramaParaRepartirCarta() {\n\t\treturn null;\n\t}",
"private String eliminar_contenido_innecesario(String line) {\n \n \tint index_question = line.indexOf('?');\n\t\tint index_point = line.indexOf('.');\n\t\t\n\t\tline = ( index_question > 0 ) ? line.substring(0, index_question+1) : line;\n\t\tline = ( index_point > 0 ) ? line.substring(0, index_point+1) : line;\n\t\t\n \treturn line;\n }",
"@AutoEscape\n\tpublic String getNomDistrito();",
"public String getPrimoCampo(){\n return descrizione.split(\",\")[0];\n }",
"public String testando(JLabel icone){\n String iconeNome = icone.getIcon().toString();\n String[] lb11=iconeNome.split(\"/\");\n String opcao11 = lb11[lb11.length-1];\n return opcao11;\n }",
"public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }",
"public String getMascara()\r\n/* 287: */ {\r\n/* 288:355 */ if (this.dimensionContable.getMascara() != null) {\r\n/* 289:356 */ if (this.dimensionContable.getDimensionPadre() != null) {\r\n/* 290:358 */ this.mascara = (this.dimensionContable.getDimensionPadre().getCodigo() + this.dimensionContable.getMascara().substring(this.dimensionContable.getDimensionPadre().getCodigo().length()));\r\n/* 291: */ } else {\r\n/* 292:360 */ this.mascara = this.dimensionContable.getMascara();\r\n/* 293: */ }\r\n/* 294: */ }\r\n/* 295:363 */ return this.mascara;\r\n/* 296: */ }",
"public abstract java.lang.String getAcma_descripcion();",
"protected String getAttribute(String chave) throws AtributosException {\r\n\t\tif (tag == null) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tString attributeValue = tag.getAttributeValue(chave);\r\n\r\n\t\tif (attributeValue == null || attributeValue.trim().equals(\"\")) {\r\n\t\t\tattributeValue = getDefaultValue(chave);\r\n\t\t}\r\n\r\n\t\treturn attributeValue;\r\n\t}",
"@Test\n\tpublic void testGetRelativePathAttributeContent() {\n\t\ttry {\n\t\t\tfinal Attribute att = null;\n\t\t\tfinal Element root = new Element(\"root\");\n\t\t\tXPathHelper.getRelativePath(att, root);\n\t\t\tUnitTestUtil.failNoException(NullPointerException.class);\n\t\t} catch (Exception e) {\n\t\t\tUnitTestUtil.checkException(NullPointerException.class, e);\n\t\t}\n\t\ttry {\n\t\t\tfinal Attribute att = new Attribute(\"detached\", \"value\");\n\t\t\tfinal Element root = new Element(\"root\");\n\t\t\tXPathHelper.getRelativePath(att, root);\n\t\t\tUnitTestUtil.failNoException(IllegalArgumentException.class);\n\t\t} catch (Exception e) {\n\t\t\tUnitTestUtil.checkException(IllegalArgumentException.class, e);\n\t\t}\n\t\ttry {\n\t\t\tfinal Attribute att = new Attribute(\"detached\", \"value\");\n\t\t\tfinal Element root = null;\n\t\t\tXPathHelper.getRelativePath(att, root);\n\t\t\tUnitTestUtil.failNoException(NullPointerException.class);\n\t\t} catch (Exception e) {\n\t\t\tUnitTestUtil.checkException(NullPointerException.class, e);\n\t\t}\n\t}",
"public String eliminar()\r\n/* 504: */ {\r\n/* 505:518 */ return null;\r\n/* 506: */ }",
"public String generarAnclajeAtributosXML(){\r\n\r\n\t\tDocument doc = new Document();\r\n\t\tElement datosClearQuest = new Element(\"datosClearQuest\");\r\n\t\tdoc.setRootElement(datosClearQuest);\r\n\t\t\r\n\t\tgenerarConexion(datosClearQuest);\r\n\t\tgenerarAnclaje(datosClearQuest);\r\n\r\n\t\treturn convertXMLToString(doc);\r\n\r\n\t}",
"@Override\r\n\tpublic String getString(int start, int end) {\n\t\treturn null;\r\n\t}",
"public String exibirContato(int posicao) {\n\t\treturn contatos[posicao].toString();\n\t}",
"public String escolheRemove(int pos) {\n\t\tString e = null;\n\t\tint i = 1;\n\t\tCampusModel aux = inicio;\n\n\t\tif (inicio == null) {\n\t\t\tSystem.out.println(\"Lista Vazia!\");\n\t\t\treturn e;\n\t\t}\n\t\tif (pos == 1) {\n\t\t\te = RemoveInicio();\n\t\t\treturn e;\n\t\t} else {\n\t\t\twhile (aux.getProx() != null) {\n\t\t\t\taux = aux.getProx();\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (pos > i || pos == 0) {\n\t\t\t\tSystem.out.println(\"Posição Invalida!\");\n\t\t\t\treturn e;\n\t\t\t} else if (pos == i) {\n\t\t\t\te = RemoveFinal();\n\t\t\t\treturn e;\n\t\t\t} else {\n\t\t\t\taux = inicio;\n\t\t\t\tCampusModel aux2 = aux;\n\n\t\t\t\twhile (pos > 1) {\n\t\t\t\t\taux2 = aux;\n\t\t\t\t\taux = aux.getProx();\n\t\t\t\t\tpos--;\n\t\t\t\t}\n\t\t\t\te = aux.getNomeCampus();\n\t\t\t\taux2.setProx(aux.getProx());\n\n\t\t\t\treturn e;\n\t\t\t}\n\t\t}\n\t}",
"private void aumentaCapacidade(){\n\t\tif(this.tamanho == this.elementos.length){\n\t\t\tObject[] elementosNovos = new Object[this.elementos.length*2];\n\t\t\tfor(int i =0; i<this.elementos.length;i++){\n\t\t\t\telementosNovos[i]=this.elementos[i];\n\t\t\t}\n\t\t\tthis.elementos=elementosNovos;\n\t\t}\n\t}",
"java.lang.String getNume();",
"java.lang.String getNume();",
"@Override\n\tpublic String dettaglioAggiornaQuota(){\n\t return super.dettaglioAggiornaQuota();\n\t}",
"public String imprimir(String nome, int n){\n\t\tnome = nome.toUpperCase();\n\t\tif(nome == \"B\"){\n\t\t\treturn this.vetorB[n];\n\t\t}else if(nome == \"S\"){\n\t\t\treturn this.vetorS[n];\n\t\t}else if(nome == \"I\"){\n\t\t\treturn this.vetorI[n];\n\t\t}else\n\t\t\treturn null;\n\t}",
"@Override\n public String imprimir() {\n String s = \"\";\n ListaPila<E> listaPilaAuxiliar = new ListaPila<>();\n while (!this.estaVacia()) {\n E elemento = this.quitar();\n s += elemento + \"\\n\";\n listaPilaAuxiliar.poner(elemento);\n }\n while (!listaPilaAuxiliar.estaVacia()) {\n this.poner(listaPilaAuxiliar.quitar());\n }\n return s;\n }",
"public void remove(int offs,int len) throws BadLocationException {\n super.remove(offs, len);\r\r\r\r\r\r\n System.out.println(\"[*********]REMOVE\");\r\r\r\r\r\r\n if(validate==false){ \r\r\r\r\r\r\n String result = m_parent.getGrp_TField_encode().getText(0,getLength()); \r\r\r\r\r\r\n System.out.println(\"je remove \"+result.length());\r\r\r\r\r\r\n if (result.length() >= m_longeur_saisie && m_longeur_saisie!=0 ) {\r\r\r\r\r\r\n System.out.println(\"+grand \"+result);\r\r\r\r\r\r\n if(m_parent.getGrp_PopMenu_popup().isVisible())\r\r\r\r\r\r\n search(result);\r\r\r\r\r\r\n }\r\r\r\r\r\r\n else\r\r\r\r\r\r\n {\r\r\r\r\r\r\n System.out.println(\"+petit \"+result); \r\r\r\r\r\r\n affichePopup(false);\r\r\r\r\r\r\n charger=false; \r\r\r\r\r\r\n m_model.setM_vector(null);\r\r\r\r\r\r\n } \r\r\r\r\r\r\n }\r\r\r\r\r\r\n else{\r\r\r\r\r\r\n affichePopup(false);\r\r\r\r\r\r\n }\r\r\r\r\r\r\n }",
"private void resetLexeme(){\n\t\tcola = \"\";\n\t}",
"@Override\n\tpublic String toString(final int attIndex) {\n\t\treturn null;\n\t}",
"@Override\n public String toString() {\n if (bombe) {\n return \"/\";\n } else if (bombeNaboer == 0) {\n return \" \";\n }\n return \"\" + bombeNaboer;\n }",
"private ArrayList<String> populateEmptyAlias() {\n ArrayList<String> emptyList = new ArrayList<String>();\n int size = AliasCommand.getCommands().size();\n for (int i = 0; i < size; i++) {\n emptyList.add(\"\");\n }\n return emptyList;\n }",
"public void imprimirSubdominios(String dominio,Pila pila){\n\t\t\tmodCons.imprimirSubdominios(dominio,pila);\n\t}",
"public java.lang.CharSequence getDefaultStringEmpty() {\n\t throw new java.lang.UnsupportedOperationException(\"Get is not supported on tombstones\");\n\t }",
"@Override\n\tpublic void emiteExtrato() {\n\t\t\n\t}",
"String getCognome();",
"public static String nullToBlank(Object texto) {\n try {\n if (texto == null) {\n return \"\";\n }\n if (texto.toString().trim().equals(\"null\")) {\n return \"\";\n }\n return texto.toString().trim();\n } catch (Exception e) {\n return \"\";\n }\n\n }",
"@Override\n public final String asString(int indentSize, int innerIndentInc) {\n return \"\";\n }",
"@Override\n\tpublic String stringValue(final int attIndex) {\n\t\treturn null;\n\t}",
"public abstract java.lang.String getAcma_cierre();",
"@Override\n public void clickDelete() {\n if (view.length() > 0) {\n view.setText(view.getText().subSequence(0, view.length() - 1));\n view.setSelection(view.getText().length());\n }\n }",
"private String ricavaNome(String itemSelected){\n int i = 0;\n String schema;\n \n while(itemSelected.charAt(i) != '.'){\n i++;\n }\n \n schema = itemSelected.substring(i+1);\n \n return schema;\n }",
"public String concatenarZerosAEsquerda(String valor, int totalBytes) {\r\n String zero = \"\";\r\n int i = 0;\r\n int j = 0;\r\n \r\n if(valor.length() < totalBytes) {\r\n i = (totalBytes - valor.length());\r\n while(j < i) {\r\n zero += \"0\";\r\n j++;\r\n }\r\n }\r\n return (zero + valor);\r\n }",
"public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }",
"public void trim(long position);",
"public String getResultantText() {\r\n\t\treturn \"\";\r\n\t}",
"private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public String remove() \n {\n //TODO\n return \"\";\n }",
"public String getAtributoSom(String idSom, String atributo) throws AtributoInvalidoException, AtributoInexistenteException, PostException {\r\n\t\treturn gerenciaSons.getAtributoSom(idSom, atributo);\r\n\t}",
"public void clicarPorTexto(String texto) {\r\n \tclicar(By.xpath(\"//*[@text=' + texto + ']\"));\r\n\t}",
"public void insertString(int offset, String str, AttributeSet attr)\n throws BadLocationException {\n\n if (iMaxLength <= 0) // aceitara qualquer no. de caracteres \n {\n super.insertString(offset, str, attr);\n return;\n }\n\n int ilen = (getLength() + str.length());\n if (ilen <= iMaxLength) // se o comprimento final for menor... \n {\n super.insertString(offset, str, attr); // ...aceita str \n }\n }",
"public static String omitString(String oriStr, int length)\r\n {\r\n if (oriStr == null || oriStr.length() <= length)\r\n return oriStr;\r\n String rtn = oriStr.substring(0,length - 3);\r\n return rtn + \"...\";\r\n }",
"public void replace(int offset, String str, AttributeSet attr) \r\n throws BadLocationException{\n String strFinal=str;\r\n if (notRepeat != null){\r\n String txt= super.getText(0, super.getLength());\r\n JOptionPane.showMessageDialog(null, txt);\r\n if ((txt.contains(notRepeat)) && (str.contains(notRepeat))){\r\n strFinal= str.replaceAll(\"[\"+notRepeat+\"]\", \"\");\r\n }\r\n }\r\n super.insertString(offset, strFinal.replaceAll(teclas, \"\"), attr);\r\n }",
"private String Escapar(String valorAtributo) {\r\n\tString str = valorAtributo;\r\n\t\r\n\tstr = valorAtributo.replaceAll(\"&\", \"&\");\r\n\tstr = str.replaceAll(\"'\", \"'\");\r\n\tstr = str.replaceAll(\"\\\"\", \""\");\r\n\tstr = str.replaceAll(\"<\", \"<\");\r\n\tstr = str.replaceAll(\">\", \">\");\r\n\t\r\n\treturn str;\r\n }",
"public void clearStartAlphabet()\n\t\t\t{\n\t\t\t}",
"@Override\r\n\t\t\tpublic String toExibir() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }",
"@Override\n public void insertString(int offs, String str, AttributeSet a) throws NumberFormatException {\n int help;\n\n\n if (Character.isDigit(str.charAt(0))) {\n help = Character.digit(str.charAt(0),10);\n if (help < 10) {\n if (super.getLength() + str.length() > maxWert) {\n str = str.substring(0, maxWert - super.getLength());\n }\n try {\n super.insertString(offs, str, a);\n\n String text = super.getText(0, super.getLength());\n if(text != null && !text.equals(\"\")){\n edge.setWeight(Integer.parseInt(text));\n\n }\n\n } catch (BadLocationException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"private void limpiarCampos() {\n\t\tthis.campoClave.setText(\"\");\n\t\tthis.campoClaveNueva.setText(\"\");\n\t\tthis.campoClaveRepita.setText(\"\");\n\t}",
"public String getCuttOff() {\n return (String)getAttributeInternal(CUTTOFF);\n }",
"@Override\n public String getString(int from, int length) {\n return this.getString().substring(from, from+length);\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}",
"public static String truncateExtra(String content) {\n if (content == null)\n return \"\";\n return content.replaceAll(\"(\\\\[\\\\+\\\\d+ chars])\", \"\");\n }",
"@Override\r\n\tpublic int getLength() {\n\t\treturn 0;\r\n\t}",
"public void removeAttrezzo(String nomeAttrezzo) {\r\n\t\tAttrezzo a = new Attrezzo(nomeAttrezzo, 0);\r\n\t\tif(this.attrezzi.contains((a)))\r\n\t\t\t\tattrezzi.remove(attrezzi.get(attrezzi.indexOf(a)));\r\n\t}",
"protected String exportAttributes() {\n\t\treturn \"\";\n\t}",
"@Override \r\n public void characters(char[] ch, int start, int length) \r\n throws SAXException {\n cadena = new String(ch, start, length);\r\n valor = valor + cadena;\r\n }",
"public String darMarca( )\n\t{\n\t\treturn marca;\n\t}",
"public String getFaixa (int faixa) {\n\t\tfaixa--;\n\t\tif (faixa >= M || faixa < 0) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn faixasCD.get(faixa);\n\t}",
"private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {\n String cadena;\n cadena = campoDeNumeros.getText();\n \n if(cadena.length() >0) {\n cadena = cadena.substring( 0, cadena.length() -1);\n campoDeNumeros.setText(cadena);\n }\n }",
"void clearSpecifiedEnds();"
]
| [
"0.55562943",
"0.5509628",
"0.5406539",
"0.5405707",
"0.5248554",
"0.5175436",
"0.5094887",
"0.5068813",
"0.5025138",
"0.5021612",
"0.4979698",
"0.49454105",
"0.49262556",
"0.49105185",
"0.4901044",
"0.4876361",
"0.4874494",
"0.48644555",
"0.48358434",
"0.4825945",
"0.48130813",
"0.47564048",
"0.47427624",
"0.47317684",
"0.47251844",
"0.47209412",
"0.4712856",
"0.4709773",
"0.47015962",
"0.46844232",
"0.4683372",
"0.46776333",
"0.46749806",
"0.46733686",
"0.46720773",
"0.46705642",
"0.46680462",
"0.46624455",
"0.46581498",
"0.46550977",
"0.4650365",
"0.4645392",
"0.46230066",
"0.46217364",
"0.4617833",
"0.46103716",
"0.46051455",
"0.45964482",
"0.4592558",
"0.45784983",
"0.45740324",
"0.45735323",
"0.45671096",
"0.45671096",
"0.4560653",
"0.4551144",
"0.45481035",
"0.45442614",
"0.45352998",
"0.45281306",
"0.45277536",
"0.45200813",
"0.45176855",
"0.45172533",
"0.45125714",
"0.45119327",
"0.45079628",
"0.45062903",
"0.4503448",
"0.45026085",
"0.4496181",
"0.44939977",
"0.44931892",
"0.44895926",
"0.44687408",
"0.4466225",
"0.44647977",
"0.4464695",
"0.44605288",
"0.44594315",
"0.44591284",
"0.44587886",
"0.4457806",
"0.4441336",
"0.44411674",
"0.4441034",
"0.44397002",
"0.44370097",
"0.44341362",
"0.44302157",
"0.4429223",
"0.44200057",
"0.4415859",
"0.4414093",
"0.4410046",
"0.44076243",
"0.44067496",
"0.4404514",
"0.44034612",
"0.43995875",
"0.4399395"
]
| 0.0 | -1 |
Cliccando "+", aumento l'attributo relativo alle quantita. | public void actionPerformed(ActionEvent evento) {
Integer count = quantita.getPiatto(indicecorrente).getNumcategory() + 1;
quantita.getPiatto(indicecorrente).setNumcategory(count);
String por = count.toString();
numpor.setText(" " + por);
contatore_quantita = count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addTo(Point p){\n Point point = new Point(this.nbAttributes);\n float accu = 0;\n for (int i = 0; i < this.attributes.length; i++){\n accu = this.attributes[i] + p.attributes[i];\n this.attributes[i] = Math.round(accu) ;\n// System.out.print(accu + \" \");\n }\n }",
"@Override\r\n\tpublic void minusFromCost() {\n\t\t\r\n\t}",
"@Override\n public String getNotation() {\n return \"+\";\n }",
"public MvtPlus() {\r\n\t\tsuper('+');\r\n\t}",
"public double getCost() \n { \n return super.getCost() +22;\n }",
"@Override\r\n\tpublic int plus(int left, int right) {\n\t\treturn left + right; \r\n\t\t//return 0;\r\n\t}",
"protected void restockItem(int x){\r\n this.level += x;\r\n }",
"public abstract GF2nElement increase();",
"public double get_additional_line_cost() {\n\t\treturn additionallinecost;\n\t}",
"public SymbolicElement<T> getAddition();",
"@Override\n public double cost(){\n return 2 + super.cake.cost();\n }",
"public void enfoncerPlus() {\n\t\ttry {\n\t\t\tthis.op = new Plus();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}",
"public Point3D plus(Point3D summand) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tcopy.homogenize();\n\t\tPoint3D subCopy = new Point3D(summand);\n\t\tsubCopy.homogenize();\n\n\t\tcopy.x += subCopy.x;\n\t\tcopy.y += subCopy.y;\n\t\tcopy.z += subCopy.z;\t\t\n\t\t\n\t\treturn copy;\n\t}",
"public vec3 plus(vec3 arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public void incdrum(String quantity1, String capacity) {\nString countQuery = \"SELECT \"+Drum_Quantity + \" FROM \" + DATABASE_TABLE4+\" WHERE \"+Drum_Capacity+\" ='\"+capacity+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(Drum_Quantity);\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\tint cur=Integer.parseInt(cbal);\n\t\tcur=cur+Integer.parseInt(quantity1);\n\t ContentValues up=new ContentValues();\n\t up.put(Drum_Quantity, cur);\n\t\tourDatabase.update(DATABASE_TABLE4, up, Drum_Capacity+\" = '\"+capacity+\"'\", null);\n\t\t\n\t}",
"public void testPlus() {\n \tMeasurement a = new Measurement(1,10);\n \tMeasurement b = new Measurement(1,13);\n \tMeasurement c = a.plus(b);\n \t\n assertTrue(a.getFeet() == 1);\n assertTrue(a.getInches() == 10);\n assertTrue(b.getFeet() == 2);\n assertTrue(b.getInches() == 1);\n \n assertTrue(c.getFeet() == 3);\n assertTrue(c.getInches() == 11);\n }",
"public void buttonMinus(View v) {\n expression += \"-\";\n\n TextView expressionText = (TextView) findViewById(R.id.expressionText);\n expressionText.setText(expression);\n }",
"private void addition()\n\t{\n\t\tFun = Function.ADD;\t//Function set to determine what action should be taken later. \n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"public void subtract() {\n\t\t\n\t}",
"@Override\r\n\tpublic double obliczCenePoRabacie(double cena){\n\t\tcena = cena - kwotaRabatu;\r\n\t\treturn cena;\r\n\t\t\r\n\t}",
"public void plus(View view) {\n liter++;\n botol();\n }",
"private int sumaCen(){\n int kasa = 0;\n for(Restauracja r :zamowioneDania){\n kasa+=r.getCena();\n }\n return kasa;\n }",
"@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}",
"public Offset add(Offset other) {\n return new Offset(other.X + X, other.Y + Y);\n }",
"public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }",
"public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}",
"void increase();",
"void increase();",
"@Override\n public void onClick(View v) {\n tv.setText(\"+\");\n if(op == -1){\n sum = temp;\n temp = 0.0;\n }else{\n if(op == 1){\n sum += temp;\n }else if(op == 2){\n sum -= temp;\n }else if(op == 3){\n sum *= temp;\n }else if(op == 4){\n sum /= temp;\n }\n }\n op = 1;\n temp = 0.0;\n positive = true;\n flag = true;\n }",
"public void setSubtraction() {\n\t\tset((byte) (get() | (1 << 6)));\n\t}",
"private void subtraction()\n\t{\n\t\tFun = Function.SUBTRACT; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"void setUnitIncrement(Adjustable adj, int u);",
"public static final String shift(String text) {\n return \"+\" + text; /*I18nOK:LINE*/\n }",
"public void setCaixa(int caixa) {\n\t\tthis.caixa += caixa;\n\t}",
"@Override public double getCosto(){\n double d = 190.00;\n return d;\n }",
"@Override\n \tpublic ArrayPVector<E> plus(int i, E e) {\n \t\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n \t}",
"public void aumentarIntentos() {\r\n this.intentos += 1;\r\n }",
"void addDistance(float distanceToAdd);",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"public void sumFrequenza(int frequenza) {\n\t\t\tthis.frequenza += frequenza;\n\t\t}",
"public Percentage plus(Percentage other) {\n return new Percentage(amount.plus(other.amount));\n }",
"@Override\r\n\tpublic int plus(int x, int y) {\n\t\treturn x + y;\r\n\t}",
"public void add(){\n contador += 100;\n }",
"public final void subtractFromThis(GFElement minuend)\n {\n addToThis(minuend);\n }",
"public void buttonPlus(View v) {\n\n /* Add the character to the expression and update screen. */\n expression += \"+\";\n\n TextView expressionText = (TextView) findViewById(R.id.expressionText);\n expressionText.setText(expression);\n }",
"public final GFElement subtract(GFElement minuend)\n {\n return add(minuend);\n }",
"public DecimalMeasure<E> plus(Measure<E> other) throws IncompatibleUnitsException {\n\t\tassertCompatible (other);\r\n\t\tDecimalMeasure<E> convertedOther = UnitConversion.convert(other, this.unit);\r\n\t\treturn new DecimalMeasure<E>(convertedOther.amount().plus(this.amount), this.absUncertainty.plus(convertedOther.uncertainty()) , this.unit.plus(convertedOther.unit()));\r\n\t}",
"org.hl7.fhir.Quantity addNewValueQuantity();",
"public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }",
"BigDecimal getOriginalQuantity();",
"@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }",
"public static NodeValue unaryPlus(NodeValue nv) {\n NumericType opType = classifyNumeric(\"unaryPlus\", nv) ;\n return nv ;\n }",
"BaseNumber add(BaseNumber operand);",
"public void addLocX (int adder)\n {\n locX += adder;\n }",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"@Override\n public double getCost() {\n\t return 13;\n }",
"private static int getRelationalOffset(Node basicNode, int absoluteOffset) {\n \n \t\treturn absoluteOffset - ((IndexedRegion) basicNode).getStartOffset();\n \t}",
"public void attrito(){\n yCord[0]+=4;\n yCord[1]+=4;\n yCord[2]+=4;\n //e riaggiorna i propulsori (che siano attivati o no) ricalcolandoli sulla base delle coordinate dell'astronave, cambiate\n aggiornaPropulsori();\n \n }",
"public Coordinates plus(final Coordinates coor) {\n\t\tx += coor.getX();\n\t\ty += coor.getY();\n\t\treturn this;\n\t}",
"public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }",
"public void addCredito(double montante) {\r\n\t\tcredito += montante;\r\n\t}",
"@Override\n\tpublic double mangeLegumes() {\n\t\treturn quantiteLegumes*this.getPoids();\n\t}",
"private int Dataposi(String cadena,int posicion){\r\n\t\tif(cadena.length() > posicion && posicion >= 0)\r\n\t\t\treturn cadena.charAt(cadena.length()-posicion-1)-48;\r\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic Double addDinero(double monto) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int Prix() {\n\t\treturn voiture.Prix() +250;\n\t}",
"public Vector plus(Vector m) {\n\t\treturn new Vector((deltaX + m.getDeltaX()), (deltaY + m.getDeltaY()));\n\t}",
"public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }",
"@Override\n\tpublic int sacameVida(ElementoAlien a) {\n\t\treturn 20;\n\t}",
"private void SubMatAdd(double valor, double sub) {\n double result = 0;\n result = valor + sub;\n jTxtSubTotal.setText(String.valueOf(result));\n }",
"public void addition() {\n\t\t x = 5;\n\t\t y = 11;\n\t\t z = 16;\n\t\t System.out.println(\"5 + 11 = \"+z);\n\t}",
"@Override\n\tpublic double cost() {\n\t\treturn medicalRecord.cost() + 4.88;\n\t}",
"@Override\n\tpublic int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}",
"public vec3 plus(float arg) {\r\n\t\tvec3 tmp = new vec3();\r\n\t\ttmp.add(this, arg);\r\n\t\treturn tmp;\r\n\t}",
"public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}",
"public static Seq plus(Constant c1, Constant c2) {\n return new Constant((c1.num < c2.num)?c1.num:c2.num, (c1.value + c2.value)); \n }",
"public abstract void increaseThis();",
"public void changeQuantity(int difference) {\n\t\tquantity += difference;\n\t\t\n\t\tif (quantity < 0)\n\t\t\tquantity = 0;\n\t}",
"@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic double extra() {\n\t\treturn 0.05;\r\n\t}",
"@Override\r\n\tpublic double promotePrice() {\n\t\treturn price - 10;\r\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdct1--;\r\n\t\t\t\tif(dct1<0){\r\n\t\t\t\t\tdct1 = 0;\r\n\t\t\t\t\tdttotal = dttotal - 0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdct1 = dct1;\r\n\t\t\t\t\tdttotal = dttotal - 120;\r\n\t\t\t\t}\r\n\t\t\t\tdtAdd1.setText(\"\" + dct1);\r\n\t\t\t\tdtotal.setText(\"Bill Scratch Pad : To Pay tk. \" + dttotal);\r\n\t\t\t}",
"public static Seq plus(Constant c, Delta d) {\n return new Delta( (c.num < d.num)?c.num:d.num, c.value + d.initial, d.delta); \n\n }",
"public double cartesianTranslationX(double oldX, double addX)\n {\n double x = oldX + addX;\n return x; \n }",
"public void addArco(String origen, String destino, int peso) throws Exception {\n\t\tthrow new UnsupportedOperationException();\n\t\t\n\t}",
"public AmmoAmountUncapped add(AmmoAmountUncapped r){\n Map<AmmoColor,Integer> newMap = new EnumMap<>(getAmounts());\n for (Map.Entry<AmmoColor, Integer> i: r.getAmounts().entrySet()){\n newMap.put(i.getKey(), getAmounts().get(i.getKey())+i.getValue());\n }\n return new AmmoAmountUncapped(newMap);\n }",
"public void addTo(Vector3 addition) {\n\t\tthis.x += addition.x;\n\t\tthis.y += addition.y;\n\t\tthis.z += addition.z;\n\t}",
"@Override\r\n\tpublic int cost() {\n\t\treturn b1.cost() + 1;\r\n\t}",
"private String updateUnaryMinus(String expression) {\n String previous = expression.substring(0, 1);\n if (previous.equals(\"-\")) {\n expression = \"(0\" + expression + \")\";\n previous = \"0\";\n }\n if (expression.length() > 1) {\n for (int i = 1; i < expression.length(); i++) {\n if (expression.substring(i, i + 1).equals(\"-\") && !isNumber(previous)) {\n expression = expression.substring(0, i) + \"0\" + expression.substring(i, expression.length());\n previous = \"-\";\n i = i + 1;\n System.out.println(expression);\n } else previous = expression.substring(i, i + 1);\n }\n }\n return expression;\n }",
"private void applyLvlUpCost() {\n }",
"@Override\n\tpublic void visit(AdditionNode node) {\n\t\t/**\n\t\t * verificam intai sintaxa: in cazde eroare nu mergem mai departe in\n\t\t * evaluare\n\t\t */\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\t/**\n\t\t * evaluam fiii nodului\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\t\tInteger i, j;\n\t\t/**\n\t\t * Salvam valorile calculate in urma evaluarii copiilor in 2 variabile\n\t\t * Integer. Daca unul dintre fii este de tip Variable ii luam valoarea\n\t\t * din HashMap-ul din Evaluator. Altfel, valoarea e reprezentata de\n\t\t * numele nodului.\n\t\t */\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ti = Integer.parseInt(Evaluator.variables.get(node.getChild(1).getName()));\n\n\t\t} else {\n\t\t\ti = Integer.parseInt(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tj = Integer.parseInt(Evaluator.variables.get(node.getChild(0).getName()));\n\n\t\t} else {\n\t\t\tj = Integer.parseInt(node.getChild(0).getName());\n\t\t}\n\n\t\t/**\n\t\t * realizam suna celor doua valori si updatam numele nodului curent cu\n\t\t * valoarea calculata\n\t\t */\n\t\tInteger n = i + j;\n\n\t\tnode.setName(n.toString());\n\n\t}",
"void increaseStarsBy(final int amount);",
"@Override\n public int getCost() {\n\treturn 0;\n }",
"BaseNumber subtract(BaseNumber operand);",
"public void add(String operand, Integer value) throws Exception {\n if (operand.equals(\"=\")){\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + value);\n }else if (operand.equals(\" \")){\n Integer regVal = dataMemory.getData(value);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + regVal);\n }else if (operand.equals(\"*\")){\n Integer newDirection = dataMemory.getData(value);\n Integer regVal = dataMemory.getData(newDirection);\n Integer accVal = dataMemory.getData(0);\n dataMemory.setData(0, accVal + regVal);\n }else{\n throw new IllegalArgumentException(\"No valid operand\");\n }\n }",
"@Override\n\tpublic int sacameVida(ElementoFuente a) {\n\t\treturn 10;\n\t}",
"public void addStock(int qtearajouter) {\n\t\tthis.stock += qtearajouter;\n\t}",
"@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }",
"public DocumentVector add(DocumentVector that) {\n\t\tint n = Math.min(this.getAttCount(), that.getAttCount());\n\t\tDocumentVector result = new DocumentVector(n, 0);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tresult.setValue(i, this.getValueAsReal(i) + that.getValueAsReal(i));\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public static int addition(int entier1, int entier2) {\n\n\t\tSystem.out.println(\"debut addition\");\n\t\tint resultat = entier1 + entier2;\n\t\treturn resultat;\n\t}",
"public void removeQuantidade(String nome, int quantidade) {\n\t\tthis.listaProdutoVenda.replace(nome, this.listaProdutoVenda.get(nome) - quantidade); \t\n\t}",
"public void aumentaQntdItem(int valorAdicionado) {\r\n\t\tthis.qntd += valorAdicionado;\r\n\t}"
]
| [
"0.54030585",
"0.5206762",
"0.52032155",
"0.51187557",
"0.51019007",
"0.4974175",
"0.49695483",
"0.49663594",
"0.49627763",
"0.49621823",
"0.4962048",
"0.49426287",
"0.49250078",
"0.49024388",
"0.48976338",
"0.48972824",
"0.48793274",
"0.48658094",
"0.48557326",
"0.48553938",
"0.4843102",
"0.48352242",
"0.48093802",
"0.47987035",
"0.47944984",
"0.47902322",
"0.4778312",
"0.4778312",
"0.47681215",
"0.47645763",
"0.4756325",
"0.47508082",
"0.473867",
"0.47375634",
"0.47149527",
"0.47131488",
"0.47097778",
"0.4704731",
"0.4698236",
"0.46840522",
"0.46827906",
"0.46817145",
"0.46748465",
"0.46709317",
"0.46686065",
"0.46684968",
"0.46659476",
"0.46650457",
"0.46637613",
"0.46591544",
"0.46580225",
"0.46457574",
"0.46427462",
"0.4641259",
"0.46364203",
"0.46341628",
"0.46268272",
"0.46266153",
"0.4626293",
"0.4624033",
"0.46209344",
"0.46164566",
"0.46104285",
"0.46077615",
"0.46010858",
"0.46007788",
"0.46003792",
"0.45879808",
"0.45867234",
"0.45845178",
"0.4582636",
"0.45791644",
"0.45771813",
"0.45756245",
"0.45745814",
"0.45736232",
"0.45732465",
"0.45692876",
"0.45661134",
"0.4560718",
"0.45605156",
"0.45597246",
"0.455858",
"0.45572793",
"0.45564586",
"0.45560095",
"0.4555286",
"0.45494035",
"0.4536291",
"0.45353132",
"0.45347553",
"0.4533764",
"0.45309654",
"0.452825",
"0.45272037",
"0.45220512",
"0.4521685",
"0.4521507",
"0.45182025",
"0.45181045",
"0.4516736"
]
| 0.0 | -1 |
Il metodo aggiungiPiatto() permette di aggiungere un piatto sia graficamente che funzionalmente(sia backend che frontend). | public void aggiungiPiatto(String nome_piatto, double prezzo_piatto, int porzioni) {
Piatto nuovo_piatto= new Piatto(nome_piatto,prezzo_piatto, porzioni);
quantita.add(nuovo_piatto);
quantita.sort();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String tiposervicio();",
"private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }",
"public void realiserAcahatProduit() {\n\t\t\n\t}",
"private void registroProcesado(InterfazParams interfazParams) {\n\t\tLong registrosProcesados = (Long) interfazParams.getQueryParams().get(\n\t\t\t\t\"registrosProcesados\");\n\t\tregistrosProcesados = new Long(registrosProcesados.longValue() + 1);\n\t\tinterfazParams.getQueryParams().put(\"registrosProcesados\",\n\t\t\t\tregistrosProcesados);\n\t}",
"public void NopagaImpuestos(){\n\t\tif(sueldoBruto<BASE_MINIMA_IMPUESTOS){\n\t\tsueldoNeto=sueldoBruto;\n\t\ttipoImpuesto=\"En esta ocasión no paga impuestos\";\n\t\t}\n\t}",
"public void carregarRegistroDoPrimeiroAno() {\n\t\tlimpar();\n\t\t\n\t\tlistaAlunos = repository.encontrarComQueryNomeada(AlunosMilitaresOMDS.class, \"alunosMilitaresOMDS.listarPorOMEPeriodo\",\n\t\t\t\tnew Object[]{\"periodo\", periodo},\n\t\t\t\tnew Object[]{\"organizacao\", subordinado},\n\t\t\t\tnew Object[]{\"ano\", Ano.PRIMEIRO});\n\t\t\n\t\tif (listaAlunos.size() > 0) {\n\t\t\tlistaAlunos.forEach(efetivo ->{\n\t\t\t\tif (efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.OFICIAL))\n\t\t\t\t\tsetAlunosMilitarOficial(listaAlunos.get(0));\n\t\t\t\tif(efetivo.getTipoAlunosMilitaresOMDS().equals(TipoAlunosMilitaresOMDS.PRACA))\n\t\t\t\t\tsetAlunosMilitarPraca(listaAlunos.get(0));;\n\t\t\t});\n\t\t\thabilitaBotao=false;\n\t\t}\n\t\torganizarValores();\n\t}",
"@Override\n\tpublic List<String[]> partecipazioneUtentiAiGruppi() throws DAOException{\n\t\t\n\t\tList<String[]> risultato = null;\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\tString[] stringa = null;\n\t\t\n\t\ttry {\n\t\t\trisultato = new ArrayList<String[]>();\n\t\t\tconnection = DataSource.getInstance().getConnection();\n\t\t\tstatement = connection.prepareStatement(\"SELECT DISTINCT COUNT (ISCRIZIONE_GRUPPO.ID_UTENTE)*100/ATTIVITA.NUMERO_PARTECIPANTI AS PARTECIPAZIONE, ISCRIZIONE_GRUPPO.ID_GRUPPO, GRUPPO.DESCRIZIONE FROM GRUPPO INNER JOIN ISCRIZIONE_GRUPPO ON ISCRIZIONE_GRUPPO.ID_GRUPPO = GRUPPO.ID INNER JOIN ATTIVITA ON GRUPPO.ID_ATTIVITA = ATTIVITA.ID GROUP BY (ISCRIZIONE_GRUPPO.ID_UTENTE, ISCRIZIONE_GRUPPO.ID_GRUPPO, GRUPPO.ID_ATTIVITA, ATTIVITA.NUMERO_PARTECIPANTI, GRUPPO.DESCRIZIONE) ORDER BY PARTECIPAZIONE DESC\");\n\t\t\tresultSet = statement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tstringa = new String[4];\n\t\t\t\tDouble perc = BigDecimal.valueOf(resultSet.getDouble(1)).setScale(2, RoundingMode.HALF_UP).doubleValue();\n\t\t\t\tstringa[0] = String.valueOf(resultSet.getLong(2));\n\t\t\t\tstringa[1] = resultSet.getString(3);\n\t\t\t\tstringa[2] = String.valueOf(perc);\n\t\t\t\tstringa[3] = String.valueOf(100-perc);\n\t\t\t\trisultato.add(stringa);\n\t\t\t}\n\t\t} catch (SQLException | DAOException e) {\n\t\t\tthrow new DAOException(\"ERRORE partecipazioneUtentiAiGruppi utenteAdmin\" + e.getMessage(), e);\n\t\t} finally {\n\t\t\tDataSource.getInstance().close(resultSet);\n\t\t\tDataSource.getInstance().close(statement);\n\t\t\tDataSource.getInstance().close(connection);\n\t\t}\n\t\treturn risultato;\n\t}",
"protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }",
"public void CobrarImpuestosReducidos(){\n\t\tif(sueldoBruto>=BASE_MINIMA_IMPUESTOS && sueldoBruto<IMPUESTO_SUP){\n\t\t\tsueldoNeto=sueldoBruto-(sueldoBruto*PAGA_IMPUESTOS_MIN);\n\t\t\ttipoImpuesto=\"Ha pagado el 20% de impuestos\";\n\t\t}\n\t}",
"private void incrementarPuntaje(int puntos) {\n // TODO implement here\n }",
"private Filtro getFiltroPiattiComandabili() {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Modulo modPiatto = PiattoModulo.get();\n\n try { // prova ad eseguire il codice\n\n filtro = FiltroFactory.crea(modPiatto.getCampo(Piatto.CAMPO_COMANDA), true);\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"public void crescitaPecorelle(InterfacciaPartitaUtente interfaccia) {\n\t\tfor (int i = 0; i < pecore.size(); i++) {\n\t\t\tAgnello pecoraConsiderata = pecore.get(i);\n\t\t\tif (pecoraConsiderata != null && pecoraConsiderata.crescita()) {\n\t\t\t\tpecore.remove(pecoraConsiderata);\n\t\t\t\tnumeroAgelli--;\n\t\t\t\tpecoraConsiderata = new PecoraAdulta();\n\t\t\t\tposizionaPecora(pecoraConsiderata);\n\t\t\t\tinterfaccia.crescitaAgnello(this, pecoraConsiderata.getTipo());\n\t\t\t}\n\t\t}\n\t}",
"public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}",
"@Override\n\tpublic void apagar() {\n\t\tSystem.out.println(\"Apagando Computadora\");\n\t}",
"private static void crearPedidoGenerandoOPP() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25 };\n\t\tint[] cantidades = { 7 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 2\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}",
"public String execute() {\n\t\ttry {\n\t\t\tHashMap<Integer, RigaVenditeCommercianti> map = new HashMap<Integer, RigaVenditeCommercianti>();\n\t\t\tlistaTotali = new LinkedList<RigaVenditeCommercianti>();\n\t\t\t\n\t\t\tFatture fatture = new Fatture();\n\t\t\tfatture.setOrderByCliente();\n\t\t\tCollection colFatture = fatture.getFatture(dataDal, dataAl);\n\t\t\tIterator itr = colFatture.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tFattura fattura = (Fattura) itr.next();\t\n\t\t\t\tfattura.calcolaTotali();\n\t\t\t\tif (map.containsKey(fattura.getIdCliente().intValue())) {\n\t\t\t\t\t//Aggiungi totali alla riga attuale\n\t\t\t\t\tRigaVenditeCommercianti riga = map.get(fattura.getIdCliente().intValue());\n\t\t\t\t\triga.setTotaleFattura(riga.getTotaleFattura().add(fattura.getTotaleFattura()));\n\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tfattura.calcolaTotali();\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 4\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva1())) { //IVA AL 4\n\t\t\t\t\t\triga.setImponibile1(riga.getImponibile1().add(imponibili.get(riga.getIva1())[0]));\n\t\t\t\t\t\triga.setImposta1(riga.getImposta1().add(imponibili.get(riga.getIva1())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 10\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile2(riga.getImponibile2().add(imponibili.get(riga.getIva2())[0]));\n\t\t\t\t\t\triga.setImposta2(riga.getImposta2().add(imponibili.get(riga.getIva2())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 20\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile3(riga.getImponibile3().add(imponibili.get(riga.getIva3())[0]));\n\t\t\t\t\t\triga.setImposta3(riga.getImposta3().add(imponibili.get(riga.getIva3())[1]));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t//Crea riga per cliente\n\t\t\t\t\tRigaVenditeCommercianti riga = new RigaVenditeCommercianti();\n\t\t\t\t\triga.setCliente(fattura.getCliente());\n\t\t\t\t\triga.setTotaleFattura(fattura.getTotaleFattura());\n\t\t\t\t\t\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\tIvas dao = new Ivas();\n\t\t\t\t\tdao.setOrderByDescrizione(DataAccessObject.ORDER_ASC);\n\t\t\t\t\tCollection aliquote = dao.getElements();\n\t\t\t\t\t\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor(Object obj : aliquote)\n\t\t\t\t\t{\n\t\t\t\t\t\tIva iva = (Iva)obj;\n\t\t\t\t\t\tif(iva.getValore().floatValue() < 4) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tBigDecimal imponibile = new BigDecimal(0);\n\t\t\t\t\t\tBigDecimal imposta = new BigDecimal(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(imponibili.containsKey(iva.getValore()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\timponibile = imponibili.get(iva.getValore())[0];\n\t\t\t\t\t\t\timposta = imponibili.get(iva.getValore())[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva1(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile1(imponibile);\n\t\t\t\t\t\t\triga.setImposta1(imposta);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva2(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile2(imponibile);\n\t\t\t\t\t\t\triga.setImposta2(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva3(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile3(imponibile);\n\t\t\t\t\t\t\triga.setImposta3(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 3) break;\n\t\t\t\t\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tmap.put(fattura.getIdCliente().intValue(), riga);\n\t\t\t\t\tlistaTotali.add(riga);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tstampaErrore(\"PrintVendite.execute()\", e);\n\t\t\treturn ERROR;\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"protected void agregarUbicacion(){\n\n\n\n }",
"private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }",
"public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }",
"protected void uploadSottoPagine() {\n LinkedHashMap<String, LinkedHashMap<String, List<String>>> mappa;\n int numVoci = 0;\n\n for (String key : lista.getSottoPagine().keySet()) {\n mappa = lista.getSottoPagine().get(key);\n numVoci = lista.getMappaLista().getDimParagrafo(key);\n incipitSottopagina = elaboraIncipitSpecificoSottopagina(key);\n listaCorrelate = listaVociCorrelate();\n appContext.getBean(UploadSottoPagina.class, soggetto, key, mappa, typeDidascalia, numVoci, usaParagrafoSize, incipitSottopagina, usaNote, usaVociCorrelate, listaCorrelate);\n }// end of for cycle\n }",
"@Override\n\tpublic void effetto(Giocatore giocatoreAttuale) {\n\t\tgiocatoreAttuale.vaiInPrigione();\n\t\tSystem.out.println(MESSAGGIO_IN_PRIGIONE);\n\t\t\n\t}",
"public void enviarProyectos(Proyecto proyecto){\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tplantilla.postForObject(\"http://localhost:5000/proyectos\", proyecto, Proyecto.class);\n\t\t}",
"public void proximo(){//executa metodo que passa para proxima pagina de registro de funcioanrios\r\n\t\tdao.proximo();\r\n\t}",
"public String impostaRateoDopoAggiornamento() {\n\t\treturn SUCCESS;\t\n\t}",
"public void crescitaPecorelleOnline(InterfacciaOnline interfaccia) {\n\t\tfor (int i = 0; i < pecore.size(); i++) {\n\t\t\tAgnello pecoraConsiderata = pecore.get(i);\n\t\t\tif (pecoraConsiderata != null && pecoraConsiderata.crescita()) {\n\t\t\t\tpecore.remove(pecoraConsiderata);\n\t\t\t\tnumeroAgelli--;\n\t\t\t\tpecoraConsiderata = new PecoraAdulta();\n\t\t\t\tposizionaPecora(pecoraConsiderata);\n\t\t\t\tinterfaccia.crescitaAgnello(this, pecoraConsiderata.getTipo());\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}",
"public void PagarConsulta() {\n\t\tSystem.out.println(\"el patronato es gratiuto y no necesita pagar \");\r\n\t}",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public float impuestoAplicado();",
"private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}",
"public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"public void CobrarImpuestosAmpliado(){\n\t\tif(sueldoBruto>=IMPUESTO_SUP){\n\t\t\tsueldoNeto=sueldoBruto-(sueldoBruto*PAGA_IMPUESTOS_MAX);\n\t\t\ttipoImpuesto=\"Ha pagado el 30% de impuestos\";\n\t\t}\n\t}",
"private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}",
"public abstract void instalar(SistemaOperativo SO);",
"public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\n }",
"public static void main(String[] args) {\n\t\tPessoa PF1 = new PessoaFisica(1,\"Michel\",\"31/03/1988\",\"15785465-01\",\"145.217.365-54\");\n\t\tPF1.AdicionaContato(\"898\",\"222\");\n\t\tPF1.AdicionaEndereco(\"avenida das gar�as\", 1110, \"padre cicero\", \"petrolina\", \"PE\", \"56326000\");\n\t\t\n\t\t// criando cliente pessoa Juridica\n\t\tPessoa PJ1 = new PessoaJuridica(2,\"Tectronic\",\"TECLTDA\",\"10-1009290/0001\");\n\t\tPJ1.AdicionaContato(\"00000\",\"11111\");\n\t\tPJ1.AdicionaEndereco(\"avenida do bambu\", 878, \"jo�oo pio 10\", \"juazeiro\", \"BA\", \"56326000\");\n\t\t\n\t\t// criando objetos produtoodutos\n\t\t/*Produto produto1 = new Produto(10, \"impressora\",35,1,100);\n\t\tProduto produto2 = new Produto(11, \"MicroSystem\",550, 2,80);\n\t\tProduto produto3 = new Produto(12, \"Faqueiro Ipanema\",75, 3,70);\n\t\tProduto produto4 = new Produto(13, \"Mangueira de Jardim\",19, 4,80);\n\t\tProduto produto5 = new Produto(14, \"Mouse multilaser\",25,5,90);*/\n \n Facade fachada = new Facade();\n fachada.incializarProdutos();\n \n\n\t\t// algumas forma de pagamento\n\t\t/*FormaPagamento Pagamento1 = new CartaoCredito(1,\"visa\",\"credito\", 3, \"Mariano Ribeiro\", \"10/10/23\", \"54212345212\",\"132\");\n\t\tFormaPagamento Pagamento2 = new CartaoCredito(2,\"mastercard\",\"debito\", 1, \"Juliana Marinalva\", \"12/09/29\", \"232356789\",\"787\");\n\t\tFormaPagamento Pagamento3 = new Boleto(3,\"19/04/2017\",\"12345678912\",\"Sanatander\");\n\t\tFormaPagamento Pagamento4 = new Boleto(4,\"20/04/2017\",\"12232344423\",\"Banco do Brasil\");\t\t*/\n \n \n\t\t//------------------------------------------------------------------------------------------------------------------------\n\t\t// criando um pedido com cliente e numero de itemens\n\t\tPedido pedido1 = new Pedido(30,PF1,3);\n\t\t\t\t\n\t\t// adicionando produtos como itens da lista de pedido\n\t\t/*ItemPedido item1 = new ItemPedido(20,produto1,3);\n\t\tItemPedido item2 = new ItemPedido(21,produto2,9);\n\t\tItemPedido item3 = new ItemPedido(22,produto3,2);\n\t\tItemPedido item4 = new ItemPedido(23,produto4,4);\n\t\tItemPedido item5 = new ItemPedido(24,produto5,1);*/\n\t\t\n\t\t// adicionando itens a lista de pedido\n\t\t/*pedido1.AdicionandoItemLista(item1,0);\n\t\tpedido1.AdicionandoItemLista(item3,1);\n\t\tpedido1.AdicionandoItemLista(item5,2);*/\n\t\t\t\t\n\t\t//forma de pagamento para o pedido 1\n\t\t//pedido1.setPagamento(Pagamento3);\n\n\t\t// Mostrar dados\n\t\tpedido1.mostrarPedido();\n\t\tSystem.out.println(\"Valor total com desconto: \" + Pedido.desconto(pedido1.getValorTotal(),(float)0.1));\n\t\tpedido1.getPagamento().realizaPagamento(true, \"16/04/17\");\n\t\t\n\t\t\n\t\t\n\t}",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}",
"private int calcularPrecio(Repuesto repuesto, boolean formateo, boolean limpieza) {\n int precio = 0;\n if (repuesto != null) {\n precio += repuesto.getPrecio();\n }\n \n if (formateo) {\n precio += 10000;\n }\n \n if (limpieza) {\n precio += 7500;\n }\n return precio;\n }",
"public agregarProyectos() {\n initComponents();\n }",
"@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }",
"public VotoPregunta vota(Usuario user, Pregunta pregunta, boolean up) throws PrivilegioInsuficienteException;",
"@Override\n\t@BreadCrumb(\"%{model.titolo}\")\n\tpublic String execute() throws Exception {\n \t\n \t//eseguo la ricerca:\n \texecuteRicercaAccertamentoPerOrdinativo();\n\n\t\t//carica le labels:\n\t\tcaricaLabelsInserisci(2, model.getGestioneOrdinativoStep1Model().getOrdinativo().getUid() == 0);\n\t\t\n\t\t//controllo filo arianna:\n\t\tif(model.getGestioneOrdinativoStep1Model().getCapitolo()!=null){\n\t\t\tif(model.getGestioneOrdinativoStep1Model().getCapitolo().getAnno()==null){\n\t\t\t\t// significa che sono andato in inserimento -> consulta -> click su filo di arianna quote\n\t\t\t\treturn \"erroreFiloArianna\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//setto il tipo di oggeto trattato:\n\t\tteSupport.setOggettoAbilitaTE(OggettoDaPopolareEnum.ORDINATIVO_INCASSO.toString());\n\t\t\n\t\t//abilita o meno il bottone salva:\n\t\tattivaBottoneSalva();\n\t\t\n\t\t// effettua la somma delle righe delle quote\n\t\tif(model.isSonoInAggiornamentoIncasso()){\n\t\t\tsommatoriaQuoteSubOrdIncassoPerAggiorna();\n\t\t}else{\n\t\t\tsommatoriaQuoteSubOrdIncasso();\n\t\t}\n\t\t\n\t\tif (caricaListeBil(WebAppConstants.CAP_EG)) {\n\t\t\treturn INPUT;\n\t\t}\n\t\n\t\t//Constanti.ORDINATIVO_TIPO_PAGAMENTO\n\t\t// Jira - 1357 in caso di errore di caricamento dei dati\n\t\t// dei classificatori non viene segnalato alcun errore\n\t\t// ma carica la pagina, al massimo non verranno visualizzate le combo relative\n\t\t\n\t\tcaricaListeFin(TIPO_ACCERTAMENTO_A );\n\t\t\n\t\t//ricontrolliamo il siope che sia coerente:\n\t\tcodiceSiopeChangedInternal(teSupport.getSiopeSpesaCod());\n\t\t//\n\t\t\t\n\t\t// imposto la descrizione della quota ocn quella dell'accertamento \n\t\tString descrizioneQuota = \"\";\n\t\tif(model.getGestioneOrdinativoStep2Model().getListaAccertamento()!=null && !model.getGestioneOrdinativoStep2Model().getListaAccertamento().isEmpty() &&\n\t\t\t\tmodel.getGestioneOrdinativoStep2Model().getListaAccertamento().size()==1){\n\t\t\tdescrizioneQuota = model.getGestioneOrdinativoStep2Model().getListaAccertamento().get(0).getDescrizione();\n\t\t\tmodel.getGestioneOrdinativoStep2Model().setDescrizioneQuota(descrizioneQuota);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn SUCCESS;\n\t}",
"private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}",
"protected static void executeInitialPLWS() throws IOException, DatatypeConfigurationException {\n\t\tList<PrivredniSubjekat> pSInicijalno = runInitiallyCSV(getApplicationContext());\n\t\tfor (PrivredniSubjekat ps : pSInicijalno) {\n\t\t\tSystem.out.println(ps.getMaticniBroj() + \" \" + ps.getTip());\n\t\t}\n\n\t\t/*\n\t\t * JdbcTemplate jdbcTemplate =\n\t\t * applicationContext.getBean(\"jdbcTemplate\", JdbcTemplate.class);\n\t\t * \n\t\t * EntitySOAPeDAOServiceImpl entitySOAPeDAOServiceImpl =\n\t\t * (EntitySOAPeDAOServiceImpl) applicationContext\n\t\t * .getBean(\"entitySOAPService\");\n\t\t */\n\t\t/*\n\t\t * entitySOAPeDAOServiceImpl.insertListInitially(pSInicijalno,\n\t\t * jdbcTemplate);\n\t\t * \n\t\t * logger.info(\n\t\t * \" |INFO| Insertovano u tabelu Promene je uspešno izvršen. \");\n\t\t * \n\t\t * // entitySOAPeDAOServiceImpl.insertZaJMBInit(pSInicijalno, //\n\t\t * jdbcTemplate);\n\t\t * \n\t\t * ArrayOfPrivredniSubjekat psMBarray = null; for (PrivredniSubjekat ps\n\t\t * : pSInicijalno) { String mb = ps.getMaticniBroj(); String tip =\n\t\t * ps.getTip(); psMBarray = podaciZaMaticniBroj(mb, tip, plStub);\n\t\t * entitySOAPeDAOServiceImpl.insertZaJMB(psMBarray, jdbcTemplate); }\n\t\t */\n\n\t\tSystem.out.println(\"executeInitialPLWS\");\n\n\t}",
"public void geneticoPSO(){ \n //leer archivos de texto\n nombreArchivos.stream().map((nombreArchivo) -> lam.leerArchivo(nombreArchivo)).forEach((Mochila moc) -> {\n mochilas.add(moc);\n }); \n \n int o = 0;\n for (Mochila mochila : mochilas) { \n \n Algorithm_PSO alg_pso = new Algorithm_PSO(0.1, 0.8, 0.7, 0.6, 1, tamanioPob, EFOs, mochila.getSolucion().length, mochila); \n Individuo_mochilaPSO res = (Individuo_mochilaPSO)alg_pso.correr();\n System.out.println(\"fitnes: \" + res.getFitness() + \". Solucion\" + Arrays.toString(res.getCromosoma()));\n if (o == 9){\n System.out.println(\"\");\n }\n o++;\n }\n \n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@RequestMapping(\"/leggi-catalogo\")\n @ResponseBody\n \n public ListaProdottiDto inserisciContatto(@RequestBody leggiCatalogoCompleto dto) {\n Prodotto c = dto.getContatto();\n // inserisco il contatto su DB e ottengo il DB aggiornato\n List<Prodotto> lista = CatalogoService.inserisciArticolo();\n // creo un nuovo DTO per la risposta\n ListaProdottiDto risp = new ListaProdottiDto(lista);\n // ritorno il DTO\n return risp;\n }",
"public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }",
"public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }",
"@Override\n\tpublic String executa(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tJuncaoEstoqueProduto estoque = new JuncaoEstoqueProduto(Integer.parseInt(request.getParameter(\"quantidade\")),\n\t\t\t\trequest.getParameter(\"nome\"),request.getParameter(\"codProduto\"),Integer.parseInt(request.getParameter(\"quantidadeMinima\")));\n\t\t// enviar dados para o DAO persistir\n\t\tnew JuncaoEstoqueProdutoDAO().salvar(estoque);\n\t\t//retornar o nome da view\n\t\trequest.setAttribute(\"msg\", \"parabéns produto cadastrado com sucesso\");\n\t\treturn \"cadastroProduto\";\n\t}",
"private void pararServicioPomodoro(){\n Intent pararServicio = new Intent(this,ServicioPomodoro.class);\n pararServicio.setAction(\"intentParar\");\n startService(pararServicio);\n tiempo.stop();\n tiempo.setBase(SystemClock.elapsedRealtime());\n }",
"static String MostrarPergunta(int pergunta)\n {\n String montada = \"\";\n \n montada = montada + Perguntas(pergunta); //pega as perguntas na função de Perguntas, contatena com a String montada\n montada = montada + \"\\n\";\n \n String [] opcoes = Opcoes(pergunta); //pega as opções de acordo com a numeração da pergunta \n \n for (int i = 0; i < opcoes.length; i++) \n {\n montada = montada + (opcoes[i] + \"\\n\"); //monta as opções com as perguntas com as respectivas numeração \n }\n montada = montada + \"\\n\";\n montada = montada + \"\\n\";\n \n return montada;\n \n }",
"void pasarALista();",
"List<Videogioco> retriveByPiattaforma(String piattaforma);",
"public void setProdotto(String prodotto) {\r\n\t\tthis.prodotto = prodotto;\r\n\t}",
"@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}",
"@Override\n\tpublic void goToUIPrestamo() {\n\t\tif(uiHomePrestamo!=null){\n\t\t\tif(!uiHomePrestamo.getModo().equals(\"HISTORIAL\")){\n\t\t\t\tuiHomePrestamo.getUIPrestamoImpl().sendPrestamoHistorial(beanPrestamo.getIdPrestamo());\n\t\t\t}\t\t\n\t\t\tuiHomePrestamo.getContainer().showWidget(0);\n\t\t\tuiHomePrestamo.getUIPrestamoImpl().cargarTabla();\n\t\t}else if(uiHomeCobranza!=null){\n\t\t\tuiHomeCobranza.getUIPrestamoImpl().sendPrestamoHistorial(beanPrestamo.getIdPrestamo());\n\t\t\tuiHomeCobranza.getContainer().showWidget(1);\n\t\t\tuiHomeCobranza.getUIPrestamoImpl().cargarPrestamoGestorCobranza();\n\t\t}\n\t\t\t\t\t\n\t}",
"@Override\n\tpublic void crearPoblacion() {\n\t\tif(this.terminales == null || this.funciones == null) {\n\t\t\tSystem.out.println(\"Error. Los terminales y las funciones tienen que estar inicializados\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tpoblacion = new ArrayList<>();\n\t\tfor(int i = 0; i < this.numIndividuos; i++) {\n\t\t\tIndividuo ind = new Individuo();\n\t\t\tind.crearIndividuoAleatorio(this.profundidad, this.terminales, this.funciones);\n\t\t\tthis.poblacion.add(ind);\n\t\t}\n\t}",
"public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}",
"public interface Iprocedimentos {\r\n\tdouble realizarProcedimento(Paciente paciente) throws ProcedimentoException;\r\n}",
"@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO generarExpedienteOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO generarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"generarExpedienteOrdenServicio\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try{\r\n expedienteDTO.setEstado(Constantes.ESTADO_ACTIVO);\r\n PghExpediente pghExpediente = ExpedienteGSMBuilder.toExpedienteDomain(expedienteDTO);\r\n pghExpediente.setFechaEstadoProceso(new Date());\r\n pghExpediente.setDatosAuditoria(usuarioDTO);\r\n crud.create(pghExpediente);\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(pghExpediente);\r\n \r\n //reg historicoEstado\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_EXPEDIENTE).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(pghExpediente.getIdExpediente(), null, pghExpediente.getIdEstadoProceso().getIdEstadoProceso(), pghExpediente.getIdPersonal().getIdPersonal(), pghExpediente.getIdPersonal().getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO);\r\n LOG.info(\"historicoEstado-->\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(retorno.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n //personalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null)).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n //personalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa())).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty()){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en generarExpedienteOrdenServicio\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }",
"private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}",
"public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }",
"private DocumentoProcesoDTO registrarDocumentoSolicitudBien(EnumTipoDocumentoGenerado tipoDocGenerado,\n TrazabilidadProcesoDTO traza, OficioBienDTO oficioBienDTO, EnumTipoDocumentoProceso tipoDocProceso,\n String responsableGeneracion) throws CirculemosAlertaException {\n // Genera documento\n GeneraDocumentoDTO generaDocumento = new GeneraDocumentoDTO();\n generaDocumento.setFechaGeneracion(oficioBienDTO.getFechaGeneracion());\n generaDocumento.setIdTipoDocumentoGenerado(tipoDocGenerado);\n Object[] valoresParametros = { oficioBienDTO.getId() };\n generaDocumento.setValoresParametros(valoresParametros);\n Long idDocumento = iRDocumentosCirculemos.generarDocumento(generaDocumento);\n\n // Guarda el documento generado\n DocumentoProcesoDTO documentoProceso = new DocumentoProcesoDTO();\n documentoProceso.setNumeroDocumento(idDocumento);\n documentoProceso.setTrazabilidadProceso(traza);\n TipoDocumentoProcesoDTO tipoDocumento = new TipoDocumentoProcesoDTO();\n tipoDocumento.setId(tipoDocProceso.getValue());\n documentoProceso.setTipoDocumento(tipoDocumento);\n // Responsable de la generacion de los documentos\n documentoProceso.setResponsableGeneracion(responsableGeneracion);\n documentoProceso = iRFachadaProceso.registrarDocumento(documentoProceso);\n return documentoProceso;\n }",
"public void setPuesto(String puesto) {\n this.puesto = puesto;\n }",
"private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }",
"public static void promedioBoletaCliente() {\r\n\t\tPailTap clienteBoleta = getDataTap(\"C:/Paula/masterset/data/9\");\r\n\t\tPailTap boletaProperty = getDataTap(\"C:/Paula/masterset/data/4\");\r\n\t\t\r\n\t\tSubquery promedio = new Subquery(\"?Cliente_id\", \"?Promedio\", \"?Dia\")\r\n\t\t\t\t.predicate(clienteBoleta, \"_\", \"?data\")\r\n\t\t\t\t.predicate(boletaProperty, \"_\", \"?data2\")\r\n\t\t\t\t.predicate(new ExtractClienteBoleta(), \"?data\").out(\"?Cliente_id\", \"?Boleta_id\", \"?Dia\")\r\n\t\t\t\t.predicate(new ExtractBoletaTotal(), \"?data2\").out(\"?Boleta_id\",\"?Total\")\r\n\t\t\t\t.predicate(new Avg(), \"?Total\").out(\"?Promedio\");\r\n\t\t\r\n\t\tSubquery tobatchview = new Subquery(\"?json\")\r\n\t\t\t\t.predicate(promedio, \"?Cliente\", \"?Promedio\", \"?Dia\")\r\n\t\t\t\t.predicate(new ToJSON(), \"?Cliente\", \"?Promedio\", \"?Dia\").out(\"?json\");\r\n\t\tApi.execute(new batchview(), tobatchview);\r\n\t\t//Api.execute(new StdoutTap(), promedio);\r\n\t}",
"public static String processCajaBancoOperacion(Cuenta cn, Operacion oper, EntityManager em, \n\t\t\tMutableLocalEntityProvider<Cuenta> cuentaEP, MutableLocalEntityProvider<Operacion> operacionEP) throws Exception {\n\t\tString logCaja = \"\";\n\t\tBoolean isEfectivo = oper.getTipo().toString().equals(Tipo.EFECTIVO.toString()); \n\t\tCuenta cajaCuenta;\n\t\tif (isEfectivo) {\n\t\t\tif (cn.getCategoriaCuenta().getCajaCuenta()==null) throw new Exception(\"La categoria de esta Cuenta no tiene una cuenta de CAJA!!!\"); \n\t\t\tcajaCuenta = cuentaEP.getEntityManager().find(Cuenta.class, cn.getCategoriaCuenta().getCajaCuenta().getId(), LockModeType.PESSIMISTIC_WRITE);\n\t\t} else {\n\t\t\tif (oper.getBanco().getBancoCuenta()==null) throw new Exception(\"El banco seleccionado no tiene una cuenta!!!\\nBanco seleccionado: \" + oper.getBanco());\n\t\t\tcajaCuenta = cuentaEP.getEntityManager().find(Cuenta.class, oper.getBanco().getBancoCuenta().getId(), LockModeType.PESSIMISTIC_WRITE);\n\t\t}\n\t\tlogCaja = \" Caja antes, PEN: \" + cajaCuenta.getPen() + \" USD: \" + cajaCuenta.getUsd();\n\t\tcajaCuenta.setPen(cajaCuenta.getPen().add(oper.getPen()));\n\t\tcajaCuenta.setUsd(cajaCuenta.getUsd().add(oper.getUsd()));\n\t\tcajaCuenta = cuentaEP.updateEntity(cajaCuenta);\n\t\tlogCaja += \", CAJA ahora PEN: \" + cajaCuenta.getPen() + \", USD: \"\n\t\t\t\t+ cajaCuenta.getUsd();\t\t\t\t\t\n\t\t// NEW CODE - added operacion to caja Cuenta\n\t\tOperacion cajaOperacion = oper.giveCajaOperacion(cajaCuenta);\n\t\tObject cajaOperacionAdded = operacionEP.addEntity(cajaOperacion);\n\t\tObject newCajaOperacionId = ((Operacion)cajaOperacionAdded).getId();\n\t\trecalculateSaldos((Operacion)cajaOperacionAdded, em);\n\t\tlogCaja += \"new caja oper id: \" + newCajaOperacionId;\n\t\tlogger.info(logCaja);\n\t\treturn logCaja;\n\t}",
"private PiattoModulo getModuloPiatto() {\n return (PiattoModulo)Progetto.getModulo(Ristorante.MODULO_PIATTO);\n }",
"public String altaGenero(){\n int id = coleccionGenero.size() + 1;\n Genero gen = new Genero(id, generoSeleccionado);\n //graba en bd\n GeneroService serv = new GeneroService();\n //refrescar otra vez la lista\n return \"lista-genero\";\n }",
"private static void operacionesJugar() {\r\n\t\tjuego.actualizarJugadores(respuesta);\r\n\t\tJugadorM[] ganadores;\r\n\t\ttry {\r\n\t\t\tint before = juego.getNJugadoresActivos();\r\n\t\t\tganadores = juego.finalizarRonda();\r\n\t\t\tif (ganadores.length == 0) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == before) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == 1) {\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tFINhayGanador(ganadores[0]);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t} else {\r\n\t\t\t\tmostrarGanadoresRonda(ganadores);\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t}\r\n\t\t} catch (AllRondasCompleteException e) {\r\n\t\t\tFINtotalRondasAlcanzadas(e);\r\n\t\t}\r\n\t}",
"public ConsultaPNporproducto() {\n initComponents();\n ListarPro();\n }",
"protected void creationAppr(Connection con) {\n try {\n PreparedStatement pst = con.prepareStatement(\"SELECT identifiant, transitionIdentifier, fixIdentifiant, icaoCodeFix, secCodeFix, subCodeFix, aeroportIdentifiant, icaoCode, sequenceNumber FROM procedure where typeProcedure like 'APPR' ORDER BY aeroportIdentifiant, identifiant, transitionIdentifier ,sequenceNumber asc\");\n ResultSet rs = pst.executeQuery();\n rs.next();\n String runwayIdentifiant = rs.getString(1);\n String transitionIdentifier = rs.getString(2);\n String aeroport = rs.getString(7);\n String icaoCode = rs.getString(8);\n String premierPoint = null;\n if (transitionIdentifier.equals(\"\")) {\n premierPoint = rs.getString(3);\n } else {\n premierPoint = transitionIdentifier;\n }\n\n String sequenceNumber = rs.getString(9);\n List<LatitudeLongitude> couple = new ArrayList<>();\n do {\n System.out.println(\"Premier point\" + premierPoint);\n\n if (!transitionIdentifier.equals(rs.getString(2)) && !sequenceNumber.equals(rs.getString(9))) {\n System.out.println(\"Ajout bdd de \" + premierPoint);\n // ajout en bdd du precedent\n PreparedStatement ajoutSid = con.prepareStatement(\"INSERT INTO appr (runwayIdentifiant, typeApproche, aeroportIdentifiant, icaoCode, premierPoint ,balises) VALUES (?,CAST(? AS typeAppr),?,?,?,?)\");\n ajoutSid.setString(1, runwayIdentifiant);\n ajoutSid.setString(2, runwayIdentifiant.substring(0, 1));\n ajoutSid.setString(3, aeroport);\n ajoutSid.setString(4, icaoCode);\n ajoutSid.setString(5, premierPoint);\n\n\n String[][] tab = new String[couple.size()][2];\n for (int i = 0; i < couple.size(); i++) {\n tab[i][0] = couple.get(i).getLatitude();\n tab[i][1] = couple.get(i).getLongitude();\n }\n\n Array arraySql = con.createArrayOf(\"text\", tab);\n ajoutSid.setArray(6, arraySql);\n ajoutSid.executeUpdate();\n couple.clear();\n\n // on update l'identifiant ds la boucle\n runwayIdentifiant = rs.getString(1);\n transitionIdentifier = rs.getString(2);\n aeroport = rs.getString(7);\n icaoCode = rs.getString(8);\n if (transitionIdentifier.equals(\"\")) {\n premierPoint = rs.getString(3);\n } else {\n premierPoint = transitionIdentifier;\n }\n }\n\n ResultSet rsBalise = null;\n if (!rs.getString(3).equals(\"\")) {\n if (rs.getString(5).equals(\"D\") && rs.getString(6).equals(\"B\")) {\n //NDB\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM ndb where identifiant like ? and icaoCode like ?\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"NDB\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n } else if (rs.getString(5).equals(\"E\") && rs.getString(6).equals(\"A\")) {\n //waypoint en route\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM waypoint where identifiant like ? and icaoCode like ? and aeroport like 'ENRT'\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"WayPoint\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n } else if (rs.getString(5).equals(\"P\") && rs.getString(6).equals(\"C\")) {\n //waypoint terminaux\n PreparedStatement pstBalise = con.prepareStatement(\"SELECT latitude, longitude FROM waypoint where identifiant like ? and icaoCode like ? and aeroport like ?\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n pstBalise.setString(3, rs.getString(7));\n rsBalise = pstBalise.executeQuery();\n\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"WayPoint\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n } else if (rs.getString(5).equals(\"D\") && rs.getString(6).equals(\"\")) {\n //VHF\n PreparedStatement pstBalise = con.prepareStatement(\"(SELECT latitude, longitude from vor where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from vorDme where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from dme where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from tacan where identifiant=? and icaoCode=?)UNION(SELECT latitude,longitude from ilsdme where identifiant=? and icaoCode=?)\");\n pstBalise.setString(1, rs.getString(3));\n pstBalise.setString(2, rs.getString(4));\n pstBalise.setString(3, rs.getString(3));\n pstBalise.setString(4, rs.getString(4));\n pstBalise.setString(5, rs.getString(3));\n pstBalise.setString(6, rs.getString(4));\n pstBalise.setString(7, rs.getString(3));\n pstBalise.setString(8, rs.getString(4));\n pstBalise.setString(9, rs.getString(3));\n pstBalise.setString(10, rs.getString(4));\n rsBalise = pstBalise.executeQuery();\n if (rsBalise.next()) {\n couple.add(new LatitudeLongitude(rsBalise.getString(1), rsBalise.getString(2)));\n System.out.println(\"VHF\" + rs.getString(2));\n }\n rsBalise.close();\n pstBalise.close();\n\n\n }\n\n } else {\n System.out.println(\"fix identifier vide\");\n }\n sequenceNumber = rs.getString(9);\n System.out.println(\"FIN\");\n } while (rs.next());\n\n PreparedStatement ajoutSid = con.prepareStatement(\"INSERT INTO appr (runwayIdentifiant, typeApproche, aeroportIdentifiant, icaoCode, premierPoint ,balises) VALUES (?,CAST(? AS typeAppr),?,?,?,?)\");\n ajoutSid.setString(1, runwayIdentifiant);\n ajoutSid.setString(2, runwayIdentifiant.substring(0, 1));\n ajoutSid.setString(3, aeroport);\n ajoutSid.setString(4, icaoCode);\n ajoutSid.setString(5, premierPoint);\n\n String[][] tab = new String[couple.size()][2];\n for (int i = 0; i < couple.size(); i++) {\n tab[i][0] = couple.get(i).getLatitude();\n tab[i][1] = couple.get(i).getLongitude();\n }\n\n Array arraySql = con.createArrayOf(\"text\", tab);\n ajoutSid.setArray(6, arraySql);\n ajoutSid.executeUpdate();\n couple.clear();\n\n rs.close();\n pst.close();\n\n\n } catch (SQLException ex) {\n Logger.getLogger(Approche.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n\n }",
"protected void generar() {\n generar(1, 1);\n }",
"private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}",
"void crearCampania(GestionPrecioDTO campania);",
"public void acionarInadimplencia(InstrumentoFinanceiroDO ativo);",
"public void registraPoliticasCond (Long codPropuesta, ReformaTributariaInput reformaIn, Collection deudas, ReformaTributariaOutput reformaOut)throws Exception{\n \t\n Connection conn = null;\n CallableStatement call = null;\n try{ \n conn = this.getConnection();\n //codPropuesta=null;//prueba que pasa\n //reformaIn=null;\n \t int canal=0;\n \t int tipoConvenio=0;\n \t int garantia=0;\n\t\t \tIterator itera = deudas.iterator();\n\t\t \t//System.out.println(\"<-------------------------------------Ingreso a registrar opciones--------------------------------------->\");\n\t\t while(itera.hasNext()) {\n\t\t \t\n\t\t \tDeudaWeb elemento = (DeudaWeb) itera.next();\n\t\t \t\n\t\t \t/*System.out.println(\"codPropuesta--->\"+codPropuesta);\n\t\t \tSystem.out.println(\"getIsIntranet--->\"+reformaIn.getIsIntranet());\n\t\t \tSystem.out.println(\"getPagoTotalConvenio--->\"+reformaIn.getPagoTotalConvenio());\n\t\t \tSystem.out.println(\"getComportamientoConvenio--->\"+reformaIn.getComportamientoConvenio());\n\t\t \tSystem.out.println(\"getRutContribuyente--->\"+reformaIn.getRutContribuyente());\n\t\t \tSystem.out.println(\"getTieneGarantia--->\"+reformaIn.getTieneGarantia());\n\t\t \tSystem.out.println(\"getTipoContribuyente--->\"+elemento.getTipoContribuyente());\n\t\t \tSystem.out.println(\"getTipoFormulario--->\"+elemento.getTipoFormulario());\n\t\t \tSystem.out.println(\"getRutRol--->\"+elemento.getRutRol());\n\t\t \tSystem.out.println(\"getFolio--->\"+elemento.getFolio());\n\t\t \tSystem.out.println(\"getFechaVencimiento--->\"+elemento.getFechaVencimiento());\n\t\t \tSystem.out.println(\"getFechaAntiguedad--->\"+elemento.getFechaAntiguedad());\n\t\t \tSystem.out.println(\"getPorcentajeCondonacionMultas--->\"+elemento.getPorcentajeCondonacionMultas());\n\t\t \tSystem.out.println(\"getPorcentajeCondonacionIntereses--->\"+elemento.getPorcentajeCondonacionIntereses());\n\t\t \tSystem.out.println(\"getBeneficioPp--->\"+reformaOut.getBeneficioPp());\n\t\t \tSystem.out.println(\"getMinCuotaContado--->\"+reformaOut.getMinCuotaContado());\n\t\t \tSystem.out.println(\"getMaxCuota--->\"+reformaOut.getMaxCuota());*/\n\t\t \t\n\t\t \tcall = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.INSERTA_CONDICION_CNV(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\");\n\t\t \t\n\t\t \t\n\t\t \t\n\t\t \t//obtengo canal\n\t\t \tif (reformaIn.getIsIntranet().booleanValue()){\n\t\t \t\tcanal=1;//presencial\n\t\t \t}else {\n\t\t \t\tcanal=2;//internet\n\t\t \t}\n\t\t \t\n\t\t \t//obtengo tipo convenio\n\t\t \tif (reformaIn.getPagoTotalConvenio().booleanValue()){\n\t\t \t\ttipoConvenio=1;//total\n\t\t \t}else{\n\t\t \t\ttipoConvenio=2;//parcial\n\t\t \t}\n\t\t \t\n\t\t \t//obtengo garantia\n\t\t \tif (reformaIn.getTieneGarantia().booleanValue()){\n\t\t \t\tgarantia=1;//con garatia\n\t\t \t}else{\n\t\t \t\tgarantia=2;//sin garantia\n\t\t \t}\n\t\t \t\n\t\t \t\n\t\t \tcall.setLong(1, codPropuesta.longValue());\n\t\t \tcall.setLong(2, canal);//canal;\n\t\t \tcall.setLong(3, tipoConvenio);//Tipo convenio Pago total-pago parcial\n\t\t \tcall.setLong(4, reformaIn.getComportamientoConvenio().longValue());//comportamiento Bueno=1 / Regular=2 / Malo=3\n\t\t \tcall.setLong(5, reformaIn.getRutContribuyente().longValue());//rut evaluado;\n\t\t \tcall.setLong(6, garantia);//embargo / o garantia\n\t\t \tcall.setLong(7, elemento.getTipoContribuyente());//cliente_tipo;\n\t\t \tcall.setLong(8, elemento.getTipoFormulario());//tipo_forulario;\n\t\t \tcall.setLong(9, elemento.getRutRol());//rut_rol;\n\t\t \tcall.setLong(10, elemento.getFolio());//form_folio;\n\t\t \tcall.setDate(11,elemento.getFechaVencimiento());//fecha_vcto;\n\t\t \tcall.setDate(12,elemento.getFechaAntiguedad());//fecha_antiguedad;\n\t\t \tcall.setLong(13, elemento.getPorcentajeCondonacionMultas());//porcentaje condonacion multas\n\t\t \tcall.setLong(14, elemento.getPorcentajeCondonacionIntereses());//porcentaje condonacion intereses\n\t\t \tcall.setLong(15, reformaOut.getBeneficioPp().longValue());//beneficio pronto pago o incentivo al pago;\n\t\t \tcall.setLong(16, reformaOut.getMinCuotaContado().longValue());//porcentaje minimo cuota contado\n\t\t \tcall.setLong(17, reformaOut.getMaxCuota().longValue());//porcentaje maximo cuotas\n\t\t \tcall.setNull(18, OracleTypes.VARCHAR);//error\n\t\t \t\n\t\t \tcall.execute();\n\t\t \t\n\t }\n\t\t \n\t\t call.close(); \n }catch (Exception e) {\n e.printStackTrace();\n }finally{\n this.closeConnection();\n }\t\t \n \t\n }",
"public void pintar(PApplet app) {\n\t\tapp.image(pantallasImg[pantalla], 0, 0, app.width, app.height);\n\t\tpintarCamposRegistro(app, index);\n\t\tlistarUsuarios(app);\n\n\t\tif (pantalla == 0) {\n\t\t\tif (app.mouseX >= 10 && app.mouseX <= 190 && app.mouseY >= 580 && app.mouseY <= 630) {\n\t\t\t\tapp.image(iniS2, 10, 580);\n\n\t\t\t} else {\n\t\t\t\tapp.image(iniS, 10, 580);\n\t\t\t}\n\n\t\t\tif (app.mouseX >= 200 && app.mouseX <= 600 && app.mouseY >= 580 && app.mouseY <= 630) {\n\t\t\t\tapp.image(reg2, 200, 580);\n\t\t\t} else {\n\t\t\t\tapp.image(reg, 200, 580);\n\n\t\t\t}\n\n\t\t\tapp.image(quit, 50, 650);\n\n\t\t} else if (pantalla == 1) {\n\n\t\t\tif (app.mouseX >= 45 && app.mouseX <= 394 && app.mouseY >= 20 && app.mouseY <= 60) {\n\t\t\t\tapp.image(back1, 45, 20);\n\t\t\t} else {\n\t\t\t\tapp.image(back, 45, 20);\n\t\t\t}\n\t\t\t// BOTON CUANDO NO TIENE CUENTA Y LE DA CLICK EN REGISTRARSE\n\t\t\tapp.image(noacount, 70, 650);\n\n\t\t\t// BOTON PARA ENTRAR\n\t\t\tif (app.mouseX >= 70 && app.mouseX <= 332 && app.mouseY >= 500 && app.mouseY <= 573) {\n\t\t\t\tapp.image(entrar, 69, 498, 265, 78);\n\t\t\t} else {\n\t\t\t\tapp.image(entrar, 70, 500, 262, 73);\n\t\t\t}\n\n\t\t\tapp.image(ask, 330, 435);\n\n\t\t} else if (pantalla == 2) {\n\n\t\t\t// BOTON PARA DEVOLVERSE\n\t\t\tif (app.mouseX >= 45 && app.mouseX <= 394 && app.mouseY >= 20 && app.mouseY <= 60) {\n\t\t\t\tapp.image(back1, 45, 20);\n\t\t\t} else {\n\t\t\t\tapp.image(regback, 45, 20);\n\t\t\t}\n\n\t\t\t/// BOTON PARA SUBIR FOTO\n\t\t\tif (app.mouseX >= 110 && app.mouseX <= 270 && app.mouseY >= 90 && app.mouseY <= 237) {\n\t\t\t\tapp.image(photo, 109, 84, 165, 165);\n\t\t\t} else {\n\t\t\t\tapp.image(photo, 110, 85, 162, 162);\n\t\t\t}\n\n\t\t\t// BOTON PARA FINALIZAR REGISTRO\n\n\t\t\tif (app.mouseX >= 60 && app.mouseX <= 331 && app.mouseY >= 600 && app.mouseY <= 674) {\n\t\t\t\tapp.image(finish, 59, 599, 273, 77);\n\t\t\t} else {\n\t\t\t\tapp.image(finish, 60, 600);\n\t\t\t}\n\n\t\t} else if (pantalla == 3) {\n\n\t\t\t// BOTON PARA DEVOLVERSE\n\t\t\tif (app.mouseX >= 45 && app.mouseX <= 394 && app.mouseY >= 20 && app.mouseY <= 60) {\n\t\t\t\tapp.image(back1, 45, 20);\n\t\t\t} else {\n\t\t\t\tapp.image(instrucciones, 45, 20);\n\t\t\t}\n\n\t\t\t// BOTON PARA EMPEZAR EL TEST\n\t\t\tif (app.mouseX >= 60 && app.mouseX <= 331 && app.mouseY >= 600 && app.mouseY <= 674) {\n\t\t\t\tapp.image(next, 60, 609, 273, 78);\n\t\t\t} else {\n\t\t\t\tapp.image(next, 60, 610, 270, 75);\n\t\t\t}\n\n\t\t} else if (pantalla > 3 && pantalla < 16) {\n\n\t\t\t// BOTON PARA DEVOLVERSE\n\t\t\tif (app.mouseX >= 45 && app.mouseX <= 394 && app.mouseY >= 20 && app.mouseY <= 60) {\n\t\t\t\tapp.image(back1, 45, 20);\n\t\t\t} else {\n\t\t\t\tapp.image(volver, 45, 20);\n\t\t\t}\n\n\t\t} else if (pantalla == 16) {\n\n\t\t\tif (app.mouseX >= 60 && app.mouseX <= 341 && app.mouseY >= 550 && app.mouseY <= 632) {\n\t\t\t\tapp.image(startnow, 60, 549, 283, 85);\n\t\t\t} else {\n\t\t\t\tapp.image(startnow, 60, 550);\n\t\t\t}\n\n\t\t} else if (pantalla == 17) {\n\n\t\t\t// BUTTON MENU DESPLEGABLE\n\t\t\tif (app.mouseX >= 340 && app.mouseX <= 380 && app.mouseY >= 23 && app.mouseY <= 60) {\n\t\t\t\tapp.image(iconmenu, 330, 19, 62, 46);\n\t\t\t} else {\n\t\t\t\tapp.image(iconmenu, 330, 20, 59, 43);\n\t\t\t}\n\n\t\t\t// BOTONES PRINCIPALES\n\t\t\tif (app.mouseX > 0 && app.mouseX < 200 && app.mouseY > 310 && app.mouseY < 510) {\n\t\t\t\tapp.image(crearplans, 0, 310);\n\t\t\t} else {\n\t\t\t\tapp.image(crearplan, 0, 310);\n\t\t\t}\n\n\t\t\tif (app.mouseX > 0 && app.mouseX < 200 && app.mouseY > 505 && app.mouseY < 705) {\n\t\t\t\tapp.image(topics, 0, 505);\n\t\t\t} else {\n\t\t\t\tapp.image(topic, 0, 505);\n\t\t\t}\n\t\t\tif (app.mouseX > 198 && app.mouseX < 400 && app.mouseY > 310 && app.mouseY < 510) {\n\t\t\t\tapp.image(toptens, 198, 310);\n\t\t\t} else {\n\t\t\t\tapp.image(topten, 198, 310);\n\t\t\t}\n\n\t\t\tif (app.mouseX > 198 && app.mouseX <= 400 && app.mouseY > 505 && app.mouseY < 705) {\n\t\t\t\tapp.image(perfils, 198, 505);\n\t\t\t} else {\n\t\t\t\tapp.image(perfil, 198, 505);\n\t\t\t}\n\n\t\t} else if (pantalla == 18) {\n\n\t\t\t// BUTTON MENU DESPLEGABLE\n\t\t\tif (app.mouseX > 340 && app.mouseX < 380 && app.mouseY > 23 && app.mouseY < 60) {\n\t\t\t\tapp.image(iconmenun, 330, 19, 62, 46);\n\t\t\t} else {\n\t\t\t\tapp.image(iconmenun, 330, 20, 59, 43);\n\t\t\t}\n\n\t\t\tif (app.mouseX > 0 && app.mouseX < 323 && app.mouseY > 140 && app.mouseY < 200) {\n\t\t\t\tapp.image(opmenups, -3, 140);\n\t\t\t} else {\n\t\t\t\tapp.image(opmenup, -3, 140);\n\t\t\t}\n\t\t\tif (app.mouseX > 0 && app.mouseX < 323 && app.mouseY > 200 && app.mouseY < 260) {\n\t\t\t\tapp.image(opmenuts, -3, 200);\n\t\t\t} else {\n\t\t\t\tapp.image(opmenut, -3, 200);\n\t\t\t}\n\t\t\tif (app.mouseX > 0 && app.mouseX < 323 && app.mouseY > 260 && app.mouseY < 320) {\n\t\t\t\tapp.image(opmenucsel, -3, 260);\n\t\t\t} else {\n\t\t\t\tapp.image(opmenuc, -3, 260);\n\t\t\t}\n\t\t\tif (app.mouseX > 0 && app.mouseX < 323 && app.mouseY > 320 && app.mouseY < 380) {\n\t\t\t\tapp.image(opmenucpsel, -3, 320);\n\t\t\t} else {\n\t\t\t\tapp.image(opmenucp, -3, 320);\n\t\t\t}\n\t\t\tif (app.mouseX > 0 && app.mouseX < 323 && app.mouseY > 380 && app.mouseY < 440) {\n\t\t\t\tapp.image(opmenuccs, -3, 380);\n\t\t\t} else {\n\t\t\t\tapp.image(opmenucc, -3, 380);\n\t\t\t}\n\t\t\tif (app.mouseX > 0 && app.mouseX < 323 && app.mouseY > 440 && app.mouseY < 500) {\n\t\t\t\tapp.image(opmenuas, -3, 440);\n\t\t\t} else {\n\t\t\t\tapp.image(opmenua, -3, 440);\n\t\t\t}\n\t\t\tif (app.mouseX > 0 && app.mouseX < 323 && app.mouseY > 620 && app.mouseY < 680) {\n\t\t\t\tapp.image(opmenucssel, -3, 620);\n\t\t\t} else {\n\t\t\t\tapp.image(opmenucs, -3, 620);\n\t\t\t}\n\t\t} else if (pantalla == 19) {\n\n\t\t\t/// CREAR PLAN\n\t\t\tapp.image(cpscreen, 0, 0);\n\n\t\t\tapp.image(cpscreen2, 0, 600);\n\t\t\tif (app.mouseX > 82 && app.mouseX < 638 && app.mouseY > 623 && app.mouseY < 685) {\n\t\t\t\tapp.image(results, 75, 619, 260, 70);\n\t\t\t} else {\n\t\t\t\tapp.image(results, 75, 620, 257, 67);\n\t\t\t}\n\n\t\t\t// BUTTON MENU DESPLEGABLE\n\t\t\tif (app.mouseX >= 340 && app.mouseX <= 380 && app.mouseY >= 23 && app.mouseY <= 60) {\n\t\t\t\tapp.image(iconmenu, 330, 19, 62, 46);\n\t\t\t} else {\n\t\t\t\tapp.image(iconmenu, 330, 20, 59, 43);\n\t\t\t}\n\n\t\t} else if (pantalla == 20) {\n\n\t\t\t// BUTTON MENU DESPLEGABLE\n\t\t\tif (app.mouseX >= 340 && app.mouseX <= 380 && app.mouseY >= 23 && app.mouseY <= 60) {\n\t\t\t\tapp.image(iconmenu, 330, 19, 62, 46);\n\t\t\t} else {\n\t\t\t\tapp.image(iconmenu, 330, 20, 59, 43);\n\t\t\t}\n\t\t\t\n\t\tapp.image(sup_resultados, 0, 0);\n\t\t\t\n\t\t\t\n\t\t} else if (pantalla == 21) {\n\n\t\t\t// BUTTON MENU DESPLEGABLE\n\t\t\tif (app.mouseX >= 340 && app.mouseX <= 380 && app.mouseY >= 23 && app.mouseY <= 60) {\n\t\t\t\tapp.image(iconmenu, 330, 19, 62, 46);\n\t\t\t} else {\n\t\t\t\tapp.image(iconmenu, 330, 20, 59, 43);\n\t\t\t}\n\t\t} else if (pantalla == 23) {\n\t\t\t// BUTTON MENU DESPLEGABLE\n\t\t\tif (app.mouseX > 340 && app.mouseX < 380 && app.mouseY > 23 && app.mouseY < 60) {\n\t\t\t\tapp.image(iconmenu, 330, 19, 62, 46);\n\t\t\t} else {\n\t\t\t\tapp.image(iconmenu, 330, 20, 59, 43);\n\t\t\t}\n\n\t\t\tif (app.mouseX > 38 && app.mouseX < 128 && app.mouseY > 302 && app.mouseY < 392) {\n\t\t\t\tapp.image(friendsselect, 35, 300);\n\t\t\t} else {\n\t\t\t\tapp.image(friends, 35, 300);\n\t\t\t}\n\n\t\t\tif (app.mouseX > 150 && app.mouseX < 241 && app.mouseY > 302 && app.mouseY < 392) {\n\t\t\t\tapp.image(likessel, 150, 300);\n\t\t\t} else {\n\t\t\t\tapp.image(likes, 150, 300);\n\t\t\t}\n\n\t\t\tif (app.mouseX > 266 && app.mouseX < 356 && app.mouseY > 302 && app.mouseY < 392) {\n\n\t\t\t\tapp.image(planesselect, 265, 300);\n\t\t\t} else {\n\t\t\t\tapp.image(planes, 265, 300);\n\t\t\t}\n\t\t} else if (pantalla == 24) {\n\n\n\n\t\t\t// BUTTON MENU DESPLEGABLE\n\t\t\tif (app.mouseX > 340 && app.mouseX < 380 && app.mouseY > 23 && app.mouseY < 60) {\n\t\t\t\tapp.image(iconmenu, 330, 19, 62, 46);\n\t\t\t} else {\n\t\t\t\tapp.image(iconmenu, 330, 20, 59, 43);\n\t\t\t}\n\t\t\t\n\t\t\tif(app.mouseX > 0 && app.mouseX<196 && app.mouseY >93 && app.mouseY <398 ){\n\t\t\t\tapp.image(btn_natures, 0, 93);\n\t\t\t}else {\n\t\t\t\tapp.image(btn_nature, 0, 93);\n\t\t\t}\n\t\t\t\n\t\t\tif(app.mouseX > 196 && app.mouseX<800 && app.mouseY >93 && app.mouseY <398){\n\t\t\tapp.image(btn_deportes, 197, 93);\n\t\t\t}else {\n\t\t\t\tapp.image(btn_deporte, 197, 93);\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(app.mouseX > 0 && app.mouseX<196 && app.mouseY >398 && app.mouseY <700 ){\n\t\t\tapp.image(btn_culturas, 0, 400);\n\t\t\t}else {\n\t\t\t\tapp.image(btn_cultura, 0, 400);\n\t\t\t}\n\t\t\t\n\t\t\tif(app.mouseX > 196 && app.mouseX<800 && app.mouseY >398 && app.mouseY <700 ){\n\t\t\tapp.image(btn_hobbies, 197, 400);\n\t\t\t}else {\n\t\t\t\tapp.image(btn_hobbie, 197, 400);\n\t\t\t}\n\n\t\t\n\t\t\n\t\t\t\n\n\t\t} if (pantalla == 25) {}\n\n\t}",
"public void VaciarPila()\n {\n this.tope = 0;\n }",
"private void atualizarBloqueioExecucao(int codigoBloqueio) throws BancoobException {\n\t\treplicacaoContaCapitalLegadoServico.liberarBloquearExecucao(codigoBloqueio);\n\t}",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"public void ejecucion() throws Exception {\n\t\t//Activamos las trazas\n\t\tsetTrazaFichero();\n\t\n\t\ttry{\n\t\t\t//Sacamos la acción a realizar y ejecutamos la acción correspondiente\n\t\t\tString accion = conectorParametro(PARAMETRO_GENERICO_ACCION);\n\t\t\tString origen = conectorParametro(PARAMETRO_GENERICO_ORIGEN);\n\t\t\t\n\t\t\t//Caragamos los elemetnos en la pagina\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ACCION,accion);\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ORIGEN,origen);\n\t\n\t\t\t//Ejecutamos la acción indicada\n\t\t\tif(accion.equals(ACCION_CREATE)) cmdCreate();\n\t\t\tif(accion.equals(ACCION_UPDATE)) cmdUpdate();\n\t\t\tif(accion.equals(ACCION_REMOVE)) cmdRemove();\n\t\t}catch(Exception e){\n\t\t\thandleException(e);\n\t\t}\n }",
"public void ejecucion() throws Exception {\n\t\t//Activamos las trazas\n\t\tsetTrazaFichero();\n\t\n\t\ttry{\n\t\t\t//Sacamos la acción a realizar y ejecutamos la acción correspondiente\n\t\t\tString accion = conectorParametro(PARAMETRO_GENERICO_ACCION);\n\t\t\tString origen = conectorParametro(PARAMETRO_GENERICO_ORIGEN);\n\t\t\t\n\t\t\t//Caragamos los elemetnos en la pagina\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ACCION,accion);\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ORIGEN,origen);\n\t\n\t\t\t//Ejecutamos la acción indicada\n\t\t\tif(accion.equals(ACCION_CREATE)) cmdCreate();\n\t\t\tif(accion.equals(ACCION_UPDATE)) cmdUpdate();\n\t\t\tif(accion.equals(ACCION_REMOVE)) cmdRemove();\n\t\t}catch(Exception e){\n\t\t\thandleException(e);\n\t\t}\n }",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"public Long registrarFalloImpugnacion(FalloImpugnacionDTO fallo, ComparendoDTO comparendoDTO, Long idProceso)\n throws CirculemosNegocioException;",
"private void generaProcesoCoactivo(List<ObligacionCoactivoDTO> obligaciones, ConfiguracionCoactivoDTO configuracion)\n throws CirculemosNegocioException {\n\n if (obligaciones != null && !obligaciones.isEmpty() && configuracion != null) {\n\n // Crea proceso coactivo\n ProcesoDTO procesoDTO = registrarProcesoCoactivo();\n\n // Crea Participantes\n PersonaDTO persona = iRFachadaAdminNegocio\n .consultarPersona(obligaciones.get(0).getCoactivo().getPersona().getId());\n registrarParticipante(persona, procesoDTO);\n\n // Se crea el coactivo\n Coactivo coactivo = registrarCoactivo(obligaciones, procesoDTO, configuracion);\n\n // Se crean las obligaciones\n registrarObligaciones(obligaciones, coactivo, procesoDTO);\n\n // Actualizacion de estado a mandamiento de pago\n TrazabilidadProcesoDTO trazabilidadMandamiento = iRFachadaProceso\n .actualizarEstadoProceso(procesoDTO.getId(), EnumEstadoProceso.ECUADOR_COACTIVO_MANDAMIENTO, false);\n try {\n em.flush();\n\n boolean financiacionIncumplida = false;\n for (ObligacionCoactivoDTO obligacionCoactivoDTO : obligaciones) {\n financiacionIncumplida = validarProcesoFianciacionIncumplido(\n obligacionCoactivoDTO.getNumeroObligacion());\n if (financiacionIncumplida) {\n financiacionIncumplida = true;\n break;\n }\n }\n\n if (financiacionIncumplida) {\n // TODO genera auto de pago especial\n } else {\n // Genera documento apertura\n if (validarDireccionPersona(persona)) {\n registrarDocumentoCoactivo(EnumTipoDocumentoGenerado.AUTO_PAGO, trazabilidadMandamiento,\n coactivo, EnumTipoDocumentoProceso.COACTIVO_AUTO_PAGO, null);\n } else {\n registrarDocumentoCoactivo(EnumTipoDocumentoGenerado.AUTO_PAGO_SIN_DIRECCION,\n trazabilidadMandamiento, coactivo,\n EnumTipoDocumentoProceso.COACTIVO_AUTO_PAGO_SIN_DIRECCION, null);\n }\n }\n\n // Genera documento posesion\n registrarDocumentoCoactivo(EnumTipoDocumentoGenerado.ACTA_DE_POSESION, trazabilidadMandamiento,\n coactivo, EnumTipoDocumentoProceso.COACTIVO_ACTA_DE_POSESION, null);\n\n } catch (CirculemosAlertaException e) {\n logger.error(\"Error en generación de documentos de mandamiento de pago\", e);\n throw new CirculemosNegocioException(ErrorCoactivo.GenerarCoactivo.COAC_002001);\n }\n\n // Verifica si se debe generar los documentos con el siguiente parametro : 225 Generar documentos de notificacion\n generarNotificacion(procesoDTO, coactivo);\n\n // Generacion de oficio de solicitud de bienes\n generarSolicitudBien(configuracion, procesoDTO, coactivo);\n\n // Valida si debe registrar el coactivo en axis\n registrarCoactivoAxis(coactivo, persona);\n\n } else {\n throw new CirculemosNegocioException(ErrorCoactivo.GenerarCoactivo.COAC_002002);\n }\n }",
"private ProcesoDTO registrarProcesoCoactivo() {\n RegistraProcesoDTO registra = new RegistraProcesoDTO();\n registra.setObservacion(EnumTipoProceso.COACTIVO.name());\n registra.setTipoProceso(EnumTipoProceso.COACTIVO);\n registra.setEstado(EnumEstadoProceso.ECUADOR_COACTIVO_RADICACION);\n registra.setConsecutivo(EnumConsecutivo.NUMERO_COACTIVO_ECUADOR);\n return iRFachadaProceso.crearProceso(registra);\n }",
"public String agregar(String trama) throws JsonProcessingException {\n\t\tString respuesta = \"\";\n\t\tRespuestaGeneralDto respuestaGeneral = new RespuestaGeneralDto();\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar trama entrante para agregar o actualizar producto: \" + trama);\n\t\ttry {\n\t\t\t/*\n\t\t\t * Se convierte el dato String a estructura json para ser manipulado en JAVA\n\t\t\t */\n\t\t\tJSONObject obj = new JSONObject(trama);\n\t\t\tProducto producto = new Producto();\n\t\t\t/*\n\t\t\t * use: es una bandera para identificar el tipo de solicitud a realizar:\n\t\t\t * use: 0 -> agregar un nuevo proudcto a la base de datos;\n\t\t\t * use: 1 -> actualizar un producto existente en la base de datos\n\t\t\t */\n\t\t\tString use = obj.getString(\"use\");\n\t\t\tif(use.equalsIgnoreCase(\"0\")) {\n\t\t\t\tString nombre = obj.getString(\"nombre\");\n\t\t\t\t/*\n\t\t\t\t * Se realiza una consulta por nombre a la base de datos a la tabla producto\n\t\t\t\t * para verificar que no existe un producto con el mismo nombre ingresado.\n\t\t\t\t */\n\t\t\t\tProducto productoBusqueda = productoDao.buscarPorNombre(nombre);\n\t\t\t\tif(productoBusqueda.getProductoId() == null) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si no existe un producto con el mismo nombre pasa a crear el nuevo producto\n\t\t\t\t\t */\n\t\t\t\t\tproducto.setProductoNombre(nombre);\n\t\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\t\tTipoProducto tipoProducto = tipoProductoDao.consultarPorId(obj.getLong(\"tipoProducto\"));\n\t\t\t\t\tproducto.setProductoTipoProducto(tipoProducto);\n\t\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\t\tproducto.setProductoFechaRegistro(new Date());\n\t\t\t\t\tproductoDao.update(producto);\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Nuevo producto registrado con éxito.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}else {\n\t\t\t\t\t/*\n\t\t\t\t\t * Si existe un producto con el mismo nombre, se devolvera una excepcion,\n\t\t\t\t\t * para indicarle al cliente.\n\t\t\t\t\t */\n\t\t\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\t\t\trespuestaGeneral.setRespuesta(\"Ya existe un producto con el nombre ingresado.\");\n\t\t\t\t\t/*\n\t\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t\t */\n\t\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\t/*\n\t\t\t\t * Se realiza una busqueda del producto registrado para actualizar\n\t\t\t\t * para implementar los datos que no van a ser reemplazados ni actualizados\n\t\t\t\t */\n\t\t\t\tProducto productoBuscar = productoDao.buscarPorId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoId(obj.getLong(\"id\"));\n\t\t\t\tproducto.setProductoNombre(obj.getString(\"nombre\"));\n\t\t\t\tproducto.setProductoCantidad(obj.getLong(\"cantidad\"));\n\t\t\t\tproducto.setProductoTipoProducto(productoBuscar.getProductoTipoProducto());\n\t\t\t\tproducto.setProductoPrecio(obj.getLong(\"precio\"));\n\t\t\t\tproducto.setProductoFechaRegistro(productoBuscar.getProductoFechaRegistro());\n\t\t\t\tproductoDao.update(producto);\n\t\t\t\trespuestaGeneral.setTipoRespuesta(\"0\");\n\t\t\t\trespuestaGeneral.setRespuesta(\"Producto actualizado con exito.\");\n\t\t\t\t/*\n\t\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t\t */\n\t\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t\t}\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t} catch (Exception e) {\n\t\t\t/*\n\t\t\t * En caso de un error, este se mostrara en los logs\n\t\t\t * Sera enviada la respuesta correspondiente al cliente.\n\t\t\t */\n\t\t\tlogger.error(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n\t\t\t\t\t+ \"ProductoService.agregar, \"\n\t\t\t\t\t+ \", descripcion: \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\trespuestaGeneral.setTipoRespuesta(\"1\");\n\t\t\trespuestaGeneral.setRespuesta(\"Error al ingresar los datos, por favor intente mas tarde.\");\n\t\t\t/*\n\t\t\t * Se mapea la respuesta con una estructura json en un dato tipo String\n\t\t\t */\n\t\t\trespuesta = new ObjectMapper().writeValueAsString(respuestaGeneral);\n\t\t}\n \t\tlogger.info(HILO + \"[ \" + Thread.currentThread().getId()+ \" ] \" \n \t\t\t\t+ \", ProductoService.agregar resultado de agregar/actualizar un producto: \" + respuesta);\n\t\treturn respuesta;\n\t}",
"@Override\r\n\tpublic boolean seLanceSurServiteurProprietaire() {\n\t\treturn false;\r\n\t}",
"public final void ejecutarIncremento(ParamRegistroProtecciones param) {\n\t\tValidadorProtecciones valid = FactoryProxy.of( param.getProdCodigo().toString() ).getValidadorProteccion();\n\t\tvalid.validaCondicionesDeRegistro(param);\n\t\tregistrarProteccion(param);\n\t\tregistrarIncremento(param);\n\t\tthis.determinaryEjecutarFlujo(param);\t\t\n\t}",
"public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }",
"public void publicarPropuestas() {\n try {\n //SISTEMA VERIFICA QUE LOS COMPROMISOS PARA EL PERIODO HAYAN SIDO INGRESADO\n if (this.listaCompromiso == null || this.listaCompromiso.isEmpty()) {\n //MUESTRA MENSAJE: 'DEBE INGRESAR LOS COMPROMISOS PARA PODER PUBLICAR ', NO ES POSIBLE PUBLICAR LOS RESULTADOS \n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_add_comprimiso_faltantes\"));\n return;\n }\n String mensajeValidacion = validarCompromisosPeriodoByPropuestaNacesidad(this.propuestaSeleccionada);\n if (mensajeValidacion != null) {\n addErrorMessage(keyPropertiesFactory.value(mensajeValidacion));\n return;\n }\n if (IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA.compareTo(this.propuestaSeleccionada.getConstantes().getIdConstantes()) != 0) {\n addErrorMessage(\"La propuesta debe estar en estado Pre-Aprobado\");\n return;\n }\n /*byte[] bitesPdf;\n //GENERAMOS EL REPORTE - CREADOR DE REPORTES\n try {\n HashMap mapa = new HashMap();\n mapa.put(\"p_id_periodo\", periodoSeleccionado.getIdPeriodo().intValue());\n bitesPdf = GeneradorReportesServicio.getInstancia().generarReporte(mapa, \"reporte15.jasper\");\n } catch (Exception e) {\n adicionaMensajeError(\"ERROR, Se presentaron errores al general el reporte JASPER\");\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, \"CU-NE-06(publicarPropuestas)\", e);\n return;\n }*/\n String iniciaCodigoVic = keyPropertiesFactory.value(\"cu_ne_6_codigo_proyecto_inicia_generacion\");\n if (iniciaCodigoVic.contains(\"-----NOT FOUND-----\")) {\n addErrorMessage(keyPropertiesFactory.value(\"cu_ne_6_error_no_existe_codigo_proyecto_inicia_generacion\"));\n return;\n }\n //EL SISTEMA CAMBIA EL ESTADO DE TODAS LAS PROPUESTAS DEL LISTADO DE ''PRE-APROBADA ' A 'APROBADA' \n //Y LOS DE ESTADO 'REVISADA' A 'NO APROBADA' \n List<SieduPropuestaAsignada> lstPropuestaasignada = this.servicePropuestaAsignada.findByVigencia(this.propuestaSeleccionada);\n List<Long> lstLong = new ArrayList<>();\n for (SieduPropuestaAsignada s : lstPropuestaasignada) {\n lstLong.add(s.getPropuestaNecesidad().getIdPropuestaNecesidad());\n }\n Proyecto proyecto = new Proyecto();\n int contarProyecto = iProyectoLocal.contarProyectoByVigencia(lstLong);\n Constantes constantes = iConstantesLocal.getConstantesPorIdConstante(IConstantes.DURACION_PROYECTOS_INSTITUCIONALES);\n int numeroMesesEstimacionProyecto = Integer.parseInt(constantes.getValor());\n UsuarioRol usuarioRol = new UsuarioRol(loginFaces.getPerfilUsuarioDTO().getRolUsuarioPorIdRolDTO(IConstantesRole.EVALUADOR_DE_PROPUESTAS_DE_NECESIDADES_EN_LA_VICIN).getIdUsuarioRol());\n if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_PRE_APROBADA)) {\n EjecutorNecesidad ejecutorNecesidadResponsable = iEjecutorNecesidadLocal.getEjecutorNecesidadPorPropuestaNecesidadYRolResponsable(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n if (ejecutorNecesidadResponsable == null || ejecutorNecesidadResponsable.getUnidadPolicial() == null || ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica() == null) {\n addErrorMessage(\"Error, Verifique la sigla física de la Unidad Policial asociada a la propuesta: \" + this.propuestaSeleccionada.getTema());\n return;\n }\n\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_APROBADA));\n //POR CADA PROPROPUESTA APROBADA SE CREA UN PROYECTO\n //CREA UN PROYECTO DE INVESTIGACIÓN POR CADA PROPUESTA CON EL ESTADO 'APROBADA', \n //ASIGNÁNDOLE EL CÓDIGO DE INVESTIGACIÓN DE ACUERDO AL MÉTODO ESTABLECIDO(VER REQUERIMIENTOS ESPECIALES), \n //ASIGNÁNDOLE EL ÁREA Y LA LÍNEA DE INVESTIGACIÓN Y EL TEMA PROPUESTO COMO TITULO PROPUESTO\n //VIC - [Consecutivo de proyectos en el periodo][Año]- [Código interno de la Unidad Policial o Escuela]\n String codigoInternoUnidad = ejecutorNecesidadResponsable.getUnidadPolicial().getSiglaFisica();\n String codigoProyecto = iniciaCodigoVic.concat(\"-\");//VIC \n contarProyecto += 1;\n codigoProyecto = codigoProyecto.concat(String.valueOf(contarProyecto));//[Consecutivo de proyectos en el periodo]\n codigoProyecto = codigoProyecto.concat(String.valueOf(lstPropuestaasignada.get(0).getSieduPropuestaAsignadaPK().getVigencia()));//[Año]\n codigoProyecto = codigoProyecto.concat(\"-\");\n codigoProyecto = codigoProyecto.concat(codigoInternoUnidad);//[Código interno de la Unidad Policial o Escuela]\n Date fechaHoy = new Date();\n proyecto.setCodigoProyecto(codigoProyecto);\n proyecto.setLinea(this.propuestaSeleccionada.getLinea());\n proyecto.setTituloPropuesto(this.propuestaSeleccionada.getTema());\n proyecto.setTema(this.propuestaSeleccionada.getTema());\n proyecto.setPeriodo(this.propuestaSeleccionada.getPeriodo());\n proyecto.setUsuarioRol(usuarioRol);\n proyecto.setEstado(new Constantes(IConstantes.TIPO_ESTADO_PROYECTO_EN_EJECUCION));\n proyecto.setUnidadPolicial(ejecutorNecesidadResponsable.getUnidadPolicial());\n proyecto.setPropuestaNecesidad(this.propuestaSeleccionada);\n proyecto.setFechaEstimadaInicio(fechaHoy);\n Calendar fechaFinalEstimadaProyecto = Calendar.getInstance();\n fechaFinalEstimadaProyecto.setTime(fechaHoy);\n fechaFinalEstimadaProyecto.add(Calendar.MONTH, numeroMesesEstimacionProyecto);\n proyecto.setFechaEstimadaFinalizacion(fechaFinalEstimadaProyecto.getTime());\n proyecto.setFechaActualizacion(fechaHoy);\n //CREAMOS LOS COMPROMISOS PROYECTOS\n List<CompromisoProyecto> listaCompromisosProyecto = new ArrayList<CompromisoProyecto>();\n //CONSULTAMOS LOS COMPROMISOS DE ESTE PERIODO\n List<CompromisoPeriodo> listaComprimiso = iCompromisoPeriodoLocal.buscarCompromisoPeriodoByIdPropuestaNecesidad(this.propuestaSeleccionada);\n for (CompromisoPeriodo unCompromisoPeriodo : listaComprimiso) {\n CompromisoProyecto compromisoProyecto = new CompromisoProyecto();\n compromisoProyecto.setCompromisoPeriodo(unCompromisoPeriodo);\n compromisoProyecto.setProyecto(proyecto);\n compromisoProyecto.setEstado(new Constantes(IConstantes.ESTADO_COMPROMISO_PROYECTO_PENDIENTE));\n compromisoProyecto.setFechaCreacion(new Date());\n compromisoProyecto.setMaquina(loginFaces.getPerfilUsuarioDTO().getMaquinaDTO().getIpLoginRemotoUsuario());\n compromisoProyecto.setUsuarioRegistro(loginFaces.getPerfilUsuarioDTO().getIdentificacion());\n compromisoProyecto.setUsuarioRolRegistra(usuarioRol);\n listaCompromisosProyecto.add(compromisoProyecto);\n }\n //CREAMOS LAS UNIDADES EJECUTORAS PARA EL PROYECTO\n List<EjecutorNecesidadDTO> listadoEjecutorNecesidadDTOPropuesta = iEjecutorNecesidadLocal.getEjecutorNecesidadDTOPorPropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad());\n List<EjecutorNecesidad> listaEjecutorNecesidadProyecto = new ArrayList<EjecutorNecesidad>();\n for (EjecutorNecesidadDTO unaEjecutorNecesidadDTO : listadoEjecutorNecesidadDTOPropuesta) {\n EjecutorNecesidad ejecutorNecesidadLocal = new EjecutorNecesidad();\n ejecutorNecesidadLocal.setPropuestaNecesidad(new PropuestaNecesidad(this.propuestaSeleccionada.getIdPropuestaNecesidad()));\n ejecutorNecesidadLocal.setProyecto(proyecto);\n ejecutorNecesidadLocal.setRol(new Constantes(unaEjecutorNecesidadDTO.getIdRol()));\n ejecutorNecesidadLocal.setUnidadPolicial(this.iUnidadPolicialLocal.obtenerUnidadPolicialPorId(unaEjecutorNecesidadDTO.getIdUnidadPolicial()));\n listaEjecutorNecesidadProyecto.add(ejecutorNecesidadLocal);\n }\n proyecto.setEjecutorNecesidadList(listaEjecutorNecesidadProyecto);\n proyecto.setCompromisoProyectoList(listaCompromisosProyecto);\n\n } else if (this.propuestaSeleccionada.getConstantes().getIdConstantes().equals(\n IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_REVISADA)) {\n this.propuestaSeleccionada.setConstantes(new Constantes(IConstantes.CONSTANTES_ESTADO_PROPUESTA_NECESIDAD_NO_APROBADA));\n }\n\n //ACTUALIZAMOS EL CAMPO ROL_ACTUAL\n //CON EL OBJETIVO SE SABER EN DONDE SE ENCUENTRA LA PROPUESTA\n //ESTO SE REALIZA PARA CORREGIR \n //LA INCIDENCIA #0002754: Mientras no se publiquen los resultados de las necesidades, el estado debe ser 'Enviada a VICIN'.\n this.propuestaSeleccionada.setRolActual(IConstantes.PROPUESTA_NECESIDAD_PUBLICADA_JEFE_UNIDAD);\n /* \n\n //GENERAMOS EL NOMBRE DEL ARCHIVO DEL REPORTE\n String nombreReporteUnico = \"PROP_NECES_PERIODO\".concat(\"_\").concat(String.valueOf(System.currentTimeMillis())).concat(\".pdf\");\n String nombreReporte = \"PROP_NECES_PERIODO_\" + (periodoSeleccionado.getAnio() == null ? periodoSeleccionado.getIdPeriodo().toString() : periodoSeleccionado.getAnio().toString()) + \".pdf\";\n */\n //SE ACTUALIZAN LAS PROPUESTAS DE NECESIDAD\n servicePropuestaNecesidad.guardarPropuestaYgenerarProyecto(\n this.propuestaSeleccionada,\n proyecto);\n\n addInfoMessage(keyPropertiesFactory.value(\"cu_ne_6_lbl_mensaje_propuestas_actualizadas_ok_publicar\"));\n\n navigationFaces.redirectFacesCuNe01();\n\n } catch (Exception e) {\n\n addErrorMessage(keyPropertiesFactory.value(\"general_mensaje_error_exception\"));\n Logger.getLogger(this.getClass().getName()).log(Level.SEVERE,\n \"CU-NE-06 Evaluar propuestas de necesidades de investigación - (publicarPropuestas)\", e);\n\n }\n\n }",
"public void ingresaAdministrativo() {\n\tEstableceDatosAdministrativos();\n\tint cambio=0;\n\tdo {\n\t\t\n\t\ttry {\n\t\t\tsetMontoCredito(Double.parseDouble(JOptionPane.showInputDialog(\"Ingrese el monto del credito (�3 600 000 maximo)\")));\n\t\t\tcambio=1;\n\t\t\tif(getMontoCredito()<0||getMontoCredito()>3600000) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El monto debe ir de �0 a �3600000\");\n\t\t\t}\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Ingrese solo numeros\");\n\t\t}\n\t}while(getMontoCredito()<0||getMontoCredito()>3600000||cambio==0);\n\tsetInteres(12);\n\tsetPlazo(60);\n\tsetCuotaPagar(calculoCuotaEspecialOrdinario());\n\testableceEquipoComputo();\n}",
"protected String getAbreviaturaProceso(Constantes.PROCESOS proc) throws Exception{\n\t\treturn getParametro(proc.getCodValor());\r\n\t}"
]
| [
"0.57298857",
"0.5681494",
"0.56222576",
"0.5612691",
"0.55681777",
"0.5552755",
"0.5545976",
"0.554289",
"0.5522668",
"0.55222607",
"0.548425",
"0.5483224",
"0.54685044",
"0.5459028",
"0.5441498",
"0.54071254",
"0.5397229",
"0.53855145",
"0.5379327",
"0.53658694",
"0.53595066",
"0.5357165",
"0.53548914",
"0.53331006",
"0.5309556",
"0.5306999",
"0.53062093",
"0.5292299",
"0.5264298",
"0.526356",
"0.52465224",
"0.52423227",
"0.5219042",
"0.5211489",
"0.5206121",
"0.51944566",
"0.51858634",
"0.51766896",
"0.5175289",
"0.5159467",
"0.51427174",
"0.51410526",
"0.51392275",
"0.5130273",
"0.5120906",
"0.51200557",
"0.5114206",
"0.51080745",
"0.51051587",
"0.5104366",
"0.51037526",
"0.510101",
"0.50978965",
"0.5097504",
"0.5095531",
"0.5095201",
"0.5092532",
"0.50922215",
"0.50833756",
"0.50757486",
"0.5065933",
"0.5065248",
"0.5060972",
"0.50529635",
"0.50467205",
"0.50429016",
"0.5037221",
"0.5036102",
"0.50265515",
"0.5022686",
"0.5017475",
"0.50153077",
"0.5009822",
"0.50089556",
"0.50088376",
"0.50064516",
"0.5005583",
"0.5003975",
"0.49948016",
"0.49937087",
"0.4990551",
"0.49847242",
"0.49842456",
"0.49825445",
"0.49813455",
"0.49802643",
"0.49793777",
"0.4975933",
"0.4975933",
"0.49727643",
"0.49716806",
"0.4970528",
"0.49695846",
"0.49652663",
"0.49648327",
"0.49624926",
"0.49597502",
"0.49592656",
"0.49579018",
"0.49569765"
]
| 0.58316416 | 0 |
Send to the server special kind of message that server see like service message means clientName successfully connected to server". | public void sendHelloMessage() {
getSocketController().send(getMessageController().createHelloMessage("Сервер", getUser().getName()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendMessage2Client(String msg){\n\t\t\t\n\t\t\toutPrintStream.println(msg);\n\t\t\t\n\t\t}",
"public void sendToClient(String message, boolean srvPrefix) {\r\n String send = ((srvPrefix)?(\":\" + ServerConfig.SERVER_NAME + \" \"):\"\")\r\n + message+\"\\r\\n\";\r\n ServerLogger.log(this.myID + \" sending:\" + send);\r\n try {outputStream.writeBytes(send);}catch (Exception e){\r\n ServerLogger.log(this.myID + \" error on sendToClient \" + e.getMessage());}\r\n }",
"public static void sendOK() {\n try {\n Server destServer = ServerState.getInstance().getServers().get(sourceID);\n MessageTransfer.sendServer(\n ServerMessage.getOk( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent OK to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n System.out.println(\"INFO : Server s\"+sourceID+\" has failed. OK message cannot be sent\");\n }\n }",
"void onConnectedAsServer(String deviceName);",
"private void sendMessageToClient(String messageToClient){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n output.println(\"\\n\" + \"Server: \" + messageToClient);\n output.flush();\n }\n });\n }",
"private void sendMsgToClient(String msg) {\n controlOutWriter.println(msg);\n }",
"@Override\n public void onConnected(Bundle connectionHint) {\n //Requires a new thread to avoid blocking the UI\n new SendToDataLayerThread(\"/message_path\", message + \" \" + Calendar.getInstance()).start();\n Log.i(TAG, \"sent, onConnected\" + message);\n Toast.makeText(getApplicationContext(),message,Toast.LENGTH_SHORT).show();\n }",
"@Override\n\tpublic void connectionSucceeded(String message) {\n\t}",
"public void onServiceConnected(ComponentName className, IBinder service) {\n \tmServiceMessenger = new Messenger(service);\r\n // We want to monitor the service for as long as we are\r\n // connected to it.\r\n try {\r\n Message message = Message.obtain(null, WATCHiTServiceInterface.REGISTER_CLIENT);\r\n message.replyTo = mMessenger;\r\n mServiceMessenger.send(message);\r\n } catch (RemoteException e) {\r\n // In this case the service has crashed before we could even\r\n // do anything with it; we can count on soon being\r\n // disconnected (and then reconnected if it can be restarted)\r\n // so there is no need to do anything here.\r\n }\r\n // Toast.makeText(MainActivity.this, R.string.remote_service_bound, Toast.LENGTH_SHORT).show();\r\n }",
"void clientConnected(Client client);",
"messages.Clienthello.ClientHello getClientHello();",
"public void clientToServerChatMessage(String message){\n String chatMessage = message;\n System.out.println(\"chatmessage\" + chatID + \" \" + chatMessage);\n toServer.println(\"chatmessage\" + chatID + \" \" + chatMessage);\n toServer.flush();\n }",
"public void sendInfo(String message) {\n sendMessage(Prefix.SERVER, message);\n }",
"public void sendMessageToClient(Object message, String username) {\n\n }",
"private void connectToServer() {\n\n try {\n this.socket = new Socket(InetAddress.getByName(serverIP), this.port);\n\n oos = new ObjectOutputStream(socket.getOutputStream());\n oos.flush();\n ois = new ObjectInputStream(socket.getInputStream());\n\n Message connectMessage = new Message(Message.CLIENT_CONNECT);\n connectMessage.setMessage(userName);\n sendToServer(connectMessage);\n\n Message message;\n while (true){// wait for welcome message\n message = (Message) ois.readObject();\n if(message != null && message.getType() == Message.WELCOME){\n handleMessage(message);\n break;\n }\n }\n\n } catch (UnknownHostException e) {\n e.printStackTrace();\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }",
"@OnMessage\r\n public String helloMessage(String name) {\r\n return \"Hello \" + name + \" (from your server).\";\r\n }",
"public void writeServerMessageToClient(String outMessage) throws IOException {\n writeToClient(\"SERVER: \" + outMessage);\n }",
"public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t mIRemoteService = IRemoteService.Stub.asInterface(service);\n\t \t Log.v(MainActivity.ACTIVITY_TAG,\"kevin ---> client:ServiceConnect\"); \n\t\t try {\n\t\t\t int id = mIRemoteService.getPid();\n \t\t\t showMessage(Integer.toString(id));\n\t\t } catch (RemoteException e) {\n\t\t\t e.printStackTrace();\n\t\t }\n\t }",
"public void tellServer(String message)\n\t{\n\t\ttoServer.println(message);\n\t\ttoServer.flush();\n\t}",
"public void clientConnected(WonderlandClientSender sender, \n \t WonderlandClientID clientID, Properties properties) {\n \tlogger.fine(\"client connected...\");\n }",
"private void requestClientNameFromServer() {\n writeToServer(ServerAction.GET_NAME + \"\");\n }",
"private void sendHelloMessage(String uName){\n HelloMessage hello = new HelloMessage(uName);\n ni.performSendHello(hello);\n Logger.log(\"Sending Hello to everyone \");\n\n }",
"public void onConnect(){\n\t\t String jsonstring = \"{'command': 'addUser','name': '\"+name+\"'}\";\n\t\t this.send(jsonstring);\n\t}",
"public String sayHiFromClientOne(String name) {\n\t\treturn \"sorry \"+name;\n\t}",
"private void sendToClient(String string) {\n\t\r\n}",
"private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void sendToServer(CallMessage message, String name){\n\t\tServer serv = new Server();\n\t\tif(locateServer(name)){\n\t\t\tserv.serverGetMessage(message);\n\t\t} else {\n\t\t\tSystem.out.println(\"Sorry, that server is offline\");\n\t\t}\n\t}",
"public void clientConnected(ServerConnection conn){\r\n System.out.println(\"Client Connected: \"+ conn.getIP());\r\n }",
"private void sendMessageToClient(String message) {\n try {\n outputStream.writeObject(message);\n outputStream.flush();\n } catch (IOException e) {\n System.out.println(\"Erreur lors de l'envoi du message au client\");\n }\n }",
"private void sendClient(String str) {\r\n\t\ttry {\r\n\t\t\tif(this.session != null)\r\n\t\t\t\tthis.session.getBasicRemote().sendText(str);\r\n\t\t\telse \r\n\t\t\t\tSystem.out.println(\"Please open the session before sending a msg\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void sendClientMsg(Client client, String message){\n\t\tsendMsg(message, client.getIPaddr(), client.getPort());\n\t}",
"void messageSent();",
"@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}",
"public synchronized void sendOk() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_YES);\r\n\t\tendMessage();\r\n\t}",
"public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }",
"void sendStartMessage();",
"void sendStartMessage();",
"public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }",
"public void printSuccess() {\n LOGGER.info(\"PACKMAN: Client connection success\");\n }",
"void sendMessage(String msg);",
"public void sendMessage(String message) {\n\t\tSystem.out.println(\"DEBUG : response sent by server = \" + message);\n\t\tprinter.println(message);\n\t}",
"private void requestServerId() {\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n System.out.println(\"Connected!\");\n connection.sendMessage(connectionInfo);\n }",
"private void sendNameToServer() {\n\n\t\tString textToServer = nameField.getText();\n\n\t\t// Then, we send the input to the server.\n\n\t\tgreetingService.greetServer(nameField.getValue(),\n\t\t\t\tnew AsyncCallback<String>() {\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\tresultField.setValue(caught.getMessage());\n\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\tresultField.setValue(result);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"void sendMessage() {\n\n\t}",
"messages.Serverhello.ServerHello getServerHello();",
"public void sendUsernameToServer() {\n try {\n if (socket == null){\n JOptionPane.showMessageDialog(null, \"SSLSocket is not connected to server. Connect before sending username.\",Env.ChatClientMessageBoxTitle, JOptionPane.ERROR_MESSAGE);\n return;\n }\n chatClientMainReceiver.username = user.getUsername();\n PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream(), \"UTF-8\"), true);\n writer.println(passUtil.toHexString(\"setusername|split|\" + user.getUsername()));\n writer.flush();\n System.out.println(\"Sent username to server\");\n } catch (Exception ex){\n ex.printStackTrace();\n JOptionPane.showMessageDialog(null, \"Error sending username: \" + ex.toString(),Env.ChatClientMessageBoxTitle, JOptionPane.ERROR_MESSAGE);\n }\n }",
"@Override\n/**\n * Communication Tester method\n */\npublic String Communicate() throws RemoteException {\n\treturn \"Server Says Hi\";\n}",
"@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}",
"private void sendUpdateConnectionInfo() {\n\n }",
"public void sendMessage(String message) {}",
"@Override\n\tprotected void onConnect() {\n\t\tLogUtil.debug(\"server connect\");\n\n\t}",
"public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }",
"@Override\n public void onConnect(boolean isSuccessful, String message) {\n if (isSuccessful) {\n Toast.makeText(applicationContext,\n String.format(getString(R.string.data_transfer_waiting),\n ROOM_NAME), Toast.LENGTH_LONG).show();\n } else {\n Log.d(TAG, \"Skylink failed to connect!\");\n Toast.makeText(parentActivity, \"Skylink failed to connect!\\nReason : \"\n + message, Toast.LENGTH_SHORT).show();\n }\n }",
"public void OnConnectSuccess();",
"public void sendMessageToServer(MessageWrapper message) {\n sendMessage(serviceDevice, message);\n }",
"void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to client => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}",
"public void serverSendMessageToUser(String username, String message) {\r\n \t\tServerCommand serverCommand = new PrivateMessageServerCommand(message, \"server\", username, null);\r\n \r\n \t\tRoMClient userClient = this.clients.getClientByUsername(username);\r\n \r\n \t\tthis.sendCommandToClient(userClient, serverCommand);\r\n \t}",
"void sendMsg(String msg) {\n if (this.server.getOwnClientName().equals(username)) {\n StringJoiner joiner = new StringJoiner(Constants.MSG_DELIMETER);\n joiner.add(MsgType.UNICAST.toString());\n joiner.add(msg);\n toClient.println(joiner.toString());\n }\n }",
"@Override\n\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\tserviceMessenger = new Messenger(service);\n\t\tsendMessageToService(ConnectionService.GET_MESSENGER);\n\t\tsendMessageToService(ConnectionService.CONNECT, host, port, key,\n\t\t\t\tinterval);\n\t}",
"private void sendMessage(WeakReference<Messenger> client, int msgCode, int requestCode, String message){\n \tLog.v(TAG,\"sendMessage: The message was: \" + message + \" (\" + msgCode + \")\" + \" requestCode was \" + requestCode);\n try {\n \t\tclient.get().send(Message.obtain(null, msgCode, requestCode, mState.ordinal(), message));\n } catch (RemoteException e) {\n // The client is dead. \n \t\tLog.e(TAG,\"sendMessage: The client is dead. Message was: \" + message + \" (\" + msgCode + \")\");\n } catch (NullPointerException e) {\n // The reply to client is does not exist. \n \t\tLog.e(TAG,\"sendMessage: client was null. Message was: \" + message + \" (\" + msgCode + \")\");\n }\n }",
"public void sendMessage(String message) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage bctMessage = Message.makeBroadcastMessage(userName, message);\n\t\tsocketConnection.print(bctMessage);\n\t}",
"@Override\n\tpublic void sendLogin() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\tString result = \"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.login();\n\t\t\t} else {\n\t\t\t\tWebResource loginService = service.path(URI_LOGIN);\n\t\t\t\tresult = loginService.accept(MediaType.TEXT_PLAIN).get(String.class);\n\t\t\t}\n\t\t\t//get the clientId\n\t\t\tclientId = Integer.parseInt(result);\n\t\t\t//set the status\n\t\t\tgui.setStatus(\"Successfully logged in! Obtained client ID: \"+clientId+\" from server!\");\n\t\t\t//immediately send the request for the list of items\n\t\t\tsendItemListRequest();\n\t\t} catch (ClientHandlerException ex){\n\t\t\t//exceptions for REST service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t} catch (WebServiceException ex){\n\t\t\t//exceptions for SOAP-RPC service\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!! Closing application...\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void send(){ \n\t\tserverAddress=tfTxtIpServer.getText();\n\t\tserverPort=\"3232\";\n\t\ttext=tfTxtMsg.getText();\n try{\n\t\t\t// get the \"registry\"\n registry=LocateRegistry.getRegistry(\n serverAddress,\n (new Integer(serverPort)).intValue()\n );\n\t\t // look up the remote object\n rmiServer=(ReceiveMessageInterface)(registry.lookup(\"rmiServer\"));\n\t\t\t// call the remote method\n rmiServer.receiveMessage(text);\n }\n catch(RemoteException e){\n e.printStackTrace();\n }\n catch(NotBoundException e){\n e.printStackTrace();\n } \n }",
"private void sendMessage(String message){\n try{\n output.writeObject(nickname+\" : \" + message);\n output.flush();\n showMessage(\"\\n\"+nickname+\" : \" + message);\n }catch(IOException ioException){\n chatWindow.append(\"\\n Oops! Something went wrong!\");\n }\n }",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"public void sendMessage(String message);",
"public void sendHeartbeat();",
"public void sendUserMessage(String msg) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage userMessage = Message.makeUserMessage(getUserName(), msg);\n\t\tsocketConnection.print(userMessage);\n\t}",
"public void send(String msg) {\n CompletableFuture.runAsync(() -> serverCon.send(msg));\n }",
"public void write(String message) {\n System.out.println(\"Sent \" + message + \" to client \" + client + \".\");\n out.println(message);\n }",
"@RequestMapping(\"/ibmiot/deviceclient/connect\")\r\n\tpublic String connectDeviceclient() {\r\n\t\tThread t1 = new Thread(commandCallbackSubscriber);\r\n\t\tt1.start();\r\n\t\tmyClient.setCommandCallback(commandCallbackSubscriber);\r\n\t\t\r\n\t\t// Connect to the IBM Watson IoT Platform\r\n\t\ttry {\r\n\t\t\tmyClient.connect();\r\n\t\t} catch (MqttException e) {\r\n\t\t\treturn \"Failed to connected with IBM IoT deviced Client\";\r\n\t\t}\r\n\t\treturn \"Connected to IBM IoT deviced Client\";\r\n\t}",
"public void onServiceConnected(ComponentName className, IBinder service) {\n\t mBoundAutopilotService = new Messenger(service);\n\t //mCallbackText.setText(\"Attached.\");\n\n\t // We want to monitor the service for as long as we are\n\t // connected to it.\n\t try {\n\t Message msg = Message.obtain(null, autopilotService.MSG_REGISTER_CLIENT);\n\t msg.replyTo = mMessenger;\n\t mBoundAutopilotService.send(msg);\n\n\t // Give it some value as an example.\n\t //msg = Message.obtain(null, autopilotService.MSG_ECHO, this.hashCode(), 0);\n\t //mBoundAutopilotService.send(msg);\n\t msg = Message.obtain(null, autopilotService.MSG_IS_SERVICE_RUNNING, 0, 0);\n\t mBoundAutopilotService.send(msg);\n\t Log.i(\"anemoi\", \"Here 0\");\n\t } catch (RemoteException e) {\n\t // In this case the service has crashed before we could even\n\t // do anything with it; we can count on soon being\n\t // disconnected (and then reconnected if it can be restarted)\n\t // so there is no need to do anything here.\n\t }\n\t Log.i(\"anemoi\", \"Buuu\");\n\t }",
"public void sendMessage(String message) {\n\t\ttry {\n\t\t\tout.writeUTF(message);\n\t\t\tserver.CommunicationLog.info(\"Sent:\" + message + \" to \" + clientSocket.getInetAddress().toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void esperarCliente() {\n try {\n socket = serverSocket.accept();\n System.out.println(\"Cliente conectado...\");\n } catch (IOException ex) {\n Logger.getLogger(ServidorUnicauca.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void sendInfo(PrintWriter out) {\r\n try {\r\n String info = \"&\"+this.chatClient.getUsername();\r\n out.println(info);\r\n this.chatClient.showMsg(\"Conectado con el servidor \"+HOST+\":\"+PORT);\r\n this.chatClient.addServer(sock);\r\n } catch (Exception ex) {\r\n this.chatClient.showMsg(\"Error al enviar información\");\r\n System.out.println(\"Problem sending info \\n\");\r\n System.out.println(ex);\r\n }\r\n }",
"public void talk() {\n\t try{\t\n\t \twhile(exit) {\n\t\t \t\t//Definizione stream per la comunicazione\n\t\t \t\ttastiera = new BufferedReader(new InputStreamReader(System.in));\n\t\t \t\tout = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t in = new DataInputStream(connection.getInputStream());\n\t\t\t\t \n\t\t \t\t//Invio messaggio\n\t\t\t\t System.out.println(\"Inserisci il messaggio da mandare al server: \\n\");\n\t\t\t\t mess = tastiera.readLine();\n\t\t\t\t\tout.writeUTF(mess + \"\\n\");\n\t\t\t\t\t\n\t\t\t\t\t//Ricezione risposta server\n\t\t\t\t\tservermess = in.readUTF();\n\t\t\t System.out.println(\"Risposta dal server: \"+servermess);\n\t\t\t if(mess.equals(\"FINE\")) {\n\t\t\t \texit = false;\n\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t }\n\t \tfinally {\n\t\t\t try {\n\t\t\t\t if (connection!=null)\n\t\t\t\t {\n\t\t\t\t connection.close();\n\t\t\t\t System.out.println(\"Connessione chiusa!\");\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t catch(IOException e){\n\t\t\t System.err.println(\"Errore nella chiusura della connessione!\");\n\t\t\t }\n\t \t}\t\n \t}",
"private void sendMessage(JSONArray parameter) {\n String msg = \"\";\n if (parameter.size() > 1) {\n for (int i = 1; i < parameter.size(); i++) {\n msg = msg + parameter.get(i).toString();\n }\n Client xClient = MailboxServer.getClientX((String) parameter.get(0));\n JSONObject j = new JSONObject();\n\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", msg);\n\n if (xClient != null) {\n try {\n PrintWriter xOutput = new PrintWriter(xClient.getClientSocket().getOutputStream());\n xOutput.println(j);\n xOutput.flush();\n } catch (IOException ex) {\n }\n } else {\n failedClientResponse(\"Client doesent exist!\");\n }\n clientResponse(\"Message sent! 200- OK\");\n }\n }",
"public void send(String l) {\n try {\n if (client == null || client.isClosed() || !client.isConnected()) start(ip, port);\n } catch(IOException e) {\n e.printStackTrace();\n }\n\n runPacketEvent(new ClientPacketEvent(this, PacketType.CLIENT_SEND, l));\n\n try {\n OutputStream outToServer = client.getOutputStream();\n outToServer.write((\"\\r\" + l + \"\\r\").getBytes(Charset.forName(\"UTF-8\")));\n } catch (IOException e) {\n e.printStackTrace();\n runConnectionEvent(new ClientConnectEvent(this, ConnectionType.CLIENT_SERVER_DISCONNECT));\n }\n }",
"private void sendRegisterMessage() {\n Message initMessage = new Message(\"register\");\n initMessage.name = name;\n sendMessage(initMessage);\n\n log(\"sent init. message:\" + initMessage);\n }",
"public void sendMessageToAll(String msg) {\n try {\n if (socket == null){\n JOptionPane.showMessageDialog(null, \"SSLSocket is not connected to server. Connect before sending message.\",Env.ChatClientMessageBoxTitle, JOptionPane.ERROR_MESSAGE);\n return;\n }\n PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream(), \"UTF-8\"), true);\n writer.println(passUtil.toHexString(\"msg|split|\" + user.getUsername() + \"|split|\" + msg));\n writer.flush();\n chatClientController.appendToPane(new Date(System.currentTimeMillis()) + \": You (\" + user.getUsername() + \"): \" + msg , \"BLUE\", null);\n } catch (Exception ex){\n ex.printStackTrace();\n if (ex.toString().toLowerCase().contains(\"socket output is already shutdown\")){\n disconnectFromServer(false);\n }\n JOptionPane.showMessageDialog(null, \"Error sending message: \" + ex.toString(),Env.ChatClientMessageBoxTitle, JOptionPane.ERROR_MESSAGE);\n }\n }",
"public void conectServer() {\n\n\t}",
"public void send(String request){\n try {\n streamOut.writeUTF(request);\n streamOut.flush();\n connected = true;\n System.out.println(clientID+\": send: \"+request);\n } catch (IOException ioe) {\n System.out.println(ioe);\n System.out.println(clientID+\": failedToSend: \"+request+\": IOException: \"+ioe);\n }\n }",
"@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tBind bind = (Bind) service;\n\t\t\tParcel data = Parcel.obtain();\n\t\t\tParcel reply = Parcel.obtain();\n\t\t\tdata.writeString(\"test\");\n\t\t\ttry {\n\t\t\t\tbind.transact(0, data, reply, 0);\n\t\t\t} catch (RemoteException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tLog.i(tag, bind.a);\n\t\t}",
"void send(String message);",
"public abstract void onClientConnect(ClientWrapper client);",
"public static void sendMsg(String msg)\n throws IOException\n {\n if (streamOut == null)\n clientFrame.printMsg(\"Error: Not connected.\");\n else\n streamOut.write((msg + \"\\n\").getBytes());\n }",
"@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}",
"public void sendStatusToServer(String status){\n System.out.println(\"typingstatus\" + chatID + username + \" \" + status);\n toServer.println(\"typingstatus\"+ \" \" + chatID + \" \" + username + \" \" + status);\n toServer.flush();\n }",
"void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to server => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}",
"public void handleMessageFromClient(Object msg) {\n\n }",
"private void connection() {\n boolean connect;\n try {\n connect = true;\n this.jTextArea1.setText(\"Server starts...\");\n server = new MultiAgentServer(this);\n String ip = \"\";\n int errorBit = 256;\n for (int i = 0; i < server.getIpAddr().length; i++) {\n int currentIP = server.getIpAddr()[i];\n if (currentIP < 0) {\n currentIP += errorBit;\n }\n ip += currentIP + \".\";\n }\n ip = ip.substring(0, ip.length() - 1);\n System.out.println(ip);\n Naming.rebind(\"//\" + ip + \"/server\", server);\n this.jTextArea1.setText(\"Servername: \" + ip);\n this.jTextArea1.append(\"\\nServer is online\");\n } catch (MalformedURLException | RemoteException e) {\n this.jTextArea1.append(\"\\nServer is offline, something goes wrong!!!\");\n connect = false;\n }\n if (dialog.getMusicBox().isSelected()) {\n sl = new SoundLoopExample();\n }\n reconnectBtn.setEnabled(!connect);\n }",
"private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}",
"@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }",
"public ConnectMessage(String connectedClient)\n {\n super(Message.CONNECT);\n this.connectedClient = connectedClient;\n this.code = 0;\n }",
"@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n System.out.println(\"绑定成功\");\n }",
"public void sendMessageToClient(String msg) throws IOException {\r\n\t\tif (this.clientSocket == null || this.out == null)\r\n\t\t\tthrow new SocketException(\"socket does not exist\");\r\n\t\t\r\n\t\tthis.out.writeObject(msg);\r\n\t}",
"public void serverSendMessageToAllUsers(String message) {\r\n \t\tServerCommand serverCommand = new MessageServerCommand(message, \"server\", null);\r\n \r\n \t\tthis.sendCommandToClient(this.clients.getClients(), serverCommand);\r\n \t}",
"void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }",
"@OnMessage\r\n\tpublic void onMessage(String message) {\r\n\r\n\t\tSystem.out.println(\"Message from \" + session.getId() + \": \" + message);\r\n\t\tthis.sendClient(\"Message from server: session ID : \" + session.getId()\r\n\t\t\t\t+ \" you sent \" + message);\r\n\t\tEchoServer socket = this.sockets.get(message);\r\n\t\tif (socket != null) {\r\n\t\t\tsocket.sendClient(this.uniqueId + \" send to \" + socket.uniqueId\r\n\t\t\t\t\t+ \" a message\");\r\n\t\t}else{\r\n\t\t\tSystem.out.println(\"Invalid Message from \" + session.getId());\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * try { session.getBasicRemote().sendText(\r\n\t\t * \"Message from server: session ID : \" + session.getId() + \" you sent \"\r\n\t\t * + message); } catch (IOException ex) { ex.printStackTrace(); }\r\n\t\t */\r\n\t}",
"public void connectClient(int client, String name) {\n final String n = name;\n final int c = client;\n \n Runnable doUpdate = new Runnable() {\n public void run() {\n JLabel nameLabel = (JLabel) cnames.get(c);\n nameLabel.setText(n);\n nameLabel.setForeground(Color.blue);\n \n JLabel statusLabel = (JLabel) cstatus.get(c);\n statusLabel.setText(\"Connected\");\n statusLabel.setForeground(new Color(25, 90, 25));\n \n pack();\n repaint();\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }"
]
| [
"0.66329604",
"0.6591541",
"0.6558616",
"0.65168995",
"0.651021",
"0.6509765",
"0.64859015",
"0.6439479",
"0.643496",
"0.64072454",
"0.6389759",
"0.63788223",
"0.63751656",
"0.6350769",
"0.6336947",
"0.63363254",
"0.63336056",
"0.6329369",
"0.63293004",
"0.6318142",
"0.63156486",
"0.63079405",
"0.62955296",
"0.6295022",
"0.6289709",
"0.6288942",
"0.62788236",
"0.6269957",
"0.62686354",
"0.62564105",
"0.6244794",
"0.62326896",
"0.61942744",
"0.61890984",
"0.618756",
"0.61874443",
"0.61874443",
"0.61600983",
"0.6146784",
"0.61450195",
"0.6126285",
"0.6124551",
"0.61224806",
"0.6116378",
"0.6092122",
"0.60871017",
"0.60717994",
"0.60322666",
"0.60318905",
"0.60256827",
"0.60252357",
"0.6024224",
"0.60192275",
"0.60154504",
"0.6014513",
"0.60026765",
"0.60006005",
"0.5991158",
"0.5989864",
"0.59841317",
"0.5982451",
"0.5957779",
"0.5949703",
"0.5926398",
"0.5921239",
"0.5913959",
"0.5911237",
"0.5906424",
"0.5903428",
"0.5902603",
"0.5902588",
"0.590074",
"0.589954",
"0.5898121",
"0.5886017",
"0.588544",
"0.5882061",
"0.58813643",
"0.5877362",
"0.58751905",
"0.5871004",
"0.58629453",
"0.5862549",
"0.5856992",
"0.58524984",
"0.58512926",
"0.5849589",
"0.58484536",
"0.58380115",
"0.58376884",
"0.58341926",
"0.5833851",
"0.5820342",
"0.5816722",
"0.5815204",
"0.5813681",
"0.5813077",
"0.5812271",
"0.58008355",
"0.57934517"
]
| 0.66477007 | 0 |
Endless loop for receiving messages from client and put them into the message queue. | @Override
public void run() {
while(true) {
String incomingMessage = getSocketController().receive();
getMessages().lock();
System.out.println(incomingMessage);
getMessages().addElement(incomingMessage);
getMessages().unlock();
try {
Thread.sleep(10);
}catch(InterruptedException e) {
throw new RuntimeException(e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\n\t\twhile (!isFinished) {\n\t\t\tString msg;\n\t\t\ttry {\n\t\t\t\tmsg = messages.take();\n\t\t\t\tSystem.out.println(serverId + \" says: \" + msg);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run()\n {\n while (true)\n {\n\n // create output stream attached to the socket\n\n // read message from client.\n try\n {\n Message message = (Message) inFromClient.readObject();\n System.out.println(\"Message from Client: \" + message);\n\n // Send reply to client.\n Message replyMessage = new Message(message.getId(), message.getBody().toUpperCase());\n\n for (int i = 0; i < mb.numberofclients(); i++)\n {\n mb.getConnection(i).returnMessage().writeObject(message);\n\n }\n list.add(message);\n db2.Write(list);\n\n }\n catch (Exception ex)\n {\n \n }\n }\n\n }",
"@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }",
"final public void run() {\n connectionEstablished();\n\n // The message from the server\n int msg;\n\n // Loop waiting for data\n\n try {\n // messageTimer.schedule(new TimerTask() {\n // @Override\n // public void run() {\n // try {\n // sendFromMessageQueue();\n // } catch (IOException e) {}\n // }\n // }, 0, 100);\n while (!readyToStop) {\n // Get data from Server and send it to the handler\n // The thread waits indefinitely at the following\n // statement until something is received from the server\n\n try { // added in version 2.31\n\n // String cur = input.readLine();\n // handleBig5String(cur + \"\\n\");\n readByte();\n\n } catch (RuntimeException ex) { // thrown by handleMessageFromServer\n\n connectionException(ex);\n }\n }\n } catch (Exception exception) {\n if (!readyToStop) {\n try {\n closeAll();\n } catch (Exception ex) {\n }\n\n clientReader = null;\n connectionException(exception);\n }\n } finally {\n\n clientReader = null;\n connectionClosed(); // moved here in version 2.31\n }\n }",
"public void run() {\n\t\tString line = null;\n\t\tMessage message;\n\t\tBufferQueueElement<Message> messageList = new BufferQueueElement<Message>();\n\t\tlong t1 = System.nanoTime();\n\t long t2 = 0;\n\t\ttry {\n\t\t\twhile ((line = messageIO.readMessage()) != null) {\n\t\t\t\tt2 = System.nanoTime();\n\t\t\t\t/* Ok, we can close the stream. But process the last message list. */\n\t\t\t\tif (CLOSE_STREAM.equals(line)) {\n\t\t\t\t\tmessageList.setStreamClosed(true);\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if((t2 - t1) < ONE_SECOND) {\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t} else {\n\t\t\t\t\tqueue.put(messageList);\n\t\t\t\t\tmessageList = new BufferQueueElement<Message>();\n\t\t\t\t\tt1 = System.nanoTime();\n\t\t\t\t\tmessage = new Message(line);\n\t\t\t\t\tmessageList.setMessageElement(message);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"Waiting for input\");\n\t\t// Handle reading data until we exit\n\t\tByteBuffer buf = ByteBuffer.allocate(2048);\n\t\twhile (!stopper && socketChannel.isOpen()) {\n\t\t\tSystem.out.println(\"Reading the socket\");\n\t\t\ttry {\n\t\t\t\t// No input from the user in 60 seconds results in kicking them\n\t\t\t\t// out\n\t\t\t\tint bytesRead = socketChannel.read(buf).get(60, TimeUnit.SECONDS);\n\t\t\t\t// ByteBuffer dst = ByteBuffer.allocate(bytesRead);\n\t\t\t\t// engine.unwrap(buf, dst);\n\t\t\t\tSystem.out.println(\"Got data of size: \" + bytesRead);\n\t\t\t\t// convert to proto\n\t\t\t\tcommonUIElements.MessageProtos.Message msg = commonUIElements.MessageProtos.Message\n\t\t\t\t\t\t.parseFrom(Arrays.copyOf(buf.array(), bytesRead));\n\t\t\t\tSystem.out.println(\"RXed: \" + msg.toString());\n\t\t\t\tif (!msg.getName().equals(name)) {\n\t\t\t\t\tname = msg.getName();\n\t\t\t\t}\n\t\t\t\t// add data to the message queue\n\t\t\t\tif (SignatureSystem.verifySignature(msg.getSignature(), msg.getMessage(), msg.getName(), trustStore)) {\n\t\t\t\t\tmessages.put(\n\t\t\t\t\t\t\tnew Message(msg.getSender(), msg.getMessage(), msg.getSignature(), msg.getClearance()));\n\t\t\t\t} else {\n\t\t\t\t\tMessage error = new Message(msg.getSender(), \"Error: signture is invalid\", msg.getSignature(),\n\t\t\t\t\t\t\tmsg.getClearance());\n\t\t\t\t\terror.error = true;\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t}\n\t\t\t\t// clear the buffer for the next message\n\t\t\t\tbuf.clear();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tSystem.err.println(\"Failed to add message to the queue: \" + e.getMessage());\n\t\t\t\tMessage error = new Message(this.name, \"Disconnected\", \"\", 1);\n\t\t\t\terror.error = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (TimeoutException e) {\n\t\t\t\tSystem.err.println(\"Timeout hit, waiting again\");\n\t\t\t\tMessage error = new Message(this.name, \"Client: \" + this.name + \" has timed out\", \"\", 1);\n\t\t\t\terror.kill = true;\n\t\t\t\ttry {\n\t\t\t\t\tmessages.put(error);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\tSystem.err.println(\"Thread has an error, can't inform server of this transgression\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\tSystem.err.println(\"Execution error, breaking out of loop\");\n\t\t\t\tbreak;\n\t\t\t} catch (InvalidProtocolBufferException e) {\n\t\t\t\tSystem.err.println(\"Invalid protobuf received: \" + e.getMessage());\n\t\t\t\t// } catch(SSLException e) {\n\t\t\t\t// System.err.println(\"SSL Failed: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tsocketChannel.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Failed to close socket while exiting\");\n\t\t}\n\t\tSystem.out.println(\"Exiting thread...\");\n\t}",
"public void run() {\r\n while(true) { // outer loop\r\n if(first) // we already have the queue CAS acquired\r\n first=false;\r\n else {\r\n if(!queue.acquire())\r\n return;\r\n }\r\n\r\n try {\r\n Message msg_to_deliver;\r\n while((msg_to_deliver=queue.remove()) != null) { // inner loop\r\n try {\r\n up_prot.up(new Event(Event.MSG, msg_to_deliver));\r\n }\r\n catch(Throwable t) {\r\n log.error(\"couldn't deliver message \" + msg_to_deliver, t);\r\n }\r\n }\r\n }\r\n finally {\r\n queue.release();\r\n }\r\n\r\n // although ConcurrentLinkedQueue.size() iterates through the list, this is not costly,\r\n // as at this point, the queue is almost always empty, or has only a few elements\r\n if(queue.size() == 0) // prevents a concurrent add() (which returned) to leave a dangling message in the queue\r\n break;\r\n }\r\n }",
"public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t\tif (msg.indexOf(\"/bye\") == 0) {\r\n\t\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAnalysis.ckMsg(mySin, msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n public void run()\n {\n while (true) {\n if (isReadyToStop && (buffer.poll() == null)) {\n System.out.println(\"Thread stop\");\n producerClient.close();\n return;\n }\n try {\n Message msg = buffer.poll(config.getBufferPollTimeout());\n if (msg == null) {\n // ignore it\n continue;\n }\n System.out.println(\"Sent out: [\" + msg + \"]\");\n if (msg.getTopic().isPresent()) {\n String topic = msg.getTopic().get();\n Optional<Function<String, Integer>> function = funcMapBuffer.get(topic);\n function.ifPresent(stringLongFunction -> {\n int fiberId = stringLongFunction.apply(msg.getKey());\n msg.setFiberId(fiberId);\n producerClient.send(topic, fiberId, msg);\n });\n // else ignore this message\n }\n // else ignore this message\n }\n catch (InterruptedException ignored) {\n // if poll nothing, enter next loop\n }\n }\n }",
"public void loop() {\n try {\n Mail<T> mail = mailBox.remove();\n\n actor.setSender(mail.getSender());\n actor.receive(mail.getMessage());\n } catch (InterruptedException e) {\n }\n }",
"@Override\n public void run() {\n try {\n boolean busy = true;\n while (busy) {\n AbstractBasicMessage msg = readMsg();\n if (msg != null) {\n busy = msg.operate(this.persistor, this.pushServer);\n }\n }\n } catch (IOException e) {\n // Treat an IOException as a termination of the message\n // exchange, and let this message-processing thread die.\n\n // CODE VON DOZENTEN...\n } catch (OperationNotSupportedException ex) {\n System.out.println(\"Error while reading incoming message\");\n ex.printStackTrace();\n }\n }",
"protected void syncConsumeLoop(MessageConsumer requestConsumer) {\n try {\n Message message = requestConsumer.receive(5000);\n if (message != null) {\n onMessage(message);\n } else {\n System.err.println(\"No message received\");\n }\n } catch (JMSException e) {\n onException(e);\n }\n }",
"@Override\n public void run() {\n while (!bShutDown || !messageCache.isEmpty()) {\n try {\n while (!messageCache.isEmpty()) {\n HttpMessage httpMessage = messageCache.poll();\n if (httpMessage != null) {\n SendResult result = sendMessageWithHostInfo(\n httpMessage.getBodies(), httpMessage.getGroupId(),\n httpMessage.getStreamId(), httpMessage.getDt(),\n httpMessage.getTimeout(), httpMessage.getTimeUnit());\n httpMessage.getCallback().onMessageAck(result);\n }\n }\n TimeUnit.MILLISECONDS.sleep(proxyClientConfig.getAsyncWorkerInterval());\n } catch (Exception exception) {\n logger.error(\"exception caught\", exception);\n }\n }\n }",
"public void run() {\n\n\t\t// produce messages\n\t\twhile (isConnected) {\n\n\t\t\ttry {\n\t\t\t\t// receive message\n\t\t\t\tMessage m = qreceiver.receive();\n\t\t\t\t// process message -- add message to the data holder\n\t\t\t\tprocessMessage(m);\n\t\t\t\t// check if the commit flag is set in the message property\n\t\t\t\tif (shouldCommit(m)) {\n\t\t\t\t\t// commit the transaction\n\t\t\t\t\tcommit(m);\n\t\t\t\t}\n\t\t\t\tThread.sleep(1000);\n\t\t\t\t\n\t\t\t} catch (TransactionRolledBackException trbe) {\n\t\t\t\tlog(\"transaction rolled back by MQ ...\");\n\t\t\t\t// rollback application data\n\t\t\t\trollBackApplication();\n\t\t\t} catch (JMSException jmse) {\n\t\t\t\t// The exception can happen when receiving messages\n\t\t\t\t// and the connected broker is killed.\n\t\t\t\tif (isConnected == true) {\n\t\t\t\t\t// rollback MQ and application data\n\t\t\t\t\trollBackAll();\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog(e);\n\n\t\t\t\t// application may decide NOT to close the connection\n\t\t\t\t// when an unexpected Exception occurred.\n\t\t\t\tclose();\n\t\t\t}\n\t\t}\n\t}",
"private ObservableOnSubscribe<Object> receiveLoop() {\n return emitter -> {\n Message message;\n try {\n while ( ( message = consumer.receive( jmsDelegate.receiveTimeout ) ) != null ) {\n streamStep.logDebug( message.toString() );\n emitter.onNext( message.getBody( Object.class ) );\n }\n } catch ( JMSRuntimeException jmsException ) {\n emitter.onError( jmsException );\n }\n emitter.onComplete();\n };\n }",
"public void run() {\n // Check if the specified connector is null\n //\n if(this.connector == null) {\n System.out.println(\"[ERROR] connector is null aborting\");\n return;\n }\n\n //\n // Keep reading messages\n //\n while (true) {\n AeMessage inMsg = connector.read();\n if(inMsg == null) {\n System.out.println(\"[ERROR] Received an invalid message\");\n connector.reconnect();\n try {\n Thread.sleep(10000);\n }\n catch(Exception e) {\n }\n }\n else {\n //\n // Reject messages over two minutes old\n //\n if(inMsg.checkMessageOlderThan(120) == 1) {\n System.out.println(\"[INFO] Message has expired: \" + inMsg.toString());\n }\n else if(inMsg.getMessageType().equals(\"22\")) {\n System.out.println(\"[INFO] Received message:\" + inMsg.toString());\n if(messageStore.reportMessage(inMsg)) {\n System.out.println(\"[INFO] Successfully added message to the store\");\n }\n else {\n System.out.println(\"[ERROR] Failed to add message to the store\");\n }\n }\n }\n }\n }",
"public void run() \n { \n String message; // String for incoming messages\n \n // listen for messages until stopped\n while ( keepListening ) \n { \n try \n { \n message = input.readLine(); // read message from client\n } // end try\n catch ( SocketTimeoutException socketTimeoutException ) \n {\n continue; // continue to next iteration to keep listening\n } // end catch\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n break;\n } // end catch\n\n // ensure non-null message\n if ( message != null ) \n {\n // tokenize message to retrieve user name and message body\n StringTokenizer tokenizer = new StringTokenizer( \n message, MESSAGE_SEPARATOR );\n\n // ignore messages that do not contain a user\n // name and message body\n if ( tokenizer.countTokens() == 2 ) \n {\n // send message to MessageListener\n messageListener.messageReceived( \n tokenizer.nextToken(), // user name\n tokenizer.nextToken() ); // message body\n } // end if\n else\n {\n // if disconnect message received, stop listening\n if ( message.equalsIgnoreCase(\n MESSAGE_SEPARATOR + DISCONNECT_STRING ) ) \n stopListening();\n } // end else\n } // end if\n } // end while \n \n try\n { \n input.close(); // close BufferedReader (also closes Socket)\n } // end try\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n } // end catch \n }",
"@Override\n public void run() {\n try {\n boolean autoFlush = true;\n fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n toClient = new PrintWriter(clientSocket.getOutputStream(), autoFlush);\n } catch (IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n for (String entry : communicationWhenStarting) {\n sendMsg(entry);\n }\n while (connected) {\n try {\n Message msg = new Message(fromClient.readLine());\n updateClientAction(msg);\n } catch (IOException ioe) {\n disconnectClient();\n throw new MessageException(ioe);\n }\n }\n }",
"private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void run() {\n\t\ttry {\n\t\t\tout = new PrintWriter(client.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\ts.getMessage(this, inputLine);\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to host\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}",
"public void run() {\r\n String request = \"\";\r\n\r\n try {\r\n /**\r\n * The ClientConnectionHandler constantly waits for requests from the client. Requests are the initial message\r\n * that the client sends. This initial message determines how the server receives the messages that come after\r\n * it (if there are any).\r\n */\r\n while (isOpen) {\r\n request = readMessage();\r\n processRequest(request);\r\n }\r\n clientSocket.close();\r\n System.out.println(\"Client #\" + clientNumber + \" has closed\");\r\n } catch (Exception e) {}\r\n }",
"private void consume()\r\n\t{\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tSubscriberMessage sifMsg = queue.blockingPull();\t\t\t\t\r\n\t\t\tif (sifMsg != null)\r\n\t\t\t{\r\n\t\t\t\tlogger.debug(consumerID+\" has receive a message from its SubscriberQueue.\");\r\n\t\t\t\tif (sifMsg.isEvent())\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFEvent sifEvent = new SIFEvent(sifMsg.getSIFObject(), sifMsg.getEventAction());\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processEvent(sifEvent, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Event for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nEvent Data:\\n\"+sifEvent, ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFDataObject sifObj = sifMsg.getSIFObject();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processResponse(sifObj, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Object for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nSIF Object Data:\\n\"+((sifObj == null) ? \"null\" : sifObj.toXML()), ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tlogger.error(consumerID+\" has encountered a problem receiving a message from its SubscriberQueue.\");\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public void run() {\n int eventseen = 0;\n int looptry = 0;\n int wait = 100;\n while(! isInterrupted()) {\n Iterable<byte[]> stream = new Iterable<byte[]>() {\n @Override\n public Iterator<byte[]> iterator() {\n Iterator<byte[]> i = Receiver.this.getIterator();\n if(i == null) {\n return new Iterator<byte[]>() {\n\n @Override\n public boolean hasNext() {\n return false;\n }\n\n @Override\n public byte[] next() {\n return null;\n }\n\n };\n } else {\n return i;\n }\n }\n };\n try {\n for(byte[] e: stream) {\n logger.trace(\"new message received: {}\", e);\n if(e != null) {\n eventseen++;\n //Wrap, but not a problem, just count as 1\n if(eventseen < 0) {\n eventseen = 1;\n }\n Event event = new Event();\n decode(event, e);\n send(event);\n }\n }\n } catch (Exception e) {\n eventseen = 0;\n logger.error(e.getMessage());\n logger.catching(e);\n }\n // The previous loop didn't catch anything\n // So try some recovery\n if(eventseen == 0) {\n looptry++;\n logger.debug(\"event seen = 0, try = {}\", looptry);\n // A little magic, give the CPU to other threads\n Thread.yield();\n if(looptry > 3) {\n try {\n Thread.sleep(wait);\n wait = wait * 2;\n looptry = 0;\n } catch (InterruptedException ex) {\n break;\n }\n }\n } else {\n looptry = 0;\n wait = 0;\n }\n }\n }",
"public void run() {\n\t\t\twhile (running || !messages_to_send.isEmpty()) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsend();\r\n\t\t\t\t\tread();\r\n\t\t\t\t\tThread.sleep(100);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tbluetooth_show_message(\"Error! Sending or Reading failed. Reason: \" + e);\r\n\t\t\t\t\tcancel();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch(IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"protected void doWork() {\n\t\ttry {\n\t\t\twhile ((_cli != null) && _cli.hasNext()) {\n\t\t\t\tConversationMessage cm = _cli.next2();\n\t\t\t\t_messages.add(cm);\n\t\t\t}\n\t\t\tThread.sleep(_DOWORK_WAIT);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void run() {\n while(true)\n {\n try {\n Thread.sleep(1000);\n handler.sendEmptyMessage(0);\n\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }\n\n }",
"private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}",
"@Override\n public void run() {\n //System.out.println(\"TCPReceiver is running\");\n logger.debug(\"TCPReceiver is running\");\n //receivePackage(DataHandler.inQueue);\n while (true){\n try {\n socket = serverSocket.accept();\n multiReceivePackage(this.inQueue);\n } catch (Exception e) {\n //System.out.println(\"[\" + Thread.currentThread().getName() + \"] Receiver 线程内出错。\");\n logger.error(\"[\" + Thread.currentThread().getName() + \"] Receiver 线程内出错。\");\n e.printStackTrace();\n }\n }\n\n\n }",
"@Override\n\t\tpublic void run() {\n\n\t\t\twhile (isRun) {\n\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\n\t\t\t\t\tisRun = false;\n\t\t\t\t\thandler.sendEmptyMessage(2);\n\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\n\t\twhile (onWork) {\n\n\t\t\tswitch (state) {\n\t\t\tcase connect:\n\t\t\t\tconnect();\n\t\t\t\tbreak;\n\t\t\tcase running:\n\t\t\t\treceiveMsg();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}",
"@Override\n public void run() {\n Message message;\n while(true){\n logger.debug(\"SMS Reader Thread is waiting for incoming messages\");\n message = messageQueue.getInputSMS().poll() ;\n logger.debug(\"SMS message has been received from \"+ message.getFromWhom());\n view.receivedMessages.append(message.getFromWhom().toString() +\" :\");\n view.receivedMessages.append(message.getData() + \"\\n\");\n view.setPreferredSize(new Dimension(view.getSize().height+10, view.getSize().width));\n view.jScrollPaneReceivedMessages.getVerticalScrollBar().setValue(view.jScrollPaneReceivedMessages.getVerticalScrollBar().getMaximum());\n view.revalidate();\n }\n }",
"@Override\n public void run() { \n \n String received; \n while (true) { \n try { \n\n // receive the messages from clients\n received = dis.readUTF();\n ChatServer.writeOnThreads(received);\n\n } catch (IOException e) {\n try { \n this.dis.close(); \n this.dos.close(); \n\n } catch(IOException e1) { \n e1.printStackTrace(); \n } \n } \n } \n }",
"public void run()\n\t\t{\twhile(true)\n\t\t\t{\tString s = ChatServer.message.get();\n\t\t\t\tsynchronized(ChatServer.sessions)\n\t\t\t\t{\tfor(int i = 0; i < ChatServer.size; ++i)\n\t\t\t\t\t\tif(ChatServer.sessions[i] != null)\n\t\t\t\t\t\t\tChatServer.sessions[i].println(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private void ReceiveMessages() throws Exception {\r\n // Variables\r\n Connection connection = null;\r\n Session session = null;\r\n MessageConsumer consumer = null;\r\n\r\n try {\r\n ConnectionFactory connectionFactory = MyCreateConnectionFactory();\r\n\r\n System.out.println(\"Connection Factory created.\");\r\n\r\n connection = MyCreateConnection(connectionFactory);\r\n\r\n System.out.println(\"Connection created.\");\r\n\r\n session = MyCreateSession(connection);\r\n\r\n System.out.println(\"Session created.\");\r\n\r\n Destination destination = MyCreateDestination(session);\r\n\r\n System.out.println(\"Destination created: \" + destination.toString());\r\n\r\n consumer = MyCreateConsumer(session, destination);\r\n\r\n System.out.println(\"Consumer created.\");\r\n\r\n System.out.println(\"Waiting for messages...\");\r\n\r\n // Now receive messages synchronously or asynchronously\r\n\r\n // Synchronously\r\n if (Options.ReceiveMode.Value().equals(Literals.Sync)) {\r\n // Start the connection\r\n connection.start();\r\n\r\n // Receive specified number of messages\r\n Message recvMsg = null;\r\n while (messagesInTotal.equals(Literals.Infinite)\r\n || (messagesReceived < Integer.parseInt(messagesInTotal))) {\r\n // If we want to wait until timeout, use the following call instead\r\n // recvMsg = consumer.receive(TIMEOUTTIME);\r\n\r\n // Receive the message\r\n recvMsg = consumer.receive();\r\n\r\n // Increment the counter\r\n messagesReceived++;\r\n\r\n \r\n if (recvMsg != null) {\r\n // Display received message\r\n DisplayMessage(recvMsg);\r\n }\r\n else {\r\n throw new Exception(\"Message received was null.\");\r\n }\r\n\r\n // Sleep for a while to allow the user to see the output on the screen\r\n Thread.sleep(Options.Interval.ValueAsNumber() * 1000);\r\n\r\n } // end of while\r\n\r\n } // end synchronously\r\n\r\n // Asynchronously\r\n else if (Options.ReceiveMode.Value().equals(Literals.Async)) {\r\n // Create and register a new MessageListener for this consumer\r\n consumer.setMessageListener(new MessageListener() {\r\n\r\n public void onMessage(Message msg) {\r\n // The try block below is unlikely to throw a runtime exception, but as a general good\r\n // practice an asynchronous consumer's message listener or callback should catch a\r\n // potential runtime exception, and optionally divert the message in question to an\r\n // application-specific destination.\r\n try {\r\n synchronized (threadWaitLock) {\r\n // Increment the counter\r\n ++messagesReceived;\r\n\r\n // Display the message that just arrived\r\n DisplayMessage(msg);\r\n\r\n // Notify main thread we've received a message\r\n threadWaitLock.notify();\r\n\r\n // Sleep for a while to allow the user to see the output on the screen\r\n Thread.sleep(Options.Interval.ValueAsNumber() * 1000);\r\n }\r\n } // end try\r\n catch (Exception e) {\r\n System.out.println(\"Exception caught in onMessage():\\n\" + e);\r\n // We have atleast two choices now - (1) rethrow the exception. In this case the\r\n // control passes back to JMS client and which may attempt to redeliver the message,\r\n // depending on session's acknowledge mode, or (2) terminate the process.\r\n // Orthogonally, we may divert the message to an application-specific destination.\r\n\r\n // Terminate the current process\r\n System.exit(-1);\r\n }\r\n return;\r\n } // end onMessage()\r\n }); // end setMessageListener\r\n\r\n // Start the connection\r\n connection.start();\r\n\r\n // Finite number of messages to receive\r\n if (messagesInTotal != Literals.Infinite) {\r\n synchronized (threadWaitLock) {\r\n try {\r\n // Temporary variables\r\n int noProgressCount = 0;\r\n int countLastSeen = -1;\r\n\r\n int expectedNumMessages = Integer.parseInt(messagesInTotal);\r\n while (messagesReceived != expectedNumMessages) {\r\n // Wait for few seconds (or be notified by the listener thread) before checking the\r\n // number of messages received\r\n threadWaitLock.wait(waitTime);\r\n\r\n if (countLastSeen != messagesReceived) {\r\n countLastSeen = messagesReceived;\r\n noProgressCount = 0;\r\n }\r\n else {\r\n ++noProgressCount;\r\n }\r\n\r\n if (++noProgressCount >= MAX_NO_PROGRESS) {\r\n // No progress has been made by the listener in 5 seconds * 3 = 15 seconds.\r\n // Let's quit.\r\n break;\r\n }\r\n\r\n } // end while\r\n } // end try\r\n catch (InterruptedException e) {\r\n System.err\r\n .println(\"Main thread waiting for MessageListener thread to receive message was interupted!\"\r\n + e);\r\n throw e;\r\n }\r\n } // end synchronized block\r\n } // end if\r\n // Infinite number of messages to receive\r\n else {\r\n // Block this thread and let listener thread do all the work (if any).\r\n synchronized (threadWaitLock) {\r\n try {\r\n while (true) {\r\n // Wait to be notified by the listener thread and then wait again!\r\n threadWaitLock.wait();\r\n }\r\n }\r\n catch (InterruptedException e) {\r\n System.err\r\n .println(\"Main thread waiting for MessageListener thread to receive message was interupted!\"\r\n + e);\r\n throw e;\r\n }\r\n\r\n } // end synchronized block\r\n } // end else\r\n } // end asynchronously\r\n }\r\n catch (JMSException jmsex) {\r\n processJMSException(jmsex);\r\n }\r\n finally {\r\n if (consumer != null) {\r\n try {\r\n consumer.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Consumer could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n\r\n if (session != null) {\r\n try {\r\n session.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Session could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n\r\n if (connection != null) {\r\n try {\r\n connection.close();\r\n }\r\n catch (JMSException jmsex) {\r\n System.out.println(\"Connection could not be closed.\");\r\n processJMSException(jmsex);\r\n }\r\n }\r\n }\r\n\r\n // We're finished.\r\n System.out.println(\"\\nSample execution SUCCESSFUL.\\n\");\r\n\r\n return;\r\n }",
"public void run() {\n try {\n while (!socket.isClosed()) {\n Message message = socket.receiveMessage();\n if (message != null) {\n logger.info(\"Received: \" + message);\n socket.sendMessage(message);\n logger.info(\"Sent: \" + message);\n } else {\n // Close socket if no messages were received.\n // NOTE: This is a simplifying assumption that no messages means the client has been shutdown\n // and the application lifecyle has come to an end. Otherwise a shutdown message should be\n // detected and handled accordingly.\n socket.close();\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n executorService.shutdown();\n }",
"@Override\r\n\tpublic void run() {\n\t\twhile(true) {\r\n\t\t\tfor(String data:queueData) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }",
"@Override\n public void run() {\n while(true){\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(\n clientSocket.getInputStream()));\n\n String message=in.readLine();\n if(message!=null){\n logger.info(\"Received message from \"+clientSocket.getInetAddress());\n }\n else{\n logger.error(\"Null message received from \"+clientSocket.getInetAddress()+\". Stopping connection\");\n return;\n }\n\n\n PrintWriter out =\n new PrintWriter(clientSocket.getOutputStream(), true);\n out.println(message);\n\n } catch (IOException e) {\n logger.error(\"[IOException] \"+e.getMessage());\n e.printStackTrace();\n return;\n }\n try {\n Thread.sleep(responseInterval);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n\n }",
"@Override\n public void run() {\n while (isRun) {\n count--;\n handler.sendEmptyMessage(10);\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n }",
"@Override\n\t\tpublic void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);// 线程暂停2秒,单位毫秒\n\t\t\t\t\tMessage message = new Message();\n\t\t\t\t\tmessage.arg1 = 1;\n\t\t\t\t\thandler.sendMessage(message);// 发送消息\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void run()\n {\n myMark = \"Z\";\n myTurn = false;\n displayMessage( \"Entered message loop\\n\");\n while( !gameover )\n {\n if( input.hasNextLine() )\n processMessage( input.nextLine() );\n } // end while\n displayMessage( \"Left message loop\\n\" );\n\n try {\n if( connection != null && !connection.isClosed() )\n connection.close();\n } catch( IOException e ) {\n e.printStackTrace();\n }\n displayMessage( \"Client terminated\\n\" );\n }",
"public void run() {\n // open socket\n Socket s = null;\n int retries = 3;\n int retry_interval_ms = 100;\n for (int i = 0; i < retries; i++) {\n\n // create or find a socket server\n try {\n InetAddress localhost = InetAddress.getByName(null);\n if (id < otherId) {\n ServerSocket serverSocket = new ServerSocket(port, 0, localhost);\n s = serverSocket.accept();\n } else {\n s = new Socket(localhost, port);\n }\n System.out.println(logPrefix + \"socket connected\");\n break;\n\n // retry a few times if necessary\n } catch (IOException e) {\n System.out.println(logPrefix + \"Socket connection failure.\");\n System.out.println(logPrefix + e.getMessage());\n if (i < retries - 1) {\n System.out.println(logPrefix + \"Trying again...\");\n try {\n Thread.sleep(retry_interval_ms);\n } catch (InterruptedException e1) {\n }\n } else {\n System.out.println(logPrefix + \"Giving up.\");\n }\n }\n }\n\n // if socket exists, finish initialization then listen for messages\n if (s != null) {\n try (\n // get I/O streams\n PrintWriter xxx = outContainer[0] =\n new PrintWriter(s.getOutputStream(), true);\n BufferedReader in = new BufferedReader(new InputStreamReader(\n s.getInputStream()));\n ) {\n // enqueue received messages\n String inputLine;\n while ((inputLine = in.readLine()) != null) {\n messages.add(Integer.parseInt(inputLine));\n }\n } catch (IOException e) {\n System.out.println(logPrefix + \"Exception in socket thread.\");\n System.out.println(logPrefix + e.getMessage());\n }\n }\n }",
"private void run()\n\t\t{\n\t\tObjectItemBuf<JobSchedulerMessage> buf =\n\t\t\tObjectBuf.buffer ((JobSchedulerMessage) null);\n\t\tStatus status = null;\n\t\tJobSchedulerMessage message = null;\n\t\tJobFrontendRef frontend = null;\n\n\t\treceiveloop : for (;;)\n\t\t\t{\n\t\t\t// Receive a message from any channel.\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\tstatus = myChannelGroup.receive (null, null, buf);\n\t\t\t\t}\n\t\t\tcatch (ChannelGroupClosedException exc)\n\t\t\t\t{\n\t\t\t\t// Normal termination.\n\t\t\t\tbreak receiveloop;\n\t\t\t\t}\n\t\t\tcatch (Throwable exc)\n\t\t\t\t{\n\t\t\t\tmyLog.log (\"Exception while receiving message\", exc);\n\t\t\t\tbreak receiveloop;\n\t\t\t\t}\n\t\t\tmessage = buf.item;\n\n\t\t\t// Get job frontend proxy associated with channel.\n\t\t\tfrontend = (JobFrontendRef) status.channel.info();\n\n\t\t\t// Process message.\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\tmessage.invoke (this, frontend);\n\t\t\t\t}\n\t\t\tcatch (Throwable exc)\n\t\t\t\t{\n\t\t\t\tmyLog.log (\"Exception while processing message\", exc);\n\t\t\t\t}\n\n\t\t\t// Enable garbage collection of no-longer-needed objects while\n\t\t\t// waiting to receive next message.\n\t\t\tbuf.item = null;\n\t\t\tstatus = null;\n\t\t\tmessage = null;\n\t\t\tfrontend = null;\n\t\t\t}\n\t\t}",
"private void startConsumeMsg() {\n try {\n ConsumerRecords<byte[], byte[]> records;\n while (true) {\n records = kafkaConsumer.poll(Long.MAX_VALUE);\n for (ConsumerRecord<byte[], byte[]> record : records) {\n processMsg(record);\n kafkaConsumer.commitSync();\n LOG.info(\"Single consumer consume the message {}th\", counter.incrementAndGet());\n }\n\n }\n } catch (Exception ex) {\n LOG.error(\"Consumer get message error {}\", ex);\n } finally {\n LOG.info(\"Shutting down consumer ...\");\n shutdown();\n }\n }",
"public void run() {\r\n String message;\r\n try {\r\n while (keepGoing && in != null && (message = in.readLine()) != null) {\r\n println(message);\r\n }\r\n } catch (IOException e) {\r\n finalize();\r\n }\r\n }",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(isrun&&handler!=null){\n\t\t\ttry {\n\t\t\t\tMessage msg=handler.obtainMessage(timeupdate, new Date());\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void run() {\n try {\n String receivedMessage = \"\";\n \t\twhile (!receivedMessage.startsWith(this.PSEUDO+\" left.\")) {\n \n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n \n clientSocket.receive(packet);\n receivedMessage = new String(packet.getData(), packet.getOffset(), packet.getLength());\n\n conversation.append(receivedMessage + \"\\n\");\n\n \t\t}\n \t\tSystem.exit(0);\n\n \t} catch (Exception e) {\n \tSystem.err.println(\"Error in ReceptionClientThread:\" + e); \n }\n }",
"public void run() {\n readFromClient();\n }",
"public void run() {\n\t\tThread t = Thread.currentThread();\n\t\twhile (!t.isInterrupted()) {\n\t\t\ttry {\n\t\t\t\t//boolean status = process();\n\t\t\t\tMessage message = receive();\n\t\t\t\tif (t.isInterrupted())\n\t\t\t\t\treturn;\n\t\t\t\t//if (!status)\n\t\t\t\t//\treturn;\n\t\t\t\tif (socket == null)\n\t\t\t\t\treturn;\n\t\t\t\tThread.yield();\n\t\t\t} catch (Exception e) {\n\t\t\t\t//_monitor.log(e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void readMessages() {\n if (!this.isConnectedToClientServer){return;}\n String inputMessage = inputQueue.poll();\n if (inputMessage != null){\n try{\n ClientMessageType messageType = ClientMessageParser.parse(inputMessage);\n if (messageType == ClientMessageType.INCOMING_BALL){\n //parses the message to get a ball, which is then added to the board\n Ball ball = ClientMessageParser.parseIncomingBall(inputMessage);\n board.addBall(ball);\n }\n else if (messageType == ClientMessageType.WALL_INVISIBILITY){\n //parses the messages to find out which boundary to make invisible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallInvisibility(inputMessage, board.neighbors);\n board.makeInvisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.WALL_VISIBILITY){\n //parses the messages to find out which boundary to make visible, and does so\n BoundarySide whichBoundary = ClientMessageParser.parseWallVisibility(inputMessage, board.neighbors);\n board.makeVisible(whichBoundary);\n }\n else if (messageType == ClientMessageType.DISCONNECT_CLIENT){\n disconnectFromClientAndServer();\n }\n } catch (IncorrectFormatException e){\n //don't do anything --> message is not parsed, but play on this board still continues\n }\n }\n }",
"private void runServer() {\n while(true) {\n // This is a blocking call and waits until a new client is connected.\n Socket clientSocket = waitForClientConnection();\n handleClientInNewThread(clientSocket);\n } \n }",
"public void run() {\n while (true) { \n \t\ttry {\n \t\t\tString line=br.readLine();\n\t\t\t\t\t\t\th.obtainMessage(RECIEVE_MESSAGE, line).sendToTarget();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n \n }\n }",
"@Override\n\tpublic void run() {\n\t\twhile(!Server.killServer){\n\t\t\ttry {\n\t\t\t\tThread.sleep(Constants.BROADCAST_BATTLEFIELD_PERIOD_TO_CLIENTS);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//send to EACH client\n\t\t\tfor(Node client : Server.getClientList().keySet()){\n\t\t\t\t//get client's RMI instance\n\t\t\t\tClientServer clientComm = null;\n\t\t\t\tclientComm = Server.getClientReg(client); \n\t\t\t\t//create Message\n\t\t\t\tClientServerMessage sendBattlefieldMessage = new ClientServerMessage(\n\t\t\t\t\t\t\tMessageType.GetBattlefield,\n\t\t\t\t\t\t\tthis.serverOwner.getName(),\n\t\t\t\t\t\t\tthis.serverOwner.getIP(),\n\t\t\t\t\t\t\tclient.getName(),\n\t\t\t\t\t\t\tclient.getIP());\n\t\t\t\tsendBattlefieldMessage.setBattlefield(Server.getBattlefield());\n\t\t\t\t\n\t\t\t\tif(clientComm==null){\n\t\t\t\t\tSystem.out.println(\"clientComm is null\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Server: Battlefield sent\");\n\n\t\t\t\ttry {\n\t\t\t\t\tclientComm.onMessageReceived(sendBattlefieldMessage);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (NotBoundException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\twhile (true) {\n\t\t\t\t\n\t\t\t\t// allocate buffer\n\t\t\t\tbyte[] buffer = new byte[RX_BUFFER_SIZE];\n\t\t\t\t\n\t\t\t\t// initialize new datagram\n\t\t\t\tDatagramPacket datagram = new DatagramPacket(buffer, buffer.length);\n\t\t\t\t\n\t\t\t\t// receive datagram\n\t\t\t\ttry {\n\t\t\t\t\tsocket.receive(datagram);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tdatagramReceived(datagram);\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile (keepListening) {\n\t\t\tbyte[] buffer = new byte[SocketMessengerConstants.MESSAGE_SIZE];\n\t\t\tDatagramPacket packet = new DatagramPacket(buffer, SocketMessengerConstants.MESSAGE_SIZE);\n\t\t\ttry {\n\t\t\t\tmulticastSocket.receive(packet);\n\t\t\t} catch (InterruptedIOException e) {\n\t\t\t\tcontinue;\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString message = new String(packet.getData());\n\t\t\tSystem.out.println(\"Receiving a message: \" + message);\n\t\t\tmessage = message.trim();\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(message, SocketMessengerConstants.MESSAGE_SEPARATOR);\n\t\t\tif (tokenizer.countTokens() == 2)\n\t\t\t\tmessageListener.messageReceived(tokenizer.nextToken(), tokenizer.nextToken());\n\t\t}\n\t\ttry {\n\t\t\tmulticastSocket.leaveGroup(multicastGroup);\n\t\t\tmulticastSocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t//让改线程可以接受到客户端的信息;\n\t\t\ttry {\n//\t\t\t\tThread.sleep(2000);\n\t\t\tObjectInputStream ois=new ObjectInputStream(s.getInputStream());\n\t\t\tMessage message=(Message) ois.readObject();\n\t\t\tSystem.out.println(message.getSender()+\"给\"+message.getGetter()+\"说\"+message.getCon());\n\t\t\t//这里进行转发;\n\t\t\t/*\n\t\t\t * 转发时出现错误;???????????已解决;\n\t\t\t */\n\t\t\t//取得接收人的通讯线程;\n\t\t\tServerConnectClient scClient=ManageQQClientTh.getClientThread(message.getGetter());\n\t\t\tObjectOutputStream oos=new ObjectOutputStream(scClient.s.getOutputStream());\n\t\t\t\toos.writeObject(message);\n\t\t\n\t\t\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"public void run() {\n String nextLine;\n try {\n while ((nextLine = in.readLine()) != null && !stopped) {\n game.HandleIncommingMesg(this, nextLine);\n }\n System.out.println(\"Connection with: \" + playername + \" is lost!\");\n shutdown();\n } catch (IOException e) {\n shutdown();\n }\n }",
"private void eventLoop() {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n try {\n System.out.println(\">\");\n // Before readLine(), clear the in stream.\n System.out.flush();\n String line = in.readLine().toLowerCase();\n if (line.startsWith(\"quit\") || line.startsWith(\"exit\")) {\n break;\n }\n line = \"[\" + \"Node1\" + \"]\" + line;\n // destination address is null, send msg to everyone in the cluster.\n Message msg = new ObjectMessage(null, line);\n channel.send(msg);\n } catch (Exception e) {\n // TODO: handle exception.\n }\n }\n\n }",
"public void run() {\n \n while (true) {\n // Create a new string message parser to parse the list of messages.\n // This is a huge performance hit -- need to optimize by pre-create\n // parser when one is needed....\n if (myParser == null) {\n myParser = new StringMsgParser();\n myParser.setParseExceptionListener(this);\n }\n // messages that we write out to him.\n DatagramPacket packet;\n \n if (stack.threadPoolSize != -1) {\n synchronized (\n ((UDPMessageProcessor) messageProcessor).messageQueue) {\n while (((UDPMessageProcessor) messageProcessor)\n .messageQueue\n .isEmpty()) {\n // Check to see if we need to exit.\n if (!((UDPMessageProcessor) messageProcessor)\n .isRunning)\n return;\n try {\n ((UDPMessageProcessor) messageProcessor).messageQueue.wait();\n } catch (InterruptedException ex) {\n if (!((UDPMessageProcessor) messageProcessor)\n .isRunning)\n return;\n }\n }\n packet =\n (DatagramPacket)\n ((UDPMessageProcessor) messageProcessor)\n .messageQueue\n .removeFirst();\n \n }\n this.incomingPacket = packet;\n } else {\n packet = this.incomingPacket;\n }\n \n this.peerAddress = packet.getAddress();\n // PC 2.0 Added setting the port value\n this.peerPort = packet.getPort();\n int packetLength = packet.getLength();\n // Read bytes and put it in a eueue.\n byte[] bytes = packet.getData();\n byte[] msgBytes = new byte[packetLength];\n System.arraycopy(bytes, 0, msgBytes, 0, packetLength);\n \n // Do debug logging.\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"UDPMessageChannel: peerAddress = \"\n + peerAddress.getHostAddress()\n + \"/\"\n + packet.getPort());\n this.stack.logWriter.logMessage(\"Length = \" + packetLength);\n String msgString = new String(msgBytes, 0, packetLength);\n this.stack.logWriter.logMessage(msgString);\n }\n \n // PC 2.0 add logging statement for all SIP messages received on the s\n\t\t\t// socket\n int seq = stack.logWriter.getSequencer();\n this.stack.logWriter.logInfo(\">>>>> RX:\\tLength = \" + packetLength \n \t\t+ \"\\nReceived on IP|Port=\" + myAddress + \"|\" + myPort \n \t\t+ \"\\nFrom IP|Port=\" + peerAddress + \"|\" + peerPort\n \t\t+ \"\\nSequencer=\" + seq\n \t\t+ \"\\nTransport=\" + peerProtocol\n \t\t+ \"\\n[\" + new String(msgBytes, 0, packetLength) + \"]\");\n \n// SIPMessage[] sipMessages = null;\n SIPMessage sipMessage = null;\n try {\n \n this.receptionTime = System.currentTimeMillis();\n sipMessage = myParser.parseSIPMessage(msgBytes);\n myParser = null;\n if (sipMessage != null)\n \tsipMessage.setSequencer(seq);\n } catch (ParseException ex) {\n myParser = null; // let go of the parser reference.\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Rejecting message ! \" + new String(msgBytes));\n this.stack.logWriter.logMessage(\n \"error message \" + ex.getMessage());\n this.stack.logWriter.logException(ex);\n }\n stack.logBadMessage(new String(msgBytes));\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n // No parse exception but null message - reject it and\n // march on (or return). Bug report from Peter Parnes.\n // exit this message processor if the message did not parse.\n \n if (sipMessage == null) {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Rejecting message ! \" + new String(msgBytes));\n this.stack.logWriter.logMessage(\"Null message parsed.\");\n }\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n ViaList viaList = sipMessage.getViaHeaders();\n // Check for the required headers.\n if (sipMessage.getFrom() == null\n || //sipMessage.getFrom().getTag() == null ||\n sipMessage.getTo()\n == null\n || sipMessage.getCallId() == null\n || sipMessage.getCSeq() == null\n || sipMessage.getViaHeaders() == null) {\n String badmsg = new String(msgBytes);\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\"bad message \" + badmsg);\n this.stack.logWriter.logMessage(\n \">>> Dropped Bad Msg \"\n + \"From = \"\n + sipMessage.getFrom()\n + \"To = \"\n + sipMessage.getTo()\n + \"CallId = \"\n + sipMessage.getCallId()\n + \"CSeq = \"\n + sipMessage.getCSeq()\n + \"Via = \"\n + sipMessage.getViaHeaders());\n }\n \n stack.logBadMessage(badmsg);\n if (stack.threadPoolSize == -1)\n return;\n else\n continue;\n }\n // For a request first via header tells where the message\n // is coming from.\n // For response, just get the port from the packet.\n if (sipMessage instanceof SIPRequest) {\n Via v = (Via) viaList.first();\n// PC 2.0 don't replace the peerPort with the via header information\n// if (v.hasPort()) {\n// if (sipMessage instanceof SIPRequest) {\n// this.peerPort = v.getPort();\n// }\n// } else\n// this.peerPort = SIPMessageStack.DEFAULT_PORT;\n this.peerProtocol = v.getTransport();\n\n this.peerPacketSourceAddress = packet.getAddress();\n this.peerPacketSourcePort = packet.getPort();\n// PC 2.0 try {\n this.peerAddress = packet.getAddress();\n // Check to see if the received parameter matches\n // the peer address and tag it appropriately.\n // Bug fix by [email protected]\n// PC 2.0 Remove the automatic setting of the rport parameter since the platform will\n// be validating what was received from the device.\n// if (!v\n// .getSentBy()\n// .getInetAddress()\n// .equals(this.peerAddress)) {\n// v.setParameter(\n// Via.RECEIVED,\n// this.peerAddress.getHostName());\n\t\t\t//@@@hagai\n\n// v.setParameter(\n// Via.RPORT,\n// new Integer(this.peerPacketSourcePort).toString());\n//\t\t }\n// \n// // this.peerAddress = v.getSentBy().getInetAddress();\n// } catch (java.net.UnknownHostException ex) {\n// // Could not resolve the sender address.\n//// PC 2.0 change if statement for new log processing\n// \t//if (stack.serverLog.needsLogging(ServerLog.TRACE_MESSAGES)) {\n// \tif (stack.serverLog.needsLogging()) {\n// \t\tthis.stack.serverLog.logMessage(\n// sipMessage,\n// this.getViaHost() + \":\" + this.getViaPort(),\n// stack.getHostAddress()\n// + \":\"\n// + stack.getPort(this.getTransport()),\n// \"Dropped -- \"\n// + \"Could not resolve VIA header address!\",\n// false);\n// }\n// if (LogWriter.needsLogging) {\n// this.stack.logWriter.logMessage(\n// \"Rejecting message -- \"\n// + \"could not resolve Via Address\");\n// }\n// \n// continue;\n// } catch (java.text.ParseException ex1) {\n// InternalErrorHandler.handleException(ex1);\n// }\n \n }\n \n if (sipMessage instanceof SIPRequest) {\n SIPRequest sipRequest = (SIPRequest) sipMessage;\n \n // This is a request - process it.\n ServerRequestInterface sipServerRequest =\n stack.newSIPServerRequest(sipRequest, this);\n // Drop it if there is no request returned\n if (sipServerRequest == null) {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"Null request interface returned\");\n }\n continue;\n }\n if (LogWriter.needsLogging)\n this.stack.logWriter.logMessage(\n \"About to process \"\n + sipRequest.getFirstLine()\n + \"/\"\n + sipServerRequest);\n sipServerRequest.processRequest(sipRequest, this);\n if (LogWriter.needsLogging)\n this.stack.logWriter.logMessage(\n \"Done processing \"\n + sipRequest.getFirstLine()\n + \"/\"\n + sipServerRequest);\n \n // So far so good -- we will commit this message if\n // all processing is OK.\n// PC 2.0 change if statement for new log processing\n //if (stack.serverLog.needsLogging(ServerLog.TRACE_MESSAGES)) {\n if (stack.serverLog.needsLogging()) {\n \tif (sipServerRequest.getProcessingInfo() == null) {\n this.stack.serverLog.logMessage(\n sipMessage,\n sipRequest.getViaHost()\n + \":\"\n + sipRequest.getViaPort(),\n stack.getHostAddress()\n + \":\"\n + this.myPort,\n false,\n new Long(receptionTime).toString());\n } else {\n this.stack.serverLog.logMessage(\n sipMessage,\n sipRequest.getViaHost()\n + \":\"\n + sipRequest.getViaPort(),\n stack.getHostAddress()\n + \":\"\n + this.myPort, //stack.getPort(this.getTransport()),\n sipServerRequest.getProcessingInfo(),\n false,\n new Long(receptionTime).toString());\n }\n }\n } else {\n // Handle a SIP Reply message.\n SIPResponse sipResponse = (SIPResponse) sipMessage;\n ServerResponseInterface sipServerResponse =\n stack.newSIPServerResponse(sipResponse, this);\n if (sipServerResponse != null) {\n sipServerResponse.processResponse(sipResponse, this);\n // Normal processing of message.\n } else {\n if (LogWriter.needsLogging) {\n this.stack.logWriter.logMessage(\n \"null sipServerResponse!\");\n }\n }\n \n }\n //((UDPMessageProcessor) messageProcessor).useCount--;\n if (stack.threadPoolSize == -1) {\n return;\n }\n }\n }",
"@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile (socket != null && !socket.isClosed()) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tbInputStream.read(rbyte);\r\n\t\t\t\t\t\tMessage msg = new Message();\r\n\t\t\t\t\t\tmsg.what = 1;\r\n\t\t\t\t\t\tmsg.obj = rbyte;\r\n\t\t\t\t\t\treHandler.sendMessage(msg);\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t\twhile(connected) {\n\t\t\tif(GameActivity.getInstance() == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t// Read first 4 bytes (int, messageType) from stream\n\t\t\t\t//in.read(bytes, 0, 4);\n\t\t\t\tint messageType = in.readInt();\n\t\t\t\t//intByteBuffer.clear(); // Clear buffer so we can read from it again\n\t\t\t\t\n\t\t\t\t// Receive appropriate message based on received messageType\n\t\t\t if(messageType == Message.CHARACTERS.value()) {\n\t\t\t\t\treceiveCharacters();\n\t\t\t\t} else if(messageType == Message.ID.value()) {\n\t\t\t\t\treceiveId();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Received message with unknown id: \" + messageType);\n\t\t\t\t}\n\t\t\t \n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Connection to server lost\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tclose();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\twhile (true) {\n\n\t\t\t\ttry {\n\t\t\t\t\tfor (Message message : pending) {\n\t\t\t\t\t\tif (canLCBdeliver(message)) {\n\t\t\t\t\t\t\tfifoBC.canDeliver(message);\n\t\t\t\t\t\t\tp.Pendinglock.lock();\n\t\t\t\t\t\t\tpending.remove(message);\n\t\t\t\t\t\t\tp.Pendinglock.unlock();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tSystem.out.println(\"Failed to sleep in deliver thread.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\ttry {\r\n\t\t\t\twhile (mClient.mSelector.select() > 0) {\r\n\t\t\t\t\tif (DEBUG) Log.e(TAG, \" In while 135\");\r\n\t\t\t\t\tfor (SelectionKey next : mClient.mSelector.selectedKeys()) {\r\n\t\t\t\t\t\tif (next.isReadable()) {\r\n\t\t\t\t\t\t\tSocketChannel socketChannel = (SocketChannel) next.channel();\r\n\t\t\t\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(500);\r\n\t\t\t\t\t\t\tbuffer.clear();\r\n\t\t\t\t\t\t\tint length = socketChannel.read(buffer);\r\n//\t\t\t\t\t\t\tif (DEBUG) Log.e(TAG, Arrays.toString(buffer.array()));\r\n\t\t\t\t\t\t\tif (length == -1) continue;\r\n\t\t\t\t\t\t\tbuffer.flip();\r\n\t\t\t\t\t\t\tif (buffer.get(0) == MessageBean.MESSAGE_TYPE_TEXT) {\r\n\t\t\t\t\t\t\t\tMessageBean messageBean = MessageBean.createMessage(buffer.array());\r\n\t\t\t\t\t\t\t\t// send message to activity\r\n\t\t\t\t\t\t\t\tIntent intent = new Intent(ReceiveReceiver.ACTION);\r\n\t\t\t\t\t\t\t\tintent.putExtra(\"data\", messageBean.getByteArray());\r\n\t\t\t\t\t\t\t\tsendBroadcast(intent);\r\n\t\t\t\t\t\t\t\tnext.interestOps(SelectionKey.OP_READ);\r\n\t\t\t\t\t\t\t\tif (DEBUG) \r\n\t\t\t\t\t\t\t\t\tLog.e(TAG, \"message : \" + messageBean.getSendId() + \" \" + \r\n\t\t\t\t\t\t\t\t\t\t\tmessageBean.getReceiveId() + \" \" + messageBean.getSendMessageLength() + \" \" +\r\n\t\t\t\t\t\t\t\t\t\t\tmessageBean.getMessageText());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tmClient.mSelector.selectedKeys().remove(next);\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} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (!client.isClosed()) {\n\t\t\t\t\tSystem.out.println(\"is socket connected\" + client.isConnected());\n\t\t\t\t\tInputStreamReader reader;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treader = new InputStreamReader(client.getInputStream());\n\t\t\t\t\t\tBufferedReader buf = new BufferedReader(reader);\n\t\t\t\t\t\tString msg = buf.readLine();\n\t\t\t\t\t\tif (msg != null) {\n\t\t\t\t\t\t\tSystem.out.println(\"server:\" + msg.toString());\n\t\t\t\t\t\t\tString ContextMsg = \"来自被连接的回复:\" + client.getInetAddress() + \"\\n\" + msg.toString();\n\t\t\t\t\t\t\ttextList.add(ContextMsg);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}",
"public void run() {\n\t\twhile (true) {\n\t\t\tif (queue.size() > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tconsume();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tqueueEfficency.set(0);\n\t\t\t\temptyQueueTime = 0;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n String message = \"Someone: \";\n while(true) {\n try {\n message = in.readLine();\n if (message == null) {\n server.sendToAll(\"Someone has disconnected.\");\n break;\n }\n server.sendToAll(message);\n } catch (IOException e) {\n break;\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n }",
"public void run() {\n\t\tTestTool.log(mPort + \"[AutoSender] waiting...\");\n\t\twhile (mUserList.size() < 2) {\n\t\t\ttry {\n\t\t\t\tmClientEvent.trigger(EE.client_command_getListUser, null);\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tif (mUserList.size() >= 2) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) { e.printStackTrace(); }\n\t\t}\n\t\tTestTool.log(mPort + \"[AutoSender] ...okay\");\n\n\t\t\n\t\tint count = 0;\n\t\twhile (mIsRunning && count++ < 5) {\n\t\t\tJSONObject msg = autoCreateMessage(count);\n\t\t\tTestTool.log(mPort + \"[AutoSender: run] sending message:\", msg);\n\t\t\tmMessengerUser.addMessage(msg);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep((int) Math.random() * 1000);\n\t\t\t} catch (InterruptedException e) { e.printStackTrace(); }\n\t\t}\n\t}",
"void recive() throws IOException, TimeoutException, InterruptedException, Exception\n {\n ConnectionFactory connfac = new ConnectionFactory();\n connfac.setHost(hostName);\n connfac.setUsername(\"student\");\n connfac.setPassword(\"cph\");\n \n //make the connection\n Connection conn = connfac.newConnection();\n //make the channel for messaging\n Channel chan = conn.createChannel();\n \n //Declare a queue\n chan.exchangeDeclare(ExchangeName.OUTPUT_LOAN_REQUEST, \"fanout\");\n String queueName = chan.queueDeclare().getQueue();\n chan.queueBind(queueName,ExchangeName.OUTPUT_LOAN_REQUEST,\"\");\n \n\t System.out.println(\" [*] Waiting for messages on \"+ ExchangeName.OUTPUT_LOAN_REQUEST +\". To exit press CTRL+C\");\n \n\t QueueingConsumer consumer = new QueueingConsumer(chan);\n\t chan.basicConsume(queueName, true, consumer);\n\t \n //start polling messages\n\t while (true) {\n\t QueueingConsumer.Delivery delivery = consumer.nextDelivery();\n\t String m = new String(delivery.getBody());\n\t System.out.println(\" [x] Received '\" + m + \"'\");\n Gson gson = new GsonBuilder().create();\n Message fm = gson.fromJson(m, Message.class);\n int creditScore = creditScore(fm.getSsn());\n fm.setCreditScore(creditScore);\n fm.setSsn(fm.getSsn().replace(\"-\", \"\"));\n send(fm);\n \n \n\t }\n \n \n }",
"private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\t\tqueue.get();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void listen() {\n\t\tString message;\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tmessage = input.readLine();\n\t\t\t\tif (message == null) continue;\n\n\t\t\t\tif(message.equals(\"disconnect\")){\n\t\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\t\tt.start();\n\t\t\t\t\treturn;\n\t\t\t\t} else if(message.contains(\"PUSH\")) {\n\t\t\t\t\tparseMessage(message);\n\t\t\t\t} else if (message.equals(\"pong\")){\n\t\t\t\t\tponged = true;\n\t\t\t\t} else if(!validResponse) {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tresponse = message;\n\t\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\t\tnotifyAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tresponse = null;\n\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\tnotifyAll();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run(){\n while(true){\n ArrayList<Thread> threads = new ArrayList<Thread>();\n \n //construct the string\n String message = String.format(\"hb|%d|%d\", serverPort, sequence);\n\n //have a thread to send heart beat\n for(ServerInfo peer : serverStatus.keySet()){\n //pass it to the client runnable\n Thread thread = new Thread(new SenderRunnable(peer, message));\n threads.add(thread);\n thread.start();\n }\n\n //wait for the completion\n for(Thread thread : threads){\n try{\n thread.join();\n }catch(Exception e){}\n \n \n }\n\n //increment the sequence by 1\n sequence += 1;\n\n //sleep for 2 secs\n try{\n Thread.sleep(2000);\n }catch(InterruptedException e){\n //System.err.println(e);\n }\n\n }\n }",
"public void run()\r\n\t\t{\n\t\t\ttheVMKClient.sendMessageToServer(m);\r\n\t\t}",
"@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// generate Client\r\n\t\t\tClient client = new Client(publicKeysOfMixes);\r\n\t\t\tclient.connect();\r\n\t\t\tInputStream cascadeInputStream = client.getInputStream();\r\n\t\t\tOutputStream cascadeOutputStream = client.getOutputStream();\r\n\t\t\t\r\n\t\t\t// \"Send K bytes of data with a delay of L ms between sending, M \r\n\t\t\t// times.\"\r\n\t\t\t\r\n\t\t\tint m = getVariable(\"M\");\r\n\t\t\tfor (int i=1; i<=m; i++) {\r\n\t\t\t\t\r\n\t\t\t\t// generate random message\r\n\t\t\t\tint size = getVariable(\"K\");\r\n\t\t\t\tbyte[] message = generateRandomMessage(size);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Starting to write \" +i +\". message (\"\r\n\t\t\t\t\t\t\t\t+size +\" bytes): \\n\" +new String(message)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// send message\r\n\t\t\t\tcascadeOutputStream.write(message);\r\n\t\t\t\tcascadeOutputStream.flush();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tint messageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(message, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addSentMessage(messageID);\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// receive reply\r\n\t\t\t\tbyte[] reply = new byte[size];\r\n\t\t\t\tint sizeOfReply = cascadeInputStream.read(reply);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Received \" +i +\". reply (\"\r\n\t\t\t\t\t\t\t\t+sizeOfReply +\" bytes): \\n\" +new String(reply)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tmessageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(reply, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addReceivedMessage(messageID);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// add delay\r\n\t\t\t\tif (i != m) { // not last round\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tThread.sleep((long)ClientSimulator.getVariable(\"L\"));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// disconnect\r\n\t\t\t\r\n\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t+\") Disconnecting since all data is written!\"\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\tclient.disconnect();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.warning(\t\"(ClientSimulator) Message could not be sent! \"\r\n\t\t\t\t\t\t\t+e.getMessage()\r\n\t\t\t\t\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void run() {\n\t\twhile (true) {\n\t\t\tOverlayNodeSendsData relayMsg;\n\t\t\tsynchronized (relayQueue) {\n\t\t\t\trelayMsg = relayQueue.poll();\n\t\t\t}\n\t\t\tif (relayMsg != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbyte[] bytesToSend = relayMsg.getBytes();\n\t\t\t\t\t// send the bytes through the appropriate TCPSender\n\t\t\t\t\tnodesToSendTo.getConnections()\n\t\t\t\t\t\t\t.get(relayPayloadDestination(relayMsg)).getSender()\n\t\t\t\t\t\t\t.sendData(bytesToSend);\n\t\t\t\t\t// Increment the relay counter\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tthis.sendMessage(Response.WELCOME_MESSAGE);\n\t\t\t// Get new command from client\n\t\t\twhile (true) {\n\t\t\t\tthis.executeCommand();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// If a exception is catch we just close the client connection\n\t\t\ttry {\n\t\t\t\tthis.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\t/// just throw the exception of the close\n\t\t\t\tthrow new RuntimeException(e1);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void run() {\n while (isRun) {\n try {\n Thread.sleep(1000); // sleep 1000ms\n Message message = Message.obtain();\n message.what = 1;\n handler.sendMessage(message);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"public void run()\r\n {\r\n System.out.println(\"I am here\");\r\n while (_keepGoing && datagramSocket!=null)\r\n {\r\n DatagramPacket packet = null;\r\n try { packet = getMessage(); }\r\n catch (Exception e) { /* ignore */ }\r\n if (packet == null) continue;\r\n\r\n String message = new String( packet.getData(), 0, packet.getLength(), UTF_16BE);\r\n System.out.println(\"Message :\"+message);\r\n InetAddress senderAddress = packet.getAddress();\r\n int senderPort = packet.getPort();\r\n\r\n if (_processor!=null)\r\n _processor.process(message, senderAddress, senderPort);\r\n }\r\n }",
"@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}",
"public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n try {\n while (true) {\n Socket socket = listener.accept();\n try {\n \t\n\t\t\t\t\tDataInputStream in = new DataInputStream(\n\t\t\t\t\t\t\tsocket.getInputStream());\n\t\t\t\t\tBufferedReader d = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(in));\n\n\t\t\t\t\tString msg = d.readLine();\n\t\t\t\t\t\n third.notifyAllClients(msg);\n \n d.close();\n in.close();\n } finally {\n socket.close();\n }\n }\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n finally {\n try {\n\t\t\t\tlistener.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n\t}",
"private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }",
"public void run() {\r\n\t\tSystem.out.println(\"Welcome \" + this.name);\r\n\r\n\t\ttry {\r\n\t\t\tPrintWriter out_stream = new PrintWriter(this.client.getOutputStream());\r\n\t\t\tInputStream in_stream = this.client.getInputStream();\r\n\t\t\tScanner in = new Scanner(in_stream);\r\n\r\n\t\t\twhile(!this.client.isClosed()) {\r\n\t\t\t\tif (in_stream.available() > 0 && in.hasNextLine()) {\r\n\t\t\t\t\tif(board.getpt().equals(\"B\")){\r\n\t\t\t\t\t\t//board.incBlackScore();\r\n\t\t\t\t\t\tboard.resetpt();\r\n\t\t\t\t\t} else if (board.getpt().equals(\"W\")){\r\n\t\t\t\t\t\t//board.incWhiteScore();\r\n\t\t\t\t\t\tboard.resetpt();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tString line = in.nextLine();\r\n\t\t\t\t\t\tint index = line.indexOf(\" \");\r\n\t\t\t\t\t\tint x = Integer.parseInt(line.substring(0, index));\r\n\t\t\t\t\t\tint y = Integer.parseInt(line.substring(index + 1));\r\n\t\t\t\t\t\tboard.newmove(x , y);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (!this.messages.isEmpty()) {\r\n\t\t\t\t\tString next = null;\r\n\t\t\t\t\tsynchronized(this.messages) {\r\n\t\t\t\t\t\tnext = (String) this.messages.pop();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tout_stream.println(next);\r\n\t\t\t\t\tout_stream.flush();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException var8) {\r\n\t\t\tvar8.printStackTrace();\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void sendMessage() {\n\n\t\tExecutorService executorService = Executors.newFixedThreadPool(1);\n\t\tCountDownLatch endSignal = new CountDownLatch(100);\n\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tfinal int num = i;\n\t\t\t// Runnable run;\n\t\t\texecutorService.execute(() -> {\n\t\t\t\ttry {\n\t\t\t\t\tmessageSender = new MessageSender();\n\t\t\t\t\tmessageSender.sendMessage(\"bitchin' badass\" + num);\n\t\t\t\t\tendSignal.countDown();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"exception\", e);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\ttry {\n\t\t\tendSignal.await();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmessageSender.closeAll();\n\n\t\t}\n\t\texecutorService.shutdown();\n\n\n\t\tval consumeFlag = messageConsumer.consume(\"trans_logs_record\");\n\n\t\ttry {\n\t\t\tThread.sleep(5000l);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tAssert.assertEquals(true, consumeFlag);\n\n\t}",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}",
"@Override\n public void run() {\n while (LANSyncServer.IS_CLIENT_ALIVE) {\n try {\n LANSyncServer.smsserver.sendMessage(HandleProcess.REFRESH_REQUEST_MESSAGE);\n Thread.sleep(6000);\n } catch (InterruptedException ex) {\n Logger.getLogger(SyncRequestServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"@Override\r\n public void run() {\r\n byte[] buffer = new byte[1024];\r\n int bytes;\r\n int times = 0;\r\n\r\n while (!mStopped) {\r\n try {\r\n if (times == 0) {\r\n try {\r\n \t// Sometimes lag occurs. Therefore, from time to time\r\n \t// we just ignore a large chunk of data from input stream\r\n \t// in order to synchronize the communication.\r\n mInputStream.skip(1024000);\r\n } catch (Exception e) {}\r\n times = LAG_CUT_TIMEOUT;\r\n }\r\n times--;\r\n\r\n // Read from socket and send to the handler\r\n bytes = mInputStream.read(buffer);\r\n mReceiveHandler.receiveData(buffer, bytes);\r\n\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error receiving from the socket: \" + ioe.getMessage());\r\n mPeer.communicationErrorOccured();\r\n break;\r\n }\r\n }\r\n }",
"public final void run() {\n while (isrunning) {\n try {\n LDAPMessage response = null;\n\n while ((isrunning)\n && (!searchqueue.isResponseReceived(messageid))) {\n try {\n sleep(sleepTime);\n } catch (InterruptedException e) {\n ///CLOVER:OFF\n // ignore exception, just log it\n if (Debug.LDAP_DEBUG) {\n Debug.trace(\n Debug.EventsCalls,\n \"Interrupt Exception\"\n + e.getMessage());\n }\n ///CLOVER:ON\n }\n }\n\n if (isrunning) {\n response = searchqueue.getResponse(messageid);\n }\n\n if (response != null) {\n processmessage(response);\n }\n } catch (LDAPException e) {\n ///CLOVER:OFF\n LDAPExceptionEvent exceptionevent =\n new LDAPExceptionEvent(eventsource, e, null);\n eventlistener.ldapExceptionNotification(\n exceptionevent);\n ///CLOVER:ON\n }\n }\n }",
"public void run() {\n\t\t\tPrintWriter out = null;\n\t\t\ttry {\n\n\t\t\t\t/*\n\t\t\t\t * byte[] buf = new byte[2048]; DatagramPacket packet = new\n\t\t\t\t * DatagramPacket(buf, buf.length);\n\t\t\t\t * System.out.print(\"Server: Receiving\\n\");\n\t\t\t\t * incomingUDP.receive(packet);\n\t\t\t\t * \n\t\t\t\t * System.out.print(\"Receiving successful packet with :\" +\n\t\t\t\t * packet.getLength() + \"kb\");\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tout = new PrintWriter(new OutputStreamWriter(\n\t\t\t\t\t\tincoming.getOutputStream()));\n\n\t\t\t\t// inform the server of this new client\n\t\t\t\tServerNMS.this.addClient(out);\n\n\t\t\t\tout.print(\"Welcome to AndyChat! \");\n\t\t\t\tout.println(\"Enter BYE to exit.\");\n\t\t\t\tout.flush();\n\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tincoming.getInputStream()));\n\t\t\t\tfor (;;) {\n\t\t\t\t\tString msg = in.readLine();\n\t\t\t\t\tif (msg == null) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msg.trim().equals(\"BYE\"))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tSystem.out.println(\"Received: \" + msg\n\t\t\t\t\t\t\t\t+ \"With size is: \" + msg.getBytes().length\n\t\t\t\t\t\t\t\t+ \"bytes\");\n\t\t\t\t\t\t// broadcast the receive message\n\t\t\t\t\t\tServerNMS.this.broadcast(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tincoming.close();\n\n\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void run() {\n\t\n\t\tboolean finMsg = false;\n\n \n \n\t\ttry {\n\t\t\t\n\t\t DataInputStream is = new DataInputStream(socket.getInputStream());\n DataOutputStream os = new DataOutputStream(socket.getOutputStream()); \n\t\t\t\n\t\t\twhile (!finMsg) {\n\t\t\t\t\n\t\t\tString[] client_Msg = is.readUTF().split(\" \");\n\t\t\t\t\n\t\t\tswitch (client_Msg[1]) {\n\t\t\t\n\t\t\t\tcase \"REG\":\n\t\t\t\t\thandleRegister(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"RDY\":\n\t\t\t\t\thandleReady(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"MOV\":\n\t\t\t\t\thandleMove(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\tcase \"FIN\":\n\t\t\t\t\tsocket.close();\n\t\t\t\t\tfinMsg=true;\n\t\t\t\t\tbreak;\n\t\t\t \n\t\t\t\n\t\t\t\t}\n\t\t\n\t\t \n\t\t\t}\n\t\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Override\n public void run() {\n this.running.set(true);\n Socket socket = null;\n // if flag is set to listen, keep listening for client connection request and keep accepting connections\n while (this.running.get()) {\n try {\n if (connectionCount.get() < Constants.MAX_CLIENT_CONNECTIONS) {\n socket = serverSocket.accept();\n socket.setSoTimeout(30000); // timeout set to 30,000 ms\n socket.setKeepAlive(true);\n log.info(\"Connection Accepted: Local Add {} Remote Add {}\", socket.getLocalAddress(),\n socket.getRemoteSocketAddress());\n // add the connected socket to the list\n socketList.add(socket);\n // Pass the socket to the RequestHandler thread for processing\n IncomingMessageHandler messageHandler = new IncomingMessageHandler(socket, logWriter, fileWriterQueue,\n periodicReportingService, orderShutdown);\n messageHandler.start();\n connectionCount.getAndIncrement();// increment connection count\n log.debug(\"Current number of connections {}\", connectionCount.get());\n } else {\n if(maxConnWarnCount < 4) {\n log.warn(\"Reached maximum connection limit {}; Stopping to accept more client connections\"\n , connectionCount.get());\n maxConnWarnCount++;\n }\n }\n } catch (IOException e) {\n log.error(\"Error in accepting connections\", e);\n if (e instanceof SocketException) {\n log.error(\"SocketException for remote connection\");\n }\n }\n }\n }",
"public void run() {\r\n\t\ttry {\r\n\t\t\toutput = clientSocket.getOutputStream();\r\n\t\t\tinput = clientSocket.getInputStream();\r\n\t\t// send initial message on connect\r\n\t\t\tsendMessage(new common.messages.KVAdminMessage(\"connect\", \"CONNECT_SUCCESS\", \"\", \"\")); \r\n\r\n\t\t\r\n\t\t\twhile(isOpen) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Receive the KV Message from Client and check if it is valid\r\n\t\t\t\t\tcommon.messages.KVMessage latestMsg = receiveMessage();\r\n\t\t\t\t\tif (latestMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t// If it is valid Handle the message by calling the function in KVServer\r\n\t\t\t\t\t\tcommon.messages.KVMessage returnMsg = m_server.handleClientMessage(latestMsg);\r\n\t\t\t\t\t\tif (returnMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t\t// If returned KVMessage was valid send it back to the client\r\n\t\t\t\t\t\t\tif (returnMsg.getStatus().equals(\"SERVER_STOPPED\") || returnMsg.getStatus().equals(\"SERVER_WRITE_LOCK\") || returnMsg.getStatus().equals(\"SERVER_NOT_RESPONSIBLE\")){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was not processed by Server.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was Successfully Processed by Server!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// If returned KVMessage is not valid it will have all blank fields\r\n\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg + \" encountered a problem on Server side!\");\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if (latestMsg.getHeader().trim().equals(\"\")) {\r\n\t\t\t\t\t\t//echo empty messages\r\n\t\t\t\t\t\tsendMessage(latestMsg);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// If it is a bad message output error and echo it back to the client\r\n\t\t\t\t\t\tlogger.debug(\"Message from Client was not valid, sending errorous message back to client\");\r\n\t\t\t\t\t\tlogger.debug(latestMsg.getError());\r\n\t\t\t\t\t\tsendMessage(new common.messages.KVAdminMessage(latestMsg.getHeader(), \"FAILED\", latestMsg.getKey(), latestMsg.getValue()));\r\n\t\t\t\t\t}\r\n\t\t\t\t/* connection either terminated by the client or lost due to \r\n\t\t\t\t * network problems*/\t\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tlogger.error(\"Connection lost!\");\r\n\t\t\t\t\tisOpen = false;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tlogger.error(\"Error! Connection could not be established!\", ioe);\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tif (clientSocket != null) {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\toutput.close();\r\n\t\t\t\t\tclientSocket.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tlogger.error(\"Error! Unable to tear down connection!\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n while (queue.num < 100) {\n try {\n queue.producer();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }",
"public void run() {\n try {\n\n // Decorate the streams so we can send characters\n // and not just bytes. Ensure output is flushed\n // after every newline.\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n\n // Send a welcome message to the client.\n out.println(\"Hello, you are client #\" + clientNumber + \".\");\n out.println(\"Enter \\\"ADD,X,Y\\\",\\\"SUB,X,Y\\\",\\\"MUL,X,Y\\\",\\\"DIV,X,Y\\\", KILL, or \\\".\\\".\");\n out.println(\"KILL will terminate the server and all connections, \\\".\\\" will close this client only\");\n\n // Get messages from the client, line by line; return them\n // capitalized\n while (true) {\n String input = in.readLine();\n if (input == null || input.equals(\".\")){\n break;\n }\n this.queue.add(input, out);\n if(input.equalsIgnoreCase(\"KILL\"))\n {\n \tbreak;\n }\n }\n } catch (IOException e) {\n log(\"Error handling client# \" + clientNumber + \": \" + e);\n } finally {\n try {\n socket.close();\n } catch (IOException e) {\n log(\"Couldn't close a socket, what's going on?\");\n }\n log(\"Connection with client# \" + clientNumber + \" closed\");\n }\n }",
"private void loop() throws InterruptedException\n\t{\n\t\tMessage message;\n\t\ttry\n\t\t{\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\t/* Checking a queue */\n\t\t\t\t\tmessage = controllerToViewQueue.take();\n\t\t\t\t\tif(message == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tswitch(message.getValveResponse())\n\t\t\t\t\t{\n\t\t\t\t\t\tcase REDRAW:\n\t\t\t\t\t\t\tredraw(message.getData());\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t\tcase CHANGE_NEXT: \n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setNext(message.getAdd());\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\n\t\t\t\t\t\tcase SCORES_UPDATE:\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(message.getAdd());\n\t\t\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(message.getAdd()));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase LEVEL_UPDATE:\n\t\t\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(message.getAdd()));\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(message.getLevel());\n\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase LOST:\n\t\t\t\t\t\t\tlost = true;\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(lost);\n\t\t\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase WIN:\n\t\t\t\t\t\t\twinLevel = true;\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setWinLevel(winLevel);\n\t\t\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase GET_NEWGAME:\n\t\t\t\t\t\t\tlost = true;\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(lost);\n\t\t\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tcase INFO_UPDATE:\n\t\t\t\t\t\t\tlost = false;\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(lost);\n\t\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(message.getAdd());\n\t\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(message.getLevel());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(message.getAdd()));\n\t\t\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(message.getLevel()));\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\tdefault: \n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\tcatch (InterruptedException e) \n\t\t\t\t{\n\t\t\t\t}\n\t}",
"protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }",
"@Override\r\n\tpublic void run() {\n\t\tString msg;\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t\tBufferedReader inFromClient =\r\n\t\t\t\t new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t\t DataOutputStream outToClient = new DataOutputStream(socket.getOutputStream());\r\n\t\t\t\t \r\n\t\t\t\t String clientSentence;\r\n\t\t\t\t while((clientSentence = inFromClient.readLine())!=null)\r\n\t\t\t\t {\t\r\n\t\t\t\t\t System.out.println(\"Received: \" + clientSentence);\r\n\t\t\t\t\t System.out.println(\"port: \" + socket.getPort());\r\n\r\n\t\t\t\t\t String newsentence = clientSentence + '\\n';\r\n\t\t\t\t\t outToClient.writeBytes(\"Server: \"+newsentence);\r\n\t\t\t\t\t \r\n\t\t\t\r\n\t\t\t\t }\r\n//\t\t\t\t \r\n//\t\t\t\t\treader.close();\r\n//\t\t\t\t\tinFromClient.close();\r\n//\t\t\t\t\toutToClient.close();\r\n//\t\t\t\t\tsocket.close();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Client has Disconnected\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public void run ()\n {\n // Retrieve the iterator object of the linesInput\n Iterator <Line> linesIterator = linesInput.iterator () ;\n \n // Iterator through the iterator until all entries have been accounted for\n while ( linesIterator.hasNext () ) \n { \n // Grab the next entry in the iterator\n Line lineChange = linesIterator.next() ;\n \n /*\n * Make sure that the users know was is going on by printing that the producer is \n * doing something.\n */\n System.out.println ( \"Line Producer is Producing: \" + lineChange.content ) ;\n \n // Store the line into the messagingQueue\n Program.messagingQueue.putMessage ( lineChange ) ;\n \n // Once the iterator had finished with the entry remove it as it is no longer needed.\n linesIterator.remove () ;\n }\n \n // Add end of file message to the queue showing that we have finished producing the messages.\n Line endOfFileMessage = new Line ( \"END-OF-FILE\", -1 ) ;\n Program.messagingQueue.putMessage ( endOfFileMessage ) ;\n }"
]
| [
"0.76715094",
"0.7533908",
"0.7510625",
"0.7469392",
"0.72948736",
"0.7227836",
"0.71647054",
"0.71170384",
"0.7095254",
"0.7074084",
"0.7032383",
"0.70255494",
"0.7003932",
"0.6998472",
"0.6984006",
"0.69415057",
"0.6932269",
"0.6915395",
"0.69027793",
"0.6863408",
"0.6838435",
"0.68280226",
"0.68036985",
"0.679784",
"0.6743146",
"0.6739532",
"0.67097765",
"0.669821",
"0.6697928",
"0.66858983",
"0.6683399",
"0.6682855",
"0.6673208",
"0.666796",
"0.6657201",
"0.66443735",
"0.6612372",
"0.66034734",
"0.65990555",
"0.65876883",
"0.65738094",
"0.65564823",
"0.6552486",
"0.65045977",
"0.65022117",
"0.6501838",
"0.6501556",
"0.6499457",
"0.64920104",
"0.648205",
"0.64803624",
"0.6457589",
"0.6448452",
"0.64471287",
"0.64377993",
"0.64343673",
"0.6429655",
"0.6429296",
"0.6417793",
"0.6377527",
"0.6371255",
"0.6366154",
"0.63645136",
"0.6363666",
"0.6347649",
"0.6340711",
"0.63406944",
"0.63406944",
"0.63354546",
"0.63164985",
"0.631566",
"0.6310761",
"0.6308569",
"0.6298624",
"0.62955564",
"0.62917966",
"0.6268891",
"0.6265732",
"0.6255102",
"0.6253691",
"0.62498987",
"0.6247644",
"0.62462157",
"0.62404126",
"0.6237162",
"0.6233711",
"0.6233661",
"0.62221396",
"0.6218494",
"0.6218128",
"0.6217683",
"0.6214918",
"0.62128407",
"0.6208925",
"0.61848366",
"0.6178795",
"0.61732507",
"0.6153517",
"0.6150711",
"0.6132147"
]
| 0.7424515 | 4 |
/ SETTERS AND GETTERS | private void setMessages(ArrayListLock messages) {
this.messages = messages;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract Set method_1559();",
"@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}",
"String setValue();",
"public void setdat()\n {\n }",
"public String setter() {\n\t\treturn prefix(\"set\");\n\t}",
"@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }",
"public void setAge(int age) { this.age = age; }",
"private void assignment() {\n\n\t\t\t}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"@Override\n public void get() {}",
"@Test\n\tpublic void testSet() {\n\t}",
"@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}",
"@Test\n public void testGetSets() {\n ref.setKey(\"test23\");\n assertEquals(\"test23\", ref.getKey());\n ref.setAuthor(\"test23\");\n assertEquals(\"test23\", ref.getAuthor());\n ref.setEditor(\"test23\");\n assertEquals(\"test23\", ref.getEditor());\n ref.setTitle(\"test23\");\n assertEquals(\"test23\", ref.getTitle());\n ref.setBooktitle(\"test23\");\n assertEquals(\"test23\", ref.getBooktitle());\n ref.setYear(\"1839\");\n assertEquals(\"1839\", ref.getYear());\n ref.setPublisher(\"Otava\");\n assertEquals(\"Otava\", ref.getPublisher());\n ref.setJournal(\"test23\");\n assertEquals(\"test23\", ref.getJournal());\n ref.setVolume(\"3\");\n assertEquals(\"3\", ref.getVolume());\n ref.setNumber(\"123\");\n assertEquals(\"123\", ref.getNumber());\n ref.setSeries(\"test23\");\n assertEquals(\"test23\", ref.getSeries());\n ref.setEdition(\"3rd\");\n assertEquals(\"3rd\", ref.getEdition());\n ref.setPages(\"12-35\");\n assertEquals(\"12-35\", ref.getPages());\n ref.setMonth(\"May\");\n assertEquals(\"May\", ref.getMonth());\n ref.setNote(\"test23\");\n assertEquals(\"test23\", ref.getNote());\n }",
"void set(T t);",
"private void setUserData(){\n }",
"public void setAge(int age);",
"private void setData() {\n\n }",
"@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}",
"public void set(String name, Object value) {\n }",
"public void get() {\n }",
"void setAge(int age);",
"public T set(T obj);",
"public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }",
"public abstract void set(M newValue);",
"public int getSet() {\n return set;\n }",
"private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }",
"public void set() {\r\n\t\tage = 19;\r\n\t\tname = \"ΎΛ·»\";\r\n\t\theight = 161;\r\n\t\tsetWeight(50);\r\n\t\tSystem.out.println(getWeight());\r\n\t}",
"@Test\n public void testSetAge() {\n System.out.println(\"Animal.setAge\");\n animal1.setAge(20);\n animal2.setAge(5);\n assertEquals(20, animal1.getAge());\n assertEquals(5, animal2.getAge());\n }",
"public void setProp(String key, String value){\t\t\n \t\t//Check which of property to set & set it accordingly\n \t\tif(key.equals(\"UMPD.latestReport\")){\n \t\t\tthis.setLatestReport(value);\n<<<<<<< HEAD\n\t\t} \n=======\n \t\t\treturn;\n \t\t} \n \t\tif (key.equals(\"UMPD.latestVideo\")) {\n \t\t\tthis.setLastestVideo(value);\n \t\t\treturn;\n \t\t}\n>>>>>>> 45a14c6cf04ac0844f8d8b43422597ae953e0c42\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return - a list of <code>FieldAndval</code> objects representing the set \n \t * properties\n \t */\n \tpublic ArrayList<FieldAndVal> getSetPropsList(){\n \t\tcreateSetPropsList();\n \t\treturn setPropsList;\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * \n \t */\n \tprivate void createSetPropsList(){\n \t\tif((this.latestReport).length()>0){\n \t\t\tsetPropsList.add(new FieldAndVal(\"UMPD.latestReport\", this.latestReport));\n \t\t}\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return lastestVideo - \n \t */\n \tpublic String getLastestVideo() {\n \t\treturn lastestVideo;\n \t}",
"public void setModified();",
"public void set(String s);",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"void setParameters() {\n\t\t\n\t}",
"public void setX(int x) { this.x=x; }",
"@Override\n\tpublic void set(T e) {\n\t\t\n\t}",
"public String getSetter() {\n return \"set\" + getCapName();\n }",
"@Test\n public void setterTest() {\n stack.setResource(10, ResourceType.SHIELDS);\n stack.setResource(20, ResourceType.SERVANTS);\n stack.setResource(30, ResourceType.COINS);\n stack.setResource(40, ResourceType.STONES);\n\n assertEquals(10, stack.getResource(ResourceType.SHIELDS));\n assertEquals(20, stack.getResource(ResourceType.SERVANTS));\n assertEquals(30, stack.getResource(ResourceType.COINS));\n assertEquals(40, stack.getResource(ResourceType.STONES));\n }",
"public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }",
"private SetProperty(Builder builder) {\n super(builder);\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"public void setName(String name){this.name=name;}",
"@Test\r\n\tpublic void test_setter_and_getter_title(){\r\n\t\ttestClassDefinition();\r\n\t\tBook c = new BookMock(\"Old Title\", 1);\r\n\t\tc.setTitle(\"New Title\");\r\n\t\tassertEquals(\"Changed title\", \"New Title\", c.getTitle());\r\n\t}",
"public void setNombre(String nombre) {this.nombre = nombre;}",
"@Override\npublic void setAttributes() {\n\t\n}",
"@Override\n protected void updateProperties() {\n }",
"public abstract void set(DataType x, DataType y, DataType z);",
"public void setX(int x);",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"void set(Model model);",
"public void setRes(){\r\n \r\n }",
"public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }",
"@Test @DisplayName(\"Injector - setting (direct)\")\n void injectorSetters() throws Exception {\n val injector = injector(inj -> {\n inj.set(\"text\", \"some text\");\n inj.set(\"label\", \"a label\");\n inj.set(\"attrs\", Map.of(\"alpha\", \"one\"));\n });\n\n val injected = injector.inject(new OtherObject());\n assertEquals(\"some text\", injected.getText());\n assertEquals(\"a label\", injected.label);\n assertEquals(Map.of(\"alpha\", \"one\"), injected.getAttrs());\n }",
"void setValue(Object value);",
"@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}",
"public abstract void setValue(T value);",
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}",
"@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(ShortestPathOutput.class, configuration);\n\t}",
"public void setPrice(double price){this.price=price;}",
"public void setValue(Object value) { this.value = value; }",
"boolean getSet();",
"public void setItems(){\n }",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }",
"public void set(int i);",
"public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}",
"private void set(int x, int i) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}",
"@Test\n\tpublic void testGettersAndSetters() {\n\t\tnew BeanTester().testBean(LeastCommonNodeInput.class, configuration);\n\n\t}",
"@Test\n public void setAndGetTest() {\n GameEntity t2 = new GameEntity(new Rectangle(10.0, 10.0));\n\n //Set and getting temp node\n t2.getView().setTranslateX(5.0);\n t2.getView().setTranslateY(5.0);\n Circle temp = new Circle(4);\n t2.setView(temp);\n assertEquals(\"Expected view to be changed\", temp, t2.getView());\n\n //Testing the alive and dead of the object\n t2.setAlive(false);\n assertEquals(\"Expected the object state to be set to dead.\", false, t2.isAlive());\n assertEquals(\"Expected the reverse of object state to be set to alive.\", true, t2.isDead());\n }",
"public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }",
"public Var_Act_Data(Action_Type type, Variable v1, Variable v2, int set_value) {\r\n super(type);\r\n var1 = v1;\r\n var2 = v2;\r\n set_val = set_value;\r\n }",
"public void testSetters() {\n String name = \"pop\";\n String version = \"2.3\";\n\n Agent agent = new Agent(\"moo\", \"1.5\");\n\n agent.setName(name);\n agent.setVersion(version);\n assertEquals(agent.getName(), name, \"Unexpected agent name.\");\n assertEquals(agent.getVersion(), version, \"Unexpected agent version.\");\n assertEquals(agent.toString(), name + \"/\" + version, \"Unexpected agent display representation.\");\n }",
"public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}",
"public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }",
"SetCommand getSetl();",
"@Override\n\tpublic void setData() {\n\n\t}",
"public void setValue(S s) { value = s; }",
"public void setDataGetter(Object instance, Method method) {\n this.instance = instance;\n this.method = method;\n }",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"public int setValue (int val);",
"public void setName(String name){this.name = name;}",
"private void setOtherParam(Settings set) {\n URL_SQL_RU = set.getValue(\"app.urlSqlRu\");\n NAME_DATA_BASE = set.getValue(\"app.nameDataBase\");\n DAT_NAME = set.getValue(\"app.datName\");\n VACANCY = set.getValue(\"app.vacancy\");\n TABLE_NAME = set.getValue(\"app.tableName\");\n ZERO = Integer.parseInt(set.getValue(\"app.zero\"));\n SKIP_ROW = Integer.parseInt(set.getValue(\"app.skipRow\"));\n CLASS = set.getValue(\"app.class\");\n POSTS_LIST_TOPIC = set.getValue(\"app.postsListTopic\");\n LAST_YEAR = set.getValue(\"app.lastYear\");\n }",
"protected void setValue(T value) {\r\n this.value = value;\r\n }",
"@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n Receta instance = new Receta();\n instance.setNombre(\"nom1\");\n String expResult = \"nom1\";\n String result = instance.getNombre();\n assertEquals(expResult, result);\n }",
"public void setName (String newName)\n {\n this.name = newName; \n }",
"public void setGender(Gender_Tp gender) { this.gender = gender; }",
"public void set(boolean bol);",
"public void set(int i) {\n }",
"public void setValue(Object value);",
"@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}",
"public void setU(String f){\n u = f;\n}",
"@Test\n\tpublic void testSetters()\n\t{\n\t\tAIContext context = new AIContext(a, e); \n\t\tassertTrue(context.getCurrentState() instanceof NoWeaponState); \n\t\t\n\t\tcontext.setCurrentState(new DeadState(context));\n\t\tassertTrue(context.getCurrentState() instanceof DeadState);\n\t\t\n\t\tcontext.setCurrentState(new HasWeaponState(context));\n\t\tassertTrue(context.getCurrentState() instanceof HasWeaponState);\n\t\t\n\t\tcontext.setCurrentState(new OutOfAmmoState(context));\n\t\tassertTrue(context.getCurrentState() instanceof OutOfAmmoState);\n\t\t\n\t\tcontext.setCurrentState(new NoWeaponState(context));\n\t\tassertTrue(context.getCurrentState() instanceof NoWeaponState);\n\t}",
"public void testGetterAndSetter() {\n UDDIOperationInput uddiOperationInput = new UDDIOperationInput();\n\n //Test Get and Set ElementType\n QName qName = new QName(UDDI_NS_URI, \"input\");\n assertNotNull(\"getElementType was null\",\n uddiOperationInput.getElementType());\n assertTrue(\"getElementType was incorrect\",\n uddiOperationInput.getElementType().equals(qName));\n\n //Test Get and Set Required\n uddiOperationInput.setRequired(isRequired);\n assertFalse(\"getRequired returned true\",\n uddiOperationInput.getRequired());\n isRequired = true;\n uddiOperationInput.setRequired(isRequired);\n assertTrue(\"getRequired returned false\",\n uddiOperationInput.getRequired());\n\n //Test Get and Set BusinessName\n uddiOperationInput.setBusinessName(businessName);\n assertTrue(\"getBusinessName incorrect\",\n uddiOperationInput.getBusinessName().equals(businessName));\n\n //Test Get and Set ServiceName\n uddiOperationInput.setServiceName(serviceName);\n assertTrue(\"getServiceName incorrect\",\n uddiOperationInput.getServiceName().equals(serviceName));\n }",
"public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }",
"@Test\n\tpublic void testSettersAddress() {\n\t\tassertTrue(beanTester.testSetters());\n\t}",
"public void setEmployee(String employee)\r\n/* 43: */ {\r\n/* 44:47 */ this.employee = employee;\r\n/* 45: */ }",
"@Override\n public void saveValues() {\n \n }",
"public Object set (int i, Object t)\r\n {\r\n }",
"@Test\r\n public void testSetValor() {\r\n \r\n }"
]
| [
"0.689382",
"0.6525869",
"0.6505284",
"0.6288991",
"0.6218757",
"0.62061906",
"0.6115496",
"0.6105438",
"0.6074384",
"0.6015972",
"0.59289795",
"0.590857",
"0.5906234",
"0.58911026",
"0.58804435",
"0.58675665",
"0.5859276",
"0.5858964",
"0.5831522",
"0.5827811",
"0.5823518",
"0.5818079",
"0.58129984",
"0.57992274",
"0.57910156",
"0.5790671",
"0.5774251",
"0.57410914",
"0.57311213",
"0.5730709",
"0.57261914",
"0.57193124",
"0.5714982",
"0.5713283",
"0.57098824",
"0.570127",
"0.5692083",
"0.5683884",
"0.5672675",
"0.56624645",
"0.5647807",
"0.56472737",
"0.56447065",
"0.5640327",
"0.56241584",
"0.56199247",
"0.5619264",
"0.56165844",
"0.5611102",
"0.559782",
"0.5592851",
"0.5592123",
"0.55890644",
"0.5587012",
"0.55867714",
"0.55861515",
"0.5584827",
"0.5573759",
"0.5572737",
"0.5564531",
"0.5561474",
"0.5557401",
"0.5554962",
"0.55540454",
"0.5552413",
"0.55523777",
"0.55473953",
"0.55454904",
"0.55439156",
"0.55437297",
"0.55422264",
"0.5538139",
"0.5530227",
"0.55277437",
"0.5526439",
"0.5519294",
"0.5514309",
"0.55132127",
"0.55130154",
"0.5510271",
"0.550827",
"0.5504714",
"0.5503612",
"0.55014277",
"0.5500635",
"0.54981786",
"0.54908866",
"0.5486831",
"0.5485938",
"0.54848194",
"0.54834193",
"0.5482793",
"0.5478873",
"0.5478401",
"0.547306",
"0.54726654",
"0.5469833",
"0.5469225",
"0.54570955",
"0.545117",
"0.5447198"
]
| 0.0 | -1 |
Untuk mengecek apakah ada koneksi internet | public boolean isNetworkAvailable() {
boolean haveConnectedWifi = false;
boolean haveConnectedMobile = false;
ConnectivityManager cm = (ConnectivityManager) getActivity().getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo[] netInfo = cm.getAllNetworkInfo();
for (NetworkInfo ni : netInfo) {
if (ni.getTypeName().equalsIgnoreCase("WIFI"))
if (ni.isConnected())
haveConnectedWifi = true;
if (ni.getTypeName().equalsIgnoreCase("MOBILE"))
if (ni.isConnected())
haveConnectedMobile = true;
}
return haveConnectedWifi || haveConnectedMobile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getInternetseite();",
"public void internetConnectionProble()\n\t\t{\n\n\n\t\t}",
"private void getinternet() {\n\t\talertDialogBuilder.setTitle(\"Internet services disabled\");\n alertDialogBuilder.setMessage(\"Nearby police station needs access to internet and gps. Please turn on internet & location access.\")\n \n .setCancelable(false)\n .setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener(){\n public void onClick(DialogInterface dialog, int id){\n startActivity(new Intent(getApplicationContext(),Main.class));\n }\n });\n AlertDialog alert = alertDialogBuilder.create();\n alert.show();\n \n\t}",
"private void checkInternetConnection() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}",
"public boolean internetErisimi() {\n\n ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (conMgr.getActiveNetworkInfo() != null\n\n && conMgr.getActiveNetworkInfo().isAvailable()\n\n && conMgr.getActiveNetworkInfo().isConnected()) {\n\n return true;\n\n } else {\n\n return false;\n\n }\n\n }",
"@Override\n\tpublic void setNetworkError() {\n\t\tnew Customdialog_Base(this, \"네트워크 불안정\").show();\n\t}",
"public static boolean checkNetworkAndShowDialog(Context context) {\r\n if (!checkNetConnection(context)) {\r\n //Logger.showShortMessage(context, context.getString(R.string.check_internet));\r\n return false;\r\n }\r\n return true;\r\n }",
"public void ShowNoInternetDialog() {\r\n showAlertDialog(LoginUserActivity.this, getResources().getString(R.string.text_no_internet_connection),\r\n getResources().getString(R.string.text_please_check_your_network), false);\r\n }",
"public String solicitarPin(String url, String numero) {\n\t HttpClient httpclient = new DefaultHttpClient();\r\n\t HttpPost httppost = new HttpPost(url);\r\n\t httppost.setHeader(\"User-Agent\", \"mimesic company\");\r\n\t String output = null;\r\n\t\r\n\t try {\r\n\t \r\n\t List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);\r\n\t nameValuePairs.add(new BasicNameValuePair(\"numero\", numero));\r\n\t \t \r\n\t httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\r\n\t\r\n\t // Execute HTTP Post Request\r\n\t HttpResponse response = httpclient.execute(httppost);\r\n\t \r\n\t HttpEntity httpEntity = response.getEntity();\r\n output = EntityUtils.toString(httpEntity);\r\n \r\n\t \t \r\n\t } catch (ClientProtocolException e) {\r\n\t // TODO Auto-generated catch block\r\n\t } catch (IOException e) {\r\n\t // TODO Auto-generated catch block\r\n\t }\r\n\t return output;\r\n\t \t \r\n\t}",
"static public void zapisz(String host){\n\n String daneWysyłane=\"oddaj=\";\n Wyp[] wyporzyczeniaDoZmiany=new Wyp[wyporzyczenia.size()];\n for(int i=0;i<wyporzyczenia.size();i++){\n Wyp el=wyporzyczenia.elements().nextElement();\n if(el.zmieniony){\n wyporzyczeniaDoZmiany[i]=el;\n daneWysyłane+=el.id+\"/\"+el.czasKoniec+\";\";\n\n }\n }\n daneWysyłane+=\"&dodaj=\";\n Wyp[] wyporzyczeniaDoDodania=new Wyp[wyporzyczenia.size()];\n for(int i=0;i<wyporzyczenia.size();i++){\n Wyp el=wyporzyczenia.elements().nextElement();\n if(el.dodany){\n wyporzyczeniaDoDodania[i]=el;\n daneWysyłane+=el.laptop.id+\"/\"+el.kto.id+\"/\"+el.czasStart()+\"/\"+el.czasKoniec()+\";\";\n\n }\n }\n URL u = null;\n try {\n u = new URL(\"http://\"+host+\"/zapisz.php\");\n HttpURLConnection con = (HttpURLConnection) u.openConnection();\n\n //add reuqest header\n con.setRequestMethod(\"POST\");\n con.setRequestProperty(\"User-Agent\", \"Android\");\n con.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n\n\n // Send post request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(daneWysyłane);\n wr.flush();\n wr.close();\n\n int responseCode = con.getResponseCode();\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n String site = \"www.ics.upjs.sk\";\n int port = 80;\n Socket socket = null;\n try {\n socket = new Socket(site, port);\n OutputStream os = socket.getOutputStream();\n PrintWriter pw = new PrintWriter(os);\n\n InputStream is = socket.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n // poslanie poziadavky\n pw.println(\"GET / HTTP/1.1\");\n pw.println(\"Host: \"+site);\n pw.println();\n\n // odoslanie dat ktore su pripavene v streame\n pw.flush();\n\n // spravovanie poziadavky\n\n String riadok;\n while ((riadok = br.readLine()) != null) {\n System.out.println(riadok);\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n }",
"private boolean tienePermiso(String urlStr){\n return true;\n }",
"public static boolean IsConnectedToInternet(Context c) {\n ConnectivityManager connectivityManager = (ConnectivityManager) c.getSystemService(c.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n if (networkInfo != null) {\n if (networkInfo.isConnected() == false) {\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n return false;\n } else {\n if (networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) {\n //Toast.makeText(this, \"데이터 요금이 발생할 수 있습니다.\", 1).show();\n }\n return true;\n }\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n } else {\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n return false;\n //Toast.makeText(this, \"테스트.\", 1).show();\n //btest = true;\n }\n }",
"private void showNetworkAlert() {\n AlertDialog alertDialog = new AlertDialog.Builder(this).create();\n alertDialog.setTitle(\"Not connected\");\n alertDialog.setMessage(\"This application requires an internet connection.\");\n alertDialog.setIcon(R.drawable.wifi);\n alertDialog.setCanceledOnTouchOutside(false);\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, \"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n finish();\n }\n });\n alertDialog.show();\n }",
"public String getUrl()\n\t\t{\n\t\t\treturn \"https://www.zohoapis.eu\";\n\t\t}",
"private boolean isKonekInternet()\n\t{\n\t\tConnectivityManager connectivityManager = (ConnectivityManager) this\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (connectivityManager != null)\n\t\t{\n\t\t\tNetworkInfo[] info = connectivityManager.getAllNetworkInfo();\n\t\t\tif (info != null)\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < info.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}",
"private void displayPromptForEnablingInternet() {\n final AlertDialog.Builder builder =\n new AlertDialog.Builder(getActivity());\n final String actionWifiSettings = Settings.ACTION_WIFI_SETTINGS;\n final String actionWirelessSettings = Settings.ACTION_WIRELESS_SETTINGS;\n final String message = getString(R.string.enable_network);\n\n builder.setMessage(message)\n .setPositiveButton(getString(R.string.bt_wifi),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n getActivity().startActivity(new Intent(actionWifiSettings));\n dialog.dismiss();\n }\n })\n .setNegativeButton(getString(R.string.bt_mobile_network),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n getActivity().startActivity(new Intent(actionWirelessSettings));\n dialog.dismiss();\n }\n })\n .setNeutralButton(getString(R.string.bt_cancel),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n dialog.cancel();\n }\n });\n builder.create().show();\n }",
"public void irNoSiteN11 (){\n driver.get(URLbase);\n }",
"public void onPressWebsite(View view) {\r\n if (!WebsiteHelper.openLocalWithConnection(this, event.homePage))\r\n showToast(getString(R.string.event_website_failed_to_open_internet), Toast.LENGTH_LONG);\r\n }",
"public boolean probarInternet() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public void miUbicacion() { //Funcion que recupera la ubicacion\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE); //Se accede al sistema para el servicio de locatizacion\n Location location = locationManager.getLastKnownLocation(GPS_PROVIDER); //Se recupera la ultima localizacion conocida\n if(location != null) {\n new DownloadWebPageTask(location).execute(\"http://api.openweathermap.org/data/2.5/weather?lat=\" + location.getLatitude() + \"&lon=\" + location.getLongitude() +\n \"&units=metric&lang=fr&appid=5bdfb081811a28abc515bc673fc0d20f\");\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 20000,0,locListenner); //Esto se hace cada 10s\n }",
"public void onClick(View v) {\n try {\n URL newurl = new URL(\"http://www.google.com\");\n //apppel à CallWebAPI\n CallWebAPI c = new CallWebAPI(texte);\n c.execute(newurl.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }",
"private void promptInternetConnect() {\n android.support.v7.app.AlertDialog.Builder builder = new android.support.v7.app.AlertDialog.Builder(AdminHomePage.this);\n builder.setTitle(R.string.title_alert_no_intenet);\n builder.setMessage(R.string.msg_alert_no_internet);\n String positiveText = getString(R.string.btn_label_refresh);\n builder.setPositiveButton(positiveText,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n //Block the Application Execution until user grants the permissions\n if (startStep2(dialog)) {\n //Now make sure about location permission.\n if (checkPermissions()) {\n //Step 2: Start the Location Monitor Service\n //Everything is there to start the service.\n startStep3();\n } else if (!checkPermissions()) {\n requestPermissions();\n }\n }\n }\n });\n android.support.v7.app.AlertDialog dialog = builder.create();\n dialog.show();\n }",
"@Override\r\n\t\tpublic void onGetNetworkState(int iError) {\n\t\t\tToast.makeText(NearActivity.this, \"您的网络出错啦!\", Toast.LENGTH_LONG).show();\r\n\t\t}",
"public void Portal(View view) {\n cn = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n info = cn.getActiveNetworkInfo();\n if (info != null &&\n info.isAvailable() &&\n info.isConnected()){\n Intent intent = new Intent(this, webpage.class);\n intent.putExtra(\"url\",getString(R.string.portal_url));\n intent.putExtra(\"title\",getString(R.string.portal_header));\n startActivity(intent);\n }else{\n\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setTitle(getString(R.string.alert));\n dialog.setMessage(getString(R.string.network_warning));\n dialog.setNeutralButton(getString(R.string.okay), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n AlertDialog diag = dialog.create();\n diag.show();\n }\n\n }",
"@Override\r\n public void onClick(View v) {\n String hostweb = setWebservice.getText().toString();\r\n WebUtils.WEBSERVICE = hostweb;\r\n GlobalCache.getCache().setUrl(hostweb);\r\n String host=hostweb.substring(0,WebUtils.WEBSERVICE.lastIndexOf(\"/\"));\r\n WebUtils.HOST=host;\r\n GlobalCache.getCache().setHost(host);\r\n// GlobalCache.getCache().setCFJLUploadUrl(host+\"/upload.ashx?name=dailyrecord\");\r\n// GlobalCache.getCache().setCFJLDownloadUrl(host+\"/download.ashx?name=dailyrecord\");\r\n// GlobalCache.getCache().setEditBookMarkUrl(host+\"/upload.ashx?name=emr\");\r\n// GlobalCache.getCache().setEditBookMarkDownloadUrl(host+\"/download.ashx?name=emr\");\r\n\r\n SharedPreferences sp = getSharedPreferences(\"mobile_doctouch\", 0);\r\n Editor et = sp.edit();\r\n et.putString(\"webservice\", hostweb);\r\n et.putString(\"newWebservice\",hostweb);\r\n et.putString(\"newHost\",host);\r\n et.commit();\r\n Toast.makeText(Login.this, \"成功设置服务器IP\", Toast.LENGTH_SHORT).show();\r\n et_username.setText(\"\");\r\n et_password.setText(\"\");\r\n builder.dismiss();\r\n }",
"@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }",
"private static String getServerUrl() {\n\t\treturn \"http://jfabricationgames.ddns.net:5715/genesis_project_server/genesis_project/genesis_project/\";\n\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n try{\r\n /* als de server niet werkt kan het een paar seconden duren voordat het venster getoond wordt wanneer je terugkomt van een ander scherm\r\n dit weg doen in toekomst?\r\n */\r\n if(ConnectionManager.getConnection().isValid(0)){ \r\n lblStatus.setText(\"Connected\");\r\n }\r\n }catch(Exception e){ // NOG AAN TE PASSEN\r\n \r\n }\r\n }",
"public void enviarAlertaDeQueEstaOnline(){\n //mandaria un mail a los usuarios avisando que ya esta disponible para ver.\n System.out.println(\"Enviando mail con url \" + this.url);\n }",
"public void connect()\r\n\t{\r\n\t\tkonekcija = ConnectionClass.getConnection(adresa, port, imeBaze, korisnickoIme, sifra);\r\n\t\tSystem.out.println(\"Konekcija otvorena: \"+ konekcija.toString());\r\n\t}",
"public void loadPage() { \n\t \n\t if((sPref.equals(ANY)) && (wifiConnected || mobileConnected)) {\n\t \tnew DownloadXmlTask().execute(URL);\n\t }\n\t else if ((sPref.equals(WIFI)) && (wifiConnected)) {\n\t new DownloadXmlTask().execute(URL);\n\t } else {\n\t // show error\n\t } \n\t }",
"@Override\n\tpublic String getLiuLiangUrl() {\n\t\tLiuLiang_Url = Util.getMaiYuanConfig(\"LiuLiang_Url\");\n\t\treturn LiuLiang_Url;\n\t}",
"public String pedirHibe(String url, String clave, String valor){\r\n \t // Create a new HttpClient and Post Header\r\n\t HttpClient httpclient = new DefaultHttpClient();\r\n\t HttpPost httppost = new HttpPost(url);\r\n\t httppost.setHeader(\"User-Agent\", \"mimesic company\");\r\n\t String output = null;\r\n\t\r\n\t try {\r\n\t \r\n\t \t\r\n\t List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1);\r\n\t nameValuePairs.add(new BasicNameValuePair(clave, valor));\r\n\t \r\n\t \r\n\t httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\r\n\t\r\n\t // Execute HTTP Post Request\r\n\t HttpResponse response = httpclient.execute(httppost);\r\n\t \r\n\t HttpEntity httpEntity = response.getEntity();\r\n output = EntityUtils.toString(httpEntity);\r\n \r\n \r\n\t \r\n\t \t \r\n\t } catch (ClientProtocolException e) {\r\n\t // TODO Auto-generated catch block\r\n\t } catch (IOException e) {\r\n\t // TODO Auto-generated catch block\r\n\t }\r\n\t return output;\r\n \t\r\n }",
"@Override\n protected String doInBackground(String... urls) {\n try {\n return ayudanteConeccionMySql.downloadUrl(urls[0]);\n } catch (IOException e) {\n return \"Unable to retrieve web page. URL may be invalid.\";\n }\n }",
"@Override\n public void onClick(View view) {\n\n if (!fun.verificaConexion(TareasRealizadas.this)) {\n Toast toast = Toast.makeText(getApplicationContext(), R.string.necesita_conexion, Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n startActivity(new Intent(android.provider.Settings.ACTION_WIFI_SETTINGS));\n } else {\n\n new OperacionesMiCobertura(TareasRealizadas.this,fps.Consultar_si_hay_registro(TareasRealizadas.this)).execute();\n }\n\n\n }",
"public String getUrl()\n\t\t{\n\t\t\treturn \"https://sandbox.zohoapis.eu\";\n\t\t}",
"public Echange_Client() throws UnknownHostException, IOException {\n start_Connexion(); \n }",
"public void setURL() {\n\t\tURL = Constant.HOST_KALTURA+\"/api_v3/?service=\"+Constant.SERVICE_KALTURA_LOGIN+\"&action=\"\n\t\t\t\t\t\t+Constant.ACTION_KALTURA_LOGIN+\"&loginId=\"+Constant.USER_KALTURA+\"&password=\"+Constant.PASSWORD_KALTURA+\"&format=\"+Constant.FORMAT_KALTURA;\n\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n if (ConstantsDefined.isOnline(AllSectionsSummary.this)) {\n //Do nothing..\n Toast.makeText(AllSectionsSummary.this, \"Couldn't connect..Please try again..\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(AllSectionsSummary.this, \"Sorry! No internet connection\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n protected String doInBackground(Void... params) {\n String desc = null;\n try {\n // Connect to the web site - olakšava povezivanje na web stranicu, ali ignoriraj content type (bez raspakiravanja)\n desc = Jsoup.connect(RadioConstants.RS_PLAY_LIST_URI).ignoreContentType(true).execute().body();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return desc;\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tR.string.No_Internet_Connection,\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}",
"@Override\n public void onFailure(Call call, IOException e) {\n TemoignageActivity.this.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(TemoignageActivity.this, R.string.no_internet, Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public Fund hentArtikel(String u) {\n\t\tp(\"hentArtikel(\"+u+\")\");\n\t\tString vUrl = \"\";\n\t\tArrayList <String> beskrivelser = new ArrayList<>();\n\n\n\t\ttry {\n\t\t\tInputStream is = new URL(\"http://m.tegnsprog.dk/artikler/\"+u+\".html\").openStream();\n\t\t\tis = new BufferedInputStream(is);\n\t\t\tis.mark(1);\n\t\t\tif (is.read() == 0xef) {\n\t\t\t\tis.read();\n\t\t\t\tis.read();\n\n\t\t\t} else {\n\t\t\t\tis.reset();\n\t\t\t}\n\t\t\tp(\"#=#=#=#=#=#=#=#= hentArtikel() =#=#=#=#=#=#=#=#=#=#=#\");\n\t\t\tbyte[] contents = new byte[1024];\n\t\t\tString heleIndholdet = \"\";\n\t\t\tint bytesRead = 0;\n\t\t\t//bytesRead = is.read(contents); //skipper første linie\n\t\t\t//bytesRead = is.read(contents); //skipper anden linie\n\n\t\t\twhile((bytesRead = is.read(contents)) != -1) {\n\t\t\t\tString linie = new String(contents, 0, bytesRead);\n\t\t\t\theleIndholdet += linie;\n\n\n\n\t\t\t}\n\t\t\t\n\t\t\t//p(\"\\nArtikel_______________________________: \"+heleIndholdet);\n\n\n\n\t\t\t//-- Vi finder video-urlen\n\n\t\t\tint startindeks = heleIndholdet.indexOf(\"src=\\\"\");\n\t\t\tString tempUrl = heleIndholdet.substring(startindeks+5);\n\t\t\tint slutIndeks= tempUrl.indexOf(\"\\\" type='video/mp4'>Your browser does not support the video tag.\");\n\t\t\tvUrl = tempUrl.substring(0,slutIndeks);\n\t\t\tp(\"videourl::::::::::::::::::::::::::::::::\"+vUrl);\n\n\t\t\tif (webm) {\n\t\t\t\tint underscore = vUrl.lastIndexOf(\"_\") + 1;\n\t\t\t\tint sidstepunktum = vUrl.lastIndexOf(\".\");\n\n\t\t\t\tString indeksnr = vUrl.substring(underscore, sidstepunktum);\n\t\t\t\tp(\"indeksnr: \" + indeksnr);\n\t\t\t\tvUrl = \"http://m.tegnsprog.dk/video/mobil/t-webm/t_\" + indeksnr + \".webm\";\n\t\t\t\tp(vUrl);\n\t\t\t}\n\n\n\n\t\t\t//-- Vi finder de danske ord\n\n\t\t\tstartindeks = tempUrl.indexOf(\"<TABLE>\");\n\t\t\tslutIndeks = tempUrl.indexOf(\"<TABLE width=\\\"100%\\\">\");\n\t\t\tString tabelDKOrd = tempUrl.substring(startindeks, slutIndeks);\n\t\t\t//p(\"__________min html:\");\n\t\t\t//p(tabelDKOrd);\n\t\t\t//p(\"----------\");\n\t\t\t//dKOrd = tabelDKOrd.replaceAll(\"\\\\/TR><TR\", \"</TR><BR><TR>\").replaceAll(\"\\\\·\\\\;\", \" , \");\n\t\t\tString dKOrd = tabelDKOrd\n\t\t\t\t\t.replaceAll(\"<TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD><TD>\", \" \")\n\t\t\t\t\t.replaceAll(\"\\\\·\\\\;\", \" , \")\n\t\t\t\t\t.replaceAll(\"<TABLE/>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\" \", \"\")\n\t\t\t\t\t.replaceAll(\"<TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR style=\\\"vertical-align:top;\\\">\", \"\")\n\t\t\t\t\t.replaceAll(\"</TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD>\", \"ønskernylinie\")\n\t\t\t\t\t.replaceAll(\"<TD>\", \"\")\n\t\t\t\t\t.replaceAll(\"<BR>\",\"\\n\")\n\t\t\t\t.replaceAll(\"<BR/>\",\"\\n\");\n\n\t\t\t//Erstat html-koder for danske vokaler\n\t\t\t//æ: æ\n\t\t\t//ø: ø\n\t\t\t//å: å\n\n\t\t\tdKOrd = dKOrd\n\t\t\t\t\t.replaceAll(\"æ\", \"æ\")\n\t\t\t\t\t.replaceAll(\"ø\", \"ø\")\n\t\t\t\t\t.replaceAll(\"å\", \"å\");\n\n\n\n\n\n\t\t\tbeskrivelser = new ArrayList<String>(Arrays.asList(dKOrd.split(\"ønskernylinie\")));\n\n\n\t\t\tp(\"Efter rens\");\n\t\t\tp(beskrivelser.toString());\n\n\n\n/*\n\t\t\t<HTML>\n\t\t\t\t<video width=\"100%\" autoplay>\n\t\t\t \t\t<source src=\"http://www.tegnsprog.dk/video/t/t_317.mp4\" type='video/mp4'>\n\t\t\t \t\tYour browser does not support the video tag.\n\t\t\t \t</video>\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>1. </TD>\n\t\t\t\t\t\t<TD>brun</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>2. </TD>\n\t\t\t\t\t\t<TD>kaffe</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\">\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<A TITLE=\"Åbn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|386', '_system');\">\n\t\t\t\t\t\t\t<IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>\n\t\t\t\t\t\t\t\tVis på tegnsprog.dk</A></TD><TD style=\"text-align: right;\">\n\t\t\t\t\t\t\t<A TITLE=\"Gå til toppen\" href=\"#0\">\n\t\t\t\t\t\t\t\t⇧\n\t\t\t\t\t\t\t</A>\n\t\t\t\t\t\t</TD></TR></TABLE></HTML>\n\n\n\t\t\t\t\t\tANDEN VERSION______________________________\n\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\tforan · forrest · føre · komme først\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\"><TR><TD><A TITLE=\"Åbn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|1000', '_system');\"><IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>Vis på tegnsprog.dk</A></TD><TD style=\"text-align: right;\"><A TITLE=\"Gå til toppen\" href=\"#0\">⇧</A></TD></TR></TABLE></HTML>\n\n*/\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tp(ex);\n\t\t\tp(ex.getMessage());\n\t\t\tnulNetBeskedFraBraggrund();\n\n\t\t}\n\t\tp(\"hentArtikel færdig\");\n\t\treturn new Fund(Uri.parse(vUrl), beskrivelser);\n\t}",
"String getWebsite();",
"public void ugasiKorisnika() {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n if (outputStream != null) {\n outputStream.close();\n }\n if (socket != null) {\n socket.close();\n }\n } catch (IOException ex) {\n Logger.getLogger(KorisnikApstraktni.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void requestInternetPermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale((Activity) mLayout.getContext(),\n Manifest.permission.INTERNET)) {\n // Provide an additional rationale to the user if the permission was not granted\n // and the user would benefit from additional context for the use of the permission.\n // Display a SnackBar with cda button to request the missing permission.\n Snackbar.make(mLayout, R.string.internet_access_required,\n Snackbar.LENGTH_INDEFINITE).setAction(R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Request the permission\n ActivityCompat.requestPermissions((Activity) mLayout.getContext(),\n new String[]{Manifest.permission.INTERNET},\n PERMISSION_REQUEST_INTERNET);\n }\n }).show();\n\n } else {\n Snackbar.make(mLayout, R.string.internet_unavailable, Snackbar.LENGTH_SHORT).show();\n // Request the permission. The result will be received in onRequestPermissionResult().\n ActivityCompat.requestPermissions((Activity) mLayout.getContext(),\n new String[]{Manifest.permission.INTERNET}, PERMISSION_REQUEST_INTERNET);\n }\n }",
"private void ShowNoInternetConnection(){\n StopWhaitSpinner();\n //There was an error show error message\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(R.string.recconnecting_request)\n .setCancelable(false)\n .setPositiveButton(R.string.ok_button, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n startActivity(new Intent(getContext(), MainActivity.class));\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n\n }",
"@Override\n\t\t\t\tpublic void onClickOk() {\n\t\t\t\t\tnew BrowserWebsiteAsyncTask().execute(url,Boolean.FALSE.toString());\n\t\t\t\t}",
"public void pobierzNajlepsze(MainWindow win)\n\t{\n\t\tif(czyZdalnie())\n\t\t{\n\t\t\tPobranieWynikow wyniki = new PobranieWynikow(win, port, host);\n\t\t\tThread zadanie = new Thread(wyniki);\n\t\t\tzadanie.start();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString wyniki = najlepsze.pobierz();\n\t\t\tif(wyniki.isEmpty())\n\t\t\t\twyniki = \"Brak wynikow\";\n\t\t\tJOptionPane.showMessageDialog(win, wyniki, \"Najpelsze wyniki lokalnie\",JOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\n\t}",
"private boolean checkConnection()\n {\n ConnectivityManager connectivityManager = (ConnectivityManager) Objects.requireNonNull(getActivity()).getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n if (null != networkInfo)\n {\n return true;\n }\n else\n {\n StyleableToast.makeText(getActivity().getApplicationContext(), \"عدم اتصال به اینترنت!\", Toast.LENGTH_LONG, R.style.toastTheme).show();\n return false;\n }\n }",
"public static String getWebData(String wepDocumet) {\n\n try {\n Log.d(JsonParse.class.getSimpleName(), \"Start the web-get documnet\");\n // Creates the parameters.\n HttpParams httpParams = new BasicHttpParams();\n // TIMEOUT_MILLISEC sets the timeout. If bad network higher liver is\n // needed.\n HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT_MILLISEC);\n HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT_MILLISEC);\n HttpParams p = new BasicHttpParams();\n // Sets parameters. For future use.\n p.setParameter(\"user\", \"1\");\n // Instantiate an HttpClient.\n HttpClient httpclient = new DefaultHttpClient(p);\n // WEBSERVER_ADDRESS, the address to the webserver. DO NOT USE IP!.\n String url = WEBSERVER_ADDRESS + wepDocumet;\n HttpPost httppost = new HttpPost(url);\n // Instantiate a GET HTTP method.\n try {\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n return httpclient.execute(httppost, responseHandler);\n\n } catch (ClientProtocolException e) {\n Log.e(\"Error\", e.toString());\n // Return a string with error to indicate that an error has\n // happened.\n return \"error\";\n }\n } catch (Exception e) {\n Log.e(\"Error\", e.toString());\n // Return a string with error to indicate that an error has\n // happened.\n return \"error\";\n }\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\r\n\t\t\t\tif (ConnectionActivity.isNetConnected(TrainerHomeActivity.this)) {\r\n\r\n\t\t\t\t\tmakeClientMissed();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\td.showSingleButtonDialog(TrainerHomeActivity.this,\r\n\t\t\t\t\t\t\t\"Please enable your internet connection\");\r\n\t\t\t\t}\r\n\t\t\t}",
"private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }",
"public PingToInternet(String ip)throws IllegalArgumentException, UnknownHostException, IOException {\r\n\t\tsetIp(ip);\r\n\t}",
"private boolean checkInternetPermission() {\n if (ActivityCompat.checkSelfPermission(mLayout.getContext().getApplicationContext(), Manifest.permission.INTERNET)\n == PackageManager.PERMISSION_GRANTED) {\n return true;\n\n } else {\n\n return false;\n }\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tWifiManager wm=(WifiManager)getSystemService(WIFI_SERVICE);\n\t\t\t\tif(wm.isWifiEnabled())\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI:ON\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tWifiInfo wi=wm.getConnectionInfo();\n\t\t\t\t\tif(wi.getNetworkId()==-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS NOT CONNECT TO ANY DEVICE\", Toast.LENGTH_SHORT).show();\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{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS CONNECTED\", Toast.LENGTH_SHORT).show();\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\tToast.makeText(getApplicationContext(), \"WIFI IS OFF\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public String preuzmiPassword() {\n return konfiguracija.dajPostavku(\"OpenSkyNetwork.lozinka\");\n }",
"public EnviarArchivo(String ip) {\n initComponents();\n //iniciamos configuracion de la ventana\n iniciarVentana();\n //colocamos icono a la ventana\n this.setTitle(\"Enviar a todos los equipos dentro del grupo\");\n //guardamos en la variable global la direccion/hostname resivida\n this.ip=ip;\n \n \n }",
"public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane\r\n\t\t\t\t.showInputDialog(\"Entrez le nom du serveur.\");\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(serverIp, 4456);\r\n\t\t\tlogger.info(\"Connexion au socket serveur.\");\r\n\r\n\t\t\tThread t = new Thread(new EnvoiPresence(socket));\r\n\t\t\tt.start();\r\n\r\n\t\t\tThread t2 = new Thread(new ReceptionListUser(socket, mainView));\r\n\t\t\tt2.start();\r\n\r\n\t\t} catch (ConnectException e) {\r\n\t\t\tJOptionPane.showMessageDialog(new Frame(),\r\n\t\t\t\t\t\"Le serveur Draw Me An Idea n'est pas lancé\", \"Erreur\", 1);\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (UnknownHostException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent browseIntent = new Intent( Intent.ACTION_VIEW , Uri.parse(urlStr) );\r\n startActivity(Intent.createChooser(browseIntent, \"Connecting...\"));\r\n \t\t\t}",
"public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }",
"public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }",
"private String loadFromNetwork(String urlString) throws IOException {\n InputStream stream = null;\n String str =\"\";\n\n try {\n stream = downloadUrl(urlString);\n str = readIt(stream, 450000);\n } finally {\n if (stream != null) {\n stream.close();\n }\n }\n return str;\n }",
"private boolean isConnectedToInternet(){\n ConnectivityManager connectivityManager = (ConnectivityManager) main.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"private boolean isInternetConnected() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo ni = cm.getActiveNetworkInfo();\n if (ni!=null && ni.isAvailable() && ni.isConnected()) {\n return true;\n } else {\n return false;\n }\n }",
"@Given(\"^daje ci otwarta strone$\")\n public void daje_ci_otwarta_strone() throws Throwable {\n driver = new ChromeDriver();\n String url = \"http://www.pollub.pl/\";\n driver.navigate().to(url);\n driver.manage().window().maximize();\n // driver.manage().timeouts().implicitlyWait(5000, TimeUnit.MILLISECONDS); // PRZYKLAD GLOBALNEGO IMPLICITY WAIT-A\n\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\tR.string.No_Internet_Connection, Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t}",
"public void changeUrl() {\n url();\n }",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tbOnline = isNetworkPresent();\r\n\t\t\tLog.d(TAG, \"\" + bOnline);\r\n\t\t\tnetClient = new AsyncHttpClient();\r\n\r\n\t\t\tswitch (v.getId()) {\r\n\t\t\tcase R.id.search_my_inside_arduino_button:\r\n\t\t\t\tif (bOnline)\r\n\t\t\t\t\tsubnetUrl = IpSubnet.getIpSubnet().getSubnet()\r\n\t\t\t\t\t\t\t+ \"/sensorData/insideHome/all\";\r\n\t\t\t\tmSearchOutsideBtn.setEnabled(false);\r\n\t\t\t\tscanNet(v);\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.search_my_outside_arduino_button:\r\n\t\t\t\tif (bOnline)\r\n\t\t\t\t\tsubnetUrl = IpSubnet.getIpSubnet().getSubnet()\r\n\t\t\t\t\t\t\t+ \"/sensorData/outsideHome/all\";\r\n\t\t\t\tmSearchInsideBtn.setEnabled(false);\r\n\t\t\t\tscanNet(v);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}",
"@Test\r\n public void testInternetConnection(){\r\n CheckConnection checkConnection = new CheckConnection();\r\n checkConnection.checkURL();\r\n }",
"@Override\r\n\tpublic void run() {\n\t\tresult = InternetConn.pushURL(URL);\r\n\t\tif(result.equals(\"-1\")){\r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.obj = \"网络连接错误\";\r\n\t\t\tmsg.what = -1;\r\n\t\t\tmHandler.sendMessage(msg);\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.obj = result;\r\n\t\t\tmsg.what = 1;\r\n\t\t\tmHandler.sendMessage(msg);\r\n\t\t}\r\n\t}",
"public void getOrdini(){\n caricamento = ProgressDialog.show(getActivity(), \"Cerco i tuoi ordini!\",\r\n \"Connessione con il server in corso...\", true);\r\n caricamento.show();\r\n\r\n JSONObject postData = new JSONObject();\r\n try {\r\n postData.put(\"id_utente\", Parametri.id);\r\n\r\n } catch (Exception e) {\r\n caricamento.dismiss();\r\n return;\r\n }\r\n\r\n Connessione conn = new Connessione(postData, \"POST\");\r\n conn.addListener(this);\r\n //In Parametri.IP c'è la path a cui va aggiunta il nome della pagina.php\r\n conn.execute(Parametri.IP + \"/SistudiaMieiOrdiniAndroid.php\");\r\n\r\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tR.string.No_Internet_Connection,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.show();\n\n\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ActualizarCompromiso\";\r\n\t}",
"@Override\n public void connecterFibreOptique() throws ConnecteurException, RemoteException, MalformedURLException, NotBoundException {\n Naming.rebind(url, (ConnecteurRemoteInterface) this);\n \n // Enregistrement de tous les autres connecteurs\n // et notification a tous les autres connecteurs\n for (String name : Naming.list(\"rmi://localhost:1099/\")) {\n name = \"rmi:\" + name;\n if (!name.equals(url)) {\n Remote o = Naming.lookup(name);\n if (o instanceof ConnecteurRemoteInterface) {\n // Enregistrement du connecteur courant\n System.out.println(url + \": \\tEnregistrement auprès de \" + name);\n ((ConnecteurRemoteInterface) o).enregistrerConnecteur(url, controleurUrl);\n // Enregistrement d'un connecteur distant\n enregistrerConnecteur(name, (ConnecteurRemoteInterface) o);\n }\n else if (o instanceof PrismeRemoteInterface) {\n if (prisme == null) {\n this.prismeUrl = name;\n prisme = (PrismeRemoteInterface) o;\n prisme.enregisterConnecteur(url);\n }\n else {\n throw new ConnecteurException(\"Plusieurs prismes semblent exister.\");\n }\n }\n }\n }\n connecteur.connecter();\n }",
"private void showDialogNoNet() {\n View view = getLayoutInflater().inflate(R.layout.dialog_no_internet, null);\n\n Button btn_retry = (Button) view.findViewById(R.id.btn_retry);\n\n final Dialog dialog = new Dialog(this, android.R.style.Theme_DeviceDefault_Light_NoActionBar_TranslucentDecor);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(view);\n dialog.show();\n\n btn_retry.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //retry and close dialogue\n if (dialog.isShowing()) {\n dialog.cancel();\n onRetryLoadPaperGroups();\n }\n }\n });\n }",
"public void goOnline()\n\t{\t\t\n\t\ttry {\n\t\t\tchatConnection.openConnection(connectionconfig);\n\t\t\tgetMainWindow().displayOnlineSymbol();\n\t\t\tconfig_ok = true;\n\t\t} catch (Exception e) {\n\t\t\tconfig_ok = false;\n\t\t\tcreateConnectionConfigurationDialog(e.getMessage());\n\t\t\t\n\t\t}\n\t}",
"public void onClick(View view) {\n ConnectivityManager connection = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo info = connection.getActiveNetworkInfo();\n if (info !=null && info.isConnected()) {\n\n new FetchWeatherData().execute();\n\n } else {\n Toast.makeText(MainActivity.this, \"Check the internet Connection\", Toast.LENGTH_SHORT).show();\n }\n }",
"public String getUrl()\n\t\t{\n\t\t\treturn \"https://developer.zohoapis.eu\";\n\t\t}",
"private void buscarCampos() throws MalformedURLException {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n if (networkInfo != null && networkInfo.isConnected()) {\n // Iniciar Tarea asícrona\n\n new buscarRegistros().//Crear método\n execute(\n new URL(\"http://jmonzon.eu5.org/juego/consulta_puntuaciones.php\"));\n\n\n } else {\n Toast.makeText(this, \"Error de conexión\", Toast.LENGTH_LONG).show();\n }\n\n }",
"@Override\n public void setWeb(String web) {\n this.web = web;\n }",
"public void checkConnection() {\n\t\tif (isOnline()) {\n\t\t\tgetFirsTopRatedMovies();\n\t\t} else {\n\t\t\tprogress.setVisibility(View.GONE);\n\t\t\tlayout_nothing_to_show.setVisibility(View.VISIBLE);\n\t\t\tToast.makeText(this, getString(R.string.no_netowrk), Toast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"private void showNoConnectionDialog()\r\n\t{\t\r\n\t\t// Create and show dialog\r\n\t\tfinal NoInternetConnectionDialogBuilder noConnectionDialogBuilder = new NoInternetConnectionDialogBuilder(this);\r\n\t\tfinal AlertDialog alert = noConnectionDialogBuilder.create( );\r\n\t\talert.show( );\r\n\t}",
"private void connect(){\n // Averiguem quina direccio IP hem d'utilitzar\n InetAddress iAddress;\n try {\n iAddress = InetAddress.getLocalHost();\n String IP = iAddress.getHostAddress();\n\n //Socket sServidor = new Socket(\"172.20.31.90\", 33333);\n sServidor = new Socket (String.valueOf(IP), 33333);\n doStream = new DataOutputStream(sServidor.getOutputStream());\n diStream = new DataInputStream(sServidor.getInputStream());\n } catch (ConnectException c){\n System.err.println(\"Error! El servidor no esta disponible!\");\n System.exit(0);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected boolean checkInternetConnection() {\n if (!Utils.hasInternetConnection(getApplicationContext())) {\n final AlertDialog.Builder adBuilder = createAlertDialog(R.string.dialog_title_no_internet, R.string.dialog_message_no_internet);\n adBuilder.setPositiveButton(R.string.dialog_btn_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n adBuilder.show();\n return false;\n }\n\n return true;\n }",
"private String getJiaoDaUrl(MesItemHolder holder) {\n StringBuilder url = new StringBuilder(holder.getBaseUrl());\n if(holder.isPull()){\n url.append(\"?modcode=jygl_xjhxxck&subsyscode=zpfw&type=searchXjhxx&xjhType=all\");\n }else{\n\n url.append(\"?ype=goPager&requestPager=pager&pageMethod=next¤tPage=\"+(holder.getPager()-1));\n }\n return url.toString();\n }",
"public void conectar() {\n\t\tif (isOnline()) {\n\t\t\tregister_user();\n\n\t\t} else {\n\t\t\tToast notification = Toast.makeText(this,\n\t\t\t\t\t\"Activa tu conexión a internet\", Toast.LENGTH_SHORT);\n\t\t\tnotification.setGravity(Gravity.CENTER, 0, 0);\n\t\t\tnotification.show();\n\t\t\t//progreso.setVisibility(View.GONE);\n\t\t\tsetProgressBarIndeterminateVisibility(false);\n\t\t}\n\t}",
"public interfaceQH() {\n initComponents();\n \n // -- [ Inicializando variáveis ] --\n allSenhas = new StringBuilder();\n contador = 0;\n //todasSenhas = new LinkedList();\n todasSenhas = new Vector();\n txtStatus.setText(\"Status: Offline\");\n clienteID = 0;\n \n \n try {\n txtIP.setText(\"IP: \"+InetAddress.getLocalHost().getHostAddress());\n } catch (UnknownHostException ex) {\n Logger.getLogger(interfaceQH.class.getName()).log(Level.SEVERE, null, ex);\n } \n }",
"private void connect() {\n try {\n document = Jsoup.connect(link).get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n protected Void doInBackground(Void... params) {\n try {\n documentoHtml = Jsoup.connect(\"http://eldolarenmexico.com/\").get();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public final int isInternetOn() {\n ConnectivityManager connec =\r\n (ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\r\n\r\n // Check for network connections\r\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\r\n\r\n // if connected with internet\r\n\r\n //Toast.makeText(this, \" Connected \", Toast.LENGTH_LONG).show();\r\n return 1;\r\n\r\n } else if (\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\r\n\r\n //Toast.makeText(this, \" Not Connected \", Toast.LENGTH_LONG).show();\r\n return 0;\r\n }\r\n return 0;\r\n }",
"private void setKlarosUrl(final String value) {\n\n klarosUrl = value;\n }",
"void onConnectToNetByIPSucces();",
"@Override\r\n\tpublic void getUrl() {\n\r\n\t}",
"@Override\n public void onNetworkConnectionChanged(boolean isInternetConnected) {\n if(isInternetConnected){\n hideLoadingDialog();\n getCurrentLocation();\n }else {\n showLoadingDialog(R.string.no_internet_connection);\n }\n }",
"private void loadPage() {\n \t\n if (((sPref.equals(ANY)) && (wifiConnected || mobileConnected))\n || ((sPref.equals(WIFI)) && (wifiConnected))) {\n // AsyncTask subclass\n \t\n new DownloadXmlTask().execute(URL);\n } else {\n showErrorPage();\n }\n }",
"@Override\n\t\t\tpublic void onConnectRemoteNode(String url) {\t \t\t\t\n\t\t\t}",
"public EnviarArchivo(String nombre,String ip) {\n initComponents();\n //iniciamos configuracion de la ventana\n iniciarVentana();\n //Colocamos titulo a ventana\n this.setTitle(\"Enviar Archivo a \"+nombre);\n //guardamos datos recividos en las variables globales\n this.nombre=nombre;\n this.ip=ip;\n //ocultamos los botones de tipo de envio\n rbtnSecuencial.setVisible(false);\n rbtnSimultaneo.setVisible(false);\n }"
]
| [
"0.6559449",
"0.6524753",
"0.6327992",
"0.61873025",
"0.61352503",
"0.60133916",
"0.5841682",
"0.5830137",
"0.58147985",
"0.57825375",
"0.5715675",
"0.56574386",
"0.56484234",
"0.56475306",
"0.56347215",
"0.5631908",
"0.56266385",
"0.5619457",
"0.5618019",
"0.559326",
"0.5589075",
"0.55710053",
"0.5534268",
"0.55198693",
"0.5506375",
"0.54951537",
"0.546763",
"0.54545856",
"0.54378796",
"0.54378796",
"0.54335666",
"0.54292655",
"0.5424869",
"0.54247165",
"0.5418158",
"0.5413015",
"0.54113257",
"0.5408704",
"0.5406147",
"0.5395871",
"0.53918546",
"0.53895587",
"0.53847134",
"0.53772867",
"0.5374075",
"0.53694475",
"0.53665876",
"0.53645474",
"0.5350162",
"0.5338698",
"0.53341615",
"0.53324455",
"0.5327873",
"0.5319615",
"0.53101593",
"0.5306837",
"0.53027093",
"0.5301423",
"0.530037",
"0.5299665",
"0.5282113",
"0.52806854",
"0.52800596",
"0.5279882",
"0.5279882",
"0.52755797",
"0.5274092",
"0.5271836",
"0.526548",
"0.5264592",
"0.5261068",
"0.5258955",
"0.52491236",
"0.52460515",
"0.52451134",
"0.5245062",
"0.5244779",
"0.5233558",
"0.5232798",
"0.5221699",
"0.52201235",
"0.5215345",
"0.5215181",
"0.521366",
"0.52087796",
"0.5208117",
"0.5205777",
"0.5201025",
"0.5196465",
"0.5196367",
"0.51957256",
"0.51934654",
"0.5186488",
"0.5183292",
"0.5181026",
"0.51801896",
"0.5179997",
"0.51773745",
"0.5171569",
"0.51661474",
"0.5165274"
]
| 0.0 | -1 |
Untuk mengunduh rekaman khotbah | public void DownloadFiles(String url, String deskripsi, String judul) {
String urlWeb = url;
DownloadManager.Request request = new DownloadManager.Request(Uri.parse(urlWeb.replace("https://", "http://")));
request.setDescription(deskripsi);
request.setTitle(judul);
request.allowScanningByMediaScanner();
request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);
String namaFile = deskripsi + "_" + judul + ".mp3";
request.setDestinationInExternalPublicDir(Environment.DIRECTORY_DOWNLOADS, namaFile);
DownloadManager manager = (DownloadManager) getActivity().getSystemService(Context.DOWNLOAD_SERVICE);
manager.enqueue(request);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verarbeite() {\n\t\t\r\n\t}",
"private void xoatrangactrtion() {\n\t\ttxtmakhhm.setText(\"\");\n\t\ttxtTinhtrang.setText(\"\");\n\t\ttxtGhichu.setText(\"\");\n\t\tjdcNgaytra.setToolTipText(\"\");\n\t\tckTra.setToolTipText(\"\");\n\t\t\n\t}",
"private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }",
"public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }",
"public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }",
"void tampilKarakterA();",
"private void kosong(){\n txt_id_rute.setText(null);\n txt_nama_koridor.setText(null);\n txt_tujuan.setText(null);\n }",
"public static void hapus() {\n int dump;\n System.out.print(\"Index Ke = \");\n dump = input.nextInt();\n try {\n todolist.remove(dump);\n kembali(\"Data Berhasil Hapus\");\n\n }catch (IndexOutOfBoundsException e){\n kembali(\"Index Yang Anda Input Salah\");\n }\n }",
"public void tampilKarakterC(){\r\n System.out.println(\"Saya adalah binatang \");\r\n }",
"private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }",
"public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"public void asetaTeksti(){\n }",
"public void limpiar() {\r\n\t\t\t\tid.setText(\"\");\r\n\t\t\t\ttitulo.setText(\"\");\r\n\t\t\t\tdirector.setText(\"\");\r\n\t\t\t\tidCliente.setText(\"\");\r\n\t\t\t}",
"public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }",
"public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }",
"public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }",
"private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }",
"@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }",
"@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }",
"public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }",
"public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }",
"public static void edit() {\n int dump;\n String dumps;\n System.out.println(\"Silahkan Pilih Index data ke-\");\n System.out.print(\"Index Ke = \");\n dump = input.nextInt();\n try {\n System.out.print(\"\");\n dumps = input.nextLine();\n if (dumps.isBlank() && dumps.isEmpty()){\n System.out.print(\"Input Tugas : \");\n }\n dumps = input.nextLine();\n todolist.set(dump, dumps);\n kembali(\"Data Berhasil Dirubah\");\n\n }catch (IndexOutOfBoundsException e){\n kembali(\"Index Yang Anda Input Salah\");\n }\n }",
"public String thuchienAction(){\n\t\tXuatReport();\n\t\tresetFormB4135=null;\n\t\treturn \"B4160_Chonmenuxuattaptin\";\n\t}",
"static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }",
"public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }",
"static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }",
"@Override\r\n\tpublic void actionMisil() {\n\t\tSystem.out.println(\"미사일 있다.\");\r\n\t}",
"public void limpiar() {\n Menus.jTTraducido.setText(null);\n Menus.jTTraducir.setText(null);\n }",
"void rezervasyonYap(String name, String surname, String islem);",
"public void klikkaa(Tavarat tavarat, Klikattava klikattava);",
"public void tulostaKomennot() {\n this.io.tulostaTeksti(\"Komennot: \");\n for (int i = 1; i <= this.komennot.keySet().size(); i++) {\n this.io.tulostaTeksti(this.komennot.get(i).toString());\n }\n this.io.tulostaTeksti(\"\");\n }",
"@Override\r\n\tpublic void trunOff() {\n\t\tSystem.out.println(\"켜다\");\r\n\t}",
"public void trenneVerbindung();",
"void unsetNcbieaa();",
"private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }",
"public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }",
"void kiemTraThangHopLi() {\n }",
"public void tyhjenna() {\n this.kulmat.clear();\n }",
"public void hapusDataProduk(){\n loadDataProduk(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ kode_barang +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM barang WHERE kode_barang='\"+ kode_barang +\"'\";\n PreparedStatement p =(PreparedStatement)koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataProduk();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"DATA BARANG BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n \n }",
"public abstract String dohvatiKontakt();",
"public Kurama(){\n super(\"Kurama\",3,800,800,\"n\",19,5);\n }",
"private void xuLyThanhToanDVReload() {\n txtThanhToanDVGiaDV.setText(\"\");\n txtThanhToanDVSoLuong.setText(\"\");\n txtThanhToanDVSoLuongMoi.setText(\"\");\n txtThanhToanDVSoLuongCu.setText(\"\");\n txtThanhToanTongCong.setText(\"0\");\n tongCong=0;\n cbbThanhToanMaKH.removeAllItems();\n hienThiMaKHSuDungDV();\n }",
"private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }",
"public Tura() {\n\t\tLicznikTur = 0;\n\t}",
"void Vorrücken()\n {\n }",
"public static void imprimirMenu() {\r\n\tSystem.out.println(\"---------------------------menu---------------------------\");\r\n\tSystem.out.println(\"opciones: (ingrese como RF#)\");\r\n\tSystem.out.println(\"RF1: iniciar sesion \");\r\n System.out.println(\"RF2: registrarse al sistema\");\r\n\tSystem.out.println(\"RF3: Salir\");\r\n\t\r\n }",
"@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}",
"private void clearHocSinh() {\n\t\ttxtMa.setText(\"\");\n\t\ttxtTen.setText(\"\");\n\t\ttxtTuoi.setText(\"\");\n\t\ttxtSdt.setText(\"\");\n\t\ttxtDiaChi.setText(\"\");\n\t\ttxtEmail.setText(\"\");\n\t}",
"public void deskripsi() {\r\n System.out.println(this.nama + \" bekerja di Perusahaan \" + Employee.perusahaan + \" dengan usia \" + this.usia + \" tahun\");\r\n }",
"private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"private void remplirUtiliseData() {\n\t}",
"public void Makan()\n\t{\n\tSystem.out.println(\"Harimau Makan Daging dan minum susu\");\n\tSystem.out.println();\n\t}",
"public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }",
"private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }",
"public static void imprimirMenuAdmin() {\r\n\tSystem.out.println(\"---------------------------menu---------------------------\");\r\n\tSystem.out.println(\"opciones: (ingrese la letra)\");\r\n\tSystem.out.println(\"A: despliega la opción taquilla\");\r\n System.out.println(\"B: despliega la opción informacion cliente\");\r\n\tSystem.out.println(\"C: Salir\");\r\n\tSystem.out.println(\"----------------------------------------------------------\");\r\n }",
"private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }",
"void deleteMataKuliah (int id);",
"public void imprimir() {\r\n NodoPila reco=raiz;\r\n System.out.println(\"Listado de todos los elementos de la pila:\");\r\n while (reco!=null) {\r\n System.out.print(reco.dato+\" \");\r\n reco=reco.sig;\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }",
"void detallePokemon(){\n System.out.println(numero+\" - \"+nombre);\n }",
"public static void main(String[] args) {\n System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(\"--Selamat Datang Di Kuis Matematika--\");\n System.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\n System.out.println(\"Daftar soal: \");\n soal();\n System.out.println(\"Silahkan input angka sesuai dengan nomer soal: \");\n pilihan();\n \n \n \n }",
"public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }",
"private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}",
"public void undoZug(int anzahlZuege) {\n\r\n\t}",
"public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }",
"public void tallenna() throws SailoException {\r\n if (!muutettu) return;\r\n \r\n File fbak = new File(getBakNimi());\r\n File ftied = new File(getTiedostonNimi());\r\n fbak.delete();\r\n ftied.renameTo(fbak);\r\n\r\n try ( PrintStream fo = new PrintStream(new FileOutputStream(ftied.getCanonicalPath())) ) {\r\n for (Aika aika : this) {\r\n fo.println(aika.toString());\r\n }\r\n } catch ( FileNotFoundException ex ) {\r\n throw new SailoException(\"Tiedosto \" + ftied.getName() + \" ei aukea\");\r\n } catch ( IOException ex ) {\r\n throw new SailoException(\"Tiedoston \" + ftied.getName() + \" kirjoittamisessa ongelmia\");\r\n }\r\n\r\n muutettu = false;\r\n }",
"public void obtenerSiguientePregunta() {\r\n\t\tlblPregunta.setText(cuestionario.getPreguntas().get(0));\r\n\t\tcuestionario.getPreguntas().remove(0);\r\n\r\n\t}",
"public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}",
"public main(String nama) {\n initComponents();\n hargat();\n selectData();\n String nama_kasir = nama;\n kasir.setText(nama);\n }",
"@Override\n\tpublic void bildir(){\n\t\tif(durum == true){\n\t\t\tSystem.out.println(\"Durum: Acik\");\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Durum: Kapali\");\n\t\t}\n\t\t\n\t}",
"public void asignarVida();",
"public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}",
"private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"private void popuniTabelu() {\n try {\n List<PutnikEntity> putnici=Controller.vratiSvePutnike();\n TableModel tm=new PutnikTableModel(putnici);\n jtblPutnici.setModel(tm);\n } catch (Exception ex) {\n Logger.getLogger(FIzaberiLet.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@FXML\r\n private void HBSimpan(ActionEvent event) {\n String xml = xstream.toXML(resi);\r\n FileOutputStream xx = null;\r\n try {\r\n // membuat nama file & folder tempat menyimpan jika perlu\r\n xx = new FileOutputStream(\"xoxo.xml\");\r\n \r\n // mengubah karakter penyusun string xml sebagai \r\n // bytes (berbentuk nomor2 kode ASCII\r\n byte[] bytes = xml.getBytes(\"UTF-8\");\r\n // menyimpan file dari bytes\r\n xx.write(bytes);\r\n } \r\n catch (Exception e) {\r\n System.err.println(\"Perhatian: \" + e.getMessage());\r\n } \r\n finally {\r\n if (xx != null) {\r\n try {\r\n xx.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n } \r\n\r\n }",
"public void renovarBolsa() {\n\t\tSystem.out.println(\"Bolsa renovada com suceso!\");\n\t}",
"public void tiepTucNhap() {\n\t\tlog.info(\"-----tiepTucNhap()-----\");\n\t\tlog.info(String.format(\"-----index: %s\", updateItem));\n\t\t\n\t\tlog.info(\"tonkhoMa:\"+tonkhoMa);\n\t\tlog.info(\"xuat:\"+xuat);\n\t\tlog.info(\"dmtMa:\"+dmtMa);\n\t\tlog.info(\"updateItem:\"+updateItem);\n\t\tlog.info(\"tonkho:\"+tonkho);\n\n\t\tif (xuat == null || xuat.equals(\"\") || tonkho == null || tonkho.equals(\"\")){\n\t\t\treturn;\n\t\t}\n\t\t \n\t\tif (\"\".equals(tonkhoMa) && tonkhoMa == null) {\n\t\t\tlog.info(\"-----tonkho ma is null.\");\n\t\t} else {\n\t\t\tlog.info(String.format(\"-----tonkho ma: %s\", tonkhoMa));\n\t\t\tTonKho tk = null;\n\t\t\t\n\t\t\tTonKhoDelegate tkDelegate;\n\t\t\ttry {\n\t\t\t\ttkDelegate = TonKhoDelegate.getInstance();\n\t\t\t\t\n\t\t\t\ttk = tkDelegate.find(Integer.valueOf(tonkhoMa));\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tCtTraKho ctx = new CtTraKho();\n\t\t\t\n\t\t\tDouble slXuat = new Double(\"0\");\n\t\t\tfor (int i = 0; i < listCtKhoLeTraEx.size(); i++) {\n\t\t\t\tCtTraKho ctxk = listCtKhoLeTraEx.get(i).getCtTraKho();\n\t\t\t\tif (malk.equals(ctxk.getCttrakhoMalk())) {\n\t\t\t\t\tlog.info(\"-----malk \" + malk);\n\t\t\t\t\tslXuat += ctxk.getCttrakhoSoluong();\n\t\t\t\t\tupdateItem = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tslXuat += Double.valueOf(xuat);\n\t\t\tctx.setCttrakhoSoluong(slXuat);\n\t\t\tCtTraKhoExt ctxEx = createCtXuatKho(ctx, tk);\n\t\t\tlog.info(\"-----xuat: \" + slXuat);\n\t\t\t\n\t\t\tif (updateItem.equals(-1)) {\n\t\t\t\tlog.info(\"-----them moi ct\");\n\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t} else {\n\t\t\t\tlog.info(\"-----Cap nhat ct-----\");\n\t\t\t\tif (tk != null) {\n\t\t\t\t\tlistCtKhoLeTraEx.set(updateItem, ctxEx);\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_TK_NULL, dmtMa);\n\t\t\t\t}\n\n\t\t\t\tlog.info(String.format(\"-----update ct: %s\", ctx.getCttrakhoThutu()));\n\t\t\t}\n\n\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\tlog.info(String.format(\"-----listCtXuatKho: %s\", listCtKhoLeTraEx.size()));\n\t\t\ttonkhoMa = \"\";\n\t\t\tdmtMa = \"\";\n\t\t\ttonkho = new Double(0);\n\t\t\txuat = new Double(0);\n\t\t\tupdateItem = -1;\n\t\t}\n\t\ttinhTien();\n\t}",
"public boolean iliskMutfakSil(int kullanici_no) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n String sorgu3 = \"delete iliski_mutfak from iliski_mutfak where kullanici_no=\" + kullanici_no + \"\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n vb.con.close();\r\n return true;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return false;\r\n }\r\n }",
"public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}",
"public doimatkhau() {\n initComponents();\n setLocationRelativeTo(null);\n txtTendangnhap.setText(sharehelper.user.getMaNV());\n }",
"private void resetLexeme(){\n\t\tcola = \"\";\n\t}",
"public void generarId() {\n try{\n int numAleatorio = (int)(Math.random()*99999);\n boolean resultado = dgt.generarIdAutomatico(numAleatorio);\n tfid.setText(String.valueOf(numAleatorio));\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"public void supprimerRenommage(){\n supprRenomGram.supprRenom();\n setChanged();\n notifyObservers(\"5\");\n }",
"public void descontarUnidad() {\r\n\t\tcantidad--;\r\n\t}",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }",
"public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }",
"public void resetKassa() {\n aantalklanten = 0;\n aantalartikelen = 0;\n geld = 0;\n }",
"private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }",
"@Override\r\n\tpublic void 자기() {\n\t\tSystem.out.println(\"잠을 잔다\");\r\n\t}",
"private void hienThi() {\n try {\n if (isInsert) {\n txtMaThucAn.setText(ThucPhamController.hienMa());\n txtMaThucAn.setEnabled(false);\n hienTrangThai();\n } else {\n txtMaThucAn.setText(tp.getMathucpham());\n txtMaThucAn.setEnabled(false);\n txtTenThucAn.setText(tp.getTenthucpham());\n jSpinSoLuong.setValue(tp.getSoluong());\n String sDonGia = Integer.toString((int) tp.getDongia());\n txtDonGia.setText(sDonGia);\n hienTrangThai();\n if (tp.getTrangthai() == 1) {\n cbbTrangThai.setSelectedIndex(0);\n } else {\n cbbTrangThai.setSelectedIndex(1);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }",
"public static void pocetniMeni() {\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"***********************************************\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 1 ako zelite vidjeti kalendar(za dati mjesec i godinu)\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 2 za pregled podsjetnika za dati mjesec i godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 3 da pregledate podsjetnik za datu godinu\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 4 ako zelite da pogledate sve podsjetnike!\\n\"\r\n\t\t\t\t\t\t+ \"Unesite 5 ako zelite da upisete neki podsjetnik!\\n\"\r\n\t\t\t\t\t\t+ \":::::::::::::::::::::::::::::::::::::::::::::::\");\r\n\t}",
"private static int menu() {\n\t\tint opcion;\n\t\topcion = Leer.pedirEntero(\"1:Crear 4 Almacenes y 15 muebeles\" + \"\\n2: Mostrar los muebles\"\n\t\t\t\t+ \"\\n3: Mostrar los almacenes\" + \"\\n4: Mostrar muebles y su almacen\" + \"\\n0: Finalizar\");\n\t\treturn opcion;\n\t}",
"public void imprimirHijos(){\n\t\tmodCons.imprimirHijos();\n\t}",
"public static void tambahDepan() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH DEPAN : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- -- --bagian mencangkokkan simpul baru ke dalam simpul lama--- ----- --\n if (awal == null) // jika senarai masih kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kanan = awal;\n awal.kiri = baru;\n awal = baru;\n awal.kiri = null;\n }\n }",
"private void tampilkan() {\n int row = table.getRowCount();\n for(int a= 0; a<row;a++){\n model.removeRow(0);\n }\n \n \n }",
"private static int menu() {\r\n\t\tSystem.out.println(\"Elige opcion de jugada:\");\r\n\t\tSystem.out.println(\"1-Piedra\");\r\n\t\tSystem.out.println(\"2-Papel\");\r\n\t\tSystem.out.println(\"3-Tijera\");\r\n\t\tSystem.out.println(\"0-Salir\");\r\n\t\tSystem.out.print(\"Opcion: \");\r\n\t\treturn Teclado.leerInt();\r\n\t}",
"public void LimpiarCampos(){\n txtNombre.setText(\"\");\n txtCantidad.setText(\"0\");\n txtMora.setText(\"0\");\n txtDescuento.setText(\"0\");\n this.IDactual=0;\n this.modo=\"agregar\";\n }",
"public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }",
"private void aumentarPuntos() {\r\n this.puntos++;\r\n this.form.AumentarPuntos(this.puntos);\r\n }",
"protected void ufoTuhoutuuOsumasta(Ufo ufo, Kuti kuti) {\n kuti.die();\n grafiikka.asetaKuvaRajahdykselle();\n ufo.setImage(grafiikka.getRajahdys().getImage());\n ufo.setKuolee(true);\n tuhotut++;\n }",
"public Harimau(String namaHarimau)\n\t{\n\t//mengisi pengubah yang diwarisi oleh kelas abstract\n\tHarimau.nama = namaHarimau;\n\t}"
]
| [
"0.62359446",
"0.620327",
"0.6152941",
"0.61167735",
"0.60537285",
"0.6013601",
"0.5908117",
"0.58940876",
"0.58727306",
"0.5836862",
"0.5822282",
"0.5807381",
"0.5806821",
"0.5762078",
"0.5759977",
"0.5733849",
"0.5730212",
"0.5718472",
"0.57151246",
"0.56931216",
"0.5688224",
"0.5682438",
"0.56794375",
"0.5622856",
"0.56179255",
"0.5613598",
"0.5610117",
"0.56012833",
"0.55835503",
"0.55813044",
"0.55734456",
"0.55583346",
"0.5543215",
"0.5540293",
"0.553943",
"0.5538861",
"0.5534595",
"0.5530101",
"0.5529666",
"0.5524159",
"0.5504286",
"0.54952973",
"0.5495202",
"0.54947287",
"0.549359",
"0.548669",
"0.5482944",
"0.54811054",
"0.54774487",
"0.5476142",
"0.5466714",
"0.5464537",
"0.54640996",
"0.546233",
"0.5461158",
"0.5457817",
"0.54508346",
"0.5441009",
"0.54338425",
"0.5433538",
"0.5432706",
"0.54325426",
"0.54266584",
"0.5422189",
"0.5414093",
"0.5413469",
"0.540903",
"0.54007363",
"0.5399869",
"0.5390579",
"0.5388921",
"0.538537",
"0.5373103",
"0.5371596",
"0.5365676",
"0.536356",
"0.5354214",
"0.53507805",
"0.5345439",
"0.53407294",
"0.53378916",
"0.53376096",
"0.533332",
"0.533188",
"0.53316605",
"0.53311807",
"0.5327465",
"0.53198445",
"0.53154343",
"0.5315361",
"0.5311597",
"0.53097796",
"0.5308296",
"0.5304375",
"0.5301158",
"0.53009534",
"0.52965593",
"0.52942425",
"0.52913636",
"0.5290901",
"0.5289688"
]
| 0.0 | -1 |
Hapus semua tampilan terlebih dahulu sebelum menampilkan hasil pencarian | @Override
protected void onPostExecute(String result) {
crk.removeAllViews();
if (arr.length() == 0 && isNetworkAvailable()){
Toast.makeText(getActivity().getApplicationContext(), "Rekaman khotbah yang Anda cari tidak ditemukan", Toast.LENGTH_SHORT).show();
}
myLinearLayout = (LinearLayout) rootView.findViewById(R.id.container_rekamanKhotbah);
myLinearLayout.setOrientation(LinearLayout.VERTICAL);
// Add LayoutParams
LinearLayout.LayoutParams params0 = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
params0.setMargins(0, 0, 0, 0);
LinearLayout.LayoutParams paramsJarakJudulDenganIsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
paramsJarakJudulDenganIsi.setMargins(0, 10, 0, 0);
LinearLayout.LayoutParams paramsJarakAntarIsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);
paramsJarakAntarIsi.setMargins(0, 0, 0, 0);
rowLayout = new LinearLayout(getActivity());
rowLayout.setOrientation(LinearLayout.HORIZONTAL);
// Buat linear layout vertical untuk menampung kata-kata
colLayout = new LinearLayout(getActivity());
colLayout.setOrientation(LinearLayout.VERTICAL);
colLayout.setPadding(0, 10, 10, 0);
subRowLayout = new LinearLayout(getActivity());
subRowLayout.setOrientation(LinearLayout.HORIZONTAL);
int dataLength = arr.length();
int defaultColor = getResources().getColor(R.color.defaultFontColor);
String container, judul = null, isi = null, tanggal = null, pembicara = null;
// Generate konten Khotbah dalam loop for
for (int i = 0; i < dataLength; i++) {
JSONObject jsonobj = null;
judul = "";
try {
jsonobj = arr.getJSONObject(i);
judul = jsonobj.getString("judul");
isi = jsonobj.getString("isi");
tanggal = jsonobj.getString("tanggal");
pembicara = jsonobj.getString("pembicara");
} catch (JSONException e) {
e.printStackTrace();
}
// Add TextView titleJudulTV
titleJudulTV = new TextView(getActivity());
titleJudulTV.setText("Judul: ");
titleJudulTV.setTextColor(defaultColor);
titleJudulTV.setLayoutParams(paramsJarakJudulDenganIsi);
subRowLayout.addView(titleJudulTV);
// Add TextView judulTV
judulTV = new TextView(getActivity());
judulTV.setText(judul);
judulTV.setTextColor(defaultColor);
judulTV.setLayoutParams(paramsJarakJudulDenganIsi);
subRowLayout.addView(judulTV);
colLayout.addView(subRowLayout);
subRowLayout = new LinearLayout(getActivity());
// Add TextView titleIsiTV
titleIsiTV = new TextView(getActivity());
titleIsiTV.setText("Khotbah ");
titleIsiTV.setTextColor(defaultColor);
titleIsiTV.setLayoutParams(paramsJarakAntarIsi);
subRowLayout.addView(titleIsiTV);
// Add TextView isiTV
isiTV = new TextView(getActivity());
isiTV.setText(Html.fromHtml("<a href=\"" + Controller.urlaudio + isi + "\">" + "dapat di dengarkan di sini" + "</a>"));
isiTV.setClickable(true);
isiTV.setMovementMethod(LinkMovementMethod.getInstance());
isiTV.setLayoutParams(paramsJarakAntarIsi);
subRowLayout.addView(isiTV);
colLayout.addView(subRowLayout);
subRowLayout = new LinearLayout(getActivity());
// Add TextView titleTanggalTV
titleTanggalTV = new TextView(getActivity());
titleTanggalTV.setText("Tanggal: ");
titleTanggalTV.setTextColor(defaultColor);
titleTanggalTV.setLayoutParams(paramsJarakAntarIsi);
subRowLayout.addView(titleTanggalTV);
// Add TextView tanggalTV
tanggalTV = new TextView(getActivity());
tanggalTV.setText(tanggal);
tanggalTV.setTextColor(defaultColor);
tanggalTV.setLayoutParams(paramsJarakAntarIsi);
subRowLayout.addView(tanggalTV);
colLayout.addView(subRowLayout);
subRowLayout = new LinearLayout(getActivity());
// Add TextView titlePembicaraTV
titlePembicaraTV = new TextView(getActivity());
titlePembicaraTV.setText("Pembicara: ");
titlePembicaraTV.setTextColor(defaultColor);
titlePembicaraTV.setLayoutParams(paramsJarakAntarIsi);
subRowLayout.addView(titlePembicaraTV);
// Add TextView pembicaraTV
pembicaraTV = new TextView(getActivity());
pembicaraTV.setText(pembicara);
pembicaraTV.setTextColor(defaultColor);
pembicaraTV.setLayoutParams(paramsJarakAntarIsi);
subRowLayout.addView(pembicaraTV);
colLayout.addView(subRowLayout);
subRowLayout = new LinearLayout(getActivity());
// Add button for download
final String linkDownload = Controller.urlaudio + isi;
final String finalTanggal = tanggal;
final String finalJudul = judul;
downloadButton = new Button(getActivity());
downloadButton.setText("Download");
downloadButton.setTextColor(getResources().getColor(R.color.white));
downloadButton.setBackgroundColor(getResources().getColor(R.color.header));
downloadButton.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View v) {
DownloadFiles(linkDownload, finalTanggal, finalJudul);
}
}
);
if (i != dataLength) {
rowLayout.addView(colLayout);
myLinearLayout.addView(rowLayout);
rowLayout = new LinearLayout(getActivity());
colLayout = new LinearLayout(getActivity());
colLayout.setOrientation(LinearLayout.VERTICAL);
subRowLayout = new LinearLayout(getActivity());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static PohonAVL seimbangkanKembaliKiri (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n if(tinggi(p.kiri) <= (tinggi(p.kanan)+1)) return p;\n else{\n PohonAVL ki = p.kiri;\n PohonAVL ka = p.kanan;\n PohonAVL kiki = ki.kiri;\n PohonAVL kika = ki.kanan;\n if(tinggi(kiki) > tinggi(ka))\n return sisipkanTinggiSeimbang(0, p)\n }\n }",
"private void ulangiEnkripsi() {\n this.tfieldP.setText(\"P\");\n this.tfieldQ.setText(\"Q\");\n this.tfieldN.setText(\"N\");\n this.tfieldTN.setText(\"TN\");\n this.tfieldE.setText(\"E\");\n this.tfieldD.setText(\"D\");\n this.tfieldLokasidannamafilehasilenkripsi.setText(\"Lokasi & Nama File Hasil Enkripsi\");\n this.tfieldLokasidannamafileenkripsi.setText(\"Lokasi & Nama File\");\n this.fileAsli = null;\n this.pbEnkripsi.setValue(0);\n this.enkripsi.setP(null);\n this.enkripsi.setQ(null);\n this.enkripsi.setN(null);\n this.enkripsi.setTn(null);\n this.enkripsi.setE(null);\n this.enkripsi.setD(null);\n }",
"public void printTagihanTamu() {\n for (Tagihan t: daftarTagihan.values()) {\n System.out.println(\"Tamu:\"+t.tamu.nama);\n System.out.println(\"Tagihan:\"+t.hitungSemuaTagihan());\n }\n }",
"public static void alamatPerusahaan() {\r\n System.out.println(\"Karyawan bekerja di Perusahaan \" + Employee.perusahaan + \" yang beralamat di Jalan Astangkuri Jakarta\");\r\n }",
"@Override\n\tpublic int hitungPemasukan() {\n\t\treturn getHarga() * getPenjualan();\n\t}",
"public static void Latihan() {\n Model.Garis();\n System.out.println(Model.subTitel[0]);\n Model.Garis();\n\n System.out.print(Model.subTitel[1]);\n Model.nilaiTebakan = Model.inputUser.nextInt();\n\n System.out.println(Model.subTitel[2] + Model.nilaiTebakan);\n\n // Operasi Logika\n Model.statusTebakan = (Model.nilaiTebakan == Model.nilaiBenar);\n System.out.println(Model.subTitel[3] + Model.hasilTebakan(Model.TrueFalse) + \"\\n\\n\");\n }",
"private static PohonAVL seimbangkanKembaliKanan(PohonAVL p) {\n //...\n // Write your codes in here\n }",
"public void kurangIsi(){\n status();\n //kondisi jika air kurang atau sama dengan level 0\n if(level==0){Toast.makeText(this,\"Air Sedikit\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(--level);\n }",
"private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}",
"public void isiPilihanDokter() {\n String[] list = new String[]{\"\"};\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(list));\n\n /*Mengambil data pilihan spesialis*/\n String nama = (String) pilihPoliTujuan.getSelectedItem();\n String kodeSpesialis = ss.serviceGetIDSpesialis(nama);\n\n /* Mencari dokter where id_spesialis = pilihSpesialis */\n tmd.setData(ds.serviceGetAllDokterByIdSpesialis(kodeSpesialis));\n int b = tmd.getRowCount();\n\n /* Menampilkan semua nama berdasrkan pilihan sebelumnya */\n pilihNamaDokter.setModel(new javax.swing.DefaultComboBoxModel(ds.serviceTampilNamaDokter(kodeSpesialis, b)));\n }",
"public String cekPengulangan(String kata) throws IOException{\n String hasil=\"\";\n if(cekUlangSemu(kata)){\n return kata+\" kata ulang semu \";\n }\n if(kata.contains(\"-\")){\n String[] pecah = kata.split(\"-\");\n String depan = pecah[0];\n String belakang = pecah[1];\n ArrayList<String> depanList = new ArrayList<String>();\n ArrayList<String> belakangList = new ArrayList<String>();\n if(!depan.equals(\"\")){\n depanList.addAll(morpParser.cekBerimbuhan(depan, 0));\n }\n if(!belakang.equals(\"\")){\n belakangList.addAll(morpParser.cekBerimbuhan(belakang, 0));\n }\n for(int i = 0; i < depanList.size(); i++){\n for(int j = 0; j < belakangList.size(); j++){\n if(depanList.get(i).equals(belakangList.get(j))){\n return depan+\" kata ulang penuh \";\n }\n }\n }\n if(depan.equals(belakang)){\n return depan+\" kata ulang penuh \";\n }\n char[] isiCharDepan = depan.toCharArray();\n char[] isiCharBelakang = belakang.toCharArray();\n boolean[] sama = new boolean[isiCharDepan.length];\n int jumlahSama=0;\n int jumlahBeda=0;\n for(int i =0;i<sama.length;i++){\n if(isiCharDepan[i]==isiCharBelakang[i]){\n sama[i]=true;\n jumlahSama++;\n }\n else{\n sama[i]=false;\n jumlahBeda++;\n }\n }\n \n if(jumlahBeda<jumlahSama && isiCharDepan.length==isiCharBelakang.length){\n return depan+\" kata ulang berubah bunyi \";\n }\n \n \n }\n else{\n if(kata.charAt(0)==kata.charAt(2)&&kata.charAt(1)=='e'){\n if((kata.charAt(0)=='j'||kata.charAt(0)=='t')&&!kata.endsWith(\"an\")){\n return kata.substring(2)+\" kata ulang sebagian \";\n }\n else if(kata.endsWith(\"an\")){\n return kata.substring(2,kata.length()-2)+\" kata ulang sebagian \";\n }\n \n }\n }\n return hasil;\n }",
"public void Showbarang_gudang() {\n initComponents();\n setHeader();\n }",
"public void hapusDataProduk(){\n loadDataProduk(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ kode_barang +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM barang WHERE kode_barang='\"+ kode_barang +\"'\";\n PreparedStatement p =(PreparedStatement)koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataProduk();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"DATA BARANG BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n \n }",
"public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"public void tambahIsi(){\n status();\n //kondisi jika air penuh\n if(level==6){\n Toast.makeText(this,\"Air Penuh\",Toast.LENGTH_SHORT).show();return;}\n progress.setImageLevel(++level);\n }",
"public void ukloniHranu() {\n\t\tthis.tabla[iHrana][jHrana] = '.';\t\t\n\t}",
"public void displayPhieuXuatKho() {\n\t\tlog.info(\"-----displayPhieuXuatKho()-----\");\n\t\tif (!maPhieu.equals(\"\")) {\n\t\t\ttry {\n\t\t\t\tDieuTriUtilDelegate dieuTriUtilDelegate = DieuTriUtilDelegate.getInstance();\n\t\t\t\tPhieuTraKhoDelegate pxkWS = PhieuTraKhoDelegate.getInstance();\n\t\t\t\tCtTraKhoDelegate ctxWS = CtTraKhoDelegate.getInstance();\n\t\t\t\tDmKhoa dmKhoaNhan = new DmKhoa();\n\t\t\t\tdmKhoaNhan = (DmKhoa)dieuTriUtilDelegate.findByMa(IConstantsRes.KHOA_KC_MA, \"DmKhoa\", \"dmkhoaMa\");\n\t\t\t\tphieuTra = pxkWS.findByPhieutrakhoByKhoNhan(maPhieu, dmKhoaNhan.getDmkhoaMaso());\n\t\t\t\tif (phieuTra != null) {\n\t\t\t\t\tmaPhieu = phieuTra.getPhieutrakhoMa();\n\t\t\t\t\tresetInfo();\n\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\t\tngayXuat = df.format(phieuTra.getPhieutrakhoNgay());\n\t\t\t\t\tfor (CtTraKho ct : ctxWS.findByphieutrakhoMa(phieuTra.getPhieutrakhoMa())) {\n\t\t\t\t\t\tCtTraKhoExt ctxEx = new CtTraKhoExt();\n\t\t\t\t\t\tctxEx.setCtTraKho(ct);\n\t\t\t\t\t\tlistCtKhoLeTraEx.add(ctxEx);\n\t\t\t\t\t}\n\t\t\t\t\tcount = listCtKhoLeTraEx.size();\n\t\t\t\t\tisFound=\"true\";\n\t\t\t\t\t// = null la chua luu ton kho -> cho ghi nhan\n\t\t\t\t\t// = 1 da luu to kho -> khong cho ghi nhan\n\t\t\t\t\tif(phieuTra.getPhieutrakhoNgaygiophat()==null)\n\t\t\t\t\tisUpdate = \"1\";\n\t\t\t\t\telse\n\t\t\t\t\t\tisUpdate = \"0\";\n\t\t\t\t} else {\n\t\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\t\treset();\n\t\t\t\t}\n\t\t\t\ttinhTien();\n\t\t\t} catch (Exception e) {\n\t\t\t\tFacesMessages.instance().add(IConstantsRes.PHIEUXUATKHO_NULL, maPhieu);\n\t\t\t\treset();\n\t\t\t\tlog.error(String.format(\"-----Error: %s\", e));\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public data_kelahiran() {\n initComponents();\n ((javax.swing.plaf.basic.BasicInternalFrameUI)this.getUI()).setNorthPane(null);\n autonumber();\n data_tabel();\n lebarKolom();\n \n \n \n }",
"public String getPesan()\n {\n return super.getMessage() + hotel_error + (\"tidak ditemukan.\");\n }",
"private void hienThi() {\n try {\n if (isInsert) {\n txtMaThucAn.setText(ThucPhamController.hienMa());\n txtMaThucAn.setEnabled(false);\n hienTrangThai();\n } else {\n txtMaThucAn.setText(tp.getMathucpham());\n txtMaThucAn.setEnabled(false);\n txtTenThucAn.setText(tp.getTenthucpham());\n jSpinSoLuong.setValue(tp.getSoluong());\n String sDonGia = Integer.toString((int) tp.getDongia());\n txtDonGia.setText(sDonGia);\n hienTrangThai();\n if (tp.getTrangthai() == 1) {\n cbbTrangThai.setSelectedIndex(0);\n } else {\n cbbTrangThai.setSelectedIndex(1);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }",
"public halamanUtama(){\n initComponents();\n setnama();\n \n try {\n BufferedImage beam = ImageIO.read(getClass().getResource(\"library.png\"));\n setIconImage(beam); \n } catch (IOException ex) {\n Logger.getLogger(halamanUtama.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n this.setTitle(\"Halaman Utama\");\n }",
"@Override\n public String getPesan()\n {\n return super.getMessage() + hotel_error + \" tidak ditemukan\";\n }",
"static String cetak_nama1() {\n return \"Nama Saya : Aprianto\";\r\n }",
"public PengambilanBarang() {\n initComponents();\n \n FormLoad();\n }",
"public static void main(String[] args) {\n String[] SexOptions = {\"Laki-Laki\",\"Perempuan\"};\r\n ImageIcon icon = new ImageIcon(\"PraktikumPemrogramanJava/Pertemuan_III/baseline_accessibility_new_black_18dp.png\");\r\n String n = (String)JOptionPane.showInputDialog(null, \"Apa Jenis Kelamin anda ?\", \"Jenis Kelamin\", JOptionPane.QUESTION_MESSAGE, null, SexOptions, SexOptions[0]);\r\n \r\n // 0=yes, 1=no, 2=cancel\r\n if (\"Laki-Laki\".equals(n)) {\r\n int confirmLaki = JOptionPane.showConfirmDialog(null, \"Apakah anda konfirmasi bahwa anda : Laki-Kali\", \"Konfirmasi Jenis Kelamin\",JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.ERROR_MESSAGE);\r\n switch (confirmLaki) {\r\n case 0:\r\n {\r\n String msg = \"Jenis Kelamin anda \"+n;\r\n JOptionPane.showMessageDialog(null, msg);\r\n break;\r\n }\r\n case 1:\r\n {\r\n String msg = \"Jenis Kelamin anda bukan \"+n;\r\n JOptionPane.showMessageDialog(null, msg);\r\n break;\r\n }\r\n default:\r\n {\r\n String msg = \"Jenis Kelamin anda Tidak ada \";\r\n JOptionPane.showMessageDialog(null, msg);\r\n break;\r\n }\r\n }\r\n } else {\r\n int confirmPerempuan = JOptionPane.showConfirmDialog(null, \"Apakah anda konfirmasi bahwa anda : Perempuan\", \"Konfirmasi Jenis Kelamin\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.ERROR_MESSAGE);\r\n switch (confirmPerempuan) {\r\n case 0:\r\n {\r\n String msg = \"Jenis Kelamin anda \"+n;\r\n JOptionPane.showMessageDialog(null, msg);\r\n break;\r\n }\r\n case 1:\r\n {\r\n String msg = \"Jenis Kelamin anda bukan \"+n;\r\n JOptionPane.showMessageDialog(null, msg);\r\n break;\r\n }\r\n default:\r\n {\r\n String msg = \"Jenis Kelamin anda Tidak ada \";\r\n JOptionPane.showMessageDialog(null, msg);\r\n break;\r\n }\r\n }\r\n \r\n \r\n }\r\n}",
"public void hapusDataKategori(){\n loadDataKategori(); \n \n //Beri peringatan sebelum melakukan penghapusan data\n int pesan = JOptionPane.showConfirmDialog(null, \"HAPUS DATA\"+ nmKategori +\"?\",\"KONFIRMASI\", JOptionPane.OK_CANCEL_OPTION);\n \n //jika pengguna memilih OK lanjutkan proses hapus data\n if(pesan == JOptionPane.OK_OPTION){\n //uji koneksi\n try{\n //buka koneksi ke database\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah hapus data\n String sql = \"DELETE FROM tbl_kembali WHERE nm_kategori='\"+ nmKategori +\"'\";\n PreparedStatement p =(PreparedStatement)koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //fungsi ambil data\n getDataKategori();\n \n //fungsi reset data\n reset();\n JOptionPane.showMessageDialog(null, \"BERHASIL DIHAPUS\");\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }\n }",
"private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }",
"private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }",
"public String dajPopis() {\n return super.dajPopis() + \"KUZLO \\nJedna tebou vybrata jednotka ziska 3-nasobnu silu\";\n }",
"public FormPencarianBuku() {\n initComponents();\n kosong();\n datatable();\n textfieldNamaFileBuku.setVisible(false);\n textfieldKodeBuku.setVisible(false);\n bukuRandom();\n }",
"public static void tambahDepan() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH DEPAN : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- -- --bagian mencangkokkan simpul baru ke dalam simpul lama--- ----- --\n if (awal == null) // jika senarai masih kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kanan = awal;\n awal.kiri = baru;\n awal = baru;\n awal.kiri = null;\n }\n }",
"public void testNamaPNSYangSkepnyaDiterbitkanOlehPresiden(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPNSYangSkepnyaDiterbitkanOlehPresiden(); \n\n\t\tshowData(data,\"nip\",\"nama\",\"tanggal_lahir\",\"tanggal_berhenti\",\"pangkat\",\"masa_kerja\",\"penerbit\");\n\t}",
"public static void mengurutkanDataBubble_TeknikTukarNilai(){\n \t\tint N = hitungJumlahSimpul();\n \t\tsimpul A=null;\n \t\tsimpul B=null;\n \t\tsimpul berhenti = akhir.kanan;\n\n \t\tSystem.out.println (\"Banyaknya simpul = \" + hitungJumlahSimpul());\n\n \t\tfor (int i=1; i<= hitungJumlahSimpul()-1; i++){\n \t\t\tA = awal;\n \t\t\tB = awal.kanan;\n \t\t\tint nomor = 1;\n\n \t\t\twhile (B != berhenti){\n\t\t\t\tif (A.nama.compareTo(B.nama)>0){\n \t\t\t\t//tukarkan elemen dari simpul A dan elemen dari simpul B\n \t\t\t\ttukarNilai(A,B);\n \t\t\t}\n\n \t\t\tA = A.kanan;\n \t\t\tB = B.kanan;\n \t\t\tnomor++;\n \t\t\t}\n \t\t\tberhenti = A;\n \t\t}\n \t\tSystem.out.println(\"===PROSES PENGURUTAN BUBBLE SELESAI======\");\n \t}",
"@Override\r\n public void Story(){\r\n super.Story();\r\n System.out.println(\"=======================================================================================\");\r\n System.out.println(\"|| Arya harus bergegas untuk menyelamatkan seluruh warga. Dia tidak tau posisi warga ||\");\r\n System.out.println(\"|| yang harus diselamatkan ada pada ruangan yang mana. ||\");\r\n System.out.println(\"=======================================================================================\");\r\n }",
"static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }",
"public frmPengembalian() {\n initComponents();\n model = new DefaultTableModel();\n \n //memberi nama header pada tabel\n tblKembali.setModel(model);\n model.addColumn(\"NAMA\");\n model.addColumn(\"ALAMAT\");\n model.addColumn(\"NO. HP\");\n model.addColumn(\"NAMA KAMERA\");\n model.addColumn(\"KODE KAMERA\");\n model.addColumn(\"TANGGAL DISEWAKAN\");\n model.addColumn(\"TANGGAL DIKEMBALIKAN\");\n model.addColumn(\"TERLAMBAT\");\n\n \n //fungsi ambil data\n getDataKategori();\n }",
"public pulsautama() {\n initComponents();\n \n model = new DefaultTableModel();\n model.addColumn(\"Operator\");\n model.addColumn(\"Id Pulsa\");\n model.addColumn(\"Harga Default\");\n model.addColumn(\"Harga Jual\");\n model.addColumn(\"Harga Member\");\n tabelpulsa.setModel(model);\n selectAll();\n }",
"public void jumlahgajianggota(){\n \n jmlha = Integer.valueOf(txtha.getText());\n jmlharga = Integer.valueOf(txtharga.getText());\n jmlanggota = Integer.valueOf(txtanggota.getText());\n \n if (jmlanggota == 0){\n txtgajianggota.setText(\"0\");\n }else{\n jmltotal = jmlharga * jmlha;\n hasil = jmltotal / jmlanggota;\n txtgajianggota.setText(Integer.toString(hasil)); \n }\n\n \n }",
"@Override\r\n\tpublic int hitungBiayaKopi(int jumlahHalaman) {\n\t\treturn jumlahHalaman * 750;\r\n\t}",
"public dataPegawai() {\n initComponents();\n koneksiDatabase();\n tampilGolongan();\n tampilDepartemen();\n tampilJabatan();\n Baru();\n }",
"public static void tambahTengah() {\n Scanner masukan = new Scanner(System.in);\n System.out.println(\"\\nTentukan Lokasi Penambahan Data\");\n int LOKASI = masukan.nextInt();\n masukan.nextLine();\n\n int jumlahSimpulYangAda = hitungJumlahSimpul();\n if (LOKASI == 1) {\n System.out.println(\"Lakukan penambahan di depan\");\n } else if (LOKASI > jumlahSimpulYangAda) {\n System.out.println(\"Lakukan penambahan di belakang\");\n } else {\n\n //------------bagian entri data dari keyboard--------------\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH TENGAH : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //-- -- -- -- -- --bagian menemukan posisi yang dikehendaki-----------\n simpul bantu;\n bantu = awal;\n int i = 1;\n while ((i < LOKASI)\n && (bantu != akhir)) {\n bantu = bantu.kanan;\n i++;\n }\n\n // -- -- -- -- -- --bagian menciptakan & mengisi simpul baru-----------\n simpul baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //-- -- --bagian mencangkokkan simpul baru ke dalam linkedlist lama------\n baru.kiri = bantu.kiri;\n baru.kiri.kanan = baru;\n baru.kanan = bantu;\n bantu.kiri = baru;\n }\n }",
"public jpHebergement() {\n initComponents();\n ChargerListeEtablissement();\n ChargerListeTypeChambre();\n }",
"public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }",
"@Override\n public String getGenericLabel() {\n return \"Počet sloupců v každé tabulce\";\n }",
"public int getTanggalLahir() {\r\n return tanggalLahir;\r\n }",
"public void TampilkanHasil(String isi_hasil){\n TextView hasil = (TextView) findViewById(R.id.txt_mainactivity_hasilBMI);\n hasil.setText(isi_hasil);\n }",
"public static boolean adalahTinggiSeimbang (PohonAVL p) {\n\t// Write your codes in here\n //...\n // Write your codes in here\n \n if(p == null) return true;\n \n if(Math.abs(tinggi(p.kiri)-tinggi(p.kanan)) <= 1 && adalahTinggiSeimbang(p.kiri) && adalahTinggiSeimbang(p.kanan)) return true;\n \n return false;\n \n }",
"@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }",
"public void testTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSuratSKPPberdasarkanPenerbitnya(); \n\n\t\tshowData_skpp(data,\"penerbit\",\"jumlah_surat\");\n\t}",
"public void tampilBuku() {\n System.out.println(\"ID : \" + this.id);\n System.out.println(\"Judul : \" + this.judul);\n System.out.println(\"Tahun Terbit: \" + this.tahun);\n }",
"protected static void HienThiChiTiet() {\n\t\t\n\t\ttry {\n\n\t\t\tdtm1.setRowCount(0);\n\n\t\t\tString Sql = \"select SanPham.TenSP, Soluong,DonGia,DVT, DonGia*Soluong from SanPham,HoaDonTiec,ChiTietHoaDonTiec where SanPham.MaSP=ChiTietHoaDonTiec.MaSP and HoaDonTiec.MaHD=ChiTietHoaDonTiec.MaHD and HoaDonTiec.MaHD=?\";\n\t\t\tPreparedStatement prepare = conn.prepareStatement(Sql);\n\t\t\tprepare.setString(1, maHD);\n\t\t\tResultSet result = prepare.executeQuery();\n\t\t\twhile (result.next()) {\n\t\t\t\tVector<Object> vec = new Vector<Object>();\n\t\t\t\tvec.add(result.getString(1));\n\t\t\t\tvec.add(result.getInt(2));\n\t\t\t\tvec.add(result.getInt(3));\n\t\t\t\tvec.add(result.getString(4));\n\t\t\t\tvec.add(result.getInt(5));\n\t\t\t\t//maHD = result.getString(8);\n\t\t\t\t\n\t\t\t\tdtm1.addRow(vec);\n\t\t\t\t//int i = tbl.getRowCount();\n\t\t\t\t//txtMaHD.setText(maHD);// hiển thị mã HD theo bàn\n\n\t\t\t}\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public static void tambahBelakang() {\n String NAMA;\n String ALAMAT;\n int UMUR;\n char JEKEL;\n String HOBI[] = new String[3];\n float IPK;\n Scanner masukan = new Scanner(System.in);\n int bacaTombol = 0;\n System.out.println(\"\\nTAMBAH BELAKANG : \");\n System.out.print(\"Silakan masukkan nama anda : \");\n NAMA = masukan.nextLine();\n System.out.print(\"Silakan masukkan alamat anda: \");\n ALAMAT = masukan.nextLine();\n System.out.print(\"Silakan masukkan umur anda : \");\n UMUR = masukan.nextInt();\n System.out.print(\"Silakan masukkan Jenis Kelamin anda : \");\n\n try {\n bacaTombol = System.in.read();\n } catch (java.io.IOException e) {\n }\n\n JEKEL = (char) bacaTombol;\n System.out.println(\"Silakan masukkan hobi (maks 3) : \");\n System.out.print(\"hobi ke-0 : \");\n HOBI[0] = masukan.next();\n System.out.print(\"hobi ke-1 : \");\n HOBI[1] = masukan.next();\n System.out.print(\"hobike- 2 : \");\n HOBI[2] = masukan.next();\n System.out.print(\"Silakan masukkan IPK anda : \");\n IPK = masukan.nextFloat();\n\n //------------bagian menciptakan & mengisi simpul baru--------------\n simpul baru;\n baru = new simpul();\n baru.nama = NAMA;\n baru.alamat = ALAMAT;\n baru.umur = UMUR;\n baru.jekel = JEKEL;\n baru.hobi[0] = HOBI[0];\n baru.hobi[1] = HOBI[1];\n baru.hobi[2] = HOBI[2];\n baru.ipk = IPK;\n\n //--------bagian mencangkokkan simpul baru ke dalam simpul lama---------\n if (awal == null)// jika senarai kosong\n {\n awal = baru;\n akhir = baru;\n baru.kiri = null;\n baru.kanan = null;\n } else // jika senarai tidak kosong\n {\n baru.kiri = akhir;\n akhir.kanan = baru;\n akhir = baru;\n akhir.kanan = null;\n }\n }",
"private void btnHomeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnHomeActionPerformed\n// timingnyaDiStop();\n int inginKeluar;// 0 = (YES) exit ke main menu , 1 = (NO)tidak jadi //default netbeansnya\n inginKeluar = JOptionPane.showConfirmDialog(this, \"Anda yakin ingin mengakhiri Pembahasan / Materi?\", \"Konfirmasi Kembali\", 0);\n if (inginKeluar == 0) //kalo bener mau keluar, skoring muncul (masukkanSkor)\n {\n try {\n masukkanSkor();\n\n } catch (IOException ex) {\n Logger.getLogger(bahas.class\n .getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n timingnyaMainLagi();\n }\n }",
"public JLabel etykietaWyswietlaniaPunktow()\n\t{\n\t\treturn wyswietleniePunktow;\n\t}",
"public MenuUtamaPenyedia() {\n initComponents();\n tabPenyedia.setTitleAt(0, \"View Profile\");\n tabPenyedia.setTitleAt(1, \"Edit Profile\");\n tabPenyedia.setTitleAt(2, \"Create Barang\");\n tglSpinner.setValue(0);\n blnSpinner.setValue(0);\n thnSpinner.setValue(2016);\n kbComboBox.setMaximumRowCount(2);\n kbComboBox.removeAllItems();\n kbComboBox.insertItemAt(\"Bagus\", 0);\n kbComboBox.insertItemAt(\"Tidak Bagus\", 1);\n }",
"public void bayar() {\n transaksi.setStatus(\"lunas\");\n setLunas(true);\n }",
"public void hitunganRule1(){\n penebaranBibitSedikit = 1200;\r\n hariPanenSedang = 50;\r\n \r\n //menentukan niu\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang >=40) && (hariPanenSedang <=80)) {\r\n nPanen = (hariPanenSedang - 40) / (80 - 40);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a1 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a1 = nPanen;\r\n }\r\n \r\n //tentukan Z1\r\n z1 = (penebaranBibitSedikit + hariPanenSedang) * 700;\r\n System.out.println(\"a1 = \" + String.valueOf(a1));\r\n System.out.println(\"z1 = \" + String.valueOf(z1));\r\n }",
"@Override\r\n public String getHasil() {\n return this.hasil;\r\n }",
"@NotifyChange({\"matkulKur\", \"addNew\", \"resetInputIcon\"}) \n @Command(\"batal\")\n public void batal(){\n if (isAddNew()==true) setMatkulKur(getTempMatkulKur()); //\n setResetInputIcon(false);\n setAddNew(false); //apapun itu buat supaya tambah baru selalu kondisi false\n }",
"private void tampil_kereta() {\n kereta_combo.addItem (\"Argo Parahyangan\");\n kereta_combo.addItem (\"Argo Jati\");\n kereta_combo.addItem (\"Bangun Karta\");\n kereta_combo.addItem (\"Bima\");\n kereta_combo.addItem (\"Kahuripan\");\n kereta_combo.addItem (\"Lodaya\"); \n kereta_combo.addItem (\"Sembari\");\n kereta_combo.addItem (\"Turangga\");\n \n }",
"@Override\r\n\tpublic void meminjam(int tanggal, int bulan, int tahun) {\n\t\tsetTanggal(tanggal);\r\n\t\tsetBulan(bulan);\r\n\t\tsetTahun(tahun);\r\n\t}",
"public static void jawaban1() {\n int cari;\r\n boolean ditemukan = true;\r\n int a=0;\r\n\r\n //membentuk array yang berisi data\r\n int[] angka = new int[]{74, 98, 72, 74, 72, 90, 81, 72};\r\n \r\n //mengeluarkan array\r\n for (int i = 0; i < angka.length; i++) {\r\n System.out.print(angka [i]+\"\\t\");\r\n\r\n \r\n }\r\n\r\n\r\n //meminta user memasukkan angka yang hendak dicari\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.println(\"\\nMasukkan angka yang ingin anda cari dibawah sini\");\r\n cari = keyboard.nextInt();\r\n\r\n //proses pencarian atau pencocokan data pada array\r\n for (int i = 0; i < angka.length; i++) {\r\n if (cari == angka[i]) {\r\n ditemukan = true;\r\n \r\n System.out.println(\"Angka yang anda masukkan ada didalam data ini\");\r\n \r\n break;\r\n }\r\n\r\n }\r\n //proses hitung data\r\n if (ditemukan == true) {\r\n \r\n for (int i = 0; i < angka.length; i++) {\r\n if (angka[i]== cari){\r\n a++;\r\n }\r\n \r\n }\r\n\r\n }\r\n \r\n System.out.println(\"Selamat data anda dengan angka \"+cari+ \" ditemukan sebanyak \"+a);\r\n }",
"private JMenuItem getMiKimlikNumarasindanKisiBilgisiSorgula() {\n\t\tif (miKimlikNumarasindanKisiBilgisiSorgula == null) {\n\t\t\tmiKimlikNumarasindanKisiBilgisiSorgula = new JMenuItem();\n\t\t\tmiKimlikNumarasindanKisiBilgisiSorgula.setText(\"T.C. Kimlik Numaras�ndan Kisi Sorgula\");\n\t\t\tmiKimlikNumarasindanKisiBilgisiSorgula.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tnew DlgKimlikNodanKisiSorgula(MainFrame.this).setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn miKimlikNumarasindanKisiBilgisiSorgula;\n\t}",
"public void limpiar() {\n\t//txtBuscar.setText(\"\");\n\n\t// codTemporal.setText(\"\");\n\thabilita(true, false, false, false, false, true, false, true, true);\n }",
"private void hienThiDichVuKhachHangSuDung(String maKH){\n SuDungService suDungService = new SuDungService();\n suDungModels = suDungService.layDichVuKhachHangSuDung(maKH);\n for (SuDungModel suDungModel : suDungModels) {\n cbbThanhToanMaDV.addItem(suDungModel.getMaDV());\n }\n }",
"public form_utama_kasir() {\n initComponents(); \n koneksi DB = new koneksi(); \n con = DB.getConnection();\n aturtext();\n tampilkan();\n nofakturbaru();\n loadData();\n panelEditDataDiri.setVisible(false);\n txtHapusKodeTransaksi.setVisible(false);\n txtHapusQtyTransaksi.setVisible(false);\n txtHapusStokTersedia.setVisible(false);\n }",
"public void xuLyThemPhieuThanhToan(){\n //Ngat chuoi\n String strTongTien = txtTongTien.getText().trim();\n String[] tongTien = strTongTien.split(\"\\\\s\");\n String strTienPhaiTra = txtTienPhaiTra.getText().trim();\n String[] tienPhaiTra = strTienPhaiTra.split(\"\\\\s\");\n\n //xu ly them vao data base\n PhieuThanhToanSevice phieuThanhToanSevice = new PhieuThanhToanSevice();\n int x = phieuThanhToanSevice.themPhieuThanhToan(txtMaPTT.getText().trim(),\n cbbMaPDK.getSelectedItem().toString(),\n Integer.valueOf(txtSoThang.getText().trim()),\n txtNgayTT.getText().trim(), Float.valueOf(tongTien[0]), Float.valueOf(tienPhaiTra[0]));\n\n if (x > 0) {\n JOptionPane.showMessageDialog(null, \"Thanh toán thành công\");\n } else {\n JOptionPane.showMessageDialog(null, \"Thanh toán thất bại\");\n return;\n }\n\n }",
"public Karyawan() {\n initComponents();\n setResizable(false);\n tampilkan_data();\n kosong_form();\n }",
"public formdatamahasiswa() {\n initComponents();\n }",
"public static void main(String[] args) {\n int[][] agungji = {{1,2},{2,4}};\r\n System.out.println(\"memasukkan nilai secara langsung\");\r\n keluarkan(agungji);\r\n //ini menentukan jumlah baris dan kolom array\r\n int[][] anjay = new int [5][5];\r\n System.out.println(\"dengan memasukkan nilai baris dan kolom\");\r\n keluarkan(anjay);\r\n\r\n //looping manual\r\n// for(int i = 0; i < anjay.length; i++){\r\n// System.out.print(\"[\");\r\n// for(int j = 0; j < anjay[i].length;j++){\r\n// System.out.print(anjay[i][j] + \",\");\r\n// }\r\n// System.out.print(\"]\\n\");\r\n// }\r\n // looping foreach\r\n\r\n int[][] agungji_2 = {\r\n {31,32,33,34,35},\r\n {11,12,13,14,15},\r\n {21,22,23,24,25}\r\n };\r\n keluarkan(agungji_2);\r\n\r\n }",
"public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }",
"public boolean kosong() {\r\n return ukuran == 0;\r\n }",
"public void perbaruiDataKategori(){\n loadDataKategori();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksiDB.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE tbl_kembali SET nm_kategori = '\"+ nmKategori +\"',\"\n + \"ala_kategori = '\"+ alaKategori +\"',\"\n + \"no_kategori = '\"+ noKategori +\"',\"\n + \"kame_kategori = '\"+ kameKategori +\"',\"\n + \"kd_kategori = '\"+ kdKategori +\"',\"\n + \"sewa_kategori = '\"+ sewaKategori +\"',\"\n + \"kembali_kategori = '\"+ lamKategori +\"'\"\n + \"WHERE lambat_kategori = '\" + lambatKategori +\"'\";\n PreparedStatement p = (PreparedStatement) koneksiDB.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataKategori();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }",
"@Override\n\tpublic void bildir(){\n\t\tif(durum == true){\n\t\t\tSystem.out.println(\"Durum: Acik\");\t\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Durum: Kapali\");\n\t\t}\n\t\t\n\t}",
"public void hungarian()\n\t{\n\t\tduplicate();\n\t\tinitial();\n\t\tassignment();\n\t\twhile(assignCounter!=n)\n\t\t{\n\t\t\tticking();\n\t\t\tboolean yes=allTickuntick();\n\t\t\tif(yes)\n\t\t\t{\n\t\t\t\tstep=1;\n\t\t\t\talternateFunction();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tminimum();\n\t\t\tchange();\n\t\t\tassignment();\n\t\t}\n\t\tif(yes)\n\t\t{\n\t\t\tfinalDisplay();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstep=1;\n\t\t\talternateFunction();\n\t\t\tint flag1=0;\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tif(rowLabel[i]!=rowLabelFinalValues[i])\n\t\t\t\t{\n\t\t\t\t\tflag1=1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(flag1==1)\n\t\t\t{\n\t\t\t\tfinalDisplay2();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfinalDisplay1();\n\t\t\t}\n\t\t}\n\t}",
"public void rubahDataProduk(){\n loadDataProduk();\n \n //uji koneksi dan eksekusi perintah\n try{\n //test koneksi\n Statement stat = (Statement) koneksi.getKoneksi().createStatement();\n \n //perintah sql untuk simpan data\n String sql = \"UPDATE barang SET nama_barang = '\"+ nama_barang +\"',\"\n + \"merk_barang = '\"+ merk_barang +\"',\"\n + \"jumlah_stok = '\"+ jumlah_stok +\"',\"\n + \"harga = '\"+ harga +\"'\" \n + \"WHERE kode_barang = '\" + kode_barang +\"'\";\n PreparedStatement p = (PreparedStatement) koneksi.getKoneksi().prepareStatement(sql);\n p.executeUpdate();\n \n //ambil data\n getDataProduk();\n }catch(SQLException err){\n JOptionPane.showMessageDialog(null, err.getMessage());\n }\n }",
"public void setAlamat_pelanggan(String Alamat_Pelanggan){\r\n \r\n this.alamat_pelanggan = Alamat_Pelanggan;\r\n }",
"private void Proses() {\n ti = Double.valueOf(ktinggi.getText());\n bt = Double.valueOf(kberat.getText());\n \n if(jRadioButton1.isSelected()){\n h1 = (ti - 100) * 1;\n } else if (jRadioButton2.isSelected()){\n h1 = (ti - 104) * 1;\n }\n temp = Double.toString(h1.intValue());\n \n if (h1 < bt) {\n kideal.setText(temp);\n hasil.setText(\"Maaf \" + knama.getText() + \" , Sepertinya anda Overweight :( \");\n saran.setText(\"Banyaklah berolahraga dan hindari makanan berkolesterol\");\n } else if (h1 > bt) {\n kideal.setText(temp);\n hasil.setText(\"Maaf \" + knama.getText() + \" , Sepertinya anda Underweight :(\");\n saran.setText(\"Banyaklah mengkonsumsi makanan yang berkarbohidrat\");\n } else {\n kideal.setText(temp);\n hasil.setText(\"Hallo \" + knama.getText() + \" , Berat badan anda sudah ideal :)\");\n saran.setText(\"Lanjutkan pola makan teratur dan gaya hidup sehat :)\");\n }\n \n }",
"@Override\n\tpublic String getVehiclName() {\n\t\treturn \"Hundai\";\n\t}",
"public doimatkhau() {\n initComponents();\n setLocationRelativeTo(null);\n txtTendangnhap.setText(sharehelper.user.getMaNV());\n }",
"public void tampilkanKamarKosongHarga (int hargaMaks) {\n for (Kamar k:daftarKamar.values()) {\n if (k.isKosong && k.harga<= hargaMaks) {\n k.print();\n }\n }\n }",
"public void hitunganRule4(){\n penebaranBibitBanyak = 1900;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu bibit\r\n nBibit = (penebaranBibitBanyak - 1500) / (3000 - 1500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenLama >=80) && (hariPanenLama <=120)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a4 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a4 = nPanen;\r\n }\r\n \r\n //tentukan Z3\r\n z4 = (penebaranBibitBanyak + hariPanenLama) * 500;\r\n System.out.println(\"a4 = \" + String.valueOf(a4));\r\n System.out.println(\"z4 = \" + String.valueOf(z4));\r\n }",
"public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }",
"private void xuLyThanhToanDichVu() {\n if(checkGia(txtThanhToanDVSoLuongCu.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongCu.requestFocus();\n return;\n }//Kiem tra so luong cu\n \n if(checkGia(txtThanhToanDVSoLuongMoi.getText())== false){\n JOptionPane.showMessageDialog(null, \"Số lượng không hợp lệ. Vui lòng kiểm tra lại!\");\n txtThanhToanDVSoLuongMoi.requestFocus();\n return;\n }//kiem tra so luong moi\n \n float soLuongCu = Float.valueOf(txtThanhToanDVSoLuongCu.getText().trim());\n float soLuongMoi = Float.valueOf(txtThanhToanDVSoLuongMoi.getText().trim());\n float soLuong = soLuongMoi - soLuongCu;\n txtThanhToanDVSoLuong.setText(soLuong+\"\");\n tongCong += soLuong * Float.valueOf(txtThanhToanDVGiaDV.getText().trim());\n txtThanhToanTongCong.setText(tongCong+\" VNĐ\");\n \n }",
"public add_karyawan() {\n initComponents();\n showTable();\n randomNumber();\n setLocation(500, 200);\n }",
"public Transaksi_Pembelian() {\n initComponents();\n datatable();\n }",
"public void hitunganRule2(){\n penebaranBibitSedikit = 1200;\r\n hariPanenLama = 110;\r\n \r\n //menentukan niu Penebaran Bibit\r\n nBibit = (1500 - penebaranBibitSedikit) / (1500 - 500);\r\n \r\n //menentukan niu hari panen Lama\r\n if ((hariPanenLama >=100) && (hariPanenLama <=180)) {\r\n nPanen = (hariPanenLama - 100) / (180 - 100);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a2 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a2 = nPanen;\r\n }\r\n \r\n //tentukan Z2\r\n z2 = (penebaranBibitSedikit + hariPanenLama) * 700;\r\n System.out.println(\"a2 = \" + String.valueOf(a2));\r\n System.out.println(\"z2 = \" + String.valueOf(z2));\r\n }",
"public void splMatriksBalikan() {\n Matriks MKoef = this.Koefisien();\n Matriks MKons = this.Konstanta();\n\n if(!MKoef.IsPersegi()) {\n System.out.println(\"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Matriks koefisien bukan matriks persegi, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n float det = MKoef.DeterminanKofaktor();\n if (det == 0) {\n System.out.println(\"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\");\n this.Solusi = \"Determinan matriks koefisien bernilai 0, sehingga tidak dapat diselesaikan dengan metode matriks balikan.\";\n } else {\n Matriks MBalikan = MKoef.BuatMatriksBalikan();\n Matriks MHsl = MBalikan.KaliMatriks(MKons);\n\n for (int i = 0; i < MHsl.NBrsEff; i++) {\n System.out.println(\"x\" + (i+1) + \" = \" + MHsl.M[i][0]);\n this.Solusi += \"x\" + (i+1) + \" = \" + MHsl.M[i][0] + \"\\n\";\n }\n }\n }\n }",
"public Harimau(String namaHarimau)\n\t{\n\t//mengisi pengubah yang diwarisi oleh kelas abstract\n\tHarimau.nama = namaHarimau;\n\t}",
"public void testNamaPnsYangPensiunTahunIni(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getNamaPnsYangPensiunTahunIni(); \n\n\t\tshowData_YangpensiunTahunini(data,\"nip\",\"nama\",\"tmtpensiun\");\n\t}",
"public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}",
"@Override\r\n\tpublic String showKode() {\n\t\treturn getPenerbit() + \" \" + firsText(getJudul()) + \" \" + lastText(getPengarang());\r\n\t}",
"public void summary(int tambahanProyek) {\r\n System.out.println(this.nama + \" usia \" + this.usia + \" tahun bekerja di Perusahaan \" + Employee.perusahaan);\r\n System.out.println(\"Memiliki total gaji \" + (Employee.pendapatan + Employee.lembur + tambahanProyek));\r\n }",
"public Map<String, KelimeTipi> kokTipiAdlari() {\n Map<String, KelimeTipi> tipMap = new HashMap<String, KelimeTipi>();\r\n tipMap.put(\"IS\", ISIM);\r\n tipMap.put(\"FI\", FIIL);\r\n tipMap.put(\"SI\", SIFAT);\r\n tipMap.put(\"SA\", SAYI);\r\n tipMap.put(\"YA\", YANKI);\r\n tipMap.put(\"ZA\", ZAMIR);\r\n tipMap.put(\"SO\", SORU);\r\n tipMap.put(\"IM\", IMEK);\r\n tipMap.put(\"ZAMAN\", ZAMAN);\r\n tipMap.put(\"HATALI\", HATALI);\r\n tipMap.put(\"EDAT\", EDAT);\r\n tipMap.put(\"BAGLAC\", BAGLAC);\r\n tipMap.put(\"OZ\", OZEL);\r\n tipMap.put(\"UN\", UNLEM);\r\n tipMap.put(\"KI\", KISALTMA);\r\n return tipMap;\r\n }",
"void tampilKarakterA();",
"public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn namaBulan;\n\t}",
"public void hitunganRule3(){\n penebaranBibitBanyak = 1900;\r\n hariPanenSedang = 120;\r\n \r\n //menentukan niu bibit\r\n nBibit = (penebaranBibitBanyak - 1500) / (3000 - 1500);\r\n \r\n //menentukan niu hari panen sedang\r\n if ((hariPanenSedang !=80) && (hariPanenSedang <=120)) {\r\n nPanen = (hariPanenSedang - 110) / (120 - 80);\r\n }\r\n \r\n //tentukan alpha predikat (karena grafik segitiga)\r\n if (nBibit < nPanen) {\r\n a3 = nBibit;\r\n }else if (nBibit > nPanen) {\r\n a3 = nPanen;\r\n }\r\n \r\n //tentukan Z3\r\n z3 = (penebaranBibitBanyak + hariPanenSedang) * 150;\r\n System.out.println(\"a3 = \" + String.valueOf(a3));\r\n System.out.println(\"z3 = \" + String.valueOf(z3));\r\n }",
"public transaksi() {\n initComponents();\n judul();\n tampildata();\n judulbarang();\n tampilbarang();\n reset();\n autokode();\n total();\n lkembali.setText(\"Rp. 0\");\n bcek.requestFocus();\n ltgl.setText(hari); \n bhapus.setVisible(false);\n bedit.setVisible(false);\n bbeli.setVisible(true);\n breset.setVisible(true);\n }",
"public void testTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(){\n\t\tSkppPegawai objskp =new SkppPegawai();\n\n\t\tJSONArray data = objskp.getTampilkanJumlahSKPP_PNSberdasarkanKodePangkat(); \n\n\t\tshowData(data,\"kode_pangkat\",\"jumlah_pns\");\n\t}",
"@Override\r\n\tpublic final String[] getHabilidadesRaza() {\r\n\t\treturn new String[] {\"Golpe Defensa\", \"Mordisco de Vida\"};\r\n\t}"
]
| [
"0.6546631",
"0.65265507",
"0.6301868",
"0.62648",
"0.62377214",
"0.6235219",
"0.62246287",
"0.6201804",
"0.61745745",
"0.6000722",
"0.5892515",
"0.58544695",
"0.5844222",
"0.58397347",
"0.5833288",
"0.58289295",
"0.57832384",
"0.5781622",
"0.5780214",
"0.57726276",
"0.57639843",
"0.5753987",
"0.5746438",
"0.5740526",
"0.5731966",
"0.5720704",
"0.5720286",
"0.5704161",
"0.5683431",
"0.5677197",
"0.5659153",
"0.56541616",
"0.565307",
"0.56522715",
"0.5651962",
"0.56472796",
"0.5642749",
"0.56384355",
"0.5636855",
"0.56320125",
"0.56187415",
"0.56155473",
"0.5615385",
"0.5611032",
"0.5595053",
"0.5592308",
"0.5583128",
"0.55757064",
"0.55711776",
"0.5565933",
"0.5565898",
"0.5564858",
"0.5555183",
"0.5554887",
"0.5554242",
"0.55527115",
"0.5542379",
"0.5522527",
"0.5519947",
"0.55119723",
"0.5511108",
"0.5510168",
"0.5497438",
"0.54966146",
"0.54941833",
"0.5493464",
"0.54830277",
"0.54718494",
"0.54682976",
"0.5456338",
"0.5453175",
"0.5450993",
"0.54507947",
"0.5439018",
"0.5438536",
"0.5427584",
"0.5425941",
"0.5422445",
"0.54200834",
"0.5410008",
"0.54078066",
"0.54017365",
"0.53983754",
"0.53961825",
"0.539056",
"0.538422",
"0.5382097",
"0.53789485",
"0.53758395",
"0.53753203",
"0.53647494",
"0.5363435",
"0.53591186",
"0.53527176",
"0.5351468",
"0.53500503",
"0.5347421",
"0.53402984",
"0.5338004",
"0.533298",
"0.53302413"
]
| 0.0 | -1 |
Internal parser to separate the buffered objects in the respective query type list and start the operations. | public void start() {
for (Object obj: bufferedQueries) {
switch(obj.getClass().getName()) {
case "uzh.tomdb.db.operations.Insert":
if (inserts == null) {
inserts = new ArrayList<>();
}
inserts.add((Insert) obj);
break;
case "uzh.tomdb.db.operations.CreateTable":
if (creates == null) {
creates = new ArrayList<>();
}
creates.add((CreateTable) obj);
break;
case "uzh.tomdb.db.operations.Update":
if (updates == null) {
updates = new ArrayList<>();
}
updates.add((Update) obj);
break;
case "uzh.tomdb.db.operations.Delete":
if (deletes == null) {
deletes = new ArrayList<>();
}
deletes.add((Delete) obj);
break;
}
}
if (inserts != null) {
inserts();
}
if (creates != null) {
creates();
}
if (updates != null) {
updates();
}
if (deletes != null) {
deletes();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void parse() {\n if (commandSeparate.length == 1) {\n parseTaskType();\n } else if (commandSeparate.length == 2) {\n parseTaskType();\n index = commandSeparate[1];\n taskName = commandSeparate[1];\n } else {\n parseTaskType();\n parseTaskName();\n parseTaskDate();\n }\n }",
"public void parseQuery(String queryString) {\r\n\t\t// call the methods\r\n\t\tgetSplitStrings(queryString);\r\n\t\tgetFile(queryString);\r\n\t\tgetBaseQuery(queryString);\r\n\t\tgetConditionsPartQuery(queryString);\r\n\t\tgetConditions(queryString);\r\n\t\tgetLogicalOperators(queryString);\r\n\t\tgetFields(queryString);\r\n\t\tgetOrderByFields(queryString);\r\n\t\tgetGroupByFields(queryString);\r\n\t\tgetAggregateFunctions(queryString);\r\n\t}",
"protected abstract void parse(final ArrayList<Command> cmds) throws QueryException;",
"private void parse() throws IOException {\r\n\t\tClassLoader cl = getClass().getClassLoader();\r\n\t\tFile file = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t\tFile file2 = new File(cl.getResource(\"./OBOfiles/go.obo\").getFile());\r\n\t FileReader fr = new FileReader(file);\r\n\t FileReader fr2 = new FileReader(file2);\r\n\t\tin=new BufferedReader(fr);\r\n\t\tin2=new BufferedReader(fr2);\r\n\t\tString line;\r\n\t\twhile((line=next(0))!=null) {\r\n\t\t\tif(line.equals(\"[Term]\")) parseTerm();\r\n\t\t}\r\n\t\tin.close();\r\n\t\tfr.close();\r\n\t\t\r\n\t\t//terms.printTerms();\r\n\t\tbuffer=null;\r\n\t\twhile((line=next(1))!=null) {\r\n\t\t\tif(line.equals(\"[Term]\")) createEdges();\r\n\t\t}\r\n\t\tin2.close();\r\n\t\tfr2.close();\r\n\t\tLOGGER.info(\"Finished Building DAGs!\");\r\n\t\t\r\n\t}",
"@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}",
"private void parseData() {\n\t\t\r\n\t}",
"private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }",
"public void parse() {\n }",
"private void parse() {\n if (getFields() == null) {\n List<? extends StructField> fieldRefs =\n ((StructObjectInspector)getInspector()).getAllStructFieldRefs();\n setFields(new LazyObject[fieldRefs.size()]);\n for (int i = 0; i < getFields().length; i++) {\n String hbaseColumnFamily = hbaseColumnFamilies.get(i);\n String hbaseColumnQualifier = hbaseColumnQualifiers.get(i);\n\n ObjectInspector fieldObjectInspector = fieldRefs.get(i).getFieldObjectInspector();\n if (hbaseColumnQualifier == null && !HBaseSerDe.isSpecialColumn(hbaseColumnFamily)) {\n // a column family\n getFields()[i] = new LazyHBaseCellMap(\n (LazyMapObjectInspector) fieldObjectInspector);\n continue;\n }\n if(fieldObjectInspector instanceof LazyListObjectInspector) {\n \tgetFields()[i] = new LazyJsonArray((LazyListObjectInspector)fieldObjectInspector);\n \tcontinue;\n }\n\n getFields()[i] = LazyFactory.createLazyObject(fieldRefs.get(i).getFieldObjectInspector());\n }\n setFieldInited(new boolean[getFields().length]);\n }\n Arrays.fill(getFieldInited(), false);\n setParsed(true);\n }",
"@Override\n protected void executeCommands(ITextTokenStream<BasicTextTokenType> stream) {\n TextToken<BasicTextTokenType> object = stream.getFirstObject();\n String token = object == null ? null : object.getStandardToken();\n if (token != null) {\n if (stream.getVerb() != null){\n switch (stream.getVerb().getType()) {\n case ATTACK:\n attackMob(token, object);\n break;\n case LOOK:\n lookAt(token, object);\n break;\n case MOVE:\n movePlayer(token, object);\n break;\n case GET:\n getItemFromRoom(token, object);\n break;\n case LOOT:\n lootAll(token, object);\n break;\n case DROP:\n dropItem(token, object);\n break;\n case EQUIP: // effect replaced with LOCK\n lock(token, object);\n //equipItem(token, object);\n break;\n case UNEQUIP: // effect replaced with UNLOCK\n unlock(token, object);\n //unequipItem(token, object);\n break;\n case INFO:\n info(token, object);\n break;\n case QUIT:\n quitGame();\n break;\n default:\n return;\n }\n }\n // For objects that can also be used to infer their verbs\n else {\n switch (object.getType()) {\n case DIRECTION:\n movePlayer(token, object);\n break;\n case INVENTORY:\n info(token, object);\n break;\n case HEALTH:\n info(token, object);\n break;\n default:\n return;\n }\n }\n\n } else {\n return;\n }\n\n }",
"@Override\n\t\tpublic abstract List<T> parse(Object valueToParse, Type elementType);",
"@Override\n\tprotected void runData(Query query) throws SQLException {\n\t\tStringBuilder q = new StringBuilder();\n\t\tArrayList<Integer> destinationList = new ArrayList<Integer>();\n\t\tquery.inc(2);\n\t\twhile (!isData(query.part()) || !isComment(query.part()) || !isCode(query.part())) {\n\t\t\tq.append(query.part());\n\t\t\tq.append(\" \");\n\t\t\tquery.inc();\n\t\t}\n\t\tArrayList<Integer> originList = getLinesFromData(q.toString());\n\t\tparseSecondCondition(query, originList, destinationList);\n\t}",
"@Override\n\tpublic void parse() throws IOException {\n\t}",
"private void parseQuery(String str) {\n String[] parts = str.split(\"orderby\");\n String[] elements = parts[0].split(\"\\\\s+\");\n\n // Use two-stack algorithm to parse prefix notation\n Stack<Comparable<String>> terms = new Stack<Comparable<String>>();\n Stack<Comparable<String>> helper = new Stack<Comparable<String>>();\n\n for (String el : elements) { terms.push(el); }\n while (!terms.isEmpty()) {\n Comparable<String> term = terms.pop();\n String operands = \"+|-\";\n if (operands.contains(term.toString())) {\n Comparable<String> leftSide = helper.pop();\n Comparable<String> rightSide = helper.pop();\n helper.push(new Subquery(leftSide, term.toString(), rightSide));\n } else {\n helper.push(term);\n }\n }\n\n Comparable<String> resultQuery = helper.pop();\n parsedQuery = resultQuery instanceof String ? new Subquery(resultQuery) : (Subquery) resultQuery;\n computeUniqueNotation(parsedQuery);\n\n if (parts.length < 2) {\n return;\n }\n\n // Parse sorting properties\n if (parts[1].contains(\"relevance\")) {\n property = \"RELEVANCE\";\n } else if (parts[1].contains(\"popularity\")) {\n property = \"POPULARITY\";\n }\n\n if (parts[1].contains(\"asc\")) {\n direction = 1;\n } else if (parts[1].contains(\"desc\")) {\n direction = -1;\n }\n }",
"public interface Parser {\n\n ParsedObject[] parse();\n}",
"private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }",
"private void processCommands() {\n while (!commandQueue.isEmpty()) {\n var msg = commandQueue.remove();\n treatCommand.parseCommand(msg);\n }\n }",
"private void processStartObject() {\n\t\tif (currentFieldName != null) {\r\n\t\t\t// go down the tree following the field name\r\n\t\t\tFieldFilterTree tmpIncludes = curNode.getChild(currentFieldName);\r\n\t\t\tparentNode = curNode;\r\n\t\t\tcurNode = tmpIncludes;\r\n\t\t}\r\n\t}",
"public QueryParser(QueryParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 117; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }",
"public void advanceObjectsCollection() {\r\n\t\twhile (this.in.readToTag()) {\r\n\t\t\tfinal Type type = this.in.getTag().getType();\r\n\t\t\tif ((type == Type.BEGIN)\r\n\t\t\t\t\t&& this.in.getTag().getName().equals(\r\n\t\t\t\t\t\t\tPersistReader.TAG_OBJECTS)) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfinal String str = \"Can't find objects collection, invalid file.\";\r\n\t\tif (this.logger.isErrorEnabled()) {\r\n\t\t\tthis.logger.error(str);\r\n\t\t}\r\n\t\tthrow new PersistError(str);\r\n\r\n\t}",
"abstract protected void parseNextToken();",
"public void parse() throws IOException, LexerException, ParserException {\n classLines.clear();\n methodLines.clear();\n\n PushbackReader pbr = new PushbackReader(reader);\n Lexer lexer = new Lexer(pbr);\n Parser parser = new Parser(lexer);\n try {\n Start start = parser.parse();\n start.apply(this);\n fixClassNames();\n } finally {\n try {\n pbr.close();\n } catch (IOException ioe) { /* ignore */ }\n }\n }",
"public Search parseNext(StringBuilder sb)\n\t\t{\n\t\t\tfor(SearchType type : getAllTypes())\n\t\t\t{\n\t\t\t\tfor(String header : type.getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(sb.length() < header.length())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tboolean hasHeader = true;\n\t\t\t\t\tint c;\n\t\t\t\t\tfor(c = 0; c < header.length(); c++)\n\t\t\t\t\t\tif(lower(sb.charAt(c)) != header.charAt(c))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\thasHeader = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\tif(hasHeader)\n\t\t\t\t\t{\n\t\t\t\t\t\ttrim(sb);\n\t\t\t\t\t\tfor(; c < sb.length(); c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(Character.isWhitespace(sb.charAt(c)))\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\telse if(sb.charAt(c) == '\\\"')\n\t\t\t\t\t\t\t\tc = goPastQuote(sb, c);\n\t\t\t\t\t\t\telse if(sb.charAt(c) == '(')\n\t\t\t\t\t\t\t\tc = goPastParen(sb, c);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSearch ret = type.create(sb.substring(0, c), this);\n\t\t\t\t\t\tsb.delete(0, c + 1);\n\t\t\t\t\t\treturn ret;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn defaultSearch(sb);\n\t\t}",
"private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparsePageForPageObjects();\n\t\tparsePageForSections();\n\t}",
"final public void parse() throws ParseException {\n\t\tToken x = null;\n\t\tjj_consume_token(20);\n\t\tgetColumns(true);\n\t\tjj_consume_token(REFER);\n\n\t\tx = jj_consume_token(ID);\n\t\tm_refcatalog = x.image;\n\t\tjj_consume_token(21);\n\t\tx = jj_consume_token(ID);\n\t\tm_reftable = x.image;\n\t\tjj_consume_token(20);\n\t\tgetColumns(false);\n\t\tgetActions();\n\t}",
"@Override\n\tpublic void parse()\n\t{\n\t\tASTEXPRTEST exprTest = ((ASTEXPRTEST) ast.jjtGetChild(0));\n\t\tparseExprTest(exprTest);\n\n\t\t// get inherited symbols States before while, in order to not change original\n\t\t// values.\n\t\t// Changes made inside while mus not be visible outside, because while can not\n\t\t// be executed\n\t\tinheritedSymbols = Utils.copyHashMap(inheritedSymbols);\n\n\t\tASTSTATEMENTS stmtlst = ((ASTSTATEMENTS) ast.jjtGetChild(1));\n\t\tparseStmtLst(stmtlst);\n\n\t\t// symbols created inside while are added to symbol table, but as not\n\t\t// initialized, because while statements can not be executed\n\t\tmySymbols = setAllSymbolsAsNotInitialized(mySymbols);\n\t}",
"private Vector pparse(){\n Vector<Object> ret = new Vector<Object>();\n clearWhitespace();\n while (c != -1){\n ret.add(parseSingle());\n clearWhitespace();\n }\n return ret;\n }",
"public void parse(T obj) {\n }",
"public void parse( IFilter<? extends IDescribable> filter ) throws ParseException;",
"private void processEndObject() {\n\t\tif (parentNode != null) {\r\n\t\t\t// go up the param tree from the current field name\r\n\t\t\tFieldFilterTree tmpIncludes = parentNode.getParent();\r\n\t\t\tcurNode = parentNode;\r\n\t\t\tparentNode = tmpIncludes;\r\n\r\n\t\t\tcurrentFieldName = curNode.getData().getValue();\r\n\t\t}\r\n\t}",
"private ArrayList<WordDocument> executeRegularQuery(){\n String[] splitedQuery = this.query.split(\" \");\n ArrayList<WordDocument> listOfWordDocuments = new ArrayList<WordDocument>();\n String word = \"\";\n\n for(int i = 0; i < splitedQuery.length; i++){\n if(!isOrderByCommand(splitedQuery[i]) && i == 0) {\n word = splitedQuery[i];\n\n if(cache.isCached(word))\n addWithoutDuplicate(listOfWordDocuments, cache.getCachedResult(word));\n else\n addWithoutDuplicate(listOfWordDocuments, getDocumentsWhereWordExists(word));\n\n }else if(i >= 1 && isOrderByCommand(splitedQuery[i])) {\n subQueries.add(word);\n listOfWordDocuments = orderBy(listOfWordDocuments, splitedQuery[++i], splitedQuery[++i]);\n break;\n }\n else\n throw new IllegalArgumentException();\n }\n\n return listOfWordDocuments;\n }",
"protected abstract DBObject parse(InputStream is) throws DeserializationException;",
"public static DirectQuery parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectQuery object =\n new DirectQuery();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directQuery\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectQuery)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"private void advanceObjectSummary()\n {\n while (objectSummaryIterator.hasNext() || result.isTruncated() || prefixesIterator.hasNext()) {\n while (objectSummaryIterator.hasNext()) {\n currentObjectSummary = objectSummaryIterator.next();\n // skips directories and empty objects\n if (!isDirectoryPlaceholder(currentObjectSummary) && currentObjectSummary.getSize() > 0) {\n return;\n }\n }\n\n // Exhausted \"objectSummaryIterator\" without finding a non-placeholder.\n if (result.isTruncated()) {\n fetchNextBatch();\n } else if (prefixesIterator.hasNext()) {\n prepareNextRequest();\n fetchNextBatch();\n }\n }\n\n // Truly nothing left to read.\n currentObjectSummary = null;\n }",
"@Override\r\n\tprotected void readImpl()\r\n\t{\r\n\t\t_listId = readD();\r\n\t\tint count = readD();\r\n\t\tif (count <= 0 || count > Config.MAX_ITEM_IN_PACKET || count * BATCH_LENGTH != getByteBuffer().remaining())\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t_items = new Item[count];\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tint objectId = readD();\r\n\t\t\tint itemId = readD();\r\n\t\t\tlong cnt = readQ();\r\n\t\t\tif (objectId < 1 || itemId < 1 || cnt < 1)\r\n\t\t\t{\r\n\t\t\t\t_items = null;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t_items[i] = new Item(objectId, itemId, cnt);\r\n\t\t}\r\n\t}",
"public interface LineParser {\n boolean hasProtocolVersion(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor);\n\n Header parseHeader(CharArrayBuffer charArrayBuffer) throws ParseException;\n\n ProtocolVersion parseProtocolVersion(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n\n RequestLine parseRequestLine(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n\n StatusLine parseStatusLine(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n}",
"public static DirectOrderStateQuery parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\n DirectOrderStateQuery object =\n new DirectOrderStateQuery();\n\n int event;\n java.lang.String nillableValue = null;\n java.lang.String prefix =\"\";\n java.lang.String namespaceuri =\"\";\n try {\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n \n if (reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"type\")!=null){\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"type\");\n if (fullTypeName!=null){\n java.lang.String nsPrefix = null;\n if (fullTypeName.indexOf(\":\") > -1){\n nsPrefix = fullTypeName.substring(0,fullTypeName.indexOf(\":\"));\n }\n nsPrefix = nsPrefix==null?\"\":nsPrefix;\n\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\":\")+1);\n \n if (!\"directOrderStateQuery\".equals(type)){\n //find namespace for the prefix\n java.lang.String nsUri = reader.getNamespaceContext().getNamespaceURI(nsPrefix);\n return (DirectOrderStateQuery)ExtensionMapper.getTypeObject(\n nsUri,type,reader);\n }\n \n\n }\n \n\n }\n\n \n\n \n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n \n\n \n \n reader.next();\n \n \n while (!reader.isStartElement() && !reader.isEndElement()) reader.next();\n \n if (reader.isStartElement() && new javax.xml.namespace.QName(\"\",\"requestXml\").equals(reader.getName())){\n \n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\"nil\");\n if (\"true\".equals(nillableValue) || \"1\".equals(nillableValue)){\n object.setRequestXml(null);\n reader.next();\n \n reader.next();\n \n }else{\n \n object.setRequestXml(org.apache.axis2.databinding.types.soapencoding.String.Factory.parse(reader));\n \n reader.next();\n }\n } // End of if for expected property start element\n \n else{\n // A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n }\n \n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n \n if (reader.isStartElement())\n // A start element we are not expecting indicates a trailing invalid property\n throw new org.apache.axis2.databinding.ADBException(\"Unexpected subelement \" + reader.getName());\n \n\n\n\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"public HttpServerRequest parseRequestBuffer(ByteBuffer buffer, HttpServerRequest result) {\n\n\t\tif (result == null) {\n\t\t\tresult = new HttpServerRequest();\n\t\t}\n\t\tint status = 1;\n\t\tHttpParsingContext context = result.getContext();\n\t\tcontext.setBuffer(buffer);\n\n\t\tif (context.chunkSize > 0) {\n\t\t\tstatus = pushChunkToBody(buffer, result, context);\n\t\t}\n\t\t// Copy body data to the request bodyBuffer\n\t\tif (context.isbodyFound() && result.getContentLength() > 0) {\n\t\t\tpushRemainingToBody(context.buffer, result.getBodyBuffer(), result.getContentLength());\n\t\t\tstatus = 0;\n\t\t}\n\n\t\t// while no errors and buffer not finished\n\t\twhile ((status = lexer.nextToken(context)) > 0) {\n\t\t\tswitch (context.currentType) {\n\t\t\tcase REQUEST_METHOD: {\n\t\t\t\tresult.setMethod(HttpVerb.valueOf(context.getTokenValue().toUpperCase()));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase REQUEST_URI: {\n\t\t\t\tresult.setURI(context.getTokenValue());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase HTTP_VERSION: {\n\t\t\t\tresult.setVersion(context.getTokenValue());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase HEADER_NAME: {\n\t\t\t\tcontext.persistHeaderName();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase HEADER_VALUE: {\n\t\t\t\tresult.pushToHeaders(context.getLastHeaderName(), context.getTokenValue());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase BODY: {\n\t\t\t\tresult.initKeepAlive();\n\t\t\t\t// Copy body data to the request bodyBuffer\n\t\t\t\tif (result.getContentLength() > 0) {\n\t\t\t\t\tpushRemainingToBody(context.buffer, result.getBodyBuffer(), result.getContentLength());\n\t\t\t\t\tstatus = 0;\n\t\t\t\t} else if (result.isChunked() && !context.chunked) {\n\t\t\t\t\tcontext.chunked = true;\n\t\t\t\t\tcontext.currentType = HttpParsingContext.TokenType.CHUNK_OCTET;\n\t\t\t\t\tresult.buildChunkedBody();\n\t\t\t\t} else { // BODY Found on chunked encoding so request done\n\t\t\t\t\tstatus = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase CHUNK_OCTET: {\n\t\t\t\tString[] parts = context.getTokenValue().split(\";\");\n\t\t\t\tif (parts.length > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcontext.chunkSize = Integer.parseInt(parts[0].trim(), 16);\n\t\t\t\t\t\tif (context.chunkSize == 0) {// Last Chunk gets 0 so we\n\t\t\t\t\t\t\t// can try to read footers\n\t\t\t\t\t\t\tcontext.currentType = HttpParsingContext.TokenType.HTTP_VERSION;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresult.incrementChunkSize(context.chunkSize);\n\t\t\t\t\t\t\tcontext.incrementAndGetPointer();\n\t\t\t\t\t\t\tstatus = pushChunkToBody(buffer, result, context);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t// Error while reading size BadFormat :p\n\t\t\t\t\t\tstatus = -1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\tif (status <= 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t// There was an error while parsing request\n\t\tif (status < 0) {\n\t\t\tresult = MalFormedHttpRequest.instance;\n\t\t}\n\n\t\treturn result;\n\t}",
"private Command parse() throws ParseException {\n next();\n expect(Token.COMMAND);\n cmd = new Command(text);\n next();\n while (!((token == Token.WHERE) || (token == Token.RETURN) || (token == Token.EOL))) {\n param();\n }\n if (token == Token.WHERE) {\n where();\n }\n if (token == Token.RETURN) {\n returns();\n }\n expect(Token.EOL);\n return cmd;\n }",
"public void parse(){\n\t\t//Read next line in content; timestamp++\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(instructionfile))) {\n\t\t String line;\n\t\t while ((line = br.readLine()) != null) {\n\t\t \t//divide the line by semicolons\n\t\t \tString[] lineParts = line.split(\";\");\n\t\t \tfor(String aPart: lineParts){\n\t\t\t \tSystem.out.println(\"Parser:\"+aPart);\n\n\t\t\t \t// process the partial line.\n\t\t\t \tString[] commands = parseNextInstruction(aPart);\n\t\t\t \tif(commands!=null){\n\t\t\t\t\t\t\n\t\t\t \t\t//For each instruction in line: TransactionManager.processOperation()\n\t\t\t \t\ttm.processOperation(commands, currentTimestamp);\n\t\t\t \t}\n\t\t \t}\n\t\t \t//Every new line, time stamp increases\n\t \t\tcurrentTimestamp++;\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n \t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void postParse() {\n\t}",
"@Override\n\tpublic void postParse() {\n\t}",
"private ArrayList<WordDocument> executeAdvancedQuery(){\n ArrayList<WordDocument> documents = customDijkstrasTwoStack(this.query.split(\" \"));\n ArrayList<WordDocument> result = new ArrayList<WordDocument>();\n\n try{\n String[] orderByPart = query.substring(query.indexOf(\"ORDERBY\")).trim().toLowerCase().split(\" \");\n if(isOrderByCommand(orderByPart[0]))\n result = orderBy(documents, orderByPart[1], orderByPart[2]);\n }catch (StringIndexOutOfBoundsException ex){\n result = documents;\n }\n\n return result;\n }",
"@Test\n\tpublic void testQueryTypes() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\t// QueryType\n\t\tfinal IntrospectionFullType queryType = getFullType(introspection, schemaConfig.getQueryTypeName());\n\t\t// - check all queries are available\n\t\tfinal List<String> queryNames = new ArrayList<>();\n\t\tArrays.asList(Entity1.class, Entity2.class, Entity3.class, Entity4.class).stream().forEach(clazz -> {\n\t\t\tqueryNames.add(schemaConfig.getQueryGetByIdPrefix() + clazz.getSimpleName());\n\t\t\tqueryNames.add(schemaConfig.getQueryGetListPrefix() + clazz.getSimpleName());\n\t\t});\n\t\tqueryNames.forEach(queryName -> Assert.assertTrue(queryType.getFields().stream()\n\t\t\t\t.map(IntrospectionTypeField::getName).collect(Collectors.toList()).contains(queryName)));\n\n\t\t// - check one 'getSingle' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getEntity1 = assertField(queryType, queryNames.get(0),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT, Entity1.class);\n\t\tAssert.assertEquals(1, getEntity1.getArgs().size());\n\t\tassertArg(getEntity1, \"id\", IntrospectionTypeKindEnum.NON_NULL, IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLID.getName());\n\n\t\t// - check one 'getAll' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getAllEntity1 = assertField(queryType, queryNames.get(1),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, getAllEntity1.getArgs().size());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListFilterEntityTypeNameSuffix());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListPagingAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT, getPagingInputTypeName());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeOrderByName(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.INPUT_OBJECT, getOrderByInputTypeName());\n\t}",
"public IStrategy parse() {\n this.state = ProcessState.INIT;\n int count = 0;\n while (count < this.result.size()) {\n switch (this.state) {\n case INIT:\n count = processInit(count);\n break;\n case WAIT_STRATEGY_NAME:\n count = processStrategyName(count);\n break;\n case WAIT_STOCK_LIST:\n count = processStockList(count);\n break;\n case WAIT_STOCK:\n count = processStock(count);\n break;\n case WAIT_SYMBOL:\n count = processStockSymbol(count);\n break;\n case WAIT_WEIGHT:\n count = processStockWeight(count);\n break;\n case WAIT_BEGIN_DATE:\n count = processBeginDate(count);\n break;\n case WAIT_END_DATE:\n count = processEndDate(count);\n break;\n case WAIT_AMOUNT:\n count = processAmount(count);\n break;\n case WAIT_DAY:\n count = processDay(count);\n break;\n case END:\n count = processEnd(count);\n break;\n default:\n break;\n }\n }\n return this.strategy;\n }",
"public List<JsonNode> forwardQuery(Query query) throws InvalidQueryException, IOException;",
"private void parse() {\n if (workingDirectory != null) {\n Parser.initConstants(this, workingDirectory, remainderFile);\n Parser.parseIt();\n workingDirectory = null;\n remainderFile = null;\n jbParse.setEnabled(false);\n }\n }",
"private ArrayList<TypeDef> parseParamTypeList(Tokenizer in) {\n\t\tArrayList<TypeDef> types = new ArrayList<>();\n\t\tToken next = in.next();\n\t\tif (next.type == Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\treturn types;\n\t\tin.pushTokens(next);\n\t\ttypes.add(parseType(in));\n\t\tnext = in.next();\n\t\twhile (true) {\n\t\t\tif (next.type == Token.TokenType.CLOSE_PARENTHESIS)\n\t\t\t\treturn types;\n\t\t\tif (next.type != Token.TokenType.COMMA)\n\t\t\t\tthrow new SyntaxError(\"Expected ) or , got: '\"+next+\"'\"+next.generateLineChar());\n\t\t\ttypes.add(parseType(in));\n\t\t\tnext = in.next();\n\t\t}\n\t}",
"@Override\n\tprotected void runLine(Query query) {\n\t\tquery.inc();\n\t\tint i = Integer.parseInt(query.next());\n\t\tArrayList<Integer> originList = new ArrayList<Integer>();\n\t\toriginList.add(i - 1);\n\t\tArrayList<Integer> destinationList = new ArrayList<Integer>();\n\t\tparseSecondCondition(query, originList, destinationList);\n\t}",
"@Override\n\tpublic void preVisit( TTable table )\n\t{\n\n\t\tETableSource type = table.getTableType();\n\n\t\tswitch ( type )\n\t\t{\n\t\t\tcase objectname:\n\t\t\t\tthis.addParseResult( table );\n\t\t\t\tbreak;\n\t\t\tcase subquery:\n\t\t\t\ttable.getSubquery().accept( this );\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tLOG.warn( \"Unsupported TTable type: \" + type );\n\t\t\t\tbreak;\n\t\t}\n\t}",
"@Test\n public void test2() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY \" + SIZE.class.getName() +\"(TOTUPLE(*)) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe2 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }",
"public abstract T parse(Object valueToParse, Type type);",
"@Override\n\tpublic void parse() throws Exception {\n\t\tLogger.log(\"Parsing expression: \" + getWords().toString(), 4);\n\t\tint wordsSize= getWords().size();\n\t\tString word;\n\t\tint lastSplitIndex = 0;\n\t\tFExpressionSide fExpSide;\n\t\tfExpSideList = new LinkedList<FExpressionSide>();\n\t\tfor(int i=0; i < wordsSize; i++){\n\t\t\tword = getWords().get(i);\n\t\t\t\n\t\t\tif(Operators.INFIX_OPS.contains(word)){\n\t\t\t\tfExpSide = new FExpressionSide(this);\n\t\t\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, i));\n\t\t\t\tfExpSide.setOperator(word);\n\t\t\t\t\n\t\t\t\tlastSplitIndex = i +1;\n\t\t\t\tfExpSideList.add(fExpSide);\n\t\t\t}\n\t\t}\n\t\tfExpSide = new FExpressionSide(this);\n\t\tfExpSide.setWords(getWords().subList(lastSplitIndex, wordsSize));\n\t\tfExpSideList.add(fExpSide);\n\t\t\n\t\tfor(FExpressionSide f : fExpSideList){\n\t\t\tf.parse();\n\t\t}\n\t\t\n\t\t\n\t}",
"protected void page () throws HTMLParseException {\r\n while (block.restSize () == 0) {\r\n switch (nextToken) {\r\n case END:\r\n return;\r\n case LT:\r\n lastTagStart = tagStart;\r\n tagmode = true;\r\n match (LT);\r\n tag (lastTagStart);\r\n break;\r\n case COMMENT:\r\n //block.addToken (new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.COMMENT, tagStart, stringLength));\r\n match (COMMENT);\r\n break;\r\n case SCRIPT:\r\n //block.addToken (new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n addTokenCheck(new Token (pagepart, Token.SCRIPT, tagStart, stringLength));\r\n match (SCRIPT);\r\n break;\r\n case STRING:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n break;\r\n case MT:\r\n if(!tagmode) {\r\n scanString();\r\n }\r\n default:\r\n if(stringLength > -1){\r\n //block.addToken (new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n // 2009.05.28 by in-koo cho\r\n addTokenCheck(new Token (pagepart, Token.TEXT, tagStart, stringLength));\r\n }\r\n match (nextToken);\r\n }\r\n }\r\n }",
"protected void parse(StreamTokenizer st, Visitor v) {\n\t\t\ttry {\n\t\t\t\tint tokType;\n\n\t\t\t\twhile (_state != States.end) {\n\t\t\t\t\ttokType = st.nextToken();\n\n\t\t\t\t\tif (tokType == StreamTokenizer.TT_EOF) {\n\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\"Transitions: premature EOF in TransitionsParser\");\n\t\t\t\t\t}\n\t\t\t\t\tswitch (_state) {\n\t\t\t\t\tcase start:\n\t\t\t\t\t\tif (isStateId(st)) {\n\t\t\t\t\t\t\t_stateName = st.sval;\n\t\t\t\t\t\t\t_state = States.startDef;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\t\"Transitions: start of property def was not a state id (uppercase word): \"\n\t\t\t\t\t\t\t\t\t\t\t+ st.sval);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase startDef:\n\t\t\t\t\t\tif (tokType == '=') {\n\t\t\t\t\t\t\t_localDefsParser.reset();\n\t\t\t\t\t\t\t_localDefsParser.parse(st, v, this);\n\t\t\t\t\t\t\t_state = States.localDefs;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\t\"Transitions: start of local def was not ',' or '.': \"\n\t\t\t\t\t\t\t\t\t\t\t+ st.sval);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase localDefs:\n\t\t\t\t\t\tif (tokType == '.') {\n\t\t\t\t\t\t\t_state = States.end;\n\t\t\t\t\t\t} else if (tokType == ',') {\n\t\t\t\t\t\t\t_state = States.start;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\t\"Transitions: clause did not end with a '.': \"\n\t\t\t\t\t\t\t\t\t\t\t+ st.sval);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\t\t\"Transitions: unhandled state: \" + _state);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (IOException ex) {\n\t\t\t\tthrow new Exception(\n\t\t\t\t\t\t\"Transitions: IOException while getting next clause token\",\n\t\t\t\t\t\tex);\n\t\t\t}\n\t\t}",
"public QueryParser(java.io.InputStream stream, String encoding) {\n try { jj_input_stream = new JavaCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); }\n token_source = new QueryParserTokenManager(jj_input_stream);\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 117; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }",
"public void read(){\n assert(inputStream.hasNext());\n\n while(inputStream.hasNextLine()){\n String line = inputStream.nextLine();\n String[] fields = line.split(\";\");\n\n //If Line is address line\n if(fields.length >= 4){\n Address adr = new Address(fields[0], fields[1], fields[2], fields[3]);\n if(fields.length == 5){\n parseGroups(fields[4], adr);\n }\n inputAddressList.add(adr);\n }\n\n //If Line is Group Line\n else if(fields.length <=3){\n Group group = new Group(fields[0], Integer.parseInt(fields[1]));\n if(fields.length == 3){\n parseGroups(fields[2], group);\n }\n inputGroupList.add(group);\n }\n }\n compose();\n assert(invariant());\n }",
"public void Mini_Parser(){\n Lista_ER Nuevo=null;\n String Nombre=\"\";\n String Contenido=\"\";\n ArrayList<String> tem = new ArrayList<String>();\n //este boleano sirve para concatenar la expresion regular\n int Estado=0;\n for (int x = 0; x < L_Tokens.size(); x++) {\n switch(Estado){\n //ESTADO 0\n case 0:\n //Conjuntos\n if(L_Tokens.get(x).getLexema().equals(\"CONJ\")){\n if(L_Tokens.get(x+1).getLexema().equals(\":\")){\n if(L_Tokens.get(x+2).getDescripcion().equals(\"Identificador\")){\n //Son conjuntos \n Nombre=L_Tokens.get(x+2).getLexema();\n Estado=1;\n x=x+4;\n }\n }\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n //pasaa estado de expresion regular\n Nombre=L_Tokens.get(x).getLexema();\n Estado=2;\n }\n break;\n \n case 1:\n //ESTADO 1\n //Concatena los conjuntos\n if(L_Tokens.get(x).getDescripcion().equals(\"Identificador\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Digito\")){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n for(int i=6;i<=37;i++){\n if(L_Tokens.get(x).getID()==i){\n if(L_Tokens.get(x+1).getDescripcion().equals(\"Tilde\")){\n Contenido=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n x=x+2;\n Estado=0;\n }\n \n }\n }\n //conjunto sin llaves\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n if(L_Tokens.get(x-1).getLexema().equals(\",\")){\n }else{\n L_Tokens_Conj.add(new Lista_Conjuntos(Nombre, Contenido));\n Estado=0;\n Contenido=\"\";\n\n }\n }else{\n Contenido+=L_Tokens.get(x).getLexema();\n }\n \n\n break;\n case 2:\n //ESTADO 2\n if(L_Tokens.get(x).getLexema().equals(\"-\")){\n if(L_Tokens.get(x+1).getLexema().equals(\">\")){\n //se mira que es expresion regular\n \n Lista_ER nuevo=new Lista_ER(L_Tokens.get(x-1).getLexema());\n Nuevo=nuevo;\n L_Tokens_ER.add(nuevo);\n x++;\n Estado=3;\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\":\")){\n //se mira que es lexema\n Estado=4;\n }\n break;\n case 3: \n //ESTADO 3\n //Concatenacion de Expresion Regular\n \n //System.out.println(\"---------------------------------\"+ L_Tokens.get(x).getLexema());\n if(L_Tokens.get(x).getDescripcion().equals(\"Punto\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Barra Vetical\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Interrogacion\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Asterisco\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Signo Mas\")){\n Nuevo.setER(L_Tokens.get(x).getLexema());\n }\n if(L_Tokens.get(x).getDescripcion().equals(\"Lexema de Entrada\")){ \n String tem1='\"'+L_Tokens.get(x).getLexema()+'\"';\n Nuevo.setER(tem1);\n \n }\n if(L_Tokens.get(x).getLexema().equals(\"{\")){ \n String tem1=\"\";\n if(L_Tokens.get(x+2).getLexema().equals(\"}\")){\n tem1=L_Tokens.get(x).getLexema()+L_Tokens.get(x+1).getLexema()+L_Tokens.get(x+2).getLexema();\n Nuevo.setER(tem1);\n }\n }\n if(L_Tokens.get(x).getLexema().equals(\";\")){\n Estado=0;\n }\n break;\n case 4:\n// System.out.println(L_Tokens.get(x).getLexema());\n Contenido=L_Tokens.get(x+1).getLexema();\n L_Tokens_Lex.add(new Lista_LexemasE(L_Tokens.get(x-2).getLexema(), Contenido));\n Estado=0;\n \n break;\n }//fin switch\n }//Fin for\n }",
"public Content<T> parseFrom(Collection<T> content, T left, T right) {\n /*\n Ideally, this function is going to be getting information that looks something like this:\n\n obj1{obj2}moreinfo\n\n So, the strategy for parsing something like this is to make a data structure with the representation:\n\n [Literal(\"obj1\"), Scope([Literal(\"obj2\")]), Content(\"moreinfo\")]\n\n So we parse everything up to a delimiter, parse everything within the delimiters, and then everything after it\n */\n\n // Get all current information\n Literal<T> literal = new Literal<T>(\n left,\n right,\n FlatParser.untilNextDelimiter(content, left));\n\n\n // We are at the end of the statement to parse, just return the literal\n if(literal.value.size() == content.size())\n return literal;\n else {\n Scope<T> scopedElement = new Scope();\n Scope<T> rest = new Scope();\n\n\n // If there is more content other than the literal, we have to parse the inner elements and outer elements\n return new Content<>(\n Util.concatenate(\n Util.wrap(literal),\n\n Util.wrap(scopedElement.parseFrom(\n FlatParser.withinDelim(content, left, right).get(0),\n left, right)),\n\n Util.wrap(rest.parseFrom(\n FlatParser.afterNextScope(content, left, right),\n left, right))\n )\n );\n\n }\n }",
"protected JsonParser _createParser(char[] data, int offset, int len, IOContext ctxt, boolean recyclable)\n/* */ throws IOException\n/* */ {\n/* 1300 */ return new ReaderBasedJsonParser(ctxt, this._parserFeatures, null, this._objectCodec, this._rootCharSymbols.makeChild(this._factoryFeatures), data, offset, offset + len, recyclable);\n/* */ }",
"@Test\n public void test4() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b, flatten(1);\" +\n \"C = FILTER B BY \" + SIZE.class.getName() +\"(TOTUPLE(*)) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator fe2 = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe2 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n }",
"public FastqParser() {\n\t\tsuper();\n\t}",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"public Query parseQuery(String query) {\n\t\tint start = 0;\n\n\t\t// General routine: scan the query to identify a literal, and put that literal into a list.\n\t\t//\tRepeat until a + or the end of the query is encountered; build an AND query with each\n\t\t//\tof the literals found. Repeat the scan-and-build-AND-query phase for each segment of the\n\t\t// query separated by + signs. In the end, build a single OR query that composes all of the built\n\t\t// AND subqueries.\n\n\t\tList<Query> allSubqueries = new ArrayList<>();\n\t\tdo {\n\t\t\t// Identify the next subquery: a portion of the query up to the next + sign.\n\t\t\tStringBounds nextSubquery = findNextSubquery(query, start);\n\t\t\t// Extract the identified subquery into its own string.\n\t\t\tString subquery = query.substring(nextSubquery.start, nextSubquery.start + nextSubquery.length);\n\n\t\t\tint subStart = 0;\n\n\t\t\t// Store all the individual components of this subquery.\n\t\t\tList<Query> subqueryLiterals = new ArrayList<>(0);\n\n\t\t\tdo {\n\t\t\t\t// Extract the next literal from the subquery.\n\t\t\t\tLiteral lit = findNextLiteral(subquery, subStart);\n\n\t\t\t\t// Add the literal component to the conjunctive list.\n\t\t\t\tsubqueryLiterals.add(lit.literalComponent);\n\n\t\t\t\t// Set the next index to start searching for a literal.\n\t\t\t\tsubStart = lit.bounds.start + lit.bounds.length;\n\n\t\t\t} while (subStart < subquery.length()-1);\n\n\t\t\t// After processing all literals, we are left with a conjunctive list\n\t\t\t// of query components, and must fold that list into the final disjunctive list\n\t\t\t// of components.\n\n\t\t\t// If there was only one literal in the subquery, we don't need to AND it with anything --\n\t\t\t// its component can go straight into the list.\n\t\t\tif (subqueryLiterals.size() == 1) {\n\t\t\t\tallSubqueries.add(subqueryLiterals.get(0));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// With more than one literal, we must wrap them in an AndQuery component.\n\t\t\t\tallSubqueries.add(new AndQuery(subqueryLiterals));\n\t\t\t}\n\t\t\tstart = nextSubquery.start + nextSubquery.length;\n\t\t} while (start < query.length());\n\n\t\t// After processing all subqueries, we either have a single component or multiple components\n\t\t// that must be combined with an OrQuery.\n\t\tif (allSubqueries.size() == 1) {\n\t\t\treturn allSubqueries.get(0);\n\t\t}\n\t\telse if (allSubqueries.size() > 1) {\n\t\t\treturn new OrQuery(allSubqueries);\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"@SuppressWarnings(\"null\")\n\tpublic QueryParameter parseQuery(String queryString) {\n\t\t\n/*\n\t\t * extract the name of the file from the query. File name can be found after the\n\t\t * \"from\" clause.\n\t\t */\n\n\t\t/*\n\t\t * extract the order by fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"order by\" clause in the query, if at all\n\t\t * the order by clause exists. For eg: select city,winner,team1,team2 from\n\t\t * data/ipl.csv order by city from the query mentioned above, we need to extract\n\t\t * \"city\". Please note that we can have more than one order by fields.\n\t\t */\n\n\t\t/*\n\t\t * extract the group by fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"group by\" clause in the query, if at all\n\t\t * the group by clause exists. For eg: select city,max(win_by_runs) from\n\t\t * data/ipl.csv group by city from the query mentioned above, we need to extract\n\t\t * \"city\". Please note that we can have more than one group by fields.\n\t\t */\n\n\t\t /*\n\t\t * extract the selected fields from the query string. Please note that we will\n\t\t * need to extract the field(s) after \"select\" clause followed by a space from\n\t\t * the query string. For eg: select city,win_by_runs from data/ipl.csv from the\n\t\t * query mentioned above, we need to extract \"city\" and \"win_by_runs\". Please\n\t\t * note that we might have a field containing name \"from_date\" or \"from_hrs\".\n\t\t * Hence, consider this while parsing.\n\t\t */\n\n\t\t/*\n\t\t * extract the conditions from the query string(if exists). for each condition,\n\t\t * we need to capture the following: 1. Name of field 2. condition 3. value\n\t\t * \n\t\t * For eg: select city,winner,team1,team2,player_of_match from data/ipl.csv\n\t\t * where season >= 2008 or toss_decision != bat\n\t\t * \n\t\t * here, for the first condition, \"season>=2008\" we need to capture: 1. Name of\n\t\t * field: season 2. condition: >= 3. value: 2008\n\t\t * \n\t\t * the query might contain multiple conditions separated by OR/AND operators.\n\t\t * Please consider this while parsing the conditions.\n\t\t * \n\t\t */\n\n\t\t /*\n\t\t * extract the logical operators(AND/OR) from the query, if at all it is\n\t\t * present. For eg: select city,winner,team1,team2,player_of_match from\n\t\t * data/ipl.csv where season >= 2008 or toss_decision != bat and city =\n\t\t * bangalore\n\t\t * \n\t\t * the query mentioned above in the example should return a List of Strings\n\t\t * containing [or,and]\n\t\t */\n\n\t\t/*\n\t\t * extract the aggregate functions from the query. The presence of the aggregate\n\t\t * functions can determined if we have either \"min\" or \"max\" or \"sum\" or \"count\"\n\t\t * or \"avg\" followed by opening braces\"(\" after \"select\" clause in the query\n\t\t * string. in case it is present, then we will have to extract the same. For\n\t\t * each aggregate functions, we need to know the following: 1. type of aggregate\n\t\t * function(min/max/count/sum/avg) 2. field on which the aggregate function is\n\t\t * being applied\n\t\t * \n\t\t * Please note that more than one aggregate function can be present in a query\n\t\t * \n\t\t * \n\t\t */\n\n\t\tString file = null;\n\t\tList<Restriction> restrictions = new ArrayList<Restriction>();\n\t\tList<String> logicalOperators = new ArrayList<String>();\n\t\tList<String> fields = new ArrayList<String>();;\n\t\tList<AggregateFunction> aggregateFunction = new ArrayList<AggregateFunction>();\n\t\tList<String> groupByFields = new ArrayList<String>();;\n\t\tList<String> orderByFields = new ArrayList<String>();;\n\t\tString baseQuery=null;\n\t\n\t\tfile = getFile(queryString);\n\n\t\t\n\t\tString[] conditions = getConditions(queryString);\n\t\tif(conditions!=null) {\n\t\tRestriction[] restriction = new Restriction[conditions.length];\n\t\t\n\t\tfor (int i = 0; i < conditions.length; i++) {\n\t\t\trestriction[i] = new Restriction();\n\t\t\t\n\t\t\tString operator=null;\n\t\t\tString value=null;\n\t\t\tString property=null;\n\t\t\t if(conditions[i].contains(\"<=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"<=\");\n\t\t\t\toperator=\"<=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\">=\")) {\n\t\t\t\tString[] split = conditions[i].split(\">=\");\n\t\t\t\toperator=\">=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\">\")) {\n\t\t\t\tString[] split = conditions[i].split(\">\");\n\t\t\t\toperator=\">\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"!=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"!=\");\n\t\t\t\toperator=\"!=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"=\")) {\n\t\t\t\tString[] split = conditions[i].split(\"=\");\n\t\t\t\toperator=\"=\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t\t if(value.contains(\"'\")) {\n\t\t\t\t\t value= value.replaceAll(\"'\",\"\").trim();\n\t\t\t\t }\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(conditions[i].contains(\"<\")) {\n\t\t\t\tString[] split = conditions[i].split(\"<\");\n\t\t\t\toperator=\"<\";\n\t\t\t\t value=split[1].trim();\n\t\t\t\t property=split[0].trim();\n\t\t\t}\n\t\t\t \n\t\t\t\n\t\t\trestriction[i].setCondition(operator);\n\t\t\trestriction[i].setPropertyName(property);\n\t\t\trestriction[i].setPropertyValue(value);\n\t\t\trestrictions.add(restriction[i]);\n\n\t\t}\n\t\t}\n\t\n\t\tString[] operators = getLogicalOperators(queryString);\n\t\tif(operators!=null) {\n\t\tfor (String op : operators) {\n\t\t\tlogicalOperators.add(op);\n\t\t}\n\t\t}\n\t\t\n\t\tString[] filds = getFields(queryString);\n\t\tif(filds!=null) {\n\t\tfor (String field : filds) {\n\t\t\tfields.add(field);\n\t\t}\n\t\t}\n\t\t\n\t\tString[] aggregationVal = getAggregateFunctions(queryString);\n\t\tif(aggregationVal!=null) {\n\t\tAggregateFunction[] aggregation = new AggregateFunction[aggregationVal.length];\n\t\tfor (int i = 0; i < aggregationVal.length; i++) {\n\t\t\taggregation[i] = new AggregateFunction();\n\t\t\tString[] split = (aggregationVal[i].replace(\"(\", \" \")).split(\" \");\n\t\t\tSystem.out.println(split[0]);\n\t\t\tSystem.out.println(split[1].replace(\")\", \"\").trim());\n\t\t\t\n\t\t\taggregation[i].setFunction(split[0]);\n\t\t\taggregation[i].setField(split[1].replace(\")\", \"\").trim());\n\t\t\taggregateFunction.add(aggregation[i]);\n\n\t\t}\n\t\t}\n\t\t\n\t\t\t\n\t\t\n\t\tString[] groupBy = getGroupByFields(queryString);\n\t\tif(groupBy!=null) {\n\t\tfor (String group : groupBy) {\n\t\t\tgroupByFields.add(group);\n\t\t}\n\t\t}\n\t\n\t\tString[] orderBy = getOrderByFields(queryString);\n\t\tif(orderBy!=null) {\n\t\tfor (String order : orderBy) {\n\t\t\torderByFields.add(order);\n\t\t}\n\t\t}\n\t\tqueryParameter.setFile(file);\n\t\tif(restrictions.size()!=0) {\n\t\t\tqueryParameter.setRestrictions(restrictions);\n\t\t}\n\t\telse {\n\t\t\tqueryParameter.setRestrictions(null);\n\t\t}\n\t\tif(logicalOperators.size()!=0) {\n\t\tqueryParameter.setLogicalOperators(logicalOperators);\n\t\t}\n\t\telse {\n\t\t\tqueryParameter.setLogicalOperators(null);\n\t\t}\n\t\tbaseQuery=getBaseQuery(queryString);\n\t\t\n\t\tqueryParameter.setFields(fields);\n\t\tqueryParameter.setAggregateFunctions(aggregateFunction);\n\t\tqueryParameter.setGroupByFields(groupByFields);\n\t\tqueryParameter.setOrderByFields(orderByFields);\n\t\tqueryParameter.setBaseQuery(baseQuery.trim());\n\t\treturn queryParameter;\n\n\t}",
"public void testParser() throws Exception {\n assertEquals(\"http://util.java/HashMap\", parse(HashMap.class));\n assertEquals(\"http://simpleframework.org/xml/Element\", parse(Element.class));\n assertEquals(\"http://simpleframework.org/xml/ElementList\", parse(ElementList.class));\n assertEquals(\"http://w3c.org/dom/Node\", parse(Node.class));\n assertEquals(\"http://simpleframework.org/xml/strategy/PackageParser\", parse(PackageParser.class));\n \n assertEquals(HashMap.class, revert(\"http://util.java/HashMap\"));\n assertEquals(Element.class, revert(\"http://simpleframework.org/xml/Element\"));\n assertEquals(ElementList.class, revert(\"http://simpleframework.org/xml/ElementList\"));\n assertEquals(Node.class, revert(\"http://w3c.org/dom/Node\"));\n assertEquals(PackageParser.class, revert(\"http://simpleframework.org/xml/strategy/PackageParser\"));\n \n long start = System.currentTimeMillis();\n for(int i = 0; i < ITERATIONS; i++) {\n fastParse(ElementList.class);\n }\n long fast = System.currentTimeMillis() - start;\n start = System.currentTimeMillis();\n for(int i = 0; i < ITERATIONS; i++) {\n parse(ElementList.class);\n }\n long normal = System.currentTimeMillis() - start;\n System.out.printf(\"fast=%sms normal=%sms diff=%s%n\", fast, normal, normal / fast);\n }",
"public void parse() {\n MessageBlockLexer lexer = new MessageBlockBailLexer(name, postNumber, CharStreams.fromString(raw));\n\n // remove ConsoleErrorListener\n lexer.removeErrorListeners();\n\n // create a buffer of tokens pulled from the lexer\n CommonTokenStream tokens = new CommonTokenStream(lexer);\n\n // create a parser that feeds off the tokens buffer\n MessageBlockParser parser = new MessageBlockParser(tokens);\n\n // remove ConsoleErrorListener\n parser.removeErrorListeners();\n\n // Create/add custom error listener\n MessageBlockErrorListener errorListener = new MessageBlockErrorListener(name, topic, postNumber);\n parser.addErrorListener(errorListener);\n\n // Begin parsing at the block rule\n ParseTree tree = parser.block();\n\n // Check for parsing errors\n errorListener.throwIfErrorsPresent();\n\n LOGGER.trace(tree.toStringTree(parser));\n\n // Walk the tree\n ParseTreeWalker walker = new ParseTreeWalker();\n walker.walk(new Listener(this), tree);\n }",
"public void parse() throws Exception {\r\n\t\tToken token;\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\ttry {\r\n\t\t\t// Loop over each token until the end of file.\r\n\t\t\twhile (!((token = nextToken()) instanceof EofToken)) {\r\n\t\t\t\tTokenType tokenType = token.getType();\r\n\t\t\t\tif (tokenType != ERROR) {\r\n\t\t\t\t\t// Format each token.\r\n\t\t\t\t\tsendMessage(new Message(TOKEN, new Object[] {\r\n\t\t\t\t\t\t\ttoken.getLineNumber(), token.getPosition(),\r\n\t\t\t\t\t\t\ttokenType, token.getText(), token.getValue() }));\r\n\t\t\t\t} else {\r\n\t\t\t\t\terrorHandler.flag(token,\r\n\t\t\t\t\t\t\t(OracleErrorCode) token.getValue(), this);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Send the parser summary message.\r\n\t\t\tfloat elapsedTime = (System.currentTimeMillis() - startTime) / 1000f;\r\n\t\t\tsendMessage(new Message(PARSER_SUMMARY, new Number[] {\r\n\t\t\t\t\ttoken.getLineNumber(), getErrorCount(), elapsedTime }));\r\n\t\t} catch (java.io.IOException ex) {\r\n\t\t\terrorHandler.abortTranslation(IO_ERROR, this);\r\n\t\t}\r\n\t}",
"static private List getObjectsOfType(final ExecutionContext ec, final HBaseManagedConnection mconn,\r\n final AbstractClassMetaData cmd, boolean ignoreCache, FetchPlan fp, final Filter filter, final StoreManager storeMgr)\r\n {\r\n List results = new ArrayList();\r\n\r\n StoreData sd = storeMgr.getStoreDataForClass(cmd.getFullClassName());\r\n if (sd == null)\r\n {\r\n storeMgr.manageClasses(ec.getClassLoaderResolver(), cmd.getFullClassName());\r\n sd = storeMgr.getStoreDataForClass(cmd.getFullClassName());\r\n }\r\n final Table table = sd.getTable();\r\n final String tableName = table.getName();\r\n final int[] fpMembers = fp.getFetchPlanForClass(cmd).getMemberNumbers();\r\n try\r\n {\r\n final ClassLoaderResolver clr = ec.getClassLoaderResolver();\r\n\r\n Scan scan = new Scan();\r\n if (filter != null)\r\n {\r\n scan.setFilter(filter);\r\n }\r\n\r\n // Retrieve all fetch-plan fields\r\n for (int i=0; i<fpMembers.length; i++)\r\n {\r\n AbstractMemberMetaData mmd = cmd.getMetaDataForManagedMemberAtAbsolutePosition(fpMembers[i]);\r\n RelationType relationType = mmd.getRelationType(clr);\r\n if (relationType != RelationType.NONE && MetaDataUtils.getInstance().isMemberEmbedded(ec.getMetaDataManager(), clr, mmd, relationType, null))\r\n {\r\n if (RelationType.isRelationSingleValued(relationType))\r\n {\r\n // 1-1 embedded\r\n List<AbstractMemberMetaData> embMmds = new ArrayList<AbstractMemberMetaData>();\r\n embMmds.add(mmd);\r\n addColumnsToScanForEmbeddedMember(scan, embMmds, table, ec);\r\n }\r\n }\r\n else\r\n {\r\n MemberColumnMapping mapping = table.getMemberColumnMappingForMember(mmd);\r\n int numCols = mapping.getNumberOfColumns();\r\n for (int colNo=0;colNo<numCols;colNo++)\r\n {\r\n Column col = mapping.getColumn(colNo);\r\n byte[] familyName = HBaseUtils.getFamilyNameForColumn(col).getBytes();\r\n byte[] qualifName = HBaseUtils.getQualifierNameForColumn(col).getBytes();\r\n scan.addColumn(familyName, qualifName);\r\n }\r\n }\r\n }\r\n\r\n VersionMetaData vermd = cmd.getVersionMetaDataForClass();\r\n if (cmd.isVersioned() && vermd.getMemberName() == null)\r\n {\r\n // Add version column\r\n byte[] familyName = HBaseUtils.getFamilyNameForColumn(table.getSurrogateColumn(SurrogateColumnType.VERSION)).getBytes();\r\n byte[] qualifName = HBaseUtils.getQualifierNameForColumn(table.getSurrogateColumn(SurrogateColumnType.VERSION)).getBytes();\r\n scan.addColumn(familyName, qualifName);\r\n }\r\n if (cmd.hasDiscriminatorStrategy())\r\n {\r\n // Add discriminator column\r\n byte[] familyName = HBaseUtils.getFamilyNameForColumn(table.getSurrogateColumn(SurrogateColumnType.DISCRIMINATOR)).getBytes();\r\n byte[] qualifName = HBaseUtils.getQualifierNameForColumn(table.getSurrogateColumn(SurrogateColumnType.DISCRIMINATOR)).getBytes();\r\n scan.addColumn(familyName, qualifName);\r\n }\r\n if (cmd.getIdentityType() == IdentityType.DATASTORE)\r\n {\r\n // Add datastore identity column\r\n byte[] familyName = HBaseUtils.getFamilyNameForColumn(table.getSurrogateColumn(SurrogateColumnType.DATASTORE_ID)).getBytes();\r\n byte[] qualifName = HBaseUtils.getQualifierNameForColumn(table.getSurrogateColumn(SurrogateColumnType.DATASTORE_ID)).getBytes();\r\n scan.addColumn(familyName, qualifName);\r\n }\r\n\r\n org.apache.hadoop.hbase.client.Table htable = mconn.getHTable(tableName);\r\n ResultScanner scanner = htable.getScanner(scan);\r\n if (ec.getStatistics() != null)\r\n {\r\n // Add to statistics\r\n ec.getStatistics().incrementNumReads();\r\n }\r\n Iterator<Result> it = scanner.iterator();\r\n\r\n // Instantiate the objects\r\n if (cmd.getIdentityType() == IdentityType.APPLICATION)\r\n {\r\n while (it.hasNext())\r\n {\r\n final Result result = it.next();\r\n Object obj = getObjectUsingApplicationIdForResult(result, cmd, ec, ignoreCache, fpMembers, tableName, storeMgr, table);\r\n if (obj != null)\r\n {\r\n results.add(obj);\r\n }\r\n }\r\n }\r\n else if (cmd.getIdentityType() == IdentityType.DATASTORE)\r\n {\r\n while (it.hasNext())\r\n {\r\n final Result result = it.next();\r\n Object obj = getObjectUsingDatastoreIdForResult(result, cmd, ec, ignoreCache, fpMembers, tableName, storeMgr, table);\r\n if (obj != null)\r\n {\r\n results.add(obj);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n while (it.hasNext())\r\n {\r\n final Result result = it.next();\r\n Object obj = getObjectUsingNondurableIdForResult(result, cmd, ec, ignoreCache, fpMembers, tableName, storeMgr, table);\r\n if (obj != null)\r\n {\r\n results.add(obj);\r\n }\r\n }\r\n }\r\n }\r\n catch (IOException e)\r\n {\r\n throw new NucleusDataStoreException(e.getMessage(), e.getCause());\r\n }\r\n return results;\r\n }",
"public abstract void parse() throws IOException;",
"protected abstract Operation parseLine(File baseDir, String line, int lineNum) throws IOException;",
"boolean stageAfterQueryParsing(Object input) throws ValidationFailedException;",
"public interface QueryResponseParser {\n Documents<IdolSearchResult> parseQueryResults(AciSearchRequest<String> searchRequest, AciParameters aciParameters, QueryResponseData responseData, IdolDocumentService.QueryExecutor queryExecutor);\n\n List<IdolSearchResult> parseQueryHits(Collection<Hit> hits);\n}",
"@Test\r\n\tpublic void typeParserTest() {\n\t\tvalidateTypeParse(\r\n\t\t\t\t\"(function that takes a number and outputs a number)\");\r\n\t\t// validateTypeParse(\r\n\t\t// \"(function that takes a number and a (function that takes a number)\r\n\t\t// and outputs a number)\");\r\n\t\t// validateTypeParse(\r\n\t\t// \"(function that takes a number, a string, and an element_of_type_3\r\n\t\t// and outputs a number)\");\r\n\t\t// validateTypeParse(\"(function that takes a number)\");\r\n\t\t// assertEquals(\"procedure\", cdLoopType(\"function\"));\r\n\t\t// validateTypeParse(\"(function that outputs a number)\");\r\n\t\t// validateTypeParse(\"procedure\");\r\n\t}",
"private @NotNull RecordDatum.Builder finishReadingRecord(\n @Nullable String fieldName,\n @NotNull RecordType type,\n @NotNull Collection<RMP> projections // non-empty\n ) throws IOException, JsonFormatException {\n\n RecordDatum.Builder datum = type.createBuilder();\n if (fieldName == null) { // empty record?\n ensureCurr(JsonToken.END_OBJECT, \"field name or '}'\");\n return datum;\n } else {\n while (true) {\n Field field = type.fieldsMap().get(fieldName);\n if (field == null) throw error(\n \"Unknown field '\" + fieldName + \"' in record type '\" + type.name().toString() + \"'\"\n );\n List<P> fieldProjections =\n fieldProjections(projections, field, () -> new ArrayList<>(projections.size()));\n if (fieldProjections == null) throw error(\"Unexpected field '\" + fieldName + \"'\");\n Data fieldData = readData(field.dataType().type(), fieldProjections);\n datum._raw().setData(field, fieldData);\n\n JsonToken token = nextNonEof();\n if (token == JsonToken.END_OBJECT) break;\n if (token == JsonToken.FIELD_NAME) fieldName = currentName();\n else throw expected(\"field name or '}'\");\n }\n }\n\n for (RMP projection : projections)\n for (final Map.Entry<String, FPE> entry : projection.fieldProjections().entrySet())\n if (fieldRequired(entry.getValue())) {\n final Data data = datum._raw().getData((Field) entry.getValue().field());\n if (data == null)\n throw error(\"Required field '\" + entry.getKey() + \"' is missing\");\n else if (data.type().kind() != TypeKind.ENTITY) {\n final Val val = data._raw().tagValues().get(DatumType.MONO_TAG_NAME);\n if (val == null || val.getDatum() == null)\n throw error(\"Required field '\" + entry.getKey() + \"' is missing\");\n }\n }\n\n return datum;\n }",
"private ExecStmtParser(String query) {\n\t\tsuper(query);\n\t}",
"public void run() throws IOException {\n\t\tMultiQuery multi = new MultiQuery(dos, dis);\n\t\tmulti.add(this);\n\t\tmulti.run();\n\t}",
"private Object read() throws XMLParseException {\n\t\tswitch (_tokenizer.next()) {\n\t\tdefault: break;\n\t\tcase ERROR: throw new XMLParseException(_tokenizer.getCurrentText());\n\t\tcase TEXT: return _tokenizer.getCurrentText();\n\t\tcase OPEN:\n\t\t\tElement result = new Element(_tokenizer.getCurrentName());\n\t\t\twhile (_tokenizer.next() == XMLTokenType.ATTR) {\n\t\t\t\tif (result.setAttr(_tokenizer.getCurrentName(), _tokenizer.getCurrentText()) != null) {\n\t\t\t\t\tthrow new XMLParseException(\"duplicate attribute: \" + _tokenizer.getCurrentName());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (_tokenizer.current() == XMLTokenType.ECLOSE) {\n\t\t\t\t// System.out.println(\"ended /> for \" + result.getName());\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tif (_tokenizer.current() != XMLTokenType.CLOSE) {\n\t\t\t\tthrow new XMLParseException(_tokenizer.getCurrentText());\n\t\t\t}\n\t\t\t_pending.push(result.getName());\n\t\t\twhile (_tokenizer.next() != XMLTokenType.ETAG) {\n\t\t\t\t/*if (_tokenizer.current() == XMLTokenType.END) {\n\t\t\t\t\tthrow new XMLParseException(\"Unexpected end of file\");\n\t\t\t\t}*/\n\t\t\t\tif (_tokenizer.current() == XMLTokenType.END) {\n\t\t\t\t\tif (isHTML) {\n\t\t\t\t\t\t_pending.pop();\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new XMLParseException(\"Missing end tag for <\" + result.getName() + \">\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_tokenizer.saveToken();\n\t\t\t\tresult.addContent(read());\n\t\t\t}\n\t\t\t_pending.pop();\n\t\t\tif (!_tokenizer.getCurrentName().equals(result.getName())) {\n\t\t\t\tif (isHTML) {\n\t\t\t\t\t// System.out.println(\"HTML backup for \" + result.getName());\n\t\t\t\t\tfor (String p : _pending) {\n\t\t\t\t\t\tif (_tokenizer.getCurrentName().equals(p)) {\n\t\t\t\t\t\t\t_tokenizer.saveToken();\n\t\t\t\t\t\t\t//System.out.println(\"implicitly ended by </\" + p + \">\");\n\t\t\t\t\t\t\treturn result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthrow new XMLParseException(\"<\" + result.getName() + \"> ended with </\" + _tokenizer.getCurrentName() + \">\");\n\t\t\t}\n\t\t\treturn result;\n\t\tcase END: throw new XMLParseException(\"no XML element\");\n\t\t}\n\t\t// NB: if execution reaches here, we did something wrong.\n\t\tthrow new XMLParseException(\"internal error: what kind of token is this? \" + _tokenizer);\n\t}",
"public void endParsing();",
"public abstract Object parseRecord(String input);",
"private void processCommands(String[] args) {\n int current = 0; //a running total of the parts added to a\n // command\n for (String part : args) {\n command += part;\n if ((part.equals(\";\")) || (part.equals(\"&\"))) { //if it is a delimiter\n if (part.equals(\";\")) { //sequential\n executeSequentially();\n } else { //concurrent\n executeConcurrently();\n }\n } else { //not a delimiter\n if ((current == args.length - 1)) { //contains no delimter in the\n // command (for single commands and the last of a series of\n // commands)\n executeSequentially();//runs as a sequential command\n } else { //not a delmiter and not the end of the commands\n command += \" \"; //add the part to command\n }\n }\n current++;\n }\n }",
"abstract protected boolean findDelimAndExtractToken(ParsePosition pos,\n StringBuffer buffer);",
"public FullQueryExprDeParser() {\n this.tables = null;\n this.oldToNewTables = null;\n this.relations = null;\n this.aliases = null;\n this.oldAliasToTable = null;\n }",
"public interface Parsable {\n\n <T, E> List<E> parseObjects(Class<? extends T> entityClass);\n\n}",
"public parser(CharStream arg0){\r\n\t\tsuper(arg0);\r\n\t\t//create a list to hold the employee objects\r\n\t\tmySms = new ArrayList();\r\n\t\tmyFaq = new ArrayList();\r\n\t\tfor (int i = 0 ; i< MAX_RANKS; i++){\r\n\t\t\t Ranks[i] = new rank();\r\n\t\t\t Ranks[i].setHits(0);\r\n\t\t\t Ranks[i].setId(\"\");\r\n\t\t\t Ranks[i].setQuestion(\"\");\r\n\t\t\t Ranks[i].setDomain(\"\");\r\n\t\t}\r\n\t\tfor (int i = 0 ; i< MAX_RANKS; i++){\r\n\t\t\t topRank[i] = new rank();\r\n\t\t\t topRank[i].setHits(0);\r\n\t\t\t topRank[i].setId(\"\");\r\n\t\t\t topRank[i].setQuestion(\"\");\r\n\t\t\t topRank[i].setDomain(\"\");\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void enterDslStatement(AAIDslParser.DslStatementContext ctx) {\n\t\tif (isUnionBeg) {\n\t\t\tisUnionBeg = false;\n\t\t\tisUnionTraversal = true;\n\n\t\t} else if (unionMembers > 0) {\n\t\t\tunionMembers--;\n\t\t\tquery += \",builder.newInstance()\";\n\t\t\tisUnionTraversal = true;\n\t\t}\n\n\t}",
"@Override ASTSeq parse_impl(Exec E) {\n try {\n if (!E.skipWS().hasNext()) throw new IllegalArgumentException(\"End of input unexpected. Badly formed AST. Missing `from` argument.\");\n _from = E.nextDbl();\n } catch (ClassCastException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(\"Argument `from` expected to be a number.\");\n }\n // Get the to\n try {\n if (!E.skipWS().hasNext()) throw new IllegalArgumentException(\"End of input unexpected. Badly formed AST. Missing `to` argument.\");\n _to = E.nextDbl();\n } catch (ClassCastException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(\"Argument `to` expected to be a number.\");\n }\n // Get the by\n try {\n if (!E.skipWS().hasNext()) throw new IllegalArgumentException(\"End of input unexpected. Badly formed AST. Missing `by` argument.\");\n _by = E.nextDbl();\n } catch (ClassCastException e) {\n e.printStackTrace();\n throw new IllegalArgumentException(\"Argument `by` expected to be a number.\");\n }\n\n if( _from >= _to ) throw new IllegalArgumentException(\"`from` >= `to`: \" + _from + \">=\" + _to);\n if( _by <= 0 ) throw new IllegalArgumentException(\"`by` must be >0: \" + _by + \" <=0\");\n\n E.eatEnd(); // eat the ending ')'\n // Finish the rest\n ASTSeq res = (ASTSeq) clone();\n res._asts = new AST[]{}; // in reverse order so they appear correctly on the stack.\n return res;\n }",
"@Test\n public void test1() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:bag{(u,v)}, b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY \" + COUNT.class.getName() +\"($0) > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator fe1 = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator filter = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe2 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }",
"protected void parseElements(XmlElement processElement) {\n\n parseStartEvents(processElement);\n parseActivities(processElement);\n parseEndEvents(processElement);\n parseSequenceFlow(processElement);\n }",
"private void parseSecondCondition(Query query, ArrayList<Integer> originList,\n\t\t\tArrayList<Integer> destinationList) {\n\t\tquery.inc(2);\n\t\thandleSecondComment(query, originList, destinationList);\n\t\thandleSecondData(query, originList, destinationList);\n\t\thandleSecondCode(query, originList, destinationList);\n\t\tif (isLine(query.part())) {\n\t\t\tquery.inc();\n\t\t\tint i = Integer.parseInt(query.next());\n\t\t\tdestinationList.add(i - 1);\n\t\t\tconnectListsOfChunkIndices(originList, destinationList);\n\t\t}\n\t}",
"private @NotNull RecordDatum finishReadingRecord(\n @NotNull JsonToken token,\n @Nullable String fieldName,\n @NotNull RecordType type\n ) throws IOException, JsonFormatException {\n\n ensure(token, JsonToken.START_OBJECT);\n RecordDatum.Builder datum = type.createBuilder();\n if (fieldName == null) { // empty record?\n ensureCurr(JsonToken.END_OBJECT, \"field name or '}'\");\n return datum;\n } else {\n while (true) {\n Field field = type.fieldsMap().get(fieldName);\n if (field == null) throw error(\n \"Unknown field '\" + fieldName + \"' in record type '\" + type.name().toString() + \"'\"\n );\n Data fieldData = readData(field.dataType());\n datum._raw().setData(field, fieldData);\n\n token = nextNonEof();\n if (token == JsonToken.END_OBJECT) break;\n if (token == JsonToken.FIELD_NAME) fieldName = currentName();\n else throw expected(\"field name or '}'\");\n }\n }\n return datum;\n }",
"public LineByLineDataParser(DataDescription dataDescription) {\n super(dataDescription);\n buf.clear();\n }",
"@Override\n public void parse(\n ParserProto.ParserRequest request,\n StreamObserver<ParserProto.ParserResponse> responseObserver) {\n\n String q = request.getQuery();\n int epos = -1; // Don't use query.length(), use -1.\n String err = \"\";\n\n try {\n ParseDriver pd = new ParseDriver();\n ASTNode node = pd.parse(q);\n\n } catch (ParseException e) {\n try {\n Field errorsField = ParseException.class.getDeclaredField(\"errors\");\n errorsField.setAccessible(true);\n ArrayList<ParseError> errors = (ArrayList<ParseError>) errorsField.get(e);\n Field reField = ParseError.class.getDeclaredField(\"re\");\n reField.setAccessible(true);\n RecognitionException re = (RecognitionException) reField.get(errors.get(0));\n epos = ParserServer.posToIndex(q, re.line, re.charPositionInLine);\n } catch (Exception all) {\n err = \"Cannot parse the error message from HiveQL parser\";\n }\n\n if (err == \"\") {\n try {\n ParseDriver pd = new ParseDriver();\n ASTNode node = pd.parse(q);\n } catch (ParseException ee) {\n err = ee.getMessage();\n }\n }\n }\n\n responseObserver.onNext(\n ParserProto.ParserResponse.newBuilder().setIndex(epos).setError(err).build());\n responseObserver.onCompleted();\n }",
"public ORBDataParserImpl(ORB paramORB, DataCollector paramDataCollector) {\n/* 405 */ super(ParserTable.get().getParserData());\n/* 406 */ this.orb = paramORB;\n/* 407 */ this.wrapper = ORBUtilSystemException.get(paramORB, \"orb.lifecycle\");\n/* 408 */ init(paramDataCollector);\n/* 409 */ complete();\n/* */ }",
"public abstract <T> List<? extends T> createQuery(String query, Class<T> type, int firstResult, int maxResult);",
"public interface TextSchemaParser {\n\n /**\n * This method should only be called by a TextParseTask class. Don't use this\n * directly in your code. Use a TextParseTask instead.\n * <p>\n * Sends line parse events to the supplied lineEventListener while parsing.\n *\n * @param lineConsumer The line consumer which will receive events for each parsed line.\n * @param errorConsumer The error consumer that will receive events for each error.\n * @return Number of lines parsed\n * @throws IOException If there is an error reading from the input reader.\n */\n long parse(Consumer<Line> lineConsumer, Consumer<JSaParException> errorConsumer) throws IOException;\n\n /**\n * This method should only be called by a TextParseTask class. Don't use this\n * directly in your code. Use a TextParseTask instead.\n * <p>\n * Returns a stream of lines that are lazily populated by lines when pulled from the stream.\n * @param errorConsumer The error consumer that will receive events for each error.\n * @return a stream of lines that are lazily populated by lines when pulled from the stream.\n * @since 2.3\n * @throws IOException If there is an error reading from the input reader.\n */\n Stream<Line> stream(Consumer<JSaParException> errorConsumer) throws IOException;\n\n\n /**\n * Internal method to create a schema parser using this schema.\n * @param schema The schema to create a parser for.\n * @param reader The reader to use for the parser.\n * @param parseConfig Current parse configuration.\n * @return Create a schema based text parser. *\n */\n static TextSchemaParser ofSchema(Schema<? extends SchemaLine<? extends SchemaCell>> schema, Reader reader, TextParseConfig parseConfig) {\n if (schema instanceof CsvSchema)\n return new CsvParser(reader, (CsvSchema) schema, parseConfig);\n if (schema instanceof FixedWidthSchema)\n return new FixedWidthParser(reader, (FixedWidthSchema) schema, parseConfig);\n throw new IllegalArgumentException(\"Unsupported schema type: \" + schema.getClass() + \" while parsing.\");\n }\n}",
"@Test\n public void test3() throws Exception {\n String query = \"A =LOAD 'file.txt' AS (a:(u,v), b, c);\" +\n \"B = FOREACH A GENERATE $0, b;\" +\n \"C = FILTER B BY 8 > 5;\" +\n \"STORE C INTO 'empty';\"; \n LogicalPlan newLogicalPlan = buildPlan( query );\n\n Operator load = newLogicalPlan.getSources().get( 0 );\n Assert.assertTrue( load instanceof LOLoad );\n Operator filter = newLogicalPlan.getSuccessors( load ).get( 0 );\n Assert.assertTrue( filter instanceof LOFilter );\n Operator fe1 = newLogicalPlan.getSuccessors( filter ).get( 0 );\n Assert.assertTrue( fe1 instanceof LOForEach );\n Operator fe2 = newLogicalPlan.getSuccessors( fe1 ).get( 0 );\n Assert.assertTrue( fe2 instanceof LOForEach );\n }",
"private void prepare( ) {\n super.prepare( schema.getCount( ) );\n serializer = new FieldSerializer[ fieldCount ];\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldSchema field = schema.getField( i );\n serializer[i] = serializerByType[ field.getType().ordinal() ];\n }\n }",
"@Override\r\n protected void parseDocuments()\r\n {\n\r\n }",
"@Override\n protected List<IElementParser<ShapeImpl>> createParserList() {\n List<IElementParser<ShapeImpl>> result = new ArrayList<>();\n result.add(new SubElementPolylineParser());\n result.add(new SubElementClothoidParser());\n result.add(new SubElementNurbsParser());\n return result;\n }"
]
| [
"0.56608504",
"0.5636923",
"0.5452743",
"0.5194541",
"0.5167049",
"0.5107402",
"0.5103651",
"0.5077222",
"0.503239",
"0.5013993",
"0.5005659",
"0.5005303",
"0.5004884",
"0.49995634",
"0.49880818",
"0.49649262",
"0.49602678",
"0.4954788",
"0.49158293",
"0.49061266",
"0.4903811",
"0.49035615",
"0.48787493",
"0.4864105",
"0.48498538",
"0.4838564",
"0.4832505",
"0.48322946",
"0.48322707",
"0.4827855",
"0.48124182",
"0.48093334",
"0.4788808",
"0.47881442",
"0.47862318",
"0.47611052",
"0.47474757",
"0.474706",
"0.47454855",
"0.47364885",
"0.47303158",
"0.47303158",
"0.4718636",
"0.46886662",
"0.4676307",
"0.4674821",
"0.4673889",
"0.46738866",
"0.46693894",
"0.4666897",
"0.46616188",
"0.46594396",
"0.46515393",
"0.46454054",
"0.46365368",
"0.4627618",
"0.46236587",
"0.461909",
"0.4605897",
"0.45978138",
"0.45961276",
"0.4589333",
"0.45868218",
"0.4566529",
"0.45630085",
"0.45605823",
"0.45544317",
"0.45482185",
"0.45437637",
"0.45428243",
"0.45376194",
"0.45361486",
"0.45253837",
"0.45222357",
"0.45130393",
"0.45110872",
"0.4476445",
"0.44727376",
"0.44620574",
"0.44608843",
"0.44607833",
"0.4460096",
"0.4458816",
"0.44565895",
"0.44557264",
"0.44548222",
"0.445284",
"0.44479394",
"0.44477823",
"0.44468158",
"0.44414124",
"0.44406053",
"0.4440267",
"0.4439771",
"0.4438545",
"0.44296387",
"0.4428981",
"0.44251108",
"0.4424788",
"0.4421811"
]
| 0.49884242 | 14 |
Execute INSERT queries. Actualize MetaData before and after the execution. For better performances, the table MetaData and FreeBlocksHandler are not actualized for every queries, but just at the end or when the insert happens in a different table. | private void inserts() {
DBPeer.fetchTableRows();
DBPeer.fetchTableIndexes();
Map<Number160, Data> tabRows = DBPeer.getTabRows();
Map<Number160, Data> tabIndexes = DBPeer.getTabIndexes();
String tabName = null;
Number160 tabKey = null;
FreeBlocksHandler freeBlocks = null;
Map<String, IndexHandler> indexHandlers = new HashMap<>();
TableRows tr = null;
TableIndexes ti = null;
logger.trace("INSERT-WHOLE", "BEGIN", Statement.experiment);
for (Insert ins: inserts) {
if (tabName == null) {
tabName = ins.getTabName();
tabKey = Number160.createHash(tabName);
freeBlocks = new FreeBlocksHandler(tabName);
try {
tr = (TableRows) tabRows.get(tabKey).getObject();
ti = (TableIndexes) tabIndexes.get(tabKey).getObject();
} catch (ClassNotFoundException | IOException e) {
logger.error("Data error", e);
}
for (String index: ti.getIndexes()) {
indexHandlers.put(index, new IndexHandler(ins.getPeer()));
}
for (String index: ti.getUnivocalIndexes()) {
indexHandlers.put(index, new IndexHandler(ins.getPeer()));
}
} else if (!tabName.equals(ins.getTabName())) {
try {
tabRows.put(tabKey, new Data(tr));
tabIndexes.put(tabKey, new Data(ti));
tabName = ins.getTabName();
tabKey = Number160.createHash(tabName);
tr = (TableRows) tabRows.get(tabKey).getObject();
ti = (TableIndexes) tabIndexes.get(tabKey).getObject();
freeBlocks.update();
freeBlocks = new FreeBlocksHandler(tabName);
indexHandlers.clear();
for (String index: ti.getIndexes()) {
indexHandlers.put(index, new IndexHandler(ins.getPeer()));
}
for (String index: ti.getUnivocalIndexes()) {
indexHandlers.put(index, new IndexHandler(ins.getPeer()));
}
} catch (ClassNotFoundException | IOException e) {
logger.error("Data error", e);
}
}
ins.init(freeBlocks, indexHandlers, tr, ti);
}
boolean done = false;
while (!done) {
int countTrue = 0;
for (Insert ins: inserts) {
if (ins.getDone()) {
countTrue++;
}
}
if (countTrue == inserts.size()) {
done = true;
}
}
freeBlocks.update();
try {
tabRows.put(tabKey, new Data(tr));
tabIndexes.put(tabKey, new Data(ti));
} catch (IOException e) {
logger.error("Data error", e);
}
DBPeer.updateTableRows();
DBPeer.updateTableIndexes();
logger.trace("INSERT-WHOLE", "END", Statement.experiment);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void executeInsert()\n\t\t\tthrows TranslatorException {\n\n\t\tInsert icommand = (Insert) command;\t\t\n\t\t\n\t\tTable t = metadata.getTable(icommand.getTable().getMetadataObject().getFullName());\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\tthis.addChildObject(t);\n\t\t\treturn;\n\t\t}\n\t\tString pkColName = null;\n\t\t\n\t\t// process the top level object\n\t\tList<Column> pk = t.getPrimaryKey().getColumns();\n\t\tif (pk == null || pk.isEmpty()) {\n final String msg = CoherencePlugin.Util.getString(\"CoherenceUpdateExecution.noPrimaryKeyDefinedOnTable\", new Object[] {t.getName()}); //$NON-NLS-1$\n\t\t\tthrow new TranslatorException(msg);\t\t\n\t\t}\n\t\t\n\t\tpkColName = visitor.getNameFromElement(pk.get(0));\n\t\t\n\t\tObject newObject = cacheTranslator.createObject(icommand.getColumns(), \n\t\t\t\t((ExpressionValueSource)icommand.getValueSource()).getValues(), \n\t\t\t\tthis.visitor, \n\t\t\t\tt);\n\t\t\n\t\t// get the key value to use to for adding to the cache\n\t\tObject keyvalue = ObjectSourceMethodManager.getValue(\"get\" + pkColName, newObject);\n\t\n\t\t// add to cache\n\t\ttry {\n\t\t\tthis.connection.add(keyvalue, newObject);\n\t\t} catch (ResourceException e) {\n\t\t\tthrow new TranslatorException(e);\n\t\t}\t\t\t\n\n\t\t\n\t}",
"public final void execute() {\n try {\n\n StringBuffer preparedTableBuf = new StringBuffer();\n preparedTableBuf.append(\"create table if not exists \");\n preparedTableBuf.append(tableName + \" (\");\n\n boolean isCompoundKey = false;\n boolean isAutoKey = \"generated\".equals(pkey);\n\n String[] pkeys = pkey.split(\",\");\n StringBuffer compoundKey = new StringBuffer();\n if (pkeys.length > 1) {\n isCompoundKey = true;\n compoundKey.append(\", PRIMARY KEY (\");\n for (int i = 0; i < pkeys.length; i++) {\n compoundKey.append(pkeys[i] + (i == pkeys.length - 1 ? \")\" : \", \"));\n }\n }\n\n if (isAutoKey) {\n preparedTableBuf\n .append(\"id integer NOT NULL PRIMARY KEY AUTO_INCREMENT, \");\n }\n for (int i = 0; i < fields.length; i++) {\n preparedTableBuf.append(fields[i]\n + \" \"\n + columnTypes[i]\n + (pkey.equals(fields[i]) ? \" NOT NULL UNIQUE PRIMARY KEY\" : \"\")\n + (i == fields.length - 1 ? (isCompoundKey ? compoundKey.toString()\n : \"\") + \")\" : \", \"));\n }\n\n PreparedStatement preparedTableCreate = conn\n .prepareStatement(preparedTableBuf.toString());\n\n log.info(\"Prepared Table Statement : \" + preparedTableBuf.toString());\n preparedTableCreate.executeUpdate();\n conn.commit();\n\n } catch (Exception e) {\n log.error(e);\n }\n\n try {\n\n StringBuffer preparedInsertBuf = new StringBuffer();\n preparedInsertBuf.append(\"insert into \");\n preparedInsertBuf.append(tableName + \" (\");\n\n for (int i = 0; i < fields.length; i++) {\n preparedInsertBuf.append(fields[i]\n + (i == fields.length - 1 ? \")\" : \", \"));\n }\n\n preparedInsertBuf.append(\" values(\");\n\n for (int i = 0; i < fields.length; i++) {\n preparedInsertBuf.append(\"?\" + (i == fields.length - 1 ? \")\" : \", \"));\n }\n\n PreparedStatement insertItemRecord = conn\n .prepareStatement(preparedInsertBuf.toString());\n\n log.info(\"Rows : \" + fileImporter.getRowCount());\n log.info(\"Prepared Insert Statement : \" + preparedInsertBuf.toString());\n\n Iterator<Row> riter = fileImporter.getRowIterator();\n\n int rows = 0;\n\n int[] result = null;\n\n while (riter.hasNext()) {\n Row row = riter.next();\n\n if (!row.isValid()) {\n continue;\n } else {\n rows++;\n }\n\n try {\n for (int i = 0; i < fields.length; i++) {\n if (columnTypes[i].contains(\"char\")) {\n insertItemRecord.setString(i + 1, row.getValue(fields[i]));\n } else if (\"integer\".equals(columnTypes[i])) {\n try {\n Integer value = Integer.parseInt(row.getValue(fields[i]));\n insertItemRecord.setInt(i + 1, value);\n } catch (Exception e) {\n insertItemRecord.setInt(i + 1, 0);\n }\n } else {\n log.error(\"unsupported column type\");\n }\n }\n\n insertItemRecord.addBatch();\n\n if (rows % batchSize == 0) {\n\n try {\n result = insertItemRecord.executeBatch();\n\n conn.commit();\n log.info(\"batch update : \" + result.length);\n } catch (BatchUpdateException e) {\n log.error(\"Batch Update failed\", e);\n log.error(\"result size: \"\n + (result == null ? \"null\" : result.length));\n\n }\n\n }\n } catch (Exception e) {\n log.error(\"couldn't process row properly\", e);\n }\n }\n // the last set of updates will probably not mod to 0\n\n try {\n result = insertItemRecord.executeBatch();\n conn.commit();\n log.info(\"batch update : \" + result.length);\n } catch (BatchUpdateException e) {\n log.error(\"Batch Update failed\", e);\n log.error(\"\");\n }\n\n } catch (Exception e) {\n log.error(e);\n e.printStackTrace();\n }\n }",
"@Test(enabled = false)\n public void testInsertIntoTempTable() throws Exception {\n String tableName = createTable();\n String insertTableName = createTable(false, false, true);\n\n assertTableIsRegistered(DEFAULT_DB, tableName);\n assertTableIsNotRegistered(DEFAULT_DB, insertTableName, true);\n\n String query = \"insert into \" + insertTableName + \" select id, name from \" + tableName;\n\n runCommand(query);\n\n Set<ReadEntity> inputs = getInputs(tableName, Entity.Type.TABLE);\n Set<WriteEntity> outputs = getOutputs(insertTableName, Entity.Type.TABLE);\n\n outputs.iterator().next().setWriteType(WriteEntity.WriteType.INSERT);\n\n HiveEventContext event = constructEvent(query, HiveOperation.QUERY, inputs, outputs);\n AtlasEntity hiveProcess = validateProcess(event);\n AtlasEntity hiveProcessExecution = validateProcessExecution(hiveProcess, event);\n AtlasObjectId process = toAtlasObjectId(hiveProcessExecution.getRelationshipAttribute(\n BaseHiveEvent.ATTRIBUTE_PROCESS));\n Assert.assertEquals(process.getGuid(), hiveProcess.getGuid());\n Assert.assertEquals(numberOfProcessExecutions(hiveProcess), 1);\n\n assertTableIsRegistered(DEFAULT_DB, tableName);\n assertTableIsRegistered(DEFAULT_DB, insertTableName, null, true);\n }",
"@Override\n public void insert(Iterator<Object[]> batch) {\n while (batch.hasNext()) {\n BoundStatement boundStatement = statement.bind(batch.next());\n ResultSetFuture future = session.executeAsync(boundStatement);\n Futures.addCallback(future, callback, executor);\n }\n }",
"public void prepareInsertObject() {\n // Require modify row to prepare.\n if (getModifyRow() == null) {\n return;\n }\n\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n ((SQLModifyStatement)statementEnum.nextElement()).setModifyRow(getModifyRow());\n }\n } else if (getSQLStatement() != null) {\n ((SQLModifyStatement)getSQLStatement()).setModifyRow(getModifyRow());\n }\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareInsertObject();\n }",
"public void run(Statement state) throws SQLException {\n\n System.out.println(\"INFO: -= Inserting data via dummy table ...\");\n state.execute(multipleRowInsertDummySQL);\n System.out.println(\"INFO: -= The data are inserted via dummy table:\");\n selectAllFromTable(state, tableName, 10);\n\n System.out.println(\"INFO: -= Inserting data using INSERT INTO statement ...\");\n state.execute(multipleRowInsertIntoSQL);\n System.out.println(\"INFO: -= The data are inserted via INSERT INTO statement:\");\n selectAllFromTable(state, tableName, 20);\n }",
"public void execute() throws ExecuteException {\n\t\t\r\n\t\tInsertQuery query = new InsertQuery(con,this.cmd,this.dataInfoCollection);\r\n\t\t\r\n\t\tquery.setKeyType(keyType);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tquery.executeSQL();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new ExecuteException(e);\r\n\t\t}finally{\r\n\t\t\ttry {\r\n\t\t\t\tquery.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tUpdateInfo updateIfno = query.getResult();\r\n\t\t\r\n\t\tif(keyType == null || keyType.equals(Constanst.KEY_TYPE_AUTO)){\r\n\t\t\tthis.executeInfo.setKeyValue(updateIfno.getKey());\r\n\t\t}else{\r\n\t\t\tthis.executeInfo.setKeyValue(this.keyValue);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void insertValuesToTables(Connection conn) {\n\t// insert queries\n\n\t\n\tthis.insertIntoAccountTables(conn);\n\tthis.insertIntoIncidentTicketTables(conn);\n\t\n\n\t\n}",
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}",
"public void run() {\n String query = \"INSERT INTO CustomData (Server, Plugin, ColumnID, DataPoint, Updated) VALUES\";\n int currentSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // Iterate through each column\n for (Map.Entry<Column, Integer> entry : customData.entrySet()) {\n Column column = entry.getKey();\n int value = entry.getValue();\n\n // append the query\n query += \" (\" + server.getId() + \", \" + plugin.getId() + \", \" + column.getId() + \", \" + value + \", \" + currentSeconds + \"),\";\n }\n\n // Remove the last comma\n query = query.substring(0, query.length() - 1);\n\n // add the duplicate key entry\n query += \" ON DUPLICATE KEY UPDATE DataPoint = VALUES(DataPoint) , Updated = VALUES(Updated)\";\n\n // queue the query\n new RawQuery(mcstats, query).save();\n }",
"private void insert(String sql, long rowId, int runId, int payloadColumns) {\n String nodeId = engine.getEngineName();\n\n Object[] values = new Object[payloadColumns + 3];\n values[0] = rowId;\n values[1] = nodeId;\n values[2] = runId;\n\n for (int c = 3; c < values.length; c++) {\n values[c] = RandomStringUtils.randomAlphanumeric(100);\n }\n\n engine.getSqlTemplate().update(sql, values);\n }",
"@Override\n\tpublic void insert(Object connectionHandle, ColumnList cols, \n\t\t\tArrayList<VariableList> valueLists, String table, boolean trxStarted\n\t\t\t, PostContext context, VariableRepository provider)\n\t\t\t\t\t\t\tthrows DataSourceException, ExecutionException\n\t{\n\t\tif(usePrecompileUpdate && context != null && context.getPrecompile().getSqlSentence() != null\n\t\t\t\t&& valueLists.size() == 1\n\t\t\t\t&& context.getPrecompile().getSqlSentence().isPrecompilable()){\n\t\t\tinsertPrecompile(connectionHandle, cols, valueLists, table, trxStarted, context, provider);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(context != null){\n\t\t\tcontext.getPrecompile().setCompile(false);\n\t\t}\n\t\t\n\t\tInsertSentence sentence = new InsertSentence();\n\t\tsentence.setCols(cols);\n\t\tTableIdentifier tbl = new TableIdentifier(table);\n\t\tsentence.setTbl(tbl);\n\t\t\n\t\tTypeHelper helper = this.typeHelper.newHelper(false, sentence);\n\t\t\t\t\n\t\tStringBuffer sql = new StringBuffer();\n\t\t\n\t\tsql.append(\"INSERT INTO \");\n\t\tsql.append(table);\n\t\t\n\t\t// col definition\n\t\tif(cols != null && cols.isReady(context, provider, null)){\n\t\t\tsql.append(\" ( \");\n\t\t\t\n\t\t\tboolean first = true;\n\t\t\tIterator<SelectColumnElement> it = cols.iterator();\n\t\t\twhile(it.hasNext()){\n\t\t\t\tSelectColumnElement element = it.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tsql.append(\", \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tsql.append(element.extract(context, provider, null, null, helper));\n\t\t\t\t} catch (RedirectRequestException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString columnName = element.getColumnName().extract(context, provider, null, null, helper);\n\t\t\t\t\n\t\t\t\tString fldType = helper.getDataFieldType(table + \".\" + columnName, context);\n\t\t\t\t\n\t\t\t\t// debug\n\t\t\t\t// AlinousDebug.debugOut(\"********* Type helper : \" + columnName + \" -> \" + fldType);\n\t\t\t\t\n\t\t\t\thelper.addListType(fldType);\n\t\t\t}\n\t\t\tsql.append(\" ) \");\n\t\t}\n\t\telse{\n\t\t\t// setup cols\n\t\t\tDataTable dt = getDataTable(connectionHandle, table);\n\t\t\t\n\t\t\tIterator<DataField> it = dt.iterator();\n\t\t\twhile(it.hasNext()){\n\t\t\t\tDataField fld = it.next();\n\t\t\t\thelper.addListType(fld.getType());\n\t\t\t}\n\t\t}\n\t\t\n\t\t// values\n\t\tsql.append(\" VALUES \");\n\t\t\n\t\thelper.resetCount();\n\t\tboolean first = true;\n\t\tIterator<VariableList> valListIt = valueLists.iterator();\n\t\twhile(valListIt.hasNext()){\n\t\t\tVariableList valList = valListIt.next();\n\t\t\t\n\t\t\tif(first){\n\t\t\t\tfirst = false;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tsql.append(\", \");\n\t\t\t}\n\t\t\t\n\t\t\t//helper.resetCount();\n\t\t\t\n\t\t\tsql.append(valList.extract(context, provider, null, null, helper));\n\t\t}\n\t\t\n\t\tif(this.outSql){\n\t\t\tAlinousDebug.debugOut(core, sql.toString());\n\t\t}\n\t\t\n\t\texecuteUpdateSQL(connectionHandle, sql.toString(), trxStarted);\n\t}",
"public void test_insert4(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(0);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(3);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert4.txt\",0);\r\n\t}",
"public void test_insert2(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(4);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(1);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(2500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert2.txt\",0);\r\n\t}",
"public void test_insert3(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(4);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(1);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert3.txt\",0);\r\n\t}",
"private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }",
"@Override\n public String insertStatement() throws Exception {\n StringBuilder strBld = new StringBuilder();\n strBld.append(\"insert into UniversalJobMapper\");\n strBld.append(\"(\");\n strBld.append(COL_INSPECT_FORM_VIEW_ID+\",\");\n strBld.append(COL_INSPECT_FORM_VIEW_NO+\",\");\n strBld.append(COL_JOBREQUEST_ID+\",\");\n strBld.append(COL_TASK_CODE+\",\");\n strBld.append(COL_IS_AUDIT+\",\");\n strBld.append(COL_UNIVERSAL_PHOTO_ENTRY);\n strBld.append(\")\");\n strBld.append(\" values\");\n strBld.append(\"(\");\n strBld.append(this.inspectFormViewID+\",\");\n strBld.append(this.inspectFormViewNo+\",\");\n strBld.append(\"\"+this.jobRequestID+\",\");\n strBld.append(\"'\"+this.taskCode+\"',\");\n strBld.append(\"'\"+this.isAudit+\"',\");\n strBld.append(\"'\"+this.colsInvokeForPhotoEntryItemDisplay+\"'\");\n strBld.append(\")\");\n return strBld.toString();\n }",
"@Test\n public void testInsertingValidValues() throws SQLException {\n CommitStructure commit = getSampleCommit();\n MysqlDatabase mysqlDatabase = new MysqlDatabase(connection);\n assertTrue(mysqlDatabase.insertCommitToDatabase(commit));\n }",
"protected synchronized void pureSQLInsert(String query) {\n if(this.connect()) {\n try {\n this.statement = this.connection.createStatement();\n this.statement.executeUpdate(query);\n } catch(SQLException ex) {\n Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n this.close();\n }\n }\n }",
"public void test_insert5(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(9);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(10);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(2);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2);\r\n\t\texecute(blocks,\"insert5.txt\",0);\r\n\t}",
"protected abstract void prepareStatementForInsert(PreparedStatement insertionStatement, E entity)\n\t\t\tthrows DAOException;",
"public static void benchmarkPrivacyInsertTimeMultipleInsert()\n\t{\n\t\t\n\t\tString sampleInsertSQL \n\t\t\t= \"INSERT INTO attr0EncryptionInfoStorage (nodeGUID, realIDEncryption, subspaceId) VALUES\";\n\t\t\n\t\tConnection myConn = null;\n\t\tStatement statement = null;\n\t\ttry\n\t\t{\n\t\t\tmyConn = dsInst.getConnection();\n\t\t\t\n\t\t\tstatement = (Statement) myConn.createStatement();\n\t\t\t\n\t\t\t\n\t\t\tVector<Double> resultlist = new Vector<Double>();\n\t\t\tRandom rand = new Random(System.currentTimeMillis());\n\t\t\tfor(int i=0; i<100; i++)\n\t\t\t{\n\t\t\t\tString insertSQL = sampleInsertSQL ;\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<5; j++)\n\t\t\t\t{\n\t\t\t\t\tif(j != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tinsertSQL = insertSQL +\" , \";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbyte[] guidBytes = new byte[20];\n\t\t\t\t\trand.nextBytes(guidBytes);\n\t\t\t\t\tString guidString = Utils.byteArrayToHex(guidBytes);\n\t\t\t\t\t\n\t\t\t\t\tbyte[] realIDEncryptionBytes = new byte[128];\n\t\t\t\t\trand.nextBytes(realIDEncryptionBytes);\n\t\t\t\t\tString realIDHex = Utils.byteArrayToHex(realIDEncryptionBytes);\n\t\t\t\t\t\n\t\t\t\t\tint subsapceId = rand.nextInt(3);\n\t\t\t\t\t\n\t\t\t\t\tinsertSQL = insertSQL+ \"(X'\"+guidString+\"' , X'\"+realIDHex\n\t\t\t\t\t\t\t+\"' , \"+subsapceId+\")\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\tstatement.executeUpdate(insertSQL);\n\t\t\t\tlong end = System.currentTimeMillis();\n\t\t\t\t\n\t\t\t\tdouble timeTaken = end-start;\n\t\t\t\tresultlist.add(timeTaken);\n\t\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t} catch (InterruptedException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"benchmarkPrivacyInsertTimeMultipleInsert: Insert times \"+\n\t\t\tStatisticsClass.toString(StatisticsClass.computeStats(resultlist)));\n\t\t} catch (SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} finally\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif( statement != null )\n\t\t\t\t\tstatement.close();\n\t\t\t\t\n\t\t\t\tif( myConn != null )\n\t\t\t\t\tmyConn.close();\n\t\t\t\t\n\t\t\t} catch (SQLException e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void insertProcess() {\n\t\t\n\t}",
"public CustomSql getCustomSqlInsert();",
"public int executeInsert(InsertData data, Transaction tx) {\n\t\tPlan p = new TablePlan(data.tableName(), tx);\n\t\tUpdateScan us = (UpdateScan) p.open();\n\t\tus.insert();\n\n\t\tus.close();\n\t\treturn 1;\n\t}",
"protected int insert(String[] statements) {\n\t\tint retValue = 0;\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\n\t\t\tfor (String statement : statements) {\n\t\t\t\tSQLQuery query = session.createSQLQuery(statement);\n\t\t\t\tretValue += query.executeUpdate();\n\t\t\t}\n\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute insert\");\n\t\t}\n\t\treturn retValue;\n\t}",
"public void testInsert2() throws Exception {\n\n DAS das = DAS.FACTORY.createDAS(getConnection());\n Command insert = das.createCommand(\"insert into COMPANY (NAME) values (?)\");\n insert.setParameter(1, \"AAA Rental\");\n insert.execute();\n\n // insert another using same command\n insert.setParameter(1, \"BBB Rental\");\n insert.execute();\n\n // Verify insert\n // Verify\n Command select = das.createCommand(\"Select ID, NAME from COMPANY\");\n DataObject root = select.executeQuery();\n\n assertEquals(5, root.getList(\"COMPANY\").size());\n\n }",
"public void insert(SQLStatement statement) {\n queryThread.addQuery(statement);\n }",
"public void test_insert6(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(4);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(1);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(3);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\t//block3\r\n\t\t\t\tTimeTableData block3a=new TimeTableData();\r\n\t\t\t\tblock3a.setTime(3500);\r\n\t\t\t\tblock3a.setReferenceId(7);\r\n\t\t\t\tTimeTableData block3b=new TimeTableData();\r\n\t\t\t\tblock3b.setTime(4750);\r\n\t\t\t\tblock3b.setReferenceId(8);\r\n\t\t\t\tList<TimeTableData> datas3=Lists.newArrayList(block3a,block3b);\r\n\t\t\t\tTimeTableDataBlock block3=new TimeTableDataBlock(datas3);\r\n\t\t\t\tblock3.setLoop(false);\r\n\t\t\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2,block3);\r\n\t\texecute(blocks,\"insert6.txt\",0);\r\n\t}",
"public void start() {\n \n for (Object obj: bufferedQueries) {\n \n switch(obj.getClass().getName()) {\n case \"uzh.tomdb.db.operations.Insert\":\n if (inserts == null) {\n inserts = new ArrayList<>();\n }\n inserts.add((Insert) obj);\n break;\n case \"uzh.tomdb.db.operations.CreateTable\":\n if (creates == null) {\n creates = new ArrayList<>();\n }\n creates.add((CreateTable) obj);\n break;\n case \"uzh.tomdb.db.operations.Update\":\n if (updates == null) {\n updates = new ArrayList<>();\n }\n updates.add((Update) obj);\n break;\n case \"uzh.tomdb.db.operations.Delete\":\n if (deletes == null) {\n deletes = new ArrayList<>();\n }\n deletes.add((Delete) obj);\n break;\n }\n }\n \n if (inserts != null) {\n inserts();\n }\n if (creates != null) {\n creates();\n }\n if (updates != null) {\n updates();\n }\n if (deletes != null) {\n deletes();\n }\n }",
"public interface ISQLiteInsertProcedure {\n void loopColumnName(ISQLiteCommandAdapter commandAdapter);\n boolean handleIdField(ISQLiteCommandAdapter commandAdapter,String columnName,ContentValues contentValues) throws IllegalAccessException;\n boolean handleJoinTable(ISQLiteCommandAdapter commandAdapter,String columnName,JoinTable[] joinTables) throws IllegalAccessException;\n boolean handleField(ISQLiteCommandAdapter commandAdapter,String columnName,ContentValues contentValues) throws IllegalAccessException;\n long executeInsert(String tableName,ContentValues contentValues);\n long[] executeJoinTableInsert(long fkentity1Id,JoinTable[] joinTables);\n boolean putInContentValues(ContentValues contentValues,Class columnType,String columnName,Object value);\n}",
"protected void executeSchemaOperations() {\n }",
"@Override\n\tpublic void insert() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 등록을 하다.\");\n\t}",
"public void insertHumanResourceContent(HumanResourceContent humanResourceContent) {\n\t\tSl = \"INSERT INTO human_resource_content (memberAccount, M0, M1, M2, M3, M4, M5, M6, M7, M8, M9,\"\r\n\t\t\t\t+ \"M10, M11, M12, R0, R1, R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12,\"\r\n\t\t\t\t+ \"S0, S1, S2, S3, S4, S5, S6, S7, S8, S9, S10, S11, S12, O0, O1, O2, O3, O4, O5, O6, O7, O8, O9,\"\r\n\t\t\t\t+ \"O10, O11, O12, total0, total1, total2, total3, total4, total5, total6, total7, \" \r\n\t\t\t\t+ \"total8, total9, total10, total11, total12) \"\r\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,\"\r\n\t\t\t\t+ \" ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"123456\");\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl);\r\n\t\t\tsmt.setString(1, humanResourceContent.getAccount());\r\n\t\t\tsmt.setInt(2, humanResourceContent.getM0());\r\n\t\t\tsmt.setInt(3, humanResourceContent.getM1());\r\n\t\t\tsmt.setInt(4, humanResourceContent.getM2());\r\n\t\t\tsmt.setInt(5, humanResourceContent.getM3());\r\n\t\t\tsmt.setInt(6, humanResourceContent.getM4());\r\n\t\t\tsmt.setInt(7, humanResourceContent.getM5());\r\n\t\t\tsmt.setInt(8, humanResourceContent.getM6());\r\n\t\t\tsmt.setInt(9, humanResourceContent.getM7());\r\n\t\t\tsmt.setInt(10, humanResourceContent.getM8());\r\n\t\t\tsmt.setInt(11, humanResourceContent.getM9());\r\n\t\t\tsmt.setInt(12, humanResourceContent.getM10());\r\n\t\t\tsmt.setInt(13, humanResourceContent.getM11());\r\n\t\t\tsmt.setInt(14, humanResourceContent.getM12());\r\n\t\t\t\r\n\t\t\tsmt.setInt(15, humanResourceContent.getR0());\r\n\t\t\tsmt.setInt(16, humanResourceContent.getR1());\r\n\t\t\tsmt.setInt(17, humanResourceContent.getR2());\r\n\t\t\tsmt.setInt(18, humanResourceContent.getR3());\r\n\t\t\tsmt.setInt(19, humanResourceContent.getR4());\r\n\t\t\tsmt.setInt(20, humanResourceContent.getR5());\r\n\t\t\tsmt.setInt(21, humanResourceContent.getR6());\r\n\t\t\tsmt.setInt(22, humanResourceContent.getR7());\r\n\t\t\tsmt.setInt(23, humanResourceContent.getR8());\r\n\t\t\tsmt.setInt(24, humanResourceContent.getR9());\r\n\t\t\tsmt.setInt(25, humanResourceContent.getR10());\r\n\t\t\tsmt.setInt(26, humanResourceContent.getR11());\r\n\t\t\tsmt.setInt(27, humanResourceContent.getR12());\r\n\t\t\t\r\n\t\t\tsmt.setInt(28, humanResourceContent.getS0());\r\n\t\t\tsmt.setInt(29, humanResourceContent.getS1());\r\n\t\t\tsmt.setInt(30, humanResourceContent.getS2());\r\n\t\t\tsmt.setInt(31, humanResourceContent.getS3());\r\n\t\t\tsmt.setInt(32, humanResourceContent.getS4());\r\n\t\t\tsmt.setInt(33, humanResourceContent.getS5());\r\n\t\t\tsmt.setInt(34, humanResourceContent.getS6());\r\n\t\t\tsmt.setInt(35, humanResourceContent.getS7());\r\n\t\t\tsmt.setInt(36, humanResourceContent.getS8());\r\n\t\t\tsmt.setInt(37, humanResourceContent.getS9());\r\n\t\t\tsmt.setInt(38, humanResourceContent.getS10());\r\n\t\t\tsmt.setInt(39, humanResourceContent.getS11());\r\n\t\t\tsmt.setInt(40, humanResourceContent.getS12());\r\n\t\t\t\r\n\t\t\tsmt.setInt(41, humanResourceContent.getO0());\r\n\t\t\tsmt.setInt(42, humanResourceContent.getO1());\r\n\t\t\tsmt.setInt(43, humanResourceContent.getO2());\r\n\t\t\tsmt.setInt(44, humanResourceContent.getO3());\r\n\t\t\tsmt.setInt(45, humanResourceContent.getO4());\r\n\t\t\tsmt.setInt(46, humanResourceContent.getO5());\r\n\t\t\tsmt.setInt(47, humanResourceContent.getO6());\r\n\t\t\tsmt.setInt(48, humanResourceContent.getO7());\r\n\t\t\tsmt.setInt(49, humanResourceContent.getO8());\r\n\t\t\tsmt.setInt(50, humanResourceContent.getO9());\r\n\t\t\tsmt.setInt(51, humanResourceContent.getO10());\r\n\t\t\tsmt.setInt(52, humanResourceContent.getO11());\r\n\t\t\tsmt.setInt(53, humanResourceContent.getO12());\r\n\t\t\t\r\n\t\t\tsmt.setInt(54, humanResourceContent.getTotal0());\r\n\t\t\tsmt.setInt(55, humanResourceContent.getTotal1());\r\n\t\t\tsmt.setInt(56, humanResourceContent.getTotal2());\r\n\t\t\tsmt.setInt(57, humanResourceContent.getTotal3());\r\n\t\t\tsmt.setInt(58, humanResourceContent.getTotal4());\r\n\t\t\tsmt.setInt(59, humanResourceContent.getTotal5());\r\n\t\t\tsmt.setInt(60, humanResourceContent.getTotal6());\r\n\t\t\tsmt.setInt(61, humanResourceContent.getTotal7());\r\n\t\t\tsmt.setInt(62, humanResourceContent.getTotal8());\r\n\t\t\tsmt.setInt(63, humanResourceContent.getTotal9());\r\n\t\t\tsmt.setInt(64, humanResourceContent.getTotal10());\r\n\t\t\tsmt.setInt(65, humanResourceContent.getTotal11());\r\n\t\t\tsmt.setInt(66, humanResourceContent.getTotal12());\r\n\t\t\t\r\n\t\t\tsmt.executeUpdate();\t\t\t\r\n\t\t\tsmt.close();\r\n\t\t} catch (SQLException e) {\t\t\t\r\n\t\t\tthrow new RuntimeException(e); \t\t\t\r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public void insert() throws SQLException;",
"private static void parseInsertString(String insertRowString) {\n System.out.println(\"STUB: Calling parseInsertString(String s) to process queries\");\n System.out.println(\"Parsing the string:\\\"\" + insertRowString + \"\\\"\");\n insertRowString = insertRowString.toLowerCase();\n boolean insert = true;\n String cols = insertRowString.substring(0, insertRowString.indexOf(\")\") + 1);\n String vals = insertRowString.substring(insertRowString.indexOf(\")\") + 1);\n String tableName = vals.trim().split(\" \")[0];\n String tableNamefile = tableName + \".tbl\";\n\n Matcher mcols = Pattern.compile(\"\\\\((.*?)\\\\)\").matcher(cols);\n Matcher mvals = Pattern.compile(\"\\\\((.*?)\\\\)\").matcher(vals);\n\n\n cols = mcols.find() ? mcols.group(1).trim() : \"\";\n vals = mvals.find() ? mvals.group(1).trim() : \"\";\n String columns[] = cols.split(\",\");\n String values[] = vals.split(\",\");\n columns = removeWhiteSpacesInArray(columns);\n values = removeWhiteSpacesInArray(values);\n Table table = null;\n Set colNames = columnOrdinalHelper.getKeySet(tableName);\n HashSet<String> colNullVals = new HashSet<>();\n try {\n table = new Table(tableNamefile);\n // to perform the order of the insert based on the ordinal position\n TreeMap<String, String> colOrder = new TreeMap<>();\n // to map the colunm with data\n HashMap<String, String> colVals = new HashMap<>();\n\n for (int i = 0; i < columns.length; i++) {\n //preserving the order of the columns as given to ordinal positions\n colOrder.put(columnOrdinalHelper.getProperties(tableName.concat(\".\").concat(columns[i])), columns[i]);\n //mappng column name wth value\n colVals.put(columns[i], values[i]);\n }\n long pos = checkIfTablePageHasSpace(tableNamefile, Integer.parseInt(recordLengthHelper.getProperties(tableName.concat(\".\").concat(Constant.recordLength))));\n if (pos != -1) {\n long indexTowrite = pos;\n int noOfColumns = Integer.parseInt(recordLengthHelper.getProperties(tableName.concat(\".\").concat(Constant.numberOfColumns)));\n\n for (Object s : colNames) {\n if (!colOrder.containsValue(String.valueOf(s).substring(String.valueOf(s).indexOf('.')+1))){\n colNullVals.add(String.valueOf(s));\n }\n }\n//\n//\n// }\n\n for(String s : colNullVals){\n if(columnNotNullHelper.getProperties(s)!=null){\n System.out.println(\"Column cannot be null : \"+s);\n insert = false;\n }\n break;\n }\n\n for (int i = 1; i <= noOfColumns; i++) {\n if (colOrder.containsKey(String.valueOf(i)) && insert) {\n pos = RecordFormat.writeRecordFormat(columnTypeHelper.getProperties(tableName.concat(\".\").concat(colOrder.get(String.valueOf(i)))), table, pos, colVals.get(colOrder.get(String.valueOf(i))));\n colNames.remove(tableName.concat(\".\").concat(colOrder.get(String.valueOf(i))));\n }\n }\n Iterator it = colNames.iterator();\n while (it.hasNext() && insert) {\n String colName = (String) it.next();\n String nullValue = String.valueOf(RecordFormat.getRecordFormat(columnTypeHelper.getProperties(colName)));\n pos = RecordFormat.writeRecordFormat(nullValue, table, pos, null);\n }\n table.page.updateArrOfRecLocInPageHeader((short) indexTowrite);\n table.page.updateNoOfRecInPageHeader();\n table.page.updateStartOfContent((short) indexTowrite);\n } else {\n //TODO: Splitting\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n }",
"private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }",
"@Test\n\tpublic void testAInsert() {\n\t\tDynamicSqlDemoEntity demoEntity = new DynamicSqlDemoEntity();\n\t\tdemoEntity.setCol1(\"dummyValue\" + UUID.randomUUID().toString());\n\t\tem.persist(demoEntity);\n\t\tassertNotNull(demoEntity.getId());\n\t\tassertTrue(em.contains(demoEntity));\n\t\tid = demoEntity.getId();\n\t}",
"public long insert(ContentValues initialValues) {\n\t\treturn db.insert(tableName, null, initialValues);\t\t\n\t}",
"@Override\n\tpublic void preInsert() {\n\n\t}",
"CustomSaveQuery insertInto(String table, String... fields);",
"protected abstract void fillInsertStatement (final PreparedStatement statement, final T obj)\n \t\t\tthrows SQLException;",
"@Override\n public void beginDatabaseBatchWrite() throws BlockStoreException {\n if (!autoCommit) {\n return;\n }\n if (instrument)\n beginMethod(\"beginDatabaseBatchWrite\");\n\n batch = db.createWriteBatch();\n uncommited = new HashMap<ByteBuffer, byte[]>();\n uncommitedDeletes = new HashSet<ByteBuffer>();\n utxoUncommittedCache = new HashMap<ByteBuffer, UTXO>();\n utxoUncommittedDeletedCache = new HashSet<ByteBuffer>();\n autoCommit = false;\n if (instrument)\n endMethod(\"beginDatabaseBatchWrite\");\n }",
"public void test_insert7(){\r\n\t\t//block1\r\n\t\tTimeTableData block1a=new TimeTableData();\r\n\t\tblock1a.setTime(0);\r\n\t\tblock1a.setReferenceId(4);\r\n\t\tTimeTableData block1b=new TimeTableData();\r\n\t\tblock1b.setTime(1000);\r\n\t\tblock1b.setReferenceId(1);\r\n\t\tList<TimeTableData> datas=Lists.newArrayList(block1a,block1b);\r\n\t\tTimeTableDataBlock block=new TimeTableDataBlock(datas);\r\n\t\tblock.setLoop(true);\r\n\t\tblock.setLoopTime(3);\r\n\t\tblock.setLoopInterval(1000);\r\n\t\t\r\n\t\t//block2\r\n\t\tTimeTableData block2a=new TimeTableData();\r\n\t\tblock2a.setTime(1500);\r\n\t\tblock2a.setReferenceId(7);\r\n\t\tTimeTableData block2b=new TimeTableData();\r\n\t\tblock2b.setTime(2750);\r\n\t\tblock2b.setReferenceId(8);\r\n\t\tList<TimeTableData> datas2=Lists.newArrayList(block2a,block2b);\r\n\t\tTimeTableDataBlock block2=new TimeTableDataBlock(datas2);\r\n\t\tblock2.setLoop(false);\r\n\t\t\r\n\t\t//block3\r\n\t\t\t\tTimeTableData block3a=new TimeTableData();\r\n\t\t\t\tblock3a.setTime(2500);\r\n\t\t\t\tblock3a.setReferenceId(7);\r\n\t\t\t\tTimeTableData block3b=new TimeTableData();\r\n\t\t\t\tblock3b.setTime(4750);\r\n\t\t\t\tblock3b.setReferenceId(8);\r\n\t\t\t\tList<TimeTableData> datas3=Lists.newArrayList(block3a,block3b);\r\n\t\t\t\tTimeTableDataBlock block3=new TimeTableDataBlock(datas3);\r\n\t\t\t\tblock3.setLoop(false);\r\n\t\t\t\t\r\n\t\tList<TimeTableDataBlock> blocks=Lists.newArrayList(block,block2,block3);\r\n\t\texecute(blocks,\"insert7.txt\",0);\r\n\t}",
"public void insertData(SQLiteDatabase db) {\n String sql;\n try {\n\n InputStream in = this.context.getResources().openRawResource(R.raw.data);\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n Document doc = builder.parse(in, null);\n NodeList statements = doc.getElementsByTagName(\"statement\");\n for (int i = 0; i < statements.getLength(); i++) {\n sql = \"INSERT INTO \" + this.tableName + \" \" + statements.item(i).getChildNodes().item(0).getNodeValue();\n db.execSQL(sql);\n sql = \"\";\n }\n } catch (Throwable t) {\n Toast.makeText(context, t.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"private void insertOperator() {\n int rowsAff = 0;\n int counter = 0;\n String query = \"\";\n System.out.print(\"Table: \");\n String table = sc.nextLine();\n System.out.print(\"Comma Separated Columns: \");\n String cols = sc.nextLine();\n System.out.print(\"Comma Separated Values: \");\n String[] vals = sc.nextLine().split(\",\");\n //transform the user input into a valid SQL insert statement\n query = \"INSERT INTO \" + table + \" (\" + cols + \") VALUES(\";\n for (counter = 0; counter < vals.length - 1; counter++) {\n query = query.concat(\"'\" + vals[counter] + \"',\");\n }\n query = query.concat(\"'\" + vals[counter] + \"');\");\n System.out.println(query);\n rowsAff = sqlMngr.insertOp(query);\n System.out.println(\"\");\n System.out.println(\"Rows affected: \" + rowsAff);\n System.out.println(\"\");\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}",
"private void uploadBatchTable(InsertAllRequest insertAllRequest) {\n final Stopwatch stopwatch = stopwatchProvider.get();\n final ImmutableMultimap.Builder<TableId, InsertAllResponse> responseMapBuilder =\n ImmutableMultimap.builder();\n final StringBuilder performanceStringBuilder = new StringBuilder();\n issueInsertAllRequest(\n stopwatch, responseMapBuilder, performanceStringBuilder, insertAllRequest);\n log.info(performanceStringBuilder.toString());\n // Check response and abort the process if any error happens. In this case, verify_snapshot\n // won't have the 'successful' record, hence we know that is a \"bad\" dataset.\n checkResponse(responseMapBuilder.build());\n }",
"public void onInsert(Statement insert, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }",
"ActionResult onInsert(HopperBlockEntity hopperBlockEntity, BlockPos insertPosition);",
"private void creates() {\n \tDBPeer.fetchTableColumns();\n \tDBPeer.fetchTableRows();\n \tDBPeer.fetchTableIndexes();\n \t\n for (int i = 0; i < creates.size(); i++) {\n creates.get(i).init();\n }\n \n DBPeer.updateTableColumns();\n DBPeer.updateTableRows();\n DBPeer.updateTableIndexes();\n }",
"public void insert(@NotNull T object) {\n Logger logger = getLogger();\n try (Connection connection = getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(getInsert())) {\n\n logger.info(\"Inserting into DB\");\n setStatement(preparedStatement, object);\n logger.info(\"Executing statement: \" + preparedStatement);\n preparedStatement.executeUpdate();\n\n } catch (SQLException | NotEnoughDataException e) {\n logger.error(e.getMessage());\n }\n logger.info(\"Insert: success\");\n }",
"public static void insertOrders() {\n Connection con = getConnection();\n\n String insertString1, insertString2, insertString3, insertString4;\n insertString1 = \"insert into Orders values(543, 'Belt', 6323)\";\n insertString2 = \"insert into Orders values(432, 'Bottle', 1234)\";\n insertString3 = \"insert into Orders values(876, 'Ring', 5678)\";\n\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(insertString1);\n stmt.executeUpdate(insertString2);\n stmt.executeUpdate(insertString3);\n\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Data Inserted into Orders Table\");\n }",
"public void processInsertar() {\n }",
"public void createAndExecuteSQLStatement(String table_name, HashMap<String, DescriptiveStatistics> stats) throws SQLException {\n String sqlPre = \"INSERT INTO \" + table_name + \" (\";\n String sqlPost = \"(\";\n ArrayList<DescriptiveStatistics> orderedStats = new ArrayList<DescriptiveStatistics>();\n // First create the SQL string and keep track of the order of the statistics in an ArrayList\n for (Entry<String, DescriptiveStatistics> entry : stats.entrySet()) {\n sqlPre += entry.getKey() + \",\";\n sqlPost += \"?,\";\n orderedStats.add(entry.getValue());\n }\n String sql = sqlPre.substring(0, sqlPre.length() - 1) + \") VALUES \" + sqlPost.substring(0, sqlPost.length() - 1) + \")\";\n PreparedStatement preparedStatement = (PreparedStatement) this.getConn().prepareStatement(sql);\n int i = 1;\n // Set the values in the same order as created by the sql string.\n for (DescriptiveStatistics ds : orderedStats) {\n preparedStatement.setDouble(i++, ds.getMean());\n }\n preparedStatement.execute();\n }",
"public static void insertTestDataLight() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_fonctionnel_sample.sql\");\n\t}",
"protected abstract void prepareStatementForInsert(PreparedStatement statement, T object)\n throws PersistException;",
"public static void benchmarkPrivacyInsertTimeSingleInsert()\n\t{\n\t\tString sampleInsertSQL \n\t\t\t= \"INSERT INTO attr0EncryptionInfoStorage (nodeGUID, realIDEncryption, subspaceId) VALUES\";\n\t\t\n\t\tConnection myConn = null;\n\t\tStatement statement = null;\n\t\ttry\n\t\t{\n\t\t\tmyConn = dsInst.getConnection();\n\t\t\t\n\t\t\tstatement = (Statement) myConn.createStatement();\n\t\t\t\n\t\t\t\n\t\t\tVector<Double> resultlist = new Vector<Double>();\n\t\t\tRandom rand = new Random();\n\t\t\tfor(int i=0; i<100; i++)\n\t\t\t{\n\t\t\t\tbyte[] guidBytes = new byte[20];\n\t\t\t\trand.nextBytes(guidBytes);\n\t\t\t\tString guidString = Utils.byteArrayToHex(guidBytes);\n\t\t\t\t\n\t\t\t\tbyte[] realIDEncryptionBytes = new byte[128];\n\t\t\t\trand.nextBytes(realIDEncryptionBytes);\n\t\t\t\tString realIDHex = Utils.byteArrayToHex(realIDEncryptionBytes);\n\t\t\t\t\n\t\t\t\tint subsapceId = rand.nextInt(3);\n\t\t\t\t\n\t\t\t\tString insertSQL = sampleInsertSQL+\"(X'\"+guidString+\"' , X'\"+realIDHex\n\t\t\t\t\t\t+\"' , \"+subsapceId+\")\";\n\t\t\t\t\n\t\t\t\tlong start = System.currentTimeMillis();\n\t\t\t\tstatement.executeUpdate(insertSQL);\n\t\t\t\tlong end = System.currentTimeMillis();\n\t\t\t\t\n\t\t\t\tdouble timeTaken = end-start;\n\t\t\t\tresultlist.add(timeTaken);\n\t\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t} catch (InterruptedException e) \n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"benchmarkPrivacyInsertTimeSingleInsert: Insert times \"+\n\t\t\tStatisticsClass.toString(StatisticsClass.computeStats(resultlist)));\n\t\t} catch (SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} finally\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif( statement != null )\n\t\t\t\t\tstatement.close();\n\t\t\t\t\n\t\t\t\tif( myConn != null )\n\t\t\t\t\tmyConn.close();\n\t\t\t\t\n\t\t\t} catch (SQLException e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void insert() throws SQLException {\n Statement stmtIn = DatabaseConnector.getInstance().getStatementIn();\n\n int check = BusinessFacade.getInstance().checkIDinDB(this.productRelation.getID(),\n this.post.getID(), \"goods\", \"product_type_id\", \"post_id\");\n if (check == -1){\n stmtIn.executeUpdate(\"INSERT INTO ngaccount.goods (goods_id , product_type_id, post_id) \" +\n \"VALUES ('\" + this.goodID + \"', '\" + this.productRelation.getID() +\n \"', '\" + this.post.getID() + \"');\");\n }\n }",
"private void addInsertOp() {\n\n if (!mIsNewAlert) {\n mValues.put(AlertContentProvider.KEY_ALERT_ID, mRawAlertId);\n }\n ContentProviderOperation.Builder builder =\n newInsertCpo(Data.CONTENT_URI, mIsSyncOperation, mIsYieldAllowed);\n builder.withValues(mValues);\n if (mIsNewAlert) {\n builder.withValueBackReference(AlertContentProvider.KEY_ALERT_ID, mBackReference);\n }\n mIsYieldAllowed = false;\n mBatchOperation.add(builder.build());\n }",
"private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }",
"public void ejecutar() {\r\n\t\tmediador.irInicioInsert(true);\r\n\t}",
"@Override\n public Status insert(String table, String key, Map<String, ByteIterator> values) {\n String hash = serialize(values);\n InsertM request = InsertM.newBuilder().setTable(table).setKey(key).setValues(hash).build();\n Result response;\n try {\n response = blockingStub.insert(request);\n } catch (StatusRuntimeException e) {\n return Status.ERROR;\n }\n return Status.OK;\n }",
"void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}",
"protected int insert(String statement) {\n\t\tint retValue = 0;\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\n\t\t\tSQLQuery query = session.createSQLQuery(statement);\n\t\t\tretValue = query.executeUpdate();\n\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute insert\");\n\t\t}\n\t\treturn retValue;\n\t}",
"@Override\n public void run() {\n try {\n TableDataInsertAllResponse response = bigquery.tabledata()\n .insertAll(projectId, DATASET_ID, TABLE_ID, new TableDataInsertAllRequest()\n .setRows(ImmutableList.of(new TableDataInsertAllRequest.Rows()\n .setInsertId(insertId)\n .setJson(new ImmutableMap.Builder<String, Object>()\n .put(\"path\", path)\n .put(\"method\", method)\n .put(\"tld\", tld)\n .put(\"start_time\", startTime)\n .put(\"end_time\", endTime)\n .put(\"response_code\", responseCode)\n .put(\"activity\", activity)\n .build())))).execute();\n if (response.getInsertErrors() != null && !response.getInsertErrors().isEmpty()) {\n throw new RuntimeException(Joiner.on('\\n').join(FluentIterable\n .from(response.getInsertErrors())\n .transform(new Function<InsertErrors, String>() {\n @Override\n public String apply(InsertErrors error) {\n try {\n return error.toPrettyString();\n } catch (IOException e) {\n return error.toString();\n }\n }})));\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"@Override\n\tpublic String insertStatement() throws Exception {\n\t\treturn null;\n\t}",
"private void insert() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"insert into OldStudent(id,name,grade) select s.id,s.name,s.grade from Student s\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows inserted in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\t}",
"public void insert(T t) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString query = createInsert(t);\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tstatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:Insert \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t}",
"com.google.spanner.v1.Mutation.Write getInsert();",
"public final void insertStatement() throws RecognitionException {\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:74:2: ( INSERT tablename open fieldname ( comma fieldname )* close VALUES questions )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:74:4: INSERT tablename open fieldname ( comma fieldname )* close VALUES questions\r\n {\r\n match(input,INSERT,FOLLOW_INSERT_in_insertStatement167); \r\n out(\"insert into \"); \r\n pushFollow(FOLLOW_tablename_in_insertStatement174);\r\n tablename();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_open_in_insertStatement176);\r\n open();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_fieldname_in_insertStatement178);\r\n fieldname();\r\n\r\n state._fsp--;\r\n\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:75:28: ( comma fieldname )*\r\n loop8:\r\n do {\r\n int alt8=2;\r\n int LA8_0 = input.LA(1);\r\n\r\n if ( (LA8_0==COMMA) ) {\r\n alt8=1;\r\n }\r\n\r\n\r\n switch (alt8) {\r\n \tcase 1 :\r\n \t // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:75:29: comma fieldname\r\n \t {\r\n \t pushFollow(FOLLOW_comma_in_insertStatement181);\r\n \t comma();\r\n\r\n \t state._fsp--;\r\n\r\n \t pushFollow(FOLLOW_fieldname_in_insertStatement183);\r\n \t fieldname();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop8;\r\n }\r\n } while (true);\r\n\r\n pushFollow(FOLLOW_close_in_insertStatement187);\r\n close();\r\n\r\n state._fsp--;\r\n\r\n match(input,VALUES,FOLLOW_VALUES_in_insertStatement192); \r\n out(\" values \"); \r\n pushFollow(FOLLOW_questions_in_insertStatement199);\r\n questions();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public void insert(Handle handle) {\n if (logicalSize + 1 > table.length / 2) {\n table = this.expandTable(table);\n }\n table = this.insertHelper(table, handle);\n logicalSize++;\n }",
"private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }",
"private boolean insertTransactions(String filename) {\n\n login = HibernateDaoFactory.DEFAULT.getAnalysisDatabaseLogin();\n\n mysqlDb = HibernateDaoFactory.DEFAULT.getAnalysisDatabaseName();\n mysqlUser = login.get(\"user\");\n mysqlPwd = login.get(\"password\");\n\n Runtime runTime = Runtime.getRuntime();\n\n String[] commands = new String[]{MYSQL, mysqlDb, userFlag + mysqlUser, pwdFlag + mysqlPwd,\n executeFlag, sourceCommand + filename};\n String[] commandsToPrint = new String[]{MYSQL, mysqlDb,\n userFlag + mysqlUser, pwdFlag + \"*****\",\n executeFlag, sourceCommand + filename};\n try {\n logger.info(\"Beginning insert of transactions. Command Params:\"\n + Arrays.toString(commandsToPrint));\n\n Process proc = runTime.exec(commands);\n\n StreamGobbler errorGobbler = new StreamGobbler(proc.getErrorStream(), \"ERROR\");\n\n StreamGobbler outputGobbler = new StreamGobbler(proc.getInputStream(), \"OUTPUT\");\n\n errorGobbler.start();\n outputGobbler.start();\n\n try {\n if (proc.waitFor() == 1) {\n logger.error(\"Return code indicates error in running the DBMerge mysql \"\n + \"process\");\n return false;\n }\n } catch (InterruptedException exception) {\n logger.error(\"Interrupted Exception while running the DBMerge mysql process.\",\n exception);\n return false;\n }\n\n } catch (IOException exception) {\n logger.error(\"Attempt to spawn a DBMerge mysql process failed for file: \"\n + filename, exception);\n return false;\n }\n return true;\n }",
"public long insert(ContentValues values){\n long id = sqlDB.insert(tableName,\"\",values);\n\n return id;\n }",
"private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }",
"public void insert(T... entity) throws NoSQLException;",
"public static InsertStatementBuilder insert() {\r\n return new InsertStatementBuilder();\r\n }",
"public void insert(){\r\n\t\tString query = \"INSERT INTO liveStock(name, eyeColor, sex, type, breed, \"\r\n\t\t\t\t+ \"height, weight, age, furColor, vetNumber) \"\r\n\t\t\t\t+ \"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) \";\r\n\t\t\r\n\t\ttry {\r\n\t\t\tPreparedStatement prepareStatement = conn.prepareStatement(query);\r\n\t\t\t\r\n\t\t\tprepareStatement.setString(1, liveStock.getName());\r\n\t\t\tprepareStatement.setString(2, liveStock.getEyeColor());\r\n\t\t\tprepareStatement.setString(3, liveStock.getSex());\r\n\t\t\tprepareStatement.setString(4, liveStock.getAnimalType());\r\n\t\t\tprepareStatement.setString(5, liveStock.getAnimalBreed());\r\n\t\t\tprepareStatement.setString(6, liveStock.getHeight());\r\n\t\t\tprepareStatement.setString(7, liveStock.getWeight());\r\n\t\t\tprepareStatement.setInt(8, liveStock.getAge());\r\n\t\t\tprepareStatement.setString(9, liveStock.getFurColor());\r\n\t\t\tprepareStatement.setInt(10, liveStock.getVetNumber());\r\n\t\t\t\r\n\t\t\tprepareStatement.execute();\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static String getInsertStatement() {\n return INSERT_STATEMENT;\n }",
"void insertQuery (String query) throws SQLException\n\t{\n\t\t/* Creiamo lo Statement per l'esecuzione della query */\n\t\tStatement s = conn.createStatement(); \n\t\t\n\t\t/* eseguiamo la query */\n s.executeUpdate(query);\n\t}",
"public abstract int insert(Iterable<T> messages)\n throws DatabaseRequestException, DatabaseSchemaException;",
"@Insert({\n \"insert into kd_user_medal (id, userid, \",\n \"medalId, bindUserid, \",\n \"remark, createTime)\",\n \"values (#{id,jdbcType=BIGINT}, #{userid,jdbcType=BIGINT}, \",\n \"#{medalid,jdbcType=BIGINT}, #{binduserid,jdbcType=BIGINT}, \",\n \"#{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP})\"\n })\n int insert(KDUserMedal record);",
"private void handleInsertDB(ContentValues contentValues) {\n try {\n ContentResolver contentResolver = this.mContext.getContentResolver();\n contentResolver.insert(KeyguardNotification.URI, contentValues);\n contentResolver.notifyChange(KeyguardNotification.URI, null);\n } catch (Exception e) {\n Log.e(\"KeyguardNotifHelper\", \"handleInsertDB\", e);\n }\n }",
"public long insert(Entity entity){\r\n\t\ttry {\r\n\t\t\tthis.prepareFields(entity, false);\r\n\t\t\tString tableName = this.getTableName();\r\n\t\t\tTransferObject to = new TransferObject(\r\n\t\t\t\t\t\ttableName, \r\n\t\t\t\t\t\tfieldTos, \r\n\t\t\t\t\t\tTransferObject.INSERT_TYPE);\r\n\t\t\treturn transactStatements(to);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLog.e(\"GPALOG\" , e.getMessage(),e); \r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"@Test\n public void testInsert() throws Exception {\n TestConnection conn = methodWatcher.getOrCreateConnection();\n conn.setAutoCommit(false);\n\n // insert good data\n PreparedStatement ps = methodWatcher.prepareStatement(\n String.format(\"insert into %s.%s (taskId, empId, startedAt, finishedAt) values (?,?,?,?)\",\n tableSchema.schemaName, TASK_TABLE_NAME));\n ps.setString(1, \"1011\");\n ps.setInt(2, 101);\n ps.setInt(3, 0600);\n ps.setInt(4, 0700);\n int rows = ps.executeUpdate();\n\n Assert.assertEquals(1, rows);\n }",
"public void insert (Sessions sessions){\n new insertAsyncTask(mSessionDAO).execute(sessions);\n }",
"@Override\n public void run() {\n addDelay();\n\n AppDatabase appDatabase = AppDatabase.getInstance(appContext, executors);\n\n List<WeatherEntry> weathers = DataGenerator.generateWeathers();\n\n Log.d(TAG, \"Codelab AppDatabase insertAll - begin\");\n\n insertAll(appDatabase, weathers);\n\n // notify that the database was created and it's ready to be used\n appDatabase.setDatabaseCreated();\n }",
"protected void migrate() {\r\n java.util.Date dateNow = new java.util.Date();\r\n SQLiteBuilder builder = createBuilder();\r\n for (AbstractTable<?, ?, ?> table : tables) {\r\n if (table.migrated() < table.migrations()) {\r\n //FIXME this doesn't yet implement table updates.\r\n builder.createMigration(table).up(this);\r\n VersionRecord<DBT> v = _versions.create();\r\n v.table.set(table.helper.getTable().getRecordSource().tableName);\r\n v.version.set(1);\r\n v.updated.set(dateNow);\r\n v.insert();\r\n }\r\n }\r\n }",
"@Override\n\tpublic String getPreparedInsertText() {\n\t\treturn SQL_Insert;\n\t}",
"int insert(Engine record);",
"@Test\n public void testClientJdbcInsert() throws Exception {\n try (Connection con = GridCacheDynamicLoadOnClientTest.connect(GridCacheDynamicLoadOnClientTest.clientNode);Statement stmt = con.createStatement()) {\n int cnt = stmt.executeUpdate(((\"INSERT INTO \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)) + \"(_key, name, orgId) VALUES(1000,'new_name', 10000)\"));\n Assert.assertEquals(1, cnt);\n }\n SqlFieldsQuery qry = new SqlFieldsQuery((\"SELECT * FROM \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)));\n Assert.assertEquals(((GridCacheDynamicLoadOnClientTest.CACHE_ELEMENT_COUNT) + 1), getDefaultCacheOnClient().query(qry).getAll().size());\n }",
"public void afterInsert(VLabtestInstBean pObject) throws SQLException;",
"private String createInsertQuery()\n {\n int i = 0;\n StringBuilder sb = new StringBuilder();\n sb.append(\"INSERT INTO \");\n sb.append(type.getSimpleName());\n sb.append(\" (\");\n for(Field field:type.getDeclaredFields()) {i++; if(i != type.getDeclaredFields().length)sb.append(field.getName() +\", \"); else sb.append(field.getName());}\n sb.append(\")\");\n sb.append(\" VALUES (\");\n i = 0;\n for(Field field:type.getDeclaredFields()) {i++; if(i!= type.getDeclaredFields().length)sb.append(\"?, \"); else sb.append(\"?\");}\n sb.append(\");\");\n return sb.toString();\n }",
"private <T, Q extends Query> void executeInsertBatch(Collection<T> objectsToInsert, Function<? super T, ? extends Q> mapFunction) {\n\t\tList<Q> insertStatements = objectsToInsert.stream().map(mapFunction).collect(Collectors.toList());\n\t\tdslContext.batch(insertStatements).execute();\n\t}",
"public void insert(DataStoreRow row) {\n\t\tSchema.ensure(row);\n\t\tString insertTarget = SchemaMapper.kindToColumnFamily(row.getKind());\n\t\tStringBuilder query = new StringBuilder();\n\t\tquery.append(\"INSERT INTO \\\"\");\n\t\tquery.append(DataStore.KEYSPACE_NAME);\n\t\tquery.append(\"\\\".\\\"\");\n\t\tquery.append(insertTarget);\n\t\tquery.append(\"\\\"(\");\n\t\t\n\t\tint count = 0;\n\t\tfor (Map.Entry<String, DataStoreColumn> entry : row.getColumns().entrySet()) {\n\t\t\tif (count++ > 0) {\n\t\t\t\tquery.append(\",\");\n\t\t\t}\n\t\t\tquery.append('\"');\n\t\t\tquery.append(entry.getValue().getEncodedName());\n\t\t\tquery.append('\"');\t\t\t\n\t\t}\n\t\t\n\t\tquery.append(\") VALUES(\");\n\t\tList<Object> values = new ArrayList<Object>();\t\t\n\t\tcount = 0;\n\t\tfor (Map.Entry<String, DataStoreColumn> entry : row.getColumns().entrySet()) {\n\t\t\tvalues.add(entry.getValue().getValue());\n\t\t\tif (count++ > 0) {\n\t\t\t\tquery.append(\",\");\n\t\t\t}\n\t\t\tquery.append(\"?\");\n\t\t}\n\t\tquery.append(\");\");\n\t\tthis.query(query.toString(), values.toArray());\t\t\t\n\t}",
"int insert(HostSummaryByStatementType record);",
"public final void mINSERT() throws RecognitionException {\n try {\n int _type = INSERT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:348:7: ( I N S E R T )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:348:9: I N S E R T\n {\n mI(); \n mN(); \n mS(); \n mE(); \n mR(); \n mT(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public static void insert(RowMutation rm)\n\t{\n /*\n * Get the N nodes from storage service where the data needs to be\n * replicated\n * Construct a message for write\n * Send them asynchronously to the replicas.\n */\n assert rm.key() != null;\n\n\t\ttry\n\t\t{\n\t\t\tMap<EndPoint, EndPoint> endpointMap = StorageService.instance().getNStorageEndPointMap(rm.key());\n\t\t\t// TODO: throw a thrift exception if we do not have N nodes\n\t\t\tMap<EndPoint, Message> messageMap = createWriteMessages(rm, endpointMap);\n logger_.debug(\"insert writing to [\" + StringUtils.join(messageMap.keySet(), \", \") + \"]\");\n\t\t\tfor (Map.Entry<EndPoint, Message> entry : messageMap.entrySet())\n\t\t\t{\n\t\t\t\tMessagingService.getMessagingInstance().sendOneWay(entry.getValue(), entry.getKey());\n\t\t\t}\n\t\t}\n catch (Exception e)\n {\n logger_.error( LogUtil.throwableToString(e) );\n }\n return;\n }",
"@Override\n public void execute()\n {\n mDbHandle.execSQL(CREATE_TABLE_BLOOD_SUGAR);\n }"
]
| [
"0.5982296",
"0.58857864",
"0.58756536",
"0.5817018",
"0.5810675",
"0.567895",
"0.5672049",
"0.56581306",
"0.56271267",
"0.5624816",
"0.5542838",
"0.55346423",
"0.54581803",
"0.54376537",
"0.5433808",
"0.5374772",
"0.53744996",
"0.5368042",
"0.5365104",
"0.5332846",
"0.53284854",
"0.5312417",
"0.52620924",
"0.5249783",
"0.5227535",
"0.52273834",
"0.52174556",
"0.52136064",
"0.52132255",
"0.52122533",
"0.5197247",
"0.5196809",
"0.5193983",
"0.5169512",
"0.5165023",
"0.5164965",
"0.5163694",
"0.5156291",
"0.51492816",
"0.51483667",
"0.51451135",
"0.5137613",
"0.5131006",
"0.5129872",
"0.5129409",
"0.51216984",
"0.5120632",
"0.51186043",
"0.51159626",
"0.5104966",
"0.50984406",
"0.50935966",
"0.50922763",
"0.50916594",
"0.508153",
"0.5066767",
"0.50655437",
"0.5052349",
"0.5047223",
"0.5046165",
"0.5042173",
"0.50346094",
"0.50291425",
"0.5021815",
"0.5014684",
"0.5001367",
"0.49824297",
"0.49823648",
"0.49622044",
"0.4955513",
"0.49508932",
"0.49468565",
"0.49446175",
"0.4943417",
"0.49407303",
"0.49344552",
"0.49334317",
"0.49243155",
"0.49174473",
"0.4914897",
"0.4906479",
"0.49034286",
"0.4900255",
"0.48958096",
"0.48949397",
"0.4889778",
"0.48800972",
"0.487195",
"0.48711997",
"0.48701352",
"0.48687723",
"0.48663217",
"0.48660672",
"0.4862808",
"0.486059",
"0.48520342",
"0.4850172",
"0.48464268",
"0.48429275",
"0.48422676"
]
| 0.66092336 | 0 |
Execute CREATE TABLE queries. Actualize MetaData before and after the execution. | private void creates() {
DBPeer.fetchTableColumns();
DBPeer.fetchTableRows();
DBPeer.fetchTableIndexes();
for (int i = 0; i < creates.size(); i++) {
creates.get(i).init();
}
DBPeer.updateTableColumns();
DBPeer.updateTableRows();
DBPeer.updateTableIndexes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doCreateTable();",
"private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }",
"protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}",
"private void processCreate() throws HsqlException {\n\n boolean unique = false;\n int tableType;\n boolean isTempTable = false;\n String token;\n\n session.checkAdmin();\n session.checkDDLWrite();\n session.setScripting(true);\n\n if (tokenizer.isGetThis(Token.T_GLOBAL)) {\n tokenizer.getThis(Token.T_TEMPORARY);\n\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMP)) {\n isTempTable = true;\n } else if (tokenizer.isGetThis(Token.T_TEMPORARY)) {\n isTempTable = true;\n }\n\n token = tokenizer.getSimpleToken();\n\n switch (Token.get(token)) {\n\n // table\n case Token.MEMORY :\n tokenizer.getThis(Token.T_TABLE);\n case Token.TABLE :\n tableType = isTempTable ? Table.TEMP_TABLE\n : database.getDefaultTableType();\n\n processCreateTable(tableType);\n\n return;\n\n case Token.CACHED :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.CACHED_TABLE);\n\n return;\n\n case Token.TEXT :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_TABLE);\n processCreateTable(Table.TEXT_TABLE);\n\n return;\n\n default :\n if (isTempTable) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n\n switch (Token.get(token)) {\n\n // other objects\n case Token.ALIAS :\n processCreateAlias();\n break;\n\n case Token.SEQUENCE :\n processCreateSequence();\n break;\n\n case Token.SCHEMA :\n session.setScripting(false);\n processCreateSchema();\n break;\n\n case Token.TRIGGER :\n processCreateTrigger();\n break;\n\n case Token.USER :\n processCreateUser();\n break;\n\n case Token.ROLE :\n database.getGranteeManager().addRole(getUserIdentifier());\n break;\n\n case Token.VIEW :\n processCreateView();\n break;\n\n // index\n case Token.UNIQUE :\n unique = true;\n\n tokenizer.getThis(Token.T_INDEX);\n\n //fall thru\n case Token.INDEX :\n processCreateIndex(unique);\n break;\n\n default : {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n }\n }",
"public void CreateTables() {\n\t\ttry {\n\t\t\tString schema = Schema.META;\n\t\t\tInstall_DBMS_MetaData(schema.getBytes(),0);\n\n\t\t\t// load and install QEPs\n\t\t\tClass<?>[] executionPlans = new Class[] { QEP.class };\n\t\t\tQEPng.loadExecutionPlans(TCell_QEP_IDs.class, executionPlans);\n\t\t\tQEPng.installExecutionPlans(db);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void createTables()\n {\n String[] sqlStrings = createTablesStatementStrings();\n String sqlString;\n Statement statement;\n\n System.out.println(\"Creating table(s):\" +\n Arrays.toString(tableNames));\n for (int i=0; i<sqlStrings.length; i++)\n try\n {\n statement = connect.createStatement();\n\n sqlString = sqlStrings[i];\n\n System.out.println(\"SQL: \" + sqlString);\n\n statement.executeUpdate(sqlString);\n }\n catch (SQLException ex)\n {\n System.out.println(\"Error creating table: \" + ex);\n Logger.getLogger(DatabaseManagementDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void createTables() throws DatabaseAccessException {\n\t\tStatement stmt = null;\n\t\tPreparedStatement prepStmt = null;\n\n\t\ttry {\n\t\t\tstmt = this.connection.createStatement();\n\n\t\t\t// be sure to drop all tables in case someone manipulated the database manually\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS DynamicConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Features;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Groups;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Metadata;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Objects;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS StaticConstraints;\");\n\t\t\tstmt.executeUpdate(\"DROP TABLE IF EXISTS Subspaces;\");\n\n\t\t\t// populate database with tables.. by using ugly sql\n\t\t\tstmt.executeUpdate(\"CREATE TABLE DynamicConstraints(Id INTEGER PRIMARY KEY AUTOINCREMENT,\"\n\t\t\t\t\t+ \" Operator INTEGER, FeatureReference INTEGER,\"\n\t\t\t\t\t+ \" GroupReference INTEGER, Value FLOAT, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Features(Id INTEGER PRIMARY KEY AUTOINCREMENT,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"), OutlierFlag BOOLEAN, Min FLOAT, Max FLOAT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Groups(Id INTEGER PRIMARY KEY AUTOINCREMENT, Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"),\"\n\t\t\t\t\t+ \" Visibility BOOLEAN, Color INTEGER, ColorCalculatedByFeature INTEGER, Description TEXT);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Metadata(Version INTEGER);\");\n\n\t\t\t// Object table is created in initFeatures, to boost performance\n\n\t\t\tstmt.executeUpdate(\"CREATE TABLE StaticConstraints(Id INTEGER, GroupReference INTEGER,\"\n\t\t\t\t\t+ \" ObjectReference INTEGER, Active BOOLEAN);\");\n\t\t\tstmt.executeUpdate(\"CREATE TABLE Subspaces(Id INTEGER, FeatureReference INTEGER,\" + \" Name VARCHAR(\"\n\t\t\t\t\t+ DatabaseConfiguration.VARCHARLENGTH + \"));\");\n\n\t\t\tstmt.close();\n\n\t\t\t// after creating the tables, write the layout version\n\t\t\tprepStmt = this.connection.prepareStatement(\"INSERT INTO Metadata VALUES(?);\");\n\t\t\tprepStmt.setInt(1, DatabaseConfiguration.LAYOUTVERSION);\n\t\t\tprepStmt.execute();\n\n\t\t\tprepStmt.close();\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DatabaseAccessException(Failure.LAYOUT);\n\t\t}\n\t}",
"private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }",
"public final void execute() {\n try {\n\n StringBuffer preparedTableBuf = new StringBuffer();\n preparedTableBuf.append(\"create table if not exists \");\n preparedTableBuf.append(tableName + \" (\");\n\n boolean isCompoundKey = false;\n boolean isAutoKey = \"generated\".equals(pkey);\n\n String[] pkeys = pkey.split(\",\");\n StringBuffer compoundKey = new StringBuffer();\n if (pkeys.length > 1) {\n isCompoundKey = true;\n compoundKey.append(\", PRIMARY KEY (\");\n for (int i = 0; i < pkeys.length; i++) {\n compoundKey.append(pkeys[i] + (i == pkeys.length - 1 ? \")\" : \", \"));\n }\n }\n\n if (isAutoKey) {\n preparedTableBuf\n .append(\"id integer NOT NULL PRIMARY KEY AUTO_INCREMENT, \");\n }\n for (int i = 0; i < fields.length; i++) {\n preparedTableBuf.append(fields[i]\n + \" \"\n + columnTypes[i]\n + (pkey.equals(fields[i]) ? \" NOT NULL UNIQUE PRIMARY KEY\" : \"\")\n + (i == fields.length - 1 ? (isCompoundKey ? compoundKey.toString()\n : \"\") + \")\" : \", \"));\n }\n\n PreparedStatement preparedTableCreate = conn\n .prepareStatement(preparedTableBuf.toString());\n\n log.info(\"Prepared Table Statement : \" + preparedTableBuf.toString());\n preparedTableCreate.executeUpdate();\n conn.commit();\n\n } catch (Exception e) {\n log.error(e);\n }\n\n try {\n\n StringBuffer preparedInsertBuf = new StringBuffer();\n preparedInsertBuf.append(\"insert into \");\n preparedInsertBuf.append(tableName + \" (\");\n\n for (int i = 0; i < fields.length; i++) {\n preparedInsertBuf.append(fields[i]\n + (i == fields.length - 1 ? \")\" : \", \"));\n }\n\n preparedInsertBuf.append(\" values(\");\n\n for (int i = 0; i < fields.length; i++) {\n preparedInsertBuf.append(\"?\" + (i == fields.length - 1 ? \")\" : \", \"));\n }\n\n PreparedStatement insertItemRecord = conn\n .prepareStatement(preparedInsertBuf.toString());\n\n log.info(\"Rows : \" + fileImporter.getRowCount());\n log.info(\"Prepared Insert Statement : \" + preparedInsertBuf.toString());\n\n Iterator<Row> riter = fileImporter.getRowIterator();\n\n int rows = 0;\n\n int[] result = null;\n\n while (riter.hasNext()) {\n Row row = riter.next();\n\n if (!row.isValid()) {\n continue;\n } else {\n rows++;\n }\n\n try {\n for (int i = 0; i < fields.length; i++) {\n if (columnTypes[i].contains(\"char\")) {\n insertItemRecord.setString(i + 1, row.getValue(fields[i]));\n } else if (\"integer\".equals(columnTypes[i])) {\n try {\n Integer value = Integer.parseInt(row.getValue(fields[i]));\n insertItemRecord.setInt(i + 1, value);\n } catch (Exception e) {\n insertItemRecord.setInt(i + 1, 0);\n }\n } else {\n log.error(\"unsupported column type\");\n }\n }\n\n insertItemRecord.addBatch();\n\n if (rows % batchSize == 0) {\n\n try {\n result = insertItemRecord.executeBatch();\n\n conn.commit();\n log.info(\"batch update : \" + result.length);\n } catch (BatchUpdateException e) {\n log.error(\"Batch Update failed\", e);\n log.error(\"result size: \"\n + (result == null ? \"null\" : result.length));\n\n }\n\n }\n } catch (Exception e) {\n log.error(\"couldn't process row properly\", e);\n }\n }\n // the last set of updates will probably not mod to 0\n\n try {\n result = insertItemRecord.executeBatch();\n conn.commit();\n log.info(\"batch update : \" + result.length);\n } catch (BatchUpdateException e) {\n log.error(\"Batch Update failed\", e);\n log.error(\"\");\n }\n\n } catch (Exception e) {\n log.error(e);\n e.printStackTrace();\n }\n }",
"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 }",
"protected void createTable() throws Exception {\n startService();\n assertEquals(true, sqlDbManager.isReady());\n\n Connection conn = sqlDbManager.getConnection();\n assertNotNull(conn);\n assertFalse(sqlDbManager.tableExists(conn, \"testtable\"));\n assertTrue(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n assertTrue(sqlDbManager.tableExists(conn, \"testtable\"));\n sqlDbManager.logTableSchema(conn, \"testtable\");\n assertFalse(sqlDbManager.createTableIfMissing(conn, \"testtable\",\n\t\t\t\t\t TABLE_CREATE_SQL));\n }",
"@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }",
"protected void createTable(String query) {\n\t\t// no check in method for exists\n\t\ttry {\n\t\t\tStatement stat = conn.createStatement();\n\t\t\tstat.executeUpdate(query);\n\t\t\tstat.close(); // check again closing stats/conns\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Something went horribly wrong creating tables\\n\");\n\t\t\tSystem.out.println(\"Following statement was NOT executed:\\n\" + query);\n\t\t}\n\t}",
"private void createTables() {\n\t\tStatement s = null;\n\t\ttry {\n\t\t\ts = conn.createStatement();\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString createString = \"CREATE TABLE targeteprs (\" +\n\t\t\t\t\t \"targetepr varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"uniqueID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created targetepr table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\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\n\t\tcreateString = \"CREATE TABLE workflow (\" +\n\t\t\t\t\t \"uniqueID varchar(100) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created workflow table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void createTable() throws SQLException, UserExceptionClass {\n\t\tfinal String query = Constants.CREATE_QUERY;\n\t\tDBOperation.updateQueries(query);\n\t}",
"@Override\n public void createMetaTable(Connection conn) throws PersistenceException {\n String sql = String.format(\"CREATE TABLE %1$s (%2$s %3$s NOT NULL)\", metaTableName, META_TABLE_DATA_COLUMN, config.dataColumnType());\n executeUpdateSql(conn, sql);\n updateMetaTable(conn);\n }",
"@Override\n public Pipe execute(DBMS engine) throws DBxicException {\n engine.storManager.createTable(table);\n engine.catalog.saveCatalog();\n return new MessageThroughPipe(\"Table \" + table.getName() + \" successfully created\");\n }",
"public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}",
"public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString[] tables = CREATE_TABLES.split(\";\");\n\t\tfor(String SQL : tables){\n\t\t db.execSQL(SQL);\n\t\t}\n\t}",
"public void preCreateTable(Table table) throws MetaException {\n // We want data to be stored in monarch, nowwhere else.\n if (table.getSd().getLocation() != null) {\n throw new MetaException(\"Location can't be specified for Monarch\");\n }\n\n boolean isExternal = isExternalTable(table);\n String tableName = getMonarchTableName(table);\n String hiveTableName = table.getDbName() + \"_\" + table.getTableName();\n\n Map<String, String> columnInfo = new LinkedHashMap<>();\n\n Iterator<FieldSchema> columnIterator = table.getSd().getColsIterator();\n if (columnIterator != null) {\n while (columnIterator.hasNext()) {\n FieldSchema e = columnIterator.next();\n columnInfo.put(e.getName(), e.getType());\n }\n }\n\n try {\n Map<String, String> parameters = table.getParameters();\n String tableType = parameters.getOrDefault(MonarchUtils.MONARCH_TABLE_TYPE, MonarchUtils.DEFAULT_TABLE_TYPE);\n if (tableType.equalsIgnoreCase(MonarchUtils.DEFAULT_TABLE_TYPE)) {\n MonarchUtils.createConnectionAndFTable(tableName, parameters, isExternal, hiveTableName, columnInfo);\n } else {\n MonarchUtils.createConnectionAndTable(tableName, parameters, isExternal, hiveTableName, columnInfo);\n }\n } catch (Exception se) {\n LOG.error(\"Failed to create table: {}\", tableName, se);\n throw new MetaException(se.getMessage());\n }\n }",
"public void analyzeCreateTableStmt(TCreateTableSqlStatement stmt) {\n\t\tString tableName=stmt.getTargetTable().toString();\n\t\tif(Input.tablesInfo.get(tableName)!=null){System.out.println(\"Table already exists..\"); return;}\n\t\tTColumnDefinition column;\n\t\ttry \n\t\t{\n\t\tFile file =new File(\"Resources/metadata.txt\");\n\t\tString NF=\"Resources/\"+tableName+\".csv\";\n\t\tFile newFile =new File(NF);\n\t\tif(!newFile.exists())\n\t\t\tnewFile.createNewFile();\n\t\tif(!file.exists())\n\t\t\t\tfile.createNewFile();\n\t\t\t\t\n\t\t\tFileWriter fileWritter = new FileWriter(file,true);\n\t\t\tBufferedWriter bufferWritter = new BufferedWriter(fileWritter);\n\t\t\t//bufferWritter.newLine(); \n\t\t\tbufferWritter.write(\"<begin_table>\".trim());\n\t\t\tbufferWritter.newLine(); bufferWritter.write(tableName);\n\t\t\n\t\t\tfor(int i=0;i<stmt.getColumnList().size();i++)\n\t\t{\n bufferWritter.newLine();\n column = stmt.getColumnList().getColumn(i);\n bufferWritter.write(column.getColumnName().toString().trim());\n \n }\n\t\t\n\t\tbufferWritter.newLine();\n\t\tbufferWritter.write(\"<end_table>\".trim());bufferWritter.newLine(); \n\t\tbufferWritter.close();\n\t\tSystem.out.println(\"Table created successfully...\");\n\t\t}\t\n\t\t catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}",
"private void createTable() {\n try (Statement st = this.conn.createStatement()) {\n st.execute(\"CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, name VARCHAR(100) NOT NULL, \"\n + \"login VARCHAR(100) UNIQUE NOT NULL, email VARCHAR(100) NOT NULL, createDate TIMESTAMP NOT NULL);\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}",
"public void createTable() {\n\t\tString QUERY = \"CREATE TABLE person (id INT PRIMARY KEY, name VARCHAR(32) NOT NULL, phoneNumber VARCHAR(18) NOT NULL)\";\n\t\ttry (Connection con = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\tStatement stmt = con.createStatement();) {\n\t\t\tstmt.executeUpdate(QUERY);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"SQL Exception\");\n\t\t}\n\n\t}",
"private void createTable() throws Exception{\n Statement stm = this.con.createStatement();\n\n String query = \"CREATE TABLE IF NOT EXISTS \" + tableName +\n \"(name VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL ,\" +\n \" city VARCHAR( 15 ) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL ,\" +\n \" phone VARCHAR( 15 ) NOT NULL, \" +\n \"PRIMARY KEY (phone) )\";\n stm.execute(query);\n }",
"public boolean createAllTables (){\n try {\n this.execute(CREATE_PEOPLE);\n this.execute(CREATE_AUTHOR);\n this.execute(CREATE_EMPLOYEE);\n this.execute(CREATE_MEETING);\n this.execute(CREATE_COVERPRICE);\n this.execute(CREATE_PRICEPARAMETERS);\n this.execute(CREATE_ORDER);\n this.execute(CREATE_CORRECTIONS);\n this.execute(CREATE_BOOK);\n this.execute(CREATE_COVERLINK);\n return true;\n } catch (SQLException | IOException | ClassNotFoundException e) {\n log.error(e);\n return false;\n }\n }",
"public void createTable() {\r\n\t\tclient.createTable();\r\n\t}",
"private void initDb() throws SQLException {\n statement = conn.createStatement();\n for (String sql : TABLES_SQL) {\n statement.executeUpdate(sql);\n }\n }",
"public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }",
"private void createDataTable() {\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoEditors.TABLE + \" (ID INT IDENTITY PRIMARY KEY, NAME VARCHAR(150) NOT NULL UNIQUE)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.TABLE + \" (ID INT IDENTITY PRIMARY KEY, TITLE VARCHAR(150) NOT NULL UNIQUE, YEAR INT, ISBN10 VARCHAR(20), ISBN13 VARCHAR(13), NOTE INT, PAGES_NUMBER INT, RESUME VARCHAR(2000), THE_EDITOR_FK INT, THE_KIND_FK INT, THE_LANGUAGE_FK INT, THE_LENDING_FK INT, THE_SAGA_FK INT, THE_TYPE_FK INT)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" (THE_BOOK_FK INT NOT NULL, THE_AUTHOR_FK INT NOT NULL)\");\n\n jdbcTemplate.update(\"CREATE INDEX BOOK_EDITOR_IDX ON \" + IDaoEditors.TABLE + \"(ID)\");\n jdbcTemplate.update(\"CREATE INDEX BOOKS_IDX ON \" + IDaoBooks.TABLE + \"(ID)\");\n }",
"public void createTable(String tableName) {\n //SQL Statement\n String query = \"call aTable\";\n\n try {\n //connection\n stmt = con.createStatement();\n //execute query\n stmt.executeUpdate(query);\n System.out.println(\"\\n--Table \" + tableName + \" created--\");\n } catch (SQLException ex) {\n System.out.println(\"\\n--Query did not execute--\");\n ex.printStackTrace();\n }\n }",
"private void createTransactionsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE transactions \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY, \"\n\t\t\t\t\t+ \"owner INT, amount DOUBLE, source BIGINT, sourceType VARCHAR(20), target BIGINT, targetType VARCHAR(20), comment VARCHAR(255), time BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table transactions\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of transactions table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}",
"TABLE createTABLE();",
"public void createTables() {\n\t\t// A try catch is needed in case the sql statement is invalid\n\t\ttry {\n\t\t\t// Create connection and statement\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\n\t\t\t// Create tables if they do not exist already\n\t\t\tString user_sql = \"CREATE TABLE IF NOT EXISTS \" + user_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" username VARCHAR(10) UNIQUE NOT NULL,\" + \" password VARCHAR(15) NOT NULL,\"\n\t\t\t\t\t+ \" name VARCHAR(20) NOT NULL,\" + \" lastname VARCHAR(20) NOT NULL,\"\n\t\t\t\t\t+ \" email VARCHAR(40) UNIQUE NOT NULL,\" + \" isAdmin BOOLEAN NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\tString player_sql = \"CREATE TABLE IF NOT EXISTS \" + player_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" idTeam INTEGER NOT NULL,\" + \" name VARCHAR(20) NOT NULL,\" + \" lastname VARCHAR(20) NOT NULL,\"\n\t\t\t\t\t+ \" dateOfBirth DATE NOT NULL,\" + \" height INTEGER NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\tString team_sql = \"CREATE TABLE IF NOT EXISTS \" + team_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" name VARCHAR(20) UNIQUE NOT NULL,\" + \" coach VARCHAR(20) UNIQUE NOT NULL,\"\n\t\t\t\t\t+ \" city VARCHAR(20) NOT NULL,\" + \" dateFoundation DATE NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\tString match_sql = \"CREATE TABLE IF NOT EXISTS \" + match_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" idHome INTEGER NOT NULL,\" + \" idAway INTEGER NOT NULL,\" + \" matchDate DATE NOT NULL,\"\n\t\t\t\t\t+ \" referee VARCHAR(20) NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\tString stats_sql = \"CREATE TABLE IF NOT EXISTS \" + stats_table + \" (id INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t\t+ \" idMatch INTEGER NOT NULL,\" + \" goalsHome INTEGER NOT NULL,\" + \" goalsAway INTEGER NOT NULL,\"\n\t\t\t\t\t+ \" numberOfCorners INTEGER NOT NULL,\" + \" numberOfFouls INTEGER NOT NULL,\" + \" PRIMARY KEY (id))\";\n\n\t\t\t// Inform the user that the table has been created just the first\n\t\t\t// time\n\t\t\tif (statement.executeUpdate(user_sql) > 0) {\n\t\t\t\tSystem.out.println(\"User table succesfully created\");\n\t\t\t}\n\t\t\tif (statement.executeUpdate(player_sql) > 0) {\n\t\t\t\tSystem.out.println(\"Player table succesfully created\");\n\t\t\t}\n\t\t\tif (statement.executeUpdate(team_sql) > 0) {\n\t\t\t\tSystem.out.println(\"Team table succesfully created\");\n\t\t\t}\n\t\t\tif (statement.executeUpdate(match_sql) > 0) {\n\t\t\t\tSystem.out.println(\"Match table succesfully created\");\n\t\t\t}\n\t\t\tif (statement.executeUpdate(stats_sql) > 0) {\n\t\t\t\tSystem.out.println(\"Stats table succesfully created\");\n\t\t\t}\n\t\t\t// Closing the connection\n\t\t\tstatement.close();\n\t\t\tconnection.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"@Override\n public void createTable() throws Exception {\n }",
"public void create(Connection db) throws SQLException {\n if (tableName == null) {\n throw new SQLException(\"Table Name not specified\");\n }\n\n Statement st = db.createStatement();\n\n if (dbType == DatabaseUtils.POSTGRESQL) {\n if (hasSequence()) {\n st.executeUpdate(\"CREATE SEQUENCE \" + sequenceName);\n }\n }\n\n StringBuffer sql = new StringBuffer();\n sql.append(\"CREATE TABLE \" + tableName + \" (\");\n\n String primaryKey = \"\";\n Iterator fields = columns.iterator();\n while (fields.hasNext()) {\n DatabaseColumn thisColumn = (DatabaseColumn) fields.next();\n if (thisColumn.isPrimaryKey()) {\n primaryKey = thisColumn.getName();\n sql.append(thisColumn.getCreateSQL(dbType, sequenceName));\n } else {\n sql.append(thisColumn.getCreateSQL(dbType));\n }\n if (fields.hasNext()) {\n sql.append(\",\");\n }\n }\n if (dbType == DatabaseUtils.ORACLE) {\n sql.append(\", PRIMARY KEY (\" + primaryKey + \")\");\n }\n sql.append(\");\");\n st.executeUpdate(sql.toString());\n st.close();\n }",
"public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase sdb) {\n\t\tsdb.execSQL(CREATE_QUERY);\n\t\tLog.d(\"DB ops: \", \"Table Created \");\n\t}",
"public void createTable() throws SQLException {\r\n\t\t\r\n\t\t//SQL query for inserting a new table \"user\" in the \"users\" database\r\n\t\tString sql = \"create table if not exists user(id INT primary key auto_increment, \"\r\n\t\t\t\t+ \"name VARCHAR(30), country VARCHAR(30), age INT)\";\r\n\t\t\r\n\t\t//Execute this query\r\n\t\t\r\n\t\tStatement statement = connection.createStatement();\r\n\t\t\r\n\t\tboolean result = statement.execute(sql); //Can return false even if the operation is successful. Mostly used for creating a table\r\n\t\t\r\n\t\tlogger.info(\"result of create operation is {}\",result);\r\n//\t\tstatement.executeQuery(sql); //Execute and return resultSet. Mostly used with select queries when we want to retrive the data\r\n//\t\tstatement.executeUpdate(sql);//Return no of rows being affected.Works with any type of queries but only returns no of rows being affected\r\n\t\t\r\n\t}",
"@Override\n\tpublic void createTable() {\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++++++\");\n\t\ttry {\n\t\t\tTableUtils.createTable(connectionSource, UserEntity.class);\n\t\t\tTableUtils.createTable(connectionSource, Downloads.class);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\");\n\t\t}\n\t}",
"public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }",
"public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void createTable(Object connectionHandle, DataTable table) throws DataSourceException\n\t{\n\t\tList<DataField> fields = new LinkedList<DataField>();\n\t\tList<String> indexes = new LinkedList<String>();\n\t\t\n\t\tList<String> keys = table.getFields();\n\t\tIterator<String> it = keys.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString fld = it.next();\n\t\t\tDataField df = table.getDataField(fld);\n\t\t\t\n\t\t\tfields.add(df);\n\t\t\t\n\t\t//\tif(df.isPrimary()){\n\t\t//\t\tindexes.add(fld);\n\t\t//\t}\n\t\t}\n\t\t\n\t\tIterator<DataField> primaryIt = table.getPrimaryKeys().iterator();\n\t\twhile(primaryIt.hasNext()){\n\t\t\tDataField pf = primaryIt.next();\n\t\t\t\n\t\t\tindexes.add(pf.getName());\n\t\t}\n\t\t\n\t\t\n\t\t// Make SQL String\n\t\tStringBuffer sqlString = new StringBuffer();\n\t\tsqlString.append(\"CREATE TABLE \");\n\t\tsqlString.append(table.getName());\n\t\tsqlString.append(\" ( \\n\");\n\t\t\n\t\tboolean first = true;\n\t\tIterator<DataField> itDf = fields.iterator();\n\t\twhile(itDf.hasNext()){\n\t\t\tDataField fld = itDf.next();\n\t\t\t\n\t\t\tif(first){\n\t\t\t\tfirst = false;\n\t\t\t}else{\n\t\t\t\tsqlString.append(\",\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tsqlString.append(fld.getName());\n\t\t\tsqlString.append(\" \");\n\t\t\tsqlString.append(getSQLType(fld.getType()));\n\t\t\t\n\t\t\t// not null\n\t\t\tif(fld.isNotnull()){\n\t\t\t\tsqlString.append(\" NOT NULL\");\n\t\t\t}\n\t\t\t\n\t\t\t// unique\n\t\t\tif(fld.isUnique()){\n\t\t\t\tsqlString.append(\" UNIQUE\");\n\t\t\t}\n\t\t\t\n\t\t\t// default\n\t\t\tif(fld.getDefaultValue() != null){\n\t\t\t\tsqlString.append(\" \");\n\t\t\t\tsqlString.append(fld.getDefaultString());\n\t\t\t}\n\t\t\t\n\t\t\t// check\n\t\t\tif(fld.getCheck() != null){\n\t\t\t\tsqlString.append(\" \");\n\t\t\t\ttry {\n\t\t\t\t\tsqlString.append(fld.getCheck().extract(null, null, null, null, null));\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow new DataSourceException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// check\n\t\tIterator<CheckDefinition> checkIt = table.getCheck().iterator();\n\t\twhile(checkIt.hasNext()){\n\t\t\tCheckDefinition def = checkIt.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\ttry {\n\t\t\t\tsqlString.append(def.extract(null, null, null, null, null));\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new DataSourceException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// foreign key\n\t\tIterator<ForeignKey> foreignIt = table.getForeignKey().iterator();\n\t\twhile(foreignIt.hasNext()){\n\t\t\tForeignKey fkey = foreignIt.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\ttry {\n\t\t\t\tsqlString.append(fkey.extract(null, null, null, null, null));\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new DataSourceException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// primary key\n\t\tif(indexes.size() > 0){\n\t\t\tsqlString.append(\",\\n\");\n\t\t\tsqlString.append(\"PRIMARY KEY(\");\n\t\t\t\n\t\t\tfirst = true;\n\t\t\tit = indexes.iterator();\n\t\t\twhile(it.hasNext()){\n\t\t\t\tString idxFld = it.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}else{\n\t\t\t\t\tsqlString.append(\", \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsqlString.append(idxFld);\n\t\t\t}\n\n\t\t\tsqlString.append(\")\");\n\t\t}\n\t\t\n\t\t// unique\n\t\tIterator<Unique> itU = table.getUnique().iterator();\n\t\twhile(itU.hasNext()){\n\t\t\tUnique unique = itU.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\tsqlString.append(\"UNIQUE(\");\n\t\t\t\n\t\t\tfirst = true;\n\t\t\tIterator<String> itUnique = unique.getKey().iterator();\n\t\t\twhile(itUnique.hasNext()){\n\t\t\t\tString col = itUnique.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}else{\n\t\t\t\t\tsqlString.append(\",\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsqlString.append(col);\n\t\t\t}\n\t\t\t\n\t\t\tsqlString.append(\")\");\n\t\t}\n\t\t\n\t\tsqlString.append(\"\\n)\\n\");\n\t\t\n\t\tif(this.logger != null && this.outSql){\n\t\t\tthis.logger.reportInfo(sqlString.toString());\n\t\t}\n\t\t\n\t\t// \n\t\tAlinousDebug.debugOut(core, sqlString.toString());\n\t\t\n\t\texecuteUpdateSQL(connectionHandle, sqlString.toString(), false);\n\n\t}",
"public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase sdb) {\n\t\tsdb.execSQL(CREATE_QUERY);\n\t\tLog.d(\"Database operations\", \"table created\");\n\t}",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }",
"protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }",
"public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }",
"public void createDBSchema() throws NoConnectionToDBException, SQLException, IOException {\n \n InputStream in = EDACCApp.class.getClassLoader().getResourceAsStream(\"edacc/resources/edacc.sql\");\n if (in == null) {\n throw new SQLQueryFileNotFoundException();\n }\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line;\n String text = \"\";\n String l;\n while ((line = br.readLine()) != null) {\n if (!(l = line.replaceAll(\"\\\\s\", \"\")).isEmpty() && !l.startsWith(\"--\")) {\n text += line + \" \";\n }\n }\n in.close();\n Vector<String> queries = new Vector<String>();\n String query = \"\";\n String delimiter = \";\";\n int i = 0;\n while (i < text.length()) {\n if (text.toLowerCase().startsWith(\"delimiter\", i)) {\n i += 10;\n delimiter = text.substring(i, text.indexOf(' ', i));\n i = text.indexOf(' ', i);\n } else if (text.startsWith(delimiter, i)) {\n queries.add(query);\n i += delimiter.length();\n query = \"\";\n } else {\n query += text.charAt(i);\n i++;\n }\n }\n if (!query.replaceAll(\" \", \"\").equals(\"\")) {\n queries.add(query);\n }\n boolean autoCommit = getConn().getAutoCommit();\n try {\n getConn().setAutoCommit(false);\n Statement st = getConn().createStatement();\n for (String q : queries) {\n st.execute(q);\n }\n st.close();\n getConn().commit();\n } catch (SQLException e) {\n getConn().rollback();\n throw e;\n } finally {\n getConn().setAutoCommit(autoCommit);\n }\n }",
"private void createTables() throws ConnectException {\n try (Connection connection = connect(); Statement statement = connection.createStatement()) {\n for (Table table : Table.values()) {\n createTable(table, statement);\n }\n LOGGER.debug(\"Created tables successfully\");\n } catch (SQLException e) {\n LOGGER.error(\"Error while creating Tables in database: {}\\n{}\", e.getMessage(), e);\n }\n }",
"public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }",
"public String createTable() {\n\n String statement = \"CREATE TABLE \" + tableName + \"( \";\n\n //go through INTEGER, FLOAT, TEXT columns\n Iterator iterator = Iterables.filter(columns.entrySet(), entry -> entry.getValue().getType() instanceof String).iterator();\n\n while (iterator.hasNext()) {\n Map.Entry<Element, FieldData> fieldDataEntry = (Map.Entry<Element, FieldData>) iterator.next();\n statement += fieldDataEntry.getValue().createColumn() + \",\";\n }\n\n return (new StringBuilder(statement).replace(statement.length() - 1, statement.length(), \"\").toString() + \")\").toUpperCase();\n }",
"@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }",
"@Override\n public void execute()\n {\n mDbHandle.execSQL(CREATE_TABLE_BLOOD_SUGAR);\n }",
"@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }",
"private void CreatTable() {\n String sql = \"CREATE TABLE IF NOT EXISTS \" + TABLE_NAME\n + \" (name varchar(30) primary key,password varchar(30));\";\n try{\n db.execSQL(sql);\n }catch(SQLException ex){}\n }",
"public void createDatabaseTables() throws SQLException\n\t{\n\t\tConnection conn = DatabaseConnection.getConnection();\n\t\tDatabaseMetaData dbm = (DatabaseMetaData) conn.getMetaData();\n\t\tResultSet tables = dbm.getTables(null, null, \"principalMetrics\", null);\n\t\t\n\t\tif (tables.next()) \n\t\t{\n\t\t\tSystem.out.println(\"Table principalMetrics exists!\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tStatement stmt = null;\n\t\t\ttry {\n\t\t\t\tstmt = (Statement) conn.createStatement();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tString query = \"CREATE TABLE `principalMetrics` (\\n\" + \n\t\t\t\t\t\" `class_name` varchar(500) NOT NULL,\\n\" + \n\t\t\t\t\t\" `project_name` varchar(500) NOT NULL,\\n\" + \n\t\t\t\t\t\" `version` int(11) NOT NULL,\\n\" + \n\t\t\t\t\t\" `td_minutes` float(100,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `principal` double(100,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `code_smells` int(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `bugs` int(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `vulnerabilities` int(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `duplicated_lines_density` float(100,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `scope` varchar(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `classes` double(100,0) DEFAULT NULL,\\n\" + \n\t\t\t\t\t\" `complexity` double(100,0) DEFAULT NULL,\\n\" + \n\t\t\t\t\t\" `functions` double DEFAULT NULL,\\n\" + \n\t\t\t\t\t\" `nloc` double DEFAULT NULL,\\n\" + \n\t\t\t\t\t\" `statements` double DEFAULT NULL,\\n\" + \n\t\t\t\t\t\" `comment_lines_density` double(100,0) DEFAULT NULL,\\n\" + \n\t\t\t\t\t\" `language` varchar(500) NOT NULL\\n\" + \n\t\t\t\t\t\") ENGINE=InnoDB DEFAULT CHARSET=latin1;\";\n\n\t\t\tstmt.executeUpdate(query);\n\n\t\t\tif (stmt != null) {\n\t\t\t\ttry {\n\t\t\t\t\tstmt.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}\n\t\t}\n\n\t\ttables = null;\n\t\ttables = dbm.getTables(null, null, \"cMetrics\", null);\n\t\tif (tables.next()) \n\t\t{\n\t\t\tSystem.out.println(\"Table cMetrics exists!\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tStatement stmt = null;\n\t\t\ttry {\n\t\t\t\tstmt = (Statement) conn.createStatement();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tString query = \"CREATE TABLE `cMetrics` (\\n\" + \n\t\t\t\t\t\" `id` int(10) NOT NULL,\\n\" + \n\t\t\t\t\t\" `class_name` varchar(500) NOT NULL,\\n\" + \n\t\t\t\t\t\" `project_name` varchar(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `scope` varchar(45) NOT NULL,\\n\" + \n\t\t\t\t\t\" `loc` double NOT NULL,\\n\" + \n\t\t\t\t\t\" `cyclomatic_complexity` double NOT NULL,\\n\" + \n\t\t\t\t\t\" `number_of_functions` double NOT NULL,\\n\" + \n\t\t\t\t\t\" `comments_density` double NOT NULL,\\n\" + \n\t\t\t\t\t\" `version` int(45) NOT NULL,\\n\" + \n\t\t\t\t\t\" `principal` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `interest` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `breaking_point` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `frequency_of_change` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `interest_probability` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `coupling` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `cohesion` double DEFAULT '0'\\n\" + \n\t\t\t\t\t\") ENGINE=InnoDB DEFAULT CHARSET=latin1;\";\n\n\t\t\tstmt.executeUpdate(query);\n\n\t\t\tif (stmt != null) {\n\t\t\t\ttry {\n\t\t\t\t\tstmt.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}\n\n\t\t}\n\n\t\ttables = null;\n\t\ttables = dbm.getTables(null, null, \"javaMetrics\", null);\n\t\tif (tables.next()) \n\t\t{\n\t\t\tSystem.out.println(\"Table javaMetrics exists!\");\n\t\t}\n\t\telse \n\t\t{\n\t\t\tStatement stmt = null;\n\t\t\ttry {\n\t\t\t\tstmt = (Statement) conn.createStatement();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tString query = \"CREATE TABLE `javaMetrics` (\\n\" + \n\t\t\t\t\t\" `id` int(10) NOT NULL,\\n\" + \n\t\t\t\t\t\" `class_name` varchar(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `project_name` varchar(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `scope` varchar(45) DEFAULT NULL,\\n\" + \n\t\t\t\t\t\" `wmc` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `dit` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `cbo` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `rfc` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `lcom` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `wmc_dec` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `nocc` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `mpc` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `dac` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `loc` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `number_of_properties` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `dsc` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `noh` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `ana` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `dam` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `dcc` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `camc` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `moa` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `mfa` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `nop` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `cis` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `nom` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `reusability` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `flexibility` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `understandability` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `functionality` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `extendibility` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `effectiveness` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `fanIn` double(40,0) NOT NULL,\\n\" + \n\t\t\t\t\t\" `commit_hash` varchar(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `version` int(100) NOT NULL,\\n\" + \n\t\t\t\t\t\" `principal` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `interest` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `breakingpoint` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `frequency_of_change` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `interest_probability` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `rem` double DEFAULT '0',\\n\" + \n\t\t\t\t\t\" `cpm` double DEFAULT '0'\\n\" + \n\t\t\t\t\t\") ENGINE=InnoDB DEFAULT CHARSET=utf8;\";\n\n\t\t\tstmt.executeUpdate(query);\n\n\t\t\tif (stmt != null) {\n\t\t\t\ttry {\n\t\t\t\t\tstmt.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}\n\t\t}\n\t}",
"String getCreateTableSql(String name, DataSet dataSet, boolean isTemporary,\r\n String key, FieldsRepository fieldsRepository);",
"Table createTable();",
"private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}",
"protected void executeSchemaOperations() {\n }",
"protected void createTableForEntityType(String type) throws SQLException {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"CREATE TABLE \") // LOCAL TEMPORARY \n\t\t\t.append(getTableNameForEntityType(type))\n\t\t\t.append(\" (\");\n\t\t\n\t\tsb.append(\"id VARCHAR(50) PRIMARY KEY\"); // TODO maybe 30 is not enough?\n\t\t\n\t\tfor (Attribute<? extends IValue> a: entityType2attributes.get(type)) {\n\t\t\tsb.append(\", \");\n\t\t\t\n\t\t\t// colname\n\t\t\tsb.append(getAttributeColNameForType(type, a));\n\t\t\tsb.append(\" \");\n\t\t\t\n\t\t\t// type\n\t\t\tsb.append(getSQLTypeForAttribute(a));\n\t\t\tsb.append(\" \");\n\t\t\t\n\t\t}\n\t\tsb.append(\")\");\n\t\tfinal String qry = sb.toString();\n\t\t\n\t\t// execute \n\t\tlogger.info(\"creating table for type {} with SQL query: {}\", type, qry);\n\t\tStatement s = connection.createStatement();\t\t\t\t\n\t\ts.execute(qry);\n\t\ts.close();\n\t\t\n\t\t// create indexes\n\t\tSet<String> setIndex = new HashSet<>();\n\t\ttable2createdIndex.put(getTableNameForEntityType(type), setIndex);\n\t\t\n\t\tStatement s2 = connection.createStatement();\t\t\t\t\n\t\tfor (Attribute<? extends IValue> a: entityType2attributes.get(type)) {\n \n\t\t\tsb = new StringBuffer();\n\t\t\tsb.append(\"CREATE INDEX idx_\")\n\t\t\t\t.append(getTableNameForEntityType(type))\n\t\t\t\t.append(\"_\")\n\t\t\t\t.append(getAttributeColNameForType(type, a));\n\t\t\tsb.append(\" ON \");\n\t\t\tsb.append(getTableNameForEntityType(type));\n\t\t\tsb.append(\" (\");\n\t\t\tsb.append(getAttributeColNameForType(type, a));\n\t\t\tsb.append(\")\");\n\t\t\ts2.execute(sb.toString());\n\t\t\t\n\t\t\tsetIndex.add(getAttributeColNameForType(type, a));\n\t\t}\n\t\ts2.close();\n\t}",
"void prepareTables();",
"@Override\r\n\tpublic void createTable(Connection con) throws SQLException {\r\n\t\tString sql = \"CREATE TABLE \" + tableName\r\n\t\t\t\t+ \"(pc_id integer, class_id varchar(20), level integer,\"\r\n\t\t\t\t+ \" PRIMARY KEY (pc_id,class_id,level) )\";\r\n\r\n\t\tif (DbUtils.doesTableExist(con, tableName)) {\r\n\r\n\t\t} else {\r\n\t\t\ttry (PreparedStatement ps = con.prepareStatement(sql);) {\r\n\t\t\t\tps.execute();\r\n\t\t\t}\r\n \r\n\t\t}\r\n\r\n\r\n\r\n\t\tString[] newInts = new String[] { \r\n\t\t\t\t\"hp_Increment\",};\r\n\t\tDAOUtils.createInts(con, tableName, newInts);\r\n\r\n\t}",
"@Override\n public void createTable(String table_name, String[] columns) {\n\n // silently return if table already exists or connection is closed\n if (!is_open || doesTableExist(table_name)) {\n return;\n }\n\n // build the statement using string properties\n StringBuilder create_string = new StringBuilder();\n\n // join together column names separated by commas\n create_string.append(String.join(\", \", columns));\n\n // try to execute the create statement\n try {\n statement.execute(\"CREATE TABLE \" + table_name + \"(\\n\" + create_string + \"\\n)\");\n connection.commit();\n } catch (SQLException e) {\n System.out.println(\"Could not create table \" + table_name);\n e.printStackTrace();\n }\n\n //System.out.println(\"Created table \" + table_name);\n\n }",
"public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );",
"@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}",
"public void createTable()\n throws DBException\n {\n try {\n DBProvider.createTable(this);\n } catch (SQLException sqe) {\n throw new DBException(\"Table creation\", sqe);\n }\n }",
"private void createSchema() throws Exception\n {\n LOG.info(\"Creating schema\");\n HibernateUtil.currentSession();\n }",
"public void create_table(String table_name, List<String> attributes) {\n //throw error if table already exists\n if (get_table_names().contains(table_name) && !table_name.equals(\"relationship\")) {\n throw new RuntimeException(\"Table with this name already exists.\");\n }\n //throw error if no name is given\n if (table_name.isEmpty()) {\n throw new RuntimeException(\"Table name can not be empty.\");\n }\n //throw error if no attributes are given\n if (attributes.isEmpty()) {\n throw new RuntimeException(\"Table needs at least one attribute.\");\n }\n\n StringBuilder stringBuilder = new StringBuilder(\"create table if not exists \");\n stringBuilder.append(table_name);\n //autoincrement handles the correct incrementation of the primary key\n stringBuilder.append(\" (id integer primary key autoincrement, \");\n for (String attribute : attributes) {\n stringBuilder.append(attribute);\n stringBuilder.append(\" varchar, \"); //values are varchar since the user inputs text\n }\n stringBuilder.delete(stringBuilder.length() - 2, stringBuilder.length());\n stringBuilder.append(\")\");\n\n String sql = stringBuilder.toString();\n\n execute_statement(sql, false);\n }",
"@SuppressWarnings({ \"unchecked\", \"null\" })\n public static void createTableDefinition() throws Exception{\n\n if(OBJECT.isAnnotationPresent(Table.class)){\n Annotation annotation = OBJECT.getAnnotation(Table.class);\n Method method = annotation.getClass().getMethod(\"name\");\n Object object = method.invoke(annotation);\n\n TABLE_NAME = object.toString().toUpperCase();\n\n CREATE_STATEMENT = new StringBuilder();\n FOREIGN_KEY = new StringBuilder();\n COLUMNS = new StringBuilder();\n LIST_FIELD_MODEL = new ArrayList<FieldModel>();\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Table not declared in class \"+OBJECT.getSimpleName());\n }\n\n\n FIELD_DEFINITION = OBJECT.getDeclaredFields();\n\n ARRAY_COLUMNS = new String[FIELD_DEFINITION.length];\n\n for (int i = 0; i < FIELD_DEFINITION.length ; i++){\n Field field = FIELD_DEFINITION[i];\n Annotation annotation = null;\n Method methodName = null;\n Method methodSize = null;\n Object objectName = null;\n Object sizeField = null;\n String type;\n String primaryKeyText = \"\";\n\n\n if(field.isAnnotationPresent(Column.class)){\n annotation = field.getAnnotation(Column.class);\n methodName = annotation.getClass().getMethod(\"name\");\n methodSize = annotation.getClass().getMethod(\"size\");\n sizeField = methodSize.invoke(annotation);\n objectName = methodName.invoke(annotation);\n if(objectName == null || objectName.toString() == \"\"){\n objectName = field.getName();\n }\n\n\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Annotation @Column not declared in the field --> \"+field.getName());\n }\n\n if(field.isAnnotationPresent(PrimaryKey.class)){\n PK = objectName.toString();\n\n Annotation pKey_annotation = field.getAnnotation(PrimaryKey.class);\n Method pkey_methodAutoIncrement = pKey_annotation.getClass().getMethod(\"autoIncrement\");\n Object pkey_autoIncrement = pkey_methodAutoIncrement.invoke(pKey_annotation);\n\n primaryKeyText = \" PRIMARY KEY \";\n\n if(Boolean.valueOf(pkey_autoIncrement.toString())){\n primaryKeyText = primaryKeyText + \" AUTOINCREMENT \";\n }\n\n }\n if(field.isAnnotationPresent(Codigo.class)){\n setCOD(objectName.toString());\n }\n if(field.isAnnotationPresent(ForeignKey.class)){\n Annotation fkey_annotation = field.getAnnotation(ForeignKey.class);\n Method fkey_methodTableReference = fkey_annotation.getClass().getMethod(\"tableReference\");\n Object fkey_tableReferenceName = fkey_methodTableReference.invoke(fkey_annotation);\n\n Method fkey_methodOnUpCascade = fkey_annotation.getClass().getMethod(\"onUpdateCascade\");\n Object fkey_OnUpCascadeValue = fkey_methodOnUpCascade.invoke(fkey_annotation);\n\n Method fkey_methodOnDelCascade = fkey_annotation.getClass().getMethod(\"onDeleteCascade\");\n Object fkey_OnDelCascadeValue = fkey_methodOnDelCascade.invoke(fkey_annotation);\n\n Method fkey_methodColumnReference = fkey_annotation.getClass().getMethod(\"columnReference\");\n Object fkey_columnReference = fkey_methodColumnReference.invoke(fkey_annotation);\n\n String columnReference = fkey_columnReference.toString();\n if(columnReference == \"\"){\n columnReference = \"_id\";\n }\n\n FOREIGN_KEY.append(\", FOREIGN KEY (\"+objectName.toString()+\") REFERENCES \"+fkey_tableReferenceName.toString().toUpperCase()+\" (\"+columnReference+\")\");\n\n if(Boolean.valueOf(fkey_OnUpCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON UPDATE CASCADE \");\n }\n if(Boolean.valueOf(fkey_OnDelCascadeValue.toString())){\n FOREIGN_KEY.append(\" ON DELETE CASCADE \");\n }\n\n\n }\n\n\n if(field.getType() == int.class || field.getType() == Integer.class || field.getType() == Long.class || field.getType() == long.class){\n type = \" INTEGER \";\n }else\tif(field.getType() == String.class || field.getType() == char.class ){\n type = \" TEXT \";\n }else\tif(field.getType() == Double.class || field.getType() == Float.class || field.getType() == double.class){\n type = \" REAL \";\n }else if(field.getType() == BigDecimal.class){\n type = \" REAL \";\n }else if(field.getType() == Date.class){\n type = \" TIMESTAMP \";\n }\n else if(field.getType() == java.sql.Timestamp.class){\n type = \" TIMESTAMP \";\n }else if(field.getType() == Boolean.class || field.getType() == boolean.class){\n type = \" BOOLEAN \";\n }else{\n type = \" NONE \";\n }\n if(!sizeField.equals(\"\") ){\n type = type+\"(\"+sizeField.toString()+\") \";\n setSIZE(Integer.parseInt(sizeField.toString()));\n }\n // Log.d(\"afalOG\", \"TAMANHO\" + type+sizeField.toString());\n if(i == FIELD_DEFINITION.length-1){\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText);\n COLUMNS.append(objectName.toString());\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }else{\n if(objectName != null){\n CREATE_STATEMENT.append(objectName.toString()+\" \"+type+primaryKeyText+\", \");\n COLUMNS.append(objectName.toString()+\" , \");\n }else{\n CREATE_STATEMENT = null;\n throw new Exception(\"Property 'name' not declared in the field --> \"+field.getName());\n }\n }\n ARRAY_COLUMNS[i] = objectName.toString();\n if(! primaryKeyText.contains(\"AUTOINCREMENT\")){\n FieldModel fieldModel = new FieldModel();\n fieldModel.setColumnName(objectName.toString());\n fieldModel.setFieldName(field.getName());\n LIST_FIELD_MODEL.add(fieldModel);\n }\n }\n\n if(FOREIGN_KEY.toString() != \"\"){\n CREATE_STATEMENT.append(FOREIGN_KEY);\n }\n CREATE_STATEMENT.append(\");\");\n\n\n if(getPK() == \"\"){\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(BaseColumns._ID +\" INTEGER PRIMARY KEY AUTOINCREMENT, \" );\n sb.append(CREATE_STATEMENT);\n\n String[] columns = new String[ARRAY_COLUMNS.length+1];\n columns[0] = BaseColumns._ID;\n for(int i = 0; i < ARRAY_COLUMNS.length; i++){\n columns[i+1] = ARRAY_COLUMNS[i];\n }\n\n ARRAY_COLUMNS = columns;\n\n CREATE_STATEMENT = sb;\n }else{\n StringBuilder sb = new StringBuilder();\n sb.append(\"CREATE TABLE \" + TABLE_NAME + \" (\");\n sb.append(CREATE_STATEMENT);\n\n CREATE_STATEMENT = sb;\n }\n }",
"@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n\n db.execSQL(CategoryTable.getCreateTableSqlString());\n db.execSQL(ReminderTable.getCreateTableSqlString());\n }",
"private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }",
"public void createTable() throws DatabaseException\n\t{\n\t\tConnection connection = DatabaseManager.getSingleton().getConnection();\n\t\ttry\n\t\t{\n\t\t\tClosingPreparedStatement stmt = new ClosingPreparedStatement(connection,\n\t\t\t\t\t\"DROP TABLE IF EXISTS QuestStates\");\n\t\t\tstmt.executeUpdate();\n\t\t\tstmt.close();\n\n\t\t\tstmt = new ClosingPreparedStatement(connection,\n\t\t\t\t\t\"Create TABLE QuestStates (playerID INT NOT NULL, questID INT NOT NULL , questState INT NOT NULL, needingNotification BOOLEAN NOT NULL)\");\n\t\t\tstmt.executeUpdate();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tthrow new DatabaseException(\"Unable to create the Quest table\", e);\n\t\t}\n\t}",
"@Override\n\tprotected void setupV2Tables(Connection connection) throws SQLException {\n\n\t\tStatement create = connection.createStatement();\n\n\t\t// Prefix tables to mh_\n\t\ttry {\n\t\t\tResultSet rs = create.executeQuery(\"SELECT * from Daily LIMIT 0\");\n\t\t\trs.close();\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Players TO mh_Players\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Daily TO mh_Daily\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Weekly TO mh_Weekly\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Monthly TO mh_Monthly\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Yearly TO mh_Yearly\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE AllTime TO mh_AllTime\");\n\t\t\tcreate.executeUpdate(\"RENAME TABLE Achievements TO mh_Achievements\");\n\n\t\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS DailyInsert\");\n\t\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS DailyUpdate\");\n\n\t\t} catch (SQLException e) {\n\t\t}\n\n\t\t// Create new empty tables if they do not exist\n\t\tString lm = plugin.getConfigManager().learningMode ? \"1\" : \"0\";\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Players (UUID CHAR(40) PRIMARY KEY, NAME CHAR(20), PLAYER_ID INTEGER NOT NULL AUTO_INCREMENT, \"\n\t\t\t\t\t\t+ \"KEY PLAYER_ID (PLAYER_ID), LEARNING_MODE INTEGER NOT NULL DEFAULT \" + lm\n\t\t\t\t\t\t+ \", MUTE_MODE INTEGER NOT NULL DEFAULT 0)\");\n\t\tString dataString = \"\";\n\t\tfor (StatType type : StatType.values())\n\t\t\tdataString += \", \" + type.getDBColumn() + \" INTEGER NOT NULL DEFAULT 0\";\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Daily (ID CHAR(7) NOT NULL, PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(ID, PLAYER_ID))\");\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Weekly (ID CHAR(6) NOT NULL, PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(ID, PLAYER_ID))\");\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Monthly (ID CHAR(6) NOT NULL, PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(ID, PLAYER_ID))\");\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_Yearly (ID CHAR(4) NOT NULL, PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(ID, PLAYER_ID))\");\n\t\tcreate.executeUpdate(\n\t\t\t\t\"CREATE TABLE IF NOT EXISTS mh_AllTime (PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t\t\t+ dataString + \", PRIMARY KEY(PLAYER_ID))\");\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Achievements \"\n\t\t\t\t+ \"(PLAYER_ID INTEGER REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE, \"\n\t\t\t\t+ \"ACHIEVEMENT VARCHAR(64) NOT NULL, DATE DATETIME NOT NULL, \"\n\t\t\t\t+ \"PROGRESS INTEGER NOT NULL, PRIMARY KEY(PLAYER_ID, ACHIEVEMENT))\");\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Bounties (\" //\n\t\t\t\t+ \"BOUNTYOWNER_ID INTEGER NOT NULL, \"//\n\t\t\t\t+ \"MOBTYPE CHAR(6), \"//\n\t\t\t\t+ \"WANTEDPLAYER_ID INTEGER NOT NULL, \"//\n\t\t\t\t+ \"NPC_ID INTEGER, \"//\n\t\t\t\t+ \"MOB_ID CHAR(40), \"//\n\t\t\t\t+ \"WORLDGROUP CHAR(20) NOT NULL, \"//\n\t\t\t\t+ \"CREATED_DATE BIGINT NOT NULL, \"//\n\t\t\t\t+ \"END_DATE BIGINT NOT NULL, \"//\n\t\t\t\t+ \"PRIZE FLOAT NOT NULL, \"//\n\t\t\t\t+ \"MESSAGE CHAR(64), \"//\n\t\t\t\t+ \"STATUS INTEGER NOT NULL DEFAULT 0, \" + \"PRIMARY KEY (WORLDGROUP,BOUNTYOWNER_ID,WANTEDPLAYER_ID), \"\n\t\t\t\t+ \"FOREIGN KEY(BOUNTYOWNER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE, \"\n\t\t\t\t+ \"FOREIGN KEY(WANTEDPLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\" + \")\");\n\n\t\tcreate.close();\n\t\tconnection.commit();\n\n\t\t// Setup Database triggers\n\t\tsetupTriggerV2(connection);\n\n\t\tperformTableMigrateFromV1toV2(connection);\n\t\tconnection.close();\n\t}",
"ExpRunTable createRunTable(String name, UserSchema schema, ContainerFilter cf);",
"public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) {\n UserDao.createTable(db, ifNotExists);\n SbjectDao.createTable(db, ifNotExists);\n SourceDao.createTable(db, ifNotExists);\n }",
"private void createLoginTable() {\r\n jdbcExecutor.executeQuery(new Work() {\r\n @Override\r\n public void execute(Connection connection) throws SQLException {\r\n connection.createStatement().executeUpdate(\"CREATE TABLE login ( id numeric(19,0), user_id numeric(19,0), timestamp TIMESTAMP )\");\r\n }\r\n });\r\n }",
"public void createTable(String tableName) {\n db.execSQL(\"create table if not exists '\" + tableName.replaceAll(\"\\\\s\", \"_\") + \"' (\"\n + KEY_ROWID + \" integer primary key autoincrement, \"\n + KEY_QUESTION + \" string not null, \"\n + KEY_ANSWER + \" string not null);\");\n }",
"private static void createTablesInDatabase (Statement statement) throws SQLException {\n //Создание таблиц в БД\n statement.execute(\"CREATE TABLE role ( ID INT(11) NOT NULL AUTO_INCREMENT COMMENT 'Primary Key' , \" +\n \"Role VARCHAR(50) NOT NULL , PRIMARY KEY (ID)) ENGINE = InnoDB CHARACTER set UTF8 COLLATE UTF8_general_ci;\");\n statement.execute(\"CREATE TABLE users ( ID INT(11) NOT NULL AUTO_INCREMENT , First_Name VARCHAR(20) NOT NULL, \" +\n \"Middle_Name VARCHAR(20) NOT NULL , Last_Name VARCHAR(20) NOT NULL , Passport VARCHAR(100) NOT NULL, \" +\n \"Address VARCHAR(100) NOT NULL , Phone VARCHAR(13) NOT NULL, Login VARCHAR(50) NOT NULL , \" +\n \"Password VARCHAR(50) NOT NULL , Email VARCHAR(100) NOT NULL , FK_Role INT(11) NOT NULL , PRIMARY KEY (ID), \" +\n \"Foreign Key (FK_Role) REFERENCES role(ID)) ENGINE = InnoDB CHARACTER set UTF8 COLLATE UTF8_general_ci;\");\n statement.execute(\"CREATE TABLE account (ID INT(11) NOT NULL AUTO_INCREMENT, Balans DECIMAL(50) NOT NULL, \" +\n \"State ENUM('Working','Lock') CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, \" +\n \"FK_Users INT(11) NOT NULL, PRIMARY KEY (ID), Foreign Key (FK_Users) REFERENCES users(ID)) \" +\n \"ENGINE = InnoDB CHARACTER set UTF8 COLLATE UTF8_general_ci;\");\n statement.execute(\"CREATE TABLE payment ( ID INT(11) NOT NULL AUTO_INCREMENT, FK_Account_Source INT(11) NOT NULL, \" +\n \"FK_Account_Destination INT(11) NOT NULL , Description VARCHAR(200) NOT NULL , Amount DECIMAL(50) NOT NULL , \" +\n \"Paydate Date NOT NULL , PRIMARY KEY (ID), Foreign Key (FK_Account_Source) REFERENCES account(ID), \" +\n \"Foreign Key (FK_Account_Destination) REFERENCES account(ID)) ENGINE = InnoDB \" +\n \"CHARACTER set UTF8 COLLATE UTF8_general_ci;\");\n }",
"@Override\n\tprotected void setupV3Tables(Connection connection) throws SQLException {\n\t\tStatement create = connection.createStatement();\n\n\t\t// Create new empty tables if they do not exist\n\t\tString lm = plugin.getConfigManager().learningMode ? \"1\" : \"0\";\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Players \" + \"(UUID CHAR(40) ,\" + \" NAME VARCHAR(20),\"\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL AUTO_INCREMENT,\" + \" LEARNING_MODE INTEGER NOT NULL DEFAULT \" + lm + \",\"\n\t\t\t\t+ \" MUTE_MODE INTEGER NOT NULL DEFAULT 0,\" + \" PRIMARY KEY (PLAYER_ID))\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Mobs \" + \"(MOB_ID INTEGER NOT NULL AUTO_INCREMENT,\"\n\t\t\t\t+ \" PLUGIN_ID INTEGER NOT NULL,\" + \" MOBTYPE VARCHAR(30),\" + \" PRIMARY KEY(MOB_ID))\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Daily \" + \"(ID CHAR(7) NOT NULL,\"\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\" + \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_Daily_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Daily_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Daily_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Weekly \" + \"(ID CHAR(6) NOT NULL,\"\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\" + \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_Weekly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Weekly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Weekly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Monthly \" + \"(ID CHAR(6) NOT NULL,\"\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\" + \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_Monthly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Monthly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Monthly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Yearly \" + \"(ID CHAR(4) NOT NULL,\"\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\" + \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_Yearly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Yearly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Yearly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_AllTime \" + \"(MOB_ID INTEGER NOT NULL,\"\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\" + \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\" + \" TOTAL_ASSIST INTEGER DEFAULT 0,\"\n\t\t\t\t+ \" PRIMARY KEY(MOB_ID, PLAYER_ID),\" + \" KEY `MOB_ID` (`MOB_ID`),\"\n\t\t\t\t+ \" KEY `mh_AllTime_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_AllTime_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_AllTime_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Achievements \" + \"(PLAYER_ID INTEGER NOT NULL,\"\n\t\t\t\t+ \" ACHIEVEMENT VARCHAR(64) NOT NULL,\" + \" DATE DATETIME NOT NULL,\" + \" PROGRESS INTEGER NOT NULL,\"\n\t\t\t\t+ \" PRIMARY KEY(PLAYER_ID, ACHIEVEMENT),\"\n\t\t\t\t+ \" CONSTRAINT mh_Achievements_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Bounties (\" + \"BOUNTYOWNER_ID INTEGER NOT NULL, \"\n\t\t\t\t+ \"MOBTYPE CHAR(6), \" + \"WANTEDPLAYER_ID INTEGER NOT NULL, \" + \"NPC_ID INTEGER, \"\n\t\t\t\t+ \"MOB_ID VARCHAR(40), \" + \"WORLDGROUP VARCHAR(20) NOT NULL, \" + \"CREATED_DATE BIGINT NOT NULL, \"\n\t\t\t\t+ \"END_DATE BIGINT NOT NULL, \" + \"PRIZE FLOAT NOT NULL, \" + \"MESSAGE VARCHAR(64), \"\n\t\t\t\t+ \"STATUS INTEGER NOT NULL DEFAULT 0, \" + \"PRIMARY KEY(WORLDGROUP, WANTEDPLAYER_ID, BOUNTYOWNER_ID), \"\n\t\t\t\t+ \"KEY `mh_Bounties_Player_Id_1` (`BOUNTYOWNER_ID`),\"\n\t\t\t\t+ \"KEY `mh_Bounties_Player_Id_2` (`WANTEDPLAYER_ID`),\"\n\t\t\t\t+ \"CONSTRAINT mh_Bounties_Player_Id_1 FOREIGN KEY(BOUNTYOWNER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE, \"\n\t\t\t\t+ \"CONSTRAINT mh_Bounties_Player_Id_2 FOREIGN KEY(WANTEDPLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t+ \")\");\n\n\t\t// Setup Database triggers\n\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS `mh_DailyInsert`\");\n\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS `mh_DailyUpdate`\");\n\t\tcreate.close();\n\t\tconnection.commit();\n\n\t\tinsertMissingVanillaMobs();\n\n\t\tplugin.getMessages().debug(\"MobHunting V3 Database created/updated.\");\n\t}",
"public static void createTable(SQLiteDatabase db, Class<?> clz) {\n// StringBuilder builder=new StringBuilder();\n// Field[] fields=clz.getDeclaredFields();\n// for (int i=0;i<fields.length;i++){\n// Field field=fields[i];\n// builder.append(getOneColumnStmt(field));\n// if (i!=fields.length-1)\n// builder.append(\",\");\n// }\n// String sql=\"create table \"+getTableName(clz)+\"(\"+builder+\")\";\n// db.execSQL(sql);\n ArrayList<String> stmts=getCreateTableStmt(clz);\n for (String stmt:stmts) {\n db.execSQL(stmt);\n }\n }",
"private void createTableOrdersWaiting() throws SQLException\r\n {\r\n String sqlQuery = \r\n \"CREATE TABLE orders \" +\r\n \"(id auto_increment INT NOT NULL PRIMARY KEY, \" +\r\n \"custname VARCHAR(25) NOT NULL, \" +\r\n \"tablenumber INT NOT NULL, \" +\r\n \"foodname VARCHAR(100) NOT NULL, \" + \r\n \"beveragename VARCHAR(100) NOT NULL, \" + \r\n \"served BOOLEAN NOT NULL, \" + \r\n \"billed BOOLEAN NOT NULL, \" + \r\n \"time DATETIME DEFAULT CURRENT_TIMESTAMP)\";\r\n myStmt.executeUpdate(sqlQuery);\r\n }",
"private void initTables() {\n insert(\"CREATE TABLE IF NOT EXISTS `player_info` (`player` VARCHAR(64) PRIMARY KEY NOT NULL, `json` LONGTEXT)\");\n }",
"boolean createTable();",
"protected abstract void initialiseTable();",
"protected boolean createTable() {\n\t\t// --- 1. Dichiarazione della variabile per il risultato ---\n\t\tboolean result = false;\n\t\t// --- 2. Controlli preliminari sui dati in ingresso ---\n\t\t// n.d.\n\t\t// --- 3. Apertura della connessione ---\n\t\tConnection conn = getCurrentJDBCFactory().getConnection();\n\t\t// --- 4. Tentativo di accesso al db e impostazione del risultato ---\n\t\ttry {\n\t\t\t// --- a. Crea (se senza parametri) o prepara (se con parametri) lo statement\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t// --- b. Pulisci e imposta i parametri (se ve ne sono)\n\t\t\t// n.d.\n\t\t\t// --- c. Esegui l'azione sul database ed estrai il risultato (se atteso)\n\t\t\tstmt.execute(getCreate());\n\t\t\t// --- d. Cicla sul risultato (se presente) pe accedere ai valori di ogni sua tupla\n\t\t\t// n.d. Qui devo solo dire al chiamante che è andato tutto liscio\n\t\t\tresult = true;\n\t\t\t// --- e. Rilascia la struttura dati del risultato\n\t\t\t// n.d.\n\t\t\t// --- f. Rilascia la struttura dati dello statement\n\t\t\tstmt.close();\n\t\t}\n\t\t// --- 5. Gestione di eventuali eccezioni ---\n\t\tcatch (Exception e) {\n\t\t\tgetCurrentJDBCFactory().getLogger().debug(\"failed to create publisher table\",e);\n\t\t}\n\t\t// --- 6. Rilascio, SEMPRE E COMUNQUE, la connessione prima di restituire il controllo al chiamante\n\t\tfinally {\n\t\t\tgetCurrentJDBCFactory().releaseConnection(conn);\n\t\t}\n\t\t// --- 7. Restituzione del risultato (eventualmente di fallimento)\n\t\treturn result;\n\t}",
"public boolean createTable() {\n boolean success = false;\n if (conn != null) {\n Statement stmt = null;\n\n try {\n stmt = conn.createStatement();\n stmt.execute(\"CREATE TABLE sample_table (id INT IDENTITY, first_name VARCHAR(30), last_name VARCHAR(30), age INT)\");\n log.info(\"Creating sample_table\");\n success = true;\n } catch (SQLException e) {\n log.error(\"Unable to create the database table\", e);\n } finally {\n if (stmt != null) {\n try {\n stmt.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n return success;\n }",
"private void createDBProcedure() {\r\n try {\r\n Class.forName(myDriver);\r\n Connection conn = DriverManager.getConnection(myUrl, myUser, myPass);\r\n for (File sentiment : sentimentsFoldersList) {\r\n try {\r\n String queryCreate\r\n = \"CREATE TABLE \" + sentiment.getName().toUpperCase()\r\n + \" (WORD VARCHAR(50), COUNT_RES INT, PERC_RES FLOAT, COUNT_TWEET INT, PRIMARY KEY(WORD) )\";\r\n Statement st_create = conn.createStatement();\r\n st_create.executeUpdate(queryCreate);\r\n System.out.println(\"TABLE \" + sentiment.getName().toLowerCase() + \" CREATED\");\r\n st_create.close();\r\n } catch (SQLException ex) {\r\n if (ex.getErrorCode() == 955) {\r\n System.out.println(\"TABLE \" + sentiment.getName().toLowerCase() + \" WAS ALREADY PRESENT...\");\r\n }\r\n }\r\n }\r\n conn.close();\r\n } catch (ClassNotFoundException | SQLException ex) {\r\n System.out.println(ex.toString());\r\n }\r\n }",
"public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }",
"private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"@Override\n\tprotected void setupV4Tables(Connection connection) throws SQLException {\n\t\tStatement create = connection.createStatement();\n\n\t\t// Create new empty tables if they do not exist\n\t\tString lm = plugin.getConfigManager().learningMode ? \"1\" : \"0\";\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Players \"//\n\t\t\t\t+ \"(UUID CHAR(40) ,\"//\n\t\t\t\t+ \" NAME VARCHAR(20),\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL AUTO_INCREMENT,\"//\n\t\t\t\t+ \" LEARNING_MODE INTEGER NOT NULL DEFAULT \" + lm + \",\"//\n\t\t\t\t+ \" MUTE_MODE INTEGER NOT NULL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY (PLAYER_ID))\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Mobs \"//\n\t\t\t\t+ \"(MOB_ID INTEGER NOT NULL AUTO_INCREMENT,\"//\n\t\t\t\t+ \" PLUGIN_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" MOBTYPE VARCHAR(30),\"//\n\t\t\t\t+ \" PRIMARY KEY(MOB_ID))\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Daily \"//\n\t\t\t\t+ \"(ID CHAR(7) NOT NULL,\"//\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\" + \" KEY `mh_Daily_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Daily_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Daily_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Weekly \"//\n\t\t\t\t+ \"(ID CHAR(6) NOT NULL,\"//\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\"//\n\t\t\t\t+ \" KEY `mh_Weekly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Weekly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Weekly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Monthly \"//\n\t\t\t\t+ \"(ID CHAR(6) NOT NULL,\"//\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\"//\n\t\t\t\t+ \" KEY `mh_Monthly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Monthly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Monthly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Yearly \"//\n\t\t\t\t+ \"(ID CHAR(4) NOT NULL,\"//\n\t\t\t\t+ \" MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(ID, MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\"//\n\t\t\t\t+ \" KEY `mh_Yearly_Player_Id` (`PLAYER_ID`),\"\n\t\t\t\t+ \" CONSTRAINT mh_Yearly_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_Yearly_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_AllTime \"//\n\t\t\t\t+ \"(MOB_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT_COUNT INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_KILL INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_ASSIST INTEGER DEFAULT 0,\"//\n\t\t\t\t+ \" TOTAL_CASH REAL DEFAULT 0,\"//\n\t\t\t\t+ \" PRIMARY KEY(MOB_ID, PLAYER_ID),\"//\n\t\t\t\t+ \" KEY `MOB_ID` (`MOB_ID`),\"//\n\t\t\t\t+ \" KEY `mh_AllTime_Player_Id` (`PLAYER_ID`),\"//\n\t\t\t\t+ \" CONSTRAINT mh_AllTime_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE,\"\n\t\t\t\t+ \" CONSTRAINT mh_AllTime_Mob_Id FOREIGN KEY(MOB_ID) REFERENCES mh_Mobs(MOB_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Achievements \"//\n\t\t\t\t+ \"(PLAYER_ID INTEGER NOT NULL,\"//\n\t\t\t\t+ \" ACHIEVEMENT VARCHAR(64) NOT NULL,\"//\n\t\t\t\t+ \" DATE DATETIME NOT NULL,\"//\n\t\t\t\t+ \" PROGRESS INTEGER NOT NULL,\"//\n\t\t\t\t+ \" PRIMARY KEY(PLAYER_ID, ACHIEVEMENT),\"\n\t\t\t\t+ \" CONSTRAINT mh_Achievements_Player_Id FOREIGN KEY(PLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE)\");\n\n\t\tcreate.executeUpdate(\"CREATE TABLE IF NOT EXISTS mh_Bounties (\"//\n\t\t\t\t+ \"BOUNTYOWNER_ID INTEGER NOT NULL, \"//\n\t\t\t\t+ \"MOBTYPE CHAR(6), \"//\n\t\t\t\t+ \"WANTEDPLAYER_ID INTEGER NOT NULL, \"//\n\t\t\t\t+ \"NPC_ID INTEGER, \"//\n\t\t\t\t+ \"MOB_ID VARCHAR(40), \"//\n\t\t\t\t+ \"WORLDGROUP VARCHAR(20) NOT NULL, \"//\n\t\t\t\t+ \"CREATED_DATE BIGINT NOT NULL, \" + \"END_DATE BIGINT NOT NULL, \"//\n\t\t\t\t+ \"PRIZE FLOAT NOT NULL, \"//\n\t\t\t\t+ \"MESSAGE VARCHAR(64), \"//\n\t\t\t\t+ \"STATUS INTEGER NOT NULL DEFAULT 0, \"//\n\t\t\t\t+ \"PRIMARY KEY(WORLDGROUP, WANTEDPLAYER_ID, BOUNTYOWNER_ID), \"\n\t\t\t\t+ \"KEY `mh_Bounties_Player_Id_1` (`BOUNTYOWNER_ID`),\"\n\t\t\t\t+ \"KEY `mh_Bounties_Player_Id_2` (`WANTEDPLAYER_ID`),\"\n\t\t\t\t+ \"CONSTRAINT mh_Bounties_Player_Id_1 FOREIGN KEY(BOUNTYOWNER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE, \"\n\t\t\t\t+ \"CONSTRAINT mh_Bounties_Player_Id_2 FOREIGN KEY(WANTEDPLAYER_ID) REFERENCES mh_Players(PLAYER_ID) ON DELETE CASCADE\"\n\t\t\t\t+ \")\");\n\n\t\t// Setup Database triggers\n\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS `mh_DailyInsert`\");\n\t\tcreate.executeUpdate(\"DROP TRIGGER IF EXISTS `mh_DailyUpdate`\");\n\t\tcreate.close();\n\t\tconnection.commit();\n\n\t}",
"private void createSchemaInfo() {\n\t\tfor (String tableName : tableSchemas.keySet()) {\n\t\t\tERWinSchemaInfo schemaInfo = new ERWinSchemaInfo();\n\t\t\tschemaInfo.setType(\"user\");\n\t\t\tschemaInfo.setUniqueName(tableName);\n\t\t\tschemaInfos.put(tableName, schemaInfo);\n\t\t}\n\n\t\tinitCache();\n\t\tparseKeyGroupGroups();\n\n\t\tparseEntityProps();\n\t\tparseRelationGroups();\n\t\tparseAttributes();\n\n\t\tcreateSchemaDDL();\n\t}",
"void go() {\n\t\tthis.conn = super.getConnection();\n\t\tcreateCustomersTable();\n\t\tcreateBankersTable();\n\t\tcreateCheckingAccountsTable();\n\t\tcreateSavingsAccountsTable();\n\t\tcreateCDAccountsTable();\n\t\tcreateTransactionsTable();\n\t\tcreateStocksTable();\n\t\tif(createAdminBanker) addAdminBanker();\n\t\tSystem.out.println(\"Database Created\");\n\n\t}",
"public abstract void createTables() throws DataServiceException;"
]
| [
"0.7044383",
"0.7040456",
"0.6972282",
"0.6933612",
"0.6876912",
"0.6861817",
"0.68352115",
"0.68315583",
"0.6804327",
"0.6791343",
"0.6727136",
"0.6702088",
"0.6698037",
"0.6679578",
"0.6656548",
"0.66261244",
"0.65859836",
"0.6499086",
"0.6465229",
"0.64602166",
"0.6459803",
"0.64530516",
"0.64516246",
"0.6421953",
"0.6418124",
"0.63987243",
"0.6374619",
"0.63542426",
"0.63398755",
"0.63347465",
"0.6320721",
"0.63074183",
"0.62999517",
"0.62846035",
"0.6277317",
"0.62755823",
"0.6273224",
"0.62093115",
"0.6185636",
"0.6179977",
"0.6177394",
"0.6176789",
"0.6164402",
"0.6164269",
"0.6151991",
"0.6147151",
"0.6145974",
"0.6125542",
"0.6085193",
"0.60785174",
"0.6071625",
"0.6070151",
"0.60654086",
"0.60624665",
"0.60378814",
"0.60245585",
"0.600659",
"0.60042953",
"0.6003684",
"0.59921485",
"0.5990691",
"0.59885967",
"0.5979194",
"0.59694475",
"0.5964776",
"0.5961334",
"0.5961114",
"0.59587914",
"0.5950467",
"0.59492946",
"0.59491533",
"0.5946644",
"0.59464425",
"0.5945474",
"0.5945446",
"0.5945138",
"0.5942963",
"0.5929727",
"0.5928784",
"0.59279144",
"0.59251505",
"0.5919775",
"0.59105366",
"0.5907513",
"0.58974904",
"0.5888571",
"0.58825105",
"0.5873174",
"0.5872139",
"0.5871077",
"0.5869626",
"0.58515733",
"0.5844017",
"0.58431935",
"0.5838414",
"0.5834907",
"0.58320844",
"0.5828997",
"0.5827582",
"0.5826904"
]
| 0.6510774 | 17 |
Execute UPDATE queries. Actualize MetaData before the execution. | private void updates() {
DBPeer.fetchTableRows();
DBPeer.fetchTableIndexes();
for (Update update: updates) {
update.init();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void executeUpdate();",
"void executeUpdate();",
"private void executeUpdate()\n\t\t\tthrows TranslatorException {\n\t\tUpdate ucommand = (Update) command;\t\n\t\t\n\t\tTable t = metadata.getTable(ucommand.getTable().getMetadataObject().getFullName());\n//\t\tList<ForeignKey> fks = t.getForeignKeys();\n\t\t\n\t\t// if the table has a foreign key, its must be a child (contained) object in the root\n\t\tif (t.getForeignKeys() != null && t.getForeignKeys().size() > 0) {\n\t\t\t updateChildObject(t);\n\t\t\t return;\n\t\t}\n\n\t}",
"protected void update() throws SQLException {\n\t\tProperties whereClause = new Properties();\n\t\twhereClause.setProperty(\"1\", \"1\");\n\t\tupdatePersistentState(getSchema(), persistentState, whereClause);\n\t}",
"public abstract int execUpdate(String query) ;",
"@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}",
"public void update(T instance) throws Exception {\n String primaryKeyValue=ReflectionUtils.getFieldValue(instance,instance.getPrimaryKeyName());\n if(null==primaryKeyValue){\n throw new Exception(\"This is no primary key value\");\n }\n\n initDBTableMeta(instance);\n String setClause=buildSQLKeyValueMap(instance,\",\");\n String whereClause =instance.getPrimaryKeyName()+\"=\"+primaryKeyValue;\n String sql = UPDATE+tableName+SET+setClause+WHERE+whereClause;\n logger.info(\"usedSql={}\", sql);\n\n }",
"public void prepareUpdateAll() {\n setCallFromStatement();// Will build an SQLUpdateAllStatement\n clearStatement();// The statement is no longer require so can be released.\n super.prepareUpdateAll();\n }",
"private int executeUpdateInternal(List<Object> values) {\r\n\t\tif (logger.isDebugEnabled()) {\r\n\t\t\tlogger.debug(\"The following parameters are used for update \" + getUpdateString() + \" with: \" + values);\r\n\t\t}\r\n\t\tint updateCount = jdbcTemplate.update(updateString, values.toArray(), columnTypes);\r\n\t\treturn updateCount;\r\n\t}",
"public void executeUpdate(String query) {\n \ttry {\n\t\t\tst.executeUpdate(query);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"@Override\n public synchronized int executeUpdate(String sql) throws SQLException {\n\n statementString = sql;\n return connection.executetinyUpdate(this);\n\n }",
"void executeUpdate(String noParamQuery, Connection conn);",
"@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}",
"private void updateAll() {\n updateAction();\n updateQueryViews();\n }",
"@TargetMetric\n @Override\n public RespResult<SqlExecRespDto> executeUpdate(String username, SqlExecReqDto update) {\n return null;\n }",
"protected synchronized void pureSQLUpdate(String query) {\n if(this.connect()) {\n try {\n this.statement = this.connection.createStatement();\n this.statement.executeUpdate(query);\n } catch(SQLException ex) {\n Logger.getLogger(MySQLMariaDBConnector.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n this.close();\n }\n }\n }",
"@Override\n\tpublic void executeUpdateDinamicQuery(String s) throws Exception {\n\t\t\n\t}",
"public void prepareUpdateObject() {\n // Require modify row to prepare.\n if (getModifyRow() == null) {\n return;\n }\n\n if (hasMultipleStatements()) {\n for (Enumeration statementEnum = getSQLStatements().elements();\n statementEnum.hasMoreElements();) {\n ((SQLModifyStatement)statementEnum.nextElement()).setModifyRow(getModifyRow());\n }\n } else if (getSQLStatement() != null) {\n ((SQLModifyStatement)getSQLStatement()).setModifyRow(getModifyRow());\n }\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareUpdateObject();\n }",
"public void update() {\n\t\tPreparedStatement stmt;\n\t\ttry {\n\t\t\tstmt = cn.prepareStatement(\n\t\t\t\t\t\"UPDATE Metal SET metalDissolvedBy = ?, molesOfAcidToDissolve = ? WHERE metalID = ?\");\n\t\t\tstmt.setInt(1, dissolvedBy);\n\t\t\tstmt.setDouble(2, molesOfAcidToDissolve);\n\t\t\tstmt.setInt(3, ID);\n\t\t\tstmt.execute();\n\t\t} catch (Exception e) {\n\t\t\tDatabaseException.detectError(e);\n\t\t}\n\t}",
"@Override\n\tpublic boolean batchUpdate(String[] SQLs) throws RemoteException {\n\t\treturn DAManager.batchUpdate(SQLs);\n\t}",
"CustomUpdateQuery update(String table);",
"public boolean update() {\n executeCallbacks(CallbackType.BEFORE_UPDATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnUpdate();\n if (errors.size() > 0) return false;\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n Adapter adapter = getAdapter();\n StringBuilder sql = new StringBuilder();\n sql.append(\"UPDATE \").append(getTableName());\n sql.append(\" SET \").append(quotedCommaPairList(attributesWithQuotes(includePrimaryKey)));\n sql.append(\" WHERE \").append(getPrimaryKey()).append(\" = \").append(adapter.quote(getId()));\n\n boolean result = adapter.update(sql.toString(), getClass().getName() + \" Update\") == 1;\n if (result) {\n reloadAssociations();\n reloadAggregations();\n }\n\n executeCallbacks(CallbackType.AFTER_UPDATE);\n return result;\n }",
"public void update(String hql) {\n\r\n\t}",
"public void executeUpdate (String sql) throws SQLException {\n // creates a statement object\n Statement stmt = this._connection.createStatement ();\n\n // issues the update instruction\n stmt.executeUpdate (sql);\n\n // close the instruction\n stmt.close ();\n }",
"protected Boolean updateSystemMetadata(SystemMetadata sysMeta, Map<String, String> tableMap)\n throws DataAccessException {\n\n Boolean updated = new Boolean(false);\n\n // Is the pid valid? (required)\n final Identifier pid = sysMeta.getIdentifier();\n if (pid.getValue() == null) {\n throw new DataAccessException(new InvalidSystemMetadata(\"0000\",\n \"Identifier cannot be null\"));\n\n }\n\n // Is the size set? (required)\n final BigInteger size = sysMeta.getSize();\n if (size == null) {\n throw new DataAccessException(new InvalidSystemMetadata(\"0000\", \"Size cannot be null\"));\n\n }\n\n // Is the checksum set? (required)\n final Checksum checksum = sysMeta.getChecksum();\n if (checksum == null) {\n throw new DataAccessException(new InvalidSystemMetadata(\"0000\",\n \"Checksum cannot be null\"));\n\n }\n\n final SystemMetadata finalSysMeta = sysMeta;\n final String sysMetaTable = tableMap.get(SYSMETA_TABLE);\n final String smReplPolicyTable = tableMap.get(SM_POLICY_TABLE);\n final String smReplStatusTable = tableMap.get(SM_STATUS_TABLE);\n final String xmlAccessTable = tableMap.get(ACCESS_TABLE);\n\n updated = txTemplate.execute(new TransactionCallback<Boolean>() {\n\n @Override\n public Boolean doInTransaction(TransactionStatus status) {\n\n boolean success = false;\n // update the system metadata table\n String sqlStatement = getSysMetaUpdateStatement(sysMetaTable);\n Map<String, Object> sysMetaMap = extractSystemMetadataAttrs(finalSysMeta,\n sysMetaTable);\n Object[] values = getSysMetaAttrValues(sysMetaMap);\n int[] types = getSysMetaAttrTypes();\n int sysMetaRows = jdbcTemplate.update(sqlStatement, values, types);\n if (sysMetaRows == 1) {\n success = true;\n }\n\n // Update the smreplicationpolicy table\n ReplicationPolicy replPolicy = finalSysMeta.getReplicationPolicy();\n int totalReplPolicies = 0;\n int updatedReplPolicies = 0;\n\n if (replPolicy != null) {\n List<NodeReference> preferredNodes = replPolicy.getPreferredMemberNodeList();\n List<NodeReference> blockedNodes = replPolicy.getBlockedMemberNodeList();\n\n // first remove listed policy entries\n if (preferredNodes != null || blockedNodes != null) {\n jdbcTemplate.update(\"DELETE FROM \" + smReplPolicyTable + \" WHERE guid = ?\",\n new Object[] { pid.getValue() });\n }\n\n // count the number of total policies needed to be updated\n if (preferredNodes != null) {\n totalReplPolicies = totalReplPolicies + preferredNodes.size();\n\n // then update the preferred entries\n for (NodeReference preferredNode : preferredNodes) {\n String preferredNodeStr = preferredNode.getValue();\n int preferredRows = jdbcTemplate.update(\"INSERT INTO \"\n + smReplPolicyTable\n + \" (guid, member_node, policy) VALUES (?, ?, ?);\",\n new Object[] { pid.getValue(), preferredNodeStr, \"preferred\" },\n new int[] { java.sql.Types.LONGVARCHAR, java.sql.Types.VARCHAR,\n java.sql.Types.VARCHAR });\n updatedReplPolicies += preferredRows;\n }\n\n }\n\n if (blockedNodes != null) {\n totalReplPolicies = totalReplPolicies + blockedNodes.size();\n\n // then update the blocked entries\n for (NodeReference blockedNode : blockedNodes) {\n int blockedRows = jdbcTemplate.update(\"INSERT INTO \"\n + smReplPolicyTable\n + \" (guid, member_node, policy) VALUES (?, ?, ?);\",\n new Object[] { pid.getValue(), blockedNode.getValue(),\n \"blocked\" }, new int[] { java.sql.Types.LONGVARCHAR,\n java.sql.Types.VARCHAR, java.sql.Types.VARCHAR });\n updatedReplPolicies += blockedRows;\n\n }\n\n }\n\n // did we update what we were supposed to?\n if (updatedReplPolicies == totalReplPolicies) {\n success = true;\n\n } else {\n success = false;\n log.error(\"For identifier \" + pid.getValue() + \", only \"\n + updatedReplPolicies + \"replication policies of \"\n + totalReplPolicies + \"were inserted.\");\n\n }\n }\n\n // Update the smreplicationstatus table\n List<Replica> replicas = finalSysMeta.getReplicaList();\n int totalReplicas = 0;\n int updatedReplicas = 0;\n\n if (replicas != null) {\n totalReplicas = totalReplicas + replicas.size();\n\n // first remove listed replicas\n jdbcTemplate.update(\"DELETE FROM \" + smReplStatusTable + \" WHERE guid = ?\",\n new Object[] { pid.getValue() });\n\n for (Replica replica : replicas) {\n int replicaRows = jdbcTemplate\n .update(\"INSERT INTO \"\n + smReplStatusTable\n + \" (guid, member_node, status, date_verified) VALUES (?, ?, ?, ?)\",\n new Object[] {\n pid.getValue(),\n (replica.getReplicaMemberNode().getValue()),\n replica.getReplicationStatus().toString(),\n new Timestamp(replica.getReplicaVerified()\n .getTime()) }, new int[] {\n java.sql.Types.LONGVARCHAR, java.sql.Types.VARCHAR,\n java.sql.Types.VARCHAR, java.sql.Types.TIMESTAMP });\n updatedReplicas += replicaRows;\n }\n\n }\n\n if (updatedReplicas == totalReplicas) {\n success = true;\n\n } else {\n success = false;\n log.error(\"For identifier \" + pid.getValue() + \", only \" + updatedReplicas\n + \"replicas of \" + totalReplicas + \"were inserted.\");\n\n }\n\n // Update the xml_access table\n AccessPolicy accessPolicy = finalSysMeta.getAccessPolicy();\n int updatedAccessRows = 0;\n int numberOfSubjects = 0;\n List<AccessRule> accessRules = new ArrayList<AccessRule>();\n\n if (accessPolicy != null) {\n accessRules = accessPolicy.getAllowList();\n\n // first delete existing rules for this pid\n jdbcTemplate.update(\"DELETE FROM \" + xmlAccessTable + \" WHERE guid = ?\",\n new Object[] { pid.getValue() });\n\n // add the new rules back in\n for (AccessRule accessRule : accessRules) {\n List<Subject> subjects = accessRule.getSubjectList();\n numberOfSubjects += subjects.size();\n List<Permission> permissions = accessRule.getPermissionList();\n // convert permissions from text to int\n Integer perm = null;\n for (Permission permission : permissions) {\n if (perm != null) {\n perm |= convertPermission(permission);\n\n } else {\n perm = convertPermission(permission);\n }\n\n }\n\n for (Subject subject : subjects) {\n int accessRows = jdbcTemplate.update(\"INSERT INTO \" + xmlAccessTable\n + \" (guid, principal_name, permission, perm_type, perm_order) \"\n + \" VALUES (?, ?, ?, ?, ?)\", new Object[] { pid.getValue(),\n subject.getValue(), perm, \"allow\", \"allowFirst\" }, new int[] {\n java.sql.Types.LONGVARCHAR, java.sql.Types.VARCHAR,\n java.sql.Types.INTEGER, java.sql.Types.VARCHAR,\n java.sql.Types.VARCHAR });\n updatedAccessRows += accessRows;\n }\n }\n\n // Determine success for access policy updates\n if (updatedAccessRows == numberOfSubjects) {\n success = true;\n\n } else {\n success = false;\n log.error(\"For identifier \" + pid.getValue() + \", only \"\n + updatedAccessRows + \"replicas of \" + numberOfSubjects\n + \"were inserted.\");\n\n }\n\n }\n\n // rollback if we don't succeed on all calls\n // status.setRollbackOnly(); // seems to only trigger rollback, no commit\n return new Boolean(success);\n }\n\n });\n\n return updated;\n\n }",
"@Override\n\tpublic void executeUpdateDinamicSQL(String s) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void update(String query) {\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tst.executeUpdate(query);\n\t\t\t\n\t\t\tst.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t}",
"public void executeUpdate(String sql) {\n\t\ttry {\n\t\t\tstm = connection.createStatement();\n\t\t\tstm.executeUpdate(sql);\n\t\t\tSystem.out.println(\"Database update complete.\");\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"int executeUpdate() throws SQLException;",
"@Override\n public int executeUpdate(String sql, String columnNames[]) \n throws SQLException {\n return 0;\n }",
"public void doUpdate(T objectToUpdate) throws SQLException;",
"public void executeUpdateQuery(String hql, Map params) throws RepositoryException {\n\t\tDatanucleusCRUDUtils.executeUpdateQuery(hql, params); \n\t\tparams.clear();\n\t}",
"@Override\n public int executeUpdate(String sql, int columnIndexes[]) \n throws SQLException {\n return 0;\n }",
"@Override\n public RespResult<List<SqlExecRespDto>> batchExecuteUpdate(String username, List<SqlExecReqDto> updates) {\n return null;\n }",
"public void executeUpdate(T databaseConnection, String query, Connection connection) throws SQLException {\n query = this.removeIllegalCharactersForSingleQuery(databaseConnection, query);\n query = refactorLimitAndOffset(query);\n // query = prepareQuery(query);\n log.info(databaseConnection.getConnectionURL() + \":\" + query);\n\n Statement statement = connection.createStatement();\n statement.executeUpdate(query);\n statement.close();\n }",
"private <T> void executeUpdate(T value, Object key, String query) {\r\n\t\tlogger.entering(CLASSNAME, \"executeUpdate\", new Object[] {key, value, query});\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\tByteArrayOutputStream baos = null;\r\n\t\tObjectOutputStream oout = null;\r\n\t\tbyte[] b;\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(query);\r\n\t\t\tbaos = new ByteArrayOutputStream();\r\n\t\t\toout = new ObjectOutputStream(baos);\r\n\t\t\toout.writeObject(value);\r\n\r\n\t\t\tb = baos.toByteArray();\r\n\r\n\t\t\tstatement.setBytes(1, b);\r\n\t\t\tstatement.setObject(2, key);\r\n\t\t\tstatement.executeUpdate();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} finally {\r\n\t\t\tif (baos != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbaos.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (oout != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\toout.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tthrow new PersistenceException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcleanupConnection(conn, null, statement);\r\n\t\t}\r\n\t\tlogger.exiting(CLASSNAME, \"executeUpdate\");\r\n\t}",
"public void executeUpdateQuery(String hql) throws RepositoryException {\n\t\tDatanucleusCRUDUtils.executeUpdateQuery(hql);\n\t}",
"public void dbUpdate(String query) {\n try {\n tryDbUpdate(query);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"private void tryDbUpdate(String query) throws SQLException {\n Statement s = null;\n try {\n s = rawDataSource.getConnection().createStatement();\n s.executeUpdate(query);\n } finally {\n s.close();\n }\n }",
"public synchronized void update(String expression) throws SQLException {\n\n Statement st = null;\n\n st = conn.createStatement(); // statements\n\n int i = st.executeUpdate(expression); // run the query\n\n if (i == -1) {\n System.out.println(\"db error : \" + expression);\n }\n\n st.close();\n }",
"public int executeUpdate(String sql)\r\n throws SQLException {\n return 0;\r\n }",
"public void update( Query q, UpdateOperations ops) {\n \tds.update(q, ops);\n }",
"@Override\n\tpublic void update() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 수정을 하다.\");\n\t}",
"public void executeUpdate(String request) {\n try {\r\n st.executeUpdate(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}",
"protected void updateRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Actualiza objeto\r\n\t\tobjectDao.update(object);\r\n\t\t// Actualiza relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.update(relco);\r\n\t\t}\r\n\t}",
"public int executeUpdate(String sql) throws Exception {\n\t\tint result = stmt.executeUpdate(sql);\n\t\t// stmt.close();\n\t\treturn result;\n\t}",
"protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}",
"@Override\n\tpublic void execute() throws TranslatorException {\n\n\t\tif (command instanceof Update) {\n\t\t\texecuteUpdate();\n\t\t}\n\t\telse if (command instanceof Delete) {\n\t\t\texecuteDelete();\n\t\t}\n\t\telse if (command instanceof Insert) {\n\t\t\texecuteInsert();\n\t\t}\n//\t\telse {\n// final String msg = LDAPPlugin.Util.getString(\"LDAPUpdateExecution.incorrectCommandError\"); //$NON-NLS-1$\n//\t\t\tthrow new TranslatorException(msg);\n//\t\t}\n\t}",
"public int executeUpdate(String sql, int[] columnIndexes)\r\n throws SQLException {\n return 0;\r\n }",
"@Transactional \n\tpublic void updateAll() {\n\t\t\n\t\tIterator<Pharmacy> newList = pharmacyRepository1.getAllEntity().iterator();\n\t\twhile (newList.hasNext()) {\n\t\t\tPharmacy pharmacy = newList.next();\n\t\t\tlistStockInPharmacy(pharmacy);\n\t\t\t}\n\t\t\n\t}",
"protected void updateProcedures() {\n if (!STORED_PROCEDURE_ENABLED.contains(dbType)) {\n return;\n }\n\n // Build/update the tables as well as the stored procedures\n PhysicalDataModel pdm = new PhysicalDataModel();\n buildCommonModel(pdm, updateFhirSchema, updateOauthSchema,updateJavaBatchSchema);\n\n // Now only apply the procedures in the model. Much faster than\n // going through the whole schema\n try {\n try (Connection c = createConnection()) {\n try {\n JdbcTarget target = new JdbcTarget(c);\n IDatabaseAdapter adapter = getDbAdapter(dbType, target);\n pdm.applyProcedures(adapter);\n pdm.applyFunctions(adapter);\n } catch (Exception x) {\n c.rollback();\n throw x;\n }\n c.commit();\n }\n } catch (SQLException x) {\n throw translator.translate(x);\n }\n }",
"@Override\n\tprotected void updateImpl(Connection conn, VtbObject anObject)\n\t\t\tthrows SQLException, MappingException {\n\n\t}",
"@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}",
"Integer update(final String sql);",
"private boolean update(UpdateStatement us) {\n\t\tTable target = DBUsing.getTable(us.tableName);\n\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) target.getTuples();\n\t\tObject updateValue = null;\n\t\t\n\t\ttry {\n\t\t\tFile root = new File(\"src\");\n \tURLClassLoader classLoader = URLClassLoader.newInstance(new URL[] { root.toURI().toURL() });\n \tClass<?> cl = Class.forName(target.getName(), true, classLoader);\n\t\t\t\n\t\t\t// Clarify update targets\n\t\t\tfor(Field field : cl.getDeclaredFields()) {\n\t\t\t\tfield.setAccessible(true);\n\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\tupdateValue = new Integer(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\tupdateValue = new String(us.val);\n\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\tupdateValue = new Double(us.val);\n\t\t\t\tfield.setAccessible(false);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(us.attr + \" \" + updateValue);\n\t\t\t\n\t\t\t// Filter and update\n\t\t\tif(us.where != null) {\n\t\t\t\tConditionExpression cond = us.where;\n\t\t\t\tString attributeName = cond.left;\n\t\t\t\tString attributeValue = cond.right;\n\t\t\t\t\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t//System.out.println(\"check field.getName(): \" + field.getName() + \", attributeName: \" + attributeName);\n\t\t\t\t\t\tif(field.getName().equals(attributeName)) {\n\t\t\t\t\t\t\tif(cond.operator.equals(\"=\")) {\n\t\t\t\t\t\t\t\tboolean checkCondition = false;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(field.getType().getName().equals(\"int\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Integer(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"java.lang.String\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new String(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\telse if(field.getType().getName().equals(\"double\"))\n\t\t\t\t\t\t\t\t\tcheckCondition = ((Object) new Double(attributeValue)).equals(field.get(tuple));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(checkCondition) {\n\t\t\t\t\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\t\t\t\t\ttoBeUpdated.setAccessible(false);\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\tfield.setAccessible(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\tField toBeUpdated = tuple.getClass().getDeclaredField(us.attr);\n\t\t\t\t\ttoBeUpdated.setAccessible(true);\n\t\t\t\t\ttoBeUpdated.set(tuple, updateValue);\n\t\t\t\t\ttoBeUpdated.setAccessible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (NoSuchFieldException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\treturn true;\n\t}",
"public static void executingUpdate(String query1) {\r\n try {\r\n //Apertura de conexion:\r\n Connection con = iniciarConexion();\r\n PreparedStatement pst = con.prepareStatement(query1);\r\n con.setAutoCommit(false);\r\n //Añadimos todas las setencias del ArrayList a la batería de queries:\r\n\r\n pst.addBatch(query1);\r\n\r\n //Recogemos los datos de filas modificadas por cada query y los mostramos:\r\n int[] registrosAfectados = pst.executeBatch();\r\n for (int i = 0; i < registrosAfectados.length; i++) {\r\n System.out.println(\"Filas modificadas: \" + registrosAfectados[i]);\r\n }\r\n //Se confirma la transacción a la base de datos:\r\n con.commit();\r\n con.close();\r\n //Se limpia el ArrayList para una sesión posterior:\r\n\r\n } catch (SQLException ex) {\r\n System.err.print(\"SQLException: \" + ex.getMessage());\r\n }\r\n }",
"public void executeUpdate(String query) throws SQLException{\n Connection con = this.getConnection();\n\n if (con == null) {\n throw new SQLException(\"Can't get database connection\");\n }\n con.setAutoCommit(false);\n\n Statement statement = con.createStatement();\n statement.executeUpdate(query);\n statement.close();\n con.commit();\n con.close();\n }",
"private void updateDB() {\n }",
"@Override\r\n\tpublic void updateForHql(String hql, Object[] params) throws Exception {\n\r\n\t\ttry {\r\n\t\t\tQuery q = this.getcurrentSession().createQuery(hql);\r\n\t\t\tif (params != null && params.length > 0) {\r\n\t\t\t\tfor (int i = 0; i < params.length; i++) {\r\n\t\t\t\t\tq.setParameter(i, params[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tq.executeUpdate();\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"update error for updateForHql\", e);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic boolean update(String sql) {\n\t\treturn false;\n\t}",
"public void update(T t) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString query = createUpdate(t);\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tstatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:Update \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t}",
"@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}",
"@Override\n public int executeUpdate(String sql, int autoGeneratedKeys) \n throws SQLException {\n return 0;\n }",
"<T extends BaseDto> void executeUpdate(String reqQuery, T req, Connection conn);",
"int update(String table, ContentValues values, String whereClause, String[] whereArgs);",
"@Override\r\n public void update(String query, Object... parameters) {\n Connection connection = null;\r\n PreparedStatement prepareStatement = null;\r\n try {\r\n connection = getConnection();\r\n connection.setAutoCommit(false);\r\n prepareStatement = connection.prepareStatement(query);\r\n setParameter(prepareStatement, parameters);\r\n prepareStatement.executeUpdate();\r\n connection.commit();\r\n } catch (SQLException e) {\r\n if(connection != null) {\r\n try {\r\n connection.rollback();\r\n } catch (SQLException ex) {\r\n }\r\n } else {\r\n } \r\n } finally {\r\n try {\r\n connection.close();\r\n if (prepareStatement != null) {\r\n prepareStatement.close();\r\n }\r\n } catch (SQLException e) {\r\n }\r\n }\r\n }",
"public int executeUpdate(String sql, String[] columnNames)\r\n throws SQLException {\n return 0;\r\n }",
"public QbUpdate all();",
"@Override\n\tpublic void update(String sql, Object... parameters) {\n\t\tConnection conn = null;\n\t PreparedStatement stm = null;\n\t try {\n\t\t\tconn = getConnection();\n\t\t conn.setAutoCommit(false);\n\t\t stm = conn.prepareStatement(sql);\n\t\t setParameter(stm, parameters);\n\t\t stm.executeUpdate();\n\t\t conn.commit();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO: handle exception\n\t\t\ttry {\n\t\t\t\tconn.rollback();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t e.printStackTrace();\n\t\t \n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (conn != null) {\n\t\t\t\t\tconn.close();\n\t\t\t\t}\n\n\t\t\t\tif (stm != null) {\n\t\t\t\t\tstm.close();\n\t\t\t\t}\n\n\t\t\t} catch (Exception e2) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public int update(String theQuery) throws SQLException {\r\n Statement st = this.connector.createStatement();\r\n return st.executeUpdate(theQuery);\r\n }",
"public void execute() throws ExecuteException {\n\t\t\r\n\t\tInsertQuery query = new InsertQuery(con,this.cmd,this.dataInfoCollection);\r\n\t\t\r\n\t\tquery.setKeyType(keyType);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tquery.executeSQL();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new ExecuteException(e);\r\n\t\t}finally{\r\n\t\t\ttry {\r\n\t\t\t\tquery.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tUpdateInfo updateIfno = query.getResult();\r\n\t\t\r\n\t\tif(keyType == null || keyType.equals(Constanst.KEY_TYPE_AUTO)){\r\n\t\t\tthis.executeInfo.setKeyValue(updateIfno.getKey());\r\n\t\t}else{\r\n\t\t\tthis.executeInfo.setKeyValue(this.keyValue);\r\n\t\t}\r\n\t\t\r\n\t}",
"public boolean update(@NotNull T object) {\n boolean rowUpdated = false;\n Logger logger = getLogger();\n try (Connection connection = getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(getUpdate())) {\n\n setStatement(preparedStatement, object);\n setUpdateStatementId(preparedStatement, object);\n\n logger.info(\"Executing statement: \" + preparedStatement);\n rowUpdated = preparedStatement.executeUpdate() > 0;\n } catch (SQLException | NotEnoughDataException e) {\n logger.error(e.getMessage());\n }\n logger.info(\"Update: success\");\n return rowUpdated;\n }",
"public boolean executeSQLUpdate(String command, List<Object> values) {\n boolean success = false;\n\n try {\n conn = DriverManager.getConnection(\"jdbc:mysql://\" + server + \":\" + port + \"/\" + database, user, pass);\n PreparedStatement stmt = conn.prepareStatement(command);\n\n int i = 1;\n for(Object value : values) {\n stmt.setObject(i, value);\n i++;\n }\n \n stmt.executeUpdate();\n\n success = true;\n } catch (SQLException e) {\n e.printStackTrace();\n success = false;\n }\n\n return success;\n }",
"public abstract void updateDatabase();",
"public void update(IEntity entity) throws SQLException;",
"public static int executeUpdate(final String sql, final Object... args)\n {\n return new SqlClosure<Integer>()\n {\n @Override\n protected Integer execute(Connection connection) throws SQLException\n {\n return OrmElf.executeUpdate(connection, sql, args);\n }\n }.execute();\n }",
"@Test\n public void commonUpdateTest() {\n\n String sql2 = \"UPDATE `order` SET order_name=? WHERE order_id=?\";\n commonUpdate(sql2, \"abc\", \"2\");\n }",
"public void update(String expression) {\r\n \t\tStatement st = null;\r\n \t\ttry {\r\n \t\t\tst = conn.createStatement();\r\n \t\t\tint i = st.executeUpdate(expression); // run the query\r\n \t\t\tif (i == -1) {\r\n \t\t\t\tSystem.out.println(\"db error : \" + expression);\r\n \t\t\t}\r\n \r\n \t\t} catch (SQLException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t} finally {\r\n \t\t\ttry {\r\n \t\t\t\tst.close();\r\n \t\t\t} catch (SQLException e) {\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t}",
"public interface QbUpdate extends QbQuery\n{\n\t/**\n\t * Sets a field to the specified placeholder. May be called \n\t * multiple times.\n\t * @param field\n\t * @param placeholder\n\t * @return This query builder.\n\t */\n\tpublic QbUpdate set(QbField field, String placeholder);\n\t\n\t/**\n\t * Adds a where clause. Very important. Call only once\n\t * per QbUpdate object.\n\t * @return A QbWhere object that is bound to this query.\n\t */\n\tpublic QbWhere where();\n\t\n\t/**\n\t * Signals that you want to update all records. If neither\n\t * where or all is called the query builder will throw an exception.\n\t * @return This query builder.\n\t */\n\tpublic QbUpdate all();\n\t\n\t/**\n\t * Which table to update. Table name should not contain\n\t * backticks. Must be called to make a valid update query.\n\t * @param table\n\t * @return This query builder.\n\t */\n\tpublic QbUpdate inTable(String table);\n}",
"@Update({\n \"update A_SUIT_MEASUREMENT\",\n \"set contract_id = #{contractId,jdbcType=INTEGER},\",\n \"consultant_uid = #{consultantUid,jdbcType=INTEGER},\",\n \"collar = #{collar,jdbcType=DOUBLE},\",\n \"wrist = #{wrist,jdbcType=DOUBLE},\",\n \"bust = #{bust,jdbcType=DOUBLE},\",\n \"shoulder_width = #{shoulderWidth,jdbcType=DOUBLE},\",\n \"mid_waist = #{midWaist,jdbcType=DOUBLE},\",\n \"waist_line = #{waistLine,jdbcType=DOUBLE},\",\n \"sleeve = #{sleeve,jdbcType=DOUBLE},\",\n \"hem = #{hem,jdbcType=DOUBLE},\",\n \"back_length = #{backLength,jdbcType=DOUBLE},\",\n \"front_length = #{frontLength,jdbcType=DOUBLE},\",\n \"arm = #{arm,jdbcType=DOUBLE},\",\n \"forearm = #{forearm,jdbcType=DOUBLE},\",\n \"front_breast_width = #{frontBreastWidth,jdbcType=DOUBLE},\",\n \"back_width = #{backWidth,jdbcType=DOUBLE},\",\n \"pants_length = #{pantsLength,jdbcType=DOUBLE},\",\n \"crotch_depth = #{crotchDepth,jdbcType=DOUBLE},\",\n \"leg_width = #{legWidth,jdbcType=DOUBLE},\",\n \"thigh = #{thigh,jdbcType=DOUBLE},\",\n \"lower_leg = #{lowerLeg,jdbcType=DOUBLE},\",\n \"height = #{height,jdbcType=DOUBLE},\",\n \"weight = #{weight,jdbcType=DOUBLE},\",\n \"body_shape = #{bodyShape,jdbcType=INTEGER},\",\n \"stance = #{stance,jdbcType=INTEGER},\",\n \"shoulder_shape = #{shoulderShape,jdbcType=INTEGER},\",\n \"abdomen_shape = #{abdomenShape,jdbcType=INTEGER},\",\n \"payment = #{payment,jdbcType=INTEGER},\",\n \"invoice = #{invoice,jdbcType=VARCHAR}\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n int updateByPrimaryKey(ASuitMeasurement record);",
"public int executeUpdateSQL() {\n\t\tint columnsAffected = -1;\n\t\ttry {\n\t\t\tcolumnsAffected = pstmt.executeUpdate();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t}\n\t\treturn columnsAffected;\n\t}",
"abstract Integer processUpdateQuery(String collectionName, ArrayList<HashMap<String,Object>> data, boolean isNew);",
"@Override\r\n\tpublic void update(Botany botany) {\n\t\tdao.update(botany);\r\n\t}",
"protected abstract void prepareStatementForUpdate(PreparedStatement statement, T object) throws PersistException;",
"@Override\r\n\tpublic void updateAll() throws IOException {\n\t}",
"private void executeUpdate(final String sqlStatement, final String keyValue, final String eiffelevent)\n throws ConnectException, SQLException {\n try (PreparedStatement preparedStatement = prepareStatmentForResourceBlock(sqlStatement)) {\n preparedStatement.setString(1, eiffelevent);\n preparedStatement.setString(2, keyValue);\n int updateCount = preparedStatement.executeUpdate();\n\n if (updateCount == 0) {\n throw new SQLException(\"No changes was saved in the database.\");\n }\n\n } catch (SQLException e) {\n LOGGER.error(\"Error when trying to add value into database: {}\\n{}\", e.getMessage(), e);\n throw e;\n }\n }",
"public void updates(String hql, Object... param) {\n\t\tthis.rsDAO.updates(hql, param) ;\n\t}",
"public boolean doExecuteUpdate( String sql, Object[] params){\r\n\t\tboolean temp = false;\r\n\t\tif (dbConnection == null)\r\n\t\t\treturn temp;\r\n\t\tPreparedStatement stmt = null;\r\n\t\ttry {\r\n\r\n\t\t\tstmt = dbConnection.prepareStatement(sql);\r\n\t\t\t// stuff parameters in\r\n\t\t\tfor (int i=0; i<params.length; i++){\r\n\t\t\t\tstmt.setObject(i + 1,params[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (stmt == null)\r\n\t\t\t\treturn temp;\r\n\t\t\tint count = stmt.executeUpdate(); //返回值为0表示执行出错。仅对INSERT、UPDATE 或 DELETE\r\n\r\n\t\t\t//System.out.println(\"delete:\" +count);\r\n\t\t\t\r\n\t\t\tif (count > 0) \r\n\t\t\t\ttemp= true;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tErrorLog.log(\"Database->doExecuteUpdate3:\" + e.getMessage()+\"//\"+ e);\r\n\t\t}finally{\r\n\t\t\ttry {\r\n\t\t\t\tif(stmt != null){ \r\n\t\t\t\t\tstmt.close();\r\n\t\t\t\t\tstmt = null;\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tErrorLog.log(\"Database->doExecuteUpdate4:\" + e.getMessage()+\"//\"+ e);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn temp;\t\r\n\t}",
"@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}",
"@Test\n\tpublic void update01() throws SQLException {\n\t\tjdbcLink.update(Product.class)\n\t\t\t.set()\n\t\t\t\t.param(Product.NAME, \"xxxxx\").param(Product.NAME, \"xxxxx\")\n\t\t\t.where()\n\t\t\t\t.and().eq(Product.UID, 77L)\n\t\t\t.execute();\n\t\t\n\t\t\t\t\n\t}",
"public boolean updateFoodToAnimal(String animalID, String foodName, String startFeedingTime, String endFeedingTime, double amount, HashMap<String, String> keys) {\n\n /*Get compoundID and species ID TODO method to shorten code*/\n try {\n\n /*Getting old keys*/\n String startFeedingTimeKey = keys.get(\"StartFeedingTime\");\n String foodIDKey = keys.get(\"FoodID\");\n\n /*Getting the FoodID of the new food*/\n String foodIDQuery = \"SELECT ID from Food where Name =\" + \"\\\"\" + foodName + \"\\\"\";\n ResultSet resultSet = connectionHandler.performQuery(foodIDQuery);\n if (resultSet == null) {\n return false; //case if food does not exist\n }\n resultSet.next();\n int foodID = resultSet.getInt(\"ID\");\n\n //Know the relation can be updated\n StringBuilder querySB = new StringBuilder();\n querySB.append(\"UPDATE Eats \")\n .append(\"SET FoodID = \").append(foodID).append(\",\")\n .append(\"AnimalID = \").append(animalID).append(\", \")\n .append(\"StartFeedingTime = \").append(\"'\").append(startFeedingTime).append(\"'\").append(\", \")\n .append(\"EndFeedingTime = \").append(\"'\").append(endFeedingTime).append(\"'\").append(\",\")\n .append(\"Amount = \").append(amount)\n .append(\" WHERE FoodID = \").append(foodIDKey)\n .append(\" AND \").append(\"AnimalID = \").append(animalID)\n .append(\" AND StartFeedingTime = '\").append(startFeedingTimeKey).append(\"'\");\n\n String query = querySB.toString();\n System.out.println(query);\n\n boolean retVal = connectionHandler.manipulateDB(query);\n return retVal;\n\n } catch (SQLException ex) {\n\n System.err.println(\"SQL Exception in updateFoodToAnimal()\");\n System.out.println(ex.getMessage());\n }\n\n return false;\n }",
"@Test\n public void updateTest10() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBar() ,\"Should return true if update Servizio\");\n }",
"@Override\n public String updateStatement() throws Exception {\n return null;\n }",
"@Override\n\tpublic String updateStatement() throws Exception {\n\t\treturn null;\n\t}",
"@Override\n\tprotected void doUpdate(Session session) {\n\n\t}",
"public static Boolean updateData(String query){\n int affectedRow = 0;\n connect();\n try{\n Statement stm = conn.createStatement();\n affectedRow = stm.executeUpdate(query);\n }catch(Exception e) {\n System.out.println(e.getMessage());\n }\n disconnect();\n if(affectedRow == 0)\n return false;\n else\n return true;\n }",
"public int update(String sql, Object... args) throws DataAccessException {\n\t\tSystem.out.println(sql + \" - \" + Arrays.toString(args));\r\n\t\treturn new PreparedStatementCallback<Integer>() {\r\n\t\t\t@Override\r\n\t\t\tprotected Integer doInPreparedStatement(PreparedStatement ps) throws SQLException {\r\n\t\t\t\tint ret = ps.executeUpdate();\r\n\t\t\t\treturn ret;\r\n\t\t\t}\r\n\t\t}.execute(txManager, sql, args);\r\n\t}",
"public Hoppy update(Hoppy hoppy) throws DataAccessException;",
"public abstract int update(Iterable<T> messages, QueryOption.WhereOption... whereOptions)\n throws DatabaseRequestException, DatabaseSchemaException;"
]
| [
"0.70951647",
"0.6876759",
"0.66601926",
"0.66417265",
"0.6537335",
"0.6446855",
"0.64114475",
"0.6384971",
"0.63762945",
"0.6358856",
"0.63226455",
"0.6317021",
"0.6310392",
"0.6291508",
"0.62128055",
"0.6201965",
"0.6196232",
"0.6187615",
"0.61714524",
"0.6168576",
"0.6137529",
"0.61277634",
"0.6125584",
"0.6099667",
"0.6083725",
"0.6077891",
"0.6077222",
"0.6076133",
"0.60641026",
"0.60433257",
"0.6026459",
"0.60131514",
"0.6012198",
"0.5994616",
"0.5981116",
"0.597896",
"0.5948332",
"0.5939441",
"0.59329504",
"0.5917541",
"0.5899878",
"0.58888215",
"0.5884893",
"0.58840823",
"0.58747286",
"0.58693206",
"0.58656263",
"0.58332175",
"0.5817417",
"0.57920927",
"0.5787653",
"0.57833475",
"0.57809615",
"0.57784176",
"0.5772014",
"0.5763856",
"0.57545125",
"0.5752702",
"0.57523704",
"0.5747769",
"0.57447535",
"0.5740796",
"0.5735134",
"0.5734089",
"0.5732694",
"0.57278293",
"0.5723627",
"0.57173103",
"0.5716479",
"0.57156837",
"0.57124394",
"0.5712082",
"0.57027394",
"0.570033",
"0.5678545",
"0.56649476",
"0.5664298",
"0.5660275",
"0.5647204",
"0.5644056",
"0.5632986",
"0.5625559",
"0.56244516",
"0.5605879",
"0.5589875",
"0.55864847",
"0.55832994",
"0.55828786",
"0.55798006",
"0.5577045",
"0.5572961",
"0.55671805",
"0.55647993",
"0.556176",
"0.55594355",
"0.55548364",
"0.55545145",
"0.5546252",
"0.5544276",
"0.553622"
]
| 0.6382537 | 8 |
Execute DELETE queries. Actualize MetaData before the execution. | private void deletes() {
DBPeer.fetchTableRows();
DBPeer.fetchTableIndexes();
for (Delete delete: deletes) {
delete.init();
}
//DBPeer.updateTableIndexes(); //Set min max of indexes not implemented yet
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic long execute() {\n\t\treturn database.createCommand()\n\t\t\t\t.appendRaw(\"DELETE FROM \")\n\t\t\t\t.appendName(aspect.schemaName)\n\t\t\t\t.appendWhere(this.filter)\n\t\t\t\t.executeNonQuery();\n\t}",
"@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}",
"void doDelete(SnapshotMetadata metadata) throws Exception;",
"@Override\n\tpublic void delete(String query) {\n\t\t\n\t}",
"@Override\n public Nary<Void> applyWithTransactionOn(TransactionContext transactionContext) {\n String deleteHql = \"DELETE FROM \" + persistentType.getName() + \" WHERE id = :deletedId\";\n Session session = transactionContext.getSession();\n Query deleteQuery = session.createQuery(deleteHql);\n deleteQuery.setParameter(\"deletedId\", deletedId);\n int affectedRows = deleteQuery.executeUpdate();\n if(affectedRows != 1){\n LOG.debug(\"Deletion of {}[{}] did not affect just 1 row: {}\", persistentType, deletedId, affectedRows);\n }\n // No result expected from this operation\n return Nary.empty();\n }",
"public void delete(IQuery query) throws SQLException;",
"public void execute() throws XMLBuildException {\r\n\t\tResultSet r = null;\r\n\t\tQuery query = (Query) getParent();\r\n\t\tconnection = query.findConnection(connectionString);\r\n\t\t//log.debug(\"connection = \" + this.connection);\r\n\t\tif (connection == null) {\r\n\t\t\tthrow new XMLBuildException(\"connection not found\", this);\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tc = connection.getConnection();\r\n\t\t\tstmt = c.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n ResultSet.CONCUR_UPDATABLE);\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new XMLBuildException(e.getMessage(), this);\r\n\t\t}\r\n\t\t// Prepare delete query -- don't actually delete anything yet\r\n\r\n\t\tif (printCreateTable)\r\n\t\t\tprintCreateTable();\r\n\t\t//\r\n\t\t// Delete First stuff goes here\r\n\t\t//\r\n\t\tif (deleteFirst != null) {\r\n\t\t\tlog.debug(\"fields = \" + fields);\r\n\t\t\tStringBuffer deleteFirstSelect = new StringBuffer(\"\");\r\n\t\t\tStringBuffer deleteFirstSQL = new StringBuffer(\"delete from \" + table + \" where \");\r\n\t\t\tfor (int i = 0; i < deleteFirst.length; i++) {\r\n\t\t\t\tField f = fields.get(deleteFirst[i]);\r\n\t\t\t\tif (f == null) {\r\n\t\t\t\t\tthrow new XMLBuildException(\"field \" + deleteFirst[i] +\r\n\t\t\t\t\t\t\t\" from deleteFirst does not exist\", this);\r\n\t\t\t\t}\r\n\t\t\t\tdeleteFirstSQL.append(\"[\" + f.getFieldName() + \"] = ? and \");\r\n\t\t\t\tdeleteFirstSelect.append(\", [\" + f.getFieldName() + \"]\");\r\n\t\t\t}\r\n\t\t\tdeleteFirstSQL.setLength(deleteFirstSQL.length()-4);\r\n\t\t\tthis.deleteFirstSQL = deleteFirstSQL.toString();\r\n\t\t\tlog.debug(\"Delete first SQL = \" + this.deleteFirstSQL);\t\r\n\r\n\t\t\tString delFirstQuery = \"select \" + deleteFirstSelect.substring(2) + \r\n\t\t\t\t\" from \" + table + \" where 1=0\";\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tr = stmt.executeQuery(delFirstQuery);\r\n\t\t\t\tResultSetMetaData m = r.getMetaData();\r\n\t\t\t\tfor (int i = 0; i < deleteFirst.length; i++) {\r\n\t\t\t\t\tdeleteFirstTypes.put(m.getColumnName(i+1).toUpperCase(), \r\n\t\t\t\t\t\t\tnew LoadParameter(i+1, m.getColumnType(i+1)));\r\n\t\t\t\t}\r\n\t\t\t\tr.close();\r\n\t\t\t\tlog.debug(\"del first sql = \" + deleteFirstSQL);\r\n\t\t\t\tpstmt = c.prepareStatement(deleteFirstSQL.toString());\r\n\t\t\t}\r\n\t\t\tcatch (SQLException s) {\r\n\t\t\t\tlog.debug(\"query = \" + delFirstQuery);\r\n\t\t\t\tthrow new XMLBuildException(\"deleteFirst does not look like a valid comma separated list of fields in \" + table, this);\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.debug(\"deleteFirstTypes = \" + deleteFirstTypes);\r\n\t\tif (truncate)\r\n\t\t\ttruncateTable(stmt);\r\n\t\t//parse.execute();\r\n\t\ttry {\r\n\t\t\tr.close();\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstmt.close();\r\n\t\t} catch (SQLException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tc.close();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tthrow new XMLBuildException(e.getMessage(), this);\r\n\t\t}\r\n\t}",
"void doDelete(String persistenceId, SnapshotSelectionCriteria criteria) throws Exception;",
"public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"protected abstract void doDelete();",
"@Test\n public void testDeleteForSureClearsAllTableRowsFromMeta() throws IOException, InterruptedException {\n final TableName tableName = TableName.valueOf(name.getMethodName());\n final Admin admin = TestEnableTable.TEST_UTIL.getAdmin();\n final HTableDescriptor desc = new HTableDescriptor(tableName);\n desc.addFamily(new HColumnDescriptor(TestEnableTable.FAMILYNAME));\n try {\n TestEnableTable.createTable(TestEnableTable.TEST_UTIL, desc, HBaseTestingUtility.KEYS_FOR_HBA_CREATE_TABLE);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail((\"Got an exception while creating \" + tableName));\n }\n // Now I have a nice table, mangle it by removing the HConstants.REGIONINFO_QUALIFIER_STR\n // content from a few of the rows.\n try (Table metaTable = TestEnableTable.TEST_UTIL.getConnection().getTable(META_TABLE_NAME)) {\n try (ResultScanner scanner = metaTable.getScanner(MetaTableAccessor.getScanForTableName(TestEnableTable.TEST_UTIL.getConnection(), tableName))) {\n for (Result result : scanner) {\n // Just delete one row.\n Delete d = new Delete(result.getRow());\n d.addColumn(CATALOG_FAMILY, REGIONINFO_QUALIFIER);\n TestEnableTable.LOG.info((\"Mangled: \" + d));\n metaTable.delete(d);\n break;\n }\n }\n admin.disableTable(tableName);\n TestEnableTable.TEST_UTIL.waitTableDisabled(tableName.getName());\n // Rely on the coprocessor based latch to make the operation synchronous.\n try {\n TestEnableTable.deleteTable(TestEnableTable.TEST_UTIL, tableName);\n } catch (Exception e) {\n e.printStackTrace();\n Assert.fail((\"Got an exception while deleting \" + tableName));\n }\n int rowCount = 0;\n try (ResultScanner scanner = metaTable.getScanner(MetaTableAccessor.getScanForTableName(TestEnableTable.TEST_UTIL.getConnection(), tableName))) {\n for (Result result : scanner) {\n TestEnableTable.LOG.info((\"Found when none expected: \" + result));\n rowCount++;\n }\n }\n Assert.assertEquals(0, rowCount);\n }\n }",
"protected boolean afterDelete() throws DBSIOException{return true;}",
"@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}",
"@Test\r\n\tpublic void testDeleteById() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tfor (E e : entities) {\r\n\t\t\tInteger id = supplyId(e);\r\n\t\t\tdao.deleteById(id);\r\n\t\t\tE read = dao.read(id);\r\n\t\t\tassertNull(read);\r\n\t\t}\r\n\t}",
"private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }",
"int delete(T data) throws SQLException, DaoException;",
"@Override\n\tpublic boolean delete(String sql) {\n\t\treturn false;\n\t}",
"public void execute() throws ValidationException {\n List<EnvironmentProperty> environmentPropertyList = environmentPropertyDAO.findAll();\n for(EnvironmentProperty ep : environmentPropertyList) {\n environmentPropertyDAO.delete(ep.getId());\n }\n\n\n environmentDAO.deleteAll();\n propertyDAO.deleteAll();\n applicationDAO.deleteAll();\n }",
"@Override\r\n\tpublic boolean deleteSQL(String sql, Connection con) {\n\t\treturn false;\r\n\t}",
"CustomDeleteQuery deleteFrom(String table) throws JpoException;",
"public void Delete(){\n String whereClause2 = PostDatabase.ID + \" = ?\";\n // Specify arguments in placeholder order.\n String[] whereArgs2 = { \"6\" };\n // Issue SQL statement.\n sqlDB.delete(PostDatabase.TABLE_POSTS, whereClause2, whereArgs2);\n\n }",
"@Override\n\tpublic void deleteInBatch(Iterable<Audit> entities) {\n\t\t\n\t}",
"private void executeDelete(Object key, String query) {\r\n\t\tlogger.entering(CLASSNAME, \"executeDelete\", new Object[] {key, query});\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement statement = null;\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\t\t\tstatement = conn.prepareStatement(query);\r\n\t\t\tstatement.setObject(1, key);\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new PersistenceException(e);\r\n\t\t} finally {\r\n\r\n\t\t\tcleanupConnection(conn, null, statement);\r\n\t\t}\r\n\t\tlogger.exiting(CLASSNAME, \"executeDelete\");\r\n\t}",
"@Test\n void deleteSuccess() {\n carDao.delete(carDao.getById(1));\n assertNull(carDao.getById(1));\n\n //Delete repairs\n GenericDao<Repair> repairDao = new GenericDao(Repair.class);\n Repair repair = repairDao.getById(2);\n assertNull(carDao.getById(2));\n\n //Delete part\n GenericDao<Part> partDao = new GenericDao(Part.class);\n Role part = partDao.getById(2);\n assertNull(partDao.getById(2));\n }",
"public void deleteResultSet(BackendDeleteDTO del_req) {\n log.debug(\"JZKitBackend::deleteResultSet\");\n del_req.assoc.notifyDeleteResult(del_req);\n }",
"protected void zDelete(MithraDataObject dataToDelete) throws MithraDatabaseException\r\n {\r\n long startTime = System.currentTimeMillis();\r\n Object source = this.getSourceAttributeValueFromObjectGeneric(dataToDelete);\r\n String sql = \"delete from \" + this.getFullyQualifiedTableNameGenericSource(source);\r\n\r\n sql += this.getSqlWhereClauseForDelete(dataToDelete);\r\n\r\n Connection con = null;\r\n PreparedStatement stm = null;\r\n try\r\n {\r\n con = this.getConnectionForWriteGenericSource(source);\r\n TimeZone databaseTimeZone = this.getDatabaseTimeZoneGenericSource(source);\r\n DatabaseType dt = this.getDatabaseTypeGenericSource(source);\r\n\r\n if (this.getSqlLogger().isDebugEnabled())\r\n {\r\n PrintablePreparedStatement pps = new PrintablePreparedStatement(sql);\r\n this.setPrimaryKeyAttributes(pps, 1, dataToDelete, databaseTimeZone, dt);\r\n this.logWithSource(this.getSqlLogger(), source, \"deleting with: \" + pps.getPrintableStatement());\r\n }\r\n stm = con.prepareStatement(sql);\r\n this.setPrimaryKeyAttributes(stm, 1, dataToDelete, databaseTimeZone, dt);\r\n int deleted = stm.executeUpdate();\r\n stm.close();\r\n stm = null;\r\n checkDeletedRows(deleted, dataToDelete);\r\n\r\n String dbid = this.getDatabaseIdentifierGenericSource(source);\r\n getNotificationEventManager().addMithraNotificationEvent(dbid, this.getFullyQualifiedFinderClassName(), MithraNotificationEvent.DELETE, dataToDelete, source);\r\n }\r\n catch (SQLException e)\r\n {\r\n this.analyzeAndWrapSqlExceptionGenericSource(\"delete failed \" + e.getMessage(), e, source, con);\r\n }\r\n finally\r\n {\r\n this.closeStatementAndConnection(con, stm);\r\n }\r\n this.getPerformanceData().recordTimeForDelete(1, startTime);\r\n }",
"public void deleteAll() {\n Session session = getSessionFactory().openSession();\n\n try {\n session.beginTransaction();\n Query query = session.createQuery(\"DELETE FROM Person \");\n query.executeUpdate();\n session.getTransaction().commit();\n LOGGER.log(Level.INFO,\"Successfully deleted all persons.\");\n }\n catch (Exception e){\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO,\"Deletion of all persons failed\");\n }\n finally {\n session.close();\n }\n }",
"void execute() {\n deleteNextEntry();\n }",
"@Test\r\n\tpublic void testExecuteCommandsDeleteAdl() throws Exception {\r\n\t\t\r\n\t\tadvertising.executeCommand(advertising, \"adl delete --Name L1-r-medical\");\r\n\t\tassertTrue(\"adc all\", true);\r\n\t\t\r\n\t}",
"private void deleteTestDataSet() {\n LOG.info(\"deleting test data set...\");\n try {\n Statement stmt = _conn.createStatement();\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_person\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_employee\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_payroll\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_address\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_contract\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_category\");\n stmt.executeUpdate(\"DELETE FROM tc8x_pks_project\");\n } catch (Exception e) {\n LOG.error(\"deleteTestDataSet: exception caught\", e);\n }\n }",
"@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}",
"public abstract void delete(Context context);",
"@Override\n public String deleteStatement() throws Exception {\n return null;\n }",
"public void prepareDeleteAll() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareDeleteAll();\n }",
"@Override\n\tpublic void delete(Medico i) throws Exception {\n\t\t\n\t}",
"public void prepareDeleteObject() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareDeleteObject();\n }",
"@Transactional\n\t@Override\n\tpublic void deleteAll() throws Exception {\n\t\tparaderoRespository.deleteAll();\n\t}",
"@Override\r\n\tpublic boolean deleteAll_de() throws Exception {\n\t\treturn tableDao.deleteAll_de();\r\n\t}",
"public abstract boolean delete(long arg, Connection conn) throws DeleteException;",
"@Override\r\n\tpublic boolean deleteAll() throws Exception {\n\t\treturn tableDao.deleteAll();\r\n\t}",
"public static void executeDelete(String query) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tsession.createSQLQuery(query).executeUpdate();\n\t\ttxn.commit();\n\t}",
"@Transactional\n\t@Override\n\tpublic void deleteAll() {\n\t\tanchorKeywordsDAO.deleteAll();\n\t}",
"@Override\n\tpublic void deleteAll() throws Exception {\n\t\topcionRepository.deleteAll();\n\t}",
"@Test\n public void testClientJdbcDelete() throws Exception {\n try (Connection con = GridCacheDynamicLoadOnClientTest.connect(GridCacheDynamicLoadOnClientTest.clientNode);Statement stmt = con.createStatement()) {\n int cnt = stmt.executeUpdate(((\"DELETE \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)) + \" WHERE _key=1\"));\n Assert.assertEquals(1, cnt);\n }\n SqlFieldsQuery qry = new SqlFieldsQuery((\"SELECT * FROM \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)));\n Assert.assertEquals(((GridCacheDynamicLoadOnClientTest.CACHE_ELEMENT_COUNT) - 1), getDefaultCacheOnClient().query(qry).getAll().size());\n }",
"public interface Delete<T extends Model> {\n\n\t/**\n\t * Executes the operation.\n\t *\n\t * @return the number of the deleted rows.\n\t * @throws OperationException if any error happen\n\t */\n\tint execute() throws OperationException;\n\n\t/**\n\t * Executes the operation. Returns <code>-1</code> if any error happen.\n\t *\n\t * @return the number of the deleted rows.\n\t */\n\tint executeSafely();\n\n\t/**\n\t * Builds a filtering expression for this operation.\n\t *\n\t * @param column a column's name from the table\n\t */\n\thandy.storage.api.ColumnCondition<DeleteOperation<T>> where(String column);\n\n\t/**\n\t * Sets a filtering expression for this operation.\n\t *\n\t * @param expression a {@link Expression} object built for this table.\n\t * @return this object\n\t * @throws IllegalArgumentException if passed expression was built for another table\n\t */\n\tDeleteOperation<T> where(Expression expression);\n\n\t/**\n\t * Limits the number of rows to delete. Use {@link #orderBy(String)} and\n\t * {@link #orderBy(String, Order)} to set a rule which rows should be\n\t * deleted first.\n\t *\n\t * @param limit mux number of items to delete\n\t * @return this object\n\t */\n\tDelete<T> limit(int limit);\n\n\t/**\n\t * Adds a column to order by during deleting. Use it only simultaneously\n\t * with {@link #limit(int)}.\n\t *\n\t * @param column column to order by\n\t * @return this object\n\t */\n\tDelete<T> orderBy(String column);\n\n\t/**\n\t * Adds a column to order by during deleting. Use it only simultaneously\n\t * with {@link #limit(int)}.\n\t *\n\t * @param column column to order by\n\t * @param order ascending or descending\n\t * @return this object\n\t */\n\tDelete<T> orderBy(String column, Order order);\n\n}",
"public abstract void delete(DataAction data, DataRequest source) throws ConnectorOperationException;",
"public static void deleteAll() {\n String sql = \"DELETE FROM articulo\";\n try(Connection conn = connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)){\n pstmt.executeUpdate();\n }\n catch(SQLException e) {\n System.out.println(\"Error al eliminar en la base de datos.\");\n //Descomentar la siguiente linea para mostrar el mensaje de error.\n //System.out.println(e.getMessage());\n }\n }",
"public void delete(Long id) throws EmptyResultDataAccessException;",
"public interface Delable extends Entity {\n\n @PofM(who = P.A)\n default boolean delete() {\n ECCalculator ecc = new ECCalculator(this);\n\n TableId tableId = new TableId(this.getSchemaName(), this.getTableName());\n List<String> whereFields = ecc.getKeyFields();\n Where where = new Where(new Equal(tableId, whereFields.get(0)));\n whereFields.subList(1, whereFields.size()).forEach(f -> where.addExpression(true, new Equal(tableId, f)));\n\n PreparedSQL delete = new Delete(tableId).where(where);\n return DB.instance().preparedExecute(delete.toPreparedSql(), 1, ecc.getValuesInOrder(whereFields));\n }\n\n}",
"public abstract void deleteAll();",
"@Override\n\tpublic String deleteStatement() throws Exception {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"public void delete() \n\t\t\t\tthrows model.ConsistencyException, PersistenceException{\n //TODO Check delegation to abstract class and overwrite if necessary!\n this.getMyCONCMModelItem().delete();\n }",
"@DELETE\n public void delete() {\n }",
"@DELETE\n public void delete() {\n }",
"protected abstract void prepareStatementForDelete(PreparedStatement deleteStatement, E entity) throws DAOException;",
"private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }",
"public void deleteTableRecords()\n {\n coronaRepository.deleteAll();\n }",
"public void delete(LearningResultHasActivityPk pk) throws LearningResultHasActivityDaoException;",
"private Delete() {}",
"private Delete() {}",
"private void closeDelete() throws IOException, InterruptedException {\n for (Map.Entry<String, Map<String, Set<String>>> path : this.filterColumnToValueMappingForDelete\n .entrySet()) {\n deleteExecution(path.getKey());\n createEmptyMetadataFile(path.getKey());\n }\n }",
"public void onDelete(Statement delete, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }",
"private void deleteAllPets() {\n// int rowsDeleted = getContentResolver().delete(ArtistsContracts.GenderEntry.CONTENT_URI, null, null);\n// Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n }",
"@Test\n\tpublic void test8() {\n\t\tString statement = \"delete from omar;\";\n\t\tExtractor extractor = new DeleteExtractor(statement);\n\t\tassertTrue(extractor.isValid());\n\t\tassertNull(extractor.getColumnsNames());\n\t}",
"public void delete(Query query) {\n\t\tquery.prepare();\n\t\tString selectTarget = SchemaMapper.kindToColumnFamily(query.getKind());\n\t\tStringBuilder b = new StringBuilder();\n\t\tb.append(\"DELETE from \\\"\");\n\t\tb.append(DataStore.KEYSPACE_NAME);\n\t\tb.append(\"\\\".\\\"\");\n\t\tb.append(selectTarget);\n\t\tb.append(\"\\\"\");\n\t\tb.append(query.getQuery());\t\t\n\t\tthis.query(b.toString(), query.getValues().toArray());\t\t\n\t}",
"@Test\n @JUnitTemporaryDatabase // Relies on specific IDs so we need a fresh database\n public void testDelete() throws Exception {\n createAndFlushServiceTypes();\n createAndFlushCategories();\n \n //Initialize the database\n ModelImporter mi = m_importer;\n String specFile = \"/tec_dump.xml.smalltest\";\n mi.importModelFromResource(new ClassPathResource(specFile));\n \n assertEquals(10, mi.getNodeDao().countAll());\n }",
"@Override\n\tprotected String deleteStatement() {\n\t\treturn null;\n\t}",
"@Query(\"DELETE FROM note_table\")\n void deleteAllNotes();",
"@Exclude\n public abstract void delete();",
"@Test\n void deleteSuccess() {\n genericDao.delete(genericDao.getById(3));\n assertNull(genericDao.getById(3));\n }",
"protected void deleteTenantMeta() {\n Db2Adapter adapter = new Db2Adapter(connectionPool);\n TenantInfo tenantInfo = getTenantInfo();\n try (ITransaction tx = TransactionFactory.openTransaction(connectionPool)) {\n try {\n if (tenantInfo.getTenantStatus() == TenantStatus.DROPPED) {\n adapter.deleteTenantMeta(adminSchemaName, tenantInfo.getTenantId());\n } else {\n throw new IllegalStateException(\"Cannot delete tenant meta data until status is \" + TenantStatus.DROPPED.name());\n }\n } catch (DataAccessException x) {\n // Something went wrong, so mark the transaction as failed\n tx.setRollbackOnly();\n throw x;\n }\n }\n\n }",
"@Override\n public void deleteAll() {\n String deleteAllQuery = \"DELETE FROM \" + getTableName();\n getJdbcTemplate().execute(deleteAllQuery);\n }",
"@Modifying\n @Transactional\n @Query(\"DELETE FROM \" + dbName)\n void deleteAllFromTable();",
"public abstract boolean delete(Log log) throws DataException;",
"@Override\n\tprotected void doDelete(Session session) {\n\n\t}",
"@Override\n\tpublic void delete(MedioPago entidad) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void handleDataDeleted(String dataPath) throws Exception {\n\t\t\t\t\n\t\t\t}",
"void deleteAllRelatedContext(String contextMetaDataId);",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() throws Exception {\n\t\t\n\t}",
"@DELETE\n public void delete() {\n }",
"@Test\n @Prepare(autoImport = true, autoClearExistsData = true)\n public void testdeleteById() throws Exception {\n\n int[] ids = { 111123456, 111123457, 111123458, 111123459 };\n for (int id : ids) {\n inventoryOutDao.deleteById(id);\n }\n for (int id : ids) {\n assertNull(inventoryOutDao.getById(id));\n }\n\n // List<InventoryOutDO> list = inventoryOutDao.list(new\n // InventoryOutDO());\n // assertResultListSorted(list, \"id\");\n }",
"public CustomSql getCustomSqlDelete();",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"Mysql DB 서버에 접속해서 삭제를 하다.\");\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\r\n\t}",
"@Override\n\tprotected void doDelete(DomainObject o, PreparedStatement s)\n\t\t\tthrows SQLException {\n\n\t}",
"public void doDelete(T objectToDelete) throws SQLException;",
"public void doDelete(ID primaryKey)\n {\n doDelete(doRetrieve(primaryKey, false));\n }",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}"
]
| [
"0.71257585",
"0.6717293",
"0.6569221",
"0.6455808",
"0.6451983",
"0.63775754",
"0.634977",
"0.6285288",
"0.6217201",
"0.62026316",
"0.6144753",
"0.61112547",
"0.6093553",
"0.60861665",
"0.60792565",
"0.607087",
"0.60511565",
"0.60387695",
"0.60310346",
"0.6013614",
"0.6006234",
"0.600499",
"0.6003379",
"0.5981975",
"0.5977552",
"0.59495217",
"0.5945537",
"0.5938816",
"0.59361464",
"0.5929268",
"0.5929124",
"0.5925883",
"0.5918204",
"0.59179735",
"0.5915847",
"0.59102565",
"0.5905467",
"0.5901662",
"0.58934903",
"0.5891646",
"0.58872354",
"0.58837897",
"0.586863",
"0.58631635",
"0.5859916",
"0.58597237",
"0.58524054",
"0.5852199",
"0.5850373",
"0.58434576",
"0.5842096",
"0.5830434",
"0.5828845",
"0.5828845",
"0.5828845",
"0.5828845",
"0.5824867",
"0.58240646",
"0.58240646",
"0.5823467",
"0.58204865",
"0.58193713",
"0.58177096",
"0.5814493",
"0.5814493",
"0.5812997",
"0.58095807",
"0.58095485",
"0.5808904",
"0.5805322",
"0.58019996",
"0.5801116",
"0.58010215",
"0.57997835",
"0.5796024",
"0.5792887",
"0.5786833",
"0.57834476",
"0.5782206",
"0.5778505",
"0.5765599",
"0.57651055",
"0.57640517",
"0.57631767",
"0.57631767",
"0.57631767",
"0.5762971",
"0.5759954",
"0.57497686",
"0.57487863",
"0.5746667",
"0.5743354",
"0.57432956",
"0.57271445",
"0.5724813",
"0.5724652",
"0.5724652",
"0.5724652",
"0.5724652",
"0.5724652"
]
| 0.66164225 | 2 |
onCreate begins from here set the spinners, pickers and EditText, store them whenever changed | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_edit);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_create_edit);
setSupportActionBar(toolbar);
ArrayAdapter<CharSequence> adapter1;
ArrayAdapter<CharSequence> adapter2;
edit_reason = (EditText) findViewById(R.id.edit_reason);
social_situation_spinner = (Spinner) findViewById(R.id.edit_social_situation_spinner);
mood_state_spinner = (Spinner) findViewById(R.id.edit_mood_state_spinner);
simpleDatePicker = (DatePicker) findViewById(R.id.datePicker);
simpleTimePicker = (TimePicker) findViewById(R.id.timePicker);
pic_preview = (ImageView) findViewById(R.id.pic_preview);
current_time_checkbox = (CheckBox) findViewById(R.id.current_time);
current_time_checkbox.setChecked(true);
simpleTimePicker.setIs24HourView(true);
currentLocationCheckbox = (CheckBox) findViewById(R.id.current_location);
SharedPreferences sharedPreferences = getSharedPreferences("editMoodEvent", MODE_PRIVATE);
Gson gson = new Gson();
String json = sharedPreferences.getString("moodevent", "");
edit_mood_event = gson.fromJson(json, MoodEvent.class);
if (current_time_checkbox.isChecked()) {
simpleDatePicker.setEnabled(false);
simpleTimePicker.setEnabled(false);
}
adapter1 = ArrayAdapter.createFromResource(this, R.array.mood_states_array, android.R.layout.simple_spinner_item);
adapter1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
mood_state_spinner.setAdapter(adapter1);
mood_state_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
if (i > 0) {
edit_mood_state = adapterView.getItemAtPosition(i).toString();
Toast.makeText(getApplicationContext(), edit_mood_state + " is selected.", Toast.LENGTH_SHORT).show();
} else {
edit_mood_state = null;
}
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
});
adapter2 = ArrayAdapter.createFromResource(this, R.array.social_situation_array, android.R.layout.simple_spinner_item);
adapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
social_situation_spinner.setAdapter(adapter2);
social_situation_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {
if (i > 0) {
edit_social_situation = adapterView.getItemAtPosition(i).toString();
Toast.makeText(getApplicationContext(), edit_social_situation + " is selected.", Toast.LENGTH_SHORT).show();
} else {
edit_social_situation = null;
}
}
@Override
public void onNothingSelected(AdapterView<?> adapterView) {
}
});
edit_reason.addTextChangedListener(new TextWatcher() {
@Override
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
}
@Override
public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {
if (edit_reason.getText().toString().split("\\s+").length > 3) {
edit_reason.setError("Only the first 3 words will be sent");
} else {
edit_trigger = edit_reason.getText().toString();
}
}
@Override
public void afterTextChanged(Editable editable) {
}
});
current_time_checkbox.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
simpleDatePicker.setEnabled(!current_time_checkbox.isChecked());
if(Build.VERSION.SDK_INT>=23)
simpleTimePicker.setEnabled(!current_time_checkbox.isChecked());
}
});
currentLocationCheckbox.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
InternetConnectionChecker checker = new InternetConnectionChecker();
Context context = getApplicationContext();
final boolean isOnline = checker.isOnline(context);
if(!isOnline) {
currentLocationCheckbox.setChecked(false);
Toast.makeText(getApplicationContext(), "Location is not available when this device is offline.", Toast.LENGTH_LONG).show();
}
if(isOnline) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
permissionLocationRequest();
}
}
add_location();
}
});
Calendar calendar = edit_mood_event.getDateOfRecord();
simpleDatePicker.init(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH),
calendar.get(Calendar.DAY_OF_MONTH), new DatePicker.OnDateChangedListener() {
@Override
public void onDateChanged(DatePicker datePicker, int year, int month, int dayOfMonth) {
set_year = simpleDatePicker.getYear();
set_month = simpleDatePicker.getMonth();
set_day = simpleDatePicker.getDayOfMonth();
}
});
simpleTimePicker.setOnTimeChangedListener(new TimePicker.OnTimeChangedListener() {
public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {
set_hour = simpleTimePicker.getHour();
set_minute = simpleTimePicker.getMinute();
}
});
load_moodEvent(edit_mood_event);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void init(){\n\t\t\n\t\tpurchasePrice = (EditText)findViewById(R.id.purchasePrice);\n\t\tpurchasePrice.setFilters(new InputFilter[] { new CurrencyFormatInputFilter()});\n\t\t\n\t\tdownPaymentSpinner = (Spinner)findViewById(R.id.inputTypeSpinner);\n\t\tArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n\t\t\t\tR.array.inputTypes, android.R.layout.simple_spinner_item);\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tdownPaymentSpinner.setAdapter(adapter);\n\t\t\n\t\tsellerSpinner = (Spinner)findViewById(R.id.inputTypeSpinnerSeller);\n\t\tArrayAdapter<CharSequence> adapter2 = ArrayAdapter.createFromResource(this,\n\t\t\t\tR.array.inputTypes, android.R.layout.simple_spinner_item);\n\t\tadapter2.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tsellerSpinner.setAdapter(adapter2);\t\n\t}",
"public void initializers() {\n\t\taccidentSpinner = (Spinner) findViewById(R.id.accidentSpinner);\n\t\tdesc = (EditText) findViewById(R.id.descriptionEt);\n\t\timView = (ImageView) findViewById(R.id.image1);\n\t\timView2 = (ImageView) findViewById(R.id.image2);\n\t\timView.setOnClickListener(this);\n\t\timView2.setOnClickListener(this);\n\t\tsubmit = (Button) findViewById(R.id.reportBtn);\n\t\tsubmit.setOnClickListener(this);\n\n\t\ttry {\n\t\t\tArrayAdapter<String> adapter_state = new ArrayAdapter<String>(this,\n\t\t\t\t\tandroid.R.layout.simple_spinner_item, accidentType);\n\t\t\tadapter_state\n\t\t\t\t\t.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\t\taccidentSpinner.setAdapter(adapter_state);\n\t\t} catch (Exception ex) {\n\t\t\tToast.makeText(this, \"Something happen\", Toast.LENGTH_SHORT).show();\n\t\t}\n\n\t}",
"private void initSpinners() {\r\n Spinner arrivalSpinner = (Spinner)findViewById(R.id.arrival_place);\r\n SpinnerAdapter arrivalSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, new LinkedList<>(manager.getAllSights()));\r\n arrivalSpinner.setAdapter(arrivalSpinnerAdapter);\r\n\r\n Spinner departureSpinner = (Spinner)findViewById(R.id.departure_place);\r\n SpinnerAdapter departureSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, new LinkedList<>(manager.getAllSights()));\r\n departureSpinner.setAdapter(departureSpinnerAdapter);\r\n\r\n Spinner focusSpinner = (Spinner)findViewById(R.id.focus);\r\n SpinnerAdapter focusSpinnerAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, Category.values());\r\n focusSpinner.setSelection(3);\r\n focusSpinner.setAdapter(focusSpinnerAdapter);\r\n }",
"public void init(){\n nomInscription = (EditText)findViewById(R.id.inscriptionNomEdit);\n prenomInscription = (EditText)findViewById(R.id.inscriptionPrenomEdit);\n mailInscription = (EditText)findViewById(R.id.inscriptionMailEdit);\n telInscription = (EditText)findViewById(R.id.inscriptionGSMEdit);\n mdpInscription = (EditText)findViewById(R.id.inscriptionPSWEdit);\n mdpConfirmation = (EditText)findViewById(R.id.inscriptionConfirmEdit);\n }",
"private void initSpinners() {\n mColourArray = Constants.colours.keySet().toArray(new String[Constants.colours.keySet().size()]);\n mPositonArray = Constants.gravity.keySet().toArray(new String[Constants.gravity.keySet().size()]);\n mScaleArray = Constants.scale.keySet().toArray(new String[Constants.scale.keySet().size()]);\n\n // Init Adapters\n ArrayAdapter<String> colourAdapter = new ArrayAdapter<>(\n this,\n R.layout.adapter_dropdown_menu_item,\n mColourArray);\n\n ArrayAdapter<String> positionAdapter = new ArrayAdapter<>(\n this,\n R.layout.adapter_dropdown_menu_item,\n mPositonArray);\n\n ArrayAdapter<String> scaleAdapter = new ArrayAdapter<>(\n this,\n R.layout.adapter_dropdown_menu_item,\n mScaleArray);\n\n // Set Adapter\n mDataBinding.textColor.setAdapter(colourAdapter);\n mDataBinding.backgroundColor.setAdapter(colourAdapter);\n mDataBinding.position.setAdapter(positionAdapter);\n mDataBinding.imageScale.setAdapter(scaleAdapter);\n\n // Set Listeners\n mDataBinding.textColor.setOnItemClickListener((adapterView, view, i, l) -> {\n String selectedItemKey = (String) adapterView.getItemAtPosition(i);\n mTextColour = Constants.colours.get(selectedItemKey);\n });\n\n mDataBinding.backgroundColor.setOnItemClickListener((adapterView, view, i, l) -> {\n String selectedItemKey = (String) adapterView.getItemAtPosition(i);\n mBackgroundColour = Constants.colours.get(selectedItemKey);\n });\n\n mDataBinding.position.setOnItemClickListener((adapterView, view, i, l) -> {\n String selectedItemKey = (String) adapterView.getItemAtPosition(i);\n mPosition = Constants.gravity.get(selectedItemKey);\n });\n\n mDataBinding.imageScale.setOnItemClickListener((adapterView, view, i, l) -> {\n String selectedItemKey = (String) adapterView.getItemAtPosition(i);\n mScale = Constants.scale.get(selectedItemKey);\n });\n\n // Set defaults\n mDataBinding.textColor.setText(colourAdapter.getItem(1), false);\n mDataBinding.backgroundColor.setText(colourAdapter.getItem(0), false);\n mDataBinding.position.setText(positionAdapter.getItem(0), false);\n mDataBinding.imageScale.setText(scaleAdapter.getItem(0), false);\n mTextColour = colourAdapter.getItem(1);\n mBackgroundColour = colourAdapter.getItem(0);\n mPosition = positionAdapter.getItem(0);\n mScale = scaleAdapter.getItem(0);\n }",
"private void setupUI() {\n bankInput = (EditText) findViewById(R.id.bank_Input);\n startDateInput = (EditText) findViewById(R.id.start_Date_Input);\n endDateInput = (EditText) findViewById(R.id.end_Date_Input);\n amountInput = (EditText) findViewById(R.id.amount_Input);\n annualizedYieldInput = (EditText) findViewById(R.id.annualized_Yield_Input);\n expectedInterestInput = (EditText) findViewById(R.id.expected_Interest_Input);\n\n //Set Text Watcher to update interest\n bankInput.addTextChangedListener(mInterestTextWatcher);\n amountInput.addTextChangedListener(mInterestTextWatcher);\n annualizedYieldInput.addTextChangedListener(mInterestTextWatcher);\n amountInput.setOnFocusChangeListener(mOnFocusChangeListener);\n annualizedYieldInput.setOnFocusChangeListener(mOnFocusChangeListener);\n\n //set date field listener\n startDateInput.setOnFocusChangeListener(new View.OnFocusChangeListener(){\n @Override\n public void onFocusChange (View v, boolean hasFocus){\n Toast.makeText(getApplicationContext(),\"onFocusChange\",Toast.LENGTH_SHORT).show();\n if (hasFocus){\n Toast.makeText(getApplicationContext(),\"onFocusChange\",Toast.LENGTH_SHORT).show();\n showDatePicker((EditText) v, true);\n }\n }\n } );\n startDateInput.setInputType(InputType.TYPE_NULL);\n startDateInput.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if (v.hasFocus()){\n showDatePicker((EditText)v, true);\n }\n }\n });\n endDateInput.setOnFocusChangeListener(new View.OnFocusChangeListener(){\n @Override\n public void onFocusChange (View v, boolean hasFocus){\n if (hasFocus){\n showDatePicker((EditText) v, false);\n }\n }\n } );\n endDateInput.setInputType(InputType.TYPE_NULL);\n endDateInput.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v){\n if (v.hasFocus()){\n showDatePicker((EditText)v, false);\n }\n }\n });\n\n mSavingsBean = getIntent().getParcelableExtra(Constants.INTENT_EXTRA_SAVINGS_ITEM_PARCEL);\n if (mSavingsBean != null) {\n // set data to UI\n bankInput.setText(mSavingsBean.getBankName());\n startDateInput.setText(Utils.formatDate(mSavingsBean.getStartDate()));\n endDateInput.setText(Utils.formatDate(mSavingsBean.getEndDate()));\n amountInput.setText(Utils.formatFloat(mSavingsBean.getAmount()));\n annualizedYieldInput.setText(Utils.formatFloat(mSavingsBean.getYield()));\n expectedInterestInput.setText(Utils.formatFloat(mSavingsBean.getInterest()));\n\n // update the buttons\n ((Button) findViewById(R.id.save_Button)).setText(R.string.update);\n ((Button) findViewById(R.id.cancel_Button)).setText(R.string.delete);\n\n mEditMode = true;\n // update the data in this screen\n mStartDate = new Date(mSavingsBean.getStartDate());\n mEndDate = new Date(mSavingsBean.getEndDate());\n mAmount = mSavingsBean.getAmount();\n mYield = mSavingsBean.getYield();\n mInterest = mSavingsBean.getInterest();\n Log.d(Constants.LOG_TAG, \"Edit mode, displayed existing savings item:\");\n Log.d(Constants.LOG_TAG, mSavingsBean.toString());\n\n }\n }",
"private void initUI(View view) {\n btnSend = (AutoBgButton) view.findViewById(R.id.btnSend);\n btnBack = (ImageView) view.findViewById(R.id.btnBack);\n edtTitle = (EditText) view.findViewById(R.id.edtTitleFB);\n edtDes = (EditText) view.findViewById(R.id.edtDesFB);\n spnType = (Spinner) view.findViewById(R.id.spnType);\n btnBack.setOnClickListener(this);\n btnSend.setOnClickListener(this);\n spnType.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n if (position == 0) {\n type = \"1\";\n } else if (position == 1) {\n type = \"3\";\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // TODO Auto-generated method stub\n\n }\n });\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.part_layout);\n \n editTextforAll();\n setDoneButtonListener();\n setSafetyButtonListener();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_one);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n // method to handle spinner functionality\n spinnerAction();\n\n clearFields();// method to handle spinner functionality\n submitButton();// method to handle submit button functionality\n exitApplication();// method to handle exit button functionality\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_create_business_acitivity);\n\n //Get the app wide shared variables\n appState = ((MyApplicationData) getApplicationContext());\n\n nameField = (EditText) findViewById(R.id.name);\n primaryBusinessField = (EditText) findViewById(R.id.primaryBusiness);\n numberField = (EditText) findViewById(R.id.number);\n addressField = (EditText) findViewById(R.id.address);\n provinceField = (Spinner) findViewById(R.id.provinceSpinner);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.provinces, android.R.layout.simple_spinner_item);\n provinceField.setAdapter(adapter);\n }",
"@Override\r\n protected void initListener() {\r\n backiv.setOnClickListener(this);\r\n mSetMainbtn.setOnClickListener(this);\r\n// mSetTerminalBtn.setOnClickListener(this);\r\n// mTerminalipSp3.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\r\n// @Override\r\n// public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\r\n// mSpinner3Data = i;\r\n// }\r\n//\r\n// @Override\r\n// public void onNothingSelected(AdapterView<?> adapterView) {\r\n//\r\n// }\r\n// });\r\n// mTerminalipSp5.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\r\n// @Override\r\n// public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\r\n// mSpinner5Data = i;\r\n// }\r\n//\r\n// @Override\r\n// public void onNothingSelected(AdapterView<?> adapterView) {\r\n//\r\n// }\r\n// });\r\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main); // load content from XML\n\n\tselection = (Spinner)findViewById(R.id.spinner); // load spinner\n\tadapter = ArrayAdapter.createFromResource(this, R.array.choices_array, android.R.layout.simple_spinner_dropdown_item); /* load adapter for spinner */\n\tsize = (EditText)findViewById(R.id.size); // load textfield\n\tresult = (EditText)findViewById(R.id.result); // load textfield\n\tcalculate = (Button)findViewById(R.id.submit); // load textfield\n\n\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // load spinner drop down\n\n\tselection.setAdapter(adapter); // assign adapter to spinner\n\n\tresult.setEnabled(false); // make result field read-only\n\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n String spiller = null;\n\n spinner =(Spinner)findViewById(R.id.startLocation);\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(MainActivity.this, android.R.layout.simple_list_item_1, SPINNERVALUES);\n spinner.setAdapter(adapter);\n\n spinner2 =(Spinner)findViewById(R.id.endState);\n ArrayAdapter<String> adapter2 = new ArrayAdapter<String>(MainActivity.this, android.R.layout.simple_list_item_1, SPINNERVALUES2);\n spinner2.setAdapter(adapter);\n\n //Trying to get Spinner 1 and 2 Values\n\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {}\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // TODO Auto-generated method stub\n\n }\n });\n spinner2.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> parent, View view,\n int position, long id) {\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // TODO Auto-generated method stub\n\n }\n });\n\n //Initializing Views\n trucksID = (EditText) findViewById(R.id.trucksID);\n tripReportNumber = (EditText) findViewById(R.id.tripReportNumber);\n enteredDate = (EditText) findViewById(R.id.enteredDate);\n emptyMilage = (EditText) findViewById(R.id.emptyMilage);\n loadedMilage = (EditText) findViewById(R.id.loadedMilage);\n estMilage = (TextView) findViewById(R.id.estMilage);\n buttonRegister = (Button) findViewById(R.id.buttonRegister);\n\n\n //Reset Button for Form\n Button reset= (Button) findViewById(R.id.btnclear);\n\n assert reset != null;\n reset.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n trucksID.setText(\"\");\n tripReportNumber.setText(\"\");\n enteredDate.setText(\"\");\n emptyMilage.setText(\"\");\n loadedMilage.setText(\"\");\n estMilage.setText(\"\");\n\n }\n });\n\n //Adding listener to button\n buttonRegister.setOnClickListener(this);\n // ATTENTION: This was auto-generated to implement the App Indexing API.\n // See https://g.co/AppIndexing/AndroidStudio for more information.\n client = new GoogleApiClient.Builder(this).addApi(AppIndex.API).build();\n }",
"@Override\r\n protected void initData(Bundle savedInstanceState) {\r\n mControl = new IPsetControl(this);\r\n mControl.getMainIp();\r\n// Resources res = getResources();\r\n// String[] stringArray = res.getStringArray(R.array.IpsetSpinner1);\r\n// data1.clear();\r\n// data2.clear();\r\n// for (int i = 0; i < stringArray.length; i++) {\r\n// data1.add(stringArray[i]);\r\n// }\r\n// Resources res1 = getResources();\r\n// String[] stringArray1 = res1.getStringArray(R.array.IpsetSpinner2);\r\n// for (int i = 0; i < stringArray1.length; i++) {\r\n// data2.add(stringArray1[i]);\r\n//\r\n// }\r\n// adapter1 = new SpinnerAdapter(data1, this);\r\n// adapter2 = new SpinnerAdapter(data2, this);\r\n// mTerminalipSp3.setAdapter(adapter1);\r\n// mTerminalipSp5.setAdapter(adapter2);\r\n }",
"private void initialise() {\n spinnerIntervals = (AppCompatSpinner) findViewById(R.id.spinnerIntervals);\n spinnerWordsPerDay = (AppCompatSpinner) findViewById(R.id.spinnerWordsPerDay);\n spinnerStartLesson = (AppCompatSpinner) findViewById(R.id.spinnerStartLesson);\n btnStartTime = (Button) findViewById(R.id.btnStartTime);\n\n chkSa = (CheckBox) findViewById(R.id.chkSa);\n chkSu = (CheckBox) findViewById(R.id.chkSu);\n chkMo = (CheckBox) findViewById(R.id.chkMo);\n chkTu = (CheckBox) findViewById(R.id.chkTu);\n chkWe = (CheckBox) findViewById(R.id.chkWe);\n chkTh = (CheckBox) findViewById(R.id.chkTh);\n chkFr = (CheckBox) findViewById(R.id.chkFr);\n\n btnStop = (Button) findViewById(R.id.btnStop);\n btnStart = (Button) findViewById(R.id.btnStart);\n btnPause = (Button) findViewById(R.id.btnPause);\n btnRestart = (Button) findViewById(R.id.btnRestart);\n layoutRingtone = (LinearLayout) findViewById(R.id.layoutRingtone);\n btnSelectTone = (Button) findViewById(R.id.btnSelectTone);\n txtStatus = (TextView) findViewById(R.id.txtStatus);\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB) {\n layoutRingtone.setVisibility(View.GONE);\n }\n\n bind();\n btnStart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n start();\n setViewsStatus();\n }\n });\n\n btnPause.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ReminderManager.pause();\n bind();\n setViewsStatus();\n }\n });\n\n btnStop.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ReminderManager.stop();\n bind();\n setViewsStatus();\n }\n });\n\n btnRestart.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n start();\n setViewsStatus();\n }\n });\n\n btnStartTime.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (btnStartTime.getText().length() > 0) {\n int hour = Integer.valueOf(btnStartTime.getText().toString().substring(0, 2));\n int minute = Integer.valueOf(btnStartTime.getText().toString().substring(3, 5));\n DialogManager.showTimePickerDialog(App.currentActivity, \"\", hour, minute, new Runnable() {\n @Override\n public void run() {\n btnStartTime.setText(DialogManager.timeResult);\n }\n });\n } else {\n DialogManager.showTimePickerDialog(App.currentActivity, \"\", 12, 0, new Runnable() {\n @Override\n public void run() {\n btnStartTime.setText(DialogManager.timeResult);\n }\n });\n }\n }\n });\n\n btnSelectTone.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(RingtoneManager.ACTION_RINGTONE_PICKER);\n intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TYPE, RingtoneManager.TYPE_NOTIFICATION);\n intent.putExtra(RingtoneManager.EXTRA_RINGTONE_TITLE, \"Select Tone\");\n intent.putExtra(RingtoneManager.EXTRA_RINGTONE_EXISTING_URI, (Uri) null);\n startActivityForResult(intent, 5);\n }\n });\n\n setViewsStatus();\n }",
"private void init(){\n //Selected value in Spinner\n String selectedSubj= getActivity().getIntent().getStringExtra(\"subj\");\n String selectedPoten= getActivity().getIntent().getStringExtra(\"prob\");\n String selectedInst= getActivity().getIntent().getStringExtra(\"inst\");\n String selectedY= getActivity().getIntent().getStringExtra(\"peri\");\n\n if(selectedY.equals(\"2015~2017\")){\n String yList[]= {\"2015\", \"2016\", \"2017\"};\n selectedY= yList[new Random().nextInt(yList.length)];\n }\n\n String e_inst= QuestionUtil.create_eInst(selectedY, selectedInst);\n String k_inst= QuestionUtil.create_kInst(e_inst);\n String m= QuestionUtil.createPeriodM(selectedY, e_inst);\n\n QuestionNameBuilder.inst= new QuestionNameBuilder(selectedY, m, k_inst, selectedSubj, QuestionNameBuilder.UNDEFINED\n , QuestionNameBuilder.UNDEFINED, QuestionNameBuilder.TYPE_KOR);\n qnBuilder= QuestionNameBuilder.inst;\n\n //Potential Load\n loadPotentials(selectedPoten);\n }",
"private void _init(){\n \n context = this;\n \t\n this.countryCodeXml = HelperFunctions.getInstance().parseCountryCodeXml(this);\n \n \t//Initialisieren der EditTexte und Spinner\n this.countrySpinner = (Spinner) findViewById(R.id.countrySpinner);\n addItemsToSpinner();\n countrySpinnerListener();\n this.countryCode = (TextView) findViewById(R.id.countryCode);\n this.numberErrorMessage = (TextView) findViewById(R.id.activity_setup_number_error_message);\n \tthis.telNumber = (EditText) findViewById(R.id.telnummberEditText);\n \tthis.passwordErrorMessage = (TextView) findViewById(R.id.activity_setup_password_error_message);\n this.password = (EditText) findViewById(R.id.passwordEditText);\n passwordInputFilter();\n this.agbCheck = (CheckBox) findViewById(R.id.agbCheck);\n // Hier muss noch eine Default Vlaue gesetzt werden\n //countrySpinner.setSelected(selected)\n this.acceptButton = (Button) findViewById(R.id.AgbConfirmButton);\n acceptButtonListener();\n \n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.register1);\r\n\t\tStrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\r\n\t\tStrictMode.setThreadPolicy(policy);\r\n\t\tinit();\r\n\t\t//setSpinnerHeight();\r\n\t}",
"private void init(){\n\n //Load component in the good variables\n spin_day = (Spinner)findViewById(R.id.spinner_day_hospa);\n spin_start = (Spinner)findViewById(R.id.spinner_start_hospa);\n spin_end = (Spinner)findViewById(R.id.spinner_end_hospa);\n spin_service = (Spinner)findViewById(R.id.spinner_service_hospa);\n\n btn_Appointment = (Button)findViewById(R.id.btn_app_hospa);\n\n lv_availability = (ListView)findViewById(R.id.lv_availability_hospa);\n lv_Appointment = (ListView)findViewById(R.id.lv_Appointment_hospa);\n\n tv_main = (TextView)findViewById(R.id.tv_main_hospa);\n\n tv_main.setText(\"Create Appointment with\\n\" + this.companyName);\n\n //Load the days\n loadDays();\n loadHours();\n loadSpinnerDays();\n loadSpinnerHours();\n callEventListener();\n loadListView();\n loadAppointmentList();\n loadSpinnerFromDB();\n }",
"private void initializeComponents(View view) {\n etTitle = (EditText) view.findViewById(R.id.etTitle);\n etAmount = (EditText) view.findViewById(R.id.etAmount);\n btnSave = (Button) view.findViewById(R.id.btnSaveExpense);\n category = (Spinner) view.findViewById(R.id.spinnerCategory);\n\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(getActivity(), R.array.spinner_choises, android.R.layout.simple_spinner_dropdown_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n category.setAdapter(adapter);\n\n btnDatePicker = (TextView) view.findViewById(R.id.btnExpenseDatePicker);\n btnSave.setOnClickListener(new btnSaveClicked());\n btnDatePicker.setOnClickListener(new btnDatePickerClicked());\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n if (firstRun) {\n PersistenceFoodTruck.setFilename(getFilesDir().getAbsolutePath() + File.separator + \"foodtruck.xml\");\n PersistenceFoodTruck.loadFoodTruckModel();\n\n firstRun=false;\n }\n\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n //Initialize weekday spinner\n week[0] = \"Monday\";\n week[1] = \"Tuesday\";\n week[2] = \"Wednesday\";\n week[3] = \"Thursday\";\n week[4] = \"Friday\";\n week[5] = \"Saturday\";\n week[6] = \"Sunday\";\n ArrayAdapter<String> weekAdapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item,week);\n Spinner weekspin = (Spinner) findViewById(R.id.weekdays);\n weekspin.setAdapter(weekAdapter);\n\n refreshData();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Snackbar.make(view, \"Replace with your own action\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n }\n });\n\n // Hacemos que JAVA reconozca las variables del XML\n et1 = (EditText)findViewById(R.id.et1);\n et2 = (EditText)findViewById(R.id.et2);\n tv3 = (TextView)findViewById(R.id.tv3);\n\n spinner = (Spinner)findViewById(R.id.sp);\n String [] opciones = {\"Sumar\",\"Restar\",\"Multiplicar\",\"Dividir\",\"Modulo\"};\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, opciones);\n spinner.setAdapter(adapter);\n\n //r1 = (RadioButton)findViewById(R.id.r1);\n //r2 = (RadioButton)findViewById(R.id.r2);\n //ch1 = (CheckBox)findViewById(R.id.ch1);\n //ch2 = (CheckBox)findViewById(R.id.ch2);\n }",
"private void initializeViews() {\n mAllEditTexts = new ArrayList<>();\n\n mImagesRecyclerView = findViewById(R.id.images_recycler_view);\n mAddPictureBtn = findViewById(R.id.add_picture_btn);\n\n mSaleStatusImage = findViewById(R.id.sale_status_image);\n mSaleStatusImage.setTag(FOR_SALE_TAG);\n\n mTypeSpinner = findViewById(R.id.type_spinner);\n mBedroomsSpinner = findViewById(R.id.rooms_spinner);\n\n mTypeSpinner.setAdapter(new ArrayAdapter<>(this, R.layout.spinner_item, getResources().getStringArray(R.array.spinner_types)));\n mBedroomsSpinner.setAdapter(new ArrayAdapter<>(this, R.layout.spinner_item, getResources().getStringArray(R.array.spinner_number_of_rooms)));\n\n mSurfaceAreaText = findViewById(R.id.surface_area_text1);\n mPriceEditText = findViewById(R.id.price_edit_text1);\n mAddressPostcodeEditText = findViewById(R.id.address_postcode_et1);\n mAddressNumberEditText = findViewById(R.id.address_number_et1);\n mAddressStreetEditText = findViewById(R.id.address_street_et1);\n mAddressTownEditText = findViewById(R.id.address_town_et1);\n mAddressCountyEditText = findViewById(R.id.address_county_et1);\n mDescriptionEditText = findViewById(R.id.description_edit_text1);\n mBuyOrLetSwitch = findViewById(R.id.buy_or_let);\n\n mSaveButton = findViewById(R.id.savebtn);\n\n mAllEditTexts.add(mSurfaceAreaText);\n mAllEditTexts.add(mPriceEditText);\n mAllEditTexts.add(mAddressPostcodeEditText);\n mAllEditTexts.add(mAddressNumberEditText);\n mAllEditTexts.add(mAddressStreetEditText);\n mAllEditTexts.add(mAddressTownEditText);\n mAllEditTexts.add(mAddressCountyEditText);\n mAllEditTexts.add(mDescriptionEditText);\n\n }",
"private void assignControls()\n {\n \ttaskSpinner = (Spinner) findViewById(R.id.taskSpinner);\n \ttaskName = (EditText) findViewById(R.id.txtTaskName);\n \ttaskDetails = (EditText) findViewById(R.id.txtTaskDetails);\n \ttaskId = (EditText) findViewById(R.id.txtTaskId);\n \ttaskId.setEnabled(false); //This is not an editable field\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\tappState = ((MyApplicationData) getApplicationContext());\n\t\n setContentView(R.layout.activity_detail_view);\n receivedPersonInfo = (Contact)getIntent().getSerializableExtra(\"Contact\");\n\n /* Get info from fields*/\n nameField = (EditText) findViewById(R.id.name);\n\taddressField = (EditText) findViewById(R.id.address);\n\tprimbusiness = (Spinner) findViewById(R.id.primbusiness);\n\tprovince= (Spinner) findViewById(R.id.province);\n\n if(receivedPersonInfo != null){\n nameField.setText(receivedPersonInfo.name);\n\t addressField.setText(receivedPersonInfo.address);\n }\n\n\n\t/* Populate spinners*/\n\tArrayAdapter<CharSequence> bus_adapter = ArrayAdapter.createFromResource(this,\n R.array.str_primbusiness, android.R.layout.simple_spinner_item);\n\tbus_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\tprimbusiness.setAdapter(bus_adapter);\n\n\t/* Set to correct position*/\n\tint position = bus_adapter.getPosition(receivedPersonInfo.business);\n\tprimbusiness.getItemAtPosition(position);\n\n\n\tArrayAdapter<CharSequence> prov_adapter = ArrayAdapter.createFromResource(this,\n R.array.str_province, android.R.layout.simple_spinner_item);\n\tprov_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\tprovince.setAdapter(prov_adapter);\n\t\n\t/* Set to correct position*/\n\tposition = prov_adapter.getPosition(receivedPersonInfo.province);\n\tprovince.getItemAtPosition(position); \n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_enter_user_data);\n _name = (EditText) findViewById(R.id.name);\n _birthyear = (NumberPicker) findViewById(R.id.birthYear);\n _gender = (Switch) findViewById(R.id.gender);\n _pregnant = (Switch) findViewById(R.id.pregnant);\n _lactating = (Switch) findViewById(R.id.lactate);\n _weight = (NumberPicker) findViewById(R.id.weightPicker);\n\n setDefaultPersonProfile();\n if (PersonProfile.profileEntered()) {\n readDefaultPersonProfile();\n }\n _name.requestFocusFromTouch();\n UIUtils.ShowKeyboard(this);\n }",
"private void initialise() {\n progressBar = (ProgressBar) view.findViewById(R.id.deliver_page_progress_bar);\n getCurrentAddressButton = (Button) view.findViewById(R.id.get_current_address);\n\n contactPersonEditText = (EditText) view.findViewById(R.id.contact_person);\n phoneNumberEditText = (EditText) view.findViewById(R.id.phone_number);\n emailEditText = (EditText) view.findViewById(R.id.email);\n houseNumberEditText = (EditText) view.findViewById(R.id.house_number);\n streetAddressEditText = (EditText) view.findViewById(R.id.street_address);\n //clearErrors();\n\n\n// normalDeliveryButton.setOnClickListener(this);\n// expressDeliveryButton.setOnClickListener(this);\n getCurrentAddressButton.setOnClickListener(this);\n\n sharedData = SharedData.getSingletonObject();\n\n ApplicationPreferences preferences = new ApplicationPreferences();\n String phone_number = preferences.getUserRegisterPhone(getContext());\n\n phoneNumberEditText.setText(phone_number);\n hideSoftKeyboard();\n }",
"private void setUpSpinners(){\n spinners = new Spinner[spinnerId.length];\n for(int i = 0; i < spinners.length; i++){\n spinners[i] = (Spinner) findViewById(spinnerId[i]);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.instruction_qty, R.layout.spinner_item_inst);\n adapter.setDropDownViewResource(R.layout.spinner_list_dropdown_inst);\n spinners[i].setAdapter(adapter);\n spinners[i].setBackgroundColor(Color.WHITE);\n }\n }",
"private void initialize() {\r\n\r\n\t\tusername = (EditText) findViewById(R.id.user_register);\r\n\t\tfirst_name = (EditText) findViewById(R.id.first_name_register);\r\n\t\tlast_name=(EditText) findViewById(R.id.last_name_register);\r\n\t\tpassword = (EditText) findViewById(R.id.password_register);\r\n\t\temail = (EditText) findViewById(R.id.email_register);\r\n\t\tregister_btn = (Button) findViewById(R.id.btnRegister);\r\n\t\tcollege_name = (Spinner) findViewById(R.id.school_select);\r\n\t\trePassword=(EditText) findViewById(R.id.repassword_register);\r\n\t\tphonenumber=(EditText) findViewById(R.id.phonenumber_register);\r\n\t\tcontext = this;\r\n\t\tprog = new ProgressDialog(context);\r\n\r\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.stepper_motor);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n \n // Spinner initialization code taken from: http://developer.android.com/guide/topics/ui/controls/spinner.html\n Spinner spinner = (Spinner) findViewById(R.id.input_motordirection);\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.input_motordirection, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n spinner.setAdapter(adapter);\n \n final EditText e_pin1=(EditText) findViewById(R.id.input_motorpin1);\n final EditText e_pin2=(EditText) findViewById(R.id.input_motorpin2);\n final EditText e_pin3=(EditText) findViewById(R.id.input_motorpin3);\n final EditText e_pin4=(EditText) findViewById(R.id.input_motorpin4);\n final EditText e_speed=(EditText) findViewById(R.id.input_motorspeed);\n final Spinner e_direction=(Spinner) findViewById(R.id.input_motordirection);\n Button Go=(Button) findViewById(R.id.button2);\n \n Go.setOnClickListener(new View.OnClickListener() {\n\t\t\t\n \t@Override\n \tpublic void onClick (View v) {\n\n \t\tpin1 = e_pin1.getText().toString();\n \t\tpin2 = e_pin2.getText().toString();\n \t\tpin3 = e_pin3.getText().toString();\n \t\tpin4 = e_pin4.getText().toString();\n \t\tspeed = e_speed.getText().toString();\n \t\tdirection = e_direction.getSelectedItem().toString();\n \t\t\t\n \t\tinsert(getApplicationContext());\n \t}\n\n \t});\n }",
"private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }",
"private void initViews(){\n mTitle = (EditText) findViewById(R.id.scheduled_event_title);\n mDescription = (EditText) findViewById(R.id.scheduled_event_description);\n mHour = (EditText) findViewById(R.id.scheduled_event_time_hour);\n mMinute = (EditText) findViewById(R.id.scheduled_event_time_minutes);\n mCategorySpinner = (Spinner) findViewById(R.id.scheduled_spinner_categories);\n mDueDate = (TextView) findViewById(R.id.tv_scheduled_event_due_date);\n mDueTime = (TextView) findViewById(R.id.tv_scheduled_event_due_time);\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState){\r\n\t\tIntent resultIntent = new Intent();\r\n\t\tresultIntent.putExtra(\"changed\", true);\r\n\t\tsetResult(Activity.RESULT_OK, resultIntent);\r\n\t\tsettings = (ApplicationSettings)this.getApplication();\r\n myVib = (Vibrator) this.getSystemService(VIBRATOR_SERVICE);\r\n \r\n \tsetTheme(android.R.style.Theme_Light_NoTitleBar);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.postsettings);\r\n s = (Spinner) findViewById(R.id.spinner1);\r\n SliderDefault = (Spinner) findViewById(R.id.spinner2);\r\n \r\n ArrayAdapter<String> fontSizes = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item);\r\n fontSizes.add(\"12\");\r\n fontSizes.add(\"13\");\r\n fontSizes.add(\"14\");\r\n fontSizes.add(\"15 (Default)\");\r\n fontSizes.add(\"16\");\r\n fontSizes.add(\"17\");\r\n fontSizes.add(\"18\");\r\n fontSizes.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n final SpinnerAdapter spin = fontSizes;\r\n \r\n ArrayAdapter<String> slidingCategories = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item);\r\n slidingCategories.add(\"None (default)\");\r\n slidingCategories.add(\"Bloggers\");\r\n slidingCategories.add(\"Podcasts\");\r\n slidingCategories.add(\"Videos\");\r\n slidingCategories.add(\"Communities\");\r\n slidingCategories.add(\"Companies\");\r\n slidingCategories.add(\"Events\");\r\n slidingCategories.add(\"Jobs\");\r\n slidingCategories.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n final SpinnerAdapter spinSlider = slidingCategories;\r\n \r\n /* \r\n user = (EditText)findViewById(R.id.usr);\r\n password = (EditText)findViewById(R.id.pwd);\r\n ok=(Button)findViewById(R.id.btn_login);\r\n error=(TextView)findViewById(R.id.tv_error);\r\n */\r\n \r\n haptic = (CheckBox) findViewById(R.id.haptic);\r\n haptic.setOnCheckedChangeListener(new OnCheckedChangeListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\r\n\t\t\twriteSettingsToFile();\r\n\t\t\t}\r\n \t\r\n });\r\n /*\r\n ok.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n \tArrayList<NameValuePair> postParameters = new ArrayList<NameValuePair>();\r\n \tpostParameters.add(new BasicNameValuePair(\"signin_email\", user.getText().toString()));\r\n \tpostParameters.add(new BasicNameValuePair(\"signin_password\", password.getText().toString()));\r\n\r\n \tString response = null;\r\n \ttry {\r\n \t response = CustomHttpClient.executeHttpPost(\"http://www.softwaretestingclub.com/main/authorization/signIn\", postParameters);\r\n \t String res=response.toString();\r\n \t res= res.replaceAll(\"\\\\s+\",\"\");\r\n \t if(res.equals(\"1\"))\r\n \t \terror.setText(\"Correct username or password\");\r\n \t else\r\n \t \terror.setText(\"Incorrect mail or password\");\r\n \t} catch (Exception e) {\r\n \t\tun.setText(e.toString());\r\n \t}\r\n\r\n }\r\n });*/\r\n \r\n s.setAdapter(spin);\r\n s.setOnItemSelectedListener(new OnItemSelectedListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\r\n\t\t\t\twriteSettingsToFile();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t}\r\n \t\r\n });\r\n \r\n SliderDefault.setAdapter(spinSlider);\r\n SliderDefault.setOnItemSelectedListener(new OnItemSelectedListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\r\n\t\t\t\twriteSettingsToFile();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\r\n\t\t\t}\r\n \t\r\n });\r\n \r\n\t\tloadSettingsFromFile();\r\n\r\n\r\n \r\n ImageView logo = (ImageView) findViewById(R.id.imageView2);\r\n logo.setOnClickListener(new OnClickListener(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tif (settings.getVibrateEnabled()){\r\n\t\t\t\t\tmyVib.vibrate(50);\r\n\t\t\t\t}\r\n\t\t//\t\tIntent i2 = new Intent(PostSettingsActivity.this, DashboardActivity.class);\r\n\t\t//\t\tstartActivity(i2);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n \t\r\n });\r\n \tImageButton home = (ImageButton) findViewById(R.id.home);\r\n\t\thome.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tif (settings.getVibrateEnabled()) {\r\n\t\t\t\t\tmyVib.vibrate(50);\r\n\t\t\t\t}\r\n\t\t\t\tIntent i2 = new Intent(PostSettingsActivity.this, DashboardActivity.class);\r\n\t\t\t\ti2.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n\t\t\t\tstartActivity(i2);\r\n\t\t\t\tfinish();\r\n\t\t\t}\r\n\t\t});\r\n\t\tImageButton about = (ImageButton) findViewById(R.id.about);\r\n\t\tabout.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tif (settings.getVibrateEnabled()) {\r\n\t\t\t\t\tmyVib.vibrate(50);\r\n\t\t\t\t}\r\n\t\t\t\tIntent i2 = new Intent(PostSettingsActivity.this, AboutActivity.class);\r\n\t\t\t\tstartActivity(i2);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void setupSpinner() {\n // Create adapter for spinner. The list options are from the String array it will use\n // the spinner will use the default layout\n ArrayAdapter supplierSpinnerAdapter = ArrayAdapter.createFromResource(this,\n R.array.array_supplier_options, android.R.layout.simple_spinner_item);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n supplierSpinnerAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n\n // Apply the adapter to the spinner\n mSupplierSpinner.setAdapter(supplierSpinnerAdapter);\n\n // Set the integer mSelected to the constant values\n mSupplierSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition(position);\n if (!TextUtils.isEmpty(selection)) {\n if (selection.equals(getString(R.string.supplier_one))) {\n mSupplier = BookEntry.SUPPLIER_ONE;\n } else if (selection.equals(getString(R.string.supplier_two))) {\n mSupplier = BookEntry.SUPPLIER_TWO;\n } else {\n mSupplier = BookEntry.SUPPLIER_UNKNOWN;\n }\n }\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n mSupplier = BookEntry.SUPPLIER_UNKNOWN;\n }\n });\n }",
"private void initInstances(View rootView) {\n editText_CompanyAddress = (EditText) rootView.findViewById(R.id.editText_CompanyAddress);\n editText_CompanyName = (EditText) rootView.findViewById(R.id.editText_CompanyName);\n editText_Telephone = (EditText) rootView.findViewById(R.id.editText_Telephone);\n editText_Name_TAXID = (EditText)rootView.findViewById(R.id.editText_Name_TAXID);\n editText_Name_Division = (EditText)rootView.findViewById(R.id.editText_Name_Division);\n editText_Name_RegisterID = (EditText)rootView.findViewById(R.id.editText_Name_RegisterID);\n editText_Name_ENDbillText = (EditText)rootView.findViewById(R.id.editText_Name_ENDbillText);\n editText_Name_VATRate = (EditText)rootView.findViewById(R.id.editText_Name_VATRate);\n btn_UpdateCompany = (ButtonRectangle) rootView.findViewById(R.id.btn_UpdateCompany);\n btn_back = (ImageButton)rootView.findViewById(R.id.btn_back);\n btn_back.setOnClickListener(this);\n btn_UpdateCompany.setOnClickListener(this);\n btn_UpdateCompany.setRippleSpeed(25);\n\n\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tsetContentView(R.layout.config_fullscreen);\n\t\t\n\t\tsharedPreferences = getSharedPreferences(\"My_pref\", Activity.MODE_PRIVATE);\n\t\t\n\t\tlogin = (EditText)findViewById(R.id.editTextLogin);\n\t\tlogin.setText(sharedPreferences.getString(\"loginSaved\", \"Login\"));\n\t\t\n\t\tpassword = (EditText)findViewById(R.id.editTextPassword);\n\t\tpassword.setText(\"Password\");\n\t\t\n\t\tnameSurname = (EditText)findViewById(R.id.editTextNameSurname);\n\t\tstreet = (EditText)findViewById(R.id.editTextStreet); \n\t\tcity = (EditText)findViewById(R.id.editTextCity); \n\t\tpostalCode = (EditText)findViewById(R.id.editTextPostalCode);\n\t\tphoneNumber = (EditText)findViewById(R.id.editTextPhoneNumber);\n\t\temail = (EditText)findViewById(R.id.editTextEmail);\n\t\tspin1 = (Spinner)findViewById(R.id.spinner1);\n\t\tspin2 = (Spinner)findViewById(R.id.spinner2);\t\n\t\tspin3 = (Spinner)findViewById(R.id.spinner3);\n\t\t\n\t\tif (connected) {\n\t\t\t\n\t\t\tnameSurname.setText(sharedPreferences.getString(\"nameSurnameSaved\", \"Name & Surname\"));\n\t\t\tstreet.setText(sharedPreferences.getString(\"streetSaved\", \"Street ...\"));\n\t\t\tcity.setText(sharedPreferences.getString(\"citySaved\", \"City ...\"));\n\t\t\tpostalCode.setText(sharedPreferences.getString(\"postalCodeSaved\", \"Postal code ...\"));\n\t\t\tphoneNumber.setText(sharedPreferences.getString(\"phoneNumberSaved\", \"Email\"));\n\t\t\temail.setText(sharedPreferences.getString(\"emailSaved\", \"Phone number\"));\n\t\t\tspin1.setSelection(((ArrayAdapter<String>)spin1.getAdapter()).getPosition(sharedPreferences.getString(\"spin1Saved\", \"Favorite pizza 1st : Reine\")));\n\t\t\tspin2.setSelection(((ArrayAdapter<String>)spin1.getAdapter()).getPosition(sharedPreferences.getString(\"spin2Saved\", \"Favorite pizza 1st : Reine\")));\n\t\t\tspin3.setSelection(((ArrayAdapter<String>)spin1.getAdapter()).getPosition(sharedPreferences.getString(\"spin3Saved\", \"Favorite pizza 1st : Reine\")));\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tnameSurname.setClickable(false);\n\t\t\tnameSurname.setEnabled(false);\n\t\t\t\n\t\t\tstreet.setClickable(false);\n\t\t\tstreet.setEnabled(false);\n\t\t\t\n\t\t\tcity.setClickable(false);\n\t\t\tcity.setEnabled(false);\n\t\t\t\n\t\t\tpostalCode.setClickable(false);\n\t\t\tpostalCode.setEnabled(false);\n\t\t\t\n\t\t\tphoneNumber.setClickable(false);\n\t\t\tphoneNumber.setEnabled(false);\n\t\t\t\n\t\t\temail.setClickable(false);\n\t\t\temail.setEnabled(false);\n\t\t\t\n\t\t\tspin1.setClickable(false);\n\t\t\tspin1.setEnabled(false);\n\t\t\t\n\t\t\tspin2.setClickable(false);\n\t\t\tspin2.setEnabled(false);\n\t\t\t\n\t\t\tspin3.setClickable(false);\n\t\t\tspin3.setEnabled(false);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_new_car);\n\n // Set up variables for accessing the elements of the view\n nameTextView = (TextView) findViewById(R.id.nickname_text);\n yearSpinner = (Spinner) findViewById(R.id.year_spinner);\n makeSpinner = (Spinner) findViewById(R.id.make_spinner);\n modelSpinner = (Spinner) findViewById(R.id.model_spinner);\n trimSpinner = (Spinner) findViewById(R.id.trim_spinner);\n textView = (TextView) findViewById(R.id.car_info);\n\n // Create a blank car object and object for accessing CarQueryAPI\n newCar = new Car();\n cars = new Cars(this);\n carQuery = new CarQueryAPI();\n\n // Listen for changes to the spinners\n yearSpinner.setOnItemSelectedListener(this);\n makeSpinner.setOnItemSelectedListener(this);\n modelSpinner.setOnItemSelectedListener(this);\n trimSpinner.setOnItemSelectedListener(this);\n\n // Start by populating the year spinner\n try {\n populateYearSpinner();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onCreate (Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.register);\n this.user = (EditText) findViewById(R.id.email);\n this.password = (EditText) findViewById(R.id.pass);\n this.rpassword = (EditText) findViewById(R.id.repeat_pass);\n this.name = (EditText) findViewById(R.id.name);\n\n spinnerDialog = new LoadingSpinnerDialog();\n receiver = null;\n // Create an ArrayAdapter using the string array and a default spinner layout\n ArrayAdapter<CharSequence> adapter = ArrayAdapter\n .createFromResource(this, R.array.genders, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n this.datePicker = new DatePickerFragment();\n this.gender = (Spinner) findViewById(R.id.gender);\n gender.setAdapter(adapter);\n gender.setOnItemSelectedListener(this);\n genderSelected = \"Male\";\n\n this.register = (Button) findViewById(R.id.register);\n this.date = (Button) findViewById(R.id.date);\n this.register.setOnClickListener(this);\n this.date.setOnClickListener(this);\n }",
"private void initialize() {\n name = (EditText) mRootView.findViewById(R.id.name_value);\n price = (EditText) mRootView.findViewById(R.id.price_value);\n calories = (EditText) mRootView.findViewById(R.id.calories_value);\n carbs = (EditText) mRootView.findViewById(R.id.carbs_value);\n totalFat = (EditText) mRootView.findViewById(R.id.total_fat_value);\n saturatedFat = (EditText) mRootView.findViewById(R.id.sat_fat_value);\n protein = (EditText) mRootView.findViewById(R.id.protein_value);\n sodium = (EditText) mRootView.findViewById(R.id.sodium_value);\n cholesterol = (EditText) mRootView.findViewById(R.id.cholesterol_value);\n dietaryFiber = (EditText) mRootView.findViewById(R.id.fiber_value);\n sugar = (EditText) mRootView.findViewById(R.id.sugar_value);\n addMeal = (Button) mRootView.findViewById(R.id.button_add_meal);\n\n addMeal.setOnClickListener(this);\n }",
"private void initializeVariables() {\n\t\tseekBar = (SeekBar) findViewById(R.id.seekBar1);\n\t\ttextView = (TextView) findViewById(R.id.finishText);\n\t\tspinner = (Spinner) findViewById(R.id.algorithm);\n\t\tsetSeekBarListener();\n\t\taddListenerOnAlgorithmSelection();\n\t}",
"@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}",
"private void initViews(){\n // Parent View\n view = findViewById(android.R.id.content);\n\n // Initialize toolbar\n cancelBtn = findViewById(R.id.close_btn);\n createBtn = findViewById(R.id.submit_btn);\n TextView toolbarTitle = findViewById(R.id.title);\n toolbarTitle.setText(getString(R.string.create_new_booking));\n\n pickupLocationInput = findViewById(R.id.pickup_location_input);\n destinationInput = findViewById(R.id.destination_input);\n timeInput = findViewById(R.id.time_input);\n noPassengersInput = findViewById(R.id.number_of_passengers_input);\n notesInput = findViewById(R.id.notes_input);\n progressIndicator = findViewById(R.id.progress_indicator_overlay);\n\n pickupLocationInputContainer = findViewById(R.id.pickup_location_input_container);\n destinationInputContainer = findViewById(R.id.destination_input_container);\n timeInputContainer = findViewById(R.id.time_input_container);\n noPassengersInputContainer = findViewById(R.id.number_of_passengers_input_container);\n notesInputContainer = findViewById(R.id.notes_input_container);\n\n\n // Set Default Value of No_Passengers to 1\n noPassengersInput.setText(\"1\");\n\n // Set the default value of desired time to 15 mins from NOW\n Calendar cal = Calendar.getInstance();\n cal.add(Calendar.MINUTE, 15);\n bookingHour = cal.get(Calendar.HOUR_OF_DAY);\n bookingMinute = cal.get(Calendar.MINUTE);\n\n timeInput.setText(getString(R.string.desired_time_format, bookingHour, bookingMinute));\n\n // Add behaviour to relevant views\n noPassengersInput.setOnClickListener(this::showNumberPickerDialog);\n timeInput.setOnClickListener(v -> showTimePicker());\n cancelBtn.setOnClickListener(v -> cancel());\n createBtn.setOnClickListener(v -> createBooking());\n }",
"private void setupSpinners() {\n\n ArrayAdapter<String> statesAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, states);\n\n // Specify dropdown layout style - simple list view with 1 item per line\n statesAdapter.setDropDownViewResource(android.R.layout.simple_dropdown_item_1line);\n // Apply the adapter to the spinner\n statesAdapter.notifyDataSetChanged();\n mStateSpinner.setAdapter(statesAdapter);\n\n // Set the integer mSelected to the constant values\n mStateSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n mState = (String) parent.getItemAtPosition(position);\n setUpStatesSpinner(position);\n }\n\n // Because AdapterView is an abstract class, onNothingSelected must be defined\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // Unknown\n }\n });\n }",
"private void createSpinners() {\n\t\tsuper.addSpinner(myResources.getString(\"FishReproduce\"));\n\t\tsuper.addSpinner(myResources.getString(\"SharkDeath\"));\n\t\tsuper.addSpinner(myResources.getString(\"SharkReproduce\"));\n\t}",
"private void initControlUI() {\n typeAdapter = new SpinnerSimpleAdapter(self, android.R.layout.simple_spinner_item, self.getResources().getStringArray(R.array.arr_feedback_type));\n spnType.setAdapter(typeAdapter);\n }",
"private void init(Bundle savedInstanceState) {\n selectedOption = SelectedOption.getInstance();\r\n }",
"public void initObjects() {\n /*\n using findViewById references to the todoTitleEdittext,todoDateEditText,todoDescriptionEditText,saveTodoButton to from layout\n */\n todoTitleEditText = (EditText) findViewById(R.id.editText_todo_title);\n todoDateEditText = (EditText) findViewById(R.id.editText_todo_date);\n todoDescriptionEditText = (EditText) findViewById(R.id.editText_todo_description);\n saveTodoButton = (Button) findViewById(R.id.button_save_todo);\n }",
"public void init()\n {\n quizText = (TextView)findViewById(R.id.sportQuiz);\n setAnimationToQuizName();\n nameEditText = (EditText)findViewById(R.id.nameEditText);\n startButton = (Button)findViewById(R.id.startButtonView);\n }",
"private void initViews() {\n mCancelButton.setOnClickListener(view -> getDialog().dismiss());\n\n mSaveButton.setOnClickListener(view -> {\n //Check if callback is attached or not\n if (mCallback != null) {\n mCallback.onOptionsFiltered(SELECTED_TIME_OPTION);\n }\n getDialog().dismiss();\n });\n\n //Initialize Spinner adapter\n ArrayAdapter<String> adapter = new ArrayAdapter<>(getActivity(), android.R.layout.simple_spinner_item, Constants.TIME_OPTIONS);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mTimeOptionsSpinner.setAdapter(adapter);\n\n mTimeOptionsSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n SELECTED_TIME_OPTION = i;\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n SELECTED_TIME_OPTION = 0;\n }\n });\n\n mTimeOptionsSpinner.setSelection(SELECTED_TIME_OPTION);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main_one);\n\n input = (EditText) findViewById(R.id.edit);\n output = (TextView) findViewById(R.id.out);\n\n PrefUtil.getPrefs(this).registerOnSharedPreferenceChangeListener(this);\n }",
"public void setupSpinner()\n {\n if (spinnerAdapter == null)\n {\n spinnerAdapter = new StringSpinnerAdapter(spinner, R.array.graph_period_spinner_values);\n }\n\n spinner.setOnItemSelectedListener(this);\n spinner.setAdapter(spinnerAdapter);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.reading);\n\t\tspinner = (Spinner)findViewById(R.id.spinner1);\n\t\ttitle = (TextView)findViewById(R.id.textView1);\n\t\tentry = (TextView)findViewById(R.id.textView2);\n\t\tgetFilenames();\n\t}",
"protected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.register);\n\n\t\treg=(Button)findViewById(R.id.button1);\n\n\t\tustxt=(EditText)findViewById(R.id.editText1);\n\t\tnptxt=(EditText)findViewById(R.id.editText2);\n\t\tcnptxt=(EditText)findViewById(R.id.editText3);\n\t\tsqtxt = (Spinner) findViewById(R.id.editText4);\n\n\t\tanstxt=(EditText)findViewById(R.id.editText5);\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_dropdown_item,qs);\n\t\tsqtxt.setAdapter(adapter);\n\n\t\tsqtxt.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t//seq=sqtxt.getOnItemSelectedListener().toString();\n\n\n\t\t\t\treg.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\t\t\tuser=ustxt.getText().toString();\n\t\t\t\t\t\tpaswrd=nptxt.getText().toString();\n\t\t\t\t\t\tcnpaswrd=cnptxt.getText().toString();\n\t\t\t\t\t\tString seq=sqtxt.getSelectedItem().toString();\n\t\t\t\t\t\tans=anstxt.getText().toString();\n\n\t\t\t\t\t\tif(paswrd.equals(cnpaswrd))\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\tSharedPreferences spf=getSharedPreferences(\"regdet\",MODE_WORLD_WRITEABLE);\n\t\t\t\t\t\t\tEditor regis=spf.edit();\n\t\t\t\t\t\t\tregis.putString(\"username\", user);\n\t\t\t\t\t\t\tregis.putString(\"Newpassword\", paswrd);\n\t\t\t\t\t\t\tregis.putString(\"Sequrity\", seq);\n\t\t\t\t\t\t\tregis.putString(\"Answer\", ans);\n\n\t\t\t\t\t\t\tregis.commit();\n\t\t\t\t\t\t\tIntent in=new Intent(getApplicationContext(),entry.class);\n\t\t\t\t\t\t\tstartActivity(in);\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\tToast.makeText(getApplicationContext(),\"password and confirm password did not match\" ,Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\t\t\t\tToast.makeText(getApplicationContext(),\"You selected nothing:\" ,Toast.LENGTH_LONG).show();\n\n\t\t\t}\n\t\t});}",
"@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.woodlot_input);\n\n Intent intent = getIntent();\n isEdit = intent.getBooleanExtra(QuadratScreen.EXTRA_ISEDIT, false);\n\n this.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);\n\n nameEdit = (EditText) findViewById(R.id.woodlotNameEntry);\n numStandsEdit = (EditText) findViewById(R.id.woodlotStandInput);\n cancelButton = (Button) findViewById(R.id.woodlotCancel);\n acceptButton = (Button) findViewById(R.id.woodlotAccept);\n\n if(isEdit)\n {\n Woodlot currWoodlot = WCCCProgram.getCurrWoodlot();\n nameEdit.setText(currWoodlot.getName());\n Integer oldNumStands = currWoodlot.getStands().size();\n numStandsEdit.setText(oldNumStands.toString());\n }\n addListeners();\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tLog.d(USER_TAG, \"onCreate - MainActivity\");\n\t\tsetContentView(R.layout.activity_main);\n\n\t\tfinal ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar);\n\t\tactionBar.setHomeAction(new IntentAction(this, createIntent(this),\n\t\t\t\tR.drawable.ic_launcher));\n\t\tactionBar.setTitle(R.string.title_activity_main);\n\t\tactionBar.addAction(new IntentAction(this, createShareIntent(),\n\t\t\t\tR.drawable.ic_title_share_default));\n\t\tactionBar.addAction(new IntentAction(this, new Intent(this,\n\t\t\t\tFragmentPreferences.class), R.drawable.ic_action_settings));\n\t\tactionBar.addAction(new IntentAction(this, new Intent(this,\n\t\t\t\tAboutActivity.class), R.drawable.ic_action_help));\n\n\t\taccelSpinner = (Spinner) findViewById(R.id.accelSpinner);\n\t\tgyroSpinner = (Spinner) findViewById(R.id.gyroSpinner);\n\t\tmagneSpinner = (Spinner) findViewById(R.id.magneSpinner);\n\t\tlightSpinner = (Spinner) findViewById(R.id.lightSpinner);\n\n\t\t// Restore preferences\n\t\tSP = getSharedPreferences(PREFS_NAME, Activity.MODE_PRIVATE);\n\n\t\t// Get delay from preferences\n\t\taccelSpinnerDelay = SP.getInt(\"accelSpinnerDelay\", 3);\n\t\tgyroSpinnerDelay = SP.getInt(\"gyroSpinnerDelay\", 3);\n\t\tmagneSpinnerDelay = SP.getInt(\"magneSpinnerDelay\", 3);\n\t\tlightSpinnerDelay = SP.getInt(\"lightSpinnerDelay\", 3);\n\n\t\tArrayAdapter<CharSequence> accelAdapter = ArrayAdapter\n\t\t\t\t.createFromResource(this, R.array.accelSpinner,\n\t\t\t\t\t\tandroid.R.layout.simple_spinner_item);\n\n\t\tArrayAdapter<CharSequence> gyroAdapter = ArrayAdapter\n\t\t\t\t.createFromResource(this, R.array.gyroSpinner,\n\t\t\t\t\t\tandroid.R.layout.simple_spinner_item);\n\n\t\tArrayAdapter<CharSequence> magneAdapter = ArrayAdapter\n\t\t\t\t.createFromResource(this, R.array.magneSpinner,\n\t\t\t\t\t\tandroid.R.layout.simple_spinner_item);\n\n\t\tArrayAdapter<CharSequence> lightAdapter = ArrayAdapter\n\t\t\t\t.createFromResource(this, R.array.lightSpinner,\n\t\t\t\t\t\tandroid.R.layout.simple_spinner_item);\n\n\t\taccelAdapter\n\t\t\t\t.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\taccelSpinner.setAdapter(accelAdapter);\n\t\taccelSpinner.setSelection(accelSpinnerDelay);\n\n\t\tgyroAdapter\n\t\t\t\t.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tgyroSpinner.setAdapter(gyroAdapter);\n\t\tgyroSpinner.setSelection(gyroSpinnerDelay);\n\n\t\tmagneAdapter\n\t\t\t\t.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tmagneSpinner.setAdapter(magneAdapter);\n\t\tmagneSpinner.setSelection(magneSpinnerDelay);\n\n\t\tlightAdapter\n\t\t\t\t.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\tlightSpinner.setAdapter(lightAdapter);\n\t\tlightSpinner.setSelection(lightSpinnerDelay);\n\n\t\t/** ACCEL_spinner.setOnItemSelectedListene Called */\n\t\taccelSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\taccelSpinnerDelay = arg0.getSelectedItemPosition();\n\n\t\t\t\t// storing string resources into Array\n\t\t\t\taccelSpinnerString = getResources().getStringArray(\n\t\t\t\t\t\tR.array.accelSpinner);\n\n\t\t\t\t/** Called by onCreate within spinner event */\n\t\t\t\taccelSpinnerDelay(accelSpinnerDelay);\n\n\t\t\t}\n\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}\n\t\t});\n\n\t\t/** GYRO_spinner.setOnItemSelectedListene Called */\n\t\tgyroSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tgyroSpinnerDelay = arg0.getSelectedItemPosition();\n\n\t\t\t\tgyroSpinnerString = getResources().getStringArray(\n\t\t\t\t\t\tR.array.gyroSpinner);\n\n\t\t\t\tgyroSpinnerDelay(gyroSpinnerDelay);\n\t\t\t}\n\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}\n\t\t});\n\n\t\t/** MAGNE_spinner.setOnItemSelectedListene Called */\n\t\tmagneSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tmagneSpinnerDelay = arg0.getSelectedItemPosition();\n\n\t\t\t\tmagneSpinnerString = getResources().getStringArray(\n\t\t\t\t\t\tR.array.magneSpinner);\n\n\t\t\t\tmagneSpinnerDelay(magneSpinnerDelay);\n\t\t\t}\n\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}\n\t\t});\n\n\t\t/** LIGHT_spinner.setOnItemSelectedListene Called */\n\t\tlightSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tlightSpinnerDelay = arg0.getSelectedItemPosition();\n\n\t\t\t\tlightSpinnerString = getResources().getStringArray(\n\t\t\t\t\t\tR.array.lightSpinner);\n\n\t\t\t\tlightSpinnerDelay(lightSpinnerDelay);\n\t\t\t}\n\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\n\t\t\t}\n\t\t});\n\n\t\tfor (int i = 0; i < xyzFieldLength; i++) {\n\t\t\taccelTextFields[i] = (TextView) findViewById(accelFields[i]);\n\t\t\tgyroTextFields[i] = (TextView) findViewById(gyroFields[i]);\n\t\t\tmagneTextFields[i] = (TextView) findViewById(magneFields[i]);\n\t\t}\n\t\tlightTextField = (TextView) findViewById(lightField);\n\t\taccel_delayField = (TextView) findViewById(accel_delayValue);\n\t\tgyro_delayField = (TextView) findViewById(gyro_delayValue);\n\t\tmagne_delayField = (TextView) findViewById(magne_delayValue);\n\t\tlight_delayField = (TextView) findViewById(light_delayValue);\n\n\t\ttoggleServiceButton = (ToggleButton) findViewById(R.id.toggleServiceButton);\n\n\t\tsetupBroadcastReceiver();\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(getViewId());\n\t\t\n\t\tObject data = getLastNonConfigurationInstance();\n\t\tif (data != null) {\n\t\t\texpense = (Expense) data;\n\t\t} else {\n\t\t\texpense = new Expense();\n\t\t\texpense.setExpensePurpose(ExpensePurpose.Personal);\n\t\t}\n\t\t\n\t\tfindUIComponents();\n\t\t\n\t\tsetupPayeesSpinnerData();\n\t\tsetupExpenseGroupsSpinnerData();\n\t\tsetupPaymentMethodsSpinnerData();\n\t\t\n\t\texpenseGroupsSpinner.setOnItemSelectedListener(this);\n\t\tchangeDateButton.setOnClickListener(this);\n\n\t\t// add a click listener to the button\n//\t\tchangeDateButton.setOnClickListener(new View.OnClickListener() {\n//\t\t\tpublic void onClick(View v) {\n//\t\t\t\tshowDialog(DATE_DIALOG_ID);\n//\t\t\t}\n//\t\t});\n\n\t\t\n\t\tokButton.setOnClickListener(this);\n\t\tcancelButton.setOnClickListener(this);\n\t\tphotoButton.setOnClickListener(this);\n\t\tselectExpenseType.setOnClickListener(this);\n\t\t\n\t\tinitializeAmountChangeListener();\n\n\t\tinitializeDate();\n\t\t\n\t\tif (data != null) {\n\t\t\tpopulateViewFromModel();\n\t\t} \n\t\t\n\t\tinitializePaymentMethodSelectionListener();\n\t\t\t\n\t}",
"private void initUI() {\n mEditTextFatherName = findViewById(R.id.editTextKycParentsAndSpouseInfoFatherName);\n mEditTextMotherName = findViewById(R.id.editTextKycParentsAndSpouseInfoMotherName);\n mEditTextSpouseTitle = findViewById(R.id.editTextKycParentsAndSpouseInfoSpouseTitle);\n mEditTextSpouseName = findViewById(R.id.editTextKycParentsAndSpouseInfoSpouseName);\n mBtnSubmit = findViewById(R.id.btnKycParentsAndSpouseUpdateSubmit);\n mBtnSubmit.setOnClickListener(this);\n mTextViewShowServerResponse = findViewById(R.id.textViewKycParentsAndSpouseInfoServerResponse);\n mStrMasterKey = GlobalData.getStrMasterKey();\n\n if (getSupportActionBar() != null) {\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }\n\n checkInternet();\n mEditTextFatherName.setText(GlobalData.getStrKYCPersonalAndSpourFathername());\n mEditTextMotherName.setText(GlobalData.getStrKYCPersonalAndSpouseMotherName());\n mEditTextSpouseTitle.setText(GlobalData.getStrKYCPersonalAndSpouseTitle());\n mEditTextSpouseName.setText(GlobalData.getStrKYCPersonalAndSpouseName());\n\n }",
"public void init() {\n initProperties();\n edtLogradouro = (TextInputEditText) findViewById(R.id.edtLogradouro);\n edtNumero = (TextInputEditText) findViewById(R.id.edtNumero);\n edtBairro = (TextInputEditText) findViewById(R.id.edtBairro);\n edtComplemento = (TextInputEditText) findViewById(R.id.edtComplemento);\n btnCadastrarEndereco = (Button) findViewById(R.id.btnCadastrarEndereco);\n mToolbar = (Toolbar) findViewById(R.id.nav_action);\n mToolbar.setTitle(\"Complete o endereço\");\n setSupportActionBar(mToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n }",
"public void setOnClickListeners() {\n // Region Spinner\n regionSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedRegion = regionSpinner.getSelectedItem().toString();\n\n if (!selectedRegion.equals(\"Choose Region...\")) {\n int selectedRegionID = 0;\n for (RegionsResponse.Regions region : regionsList) {\n if (region.getRegionName().equals(selectedRegion))\n selectedRegionID = region.getRegionId();\n }\n districtSpinner.setEnabled(true);\n populateDistricts(selectedRegionID);\n } else {\n populateDistricts(0);\n districtSpinner.setSelection(0);\n districtSpinner.setEnabled(false);\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n // District Spinner\n districtSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedDistrict = districtSpinner.getSelectedItem().toString();\n int selectedDistrictID = 0;\n if (!selectedDistrict.equals(\"Choose District...\")) {\n for (RegionsResponse.Regions region : regionsList) {\n if (region.getRegionName().equals(selectedDistrict))\n selectedDistrictID = region.getRegionId();\n }\n suburbSpinner.setEnabled(true);\n populateSuburbs(selectedDistrictID);\n\n } else {\n suburbSpinner.setSelection(0);\n suburbSpinner.setEnabled(false);\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n // Method of sale value\n methodOfSaleEditText.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (methodOfSaleSpinner.getSelectedItem().toString().equals(ApplicationConstants.MOS_AUCTIONED))\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n // Method of sale Spinner\n methodOfSaleSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedMethodOfSale = methodOfSaleSpinner.getSelectedItem().toString();\n methodOfSaleEditText.setVisibility(View.VISIBLE);\n switch (selectedMethodOfSale) {\n case ApplicationConstants.MOS_ASKING:\n\n break;\n case ApplicationConstants.MOS_AUCTIONED:\n\n break;\n case ApplicationConstants.MOS_ENQUIRIES:\n\n break;\n case ApplicationConstants.MOS_NEGOTIATION:\n methodOfSaleEditText.setVisibility(View.GONE);\n break;\n default:\n methodOfSaleEditText.setVisibility(View.GONE);\n break;\n }\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n\n ohDate1.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n ohDate2.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n ohDate3.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n ohDate4.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n ohDate5.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus)\n showDateTimePickerDialog((EditText) v);\n }\n });\n\n// ohDate3.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n// @Override\n// public void onFocusChange(View v, boolean hasFocus) {\n// if (hasFocus)\n// showDateTimePickerDialog((EditText) v);\n// }\n// });\n\n addPropertyButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n validator.validate();\n }\n });\n\n// addSecurityGuidelinesCheckbox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n// @Override\n// public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n// if (isChecked)\n// securityGuidelinesLayout.setVisibility(View.VISIBLE);\n// else\n// securityGuidelinesLayout.setVisibility(View.GONE);\n// }\n// });\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\t\r\n\t\tsetContentView(R.layout.activity_cadastro_servico);\r\n\t\t\r\n\t\tpreencherSpinner();\r\n//\t\tbuscarAcompanhate(usuarioLogado);\r\n\t\tadicionarFindView();\r\n\t\tadicionarListers();\r\n//\t\tDouble.valueOf(editValor.getText().toString()).doubleValue();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tspinnerServicos.setOnItemSelectedListener(new OnItemSelectedListener() {\r\n\r\n\t public void onItemSelected(AdapterView<?> arg0,View arg1, int arg2, long arg3) {\r\n\t \r\n\t \tservico = (Servico) arg0.getItemAtPosition(arg2);\r\n\t \t\r\n\t \tToast.makeText(CadastroServicoActivity.this, \"Serviço Selecionado: \" +\r\n\t \t\t\t\t\t\t\t\t\tservico.getNome(), Toast.LENGTH_LONG).show();\r\n\t \t\r\n\t \tservicoAcompanhante.setServicoId(servico.getId());\r\n\t \t\r\n\t \tLog.i(\"teste\", \"oii \" + servicoAcompanhante.getServicoId());\r\n\t }\r\n\r\n\t public void onNothingSelected(\r\n\t AdapterView<?> arg0) { \r\n\t }\r\n\t \r\n\t });\r\n\r\n\t\tsuper.onCreate(savedInstanceState);\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 }",
"private void buildSpinners() {\n // assign spinner with resource id\n liquor1 = (Spinner)findViewById(R.id.liquor1);\n liquor2 = (Spinner)findViewById(R.id.liquor2);\n liquor3 = (Spinner)findViewById(R.id.liquor3);\n liquor4 = (Spinner)findViewById(R.id.liquor4);\n liquor5 = (Spinner)findViewById(R.id.liquor5);\n\n // create array of spinners to facilitate associations\n spinnerArrayList.add(liquor1);\n spinnerArrayList.add(liquor2);\n spinnerArrayList.add(liquor3);\n spinnerArrayList.add(liquor4);\n spinnerArrayList.add(liquor5);\n\n // build specific spinners for each type of liquor\n for (int i = 0; i < numLiquors; i++) {\n liquorString[i] = liquorList.get(i);\n assignSpinner(i + 1, liquorString[i]);\n }\n }",
"@Override\n protected void onResume() {\n super.onResume();\n setCheckedBoxes();\n }",
"private void SpinnerInitialize() {\n try{\n Spinner dropdownto = findViewById(R.id.tonumbercountrycode);\n\n//create an adapter to describe how the items are displayed, adapters are used in several places in android.\n//There are multiple variations of this, but this is the basic variant.\n ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, countrycodes);\n//set the spinners adapter to the previously created one.\n\n dropdownto.setAdapter(adapter);\n dropdownto.setSelection(0,true);\n\n Spinner dropdownfrom = findViewById(R.id.fromnumbercountrycode);\n\n//create an adapter to describe how the items are displayed, adapters are used in several places in android.\n//There are multiple variations of this, but this is the basic variant.\n // ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_dropdown_item, countrycodes);\n//set the spinners adapter to the previously created one.\n\n dropdownfrom.setAdapter(adapter);\n dropdownfrom.setSelection(0,true);\n }\n catch (Exception ex){\n Toast.makeText(InsertDb.this, ex.getMessage().toString(), Toast.LENGTH_SHORT).show();\n\n }\n\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n //Set up UI components\n setContentView(R.layout.activity_main);\n logButton = (Button) findViewById(R.id.logButton);\n sendLogButton = (Button) findViewById(R.id.sendLogButton);\n XSpinner = (Spinner) findViewById(R.id.XSpinner);\n XSpinner.setOnItemSelectedListener(this);\n YSpinner = (Spinner) findViewById(R.id.YSpinner);\n YSpinner.setOnItemSelectedListener(this);\n progressBar = (ProgressBar) findViewById(R.id.progressBar);\n\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n getSupportActionBar().setIcon(R.mipmap.ic_launcher);\n\n //init Bluetooth objects and permissions\n initBLESetup();\n\n mHandler = new Handler();\n }",
"private void initialise() {\n\t\tok=(Button)findViewById(R.id.button1);\n clear=(Button)findViewById(R.id.bExit);\n symptoms=(EditText)findViewById(R.id.edAppointTime);\n other=(EditText)findViewById(R.id.edSecondName);\n headache = (CheckBox) findViewById(R.id.cbHeadache);\n stomach = (CheckBox) findViewById(R.id.cbStomach);\n fever = (CheckBox) findViewById(R.id.cbFever);\n diarrhoea = (CheckBox) findViewById(R.id.cbDiarrhoea);\n hiv = (CheckBox) findViewById(R.id.cbHiv);\n disability = (CheckBox) findViewById(R.id.cbDisability);\n\t}",
"private void initUI() {\n tvQuote = (TextView) findViewById(R.id.tvQuote);\n tvBeginButton = (TextView) findViewById(R.id.tvBeginButton);\n\n tvBeginButton.setOnClickListener(this);\n\n loadBackground();\n }",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n BusProvider.register(this);\n findViews();\n init();\n getData();\n //customizeActionBar();\n\n loadContact();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.settings);\n\t\t\n\t\t//Manager para guardar los datos de settings\n\t\tmGameSettings = getSharedPreferences(Constants.GAME_PREFERENCES, Context.MODE_PRIVATE);\n\t\t\n\t\tinitNicknameEntry();\n\t\tinitEmailEntry();\n\t\tinitPasswordChooser();\n\t\tinitDatePicker();\n\t\tinitAvatar();\n\t\tinitGenderSpinner();\n\t}",
"private void initializeUI() {\n emailTV = findViewById(R.id.email);\n passwordTV = findViewById(R.id.password);\n regBtn = findViewById(R.id.register);\n progressBar = findViewById(R.id.progressBar);\n nameTV = findViewById(R.id.displayName);\n }",
"@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_main); //set the activity to main activity\r\n setTitle(\"Out and About\");\r\n\r\n storyIn = (EditText) findViewById(R.id.story_input); //get all the neccessary UI components\r\n location = (TextView) findViewById(R.id.location);\r\n a1 = (Spinner) findViewById(R.id.SpinnerAnswers);\r\n a2 = (Spinner) findViewById(R.id.SpinnerAnswers2);\r\n a3 = (Spinner) findViewById(R.id.SpinnerAnswers3);\r\n a4 = (Spinner) findViewById(R.id.SpinnerAnswers4);\r\n subButton = (Button) findViewById(R.id.submitionButton);\r\n\r\n locationStr=(String) location.getText();\r\n\r\n\r\n }",
"@Override\n protected void InitiateLocationInputs() {\n //Sets all the text inputs\n mLocationFormTitle.setText(R.string.location_edit_title);\n mLocationNameInput.setText(mLocation.getName());\n mLocationDescInput.setText(mLocation.getDescription());\n mConfirmButton.setText(R.string.btn_save);\n mCancelButton.setText(R.string.btn_delete);\n\n //Set the category spinner\n SpinnerCategoryAdapter adapter = new SpinnerCategoryAdapter(getContext());\n mLocationCategorySpinner.setAdapter(adapter.getArrayAdapter());\n mLocationCategorySpinner.setSelection(adapter.getCategoryPosition(mLocation.getCategory()));\n\n //Show the edit coordinate button\n mEditButton.setVisibility(View.VISIBLE);\n mEditButton.setOnClickListener(HandleEdit());\n\n }",
"private void setupEditTexts() {\n EditText paino = findViewById(R.id.etWeight);\n EditText alaPaine = findViewById(R.id.etLowerBP);\n EditText ylaPaine = findViewById(R.id.etUpperBP);\n\n //Set the input filters\n paino.setFilters(new InputFilter[] { new InputFilterMinMax(0f, 999f)});\n alaPaine.setFilters(new InputFilter[] { new InputFilterMinMax(1, 999)});\n ylaPaine.setFilters(new InputFilter[] { new InputFilterMinMax(1, 999)});\n\n //Set listeners for the edit texts on when the user clicks something else on the screen while typing\n //When clicked outside, the keyboard closes\n paino.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n alaPaine.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n ylaPaine.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n MainActivity.hideKeyboard(getApplicationContext(), v);\n }\n });\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_deporte_actualizar);\n helper = new ControlBD(this);\n idNombre = (EditText) findViewById(R.id.nombreDeporte);\n sDeporte = (Spinner) findViewById(R.id.selectDeporte);\n\n lista1 =new ArrayList<>();\n lista1=helper.consultaDeporte();\n ArrayAdapter<String> adaptador1 =new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item,lista1);\n adaptador1.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n sDeporte.setAdapter(adaptador1);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.addphonenumber);\n\t\tet_insertnumber = (EditText) findViewById(R.id.et_insertnumber);\n\t\tradiogroup = (RadioGroup) findViewById(R.id.radioGroup);\n\t}",
"@Override\n\t public void onCreate(Bundle savedInstanceState)\n\t {\n\t super.onCreate(savedInstanceState);\n\t setContentView(R.layout.secant);\n\t initControls();\n\t }",
"private void initViews() {\n\t\t\tfirstTimeEditor=(EditText) findViewById(R.id.get_one_square_first_time_editor);\r\n\t\t\tlastTimeEditor=(EditText) findViewById(R.id.get_one_square_last_time_editor);\r\n\t\t\t\r\n\t\t\tfirstLatitudeEditor=(EditText) findViewById(R.id.get_one_square_first_latitude_editor);\r\n\t\t\tsecondLatitudeEditor=(EditText) findViewById(R.id.get_one_square_second_latitude_editor);\r\n\t\t\t\r\n\t\t\tfirstLongitudeEditor=(EditText) findViewById(R.id.get_one_square_first_longitude_editor);\r\n\t\t\tsecondLongitudeEditor=(EditText) findViewById(R.id.get_one_square_second_longitude_editor);\r\n\t\t\t\r\n\t\t\tsureBtn=(Button) findViewById(R.id.get_one_square_sureBtn);\r\n\t\t\tsureBtn.setOnClickListener(new OnClickListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\r\n\t\t\t\t\tgetInputContent();\r\n\t\t\t\t\tif(checkInputContent())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tIntent intent=getIntent();\r\n\t\t\t\t\t\tBundle bundle=new Bundle();\r\n\t\t\t\t\t\tbundle.putString(\"firstTime\", firstTime);\r\n\t\t\t\t\t\tbundle.putString(\"lastTime\", lastTime);\r\n\t\t\t\t\t\tbundle.putString(\"firstLatitude\", firstLatitude);\r\n\t\t\t\t\t\tbundle.putString(\"secondLatitude\", secondLatitude);\r\n\t\t\t\t\t\tbundle.putString(\"firstLongitude\", firstLongitude);\r\n\t\t\t\t\t\tbundle.putString(\"secondLongitude\", secondLongitude);\r\n\t\t\t\t\t\tbundle.putString(Arguments.FINISH,Arguments.FINISH);\r\n\t\t\t\t\t\tintent.putExtras(bundle);\r\n\t\t\t\t\t\tsetResult(Arguments.GET_TIME_AND_RANGE_FROM_ONE_SPACE, intent);\r\n\t\t\t\t\t\tGetTimeRangeFromOneSpaceAty.this.finish();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse Toast.makeText(GetTimeRangeFromOneSpaceAty.this, \"ÊäÈëÓдí............\", Toast.LENGTH_LONG).show();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t super.onCreate(savedInstanceState);\n\t setContentView(R.layout.playview);\n\t \n\t db = new DatabaseHandler(this);\n\t \n\t setSpinners();\n\t setButtons();\n\t setText();\n\t setListView();\n\t}",
"private void initView() {\n\r\n\t\tiv_back2 = (ImageView) findViewById(R.id.iv_back2);\r\n\t\tet_kaihuyinhang = (EditText) findViewById(R.id.et_kaihuyinhang);\r\n\t\tet_kahao = (EditText) findViewById(R.id.et_kahao);\r\n\t\ttvName = (EditText) findViewById(R.id.tv_username);\r\n\t\tspinner = (EditText) findViewById(R.id.spinner);\r\n\t\tspinner_sheng = (Spinner) findViewById(R.id.spinner_sheng);\r\n\t\tspinner_shi = (Spinner) findViewById(R.id.spinner_shi);\r\n\t\tiv_back2.setOnClickListener(this);\r\n\t\tbtnadd.setOnClickListener(this);\r\n\r\n\t\tMap<String,String> map = new HashMap<String,String>();\r\n\t\tmap.put(\"shengname\", \"请选择省份\");\r\n\t\tmap.put(\"shengid\", \"\" + -1 );\r\n\t\tsslist.add(map);\r\n\t\tshengshileibiao(true,\"0\");\r\n\r\n\t\tMap<String,String> mm = new HashMap<String,String>();\r\n\t\tmm.put(\"shengname\", \"请选择城市\");\r\n\t\tmm.put(\"shengid\", \"\" + -2 );\r\n\t\tslist.add(mm);\r\n\t\tSimpleAdapter shengAdapter = new SimpleAdapter(AddShouHuoAddressActivity.this, slist, R.layout.spinner_sheng_layout, new String[]{\"shengname\"}, new int[]{R.id.tv_sheng});\r\n\t spinner_shi.setAdapter(shengAdapter);\r\n\r\n//\t\t tvName.setText(LoginUser.getInstantiation(getApplicationContext()).getLoginUser().getNickName());\r\n\t}",
"public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }",
"private void initComponent() {\n\n mEdit = (EditText) findViewById(R.id.edit_key);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n /*This method is used to create the add product page.\n */\n super.onCreate(savedInstanceState);//This method adds on to the parent class code\n setContentView(R.layout.add_activity);// and uses the add activity layout for this page.\n\n Intent callingIntent = getIntent(); \n product_list= (ArrayList<Product>) callingIntent.getSerializableExtra(\"list\"); //having transfereed the\n //product list information,\n\n //the products are then displayed on the spinner. A for loop is used\n //so that the following code is not dependent on the size of the product.\n List<String> strings = new ArrayList<>(product_list.size());\n for (Product object : product_list) { //for all possible product choices,\n strings.add(object.getProduct_name()); //display it as an option on the spinner\n }\n\n //a drop down view is used as the layout for the spinner\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_spinner_item, strings);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\n //the view for the spinner for the product is used to display\n list = (Spinner)findViewById(R.id.spinner);\n list.setAdapter(adapter);\n list.setOnItemSelectedListener(this);\n }",
"private void initView() {\n\t\timg_back = (ImageView) findViewById(R.id.img_back_updatejob);\n\t\tedt_content = (EditText) findViewById(R.id.edt_content_updatejob);\n\t\tedt_course = (EditText) findViewById(R.id.edt_course_updatejob);\n\t\tbtn_delete = (Button) findViewById(R.id.btn_delete_updatejob);\n\t\tbtn_update = (Button) findViewById(R.id.btn_update_updatejob);\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsetContentView(R.layout.add_plan_action);\n\t\t\n\t\tinitControls();\n\t\tinitpath();\n\t\tgetJson_file();\n\t\tinitList();\n\t\tsetVMlisten();\n\t\tsetVMControlsData();\n\t\t\n\t\tsetlisten();\n\t\t\n\t}",
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(C0194R.layout.activity_main);\n initializeGUI();\n this.user = new UserData();\n this.spin = (Spinner) findViewById(C0194R.C0196id.spinLocale);\n setupUI((ScrollView) findViewById(C0194R.C0196id.parent));\n addKeyListener();\n addItemsToSpinner();\n this.spin.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n Locale loct = (Locale) adapterView.getItemAtPosition(i);\n if (loct.getKey()) {\n View promptsView = LayoutInflater.from(main.this.getApplicationContext()).inflate(C0194R.layout.alert_map, (ViewGroup) null);\n AlertDialog.Builder alertDia = new AlertDialog.Builder(main.this);\n alertDia.setTitle(main.this.getResources().getString(C0194R.string.title_map));\n alertDia.setIcon(C0194R.C0195drawable.chimp_stare_48);\n alertDia.setView(promptsView);\n alertDia.setCancelable(false);\n final EditText inLat = (EditText) promptsView.findViewById(C0194R.C0196id.txtLat);\n final EditText inLong = (EditText) promptsView.findViewById(C0194R.C0196id.txtLong);\n ImageView img = (ImageView) promptsView.findViewById(C0194R.C0196id.imgMap);\n img.setFocusable(true);\n img.setFocusableInTouchMode(true);\n img.requestFocus();\n img.setOnTouchListener(new View.OnTouchListener() {\n public boolean onTouch(View view, MotionEvent motionEvent) {\n int x = (int) motionEvent.getX();\n LLfromXY util = new LLfromXY();\n util.setMapValues(420.0d, 760.0d, 50.0d, 24.0d, -126.0d, -66.0d);\n double userLat = util.getLatitude((int) motionEvent.getY());\n double userLon = util.getLongitude(x);\n inLat.setText(Double.toString(userLat));\n inLong.setText(Double.toString(userLon));\n return false;\n }\n });\n alertDia.setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialogInterface, int i) {\n main.this.setLoc(new Locale(main.HSV_NAME, 34.73d, -86.58d, false));\n main.this.spin.setSelection(0);\n }\n });\n alertDia.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialogInterface, int i) {\n Locale dummy = new Locale();\n if (main.this.isEmpty(inLat)) {\n dummy.setLatit(34.73d);\n } else {\n dummy.setLatit(Double.parseDouble(inLat.getText().toString()));\n }\n if (main.this.isEmpty(inLong)) {\n dummy.setLongit(-86.58d);\n } else {\n dummy.setLongit(Double.parseDouble(inLong.getText().toString()));\n }\n main.this.setLoc(dummy);\n }\n });\n alertDia.create().show();\n return;\n }\n main.this.setLoc(loct);\n }\n\n public void onNothingSelected(AdapterView<?> adapterView) {\n }\n });\n }",
"private void initViews() {\n textViewName = (EditText) findViewById(R.id.inputText_name);\n textViewEmail = (EditText) findViewById(R.id.inputText_email);\n textViewPhone = (EditText) findViewById(R.id.inputText_phone);\n textViewRent = (EditText) findViewById(R.id.inputText_rent);\n textViewChores = (EditText) findViewById(R.id.inputText_chores);\n\n updateUserButton = (Button) findViewById(R.id.button_updateUser);\n //redirectToUsers = (Button) findViewById(R.id.button_updateUser);\n }",
"protected abstract void setupSpinners();",
"private void init() {\n\t\ttxt_account=(TextView) findViewById(R.id.txt_account);\n\t\ttxt_passwd=(TextView) findViewById(R.id.txt_passwd);\n\t\ttxt_passwd_again=(TextView) findViewById(R.id.txt_passwd_again);\n\t\ttxt_hit=(TextView) findViewById(R.id.txt_hit);\n\t\ttxt_hit.setVisibility(View.GONE);\n\t\t\n\t\tedt_account=(EditText) findViewById(R.id.edt_zhanghao);\n\t\tedt_passwd=(EditText) findViewById(R.id.edt_mima);\n\t\tedt_passwd_again=(EditText) findViewById(R.id.edt_passwd_again);\n\t\t\n\t\t\n\t\tbtn_ok=(Button) findViewById(R.id.btn_ok);\n\t\tbtn_ok.setOnClickListener(this);\n\t}",
"private void initViews() {\n inputName = findViewById(R.id.inputGroceryItemName);\n inputQuantityToBuy = findViewById(R.id.inputGroceryItemQuantity);\n inputUnits = findViewById(R.id.inputGroceryItemUnits);\n inputPrice = findViewById(R.id.inputGroceryItemPrice);\n inputCalories = findViewById(R.id.inputGroceryItemCalories);\n\n btnCancel = findViewById(R.id.btnCancelAddGrocery);\n btnAdd = findViewById(R.id.btnAddGroceryItem);\n\n checkEgg = findViewById(R.id.inputCheckGroceryEggs);\n checkFish = findViewById(R.id.inputCheckGroceryFish);\n checkGluten = findViewById(R.id.inputCheckGroceryGluten);\n checkLactose = findViewById(R.id.inputCheckGroceryLactose);\n checkSoy = findViewById(R.id.inputCheckGrocerySoy);\n checkNuts = findViewById(R.id.inputCheckGroceryNuts);\n }",
"private void spinnerFunctions() {\n mTranportSectionAdapter = ArrayAdapter.createFromResource(getContext(), R.array.transport_titles, R.layout.drop_down_spinner_item);\n mTransportSectionSpinner.setAdapter(mTranportSectionAdapter);\n mFuelTypeAdapter = ArrayAdapter.createFromResource(getContext(), R.array.fuel_types, R.layout.drop_down_spinner_item);\n mFuelTypeSpinner.setAdapter(mFuelTypeAdapter);\n mBoxAdapter = ArrayAdapter.createFromResource(getContext(), R.array.box_types, R.layout.drop_down_spinner_item);\n mBoxSpinner.setAdapter(mBoxAdapter);\n }",
"@Override\n\t\tprotected void onCreate(Bundle savedInstanceState) {\n\t\t\tsuper.onCreate(savedInstanceState);\n\t\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\tsetContentView(R.layout.date_time_dialog);\n\t\t\ttp = (TimePicker) findViewById(R.id.timePicker1);\n\t\t\tdatePicker = (DatePicker) findViewById(R.id.datePicker1);\n\t\t\tButton btnset = (Button) findViewById(R.id.btnSet);\n\t\t\tbtnset.setOnClickListener(this);\n\t\t\tButton btnCancel = (Button) findViewById(R.id.btnCancel);\n\t\t\tbtnCancel.setOnClickListener(this);\n\t\t}",
"private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.inputdialog);\r\n\t\tregion=(Spinner)findViewById(R.id.s_region);\r\n\t\tArrayAdapter<CharSequence> adapter=ArrayAdapter.createFromResource(InputDialog.this, R.array.region, android.R.layout.simple_spinner_item);\r\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n\t\tregion.setAdapter(adapter);\r\n\t\tregion.setOnItemSelectedListener(new OnItemSelectedListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemSelected(AdapterView<?> arg0, View arg1,\r\n\t\t\t\t\tint arg2, long arg3) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tregionText=arg0.getItemAtPosition(arg2).toString();\r\n\t\t\t\tsetTreeAdatpter(regionText);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\ttree=(Spinner)findViewById(R.id.s_tree);\r\n\t\tdb=(EditText)findViewById(R.id.db);\r\n\t\tdm=(EditText)findViewById(R.id.dm);\r\n\t\tdw=(EditText)findViewById(R.id.dw);\r\n\t\tde=(EditText)findViewById(R.id.de);\r\n\t\tar=(EditText)findViewById(R.id.ar);\r\n\t\tok=(Button)findViewById(R.id.in_ok);\r\n ok.setOnClickListener(new android.view.View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tif(isSuccesfull()){\r\n\t\t\t\t\tIntent intent=new Intent();\r\n\t\t\t\t\tintent.putExtra(\"region\", regionText);\r\n\t\t\t\t\tintent.putExtra(\"tree\", treeText);\r\n\t\t\t\t\tintent.putExtra(\"ar\", iar);\r\n\t\t\t\t\tintent.putExtra(\"db\", idb);\r\n\t\t\t\t\tintent.putExtra(\"dm\", idm);\r\n\t\t\t\t\tintent.putExtra(\"dw\", idw);\r\n\t\t\t\t\tintent.putExtra(\"de\", ide);\r\n\t\t\t\t\tintent.putExtra(\"calV\", Calculate.CalV(transformStringToInt(regionText), transformStringToInt(treeText), idb, idm, idw, ide, iar));\r\n\t\t\t\t\tsetResult(RESULT_OK, intent);\r\n\t\t\t\t\tfinish();\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tAlertDialog.Builder builder=new AlertDialog.Builder(InputDialog.this);\r\n\t\t\t\t\tbuilder.setTitle(R.string.app_name).setNegativeButton(\"知道了\", new DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).setMessage(\"请按规定输入\");\r\n\t\t\t\t\tDialog dialog=builder.create();\r\n\t\t\t\t\tdialog.show();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcancel=(Button)findViewById(R.id.in_cancel);\r\n cancel.setOnClickListener(new android.view.View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tfinish();\r\n\t\t\t\tsetResult(RESULT_CANCELED);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void initView() {\n\t\tbtnBack = (Button) findViewById(R.id.btn_regist_back);\n\t\tbtnRegist = (Button) findViewById(R.id.btn_regist_regist);\n\t\tuseret=(EditText)findViewById(R.id.userID);\n\t\tcellet=(EditText)findViewById(R.id.pNUM);\n\t\tpwet=(EditText)findViewById(R.id.et_regist_userPwd);\n\t\trpwet=(EditText)findViewById(R.id.rp_userPwd);\n\t\tmProgressView = findViewById(R.id.login_progress);\n\t\tbtnConf=(Button) findViewById(R.id.btn_msg);\n\t\tconfet=(EditText)findViewById(R.id.et_confirm);\n\n\t}",
"private void fillSpinners()\r\n {\r\n ArrayList<String> monthList = new ArrayList<String>(12);\r\n ArrayList<String> yearList = new ArrayList<String>(4);\r\n\r\n // Create strings\r\n monthList.add(\"JAN\");\r\n monthList.add(\"FEB\");\r\n monthList.add(\"MAR\");\r\n monthList.add(\"APR\");\r\n monthList.add(\"MAY\");\r\n monthList.add(\"JUN\");\r\n monthList.add(\"JUL\");\r\n monthList.add(\"AUG\");\r\n monthList.add(\"SEP\");\r\n monthList.add(\"OCT\");\r\n monthList.add(\"NOV\");\r\n monthList.add(\"DEC\");\r\n\r\n yearList.add(\"2019\");\r\n yearList.add(\"2020\");\r\n yearList.add(\"2021\");\r\n\r\n // Create adapters\r\n ArrayAdapter<String> monAd = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, monthList);\r\n ArrayAdapter<String> yearAd = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, yearList);\r\n\r\n // Set adapters\r\n Spinner spinMonth = ((Spinner) findViewById(R.id.spinMonth));\r\n Spinner spinYear = ((Spinner) findViewById(R.id.spinYear));\r\n spinMonth.setAdapter(monAd);\r\n spinYear.setAdapter(yearAd);\r\n }",
"private void initListener() {\n View.OnClickListener showDateListener = new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final View vv = v;\n\n Calendar now = Calendar.getInstance();\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(UpdateActActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n String dateStr = year + \"-\"\n + StaticClass.autoFillZero((monthOfYear + 1), 2) + \"-\"\n + StaticClass.autoFillZero(dayOfMonth, 2);\n if (vv.getId() == R.id.tv_act_start_time_date) {\n mStartTimeDateText.setText(dateStr);\n } else {\n mEndTimeDateText.setText(dateStr);\n }\n }\n }, now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.show();\n }\n };\n\n View.OnClickListener showTimeListener = new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final View vv = v;\n\n Calendar now = Calendar.getInstance();\n\n TimePickerDialog timePickerDialog = new TimePickerDialog(UpdateActActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n String timeStr = StaticClass.autoFillZero(hourOfDay, 2) + \":\"\n + StaticClass.autoFillZero(minute, 2)\n + \":00\";\n if (vv.getId() == R.id.tv_act_start_time_time) {\n mStartTimeTimeText.setText(timeStr);\n } else {\n mEndTimeTimeText.setText(timeStr);\n }\n }\n }, now.get(Calendar.HOUR_OF_DAY),\n now.get(Calendar.MINUTE),\n true);\n\n timePickerDialog.show();\n }\n };\n\n mStartTimeDateText.setOnClickListener(showDateListener);\n mEndTimeDateText.setOnClickListener(showDateListener);\n\n mStartTimeTimeText.setOnClickListener(showTimeListener);\n mEndTimeTimeText.setOnClickListener(showTimeListener);\n\n mSubmitBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n submitChange();\n }\n });\n }",
"private void setupUI() {\n rbMale = findViewById(R.id.rb_male);\n rbFemale = findViewById(R.id.rb_female);\n spnStatus = findViewById(R.id.spn_status_create);\n rgGender = findViewById(R.id.rd_gender_register);\n btnCreateUser = findViewById(R.id.btn_create_user);\n edtLastName = findViewById(R.id.edt_last_name_create);\n edtEnterPin = findViewById(R.id.edt_enter_pin_create);\n edtFirstName = findViewById(R.id.edt_first_name_create);\n spnBloodGroup = findViewById(R.id.spn_blood_group_create);\n edtConfirmPin = findViewById(R.id.edt_confirm_pin_create);\n edtDateOfBirth = findViewById(R.id.edt_date_of_birth_create);\n edtMobileNumber = findViewById(R.id.edt_mobile_number_create);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tint theme = R.style.Theme_Sherlock_ForceOverflow;\r\n\t\tsetTheme(theme);\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\r\n\t\taddPreferencesFromResource(R.xml.prefs);// Add preferences function\r\n\t\t\r\n\t\tContext context = getSupportActionBar().getThemedContext();\r\n\t ArrayAdapter<CharSequence> list = ArrayAdapter.createFromResource(context, R.array.locations_prefs, R.layout.sherlock_spinner_item);\r\n\t list.setDropDownViewResource(R.layout.sherlock_spinner_dropdown_item);\r\n\r\n\t getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);\r\n\t getSupportActionBar().setListNavigationCallbacks(list, this);\r\n\t}",
"protected abstract void initializeSpinners();",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.layout);\n\n colorPickerDialog = new AmbilWarnaDialog(this, Color.BLACK, this);\n ToggleButton boldToggle = (ToggleButton) findViewById(R.id.btnBold);\n ToggleButton italicsToggle = (ToggleButton) findViewById(R.id.btnItalics);\n ToggleButton underlinedToggle = (ToggleButton) findViewById(R.id.btnUnderline);\n imgChangeColor = (ImageView) findViewById(R.id.btnChangeTextColor);\n lnl = (LinearLayout) findViewById(R.id.lnlAction);\n lnl.setVisibility(View.VISIBLE);\n\n customEditor = (CustomEditText) findViewById(R.id.CustomEditor);\n customEditor.setSingleLine(false);\n customEditor.setMinLines(10);\n customEditor.setBoldToggleButton(boldToggle);\n customEditor.setItalicsToggleButton(italicsToggle);\n customEditor.setUnderlineToggleButton(underlinedToggle);\n customEditor.setOnFocusChangeListener(new OnFocusChangeListener() {\n\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n lnl.setVisibility(View.VISIBLE);\n }\n else\n {\n lnl.setVisibility(View.GONE);\n }\n }\n });\n customEditor.setEventBack(eventBack);\n customEditor.setOnClickListener(clickListener);\n imgChangeColor.setOnClickListener(new OnClickListener() {\n\n @Override\n public void onClick(View v) {\n selectionStart = customEditor.getSelectionStart();\n selectionEnd = customEditor.getSelectionEnd();\n colorPickerDialog.show();\n }\n });\n\n }",
"private void Initialize() {\n\t\tjetztStdTxt = (EditText) findViewById(R.id.weckJetztStund);\n\t\tjetztMinTxt = (EditText) findViewById(R.id.weckJetztMin);\n\t\tschlafStdTxt = (EditText) findViewById(R.id.weckSchlafStd);\n\t\tschlafMinTxt = (EditText) findViewById(R.id.weckSchlafMin);\n\t\tfinalTime = (TextView) findViewById(R.id.weckFinalTime);\n\t\tgo = (Button) findViewById(R.id.weckGo);\n\n\t}"
]
| [
"0.7203184",
"0.7090392",
"0.70818144",
"0.6988962",
"0.6891862",
"0.6851285",
"0.68304825",
"0.67876965",
"0.6784792",
"0.67461675",
"0.67387414",
"0.6738696",
"0.672153",
"0.67097956",
"0.66919106",
"0.6685857",
"0.66854924",
"0.6673146",
"0.6671064",
"0.6661706",
"0.6653197",
"0.66464883",
"0.6622363",
"0.6621224",
"0.6610408",
"0.66100043",
"0.6608288",
"0.659332",
"0.6560071",
"0.6552337",
"0.65426224",
"0.6535891",
"0.65279233",
"0.652346",
"0.6519069",
"0.6510851",
"0.6506228",
"0.6500781",
"0.64907736",
"0.647227",
"0.64676297",
"0.6456756",
"0.64335376",
"0.64318866",
"0.64165735",
"0.6412819",
"0.6395523",
"0.63798034",
"0.6369919",
"0.636659",
"0.6365825",
"0.63655007",
"0.63652027",
"0.63623905",
"0.6361076",
"0.6340126",
"0.6324932",
"0.6317779",
"0.63125163",
"0.6301548",
"0.6300547",
"0.6287988",
"0.62800527",
"0.62662584",
"0.626589",
"0.6260509",
"0.6255942",
"0.62542605",
"0.6252264",
"0.62502",
"0.6244333",
"0.6240172",
"0.623165",
"0.62294924",
"0.6228723",
"0.6226723",
"0.62252575",
"0.6224166",
"0.62165445",
"0.62150526",
"0.621295",
"0.6206076",
"0.6202732",
"0.619906",
"0.6198971",
"0.61970556",
"0.61963403",
"0.61937934",
"0.61932707",
"0.618636",
"0.6186037",
"0.618494",
"0.6183165",
"0.6182972",
"0.61818016",
"0.61718756",
"0.61699194",
"0.6169552",
"0.61691034",
"0.6163158",
"0.61615884"
]
| 0.0 | -1 |
local functions that allow users to load the mood events | public void load_moodEvent(MoodEvent edit_mood_event) {
edit_mood_state = edit_mood_event.getMoodState();
mood_state_spinner.setSelection(getIndex(mood_state_spinner, edit_mood_event.getMoodState()));
if (edit_mood_event.getSocialSituation() != null) {
social_situation_spinner.setSelection(getIndex(social_situation_spinner, edit_mood_event.getSocialSituation()));
}
if (edit_mood_event.getTriggerText() != null) {
edit_reason.setText(edit_mood_event.getTriggerText());
}
if (edit_mood_event.getLocation() != null) {
currentLocationCheckbox.setChecked(true);
}
if (edit_mood_event.getPicId() != null) {
Bitmap image = getImage(edit_mood_event);
pic_preview.setImageBitmap(image);
} else {
pic_preview.setImageResource(R.drawable.umood);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void loadEvents() {\n\t\t\n\t}",
"public void setMarioEvents() {\n\t\tCollisionEvent event1, event2, event4, event98, event6, event7, event8, event9;\n\t\tAdvancedCollisionEvent event_1LandsTop4, event_1Touches4NotTop, event5;\n\t\ttry {\n\t\t\t// player with block\n\t\t\tevent1 = new CollisionEvent(\n\t\t\t\t\tArrays.asList(new String[] { \"0\", \"1\" }),\n\t\t\t\t\tPLAYER_LANDING_ON_BLOCK_STRING);\n\t\t\t// enemy with block\n\t\t\tevent2 = new CollisionEvent(Arrays.asList(\"1\", \"2\"),\n\t\t\t\t\tENEMY_ON_BLOCK_STRING);\n\t\t\t// player killing enemy\n\t\t\tevent_1LandsTop4 = new AdvancedCollisionEvent(Arrays.asList(\"0\",\n\t\t\t\t\t\"2\", \"true\", \"false\", \"false\", \"false\", \"false\"),\n\t\t\t\t\tPLAYER_JUMPING_ON_ENEMY_STRING);\n\t\t\t// enemy kills player\n\t\t\tevent_1Touches4NotTop = new AdvancedCollisionEvent(Arrays.asList(\n\t\t\t\t\t\"0\", \"2\", \"false\", \"true\", \"true\", \"true\", \"false\"),\n\t\t\t\t\tENEMY_KILLING_PLAYER_STRING);\n\t\t\t// player reaches goal\n\t\t\tevent4 = new CollisionEvent(Arrays.asList(\"0\", \"3\"),\n\t\t\t\t\tPLAYER_HITTING_GOAL_STRING);\n\t\t\t// player collects coin\n\t\t\tevent98 = new CollisionEvent(Arrays.asList(\"0\", \"5\"),\n\t\t\t\t\tPLAYER_COLLECTING_COIN_STRING);\n\t\t\t// bullet hits enemy\n\t\t\tevent5 = new AdvancedCollisionEvent(Arrays.asList(\"2\", \"150\",\n\t\t\t\t\t\"true\", \"true\", \"true\", \"true\", \"true\"),\n\t\t\t\t\tBULLET_HITTING_ENEMY_STRING);\n\t\t\t// player gets gun power up\n\t\t\tevent6 = new CollisionEvent(Arrays.asList(\"0\", \"6\"),\n\t\t\t\t\tPLAYER_HITS_GUN_POWERUP_STRING);\n\t\t\t// player gets invincibility power up\n\t\t\tevent7 = new CollisionEvent(Arrays.asList(\"0\", \"7\"),\n\t\t\t\t\tPLAYER_HITS_INVINCIBILITY_POWERUP_STRING);\n\t\t\t// player gets size power up\n\t\t\tevent8 = new CollisionEvent(Arrays.asList(\"0\", \"8\"),\n\t\t\t\t\tPLAYER_HITS_SIZE_POWER_UP_STRING);\n\t\t\t// player gets speed power up\n\t\t\tevent9 = new CollisionEvent(Arrays.asList(\"0\", \"9\"),\n\t\t\t\t\tPLAYER_HITS_SPEED_POWERUP_STRING);\n\t\t\tAddPowerUpAction action13 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"8\",\n\t\t\t\t\t\t\tSIZE_POWER_UP_STRING, \"10\", \"mario\")));\n\t\t\tAddPowerUpAction action12 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"9\",\n\t\t\t\t\t\t\tSPEED_POWER_UP_STRING, \"10\", \"bullet\")));\n\n\t\t\tDecreaseObjectHitPointsByCollisionAction action14 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"8\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action15 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"9\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action9 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"6\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action11 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"7\", \"0\")));\n\t\t\tAddPowerUpAction action7 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"6\",\n\t\t\t\t\t\t\tGUN_POWERUP_STRING, \"10\", \"mario\")));\n\t\t\tAddPowerUpAction action8 = new AddPowerUpAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\", \"7\",\n\t\t\t\t\t\t\tINVINCIBILITY_POWERUP_STRING, \"10\", \"mobile\")));\n\t\t\tCollideSolidAction action = new CollideSolidAction(\n\t\t\t\t\tnew Tuple<Integer>(0, 1).toListString());\n\t\t\tCollideSolidAction action2 = new CollideSolidAction(\n\t\t\t\t\tnew Tuple<Integer>(2, 1).toListString());\n\t\t\tKillPlayerAction action3 = new KillPlayerAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"0\")));\n\n\t\t\tDecreaseObjectHitPointsByCollisionAction action10 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"5\", \"0\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action5 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"150\", \"2\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action6 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"2\", \"150\")));\n\t\t\tEndLevelAction action4 = new EndLevelAction(new ArrayList<String>());\n\n\t\t\tChangeScoreAction action98 = new ChangeScoreAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"5\")));\n\t\t\tDecreaseObjectHitPointsByCollisionAction action_1Kills4 = new DecreaseObjectHitPointsByCollisionAction(\n\t\t\t\t\tnew ArrayList<String>(Arrays.asList(\"2\", \"0\")));\n\n\t\t\tevent1.addAction(action);\n\t\t\tevent2.addAction(action2);\n\t\t\tevent_1Touches4NotTop.addAction(action3);\n\t\t\tevent_1LandsTop4.addAction(action_1Kills4);\n\t\t\tevent4.addAction(action4);\n\t\t\tevent98.addAction(action98);\n\t\t\tevent98.addAction(action10);\n\t\t\tevent5.addAction(action5, action6);\n\t\t\tevent6.addAction(action7, action9);\n\t\t\tevent7.addAction(action8, action11);\n\t\t\tevent9.addAction(action12, action15);\n\t\t\tevent8.addAction(action13, action14);\n\t\t\tmyLevel.addEvent(event1, event2, event_1Touches4NotTop, event4,\n\t\t\t\t\tevent98, event_1LandsTop4, event5, event6, event7, event8,\n\t\t\t\t\tevent9);\n\t\t\tmyLevelObjectBar.initializeEventsMap(myLevel.getEvents());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initializeEvents() {\r\n\t}",
"private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }",
"public void registerEvents()\n {\n \t\tfinal pchestPlayerListener playerListener = new pchestPlayerListener(this, chestManager);\n \t\tfinal pchestEntityListener entityListener = new pchestEntityListener(this, chestManager);\n \t\tfinal pchestBlockListener blockListener = new pchestBlockListener(this, chestManager);\n \t\t\n \t\t\n pm = getServer().getPluginManager();\n \n /* Entity events */\n pm.registerEvent(Type.ENTITY_EXPLODE, entityListener, Event.Priority.Normal, this);\n \n /* Player events */\n pm.registerEvent(Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\n \n /* Block events */\n \t\tpm.registerEvent(Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\n \t\tpm.registerEvent(Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\n \n \t\t\n /* Spout Required events */\n \t\tif(SpoutLoaded)\n \t\t{\n \t\t\tfinal pchestInventoryListener inventoryListener = new pchestInventoryListener(this, chestManager);\n \n \t /* Inventory events */\n \t\t\tpm.registerEvent(Type.CUSTOM_EVENT, inventoryListener, Event.Priority.Normal, this);\n \t\t}\n }",
"public void loadGriefPrevention()\n\t{\n\t\tif (griefPreventionListener == null)\n\t\t{\n\t\t\tPlugin factions = getServer().getPluginManager().getPlugin(\"GriefPrevention\");\n\t\t\tif (factions != null)\n\t\t\t{\n\t\t\t\tlogger().info(\"Factions support loaded\");\n\t\t\t\tgriefPreventionListener = new GriefSupport(this);\n\t\t\t\tsupportHandler.register(griefPreventionListener);\n\t\t\t\tgetServer().getPluginManager().registerEvents(this.griefPreventionListener, this);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlogger().info(\"Grief Prevention plugin not installed! Skipping Grief Prevention support!\");\n\t\t\t}\n\t\t}\n\t}",
"public abstract void onMedInfoLoaded(Medication med);",
"public final void loadEvents() {\n\n if (selectedUser == null || selectedUser.equals(\"All\")) {\n for (Absence a : AbsenceService.getAllUnacknowledged()) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n } else {\n for (Absence a : AbsenceService.getAbsenceByUserAndUnacknowledged(BenutzerverwaltungService.getUser(selectedUser))) {\n\n AbsenceEvent e = new AbsenceEvent(a.getUser().getUsername() + \" \" + a.getAbsenceType() + \" \" + a.getReason(), TimeConverterService.convertLocalDateTimeToDate(a.getStartTime()), TimeConverterService.convertLocalDateTimeToDate(a.getEndTime()), a);\n\n switch (e.getAbsence().getAbsenceType()) {\n\n case MEDICAL_LEAVE:\n e.setStyleClass(\"medical_leave\");\n break;\n case HOLIDAY:\n e.setStyleClass(\"holiday\");\n e.setAllDay(true);\n break;\n case TIME_COMPENSATION:\n e.setStyleClass(\"time_compensation\");\n break;\n case BUSINESSRELATED_ABSENCE:\n e.setStyleClass(\"business-related_absence\");\n break;\n default:\n }\n\n this.addEvent(e);\n }\n }\n\n DefaultScheduleEvent holidayevent;\n\n for (Holiday h : HolidayService.getList()) {\n holidayevent = new DefaultScheduleEvent(h.getHolidayComment(), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()), TimeConverterService.convertLocalDateToDate(h.getHolidayDate()));\n holidayevent.setAllDay(true);\n holidayevent.setStyleClass(\"feiertag\");\n\n this.addEvent(holidayevent);\n }\n }",
"public static void\tload(FMLServerStartingEvent event)\r\n\t{\n\t}",
"private void onGauntletEvent(GauntletEvent event)\n\t{\n\t\tswitch (event.getType())\n\t\t{\n\t\t\tcase ATTACK_STYLE_SWITCHED:\n\t\t\t\tGauntletBoss.AttackStyle newAttackStyle = ((BossAttackStyleSwitched) event).getNewAttackStyle();\n\t\t\t\tplaySoundIfEnabled(getAudioClipForAttackStyle(newAttackStyle), config.playSoundOnAttackStyleSwitch());\n\t\t\t\tlog.debug(\"{} | Playing attack style switch sound for: {}\", client.getTickCount(), newAttackStyle);\n\t\t\t\tbreak;\n\t\t\tcase PROTECTION_PRAYER_SWITCHED:\n\t\t\t\tplaySoundIfEnabled(overheadSwitchAudioClip, config.playSoundOnOverheadSwitch(), true);\n\t\t\t\tlog.debug(\"{} | Playing prot prayer switched sound\", client.getTickCount());\n\t\t\t\tbreak;\n\t\t\tcase CRYSTAL_ATTACK:\n\t\t\t\tplaySoundIfEnabled(crystalAudioClip, config.playSoundOnCrystalAttack());\n\t\t\t\tlog.debug(\"{} | Playing crystal attack sound\", client.getTickCount());\n\t\t\t\tbreak;\n\t\t\tcase PLAYER_PRAYER_DISABLED:\n\t\t\t\tplaySoundIfEnabled(prayerDisabledAudioClip, config.playSoundOnDisablePrayerAttack());\n\t\t\t\tlog.debug(\"{} | Playing prayer disabled sound\", client.getTickCount());\n\t\t\t\tbreak;\n\t\t\tcase PLAYER_DEATH:\n\t\t\t\tplaySoundIfEnabled(playerDeathAudioClip, config.playSoundOnPlayerDeath());\n\t\t\t\tbreak;\n\t\t\tcase DEMI_BOSS_SPAWNED:\n\t\t\t\tDemiBossSpawned demiBossSpawned = ((DemiBossSpawned) event);\n\t\t\t\tNPC demiBoss = demiBossSpawned.getNpc();\n\t\t\t\tif (isHighlightEnabledForDemiBoss(demiBoss.getId()))\n\t\t\t\t{\n\t\t\t\t\tclient.setHintArrow(demiBossSpawned.getWorldLocation());\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DEMI_BOSS_DESPAWNED:\n\t\t\t\tNPC despawnedDemiBoss = ((DemiBossDespawned) event).getNpc();\n\t\t\t\tlog.debug(\"Demi boss despawned: {}\", despawnedDemiBoss.getId());\n\t\t\t\tif (isHighlightEnabledForDemiBoss(despawnedDemiBoss.getId()))\n\t\t\t\t{\n\t\t\t\t\tlog.debug(\"Demi boss despawned: {}, arrow cleared\", despawnedDemiBoss.getId());\n\t\t\t\t\tclient.clearHintArrow();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BOSS_ROOM_ENTERED:\n\t\t\t\tclient.clearHintArrow();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.warn(\"Unknown gauntlet event: {}\", event.getType());\n\t\t}\n\t}",
"void pharmacyListener(){\n \n }",
"@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}",
"@EventHandler(priority = EventPriority.MONITOR)\n\tvoid onMonsterDeath(EntityDeathEvent event)\n\t{\n\t\tEntity entity = event.getEntity();\n\t\tEntityDamageByEntityEvent dEvent;\n\t\tPlayer player;\n\t\tSet<String> list;\n\n\t\t//Check that it was killed by another entity\t\t\n\t\tif(!(entity.getLastDamageCause() instanceof EntityDamageByEntityEvent))\n\t\t\treturn;\n\t\t\n\t\tdEvent = (EntityDamageByEntityEvent) entity.getLastDamageCause();\n\t\t\n\t\t//Check that it was killed by a player\n\t\tif(dEvent.getDamager() instanceof Player)\n\t\t{\n\t\t\tplayer = (Player) dEvent.getDamager();\n\t\t\t\n\t\t\t//Check if the monster is contained within the config\n\t\t\tProfessionStats prof = new ProfessionStats(perms, data, config, player.getUniqueId());\n\t\t\t\n\t\t\tfor (String p: prof.getProfessions())\n\t\t\t{\n\t\t\t\t//If there's no configuration for that profession, skip it.\n\t\t\t\ttry {list = config.getConfigurationSection(\"slaying.\" + p).getKeys(false);}\n\t\t\t\tcatch (NullPointerException e)\n\t\t\t\t{ continue; }\n\t\t\t\t\n\t\t\t\tfor (String monster: list)\n\t\t\t\t\t//If found, award experience for it.\n\t\t\t\t\tif (entity.getType().toString().equalsIgnoreCase(monster))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!prof.isPracticeFatigued(p))\n\t\t\t\t\t\t\taddExperience(player, p, config.getInt(\"slaying.\" + p + \".\" + monster));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (dEvent.getDamager() instanceof Arrow)\n\t\t{\t\n\t\t\tArrow arrow = (Arrow) dEvent.getDamager();\n\t if (!(arrow.getShooter() instanceof Player))\n\t \treturn;\n\t \n\t player = (Player) arrow.getShooter();\n\t\t\t\n\t\t\t//Check if the monster is contained within the config\n\t\t\tProfessionStats prof = new ProfessionStats(perms, data, config, player.getUniqueId());\n\t\t\t\n\t\t\tfor (String p: prof.getProfessions())\n\t\t\t{\n\t\t\t\t//If there's no configuration for that profession, skip it.\n\t\t\t\ttry {list = config.getConfigurationSection(\"slaying.\" + p).getKeys(false);}\n\t\t\t\tcatch (NullPointerException e)\n\t\t\t\t{ continue; }\n\t\t\t\t\n\t\t\t\tfor (String monster: list)\n\t\t\t\t\t//If found, award experience for it.\n\t\t\t\t\tif (entity.getType().toString().equalsIgnoreCase(monster))\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!prof.isPracticeFatigued(p))\n\t\t\t\t\t\t\taddExperience(player, p, config.getInt(\"slaying.\" + p + \".\" + monster));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public void onRoomLoad() {\n\n }",
"private void registerEvents(){\n\t\tPluginManager pm = getServer().getPluginManager();\r\n\t\t//PlayerListener stuff\r\n\t pm.registerEvent(Event.Type.PLAYER_CHAT, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_MOVE, playerListener, Event.Priority.Normal, this);\r\n\t pm.registerEvent(Event.Type.PLAYER_QUIT, playerListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLAYER_INTERACT, playerListener, Event.Priority.Normal, this);\r\n\t //BlockListener stuff\r\n pm.registerEvent(Event.Type.BLOCK_PLACE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_DAMAGE, blockListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.BLOCK_BREAK, blockListener, Event.Priority.Normal, this);\r\n //EntityListener stuff\r\n pm.registerEvent(Event.Type.CREATURE_SPAWN, entityListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.ENTITY_DAMAGE, entityListener, Event.Priority.Normal, this);\r\n //ServerListener stuff\r\n pm.registerEvent(Event.Type.PLUGIN_ENABLE, serverListener, Event.Priority.Normal, this);\r\n pm.registerEvent(Event.Type.PLUGIN_DISABLE, serverListener, Event.Priority.Normal, this);\r\n }",
"private void initEvents() {\r\n\t\teventPool = new EventPool();\r\n\t\teventPool.addEvent(new BlockGeneratorEvent(this));\r\n\t\teventPool.addEvent(new BlockOffScreenEvent(this));\r\n\t\teventPool.addEvent(new DeathEvent(myDropThis, this));\r\n\t}",
"public static void enableSuggestedEvents() {\n if (models.containsKey(MODEL_SUGGESTED_EVENTS)) {\n Locale resourceLocale = Utility.getResourceLocale();\n if (resourceLocale == null || resourceLocale.getLanguage().contains(\"en\")) {\n FeatureManager.checkFeature(FeatureManager.Feature.SuggestedEvents, new FeatureManager.Callback() {\n /* class com.facebook.appevents.ml.ModelManager.AnonymousClass2 */\n\n @Override // com.facebook.internal.FeatureManager.Callback\n public void onCompleted(boolean z) {\n if (z) {\n ((Model) ModelManager.models.get(ModelManager.MODEL_SUGGESTED_EVENTS)).initialize(new Runnable() {\n /* class com.facebook.appevents.ml.ModelManager.AnonymousClass2.AnonymousClass1 */\n\n public void run() {\n SuggestedEventsManager.enable();\n }\n });\n }\n }\n });\n }\n }\n }",
"@Override\n\tpublic void meetRandomEvent(String event) {\n\t\tSystem.out.println(\"You meet \" + event + \"!\");\n\t\tif(event == \"PIRATE\") \n\t\t{\n\t\t\tSystem.out.println(\"You meet a pirates, you should play number games to against pirates\");\n\t\t\tgame.meetPirate();\n\t\t}\n\t\telse if (event == \"UNFORTUNATE WEATHER\"){\n\t\t\tint damage = game.meetUnfortunateWeather();\n\t\t\tSystem.out.println(\"Your ship's health has been reduced by \" + damage + \" because you just meet unfortunate weather\");\n\t\t\tgame.backToMain();\n\t\t}\n\t\telse {\n\t\t\tint reward = game.meetSailorToRescue();\n\t\t\tSystem.out.println(\"Your have been rewarded by sailors you rescued, they gave you \" + reward + \" coin\");\n\t\t\tgame.backToMain();\n\t\t}\n\t}",
"public void initEventsAndProperties() {\r\n }",
"public void movieEvent(Movie m) {\n m.read();\n}",
"private void initEventList(){\r\n\t\t/*\r\n\t\t * we save a valid event list in internal storage so we can load them in\r\n\t\t * our main activity. So we make sure there is either a valid one alreay in storage\r\n\t\t * or we get a fresh one from our server and save it in storage.\r\n\t\t */\r\n\t\t\r\n\t\t// first try to get an existing eventlist from storage\r\n\t\tJSONObject eventList = FileUtils.readEventListFromStorage(this);\r\n\t\t\r\n\t\tif(eventList != null) {\r\n\t\t\tif(eventListIsValid(eventList)){\r\n\t\t\t\tstartMuseek();\r\n\t\t\t} else {\r\n\t\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void loadPlayerCannons() {\n\t\t\n\t}",
"void onLoadInteraction(String name, String tag);",
"private void createEvents() {\n\t}",
"public void moodInitialize() {\n\t\t\n\t\tFile moodDirectory = new File(\"FoodMood/src/TextFiles/\");\n\t\tmoodArray = moodDirectory.list();\n\t\tString [] names = new String[moodArray.length];\n\t\tfor(int i = 0; i < moodArray.length;i++) {\n\t\t\tnames[i] = moodArray[i].replace(\".txt\", \"\");\n\t\t}\n\t\tfor (int i = 0; i < moodArray.length; i++) {\n\t\t\tmoods.add(names[i]);\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void seeEvent(Player p, String s) {\n\t\t\t\t\r\n\t\t\t}",
"private void commonSetup(FMLCommonSetupEvent event) {\n WorldGen.addWorldGen();\n\n // Add all messaging\n DreamEventListener.registerMessages();\n }",
"private void registerEvents(){\n Bukkit.getPluginManager().registerEvents(new RegionListener(), this);\n Bukkit.getPluginManager().registerEvents(new SignListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonerListener(), this);\n Bukkit.getPluginManager().registerEvents(new PrisonBlockListener(), this);\n Bukkit.getPluginManager().registerEvents(new MonitorListener(), this);\n Bukkit.getPluginManager().registerEvents(new PortalListener(), this);\n }",
"public void load () {\n hasSoundOn = preference.getBoolean(\"sound effect\", true);\n hasMusicOn = preference.getBoolean(\"background music\", true);\n soundVolume = MathUtils.clamp(preference.getFloat(\"sound volume\", 0.5f), 0.0f, 1.0f);\n musicVolume = MathUtils.clamp(preference.getFloat(\"music volume\", 0.5f), 0.0f, 1.0f);\n }",
"private void initSounds() {\n\n\n\t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n prefs = PreferenceManager.getDefaultSharedPreferences(this);\n currentMood = new Mood(moodDate, moodNumber, moodComment); //new mood=currentMood\n\n initViews();\n initGestureListener();\n initButtons();\n }",
"@Override\n protected void initializeEventList()\n {\n }",
"private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}",
"@Override\r\n public void loadPianoAudioStart() {\n }",
"public static void loadSounds()\n {\n combust = new SoundLoader(\"explosion.wav\");\n zWalk = new SoundLoader(\"zWalk.wav\");\n bite = new SoundLoader(\"zBite.wav\");\n hitObst = new SoundLoader(\"zHitObst.wav\");\n runSound = new SoundLoader(\"pRunSound.wav\");\n walkSound = new SoundLoader(\"pWalkSound.wav\");\n scream = new SoundLoader(\"pScream.wav\");\n\n zWalk.makeBalanceControlled();\n hitObst.makeBalanceControlled();\n\n }",
"@Subscribe\n public void load(FMLInitializationEvent event) {\n Log.printFinest(\"container Load event\");\n\n // core checks\n if (!CoreTransformer.created) {\n printDebugDataAndCrash(CoreTransformer.class.getSimpleName() + \" is not being created!\");\n }\n\n if (!CoreTransformer.lightningHookApplied) {\n printDebugDataAndCrash(\"Unable to install a lightning hook!\");\n }\n\n if (!CoreTransformer.gameDataHookApplied) {\n printDebugDataAndCrash(\"Unable to install gamedata hooks!\");\n }\n\n if (MonnefCorePlugin.debugEnv && MonnefCorePlugin.jaffasEnv) {\n try {\n Log.printInfo(\"calling item dumping procedure\");\n ObfuscationHelper.dumpUsedItemsToConfig();\n Log.printInfo(\"item dumping procedure finished\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n FMLCommonHandler.instance().bus().register(new CoreTickHandler());\n\n MinecraftForge.EVENT_BUS.register(new WolfFoodRegistry());\n\n MonnefCorePlugin.initialized = true;\n MonnefCorePlugin.Log.printInfo(\"Final checks passed.\");\n }",
"@Override\n public void onReady(ReadyEvent event) {\n\n }",
"public void handleEvent(Message event)\r\n {\r\n m_tsm.handleEvent(event);\r\n\r\n String msg = event.getMessage().toLowerCase();\r\n\r\n String name = m_botAction.getPlayerName(event.getPlayerID());\r\n\r\n if(event.getMessageType() == Message.PRIVATE_MESSAGE && m_opList.isER(name))\r\n {\r\n if(msg.equals(\"!safeson\"))\r\n {\r\n c_Activate(name, true);\r\n }\r\n else if(msg.equals(\"!safesoff\"))\r\n {\r\n c_Activate(name, false);\r\n m_entryTimes.clear();\r\n } else if(msg.startsWith(\"!default\")) {\r\n cmd_default(name, msg);\r\n }\r\n }\r\n }",
"private void addEvent() {\n String name = selectString(\"What is the name of this event?\");\n ReferenceFrame frame = selectFrame(\"Which frame would you like to define the event in?\");\n double time = selectDouble(\"When does the event occur (in seconds)?\");\n double x = selectDouble(\"Where does the event occur (in light-seconds)?\");\n world.addEvent(new Event(name, time, x, frame));\n System.out.println(\"Event added!\");\n }",
"public void godAdded(boolean state) {\n\n notifyGodAdded(availableGods, state, this.getCurrentTurn().getCurrentPlayer().getNickname());\n\n\n }",
"@Override\n public void loadGame() {\n\n }",
"public void eventManager(Event event){\n\t\tif(event.type == Event.Type.CLOSED){\n\t\t\t//System.out.println(\"The user pressed the close button!\");\n\t\t\tLightCore.window.close();\n\t\t}\n\t\telse if(event.type == Event.Type.MOUSE_BUTTON_PRESSED){\n\t\t\t\n\t\t\tJFileChooser dialog;\n\t\t\tLoadSaveFilter filter;\n\t\t\tMouseButtonEvent mouse = event.asMouseButtonEvent();\n \t \tCellPosition pos = isInside(mouse.position);\n \t \t\n \t \tif(mouse.button == Mouse.Button.LEFT){\n\t \t \tif(LightCore.soundButton.isInside(mouse.position)){\n\t\t\t\t\tif(LightCore.sound.getStatus() == SoundSource.Status.PLAYING)\n\t\t\t\t\t\tLightCore.sound.pause();\n\t\t\t\t\telse\n\t\t\t\t\t\tLightCore.sound.play();\n\t\t\t\t\tLightCore.soundButton.changeTexture();\n\t\t\t\t\ttoDisplay.set(LightCore.soundButton.getId(), LightCore.soundButton.getSprite());\n\t\t\t\t}\n \t \t}\n \t \t\n \t \tswitch(getEvent(mouse)){\n\t\t\t\tcase GRID_ADD:\n\t\t\t\t\tif(pos.isFound()){\n\t\t\t\t\t\tif(robot){\n\t\t\t\t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell))\n\t\t\t\t\t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t//System.out.println(\"Add cube on : \\t\\tLine : \" + pos.getLine() + \", column : \" + pos.getColumn() + \", level : \" + pos.getLevel());\n\t\t \t \t\t\tif(light){\n\t\t \t \t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof TeleportCell) \n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell)\n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof LightableCell)){\n\t\t\t \t \t\t\t\tif(pos.getLevel() > -1){\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t \t \t\t\t\t\tLightableCell cell = new LightableCell(pos.getLine(), pos.getColumn(), pos.getLevel());\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t \t \t\t\t\t}\n\t\t\t \t \t\t\t\telse{\n\t\t\t \t \t\t\t\t\tLightableCell cell = new LightableCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\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\telse if(teleport){\n\t\t \t \t\t\t\tif(nextColour != null){\n\t\t \t \t\t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof TeleportCell) \n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell)\n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof LightableCell)){\n\t\t\t\t\t \t \t\t\tif(!firstTeleport){\n\t\t\t\t\t\t\t\t \t \tdisableAllButton();\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleport1 = new Position(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\t \t \t\tteleport2 = null;\n\t\t\t\t \t \t\t\t\t}\n\t\t\t\t \t \t\t\t\n\t\t\t\t \t \t\t\t\tif(pos.getLevel() > -1){\n\t\t\t\t\t \t \t\t\t\tTeleportCell cell = new TeleportCell(pos.getLine(), pos.getColumn(), pos.getLevel(), -1, -1, nextColour);\n\t\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t\t \t \t\t\t\t}\n\t\t\t\t\t \t \t\t\t\telse{\n\t\t\t\t\t \t \t\t\t\t\tTeleportCell cell = new TeleportCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1, -1, -1, nextColour);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t\t\t \t \t\t\t\t}\n\t\t\t\t \t \t\t\t\t\n\t\t\t\t\t \t \t\t\tif(!firstTeleport)\n\t\t\t\t\t \t \t\t\t\tfirstTeleport = true;\n\t\t\t\t\t \t \t\t\telse if(firstTeleport && (pos.getLine() != teleport1.getX() || pos.getColumn() != teleport1.getY())){\n\t\t\t\t\t \t \t\t\t\tenableAllButton();\n\t\t\t\t\t\t\t \t \t\tfirstTeleport = false;\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleport2 = new Position(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\t// Get teleport cells\n\t\t\t\t\t\t\t \t \t\tTeleportCell teleportCell1 = (TeleportCell)display.gridDisplay.grid.getCell(teleport1.getX(), teleport1.getY());\n\t\t\t\t\t\t\t \t \t\tTeleportCell teleportCell2 = (TeleportCell)display.gridDisplay.grid.getCell(teleport2.getX(), teleport2.getY());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleportCell1.setDestXY(teleport2.getX(), teleport2.getY());\n\t\t\t\t\t\t\t \t \t\tteleportCell2.setDestXY(teleport1.getX(), teleport1.getY());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tdisplay.gridDisplay.grid.setCell(teleportCell1);\n\t\t\t\t\t\t\t \t \t\tdisplay.gridDisplay.grid.setCell(teleportCell2);\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tusedColour.add(nextColour);\n\t\t\t\t\t\t\t \t \t\tnextColour();\n\t\t\t\t \t \t\t\t\t}\n\t\t \t \t\t\t\t\t}\n\t\t \t \t\t\t\t}\n\t\t \t \t\t\t}\n\t\t \t \t\t\telse{\n\t\t\t \t \t\t\tif(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof NormalCell \n\t\t\t \t \t\t\t\t\t|| display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell\n\t\t\t \t \t\t\t\t\t|| (display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell && (blue || orange || purple || red))){\n\t\t\t \t \t\t\t\tif(blue || orange || purple || red){\n\t\t\t\t \t \t\t\t\tif(pos.getLevel() > -1){\n\t\t\t\t \t \t\t\t\t\tColoredCell cell = new ColoredCell(pos.getLine(), pos.getColumn(), pos.getLevel(), colour);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\t}\n\t\t\t\t \t \t\t\t\telse{\n\t\t\t\t \t \t\t\t\t\tColoredCell cell = new ColoredCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1, colour);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t\t \t \t\t\t\t}\n\t\t\t \t \t\t\t\t\t\n\t\t\t \t \t\t\t\t}\n\t\t\t \t \t\t\t\telse{\n\t\t\t \t \t\t\t\t\tNormalCell cell = new NormalCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t \t \t\t\t\t}\t\t\t \t \t\t\t\t\n\t\t\t \t \t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\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\tif(pos.getColumn() == Robot.wheatley.getColumn() && pos.getLine() == Robot.wheatley.getLine() && pos.getLevel() > -1)\n\t\t \t \t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase GRID_DELETE:\n\t\t\t\t\tif(pos.isFound() && pos.getLevel() > -1){\n\t\t\t\t\t\tCell cell = display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"Remove cube on : \\tLine : \" + pos.getLine() + \", column : \" + pos.getColumn() + \", level : \" + pos.getLevel());\n\t \t \t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel(), false, false);\n\t \t \t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t \t \t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t \t \t\t\t\n\t\t\t\t\t\tif(cell instanceof TeleportCell){\n\t\t\t\t\t\t\tTeleportColour currentTeleportColour = ((TeleportCell)cell).getColour();\n\t\t\t\t\t\t\tif(firstTeleport && currentTeleportColour.equals(nextColour)){\n\t\t\t\t\t\t\t\tfirstTeleport = false;\n\t\t\t\t\t\t\t\tenableAllButton();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(((TeleportCell)cell).getDestX() != -1 && ((TeleportCell)cell).getDestY() != -1){\n\t\t\t\t\t\t\t\tTeleportCell newCell = (TeleportCell)display.gridDisplay.grid.getCell(((TeleportCell)cell).getDestX(), ((TeleportCell)cell).getDestY());\n\t\t\t\t\t\t\t\tdisplay.anim.addRemoveCube(newCell.getX(), newCell.getY(), newCell.getHeight(), false, false);\n\t\t\t \t \t\t\tdisplay.gridDisplay.removeCube(newCell.getX(), newCell.getY(), newCell.getHeight()+1);\n\t\t\t \t \t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tusedColour.remove(currentTeleportColour);\n\t\t\t\t\t\t\tif(currentTeleportColour.equals(nextColour))\n\t\t\t\t\t\t\t\tnextColour();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(pos.getColumn() == Robot.wheatley.getColumn() && pos.getLine() == Robot.wheatley.getLine())\n\t\t\t\t\t\t\tif(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell)\n\t\t\t\t\t\t\t\tdisplay.deleteRobot();\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase LIGHT:\n\t\t\t\t\tlightButton.changeTexture();\n \t \t\t\t\ttoDisplay.set(lightButton.getId(), lightButton.getSprite());\n \t \t\t\t\t\n \t \t\t\t\tresetButton(EditorEvent.LIGHT);\n \t \t\t\t\n\t \t \t\tlight = !light;\n\t \t \t\tif(!light)\n\t \t \t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SAVE:\n\t\t\t\t\tif(display.robotIsDisplayed){\n\t\t\t\t\t\tsaveButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(saveButton.getId(), saveButton.getSprite());\n\t\t\t\t\t\tLightCore.window.clear(Color.WHITE);\n\t\t\t\t\t\tdisplay();\n\t\t\t\t\t\tLightCore.window.display();\n\t\t\t\t\t\t\n\t\t\t\t\t\tdialog = new JFileChooser();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfilter = new LoadSaveFilter(new String[]{\"json\"}, \"Fichier texte au format JSON (*.json)\");\n\t\t\t\t\t\tdialog.setAcceptAllFileFilterUsed(false);\n\t\t\t\t\t\tdialog.addChoosableFileFilter(filter);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (dialog.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t File file = dialog.getSelectedFile();\n\t\t\t\t\t\t \n\t\t\t\t\t\t String fileName = file.getAbsolutePath();\n\t\t\t\t\t\t \n\t\t\t\t\t\t int i = fileName.lastIndexOf(\".\");\n\t\t\t\t\t\t if(i != -1 && fileName.charAt(i-1) != '/'){\n\t\t\t\t\t\t\t fileName = fileName.substring(0, i); \n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t // Print a selection menu for list of actions\n\t\t\t\t\t\t ActionSelector selec = new ActionSelector();\n\t\t\t\t\t\t while(!selec.isValid && !selec.isAborted){\n\t\t\t\t\t\t\t System.out.print(\"\");\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(selec.isValid){\n\t\t\t\t\t\t\t ArrayList<_Executable> listOfActions = new ArrayList<_Executable>();\n\t\t\t\t\t\t\t if(selec.checkForward.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Forward());\n\t\t\t\t\t\t\t if(selec.checkJump.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Jump());\n\t\t\t\t\t\t\t if(selec.checkTurnRight.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Turn(RelativeDirection.RIGHT, Colour.WHITE));\n\t\t\t\t\t\t\t if(selec.checkTurnLeft.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Turn(RelativeDirection.LEFT, Colour.WHITE));\n\t\t\t\t\t\t\t if(selec.checkWash.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Wash());\n\t\t\t\t\t\t\t if(selec.checkClone.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Clone());\n\t\t\t\t\t\t\t if(selec.checkBreak.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Break());\n\t\t\t\t\t\t\t listOfActions.add(new Light());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t int numbOfMain = (selec.mainLimit.getText().equals(\"\"))? 12 : Integer.parseInt(selec.mainLimit.getText());\n\t\t\t\t\t\t\t int numbOfProc1 = (selec.p1Limit.getText().equals(\"\"))? 0 : Integer.parseInt(selec.p1Limit.getText());\n\t\t\t\t\t\t\t int numbOfProc2 = (selec.p2Limit.getText().equals(\"\"))? 0 : Integer.parseInt(selec.p2Limit.getText());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Level level = new Level(display.gridDisplay.grid, listOfActions, selec.checkP1.getState(), selec.checkP2.getState(), numbOfMain, numbOfProc1, numbOfProc2);\n\t\t\t\t\t\t\t ParserJSON.serialize(fileName+\".json\", level);\n\t\t\t\t\t\t\t display.gridDisplay.grid.printGrid();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t selec.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsaveButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(saveButton.getId(), saveButton.getSprite());\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Le robot n'est pas affiché, impossible de sauvegarder.\", \"Erreur\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase LOAD:\n\t\t\t\t\tloadButton.changeTexture();\n\t\t\t\t\ttoDisplay.set(loadButton.getId(), loadButton.getSprite());\n\t\t\t\t\tLightCore.window.clear(Color.WHITE);\n\t\t\t\t\tdisplay();\n\t\t\t\t\tLightCore.window.display();\n\t\t\t\t\t\n\t\t\t\t\tdialog = new JFileChooser();\n\t\t\t\t\t\n\t\t\t\t\tfilter = new LoadSaveFilter(new String[]{\"json\"}, \"Fichier texte au format JSON (*.json)\");\n\t\t\t\t\tdialog.setAcceptAllFileFilterUsed(false);\n\t\t\t\t\tdialog.addChoosableFileFilter(filter);\n\t\t\t\t\t\n\t\t\t\t\tif (dialog.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t File file = dialog.getSelectedFile();\n\t\t\t\t\t Grid toOpen = ParserJSON.deserialize(file.getAbsolutePath()).getGrid();\n\t\t\t\t\t originX = (GRID_DISPLAY_SIZE/2)+MARGIN_LEFT;\n\t\t\t\t\t originY = (WINDOW_HEIGHT/2-MARGIN_LEFT-(toOpen.getSize()*Textures.cellTexture.getSize().y)/2);\n\t\t\t\t\t display.reinit(toOpen, originX, originY);\n\t\t\t\t\t toDisplay = new ArrayList<Drawable>();\n\t\t\t\t\t canva = new CanvaDisplay(toOpen.getSize(), originX, originY);\n\t\t\t\t\t initConstantDisplay();\n\t\t\t\t\t \n\t\t\t\t\t //System.out.println(file.getAbsolutePath());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tloadButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(loadButton.getId(), loadButton.getSprite());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase ROBOT:\n\t\t\t\t\trobotButton.changeTexture();\n \t \t\t\t\ttoDisplay.set(robotButton.getId(), robotButton.getSprite());\n \t \t\t\t\t\n \t \t\t\t\tresetButton(EditorEvent.ROBOT);\n\t\t\t\t \t\n\t \t \t\trobot = !robot;\n\t \t \t\tif(!robot)\n\t \t \t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase HOME:\n\t\t\t\t\tLightCore.menu = true;\n\t\t\t\t\tLightCore.editor = false;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_LEFT:\n\t\t\t\t\tdisplay.rotate(0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase TURN_RIGHT:\n\t\t\t\t\tdisplay.rotate(1);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_ROBOT_LEFT:\n\t\t\t\t\tdisplay.rotateRobot(RelativeDirection.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_ROBOT_RIGHT:\n\t\t\t\t\tdisplay.rotateRobot(RelativeDirection.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_BLUE:\n\t\t\t\t\tblueSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(blueSplash.getId(), blueSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.BLUE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_BLUE);\n\t\t\t\t\t\n\t\t\t\t\tblue = !blue;\n\t\t\t\t\tif(!blue)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_ORANGE:\n\t\t\t\t\torangeSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(orangeSplash.getId(), orangeSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.ORANGE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_ORANGE);\n\t\t\t\t\t\n\t\t\t\t\torange = !orange;\n\t\t\t\t\tif(!orange)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_PURPLE:\n\t\t\t\t\tpurpleSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(purpleSplash.getId(), purpleSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.PURPLE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_PURPLE);\n\t\t\t\t\t\n\t\t\t\t\tpurple = !purple;\n\t\t\t\t\tif(!purple)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_RED:\n\t\t\t\t\tredSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(redSplash.getId(), redSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.RED;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_RED);\n\t\t\t\t\t\n\t\t\t\t\tred = !red;\n\t\t\t\t\tif(!red)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TELEPORT:\n\t\t\t\t\tteleportButton.changeTexture();\n\t \t\t\t\ttoDisplay.set(teleportButton.getId(), teleportButton.getSprite());\n\t \t\t\t\t\n\t \t \t\tresetButton(EditorEvent.TELEPORT);\n\t \t \t\t\n\t\t \t \tteleport = !teleport;\n\t\t \t \tif(!teleport)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n \t \t}\n\t\t}\n\t}",
"public void setMood(String mood) {\n this.mood = mood;\n }",
"@SubscribeEvent\r\n\tpublic static void registerSounds(RegistryEvent.Register<SoundEvent> event){\r\n\t\tevent.getRegistry().register(ModSoundEvents.FAREWELL);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_ZIEMNIAK_AMBIENT);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_ZIEMNIAK_HURT);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_ZIEMNIAK_DEATH);\r\n\t\tevent.getRegistry().register(ModSoundEvents.POE);\r\n\t\tevent.getRegistry().register(ModSoundEvents.POETAETOE);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_FRYCOOK_AMBIENT);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_FRYCOOK_HURT);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_FRYCOOK_DEATH);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_FRIES_AMBIENT);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_FRIES_HURT);\r\n\t\tevent.getRegistry().register(ModSoundEvents.ENTITY_FRIES_DEATH);\r\n\t\tevent.getRegistry().register(ModSoundEvents.MCDONALD);\r\n\t\tevent.getRegistry().register(ModSoundEvents.LANLANLU);\r\n\t\tevent.getRegistry().register(ModSoundEvents.DONARUTO);\r\n\t}",
"public interface ImovelLoadedListener {\n void imovelLoaded(Imovel imovel);\n}",
"@Override\n\tpublic void loadSounds() {\n\t\ttry {\n\t\t\tSoundPlayer.load(\"bounce.wav\");\n\t\t\tSoundPlayer.load(\"laser1.wav\");\n\t\t\tSoundPlayer.load(\"hit1.wav\");\n\t\t\tSoundPlayer.load(\"speedup.wav\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void movieEvent(Movie m) {\n\t\tm.read();\n\t}",
"public static void load() {\n\n\t\ttry {\n\t\t\t// Insert audio load ex:\n\t\t\tmusicMap.put(\"music\", new Music(\"res/menuMusic.wav\"));\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"void doEvent(LightEvent what);",
"public void registerSounds()\n {\n }",
"private boolean isWholeGameEvent(String eventType){\n return eventType.equals(\"Stonks\") || eventType.equals(\"Riot\") || eventType.equals(\"Mutate\") || eventType.equals(\"WarpReality\");\n }",
"public static void init() {\r\n load();\r\n registerEventListener();\r\n }",
"void onEDHGameStart();",
"@FXML\n\tprivate void startLearningEventHandler(ActionEvent event) {\n\t\tif (loggedInUser == null) {\n\t\t\talert(\"You are not logged in!\");\n\t\t\treturn;\n\t\t}\t\t\n\t\t// Get coaching tasks\n\t\tList<Exercise> retrievedExercises = retrieveExercises();\n\t\texercises = new ArrayList<Exercise>(retrievedExercises);\n\t\tcoachingExercises = new ArrayList<Exercise>(exercises);\n\t\t\n\t\t// Change the window\n\t\tstartButtonBox.setVisible(false);\n\t\tnextCoachingEventHandler(event); // So the default values are not shown \n\t\tcoachingBox.setVisible(true);\n\t}",
"BasicEvents createBasicEvents();",
"public void onLoad() {\n\t}",
"@Override\r\n\tpublic void onAdvanceStart(RoadMap map, List<Event> events, int time) {\n\t\t\r\n\t}",
"public void handleEvent(Message event) {\n\r\n if(m_ensureLock && event.getMessageType() == Message.ARENA_MESSAGE && event.getMessage().equals(\"Arena UNLOCKED\")) {\r\n m_botAction.toggleLocked();\r\n return;\r\n }\r\n\r\n if(event.getMessageType() != Message.PRIVATE_MESSAGE) {\r\n return;\r\n }\r\n\r\n int id = event.getPlayerID();\r\n String name = m_botAction.getPlayerName(id);\r\n String msg = event.getMessage().trim().toLowerCase();\r\n\r\n if(name == null || msg == null || msg.length() == 0) {\r\n return;\r\n }\r\n\r\n String lcname = name.toLowerCase();\r\n\r\n boolean isSmod = m_operatorList.isSmod(lcname);\r\n boolean hasAccess = isSmod || m_access.contains(lcname);\r\n\r\n /* public pm commands */\r\n //!help\r\n if(msg.equals(\"!help\")) {\r\n m_botAction.privateMessageSpam(id, help_player);\r\n\r\n if(hasAccess) {\r\n m_botAction.privateMessageSpam(id, help_staff);\r\n }\r\n\r\n if(isSmod) {\r\n m_botAction.privateMessageSpam(id, help_smod);\r\n m_botAction.sendPrivateMessage(id, \"Database: \" + (m_botAction.SQLisOperational() ? \"online\" : \"offline\"));\r\n }\r\n\r\n //!status\r\n } else if(msg.equals(\"!status\")) {\r\n cmdStatus(id);\r\n\r\n //!spec\r\n } else if(msg.equals(\"!spec\")) {\r\n if(m_state.isStarting() || m_state.isStartingFinal()) {\r\n m_botAction.specWithoutLock(id);\r\n }\r\n\r\n //!about\r\n } else if(msg.equals(\"!about\")) {\r\n m_botAction.sendPrivateMessage(id, \"KimBot! (2007-12-15) by flibb <ER>\", 7);\r\n\r\n //!lagout/!return\r\n } else if(msg.equals(\"!lagout\") || msg.equals(\"!return\")) {\r\n KimPlayer kp = m_allPlayers.get(lcname);\r\n\r\n if(kp == null) {\r\n return;\r\n }\r\n\r\n if(!kp.m_isOut) {\r\n synchronized(m_state) {\r\n if((m_state.isMidGame() || m_state.isMidGameFinal()) && m_lagoutMan.remove(lcname)) {\r\n putPlayerInGame(id, kp, false);\r\n } else if((m_state.isStarting() || m_state.isStartingFinal()) && m_startingLagouts.remove(lcname)) {\r\n m_startingReturns.add(kp);\r\n m_botAction.sendPrivateMessage(id, \"You will be put in at the start of the game.\");\r\n }\r\n }\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Cannot return to game.\");\r\n }\r\n\r\n //poll vote\r\n } else if(Tools.isAllDigits(msg)) {\r\n if(m_poll != null) {\r\n m_poll.handlePollCount(id, name, msg);\r\n }\r\n\r\n /* staff commands */\r\n } else if(hasAccess) {\r\n //!start\r\n if(msg.equals(\"!start\")) {\r\n m_deathsToSpec = 10;\r\n m_maxTeamSize = 1;\r\n cmdStart(id);\r\n } else if(msg.startsWith(\"!start \")) {\r\n String[] params = msg.substring(7).split(\" \");\r\n m_deathsToSpec = 10;\r\n m_maxTeamSize = 1;\r\n\r\n for(String p : params) {\r\n try {\r\n if(Tools.isAllDigits(p)) {\r\n m_deathsToSpec = Integer.parseInt(p);\r\n } else if(p.startsWith(\"teams=\")) {\r\n m_maxTeamSize = Integer.parseInt(p.substring(6));\r\n }\r\n } catch(NumberFormatException e) {\r\n m_botAction.sendPrivateMessage(id, \"Can't understand: \" + p);\r\n return;\r\n }\r\n }\r\n\r\n m_deathsToSpec = Math.max(1, Math.min(99, m_deathsToSpec));\r\n m_maxTeamSize = Math.max(1, Math.min(99, m_maxTeamSize));\r\n cmdStart(id);\r\n //!stop\r\n } else if(msg.equals(\"!stop\")) {\r\n cmdStop(id);\r\n //!die\r\n } else if(msg.equals(\"!die\")) {\r\n if(m_state.isStopped()) {\r\n m_lvz.clear();\r\n\r\n try {\r\n Thread.sleep(3000);\r\n } catch(InterruptedException e) {}\r\n\r\n m_botAction.die(\"!die by \" + name);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"A game is in progress. Use !stop first.\");\r\n }\r\n\r\n //!startinfo\r\n } else if(msg.equals(\"!startinfo\")) {\r\n if(m_state.isStopped() || m_startedBy == null) {\r\n m_botAction.sendPrivateMessage(id, \"No one started a game.\");\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Game started by \" + m_startedBy);\r\n }\r\n\r\n //!reset\r\n } else if(msg.equals(\"!reset\")) {\r\n if(m_state.isStopped()) {\r\n resetArena();\r\n m_botAction.sendPrivateMessage(id, \"Resetted.\");\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"A game is in progress. Use !stop first.\");\r\n }\r\n\r\n //!remove\r\n } else if(msg.startsWith(\"!remove \")) {\r\n synchronized(m_state) {\r\n if(m_state.isStopped()) {\r\n m_botAction.sendPrivateMessage(id, \"The game is not running.\");\r\n } else {\r\n cmdRemove(id, msg.substring(8));\r\n }\r\n }\r\n\r\n //!test\r\n } else if(msg.startsWith(\"!test\")) {\r\n m_botAction.sendArenaMessage(Tools.addSlashes(\"test'test\\\"test\\\\test\"));\r\n\r\n } else if(isSmod) {\r\n //!addstaff\r\n if(msg.startsWith(\"!addstaff \")) {\r\n String addname = msg.substring(10);\r\n\r\n if(addname.length() <= 1 || addname.indexOf(':') >= 0) {\r\n m_botAction.sendPrivateMessage(id, \"Invalid name. Access list not changed.\");\r\n } else if(addname.length() > MAX_NAMELENGTH) {\r\n m_botAction.sendPrivateMessage(id, \"Name too long. Max. 18 characters.\");\r\n } else if(m_access.add(msg.substring(10))) {\r\n updateAccessList(id);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"That name already has access.\");\r\n }\r\n\r\n //!delstaff\r\n } else if(msg.startsWith(\"!delstaff \")) {\r\n if(m_access.remove(msg.substring(10))) {\r\n updateAccessList(id);\r\n } else {\r\n m_botAction.sendPrivateMessage(id, \"Name not found.\");\r\n }\r\n\r\n //!accesslist\r\n } else if(msg.equals(\"!accesslist\")) {\r\n for(String s : m_access) {\r\n m_botAction.sendPrivateMessage(id, s);\r\n }\r\n\r\n m_botAction.sendPrivateMessage(id, \"End of list.\");\r\n //!purge\r\n } else if(msg.equals(\"!purge\")) {\r\n cmdPurge(id, 90);\r\n } else if(msg.startsWith(\"!purge \")) {\r\n try {\r\n cmdPurge(id, Integer.parseInt(msg.substring(7)));\r\n } catch(NumberFormatException e) {\r\n m_botAction.sendPrivateMessage(id, \"Nothing done. Check your typing.\");\r\n }\r\n }\r\n }\r\n }\r\n }",
"void onStartGameRequested();",
"public interface IFightEvent {\n AbstractStageEventListener stageListener = StageManager.getInstance().getStageEventListener();\n EventManager eventManager = EventManager.getInstance();\n default void gainHealth(FightRole role, int val) {\n stageListener.onGainHealth(role, val);\n }\n\n default void loseHealth(FightRole role, int val) {\n\n }\n\n default void causeDamage(FightRole role, int val) {\n\n }\n\n default void beDamaged(FightRole role, int val) {\n\n }\n\n default void getHurt(FightRole role, int val) {\n stageListener.onGetHurt(role, val);\n // FIXME\n\n }\n\n void on(FightEvent event, Callback callback);\n\n void one(FightEvent event, Callback callback);\n\n void triggle(FightEvent event);\n\n void triggle(StageEvent event);\n}",
"public void initMusic() {\r\n mSoundPool = new SoundPool(3, AudioManager.STREAM_MUSIC, 0);\r\n mSoundClick = mSoundPool.load(getActivity(), R.raw.click, 1);\r\n mSoundCorrect = mSoundPool.load(getActivity(), R.raw.correct, 1);\r\n mSoundIncorrect = mSoundPool.load(getActivity(), R.raw.wrong, 1);\r\n }",
"private void addEvents() {\n\t mlv.getMapNotesOverlay().addEventListener(new NoteSelectedListener()\n {\n\t \t\n\t\t\t@Override\n\t\t\tpublic void handleNoteSelectedEvent(EventObject e, Group gr) {\n\t\t\t\t//We have to go to gallery because the user has select a (groups) note\n\t\t\t\tselectedGroup = gr;\n\t\t\t\tonClick(mlv);\n\t\t\t}\n \t\n });\t\t\t\t\n\t\t\n\t}",
"@Override\n\tpublic void handleEvent(Event event) {\n\t\t\n\t\tSystem.out.println(\"NOMBRE EVENTO RECIBIDO : \" + event.getProperty(\"TITLE\"));\n\t\tSystem.out.println(\"RECIBIDO EVENTO \"+event.getTopic() + \"en tiempo = \" + event.getProperty(\"TIME\")+\"\");\n\t\tSystem.out.println(\"PROPERTIES LUZ = \"+ event.getProperty(\"LUZ\") +\"\");\n\t\tString luz = (String) event.getProperty(\"LUZ\");\n\t\tSystem.out.println(\"MI STRING DE LUZ VALOR =\"+ luz);\n\t\t\n\t\tboolean favs_recibidos_emisor_evento = false;\n\t\t\n\t\tif(luz.equals(\"true\")){\n\t\t\tfavs_recibidos_emisor_evento = true;\n\t\t}else if(luz.equals(\"false\")){\n\t\t favs_recibidos_emisor_evento = false;\n\t\t}else{\n\t\t\tSystem.out.println(\"VALOR RARO EN LUZ PROPERTIES ¿?¿???¿??¿?¿?¿?\");\n\t\t}\n\t\t\n\t//favs_recibidos_emisor_evento = (boolean) event.getProperty(\"LUZ\");\n\n\t\tif(favs_recibidos_emisor_evento == true){\n\t\t\tSystem.out.println(\"Se recibio el evento con LUZ = TRUE\");\n\t\t\t\n\t\t\t//LED ,, LED.ENCENDER\n\t\t\tLeds tuiter_on = new Leds();\n\t\t\t//azul 59 131 189\n\t\t\ttuiter_on.setColorPlug(59,'r');\n\t\t\ttuiter_on.setColorPlug(131,'g');\n\t\t\ttuiter_on.setColorPlug(189.0,'b');\n\t\t\tdouble rold,gold,bold;\n\t\t\trold = tuiter_on.getColorPLug('r');\n\t\t\tgold = tuiter_on.getColorPLug('g');\n\t\t\tbold = tuiter_on.getColorPLug('b');\n\t\t\tSystem.out.println(\"ENCIENDO LED TUITER ------> AZUL \");\n\t\t\ttuiter_on.EncenderRGB2(0, 59, 131, 189, tuiter_on.getIntensidad());\n\t\t\ttry {\n\t\t\t\tThread.currentThread().sleep(2500);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttuiter_on.EncenderRGB2(0, rold, gold, bold, tuiter_on.getIntensidad());\n\n\n\n\t\t}else if(favs_recibidos_emisor_evento == false){\n\t\t\tSystem.out.println(\" SE HA RECIBIDO EL EVENTO CON LUZ = FALSE , NO CAMBIOS\");\n\t\t}else{\n\t\t\tSystem.out.println(\" SE HA RECIBIDO EL EVENTO CON LUZ = ¿?¿?¿? --> EXCEPCION \");\n\t\t}\n\t\t\n\t}",
"public void onLaunch(LivingEntity player, List<String> lore) {\r\n }",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"@Override\n\tpublic void load() {\n\t\tModLoader.setInGameHook(this, true, false);\n\t\tModLoader.setInGUIHook(this, true, false);\n\t}",
"private void loadEnemies(BasicEnemy enemy) {\n String enemyName = enemy.getType().get();\n switch (enemyName) {\n case \"Slug\":\n onLoad((Slug) enemy);\n break;\n case \"Zombie\":\n onLoad((Zombie) enemy);\n break;\n case \"Vampire\":\n onLoad((Vampire) enemy);\n break;\n default:\n System.out.println(\"Should not see this LMWC: {\" + enemyName + \"}\");\n break;\n }\n }",
"private void registerGlobalEvents() {\n\t\tsubmit(new CycleEvent());\n\t\tsubmit(new CleanupEvent());\n\t\tsubmit(new FloorItemEvent());\n\t}",
"private void listen_meaning_word() {\n\t\tif(this.dwd!=null)\n\t\t{\n\t\t\tString meaning_word=\"\";\n\t\t\tif(isHindi)\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.eng_word;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmeaning_word=dwd.hin_word;\n\t\t\t}\n\t\t\tif(isHindi)\n\t\t\t{\n\t\t\t\tif(this.main_word!=\"\")\n\t\t\t\t{\n\t\t\t\t\tif(mCallBack==null)\n\t\t\t\t\t{\n\t\t\t\t\t\tmCallBack=(OnWordSelectedFromSearchSuccess) getActivity();\n\t\t\t\t\t}\n\t\t\t\t\tmCallBack.onWordSpeak(meaning_word);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tDictCommon.listen_in_hindi(meaning_word);\n\t\t\t}\n\t\t}\n\t}",
"public void checkEvents()\n\t{\n\t\t((MBoxStandalone)events).processMessages();\n\t}",
"@Override\n\tpublic void onBroadcast(EventMessage message) {\n\t\tif (message.tag == C.Tag.TO_SELF) {\n\t\t\tif (message.msg == C.Msg.SOUND_WIN) {\n\t\t\t\tplaySoundGameWon();\n\t\t\t} else if (message.msg == C.Msg.SOUND_LOST) {\n\t\t\t\tplaySoundGameLost();\n\t\t\t} else if (message.msg == C.Msg.SOUND_SUCCEED) {\n\t\t\t\tplaySoundSuccess();\n\t\t\t} else if (message.msg == C.Msg.SOUND_FAIL) {\n\t\t\t\tplaySoundFail();\n\t\t\t}\n\t\t}\n\n\t}",
"void listenAndLoadGame() {\n Button loadButton = findViewById(R.id.loadButton2048);\n loadButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n switchToActivity(LoadActivity.class);\n }\n });\n }",
"public interface Event {\n\n // Events emitted by Logic or StateMonitors\n String STATE_SYNCHRONIZED = \"state_synchronized\";\n String MEMBER_RECONNECTED = \"member_reconnected\";\n\n // Event emitted explicitly by Game part\n interface Game {\n\n // Bank\n String TRANSACTION = \"transaction\";\n\n // Lobby\n String POKE = \"poke\";\n String MEMBER_READY = \"member_ready\";\n }\n\n}",
"@Override\n public void onPourMilkRaised() {\n }",
"@Override\r\n\tpublic void onBattleEvent(BattleEvent e) {\n\t\t\r\n\t}",
"@Override\n public void clicked(InputEvent event, float x, float y) {\n audioManager.playEvilBunnieGod();\n audioManager.setNewState(State.IDLE);\n manager.setScreen(new GameplayScreen(manager, 1));\n }",
"public static void register() {\n\t\tInteractionEvent.RIGHT_CLICK_BLOCK.register(OriginEventHandler::preventBlockUse);\n\t\t//Replaces ItemStackMixin\n\t\tInteractionEvent.RIGHT_CLICK_ITEM.register(OriginEventHandler::preventItemUse);\n\t\t//Replaces LoginMixin#openOriginsGui\n\t\tPlayerEvent.PLAYER_JOIN.register(OriginEventHandler::playerJoin);\n\t\t//Replaces LoginMixin#invokePowerRespawnCallback\n\t\tPlayerEvent.PLAYER_RESPAWN.register(OriginEventHandler::respawn);\n\t}",
"com.google.speech.logs.timeline.InputEvent.Event getEvent();",
"private void rememberFightStartEvent(FightStartEvent event) {\n\t\tList<PlayerEventInfo> playerEventInfo = event.getPlayerEventInfo();\n\t\tthis.rechargingOpponentSkills.forEach((key,value) -> value = 0);\n\t\t\n\t\t// This gets Opponent information (index and name)\n\t\tfor(int i = 0; i < playerEventInfo.size(); i++)\n\t\t{\n\t\t\tPlayerEventInfo playerInfo = playerEventInfo.get(i);\n\t\t\tthis.randomDifference.put(i, 0.0);\n\t\t\tif(playerInfo.getPetName().equals(super.getPetName()))\n\t\t\t{\n\t\t\t\tthis.jarvisIndex = i;\n\t\t\t\tthis.opponentIndex = (i + 1) % playerEventInfo.size();\n\t\t\t\tthis.opponentHealth = playerEventInfo.get((i+1) % playerEventInfo.size()).getStartingHp();\n\t\t\t\tthis.opponentType = playerEventInfo.get(this.opponentIndex).getPetType();\n\t\t\t\tthis.randomDifference.put(i, 0.0);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void onLoad() {\n\t\t\n\t}",
"@Override\n protected void initEventAndData() {\n }",
"@Override\n\tpublic void loadEnemies() {\n\t\t\n\t}",
"void onNewGame();",
"void onWeatherLoaded(ArrayList<WeatherStatus> weatherStatusList);",
"private void initHistoryMoods() {\n\n Mood superHappyMood = new Mood(R.color.banana_yellow);\n Mood happyMood = new Mood(R.color.light_sage);\n Mood normalMood = new Mood(R.color.cornflower_blue_65);\n Mood disappointedMood = new Mood(R.color.warm_grey);\n Mood sadMood = new Mood(R.color.faded_red);\n\n historyListMood.add(sadMood);\n historyListMood.add(disappointedMood);\n historyListMood.add(normalMood);\n historyListMood.add(happyMood);\n historyListMood.add(superHappyMood);\n\n }",
"private void rememberAttackEvent(AttackEvent event)\n\t{\n\t\tif(event.getAttackingPlayableIndex() == opponentIndex)\n\t\t{\n\t\t\tint rechargeTime = (event.getAttackingSkillChoice() == Skills.REVERSAL_OF_FORTUNE || event.getAttackingSkillChoice() == Skills.SHOOT_THE_MOON) ? 6 : 1;\n\t\t\tthis.decrementOpponentRechargeTimes();\n\t\t\tthis.rechargingOpponentSkills.put(event.getAttackingSkillChoice(), rechargeTime);\n\t\t\t\n\t\t\tthis.randomDifference.put(event.getAttackingPlayableIndex(), this.randomDifference.get(event.getAttackingPlayableIndex()) - event.getRandomDamage());\n\t\t\tthis.randomDifference.put(event.getVictimPlayableIndex(), this.randomDifference.get(event.getVictimPlayableIndex()) + event.getRandomDamage());\n\t\t\tthis.roundsSinceUse++;\n\t\t}\n\t\telse if(event.getAttackingPlayableIndex() == jarvisIndex)\n\t\t{\n\t\t\tthis.opponentHealth -= (event.getConditionalDamage() + event.getRandomDamage());\n\t\t\t\n\t\t\tthis.randomDifference.put(event.getAttackingPlayableIndex(), this.randomDifference.get(event.getAttackingPlayableIndex()) - event.getRandomDamage());\n\t\t\tthis.randomDifference.put(event.getVictimPlayableIndex(), this.randomDifference.get(event.getVictimPlayableIndex()) + event.getRandomDamage());\n\t\t\n\t\t\tSkills s = event.getAttackingSkillChoice();\n\t\t}\n\t}",
"private void initEvents() {\n\t\tuser_head_img.setOnClickListener(this);\r\n\t\ttxt_zcgl.setOnClickListener(this);\r\n\t\ttxt_tzgl.setOnClickListener(this);\r\n\t\ttxt_jlcx.setOnClickListener(this);\r\n\t\ttxt_wdyhk.setOnClickListener(this);\r\n\t\ttxt_wdxx.setOnClickListener(this);\r\n\t\tlayout_zhaq.setOnClickListener(this);\r\n\t\tlayout_ssmm.setOnClickListener(this);\r\n\t\ttxt_myredpager.setOnClickListener(this);\r\n\t}",
"public void playSound(EnvironmentEvent event) {\r\n // a precaution check... usually the event can't be null\r\n if (event == null) {\r\n return;\r\n }\r\n\r\n String eventTypeName = event.getType();\r\n\r\n // manage the OutMessageEvents\r\n if (event instanceof OutMessageEvent) {\r\n String messageTypeName = ((OutMessageEvent) event).getMessage().getType();\r\n\r\n // check if we deal with out messages generic or with out message that\r\n // have a sound assigned for a specific type and not for any out message\r\n if (this.soundsMap.get(eventTypeName + this.typesNameDelimiter\r\n + messageTypeName) != null) {\r\n eventTypeName += (this.typesNameDelimiter + messageTypeName);\r\n }\r\n }\r\n\r\n // play this sound if need to play and is allowed to play.\r\n if (this.soundOn\r\n && this.soundEventActiveStateMap.get(eventTypeName) != null\r\n && this.soundEventActiveStateMap.get(eventTypeName)\r\n && this.soundsMap.get(eventTypeName) != null) {\r\n\r\n SonificationMap sMap = this.sonificationMap.get(eventTypeName);\r\n if (sMap != null\r\n && this.soundsMap.get(eventTypeName) instanceof SoundMIDI) {\r\n boolean fromMsg = eventTypeName.contains(this.typesNameDelimiter);\r\n\r\n Object evtPropValue = null;\r\n\r\n try {\r\n evtPropValue = getValue(sMap.getPropertyName(), event, fromMsg);\r\n\r\n } catch (Exception ex) {\r\n }\r\n\r\n int instrument = -1;\r\n if (sMap.getSoundPropertyName().equals(NOTE)) {\r\n ((SoundMIDI) this.soundsMap.get(eventTypeName)).setNotes(sMap\r\n .mapNotes(evtPropValue));\r\n }\r\n if (sMap.getSoundPropertyName().equals(DURATION)) {\r\n ((SoundMIDI) this.soundsMap.get(eventTypeName)).setNotes(sMap\r\n .mapDuration(evtPropValue));\r\n }\r\n if (sMap.getSoundPropertyName().equals(VOLUME)) {\r\n ((SoundMIDI) this.soundsMap.get(eventTypeName)).setNotes(sMap\r\n .mapVolume(evtPropValue));\r\n }\r\n if (sMap.getSoundPropertyName().equals(INSTRUMENT_NO)) {\r\n instrument = sMap.mapInstrument(evtPropValue);\r\n ((SoundMIDI) this.soundsMap.get(eventTypeName))\r\n .setInstrument(instrument);\r\n }\r\n\r\n }\r\n\r\n this.soundsMap.get(eventTypeName).play();\r\n }\r\n }",
"public void onStart(LoadScenarioInfo loadScenarioInfo){\n }",
"public void loadHotels();",
"void storeEvents()\n {\n this.storedPresences = new ArrayList<Presence>();\n this.storeEvents = true;\n }",
"private void loadGameFiles(){\n\t}",
"public void commonSetup(FMLCommonSetupEvent event){\n PacketHandler.registerMessages();\n// config = new Configuration(event.getSuggestedConfigurationFile());\n// ConfigHandler.readConfig();\n }",
"public void familiarTick() {\n\t\tattacked = false;\n\t\tif (summonedFamiliar != null && c.getInstance().summoned != null) {\n\t\t\tif (!c.goodDistance(c.getX(), c.getY(), c.getInstance().summoned.getX(), c.getInstance().summoned.getY(),\n\t\t\t\t\t8)) {\n\t\t\t\tcallOnTeleport();\n\t\t\t}\n\t\t\tif (!c.goodDistance(c.getX(), c.getY(), c.getInstance().summoned.getX(), c.getInstance().summoned.getY(),\n\t\t\t\t\t8)) {\n\t\t\t\tc.getSummoning().callFamiliar();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (c.getInstance().playerIndex != 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson = true;\n\t\t\t} else if (c.getInstance().playerIndex == 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson = false;\n\t\t\t}\n\t\t\tif (c.getInstance().underAttackBy != 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson = true;\n\t\t\t} else if (c.getInstance().underAttackBy == 0\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson = false;\n\t\t\t}\n\t\t\tif (c.getInstance().npcIndex != 0\n\t\t\t\t\t&& !NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson\n\t\t\t\t\t&& NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = true;\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(0);\n\t\t\t} else if (NPCHandler.npcs[c.getInstance().summoningMonsterId].spawnedBy == c.getId()) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC == true)\n\t\t\t\t\tcallFamiliar();\n\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = false;\n\t\t\t}\n\t\t\tif (c.getInstance().summoned.killerId != 0 && c.getInstance().summoned.underAttackBy == 0) {\n\t\t\t\tc.getInstance().summoned.killerId = 0;\n\t\t\t\tc.getInstance().summoned.underAttackBy = 0;\n\t\t\t\tc.getSummoning().callFamiliar();\n\t\t\t}\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackedByPerson == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tPlayer o = PlayerHandler.players[c.getInstance().underAttackBy];\n\t\t\t\t\tif (o != null) {\n\t\t\t\t\t\tif (o.getInstance().inMulti()) {\n\t\t\t\t\t\t\tif (actionTimer == 0) {\n\t\t\t\t\t\t\t\tServer.npcHandler.followPlayer(c.getInstance().summoningMonsterId, o.playerId,\n\t\t\t\t\t\t\t\t\t\tc.playerId);\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(o.playerId);\n\t\t\t\t\t\t\t\tServer.npcHandler.attackPlayer(o, c.getInstance().summoningMonsterId);\n\t\t\t\t\t\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].index = o.playerId;\n\t\t\t\t\t\t\t\tactionTimer = 7;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tactionTimer--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].isAttackingAPerson == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tPlayer o = PlayerHandler.players[c.getInstance().playerIndex];\n\t\t\t\t\tif (o != null) {\n\t\t\t\t\t\tif (o.getInstance().inMulti()) {\n\t\t\t\t\t\t\tif (actionTimer == 0) {\n\t\t\t\t\t\t\t\tServer.npcHandler.followPlayer(c.getInstance().summoningMonsterId, o.playerId,\n\t\t\t\t\t\t\t\t\t\tc.playerId);\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].facePlayer(o.playerId);\n\t\t\t\t\t\t\t\tServer.npcHandler.attackPlayer(o, c.getInstance().summoningMonsterId);\n\t\t\t\t\t\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].index = o.playerId;\n\t\t\t\t\t\t\t\tactionTimer = 7;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tactionTimer--;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (attacked != true) {\n\t\t\t\tif (NPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC == true) {\n\t\t\t\t\tattacked = true;\n\t\t\t\t\tNPC n = NPCHandler.npcs[c.getInstance().npcIndex];\n\t\t\t\t\tif (n != null) {\n\t\t\t\t\t\t// if(n.inMulti()) {\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().summoningMonsterId].IsAttackingNPC = true;\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().npcIndex].IsUnderAttackNpc = true;\n\t\t\t\t\t\tNPCHandler.npcs[c.getInstance().npcIndex].randomWalk = false;\n\t\t\t\t\t\t// GameEngine.npcHandler.attackNPC(c.npcIndex,\n\t\t\t\t\t\t// c.getVariables().summoningMonsterId, c);\n\t\t\t\t\t\tServer.npcHandler.NpcVersusNpc(c.getInstance().summoningMonsterId,\n\t\t\t\t\t\t\t\tc.getInstance().npcIndex, c);\n\t\t\t\t\t\t// }\n\t\t\t\t\t} else {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tspeakTimer++;\n\t\t\tif (speakTimer == 100) {\n\t\t\t\tc.getInstance().summoned.forceChat(summonedFamiliar.speakText);\n\t\t\t\tspeakTimer = 0;\n\t\t\t}\n\t\t\tc.getInstance().specRestoreTimer -= 1;\n\t\t\tint hours = (c.getInstance().specRestoreTimer / 2) / 3600;\n\t\t\tint minutes = ((c.getInstance().specRestoreTimer / 2) - hours * 3600) / 60;\n\t\t\tint seconds = ((c.getInstance().specRestoreTimer / 2) - (hours * 3600 + minutes * 60));\n\n\t\t\tString timer = String.format(\"%02d:%02d\", minutes, seconds);\n\t\t\tc.getPA().sendString(timer, 17021);\n\t\t\tif (c.getInstance().specRestoreTimer == 100) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 1 minute.\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer == 50) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 30 seconds.\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer == 25) {\n\t\t\t\tc.sendMessage(\"@red@Your familiar will run out in approximately 15 seconds.\");\n\t\t\t\tc.sendMessage(\"@blu@ You can renew your familiar with a new pouch by clicking @red@ Renew pouch\");\n\t\t\t\tc.sendMessage(\"@red@Warning! Item's stored in familiar will be dropped upon death!\");\n\t\t\t} else if (c.getInstance().specRestoreTimer <= 0) {\n\t\t\t\tdismissFamiliar(false);\n\t\t\t}\n\t\t\tif (familiarSpecialEnergy != 60) {\n\t\t\t\tspecialRestoreCycle++;\n\t\t\t\tif (specialRestoreCycle == 50) {\n\t\t\t\t\tif (familiarSpecialEnergy != 60) {\n\t\t\t\t\t\tfamiliarSpecialEnergy += 15;\n\t\t\t\t\t\tif (familiarSpecialEnergy >= 60) {\n\t\t\t\t\t\t\tfamiliarSpecialEnergy = 60;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tspecialRestoreCycle = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tspecialTimer--;\n\t\t}\n\t\tif (renewTimer > 0) {\n\t\t\trenewTimer--;\n\t\t\tif (renewTimer == 0 && c.getInstance().summoned == null && summonedFamiliar != null) {\n\t\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0,\n\t\t\t\t\t\tSummoningData.getSummonHealth(summonedFamiliar.npcId), 1, 1, 1);\n\t\t\t\tcallFamiliar();\n\t\t\t}\n\t\t}\n\t\tif (loginCycle > 0) {\n\t\t\tloginCycle--;\n\t\t\tif (loginCycle == 0 && c.getInstance().summoned == null && summonedFamiliar != null) {\n\t\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0,\n\t\t\t\t\t\tSummoningData.getSummonHealth(summonedFamiliar.npcId), 1, 1, 1);\n\t\t\t\tcallFamiliar();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onChunkLoad(ChunkLoadEvent event) {\n Chunk chunk = event.getChunk();\n\n //\n Legends.info(\"Chunk loaded in world: \" + event.getWorld().getName());\n\n }",
"public void setEventName(String name);",
"private void importState() {\n SpeakerManager s = new SpeakerManager();\n this.speakerManager = s.importState();\n\n RoomManager r = new RoomManager();\n this.roomManager = r.importState();\n\n OrganizerManager o = new OrganizerManager();\n this.organizerManager = o.importState();\n\n EventManager e = new EventManager();\n this.eventManager = e.importState();\n\n ChatManager c = new ChatManager();\n this.chatManager = c.importState();\n\n AttendeeManager a = new AttendeeManager();\n this.attendeeManager = a.importState();\n\n\n }",
"private void addAllEventListeners(final String wordString, boolean isThereAReason) {\n // if the word is wrong, then it doesn't have a definition\n if(!isThereAReason) {\n requestDefinitionButton.attachActionListenerToButton(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n RemoteObjectContextProvider\n .game\n .askForWordDefinition(\n GameContextProvider.getGameClientReference(),\n wordString\n );\n } catch(RemoteException exc) {\n exc.printStackTrace();\n }\n }\n });\n }\n backButton.attachActionListenerToButton(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n FrameHandler.disposeSecondaryGridContainer();\n }\n });\n }"
]
| [
"0.66859645",
"0.6083761",
"0.59488493",
"0.58067805",
"0.57547826",
"0.571676",
"0.56984615",
"0.56777966",
"0.5618615",
"0.556493",
"0.5554367",
"0.5542818",
"0.5527741",
"0.548524",
"0.5479511",
"0.5478389",
"0.5477456",
"0.54751945",
"0.5472343",
"0.54697675",
"0.5467987",
"0.54674953",
"0.5438723",
"0.5434636",
"0.5434136",
"0.54223305",
"0.54223305",
"0.54223305",
"0.54191923",
"0.5366617",
"0.53424865",
"0.5337474",
"0.53324527",
"0.5322429",
"0.5318828",
"0.5294003",
"0.5289193",
"0.528342",
"0.5278538",
"0.5274378",
"0.52743596",
"0.5265734",
"0.52657187",
"0.5265272",
"0.52474225",
"0.52438164",
"0.5241082",
"0.52408725",
"0.52307147",
"0.5230448",
"0.52208006",
"0.52161646",
"0.52095187",
"0.51979095",
"0.519649",
"0.5195152",
"0.51902604",
"0.5187897",
"0.51791227",
"0.51789814",
"0.5161901",
"0.51408064",
"0.51381725",
"0.5109742",
"0.5106641",
"0.5102383",
"0.50949365",
"0.5090874",
"0.5090064",
"0.50861543",
"0.50784653",
"0.50775015",
"0.5075177",
"0.5062558",
"0.5062034",
"0.50578564",
"0.5056913",
"0.5048966",
"0.5047944",
"0.5044541",
"0.50444746",
"0.5040117",
"0.5037992",
"0.5035476",
"0.503094",
"0.5027296",
"0.50265986",
"0.5026285",
"0.5025084",
"0.5024857",
"0.50232184",
"0.5019965",
"0.5014049",
"0.5010677",
"0.50092274",
"0.5008606",
"0.5007231",
"0.5006995",
"0.5003884",
"0.4999753"
]
| 0.65082175 | 1 |
handle presses on the action bar items | @Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.action_add_tick:
if (edit_mood_state == null) {
Toast.makeText(getApplicationContext(), "Choose a mood state", Toast.LENGTH_SHORT).show();
break;
} else {
User user = new User();
SharedPreferences pref = getSharedPreferences("data", MODE_PRIVATE);
current_user = pref.getString("currentUser", "");
// When the moodEvent has been edited, check for internet connection.
// If online, sync to Elastic search and save locally.
// If offline, save locally
InternetConnectionChecker checker = new InternetConnectionChecker();
Context context = getApplicationContext();
final boolean isOnline = checker.isOnline(context);
if (isOnline) {
String query = current_user;
ElasticsearchUserController.GetUserTask getUserTask = new ElasticsearchUserController.GetUserTask();
getUserTask.execute(current_user);
try {
user = getUserTask.get();
} catch (Exception e) {
Log.i("Error", "Failed to get the User out of the async object");
}
} else {
LoadFile load = new LoadFile();
user = load.loadUser(context);
SharedPreferences.Editor editor = getSharedPreferences("data", MODE_PRIVATE).edit();
editor.putBoolean("hasBeenOffline", true);
editor.apply();
}
MoodEventList moodEventList = user.getMoodEventList();
moodEventList.deleteMoodEvent(edit_mood_event);
//TODO: delete offline
//if online/offline
if (edit_mood_event.getPicId() != null) {
if (isOnline) {
ElasticsearchImageController.DeleteImageTask deleteImageTask =
new ElasticsearchImageController.DeleteImageTask();
deleteImageTask.execute(edit_mood_event.getPicId());
ElasticsearchImageOfflineController elasticsearchImageOfflineController = new ElasticsearchImageOfflineController();
elasticsearchImageOfflineController.DeleteImageTask(context,edit_mood_event.getPicId());
} else {
ElasticsearchImageOfflineController elasticsearchImageOfflineController = new ElasticsearchImageOfflineController();
elasticsearchImageOfflineController.DeleteImageTask(context,edit_mood_event.getPicId());
}
File file = context.getFileStreamPath(edit_mood_event.getPicId());
file.delete();
}
user.setMoodEventList(moodEventList);
if (isOnline) {
ElasticsearchUserController.AddUserTask addUserTask = new ElasticsearchUserController.AddUserTask();
addUserTask.execute(user);
SaveFile s = new SaveFile(context, user);
} else {
SaveFile s = new SaveFile(context, user);
SharedPreferences.Editor editor = getSharedPreferences("data", MODE_PRIVATE).edit();
editor.putBoolean("hasBeenOffline", true);
editor.apply();
}
if (current_time_checkbox.isChecked()) {
dateOfRecord = real_time();
} else {
dateOfRecord = new GregorianCalendar(set_year, set_month + 1, set_day, set_hour, set_minute);
}
try {
setMoodEvent(current_user, edit_mood_state, edit_social_situation, edit_trigger, imageForElasticSearch, currentLocation);
} catch (MoodStateNotAvailableException e) {
Log.i("Error", "Failed to get the Mood state");
}
setResult(RESULT_OK);
finish();
}
return true;
case R.id.expanded_menu_camera:
if (Build.VERSION.SDK_INT >= 23) {
if (checkSelfPermission(Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {
requestPermissions(new String[]{Manifest.permission.CAMERA}, 12345);
} else {
takeAPhoto();
}
}
return true;
case R.id.expanded_menu_gallery:
if (ContextCompat.checkSelfPermission(EditActivity.this, Manifest.permission.WRITE_EXTERNAL_STORAGE) !=
PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(EditActivity.this, new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, 1);
} else {
openAlbum();
}
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\n\n\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n\n return super.onOptionsItemSelected(item);\n }",
"void onMenuItemClicked();",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\r\n public boolean onActionItemClicked(ActionMode mode, MenuItem item) {\r\n // TODO Auto-generated method stub\r\n return false;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handling item selection\n switch (item.getItemId()) {\n case R.id.action_home:\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n return true;\n case R.id.action_birds:\n intent = new Intent(this, Birds.class);\n startActivity(intent);\n return true;\n case R.id.action_storm:\n intent = new Intent(this, Storm.class);\n startActivity(intent);\n return true;\n case R.id.action_nocturnal:\n intent = new Intent(this, Nocturnal.class);\n startActivity(intent);\n return true;\n case R.id.action_library:\n intent = new Intent(this, Mylibrary.class);\n startActivity(intent);\n return true;\n case R.id.action_now_playing:\n intent = new Intent(this, Nowplaying.class);\n startActivity(intent);\n return true;\n case R.id.action_download:\n intent = new Intent(this, Download.class);\n startActivity(intent);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item){\n super.onOptionsItemSelected(item);\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\n\t\tswitch (item.getItemId()) {\n\t\t\n\t\tdefault:\n\t\t\t\n\t\t\tbreak;\n\n\t\t}//switch (item.getItemId())\n\n\t\t\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case R.id.action_tweet:\n Intent intentTweet = new Intent(\"com.phonbopit.learnandroid.yamba.action.tweet\");\n startActivity(intentTweet);\n return true;\n case R.id.action_purge:\n\n return true;\n case R.id.action_settings:\n Intent intentSettings = new Intent(this, SettingActivity.class);\n startActivity(intentSettings);\n return true;\n case R.id.action_refresh:\n\n return true;\n default:\n return false;\n }\n\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case R.id.action_help:\r\n Intent help = new Intent(facebookplaces.this,appinstr.class);\r\n startActivity(help);\r\n return true;\r\n default:\r\n // If we got here, the user's action was not recognized.\r\n // Invoke the superclass to handle it.\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"protected void cabOnItemPress(int position) {}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_browse:\n startActivity(new Intent(this, BrowseActivity.class));\n return true;\n case R.id.action_alphabet:\n startActivity(new Intent(this, AlphabetActivity.class));\n return true;\n case R.id.action_editor:\n startActivity(new Intent(this, EditorActivity.class));\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n Class c = Methods.onOptionsItemSelected(id);\n if (c != null) {\n Intent intent = new Intent(getBaseContext(), c);\n startActivity(intent);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n finish(); // close this activity and return to preview activity (if there is any)\n } else if (item.getItemId() == R.id.action_copy) {\n presenter.onActionCopy();\n } else if (item.getItemId() == R.id.action_toReddit) {\n presenter.onActionToReddit();\n } else if (item.getItemId() == R.id.action_share) {\n Toast toast = Toast.makeText(this, \"sharing\", Toast.LENGTH_SHORT);\n toast.show();\n } else if (item.getItemId() == R.id.action_addToFavorites) {\n presenter.onActionToggleFavorite();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case R.id.log:\r\n \tIntent i = new Intent(this, LogItemsActivity.class);\r\n \t\tstartActivity(i);\r\n return true;\r\n case R.id.edit:\r\n \tIntent i1 = new Intent(this, EditItemsActivity.class);\r\n \tstartActivity(i1);\r\n return true;\r\n case R.id.stats:\r\n \tIntent i2 = new Intent(this, BarActivity.class);\r\n \t\tstartActivity(i2);\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\n\t\ttry {\n\t\t\t// Handle presses on the action bar items\n\t\t\tswitch (item.getItemId()) {\n\n\t\t\tcase R.id.action_note_map_view_info:\n\t\t\t\tsetCurrentView(NoteMapView.info);\n\t\t\t\treturn true;\n\n\t\t\tcase R.id.action_note_map_view_image:\n\t\t\t\tsetCurrentView(NoteMapView.image);\n\t\t\t\treturn true;\n\n\t\t\tcase R.id.action_note_map_view_map:\n\t\t\t\tsetCurrentView(NoteMapView.map);\n\t\t\t\treturn true;\n\n\t\t\tcase R.id.action_note_map_close:\n\t\t\t\t// close -> go back to FragmentMainInput\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\n\t\t\tdefault:\n\t\t\t\treturn super.onOptionsItemSelected(item);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tLog.e(MODULE_TAG, ex.getMessage());\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case R.id.action_save:\n saveEvent();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\t\t// Handle action bar actions click\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.action_rate:\n\n\t\t\n\t\t\tToast.makeText(con, \"rate button is clicked\", 1000).show(); \n\n\t\t\treturn true;\n\t\t\t\n\t\tcase R.id.action_best:\n\n\t\t\t\n\t\t\tToast.makeText(con, \"Best button is clicked\", 1000).show(); \n\n\t\t\treturn true;\n\t\t\t\n\t\t\t\n\t\tcase R.id.action_liked:\n\n\t\t\t\n\t\t\tToast.makeText(con, \"liked button is clicked\", 1000).show(); \n\n\t\t\treturn true;\n\t\t\t\n\t\t\t\n\t\tcase R.id.action_language:\n\t\t{\n\t\t\tToast.makeText(con, \"Language button is clicked\", 1000).show(); \n\t\t\t\n\t\t\t\n\t\t\tString lCode=\"en\";\n\t\t\t\n\t\t\tif(PersistData.getStringData(con, \"LNG\").equalsIgnoreCase(\"en\"))\n\t\t\t{\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t *english is there already, need bangla\n\t\t\t\t */\n\t\t\t\tlCode=\"bn\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else if(PersistData.getStringData(con, \"LNG\").equalsIgnoreCase(\"bn\"))\n\t\t\t\n\t\t\t{\n\t\t\t\tlCode=\"en\";\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tchangeLocateAndRestart(lCode);\n\n\t\t\treturn true;\n\t\t}\n\t\t\t\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n // Respond to a click on the \"Delete all entries\" menu option\r\n case R.id.action_share_list:\r\n // TODO: Action for the App Bar\r\n return true;\r\n case R.id.action_delete:\r\n // TODO: Action for the App Bar\r\n return true;\r\n // Respond to a click on the \"Up\" arrow button in the app bar\r\n case android.R.id.home:\r\n NavUtils.navigateUpFromSameTask(RecordActivity.this);\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) \n {\n if (mDrawerToggle.onOptionsItemSelected(item)) \n {\n return true;\n }\n // Handle action buttons\n switch(item.getItemId()) \n {\n case R.id.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) \n {\n startActivity(intent);\n } \n else\n {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\t//noinspection SimplifiableIfStatement\n\t\tIntent intent;\n\t\tswitch (id) {\n\t\t\tcase R.id.action_info:\n\t\t\t\tif(mBound) {\n\t\t\t\t\tStringBuffer message = new StringBuffer(getVersionInfo());\n\t\t\t\t\tmessage.append(mService.getConnectivityStatus().toString());\n\t\t\t\t\tMediaPlayerService.showMessageInPopup(message, Toast.LENGTH_LONG * 50, false);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\tcase R.id.action_settings:\n\t\t\t\tintent = new Intent(this, SettingsActivity.class);\n\t\t\t\tstartActivityForResult(intent, FavoriteStationsFrame.RESULT_SETTINGS);\n\t\t\t\treturn true;\n\t\t\t/*case R.id.action_add:\n\t\t\t\tintent = new Intent(this, SearchForStationsFrame.class);\n\t\t\t\tstartActivityForResult(intent, FavoriteStationsFrame.RESULT_ADD_STATIONS);\n\t\t\t\treturn true;*/\n\t\t\tcase R.id.action_help:\n\t\t\t\tintent = new Intent(this, HelpActivity.class);\n\t\t\t\tintent.putExtra(HelpActivity.ARG_SECTION_NUMBER, mViewPager.getCurrentItem());\n\t\t\t\tstartActivity(intent);\n\t\t\t\treturn true;\n\t\t\t/*case R.id.action_help1:\n\t\t\t\tintent = new Intent(this, HelpTabbedActivity.class);\n\t\t\t\tintent.putExtra(HelpTabbedActivity.PlaceholderFragment.ARG_SECTION_NUMBER, mViewPager.getCurrentItem());\n\t\t\t\tstartActivity(intent);\n\t\t\t\treturn true;*/\n\t\t\tcase android.R.id.home:\n\t\t\t\tif(mViewPager.getCurrentItem() == SEARCH_FOR_STATIONS)\n\t\t\t\t\tbreak;\n\t\t\tcase R.id.action_exit:\n\t\t\t\tHandler delayedPost = new Handler();\n\t\t\t\tdelayedPost.postDelayed(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texitApp();\n\t\t\t\t\t}\n\t\t\t\t}, 100);//exitApp();\n\t\t\t\treturn true;\n\t\t\tcase R.id.action_volume_down:\n\t\t\tcase R.id.action_volume_up:\n\t\t\t\tif(mBound)\n\t\t\t\t\tmService.changeVolumeLevel(id==R.id.action_volume_up);\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(com.actionbarsherlock.view.MenuItem item) {\n\t\tif (mDrawerToggle.onOptionsItemSelected(item)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Handle action buttons\n\t\tswitch (item.getItemId()) {\n\t\t// this is not a desirable approach!\n\t\tcase android.R.id.home:\n\t\t\t// Toast.makeText(this, \"Need to be implemented\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t/*\n\t\t\t * android.support.v4.app.FragmentTransaction ft =\n\t\t\t * getSupportFragmentManager().beginTransaction();\n\t\t\t * ft.replace(R.id.container, fmt); ft.commit();\n\t\t\t */\n\n\t\t\tbreak;\n\t\tcase R.id.action_websearch:\n\t\t\t// // create intent to perform web search for this planet\n\t\t\t// Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n\t\t\t// intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n\t\t\t// // catch event that there's no activity to handle intent\n\t\t\t// if (intent.resolveActivity(getPackageManager()) != null) {\n\t\t\t// startActivity(intent);\n\t\t\t// } else {\n\t\t\t// Toast.makeText(this, R.string.app_not_available,\n\t\t\t// Toast.LENGTH_LONG).show();\n\t\t\t// }\n\n\t\t\t// item.expandActionView();\n\t\t\treturn false;\n\t\tcase R.id.menu_exit:\n\t\t\tthis.exitApplication();\n\t\t\tbreak;\n\t\tcase R.id.action_share:\n\n\t\t\t// String message = \"Text I wan't to share.\";\n\t\t\t// Intent share = new Intent(Intent.ACTION_SEND);\n\t\t\t// share.setType(\"text/plain\");\n\t\t\t// share.putExtra(Intent.EXTRA_TEXT, message);\n\t\t\t// startActivity(Intent.createChooser(share,\n\t\t\t// \"Title of the dialog the system will open\"));\n\n\t\t\tbreak;\n\t\tcase R.id.menu_settings2:\n\t\t\tIntent intent3 = new Intent(this, SettingsPreferences.class);\n\t\t\tstartActivity(intent3);\n\t\t\tbreak;\n\t\tcase R.id.set_date:\n\n\t\t\tfinal CharSequence[] items;\n\t\t\titems = getResources().getTextArray(R.array.dates_for_police);\n\n\t\t\tAlertDialog.Builder builder = Global.giveMeDialog(this, \"Choose a month for police data\");\n\n\t\t\tbuilder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t}\n\t\t\t});\n\t\t\tint i = 0;\n\t\t\tfor (; i < items.length; i++) {\n\t\t\t\tif (items[i].equals(Global.POLICE_DATA_REQUEST_MONTH))\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbuilder.setSingleChoiceItems(items, i, new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tGlobal.setPOLICE_DATA_REQUEST_MONTH(items[which].toString());\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tbuilder.show();\n\n\t\t\tbreak;\n\t\tcase R.id.register_dialgo_action_bar:\n\t\t\tif (!Global.isRegistered(this)) {\n\t\t\t\tif (regDialog == null) {\n\t\t\t\t\tregDialog = new RegDialogFragment();\n\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t} else {\n\t\t\t\t\tregDialog.show(getSupportFragmentManager(), \"should be changed here\");\n\t\t\t\t\t// Toast.makeText(this, DEBUG + \" ID Yes\",\n\t\t\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\titem.setVisible(false);\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.email_developer:\n\t\t\tIntent intent = new Intent(Intent.ACTION_SEND);\n\t\t\tintent.setType(\"message/rfc822\");\n\t\t\tintent.putExtra(Intent.EXTRA_EMAIL, new String[] { \"[email protected]\" });\n\t\t\tintent.putExtra(Intent.EXTRA_SUBJECT, \"[DESURBS] - YOURSafe\");\n\t\t\tintent.putExtra(Intent.EXTRA_TEXT, \"Hi, Yang \\n\\n\");\n\t\t\ttry {\n\t\t\t\tstartActivity(Intent.createChooser(intent, \"Send mail...\"));\n\t\t\t} catch (android.content.ActivityNotFoundException ex) {\n\t\t\t\tToast.makeText(this, \"There are no email clients installed.\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.survey_developer:\n\n\t\t\tString url = \"https://docs.google.com/forms/d/1HgHhfY-Xgt53xqMPCZC_Q_rL8AKUhNi9LiPXyhKkPq4/viewform\";\n\t\t\tintent = new Intent(Intent.ACTION_VIEW);\n\t\t\tintent.setData(Uri.parse(url));\n\t\t\tstartActivity(intent);\n\n\t\t\tbreak;\n\n\t\tcase R.id.menu_about:\n\t\t\tToast.makeText(this, \"This is Version \" + this.getString(R.string.version_name), Toast.LENGTH_SHORT).show();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n //HouseKeeper handles menu item click event\n mHouseKeeper.onOptionsItemSelected(item);\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch(id) {\n case R.id.action_settings: {\n Intent myIntent = new Intent(Activity_Main.this, Activity_Settings.class);\n Activity_Main.this.startActivity(myIntent);\n return true;\n }\n case R.id.action_moveicons: {\n if (TESTING)\n Toast.makeText(this, \"move icons clicked\", Toast.LENGTH_SHORT).show();\n return true;\n }\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings)\n return true;\n\n switch (id) {\n case R.id.action_sendShift:\n sendEvent();\n return true;\n\n\n case R.id.action_delete:\n deleteOrShowMethod();\n return true;\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n //get item id to handle item clicks\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.home:\n home_pres();\n break;\n case R.id.back:\n back_press();\n break;\n case R.id.previous:\n previous_press();\n break;\n case R.id.next:\n next_press();\n break;\n default:\n assert false;\n }\n return true;\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\r\n\t\tinflater.inflate(R.menu.main_activity_actions, menu);\r\n\r\n\r\n\t\tif(tv==null) {\r\n\t\t\tRelativeLayout badgeLayout = (RelativeLayout) menu.findItem(R.id.action_notification).getActionView();\r\n\t\t\ttv = (TextView) badgeLayout.findViewById(R.id.hotlist_hot);\r\n\t\t\ttv.setText(\"12\");\r\n\t\t}\r\n\r\n\t\t/*menu.findItem(R.id.action_notification).getActionView().setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\r\n\t\t\t\t\tSystem.out.println(\"clicked\");\r\n\t\t\t\t\ttv.setEnabled(false);\r\n\t\t\t\t\ttv.setBackground(null);\r\n\t\t\t\t\ttv.setBackgroundDrawable(null);\r\n\t\t\t\t\ttv.setText(null);\r\n\t\t\t\t\tintent = new Intent(getApplicationContext(), Notification.class);\r\n\t\t\t\t\tstartActivity(intent);\r\n\r\n\t\t\t}\r\n\t\t});*/\r\n\t\t//getActionBar().setCustomView(R.layout.menu_example);\r\n\t\t//getActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM | ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_HOME_AS_UP);\r\n\t\t//getActionBar().setIcon(android.R.color.transparent);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.action_settings :\n return true;\n\n case R.id.historic:\n vibe.vibrate(60); // 60 is time in ms\n Intent historicIntent = new Intent(MainActivity.this,HistoricActivity.class);\n historicIntent.setAction(BaseUtils.HISTORIC_INTENT);\n startActivityForResult(historicIntent, 1);\n\n break;\n case R.id.action_left:\n\n if(wV.canGoBack()){\n vibe.vibrate(60); // 60 is time in ms\n wV.goBack();\n }else{\n Toast.makeText(this,\"Nothing to load\",Toast.LENGTH_SHORT).show();\n }\n break;\n case R.id.action_right:\n if(wV.canGoForward()){\n vibe.vibrate(60); // 60 is time in ms\n wV.goForward();\n }else{\n Toast.makeText(this,\"Nothing to load\",Toast.LENGTH_SHORT).show();\n }\n break;\n case R.id.bookmarks:\n vibe.vibrate(60); // 60 is time in ms\n //Insert into bookmarks the active URL\n dao.insertBookmark(this,wV.getUrl());\n break;\n case R.id.seeBookmarks:\n Intent bookmarkIntent = new Intent(MainActivity.this,HistoricActivity.class);\n bookmarkIntent.setAction(BaseUtils.BOOKMARKS_INTENT);\n startActivityForResult(bookmarkIntent,1);\n break;\n\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\t\tswitch (item.getItemId()) {\t\t\t\t\t\n\t\t\t\tcase R.id.back:\n\t\t\t\t\tback();\n\t\t\t\t\treturn true;\n\t\t\t\t\t\n\t\t\t\tcase R.id.edit:\n\t\t\t\t\tedit();\n\t\t\t\t\treturn true;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.action_done:\n\t\t\tquitPlay();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n Intent i;\n switch (id) {\n case R.id.action_search:\n break;\n case R.id.overflow1:\n i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(\"http://advanced.shifoo.in/site/appterms-and-conditions\"));\n startActivity(i);\n break;\n case R.id.overflow2:\n i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(\"http://www.shifoo.in/site/privacy-policy\"));\n startActivity(i);\n break;\n default:\n return super.onOptionsItemSelected(item);\n }\n return true;\n }",
"void onChamaItemClicked(int position);",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_quit:\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (myDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch(item.getItemId()) {\n case R.string.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getSupportActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n } else {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n \r\n \tint id = item.getItemId();\r\n switch (id) {\r\n case R.id.action_settings:\r\n \topenSettings();\r\n return true;\r\n case R.id.action_about:\r\n \topenAbout();\r\n \treturn true;\r\n case R.id.action_exit:\r\n \tExit();\r\n \treturn true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_settings) {\n\t\t\treturn true;\n\t\t}\n\t\t// Handle presses on the action bar items\n\t switch (item.getItemId()) {\n\t case R.id.action_settings:\n\t //openSearch();\n\t return true;\n\t case R.id.action_talkback:\n\t startActivity(new Intent(this, AboutMeActivity.class));\n\t return true;\n\t default:\n\t return super.onOptionsItemSelected(item);\n\t }\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch (item.getItemId()) {\n case R.id.action_websearch:\n // create intent to perform web search for this planet\n Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);\n intent.putExtra(SearchManager.QUERY, getActionBar().getTitle());\n // catch event that there's no activity to handle intent\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n } else {\n Toast.makeText(this, R.string.app_not_available, Toast.LENGTH_LONG).show();\n }\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\t case R.id.menu_call_search_dialpad:\n\t\t mHaptic.vibrate();\n if (mListener != null) {\n mListener.onSearchButtonPressed();\n }\n\t\t return true ;\n case R.id.menu_2s_pause:\n updateDialString(\",\");\n return true;\n case R.id.menu_add_wait:\n updateDialString(\";\");\n return true;\n default:\n return false;\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n int id = item.getItemId();\n // 주석처리함..\n // if (id == R.id.action_settings) {\n // return true;\n // }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n //Implement action listener on the menu buttons\n int itemId = item.getItemId();\n\n //Choose the appropriate action menu based on the button selected\n switch (itemId) {\n case R.id.action_open_save_list:\n openSaveList();\n break;\n case R.id.action_settings:\n openAppSettings();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n // Handle action buttons\n switch (item.getItemId()) {\n case R.id.action_websearch:\n Toast.makeText(this, \"Search Web for planet \" + mTitle, Toast.LENGTH_SHORT).show();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch(id)\n {\n case R.id.action_home:\n Intent intent1 = new Intent(NoteListActivity.this.getApplicationContext(), MainActivity.class);\n startActivity(intent1);\n finish();\n break;\n case R.id.action_links:\n Intent intent2 = new Intent(NoteListActivity.this.getApplicationContext(), LinkListActivity.class);\n startActivity(intent2);\n finish();\n break;\n case R.id.action_tips:\n Intent intent3 = new Intent(NoteListActivity.this.getApplicationContext(), TipActivity.class);\n startActivity(intent3);\n break;\n default:\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_settings:\n // User chose the \"Settings\" item, show the app settings UI...\n return true;\n\n case R.id.search_bar:\n //User search the Item\n //open search activity\n goto_search();\n return true;\n case R.id.action_bookmark:\n // User chose the \"Bookmark\" action, mark the current item\n // as a Bookmark...\n gotoBookmark();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n\n //noinspection SimplifiableIfStatement\n\n }",
"@Override\n\t \tpublic boolean onOptionsItemSelected(MenuItem item){\n\t \tswitch(item.getItemId()) {\n\t \tcase R.id.action_settings:\n\t \t\tIntent intent = new Intent(this, SettingsActivity.class);\n\t \t startActivity(intent);\n\t \t\tbreak;\n\t \tcase R.id.action_search:\n\t \t\tIntent intent2 = new Intent(this, SearchActivity.class);\n\t \t startActivity(intent2);\n\t \t\tbreak;\n\t \tcase R.id.action_logout:\n\t \t\tAlertDialog alertDialog = new AlertDialog.Builder(this).create();\n\t \t\talertDialog.setTitle(\"Logout\");\n\t \t\talertDialog.setMessage(\"Are you sure you want to logout?\");\n\t \t\talertDialog.setButton(BUTTON_POSITIVE,\"OK\", new DialogInterface.OnClickListener() {\n\t \t\t public void onClick(DialogInterface dialog, int which) {\n\t \t\t \n\t \t\t \t Intent i = getBaseContext().getPackageManager()\n\t \t\t \t .getLaunchIntentForPackage( getBaseContext().getPackageName() );\n\t \t\t \ti.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\t \t\t \tstartActivity(i);\n\t \t\t } });\n\t \t\talertDialog.setButton(BUTTON_NEGATIVE,\"Cancel\", new DialogInterface.OnClickListener() {\n\t \t\t public void onClick(DialogInterface dialog, int which) {\n\t \t\t \n\n\t \t\t \t \n\t \t\t } });\n\t \t\talertDialog.show();\n\t \t\tbreak;\n\t \t\n\t \t}\n\t \t\n\t \t\treturn true;\n\t \t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (item.getItemId()){\n case R.id.action_search:\n //to do\n Toast.makeText(this, \"You clicked search\", Toast.LENGTH_SHORT).show();\n break;\n case R.id.action_filter:\n //to do\n Toast.makeText(this, \"You clicked filter\", Toast.LENGTH_SHORT).show();\n break;\n }\n\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (item.getItemId()){\n /* case R.id.action_credit:\n Intent search = new Intent(this,CreditHistoryActivity.class);\n startActivity(search);\n return true;*/\n case R.id.action_alert:\n Intent alert = new Intent(this,VendorAlertActivity.class);\n startActivity(alert);\n return true;\n }\n\n //noinspection SimplifiableIfStatement\n\n\n return super.onOptionsItemSelected(item);\n }"
]
| [
"0.720822",
"0.70255446",
"0.7014708",
"0.7014708",
"0.7014708",
"0.7014708",
"0.6999923",
"0.6961275",
"0.6873026",
"0.6861946",
"0.6860023",
"0.6852557",
"0.6836146",
"0.6836146",
"0.68187463",
"0.6804077",
"0.6800904",
"0.67987263",
"0.67964226",
"0.6776975",
"0.6776137",
"0.6768489",
"0.6764009",
"0.6764009",
"0.6764009",
"0.6764009",
"0.6764009",
"0.6764009",
"0.67398816",
"0.67398816",
"0.67398816",
"0.6738259",
"0.6734641",
"0.6707163",
"0.67059845",
"0.6696015",
"0.6696015",
"0.6696015",
"0.6696015",
"0.6696015",
"0.6696015",
"0.6696015",
"0.6696015",
"0.6693749",
"0.6658988",
"0.6652107",
"0.66425854",
"0.6641942",
"0.6641831",
"0.6636543",
"0.6628735",
"0.6625199",
"0.6616615",
"0.6612465",
"0.66124547",
"0.6603309",
"0.6596957",
"0.65951127",
"0.65892106",
"0.65824556",
"0.65673774",
"0.65615565",
"0.65588206",
"0.65545046",
"0.65441257",
"0.65432507",
"0.65426785",
"0.65411884",
"0.65411884",
"0.65411884",
"0.65411884",
"0.65411884",
"0.65411884",
"0.6539157",
"0.65299493",
"0.6529779",
"0.6523881",
"0.65147257",
"0.6513081",
"0.65026647",
"0.6499913",
"0.6498743",
"0.6493468",
"0.6493188",
"0.6489568",
"0.648899",
"0.6486632",
"0.648368",
"0.64829785",
"0.6481471",
"0.64771223",
"0.6472177",
"0.64682925",
"0.64678484",
"0.6467135",
"0.6463004",
"0.6462577",
"0.64603055",
"0.64598286",
"0.6458053",
"0.645758"
]
| 0.0 | -1 |
Grand the gps permission | private void permissionLocationRequest() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
int hasLocationPermission = checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION);
if (hasLocationPermission != PackageManager.PERMISSION_GRANTED) {
if (!shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)) {
showMessageOKCancel("You need to allow access to Location",
new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION},
REQUEST_CODE_ASK_PERMISSIONS);
}
});
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getLocationPermission(){\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationAccess = true;\n } else {\n locationAccess = false;\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION_PERMISSION);\n }\n }",
"public void checkLocationPermission() {\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (checkPermission(Manifest.permission.ACCESS_FINE_LOCATION, getActivity(), getActivity())) {\n if (checkPermission(Manifest.permission.ACCESS_COARSE_LOCATION, getActivity(), getActivity())) {\n gpsTracker.getLocation();\n } else {\n requestPermission(android.Manifest.permission.ACCESS_COARSE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n requestPermission(android.Manifest.permission.ACCESS_FINE_LOCATION, PERMISSION_REQUEST_CODE_LOCATION, getActivity().getApplicationContext(),\n getActivity());\n }\n } else {\n gpsTracker.getLocation();\n }\n } catch (Exception e) {\n // logException(e, \"GpsMapManualFragment_checkLocationPermission()\");\n }\n\n\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"public void getLocationPermission() {\n if (!isPermissionGranted())\n // get the location permission from user\n // this will prompt user a dialog to give the location permission\n requestPermissionLauncher.launch(Manifest.permission.ACCESS_FINE_LOCATION);\n /*ActivityCompat.requestPermissions(activity,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);*/\n }",
"private void getLocationPermission() {\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n //request location permission\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION\n }, LOCATION_REQUEST_CODE);\n }\n fetchLastLocation();\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(activity.getApplicationContext(), android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(activity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void askPermission() {\n if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n Parameters.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"public void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(), new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_ACCESS_FINE_LOCATION);\n\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_ACCESS_COARSE_LOCATION);\n } else {\n isPermission = true;\n }\n }",
"private void checkLocationPermission() {\n\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n //location permission required\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n\n }else{\n //location already granted\n checkCoarseAddress();\n }\n }",
"private void getLocationPermission() {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\r\n PERMISSIONS_ACCESS_FINE_LOCATION);\r\n\r\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED){\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\r\n PERMISSIONS_ACCESS_COARSE_LOCATION);\r\n } else {\r\n isPermission = true;\r\n }\r\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(WeatherByGPS.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n mLocationPermissionGranted = false;\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"public void checkpermission()\n {\n permissionUtils.check_permission(permissions,\"Need GPS permission for getting your location\",1);\n }",
"private void getLocationPermission() {\n Log.wtf(TAG, \"getLocationPermission() has been instantiated\");\n\n Log.d(TAG, \"getLocationPermission: getting location permissions\");\n String[] permissions = {\n FINE_LOCATION,\n COARSE_LOCATION\n };\n\n if (ContextCompat.checkSelfPermission(getActivity(), FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(getActivity(), COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n Log.d(TAG, \"getLocationPermission: Permission granted\");\n initMap();\n\n } else {\n Log.d(TAG, \"getLocationPermission: requesting permission\");\n requestPermissions(permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n } else {\n Log.d(TAG, \"getLocationPermission: requesting permission\");\n requestPermissions(permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }",
"private void getLocationPermission(){\n Log.d(TAG, \"getLocationPermission: getting location permission.\");\n String[] permissions = {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n FINE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n COURSE_LOCATION)== PackageManager.PERMISSION_GRANTED){\n mLocationPermissionGaranted = true;\n getDeviceLocation();\n }else{\n ActivityCompat.requestPermissions(this, permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }else{\n ActivityCompat.requestPermissions(this, permissions, LOCATION_PERMISSION_REQUEST_CODE);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getActivity().getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void fineLocationPermissionGranted() {\n UtilityService.addGeofences(this);\n UtilityService.requestLocation(this);\n }",
"public void checkLocationPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n 99);\n }\n\n }",
"private void requestPermission(){\r\n ActivityCompat.requestPermissions(activity,new String[]{Manifest.permission.ACCESS_FINE_LOCATION},1);\r\n }",
"private void requestPermissionAccessLocation() {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n Log.d(TAG, \"permissionCheck: \" + permissionCheck);\n\n if (permissionCheck == PackageManager.PERMISSION_GRANTED) {\n updateFragmentOnLocationSuccess();\n } else {\n ActivityCompat\n .requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_PERMISSION_LOCATION);\n }\n }",
"void configure_button(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.INTERNET}\n ,10);\n }\n\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n\n }",
"private void locationPermission() {\n if(Build.VERSION.SDK_INT<23){\n locationPermission = true;\n startService(new Intent(this, LocationService.class));\n }else{\n if(checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationPermission = true;\n startService(new Intent(this, LocationService.class));\n return;\n }\n\n if(shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_COARSE_LOCATION) && shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)){\n Snackbar.make(drawer,\"Location access is required to show your friend and questions on map.\",Snackbar.LENGTH_INDEFINITE)\n .setAction(\"OK\", new View.OnClickListener() {\n @TargetApi(Build.VERSION_CODES.M)\n @Override\n public void onClick(View v) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION},LOCATION_PERMISSION_CODE);\n }\n })\n .show();\n }else{\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.ACCESS_COARSE_LOCATION},LOCATION_PERMISSION_CODE);\n }\n }\n }",
"private void checkLocationPermission() {\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)) {\n new AlertDialog.Builder(getActivity())\n .setTitle(\"give permission\")\n .setMessage(\"give permission message\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n })\n .create()\n .show();\n }\n else{\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1);\n }\n }\n\n }",
"@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n\n final ProgressDialog progressDialog = new ProgressDialog(InfoActivity.this);\n progressDialog.setMessage(\"Getting your location...\");\n progressDialog.show();\n SmartLocation.with(InfoActivity.this).location().oneFix().start(new OnLocationUpdatedListener() {\n @Override\n public void onLocationUpdated(Location location) {\n latitudeStr = String.valueOf(location.getLatitude());\n longitudeStr = String.valueOf(location.getLongitude());\n progressDialog.dismiss();\n Toast.makeText(InfoActivity.this, location.getLatitude() + \" \" + location.getLongitude(), Toast.LENGTH_SHORT).show();\n }\n });\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(getContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED)\n {\n mLocationPermissionGranted = true;\n } else {\n requestPermissions(\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION\n );\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n Log.d(TAG, \"Permission Result\");\n String[] permissions = {ACCESS_FINE_LOCATION,\n ACCESS_COURSE_LOCATION};\n\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n ACCESS_FINE_LOCATION) == PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n ACCESS_COURSE_LOCATION) == PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n permissions,\n LOCATION_PERMISSION_REQUEST_CODE);}\n } else{\n ActivityCompat.requestPermissions(this,\n permissions,\n LOCATION_PERMISSION_REQUEST_CODE);\n }\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void checkPermissions(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION\n },PERMS_CALL_ID);\n\n }\n\n\n }",
"private boolean isLocationAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n //If permission is granted returning true\r\n if (result == PackageManager.PERMISSION_GRANTED)\r\n return true;\r\n\r\n //If permission is not granted returning false\r\n return false;\r\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void checkPermission(){\n // vérification de l'autorisation d'accéder à la position GPS\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n// // l'autorisation n'est pas acceptée\n// if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n// Manifest.permission.ACCESS_FINE_LOCATION)) {\n// // l'autorisation a été refusée précédemment, on peut prévenir l'utilisateur ici\n// } else {\n // l'autorisation n'a jamais été réclamée, on la demande à l'utilisateur\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n FINE_LOCATION_REQUEST);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n // }\n } else {\n // TODO : autorisation déjà acceptée, on peut faire une action ici\n initLocation();\n }\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION );\n }",
"private boolean runtime_permissions() {\n if(Build.VERSION.SDK_INT >= 23 && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},100);\n\n return true;\n }\n return false;\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"@Override\n public void onClick(View view) {\n locationChecker.checkBeforeAsking(new PermissionChecker.CheckPermissionListener() {\n @Override\n public void onPermissionDenied() {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, null, null);\n }\n\n @Override\n public void onPermissionGranted() {\n\n gm.requestLastLocation(new GeoManager.GeoDirectLocationListener() {\n @Override\n public void onLocationError(Throwable error) {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, null, null);\n }\n\n @Override\n public void onLocationSuccess(double latitude, double longitude) {\n Navigator.fromAnyActivityToLocationPickerActivity(NewPubActivity.this, latitude, longitude);\n }\n });\n }\n });\n }",
"public void requestLocationPermision(){\n\n // Forma de actuar diferente si la versión del dispositivo en Marshmallow\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) {\n Log.d(TAG, \"Versión 23\");\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //Si no tenemos permiso, lo pedimos\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)) {\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"Show an expanation\");\n new AlertDialog.Builder(this)\n .setMessage(getString(R.string.show_explanation))\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n }\n })\n .create()\n .show();\n\n } else{\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_CODE_ASK_PERMISSIONS);\n }\n } else{\n Log.d(TAG, \"Tenemos permiso\");\n\n String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n if (!provider.contains(\"gps\")) {\n //Si el GPS no esta activo, pedimos su iniciación\n AlertNoGps();\n }\n\n //Inicializacion de los providers\n for (String s : locationManager.getAllProviders()) {\n int minDistance = 2;\n int checkInterval = 2;\n locationManager.requestLocationUpdates(s, checkInterval,\n minDistance, this);\n Location actualLocation = locationManager.getLastKnownLocation(s);\n //Comprobamos si es una mejor localización\n if (actualLocation!=null){\n if (isBetterLocation(actualLocation)){\n Log.d(TAG, \"Mejor localización -> \" + s + \" - \"+ actualLocation);\n bestLocation = actualLocation;\n }\n }\n }\n\n mMap.setMyLocationEnabled(true);\n setLocation();\n }\n } else{\n //Comprobacion de permisos\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"Tenemos permiso\");\n\n String provider = Settings.Secure.getString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED);\n\n if (!provider.contains(\"gps\")) {\n //Si el GPS no esta activo, pedimos su iniciación\n AlertNoGps();\n }\n\n //Inicializacion de los providers\n for (String s : locationManager.getAllProviders()) {\n int minDistance = 2;\n int checkInterval = 2;\n locationManager.requestLocationUpdates(s, checkInterval,\n minDistance, this);\n Location actualLocation = locationManager.getLastKnownLocation(s);\n if (actualLocation!=null){\n if (isBetterLocation(actualLocation)){\n Log.d(TAG, \"Mejor localización -> \" + s + \" - \"+ actualLocation);\n bestLocation = actualLocation;\n }\n }\n }\n\n mMap.setMyLocationEnabled(true);\n setLocation();\n }\n }\n\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(AdminMap.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(mContext,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(mActivity,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"void getlatlong(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.INTERNET}\n ,10);\n }\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n\n //noinspection MissingPermission\n locationManager.requestLocationUpdates(\"gps\", 0, 0, listener);\n\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(activity,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION );\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void getLocation() {\n if(ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)){\n new AlertDialog.Builder(this)\n .setTitle(\"Location Permission Required\")\n .setMessage(\"This app needs permission to use your location\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(RestaurantsActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n })\n .create()\n .show();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_LOCATIONS);\n }\n }\n }",
"public void askPermission() {\n if (ContextCompat.checkSelfPermission(getActivity()\n , android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n reqestLocationPermission);\n }\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION );\n }",
"private void enableMyLocation(){\n System.out.print(\"get here\");\n if(ContextCompat.checkSelfPermission(this.getContext(), Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n // Permission to access the location is missing.\n PermissionUtils.requestPermission(this.getActivity(),LOCATION_PERMISSION_REQUEST_CODE,\n Manifest.permission.ACCESS_FINE_LOCATION,true);\n }else if(googleMap!=null){\n // Access to the location has been granted to the app.\n googleMap.setMyLocationEnabled(true);\n }\n }",
"private void requestPermission() {\n boolean shouldProvideRationale = ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (shouldProvideRationale) {\n Log.i(TAG, \"requestPermission: \" + \"Displaying the permission rationale\");\n // provide a way so that user can grant permission\n\n showSnackbar(R.string.warning_txt, android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startLocationPermissionRequest();\n }\n });\n\n } else {\n startLocationPermissionRequest();\n }\n }",
"private void getLocation() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET}\n , 10);\n }\n return;\n }\n\n //Update location\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n }",
"private void checkpermission() {\n permissionUtils = new PermissionUtils(context, this);\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n permissions.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n permissionUtils.check_permission(permissions, \"Need GPS permission for getting your location\", LOCATION_REQUEST_CODE);\n }",
"public void askForPermissionsGrant(){\n int res =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n int res2 =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n if (res!= PackageManager.PERMISSION_GRANTED || res2!= PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"We need to access your location\")\n .setMessage(\"We want to track every breath you take\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n builder.create().show();\n }\n else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n publishLastLocation();\n }\n\n }",
"private void getLocationPermission() {\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_FINE_LOCATION) == PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this.getApplicationContext(), ACCESS_COARSE_LOCATION) == PERMISSION_GRANTED) {\n locationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{\n ACCESS_FINE_LOCATION,\n ACCESS_COARSE_LOCATION\n }, PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void enableLocation(){\n if(PermissionsManager.areLocationPermissionsGranted(this))\n {\n initializeLocationEngine();\n initializeLocationLayer();\n\n\n }else{\n permissionsManager = new PermissionsManager(this);\n permissionsManager.requestLocationPermissions(this);\n }\n }",
"private void startTrackingRoute(){\n if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n //Starts up alert dialog for getting permission\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOC_PERMISSION);\n }\n else{\n //Start the location updater listener\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, MIN_DISTANCE, this);\n }\n }",
"private void dynamicPermission() {\n if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.P) {\n Log.i(\"MainActivity\", \"android sdk <= 28 Q\");\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n String[] strings =\n {Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION};\n ActivityCompat.requestPermissions(this, strings, 1);\n }\n } else {\n // Dynamically apply for required permissions if the API level is greater than 28. The android.permission.ACCESS_BACKGROUND_LOCATION permission is required.\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,\n \"android.permission.ACCESS_BACKGROUND_LOCATION\") != PackageManager.PERMISSION_GRANTED) {\n String[] strings = {android.Manifest.permission.ACCESS_FINE_LOCATION,\n android.Manifest.permission.ACCESS_COARSE_LOCATION,\n \"android.permission.ACCESS_BACKGROUND_LOCATION\"};\n ActivityCompat.requestPermissions(this, strings, 2);\n }\n }\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"@Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(IntroActivity.this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQCODELOCATION\n );\n } else {\n // caso contrario: obtener la ubicacion actual\n getCurrentLocation();\n }\n\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(mapActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(OwnerMapActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(ActivityLivetrackingRest.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void askForLocationPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //this code will be executed on devices running on DONUT (NOT ICS) or later\n askForPermission(Manifest.permission.ACCESS_FINE_LOCATION, Extra.LOCATION);\n }\n }",
"void configure_button(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,Manifest.permission.ACCESS_FINE_LOCATION,Manifest.permission.INTERNET}\n ,10);\n }\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n locButton.setOnClickListener(new View.OnClickListener() {\n @SuppressLint(\"MissingPermission\")\n @Override\n public void onClick(View view) {\n //noinspection MissingPermission\n switcher = true;\n locManager.requestLocationUpdates(\"gps\", 5000, 0, locListener);\n }\n });\n }",
"void requestPermissionAndPopulateDistance(){\n //Check and acquire COARSE location permissions, to calculate distance, if not already granted\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_COARSE_LOCATION)){\n // show rationale\n }else{\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION}, PERMISSION_CONS);\n }\n }else{\n //If the permission is already acquired, calculate the distance and update the view\n calculateAndPopulateDistance();\n }\n }",
"private boolean checkPermissions() {\n boolean permissionGrant = false;\n if (Build.VERSION.SDK_INT >= 23 && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions((Activity) this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_ACCESS_COARSE_LOCATION);\n } else {\n permissionGrant = true;\n }\n return permissionGrant;\n\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"public static boolean isGPSAllowed(FragmentActivity act) {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(act, Manifest.permission.ACCESS_FINE_LOCATION);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }",
"private void updateGPS() {\n fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(Location.this);\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n fusedLocationProviderClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<android.location.Location>() {\n @Override\n public void onSuccess(android.location.Location location) {\n updateUI(location);\n }\n });\n } else {\n //permission not granted, we will ask for it\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 99);\n }\n }\n }",
"private void requestLocationPermission() {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\n new AlertDialog.Builder(this)\n .setTitle(\"Permission needed\")\n .setMessage(\"Location Permission is needed to show your current location on the map\")\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(ScavengerHunt.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Toast.makeText(ScavengerHunt.this, \"Location Permission is needed to update the map\", Toast.LENGTH_SHORT).show();\n }\n })\n .create()\n .show();\n\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 2);\n }\n }",
"void configure_button() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET,Manifest.permission.RECORD_AUDIO,Manifest.permission.WRITE_EXTERNAL_STORAGE}\n , 10);\n }\n return;\n }\n // this code won't execute IF permissions are not allowed, because in the line above there is return statement.\n b.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n locationManager.requestSingleUpdate(\"gps\", listener, looper);\n //locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n\n }\n });\n }",
"private void setupLocation() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted.\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION) &&\n ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_COARSE_LOCATION)) {\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n LOCATION_PERMISSION_REQUEST);\n } else {\n // Request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION},\n LOCATION_PERMISSION_REQUEST);\n }\n } else {\n // Permission has already been granted\n }\n }",
"public static void checkLocationPermission() {\n globalContext.stopService(locationIntent);\n\n globalFragmentActivity.requestPermissions(\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION\n },\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"private void registerForGPS() {\n Log.d(NAMAZ_LOG_TAG, \"registerForGPS:\");\n Criteria criteria = new Criteria();\n criteria.setAccuracy(Criteria.ACCURACY_COARSE);\n criteria.setPowerRequirement(Criteria.POWER_LOW);\n criteria.setAltitudeRequired(false);\n criteria.setBearingRequired(false);\n criteria.setSpeedRequired(false);\n criteria.setCostAllowed(true);\n LocationManager locationManager = ((LocationManager) getSystemService(Context.LOCATION_SERVICE));\n String provider = locationManager.getBestProvider(criteria, true);\n\n if(!isLocationEnabled()) {\n showDialog(\"Location Access\", getResources().getString(R.string.location_enable), \"Enable Location\", \"Cancel\", 1);\n } else {\n ActivityCompat.requestPermissions(QiblaDirectionActivity.this,\n new String[]{Manifest.permission. ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }\n\n /* if (provider != null) {\n locationManager.requestLocationUpdates(provider, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);\n }\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n MIN_LOCATION_TIME, MIN_LOCATION_DISTANCE, qiblaManager);\n locationManager.requestLocationUpdates(\n LocationManager.NETWORK_PROVIDER, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);*/\n /*Location location = locationManager\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location == null) {\n location = ((LocationManager) getSystemService(Context.LOCATION_SERVICE))\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }*/\n\n }",
"private void requestPermissions() {\n String[] PERMISSIONS = {android.Manifest.permission.WRITE_EXTERNAL_STORAGE};\r\n ActivityCompat.requestPermissions(this, PERMISSIONS, 112);\r\n\r\n ActivityCompat.requestPermissions(this,\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,}, 1000);\r\n\r\n // Check for GPS usage permission\r\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED\r\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n ActivityCompat.requestPermissions(this,\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,}, 1000);\r\n\r\n }\r\n }",
"private void updateGPS(){\n fusedLocationProviderClient =\n\n //---------------------------------------------------------------------------------------------\n\n\n //get permission from the user to track GPS\n if(ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n //user provided the permission\n //if a location is found than the SuccessListener will create an other trigger to an other anonymous function it´s called\n fusedLocationProviderClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>(){\n @Override\n public void onSuccess(Location location) {\n //Update the UI\n updateUIValues(location);\n }\n });\n }\n else{\n //user permission not granted yet\n //checking valid OS\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){\n requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n }\n }\n\n }",
"private boolean checkPermission() {\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED );\n }",
"private boolean checkPermission() {\n if (Build.VERSION.SDK_INT >= 23 &&\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n return false;\n } else {\n return true;// Permission has already been granted }\n }\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(SearchActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }",
"private void requestFineLocationPermission() {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_REQ);\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 100) {\n if (resultCode != RESULT_OK)\n Toast.makeText(getContext(), \"GPS est déactivé\", Toast.LENGTH_LONG).show();\n else {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n setupmap();\n MapForm.setMyLocationEnabled(true);\n }\n }\n }\n }",
"private void requestPermission() {\n if (shouldShowRequestPermissionRationale(android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(this.getResources().getString(R.string.request_location_permission_message))\n .setPositiveButton(this.getResources().getString(R.string.OK), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n } else {\n ActivityCompat.requestPermissions((Activity) mContext,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n }",
"private void requestPermissions() {\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_ID);\n }",
"private void requestPermissions() {\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_ID);\n }",
"private boolean checkPermission() {\n int fineLocation = ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (fineLocation != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_FINE_LOCATION);\n }\n return false;\n } else {\n return true;\n }\n }",
"@Override\n public boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }",
"public void addLocation(View v){\n if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n //This may not work\n Location lastLocation = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n double latitude = lastLocation.getLatitude();\n double longitude = lastLocation.getLongitude();\n startAddLocation(longitude, latitude);\n }\n else{\n Toast toast = new Toast(this);\n toast.setText(\"Missing Permissions\");\n toast.show();\n }\n }",
"private void requestLocationPermission() {\n Log.d(MainActivity.TAG,\"Requesting location permission.\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (shouldShowRequestPermissionRationale(\n android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(this, R.string.location_permission_request_rationale, Toast.LENGTH_SHORT).show();\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n }\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MainActivity.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }",
"private void askPermissionsAndShowMyLocation() {\n boolean isGPSEnabled = false;\n // flag for network status\n boolean isNetworkEnabled = false;\n // flag for GPS status\n boolean canGetLocation = false;\n LocationManager locationManager;\n\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // getting GPS status\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n // getting network status\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n if (Build.VERSION.SDK_INT >= 23) {\n // flag for GPS status\n if (!isGPSEnabled && !isNetworkEnabled) {\n// no network provider is enabled\n final Intent data = new Intent();\n data.putExtra(\"latitude\", latitude);\n data.putExtra(\"longitude\", longitude);\n\n setResult(Activity.RESULT_CANCELED, data);\n finish();\n } else {\n// if (accessCoarsePermission != PackageManager.PERMISSION_GRANTED\n// || accessFinePermission != PackageManager.PERMISSION_GRANTED)\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // The Permissions to ask user.\n String[] permissions = new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION};\n // Show a dialog asking the user to allow the above permissions.\n ActivityCompat.requestPermissions(this, permissions,\n REQUEST_ID_ACCESS_COURSE_FINE_LOCATION);\n\n return;\n }\n this.showMyLocation();\n }\n\n } else {\n if (!isGPSEnabled && !isNetworkEnabled) {\n// no network provider is enabled\n final Intent data = new Intent();\n data.putExtra(\"latitude\", latitude);\n data.putExtra(\"longitude\", longitude);\n\n setResult(Activity.RESULT_CANCELED, data);\n finish();\n } else {\n this.showMyLocation();\n }\n\n\n }\n // Show current location on Map.\n }",
"private void requestPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_CONTACTS)\n != PackageManager.PERMISSION_GRANTED\n ) {\n\n //Request Permissions\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS\n }, REQUEST_CODE_PERMISSION);\n return;\n }\n\n locationManager.requestLocationUpdates(\n LocationManager.GPS_PROVIDER, 0, 0,\n this);\n }",
"private void reqquestGps() {\n builder = new LocationSettingsRequest.Builder();//mang di request\n builder.addLocationRequest(locationRequest);\n SettingsClient settingsClient = LocationServices.getSettingsClient(context);//dang tao 1 requet vao may va lasy ra thong so\n\n Task<LocationSettingsResponse> task = settingsClient.checkLocationSettings(builder.build());//day la lenh cua thu vien\n\n task.addOnFailureListener(new OnFailureListener() {//lang nghe su kien bi fai kho k lay dc gps,boi nnhieu nhie nghuyen nhan 1 co the la chua bat,\n @Override\n public void onFailure(@NonNull Exception e) {//requye\n if (e instanceof ResolvableApiException) {//chua bat\n ResolvableApiException resolvableApiException = (ResolvableApiException) e;//bat man hinh hien thi bat gps\n ((MainActivity) context).requestOpenGps(resolvableApiException);\n }\n }\n });\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == RC_PERMISSION_ALL) {\n if (permissions.length > 0 && /*permissions[0].equals(android.Manifest.permission.READ_EXTERNAL_STORAGE) &&*/ grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n recreate();\n } else if (grantResults.length > 0 &&/* permissions[0].equals(Manifest.permission.ACCESS_FINE_LOCATION) && */grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n recreate();\n// mLocationPermissionGranted = true;\n } else if (/*grantResults.length > 0 &&*/ grantResults[0] == PackageManager.PERMISSION_DENIED) {\n Toast.makeText(this, \"Permissions denied the app will shut down shortly\", Toast.LENGTH_LONG).show();\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n finish();\n }\n }, 2000);\n }\n }\n\n // donot allow the onmap raedy proceed unless the permissions are granted and gps is on\n//\n }",
"private void startGettingLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n //should check if location is enabled\n\n initializeGoogleApiClient();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSION_ACCESS_LOCATION);\n }\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(AddressBook_add.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }"
]
| [
"0.7609357",
"0.7563183",
"0.73224956",
"0.7317584",
"0.73140574",
"0.72216576",
"0.7211065",
"0.7204168",
"0.7204168",
"0.71905434",
"0.71569747",
"0.71555513",
"0.7150625",
"0.7121363",
"0.71204096",
"0.71026677",
"0.70937467",
"0.70937467",
"0.7086778",
"0.70862526",
"0.70810455",
"0.70797354",
"0.70439583",
"0.7037892",
"0.7035957",
"0.7025641",
"0.70255387",
"0.7008955",
"0.6984988",
"0.69707155",
"0.69621956",
"0.69621956",
"0.6958678",
"0.6953699",
"0.6952939",
"0.6943917",
"0.69435453",
"0.69429845",
"0.69385195",
"0.69378304",
"0.69347936",
"0.6933464",
"0.6924661",
"0.6909694",
"0.689926",
"0.6898805",
"0.68959594",
"0.68854994",
"0.68561983",
"0.68293387",
"0.6819504",
"0.6814103",
"0.67861235",
"0.67805535",
"0.67781717",
"0.67757577",
"0.6775669",
"0.6775311",
"0.6773578",
"0.67623407",
"0.6745563",
"0.67422277",
"0.6735046",
"0.6724096",
"0.6721363",
"0.671204",
"0.67102563",
"0.6706363",
"0.67058975",
"0.67056525",
"0.67049927",
"0.6702987",
"0.6696135",
"0.6691498",
"0.66875774",
"0.6671611",
"0.666531",
"0.66615194",
"0.66181844",
"0.6590126",
"0.6584088",
"0.65801543",
"0.65556026",
"0.65376776",
"0.65298057",
"0.6522353",
"0.6515514",
"0.6513024",
"0.65026253",
"0.65026253",
"0.64897525",
"0.64658636",
"0.6462873",
"0.6461299",
"0.6439275",
"0.6422582",
"0.642039",
"0.6417194",
"0.63824195",
"0.6376424"
]
| 0.66116625 | 79 |
Using GPS to add current location. | public void add_location() {
if (currentLocationCheckbox.isChecked()) {
try {
CurrentLocation locationListener = new CurrentLocation();
LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);
Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);
if (location != null) {
int latitude = (int) (location.getLatitude() * 1E6);
int longitude = (int) (location.getLongitude() * 1E6);
currentLocation = new GeoPoint(latitude, longitude);
}
} catch (SecurityException e) {
e.printStackTrace();
}
} else {
currentLocation = null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addLocation(View v){\n if(ContextCompat.checkSelfPermission(this, ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n //This may not work\n Location lastLocation = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n double latitude = lastLocation.getLatitude();\n double longitude = lastLocation.getLongitude();\n startAddLocation(longitude, latitude);\n }\n else{\n Toast toast = new Toast(this);\n toast.setText(\"Missing Permissions\");\n toast.show();\n }\n }",
"private void obtainCurrentLocation(boolean add_current_location_on) {\n\t\tif (add_current_location_on) {\n\t\t\t// If Google Play Services is available\n\t\t\tif (servicesConnected()) {\n\t\t\t\t// mProgressBar_location.setVisibility(View.VISIBLE);\n\t\t\t\t// Get the current location\n\t\t\t\tLocation currentLocation = mLocationClient.getLastLocation();\n\t\t\t\tlink_to_global_report.setReporter_geopoint(new LatLng(currentLocation.getLatitude(), currentLocation.getLongitude()));\n\t\t\t\t// mProgressBar_location.setVisibility(View.GONE);\n\t\t\t\tLog.e(DEBUG, \"current_location_add:\" + currentLocation);\n\t\t\t}\n\n\t\t} else {\n\t\t\tToast.makeText(this, DEBUG + \"off ... supposed to delete loc!\", Toast.LENGTH_SHORT).show();\n\t\t\t// mProgressBar_location.setVisibility(View.GONE);\n\t\t}\n\t}",
"public void onLocationChanged(Location location) {\n \t\t\t\tcurrentLocation = String.valueOf(location.getLatitude()) + \"+\" + String.valueOf(location.getLongitude());\n \t\t\t}",
"private void startLocationService() {\n\t\tmLocationMngr = (LocationManager) this\r\n\t\t\t\t.getSystemService(Context.LOCATION_SERVICE);\r\n\r\n\t\tmGpsListener = new GPSListener();\r\n\t\tlong minTime = 10000;\r\n\t\tfloat minDistance = 0;\r\n\r\n\t\tmLocationMngr.requestLocationUpdates(LocationManager.GPS_PROVIDER,\r\n\t\t\t\tminTime, minDistance, mGpsListener);\r\n\t\tmLocationMngr.requestLocationUpdates(LocationManager.NETWORK_PROVIDER,\r\n\t\t\t\tminTime, minDistance, mGpsListener);\r\n\r\n\t\ttry {\r\n\t\t\tLocation lastLocation = mLocationMngr\r\n\t\t\t\t\t.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n\t\t\tif (lastLocation != null) {\r\n\t\t\t\tDouble latitude = lastLocation.getLatitude();\r\n\t\t\t\tDouble longitude = lastLocation.getLongitude();\r\n\t\t\t\tString msg = \"Your Current Location \\nLatitude: \" + latitude\r\n\t\t\t\t\t\t+ \", Longitude: \" + longitude;\r\n\t\t\t\tLog.i(TAG, msg);\r\n\t\t\t\t// this.showToastMsg(msg);\r\n\t\t\t\tshowCurrentLocation(latitude, longitude);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tString msg = \"Failed to get current location. Please try later.\";\r\n\t\t\tLog.e(TAG, msg);\r\n\t\t\tshowToastMsg(msg);\r\n\t\t}\r\n\r\n\t}",
"private void updateGPS() {\n fusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(Location.this);\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n fusedLocationProviderClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<android.location.Location>() {\n @Override\n public void onSuccess(android.location.Location location) {\n updateUI(location);\n }\n });\n } else {\n //permission not granted, we will ask for it\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 99);\n }\n }\n }",
"private void getLocation() {\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\t\t\tif (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\tFusedLocationProviderClient locationProviderClient = LocationServices.getFusedLocationProviderClient(getApplicationContext());\n\t\tlocationProviderClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(Location location) {\n\t\t\t\t\n\t\t\t\tfinal Location finalLocation = location;\n\t\t\t\t\n\t\t\t\tbtnGoToYou.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tLatLng userLocation = new LatLng(finalLocation.getLatitude(), finalLocation.getLongitude());\n\t\t\t\t\t\tmMap.addMarker(new MarkerOptions().position(userLocation).title(\"You are Here!\"));\n\t\t\t\t\t\tmMap.moveCamera(CameraUpdateFactory.newLatLng(userLocation));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"private void Location() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_ACCESS_FINE_LOCATION);\n }\n\n //Google Play Location stored in loc variable\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n\n\n @Override\n public void onSuccess(Location location) {\n\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n loc = location;\n getAddressFromLocation(loc.getLatitude(), loc.getLongitude());\n\n }\n }\n });\n }",
"private void registerForGPS() {\n Log.d(NAMAZ_LOG_TAG, \"registerForGPS:\");\n Criteria criteria = new Criteria();\n criteria.setAccuracy(Criteria.ACCURACY_COARSE);\n criteria.setPowerRequirement(Criteria.POWER_LOW);\n criteria.setAltitudeRequired(false);\n criteria.setBearingRequired(false);\n criteria.setSpeedRequired(false);\n criteria.setCostAllowed(true);\n LocationManager locationManager = ((LocationManager) getSystemService(Context.LOCATION_SERVICE));\n String provider = locationManager.getBestProvider(criteria, true);\n\n if(!isLocationEnabled()) {\n showDialog(\"Location Access\", getResources().getString(R.string.location_enable), \"Enable Location\", \"Cancel\", 1);\n } else {\n ActivityCompat.requestPermissions(QiblaDirectionActivity.this,\n new String[]{Manifest.permission. ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_LOCATION);\n }\n\n /* if (provider != null) {\n locationManager.requestLocationUpdates(provider, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);\n }\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,\n MIN_LOCATION_TIME, MIN_LOCATION_DISTANCE, qiblaManager);\n locationManager.requestLocationUpdates(\n LocationManager.NETWORK_PROVIDER, MIN_LOCATION_TIME,\n MIN_LOCATION_DISTANCE, qiblaManager);*/\n /*Location location = locationManager\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location == null) {\n location = ((LocationManager) getSystemService(Context.LOCATION_SERVICE))\n .getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }*/\n\n }",
"public void getLocation() {\n\n\t\t// If Google Play Services is available\n\t\tif (servicesConnected()) {\n\t\t\t// Get the current location\n\t\t\tLocation currentLocation = mLocationClient.getLastLocation();\n\n\t\t\t// Display the current location in the UI\n\t\t\tmLatLng.setText(LocationUtils.getLatLng(this, currentLocation));\n\n\t\t\tlatCurrent=(float) currentLocation.getLatitude();\n\t\t\tlntCurrent=(float) currentLocation.getLongitude();\n\n\t\t}\n\t}",
"private void enableMyLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n // Permission to access the location is missing.\n PermissionUtils.requestPermission(this, LOCATION_PERMISSION_REQUEST_CODE,\n Manifest.permission.ACCESS_FINE_LOCATION, true);\n mMap.setMyLocationEnabled(true);\n } else if (mMap != null) {\n // Access to the location has been granted to the app.\n mMap.setMyLocationEnabled(true);\n }\n Log.i(\"Current Location\", \"Location Enabled:\" + mMap.isMyLocationEnabled());\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n LocationListener locationListener = new OrderLocationListener();\n\n // Register the listener with the Location Manager to receive location updates\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 9000, 0, locationListener);\n Location location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\n makeUseOfNewLocation(location);\n\n location = LocationServices.FusedLocationApi.getLastLocation(client);\n\n makeUseOfNewLocation(location);\n\n }",
"private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }",
"private void getLocation() {\n if (ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getActivity(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET}\n , 10);\n }\n return;\n }\n\n //Update location\n locationManager.requestLocationUpdates(\"gps\", 5000, 0, listener);\n }",
"@SuppressWarnings({\"MissingPermission\"})\n private void setMarkerToCurrentLocation() {\n if(mLastLocation != null){\n Log.d(TAG, \"Current location latitude = \"+ mLastLocation.getLatitude() +\n \"Current location latitude = \" + mLastLocation.getLongitude());\n LatLng currentLocationMarker = new LatLng(mLastLocation.getLatitude(), mLastLocation.getLongitude());\n mMap.addMarker(new MarkerOptions().position(currentLocationMarker).title(\"Current location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(currentLocationMarker, 10));\n }\n else{\n Log.d(TAG, \"Last location is NULL\");\n LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this);\n }\n }",
"@SuppressLint(\"MissingPermission\")\n private void Locate(){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 2000, 0, (LocationListener) this);\n\n // Obtain the SupportMapFragment and get notified when the map is ready to be used.\n mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n\n //Initialize fused location\n client = LocationServices.getFusedLocationProviderClient(this);\n }",
"private void getlocation() {\n\t\t\t\ttry {\n\n\t\t\t\t\tgps = new GPSTracker(RegisterActivity.this);\n\t\t\t\t\tLog.d(\"LOgggg\", \"inCurrentlocation\");\n\n\t\t\t\t\t// check if GPS enabled\n\t\t\t\t\tif (gps.canGetLocation()) {\n\n\t\t\t\t\t\tlatitude = gps.getLatitude();\n\t\t\t\t\t\tlongitude = gps.getLongitude();\n\n\t\t\t\t\t\tLog.i(\"latitude\", \"\" + latitude);\n\t\t\t\t\t\tLog.i(\"longitude\", \"\" + longitude);\n\n\t\t\t\t\t\tnew getLoc().execute(\"\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tgps.showSettingsAlert();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Log.d(TAG, \"onLocationResult: got location result.\");\n\n Location location = locationResult.getLastLocation();\n\n if (location != null) {\n\n saveUserLocation(new LatLng(location.getLatitude(),location.getLongitude()));\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\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 }",
"private void getLastKnownLocation() {\n\n loc=LocationServices.FusedLocationApi.getLastLocation(client);\n\n if (loc != null) {\n Log.i(\"LOCATION: \",loc.toString());\n\n myCurrentLocationMarker= gMap.addMarker(new MarkerOptions()\n .position(new LatLng(loc.getLatitude(),loc.getLongitude()))\n .title(\"My Current Location\"));\n\n currentLocCircle= gMap.addCircle(new CircleOptions()\n .center(new LatLng(loc.getLatitude(),loc.getLongitude()))\n .radius(1000)\n .strokeColor(Color.GREEN)\n .fillColor(Color.LTGRAY));\n\n\n }\n else {\n\n AlertDialog.Builder builder= new AlertDialog.Builder(this);\n builder.setTitle(\"Location Service not Active\");\n builder.setMessage(\"Please enable location service (GPS)\");\n builder.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n }\n });\n Dialog dialog=builder.create();\n dialog.setCancelable(false);\n dialog.show();\n }\n }",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t\tGeoPoint p = new GeoPoint((int) (location.getLatitude() * 1E6), (int) (location.getLongitude() * 1E6));\n\t\t\toverlayHome = new MyOverlayItem(p, getString(R.string.Casa),getString(R.string.HelloCasa));\n\t\t\titemizedoverlay.addOverlay(overlayHome);\n\t\t\tContentValues initialValues = new ContentValues();\n\t\t\tinitialValues.put(Home.LATITUDE, p.getLatitudeE6());\n\t\t\tinitialValues.put(Home.LONGITUDE, p.getLongitudeE6());\n\t\t\tgetContentResolver().insert(Home.CONTENT_URI, initialValues);\n\t\t\tmapView.invalidate();\n\t\t\tmapView.getController().animateTo(p);\n\t\t\tToast.makeText(Map.this, \"Localização Gps\", Toast.LENGTH_SHORT).show();\n\t\t}",
"private void getCurrentLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n if (lastKnownLocation != null) {\n map.moveCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(lastKnownLocation.getLatitude(),\n lastKnownLocation.getLongitude()), DEFAULT_ZOOM));\n updateCameraBearing(map, location.getBearing());\n }\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }",
"private void comenzarLocalizacion()\n {\n \tlocManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n \t\n \t//Obtiene Ultima Ubicacion\n \t//Location loc = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n \t \t\n \t//Nos registramos para recibir actualizaciones de la posici�n\n \tlocListener = new LocationListener() {\n\t \tpublic void onLocationChanged(Location location) {\n\t \t\t\n\t \t}\n\t \tpublic void onProviderDisabled(String provider){\n\t \t\t\n\t \t}\n\t \tpublic void onProviderEnabled(String provider){\n\t \t\n\t \t}\n\t \tpublic void onStatusChanged(String provider, int status, Bundle extras){\n\t \t\n\t \t\t\n\t \t}\n \t};\n \t\n \tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 30000, 0, locListener);\n }",
"private void locationManager()\n\t{\n mMap.setMyLocationEnabled(true);\n\n // Getting LocationManager object from System Service LOCATION_SERVICE\n LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n\n // Creating a criteria object to retrieve provider\n Criteria criteria = new Criteria();\n\n // Getting the name of the best provider\n String provider = locationManager.getBestProvider(criteria, true);\n\n // Getting Current Location\n Location location = locationManager.getLastKnownLocation(provider);\n\n if(location!=null){\n onLocationChanged(location);\n }\n locationManager.requestLocationUpdates(provider, 20000, 0, this);\n\t\t\n\t}",
"public Location myLocation() {\n\n // Acquire a reference to the system Location Manager\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n criteria.setHorizontalAccuracy(Criteria.ACCURACY_FINE);\n String provider = locationManager.getBestProvider(criteria, true);\n // Define a listener that responds to location updates\n LocationListener locationListener = new LocationListener() {\n\n //When the location of the device changes\n public void onLocationChanged(Location location) {\n\n //Display the current location\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude,longitude);\n mGPSon.setText(\"Latitude: \"+Math.round(gp.x)+\"\\nLongitude: \"+Math.round(gp.y));\n\n }\n\n //When the status of the GNSS receiver changes\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\n\n\n }\n\n //When the location provider is enabled\n public void onProviderEnabled(String provider) {\n\n\n\n }\n\n //When the location provider is disabled\n public void onProviderDisabled(String provider) {\n\n\n\n }\n\n };\n // Register the listener with the Location Manager to receive location updates\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER,0,0,locationListener);\n // Obtain the current location\n Location myLocation = locationManager.getLastKnownLocation(provider);\n\n //Only if the current location is passed\n if (myLocation != null) {\n\n //Project the Location object to a GridPoint object\n double latitude = myLocation.getLatitude();\n double longitude = myLocation.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude, longitude);\n //Update the real-time latitude and longitude\n mGPSon.setText(\"Latitude: \" + Math.round(gp.x) + \"\\nLongitude: \" + Math.round(gp.y));\n return myLocation;\n\n } else {\n\n //If GPS is off, notify the user to turn it on\n Toast.makeText(MainActivity.this,\"Turn on GPS.\",Toast.LENGTH_SHORT).show();\n return null;\n\n }\n\n }",
"private void setLastLocation() {\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n // Permission has already been granted\n mFusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n lastLatitude = Double.toString(location.getLatitude());\n lastLongitude = Double.toString(location.getLongitude());\n //lastLocation = Double.toString(location.getLatitude()) + \",\" + Double.toString(location.getLongitude()) ;\n //String b = lastLocation;\n // Get into right format\n // Logic to handle location object\n }\n }\n });\n }\n }",
"private void configMyLocation() {\n try {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n\n FusedLocationProviderClient locationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n\n locationProviderClient.getLastLocation().addOnCompleteListener(new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n Location location = task.getResult();\n LatLng sd = new LatLng(location.getLatitude(), location.getLongitude());\n\n mMap.addMarker(new MarkerOptions().position(sd).title(\"you are here\").icon(BitmapDescriptorFactory.defaultMarker()));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sd));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sd, MAP_ZOOM));\n\n model.setLongitude(location.getLatitude());\n model.setLatitude(location.getLongitude());\n }\n });\n }catch (Exception ex){\n Constant.showMessage(\"Exception\", ex.getMessage(), this);\n }\n }",
"public void onNewLocationFromGPS(Location location) {\n gpsLocationFound = true;\n currentLocation = location;\n this.setLocationText(getLocationForPrint(location.getLatitude(),\n location.getLongitude()));\n requestForValidationOfQibla();\n }",
"@SuppressWarnings({\"MissingPermission\"})\n void getMyLocation() {\n mGoogleMap.setMyLocationEnabled(true);\n FusedLocationProviderClient locationClient = getFusedLocationProviderClient(getContext());\n locationClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n onLocationChanged(location);\n moveCamera();\n drawCircle();\n drawMarkers();\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"MapDemoActivity\", \"Error trying to get last GPS location\");\n e.printStackTrace();\n }\n });\n }",
"public static final void activateGps() {\n // This is called first to ensure that multiple instances of the listener aren't actually called and running.\n deactivateGps();\n\n loadLocationManager();\n \n // Load last known location coordinate, if available, so that user doesn't have to wait as long for a location.\n if (isGpsEnabled()) {\n Location gpsLocation = mLocationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (gpsLocation != null) {\n mLocationGps = gpsLocation;\n }\n } else if (isNetworkEnabled()) {\n Location networkLocation = mLocationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n if (networkLocation != null) {\n mLocationNetwork = networkLocation;\n }\n }\n \n mLocationListener = new LocationListener() {\n @Override\n public void onLocationChanged(Location location) {\n if (location.getProvider().equalsIgnoreCase(LocationManager.GPS_PROVIDER)) {\n mLocationGps = location;\n } else if (location.getProvider().equalsIgnoreCase(LocationManager.NETWORK_PROVIDER)) {\n mLocationNetwork = location;\n }\n// while (latitudeNowString.length() < 10) { latitudeNowString = latitudeNowString + \"0\"; }\n// while (longitudeNowString.length() < 11) { longitudeNowString = longitudeNowString + \"0\"; }\n }\n\n public void onStatusChanged(String provider, int status, Bundle extras) {}\n\n public void onProviderEnabled(String provider) {}\n\n public void onProviderDisabled(String provider) {}\n\n };\n\n // Register the listener with the Location Manager to receive location updates.\n if (isGpsEnabled()) {\n mLocationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME, MIN_DISTANCE, mLocationListener); // In milliseconds, meters.\n }\n if (isNetworkEnabled()) {\n mLocationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME, MIN_DISTANCE, mLocationListener); // In milliseconds, meters.\n }\n }",
"@SuppressLint(\"MissingPermission\")\n private void configureLocation() {\n\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 1000, 1, (android.location.LocationListener) locationListener);\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n Toast.makeText(getApplicationContext(), \"net acquired\", Toast.LENGTH_LONG).show();\n }",
"protected void startLocationUpdates()\n {\n try\n {\n if (googleApiClient.isConnected())\n {\n LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, this);\n isRequestingLocationUpdates = true;\n }\n }\n catch (SecurityException e)\n {\n Toast.makeText(getContext(), \"Unable to get your current location!\" +\n \" Please enable the location permission in Settings > Apps \" +\n \"> Bengaluru Buses.\", Toast.LENGTH_LONG).show();\n }\n }",
"public void updateLocation();",
"private void getLocation() { \n LocationManager locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); \n Criteria criteria = new Criteria(); \n criteria.setAccuracy(Criteria.ACCURACY_FINE); \n criteria.setAltitudeRequired(false); \n criteria.setBearingRequired(false); \n criteria.setCostAllowed(true);\n criteria.setPowerRequirement(Criteria.POWER_LOW); \n String provider = locationManager.getBestProvider(criteria,true); \n \n //In order to make sure the device is getting location, request updates. locationManager.requestLocationUpdates(provider, 1, 0, this); \n mostRecentLocation = locationManager.getLastKnownLocation(provider); \n }",
"private void updateGPS(){\n fusedLocationProviderClient =\n\n //---------------------------------------------------------------------------------------------\n\n\n //get permission from the user to track GPS\n if(ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n //user provided the permission\n //if a location is found than the SuccessListener will create an other trigger to an other anonymous function it´s called\n fusedLocationProviderClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>(){\n @Override\n public void onSuccess(Location location) {\n //Update the UI\n updateUIValues(location);\n }\n });\n }\n else{\n //user permission not granted yet\n //checking valid OS\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){\n requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n }\n }\n\n }",
"public Location getCurrentLocation();",
"public void convertToLocation() {\r\n\t\tdouble longitude = Double.MIN_VALUE;\r\n\t\tdouble latitude = Double.MIN_VALUE;\r\n\r\n\t\tdistance += 0.75;\r\n\t\tsteps = meter.getSteps();\r\n\r\n\t\tDataLogger.getInstance().setCurrDistance(distance);\r\n\r\n\t\tlatitude = 0.75 * Math.cos(orientation) * 0.000009\r\n\t\t\t\t+ DataLogger.getInstance().getPrevLatitude();\r\n\t\tlongitude = 0.75 * Math.sin(orientation) * 0.0000136\r\n\t\t\t\t+ DataLogger.getInstance().getPrevLongitude();\r\n\r\n\t\tDataLogger.getInstance().addLocation(latitude, longitude,\r\n\t\t\t\tjava.lang.System.currentTimeMillis());\r\n\r\n\t\tLog.d(TAG, \"Called convertToLocation\");\r\n\t}",
"private void getGPSLocation()\n {\n gps_ = new GPSLocator( LoginActivity.this );\n\n // check if GPS enabled\n if ( gps_.canGetLocation() )\n {\n latitude_ = gps_.getLatitude();\n longitude_ = gps_.getLongitude();\n\n // Raises a toast to show the location\n Toast.makeText(\n getApplicationContext(),\n \"Your Location is - \\nLat: \" + latitude_ + \"\\nLong: \"\n + longitude_, Toast.LENGTH_SHORT ).show();\n }\n else\n {\n // There was an error getting the gps information\n gps_.showSettingsAlert();\n }\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 }",
"public void getLocationInfo() {\n startLocationService();\n }",
"@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\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 }",
"protected void getLocation() {\n if (isLocationEnabled(Navigate.this)) {\n locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\n criteria = new Criteria();\n bestProvider = String.valueOf(locationManager.getBestProvider(criteria, true)).toString();\n\n //You can still do this if you like, you might get lucky:\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n Location location = locationManager.getLastKnownLocation(bestProvider);\n if (location != null) {\n Log.e(\"TAG\", \"GPS is on\");\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n } else {\n //This is what you need:\n locationManager.requestLocationUpdates(bestProvider, 1000, 0, this);\n }\n } else {\n// final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n// builder.setMessage(\"Your GPS seems to be disabled, do you want to enable it?\")\n// .setCancelable(false)\n// .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// startActivity(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n// }\n// })\n// .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n// public void onClick(final DialogInterface dialog, final int id) {\n// dialog.cancel();\n// }\n// });\n// final AlertDialog alert = builder.create();\n// alert.show();\n }\n }",
"public void onLocationChanged(Location location) {\n \t\tif(lastKnownLoc == null){//if there is no prev location, use this\r\n \t\t\tlastKnownLoc = location;\r\n \t\t}else{\r\n \t\t\tif(lastKnownLoc.hasAccuracy() && location.hasAccuracy()){//if both the current location and the new one have an accuracy\r\n \t\t\t\tif(lastKnownLoc.getAccuracy() <= location.getAccuracy()){//use the one that is more accurate\r\n \t\t\t\tlastKnownLoc = location;\r\n \t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tmap.addOverlay(location);\r\n \t\t//gpsText.setText(\"Latitude:\"+ lastKnownLoc.getLatitude() + \"\\nLongitude:\" + lastKnownLoc.getLongitude());\r\n }",
"protected void startLocationUpdates() {\n mLocationRequest = LocationRequest.create()\n .setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY)\n .setInterval(1000000)\n .setFastestInterval(1000000);\n // Request location updates\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, new LocationListener() {\n @Override\n public void onLocationChanged(Location location) {\n mLastLocation = location;\n }\n });\n }\n\n }",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(5);\n mLocationRequest.setFastestInterval(0);\n mLocationRequest.setNumUpdates(1);\n\n // setting LocationRequest\n // on FusedLocationClient\n FusedLocationProviderClient mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }",
"@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(5);\n mLocationRequest.setFastestInterval(0);\n mLocationRequest.setNumUpdates(1);\n\n // setting LocationRequest\n // on FusedLocationClient\n mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }",
"@SuppressLint(\"MissingPermission\")\n private void requestNewLocationData() {\n LocationRequest mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(5);\n mLocationRequest.setFastestInterval(0);\n mLocationRequest.setNumUpdates(1);\n\n // setting LocationRequest\n // on FusedLocationClient\n mFusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n mFusedLocationClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }",
"private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n Log.d(TAG, \"onLocationResult: got location result.\");\n Location location = locationResult.getLastLocation();\n if (location != null) {\n GeoPoint geoPoint = new GeoPoint(location.getLatitude(), location.getLongitude());\n userInfoDoc.get().addOnCompleteListener(task -> {\n Boolean av = (Boolean) task.getResult().get(\"Availability\");\n saveUserLocation(geoPoint , av);\n });\n saveDistance(geoPoint);\n\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }",
"@Override\n public void updateLocation(Location location) {\n if (location != null ) {\n Timber.e(\"updated location %1$s %2$s\", location.getLatitude(), location.getLongitude());\n\n CameraPosition cameraPosition = new CameraPosition.Builder().target(\n new LatLng(location.getLatitude(), location.getLongitude())).zoom(20).build();\n\n googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n LatLng latLng = new LatLng(location.getLatitude(), location.getLongitude());\n\n MarkerOptions markerOptions = new MarkerOptions();\n markerOptions.position(latLng);\n points.add(latLng);\n Polyline route = googleMap.addPolyline(new PolylineOptions()\n .width(30)\n .color(R.color.colorMapLine)\n .geodesic(false)\n .zIndex(1000));\n route.setPoints(points);\n\n writeToFile(\"Lati: \" + location.getLatitude() + \" , Longi: \" + location.getLongitude(), context);\n\n Timber.e(\"Main Activity updated location %1$s %2$s\", location.getLatitude(), location.getLongitude());\n Toast.makeText(MainActivity.this, \"Lati: \" + location.getLatitude() + \" , Longi: \" + location.getLongitude(), Toast.LENGTH_LONG).show();\n }\n }",
"private void startLocationUpdate()\r\n {\r\n try \r\n {\r\n _locationProvider = LocationProvider.getInstance(null);\r\n \r\n if ( _locationProvider == null ) \r\n {\r\n // We would like to display a dialog box indicating that GPS isn't supported, but because\r\n // the event-dispatcher thread hasn't been started yet, modal screens cannot be pushed onto\r\n // the display stack. So delay this operation until the event-dispatcher thread is running\r\n // by asking it to invoke the following Runnable object as soon as it can.\r\n Runnable showGpsUnsupportedDialog = new Runnable() \r\n {\r\n public void run() \r\n {\r\n Dialog.alert(\"GPS is not supported on this platform, exiting...\");\r\n System.exit( 1 );\r\n }\r\n };\r\n invokeLater( showGpsUnsupportedDialog ); // ask event-dispatcher thread to display dialog ASAP\r\n } \r\n else \r\n {\r\n // only a single listener can be associated with a provider, and unsetting it involves the same\r\n // call but with null, therefore, no need to cache the listener instance\r\n _locationProvider.setLocationListener(new LocationListenerImpl(), _interval, 1, 1);\r\n }\r\n } catch (LocationException le) {\r\n System.err.println(\"Failed to instantiate the LocationProvider object, exiting...\");\r\n System.err.println(le); \r\n System.exit(0);\r\n } \r\n }",
"public void onLocationChanged(Location location) {\n Log.d(\"Location\",location.toString());\n currentPosition.setAltitude(location.getAltitude());\n currentPosition.setCoordinate(new SKCoordinate(location.getLongitude(),location.getLatitude()));\n currentPosition.setSpeed(location.getSpeed());\n mapView.setPositionAsCurrent(currentPosition.getCoordinate(),1,true);\n }",
"@SuppressLint({\"MissingPermission\", \"DefaultLocale\"})\n private void requestCurrentLocation() {\n mFusedLocationClient\n .getCurrentLocation(PRIORITY_HIGH_ACCURACY, cancellationTokenSource.getToken())\n .addOnCompleteListener(this, task -> {\n if (task.isSuccessful() && task.getResult() != null) {\n Location result = task.getResult();\n Log.d(TAG, String.format(\"getCurrentLocation() result: %s\", result.toString()));\n logOutputToScreen(String.format(\n \"Location (success): %f, %f\",\n result.getLatitude(), result.getLongitude()\n ));\n } else {\n Log.e(TAG, String.format(\"Location (failure): %s\", task.getException()));\n }\n });\n }",
"private LatLng getCurrentLocation() {\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return new LatLng(0, 0);\n }\n LocationManager locationManager = (LocationManager) getSystemService(this.LOCATION_SERVICE);\n Location current_location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (current_location == null) {\n return new LatLng(0, 0);\n }\n return new LatLng(current_location.getLatitude(), current_location.getLongitude());\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n wayLatitude = location.getLatitude();\n wayLongitude = location.getLongitude();\n SharedStore.getInstance().save(Double.toString(wayLatitude),\"CurrentLat\");\n SharedStore.getInstance().save(Double.toString(wayLongitude),\"CurrentLong\");\n Log.e(\"getLocation\", String.valueOf(wayLatitude));\n }\n }",
"@SuppressWarnings(\"unused\")\n Location getCurrentLocation();",
"@Override\n\t\t\tpublic void onLocationSuccess(AMapLocation location) {\n\n\t\t\t\tmLoadingDialog.cancelDialog();\n\t\t\t\tll_mySite = new LatLng(location.getLatitude(), location\n\t\t\t\t\t\t.getLongitude());\n\n\t\t\t\tAppConfigUtil.LocalLocation.Location_latitude = String\n\t\t\t\t\t\t.valueOf(location.getLatitude());\n\t\t\t\tAppConfigUtil.LocalLocation.Location_longitude = String\n\t\t\t\t\t\t.valueOf(location.getLongitude());\n\t\t\t\tLatLng latLng;\n\t\t\t\tif (AppConfigUtil.LocalLocation.Location_latitude.equals(\"0.0\")\n\t\t\t\t\t\t|| AppConfigUtil.LocalLocation.Location_longitude\n\t\t\t\t\t\t\t\t.equals(\"0.0\")) {\n\t\t\t\t\tAppConfigUtil.LocalLocation.Location_latitude = MyApplication.Location_latitude;\n\t\t\t\t\tAppConfigUtil.LocalLocation.Location_longitude = MyApplication.Location_longitude;\n\t\t\t\t\tmNaviStart = new NaviLatLng(Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_latitude), Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_longitude));\n\t\t\t\t\tmStartPoints.add(mNaviStart);\n\t\t\t\t\tlatLng = new LatLng(Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_latitude), Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_longitude));\n\t\t\t\t} else {\n\t\t\t\t\tmNaviStart = new NaviLatLng(location.getLatitude(),\n\t\t\t\t\t\t\tlocation.getLongitude());\n\t\t\t\t\tmStartPoints.add(mNaviStart);\n\t\t\t\t\tlatLng = new LatLng(location.getLatitude(), location\n\t\t\t\t\t\t\t.getLongitude());\n\t\t\t\t}\n\n\t\t\t\t// 初始化当前位置\n\t\t\t\t// aMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\t\t\t\taMap.moveCamera(CameraUpdateFactory.zoomTo(14));\n\t\t\t\taMap.addMarker(new MarkerOptions()\n\t\t\t\t\t\t.position(latLng)\n\t\t\t\t\t\t.title(\"我的位置\")\n\t\t\t\t\t\t.icon(BitmapDescriptorFactory\n\t\t\t\t\t\t\t\t.fromResource(R.drawable.location_marker))\n\t\t\t\t\t\t.draggable(true));\n\t\t\t}",
"private void enableMyLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n // Permission to access the location is missing.\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 1337);\n } else if (mMap != null) {\n // Access to the location has been granted to the app.\n mMap.setMyLocationEnabled(true);\n }\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 500, 10, this);\n }",
"private void setCurrentLocation() {\n foundLocation = false;\n //Ignore the red line - we check for permissions before this function is called\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n googleMap.setMyLocationEnabled(true);\n FusedLocationProviderClient mFusedLocationProviderClient = LocationServices\n .getFusedLocationProviderClient(getActivity());\n //Ignore the red line - we check for permissions before this function is called\n Task<Location> lastLocation = mFusedLocationProviderClient.getLastLocation();\n lastLocation.addOnCompleteListener(task -> {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n Location location = task.getResult();\n if (location == null) {\n locationControlTask = new LocationControl();\n locationControlTask.execute(getActivity());\n } else {\n LatLng currentLatLng = new LatLng(location.getLatitude(),\n location.getLongitude());\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(currentLatLng,\n DEFAULT_ZOOM);\n googleMap.moveCamera(update);\n foundLocation = true;\n }\n }\n });\n }",
"public void locate()\n\t{\n\t\tlocationClient = new LocationClient(Main.activity.getApplicationContext()); // 实例化LocationClient类\n\t\t\t\t\n\t\tlocationClient.registerLocationListener(myListener); // 注册监听函数\n\t\tthis.setLocationOption();\t//设置定位参数\n\t\tlocationClient.start(); // 开始定位\n\t\tlocationClient.requestLocation();\n\t}",
"private void showCurrentLocation() {\n if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n LocationRequest locationRequest = LocationRequest.create();\n locationRequest.setInterval(10000);\n locationRequest.setFastestInterval(5000);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\n LocationCallback mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n if (locationResult == null) {\n return;\n }\n for (Location location : locationResult.getLocations()) {\n if (location != null) {\n LatLng current = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(current, 18));\n if (checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n mMap.setMyLocationEnabled(true);\n }\n\n }\n }\n }\n };\n\n LocationServices.getFusedLocationProviderClient(this).requestLocationUpdates(locationRequest, mLocationCallback, null);\n\n } else { // Show default location\n requestLocationPermission();\n\n LatLng current = new LatLng(34.180972800611016, -117.32337489724159);\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(current, 18));\n }\n }",
"private void getLocation() {\n NimbeesLocationManager.NimbeesLocationListener mNimbeesLocationListener = new NimbeesLocationManager.NimbeesLocationListener() {\n @Override\n public void onGetCurrentLocation(Location location) {\n mLocation = location;\n setUpMap();\n }\n\n @Override\n public void onError(NimbeesException e) {\n }\n };\n NimbeesClient.getLocationManager().obtainCurrentLocation(mNimbeesLocationListener);\n }",
"public void addLocation(Location location)\n {\n locationLst.add(location);\n }",
"private void getDeviceLocation(){\n mFusedLocationProviderClient = LocationServices.getFusedLocationProviderClient(this);\n\n try {\n if (mLocationPermissionsGranted) {\n\n final Task location = mFusedLocationProviderClient.getLastLocation();\n location.addOnCompleteListener(new OnCompleteListener() {\n @Override\n public void onComplete(@NonNull Task task) {\n if(task.isSuccessful()){\n\n Location currentLocation = (Location) task.getResult();\n\n if (currentLocation == null) {\n\n // Provide default current location\n\n currentLocation = new Location(\"\");\n currentLocation.setLatitude(51.454514);\n currentLocation.setLongitude(-2.587910);\n }\n\n } else {\n Helpers.showToast(getApplicationContext(), \"Could not get current location\");\n }\n }\n });\n }\n } catch (SecurityException e) {\n Helpers.showToast(getApplicationContext(), \"Could not get current location\");\n }\n }",
"@SuppressLint(\"MissingPermission\")\r\n public void initLocation(){\r\n //LocationManager.NETWORK_PROVIDER Otra opcion\r\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 1000, 2, new LocationListener() {\r\n @Override\r\n public void onLocationChanged(@NonNull Location location) {\r\n LatLng pos = new LatLng(location.getLatitude(), location.getLongitude());\r\n myMarker.setPosition(pos);\r\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(pos, 16));\r\n }\r\n\r\n @Override\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\r\n\r\n }\r\n\r\n @Override\r\n public void onProviderDisabled(@NonNull String provider) {\r\n\r\n }\r\n\r\n @Override\r\n public void onProviderEnabled(@NonNull String provider) {\r\n\r\n }\r\n });\r\n }",
"private void getLocation() {\n\n }",
"private void StartLocationUpdates() {\n mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_BALANCED_POWER_ACCURACY);\n mLocationRequest.setInterval(UPDATE_INTERVAL);\n mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n\n // Create LocationSettings object using location request\n LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder();\n builder.addLocationRequest(mLocationRequest);\n LocationSettingsRequest locationSettingsRequest = builder.build();\n\n // Checks if location settings are OK\n SettingsClient settingsClient = LocationServices.getSettingsClient(context);\n settingsClient.checkLocationSettings(locationSettingsRequest);\n\n if (ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission\n (context, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }else {\n getFusedLocationProviderClient(context).requestLocationUpdates(mLocationRequest, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n onLocationChanged(locationResult.getLastLocation());\n// getLastLocation();\n }\n },\n Looper.myLooper());\n }\n\n }",
"public void addLocation(LocationLocal location) {\n java.util.Set locationsCol = getLocations();\n locationsCol.add(location);\n }",
"@SuppressLint(\"MissingPermission\")\n private void doStuff() {\n LocationManager locationManager = (LocationManager) getApplicationContext().getSystemService(Context.LOCATION_SERVICE);\n if (locationManager != null) {\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, (LocationListener) this);\n }\n\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}",
"private void startLocationUpdates() {\n Log.d(LOG_TAG, \"startLocationUpdates() called\");\n fusedLocationClient.requestLocationUpdates(locationRequest, locationCallback, Looper.getMainLooper());\n }",
"private void getMyLocation() {\n LatLng latLng = new LatLng(latitude, longitude);\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(latLng, 18);\n googleMap.animateCamera(cameraUpdate);\n }",
"private void setupAddLocation() {\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n int resultCode = apiAvailability.isGooglePlayServicesAvailable(this);\n if (resultCode != ConnectionResult.SUCCESS) {\n // remove add location linear\n mAddLocationLinear.setVisibility(View.INVISIBLE);\n }\n\n }",
"@SuppressLint(\"MissingPermission\")\n private void getLastLocation() {\n if (checkPermissions()) {\n\n // check if location is enabled\n if (isLocationEnabled()) {\n\n // getting last\n // location from\n // FusedLocationClient\n // object\n mFusedLocationClient.getLastLocation().addOnCompleteListener(new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull com.google.android.gms.tasks.Task<Location> task) {\n Location location = task.getResult();\n if (location == null) {\n requestNewLocationData();\n } else {\n// latitudeTextView.setText(location.getLatitude() + \"\");\n// longitTextView.setText(location.getLongitude() + \"\");\n\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n address=\"\"+latitude+\",\"+longitude;\n\n// googleMap.addMarker(new MarkerOptions()\n// .position(new LatLng(latitude, longitude))\n// .title(\"Marker\"));\n Log.i(TAG, \"onCreate: latitude => \"+ latitude);\n Log.i(TAG, \"onCreate: longitude => \"+ longitude);\n }\n }\n });\n } else {\n Toast.makeText(this, \"Please turn on\" + \" your location...\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n } else {\n // if permissions aren't available,\n // request for permissions\n requestPermissions();\n }\n }",
"@SuppressWarnings({\"MissingPermission\"})\n public void getLastLocation() {\n if (isLocationEnabled()) {\n mFusedLocationClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // GPS location can be null if GPS is switched off\n if (location != null) {\n Toast.makeText(getContext(), \"location: \" + location, Toast.LENGTH_LONG).show();\n EventBus.getDefault().post(new LocationEvent(location));\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(\"MapDemoActivity\", \"Error trying to get last GPS location\");\n e.printStackTrace();\n }\n });\n }\n }",
"private void displayLocation() {\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (mLastLocation != null) {\n double latitude = mLastLocation.getLatitude();\n double longitude = mLastLocation.getLongitude();\n\n\n String add = getAddressString(latitude, longitude);\n\n //Check in\n student_checkin chkIn = new student_checkin(getActivity(), sessionId, \"Lat: \" + latitude + \" Long: \" + longitude);\n chkIn.execute();\n lblLocation.setText(latitude + \", \" + longitude);\n cords.setText(add);\n\n\n\n } else {\n\n lblLocation\n .setText(\"(Couldn't get the location. Make sure location is enabled on the device)\");\n }\n }",
"@Override\n public void onLocationChanged(Location loc)\n {\n \t\n \tint lat = (int) (loc.getLatitude() * 1E6);\n\t\t\tint lng = (int) (loc.getLongitude() * 1E6);\n\t\t\t point = new GeoPoint(lat, lng);\n\t\t\t \n\t\t\t /** remove the previous overlay so the another\n\t\t\t can be added **/\n\t\t\t itemizedOverlay.removeOverlay(0);\n\t\t\t \n\t\t\n\t\t\t //this follows the same steps in the OnCreate function at start up.\n\t\t\t // //Initialize a normal MapOVerlay item with new point.\n\t\t\t OverlayItem overlayitem = new OverlayItem(point, \"kiddda!\", \"sasri kal!\");\n\t\t \n\t\t itemizedOverlay.addOverlay(overlayitem);\n\t\t mapOverlays.add(itemizedOverlay);\n\t\t // move to new point.\n\t\t\tcontroller.animateTo(point); \n\t\t\t \n\t\n\t\t\t//debug message to say the location has been read.\n\t\t\tLog.i(\"Listener\", \"location read\");\n\t\t\t \n\t\t\n\n\t\t \n // String Text = \"My current location is: \" +\n\t\t\tLog.i(\"service check\",\" Latitude = \" + loc.getLatitude() +\n \" Longitude = \" + loc.getLongitude());\n \n // Toast.makeText( getApplicationContext(), Text, Toast.LENGTH_LONG).show();\n \n }",
"@Override\n public void onLocationChanged(final Location location) {\n // Lay vi tri hien tai cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if (tourTimesheetAdapter != null) {\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }",
"public void getLocation() {\n\t\tLocationResult locationResult = new LocationResult() {\n\t\t\t@Override\n\t\t\tpublic void gotLocation(Location location) {\n\t\t\t\tLog.d(TAG, \"Got location!\");\n\t\t\t\tmyLocation = location;\n\t\t\t}\n\t\t};\n\t\tMyLocation myLocation = new MyLocation();\n\t\tmyLocation.getLocation(this, locationResult);\n\t}",
"private void moveToCurrentLocation() {\n \t\tGPSFilterLocationRetriever retriever = new GPSFilterLocationRetriever( new Criteria() );\n \t\tLocation loc = retriever.getLocation( this );\n \n \t\tif ( loc == null ) {\n \t\t\t// User turned off GPS, send it to device location settings.\n \t\t\tIntent i = new Intent( android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS );\n \t\t\tthis.startActivity( i );\n \t\t} else {\n \t\t\t// First move to the last known location..\n \t\t\tthis.moveCameraToLocation( loc, false );\n \n \t\t\t// Check if location fix is out dated, if it is, request a new location, ONCE.\n \t\t\tlong elapsedTime = System.currentTimeMillis() - loc.getTime();\n \t\t\tif ( elapsedTime > MAX_LOCATION_FIX_AGE ) {\n \t\t\t\t// Therefore, we request a single fix.\n \t\t\t\tretriever.requestSingleUpdate( this, new LocationAdapter() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic void onLocationChanged( Location loc ) {\n \t\t\t\t\t\tmoveCameraToLocation( loc, true );\n \t\t\t\t\t}\n \t\t\t\t} );\n \t\t\t}\n \t\t}\n \t}",
"@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}",
"public void startLocationUpdates() {\n if(checkCoarseLocationPermission()) {\n LocationServices.FusedLocationApi.requestLocationUpdates(\n mGoogleApiClient, mLocationRequest, this);\n }\n }",
"private void updateLocationUI() {\n mCurrentLocationStr = mCurrentPlace.getAddress().toString();\n mCurrentLatLng = mCurrentPlace.getLatLng();\n if(mCurrentLocationStr.isEmpty())\n mCurrentLocationStr = String.format(\"(%.2f, %.2f)\",mCurrentLatLng.latitude, mCurrentLatLng.longitude);\n\n mAddLocation.setText(mCurrentLocationStr);\n mAddLocation.setTextColor(mSecondaryTextColor);\n mClearLocation.setVisibility(View.VISIBLE);\n }",
"@Override\n public boolean addNewLocation(JacocDBLocation toAdd)\n {\n\tlocationList.add(toAdd);\n\n\treturn writeLocationObjectToDB(toAdd);\n }",
"protected void startLocationUpdates() {\n mLocationRequest = new LocationRequest();\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequest.setInterval(UPDATE_INTERVAL);\n //mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n\n // Create LocationSettingsRequest object using location request\n LocationSettingsRequest.Builder builder = new LocationSettingsRequest.Builder();\n builder.addLocationRequest(mLocationRequest);\n LocationSettingsRequest locationSettingsRequest = builder.build();\n\n // Check whether location settings are satisfied\n // https://developers.google.com/android/reference/com/google/android/gms/location/SettingsClient\n SettingsClient settingsClient = LocationServices.getSettingsClient(this);\n settingsClient.checkLocationSettings(locationSettingsRequest);\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n try{\n getFusedLocationProviderClient(this).requestLocationUpdates(mLocationRequest, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n onLocationChanged(locationResult.getLastLocation(),false);\n }\n },\n Looper.myLooper());\n }\n catch(SecurityException e){\n e.printStackTrace();\n }\n\n }",
"@Override\n public void onLocationChange(Location loc) {\n user.setRelativePosition(loc.getX(), loc.getY());\n map.addStep(new PointF(loc.getX(), loc.getY()));\n //messageHandler.sendEmptyMessage(MESSAGE_REFRESH);\n }",
"public void requestLocation() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.INTERNET}, 12);\n }\n return;\n }\n //this line updates location\n mMap.setMyLocationEnabled(true);\n providerClient.requestLocationUpdates(locationRequest, locationCallback, getMainLooper());\n }",
"private void getGpsLocation() {\n Log.d(LOG_TAG, \"In getGpsLocation\");\n mLocationMgr = (LocationManager) mContext.getSystemService(mContext.LOCATION_SERVICE);\n try {\n Location mLocation = mLocationMgr.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (null != mLocation) {\n mLatitude = mLocation.getLatitude();\n mLongitude = mLocation.getLongitude();\n }\n } catch (SecurityException se) {\n Log.d(LOG_TAG, \"Security Exception\", se);\n }\n }",
"public Location getLocation() {\n /* if ( Build.VERSION.SDK_INT >= 23 &&\n ContextCompat.checkSelfPermission( mContext, android.Manifest.permission.ACCESS_FINE_LOCATION ) != PackageManager.PERMISSION_GRANTED ) {\n Toast.makeText(mContext,\"Permission is not granted so returning back \",Toast.LENGTH_LONG).show();\n// showSettingsAlert();\n return null ;\n }*/\n\n try {\n\n locationManager = (LocationManager) mContext.getSystemService(LOCATION_SERVICE);\n\n Criteria criteria = new Criteria();\n provider = locationManager.getBestProvider(criteria, false);\n if(provider != null) {\n Location location = locationManager.getLastKnownLocation(provider);\n\n // Initialize the location fields\n if (location != null) {\n System.out.println(\"Provider \" + provider + \" has been selected.\");\n onLocationChanged(location);\n resumeGpsService();\n }\n }else {\n// ISSUtils.checkPermission(mContext);\n }\n\n\n }catch (SecurityException secx) {\n secx.printStackTrace();\n// ISSUtils.checkPermission(mContext);\n showSettingsAlert();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n\n return location;\n }",
"private void configLoc(){\n System.out.println(\"Configuring location\");\n\n // first check for permissions\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) !=\n PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.INTERNET}\n , 10);\n }\n return;\n }\n locationManager.requestLocationUpdates(\"gps\",5000,0,locationListener);\n }",
"private Location getLocation() {\n try {\n locationManager = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);\n\n isGPSEnabled = locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\n isNetworkEnabled = locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\n\n if (!isGPSEnabled && !isNetworkEnabled) {\n\n } else {\n this.canGetLocation = true;\n\n if (isNetworkEnabled) {\n\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 // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n Log.d(TAG, \"nagy nulla\");\n return null;\n }\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 60000, 3, locationListener);\n\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n\n if (isGPSEnabled){\n if (location == null){\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 60000, 3, locationListener);\n if (locationManager != null){\n location = locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n if (location != null){\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }\n }\n } else {\n //showAlertDialog();\n }\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return location;\n }",
"@Override\r\n public void onLocationChanged(Location location) {\n\r\n sendLocationUpdates(location);\r\n }",
"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}",
"private void getCurrentLocation() {\n progressBar.setVisibility(View.VISIBLE);\n LocationRequest locationRequest = new LocationRequest();\n locationRequest.setInterval(10000);\n locationRequest.setFastestInterval(3000);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\n LocationServices.getFusedLocationProviderClient(IntroActivity.this).requestLocationUpdates(locationRequest, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n LocationServices.getFusedLocationProviderClient(IntroActivity.this).removeLocationUpdates(this);\n if (locationResult != null && locationResult.getLocations().size() > 0) {\n int latestLocationIndex = locationResult.getLocations().size() - 1;\n double LatOrg = locationResult.getLocations().get(latestLocationIndex).getLatitude();\n double LonOrg = locationResult.getLocations().get(latestLocationIndex).getLongitude();\n\n LatitudeTruePref = Double.toString(LatOrg);\n LongitudeTruePref = Double.toString(LonOrg);\n\n LocationReal = new LatLng(LatOrg, LonOrg);\n tvSkip.setText(String.format(\"Lat: %s\\nLon: %s\", LatitudeTruePref, LongitudeTruePref));\n //tvSkip.setText(String.format(\"Lat: %s\\nLon: %s\", LatOrg, LonOrg));\n }\n FalseLocationSignal = false;//*Desactivar FalseLocation para SharedPreferens*//\n TrueLocationSignal = true;\n progressBar.setVisibility(View.GONE);\n btnNext.setEnabled(true);\n }\n }, Looper.getMainLooper());\n\n }",
"public void onLocationChanged(Location location) {\r\n currentLocation = new GeoPoint(location);\r\n DatabaseInteractor.sendPosition(act, PreferenceData.getUserId(act), currentLocation.getLatitude(), currentLocation.getLongitude());\r\n\t\tguidoMap.showMyLocation();\r\n }",
"@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n Toast.makeText(this, currentLatitude + \", \" + currentLongitude + \"\", Toast.LENGTH_LONG).show();\n }",
"public void getLastLocation() {\n FusedLocationProviderClient locationClient = getFusedLocationProviderClient(this);\r\n\r\n locationClient.getLastLocation()\r\n .addOnSuccessListener(new OnSuccessListener<Location>() {\r\n @Override\r\n public void onSuccess(Location location) {\r\n // GPS location can be null if GPS is switched off\r\n if (location != null) {\r\n onLocationChanged(location);\r\n }\r\n }\r\n })\r\n .addOnFailureListener(new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Log.d(\"MapDemoActivity\", \"Error trying to get last GPS location\");\r\n e.printStackTrace();\r\n }\r\n });\r\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 }"
]
| [
"0.744921",
"0.72237664",
"0.7125696",
"0.71143544",
"0.7087946",
"0.7054032",
"0.6994624",
"0.6968811",
"0.69300556",
"0.69047374",
"0.6845004",
"0.68421745",
"0.6800634",
"0.67935777",
"0.67889535",
"0.6785597",
"0.6776286",
"0.6766423",
"0.6764734",
"0.67635477",
"0.6708657",
"0.67009586",
"0.66967076",
"0.66837937",
"0.6681999",
"0.6675771",
"0.6636037",
"0.66273874",
"0.660854",
"0.659292",
"0.6592719",
"0.65855753",
"0.6583034",
"0.65791315",
"0.6565271",
"0.65543824",
"0.65491253",
"0.65412366",
"0.6536216",
"0.653607",
"0.6527959",
"0.65100384",
"0.6492237",
"0.6483983",
"0.6483983",
"0.6483983",
"0.6483983",
"0.64737695",
"0.6470772",
"0.6470772",
"0.64656067",
"0.6459411",
"0.64574105",
"0.645559",
"0.6441503",
"0.64409477",
"0.64393073",
"0.64370847",
"0.643626",
"0.643346",
"0.6423995",
"0.64195937",
"0.64175606",
"0.6416019",
"0.64156955",
"0.63952804",
"0.6392184",
"0.6388996",
"0.63836896",
"0.6377185",
"0.6375589",
"0.6372384",
"0.63630724",
"0.63627285",
"0.6359109",
"0.6356123",
"0.63543963",
"0.6344335",
"0.63372976",
"0.6332745",
"0.63311535",
"0.63310295",
"0.6329826",
"0.6328054",
"0.63174945",
"0.6313623",
"0.629208",
"0.62886953",
"0.6285044",
"0.6283576",
"0.6274775",
"0.62646455",
"0.6260999",
"0.625713",
"0.6248687",
"0.6246396",
"0.6246011",
"0.6245638",
"0.6241658",
"0.6231766"
]
| 0.8360075 | 0 |
When the Location TextView is chosen, if it is online then change to the map, if it is offline then send the warning message | public void chooseLocation(View v) {
InternetConnectionChecker checker = new InternetConnectionChecker();
Context context = getApplicationContext();
final boolean isOnline = checker.isOnline(context);
if (isOnline) {
if (currentLocationCheckbox.isChecked()) {
Toast.makeText(getApplicationContext(), "Sorry, You have already chosen CURRENT LOCATION.", Toast.LENGTH_LONG).show();
} else {
Intent child = new Intent(getApplicationContext(), ChooseLocationOnMapActivity.class);
startActivityForResult(child, REQ_CODE_CHILD);
}
} else {
Toast.makeText(getApplicationContext(), "Map is not available when this device is offline.", Toast.LENGTH_LONG).show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onLocationChanged(final Location location) {\n // Lay vi tri hien tai cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if (tourTimesheetAdapter != null) {\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }",
"@Override\n public void onLocationChanged(AMapLocation amapLocation) {\n if (amapLocation != null && amapLocation.getErrorCode() == 0) {\n visitor_address_change.setText(amapLocation.getAddress());\n php_Address = amapLocation.getAddress();\n php_Lng = amapLocation.getLongitude() + \"\";\n php_Lat = amapLocation.getLatitude() + \"\";\n mOkTv.setText(\"完成\");\n }\n else if (amapLocation.getErrorCode() == 12) {\n BsPermissionUtils.getAddressInfo(mContext);\n }\n else {\n visitor_address_change.setText(\"(定位失败) 请选择位置\");\n }\n // AnimationUtil.setStopRotateAnimation(mAdressInco);// 停止旋转动画\n // mAdressInco.setVisibility(View.GONE);\n }",
"private void updateLocationUi() {\n if (mMap == null) {\n return;\n }\n try {\n if (mPermissionCheck.locationPermissionGranted()) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n if(location!=null)\n {\n lat.setText(location.getLatitude() + \"\");\n lon.setText(location.getLongitude() + \"\");\n }\n else {\n showAlertDialog(\"GPS Connectivity Problem, Try Again!\");\n }\n //pb.setVisibility(View.GONE);\n if ( d1!=null && d1.isShowing() ){\n d1.dismiss();\n d1=null;\n }\n // fetchadd();\n }",
"private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n }\n }",
"private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n\n /*\n * Request location permission, so that we can get the location of the\n * device. The result of the permission request is handled by a callback,\n * onRequestPermissionsResult.\n */\n if (ContextCompat.checkSelfPermission(this.getApplicationContext(),\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mLocationPermissionGranted = true;\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n }\n }",
"private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n\n // Display the user selected map type\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n MapStyleOptions style = MapStyleOptions.loadRawResourceStyle(mContext, R.raw.map_style_night);\n mMap.setMapStyle(style);\n\n // Don't want to display the default location button because\n // we are already displaying using a FAB\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n mMap.setOnMyLocationClickListener(this);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"@Override\n public void onLocationChanged(MapWidget v, Location location) {\n }",
"private void updateLocationUI() {\n if (map == null) {\n return;\n }\n try {\n if (locationPermissionGranted) {\n map.setMyLocationEnabled(true);\n map.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n map.setMyLocationEnabled(false);\n map.getUiSettings().setMyLocationButtonEnabled(false);\n lastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }",
"protected void updateLocationUI() {\n if (mCurrentLocation != null) {\n //TrackDataCSVHelper myCSV2 = new TrackDataCSVHelper();\n //mDistanceFromWaypointText.setText(String.valueOf(myCSV2.getLon(track, this))); //<-- used this to test getting proper lat/lon\n //mDistanceFromWaypointText.setText(String.format(\"%s: %f\", \"Dist from WP\", mDistanceFromWaypoint));\n //mZoneStatusText.setText(\"IN THE ZONE? \" + mIsInZone);\n //mNumberUpdates.setText(String.valueOf(mNum));\n }\n }",
"public void onLocationChanged(Location location) {\n\n if (net_connection_check()) {\n\n String message = String.format(\n\n \"New Location \\n Longitude: %1$s \\n Latitude: %2$s\",\n\n location.getLongitude(), location.getLatitude());\n\n // *************************** GPS LOCATION ***************************\n\n\n driveruserid = User_id;\n driverlat = location.getLatitude();\n driverlong = location.getLongitude();\n\n\n Location driverLocation = new Location(\"user location\");\n driverLocation.setLatitude(driverlat);\n driverLocation.setLongitude(driverlong);\n\n aController.setDriverLocation(driverLocation);\n\n String drivercurrentaddress = lattoaddress(driverlat, driverlong);\n\n\n if (!checktripend && mGoogleMap != null) {\n // mGoogleMap.clear();\n\n\n }\n LatLng mark1 = new LatLng(driverlat, driverlong);\n\n if (logoutcheck) {\n//\t\t\tDriverdetails();\n }\n\n LatLng target = new LatLng(driverlat, driverlong);\n\n String check = fullbutton.getText().toString();\n if (acc.equals(\"yes\") || check.equals(\"End Trip\")) {\n if (check.equals(\"End Trip\")) {\n // mGoogleMap.clear();\n // mGoogleMap.setTrafficEnabled(true);\n }\n origin = new LatLng(driverlat, driverlong);\n /* try{\n String url = getDirectionsUrl(origin, dest);\n drawMarker(dest);\n DownloadTask downloadTask = new DownloadTask();\n //Start downloading json data from Google Directions API\n downloadTask.execute(url);\n }catch (Exception e){\n\n }*/\n\n// checkOffRouteAndRedrwaRoute(location);\n\n }\n\n checkOffRouteAndRedrwaRoute(location);\n if (location.hasBearing() && mGoogleMap != null) {\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(target) // Sets the center of the map to current location\n .zoom(16)\n .bearing(location.getBearing()) // Sets the orientation of the camera to east\n .tilt(0) // Sets the tilt of the camera to 0 degrees\n .build(); // Creates a CameraPosition from the builder\n mGoogleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n }\n }\n }",
"@Override\n public void onNetworkConnectionChanged(boolean isInternetConnected) {\n if(isInternetConnected){\n hideLoadingDialog();\n getCurrentLocation();\n }else {\n showLoadingDialog(R.string.no_internet_connection);\n }\n }",
"@Override\n\t\tpublic boolean onTap(GeoPoint p, MapView mapView) \n\t\t{\n\t\t\tif(p!=null){\n\t longitudes = \"\"+p.getLongitudeE6()/1E6;\n latitudes = \"\"+p.getLatitudeE6()/1E6;\n //MapOverlay mapOverlay = new MapOverlay(p,MapViewActivity.this);\n\t //List<Overlay> listOfOverlays = mapView.getOverlays();\n\t //listOfOverlays.add(mapOverlay);\n\t // mapView.postInvalidate();\n \n \n Handler h = new Handler() {\n\n @Override\n public void handleMessage(Message msg) {\n\n if (msg.what != 1) { // code if not connected\n \t\n \tToast tt=Toast.makeText(MapViewActivity.this, \"Sorry! Network is not Responding\", 3000);\n\t\t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n\t\t\t\t\t\ttt.show();\n } else\n { // code if connected\n \tnameValuePairs.add(new BasicNameValuePair(\"latd\",latitudes));\n \t\t\tnameValuePairs.add(new BasicNameValuePair(\"lotd\",longitudes));\n \t\t\tnameValuePairs.add(new BasicNameValuePair(\"id\",LoginId));\n \t\t\tArrayList<NameValuePair> result=db.getServerData(nameValuePairs,\"updatecoordinates.php\");\n \t\t\tnameValuePairs.clear();\n \t\t\tfor(int i=0;i<result.size();i++)\n \t\t\t{\n \t\t\t\ts=result.get(i).getName();\n \t\t\t\tif(s.equals(\"Error\"))\n \t\t\t\t{\n \t\t\t\t\tToast tt=Toast.makeText(MapViewActivity.this, \"Adress Updated\", 3000);\n \t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n \t\t\t\t\ttt.show();\n \t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tToast tt=Toast.makeText(MapViewActivity.this, \"Adress Updated Error\", 3000);\n \t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n \t\t\t\t\ttt.show();break;\n \t\t\t\t}\n \t\t\t}\n \t\t\tresult.clear();\n }\n\n }\n };\n \t\tisNetworkAvailable(h,5000);\n\t \n\t\t\t\n\t Geocoder geoCoder = new Geocoder(getBaseContext(), Locale.getDefault());\n try\n {\n List<Address> addresses = geoCoder.getFromLocation(p.getLatitudeE6() / 1E6, p.getLongitudeE6() / 1E6, 1);\n \n String add = \"\";\n if (addresses.size() > 0) \n {\n for (int i=0; i<addresses.get(0).getMaxAddressLineIndex();i++)\n add += addresses.get(0).getAddressLine(i) + \"\\n\";\n }\n \n Toast.makeText(getBaseContext(), add, Toast.LENGTH_SHORT).show();\n }\n catch (IOException e)\n { \n e.printStackTrace();\n } \n \n return true;\n\t\t\t}\n else \n return false ; \n\t\t\t\n\t\t}",
"public void onLocationChanged(Location loc) {\n\n\n loc.getLatitude();\n loc.getLongitude();\n latitude=loc.getLatitude()+\", \"+loc.getLongitude();\n String Text = \"\\n Lat = \" + loc.getLatitude() + \"\\n Long = \" + loc.getLongitude();\n mensaje1.setText(Text);\n this.mainActivity.setLocation(loc);\n }",
"@Override\n public void onLocationChanged(Location location) {\n if (ActivityCompat.checkSelfPermission(TourTabsActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(TourTabsActivity.this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n // Bat gps thi di chuyen camera den vi tri cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if(tourTimesheetAdapter != null){\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }\n }",
"@Override\n\tpublic void onLocationChanged(Location location) {\n\n\n\n\n\t\t// Report to the UI that the location was updated\n\t\tmConnectionStatus.setText(R.string.location_updated);\n\n\t\t// In the UI, set the latitude and longitude to the value received\n\t\tmLatLng.setText(LocationUtils.getLatLng(this, location));\n\n\t\t//Changes only need to be done in getLocation to cosntantly update the location info\n\n\n\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 getCurrentLoaction() {\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n locationListener = new LocationListener() {\n @Override\n public void onLocationChanged(Location location) {\n latitude = \"\" + location.getLatitude();\n TextView txtLatitude = (TextView) findViewById(R.id.txtLatitude);\n txtLatitude.setText(\"Latitud: \" + latitude);\n longitude = \"\" + location.getLongitude();\n TextView txtLongitude = (TextView) findViewById(R.id.txtLongitude);\n txtLongitude.setText(\"Longitud: \" + longitude);\n\n Geocoder gcd = new Geocoder(getBaseContext(), Locale.getDefault());\n List<Address> addresses;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n if (addresses.size() > 0) {\n cityName = addresses.get(0).getLocality();\n }\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onStatusChanged(String s, int i, Bundle bundle) {\n\n }\n\n @Override\n public void onProviderEnabled(String s) {\n\n }\n\n @Override\n public void onProviderDisabled(String s) {\n Toast.makeText(pantallaIdentificacion.this, \"Por favor, habilite el GPS para continuar\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n };\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n locationManager.requestLocationUpdates(\"network\", 1000, 0, locationListener);\n }",
"@Override\n\tpublic void onConnected(Bundle bundle) {\n\t\tmConnectionStatus.setText(R.string.connected);\n\n\n\t\tstartPeriodicUpdates();\n\t\tgetAddress();\n\t\tLocation currentLoc = mLocationClient.getLastLocation();\n\t\tLatLng locationNew = new LatLng(currentLoc.getLatitude(),currentLoc.getLongitude());\n\t\tCameraUpdate cameraup=CameraUpdateFactory.newLatLngZoom(locationNew,15);\n\t\tLocationUtils.mMap.animateCamera(cameraup);\n\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n }",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t\tGeoPoint p = new GeoPoint((int) (location.getLatitude() * 1E6), (int) (location.getLongitude() * 1E6));\n\t\t\toverlayHome = new MyOverlayItem(p, getString(R.string.Casa),getString(R.string.HelloCasa));\n\t\t\titemizedoverlay.addOverlay(overlayHome);\n\t\t\tContentValues initialValues = new ContentValues();\n\t\t\tinitialValues.put(Home.LATITUDE, p.getLatitudeE6());\n\t\t\tinitialValues.put(Home.LONGITUDE, p.getLongitudeE6());\n\t\t\tgetContentResolver().insert(Home.CONTENT_URI, initialValues);\n\t\t\tmapView.invalidate();\n\t\t\tmapView.getController().animateTo(p);\n\t\t\tToast.makeText(Map.this, \"Localização Gps\", Toast.LENGTH_SHORT).show();\n\t\t}",
"@Override\n public void onLocationChanged(Location loc)\n {\n \t\n \tint lat = (int) (loc.getLatitude() * 1E6);\n\t\t\tint lng = (int) (loc.getLongitude() * 1E6);\n\t\t\t point = new GeoPoint(lat, lng);\n\t\t\t \n\t\t\t /** remove the previous overlay so the another\n\t\t\t can be added **/\n\t\t\t itemizedOverlay.removeOverlay(0);\n\t\t\t \n\t\t\n\t\t\t //this follows the same steps in the OnCreate function at start up.\n\t\t\t // //Initialize a normal MapOVerlay item with new point.\n\t\t\t OverlayItem overlayitem = new OverlayItem(point, \"kiddda!\", \"sasri kal!\");\n\t\t \n\t\t itemizedOverlay.addOverlay(overlayitem);\n\t\t mapOverlays.add(itemizedOverlay);\n\t\t // move to new point.\n\t\t\tcontroller.animateTo(point); \n\t\t\t \n\t\n\t\t\t//debug message to say the location has been read.\n\t\t\tLog.i(\"Listener\", \"location read\");\n\t\t\t \n\t\t\n\n\t\t \n // String Text = \"My current location is: \" +\n\t\t\tLog.i(\"service check\",\" Latitude = \" + loc.getLatitude() +\n \" Longitude = \" + loc.getLongitude());\n \n // Toast.makeText( getApplicationContext(), Text, Toast.LENGTH_LONG).show();\n \n }",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t}",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n mLocation = location;\n sendLocationToFireBase();\n statusTextView.setText(location.toString());\n } else {\n statusTextView.setText(\"CUCUK\");\n }\n }",
"@Override\n \t\t\tpublic void onLocationChanged(Location loc) {\n \t \n \t\t\t}",
"public void onLocationChanged(Location location) {\n\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(\n location.getLatitude(), location.getLongitude()), 17.0f));\n \n \n GetLocation(location);\n \n new ThreadLocation().execute(new DatabaseConnection());\t\t\t\t\n\t\t\thandlerLocation = new Handler() {\n\t\t\t\tpublic void handleMessage(Message myMessage) {\n\t\t\t\t\tresult = myMessage.getData().getString(\"result\");\n\t\t\t\t\tif (result.equals(\"False\")) {\n\t\t\t\t\t\t// CONNECTION PROBLEM\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), result, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// CONNECTION IS OK\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), result, Toast.LENGTH_SHORT).show();\n\t \t}\n\t\t\t\t}\n\t\t\t};\n \n\t\t}",
"private void displayLocation() {\n\n if(customProgressDialog.isShowing())\n customProgressDialog.cancel();\n\n boolean hasPermissionFine = (ContextCompat.checkSelfPermission(LocationChooser.this,\n android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n boolean hasPermissionCoarse = (ContextCompat.checkSelfPermission(LocationChooser.this,\n android.Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED);\n if (!hasPermissionFine || !hasPermissionCoarse) {\n ActivityCompat.requestPermissions(LocationChooser.this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION}, REQUEST_LOCATION);\n } else {\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n }\n mLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n if (mLocation != null) {\n sLat = mLocation.getLatitude();\n sLang = mLocation.getLongitude();\n Log.d(\"curren location:\", String.valueOf(sLat) + \"::\" + String.valueOf(sLang));\n source.setText(\"Your location\");\n //locationText.setText(String.valueOf(sLat)+\"::\"+String.valueOf(sLang));\n } else {\n Toast.makeText(this, \"Location not Detected.\", Toast.LENGTH_SHORT).show();\n // showSettingsAlert();\n }\n }",
"@Override\n\tpublic void onLocationChanged(Location loc)\n\t{\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n //enableMyLocation();\n if(checkPermission())\n mMap.setMyLocationEnabled(true);\n else askPermission();\n displayMarker();\n mMap.setOnMarkerClickListener(new GoogleMap.OnMarkerClickListener() {\n @Override\n public boolean onMarkerClick(Marker marker) {\n if (mIsText2SpeechReady)\n {\n mText2Speech.speak(mUserContact.getAddress(),\n TextToSpeech.QUEUE_FLUSH, null);\n Toast.makeText(getApplicationContext(),\n mUserContact.getAddress(),\n Toast.LENGTH_SHORT\n ).show();\n }\n return false;\n }\n });\n }",
"@Override\n public void onConnected(Bundle bundle) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Location not working\", Toast.LENGTH_LONG).show();\n return;\n }\n Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (location == null) {\n LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this);\n Toast.makeText(this, \"GPS signal too weak. Try again later\", Toast.LENGTH_LONG).show();\n } else {\n //If everything went fine lets get latitude and longitude\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n //Button to launch Map\n launchMapButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String strUri = \"http://maps.google.com/maps?q=loc:\" + currentLatitude + \",\" + currentLongitude + \" (\" + \"Current Location\" + \")\";\n Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(strUri));\n intent.setClassName(\"com.google.android.apps.maps\", \"com.google.android.maps.MapsActivity\");\n startActivity(intent);\n }\n });\n\n\n //Add the Latitude and longitude to address\n\n latitudeString = String.valueOf(location.getLatitude());\n longitudeString = String.valueOf(location.getLongitude());\n\n address = \"Current Location : \\n\" + \"Latitude: \" + latitudeString + \"\\nLongitude: \" + longitudeString;\n\n //Update the detailed location in the address\n try {\n Geocoder geocoder = new Geocoder(ReportIssueActivity.this, Locale.getDefault());\n List<Address> addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n address = address + \"\\nAddress: \" + addresses.get(0).getAddressLine(0) + \", \" +\n addresses.get(0).getAddressLine(1) + \", \"+addresses.get(0).getAddressLine(2);\n } catch(Exception e)\n {\n Toast.makeText(ReportIssueActivity.this, \"Couldn't find precise address!\", Toast.LENGTH_SHORT).show();\n }\n Toast.makeText(this, address, Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n \t\t\t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t \tTextView latitudine = (TextView) findViewById(R.id.latitude_txt);\n \t\t\t \tTextView longitudine = (TextView) findViewById(R.id.longitude_txt);\n\n \t\t\t \tlatitudine.setText(\"La latitudine è: \"+String.valueOf(location.getLatitude()));\n \t\t\t \tlongitudine.setText(\"La longitudine è: \"+String.valueOf(location.getLongitude()));\n \t\t\t\t\t\n \t\t\t\t\t}",
"@Override\n public void onLocationChanged(Location location) {\n\n }",
"@Override\n public void onLocationChanged(Location location) {\n\n }",
"@Override\n\t\t\tpublic void onLocationSuccess(AMapLocation location) {\n\n\t\t\t\tmLoadingDialog.cancelDialog();\n\t\t\t\tll_mySite = new LatLng(location.getLatitude(), location\n\t\t\t\t\t\t.getLongitude());\n\n\t\t\t\tAppConfigUtil.LocalLocation.Location_latitude = String\n\t\t\t\t\t\t.valueOf(location.getLatitude());\n\t\t\t\tAppConfigUtil.LocalLocation.Location_longitude = String\n\t\t\t\t\t\t.valueOf(location.getLongitude());\n\t\t\t\tLatLng latLng;\n\t\t\t\tif (AppConfigUtil.LocalLocation.Location_latitude.equals(\"0.0\")\n\t\t\t\t\t\t|| AppConfigUtil.LocalLocation.Location_longitude\n\t\t\t\t\t\t\t\t.equals(\"0.0\")) {\n\t\t\t\t\tAppConfigUtil.LocalLocation.Location_latitude = MyApplication.Location_latitude;\n\t\t\t\t\tAppConfigUtil.LocalLocation.Location_longitude = MyApplication.Location_longitude;\n\t\t\t\t\tmNaviStart = new NaviLatLng(Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_latitude), Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_longitude));\n\t\t\t\t\tmStartPoints.add(mNaviStart);\n\t\t\t\t\tlatLng = new LatLng(Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_latitude), Double\n\t\t\t\t\t\t\t.valueOf(MyApplication.Location_longitude));\n\t\t\t\t} else {\n\t\t\t\t\tmNaviStart = new NaviLatLng(location.getLatitude(),\n\t\t\t\t\t\t\tlocation.getLongitude());\n\t\t\t\t\tmStartPoints.add(mNaviStart);\n\t\t\t\t\tlatLng = new LatLng(location.getLatitude(), location\n\t\t\t\t\t\t\t.getLongitude());\n\t\t\t\t}\n\n\t\t\t\t// 初始化当前位置\n\t\t\t\t// aMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n\t\t\t\taMap.moveCamera(CameraUpdateFactory.zoomTo(14));\n\t\t\t\taMap.addMarker(new MarkerOptions()\n\t\t\t\t\t\t.position(latLng)\n\t\t\t\t\t\t.title(\"我的位置\")\n\t\t\t\t\t\t.icon(BitmapDescriptorFactory\n\t\t\t\t\t\t\t\t.fromResource(R.drawable.location_marker))\n\t\t\t\t\t\t.draggable(true));\n\t\t\t}",
"@Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n Log.d(TAG, \"onLocationResult: \");\n if (locationResult != null) {\n Log.d(TAG, \"onLocationResult: loaction!==null\");\n myLocation = locationResult.getLastLocation();\n showMarker();//de show hinh len\n }\n }",
"private void updateLocationUI() {\n mCurrentLocationStr = mCurrentPlace.getAddress().toString();\n mCurrentLatLng = mCurrentPlace.getLatLng();\n if(mCurrentLocationStr.isEmpty())\n mCurrentLocationStr = String.format(\"(%.2f, %.2f)\",mCurrentLatLng.latitude, mCurrentLatLng.longitude);\n\n mAddLocation.setText(mCurrentLocationStr);\n mAddLocation.setTextColor(mSecondaryTextColor);\n mClearLocation.setVisibility(View.VISIBLE);\n }",
"@Override\n public void onLocationChanged(Location location) {\n double longitude = location.getLongitude();\n double latitude = location.getLatitude();\n LocText.setText(\"Longitude:\" + longitude + \"\\n\" +\"Latitude\" + latitude);\n }",
"@Override\n \t\t\t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t \tTextView latitudine = (TextView) findViewById(R.id.latitude_txt);\n \t\t\t \tTextView longitudine = (TextView) findViewById(R.id.longitude_txt);\n\n \t\t\t \tlatitudine.setText(\"La latitudine è: \"+String.valueOf(location.getLatitude()));\n \t\t\t \tlongitudine.setText(\"La longitudine è: \"+String.valueOf(location.getLongitude()));\n \t\t\t\t\t}",
"public void onLocationChanged(Location location) {\n Log.i( \"wifiMonitor\", location.toString() );\n\n }",
"@Override\n\tpublic void onConnected(Bundle arg0) {\n\t\t Toast.makeText(context, \"Connected\", Toast.LENGTH_SHORT).show();\n\t\t mLocationClient.requestLocationUpdates(mLocationRequest,this);\n\t}",
"@Override\n public void onLocationChanged(Location location) {\n Log.i(TAG,\"Location Listener start\");\n if(oneTime==0){\n \tgooglemap.setMyLocationEnabled(true);\n \t\tgooglemap.setMapType(GoogleMap.MAP_TYPE_HYBRID);//set map type this is sattelite map\n \t\t\n \t\n \n \tString coordinates[] = {\"\"+location.getLatitude(), \"\"+location.getLongitude()};\n \tmyLocLat = Double.parseDouble(coordinates[0]);\n \tmyLocLong = Double.parseDouble(coordinates[1]);\n \tLatLng ll=new LatLng(myLocLat, myLocLong);//create latlng object for current location\n \tgooglemap.moveCamera(CameraUpdateFactory.newLatLng(ll));//show current location in google map\n \t\t\tgooglemap.animateCamera(CameraUpdateFactory.zoomTo(15));//zoom in google map value 2-21\n \t\t\t//pos=googlemap.addMarker(new MarkerOptions().position(new LatLng(myLocLat, myLocLong)).snippet(\"latitude: \"+myLocLat+\"longitude: \"+myLocLong).title(\"youe are here\"));\n\t\t\t\t\n \t\t\t Geocoder gcd = new Geocoder(getApplicationContext(), Locale.getDefault());\n \t\t\t List<Address> addresses = null;\n\t\t\t\ttry {\n\t\t\t\t\taddresses = gcd.getFromLocation(location.getLatitude(),location.getLongitude(), 1);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t\t\t // String text=(addresses!=null)?\"City : \"+addresses.get(0).getSubLocality()+\"\\n Country : \"+addresses.get(0).getCountryName():\"Unknown Location\";\n\t\t\t\t \n\t\t\t\tString text=(addresses!=null)? addresses.get(0).getAddressLine(2):\"Unknown Location\";\n \t\t\t \n\t\t\t\tlocationCity = text.substring(0,text.indexOf(\",\"));\n \t\t\t\n \t\t\tpos=googlemap.addMarker(new MarkerOptions().position(new LatLng(myLocLat, myLocLong)).snippet(\"latitude: \"+myLocLat+\"longitude: \"+myLocLong).title(\"My location: \"+locationCity));\n \t\t\tpos.showInfoWindow();\n\t\t\t\n \t\n \t\t\toneTime++;\n }\n \t\n\n }",
"private void startCurrentLocationUpdates() {\n LocationRequest locationRequest = LocationRequest.create();\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n locationRequest.setInterval(3000);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n return;\n }\n }\n //Untuk data internet\n String status = null;\n ConnectivityManager cm = (ConnectivityManager) MapsActivity.this.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n\n if (activeNetwork == null) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Kamu Tidak Memiliki Koneksi Internet, Harap Nyalakan Data Seluler atau Wi-Fi\")\n .setTitle(\"Tidak Ada Koneksi\")\n .setCancelable(false)\n .setPositiveButton(\"Settings\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startActivityForResult(new Intent(android.provider.Settings.ACTION_SETTINGS), 0);\n }\n }\n )\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startCurrentLocationUpdates();\n }\n }\n );\n AlertDialog alert = builder.create();\n alert.show();\n }\n\n //untuk cek apakah gps on/off\n final LocationManager locationM = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n if (!locationM.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Harap Nyalakan GPS Terlebih Dahulu\")\n .setTitle(\"Tidak Dapat Menemukan Lokasi\")\n .setCancelable(false)\n .setPositiveButton(\"Settings\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent openLocationSettings = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n MapsActivity.this.startActivity(openLocationSettings);\n }\n }\n )\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n startCurrentLocationUpdates();\n }\n }\n );\n AlertDialog alert = builder.create();\n alert.show();\n }\n fusedLocationProviderClient.requestLocationUpdates(locationRequest, mLocationCallback, Looper.myLooper());\n }",
"public void onLocationChanged(Location location) {\n \n \t}",
"@Override\n public void onConnected(@Nullable Bundle bundle) {\n displayLocation();\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n }",
"private void setMapMode(boolean online) {\n if (online) {\n overlay.setTransparency(0.25f);\n fab.show();\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n mMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {\n @Override\n public void onCameraChange(CameraPosition cameraPosition) {\n if (cameraPosition.zoom > 15.5) {\n marker.setVisible(false);\n overlay.setVisible(true);\n } else {\n marker.setVisible(true);\n overlay.setVisible(false);\n marker.showInfoWindow();\n }\n }\n });\n } else {\n overlay.setTransparency(0f);\n fab.hide();\n mMap.setMapType(GoogleMap.MAP_TYPE_NONE);\n mMap.setOnCameraChangeListener(null);\n marker.setVisible(false);\n overlay.setVisible(true);\n\n Snackbar.make(getView(), R.string.map_no_internet_connection, Snackbar.LENGTH_LONG).show();\n }\n }",
"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 }",
"private void updateLocationUI() {\n if (mCurrentLocation != null) {\n Log.e(\"UPDATE GEO\", \"LAT \" + mCurrentLocation.getLatitude() + \" LON \" +\n mCurrentLocation.getLongitude() + \" LAST UPDATE \" + mLastUpdateTime);\n }\n }",
"public void goOffline()\n\t{\n\t\tif (isOnline()){\n\t\t\tchatConnection.closeConnection();\n\t\t}\n\t\tgetMainWindow().displayOfflineSymbol();\n\t\tcloseAllRoomWindows();\n\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.map);\n \n // TTS init follows\n Intent checkIntent = new Intent();\n checkIntent.setAction(TextToSpeech.Engine.ACTION_CHECK_TTS_DATA);\n startActivityForResult(checkIntent, MY_DATA_CHECK_CODE);\n \n // Mapview init follows \n mapView = (MapView) findViewById(R.id.mapview);\n mapView.setBuiltInZoomControls(true);\n \n LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n MyLocationListener locationListener = new MyLocationListener();\n Criteria criteria = new Criteria();\n criteria.setAccuracy(Criteria.ACCURACY_FINE);\n String provider = lm.getBestProvider(criteria, true);\n //Log.d(\"MainWindow\",\"provider = \"+provider); TODO find out what's that\n Location mostRecentLocation = lm.getLastKnownLocation(provider);\n if(mostRecentLocation!=null){\n \tlatid=mostRecentLocation.getLatitude();\n \tlongid=mostRecentLocation.getLongitude();\n \taccuracyd = mostRecentLocation.getAccuracy();\n \tprovidershow = mostRecentLocation.getProvider();\n }\n //lm.requestLocationUpdates(provider, 1, 0, locationListener);\n lm.requestLocationUpdates(lm.GPS_PROVIDER, 0, 0, locationListener);\n lm.requestLocationUpdates(lm.NETWORK_PROVIDER, 0, 0, locationListener);\n \n \n //set Kazan Kremlin location\n // Location location1 = new Location(\"Kazan Kremlin\");\n //location1.setLatitude(55.796879);\n //location1.setLongitude(49.108436);\n \n Location location1 = new Location(\"Berkeley\");\n location1.setLatitude(37.866011);\n location1.setLongitude(-122.265601);\n \n Location location3 = new Location(\"Berkeley\");\n location1.setLatitude(37.866011);\n location1.setLongitude(-122.265601);\n //double lat1=location1.getLatitude();\n //double lon1=location1.getLongitude();\n \n Location location2 = new Location(\"0\");\n location2.setLatitude(0);\n location2.setLongitude(0);\n \n // the pop-up dialogue part\n double dist = GPSdist.distance(location1.getLatitude(), location1.getLongitude(), latid, longid);\n double dist3 = GPSdist.distance(location3.getLatitude(), location3.getLongitude(), latid, longid);\n ttsstring = this.getString(R.string.Berkeley_descr);\n AlertHandler.ShowAlert(this, dist, ttsstring, this); \n \n // controls enabling + Overlay part \n GeoPoint point = new GeoPoint((int)(latid*1e6),(int)(longid*1e6));\n String Popupstring = \"Lat: \"+Double.toString(latid)+\" Long: \" + Double.toString(longid)+ \" w/ Acc: \" + Double.toString(accuracyd) + \" Provider: \" + providershow + \" \" + Double.toString(dist);\n OverlayItem overlayitem = new OverlayItem(point, \"Mobsy\", \"My Location is: \\n\" + Popupstring);\n \n mapControl = mapView.getController();\n mapControl.animateTo(point);\n mapControl.setZoom(13);\n \n compass = new MyLocationOverlay(this, mapView);\n \n mapOverlays = mapView.getOverlays();\n drawable = this.getResources().getDrawable(R.drawable.droid_overlay);\n pointsOverlay = new CostumMapOverlay(drawable,this);\n \n pointsOverlay.addOverlay(overlayitem);\n mapOverlays.add(pointsOverlay);\n mapOverlays.add(compass);\n\n \n }",
"@Override\n\t\t\t\tpublic void onLocationChanged(Location loc) {\n\n\t\t\t\t\t//If Wifi\n\t\t\t\t\tif (monitor.isNetworkConnected()\n\t\t\t\t\t\t\t&& monitor.networkType == ConnectivityManager.TYPE_WIFI) {\n\n\t\t\t\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t\t\t\tString locationProviders = Settings.Secure.getString(\n\t\t\t\t\t\t\t\tcont.getContentResolver(),\n\t\t\t\t\t\t\t\tSettings.Secure.LOCATION_PROVIDERS_ALLOWED);\n\t\t\t\t\t\tif (locationProviders != null\n\t\t\t\t\t\t\t\t&& !locationProviders.equals(\"\")) {\n\t\t\t\t\t\t\t//Lock our location.\n\t\t\t\t\t\t\tmonitor.locationLocked = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t//If we have had a steady lock\n\t\t\t\t\tif (monitor.locationLocked && (counter >= 2 || first)) {\n\n\t\t\t\t\t\t//Swap \n\t\t\t\t\t\tDouble oldLat = self.member.lat;\n\t\t\t\t\t\tDouble oldLong = self.member.lon;\n\n\t\t\t\t\t\tself.member.lat = loc.getLatitude();\n\t\t\t\t\t\tself.member.lon = loc.getLongitude();\n\n\t\t\t\t\t\tif (self.member.pic == null) {\n\t\t\t\t\t\t\tself.member.pic = Images\n\t\t\t\t\t\t\t\t\t.paintMarkerBitmap(self.member);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tplaceMarker(self.member);\n\n\t\t\t\t\t\tLog.i(\"Position\", self.member.lat.toString() + \", \"\n\t\t\t\t\t\t\t\t+ self.member.lon.toString());\n\n\t\t\t\t\t\tGCMMessage.sendLocation(self.member.lat,\n\t\t\t\t\t\t\t\tself.member.lon);\n\n\t\t\t\t\t\tMembersFragment.stopSpinning();\n\n\t\t\t\t\t\t// gcmMessage.sendLocation(self.lat, self.lon);\n\n\t\t\t\t\t\tfloat[] results = new float[1];\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLocation.distanceBetween(oldLat, oldLong,\n\t\t\t\t\t\t\t\t\tself.member.lat, self.member.lon, results);\n\n\t\t\t\t\t\t\tif (results[0] > 35 && wobble > -interval / 2) {\n\n\t\t\t\t\t\t\t} else if (results[0] <= 35\n\t\t\t\t\t\t\t\t\t&& wobble < interval / 2) {\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (NullPointerException npe) {\n\t\t\t\t\t\t\tLog.i(\"Locater\", \"Got first location\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tgpsTimer.removeCallbacks(r);\n\n\t\t\t\t\t\tlocationClient.disconnect();\n\n\t\t\t\t\t\tmonitor.locationLocked = false;\n\n\t\t\t\t\t\tcounter = 0;\n\n\t\t\t\t\t\tfirst = false;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcounter++;\n\t\t\t\t}",
"public void onLocationChanged(Location location) {\n }",
"@Override\n\tpublic void onLocationChanged(Location arg0) {\n\n\t}",
"@Override\n\tpublic void onLocationChanged(Location arg0) {\n\n\t}",
"@Override\n\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\tfinal LatLng location = arg0;\n \tAlertDialog builder = new AlertDialog.Builder(MainActivity.this)\n\t .setMessage(\"Do you want to add your location here?\")\n\t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t setFlag = true;\n\t \t myLocation = location;\n\t \t //use this flag to indicate that we want to see the path from current location or a set point\n\t \t Log.d(\"my location:\", \"\"+myLocation.latitude + myLocation.longitude);\n\t \t if(setFlag == true){\n\t \t\t if(myMarker != null){\n\t\t \t\t myMarker.remove();\n\t\t \t }\n\t\t \t myMarker = mMap.addMarker(new MarkerOptions().position(myLocation).title(\"myLocation\").draggable(true)\n\t\t \t\t\t\t\t\t.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE)));\n\t\t \t\t\t\t landmarks.addMarker(\"myLocation\", myMarker);\n\t \t } \n\t }\n\t })\n\t .setNegativeButton(\"Not now\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t }).create();\n \tbuilder.show();\n\t\t\t}",
"private void displayLocation() {\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (mLastLocation != null) {\n double latitude = mLastLocation.getLatitude();\n double longitude = mLastLocation.getLongitude();\n\n\n String add = getAddressString(latitude, longitude);\n\n //Check in\n student_checkin chkIn = new student_checkin(getActivity(), sessionId, \"Lat: \" + latitude + \" Long: \" + longitude);\n chkIn.execute();\n lblLocation.setText(latitude + \", \" + longitude);\n cords.setText(add);\n\n\n\n } else {\n\n lblLocation\n .setText(\"(Couldn't get the location. Make sure location is enabled on the device)\");\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n mCurrentLocation = location;\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n Toast.makeText(this, getResources().getString(R.string.location_updated_message),\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onLocationChanged(Location location) {\n mCurrentLocation = location;\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n Toast.makeText(this, getResources().getString(R.string.location_updated_message),\n Toast.LENGTH_SHORT).show();\n }",
"@Override\npublic void onLocationChanged(Location location) {\nString lat = String.valueOf(location.getLatitude());\nString lon = String.valueOf(location.getLongitude());\nLog.e(\"GPS\", \"location changed: lat=\"+lat+\", lon=\"+lon);\n//tv.setText(\"lat=\"+lat+\", lon=\"+lon);\nLatLng coordinates = new LatLng(location.getLatitude(), location.getLongitude()); \nmMap.animateCamera(CameraUpdateFactory.newLatLngZoom(coordinates, 12));\n\n\n//Update Value of Lat Long\n}",
"private boolean setLocationInformation() {\n try {\n this.mPostModel.setLocationPost(mAutoCompleteTextView.getText().toString());\n\n if (StringEmptyUtil.isEmptyString(this.mPostModel.getLocationPost())) {\n Toast.makeText(getApplicationContext(), \"Please Select Location\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n this.drop_location.setVisibility(View.VISIBLE);\n this.location_view.setVisibility(View.VISIBLE);\n this.current_location.setVisibility(View.VISIBLE);\n this.current_location.setText(this.mPostModel.getLocationPost());\n return true;\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n Toast.makeText(getApplicationContext(), \"Please Select Location\", Toast.LENGTH_LONG).show();\n\n return false;\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED){\r\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},101);\r\n }\r\n loc = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);\r\n populateMap(loc);\r\n try {\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lm.getLastKnownLocation(LocationManager.GPS_PROVIDER).getLatitude(), lm.getLastKnownLocation(LocationManager.GPS_PROVIDER).getLongitude()), 15.0f));\r\n }catch(Exception blyat){\r\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(\"No hemos podido acceder a tu localización, revisa el estado de GPS y reinicia la app\");\r\n builder.show();\r\n }\r\n }",
"@Override\n public void onMapReady(final GoogleMap map) {\n map.moveCamera(CameraUpdateFactory.zoomTo(14));\n //map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n map.setMyLocationEnabled(true);\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n\n return true;\n }\n });\n map.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n Log.d(\"map\", \"onMyLocationChange\");\n if (!isinit) {\n isinit = true;\n if (now_Location == null ||\n now_Location.getLatitude() != location.getLatitude() ||\n now_Location.getLongitude() != location.getLongitude()) {\n now_Location = location;\n initStreetView();\n }\n }\n LatLng sydney = new LatLng(location.getLatitude(), location.getLongitude());\n map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }\n });\n }",
"@Override\n public void onClick(View v) {\n boolean isGPSEnabled = locationManager.isProviderEnabled(locationManager.GPS_PROVIDER);\n //create boolean isNetworkEnabled equal to result returned from isProviderEnabled() method, sending locationManager.NETWORK_PROVIDER as paremeter\n boolean isNetworkEnabled = locationManager.isProviderEnabled(locationManager.NETWORK_PROVIDER);\n\n //if statement to determine if both booleans are false\n if (!isGPSEnabled && !isNetworkEnabled && ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission_group.LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //toast message to tell the user that network and location are not available/enabled\n Toast.makeText(MainActivity.this, \"Network and Location not Available\", Toast.LENGTH_LONG).show();\n return;\n } else {\n //create Criteria object critera\n Criteria criteria = new Criteria();\n\n //string provider equal to value returned from method\n String provider = locationManager.getBestProvider(criteria, true);\n\n fabLocation.setClickable(false);\n\n //call locationupdater\n locationManager.requestLocationUpdates(provider, 0, 0, locationListener);\n }\n }",
"@Override\n public void onConnected(Bundle connectionHint)\n {\n if (locationHasToBeUpdated)\n {\n createLocationRequest();\n locationHasToBeUpdated = false;\n }\n }",
"public void onClick(View view) {\n\t\t\t\t\n\t\t try {\n\t\t \t\tgps_enabled = locManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n\t\t \t} catch (Exception ex) {\n\t\t \t}\n\t\t \ttry {\n\t\t \t\tnetwork_enabled = locManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);\n\t\t \t} catch (Exception ex) {\n\t\t \t}\n\n\t\t \t// don't start listeners if no provider is enabled\n\t\t \t\n\t\t \tif (network_enabled) {\n\t\t \t\tlocManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locListener);\n\t\t \t}\n\t\t \tif (gps_enabled) {\n\t\t \t\tlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locListener);\n\t\t \t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private void getCurrentLocation() {\n progressBar.setVisibility(View.VISIBLE);\n LocationRequest locationRequest = new LocationRequest();\n locationRequest.setInterval(10000);\n locationRequest.setFastestInterval(3000);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\n LocationServices.getFusedLocationProviderClient(IntroActivity.this).requestLocationUpdates(locationRequest, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n LocationServices.getFusedLocationProviderClient(IntroActivity.this).removeLocationUpdates(this);\n if (locationResult != null && locationResult.getLocations().size() > 0) {\n int latestLocationIndex = locationResult.getLocations().size() - 1;\n double LatOrg = locationResult.getLocations().get(latestLocationIndex).getLatitude();\n double LonOrg = locationResult.getLocations().get(latestLocationIndex).getLongitude();\n\n LatitudeTruePref = Double.toString(LatOrg);\n LongitudeTruePref = Double.toString(LonOrg);\n\n LocationReal = new LatLng(LatOrg, LonOrg);\n tvSkip.setText(String.format(\"Lat: %s\\nLon: %s\", LatitudeTruePref, LongitudeTruePref));\n //tvSkip.setText(String.format(\"Lat: %s\\nLon: %s\", LatOrg, LonOrg));\n }\n FalseLocationSignal = false;//*Desactivar FalseLocation para SharedPreferens*//\n TrueLocationSignal = true;\n progressBar.setVisibility(View.GONE);\n btnNext.setEnabled(true);\n }\n }, Looper.getMainLooper());\n\n }",
"@Override\n public void onConnected(Bundle bundle) {\n\n if (mCurrentLocation == null) {\n mCurrentLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n }\n\n if (mRequestingLocationUpdates) {\n startLocationUpdates();\n }\n\n if (addGeofence) {\n addGeofencesButtonHandler();\n }\n }",
"@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 }",
"@Override\n public void onMapClick(LatLng arg0) {\n try {\n Geocoder geo = new Geocoder(MapsActivity.this, Locale.getDefault());\n List<Address> add = geo.getFromLocation(arg0.latitude, arg0.longitude, 1);\n String selectedCountry;\n if (add.size() > 0) {\n selectedCountry = add.get(0).getCountryName();\n selectedStateOrCountry = selectedCountry;\n\n //Log.d(\"country\", selectedCountry);\n //For usa go with states . All other countries - it gives the capital\n if (selectedCountry.equalsIgnoreCase(\"United States\") ||\n selectedCountry.equalsIgnoreCase(\"US\")) {\n selectedStateOrCountry = add.get(0).getAdminArea();\n }\n //Log.d(\"state\", selectedStateOrCountry);\n ConvertTextToSpeech();\n }\n } catch (Exception e) {\n //Log.e(TAG, \"Failed to initialize map\", e);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n if (displayGpsStatus()) {\n\n Log.v(TAG, \"onClick\");\n\n\n locationListener = new MyLocationListener();\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ) {\n locationMangaer.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n\n }\n else{\n Toast.makeText(this,\"Kindly Provide Location Acces\",Toast.LENGTH_SHORT).show();\n }\n\n Log.v(TAG,latitudeUsers +\" , \"+longitudeUsers);\n\n } else {\n Toast.makeText(this,\"GPS not available!!\",Toast.LENGTH_SHORT).show();\n }\n\n }",
"public void onLocationChanged(Location location){\n\n }",
"@Override public void onLocationChanged(Location location) {\n if (mCurrentLocation == null) {\n map.getController().animateTo(new GeoPoint(location));\n }\n\n mCurrentLocation = location;\n\n long currentTime = System.currentTimeMillis();\n\n if (networkLocationIgnorer.shouldIgnore(location.getProvider(), currentTime))\n return;\n\n double dT = currentTime - mLastTime;\n if (dT < 200.0){\n return;\n };\n\n mLastTime = currentTime;\n\n if (!currentLocationOverlay.isEnabled()){\n currentLocationOverlay.setEnabled(true);\n }\n\n currentLocationOverlay.setLocation(new GeoPoint(location));\n currentLocationOverlay.setBearing(location.getBearing());\n currentLocationOverlay.setAccuracy((int) location.getAccuracy());\n\n // Navigation mode\n if (mNavigationMode) {\n if(!mNavigationRunning) {\n // Location for the first time -> get road\n mNavigationRunning = true;\n\n ArrayList<GeoPoint> wayPoints = new ArrayList<GeoPoint>();\n // Start location\n wayPoints.add(new GeoPoint(location));\n // Destination location\n wayPoints.add(getLocationFromAddress(destinationAddress));\n\n new RoadTask().execute(wayPoints);\n }\n else if (mNextNode != null) {\n GeoPoint currentGeoPoint = new GeoPoint(mCurrentLocation);\n int distance = currentGeoPoint.distanceTo(mNextNode.mLocation);\n boolean readInstructions = false;\n\n // TODO: Test which distance is good for marking node as reached\n // TODO: Preveri kako zaznati ali je šel čez node\n // TODO: Povej navodila tik preden zavije\n if ( distance < 4 ) {\n map.getController().animateTo(new GeoPoint(location));\n\n // Node reached, increase node index\n mNodeIndex++;\n\n if (mNodeIndex >= mRoad.mNodes.size()) {\n // Last node reached - turn navigation off\n mNavigationMode = false;\n mNavigationRunning = false;\n mNextNode = null;\n mCurrentNode = null;\n mNodeIndex = 0;\n\n Button button = (Button)findViewById(R.id.current_instruction_button);\n button.setVisibility(View.GONE);\n\n Button buttonFavPaths = (Button)findViewById(R.id.favourite_paths_button);\n buttonFavPaths.setVisibility(View.VISIBLE);\n }\n else {\n // Get next node\n mCurrentNode = mNextNode;\n mNextNode = mRoad.mNodes.get(mNodeIndex);\n\n readInstructions = true;\n }\n }\n else if (distance < 6) {\n readInstructions = true;\n }\n\n // Set new instruction\n setInstruction(readInstructions);\n }\n }\n\n map.invalidate();\n }",
"@Override\n public void onStatusChanged(String provider, int status, Bundle extras) {\n/* if (provider.equals(LocationManager.GPS_PROVIDER)) {\n tvStatusGPS.setText(\"Status: \" + String.valueOf(status));\n } else if (provider.equals(LocationManager.NETWORK_PROVIDER)) {\n tvStatusNet.setText(\"Status: \" + String.valueOf(status));\n }*/\n }",
"@Override\n \t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n \t\t\t\tif(arg1==true)\n \t\t\t\t\tmMap.setMyLocationEnabled(true);\n \t\t\t\telse\n \t\t\t\t\tmMap.setMyLocationEnabled(false);\n \t\t\t}",
"@Override\n \t\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n \t\t\t\tif(arg1==true)\n \t\t\t\t\tmMap.setMyLocationEnabled(true);\n \t\t\t\telse\n \t\t\t\t\tmMap.setMyLocationEnabled(false);\n \t\t\t}",
"public void onLocationChanged(Location location) {\n \t\tif(lastKnownLoc == null){//if there is no prev location, use this\r\n \t\t\tlastKnownLoc = location;\r\n \t\t}else{\r\n \t\t\tif(lastKnownLoc.hasAccuracy() && location.hasAccuracy()){//if both the current location and the new one have an accuracy\r\n \t\t\t\tif(lastKnownLoc.getAccuracy() <= location.getAccuracy()){//use the one that is more accurate\r\n \t\t\t\tlastKnownLoc = location;\r\n \t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\tmap.addOverlay(location);\r\n \t\t//gpsText.setText(\"Latitude:\"+ lastKnownLoc.getLatitude() + \"\\nLongitude:\" + lastKnownLoc.getLongitude());\r\n }",
"@Override\n\t public void onLocationChanged(Location location) \n\t {\n\t dialog.show();\n\t latitudeValue = location.getLatitude();\n\t longitudeValue =location.getLongitude();\n\t if (latitudeValue != 0 && longitudeValue != 0){\n\t \n\t latitude.setText(\"Latitude is :\" + latitudeValue);\n\t longitude.setText(\"Longitude is :\" +longitudeValue);\n\t dialog.dismiss();\n\t }\n\t }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n mMap.setMapStyle(new MapStyleOptions(getResources().getString(R.string.style_json)));\r\n\r\n LocationListener locationListener = new LocationListener() {\r\n public void onLocationChanged(Location location) {\r\n LatLng us = new LatLng(location.getLatitude(), location.getLongitude());\r\n locationMarker.setPosition(us);\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(us));\r\n\r\n float[] lats = new float[4];\r\n float[] longs = new float[4];\r\n\r\n lats[0] = Math.abs((float)bounds[0]);\r\n lats[1] = Math.abs((float)bounds[2]);\r\n lats[2] = Math.abs((float)bounds[4]);\r\n lats[3] = Math.abs((float)bounds[6]);\r\n longs[0] = Math.abs((float)bounds[1]);\r\n longs[1] = Math.abs((float)bounds[3]);\r\n longs[2] = Math.abs((float)bounds[5]);\r\n longs[3] = Math.abs((float)bounds[7]);\r\n }\r\n\r\n public void onStatusChanged(String provider, int status, Bundle extras) {\r\n }\r\n\r\n public void onProviderEnabled(String provider) {\r\n }\r\n\r\n public void onProviderDisabled(String provider) {\r\n }\r\n };\r\n\r\n LocationManager locationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);\r\n locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, locationListener);\r\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\r\n // TODO: Consider calling\r\n return;\r\n }\r\n\r\n if(team == \"hunter\") {\r\n findViewById(R.id.caught_button).setVisibility(INVISIBLE);\r\n findViewById(R.id.break_button).setVisibility(INVISIBLE);\r\n }\r\n else findViewById(R.id.caught_button).setVisibility(View.VISIBLE);\r\n\r\n\r\n\r\n Location lastKnownLocation = locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\r\n\r\n LatLng start = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude());\r\n locationMarker = mMap.addMarker(new MarkerOptions().position(start).title(\"You are here\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(start, 17.0f));\r\n mMap.addPolygon(new PolygonOptions().clickable(true).strokeColor(Color.rgb(52,152,219)).fillColor(Color.argb(25,52,152,219)).add\r\n (new LatLng(bounds[0], bounds[1]),\r\n new LatLng(bounds[2], bounds[3]),\r\n new LatLng(bounds[4], bounds[5]),\r\n new LatLng(bounds[6], bounds[7])));\r\n\r\n /*while(gameRunning) {\r\n LatLng us = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude());\r\n locationMarker.setPosition(us);\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(us));\r\n try {\r\n Thread.sleep(5000); //1000 milliseconds is one second.\r\n } catch(InterruptedException ex) {\r\n Thread.currentThread().interrupt();\r\n }\r\n }*/\r\n\r\n }",
"@Override\n public void onLocationChanged(Location location) {\n TextView tv = (TextView) findViewById(R.id.textView);\n if(location == null){\n tv.setText(\"Unable to get current location.\");\n }else {\n longitude = location.getLongitude();\n latitude = location.getLatitude();\n tv.setText(\"longitude: \" + longitude + \"\\n latitude: \" + latitude);\n }\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n if (checkPermissions()) {\r\n mMap.setMyLocationEnabled(true);\r\n }\r\n mMap.addMarker(new MarkerOptions().position(currLocation).title(\"Current Location\"));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currLocation));\r\n getLastLocation();\r\n }",
"@Override\n public boolean onMyLocationButtonClick() {\n LocationManager manager = (LocationManager) getContext().getSystemService(Context.LOCATION_SERVICE);\n if (!manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n // If Location disable create a alert dialog\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n alertDialogBuilder.setMessage(\"Location is disabled in your device. Would you like to enable it?\")\n // Have to respond to this message not cancelable\n .setCancelable(false)\n // If yes open setting page to enable location\n .setPositiveButton(\"Yes\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // intent calls the android activity of location settings\n Intent callGPSSettingIntent = new Intent(\n android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(callGPSSettingIntent);\n }\n });\n //if no close the dialog\n alertDialogBuilder.setNegativeButton(\"Maybe Later\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n AlertDialog alert = alertDialogBuilder.create();\n alert.show();\n }\n\n return false;\n }",
"@Override\n\t\tpublic void onLocationChanged(Location args0) {\n\t\t\t mCurrentLocation = args0;\n\t mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n\t updateUI();\n\n\t\t}",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n longitude = location.getLongitude();\n latitude = location.getLatitude();\n\n //tv_lat.setText(String.valueOf(location.getLatitude()));\n //tv_long.setText(String.valueOf(location.getLongitude()));\n } else {\n finish();\n //tv_lat.setText(\"Latitude not available\");\n //tv_long.setText(\"Longitude not available\");\n }\n }",
"public void onLocationChanged(Location location) {\n \t \n \t }",
"public void onProviderEnabled(String provider) {\n mensaje1.setText(\"GPS Activado\");\n }",
"@Override\r\n\t\t\tpublic void onFinish() {\n\t\t\t\tLog.i(tag, \"Locatie bepalen..\");\r\n\t\t\t\tlm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 5000,\r\n\t\t\t\t\t\tminDistanceMeters, locationListener);\r\n\t\t\t}",
"private void inputLocation() {\n// boolean googleMapExist= (ConnectionResult.SUCCESS==GooglePlayServicesUtil.isGooglePlayServicesAvailable(mContext));\n//\n// if(googleMapExist) {\n// org.wowtalk.Log.w(\"google map exist\");\n// Intent mapIntent = new Intent(mContext, PickLocActivity.class);\n// mapIntent.putExtra(\"auto_loc\", true);\n// mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n// } else {\n //org.wowtalk.Log.w(\"google map not exist\");\n Intent mapIntent = new Intent(mContext, PickLocActivityWithAMap.class);\n mapIntent.putExtra(\"auto_loc\", true);\n mContext.startActivityForResult(mapIntent, REQ_INPUT_LOC);\n //}\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Toast.makeText(this, \"Map is Ready\", Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"onMapReady: map is ready\");\n mMap = googleMap;\n SharedPreferences settings = getSharedPreferences(\"home_settings\", 0);\n boolean darkModeUi_value = settings.getBoolean(\"ui_settings\", false);\n if (darkModeUi_value) {\n// RelativeLayout rel=(RelativeLayout)findViewById(R.id.relLayout1);\n// rel.setBackgroundResource(R.drawable.custom_border3);\n ImageView img =(ImageView)findViewById(R.id.ic_gps);\n img.setImageResource(R.drawable.ic_gps_teal);\n mMap.setMapStyle(MapStyleOptions.loadRawResourceStyle(this, R.raw.map_in_night));\n }\n\n // statusCheck();\n if (mLocationPermissionsGranted) {\n LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n// if (manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n // Toast.makeText(this, \"gps check \" + gpscheck, Toast.LENGTH_SHORT).show();\n //statusCheck();\n// LocationManager manager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n\n if (!manager.isProviderEnabled(LocationManager.GPS_PROVIDER)) {\n // Toast.makeText(this, \"Enable gps\", Toast.LENGTH_SHORT).show();\n buildAlertMessageNoGps();\n\n } else {\n\n getDeviceLocation();\n }\n\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n init();\n // }\n }\n\n }",
"public void onLocationChanged(Location argLocation) {\n\t GeoPoint myGeoPoint = new GeoPoint(\r\n\t (int)(argLocation.getLatitude()*1000000),\r\n\t (int)(argLocation.getLongitude()*1000000));\r\n\t /*\r\n\t * it will show a message on \r\n\t * location change\r\n\t Toast.makeText(getBaseContext(),\r\n\t \"New location latitude [\" +argLocation.getLatitude() +\r\n\t \"] longitude [\" + argLocation.getLongitude()+\"]\",\r\n\t Toast.LENGTH_SHORT).show();\r\n\t */\r\n\r\n\t mapController.animateTo(myGeoPoint);\r\n\r\n\t }",
"@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 }",
"private void setLocationUpdateFunction() {\n fabLocation.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //create boolean isGPSEnabled equal to result returned from isProviderEnabled() method, sending locationManager.GPS_PROVIDER as paremeter\n boolean isGPSEnabled = locationManager.isProviderEnabled(locationManager.GPS_PROVIDER);\n //create boolean isNetworkEnabled equal to result returned from isProviderEnabled() method, sending locationManager.NETWORK_PROVIDER as paremeter\n boolean isNetworkEnabled = locationManager.isProviderEnabled(locationManager.NETWORK_PROVIDER);\n\n //if statement to determine if both booleans are false\n if (!isGPSEnabled && !isNetworkEnabled && ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission_group.LOCATION) != PackageManager.PERMISSION_GRANTED) {\n //toast message to tell the user that network and location are not available/enabled\n Toast.makeText(MainActivity.this, \"Network and Location not Available\", Toast.LENGTH_LONG).show();\n return;\n } else {\n //create Criteria object critera\n Criteria criteria = new Criteria();\n\n //string provider equal to value returned from method\n String provider = locationManager.getBestProvider(criteria, true);\n\n fabLocation.setClickable(false);\n\n //call locationupdater\n locationManager.requestLocationUpdates(provider, 0, 0, locationListener);\n }\n }\n });\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n //Enable interactions with the google map\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n if(!partnerLocs) {\n Log.d(\"GO TO INTI :\", \"!!!!\");\n init(); //initialize components\n mMap.setOnMapLongClickListener(this);\n mMap.setOnMarkerDragListener(this);\n\n }\n mMap.setOnMarkerClickListener(this);\n\n if(showMyLoc || partnerLocs){\n loadMarkers();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n markerClicked.showInfoWindow();\n }\n else{\n loadMarkers(); //change to loadPartnerMarkers() later\n// mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n// markerClicked.showInfoWindow();\n }\n }",
"@Override\n \tpublic void onLocationChanged(Location location) {\n \t\tthis.location = location;\n \t}",
"public void onLocationChanged(Location location) {\n\n //Display the current location\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude,longitude);\n mGPSon.setText(\"Latitude: \"+Math.round(gp.x)+\"\\nLongitude: \"+Math.round(gp.y));\n\n }",
"@Override\n public void onConnected(Bundle bundle) {\n mLastLocation=LocationServices.FusedLocationApi.getLastLocation(mLocationClient);\n if(mLastLocation!=null){\n double latitude=mLastLocation.getLatitude();\n double longitude=mLastLocation.getLongitude();\n\n Geocoder geocoder=new Geocoder(this, Locale.ENGLISH);\n try{\n List<Address> addresses=geocoder.getFromLocation(latitude,longitude,1);\n if(addresses!=null){\n Address fetchedAddresses=addresses.get(0);\n label=\"Location: \"+fetchedAddresses.getFeatureName()+\", \"+fetchedAddresses.getSubLocality()+\", \"+fetchedAddresses.getLocality()+\", \"+fetchedAddresses.getPostalCode()+\", \"+fetchedAddresses.getAdminArea()+\", \"+fetchedAddresses.getCountryName();\n }\n else{\n tvLocationLabel.setText(\"Location Not Found\");\n Snackbar.make(findViewById(android.R.id.content),\"Location Not Found\",Snackbar.LENGTH_LONG).show();\n }\n }catch (Exception e){\n Snackbar.make(findViewById(android.R.id.content),\"Unable to Get Location\",Snackbar.LENGTH_SHORT).show();\n tvLocationLabel.setText(\"Location Not Found\");\n e.printStackTrace();\n }\n }\n }"
]
| [
"0.69321764",
"0.6801323",
"0.6782838",
"0.6713242",
"0.6685635",
"0.6685635",
"0.6685635",
"0.66439277",
"0.6631539",
"0.6625186",
"0.6612477",
"0.6605727",
"0.66023475",
"0.6586086",
"0.6574762",
"0.65600824",
"0.65293044",
"0.65003216",
"0.64944863",
"0.6485342",
"0.6479408",
"0.64637995",
"0.6455297",
"0.6428117",
"0.6423103",
"0.6415763",
"0.63865066",
"0.63865066",
"0.6366821",
"0.6365063",
"0.6360629",
"0.6331442",
"0.6328475",
"0.6328094",
"0.63043916",
"0.62890476",
"0.6288595",
"0.6287506",
"0.6287506",
"0.62755203",
"0.6270741",
"0.62684786",
"0.62671316",
"0.62634814",
"0.62586844",
"0.6254094",
"0.6253548",
"0.62495905",
"0.62488306",
"0.62455976",
"0.6245577",
"0.6243476",
"0.6226084",
"0.62247765",
"0.621992",
"0.62145406",
"0.62144464",
"0.62132144",
"0.62132144",
"0.62103784",
"0.62083393",
"0.6198851",
"0.6198851",
"0.6194343",
"0.61909616",
"0.6183104",
"0.61818045",
"0.61800355",
"0.6175896",
"0.61699504",
"0.61633086",
"0.6162888",
"0.61615795",
"0.6155915",
"0.61432004",
"0.6141903",
"0.6136717",
"0.6135186",
"0.61336064",
"0.61336064",
"0.61277676",
"0.6122535",
"0.6117591",
"0.6104571",
"0.6100823",
"0.6093556",
"0.6091386",
"0.60909927",
"0.6087989",
"0.6080987",
"0.6077169",
"0.60771036",
"0.60702014",
"0.6067388",
"0.606568",
"0.6064084",
"0.60637665",
"0.60627437",
"0.6061229",
"0.60604215"
]
| 0.73783636 | 0 |
make a new tree rooted at a random number somewhere in the middle of the possible number range | @Override
protected void setUpGame() {
this.tree = this.generateTree(this.height);
this.root = tree.getRoot();
this.displayedNodes = new ArrayList<>();
this.displayedNodes.add(root);
this.currDisplayedNumber = this.chooseValueFromTree();
this.wrongClicks = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void populateTreeRandom(BinarySearchTree tree)\n {\n int currentNumber = 0;\n\n System.out.println(\"RANDOM NUMBERS PRE POPULATION: \" );\n\n for(int i = 1; i < 101; i++)\n {\n currentNumber = (int) (Math.random() * 100);\n\n System.out.printf(\"%3d \", currentNumber);\n\n if(i % 20 == 0)\n {\n System.out.println();\n }\n\n tree.add(currentNumber);\n }\n\n System.out.println();\n }",
"public static Node buildRandomTree() {\n\t\tNode root = createNode(15);\n\t\troot.leftChild = createNode(10);\n\t\troot.rightChild = createNode(4);\n\t\troot.leftChild.leftChild = createNode(25);\n\t\troot.leftChild.leftChild.rightChild = createNode(27);\n\t\troot.leftChild.leftChild.leftChild = createNode(13);\n\t\troot.leftChild.rightChild = createNode(25);\n\t\troot.leftChild.rightChild.rightChild = createNode(7);\n\t\t\n\t\treturn root;\n\t}",
"public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree.\n Random rn = new Random();\n\n\n for (int i = 0; i < 10; ++i)\n {\n insert(3);\n insert(5);\n insert(9);\n insert(5);\n insert(8);\n insert(1);\n insert(7);\n insert(4);\n insert(3);\n }\n return 1;\n }",
"public void insertRandom() {\n // Create new node\n CriteriaNode newNode = generateRandomNonterminalNode();\n\n // Get random leaf node\n Node[] nodes = getRandomTerminalNode();\n Node prev = nodes[PREV];\n Node node = nodes[CURR];\n\n // Replace either left or right with a random CriteriaNode\n if (prev == null) {\n // If tree has only a root node\n if (U.chance()) {\n root.left = newNode;\n } else {\n root.right = newNode;\n }\n } else {\n // Replace the correct reference of prev with the new node\n if (prev.left == node) {\n prev.left = newNode;\n } else {\n prev.right = newNode;\n }\n }\n }",
"public void grow(Grid[][] map) {\n\t\tBranchNode parent = root;\r\n\t\twhile (parent.children.size() > 0) {\r\n\t\t\tif (parent.children.size() >= max_branch_per_node) {\r\n\t\t\t\t// if no more room at this branch\r\n\t\t\t\tparent = parent.children\r\n\t\t\t\t\t\t.get((int) (Math.random() * parent.children.size()));\r\n\t\t\t} else if (Math.random() < 0.5) {\r\n\t\t\t\t// if there is still room, picks randomly\r\n\t\t\t\tparent = parent.children\r\n\t\t\t\t\t\t.get((int) (Math.random() * parent.children.size()));\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint newX, newY; // X and Y coordinates for the new node.\r\n\t\tint r = (int) (Math.random() * GENE_TOTAL);\r\n\t\tint gene_count = width_gene[0];\r\n\t\tint width_select = 0;\r\n\t\twhile (r > gene_count) {\r\n\t\t\twidth_select += 1;\r\n\t\t\tgene_count += width_gene[width_select];\r\n\t\t}\r\n\t\tr = (int) (Math.random() * WIDTH_VARIATION);\r\n\t\tnewX = parent.x - WIDTH_VARIATION / 2 + (width_select - 2)\r\n\t\t\t\t* WIDTH_VARIATION + r;\r\n\t\tif (newX < 0) {// if goes off the grid, push back.\r\n\t\t\tnewX = 0;\r\n\t\t} else if (newX >= World.WORLD_WIDTH) {\r\n\t\t\tnewX = World.WORLD_WIDTH - 1;\r\n\t\t}\r\n\r\n\t\tr = (int) (Math.random() * GENE_TOTAL);\r\n\t\tgene_count = height_gene[0];\r\n\t\tint height_select = 0;\r\n\t\twhile (r > gene_count) {\r\n\t\t\theight_select += 1;\r\n\t\t\tgene_count += height_gene[height_select];\r\n\t\t}\r\n\t\tr = (int) (Math.random() * HEIGHT_VARIATION);\r\n\t\tnewY = parent.y + height_select * HEIGHT_VARIATION + r;\r\n\t\tif (newY >= World.WORLD_HEIGHT) {\r\n\t\t\tnewY = World.WORLD_HEIGHT - 1;\r\n\t\t}\r\n\r\n\t\t// add the branch to the total body.\r\n\t\tamount_of_tree += (int) Math.sqrt((newX - parent.x) * (newX - parent.x)\r\n\t\t\t\t+ (newY - parent.y) * (newY - parent.y));\r\n\t\tBranchNode child = new BranchNode(parent, newX, newY);\r\n\t\tparent.children.add(child);\r\n\r\n\t\tif (parent.leaf_alive) {\r\n\t\t\t// kill leaf, because branch is growing off of it\r\n\t\t\tparent.killLeaf(this, map);\r\n\t\t}\r\n\r\n\t\t// make new leaf on new branch\r\n\t\tchild.addLeaf(this, map);\r\n\t}",
"public int root(){\n\t\tRandom r1=new Random();\n\t\tint r2= r1.nextInt((9) + 1) + 1;\n\t\treturn r2*100;\n\t}",
"public GameNode(Random rng) {\n this.number = rng.nextInt(8) + 1;\n this.next = null;\n }",
"private void spawnTrees() {\n int spawnNum = this.random.nextInt(10) + 20;\n if (this.treeTiles.size() >= 30) { // max 30 trees\n spawnNum = 0;\n }\n for (int i = 0; i < spawnNum; i++) {\n String tree = trees[this.random.nextInt(trees.length)];\n int y = this.random.nextInt(this.getMap().length);\n Tile spawnTile = this.getMapAt(this.random.nextInt(this.getMap()[y].length), y);\n Tile centerTile;\n if ((spawnTile != null) && this.inMap(spawnTile.getX()-2, spawnTile.getY()-1)) {\n centerTile = this.getMapAt(spawnTile.getX()-2, spawnTile.getY()-1);\n } else {\n centerTile = null;\n }\n if ((spawnTile != null) && (spawnTile instanceof GroundTile)\n && (centerTile != null) && (centerTile instanceof GroundTile)\n && (spawnTile.getContent() == null)) {\n ExtrinsicTree newTree = new ExtrinsicTree(tree);\n newTree.setStage(17);\n spawnTile.setContent(newTree);\n this.treeTiles.add(spawnTile);\n }\n }\n }",
"public BTNode getRandomNodeBadTime() {\n\t\tint toFind = (int)(Math.random() * size + 1);\n\t\tQueue<BTNode> q = new LinkedList<BTNode>();\n\t\tq.add(tree);\n\t\tBTNode current = new BTNode(0);\n\t\tfor (int i = 1; i <= toFind; i++) {\n\t\t\tcurrent = q.poll();\n\t\t\t\n\t\t\tif (current != null) {\n\t\t\t\tq.add(current.left);\n\t\t\t\tq.add(current.right);\n\t\t\t}\n\t\t}\n\t\treturn current;\n\t}",
"private void randForest(int x, int y) {\n\t\tint rand = random.nextInt(10);\n\t\tif (rand == 1) {\n\t\t\tentities.add(new Tree(x << 4, y << 4));\n\t\t\tgetTile(x, y).setSolid(true);\n\t\t}\n\n\t}",
"public int root2(){\n\t\t\tRandom r1=new Random();\n\t\t\tint r2= r1.nextInt((9) + 1) + 1;\n\t\t\treturn r2;\n\t}",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"public BinaryTree generateTree(int height) {\n\t\tList<Double> randomNums = new ArrayList<>();\n\t\tint numNodes = (int) (Math.pow(2, height)) - 1;\n\t\tfor (int i = 0; i < numNodes; i++) {\n\t\t\tdouble randomNum = Math.round(Math.random() * 100 * 100) / 100;\n\t\t\t// no duplicate numbers\n\t\t\twhile (randomNums.contains(randomNum)) {\n\t\t\t\trandomNum = Math.round(Math.random() * 100 * 100) / 100;\n\t\t\t}\n\t\t\trandomNums.add(randomNum);\n\t\t}\n\t\treturn new BinaryTree(randomNums);\n\t}",
"public TreeNode getRandomNodeLeftSize(){\n\n Random random = new Random();\n int randomIndex = random.nextInt(size());\n return getRandomIndexNode(randomIndex);\n }",
"private static int newNumber()\n\t{\n\t\tdouble initial = Math.random();\n\t\tdouble rangeAdjusted = initial * (10000 - 1001) + 1000;\n\t\tint rounded = (int)Math.round(rangeAdjusted);\n\t\treturn rounded;\n\t}",
"public static Tree chooseRandTree(double[] distribution, Tree[] trees){\n double r = new Random().nextDouble();\n //System.out.println(r);\n //System.out.println(Arrays.toString(distribution));\n for (int i = 0; i < distribution.length; i++){\n if (r <= distribution[i]){\n return trees[i];\n }\n \n }\n return null;\n \n \n }",
"node GrowthTreeGen(int maxdepth){\n\t\tint i;\n\t\tbyte a;\n\t\tnode t, p;\n\t\tif(maxdepth == 0) // to the limit then choose a terminal\n\t\t{\n\t\t\ti = IRandom(0, gltcard - 1);\n\t\t\tt = new node(glterminal[i].name, VOIDVALUE);\n\t\t\treturn t;\n\t\t} \n\t\telse // choosing from function and terminal\n\t\t {\n\t\t\ti = IRandom(0, gltermcard - 1);\n\t\t\tt = new node(glterm[i].name, VOIDVALUE);\n\t\t\tif(glterm[i].arity > 0) // if it is function\n\t\t\t{\n\t\t\t\tt.children = GrowthTreeGen(maxdepth - 1);\n\t\t\t\tp = t.children;\n\t\t\t\tfor(a = 1; a < glterm[i].arity; a++) {\n\t\t\t\t\tp.sibling = GrowthTreeGen(maxdepth - 1);\n\t\t\t\t\tp = p.sibling;\n\t\t\t\t}\n\t\t\t\tp.sibling = null;\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t}",
"public void createNode()\r\n\t{\r\n\t\tTreeNode first=new TreeNode(1);\r\n\t\tTreeNode second=new TreeNode(2);\r\n\t\tTreeNode third=new TreeNode(3);\r\n\t\tTreeNode fourth=new TreeNode(4);\r\n\t\tTreeNode fifth=new TreeNode(5);\r\n\t\tTreeNode sixth=new TreeNode(6);\r\n\t\tTreeNode seventh=new TreeNode(7);\r\n\t\tTreeNode eight=new TreeNode(8);\r\n\t\tTreeNode nine=new TreeNode(9);\r\n\t\troot=first;\r\n\t\tfirst.left=second;\r\n\t\tfirst.right=third;\r\n\t\tsecond.left=fourth;\r\n\t\tthird.left=fifth;\r\n\t\tthird.right=sixth;\r\n\t\tfifth.left=seventh;\r\n\t\tseventh.right=eight;\r\n\t\teight.left=nine;\r\n\t\t\r\n\t}",
"protected NNode getRandomNode() {\n\t\tArrayList<NNode> nodearr = new ArrayList<NNode>();\n\t\tnodearr.addAll(nodes.values());\n\t\treturn nodearr.get(Braincraft.randomInteger(nodearr.size()));\n\t}",
"treeNode selectNode(treeNode root, MTRandom clustererRandom){\n\t\t\n\t\t//random number between 0 and 1\n\t\tdouble random = clustererRandom.nextDouble();\n\t\t\n\t\twhile(!isLeaf(root)){\n\t\t\tif(root.lc.cost == 0 && root.rc.cost == 0){\n\t\t\t\tif(root.lc.n == 0){\n\t\t\t\t\troot = root.rc;\n\t\t\t\t} else if(root.rc.n == 0){\n\t\t\t\t\troot = root.lc;\n\t\t\t\t}else if(random < 0.5){\n\t\t\t\t\trandom = clustererRandom.nextDouble();\n\t\t\t\t\troot = root.lc;\n\t\t\t\t} else {\t\t\n\t\t\t\t\trandom = clustererRandom.nextDouble();\t\t\n\t\t\t\t\troot = root.rc;\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\tif(random < root.lc.cost/root.cost){\n\t\t\t\n\t\t\t\t\troot = root.lc;\n\t\t\t\t} else {\t\t\n\n\t\t\t\t\troot = root.rc;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn root;\n\t}",
"private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}",
"@Override\n public void relocatedWithinBounds() {\n x = random.nextInt(maxX - width);\n y = random.nextInt(maxY - height);\n }",
"public void growTree(World par1World, int par2, int par3, int par4, Random par5Random)\n {\n \t int var6 = par1World.getBlockMetadata(par2, par3, par4) & 3;\n //world.setBlock(i, j, k, 0);\n Object obj = null;\n obj = new WorldGenReactionCraftTree();\n\n {\n par1World.setBlockAndMetadata(par2, par3, par4, this.blockID, var6);\n }\n }",
"public static void main(String[] args) throws Exception {\n int B = 4096; //bytes max por pagina\n int M = 200; //cantidad de rectangulos tal que el nodo no pese mas que B\n\n int maxCord = 500000;\n int maxDelta = 100;\n\n Random rnd = new Random();\n\n int m = (M * 40) / 100; // m = 40% M\n\n int left = rnd.nextInt(maxCord);\n int bottom = rnd.nextInt(maxCord);\n int deltaX = rnd.nextInt(maxDelta);\n int deltaY = rnd.nextInt(maxDelta);\n\n Rectangle r = new Rectangle(left, left + deltaX, bottom + deltaY, bottom);\n DiskController diskController = new DiskController(M);\n long address = diskController.memoryAssigner();\n Node tree = new Root(m, M, r, diskController, address);\n\n diskController.saveNode(tree);\n long rootSize =diskController.getNodeSize(address);\n System.out.println(\"Tamaño de raiz : \" + rootSize + \" bytes\");\n\n int n=0;\n while (diskController.getNodeSize(address) < B){\n if(n==157) { break;}\n n++;\n Rectangle rn;\n left = rnd.nextInt(maxCord);\n bottom = rnd.nextInt(maxCord);\n deltaX = rnd.nextInt(maxDelta);\n deltaY = rnd.nextInt(maxDelta);\n rn = new Rectangle(left, left + deltaX, bottom + deltaY, bottom);\n tree.insert(rn, new LinearSplit());\n System.out.println(\"Rectangulos insertados : \" + n);\n }\n float nodeCoverage = diskController.nodeOcupation();\n System.out.println(\"Coverage : \"+nodeCoverage);\n System.out.println(\"Tamaño de raiz llena : \" + diskController.getNodeSize(address) + \" bytes, con \"+n+\" nodos insertados. Con raiz vacía de \"+rootSize+\" bytes\");\n //Tamaño de raiz llena : 4089 bytes, con 157 nodos insertados. Con raiz vacía de 478 bytes\n\n }",
"void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}",
"private int randomNumber(int high, int low){\n \t\t Random r = new Random();\n \t\t return (r.nextInt(high-low) + low);\n \t }",
"public void addRandomKids(OperatorFactory o, TerminalFactory t,\r\n int maxDepth, Random rand) {}",
"static Node generate(int length, int min, int max) {\n Random rand = new Random();\n Node head = null;\n int range = max - min + 1;\n for (int i = 0; i < length; i++) {\n Node t = new Node(rand.nextInt(range) + min);\n if (head == null)\n head = t;\n else {\n t.next = head;\n head = t;\n }\n }\n return head;\n }",
"public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}",
"@Test\n public void testLargeTree() {\n BPlusTree<Integer, Integer> tree = new BPlusTree<Integer, Integer>();\n ArrayList<Integer> numbers = new ArrayList<Integer>(100000);\n for (int i = 0; i < 100000; i++) {\n numbers.add(i);\n }\n Collections.shuffle(numbers);\n for (int i = 0; i < 100000; i++) {\n tree.insert(numbers.get(i), numbers.get(i));\n }\n testTreeInvariants(tree);\n int depth = treeDepth(tree.root);\n assertTrue(depth < 11);\n }",
"public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}",
"private Vector2d generateNewPositionForChild()\n {\n\n Random generator = new Random();\n List<Vector2d> freePositions = new LinkedList<>(); //tutaj przechowywane sa wolne pozycje wokol\n Vector2d position;\n Directions directionToAdd;\n\n for(int i = 0; i<8; i++)\n {\n directionToAdd = new Directions(i); //wykorzystujemy klase directions do generowania pozycji wokol\n position = this.position.add(directionToAdd.move());\n if(map.animalsAt(position).isEmpty())\n {\n freePositions.add(position);\n }\n }\n\n if(freePositions.isEmpty()) //jezeli nie ma wolnych pozycji\n {\n //jesli nie ma wolnych pozycji\n int x = generator.nextInt(8);\n directionToAdd = new Directions(x);\n return this.position.add(directionToAdd.move());\n }\n\n //jezeli mamy wolne pozycje to generujemy dowolna z listy\n int x = generator.nextInt(freePositions.size());\n Vector2d newPosition = freePositions.get(x);\n\n return newPosition;\n }",
"@Override\n public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n return treeGenerator;\n }",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"public static int generateRandomNumber(int topBoundary)\n\t{\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(topBoundary);\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tTreeNodeRandom tree = new TreeNodeRandom(10);\r\n\t\tTreeNodeRandom n2 = new TreeNodeRandom(6);\r\n\t\tTreeNodeRandom n3 = new TreeNodeRandom(12);\r\n\t\tTreeNodeRandom n4 = new TreeNodeRandom(5);\r\n\t\tTreeNodeRandom n5 = new TreeNodeRandom(8);\r\n\t\tTreeNodeRandom n6 = new TreeNodeRandom(11);\r\n\t TreeNodeRandom n7 = new TreeNodeRandom(13);\r\n\t TreeNodeRandom n8 = new TreeNodeRandom(7);\r\n\t TreeNodeRandom n9 = new TreeNodeRandom(9);\r\n\t tree.left = n2;\r\n\t tree.right = n3;\r\n\t tree.random = n2;\r\n\t n2.left = n4;\r\n\t n2.right = n5;\r\n\t n2.random = n8;\r\n\t n3.left = n6;\r\n\t n3.right = n7;\r\n\t n3.random = n5;\r\n\t n4.random = n9;\r\n\t n5.left = n8;\r\n\t n5.right = n9;\r\n\t n5.random = tree;\r\n\t n6.random = n9;\r\n\t n9.random = n8;\r\n\t\t\r\n\t\t\r\n\t\tCloneNodeWithRandomPtr obj = new CloneNodeWithRandomPtr();\r\n\t\tobj.displayTree(tree);\r\n\t\tSystem.out.println();\r\n\t\tTreeNodeRandom temp = tree;\r\n\t\tTreeNodeRandom c = obj.cloneLeftRight(tree);\r\n\t\t//TreeNodeRandom c = obj.cloneNodeHashmap(tree);\r\n\t\tobj.displayTree(tree);\r\n\t}",
"protected int pathDrawLots(int bound)\n {\n Random r= new Random();\n int num = r.nextInt(bound);\n return num;\n\n\n }",
"private Node CreateTree() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tQueue<Node> q = new LinkedList<>();\n\t\tint item = sc.nextInt();\n\t\tNode nn = new Node();\n\t\tnn.val = item;\n\t\troot = nn;\n\t\tq.add(nn);\n\t\twhile (!q.isEmpty()) {\n\t\t\tNode rv = q.poll();\n\t\t\tint c1 = sc.nextInt();\n\t\t\tint c2 = sc.nextInt();\n\t\t\tif (c1 != -1) {\n\t\t\t\tNode node = new Node();\n\t\t\t\tnode.val = c1;\n\t\t\t\trv.left = node;\n\t\t\t\tq.add(node);\n\t\t\t}\n\t\t\tif (c2 != -1) {\n\t\t\t\tNode node = new Node();\n\t\t\t\tnode.val = c2;\n\t\t\t\trv.right = node;\n\t\t\t\tq.add(node);\n\t\t\t}\n\t\t}\n\n\t\treturn root;\n\n\t}",
"public static int randomPosition(){\r\n int max = 4;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n int pos = randNum;\r\n \r\n return pos;\r\n }",
"public void randomize() {\r\n\t\tRandom random = new Random();// random generator used to get random int\r\n\t\tint r;// will hold the random int\r\n\t\tint num;// will hold the filtered random int that determines with entity to use for a tile\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\tr = random.nextInt(32);// gets random int from 0 to 32\r\n\t\t\t\tif (r < 4) num = 0; else if (r < 8) num = 1; else if (r < 31) num = 2; else num = 3;// distributes different objects\r\n\t\t\t\tif (nodes[i * WIDTH_TILES + j].isOccupied() == false) {// if tile empty or random chosen\r\n\t\t\t\t\tnodes[i * WIDTH_TILES + j] = new Node(new Point(i * BOARD_WIDTH / WIDTH_TILES, j * BOARD_WIDTH / HEIGHT_TILES), new ImageIcon(icons[num]).getImage(), true, occupants[num]);// creates random tile\r\n\t\t\t\t}// if (random)\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t}",
"@Override\n public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n return treeGenerator;\n }",
"private Integer randomHemoglobina(){\n\t\t\tint Min = 9, Max = 23;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}",
"public static int randomNumber(){\r\n int max = 10;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }",
"private void buildTree(int random_attr){\n String[] schema = new String[]{\"min, max, avg, label\"};\n CassandraDriver driver = CassandraDriver.getInstance();\n ArrayList<int[]> train = driver.queryData(\"data\", schema);\n RandomForest forest = new RandomForest();\n forest.numAttr = RandomForestTrainingMapReduce.N;\n forest.numAttrRandom = random_attr;\n RealDecisionTree tree = new RealDecisionTree(train, forest, RandomForestTrainingMapReduce.N);\n\n // serialize this tree and write to Cassandra.\n byte[] t = serialize(tree);\n try {\n driver.insertData(t, \"Forest\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static int customRandom(int range)\n {\n \tint random = (int)(Math.random()*10)%range;\n\t\n\treturn random;\n }",
"private static Node buildSmallerTree() {\n\t\tNode root = createNode(10);\n\t\troot.leftChild = createNode(25);\n\t\troot.rightChild = createNode(25);\n\t\troot.leftChild.leftChild = createNode(13);\n\t\troot.rightChild.rightChild = createNode(7);\n\t\troot.leftChild.rightChild = createNode(27);\n\t\t\n\t\treturn root;\n\t}",
"private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public static Node constructTree() {\n\n Node node2 = new Node(2, null, null);\n Node node8 = new Node(8, null, null);\n Node node12 = new Node(12, null, null);\n Node node17 = new Node(17, null, null);\n\n Node node6 = new Node(6, node2, node8);\n Node node15 = new Node(15, node12, node17);\n\n //Root Node\n Node node10 = new Node(10, node6, node15);\n\n return node10;\n }",
"public static TreeNode generateBinaryTree1() {\n // Nodes\n TreeNode root = new TreeNode(5);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootRight = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(20);\n TreeNode rootLeftRight = new TreeNode(1);\n // Edges\n root.left = rootLeft;\n root.right = rootRight;\n rootLeft.left = rootLeftLeft;\n rootLeft.right = rootLeftRight;\n\n // Return root\n return root;\n }",
"public static int randomRound(){\r\n int max = 1000;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n return randNum;\r\n }",
"public static int randomNumberAlg(){\r\n int max = 10;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }",
"private void sampleEdge() {\n int rand = RandomUtil.getInstance().nextInt(\n getNumNodes() * (getNumNodes() - 1));\n randomParent = rand / (getNumNodes() - 1);\n int rest = rand - randomParent * (getNumNodes() - 1);\n if (rest >= randomParent) {\n randomChild = rest + 1;\n }\n else {\n randomChild = rest;\n }\n }",
"public IntTree(int numberOfNodes) {\r\n assert numberOfNodes >= 0;\r\n \r\n // x = change(x)\r\n overallRoot = buildTree(1, numberOfNodes);\r\n }",
"public static int randomNumber50(){\r\n int max = 50;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }",
"public void addChild(Node n) {\n\t\taddChild(n, (rand.nextDouble()*0.02 - 0.01));\n\t}",
"private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\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 }",
"private static Node createNode(int value) {\n\t\treturn new Node(value);\n\t}",
"public static void build ()\r\n {\r\n lgt.insert(1);\r\n lgt.insert(2);\r\n lgt.insert(5);\r\n \r\n lgt.findRoot();\r\n lgt.insert(3);\r\n \r\n lgt.findRoot();\r\n lgt.insert(4);\r\n \r\n lgt.insert(6);\r\n lgt.findParent();\r\n lgt.insert(7);\r\n \r\n }",
"protected boolean func_225557_a_(IWorldGenerationReader worldgen, Random rand, BlockPos position, Set<BlockPos> changedBlocks, Set<BlockPos> changedBlocks2, MutableBoundingBox bbox, BaseTreeFeatureConfig conf) {\n/* 114 */ if (!(worldgen instanceof IWorld))\n/* 115 */ return false; \n/* 116 */ IWorld world = (IWorld)worldgen;\n/* 117 */ int height = rand.nextInt(5) + 4;\n/* 118 */ boolean spawnTree = true;\n/* 119 */ if (position.func_177956_o() >= 1 && position.func_177956_o() + height + 1 <= world.func_217301_I()) {\n/* 120 */ for (int j = position.func_177956_o(); j <= position.func_177956_o() + 1 + height; j++) {\n/* 121 */ int k = 1;\n/* 122 */ if (j == position.func_177956_o())\n/* 123 */ k = 0; \n/* 124 */ if (j >= position.func_177956_o() + height - 1)\n/* 125 */ k = 2; \n/* 126 */ for (int px = position.func_177958_n() - k; px <= position.func_177958_n() + k && spawnTree; px++) {\n/* 127 */ for (int pz = position.func_177952_p() - k; pz <= position.func_177952_p() + k && spawnTree; pz++) {\n/* 128 */ if (j >= 0 && j < world.func_217301_I()) {\n/* 129 */ if (!isReplaceable(world, new BlockPos(px, j, pz))) {\n/* 130 */ spawnTree = false;\n/* */ }\n/* */ } else {\n/* 133 */ spawnTree = false;\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* 138 */ if (!spawnTree) {\n/* 139 */ return false;\n/* */ }\n/* 141 */ Block ground = world.func_180495_p(position.func_177982_a(0, -1, 0)).func_177230_c();\n/* 142 */ Block ground2 = world.func_180495_p(position.func_177982_a(0, -2, 0)).func_177230_c();\n/* 143 */ if ((ground != Blocks.field_196658_i.func_176223_P().func_177230_c() && ground != Blocks.field_150346_d.func_176223_P().func_177230_c()) || (ground2 != Blocks.field_196658_i\n/* 144 */ .func_176223_P().func_177230_c() && ground2 != Blocks.field_150346_d.func_176223_P().func_177230_c()))\n/* 145 */ return false; \n/* 146 */ BlockState state = world.func_180495_p(position.func_177977_b());\n/* 147 */ if (position.func_177956_o() < world.func_217301_I() - height - 1) {\n/* 148 */ setTreeBlockState(changedBlocks, (IWorldWriter)world, position.func_177977_b(), Blocks.field_150346_d.func_176223_P(), bbox); int genh;\n/* 149 */ for (genh = position.func_177956_o() - 3 + height; genh <= position.func_177956_o() + height; genh++) {\n/* 150 */ int i4 = genh - position.func_177956_o() + height;\n/* 151 */ int j1 = (int)(1.0D - i4 * 0.5D);\n/* 152 */ for (int k1 = position.func_177958_n() - j1; k1 <= position.func_177958_n() + j1; k1++) {\n/* 153 */ for (int i2 = position.func_177952_p() - j1; i2 <= position.func_177952_p() + j1; i2++) {\n/* 154 */ int j2 = i2 - position.func_177952_p();\n/* 155 */ if (Math.abs(position.func_177958_n()) != j1 || Math.abs(j2) != j1 || (rand.nextInt(2) != 0 && i4 != 0)) {\n/* 156 */ BlockPos blockpos = new BlockPos(k1, genh, i2);\n/* 157 */ state = world.func_180495_p(blockpos);\n/* 158 */ if (state.func_177230_c().isAir(state, (IBlockReader)world, blockpos) || state.func_185904_a().func_76230_c() || state\n/* 159 */ .func_203425_a(BlockTags.field_206952_E) || state.func_177230_c() == Blocks.field_150350_a.func_176223_P().func_177230_c() || state\n/* 160 */ .func_177230_c() == Blocks.field_150350_a.func_176223_P().func_177230_c()) {\n/* 161 */ setTreeBlockState(changedBlocks, (IWorldWriter)world, blockpos, Blocks.field_150350_a.func_176223_P(), bbox);\n/* */ }\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* 167 */ for (genh = 0; genh < height; genh++) {\n/* 168 */ BlockPos genhPos = position.func_177981_b(genh);\n/* 169 */ state = world.func_180495_p(genhPos);\n/* 170 */ setTreeBlockState(changedBlocks, (IWorldWriter)world, genhPos, Blocks.field_196619_M.func_176223_P(), bbox);\n/* 171 */ if (state.func_177230_c().isAir(state, (IBlockReader)world, genhPos) || state.func_185904_a().func_76230_c() || state.func_203425_a(BlockTags.field_206952_E) || state\n/* 172 */ .func_177230_c() == Blocks.field_150350_a.func_176223_P().func_177230_c() || state\n/* 173 */ .func_177230_c() == Blocks.field_150350_a.func_176223_P().func_177230_c());\n/* */ } \n/* */ \n/* 176 */ if (rand.nextInt(4) == 0 && height > 5) {\n/* 177 */ for (int hlevel = 0; hlevel < 2; hlevel++) {\n/* 178 */ for (Direction Direction : Direction.Plane.HORIZONTAL) {\n/* 179 */ if (rand.nextInt(4 - hlevel) == 0) {\n/* 180 */ Direction dir = Direction.func_176734_d();\n/* 181 */ setTreeBlockState(changedBlocks, (IWorldWriter)world, position.func_177982_a(dir.func_82601_c(), height - 5 + hlevel, dir.func_82599_e()), Blocks.field_150350_a\n/* 182 */ .func_176223_P(), bbox);\n/* */ } \n/* */ } \n/* */ } \n/* */ }\n/* 187 */ return true;\n/* */ } \n/* 189 */ return false;\n/* */ } \n/* */ \n/* */ \n/* 193 */ return false;\n/* */ }",
"public static TreeNode generateBinaryTree3() {\n // Nodes\n TreeNode root = new TreeNode(1);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(4);\n TreeNode rootRight = new TreeNode(5);\n TreeNode rootRightRight = new TreeNode(6);\n TreeNode rootRightRightRight = new TreeNode(7);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n root.right = rootRight;\n rootRight.right = rootRightRight;\n rootRightRight.right = rootRightRightRight;\n\n // Return root\n return root;\n }",
"public BTNode getRandomNodeBadSpace() {\n\t\tint toFind = (int)(Math.random() * size);\n\t\treturn arr.get(toFind);\n\t}",
"public static void populateTree(BinarySearchTree tree)\n {\n for(int i = 0; i < 20; i++)\n {\n tree.add(i);\n }\n }",
"private void gameTree(MinimaxNode<GameState> currentNode, int depth, int oIndex){\n currentNode.setNodeIndex(oIndex); \n if (depth == 0) {\n return;\n }\n else{\n if (currentNode.getState().isDead(oIndex)){ //checks to see if current player is dead, if so, just skips their moves\n int newIndex = (oIndex + 1) % currentNode.getState().getNrPlayers();\n/* if(oIndex == 3){\n newIndex = 0;\n }\n else{\n newIndex = oIndex + 1;\n }*/\n gameTree(currentNode, depth-1, newIndex);\n }\n else{\n //this if statement sets up chance nodes, if the target has been met it will create 5 children nodes with randomly generated new target postitions \n if(!currentNode.getState().hasTarget()){\n currentNode.setChanceNode();\n for(int i = 1; i <= 5; i++){\n try{\n GameState newState = (GameState)currentNode.getState().clone();\n newState.chooseNextTarget();\n MinimaxNode<GameState> childNode = new MinimaxNode(newState);\n childNode.setProbability(0.2);\n currentNode.addChild(childNode); \n }\n catch (CloneNotSupportedException e){\n System.out.println(\"Clone not excepted\");\n }\n \n }\n for (int i = 0; i < currentNode.getNumberOfChildren(); i++){\n gameTree(currentNode.getChildren().get(i), depth, oIndex);\n }\n\n }\n else{\n List<Integer> options = new ArrayList();\n for (int i = 1; i <= 4; i++) {\n if (currentNode.getState().isLegalMove(oIndex, i)){\n options.add(i);\n }\n }\n for (int i = 0; i < options.size(); i++){\n try{\n GameState newState = (GameState)currentNode.getState().clone();\n newState.setOrientation(oIndex, options.get(i));\n newState.updatePlayerPosition(oIndex);\n MinimaxNode<GameState> childNode = new MinimaxNode(newState);\n currentNode.addChild(childNode);\n }\n catch (CloneNotSupportedException e){\n System.out.println(\"Clone not excepted\");\n }\n }\n int newIndex = (oIndex + 1) % currentNode.getState().getNrPlayers();\n /* if(oIndex == 3){\n newIndex = 0;\n }\n else{\n newIndex = oIndex + 1;\n }*/\n for (int i = 0; i < currentNode.getNumberOfChildren(); i++){\n gameTree(currentNode.getChildren().get(i), depth-1, newIndex);\n }\n } \n } \n }\n }",
"public static int generateRandom(int left,int right)\n\t{\n\t\tRandom random = new Random();\n\t\tint gap = right -left + 1;\n\t\treturn random.nextInt(Integer.MAX_VALUE)%gap + left;\n\t}",
"private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}",
"private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}",
"private static ArrayList<Integer> createNodes(int bBit, int n) {\r\n\t\tHashSet<Integer> addNodes = new HashSet<Integer>();\r\n\t\tint maxNode = (int) Math.pow(2, bBit);\r\n\t\tRandom random = new Random();\r\n\t\twhile (addNodes.size() < n) {\r\n\t\t\tint randomNode = random.nextInt((maxNode - 1) + 1) + 1;\r\n\t\t\taddNodes.add(randomNode);\r\n\t\t}\r\n\t\tArrayList<Integer> sortedNodes = new ArrayList<Integer>(addNodes);\r\n\t\tCollections.sort(sortedNodes);\r\n\t\treturn sortedNodes;\r\n\t}",
"private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }",
"public List<TreeNode> generateTrees(int n) {\n return helper(1, n);\n }",
"public TreeNode insert(int value) {\n TreeNode newNode = new TreeNode(value);\n\n // CASE when Root Is NULL\n if (root == null) {\n this.root = newNode;\n } else {\n // CASE when Root is Not NULL\n TreeNode currentlyPointedNode = root;\n boolean keepWalking = true;\n\n while (keepWalking) {\n // CASE : Inserted Value BIGGER THAN Current Node's Value\n if (value >= currentlyPointedNode.value) {\n // CASE : current node's Right Child is NULL\n if (currentlyPointedNode.rightChild == null) {\n\n // If its null, just assigning the new node to the right place\n currentlyPointedNode.rightChild = newNode;\n keepWalking = false;\n\n } else {\n // CASE WHEN current node's Right Child is not null , we need to keep walking right\n currentlyPointedNode = currentlyPointedNode.rightChild;\n }\n } else {\n // CASE : Inserted Value SMALLER THAN Current Node's Value\n\n // CASE WHEN current node's LEFT Child is null\n if (currentlyPointedNode.leftChild == null) {\n\n // If its null, just assigning the new node to the right place\n currentlyPointedNode.leftChild = newNode;\n keepWalking = false;\n } else {\n // CASE WHEN current node's Right Child is not null , we need to keep walking right\n currentlyPointedNode = currentlyPointedNode.leftChild;\n }\n\n }\n }\n }\n\n return root;\n }",
"@Test\n public void whenAddNineNodesOnDifferentLevelsThenResultNineNodesFromBottomToTop() {\n tree.addChild(nodeOne, \"1\");\n tree.addChild(new TreeNode(), \"1\");\n tree.addChild(new TreeNode(), \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n nodeOne.addChild(new TreeNode(), \"2\");\n nodeOne.addChild(new TreeNode(), \"2\");\n nodeTwo.addChild(nodeThree, \"3\");\n nodeTwo.addChild(new TreeNode(), \"3\");\n nodeTwo.addChild(new TreeNode(), \"3\");\n assertThat(tree.getChildren().toString(), is(\"[3, 3, 3, 2, 2, 2, 1, 1, 1]\"));\n }",
"public void newGame() {\n\t\ttheNumber = (int)(Math.random()* 100 + 1);\r\n\t\t\r\n\t}",
"private int generatePiece()\n\t{\n\t\tint toReturn = 0;\n\t\tint max = 1;\n\t\tint min = -1;\n\t\t\n\t\twhile(toReturn == 0)\n\t\t{\n\t\t\ttoReturn = r.nextInt((max - min) + 1) + min;\n\t\t}\n\t\tSystem.out.println(toReturn);\n\t\treturn toReturn;\n\t}",
"public static TreapNode newNode(int key)\n {\n TreapNode temp = new TreapNode();\n temp.key = key;\n temp.priority = (r.nextInt(100));\n temp.left = temp.right = null;\n return temp;\n }",
"private int newIndex() {\n //return indexes.remove(0);\n return random.nextInt(81);\n }",
"public static void createTree(SuccessorGenerator generator, GameState initialState)\n {\n LinkedList<GameState> currentLevel = new LinkedList<GameState>();\n currentLevel.add(initialState);\n Player currentPlayer = Player.PLAYER_MAX;\n \n int level = 0;\n while(true)\n {\n LinkedList<GameState> nextLevel = new LinkedList<GameState>();\n \n /*Gerando todas as ações possíveis para o nível atual.*/\n for(GameState state : currentLevel)\n {\n generator.generateSuccessors(state, currentPlayer);\n \n for(int i = 0; i < state.getChildren().size(); i++)\n {\n GameState successorState = state.getChildren().get(i);\n nextLevel.add(successorState);\n }\n }\n System.out.println(\"Expandindo nível \"+(level++)+\" com \"+nextLevel.size()+\" estados.\");\n \n /*Alternando jogadores*/\n currentPlayer = (currentPlayer == Player.PLAYER_MAX)?\n Player.PLAYER_MIN:\n Player.PLAYER_MAX; \n \n /*Busca termina quando todos os estados foram explorados*/\n if(nextLevel.isEmpty()) break;\n \n currentLevel.clear();\n currentLevel.addAll(nextLevel);\n }\n \n }",
"public static Node createLargeTree() {\n final int dcCount = 2;\n final int rackCount = 6;\n final int snCount = 6;\n final int hdCount = 12;\n\n int id = 0;\n // root\n Node root = new Node();\n root.setName(\"root\");\n root.setId(id++);\n root.setType(Types.ROOT);\n root.setSelection(Selection.STRAW);\n // DC\n List<Node> dcs = new ArrayList<Node>();\n for (int i = 1; i <= dcCount; i++) {\n Node dc = new Node();\n dcs.add(dc);\n dc.setName(\"dc\" + i);\n dc.setId(id++);\n dc.setType(Types.DATA_CENTER);\n dc.setSelection(Selection.STRAW);\n dc.setParent(root);\n // racks\n List<Node> racks = new ArrayList<Node>();\n for (int j = 1; j <= rackCount; j++) {\n Node rack = new Node();\n racks.add(rack);\n rack.setName(dc.getName() + \"rack\" + j);\n rack.setId(id++);\n rack.setType(StorageSystemTypes.RACK);\n rack.setSelection(Selection.STRAW);\n rack.setParent(dc);\n // storage nodes\n List<Node> sns = new ArrayList<Node>();\n for (int k = 1; k <= snCount; k++) {\n Node sn = new Node();\n sns.add(sn);\n sn.setName(rack.getName() + \"sn\" + k);\n sn.setId(id++);\n sn.setType(StorageSystemTypes.STORAGE_NODE);\n sn.setSelection(Selection.STRAW);\n sn.setParent(rack);\n // hds\n List<Node> hds = new ArrayList<Node>();\n for (int l = 1; l <= hdCount; l++) {\n Node hd = new Node();\n hds.add(hd);\n hd.setName(sn.getName() + \"hd\" + l);\n hd.setId(id++);\n hd.setType(StorageSystemTypes.DISK);\n hd.setWeight(100);\n hd.setParent(sn);\n }\n sn.setChildren(hds);\n }\n rack.setChildren(sns);\n }\n dc.setChildren(racks);\n }\n root.setChildren(dcs);\n return root;\n }",
"public void makeSet( long data ){\n Node node = new Node();\n node.data = data;\n node.parent = node;\n node.rank = 0;\n map.put( data, node );\n }",
"static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }",
"private int first_leaf() { return n/2; }",
"public static TreeNode generateBinaryTree2() {\n // Nodes\n TreeNode root = new TreeNode(12);\n TreeNode rootLeft = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(1);\n TreeNode rootLeftLeftLeftLeft = new TreeNode(20);\n TreeNode rootRight = new TreeNode(5);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n rootLeftLeftLeft.left = rootLeftLeftLeftLeft;\n root.right = rootRight;\n\n // Return root\n return root;\n }",
"public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n\t\treturn (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenAcacia(false) : (par1Random.nextInt(24) == 0 ? new WorldGenDeadTree3(false) : (par1Random.nextInt(2) == 0 ? this.worldGeneratorTrees : new WorldGenShrub(0,0))));\n }",
"public IntTree(int numberOfNodes) {\n assert numberOfNodes >= 0;\n \n overallRoot = buildTree(1, numberOfNodes);\n }",
"public static Location genRandomSpawn() {\n final Random r = new Random();\n\n final World world = Bukkit.getWorld(\"Normal_tmp\");\n\n final int half = WIDTH / 2,\n x = randomBetween(r, -half + CENTERX, half + CENTERX),\n z = randomBetween(r, -half + CENTERZ, half + CENTERZ);\n\n return permutateLocation(new Location(world, x, 0, z));\n }",
"public static int randomNumber100(){\r\n int max = 100;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }",
"private Level produce() {\n\t\tint[][]grid = new int[row][column];\n\t\tArrayList<Point> goals = new ArrayList<Point>();\n\t\tint newRand = 0;\n\t\tfor (int x = 0; x < row; x++)\t{\n\t\t\tfor (int y = 0; y < column; y++)\t{\n\t\t\t\tnewRand = rand.nextInt(TOTAL);\n\t\t\t\tif (newRand < CAT_1)\t{\n\t\t\t\t\tgrid[x][y] = 1;\n\t\t\t\t} else if (newRand < CAT_2)\t{\n\t\t\t\t\tgrid[x][y] = 2;\n\t\t\t\t} else if (newRand < CAT_3)\t{\n\t\t\t\t\tgrid[x][y] = 3;\n\t\t\t\t} else if (newRand < CAT_4)\t{\n\t\t\t\t\tgrid[x][y] = 4;\n\t\t\t\t} else if (newRand < CAT_5)\t{\n\t\t\t\t\tgoals.add(new Point(x,y));\n\t\t\t\t} else if (newRand < TOTAL)\t{\n\t\t\t\t\tgrid[x][y] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Level(grid, row, column, goals);\n\t}",
"private Vector3 randomLocationDolphin() {\n\t\tVector3 center = this.getEngine().getSceneManager().getRootSceneNode().getLocalPosition();\n\t\tVector3 randomPosition;\n\t\tfloat[] randomFloat;\n\t\tdo {\n\t\t\trandomFloat = randomFloatArray(1000);\n\t\t\trandomPosition = Vector3f.createFrom(randomFloat[0], 0.0f, randomFloat[2]);\n\t\t} while (distanceFrom(center, randomPosition) < 420f);\n\t\treturn randomPosition;\n\t}",
"public TreeNode insert(TreeNode root,int num,int t){\n //first number\n if(root==null){\n TreeNode curNode = new TreeNode(num);\n return curNode;\n }\n if(Math.abs((long)(root.val-num))<=t){//from test case, [-1,2147482647],k=1,t=2147483647,we shall consider extream case\n flag = true;\n return root;\n }\n if(root.val<num){\n root.right = insert(root.right,num,t);\n }else if(root.val>num){\n root.left = insert(root.left,num,t);\n }\n return root;\n }",
"private int randomGen(int upperBound) {\n\t\tRandom r = new Random();\n\t\treturn r.nextInt(upperBound);\n\t}",
"private int rand(int lower, int upper) {\n return lower + (int)(Math.random() * ((upper - lower) + 1));\n }",
"private static int newSecretNumber(int min, int max)\n {\n Random rnd = new Random();\n return rnd.nextInt((max + 1 - min) + min);\n }",
"public void insert(T data)\r\n {\r\n int height = 1; //This will be the randomly generated default height of our newly inserted node. \r\n \r\n Node<T> tmp = head; //The traversal node ptr that we follow through the list. \r\n \r\n Node<T> Growtmp = head; //The traversal node ptr that we use to traverse only the max nodes if we need to grow. \r\n \r\n while(Math.random() < 0.5) //This is simulating our coin flip which determines the height of our node. \r\n height++;\r\n \r\n if(height > tmp.height) //If our randomly generated node is too tall, scale it down. \r\n height = tmp.height;\r\n \r\n ArrayDeque<Node<T>> droplvl = new ArrayDeque<>(); // Stores all the nodes that we drop at.\r\n\r\n Node<T> node = new Node<T>(data,height); //Create the new node to be inserted! \r\n \r\n for(int i=tmp.height - 1; i >= 0; i--) //Loop through the heights of the head node. \r\n {\r\n //If the pointed to nodes data is greater than the newly created node or were pointing to null\r\n //drop down a level of height and repeat search process.\r\n //Checks to see if inserted node is less than current node\r\n if(tmp.pointers.get(i) == null || tmp.pointers.get(i).data.compareTo(node.data) > 0 || tmp.pointers.get(i).data.compareTo(node.data) == 0) \r\n {\r\n droplvl.push(tmp); //Store our drop nodes into a stack.\r\n continue; //This is essentially how we are dropping levels. \r\n }\r\n \r\n //If the pointed to nodes data is less than the inserting node move to that node. \r\n if(tmp.pointers.get(i).data.compareTo(node.data) < 0) \r\n {\r\n if(tmp.next(i) != null)\r\n tmp = tmp.next(i);\r\n \r\n if(tmp.pointers.get(i) != null)\r\n { \r\n while(tmp.pointers.get(i) != null && tmp.pointers.get(i).data.compareTo(node.data) < 0)\r\n {\r\n if(tmp.next(i) != null)\r\n tmp = tmp.next(i);\r\n \r\n else \r\n break;\r\n }\r\n }\r\n \r\n droplvl.push(tmp); //Store the drop \r\n continue; //Continue down our list\r\n }\r\n }\r\n\r\n //Once here our temp has traversed the list and is currently where our node needs to be inserted. \r\n //We now need to pop the stack node height number of times. \r\n \r\n for(int z = 0; z < node.height; z++)\r\n {\r\n node.pointers.set(z , droplvl.peek().pointers.get(z));\r\n droplvl.pop().pointers.set(z , node);\r\n }\r\n \r\n //Once here our node has been inserted. \r\n \r\n numNodes++; //Increase our node counter. \r\n containsData.add(node.data); //Stores all the inserted <T>Data. \r\n \r\n double logHeight = Math.log(numNodes)/Math.log(2);\r\n logHeight = Math.ceil(logHeight); //Takes the ceiling of log base 2 of n ie rounds up. \r\n int NewHeight = (int)logHeight; //The new height of our skiplist after inserting \r\n \r\n if(NewHeight <= 0) // If our list contains 1 element it should be of height 1 not 0; \r\n NewHeight = 1;\r\n \r\n if(NewHeight > Growtmp.height) //If this is the case we need to grow our skiplist!\r\n {\r\n //We need to traverse the prior max height and flip a coin on each node to see if it will grow!\r\n \r\n int p = NewHeight - 2; //Variable used to traverse previous max level\r\n \r\n ArrayList<Node<T>> NodesThatGrow = new ArrayList<>();\r\n\r\n Growtmp = head;\r\n \r\n Growtmp = Growtmp.next(p);// Point Growtmp to the first node of maxheight \r\n \r\n while(Growtmp != null) //Determines if a node of maxheight will grow or not. \r\n { \r\n if(Growtmp != null && Math.random() < 0.5) //Flip a coin for each node.\r\n {\r\n NodesThatGrow.add(Growtmp);\r\n Growtmp.height = NewHeight;\r\n }\r\n Growtmp = Growtmp.next(p);\r\n }\r\n \r\n Growtmp = head;\r\n \r\n head.height = NewHeight; //We need to update the height of our head node. \r\n \r\n Growtmp.pointers.add(p+1,null); //Growing the head node by height 1.\r\n\r\n for(int b = 0; b < NodesThatGrow.size(); b++)\r\n {\r\n NodesThatGrow.get(b).pointers.add(p+1,null); //Grow the height of the nodes on our maxlevel.\r\n Growtmp.height = NewHeight; //Update the heights of our grown nodes!!!!!\r\n Growtmp.pointers.set(p+1,NodesThatGrow.get(b));\r\n Growtmp = NodesThatGrow.get(b);\r\n }\r\n }\r\n }",
"public static void simulate(BinarySearchTree tree)\n {\n String data = \"\";\n\n //populateTree(tree);\n\n populateTreeRandom(tree);\n\n data = tree.breadthFirstTraversal();\n\n System.out.println(\"RANDOM DATA POST POPULATION: \\n\" + data);\n }",
"private void buildTree(int nodeNum, AABB nodeBounds,\n ArrayList<AABB> allPrimBounds,\n IntArray primNums, int nPrims, int depth,\n int badRefines) {\n if (nPrims <= maxPrims || depth == 0) {\n if ((nPrims > 16) && (depth == 0)) {\n System.out.println(\"reached max. KdTree depth with \" + nPrims + \n \" primitives\");\n }\n \n nodesW.add(makeLeaf(primNums, nPrims, primitives));\n totalPrims += nPrims;\n totalDepth += (maxDepth - depth);\n totalLeafs += 1;\n return;\n }\n \n /* Split - Position bestimmen */\n \n int bestAxis = -1, bestOffset = -1;\n float bestCost = Float.POSITIVE_INFINITY;\n float oldCost = isectCost * (float)nPrims;\n Vector d = nodeBounds.max.sub(nodeBounds.min);\n float totalSA = (2.f * (d.x*d.y + d.x*d.z + d.y*d.z));\n float invTotalSA = 1.f / totalSA;\n \n /* Achse wählen */\n int axis = d.dominantAxis();\n int retries = 0;\n boolean retry = false;\n ArrayList<BoundEdge> edges = null;\n \n// final int splitCount = edges[axis].length;\n \n do {\n edges = mkEdges(allPrimBounds, primNums, axis);\n Collections.sort(edges);\n final int splitCount = edges.size();\n \n// java.util.Arrays.sort(edges[axis], 0, splitCount);\n \n /* beste Split - Position für diese Achse finden */\n int nBelow = 0, nAbove = nPrims;\n \n for (int i = 0; i < splitCount; ++i) {\n if (edges.get(i).type == EdgeType.END) --nAbove;\n float edget = edges.get(i).t;\n \n if (edget > nodeBounds.min.get(axis) &&\n edget < nodeBounds.max.get(axis)) {\n // Compute cost for split at _i_th edge\n int otherAxis[][] = { {1,2}, {0,2}, {0,1} };\n int otherAxis0 = otherAxis[axis][0];\n int otherAxis1 = otherAxis[axis][1];\n \n float belowSA = 2 * (d.get(otherAxis0) * d.get(otherAxis1) +\n (edget - nodeBounds.min.get(axis)) *\n (d.get(otherAxis0) + d.get(otherAxis1)));\n \n float aboveSA = 2 * (d.get(otherAxis0) * d.get(otherAxis1) +\n (nodeBounds.max.get(axis) - edget) *\n (d.get(otherAxis0) + d.get(otherAxis1)));\n \n float pBelow = belowSA * invTotalSA;\n float pAbove = aboveSA * invTotalSA;\n \n float eb = (nAbove == 0 || nBelow == 0) ? emptyBonus : 0.f;\n float cost = traversalCost + isectCost * (1.f - eb) *\n (pBelow * nBelow + pAbove * nAbove);\n \n if (cost < bestCost) {\n /* neuer bester gefunden */\n bestCost = cost;\n bestAxis = axis;\n bestOffset = i;\n }\n }\n \n if (edges.get(i).type == EdgeType.START) ++nBelow;\n }\n \n if (!(nBelow == nPrims && nAbove == 0))\n throw new IllegalStateException(\"hmm\");\n \n retry = ((bestAxis == -1) && (retries < 2));\n \n if (retry) {\n ++retries;\n axis = (axis+1) % 3;\n }\n \n } while (retry);\n \n if (bestCost > oldCost) ++badRefines;\n if ((bestCost > 4.f * oldCost && nPrims < 16) ||\n bestAxis == -1 || badRefines == 3) {\n nodesW.add(makeLeaf(primNums, nPrims, primitives));\n if (nPrims > 16)\n System.out.println(\"aborting KdTree build recursion (bc=\" +\n bestCost + \", oc=\" + oldCost + \", #prims=\" + \n nPrims + \", br=\" + badRefines + \")\");\n totalPrims += nPrims;\n totalDepth += (maxDepth - depth);\n totalLeafs += 1;\n return;\n }\n \n /* Primitive nach oben / unten sortieren */\n int n0 = 0, n1 = 0;\n \n final ArrayList<Integer> prims0Tmp = new ArrayList<Integer>();\n final ArrayList<Integer> prims1Tmp = new ArrayList<Integer>();\n \n for (int i = 0; i < bestOffset; ++i) {\n if (edges.get(i).type == EdgeType.START) {\n prims0Tmp.add(edges.get(n0++).primNum);\n// prims0.set(n0++, edges[bestAxis][i].primNum);\n }\n }\n \n for (int i = bestOffset + 1; i < edges.size(); ++i) {\n if (edges.get(i).type == EdgeType.END) {\n prims1Tmp.add(edges.get(n1++).primNum);\n// prims1.set(n1++, edges[bestAxis][i].primNum);\n }\n }\n \n /* rekursiver Abstieg */\n float tsplit = edges.get(bestOffset).t;\n \n nodesW.add(makeInterior(bestAxis, tsplit));\n \n AABB bounds[] = nodeBounds.split(tsplit, bestAxis);\n \n final IntArray prims0 = new IntArray(prims0Tmp.size());\n for (int i=0; i < prims0Tmp.size(); i++) {\n prims0.set(i, prims0Tmp.get(i));\n }\n \n final IntArray prims1 = new IntArray(prims1Tmp.size());\n for (int i=0; i < prims1Tmp.size(); i++) {\n prims1.set(i, prims1Tmp.get(i));\n }\n \n buildTree(nodeNum+1, bounds[0], allPrimBounds,\n prims0, n0, depth-1, badRefines);\n \n nodesW.get(nodeNum).setAboveChild(nodesW.size());\n \n buildTree(nodesW.size(), bounds[1], allPrimBounds,\n prims1, n1, depth-1, badRefines);\n }",
"public void removeRandomLimitedDepth(){\n Node[] nodes = getRandomNonterminalNode(true); //limited depth so suppress trunc's destructiveness.\n if (nodes == null)\n return;\n \n // Generate random DecisionNode to replace\n DecisionNode replacementNode = DecisionNode.getRandom();\n \n // Update prev reference\n if (nodes[PREV].left == nodes[CURR]){\n //U.pl(\"Truncing: \" + nodes[PREV] + \", \" + nodes[CURR] + \", \" + nodes[NEXT]);\n nodes[PREV].left = replacementNode;\n } else {\n //U.pl(\"Truncing: \" + nodes[PREV] + \", \" + nodes[CURR] + \", \" + nodes[NEXT]);\n nodes[PREV].right = replacementNode;\n }\n }",
"int lanzar(int n){\n int result = (int) (Math.random()* 6) + 1;\r\n if(result !=n ) result = (int) (Math.random()* 6) + 1;\r\n return result;\r\n \r\n /*\r\n * int result = (int) (Math.random()*9)+1;\r\n * if (result > 0 && result < 7) return result;\r\n * else if(result > 6 && result < 9) return n;\r\n * else return (int) (Math.random()*6)+1;\r\n *\r\n *\r\n */\r\n }",
"private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }",
"public void createWall() { // make case statement?\n\t\tRandom ran = new Random();\n\t\tint range = 6 - 1 + 1; // max - min + min\n\t\tint random = ran.nextInt(range) + 1; // add min\n\n\t\t//each wall is a 64 by 32 chunk \n\t\t//which stack to create different structures.\n\t\t\n\t\tWall w; \n\t\tPoint[] points = new Point[11];\n\t\tpoints[0] = new Point(640, -32);\n\t\tpoints[1] = new Point(640, 0);\n\t\tpoints[2] = new Point(640, 32); // top\n\t\tpoints[3] = new Point(640, 384);\n\t\tpoints[4] = new Point(640, 416);\n\n\t\tif (random == 1) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 2) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96); // top\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 3) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192); // top\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 4) {\n\t\t\tpoints[5] = new Point(640, 64);\n\t\t\tpoints[6] = new Point(640, 96);\n\t\t\tpoints[7] = new Point(640, 128); // top\n\t\t\tpoints[8] = new Point(640, 160);\n\t\t\tpoints[9] = new Point(640, 192);\n\t\t\tpoints[10] = new Point(640, 224); // top\n\t\t} else if (random == 5) {\n\t\t\tpoints[5] = new Point(640, 64); // top\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256);\n\t\t\tpoints[8] = new Point(640, 288); // bottom\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t} else if (random == 6) {\n\t\t\tpoints[5] = new Point(640, 192);\n\t\t\tpoints[6] = new Point(640, 224);\n\t\t\tpoints[7] = new Point(640, 256); // bottom\n\t\t\tpoints[8] = new Point(640, 288);\n\t\t\tpoints[9] = new Point(640, 320);\n\t\t\tpoints[10] = new Point(640, 352); // bottom\n\t\t}\n\n\t\tfor (int i = 0; i < points.length; i++) { // adds walls\n\t\t\tw = new Wall();\n\t\t\tw.setBounds(new Rectangle(points[i].x, points[i].y, 64, 32));\n\t\t\twalls.add(w);\n\t\t}\n\t\tWall c; // adds a single checkpoint\n\t\tc = new Wall();\n\t\tcheckPoints.add(c);\n\t\tc.setBounds(new Rectangle(640, 320, 32, 32));\n\t}",
"private static TreeNode getNode() {\n TreeNode treeNode = new TreeNode(1);\n TreeNode left = new TreeNode(2);\n TreeNode right = new TreeNode(3);\n treeNode.left = left;\n treeNode.right = right;\n\n left.left = new TreeNode(4);\n right.left = new TreeNode(5);\n right.right = new TreeNode(6);\n return treeNode;\n }",
"void generateLeaves(World world, BlockPos pos, Random rand, List<FoliageCoordinates> foliageCoords) {\n\t\tthis.height = (int) (this.heightLimit * this.heightAttenuation);\n\t\t\n\t\tif (this.height >= this.heightLimit) {\n\t\t\tthis.height = this.heightLimit - 1;\n\t\t}\n\n\t\tint i = (int) (1.382 + Math.pow(this.leafDensity * this.heightLimit / 13.0, 2.0));\n\t\t\n\t\tif (i < 1) i = 1;\n\n\t\tint branchBaseY = pos.getY() + this.height;\n\t\tint k = this.heightLimit - this.leafDistanceLimit;\n\t\t\n\t\t\n\t\tfoliageCoords.add(new FoliageCoordinates(pos.up(k), branchBaseY));\n\n\t\tfor (; k >= 0; --k) {\n\t\t\tfloat f = this.getLayerSize(k);\n\n\t\t\tif (f >= 0.0F) {\n\t\t\t\tfor (int l = 0; l < i; ++l) {\n\t\t\t\t\tdouble d0 = this.scaleWidth * (double) f * ((double) rand.nextFloat() + 0.328D);\n\t\t\t\t\tdouble d1 = (double) (rand.nextFloat() * 2.0F) * Math.PI;\n\t\t\t\t\tdouble d2 = d0 * Math.sin(d1) + 0.5D;\n\t\t\t\t\tdouble d3 = d0 * Math.cos(d1) + 0.5D;\n\t\t\t\t\tBlockPos blockpos = pos.add(d2, (double) (k - 1), d3);\n\t\t\t\t\tBlockPos blockpos1 = blockpos.up(this.leafDistanceLimit);\n\n\t\t\t\t\tif (this.checkBlockLine(world, blockpos, blockpos1) == -1) {\n\t\t\t\t\t\tint i1 = pos.getX() - blockpos.getX();\n\t\t\t\t\t\tint j1 = pos.getZ() - blockpos.getZ();\n\t\t\t\t\t\tdouble d4 = (double) blockpos.getY() - Math.sqrt((double) (i1 * i1 + j1 * j1)) * this.branchSlope;\n\t\t\t\t\t\tint k1 = d4 > (double) branchBaseY ? branchBaseY : (int) d4;\n\t\t\t\t\t\tBlockPos blockpos2 = new BlockPos(pos.getX(), k1, pos.getZ());\n\n\t\t\t\t\t\tif (this.checkBlockLine(world, blockpos2, blockpos) == -1) {\n\t\t\t\t\t\t\tfoliageCoords.add(new FoliageCoordinates(blockpos, blockpos2.getY()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}"
]
| [
"0.69882536",
"0.6985705",
"0.69514716",
"0.64878416",
"0.62969077",
"0.6277785",
"0.6212211",
"0.6176839",
"0.61448246",
"0.6032867",
"0.60287213",
"0.59885",
"0.5975524",
"0.5963884",
"0.5957722",
"0.59048074",
"0.58186257",
"0.57897896",
"0.5784218",
"0.5766616",
"0.57266986",
"0.5710659",
"0.5708166",
"0.5701328",
"0.5700772",
"0.56919533",
"0.5691064",
"0.56878835",
"0.567277",
"0.5666837",
"0.5666587",
"0.5658172",
"0.56426084",
"0.5632993",
"0.5628668",
"0.5617015",
"0.56166476",
"0.5611574",
"0.55852157",
"0.5568201",
"0.5542694",
"0.55204827",
"0.54999286",
"0.54888624",
"0.54836136",
"0.54743695",
"0.54698974",
"0.546464",
"0.54636693",
"0.5455105",
"0.5454822",
"0.5445563",
"0.5443793",
"0.54409474",
"0.54276603",
"0.5426835",
"0.5417247",
"0.54132193",
"0.5405849",
"0.54007405",
"0.5393471",
"0.53928715",
"0.5377745",
"0.5365665",
"0.53585166",
"0.5349742",
"0.53452057",
"0.5342291",
"0.5340385",
"0.5338365",
"0.5336503",
"0.53293973",
"0.53284675",
"0.53259027",
"0.5325051",
"0.5323809",
"0.53228515",
"0.5320826",
"0.53129333",
"0.5304707",
"0.53025013",
"0.5302126",
"0.5299447",
"0.5293164",
"0.5291599",
"0.5289262",
"0.52879643",
"0.5282644",
"0.52724004",
"0.5267688",
"0.52628464",
"0.5257677",
"0.5255878",
"0.52546114",
"0.52543503",
"0.52513796",
"0.52510154",
"0.5250446",
"0.52425176",
"0.5240855",
"0.52406037"
]
| 0.0 | -1 |
sends back the newest node to display(or potentially the whole list) and the new node number this will have to be parsed again in the frontend | @Override
public JsonObject getDataToDisplay() {
JsonObject payload = new JsonObject();
String newNode;
// if the tree is complete then the game is over.
if (this.displayedNodes.isEmpty()) {
newNode = "GAME IS OVER";
} else {
newNode = GSON.toJson(this.displayedNodes.get(this.displayedNodes.size() - 1));
}
payload.addProperty("currValue", this.currDisplayedNumber);
payload.addProperty("newNodeToDisp", newNode);
payload.addProperty("score", this.score);
payload.addProperty("nextScoreVal", this.calculateScore(""));
return payload;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNewNodeID() {\n\t\tint newID = _minNodeID;\n\t\twhile (_nodeIdList.contains(newID)) newID++;\n\t\treturn newID;\n\t}",
"private Value update(Node recentNode) {\n Node temp = recentNode.next;\n Value value = temp.val;\n recentNode.next = recentNode.next.next;\n Node node = first;\n while (node.next != null) {\n node = node.next;\n }\n node.next = temp;\n temp.next = null;\n return value;\n }",
"public static int numberOfNodes() { return current_id; }",
"void updateDisplay()\r\n {\r\n\tCustomerNode temp = q.front();\r\n\tint i = 0;\r\n\r\n\tdisplayArea.setText(\"\");\r\n\t\r\n\tif (q.isEmpty())\r\n\t{\r\n displayArea.setText(\"Nobody waiting...\\n\");\r\n\t}\r\n\telse\r\n\t{\r\n do\r\n {\r\n displayArea.append(\"\" + ++i + \": \" + temp.getName()\r\n + \" \" + temp.getPhone() + \"\\n\");\r\n //temp = q.getNext(temp);\r\n temp = temp.getNext();\r\n }\r\n while (temp != null);\r\n\t}\r\n }",
"private void updateStatus() {\n Response block = blockTableModel.getChainHead();\n int height = (block != null ? block.getInt(\"height\") : 0);\n nodeField.setText(String.format(\"<html><b>NRS node: [%s]:%d</b></html>\",\n Main.serverConnection.getHost(),\n Main.serverConnection.getPort()));\n chainHeightField.setText(String.format(\"<html><b>Chain height: %d</b></html>\",\n height));\n connectionsField.setText(String.format(\"<html><b>Peer connections: %d</b></html>\",\n connectionTableModel.getActiveCount()));\n }",
"private void addNode() {\n // Add GUI node\n int nodeCount = mGraph.getNodeCount();\n Node node = mGraph.addNode(String.valueOf(nodeCount));\n node.addAttribute(\"ui.label\", nodeCount);\n\n // Add Node_GUI node for algorithm to read from\n Node_GUI listNode = new Node_GUI();\n mNodeList.add(listNode);\n }",
"void refreshNode(ChartNode node);",
"void updateList(PertNode Node)\r\n\t{\n\t\tfor(int i = 0; i < this.masterList.size(); i++)\r\n\t\t{\r\n\t\t\tif(Objects.equals(this.masterList.get(i).Node, Node.Node))\r\n\t\t\t{\r\n\t\t\t\tthis.masterList.get(i).Duration = Node.Duration;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.masterList.add(Node);\r\n\t}",
"void append(int new_data) {\n\t\tNode new_node = new Node(new_data);\n\t\tNode last = head;\n\t\tnew_node.next = null;\n\t\tif (head == null) {\n\t\t\tnew_node.prev = null;\n\t\t\thead = new_node;\n\t\t\treturn;\n\t\t}\n\t\twhile (last.next != null)\n\t\t\tlast = last.next;\n\t\tlast.next = new_node;\n\t\tnew_node.prev = last;\n\t}",
"private void refreshDisplay() {\n \t\tCursor cursor;\n \t\tif (node_id >= 0)\n \t\t\tcursor = appInst.getDB().getNodeChildren(node_id);\n \t\telse\n \t\t\tcursor = appInst.getDB().getFileCursor();\n \n \t\tstartManagingCursor(cursor);\n \t\tthis.outlineAdapter = new OutlineCursorAdapter(this, cursor, appInst.getDB());\n \t\tthis.setListAdapter(outlineAdapter);\n \n \t\tgetListView().setSelection(this.lastSelection);\n \t}",
"public void sendUpdateNodeMessage (Node node) {\n this.clientCommunicationManager.sendUpdateNodeMessage(node);\n }",
"public void updateToNewest(){\n\t\tif(!isUpdateInfoNull()){\n\t\t\tVersionUtil.updateToNewestBasiclistCategory(currentRegionId);\n\t\t\theadStatus = \"normal\";\n\t\t\tinitRootNodeByVersionId(\"head\");\n\t\t\tdoVersionCampare();\n\t\t}\n\t\tRequestContext.getCurrentInstance().execute(\"PF('updateCategories').hide();\");\n\t}",
"public void printNode(){\n\t\tSystem.out.println(\"\\nCurrent neigbor: \" + serventList.size());\n\t\tfor(int i = 0;i<serventList.size();i++){\n\t\t\tServentInfo b = serventList.get(i);\n\t\t\tSystem.out.println(\"(\" + b.IP + \":\" + b.port + \"); \");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"public void append(int new_data) \r\n\t\t{ \r\n\t\t Node new_node = new Node(new_data); \r\n\t\t \r\n\t\t if (head == null) \r\n\t\t { \r\n\t\t head = new Node(new_data); \r\n\t\t return; \r\n\t\t } \r\n\t\t \r\n\t\t new_node.next = null; \r\n\t\t \r\n\t\t Node last = head; \r\n\t\t while (last.next != null) \r\n\t\t last = last.next; \r\n\t\t \r\n\t\t last.next = new_node; \r\n\t\t return; \r\n\t\t}",
"private void updateLruWithNewNode(PageId pid, Page retrievedPage) {\n Node node = new Node(pid, retrievedPage);\n changeHead(node);\n bufferedPages.put(pid, node);\n }",
"public void displayNode() {\n\t\t\tSystem.out.println(\"{ \" + data + \" } \");\n\t\t}",
"public void update(NetworkNode networkNode);",
"private void appendNode(int data) {\n\t\tNode currentNode = head;\n\t\tNode newNode = new Node(data);\n\n\t\tif(currentNode==null) {\n\t\t\thead = newNode;\n\t\t\treturn;\n\t\t}\n\t\tif(currentNode.next==null) {\n\t\t\tcurrentNode.next=newNode;\n\t\t} else {\n\t\t\twhile(currentNode.next!=null) {\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t\tcurrentNode.next = newNode;\n\t\t}\n\t\tSystem.out.println(\" Added new Node to the linkedList \");\n\t}",
"void append(int new_data)\n {\n /* 1. allocate node\n * 2. put in the data */\n Node new_node = new Node(new_data);\n\n Node last = head;/* used in step 5*/\n\n /* 3. This new node is going to be the last node, so\n * make next of it as NULL*/\n new_node.setNext(null);\n\n /* 4. If the Linked List is empty, then make the new\n * node as head */\n if(head == null)\n {\n new_node.setPrev(null);\n head = new_node;\n return;\n }\n\n /* 5. Else traverse till the last node */\n while(last.getNext() != null)\n last = last.getNext();\n\n /* 6. Change the next of last node */\n last.setNext(new_node);\n\n /* 7. Make last node as previous of new node */\n new_node.setPrev(last);\n }",
"public void insert_last(int data){\n Node new_node = new Node(data);\n Node cursor = this.head;\n if(head==null){\n new_node.prev = null;\n head = new_node;\n System.out.println(\"Node Added !\");\n this.print_list();\n return;\n }\n while(cursor != null){\n if(cursor.next == null){\n cursor.next = new_node;\n new_node.prev = cursor;\n System.out.println(\"Node added !\");\n this.print_list();\n return;\n }\n cursor = cursor.next;\n }\n return;\n }",
"public void push(int new_data) {\n\t\tNode new_Node = new Node(new_data);//Create a new node with 7 as data.\n\t\tnew_Node.next = head; // Node's next Addr part points to the HEAD.\n\t\tnew_Node.prev = null; // Node's prev part is NULL.\n\t\tif (head != null)\n\t\t\thead.prev = new_Node; // Take the current HEAD Node and assign this newly created node's address to the current HEAD's prev part\n\t\thead = new_Node; // Make the current node as a new HEAD.\n\t}",
"void nodeUpdated(Node n) throws RepositoryException;",
"public synchronized void run() {\n\t\t\n\t\tfor (int i=0; i<cnnode.NeigList1.size(); i++) {\n\t\t\tcnnode.FormerNeigList1.get(i).SetSendNum(cnnode.NeigList1.get(i).GetSendNum());\n\t\t\tcnnode.FormerNeigList1.get(i).SetReceiveNum(cnnode.NeigList1.get(i).GetReceiveNum());\n\t\t\tSystem.out.print(\"[\"+System.currentTimeMillis()+\"] Link to Node \"+ cnnode.FormerNeigList1.get(i).GetNeigPort() +\": \" + cnnode.FormerNeigList1.get(i).GetSendNum() + \" packets sent, \" + (cnnode.FormerNeigList1.get(i).GetSendNum()-cnnode.FormerNeigList1.get(i).GetReceiveNum()) + \" packets lost, loss rate \");\n\t\t\tSystem.out.printf(\"%.2f\\n\", (float)(cnnode.FormerNeigList1.get(i).GetSendNum()-cnnode.FormerNeigList1.get(i).GetReceiveNum())/cnnode.FormerNeigList1.get(i).GetSendNum());\n\t\t}\n\t}",
"private void refreshNodeList() {\n if (UnderNet.router.status.equals(InterfaceStatus.STARTED)) {\n //Using connected and cached nodes if the router has started.\n ArrayList<Node> nodesToList = UnderNet.router.getConnectedNodes();\n for (Node cachedNode :\n EntryNodeCache.cachedNodes) {\n boolean canAdd = true;\n for (Node connectedNode : UnderNet.router.getConnectedNodes()) {\n if (cachedNode.getAddress().equals(connectedNode.getAddress())) {\n canAdd = false;\n }\n }\n if (canAdd) {\n nodesToList.add(cachedNode);\n }\n }\n nodeList.setListData(nodesToList.toArray());\n } else {\n //Using cached nodes if the router isn't online.\n nodeList.setListData(EntryNodeCache.cachedNodes.toArray());\n }\n }",
"private void fireNodeUpdatedEvent(Node node)\n {\n Iterator iterator = clients.keySet().iterator();\n while (iterator.hasNext())\n {\n String key = (String) iterator.next();\n\n ScriptSession asession = clients.get(key);\n Util utilAll = new Util(asession);\n logger.info(\"Setting value on :\" + node.getId() + \" to #\" + node.getNumberOfMessagesHandled().toString());\n utilAll.setValue(node.getId(), node.getNumberOfMessagesHandled().toString());\n Effect effect = new Effect(asession); //, duration: 15\n effect.highlight(node.getId(), \"{ duration: 2, queue: {position: 'end', scope: '\" + node.getId() + \"', limit:1}}\"); //\"{startcolor:'e6e6fa', queue: {position: 'end', scope: 'price', limit:1}}\");\n // highlight a row\n // effect.highlight(\"row_\" + node.getId(), \"{ duration: 1, queue: {position: 'end', scope: 'row_\" + node.getId() + \"', limit:1}}\"); //\"{startcolor:'e6e6fa', queue: {position: 'end', scope: 'price', limit:1}}\");\n }\n }",
"@Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n Message thismessage = dataSnapshot.getValue(Message.class);// This is to get Data of new Message\n // Here we Are storing data of Message in Our Similar Node\n messageAdapter.add(thismessage);\n // Here we are sending Our Messge To our Own Adapter.....And this will Display in our ListView\n }",
"private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }",
"public void refresh()\n\t{\n\t\tNode master = new Node(\"Tyler\");\n\t\t//master.add(new Node(\"Test\"));\n\t\tmaster.addParent(new Node(\"Clinton\"));\n\t\tmaster.addParent(new Node(\"Terry\"));\n\t\t\n\t\tmaster.add(\"Justin\", \"Terry\"); \n\t\tmaster.add(\"Justin\", \"Clinton\"); \n\t\t//this adds directly under Terry\n\t\t//maybe do this differently...\n\t\t\n\t\t\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"Diana\"));\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"George\"));\n\t\t\n\t\tmaster.add(new Node(\"Tyler 2.0\"));\n\t\tmaster.add(new Node(\"Tyler 3.0\"));\n\t\tmaster.add(new Node(\"Tyler Jr\"));\n\t\t\n\n\t\tmaster.add(\"Tyler Jr Jr\", \"Tyler 2.0\");\n\t\t\n\t\tmaster.add(\"Tyler 3.0\", \"Tyler Jr 2.0\");\n\t\t\n\t\tmaster.findNode(\"Clinton\").addParent(new Node(\"Eric\"));\n\t\tmaster.findNode(\"Eric\").addParent(new Node(\"Eric's Dad\"));\n\t\t\n\t\t\n\t\tmaster.findNode(\"Tyler Jr Jr\", 6).add(new Node(\"Mini Tyler\"));\n\t\t//master.findNode(\"Clinton\", 2).add(new Node(\"Justin\"));\n\t\t\n\t\t\n\t\tmaster.getParent().get(0).findNode(\"Justin\", 3).add(new Node(\"Mini Justin\"));\n\t\t\n\t\tmaster.add(new Node(\"Laptop\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Keyboard\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Mouse\"));\n\t\t\n\t\tmaster.add(\"Touchpad\", \"Laptop\");\n\t\t//master.add(\"Justin\", \"Eric\");\n\t\t\n\t\tmaster.add(\"Hunger\", \"Tyler\");\n\t\t\n\t\tselectedNode = master;\n\t\tselect(selectedNode);\n\t}",
"public short getNextNodeID() {\n\t\treturn nodeIdCounter++;\n\t}",
"@Override\n\tpublic void updateNode(JsonObject jsonData) {\n\t\t\n\t}",
"public void retrievedDataNumberInfo(INode node) {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_10);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_11);\n stringBuffer.append(cid);\n stringBuffer.append(TEXT_12);\n \n\t\t\t}\n\t\t}",
"public void updateFirstNode()\n {\n firstNode = (lastNode.getNext() == null) ? lastNode : lastNode.getNext();\n }",
"void push(int new_data) {\n\t\t// allocate node and assign data\n\t\tListNode new_node = new ListNode(new_data);\n\n\t\t// link the old list off the new node\n\t\tnew_node.next = head;\n\n\t\t// move the head to point to the new node\n\t\thead = new_node;\n\t}",
"public void readMessagingNodesList() {\n\t\tiStream = new ByteArrayInputStream(marshalledBytes);\t\n\t\tdin = new DataInputStream(new BufferedInputStream(iStream));\n\t\ttry {\n\t\t\tint totalCr = din.readInt();\n\t\t\tint nNeededConnections = din.readInt();\n\t\t\tint listByteLength = din.readInt();\n\t\t\tbyte[] listBytes = new byte[listByteLength];\n\t\t\tdin.readFully(listBytes);\n\n\t\t\tMessagingNodesList newList = new MessagingNodesList();\n\t\t\t//Unmarshall object of Messaging Nodes in list\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(listBytes);\n\t\t\tDataInputStream dis = new DataInputStream(bis);\n\n\t\t\tint nLength, nLPort; byte[] nodeLinkBytes; String nIP;\n\t\t\tfor (int i=0; i< nNeededConnections; i++ ) {\n\t\t\t\tnLength = dis.readInt();\n\t\t\t\tnodeLinkBytes = new byte[nLength];\n\t\t\t\tdis.readFully(nodeLinkBytes);\n\t\t\t\tnIP= new String(nodeLinkBytes);\n\t\t\t\tnLPort = dis.readInt();\n\t\t\t\tnewList.addNode(nIP, nLPort);\n\t\t\t}\n\t\t\tiStream.close(); din.close();\n\t\t\t\n\t\t\tnode.setMessagingNodesList(newList,totalCr);\n\t\t\tnode.setPeerNumber(totalCr+node.getNumberNeededPeers());\n\t\t\tif(node.getNumberNeededPeers() ==0 ) System.out.println(\"All connections are established. Number of connections: \"+(node.getCurrentMessagingNodesList().getSize()));\n\n\t\t\t// Creating a registration message for each node in the messagingNodesList\n\t\t\tfor(int i=0; i<node.getFutureMessagingNodesList().getSize(); i++) {\n\t\t\t\tMessage message = new RegisterMessage(node.ipAddr, node.portNum);\n\t\t\t\tString friendIP = node.getFutureMessagingNodesList().getNodeAtIndex(i).ipAddress;\n\t\t\t\tint friendPort = node.getFutureMessagingNodesList().getNodeAtIndex(i).port;\n\n\t\t\t\t// Creating a socket that connects directly to the registry.\n\t\t\t\tSocket senderSocket = new Socket(friendIP, friendPort );\n\t\t\t\tnode.getConnections().addConnection(friendIP, senderSocket);\n\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t}\n\t\t} catch (IOException e) {System.out.println(\"Failed to read message. \"); }\n\t}",
"public OSMNode lastNode() {\n return nodes.get(nodes.size() - 1);\n }",
"entities.Torrent.NodeId getNode();",
"entities.Torrent.NodeId getNode();",
"public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}",
"private synchronized void processNews() throws ClientProtocolException,\n\t\t\t\tIOException, JSONException {\n\n\t\t\tlong lastTime = mAdapter.getItem(mCount - 1).date;\n\t\t\tlong startTime = lastTime - Utils.MONTH;\n\n\t\t\tsetNews(ApiHandler.getData(lastTime, startTime));\n\t\t\tmHandler.sendEmptyMessage(UPDATE_LIST);\n\t\t}",
"public void queue(String newData) {\r\n\t\tNode newNode = new Node(newData); //Initializes a new node with the inputed data\r\n\t\tnewNode.next = null; //Next node is null because the new node ends up being the tail\r\n\t\tif (head == null) { //If there is no head yet, the list is empty. Make the new node as the head of the list and return\r\n\t\t\tnewNode.prev = null;\r\n\t\t\thead = newNode;\r\n\t\t\thead.next = tail;\r\n\t\t\ttail = head; //When the head is the only node, it is also the tail which loops back to itself\r\n\t\t\ttail.prev = head;\r\n\t\t\ttail.next = head;\r\n\t\t\thead.index = 1;\r\n\t\t\tsize++;\r\n\t\t\tprintQueue();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tNode current = head; //Instantiated node to cycle through the list\r\n\r\n\t\tif(current.next == tail) current.index++;\r\n\t\t\r\n\t\tfor(int i = 1; i < size; i++) { //A loop to get to the end of the the list (the tail)\r\n\t\t\tcurrent.index++;\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\r\n\t\tnewNode.index = 1;\r\n\t\tcurrent.next = newNode; //When the current node is at the end, its next node will be the new one\r\n\t\tnewNode.prev = current; //Link the previous node of the new node to be the instantiated one (the previous tail)\r\n\t\tnewNode.next = head;\r\n\t\ttail = newNode;\r\n\t\tif(newNode.prev != head) newNode.prev.index++; //For some reason the tail of the list did not increment after queue. This fixes that\r\n\t\tsize++;\r\n\t\tprintQueue();\r\n\r\n\t}",
"void refreshNodeHostCount(int nodeHostCount);",
"void append(String new_data) {\n // 1. allocate node \n // 2. put in the data \n Node new_node = new Node(new_data);\n\n Node last = head;\n // used in step 5\n\n // 3. This new node is going to be the last node, so\n // make next of it as NULL\n new_node.next = null;\n\n // 4. If the Linked List is empty, then make the new\n // node as head \n if (head == null) {\n new_node.prev = null;\n head = new_node;\n return;\n }\n\n // 5. Else traverse till the last node \n while (last.next != null) {\n last = last.next;\n }\n\n // 6. Change the next of last node \n last.next = new_node;\n\n // 7. Make last node as previous of new node \n new_node.prev = last;\n }",
"void reportProgress(List<Node> update);",
"void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }",
"public abstract void fetchNodes(NodeCallback callback);",
"void push(int new_Data)\n {\n Node new_Node = new Node(new_Data); /* allocate node */\n \n // if head is null, head = new_Node\n if(head==null){\n head = new_Node;\n return;\n }\n \n /* link the old list off the new node */\n new_Node.next = head;\n \n /* change prev of head node to new node */\n head.prev = new_Node;\n \n /* since we are adding at the begining, prev is always NULL */\n new_Node.prev = null;\n \n /* move the head to point to the new node */\n head = new_Node;\n }",
"public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\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 node (int newData, node newNext){\r\n\t this.data = newData;\r\n\t this.next = newNext;\r\n\t}",
"public void readTaskComplete() {\n\t\tnode.incrementNodesCompleted();\n\t\tif(node.getNodesCompleted() ==node.getCurrentMessagingNodesList().getSize()) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"going to sleep\");\n\t\t\t\tThread.sleep(1000*15);\n\t\t\t\tfor(NodeLink n : node.getCurrentMessagingNodesList().getList()) {\n\t\t\t\t\tMessage message = new PullTrafficRequest();\t\t\t\t\n\t\t\t\t\tSocket senderSocket = node.getConnections().getSocketWithName(n.ipAddress);\n\t\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t\t}\n\t\t\t} catch (IOException e) {e.printStackTrace();\n\t\t\t} catch (InterruptedException e) {e.printStackTrace();}\n\t\t}\n\t}",
"@Override\n public String getNodeId() throws IOException {\n return getFirstLineOfFile(nodeIdPath);\n }",
"public void display() {\r\n\t\tNode curr = new Node();\r\n\t\tcurr = head;\r\n\t\tString Output = \"Here is the linked list from the head node till the end\";\r\n\t\twhile (curr != null) {\r\n\t\t\tOutput += \"\\n\" + curr.num + \", \" + curr.str;\r\n\t\t\tcurr = curr.next;\r\n\t\t}\r\n\t\tSystem.out.print(Output);\r\n\t}",
"public void push(int data){\n Node new_node = new Node(data);\n new_node.next = head;\n if(head != null){\n head.prev = new_node;\n }\n this.head = new_node;\n System.out.println(\"Node Added !\");\n this.print_list();\n return;\n }",
"public static void saveCurrentNode() {\r\n TreeElement node = TreePanel.getSelectedNode();\r\n if (node != null) {\r\n node.updateDataFromEditor(); // it should update from editor\r\n }\r\n }",
"private void loadLastMessage(ModelGroupChatList modelGroupChatList, final HolderGroupChatList holder) {\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Groups\");\n ref.child(modelGroupChatList.getGroupId()).child(\"messages\").limitToLast(1)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n for(DataSnapshot ds : snapshot.getChildren()){\n String message = \"\"+ds.child(\"message\").getValue();\n String timestamp = \"\"+ds.child(\"timestamp\").getValue();\n String sender = \"\"+ds.child(\"sender\").getValue();\n String messageType = \"\"+ds.child(\"type\").getValue();\n\n\n //Convert time\n Calendar calendar = Calendar.getInstance(Locale.ENGLISH);\n calendar.setTimeInMillis(Long.parseLong(timestamp));\n String dateTime = DateFormat.format(\"dd/MMM/yyyy hh:mm aa\", calendar).toString();\n\n\n if(messageType.equals(\"image\")){\n holder.messageTv.setText(\"Sent photo...\");\n } else {\n holder.messageTv.setText(message);\n }\n holder.timeTv.setText(dateTime);\n\n //get into sender of last message\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"Users\");\n ref.orderByChild(\"uid\").equalTo(sender)\n .addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot snapshot) {\n for(DataSnapshot ds : snapshot.getChildren()) {\n String name = \"\"+ds.child(\"name\").getValue();\n holder.nameTv.setText(name);\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n\n }\n });\n }",
"public void valueChanged(TreeSelectionEvent e) \r\n {\r\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)\r\n tree.getLastSelectedPathComponent();\r\n\r\n if (node == null) return;\r\n\r\n Object nodeInfo = node.getUserObject();\r\n Chat_TreeNode TreeNode;\r\n TreeNode=(Chat_TreeNode)nodeInfo;\r\n //Currently just displays node name,need to display description\r\n description.setDescription(TreeNode.getDesc());\r\n \r\n if (node.isLeaf()) \r\n {\r\n ChatID=TreeNode.toString();\r\n }\r\n else\r\n {\r\n \tChatID=\"\";\r\n \t\r\n }\r\n }",
"public void displayNode() // display ourself\n\t{\n\t\tSystem.out.print('{');\n\t\tSystem.out.print(iData);\n\t\t\n\t\tSystem.out.print(\"} \");\n\t}",
"public void show() {\n\n\t\tNode n = head;\n\t\twhile (n.next != null) {\n\t\t\t//logger.info(n.data);\n\t\t\tn = n.next;\n\t\t}\n\t\t//logger.info(n.data);\n\n\t}",
"public void nodeAdded(GraphEvent e);",
"void setLast(Node node) {\n this.last = node;\n }",
"Node<UnderlyingData> getCurrentLineNode();",
"public void counter(Topology tp, Node node)\n {\n index[x] = node.getID();\n x++;\n if (x > 1)\n {\n addlink(tp);\n }\n }",
"public Id addNodeRint(Coordinate coordIn){//adds a node to the list, returns ID instead of node\n\t\tint i;\n\t\tfloat inx = coordIn.getX();\n\t\tfloat iny = coordIn.getY();\n\t\tfloat inz = coordIn.getZ();\n\t\tNode n = null;\n\t\tfor(i = 0; i < listOfNodes.size(); i++){\n\t\t\tn = listOfNodes.get(i);\n\t\t\tif(n==null) continue;\n\t\t\tfloat ox = n.getCoordinate().getX();\n\t\t\tfloat oy = n.getCoordinate().getY();\n\t\t\tfloat oz = n.getCoordinate().getZ();\n\t\t\tif(inx <= ox + 0.01f && inx >= ox - 0.01f && iny <= oy + 0.01f && iny >= oy - 0.01f && inz <= oz + 0.01f && inz >= oz - 0.01f)break;\n\t\t}\n\t\tif(i < listOfNodes.size()){ // found duplicate\n\t\t\treturn n.getId();\n\t\t}\n\t\tnode_count++;\n\t\tfor(; node_arrayfirstopen < node_arraysize && listOfNodes.get(node_arrayfirstopen) != null; node_arrayfirstopen++);\n\t\tif(node_arrayfirstopen >= node_arraysize){\t//resize\n\t\t\tnode_arraysize = node_arrayfirstopen+1;\n\t\t\tlistOfNodes.ensureCapacity(node_arraysize);\n\t\t\tlistOfNodes.setSize(node_arraysize);\n\t\t}\n\t\tId nid = new Id(node_arrayfirstopen, node_count);\n\t\tn = new Node(coordIn, nid);\n\t\tlistOfNodes.set(node_arrayfirstopen, n);\n\t\tupdateAABBGrow(n.getCoordinate());\n\t\t\n\t\tif(node_arraylasttaken < node_arrayfirstopen) node_arraylasttaken = node_arrayfirstopen; //todo redo\n\t\treturn nid;\n\t}",
"static\nNode getNode(\nint\ndata) \n\n{ \n\n// allocate node \n\nNode newNode = \nnew\nNode(); \n\n\n// put in the data \n\nnewNode.data = data; \n\nnewNode.prev = newNode.next = \nnull\n; \n\nreturn\nnewNode; \n\n\n}",
"private void ListDatei () {\n\n DateiMemoDbSource dateiMemoDbSource = new DateiMemoDbSource();\n\n List<DateiMemo> dateiMemoList= dateiMemoDbSource.getAllDateiMemos();\n Log.d(LOG_TAG,\"=============================================================\");\n\n for (int j = 0; j < dateiMemoList.size(); j++){\n String output = \"Node_ID: \"+ dateiMemoList.get(j).getUid() +\n //\"\\n Status: \"+ dateiMemoList.get(j).isChecked() +\n \"\\n Corner Top Right X: \"+ dateiMemoList.get(j).getCornerTopRightX() +\n \"\\n Corner Top Right Y: \"+ dateiMemoList.get(j).getCornerTopRightY() +\n \"\\n Corner Top Left X: \"+ dateiMemoList.get(j).getCornerTopLeftX() +\n \"\\n Corner Top Left Y: \"+ dateiMemoList.get(j).getCornerTopLeftY() +\n \"\\n Corner Bottom Right X: \"+ dateiMemoList.get(j).getCornerBottomRightX() +\n \"\\n Corner Bottom Right Y: \"+ dateiMemoList.get(j).getCornerBottomRightY() +\n \"\\n Corner Bottom Left X: \"+ dateiMemoList.get(j).getCornerBottomLeftX() +\n \"\\n Corner Bottom Left Y: \"+ dateiMemoList.get(j).getCornerBottomLeftY() +\n \"\\n Punkt X: \"+ dateiMemoList.get(j).getPunktX() +\n \"\\n Punkt Y: \"+ dateiMemoList.get(j).getPunktY() +\n \"\\n IP: \"+ dateiMemoList.get(j).getIP() +\n \"\\n Count Peers: \"+ dateiMemoList.get(j).getCountPeers() ;\n\n\n Log.d(LOG_TAG, output);\n\n\n }\n Log.d(LOG_TAG,\"=============================================================\");\n }",
"@Override\n public String toString(){\n return \"the node has: \" + children.size()\n + \" the counter is \" + counter; \n }",
"public void queueAtFront(String newData) {\r\n\t\tNode newNode = new Node(newData); //New node with inputed value\r\n\t\tNode currentHead = head; //Copied head node to be used when reassigning head's next node\r\n\t\t\r\n\t\tnewNode.prev = tail;\r\n\t\tnewNode.index = head.index + 1;\r\n\t\thead = newNode; //New node becomes the head\r\n\t\thead.next = currentHead; //Head's next node becomes previous head\r\n\t\tsize++;\r\n\t\tprintQueue();\r\n\t}",
"public void UpNumberOfVisitedNodes() {\n NumberOfVisitedNodes++;\n }",
"protected void submitNewNode(NNode node) {\n\t\tNNode newnode = new NNode(node);\n\t\tnodes.put(newnode.ID, newnode);\n\t}",
"public int getNodeID() {\n return nodeID;\n }",
"public void push(int new_data) \r\n\t\t{ \r\n\t\t Node new_node = new Node(new_data); \r\n\t\t new_node.next = head; \r\n\t\t head = new_node; \r\n\t\t}",
"public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}",
"public void writeNode() throws IOException {\n // seek to end of file\n file.seek(offset);\n // write offset data\n file.writeLong(offset);\n // write numKeys data\n file.writeLong(numKeys);\n // write children offset\n for (int i = 0; i < children.length; i++){\n file.writeLong(children[i]);\n }\n // write key data\n for (int i = 0; i < keys.length; i++){\n if (keys[i] == null){\n file.writeLong(-1);\n file.writeInt(0);\n }\n else{\n file.writeLong(keys[i].getKey());\n file.writeInt(keys[i].getFrequency());\n }\n }\n\n //The node has been updated -- move it to the front of the cache\n if (cache != null){\n cache.addObject(this);\n }\n\n\n }",
"int getNext(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 2);\n\t}",
"void main(String[] args) throws IOException {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Server().setVisible(true);\n }\n });\n\t\t\n\t\tServerSocket ss=new ServerSocket(1234);\n\t\tSocket s;\n<<<<<<< HEAD\n \t\t\n=======\n \n\t\t\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\twhile(true) {\n\t\t\ts=ss.accept();\n\t\t\tSystem.out.println(\"New client request received \"+s );\n\t\t\t\n\t\t\tDataInputStream dis=new DataInputStream(s.getInputStream());\n\t\t\tDataOutputStream dos=new DataOutputStream(s.getOutputStream());\n\t\t\tString name=dis.readUTF();\n\t\t\t\n\t\t\tSystem.out.println(\"creating a new handler for this client..\");\n\t\t\t\n\t\t\tClientHandler mtch=new ClientHandler(s,name,dis,dos);\n\t\t\t\n\t\t\tThread t=new Thread(mtch);\n \n //print to server textArea\n<<<<<<< HEAD\n //msg_area.setText(msg_area.getText().trim()+\" \"+name+ \" Added to Server\\n\");\n\t\t\t\n \t\t\tSystem.out.println(\"Adding this client to active client list\");\n \n Activity.setText(Activity.getText().trim()+\"\\n\"+\"New Client:\"+name+\" is Connected\");\n Active.setText(Active.getText().trim()+\"\\n\"+ClientCount+\".\"+name);\n=======\n msg_area.setText(msg_area.getText().trim()+\" \"+name+ \" Added to Server\\n\");\n\t\t\t\n \t\t\tSystem.out.println(\"Adding this client to active client list\");\n \n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n \n\t\t\t\n\t\t\tar.add(mtch);\n \n<<<<<<< HEAD\n // Client.Refresh(ar);\n \n \n=======\n Active.addElement(name);\n \n final JList<String> ActiveList = new JList<>(Active); \n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\t\t\n\t\t\tt.start();\n\t\t\t\n\t\t\tClientCount++;\n<<<<<<< HEAD\n \n \n=======\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t}\n\t}\n \n\t\n\n//}\n\n \n \n \n ///end my code\n \n \n \n \n// public static void main(String args[]) {\n// /* Set the Nimbus look and feel */\n// //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n// /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n// * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n// */\n// try {\n// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n// if (\"Nimbus\".equals(info.getName())) {\n// javax.swing.UIManager.setLookAndFeel(info.getClassName());\n// break;\n// }\n// }\n// } catch (ClassNotFoundException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (InstantiationException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (IllegalAccessException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// }\n// //</editor-fold>\n//\n// /* Create and display the form */\n// java.awt.EventQueue.invokeLater(new Runnable() {\n// public void run() {\n// new Server().setVisible(true);\n// }\n// });\n// }\n\n // Variables declaration - do not modify//GEN-BEGIN:variables\n<<<<<<< HEAD\n private static javax.swing.JTextArea Active;\n private static javax.swing.JTextArea Activity;\n private javax.swing.JScrollPane jScrollPane1;\n private javax.swing.JScrollPane jScrollPane2;\n private javax.swing.JTextField jTextField1;\n=======\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n private static javax.swing.JTextField msg_area;\n // End of variables declaration//GEN-END:variables\n}\n\n///client handler code start\nclass ClientHandler implements Runnable{\n\t \n\t Scanner scn=new Scanner(System.in);\n<<<<<<< HEAD\n\t String name;\n=======\n\t private String name;\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t private DataInputStream dis;\n\t private DataOutputStream dos;\n\t Socket s;\n\t boolean isloggedin;\n\t \n\t public ClientHandler(Socket s, String name,DataInputStream dis,DataOutputStream dos) {\n\t\t \n\t\t this.dis=dis;\n\t\t this.name=name;\n\t\t this.dos=dos;\n\t\t this.isloggedin=true;\n \n\t\t \n\t }\n\n\t@Override\n\tpublic void run() {\n\t\tString received;\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\treceived=dis.readUTF();\n \n\t\t\t\tSystem.out.println(received+\" server\");\n\t\t\t\tif(received.contentEquals(\"logout\")) {\n\t\t\t\t\tthis.isloggedin=false;\n\t\t\t\t\tthis.dis.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//break message to message vs recepient\n\t\t\t\tStringTokenizer st=new StringTokenizer(received,\"#\");\n\t\t\t\tString MsgToSend=st.nextToken();\n\t\t\t\tString recepient=st.nextToken();\n\t\t\t\t\n\t\t\t\t//search recepient in active list\n\t\t\t\t\n\t\t\t\tfor(ClientHandler mc:Server.ar) {\n\t\t\t\t\tif(mc.name.contentEquals(recepient) && mc.isloggedin==true) {\n\t\t\t\t\t\tmc.dos.writeUTF(this.name+ \" : \" + MsgToSend+'\\n');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \n \n \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tthis.dis.close();\n\t\t\tthis.dos.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n\t\n}\n\n///client handler code end",
"private void sendPreviousMessagesToClient() throws IOException {\n String previousMessages = messagesManager.toString(); // Gets the contents of the queue containing the last 15 messages\n outputFromServer.println(previousMessages); // Sends a message to client\n }",
"@Override\n\tprotected void treeContentChanged ( ) {\n\n\t\tSubTypingProofNode rootNode = ( SubTypingProofNode ) this.proofModel.getRoot ( );\n\n\t\t// initiate the index\n\t\tthis.index = 1;\n\t\tcheckForUserObject ( rootNode );\n\t\trelayout ( );\n\n\t}",
"@Override\n\tpublic synchronized void run() {\n\t\tif ((infoMessage.getStoredValue() > node.getLeaderValue())\n\t\t\t\t|| ((infoMessage.getStoredValue() == node.getStoredValue())\n\t\t\t\t\t\t&& (infoMessage.getLeaderId() > node.getLeaderID()))) {\n\n\t\t\tnode.setLeaderID(infoMessage.getLeaderId());\n\t\t\tnode.setLeaderValue(infoMessage.getStoredValue());\n\t\t\tnode.setStoredId(node.getNodeID());\n\t\t\tnode.setStoredValue(node.getNodeValue());\n\t\t\tSystem.out.println(\"INFO HANDLER: 1) Leader changed in Node \" + node.getNodeID() + \" to: \"\n\t\t\t\t\t+ node.getLeaderID() + \" due to exchanging messages with \" + infoMessage.getIncomingId());\n\n\t\t\t// End to Exchanging Leaders Timer && Processing\n\t\t\tnode.networkEvaluation.setEndExchangingLeadersTimer(infoMessage.getIncomingId());\n\t\t\tnode.networkEvaluation.getExchangingLeaderTimer(infoMessage.getIncomingId());\n\n\t\t\t// Metric 3 - Without Leader Timer\n\t\t\tnode.networkEvaluation.setEndWithoutLeaderTimer();\n\t\t\tnode.networkEvaluation.getWithoutLeaderTimer();\n\n\t\t\t// send \"special \"Leader message to all neighbours except one that passed the\n\t\t\t// info to me\n\t\t\tIterator<Integer> i = node.getNeighbors().iterator();\n\n\t\t\tHashSet<Integer> toSend = new HashSet<Integer>();\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tInteger temp = i.next();\n\t\t\t\tif (temp != infoMessage.getIncomingId()) {\n\t\t\t\t\ttoSend.add(temp);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If I have no neighbours except node I exchanged info messages with, no need\n\t\t\t// to send leader messages\n\t\t\tif (!(toSend.isEmpty())) {\n\n\t\t\t\tif (DEBUG)\n\t\t\t\t\tSystem.out.println(\"INFO HANDLER: 2) Sending special leader to all nodes.\");\n\n\t\t\t\tsendMessage(logic.MessageType.LEADER_SPECIAL, toSend);\n\t\t\t}\n\t\t\treturn;\n\n\t\t} else if ((infoMessage.getStoredValue() == node.getLeaderValue()) // Prevents infinite message passing\n\t\t\t\t&& (infoMessage.getLeaderId() == node.getLeaderID())) {\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"INFO HANDLER: 3) Same Leader! Agreement Reached.\");\n\n\t\t\t// End to Exchanging Leaders Timer && Processing\n\t\t\tnode.networkEvaluation.setEndExchangingLeadersTimer(infoMessage.getIncomingId());\n\t\t\tnode.networkEvaluation.getExchangingLeaderTimer(infoMessage.getIncomingId());\n\n\t\t\t// Metric 3 - Without Leader Timer\n\t\t\tnode.networkEvaluation.setEndWithoutLeaderTimer();\n\t\t\tnode.networkEvaluation.getWithoutLeaderTimer();\n\n\t\t\treturn;\n\t\t}\n\n\t\t// If not, send a message back saying that the other node should send the leader\n\t\t// message instead with my leader\n\t\telse {\n\n\t\t\tif (DEBUG)\n\t\t\t\tSystem.out.println(\"INFO HANDLER: 4) Sending back stronger leader.\\n-----------------------------\");\n\n\t\t\tsendMessage(logic.MessageType.INFO, infoMessage.getIncomingId());\n\n\t\t}\n\t}",
"public void update()\n {\n tick++;\n if (this.part != null)\n {\n for (UpdatedLabel label : dataLabels)\n {\n label.update();\n }\n int c = 0;\n for (Entry<MechanicalNode, ForgeDirection> entry : part.node.getConnections().entrySet())\n {\n if (entry.getKey() != null)\n {\n this.connections[c].setText(\"Connection\" + c + \": \" + entry.getKey());\n c++;\n }\n }\n for (int i = c; i < connections.length; i++)\n {\n this.connections[i].setText(\"Connection\" + i + \": NONE\");\n }\n }\n }",
"public Node getNewNode(){\n for (Node n:nodes) {\n if(n.isNewTag()){\n return n;\n }\n }\n return null;\n }",
"public it.grpc.tokenRing.Node getFollowingN() {\n if (followingNBuilder_ == null) {\n return followingN_ == null ? it.grpc.tokenRing.Node.getDefaultInstance() : followingN_;\n } else {\n return followingNBuilder_.getMessage();\n }\n }",
"public int getNodeID() {\r\n \t\treturn nodeID;\r\n \t}",
"public String getLast() {\n if(first == null) return null;\n int i = 0;\n Node x = first;\n for(x = first; i < n - 1; x = x.next) {\n i++;\n }\n return x.data;\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}",
"public void update() {\n\t\tif (this.block.getValue() != 0) {\n\t\t\tthis.displayNumberBlock.removeAll();\n\t\t\tthis.displayNumberBlock.setLayout(new GridLayout(1,1));\n\t\t\tthis.label = new JLabel(\"\" + this.block.getValue(), SwingConstants.CENTER);\n\t\t\tthis.label.setFont(new Font(\"Serif\", Font.PLAIN, 25));\n\t\t\tthis.displayNumberBlock.add(this.label, BorderLayout.CENTER);\n\t\t\t\n\t\t\tthis.displayNumberBlock.revalidate();\n\t\t} else {\n\t\t\tthis.displayNumberBlock.removeAll();\n\t\t\tthis.displayNumberBlock.setLayout(new GridLayout(3,3));\n\t\t\t\n\t\t\tfor(int i = 0; i < SudokuPanel.gameSize; i++){\n\t\t\t\tString temp = \"\";\n\t\t\t\tif(this.getBlock().getNotes()[i]){\n\t\t\t\t\ttemp = \"\" + (i+1);\n\t\t\t\t}\n\t\t\t\tJLabel tempLabel = new JLabel(temp);\n\t\t\t\ttempLabel.setFont(new Font(\"Serif\", Font.PLAIN, 10));\n\t\t\t\tthis.displayNumberBlock.add(tempLabel);\n\t\t\t}\n\t\t\tthis.displayNumberBlock.revalidate();\n\t\t}\n\t}",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"void btnAddDelivery(Node node, Node previousDeliveryNode, TimeSlot timeSlot);",
"void newNode(int nodeId) {\n window.newNode(nodeId);\n }",
"public Node(int data) { // Just data in constructor would suffice, clients wont pass next anyways\n this.data = data;\n }",
"public String toString(){\n return \"Node: \" + data;\n }",
"void add(Member node, long now);",
"public int Node() { return this.Node; }",
"private void informUserOfGraphStats(CyNetwork newNetwork) {\n\t\tNumberFormat formatter = new DecimalFormat(\"#,###,###\");\n\t\tStringBuffer sb = new StringBuffer();\n\n\t\t// Give the user some confirmation\n\t\tsb.append(\"Succesfully loaded network from: \" + file.getName());\n\t\tsb.append(\"\\n\\nNetwork contains \"\n\t\t\t\t+ formatter.format(newNetwork.getNodeCount()));\n\t\tsb.append(\" nodes and \" + formatter.format(newNetwork.getEdgeCount()));\n\t\tsb.append(\" edges.\\n\\n\");\n\n\t\tif (newNetwork.getNodeCount() < Integer.parseInt(CytoscapeInit.getProperties().getProperty( \"viewThreshold\" ))) {\n\t\t\tsb.append(\"Network is under \" + CytoscapeInit.getProperties().getProperty( \"viewThreshold\" )\n\t\t\t\t\t+ \" nodes. A view will be automatically created.\");\n\t\t} else {\n\t\t\tsb.append(\"Network is over \" + CytoscapeInit.getProperties().getProperty( \"viewThreshold\" )\n\t\t\t\t\t+ \" nodes. A view has not been created.\"\n\t\t\t\t\t+ \" If you wish to view this network, use \"\n\t\t\t\t\t+ \"\\\"Create View\\\" from the \\\"Edit\\\" menu.\");\n\t\t}\n\t\ttaskMonitor.setStatus(sb.toString());\n\t}",
"public void addNodeAfterThis( int newdata ) {\r\n\t\tlink = new IntNode( newdata, link );\r\n\t}",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"private String getUniqueNodeName() {\n return String.format(\"N%d\", uniqueNode++);\n }",
"@Override\r\n public void nodeActivity() {\n }",
"public void updateList() \n { \n model.clear();\n for(int i = ScholarshipTask.repository.data.size() - 1; i >= 0; i--) \n {\n model.addElement(ScholarshipTask.repository.data.get(i));\n }\n }",
"private static String updateNodes(HashMap<String, Node> nodes, HashMap<String, String[]> update) {\n int count = 0;\n StringBuilder sb = new StringBuilder();\n for (String key : nodes.keySet()) {\n if (update.containsKey(key)) {\n count++;\n String[] updt = update.get(key);\n NodeList childs = nodes.get(key).getChildNodes();\n for (int i = 0; i < childs.getLength(); i++) {\n String nodeName = childs.item(i).getNodeName();\n switch (nodeName) {\n case \"price\":\n childs.item(i).setTextContent(updt[0]);\n break;\n case \"quantity\":\n childs.item(i).setTextContent(updt[1]);\n break;\n case \"status\":\n childs.item(i).setTextContent(updt[2]);\n break;\n case \"novelty\":\n childs.item(i).setTextContent(updt[3]);\n break;\n case \"priority\":\n childs.item(i).setTextContent(updt[4]);\n break;\n default:\n break;\n }\n }\n update.remove(key);\n } else if (key.length() > 4) {\n if (sb.length() == 0) sb.append(\"*** В исходниках есть, в остатках отсутствуют: \");\n sb.append(key);\n sb.append(\", \");\n }\n }\n if (sb.length() > 2) sb.delete(sb.length() - 2, sb.length());\n sb.append(\"\\n*** В остатках есть, в исходниках отсутствуют: \");\n for (String key : update.keySet()) {\n if (key.length() > 4) {\n sb.append(key);\n sb.append(\", \");\n }\n }\n sb.delete(sb.length() - 2, sb.length());\n sb.append(\"\\nЧисло обновленных записей: \");\n sb.append(count);\n return sb.toString();\n }",
"void display(){\r\n\t\t if(start==null){\r\n\t\t\t System.out.println(\"linklist is empty\");\r\n\t\t\t }\r\n\t\telse{\r\n\t\t\tnode temp=start;\r\n\t\t\twhile(temp!=null){\r\n\t\t\t\tSystem.out.println(temp.data);\r\n\t\t\t\ttemp=temp.next;\r\n\t\t\t\t}//end of while\r\n\t\t\t}//end of else statement\r\n\r\n\t\t }"
]
| [
"0.5798877",
"0.5789604",
"0.57347465",
"0.5660482",
"0.5638694",
"0.5631223",
"0.56028664",
"0.54930776",
"0.5480183",
"0.543423",
"0.54206187",
"0.5402811",
"0.53869116",
"0.5373897",
"0.5366637",
"0.5353528",
"0.5319154",
"0.52913874",
"0.527479",
"0.5256183",
"0.5242073",
"0.5231757",
"0.5224534",
"0.5194147",
"0.5175255",
"0.5173696",
"0.5166531",
"0.5140195",
"0.51401293",
"0.5125534",
"0.51112497",
"0.51112026",
"0.511001",
"0.51019317",
"0.50919765",
"0.50898135",
"0.50898135",
"0.506678",
"0.50632155",
"0.50604033",
"0.5049315",
"0.5039984",
"0.50393325",
"0.503701",
"0.5031942",
"0.5026303",
"0.50133544",
"0.50076187",
"0.5005855",
"0.49895042",
"0.4980615",
"0.49745268",
"0.49550748",
"0.49319175",
"0.49307272",
"0.49266976",
"0.49255407",
"0.4924547",
"0.49231145",
"0.49152324",
"0.49102736",
"0.4909943",
"0.489361",
"0.48899257",
"0.48877472",
"0.48838636",
"0.4881837",
"0.48808485",
"0.48771048",
"0.48770767",
"0.48753884",
"0.4865922",
"0.48655114",
"0.48642367",
"0.48626465",
"0.48554814",
"0.48545662",
"0.48537493",
"0.48503596",
"0.4848769",
"0.4846106",
"0.48439056",
"0.48403916",
"0.48374245",
"0.48307067",
"0.4824173",
"0.4819041",
"0.4818665",
"0.4815109",
"0.481337",
"0.481065",
"0.48103508",
"0.48081997",
"0.48062065",
"0.48060116",
"0.48032993",
"0.4792801",
"0.479134",
"0.4787378",
"0.47871092"
]
| 0.51255685 | 29 |
just adds the node to the displayed nodes. | @Override
protected void updateGameState(JsonObject move) {
String id = move.get("id").getAsString();
BinaryTreeNode nodeAtID = tree.getNodeById(id);
this.displayedNodes.add(nodeAtID);
// make a new target number
this.currDisplayedNumber = this.chooseValueFromTree();
this.score += this.calculateScore("");
// reset this to 0 when a correct node is found
this.wrongClicks = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addNode(NodeImpl node) {\n supervisedNodes.add(node);\n \n colorNodes();\n shortenNodeLabels();\n colorNodeLabels();\n colorNodeLabelBorders();\n }",
"private void addNode() {\n // Add GUI node\n int nodeCount = mGraph.getNodeCount();\n Node node = mGraph.addNode(String.valueOf(nodeCount));\n node.addAttribute(\"ui.label\", nodeCount);\n\n // Add Node_GUI node for algorithm to read from\n Node_GUI listNode = new Node_GUI();\n mNodeList.add(listNode);\n }",
"void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }",
"@Override\n public void visit(Node node) {\n nodes.add(node);\n }",
"public void addNode(Node node){subNodes.add(node);}",
"private void renderNode(Node n) {\n root.getChildren().add(n);\n }",
"public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }",
"public void addToPane(Node node) {\n pane.getChildren().add(node);\n }",
"public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }",
"private void addNode(NeuralNode node) {\r\n\t\tinnerNodes.add(node);\r\n\t}",
"protected void addingNode( SearchNode n ) { }",
"public void add(DefaultGraphCell node) {\n nodes.add(node);\n groupObject.add(node);\n fragmentName.append(((NodeData)node.getUserObject()).getName() + \" \");\n \n }",
"void addNode(Node n) {\n nodes.put(n.id, n);\n }",
"private void addNode(Node node)\n\t{\n\t\tif (node == null)\n\t\t\treturn;\n\t\tthis.nodes[node.getRowIndex()][node.getColumnIndex()] = node;\n\t}",
"public Node appendNode(Node node);",
"public void add(Node node) {\n if (node.getId() != null) {\n if (node.getId().equals(\"DestructibleBlock\")) {\n staticElements.add(node);\n destructibleBlocks.add((DestructibleBlock) node);\n }\n if (node.getId().equals(\"IndestructibleBlock\")) {\n staticElements.add(node);\n }\n }\n fieldPane.getChildren().add(node);\n }",
"public void addNode(Node node) {\n\t\tnodes.add(node);\n\t}",
"public void addNode(Node p_node) {\n\t\tnodes.add(p_node);\n\t}",
"public void addNode(Node node) {\n\t\tthis.nodes.add(node);\n\t}",
"public void addNodeToParentNode(Node node) throws NoParentNodeException, NoSelectedNodeException {\n\n\t\t//Update the swing view first because it will send the needed exceptions\n\t\tesv.addNodeToParentNode(node);\n\n\t\t//Update internal representation of tree\n\t\tFolder parent = (Folder)this.selectedNode.getParent();\n\t\tparent.addChild(node);\n\t\tnode.setParent(parent);\n\n\t\t//Update lastInserted HashMap\n\t\tthis.lastInsertedNodes.clear();\n\t\tthis.lastInsertedNodes.put(0, node);\n\t}",
"private void add_node(Node node) {\n if (this.nodes.get(node.name) != null) {\n throw new RuntimeException(\"Node \" + node.name + \" already exists!\");\n }\n this.nodes.put(node.name, node);\n this.bars.put(node.name, new TreeMap<String, Bar>());\n }",
"void addNode(int node);",
"void addNode(String node);",
"public void addNodeToTheObjects(Node theNode) {\r\n getTheObjects().add(theNode);\r\n }",
"public void addNode(INode node) {\r\n\t\tnodeList.add(node);\r\n\t}",
"void addNode(Entity entity) {\n\t\tProcessing.nodeSet.add(entity);\n\t\tSystem.out.println(\"the entity was successfully added to the network.\");\n\t}",
"@Override\n\tpublic void insert(Node node) {\n\t\tchildren.add(node);\n\t}",
"public void add(Node<T> n){\n\t\tconnect.add(n);\n\t}",
"public void addNode(GraphNode<T> node) {\n\tmRoot.addNode(node);\n\tmNodesCount++;\n }",
"@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}",
"public void addChild(Node node){\n children.add(node);\n \n }",
"public abstract void addChild(Node node);",
"public static void add() {\n\t\trender();\n\t}",
"public void addChild(WSLNode node) {children.addElement(node);}",
"void append(SNode node);",
"public void addNodeToSelectedNode(Node node) throws NoSelectedNodeException {\n\t\tif (!(this.selectedNode instanceof Folder)){\n\t\t\tesv.showPopupError(\"Can only add a folder to another folder\");\n\t\t\treturn;\n\t\t}\n\n\t\t//Update the swing view first because it will send the needed exceptions\n\t\tesv.addNodeToSelectedNode(node);\n\n\t\t//Update internal representation of tree\n\t\tFolder parent = (Folder)this.selectedNode;\n\t\tparent.addChild(node);\n\t\tnode.setParent(parent);\n\n\t\t//Update lastInserted HashMap\n\t\tthis.lastInsertedNodes.clear();\n\t\tthis.lastInsertedNodes.put(0, node);\n\t}",
"public void insertnode ()\n\t// insert an empty node\n\t{\n\t\tif (Pos.haschildren() && !GF.askInsert()) return;\n\t\tNode n = new Node(Pos.node().number());\n\t\tPos.insertchild(new TreeNode(n));\n\t\tn.main(Pos);\n\t\tgetinformation();\n\t\tPos = Pos.lastChild();\n\t\tsetlast();\n\t\tshowinformation();\n\t\tcopy();\n\t}",
"public void add(NODE node) {\n root = root == null ? node : root.add(node);\n }",
"boolean addNode(long idNum, String label);",
"public DefaultMutableTreeNode addObject(GUIMain guiMn, DefaultMutableTreeNode parent,\n Object child,\n boolean shouldBeVisible) {\n \n DefaultMutableTreeNode childNode\n = new DefaultMutableTreeNode(child);\n\n if(child instanceof DefaultMutableTreeNode)\n {\n parent.add((MutableTreeNode) child);\n return childNode;\n }\n \n if (parent == null) {\n parent = guiMn.simMain.rootNode;\n }\n\n //It is key to invoke this on the TreeModel, and NOT DefaultMutableTreeNode\n guiMn.simMain.treeModel.insertNodeInto(childNode, parent,\n parent.getChildCount());\n\n //Make sure the user can see the lovely new node.\n if (shouldBeVisible) {\n guiMn.myTree.scrollPathToVisible(new TreePath(childNode.getPath()));\n }\n return childNode;\n }",
"public void addNode(String name, int index) {\n\t\tDefaultTreeModel model = (DefaultTreeModel) getModel();\n\t\tTreeNode root = (TreeNode) model.getRoot();\n\t\tif (index > root.getChildCount() || index < 0){\n\t\t\tindex = root.getChildCount();\n\t\t}\n\n\t\tmodel.insertNodeInto(new TreeNode(name, root.getNodeOption(), index, false), root, index);\n\t\tmodel.reload();\n\n\t\tscrollRowToVisible(index + 1);\n\n\t}",
"public void nodeAdded(GraphEvent e);",
"public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.ADD_NODES;\r\n instr.setText(\"Click to add new nodes or change their location.\");\r\n }",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"private void addNode(DLinkedNode node) {\n\t\t\tnode.pre = head;\n\t\t\tnode.post = head.post;\n\n\t\t\thead.post.pre = node;\n\t\t\thead.post = node;\n\t\t}",
"@Override\r\n public void addChild (TreeNode node)\r\n {\r\n super.addChild(node);\r\n\r\n // Side effect for note, since the geometric parameters of the chord\r\n // are modified\r\n if (node instanceof Note) {\r\n reset();\r\n }\r\n }",
"public void addNode(String node) {\n this.graph.put(node, new LinkedList<>());\n }",
"TreeNode addChild(TreeNode node);",
"private void addNode(DLinkedNode node){\n node.pre = head;\n node.post = head.post;\n\n head.post.pre = node;\n head.post = node;\n }",
"protected void addNode(NodeView nv, boolean locked) {\n\tCyNode node = (CyNode) nv.getNode();\n\tLayoutNode v = new LayoutNodeImpl(nv, nodeIndex++);\n\tnodeList.add(v);\n\tnodeToLayoutNode.put(node, v);\n\n\tif (locked) {\n\t v.lock();\n\t lockedNodes++;\n\t} else {\n\t updateMinMax(nv.getXPosition(), nv.getYPosition());\n\t this.width += nv.getWidth();\n\t this.height += nv.getHeight();\n\t}\n }",
"public void addNode(String item){\n Node newNode = new Node(item,null);\nif(this.head == null){\n this.head = newNode;\n}else{\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n currNode = currNode.getNextNode();\n }\n currNode.setNextNode(newNode);\n}\nthis.numNodes++;\n }",
"void newNode(int nodeId) {\n window.newNode(nodeId);\n }",
"private void addNode(Node<E> node, E value) {\n if (node.children == null) {\n node.children = new ArrayList<>();\n }\n node.children.add(new Node<>(value));\n }",
"protected void addNode(INode node) {\n\n if (node != null) {\n\n this.ids.add(node.getID());\n this.nodeMap.put(node.getID(), node);\n }\n }",
"public void draw(){\n\t\t\tint x = getPreferredSize().width/2;\n\t\t\tint y = 10;\n\t\t\tif (root() != null)\n\t\t\t\tpreOrderCell(root(), x, y, root().getColor());\n\t\t\tjgraph.getGraphLayoutCache().insert(cells.values().toArray());\n\t\t\tjgraph.getGraphLayoutCache().insert(nullnodes.toArray());\n\t\t}",
"private void addUniqueToViewNodes() {\n\t\taddFilterButton();\n\t\t\n\t\t/* Button Initialization */\n\t\t//This Button Creates a Report\n\t\tcreateReportBtn = new Button(\"Create Report\");\n\t\tcreateReportBtn.getStyleClass().add(\"GreenButton\");\n\t\tcreateReportBtn.setOnAction(e -> {\n\t\t\tCreateReportPopup crPopup = new CreateReportPopup(\"Create Report\");\n\t\t\tcrPopup.show();\n\t\t});\n\t\t\n\t\t// This Button views the currently selected report in more detail\n\t\treportDetailsBtn = new Button(\"Report Details\");\n\t\treportDetailsBtn.getStyleClass().add(\"GreenButton\");\n\t\t\n\t\t/* Assembly */\n\t\tactionButtons.getChildren().addAll(createReportBtn, reportDetailsBtn);\n\t\t\n\t\tactionButtons.setPrefHeight(Values.ACTION_BUTTONS_PREF_WIDTH);\n\t}",
"public void doAddPlaceable(TreePath path) {\n \n \t\tNode node = (Node) path.getLastPathComponent();\n \t\t// load and add palceable to tree here\n \t\trepaint();\n \t}",
"private static void addNodesToLegend(ArrayList<LegendEntry> nodeColors,\n\t\t\tJPanel legend) {\n\t\tlegend.add(new JLabel(\"Nodes\"));\n // System.out.println(\"Adding node header\");\n nodeColors.stream().map((entry) -> {\n \tJLabel next = new JLabel(entry.getLabel(), SwingConstants.CENTER);\n next.setFont(LEGEND_FONT);\n next.setOpaque(true);\n next.setBackground(entry.getColor());\n return next;\n }).forEach((next) -> {\n \tlegend.add(next);\n // System.out.println(\"Adding \" + entry.getLabel());\n });\n\t}",
"void addNode(int weight) \n {\n Node newNode = new Node(this.numNodes, weight);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n \n }",
"public void append(Node newNode)\r\n {\n newNode.prev = this;\r\n newNode.next = next;\r\n if (next != null)\r\n {\r\n next.prev = newNode;\r\n }\r\n next = newNode;\r\n System.out.println(\"Node added with Traffic Data \" + Arrays.toString(newNode.trafficEntry.toStringArray()) + \" added ontop of \" \r\n + prev.trafficEntry.convertToString());\r\n \r\n }",
"@Override\n\tpublic void addNode(Node node) {\n\t\tfrontier.addLast(node);\n\t\tif(frontier.size() > maxSize)\n\t\t\tmaxSize = frontier.size();\n\t}",
"private void appendNode(int data) {\n\t\tNode currentNode = head;\n\t\tNode newNode = new Node(data);\n\n\t\tif(currentNode==null) {\n\t\t\thead = newNode;\n\t\t\treturn;\n\t\t}\n\t\tif(currentNode.next==null) {\n\t\t\tcurrentNode.next=newNode;\n\t\t} else {\n\t\t\twhile(currentNode.next!=null) {\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t\tcurrentNode.next = newNode;\n\t\t}\n\t\tSystem.out.println(\" Added new Node to the linkedList \");\n\t}",
"public void addNode (NodeState node) throws RepositoryException, IOException\n\t{\n\t}",
"public boolean addNode(NodeType node) {\n\t\treturn false;\n\t}",
"private void addToHead() {\n Node currentNode = null;\n switch (head.dir) {\n case LEFT:\n currentNode = new Node(head.row - 1, head.col, head.dir);\n break;\n case RIGHT:\n currentNode = new Node(head.row + 1, head.col, head.dir);\n break;\n case UP:\n currentNode = new Node(head.row, head.col - 1, head.dir);\n break;\n case DOWN:\n currentNode = new Node(head.row, head.col + 1, head.dir);\n break;\n }\n currentNode.next = head;\n head.pre = currentNode;\n head = currentNode;\n size++;\n }",
"void addNodes(List<CyNode> nodes);",
"private void addNode(Node node) {\n node.prev = fakeHead;\n node.next = fakeHead.next;\n \n fakeHead.next.prev = node;\n fakeHead.next = node;\n }",
"public void addInputNode(Node node) {\n\t\t// nodes.add(node);\n\t\tnodeArray.add(node);\n\t}",
"private void addNode(DLinkedNode node) {\n\t\tnode.prev = head;\n\t\tnode.next = head.next;\n\n\t\thead.next.prev = node;\n\t\thead.next = node;\n\t}",
"public void drawOn(Node node){\n\t\tGridPane grid = (GridPane) node;\n\n\t\t//count number of rows\n\t\tint numRows = grid.getRowConstraints().size();\n\t\tfor (int i = 0; i < grid.getChildren().size(); i++) {\n\t\t\tNode child = grid.getChildren().get(i);\n\t\t\tif (child.isManaged()) {\n\t\t\t\tInteger rowIndex = GridPane.getRowIndex(child);\n\t\t\t\tif(rowIndex != null){\n\t\t\t\t\tnumRows = Math.max(numRows,rowIndex+1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// add the image to the grid\n\t\tImageView iv = new ImageView(image);\n\t\tAnchorPane.setTopAnchor(iv, 0.0);\n\t\tAnchorPane.setBottomAnchor(iv, 0.0);\n\t\tAnchorPane.setRightAnchor(iv, 0.0);\n\t\tAnchorPane.setLeftAnchor(iv, 0.0);\n\n\n\t\tAnchorPane anchor = new AnchorPane();\n\t\tanchor.getChildren().add(iv);\n\n\t\tiv.fitWidthProperty().bind(anchor.widthProperty());\n\t\tiv.fitHeightProperty().bind(anchor.heightProperty());\n\n\t\t// iv.setPreserveRatio(true);\n\t\tiv.setSmooth(true);\n\n\t\tgrid.add(anchor, location.getX(), numRows - location.getY() - 1);\n\t}",
"public void displayNode() {\n\t\t\tSystem.out.println(\"{ \" + data + \" } \");\n\t\t}",
"public void actionPerformed(ActionEvent evt) {\n\t\t\t\tDefaultMutableTreeNode selected = (DefaultMutableTreeNode) tree\n\t\t\t\t\t\t.getLastSelectedPathComponent();\n\t\t\t\tif (selected == null)\n\t\t\t\t\treturn;\n\n\t\t\t\t// add a new node as the last child of the selected node\n\t\t\t\ttModel.insertNodeInto(new DefaultMutableTreeNode(\"New Node\"),\n\t\t\t\t\t\tselected, selected.getChildCount());\n\n\t\t\t\t// Lets also expand the tree to show the new node\n\t\t\t\t// Find the array of nodes that make up the path from the root\n\t\t\t\t// to the newly added node\n\t\t\t\tTreeNode[] nodes = tModel.getPathToRoot(selected\n\t\t\t\t\t\t.getChildAt(selected.getChildCount() - 1));\n\n\t\t\t\t// Create a tree path with these nodes\n\t\t\t\tTreePath path = new TreePath(nodes);\n\t\t\t\t// Make the entire path visible and make the scroller to move to\n\t\t\t\t// the last path component\n\t\t\t\ttree.scrollPathToVisible(path);\n\t\t\t}",
"public void addNode(int key)\n{\n Node n1 = new Node(key);\n\t\n\tif(!getNodes().containsKey(n1.getKey())) \n\t{\n\tmc++;\n\tthis.getNodes().put(n1.getKey(),n1);\n\t\t\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"Node already in the graph\");\n\t}\n}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tadd();\n\t\t\t}",
"public void addNode(ConfigurationNode node)\n {\n if (node == null || node.getName() == null)\n {\n throw new IllegalArgumentException(\n \"Node to add must have a defined name!\");\n }\n node.setParentNode(null); // reset, will later be set\n\n if (nodes == null)\n {\n nodes = new ArrayList<ConfigurationNode>();\n namedNodes = new HashMap<String, List<ConfigurationNode>>();\n }\n\n nodes.add(node);\n List<ConfigurationNode> lst = namedNodes.get(node.getName());\n if (lst == null)\n {\n lst = new LinkedList<ConfigurationNode>();\n namedNodes.put(node.getName(), lst);\n }\n lst.add(node);\n }",
"@Override\n public void add(EventNode node) {\n nodes.add(node);\n // Invalidate the relations cache.\n //\n // NOTE: The reason we do not update the relations here is because the\n // node might not be finalized yet. That is, the node's transitions\n // might not be created/added yet, so at this point we do not know the\n // exact set of relations associated with this node.\n cachedRelations = null;\n }",
"public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}",
"public void addChild(TreeNode toAdd) {\n\t\t\tthis.children.add(toAdd);\n\t\t}",
"public void addChild(Node node) {\n\t\tthis.children.add(node);\n\t}",
"public void append(int nodeValue)\n {\n ListNode newNode = new ListNode(nodeValue);\n\n // Check if the head is null\n if(this.head == null && this.tail == null)\n {\n this.head = newNode;\n this.tail = newNode;\n } else {\n\n ListNode currNode = this.head;\n ListNode prevNode = this.head;\n\n // Traverse the list\n while(currNode.getNextNode() != null)\n {\n // System.out.println(\"STUCK\");\n // System.out.println(\"CURRENT NODE VALUE: \" + currNode.getValue());\n // System.out.println(\"NEXT NODE FROM CURRENT: \" + currNode.getNextNode().getValue());\n prevNode = currNode;\n currNode = currNode.getNextNode();\n \n }\n\n // Wire the two nodes together\n currNode.setNextNode(newNode);\n newNode.setPrevNode(currNode);\n this.tail = newNode;\n }\n\n this.size = size + 1;\n\n }",
"@Override\n\tpublic boolean addNode(N node)\n\t{\n\t\tif (node == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (nodeEdgeMap.containsKey(node))\n\t\t{\n\t\t\t// Node already in this Graph\n\t\t\treturn false;\n\t\t}\n\t\tnodeList.add(node);\n\t\tnodeEdgeMap.put(node, new HashSet<ET>());\n\t\tgcs.fireGraphNodeChangeEvent(node, NodeChangeEvent.NODE_ADDED);\n\t\treturn true;\n\t}",
"public void addToRootNode(PluginDataModel pluginDataModel){\r\n\t\trootNode.add(new DefaultMutableTreeNode(pluginDataModel));\r\n\t\ttreeModel.reload();\r\n\t}",
"@Override\n\tpublic void preVisit(ASTNode node) {\n\t\tnodeList.add(node);\n\t}",
"public void addNodeInto(MutableTreeNode newChild, MutableTreeNode parent) {\n int index = parent.getChildCount();\n if (newChild != null && newChild.getParent() == parent) {\n index -= 1;\n }\n insertNodeInto(newChild, parent, index);\n }",
"public void addCurrentNode(String currentNodeID)\r\n {\r\n visitedNodes.add(currentNodeID);\r\n }",
"public void addNode(Character charId, Node node) {\n graph.put(charId, node);\n }",
"public void addNeighbor(Node node){\n neighbors.add(node);\n liveNeighbors.add(node);\n }",
"public void add(U newValue) {\n\t\t\tlinkBeforeNode(new Node<>(newValue), mHead);\n\t\t}",
"@Override\n\tpublic void putNode(N node) {\n\t\t\n\t}",
"private void addPoint(View view) {\n\n if( null == imgNode1 || null == imgNode2)\n {\n\n Toast.makeText(MainActivity.this, \"Scan the references\", Toast.LENGTH_SHORT).show();\n return;\n\n }\n\n Toast.makeText(MainActivity.this, \"Added point\", Toast.LENGTH_SHORT).show();\n\n\n\n Node n1 = new Node();\n n1.setRenderable(model);\n\n\n n1.setWorldPosition(new Vector3(0,0,0));\n arSceneView.getScene().addChild(n1);\n\n Description p = new Description();\n p.setNode(n1);\n //The position of the new point is the difference between point reference and marker position. This helps to update the position whether the origin marker is changed\n p.setPos(Vector3.subtract(mov2imgNode,imgNode1.getWorldPosition()));\n listElements.add(p);\n if(listElements.size()>1) {\n Description last = listElements.get(listElements.size()-1);\n Vector3 ori = imgNode1.getWorldPosition();\n Description penultimate = listElements.get(listElements.size()-2);\n last.setBefore_pos(penultimate.getPos());\n last.setDistance(distanceTwoPoints(Vector3.add(ori, last.getPos()), Vector3.add(ori, penultimate.getPos())));\n last.setDir(directionTwoPoints(Vector3.add(ori, penultimate.getPos()), Vector3.add(ori, last.getPos())));\n drawLine(Vector3.add(ori, penultimate.getPos()), Vector3.add(ori, last.getPos()), last.getNode());\n ViewRenderable.builder().setSizer(new DpToMetersViewSizer(this.labelsSize))\n .setView(arSceneView.getContext(), R.layout.controls)\n .build()\n .thenAccept(viewRenderable -> addNodeToScene( last.getNode(),viewRenderable,last.getDistance()))\n .exceptionally(throwable -> {\n Toast.makeText(arSceneView.getContext(), \"Error:\" + throwable.getMessage(), Toast.LENGTH_LONG).show();\n return null;\n }\n\n );\n }\n }",
"private void addNode(Node<AnyType> t) {\n \n if ( isEmpty() ) {\n \n headNode = t;\n tailNode = headNode;\n \n } else { \n \n Node<AnyType> node = getNode( size-1 );\n node.setNextNode( t );\n t.setPreviousNode( node );\n \n tailNode = t;\n \n }\n \n size++;\n \n }",
"void addNode(CommunicationLink communicationLink)\n {\n int nodeId = communicationLink.getInfo().hashCode();\n assert !nodeIds.contains(nodeId);\n nodeIds.add(nodeId);\n allNodes.put(nodeId, communicationLink);\n }",
"public void addToPlugsNode(PluginDataModel pluginDataModel){\r\n\t\tplugsNode.add(new DefaultMutableTreeNode(pluginDataModel));\r\n\t}",
"public void display() {\n ITree.Node root = this.createNode(0);\n TreePrinter.printNode(root);\n }",
"public void displayNode() // display ourself\n\t{\n\t\tSystem.out.print('{');\n\t\tSystem.out.print(iData);\n\t\t\n\t\tSystem.out.print(\"} \");\n\t}",
"public TtreeNode() {\n\t numberOfNodes++;\n\t }",
"public void displayNode(StyleEditorNode node)\n\t{\n\t\tif (node != null)\n\t\t{\n\t\t\tif (!this.isVisible())\n\t\t\t{\n\t\t\t\tthis.setVisible(true); // Will build if required!\n\t\t\t}\n\n\t\t\tStyleEditorTree tree = this.getCurrentStyleTree();\n\t\t\ttree.scrollPathToVisible(tree.getPath(node));\n\t\t\ttree.setSelectionPath(tree.getPath(node));\n\n\t\t\tthis.toFront();\n\n\t\t\tif ((this.getExtendedState() & Frame.ICONIFIED) != 0)\n\t\t\t{\n\t\t\t\tthis.setExtendedState(Frame.NORMAL);\n\t\t\t}\n\t\t}\n\t}",
"String addNewNode(Double lat, Double lon);",
"private void layoutNode(final GraphView myView) {\n \n \t\tString label = null;\n \t\tint tempid = 0;\n \t\tNodeView view = null;\n \n \t\tfor (final Iterator it = nodes.iterator(); it.hasNext();) {\n \t\t\t// Extract a node from JAXB-generated object\n \t\t\tfinal cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) it\n \t\t\t\t\t.next();\n \n \t\t\tlabel = curNode.getLabel();\n \t\t\tfinal Graphics graphics = (Graphics) curNode.getGraphics();\n \n \t\t\tnodeGraphicsMap.put(label, graphics);\n \t\t\tview = myView.getNodeView(Cytoscape.getRootGraph().getNode(label)\n \t\t\t\t\t.getRootGraphIndex());\n \n \t\t\tif (label != null && view != null) {\n \t\t\t\tview.getLabel().setText(label);\n \n \t\t\t} else if (view != null) {\n \t\t\t\tview.getLabel().setText(\"node(\" + tempid + \")\");\n \t\t\t\ttempid++;\n \t\t\t}\n \n \t\t\tif (graphics != null && view != null) {\n \t\t\t\tlayoutNodeGraphics(graphics, view);\n \t\t\t}\n \t\t}\n \t}",
"public void add(DNode node)\n\t{\n\t\tif(first==null)\n\t\t{\n\t\t\tfirst=node;\n\t\t\t//System.out.println(\"add first\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//System.out.println(\"add next\");\n\t\t\tDNode tem=first;\n\t\t\twhile(tem.nextDNode!=null)\n\t\t\t{\n\t\t\t\ttem=tem.nextDNode;\n\t\t\t}\n\t\t\ttem.nextDNode=node;\n\t\t}\n\t}",
"boolean addNode(N node);"
]
| [
"0.7541915",
"0.7415505",
"0.7359862",
"0.7325212",
"0.72784907",
"0.72560877",
"0.712435",
"0.71106106",
"0.70646614",
"0.69644064",
"0.68842125",
"0.686813",
"0.68571705",
"0.6740765",
"0.6681672",
"0.66270125",
"0.6589433",
"0.65231615",
"0.6516756",
"0.64702654",
"0.6467431",
"0.6445949",
"0.6437093",
"0.6424289",
"0.642359",
"0.6423471",
"0.6367442",
"0.63260764",
"0.63164425",
"0.63097286",
"0.62904215",
"0.6262165",
"0.62412745",
"0.6229931",
"0.62001365",
"0.6194602",
"0.6185097",
"0.61675555",
"0.616504",
"0.61636364",
"0.61560595",
"0.6129291",
"0.6114551",
"0.6113296",
"0.6100864",
"0.61007917",
"0.6096667",
"0.6092627",
"0.6077586",
"0.6077138",
"0.6075824",
"0.6074262",
"0.6045784",
"0.6042061",
"0.6040727",
"0.60129035",
"0.5991492",
"0.5979011",
"0.5978954",
"0.5978875",
"0.5977981",
"0.597138",
"0.5960956",
"0.5960411",
"0.59534264",
"0.59494567",
"0.59231174",
"0.5909505",
"0.5906063",
"0.59021676",
"0.58953905",
"0.58865815",
"0.5881246",
"0.58808625",
"0.5872605",
"0.5869407",
"0.58614904",
"0.58569485",
"0.58534133",
"0.5836948",
"0.5828177",
"0.582758",
"0.58270514",
"0.58249354",
"0.58192044",
"0.5814472",
"0.58114374",
"0.58102137",
"0.58044344",
"0.5804137",
"0.5799124",
"0.5790497",
"0.5788168",
"0.5785613",
"0.5782373",
"0.5772549",
"0.57715863",
"0.57641095",
"0.57636255",
"0.57630557",
"0.5762091"
]
| 0.0 | -1 |
send back root node and the first value | @Override
protected JsonObject startResponse() {
JsonObject startResp = new JsonObject();
startResp.addProperty("rootValue", this.root.getValue());
startResp.addProperty("currValue", this.currDisplayedNumber);
return startResp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getNodeValue ();",
"public byte[] getFirstNode()\n {\n return this.firstNode;\n }",
"public T getFirst()\n\t{\n\t\treturn getFirstNode().getData();\n\t}",
"public Object getFirst()\n {\n return ((Node)nodes.elementAt(0)).data;\n }",
"Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}",
"BTNode<T> getRoot();",
"TrieNode root();",
"public Node getFirstNode() {\n\t return firstNode;\r\n\t }",
"java.lang.String getRoot();",
"public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}",
"public StringNode getFirst() {\n return first;\n }",
"public Node getFirst()\n {\n return this.first;\n }",
"Node getFirst() {\n return this.first;\n }",
"public MyBinNode<Type> getRoot(){\n return this.root;\n }",
"public void printRoot()\r\n\t{\r\n\t\tSystem.out.println(\"Root is:\"+root.data);\r\n\t}",
"public Node<T> getFirst() {\r\n\t\treturn first;\r\n\t}",
"public E getFirst()// you finish (part of HW#4)\n\t{\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasLeftChild())\n\t\t\titeratorNode = iteratorNode.getLeftChild();\n\t\treturn iteratorNode.getData();\n\t}",
"RootNode getRootNode();",
"public Node getRoot(){\r\n return this.root;\r\n }",
"public void root(Node n) {}",
"@Override\n\tpublic java.lang.String getNode_1() {\n\t\treturn _dictData.getNode_1();\n\t}",
"public String getRoot();",
"@AutoEscape\n\tpublic String getNode_1();",
"@Override\r\n\tpublic Node<T> getRoot() {\r\n\t\treturn raiz;\r\n\t}",
"public T rootValue() {\n if (root == null) throw new IllegalStateException(\"Empty tree has no root value\");\n return root.value;\n }",
"private void printNode() {\n System.out.println(\"value:\" + value + \" next:\" + nextNode);\n }",
"public int getRoot(){\n\t\t\treturn root;\n\t\t}",
"@Override\n public String toString() { return root.toString(); }",
"public abstract T queryRootNode();",
"BiNode root()\n {\n return _root;\n }",
"public String printBFSTree(){\n if(root==null)return \"\";\n String binstr=\"\";\n String valuestr=\"\";\n String codestr=\"\";\n LinkedList<HCNode> list=new LinkedList<HCNode>();\n root.code=\"\";\n list.add(root);\n HCNode node;\n while(list.size()>0){\n node=list.getFirst();\n if(node.left==null && node.right==null){\n binstr=binstr+\"0\";\n valuestr=valuestr+((byte)node.str.charAt(0))+\"\\n\";\n codestr=codestr+node.code;\n }else{\n binstr=binstr+\"1\";\n }\n if(node.left!=null){node.left.code=node.left.parent.code+\"0\";list.addLast(node.left);}\n if(node.right!=null){node.right.code=node.right.parent.code+\"1\";list.addLast(node.right);}\n list.removeFirst();\n }\n String res=binstr+\"\\n\"+valuestr+codestr+\"\\n\";\n System.out.println(binstr);\n System.out.print(valuestr);\n System.out.println(codestr);\n return res;\n }",
"private int getRoot(int index) {\n while(index < nodes.length && index != nodes[index]) {\n index = nodes[index];\n }\n return nodes[index];\n }",
"public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}",
"T getRoot();",
"public BinaryTreeNode<T> getRootNode(){\n\t\treturn root;\n\t}",
"public void printRoot(){\n for(String temp : root){\n System.out.println(temp);\n }\n }",
"HNode getFirstChild();",
"java.lang.String getEntryNode();",
"public String getNodeValue(Node node) throws Exception;",
"public String front()\n {\n\treturn head.value;\n }",
"@Override\r\n\tpublic CacheTreeNode getOneRootNode(String key) {\n\t\treturn searchTreeNode(key);\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}",
"@Override\r\n public NamedTreeNode<T> getRoot()\r\n {\r\n return head;\r\n }",
"void printTree(Node root) { \r\n if (root != null) { \r\n \tprintTree(root.leftChild); \r\n System.out.println(\"\\\"\" + root.keyValuePair.getKey() + \"\\\"\" + \" : \" + root.getKeyValuePair().getValue()); \r\n printTree(root.rightChild); \r\n } \r\n }",
"@Override\r\n\tpublic T getRootElement() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(this.root == null) {\r\n\t\treturn null;\r\n\t\t\r\n\t\t}\r\n\t\treturn this.root.data;\r\n\t}",
"public Object getRoot(){\r\n\t\treturn _root;\r\n\t}",
"public String serialize(TreeNode root) {\n if (root==null){\n return \"[]\";\n }\n Queue<TreeNode> queue = new LinkedList<TreeNode>();\n List<Integer> res = new ArrayList<Integer>();\n queue.add(root);\n int num=0;\n while (queue.size() > 0) {\n TreeNode p=queue.poll();\n if (p==null){\n // System.out.println(\"null\");\n res.add(null);\n continue;\n }\n // System.out.println(p.val);\n res.add(p.val);\n num=res.size();\n queue.offer(p.left);\n queue.offer(p.right);\n }\n res=res.subList(0, num);\n System.out.println(res.toString());\n return res.toString().replaceAll(\" \", \"\");\n }",
"public Node getRoot() {\r\n\r\n\t\treturn root;\r\n\t}",
"private RBNode<T> getRoot(){\n return root.getLeft();\n }",
"private RegressionTreeNode traverseNominalNode(Serializable value) {\n\t\tif(value.equals(this.value)){\n\t\t\treturn this.leftChild;\n\t\t}else{\n\t\t\treturn this.rightChild;\n\t\t}\n\t}",
"public String generateRootResult()\n\t{\n\t\tString result = \"\";\n\t\tresult = result + rootWord + \" \";\n\n\t\treturn result;\n\t}",
"public TreeNode root() {\n\t\treturn root;\n\t}",
"@Override\n public Object root() {\n return root;\n }",
"@Override\n public Object root() {\n return root;\n }",
"public String postorder() {\n \tresult = \"\";\n \ttraversal(root);\n return result;\n }",
"protected IsamIndexNode getRoot() {\n\t\treturn root;\n\t}",
"protected BSTNode root() {\n\t\treturn root;\n\t}",
"public int fullNode(Node root) {\n\t\t\n\t\tint fullnode = 0;\n\t\t\n\t\tif(root == null)\n\t\t\treturn 0;\n\t\t\n\t\tif(root.left!=null && root.right!=null) {\n\t\t\tfullnode ++;\n\t\t\tSystem.out.print(root.data + \" \");\n\t\t}\n\t\tfullnode += fullNode(root.left)+fullNode(root.right); \n\t\n\t\treturn fullnode;\n\t\t\n\t}",
"OntologyTerm getRoot();",
"@Override\r\n\t\tpublic Node getFirstChild()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public WAVLNode getRoot() // return the root of the tree\r\n {\r\n return root;\r\n }",
"@Override\n public String toString(){\n String result = \"\";\n Node n = first;\n while(n != null){\n result += n.value + \" \";\n n = n.next;\n }\n return result;\n }",
"protected void printTree(){\n if (this.leftNode != null){\n leftNode.printTree();\n }\n System.out.println(value);\n\n if (this.rightNode != null){\n rightNode.printTree();\n }\n }",
"@Override\n public void printTree() {\n System.out.println(\"node with char: \" + this.getChar() + \" and key: \" + this.getKey());\n int i = 0;\n for(IABTNode node : this.sons) {\n if(!node.isNull()) {\n System.out.print(\"Son \" + i + \" :\");\n node.printTree();\n }\n i++;\n }\n }",
"public BTNode getRootNode() {\n return mRoot;\n }",
"public int jumlahNode() {\n return jumlahNode(root);\n }",
"public myBinaryNode<T> my_root();",
"public ListNode getFirstNode(){\n\t\treturn firstNode;\n\t}",
"public GraphNode firstEndpoint(){\r\n return first;\r\n }",
"private void serialize(TreeNode root, StringBuilder sb) {\r\n\r\n // **** end / base condition ****\r\n if (root == null)\r\n return;\r\n\r\n // **** append node to string builder ****\r\n sb.append(root.val + \" \");\r\n\r\n // **** traverse left subtree ****\r\n serialize(root.left, sb);\r\n\r\n // **** traverse right subtree ****\r\n serialize(root.right, sb);\r\n }",
"Node<K, V> getRoot(BTree<K, V> btree) throws IOException;",
"public String toString(){\r\n\t\treturn root.toString();\r\n\t}",
"public AbstractNode getValue()\n\t\t{\n\t\t\treturn value;\n\t\t}",
"static void topView(TreeNode root) \n\t{ \n\t fillMap(root, 0, 0); \n\t \n\t for (Map.Entry<Integer, \n\t \t\tPairNode> entry : m.entrySet()) \n\t { \n\t System.out.print(entry.getValue().first + \" \"); \n\t } \n\t}",
"public WAVLNode getRoot()\r\n\t {\r\n\t\t return this.root;\r\n\t }",
"public final Node GetRootNode(){\n return m_pRoot;\n }",
"@Override\n\tpublic String execute() {\n\t\tDocNode dn = docNodeDao.load(DocNode.class, ROOT_DOC_ID);\n\t\t// System.out.println(dn.getDocName());\n\t\t\n\t\trequest.put(\"root\", dn);\n\t\tlogger.warn(\"root loaded\");\n\n\t\treturn \"success\";\n\t}",
"public Object getRootItem();",
"public DialogueNode getRoot() {\n\t\treturn root;\n\t}",
"public Node getRoot() {\n return root;\n }",
"public Node getRoot() {\n return root;\n }",
"public Node getRoot() {\n return root;\n }",
"public Node getRoot() {\n return root;\n }",
"public HPTNode<K, V> root() {\n return root;\n }",
"public String getRoot() {\n return root;\n }",
"@Override\n public String head() {\n String str = null;\n if (!isEmpty()) {\n str = head.getValue();\n }\n return str;\n }",
"<T> T getRoot();",
"public RBNode<T, E> getRoot() {\r\n\t\treturn root;\r\n\t}",
"public int getRoot() {\n return _root;\n }",
"public void getDecodedMessage(String encoding){\n\n String output = \"\";\n Node temp = this.root;\n for(int i = 0;i<encoding.length();i++){\n\n if(encoding.charAt(i) == '0'){\n temp = temp.left;\n\n if(temp.left == null && temp.right == null){\n System.out.print(temp.getData());\n temp = this.root;\n }\n }\n else\n {\n temp = temp.right;\n if(temp.left == null && temp.right == null){\n System.out.print(temp.getData());\n temp = this.root; \n }\n\n }\n }\n }",
"public T first() throws NoSuchElementException {\n\t\tif (root == null) throw new NoSuchElementException();\n\n\t\tBinaryTreeNode current = root;\n\t\twhile (current.left != null) {\n\t\t\tcurrent = current.left;\n\t\t}\n\t\treturn current.data;\n\t}",
"public String serialize(TreeNode root) {\n if(root == null)\n return \"N\";\n else\n return root.val + \" \"+ serialize(root.left) + \" \"+ serialize(root.right);\n \n }",
"public String serialize(TreeNode root) {\n String res = \"\";\n return serializeCore(root,res);\n }",
"private static void serializeHelper(TreeNode root, StringBuilder res){\n if (root == null){\n res.append(\"null,\");\n return;\n }\n res.append(Integer.toString(root.val));\n res.append(\",\");\n serializeHelper(root.left, res);\n serializeHelper(root.right, res);\n }",
"public Key getFirst() {\n\t\treturn firstNode.key;\n\t}",
"public String toString()\r\n\t{\r\n\t\treturn root.toString();\r\n\t}",
"public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}",
"public Node getStart(){\n return start;\n }",
"@Override\n public Node getFullNode() {\n return getBasicNode();\n }",
"public String serialize(TreeNode root) {\n\n if (root == null)\n return \"\";\n\n StringBuffer stringBuffer = new StringBuffer();\n Queue<TreeNode> nodeQueue = new LinkedBlockingQueue<TreeNode>();\n nodeQueue.offer(root);\n TreeNode nullNode = new TreeNode(Integer.MIN_VALUE);\n\n while (!nodeQueue.isEmpty()) {\n TreeNode node = nodeQueue.poll();\n if (node != null && !node.equals(nullNode)) {\n stringBuffer.append(node.val + \",\");\n\n\n if (node.left != null || node.right != null) {\n if (node.left != null) {\n nodeQueue.offer(node.left);\n } else {\n nodeQueue.offer(nullNode);\n //stringBuffer.append(\"null,\");\n }\n\n if (node.right != null) {\n nodeQueue.offer(node.right);\n } else {\n nodeQueue.offer(nullNode);\n // stringBuffer.append(\"null,\");\n }\n }\n } else if (node.equals(nullNode)){\n stringBuffer.append(\"null,\");\n }\n }\n\n stringBuffer.setLength(stringBuffer.length()-1);\n return stringBuffer.toString();\n }"
]
| [
"0.62126637",
"0.6201158",
"0.60745",
"0.60328025",
"0.595724",
"0.59507895",
"0.59195566",
"0.5897775",
"0.5894328",
"0.58668286",
"0.58401835",
"0.58335125",
"0.58138496",
"0.5765509",
"0.5751973",
"0.57506484",
"0.57468563",
"0.57444996",
"0.5743542",
"0.5735224",
"0.5700646",
"0.5623888",
"0.55519444",
"0.5549351",
"0.5547383",
"0.55454946",
"0.5544955",
"0.554217",
"0.5537479",
"0.5532873",
"0.55262816",
"0.55221295",
"0.55188924",
"0.55135703",
"0.5513114",
"0.54992193",
"0.54926753",
"0.5488532",
"0.5467209",
"0.5463631",
"0.5446348",
"0.5436322",
"0.54309684",
"0.5429657",
"0.5420064",
"0.5417884",
"0.5412623",
"0.5405825",
"0.54037577",
"0.5401173",
"0.53975475",
"0.5397071",
"0.53649485",
"0.53649485",
"0.53591275",
"0.5349783",
"0.53362846",
"0.5329796",
"0.5323774",
"0.53166777",
"0.53161246",
"0.53114444",
"0.5303009",
"0.53004116",
"0.5295601",
"0.52913356",
"0.5286803",
"0.5280645",
"0.52801234",
"0.52792126",
"0.5277056",
"0.5275956",
"0.5272514",
"0.52676827",
"0.5265681",
"0.5264887",
"0.5263243",
"0.5262855",
"0.5262816",
"0.5256447",
"0.52409226",
"0.52409226",
"0.52409226",
"0.5239559",
"0.5239415",
"0.52346855",
"0.5234602",
"0.5233929",
"0.52321804",
"0.5230203",
"0.5227813",
"0.5224572",
"0.5219096",
"0.5217045",
"0.5210892",
"0.52069193",
"0.5204694",
"0.5204186",
"0.5198031",
"0.518286"
]
| 0.5438617 | 41 |
creates a complete tree of height h with random numbers | public BinaryTree generateTree(int height) {
List<Double> randomNums = new ArrayList<>();
int numNodes = (int) (Math.pow(2, height)) - 1;
for (int i = 0; i < numNodes; i++) {
double randomNum = Math.round(Math.random() * 100 * 100) / 100;
// no duplicate numbers
while (randomNums.contains(randomNum)) {
randomNum = Math.round(Math.random() * 100 * 100) / 100;
}
randomNums.add(randomNum);
}
return new BinaryTree(randomNums);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Node buildRandomTree() {\n\t\tNode root = createNode(15);\n\t\troot.leftChild = createNode(10);\n\t\troot.rightChild = createNode(4);\n\t\troot.leftChild.leftChild = createNode(25);\n\t\troot.leftChild.leftChild.rightChild = createNode(27);\n\t\troot.leftChild.leftChild.leftChild = createNode(13);\n\t\troot.leftChild.rightChild = createNode(25);\n\t\troot.leftChild.rightChild.rightChild = createNode(7);\n\t\t\n\t\treturn root;\n\t}",
"private Node makeTree(Node currentNode, DataNode dataNode,\r\n\t\t\tint featureSubsetSize, int height) {\n\r\n\t\tif (dataNode.labels.size() < this.traineeDataSize / 25 || height > 7) {\r\n\t\t\treturn new Node(majority(dataNode));\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\tEntropyCalculation e1 = new EntropyCalculation();\r\n\r\n\t\t\tNode n = e1.maxGainedElement(dataNode.features, dataNode.labels, featureSubsetSize); //new\r\n\r\n\r\n\t\t\tif(e1.zeroEntropy){\r\n\r\n\t\t\t\tcurrentNode = new Node(dataNode.labels.get(0));\r\n\r\n\t\t\t\t/*currentNode.attribute = dataNode.features;\r\n\t\t\t\tcurrentNode.decision = dataNode.labels;\r\n\t\t\t\tcurrentNode.nodeValue = dataNode.labels.get(0);*/\r\n\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\t\t\telse{\r\n\r\n\t\t\t\tcurrentNode = new Node();\r\n\r\n\t\t\t\tcurrentNode.featureIndexColumn = n.featureIndexColumn;\r\n\t\t\t\tcurrentNode.featureIndexRow = n.featureIndexRow;\r\n\r\n\t\t\t\tcurrentNode.attribute = dataNode.features;\r\n\t\t\t\tcurrentNode.decision = dataNode.labels;\r\n\r\n\t\t\t\tcurrentNode.nodeValue = dataNode.features.get(currentNode.featureIndexRow).get(currentNode.featureIndexColumn);\r\n\r\n\t\t\t\tcurrentNode.leftChild = new Node();\r\n\t\t\t\tcurrentNode.rightChild = new Node();\r\n\r\n\t\t\t\tDataNode leftNode = new DataNode();\r\n\t\t\t\tDataNode rightNode = new DataNode();\r\n\r\n\t\t\t\tfor (int i = 0; i < dataNode.features.size(); i++) {\r\n\r\n\t\t\t\t\tif(currentNode.nodeValue >= dataNode.features.get(i).get(currentNode.featureIndexColumn)) {\r\n\r\n\t\t\t\t\t\tleftNode.features.add(dataNode.features.get(i));\r\n\t\t\t\t\t\tleftNode.labels.add(dataNode.labels.get(i));\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\r\n\t\t\t\t\t\trightNode.features.add(dataNode.features.get(i));\r\n\t\t\t\t\t\trightNode.labels.add(dataNode.labels.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif((leftNode.labels.isEmpty() || rightNode.labels.isEmpty()) && height == 0){\r\n\t\t\t\t\tSystem.out.println(\"Ghapla\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentNode.leftChild = makeTree(currentNode.leftChild, leftNode, featureSubsetSize, height+1);\r\n\r\n\t\t\t\tcurrentNode.rightChild = makeTree(currentNode.rightChild, rightNode, featureSubsetSize, height+1);\r\n\r\n\t\t\t\treturn currentNode;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void grow(Grid[][] map) {\n\t\tBranchNode parent = root;\r\n\t\twhile (parent.children.size() > 0) {\r\n\t\t\tif (parent.children.size() >= max_branch_per_node) {\r\n\t\t\t\t// if no more room at this branch\r\n\t\t\t\tparent = parent.children\r\n\t\t\t\t\t\t.get((int) (Math.random() * parent.children.size()));\r\n\t\t\t} else if (Math.random() < 0.5) {\r\n\t\t\t\t// if there is still room, picks randomly\r\n\t\t\t\tparent = parent.children\r\n\t\t\t\t\t\t.get((int) (Math.random() * parent.children.size()));\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint newX, newY; // X and Y coordinates for the new node.\r\n\t\tint r = (int) (Math.random() * GENE_TOTAL);\r\n\t\tint gene_count = width_gene[0];\r\n\t\tint width_select = 0;\r\n\t\twhile (r > gene_count) {\r\n\t\t\twidth_select += 1;\r\n\t\t\tgene_count += width_gene[width_select];\r\n\t\t}\r\n\t\tr = (int) (Math.random() * WIDTH_VARIATION);\r\n\t\tnewX = parent.x - WIDTH_VARIATION / 2 + (width_select - 2)\r\n\t\t\t\t* WIDTH_VARIATION + r;\r\n\t\tif (newX < 0) {// if goes off the grid, push back.\r\n\t\t\tnewX = 0;\r\n\t\t} else if (newX >= World.WORLD_WIDTH) {\r\n\t\t\tnewX = World.WORLD_WIDTH - 1;\r\n\t\t}\r\n\r\n\t\tr = (int) (Math.random() * GENE_TOTAL);\r\n\t\tgene_count = height_gene[0];\r\n\t\tint height_select = 0;\r\n\t\twhile (r > gene_count) {\r\n\t\t\theight_select += 1;\r\n\t\t\tgene_count += height_gene[height_select];\r\n\t\t}\r\n\t\tr = (int) (Math.random() * HEIGHT_VARIATION);\r\n\t\tnewY = parent.y + height_select * HEIGHT_VARIATION + r;\r\n\t\tif (newY >= World.WORLD_HEIGHT) {\r\n\t\t\tnewY = World.WORLD_HEIGHT - 1;\r\n\t\t}\r\n\r\n\t\t// add the branch to the total body.\r\n\t\tamount_of_tree += (int) Math.sqrt((newX - parent.x) * (newX - parent.x)\r\n\t\t\t\t+ (newY - parent.y) * (newY - parent.y));\r\n\t\tBranchNode child = new BranchNode(parent, newX, newY);\r\n\t\tparent.children.add(child);\r\n\r\n\t\tif (parent.leaf_alive) {\r\n\t\t\t// kill leaf, because branch is growing off of it\r\n\t\t\tparent.killLeaf(this, map);\r\n\t\t}\r\n\r\n\t\t// make new leaf on new branch\r\n\t\tchild.addLeaf(this, map);\r\n\t}",
"private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public static Node createLargeTree() {\n final int dcCount = 2;\n final int rackCount = 6;\n final int snCount = 6;\n final int hdCount = 12;\n\n int id = 0;\n // root\n Node root = new Node();\n root.setName(\"root\");\n root.setId(id++);\n root.setType(Types.ROOT);\n root.setSelection(Selection.STRAW);\n // DC\n List<Node> dcs = new ArrayList<Node>();\n for (int i = 1; i <= dcCount; i++) {\n Node dc = new Node();\n dcs.add(dc);\n dc.setName(\"dc\" + i);\n dc.setId(id++);\n dc.setType(Types.DATA_CENTER);\n dc.setSelection(Selection.STRAW);\n dc.setParent(root);\n // racks\n List<Node> racks = new ArrayList<Node>();\n for (int j = 1; j <= rackCount; j++) {\n Node rack = new Node();\n racks.add(rack);\n rack.setName(dc.getName() + \"rack\" + j);\n rack.setId(id++);\n rack.setType(StorageSystemTypes.RACK);\n rack.setSelection(Selection.STRAW);\n rack.setParent(dc);\n // storage nodes\n List<Node> sns = new ArrayList<Node>();\n for (int k = 1; k <= snCount; k++) {\n Node sn = new Node();\n sns.add(sn);\n sn.setName(rack.getName() + \"sn\" + k);\n sn.setId(id++);\n sn.setType(StorageSystemTypes.STORAGE_NODE);\n sn.setSelection(Selection.STRAW);\n sn.setParent(rack);\n // hds\n List<Node> hds = new ArrayList<Node>();\n for (int l = 1; l <= hdCount; l++) {\n Node hd = new Node();\n hds.add(hd);\n hd.setName(sn.getName() + \"hd\" + l);\n hd.setId(id++);\n hd.setType(StorageSystemTypes.DISK);\n hd.setWeight(100);\n hd.setParent(sn);\n }\n sn.setChildren(hds);\n }\n rack.setChildren(sns);\n }\n dc.setChildren(racks);\n }\n root.setChildren(dcs);\n return root;\n }",
"public CreateRedBlackTree(int header) \n { \n this.header = new RedBlackNode(header); \n this.header.leftChild = nullNode; \n this.header.rightChild = nullNode; \n }",
"public static void populateTreeRandom(BinarySearchTree tree)\n {\n int currentNumber = 0;\n\n System.out.println(\"RANDOM NUMBERS PRE POPULATION: \" );\n\n for(int i = 1; i < 101; i++)\n {\n currentNumber = (int) (Math.random() * 100);\n\n System.out.printf(\"%3d \", currentNumber);\n\n if(i % 20 == 0)\n {\n System.out.println();\n }\n\n tree.add(currentNumber);\n }\n\n System.out.println();\n }",
"public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree.\n Random rn = new Random();\n\n\n for (int i = 0; i < 10; ++i)\n {\n insert(3);\n insert(5);\n insert(9);\n insert(5);\n insert(8);\n insert(1);\n insert(7);\n insert(4);\n insert(3);\n }\n return 1;\n }",
"private static int randomHeight(double p)\n {\n\tint h = 1;\n\twhile (r.nextDouble() < p) {\n\t // make it higher!\n\t h++;\n\t}\n\treturn h;\n }",
"@Test\r\n public void testHeightFullTree(){\r\n \t\r\n \tBinarySearchTree<Integer> treeInt = new BinarySearchTree<Integer>();\r\n \t\r\n \ttreeInt.add(31);\r\n \ttreeInt.add(5);\r\n \ttreeInt.add(44);\r\n \t\r\n \tassertEquals(treeInt.height(), 1);\r\n \t\r\n \ttree.add(\"deer\");\r\n \ttree.add(\"bar\"); //adding as child to left\r\n \ttree.add(\"jar\"); //add as child to right \r\n \tassertEquals(tree.height(), 1); //height is now 1\r\n }",
"public HIRTree(){\r\n\t\t\r\n\t}",
"private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}",
"@Override\n public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n return treeGenerator;\n }",
"public void createHuffmanTree() {\n\t\twhile (pq.getSize() > 1) {\n\t\t\tBinaryTreeInterface<HuffmanData> b1 = pq.removeMin();\n\t\t\tBinaryTreeInterface<HuffmanData> b2 = pq.removeMin();\n\t\t\tHuffmanData newRootData =\n\t\t\t\t\t\t\tnew HuffmanData(b1.getRootData().getFrequency() +\n\t\t\t\t\t\t\t\t\t\t\tb2.getRootData().getFrequency());\n\t\t\tBinaryTreeInterface<HuffmanData> newB =\n\t\t\t\t\t\t\tnew BinaryTree<HuffmanData>(newRootData,\n\t\t\t\t\t\t\t\t\t\t\t(BinaryTree) b1,\n\t\t\t\t\t\t\t\t\t\t\t(BinaryTree) b2);\n\t\t\tpq.add(newB);\n\t\t}\n\t\thuffmanTree = pq.getMin();\n\t}",
"private void constructHMap() {\n\t\tfor (int i = 0; i < hMap.length; i++) {\n\t\t\tfor (int j = 0; j < hMap[0].length; j++) {\n\t\t\t\tif (hMap[i][j] == 0) {\n\t\t\t\t\tSkiNode head = new SkiNode(map[i][j], i, j, null);\n\t\t\t\t\tbuildSkiTree(head);\n\t\t\t\t\tupdateSkiTreeLevel(head);\n\t\t\t\t\tif (goodHeads.isEmpty()) {\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t} else if (goodHeads.getFirst().level == head.level) {\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t} else if (goodHeads.getFirst().level < head.level) {\n\t\t\t\t\t\tgoodHeads.clear();\n\t\t\t\t\t\tgoodHeads.add(new SkiNode(head));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public HuffTree makeHuffTree(InputStream stream) throws IOException;",
"node GrowthTreeGen(int maxdepth){\n\t\tint i;\n\t\tbyte a;\n\t\tnode t, p;\n\t\tif(maxdepth == 0) // to the limit then choose a terminal\n\t\t{\n\t\t\ti = IRandom(0, gltcard - 1);\n\t\t\tt = new node(glterminal[i].name, VOIDVALUE);\n\t\t\treturn t;\n\t\t} \n\t\telse // choosing from function and terminal\n\t\t {\n\t\t\ti = IRandom(0, gltermcard - 1);\n\t\t\tt = new node(glterm[i].name, VOIDVALUE);\n\t\t\tif(glterm[i].arity > 0) // if it is function\n\t\t\t{\n\t\t\t\tt.children = GrowthTreeGen(maxdepth - 1);\n\t\t\t\tp = t.children;\n\t\t\t\tfor(a = 1; a < glterm[i].arity; a++) {\n\t\t\t\t\tp.sibling = GrowthTreeGen(maxdepth - 1);\n\t\t\t\t\tp = p.sibling;\n\t\t\t\t}\n\t\t\t\tp.sibling = null;\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t}",
"public static void main(String[] args){\n RedBlackTree RBT1= new RedBlackTree<Integer, String>();\n RBT1.insert(7, \"Violet\");\n RBT1.insert(6, \"May\");\n RBT1.insert(5, \"Alexander\");\n RBT1.insert(4, \"Anya\");\n RBT1.insert(3, \"Maven\");\n RBT1.insert(2, \"Susan\");\n RBT1.insert(1, \"Tom\");\n RBT1.print();\n System.out.println(RBT1.getHeight()); //height = 2\n\n //duplicate keys\n RedBlackTree RBT2= new RedBlackTree<Integer, String>();\n RBT2.insert(7, \"Violet\");\n RBT2.insert(7, \"May\");\n RBT2.insert(7, \"Alexander\");\n RBT2.insert(6, \"Anya\");\n RBT2.insert(6, \"Maven\");\n RBT2.insert(6, \"Susan\");\n RBT2.insert(1, \"Tom\");\n RBT2.print();\n System.out.println(RBT2.getHeight()); //height = 1\n }",
"void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}",
"private void buildTree(int random_attr){\n String[] schema = new String[]{\"min, max, avg, label\"};\n CassandraDriver driver = CassandraDriver.getInstance();\n ArrayList<int[]> train = driver.queryData(\"data\", schema);\n RandomForest forest = new RandomForest();\n forest.numAttr = RandomForestTrainingMapReduce.N;\n forest.numAttrRandom = random_attr;\n RealDecisionTree tree = new RealDecisionTree(train, forest, RandomForestTrainingMapReduce.N);\n\n // serialize this tree and write to Cassandra.\n byte[] t = serialize(tree);\n try {\n driver.insertData(t, \"Forest\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tTreeNodeRandom tree = new TreeNodeRandom(10);\r\n\t\tTreeNodeRandom n2 = new TreeNodeRandom(6);\r\n\t\tTreeNodeRandom n3 = new TreeNodeRandom(12);\r\n\t\tTreeNodeRandom n4 = new TreeNodeRandom(5);\r\n\t\tTreeNodeRandom n5 = new TreeNodeRandom(8);\r\n\t\tTreeNodeRandom n6 = new TreeNodeRandom(11);\r\n\t TreeNodeRandom n7 = new TreeNodeRandom(13);\r\n\t TreeNodeRandom n8 = new TreeNodeRandom(7);\r\n\t TreeNodeRandom n9 = new TreeNodeRandom(9);\r\n\t tree.left = n2;\r\n\t tree.right = n3;\r\n\t tree.random = n2;\r\n\t n2.left = n4;\r\n\t n2.right = n5;\r\n\t n2.random = n8;\r\n\t n3.left = n6;\r\n\t n3.right = n7;\r\n\t n3.random = n5;\r\n\t n4.random = n9;\r\n\t n5.left = n8;\r\n\t n5.right = n9;\r\n\t n5.random = tree;\r\n\t n6.random = n9;\r\n\t n9.random = n8;\r\n\t\t\r\n\t\t\r\n\t\tCloneNodeWithRandomPtr obj = new CloneNodeWithRandomPtr();\r\n\t\tobj.displayTree(tree);\r\n\t\tSystem.out.println();\r\n\t\tTreeNodeRandom temp = tree;\r\n\t\tTreeNodeRandom c = obj.cloneLeftRight(tree);\r\n\t\t//TreeNodeRandom c = obj.cloneNodeHashmap(tree);\r\n\t\tobj.displayTree(tree);\r\n\t}",
"public static void main(String[] args) throws Exception {\n int B = 4096; //bytes max por pagina\n int M = 200; //cantidad de rectangulos tal que el nodo no pese mas que B\n\n int maxCord = 500000;\n int maxDelta = 100;\n\n Random rnd = new Random();\n\n int m = (M * 40) / 100; // m = 40% M\n\n int left = rnd.nextInt(maxCord);\n int bottom = rnd.nextInt(maxCord);\n int deltaX = rnd.nextInt(maxDelta);\n int deltaY = rnd.nextInt(maxDelta);\n\n Rectangle r = new Rectangle(left, left + deltaX, bottom + deltaY, bottom);\n DiskController diskController = new DiskController(M);\n long address = diskController.memoryAssigner();\n Node tree = new Root(m, M, r, diskController, address);\n\n diskController.saveNode(tree);\n long rootSize =diskController.getNodeSize(address);\n System.out.println(\"Tamaño de raiz : \" + rootSize + \" bytes\");\n\n int n=0;\n while (diskController.getNodeSize(address) < B){\n if(n==157) { break;}\n n++;\n Rectangle rn;\n left = rnd.nextInt(maxCord);\n bottom = rnd.nextInt(maxCord);\n deltaX = rnd.nextInt(maxDelta);\n deltaY = rnd.nextInt(maxDelta);\n rn = new Rectangle(left, left + deltaX, bottom + deltaY, bottom);\n tree.insert(rn, new LinearSplit());\n System.out.println(\"Rectangulos insertados : \" + n);\n }\n float nodeCoverage = diskController.nodeOcupation();\n System.out.println(\"Coverage : \"+nodeCoverage);\n System.out.println(\"Tamaño de raiz llena : \" + diskController.getNodeSize(address) + \" bytes, con \"+n+\" nodos insertados. Con raiz vacía de \"+rootSize+\" bytes\");\n //Tamaño de raiz llena : 4089 bytes, con 157 nodos insertados. Con raiz vacía de 478 bytes\n\n }",
"private void createTree() {\n\n // custom brown color\n Color brown = new Color(149, 99, 57);\n\n // trunk\n NscComponent trunk = new NscRectangle(49, 164, 13, 51);\n createShape(trunk, brown, true);\n\n // branches\n drawLine(50, 125, 50, 165, 10, brown);\n drawLine(25, 125, 50, 165, 10, brown);\n drawLine(75, 125, 50, 165, 10, brown);\n\n // branch outlines\n drawLine(49, 125, 49, 150, 1, Color.black);\n drawLine(60, 125, 60, 150, 1, Color.black);\n drawLine(24, 125, 49, 165, 1, Color.black);\n drawLine(35, 125, 50, 150, 1, Color.black);\n drawLine(85, 125, 60, 165, 1, Color.black);\n drawLine(74, 125, 60, 150, 1, Color.black);\n\n // leafs\n NscEllipse leafs2 = new NscEllipse(0, 5, 60, 122);\n NscEllipse leafs3 = new NscEllipse(50, 5, 60, 122);\n NscEllipse leafs = new NscEllipse(25, 0, 60, 127);\n NscEllipse leafs4 = new NscEllipse(25, 1, 60, 124);\n createShape(leafs2, treeColor, true);\n createShape(leafs3, treeColor, true);\n createShape(leafs, treeColor, true);\n createShape(leafs4, treeColor, false);\n\n repaint();\n }",
"@Override\n public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n return treeGenerator;\n }",
"private static int utopianTree( int n )\n\t{\n\t\tint height = 1;\n\t\twhile( n > 0 )\n\t\t{\n\t\t\tif( n > 0 )\n\t\t\t{\n\t\t\t\theight *= 2;\n\t\t\t\tn--;\n\t\t\t}\n\t\t\tif( n > 0 )\n\t\t\t{\n\t\t\t\theight++;\n\t\t\t\tn--;\n\t\t\t}\n\t\t}\n\t\treturn height;\n\t}",
"public static void main(String[] args) {\n\n Tree tree = new Tree(100);\n for (int i = 0; i < 20; i++) {\n tree.addNode((int)(Math.random()*200));\n }\n\n tree.printTree();\n\n System.out.println(\"\\n\");\n tree.countLeafs();\n }",
"public void tree(Graphics bbg, int n, int length, int x, int y, double angle){\n double r1 = angle + Math.toRadians(-30);\n double r2 = angle + Math.toRadians(30);\n double r3 = angle + Math.toRadians(0);\n\n //length modifications of the different branches\n double l1 = length/1.3 + (l1I*5);\n double l2 = length/1.3 + (l2I*5);\n double l3 = length/1.3 + (l3I*5);\n\n //x and y points of the end of the different branches\n int ax = (int)(x - Math.sin(r1)*l1)+(int)(l1I);\n int ay = (int)(y - Math.cos(r1)*l1)+(int)(l1I);\n int bx = (int)(x - Math.sin(r2)*l2)+(int)(l2I);\n int by = (int)(y - Math.cos(r2)*l2)+(int)(l2I);\n int cx = (int)(x - Math.sin(r3)*l3)+(int)(l3I);\n int cy = (int)(y - Math.cos(r3)*l3)+(int)(l3I);\n\n if(n == 0){\n return;\n }\n\n\n increment();\n Color fluidC = new Color(colorR,colorG,colorB);\n //bbg.setColor(new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random()*255)));\n bbg.setColor(fluidC);\n\n\n //draw different branches\n bbg.drawLine(x,y,ax,ay);\n bbg.drawLine(x,y,bx,by);\n bbg.drawLine(x,y,cx,cy);\n\n //call recursively to draw fractal\n tree(bbg,n-1,(int)l1, ax,ay,r1);\n tree(bbg, n - 1, (int)l2, bx,by,r2);\n tree(bbg, n - 1, (int)l3, cx,cy,r3);\n\n\n }",
"@Test\r\n public void testHeightCompleteTree(){\r\n \ttree.add(\"deer\");\r\n \ttree.add(\"bar\"); //adding as child to left\r\n \ttree.add(\"jar\"); //add as child to right \r\n \ttree.add(\"apple\"); //adding to right side of right node\r\n \tassertEquals(tree.height(), 2); \r\n }",
"public ExpressionNode randExpression () {\n int randNum = (int)(Math.random() * 4);\n if (randNum == 0) {\n return (new Multiply(this.height -1));\n }\n else if (randNum == 1) {\n return (new Average(this.height -1));\n }\n else if (randNum == 2) {\n return (new Sine(this.height -1));\n }\n else {\n return (new Cosine(this.height -1));\n }\n }",
"public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}",
"public static void mazeHeight(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze three = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = three.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber + n)){\n\t\t\t\t\t\tS.unionByHeight(randomNumber, randomNumber+n);\n\t\t\t\t\t\tthree.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.find(randomNumber) != S.find(randomNumber+1)){\n\t\t\t\t\t\tS.unionByHeight(randomNumber, randomNumber+1);\n\t\t\t\t\t\tthree.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tbuildAdjacencyList(three, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\tthree.draw();\n\t\tthree.printCellNumbers();\t\n\t}",
"private NodeTreeBinary<T> insert(NodeTreeBinary<T> h, T key) {\n\t\tif (h == null)\n\t\t\treturn new NodeTreeRB<T>(key, NodeTreeRB.RED);\n\n\t\tint cmp = comparar(h, key);\n\t\t\n\t\tif (cmp > 0)\n\t\t\th.setLeft(insert(h.getLeft(), key));\n\t\telse if (cmp > 0)\n\t\t\th.setRight(insert(h.getRight(), key));\n\t\telse\n\t\t\th.setData(key);\n\t\t\n\t\tif (isRed(h.getRight()) && !isRed(h.getLeft()))\n\t\t\th = rotateLeft(h);\n\t\tif (isRed(h.getLeft()) && isRed(h.getLeft().getLeft()))\n\t\t\th = rotateRight(h);\n\t\tif (isRed(h.getLeft()) && isRed(h.getRight()))\n\t\t\tflipColors(h);\n\n\t\tsetSize(h, getSize(h.getLeft()) + getSize(h.getRight()) + 1);\n\n\t\treturn h;\n\t}",
"private void generateRandomHeights() {\n heights = new double[arrSize];\n\n for(int i = 0; i < arrSize; i++) {\n double height = Math.random() * MAX_HEIGHT;\n if(height < MIN_HEIGHT)\n height += MIN_HEIGHT;\n heights[i] = height;\n }\n }",
"public void makeTree(){\n //convert Hashmap into charList\n for(Map.Entry<Character,Integer> entry : freqTable.entrySet()){\n HuffmanNode newNode = new HuffmanNode(entry.getKey(),entry.getValue());\n charList.add(newNode);\n }\n \n if(charList.size()==0)\n return;\n \n if(charList.size()==1){\n HuffmanNode onlyNode = charList.get(0);\n root = new HuffmanNode(null,onlyNode.getFrequency());\n root.setLeft(onlyNode);\n return;\n }\n \n Sort heap = new Sort(charList);\n heap.heapSort();\n \n while(heap.size()>1){\n \n HuffmanNode leftNode = heap.remove(0);\n HuffmanNode rightNode = heap.remove(0);\n \n HuffmanNode newNode = merge(leftNode,rightNode);\n heap.insert(newNode);\n heap.heapSort();\n }\n \n charList = heap.getList();\n root = charList.get(0);\n }",
"public void ensureHeight(int h)\n {\n\tint currH = height();\n\tAssert.pre(data() == null, \"Ensure height only called on dummy node.\");\n\tif (currH < h) {\n\t int i;\n\t for (i = currH; i < h; i++) {\n\t\tnext.add(null);\n\t }\n\t}\n }",
"public static void main(String[] args){\n\n// BinaryTree binaryTree = new BinaryTree(1);\n// binaryTree.insert(\"L\", 2);\n// binaryTree.insert(\"LL\", 4);\n// binaryTree.insert(\"LR\", 5);\n// binaryTree.insert(\"R\", 3);\n// binaryTree.getHeight(binaryTree.root);\n// System.out.println(binaryTree.maxDiameter);\n\n Scanner in = new Scanner(System.in);\n int T = in.nextInt();\n int X = in.nextInt();\n BinaryTree binaryTree = new BinaryTree(X);\n for(int j=0;j<T-1;j++){\n String where = in.next();\n int k = in.nextInt();\n binaryTree.insert(where, k);\n }\n binaryTree.getHeight(binaryTree.root);\n// binaryTree.traverse(binaryTree.root);\n System.out.println(binaryTree.maxDiameter);\n }",
"protected abstract void calculateH(Node node);",
"@Test\r\n public void testHeightAddNodesRight(){\r\n \ttree.add(\"g\");\r\n \ttree.add(\"f\");\r\n \ttree.add(\"e\");\r\n \tassertEquals(tree.height(),2);\r\n \t\r\n \t//testing height of 3\r\n \ttree.add(\"d\"); //height now 3, d is right\r\n \tassertEquals(tree.height(), 3);\r\n \t\r\n \ttree.add(\"c\");\r\n \ttree.add(\"b\"); \r\n \ttree.add(\"a\"); \r\n \tassertEquals(tree.height(),6); //last\r\n }",
"public void update(GMSSRandom gmssRandom, byte[] leaf)\n {\n\n if (this.isFinished)\n {\n // -DM System.err.println\n System.err\n .println(\"No more update possible for treehash instance!\");\n return;\n }\n if (!this.isInitialized)\n {\n // -DM System.err.println\n System.err\n .println(\"Treehash instance not initialized before update\");\n return;\n }\n\n byte[] help = new byte[this.messDigestTree.getDigestSize()];\n int helpHeight = -1;\n\n gmssRandom.nextSeed(this.seedActive);\n\n // if treehash gets first update\n if (this.firstNode == null)\n {\n this.firstNode = leaf;\n this.firstNodeHeight = 0;\n }\n else\n {\n // store the new node in help array, do not push it on the stack\n help = leaf;\n helpHeight = 0;\n\n // hash the nodes on the stack if possible\n while (this.tailLength > 0\n && helpHeight == ((Integer)heightOfNodes.lastElement())\n .intValue())\n {\n // put top element of the stack and help node in array\n // 'tobehashed'\n // and hash them together, put result again in help array\n byte[] toBeHashed = new byte[this.messDigestTree\n .getDigestSize() << 1];\n\n // pop element from stack\n System.arraycopy(this.tailStack.lastElement(), 0, toBeHashed,\n 0, this.messDigestTree.getDigestSize());\n this.tailStack.removeElementAt(this.tailStack.size() - 1);\n this.heightOfNodes\n .removeElementAt(this.heightOfNodes.size() - 1);\n\n System.arraycopy(help, 0, toBeHashed, this.messDigestTree\n .getDigestSize(), this.messDigestTree\n .getDigestSize());\n messDigestTree.update(toBeHashed, 0, toBeHashed.length);\n help = new byte[messDigestTree.getDigestSize()];\n messDigestTree.doFinal(help, 0);\n\n // increase help height, stack was reduced by one element\n helpHeight++;\n this.tailLength--;\n }\n\n // push the new node on the stack\n this.tailStack.addElement(help);\n this.heightOfNodes.addElement(Integers.valueOf(helpHeight));\n this.tailLength++;\n\n // finally check whether the top node on stack and the first node\n // in treehash have same height. If so hash them together\n // and store them in treehash\n if (((Integer)heightOfNodes.lastElement()).intValue() == this.firstNodeHeight)\n {\n byte[] toBeHashed = new byte[this.messDigestTree\n .getDigestSize() << 1];\n System.arraycopy(this.firstNode, 0, toBeHashed, 0,\n this.messDigestTree.getDigestSize());\n\n // pop element from tailStack and copy it into help2 array\n System.arraycopy(this.tailStack.lastElement(), 0, toBeHashed,\n this.messDigestTree.getDigestSize(),\n this.messDigestTree.getDigestSize());\n this.tailStack.removeElementAt(this.tailStack.size() - 1);\n this.heightOfNodes\n .removeElementAt(this.heightOfNodes.size() - 1);\n\n // store new element in firstNode, stack is then empty\n messDigestTree.update(toBeHashed, 0, toBeHashed.length);\n this.firstNode = new byte[messDigestTree.getDigestSize()];\n messDigestTree.doFinal(this.firstNode, 0);\n this.firstNodeHeight++;\n\n // empty the stack\n this.tailLength = 0;\n }\n }\n\n // check if treehash instance is completed\n if (this.firstNodeHeight == this.maxHeight)\n {\n this.isFinished = true;\n }\n }",
"private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}",
"private void buildTree(int n, double x, double y, double a, double branchLength) {\n tree = new ArrayList<>();\n populateTree(n, x, y, a, branchLength);\n }",
"int[][] constructTree(ArrayList<Integer> arr, int n)\n {\n int x = (int)(Math.ceil(Math.log(n)/Math.log(2))); // Height of the tree\n\n int max_size = 2 * (int)Math.pow(2, x) - 1;\n int[][] tree = new int[max_size][4];\n\n build(tree, 0, n - 1, 1, arr);\n return tree;\n }",
"public String createH() {\n\t\t// Create H per the algorithm\n\t\t// Create vertices of X --- The number of vertices in X is taken from the paper\n\t\t// k = (2 + epsilon)log n\n\t\tthis.createXVertices();\n\t\t// Create edges within X (both successive and random)\n\t\tthis.createXEdges();\n\n\t\treturn \"H Created (X Vertices)\";\n\n\t}",
"public static TreeNode generateBinaryTree1() {\n // Nodes\n TreeNode root = new TreeNode(5);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootRight = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(20);\n TreeNode rootLeftRight = new TreeNode(1);\n // Edges\n root.left = rootLeft;\n root.right = rootRight;\n rootLeft.left = rootLeftLeft;\n rootLeft.right = rootLeftRight;\n\n // Return root\n return root;\n }",
"public void insert(T data)\r\n {\r\n int height = 1; //This will be the randomly generated default height of our newly inserted node. \r\n \r\n Node<T> tmp = head; //The traversal node ptr that we follow through the list. \r\n \r\n Node<T> Growtmp = head; //The traversal node ptr that we use to traverse only the max nodes if we need to grow. \r\n \r\n while(Math.random() < 0.5) //This is simulating our coin flip which determines the height of our node. \r\n height++;\r\n \r\n if(height > tmp.height) //If our randomly generated node is too tall, scale it down. \r\n height = tmp.height;\r\n \r\n ArrayDeque<Node<T>> droplvl = new ArrayDeque<>(); // Stores all the nodes that we drop at.\r\n\r\n Node<T> node = new Node<T>(data,height); //Create the new node to be inserted! \r\n \r\n for(int i=tmp.height - 1; i >= 0; i--) //Loop through the heights of the head node. \r\n {\r\n //If the pointed to nodes data is greater than the newly created node or were pointing to null\r\n //drop down a level of height and repeat search process.\r\n //Checks to see if inserted node is less than current node\r\n if(tmp.pointers.get(i) == null || tmp.pointers.get(i).data.compareTo(node.data) > 0 || tmp.pointers.get(i).data.compareTo(node.data) == 0) \r\n {\r\n droplvl.push(tmp); //Store our drop nodes into a stack.\r\n continue; //This is essentially how we are dropping levels. \r\n }\r\n \r\n //If the pointed to nodes data is less than the inserting node move to that node. \r\n if(tmp.pointers.get(i).data.compareTo(node.data) < 0) \r\n {\r\n if(tmp.next(i) != null)\r\n tmp = tmp.next(i);\r\n \r\n if(tmp.pointers.get(i) != null)\r\n { \r\n while(tmp.pointers.get(i) != null && tmp.pointers.get(i).data.compareTo(node.data) < 0)\r\n {\r\n if(tmp.next(i) != null)\r\n tmp = tmp.next(i);\r\n \r\n else \r\n break;\r\n }\r\n }\r\n \r\n droplvl.push(tmp); //Store the drop \r\n continue; //Continue down our list\r\n }\r\n }\r\n\r\n //Once here our temp has traversed the list and is currently where our node needs to be inserted. \r\n //We now need to pop the stack node height number of times. \r\n \r\n for(int z = 0; z < node.height; z++)\r\n {\r\n node.pointers.set(z , droplvl.peek().pointers.get(z));\r\n droplvl.pop().pointers.set(z , node);\r\n }\r\n \r\n //Once here our node has been inserted. \r\n \r\n numNodes++; //Increase our node counter. \r\n containsData.add(node.data); //Stores all the inserted <T>Data. \r\n \r\n double logHeight = Math.log(numNodes)/Math.log(2);\r\n logHeight = Math.ceil(logHeight); //Takes the ceiling of log base 2 of n ie rounds up. \r\n int NewHeight = (int)logHeight; //The new height of our skiplist after inserting \r\n \r\n if(NewHeight <= 0) // If our list contains 1 element it should be of height 1 not 0; \r\n NewHeight = 1;\r\n \r\n if(NewHeight > Growtmp.height) //If this is the case we need to grow our skiplist!\r\n {\r\n //We need to traverse the prior max height and flip a coin on each node to see if it will grow!\r\n \r\n int p = NewHeight - 2; //Variable used to traverse previous max level\r\n \r\n ArrayList<Node<T>> NodesThatGrow = new ArrayList<>();\r\n\r\n Growtmp = head;\r\n \r\n Growtmp = Growtmp.next(p);// Point Growtmp to the first node of maxheight \r\n \r\n while(Growtmp != null) //Determines if a node of maxheight will grow or not. \r\n { \r\n if(Growtmp != null && Math.random() < 0.5) //Flip a coin for each node.\r\n {\r\n NodesThatGrow.add(Growtmp);\r\n Growtmp.height = NewHeight;\r\n }\r\n Growtmp = Growtmp.next(p);\r\n }\r\n \r\n Growtmp = head;\r\n \r\n head.height = NewHeight; //We need to update the height of our head node. \r\n \r\n Growtmp.pointers.add(p+1,null); //Growing the head node by height 1.\r\n\r\n for(int b = 0; b < NodesThatGrow.size(); b++)\r\n {\r\n NodesThatGrow.get(b).pointers.add(p+1,null); //Grow the height of the nodes on our maxlevel.\r\n Growtmp.height = NewHeight; //Update the heights of our grown nodes!!!!!\r\n Growtmp.pointers.set(p+1,NodesThatGrow.get(b));\r\n Growtmp = NodesThatGrow.get(b);\r\n }\r\n }\r\n }",
"public List<TreeNode> generateTrees(int n) {\n return helper(1, n);\n }",
"public static void createTree(SuccessorGenerator generator, GameState initialState)\n {\n LinkedList<GameState> currentLevel = new LinkedList<GameState>();\n currentLevel.add(initialState);\n Player currentPlayer = Player.PLAYER_MAX;\n \n int level = 0;\n while(true)\n {\n LinkedList<GameState> nextLevel = new LinkedList<GameState>();\n \n /*Gerando todas as ações possíveis para o nível atual.*/\n for(GameState state : currentLevel)\n {\n generator.generateSuccessors(state, currentPlayer);\n \n for(int i = 0; i < state.getChildren().size(); i++)\n {\n GameState successorState = state.getChildren().get(i);\n nextLevel.add(successorState);\n }\n }\n System.out.println(\"Expandindo nível \"+(level++)+\" com \"+nextLevel.size()+\" estados.\");\n \n /*Alternando jogadores*/\n currentPlayer = (currentPlayer == Player.PLAYER_MAX)?\n Player.PLAYER_MIN:\n Player.PLAYER_MAX; \n \n /*Busca termina quando todos os estados foram explorados*/\n if(nextLevel.isEmpty()) break;\n \n currentLevel.clear();\n currentLevel.addAll(nextLevel);\n }\n \n }",
"public static void simulate(BinarySearchTree tree)\n {\n String data = \"\";\n\n //populateTree(tree);\n\n populateTreeRandom(tree);\n\n data = tree.breadthFirstTraversal();\n\n System.out.println(\"RANDOM DATA POST POPULATION: \\n\" + data);\n }",
"private static void drawNumDiamondRec(int h) {\n double hd = h;\r\n boolean odd = hd % 2 == 1;\r\n int middle = (int) Math.ceil(hd / 2);\r\n\r\n actual_recursion(h, middle, odd, 1, 0);\r\n\r\n }",
"private void randForest(int x, int y) {\n\t\tint rand = random.nextInt(10);\n\t\tif (rand == 1) {\n\t\t\tentities.add(new Tree(x << 4, y << 4));\n\t\t\tgetTile(x, y).setSolid(true);\n\t\t}\n\n\t}",
"private Node growNode( int w, int h ){\r\n\t\tboolean canGrowDown = (w <= root.w);\r\n\t\tboolean canGrowRight = (h <= root.h);\r\n\r\n\t\tboolean shouldGrowRight = canGrowRight && (root.h >= (root.w + w)); // attempt to keep square-ish by growing right when height is much greater than width\r\n\t\tboolean shouldGrowDown = canGrowDown && (root.w >= (root.h + h)); // attempt to keep square-ish by growing down when width is much greater than height\r\n\r\n\t\tif (shouldGrowRight){\r\n\t\t\treturn growRight(w, h);\r\n\t\t}\r\n\t\telse if (shouldGrowDown){\r\n\t\t\treturn growDown(w, h);\r\n\t\t}\r\n\t\telse if (canGrowRight){\r\n\t\t\treturn growRight(w, h);\r\n\t\t}\r\n\t\telse if (canGrowDown){\r\n\t\t\treturn growDown(w, h);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn null; // need to ensure sensible root starting size to avoid this happening\r\n\t\t}\r\n\t}",
"public static Node buildHuffManTree(PriorityQueue<Node> queue) {\n\t\t\n\t\twhile(queue.size()>1) {\n\t\t\t\n\t\t\tNode left = queue.poll();\n\t\t\tNode right = queue.poll();\n\t\t\t\n\t\t\tNode root = new Node(left.frequency + right.frequency);\n\t\t\troot.left = left;\n\t\t\troot.right = right;\n\t\t\t\n\t\t\tqueue.add(root);\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\treturn queue.poll();\n\t\t\n\t}",
"public static void main(String args[]){\n\t\t// Input the number of test cases you want to run\n \t\tScanner sc = new Scanner(System.in);\n \tint t = sc.nextInt();\n \twhile (t > 0){\n \t\tHashMap<Integer, Node> hashMap = new HashMap<Integer, Node> ();\n \t\tint n = sc.nextInt();//number of nodes in the binary tree\n \t\tNode root=null;\n \t\twhile (n > 1){\n \t\tint parentValue = sc.nextInt();//parent node value\n \t\tint childValue = sc.nextInt();//new node value\n \t\tchar leftOrRight = sc.next().charAt(0);//L or R to determine whether to insert the new node to the left(L) of right(R)\n \t\tNode parent = hashMap.get(parentValue);\n \t\tif (parent == null){\n \t\t\tparent = new Node(parentValue);\n \t\t\thashMap.put(parentValue, parent);\n \t\t\tif (root == null)\n \t\t\troot = parent;\n \t\t}\n \t\tNode child = new Node(childValue);\n \t\tif (leftOrRight == 'L')\n \t\t\tparent.left = child;\n \t\telse\n \t\t\tparent.right = child;\n \t\t\thashMap.put(childValue, child);\n \t\tn--;\n \t\t}\n\t\t\t//Create an object of the class\n \t\tHeightOfBinaryTree obj = new HeightOfBinaryTree();\n\t\t\t//Test the one line function\n\t\t\tSystem.out.println(obj.height(root));\n \t\tt--;\n \t}\t\n \t}",
"public void generateExpression (int height, double x, double y) {\n if (height != 1) {\n nextNode = randExpression();\n }\n else if (height == 1) {\n generateOperand(x, y);\n }\n }",
"private void sampleEdge() {\n int rand = RandomUtil.getInstance().nextInt(\n getNumNodes() * (getNumNodes() - 1));\n randomParent = rand / (getNumNodes() - 1);\n int rest = rand - randomParent * (getNumNodes() - 1);\n if (rest >= randomParent) {\n randomChild = rest + 1;\n }\n else {\n randomChild = rest;\n }\n }",
"public TreeNodeRandom treeNodesHash(TreeNodeRandom root,HashMap<TreeNodeRandom, TreeNodeRandom> map){\r\n\t\tif(root==null)\r\n\t\t\treturn null;\r\n\t\tTreeNodeRandom r = new TreeNodeRandom(root.val);\r\n\t\tmap.put(root,r);\r\n\t\tr.random = root.random;\r\n\t\tr.left= treeNodesHash(root.left,map);\r\n\t\tr.right = treeNodesHash(root.right,map);\r\n\t\treturn r;\r\n\t}",
"public Node buildTree(int arr[][], int start, int end, int level, int height){\n\t\tif(start>end) return nil;\n\t\tint mid = start+(end-start)/2;\n\t\tNode root; \n\t\tif(level==height-1){\n\t\t\troot = new Node(arr[mid][0],arr[mid][1],\"Red\");\n\t\t}else{\n\t\t\troot = new Node(arr[mid][0],arr[mid][1],\"Black\");\t\t\n\t\t}\n\t\troot.left = buildTree(arr,start,mid-1,level+1,height);\n\t\troot.left.parent=root;\n\t\troot.right = buildTree(arr,mid+1,end,level+1,height);\n\t\troot.right.parent=root;\n\t\treturn root;\n\t}",
"private void genRandomPattern(float ratioInh, float ratioAct) {\n layoutPanel.inhNList = getRandomPointsIndex(ratioInh, null);\n layoutPanel.activeNList = getRandomPointsIndex(ratioAct,\n layoutPanel.inhNList);\n }",
"public void growTree(World par1World, int par2, int par3, int par4, Random par5Random)\n {\n \t int var6 = par1World.getBlockMetadata(par2, par3, par4) & 3;\n //world.setBlock(i, j, k, 0);\n Object obj = null;\n obj = new WorldGenReactionCraftTree();\n\n {\n par1World.setBlockAndMetadata(par2, par3, par4, this.blockID, var6);\n }\n }",
"public static Tree chooseRandTree(double[] distribution, Tree[] trees){\n double r = new Random().nextDouble();\n //System.out.println(r);\n //System.out.println(Arrays.toString(distribution));\n for (int i = 0; i < distribution.length; i++){\n if (r <= distribution[i]){\n return trees[i];\n }\n \n }\n return null;\n \n \n }",
"public void addRandomKids(OperatorFactory o, TerminalFactory t,\r\n int maxDepth, Random rand) {}",
"public static TreeNode generateBinaryTree2() {\n // Nodes\n TreeNode root = new TreeNode(12);\n TreeNode rootLeft = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(1);\n TreeNode rootLeftLeftLeftLeft = new TreeNode(20);\n TreeNode rootRight = new TreeNode(5);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n rootLeftLeftLeft.left = rootLeftLeftLeftLeft;\n root.right = rootRight;\n\n // Return root\n return root;\n }",
"void create(Node node) {\n if (node.table.negatives() == 0) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n if (node.table.positives() == 0) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n\r\n //If no test split the data, make it a leaf with the majoriti of the target atribute\r\n int atr;\r\n //Choose the best atribute\r\n atr = this.chooseBestAtrib(node);\r\n node.atribute = atr;\r\n\r\n //No atribute split the data, so make the node a leaf with the majoriti of the class (either positive or negative)\r\n if (node.atribute == -1) {\r\n //System.out.println(\"Atribute is -1 in TeeBuidler.create\");\r\n if (node.table.negatives() > node.table.positives()) {\r\n node.atribute = 0;\r\n return;\r\n }\r\n if (node.table.positives() >= node.table.negatives()) {\r\n node.atribute = 1;\r\n return;\r\n }\r\n }\r\n\r\n Table table_left = new Table(), table_right = new Table();\r\n node.table.splitByAtrib(node.atribute, table_left, table_right);\r\n\r\n //Create two children for the current node //parameters: identifier,parent_result,atribute of split,id_child1, id_child2, table\r\n node.child_left = new Node(node.id + node.id, \"1\", -1, -1, -1, table_left);\r\n node.child_right = new Node(node.id + node.id+1, \"0\", -1, -1, -1, table_right);\r\n node.id_child_left = node.id + node.id;\r\n node.id_child_right = node.id + node.id+1;\r\n\r\n\r\n TreeBuilder builder = new TreeBuilder();\r\n builder.create(node.child_left);\r\n builder.create(node.child_right);\r\n\r\n }",
"static binaryTreeNode levelorderConstruct(int[] keys){\n binaryTreeNode head = new binaryTreeNode(keys[0]);\n int count = 1;\n binaryTreeNode temp;\n List<binaryTreeNode> l = new ArrayList<>();\n temp = head;\n while(count < keys.length){\n if(temp.lnode == null){\n temp.lnode = new binaryTreeNode(keys[count]);\n count++;\n l.add(temp.lnode);\n } else if(temp.rnode == null){\n temp.rnode = new binaryTreeNode(keys[count]);\n count++;\n l.add(temp.rnode);\n temp = l.remove(0);\n }\n }\n return head;\n }",
"public void randomizeHaplotype() {\n if (rand == null) {\n log.error(\"Cannot randomize haplotype\");\n log.error(toString());\n System.exit(1);\n }\n\n isPhased = true;\n if (rand.nextDouble() > 0.5) {\n return;\n }\n byte tmp = paternal;\n paternal = maternal;\n maternal = tmp;\n }",
"@Test\n public void getHeight() {\n Node node = new Node(150);\n node.setLeft(new Node(120));\n node.setRight(new Node(40));\n Node root = new Node(110);\n root.setLeft(new Node(80));\n root.setRight(node);\n assertEquals(2, BinarySearchTree.getHeight(root));\n }",
"public static void createTree(ArrayList<HuffmanNode> tree) {\n\t\n\t\t//loops through until the tree.\n\t\twhile(tree.size() > 1) {\n\t\t\tCollections.sort(tree);\n\t\t\tHuffmanNode left = tree.get(0);\n\t\t\tHuffmanNode right = tree.get(1);\n\t\t\t\n\t\t\t/*creates the new node and adds it to the arrayList, and removes the two lowest frequency nodes\n\t\t\t * then recursively calls the create method again\n\t\t\t */\n\t\t\ttree.add(new HuffmanNode((right.frequency + left.frequency), left, right));\n\t\t\ttree.remove(0);\n\t\t\ttree.remove(0);\n\t\t\tcreateTree(tree);\n\t\t}\n\t}",
"public List<TreeNode> generateTrees(int n) {\n if(n==0) return new ArrayList<TreeNode>();\n return generate(1, n);\n }",
"Builder height(VariableAmount height);",
"@Test\n\tpublic void testBuildTree() {\n\t\tTree<Integer> tree = new Tree<Integer> ();\n\t\t//add first level children, 1\n\t\tNode<Integer> root = tree.getRoot();\n\t\troot.addChild(new Node<Integer>());\n\t\tNode<Integer> c1 = root.getFirstChild();\n\t\tassertTrue(c1.getData() == null);\n\t\t//add second level children, 3\n\t\tc1.addChild(new Node<Integer> ());\n\t\tc1.addChild(new Node<Integer> ());\n\t\tc1.addChild(new Node<Integer> ());\n\t\tassertTrue(c1.countChildren() == 3);\n\t\t//add third level children, 3 * 3\n\t\tint[][] leafData = {\n\t\t\t\t{8,7,2},\n\t\t\t\t{9,1,6},\n\t\t\t\t{2,4,1}\n\t\t};\n\t\tNode<Integer> c2 = c1.getFirstChild();\n\t\tint i = 0;\n\t\twhile (c2 != null) {\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][0]));\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][1]));\n\t\t\tc2.addChild(new Node<Integer> (leafData[i][2]));\n\t\t\tc2 = c2.next();\n\t\t\ti++;\n\t\t}\n\t\tassertTrue(tree.countDepth() == 3);\n\t\tNode<Integer> leaf = root;\n\t\twhile (leaf.countChildren() > 0) {\n\t\t\tleaf = leaf.getFirstChild();\n\t\t}\n\t\tassertTrue(leaf.getData() == 8);\t\t\t\n\t}",
"private Integer randomHemoglobina(){\n\t\t\tint Min = 9, Max = 23;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}",
"public static void main(String[] args) {\n Random random=new Random();\n int balancedTree=0;\n final int MAP_AMOUNT=20000;\n for (int i=0;i<MAP_AMOUNT;i++){\n NewTreeMap<Integer,Integer> map=new NewTreeMap();\n int k;\n while (map.height()<6){\n k=random.nextInt(200)-100;\n map.put(k,k);\n }\n if(map.isBalance()){\n balancedTree+=1;\n }\n }\n System.out.println(balancedTree);\n System.out.println((double)balancedTree/MAP_AMOUNT*100 + \"%\");\n\n }",
"public void randomize() {\r\n\t\tRandom random = new Random();// random generator used to get random int\r\n\t\tint r;// will hold the random int\r\n\t\tint num;// will hold the filtered random int that determines with entity to use for a tile\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\tr = random.nextInt(32);// gets random int from 0 to 32\r\n\t\t\t\tif (r < 4) num = 0; else if (r < 8) num = 1; else if (r < 31) num = 2; else num = 3;// distributes different objects\r\n\t\t\t\tif (nodes[i * WIDTH_TILES + j].isOccupied() == false) {// if tile empty or random chosen\r\n\t\t\t\t\tnodes[i * WIDTH_TILES + j] = new Node(new Point(i * BOARD_WIDTH / WIDTH_TILES, j * BOARD_WIDTH / HEIGHT_TILES), new ImageIcon(icons[num]).getImage(), true, occupants[num]);// creates random tile\r\n\t\t\t\t}// if (random)\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t}",
"public void constructTree(){\n PriorityQueue<HCNode> queue=new PriorityQueue<HCNode>();\n \n for(int i=0;i<MAXSIZE;i++){\n if(NOZERO){\n if(occTable[i]!=0){\n HCNode nnode=new HCNode(\"\"+(char)(i-DIFF),occTable[i], null);\n queue.add(nnode);\n }\n }else{\n HCNode nnode=new HCNode(\"\"+(char)(i-DIFF),occTable[i], null);\n queue.add(nnode);\n }\n }\n //constructing the Huffman Tree\n HCNode n1=null,n2=null;\n while(((n2=queue.poll())!=null) && ((n1=queue.poll())!=null)){\n HCNode nnode=new HCNode(n1.str+n2.str,n1.occ+n2.occ, null);\n nnode.left=n1;nnode.right=n2;\n n1.parent=nnode;n2.parent=nnode;\n queue.add(nnode);\n }\n if(n1==null&&n2==null){\n System.out.println(\"oops\");\n }\n if(n1!=null)\n root=n1;\n else\n root=n2;\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n // int m = sc.nextInt();\n int n = sc.nextInt();\n Tree[] tree = new Tree[n];\n for (int i = 0; i < n; i++) {\n tree[i] = new Tree(i + 1, sc.nextInt());\n }\n // System.out.println(Arrays.toString(tree));\n\n // Arrays.sort(tree,(a,b)->b.num-a.num);\n StringBuilder sb = new StringBuilder();\n int first = 0;\n\n boolean shibai = false;\n\n while (first < n) {\n while (first < n && tree[first].num == 0) {\n first++;\n }\n int idx = first + 1;\n out:\n while (idx < n) {\n while (idx < n && tree[idx].num == 0) {\n idx++;\n\n }\n while (idx < n && first < n && tree[idx].num > 0 && tree[first].num > 0) {\n\n sb.append(tree[first].type)\n .append(\" \")\n .append(tree[idx].type)\n .append(\" \");\n tree[idx].num--;\n tree[first].num--;\n if (tree[first].num == 0) {\n first++;\n break out;\n }\n }\n }\n// System.out.println(Arrays.toString(tree));\n// System.out.println(idx);\n if (idx > n - 1) {\n if (tree[first].num == 0) break;\n if (tree[first].num == 1) {\n sb.append(tree[first].type);\n break;\n } else {\n System.out.println(\"-\");\n shibai = true;\n break;\n }\n }\n }\n\n// while (true){\n// if(tree[0].num==1){\n// sb.append(tree[0].type);\n// break;\n// }\n// if(tree[1].num==0){\n// System.out.println(\"-\");\n// shibai=true;\n// break;\n// }\n// while (tree[1].num>0){\n// sb.append(tree[0].type).append(\" \").append(tree[1].type).append(\" \");\n// tree[0].num--;\n// tree[1].num--;\n// }\n// //System.out.println(sb.toString());\n// // System.out.println(Arrays.toString(tree));\n// // Arrays.sort(tree,(a,b)->b.num-a.num);\n//\n// }\n if (!shibai) {\n System.out.println(sb.toString());\n }\n\n\n }",
"public GameNode(Random rng) {\n this.number = rng.nextInt(8) + 1;\n this.next = null;\n }",
"private void genHash(int i, HashTreeNode htn, String s) {\n\t\t// i is the recursive depth\n\t\tint n = itemsetSize(s);\n\t\tif( i == n) {\n\t\t\thtn.nodeAttr = 2;\n\t\t\thtn.nodeDepth = n;\n\t\t\tItemsetNode isn = new ItemsetNode(s, 0); \n\t\t\tif(htn.itemsetList == null) {\n\t\t\t\thtn.itemsetList = new Vector<ItemsetNode>();\n\t\t\t}\n\t\t\thtn.itemsetList.addElement(isn);\n\t\t}\n\t\telse {\n\t\t\tif(htn.hashTable==null) {\n\t\t\t\thtn.hashTable = new Hashtable<String, HashTreeNode>(1);\n\t\t\t}\n\t\t\tif(htn.hashTable.containsKey(getItemAt(s, i))) {\n\t\t\t\thtn = (HashTreeNode)htn.hashTable.get(getItemAt(s, i));\n\t\t\t\tgenHash(i+1, htn, s);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tHashTreeNode nhtn = new HashTreeNode();\n\t\t\t\thtn.hashTable.put(getItemAt(s, i), nhtn);\n\t\t\t\tif( i == n-1 ) {\n\t\t\t\t\tnhtn.nodeAttr = 2;\n\t\t\t\t\tgenHash(i+1, nhtn, s);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tnhtn.nodeAttr = 1;\n\t\t\t\t\tgenHash(i+1, nhtn, s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"public void generateElementsNLG(Random random, int floorTileHeight,Hashtable hsObjectsScreen)\r\n\t\t{\r\n\t\t\t//System.out.println(\"iscalled\");\r\n\t\t\tobjElem=new ElementsToPlace(random,floorTileHeight,hsObjectsScreen,height,1);\r\n\t\t\todds=objElem.getOdds();\r\n\t\t}",
"@Test\n public void whenAddNineNodesOnDifferentLevelsThenResultNineNodesFromBottomToTop() {\n tree.addChild(nodeOne, \"1\");\n tree.addChild(new TreeNode(), \"1\");\n tree.addChild(new TreeNode(), \"1\");\n nodeOne.addChild(nodeTwo, \"2\");\n nodeOne.addChild(new TreeNode(), \"2\");\n nodeOne.addChild(new TreeNode(), \"2\");\n nodeTwo.addChild(nodeThree, \"3\");\n nodeTwo.addChild(new TreeNode(), \"3\");\n nodeTwo.addChild(new TreeNode(), \"3\");\n assertThat(tree.getChildren().toString(), is(\"[3, 3, 3, 2, 2, 2, 1, 1, 1]\"));\n }",
"private static void task11(int nUMS, AVLTree<Integer> h, GenerateInt generateInt) {\n\t\t\n\t\t \tlong start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...AVL TREE\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\th.insert(i);\n\t\t\t\tcount = i;\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}",
"private BinaryNode<E> buildTree(ArrayList<E> arr, int height, BinaryNode<E> parent) {\n\n if (arr.isEmpty()) return null;\n BinaryNode<E> curr = new BinaryNode<>(arr.remove(0), null, null, parent);\n if (height > 0) {\n curr.left = buildTree(arr, height - 1, curr);\n curr.right = buildTree(arr, height - 1, curr);\n }\n return curr;\n }",
"public void createNode()\r\n\t{\r\n\t\tTreeNode first=new TreeNode(1);\r\n\t\tTreeNode second=new TreeNode(2);\r\n\t\tTreeNode third=new TreeNode(3);\r\n\t\tTreeNode fourth=new TreeNode(4);\r\n\t\tTreeNode fifth=new TreeNode(5);\r\n\t\tTreeNode sixth=new TreeNode(6);\r\n\t\tTreeNode seventh=new TreeNode(7);\r\n\t\tTreeNode eight=new TreeNode(8);\r\n\t\tTreeNode nine=new TreeNode(9);\r\n\t\troot=first;\r\n\t\tfirst.left=second;\r\n\t\tfirst.right=third;\r\n\t\tsecond.left=fourth;\r\n\t\tthird.left=fifth;\r\n\t\tthird.right=sixth;\r\n\t\tfifth.left=seventh;\r\n\t\tseventh.right=eight;\r\n\t\teight.left=nine;\r\n\t\t\r\n\t}",
"public void insertRandom() {\n // Create new node\n CriteriaNode newNode = generateRandomNonterminalNode();\n\n // Get random leaf node\n Node[] nodes = getRandomTerminalNode();\n Node prev = nodes[PREV];\n Node node = nodes[CURR];\n\n // Replace either left or right with a random CriteriaNode\n if (prev == null) {\n // If tree has only a root node\n if (U.chance()) {\n root.left = newNode;\n } else {\n root.right = newNode;\n }\n } else {\n // Replace the correct reference of prev with the new node\n if (prev.left == node) {\n prev.left = newNode;\n } else {\n prev.right = newNode;\n }\n }\n }",
"public void addChild(Node n) {\n\t\taddChild(n, (rand.nextDouble()*0.02 - 0.01));\n\t}",
"@Test\n public void testLargeTree() {\n BPlusTree<Integer, Integer> tree = new BPlusTree<Integer, Integer>();\n ArrayList<Integer> numbers = new ArrayList<Integer>(100000);\n for (int i = 0; i < 100000; i++) {\n numbers.add(i);\n }\n Collections.shuffle(numbers);\n for (int i = 0; i < 100000; i++) {\n tree.insert(numbers.get(i), numbers.get(i));\n }\n testTreeInvariants(tree);\n int depth = treeDepth(tree.root);\n assertTrue(depth < 11);\n }",
"public Treehash(Digest name, byte[][] statByte, int[] statInt)\n {\n this.messDigestTree = name;\n\n // decode statInt\n this.maxHeight = statInt[0];\n this.tailLength = statInt[1];\n this.firstNodeHeight = statInt[2];\n\n if (statInt[3] == 1)\n {\n this.isFinished = true;\n }\n else\n {\n this.isFinished = false;\n }\n if (statInt[4] == 1)\n {\n this.isInitialized = true;\n }\n else\n {\n this.isInitialized = false;\n }\n if (statInt[5] == 1)\n {\n this.seedInitialized = true;\n }\n else\n {\n this.seedInitialized = false;\n }\n\n this.heightOfNodes = new Vector();\n for (int i = 0; i < tailLength; i++)\n {\n this.heightOfNodes.addElement(Integers.valueOf(statInt[6 + i]));\n }\n\n // decode statByte\n this.firstNode = statByte[0];\n this.seedActive = statByte[1];\n this.seedNext = statByte[2];\n\n this.tailStack = new Vector();\n for (int i = 0; i < tailLength; i++)\n {\n this.tailStack.addElement(statByte[3 + i]);\n }\n }",
"public VPHashTree(int depth) {\n super(DEFAULT_BIN_SIZE);\n this.depth = depth;\n this.depthReached = false;\n }",
"private NodeTreeBinary<T> rotateLeft(NodeTreeBinary<T> h) {\n\t\tNodeTreeBinary<T> x = h.getRight();\n\n\t\th.setRight(x.getLeft());\n\t\tx.setLeft(h);\n\t\tsetColor(x, getColor(x.getLeft()));\n\t\tsetColor(x.getLeft(), NodeTreeRB.RED);\n\n\t\tsetSize(x, getSize(h));\n\t\tsetSize(h, getSize(h.getLeft()) + getSize(h.getRight()) + 1);\n\n\t\treturn x;\n\t}",
"private HuffmanNode buildTree(int n) {\r\n \tfor (int i = 1; i <= n; i++) {\r\n \t\tHuffmanNode node = new HuffmanNode();\r\n \t\tnode.left = pQueue.poll();\r\n \t\tnode.right = pQueue.poll();\r\n \t\tnode.frequency = node.left.frequency + node.right.frequency;\r\n \t\tpQueue.add(node);\r\n \t}\r\n return pQueue.poll();\r\n }",
"@Override\n public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n return this.worldGeneratorTrees;\n }",
"public TreeNode getRandomNodeLeftSize(){\n\n Random random = new Random();\n int randomIndex = random.nextInt(size());\n return getRandomIndexNode(randomIndex);\n }",
"private void buildTree() {\n\t\tfinal TreeSet<Tree> treeSet = new TreeSet<Tree>();\n\t\tfor (char i = 0; i < 256; i++) {\n\t\t\tif (characterCount[i] > 0) {\n\t\t\t\ttreeSet.add(new Tree(i, characterCount[i]));\n\t\t\t}\n\t\t}\n\n\t\t// Merge the trees to one Tree\n\t\tTree left;\n\t\tTree right;\n\t\twhile (treeSet.size() > 1) {\n\t\t\tleft = treeSet.pollFirst();\n\t\t\tright = treeSet.pollFirst();\n\t\t\ttreeSet.add(new Tree(left, right));\n\t\t}\n\n\t\t// There is only our final tree left\n\t\thuffmanTree = treeSet.pollFirst();\n\t}",
"node FullTreeGen(int maxdepth){\n\t\tint i;\n\t\tbyte a;\n\t\tnode t, p;\n\t\tif(maxdepth == 0) // to the limit then choose a terminal\n\t\t{\n\t\t\ti = IRandom(0, gltcard - 1);\n\t\t\tt = new node(glterminal[i].name, VOIDVALUE);\n\t\t\treturn t;\n\t\t} \n\t\telse // choosing from function\n\t\t{\n\t\t\ti = IRandom(0, glfcard - 1);\n\t\t\tt = new node(glfunction[i].name, VOIDVALUE);\n\t\t\tt.children = FullTreeGen(maxdepth - 1);\n\t\t\tp = t.children;\n\t\t\tfor(a = 1; a < glfunction[i].arity; a++) {\n\t\t\t\tp.sibling = FullTreeGen(maxdepth - 1);\n\t\t\t\tp = p.sibling;\n\t\t\t}\n\t\t\tp.sibling = null;\n\t\t\treturn t;\n\t\t}\n\t}",
"private static void generateHuffmanTree(){\n try (BufferedReader br = new BufferedReader(new FileReader(_codeTableFile))) {\n String line;\n while ((line = br.readLine()) != null) {\n // process the line.\n if(!line.isEmpty() && line!=null){\n int numberData = Integer.parseInt(line.split(\" \")[0]);\n String code = line.split(\" \")[1];\n Node traverser = root;\n for (int i = 0; i < code.length() - 1; i++){\n char c = code.charAt(i); \n if (c == '0'){\n //bit is 0\n if(traverser.getLeftPtr() == null){\n traverser.setLeftPtr(new BranchNode(999999, null, null));\n }\n traverser = traverser.getLeftPtr();\n }\n else{\n //bit is 1\n if(traverser.getRightPtr() == null){\n traverser.setRightPtr(new BranchNode(999999, null, null));\n }\n traverser = traverser.getRightPtr();\n }\n }\n //Put data in the last node by creating a new leafNode\n char c = code.charAt(code.length() - 1);\n if(c == '0'){\n traverser.setLeftPtr(new LeafNode(9999999, numberData, null, null));\n }\n else{\n traverser.setRightPtr(new LeafNode(9999999, numberData, null, null));\n }\n }\n }\n } \n catch (IOException ex) {\n Logger.getLogger(FrequencyTableBuilder.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public BTreeNode(int t){\n T = t;\n isLeaf = true;\n key = new int[2*T-1];\n c = new BTreeNode[2*T];\n n=0; \n }",
"void generateLeaves(World world, BlockPos pos, Random rand, List<FoliageCoordinates> foliageCoords) {\n\t\tthis.height = (int) (this.heightLimit * this.heightAttenuation);\n\t\t\n\t\tif (this.height >= this.heightLimit) {\n\t\t\tthis.height = this.heightLimit - 1;\n\t\t}\n\n\t\tint i = (int) (1.382 + Math.pow(this.leafDensity * this.heightLimit / 13.0, 2.0));\n\t\t\n\t\tif (i < 1) i = 1;\n\n\t\tint branchBaseY = pos.getY() + this.height;\n\t\tint k = this.heightLimit - this.leafDistanceLimit;\n\t\t\n\t\t\n\t\tfoliageCoords.add(new FoliageCoordinates(pos.up(k), branchBaseY));\n\n\t\tfor (; k >= 0; --k) {\n\t\t\tfloat f = this.getLayerSize(k);\n\n\t\t\tif (f >= 0.0F) {\n\t\t\t\tfor (int l = 0; l < i; ++l) {\n\t\t\t\t\tdouble d0 = this.scaleWidth * (double) f * ((double) rand.nextFloat() + 0.328D);\n\t\t\t\t\tdouble d1 = (double) (rand.nextFloat() * 2.0F) * Math.PI;\n\t\t\t\t\tdouble d2 = d0 * Math.sin(d1) + 0.5D;\n\t\t\t\t\tdouble d3 = d0 * Math.cos(d1) + 0.5D;\n\t\t\t\t\tBlockPos blockpos = pos.add(d2, (double) (k - 1), d3);\n\t\t\t\t\tBlockPos blockpos1 = blockpos.up(this.leafDistanceLimit);\n\n\t\t\t\t\tif (this.checkBlockLine(world, blockpos, blockpos1) == -1) {\n\t\t\t\t\t\tint i1 = pos.getX() - blockpos.getX();\n\t\t\t\t\t\tint j1 = pos.getZ() - blockpos.getZ();\n\t\t\t\t\t\tdouble d4 = (double) blockpos.getY() - Math.sqrt((double) (i1 * i1 + j1 * j1)) * this.branchSlope;\n\t\t\t\t\t\tint k1 = d4 > (double) branchBaseY ? branchBaseY : (int) d4;\n\t\t\t\t\t\tBlockPos blockpos2 = new BlockPos(pos.getX(), k1, pos.getZ());\n\n\t\t\t\t\t\tif (this.checkBlockLine(world, blockpos2, blockpos) == -1) {\n\t\t\t\t\t\t\tfoliageCoords.add(new FoliageCoordinates(blockpos, blockpos2.getY()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private MoveTree generateTree() {\n\n\t\tArrayList<MoveTree> leaves = new ArrayList<>();\n\n\t\tMoveTree tree = new MoveTree(Main.getSWController().getGame().getCurrentGameState());\n\t\tleaves.add(tree);\n\n\t\tfinal Flag flag = new Flag(), finished = new Flag();\n\n\t\tTimer timer = new Timer(true);\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (flag) {\n\t\t\t\t\tif (!finished.value)\n\t\t\t\t\t\tflag.value = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}, 9000);\n\n\t\twhile (true) {\n\t\t\tArrayList<MoveTree> newLeaves = new ArrayList<>();\n\t\t\tfor (MoveTree leaf : leaves) {\n\t\t\t\tGameState state = leaf.getState();\n\t\t\t\tPlayer currentPlayer = state.getPlayer();\n\n\t\t\t\tfor (Card handcard : currentPlayer.getHand()) {\n\t\t\t\t\tBuildCapability capability = Main.getSWController().getPlayerController().canBuild(currentPlayer, handcard, state);\n\t\t\t\t\tswitch (capability) {\n\t\t\t\t\tcase FREE:\n\t\t\t\t\tcase OWN_RESOURCE:\n\t\t\t\t\t\tMove move = new Move(handcard, Action.BUILD);\n\t\t\t\t\t\tMoveTree newTree = new MoveTree(move, doMove(move, currentPlayer, state));\n\t\t\t\t\t\tnewLeaves.add(newTree);\n\t\t\t\t\t\tleaf.addChild(newTree);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TRADE:\n\t\t\t\t\t\tTradeOption trade = Main.getSWController().getPlayerController().getTradeOptions(currentPlayer, handcard.getRequired(), state).get(0);\n\t\t\t\t\t\tMove tradeMove = new Move(handcard, Action.BUILD);\n\t\t\t\t\t\ttradeMove.setTradeOption(trade);\n\t\t\t\t\t\tMoveTree newTree2 = new MoveTree(tradeMove, doMove(tradeMove, currentPlayer, state));\n\t\t\t\t\t\tnewLeaves.add(newTree2);\n\t\t\t\t\t\tleaf.addChild(newTree2);\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\n\t\t\t\t\tif (currentPlayer.getBoard().nextSlot() != -1) {\n\t\t\t\t\t\tArrayList<Resource> slotRequirements = new ArrayList<>(Arrays.asList(currentPlayer.getBoard().getNextSlotRequirement()));\n\t\t\t\t\t\tcapability = Main.getSWController().getPlayerController().hasResources(currentPlayer, slotRequirements, state);\n\t\t\t\t\t\tswitch (capability) {\n\t\t\t\t\t\tcase OWN_RESOURCE:\n\t\t\t\t\t\t\tMove move = new Move(handcard, Action.PLACE_SLOT);\n\t\t\t\t\t\t\tMoveTree newTree = new MoveTree(move, doMove(move, currentPlayer, state));\n\t\t\t\t\t\t\tnewLeaves.add(newTree);\n\t\t\t\t\t\t\tleaf.addChild(newTree);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TRADE:\n\t\t\t\t\t\t\tTradeOption trade = Main.getSWController().getPlayerController().getTradeOptions(currentPlayer, slotRequirements, state).get(0);\n\t\t\t\t\t\t\tMove tradeMove = new Move(handcard, Action.PLACE_SLOT);\n\t\t\t\t\t\t\ttradeMove.setTradeOption(trade);\n\t\t\t\t\t\t\tMoveTree newTree2 = new MoveTree(tradeMove, doMove(tradeMove, currentPlayer, state));\n\t\t\t\t\t\t\tnewLeaves.add(newTree2);\n\t\t\t\t\t\t\tleaf.addChild(newTree2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tMove sellmove = new Move(handcard, Action.SELL);\n\t\t\t\t\tMoveTree selltree = new MoveTree(sellmove, doMove(sellmove, currentPlayer, state));\n\t\t\t\t\tnewLeaves.add(selltree);\n\t\t\t\t\tleaf.addChild(selltree);\n \n\t\t\t\t\tif (!currentPlayer.isOlympiaUsed() && !Main.getSWController().getCardController().hasCard(currentPlayer, handcard.getInternalName())) {\n\t\t\t\t\t\tMove olympiamove = new Move(handcard, Action.OLYMPIA);\n\t\t\t\t\t\tMoveTree olympiatree = new MoveTree(olympiamove, doMove(olympiamove, currentPlayer, state));\n\t\t\t\t\t\tnewLeaves.add(olympiatree);\n\t\t\t\t\t\tleaf.addChild(olympiatree);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tsynchronized (flag) {\n\t\t\t\t\tif (flag.value) {\n\t\t\t\t\t\tfor (MoveTree child : leaves)\n\t\t\t\t\t\t\tchild.getChildren().clear();\n\t\t\t\t\t\treturn tree;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tboolean breakAfterwards = false;\n\n\t\t\tfor (MoveTree newLeaf : newLeaves) {\n\t\t\t\tfor (Player player : newLeaf.getState().getPlayers()) {\n\t\t\t\t\tif (player.isMausoleum()) {\n\t\t\t\t\t\tCard card = getHalikarnassusCard(player, newLeaf.getState().getTrash(), newLeaf.getState());\n\t\t\t\t\t\tif (card == null)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tnewLeaf.getState().getTrash().remove(card);\n\t\t\t\t\t\tplayer.getBoard().addCard(card);\n\t\t\t\t\t\tif (card.getEffects() != null)\n\t\t\t\t\t\t\tfor (Effect effect : card.getEffects())\n\t\t\t\t\t\t\t\tif (effect.getType() == EffectType.WHEN_PLAYED)\n\t\t\t\t\t\t\t\t\teffect.run(player, Main.getSWController().getGame());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tnewLeaf.getState().setCurrentPlayer((newLeaf.getState().getCurrentPlayer() + 1) % newLeaf.getState().getPlayers().size());\n\n\t\t\t\tif (newLeaf.getState().getCurrentPlayer() == newLeaf.getState().getFirstPlayer()) {\n\t\t\t\t\tif (newLeaf.getState().getRound() < GameController.NUM_ROUNDS)\n\t\t\t\t\t\tMain.getSWController().getGameController().nextRound(Main.getSWController().getGame(), newLeaf.getState());\n\t\t\t\t\telse // stop look-ahead at the end of age\n\t\t\t\t\t\tbreakAfterwards = true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tleaves.clear();\n\t\t\tleaves.addAll(newLeaves);\n\n\t\t\tif (breakAfterwards)\n\t\t\t\tbreak;\n\t\t}\n\n\t\tfinished.value = true;\n\n\t\treturn tree;\n\t}",
"public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n\t\treturn (WorldGenerator)(par1Random.nextInt(4) == 0 ? new WorldGenAcacia(false) : (par1Random.nextInt(24) == 0 ? new WorldGenDeadTree3(false) : (par1Random.nextInt(2) == 0 ? this.worldGeneratorTrees : new WorldGenShrub(0,0))));\n }",
"public WorldGenEdiTrees(int leavesID, int logID, int minHeight) {\n this(leavesID, logID);\n this.minHeight = minHeight;\n }",
"@Test\r\n public void testHeightOnlyRoot(){\r\n \t//check instances where height will be 0\r\n \tassertEquals(tree.height(), 0);\r\n \ttree.add(\"a\"); //adding to root (height still 0)\r\n \tassertEquals(tree.height(), 0 );\r\n \t\r\n }"
]
| [
"0.65256655",
"0.61055225",
"0.6064049",
"0.5951398",
"0.59193337",
"0.59046304",
"0.5904099",
"0.5885267",
"0.58512175",
"0.5850286",
"0.58485204",
"0.58350563",
"0.5791151",
"0.5770949",
"0.57667774",
"0.57606",
"0.5749169",
"0.5745015",
"0.57413626",
"0.572617",
"0.57224923",
"0.5701152",
"0.5681626",
"0.5679456",
"0.5669776",
"0.5632758",
"0.56324476",
"0.56283987",
"0.56184936",
"0.55910397",
"0.55894685",
"0.5580377",
"0.55754095",
"0.5566432",
"0.55663854",
"0.55619985",
"0.5561543",
"0.55572885",
"0.554171",
"0.55361164",
"0.55073106",
"0.5501193",
"0.5492455",
"0.54656637",
"0.54478437",
"0.5419037",
"0.5418079",
"0.5415977",
"0.5404329",
"0.5395223",
"0.53898203",
"0.53867304",
"0.53782266",
"0.53745073",
"0.53732234",
"0.53633857",
"0.5352681",
"0.5350549",
"0.5343008",
"0.5342504",
"0.53303975",
"0.53188926",
"0.5316999",
"0.53148687",
"0.5309916",
"0.5308708",
"0.5306445",
"0.528984",
"0.52773535",
"0.527669",
"0.5272396",
"0.52721334",
"0.52667576",
"0.52477145",
"0.52370733",
"0.52316976",
"0.5228605",
"0.52241254",
"0.5216206",
"0.5211349",
"0.5207076",
"0.5206384",
"0.52009314",
"0.5200801",
"0.5200154",
"0.51961404",
"0.519238",
"0.51882374",
"0.5188015",
"0.5181461",
"0.517737",
"0.51771784",
"0.5176215",
"0.5175566",
"0.51741046",
"0.51682067",
"0.5166988",
"0.5166977",
"0.5162917",
"0.5154688"
]
| 0.75419 | 0 |
generates a random number that will be presented to the user to put into the correct spot in the tree. | private double generateRandomValue(int min, int max) {
double number = (Math.random() * max * 100) / 100 + min;
return number;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }",
"public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }",
"public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree.\n Random rn = new Random();\n\n\n for (int i = 0; i < 10; ++i)\n {\n insert(3);\n insert(5);\n insert(9);\n insert(5);\n insert(8);\n insert(1);\n insert(7);\n insert(4);\n insert(3);\n }\n return 1;\n }",
"public static void SetNewNumber () {\n number = (int)(Math.random() * 9.1);\r\n\r\n // PROMPT THE USER\r\n System.out.println(\"A new number has been chosen.\");\r\n System.out.println();\r\n\r\n // SAVED ME WHEN DEBUGGING\r\n // System.out.println(number);\r\n }",
"public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}",
"public static void populateTreeRandom(BinarySearchTree tree)\n {\n int currentNumber = 0;\n\n System.out.println(\"RANDOM NUMBERS PRE POPULATION: \" );\n\n for(int i = 1; i < 101; i++)\n {\n currentNumber = (int) (Math.random() * 100);\n\n System.out.printf(\"%3d \", currentNumber);\n\n if(i % 20 == 0)\n {\n System.out.println();\n }\n\n tree.add(currentNumber);\n }\n\n System.out.println();\n }",
"private int generateRandomNumber() {\n\t\treturn new SplittableRandom().nextInt(0, 3);\n\t}",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"public int root(){\n\t\tRandom r1=new Random();\n\t\tint r2= r1.nextInt((9) + 1) + 1;\n\t\treturn r2*100;\n\t}",
"public static int RandomNum(){\n\n Random random = new Random();\n int ItemPicker = random.nextInt(16);\n return(ItemPicker);\n }",
"public void newGame() {\n\t\ttheNumber = (int)(Math.random()* 100 + 1);\r\n\t\t\r\n\t}",
"private void getRandomNumber() {\n\t\tRandom generator = new Random();\n\t\trandomNumber = generator.nextInt(POSSIBLE_CHOICE.length);\n\t}",
"void setRandomNo() {\n\t\tno = 10000000 + (int) (Math.random() * 90000000);\n\t}",
"public static int getRandomNumber(){\n int random = 0; // set variable to 0\r\n random = (int)(Math.random()*10) + 1; //generate random number between 1 and 10\r\n return random; //return random number\r\n }",
"private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }",
"public static int randNum() {\r\n\t\tint rand = (int)(Math.random()*((100)+1)); // Num generated between [0, 100]\r\n\t\treturn rand;\r\n\t}",
"public void insertRandom() {\n // Create new node\n CriteriaNode newNode = generateRandomNonterminalNode();\n\n // Get random leaf node\n Node[] nodes = getRandomTerminalNode();\n Node prev = nodes[PREV];\n Node node = nodes[CURR];\n\n // Replace either left or right with a random CriteriaNode\n if (prev == null) {\n // If tree has only a root node\n if (U.chance()) {\n root.left = newNode;\n } else {\n root.right = newNode;\n }\n } else {\n // Replace the correct reference of prev with the new node\n if (prev.left == node) {\n prev.left = newNode;\n } else {\n prev.right = newNode;\n }\n }\n }",
"public static int randomNumber() {\n //Random rndNumbers = new Random();\n //for(int i = 0; i < 100; i++) {\n // int rndNumber = rndNumbers.nextInt();\n // System.out.println(rndNumber);\n int rand = (int) (Math.random() * 100);\n System.out.println(rand);\n if (rand > 50) {\n return rand;\n } else {\n System.out.println(\"-1\");\n }\n return rand;\n }",
"public int randomNum()\r\n {\r\n Random rand = new Random();\r\n int n = rand.nextInt(52)+1;\r\n return n;\r\n }",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"public static int randomNext() { return 0; }",
"public static String createRandomNum() {\n\t\tlogger.debug(\"Navigating to URL\");\n\t\tString num = \"\";\n\t\ttry {\n\t\t\tnum = RandomStringUtils.random(4, true, true);\n\t\t\tlogger.debug(\"Generated Random Number is : \" + num);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn num;\n\t}",
"private int randomValue() {\r\n\t\tRandom rand = new Random();\r\n\t\tint val = rand.nextInt(10);\r\n\t\tif(val == 9)\r\n\t\t\treturn 4;\r\n\t\telse\r\n\t\t\treturn 2;\r\n\t}",
"public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}",
"private int getRandNumber() {\n int randNum = 0;\n Random generator = new Random();\n randNum = generator.nextInt(LIST.length()-1);\n return randNum;\n }",
"private int generateRandomNumber() {\n\t\treturn (int) Math.floor(Math.random() * Constants.RANDOM_NUMBER_GENERATOR_LIMIT);\n\t}",
"public void randomize(){\r\n Num1.setText(\"\"+((int) (Math.random() * 10 + 1)));\r\n Num2.setText(\"\"+((int) (Math.random() * 10 + 1)));\r\n Num3.setText(\"\"+((int) (Math.random() * 10 + 1)));\r\n }",
"public void generateNewSecret() {\r\n \r\n //Get Random Number With Correct Digits\r\n int intRand = randomNumberGenerator.nextInt((int)(Math.pow(10, numDigits) - Math.pow(10, numDigits - 1))) + (int)Math.pow(10, numDigits - 1);\r\n \r\n //Set To String\r\n String strRand = String.valueOf(intRand);\r\n \r\n //Set Value\r\n secretNumber = convertNumToDigitArray(strRand);\r\n \r\n }",
"public int root2(){\n\t\t\tRandom r1=new Random();\n\t\t\tint r2= r1.nextInt((9) + 1) + 1;\n\t\t\treturn r2;\n\t}",
"public int randomNum() {\n\t\treturn 1 + (int) (Math.random() * 3); // randomNum = minimum + (int)(Math.random() * maximum);\n\t}",
"public static String randomNumberString() {\n\r\n Random random = new Random();\r\n int i = random.nextInt(999999);\r\n\r\n\r\n return String.format(\"%06d\", i);\r\n }",
"private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}",
"public static int generateRandomNumber()\n\t{\n\t\tRandom r = new Random();\n\t\treturn r.nextInt();\n\t}",
"public void generarId() {\n try{\n int numAleatorio = (int)(Math.random()*99999);\n boolean resultado = dgt.generarIdAutomatico(numAleatorio);\n tfid.setText(String.valueOf(numAleatorio));\n }catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}",
"public static int generateDigit() {\n\t\t\n\t\treturn (int)(Math.random() * 10);\n\t}",
"public int getRandomsNumber(){\n Random random = new Random();\n int number = random.nextInt(12) + 1;\n return number;\n }",
"void random(){\r\n Random dice = new Random ();\r\n int number;\r\n \r\n for (int counter=1; counter<=10;counter++);\r\n number = 10000+dice.nextInt(100000);\r\n \r\n String hasil = TF3.getText();\r\n isi4.setText(number + \" \");\r\n }",
"public Position randposition()\r\n\t{\n\t\tRandom random = new Random();\r\n\t\tPosition position = new Position(random.nextInt(7680), random.nextInt(4320), random.nextDouble());\r\n\t\treturn position;\r\n\t}",
"public static Node buildRandomTree() {\n\t\tNode root = createNode(15);\n\t\troot.leftChild = createNode(10);\n\t\troot.rightChild = createNode(4);\n\t\troot.leftChild.leftChild = createNode(25);\n\t\troot.leftChild.leftChild.rightChild = createNode(27);\n\t\troot.leftChild.leftChild.leftChild = createNode(13);\n\t\troot.leftChild.rightChild = createNode(25);\n\t\troot.leftChild.rightChild.rightChild = createNode(7);\n\t\t\n\t\treturn root;\n\t}",
"private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }",
"public int randomMove()\r\n {\r\n r = new Random();\r\n x = r.nextInt(7);\r\n return x;\r\n }",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}",
"public static String randomNumberGenerator() {\r\n\t\tint max = 999999999; // e.g. 714053349 (9 digits)\r\n\t\tRandom rand = new Random();\r\n\t\tint min = 0;\r\n\t\tint randomNum = rand.nextInt(max - min + 1) + min;\r\n\t\treturn Integer.toString(randomNum);\r\n\t}",
"private void getRandomNumber() {\n\t\tRandom random = new Random();\n\t\tint randomCount = 255;\n\t\tint randNum = 0; \n\t\tfor(int i = 0; i < numberAmt; i++) {\n\t\t\trandNum = random.nextInt(randomCount);\n\t\t\tswitch (numberType) {\n\t\t\tcase 1:\n\t\t\t\trandomNumbers.add(Integer.toString(randNum));\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(randNum > 15)\n\t\t\t\t\trandomNumbers.add(String.format(\"%8s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\telse\n\t\t\t\t\trandomNumbers.add(String.format(\"%4s\", Integer.toBinaryString(randNum)).replace(\" \", \"0\"));\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\trandomNumbers.add(Integer.toHexString(randNum));\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static double randomNum(Random g)\n\t{\n\t\treturn -5+g.nextDouble()*10;\n\t}",
"public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}",
"public static String generateMobNum() {\n\t\tString number = RandomStringUtils.randomNumeric(10);\t\n\t\treturn (number);\n\t}",
"public GameNode(Random rng) {\n this.number = rng.nextInt(8) + 1;\n this.next = null;\n }",
"public static String generateRandomInteger() {\n SecureRandom random = new SecureRandom();\n int aStart = 1;\n long aEnd = 999999999;\n long range = aEnd - (long) aStart + 1;\n long fraction = (long) (range * random.nextDouble());\n long randomNumber = fraction + (long) aStart;\n return String.valueOf(randomNumber);\n }",
"private void random() {\n\n\t}",
"public static int getRandomAmount(){\n return rand.nextInt(1000);\n }",
"private static int newNumber()\n\t{\n\t\tdouble initial = Math.random();\n\t\tdouble rangeAdjusted = initial * (10000 - 1001) + 1000;\n\t\tint rounded = (int)Math.round(rangeAdjusted);\n\t\treturn rounded;\n\t}",
"public int randomGQ() {\n\t\treturn(getRandomInteger(10,100));\n\t}",
"public int NewMonster(){\n int r = (int) (Math.random() * (9 - 2 + 1) + 2);\n return r;\n }",
"private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }",
"public static int randomPosition(){\r\n int max = 4;\r\n int min = 1;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n int pos = randNum;\r\n \r\n return pos;\r\n }",
"protected NNode getRandomNode() {\n\t\tArrayList<NNode> nodearr = new ArrayList<NNode>();\n\t\tnodearr.addAll(nodes.values());\n\t\treturn nodearr.get(Braincraft.randomInteger(nodearr.size()));\n\t}",
"public static int randomNumber(){\r\n int max = 10;\r\n int min = 0;\r\n int range = max-min+1;\r\n \r\n int randNum = (int)(Math.random()*range) + min;\r\n \r\n return randNum;\r\n }",
"private int getRandomNumber() {\n int randomInt = 0;\n Random randomGenerator = new Random();\n randomInt = randomGenerator.nextInt(NUM_LIST.length());\n if (randomInt - 1 == -1) {\n return randomInt;\n } else {\n return randomInt - 1;\n }\n }",
"@Override\n public Integer pee() {\n return (int) (random() * 8);\n }",
"public void generateNumbers() {\n number1 = (int) (Math.random() * 10) + 1;\n number2 = (int) (Math.random() * 10) + 1;\n operator = (int) (Math.random() * 4) + 1;\n //50% chance whether the displayed answer will be right or wrong\n rightOrWrong = (int) (Math.random() * 2) + 1;\n //calculate the offset of displayed answer for a wrong equation (Error)\n error = (int) (Math.random() * 4) + 1;\n generateEquation();\n }",
"@Override\r\n\tpublic String rollString() {\r\n\t\treturn \"\"+Randomizer.getRandomNumber(possibleValues);\r\n\t}",
"public int pickNumber() {\n\t\t\n\t\tint max=10;\n\t\t\n\t\tint i = (int) Math.floor((Math.random()*max)+1);\n\t\treturn i;\n\t\t\n\t}",
"public String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(899999) + 100000;\n\n // this will convert any number sequence into 6 character.\n String formatted_code = String.format(\"%06d\", number);\n\n return formatted_code;\n }",
"public static int getRandomNum() {\n\t\tRandom rand = new Random();\n\t\tint num = rand.nextInt(3)+1;\n\t\treturn num;\n\t}",
"protected Random get_rand_value()\n {\n return rand;\n }",
"private void setAccountNumber() // setare numar de cont\n {\n int random = ThreadLocalRandom.current().nextInt(1, 100 + 1);\n accountNumber = ID + \"\" + random + SSN.substring(0,2);\n System.out.println(\"Your account number is: \" + accountNumber);\n }",
"public int generateNumber(int difficulty) {\n Random generator = new Random();\n return 1 + generator.nextInt((int) Math.pow(10, difficulty));\n }",
"private int randomNumber(int high, int low){\n \t\t Random r = new Random();\n \t\t return (r.nextInt(high-low) + low);\n \t }",
"private void setRandomBalloonNumber(View balloon) {\n int viewId = balloon.getId();\n TextView childPrimeTv = (TextView) findViewById(globalChildTextContainer.get(viewId));\n Random rand = new Random();\n int n = rand.nextInt(MAX_NUMBER) + MIN_NUMBER;\n childPrimeTv.setText(n + \"\");\n }",
"private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }",
"public int getRandomBreed() {\n Random r = new Random();\n// displayToast(Integer.toString(getRandomBreed())); // not needed. generates another random number\n return r.nextInt(6);\n }",
"private int _randomCode () {\n Random random = new Random();\n code = random.nextInt(999999);\n return code;\n }",
"private synchronized static String getNextNumber() {\n String toReturn;\n String number = String.valueOf(Math.round(Math.random() * 89999) + 10000);\n if(meetings.containsKey(number)) {\n toReturn = getNextNumber();\n } else {\n toReturn = number;\n }\n return toReturn;\n }",
"public static int getRandom() \n\t{\n\t\treturn rGenerator.nextInt();\n\t}",
"private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}",
"protected int pathDrawLots(int bound)\n {\n Random r= new Random();\n int num = r.nextInt(bound);\n return num;\n\n\n }",
"public static String getRandomNumberString() {\n Random rnd = new Random();\n int number = rnd.nextInt(9999999);\n\n // this will convert any number sequence into 6 character.\n return String.format(\"%07d\", number);\n }",
"public int rand(int idT){\r\n Random r = new Random(); \r\n int Low = ((idT*2) + (idT-2));\r\n int High = idT*3;\r\n \r\n int R = r.nextInt ((High+1)-Low) + Low;\r\n System.out.print(\"Low :\"+Low+\",\"+\" high :\"+High+ \" \");\r\n return R;\r\n }",
"private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}",
"public int getRandom() {\n Random rand = new Random();\n int count = 0;\n int res = node.val;\n while (node != null) {\n if (rand.nextInt(count + 1) == count) res = node.val;\n node = node.next;\n count++;\n }\n return res;\n }",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\tRandNum = (int)(Math.random()*100);\r\n\t\t\tresult.setText(Integer.toString(RandNum));\r\n\t\t}",
"public void randomX() {\r\n\t\tdouble randomDub = Math.random();\r\n\t\tint randomIntX = (int)randomDub*4;\r\n\t\tthis.xcoord = randomIntX;\r\n\t}",
"public static String randInt(){\n return String.valueOf(rand.nextInt(10));\n }",
"private static int addRandomScore() {\n Random ran = new Random();\n return ran.nextInt(201) + 400;\n }",
"public ExpressionNode randExpression () {\n int randNum = (int)(Math.random() * 4);\n if (randNum == 0) {\n return (new Multiply(this.height -1));\n }\n else if (randNum == 1) {\n return (new Average(this.height -1));\n }\n else if (randNum == 2) {\n return (new Sine(this.height -1));\n }\n else {\n return (new Cosine(this.height -1));\n }\n }",
"public void Random(){\n Random rd=new Random();\n jTextField1.setText(\"\"+rd.nextInt(5000+1));\n }",
"public int generateRandom(Random ran)\n {\n if(nums.size()<=0)\n {\n Log.i(\"test\",\"No Pokemon left\");\n return 0;\n }\n return nums.remove(ran.nextInt(nums.size()));\n }",
"public int hideBomb() {\r\n\r\n\t\tint randomLocation = (int) Math.floor(Math.random() * 9);\r\n\t\trandomLocation = Math.round(randomLocation);\r\n\r\n\t\treturn randomLocation; \r\n\r\n\t}",
"private int generatePiece()\n\t{\n\t\tint toReturn = 0;\n\t\tint max = 1;\n\t\tint min = -1;\n\t\t\n\t\twhile(toReturn == 0)\n\t\t{\n\t\t\ttoReturn = r.nextInt((max - min) + 1) + min;\n\t\t}\n\t\tSystem.out.println(toReturn);\n\t\treturn toReturn;\n\t}",
"@Override\n public int orinar() {\n\n return (int) (Math.random() * 400) + 400;\n }",
"public static int getRandomNumberString() {\n // It will generate 6 digit random Number.\n // from 0 to 999999\n Random rnd = new Random();\n int number = rnd.nextInt(999999);\n\n // this will convert any number sequence into 6 character.\n return number;\n }",
"public int decideRandomMove() {\n return (int) (Math.random() * 4);\n }",
"@Override\r\n public int positionRandom() {\r\n int random = ((int) (Math.random() * arrayWords.length - 1) + 1);//define a random number with lengt more one for not getout the number zero\r\n return random;\r\n }",
"private double getRandom() {\n return 2*Math.random() - 1;\n }",
"public int getRandomNumber() {\n int Random;\n Random randomize = new Random();\n Random = randomize.nextInt(3);\n return new Integer(Random);\n }",
"public void randomize() {\r\n\t\tRandom random = new Random();// random generator used to get random int\r\n\t\tint r;// will hold the random int\r\n\t\tint num;// will hold the filtered random int that determines with entity to use for a tile\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\tr = random.nextInt(32);// gets random int from 0 to 32\r\n\t\t\t\tif (r < 4) num = 0; else if (r < 8) num = 1; else if (r < 31) num = 2; else num = 3;// distributes different objects\r\n\t\t\t\tif (nodes[i * WIDTH_TILES + j].isOccupied() == false) {// if tile empty or random chosen\r\n\t\t\t\t\tnodes[i * WIDTH_TILES + j] = new Node(new Point(i * BOARD_WIDTH / WIDTH_TILES, j * BOARD_WIDTH / HEIGHT_TILES), new ImageIcon(icons[num]).getImage(), true, occupants[num]);// creates random tile\r\n\t\t\t\t}// if (random)\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t}",
"private static int getNumber() {\n LOG.info(\"Generating Value\");\n return 1 / 0;\n }",
"public void nextQuestion(View view) {\n\n Integer num1, num2;\n num1=generateRandomNumber(100);\n num2=generateRandomNumber(100);\n\n //set random number in textview\n TextView tv;\n tv=findViewById(R.id.question);\n tv.setText(Integer.toString(num1)+ \"X\" + Integer.toString(num2));\n\n }",
"private int randomInteger(int n) {\n return (int) (randGen.random() * (n - 1));\n }"
]
| [
"0.7000259",
"0.6974828",
"0.68785816",
"0.6801886",
"0.6745962",
"0.671262",
"0.6671855",
"0.66640276",
"0.6627928",
"0.6548233",
"0.6503755",
"0.64350814",
"0.64350605",
"0.64330757",
"0.64145434",
"0.63953227",
"0.63941264",
"0.63414073",
"0.63177216",
"0.6303295",
"0.62893426",
"0.62730694",
"0.62676936",
"0.6266015",
"0.6261079",
"0.6258052",
"0.6257307",
"0.62270707",
"0.6225127",
"0.62177616",
"0.6213935",
"0.62087876",
"0.62064654",
"0.61730146",
"0.6160967",
"0.6156847",
"0.61426944",
"0.6128915",
"0.61218536",
"0.6120922",
"0.61190337",
"0.61140645",
"0.6100076",
"0.6092724",
"0.60867953",
"0.60764426",
"0.6064016",
"0.6049949",
"0.60442865",
"0.6043522",
"0.6034453",
"0.60267746",
"0.60189766",
"0.60139555",
"0.60073453",
"0.5985191",
"0.59824044",
"0.59682715",
"0.59548956",
"0.5944701",
"0.59248745",
"0.592275",
"0.5911447",
"0.5910463",
"0.5904563",
"0.5902291",
"0.59013635",
"0.589383",
"0.5892855",
"0.58850324",
"0.5884785",
"0.5869431",
"0.58416677",
"0.5837134",
"0.58275837",
"0.5823941",
"0.5818698",
"0.58180594",
"0.58104724",
"0.5797098",
"0.57888466",
"0.5781779",
"0.5779727",
"0.57777566",
"0.57741034",
"0.5770136",
"0.576844",
"0.57668513",
"0.57655644",
"0.5759186",
"0.5754148",
"0.5753071",
"0.5749634",
"0.57301563",
"0.57255816",
"0.5715648",
"0.5715606",
"0.5712562",
"0.57095796",
"0.5703181",
"0.56976384"
]
| 0.0 | -1 |
selects a node randomly from the tree given that the parent is already displayed | private double chooseValueFromTree() {
// first add all available values to this list.
// then choose one randomly
List<Double> availableNumbers = new ArrayList<>();
// traverse all displayed nodes and add the values of their immediate
// children
for (BinaryTreeNode n : this.displayedNodes) {
String id = n.getID();
if (id.length() < this.height) {
BinaryTreeNode left = this.tree.getNodeById(id + "l");
// dont want to generate the number of a node that is both the child of a
// displayed node but is also already displayed
if (!this.displayedNodes.contains(left)) {
double leftVal = left.getValue();
availableNumbers.add(leftVal);
}
// dont want to generate the number of a node that is both the child of a
// displayed node but is also already displayed
BinaryTreeNode right = this.tree.getNodeById(id + "r");
if (!this.displayedNodes.contains(right)) {
double rightVal = right.getValue();
availableNumbers.add(rightVal);
}
}
}
// now choose a value randomly
int randomIndex = (int) (Math.random() * availableNumbers.size());
return availableNumbers.get(randomIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"treeNode selectNode(treeNode root, MTRandom clustererRandom){\n\t\t\n\t\t//random number between 0 and 1\n\t\tdouble random = clustererRandom.nextDouble();\n\t\t\n\t\twhile(!isLeaf(root)){\n\t\t\tif(root.lc.cost == 0 && root.rc.cost == 0){\n\t\t\t\tif(root.lc.n == 0){\n\t\t\t\t\troot = root.rc;\n\t\t\t\t} else if(root.rc.n == 0){\n\t\t\t\t\troot = root.lc;\n\t\t\t\t}else if(random < 0.5){\n\t\t\t\t\trandom = clustererRandom.nextDouble();\n\t\t\t\t\troot = root.lc;\n\t\t\t\t} else {\t\t\n\t\t\t\t\trandom = clustererRandom.nextDouble();\t\t\n\t\t\t\t\troot = root.rc;\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\tif(random < root.lc.cost/root.cost){\n\t\t\t\n\t\t\t\t\troot = root.lc;\n\t\t\t\t} else {\t\t\n\n\t\t\t\t\troot = root.rc;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn root;\n\t}",
"public NCRPNode select() {\n\t\t\t\n\t\t\t//dim number of children + 1 (unallocated mass) \n\t\t\tdouble[] weights = new double[children.size() + 1];\n\t \n\t\t\t//weight of unallocated probability mass\n\t\t\tweights[0] = gamma / (gamma + customers);\n\t\t\t\n\t\t\t//calc weight for each child based on the number of customers on them\n\t\t\tint i = 1;\n\t\t\tfor (NCRPNode child: children) {\n\t\t\t\tweights[i] = (double) child.customers / (gamma + customers);\n\t\t\t\ti++;\n\t\t\t}\n\n\t\t\t//sample a child with higher weight\n\t\t\tint choice = random.nextDiscrete(weights);\n\t\t\t//if unallocated mass is sampled, create a new child\n\t\t\tif (choice == 0) {\n\t\t\t\treturn(addChild());\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn children.get(choice - 1);\n\t\t\t}\n\t\t}",
"private Node pickRandomNode(){\r\n\t\tNode node = null;\r\n\r\n\t\ttry (Transaction tx = graphDb.beginTx()){\r\n\t\t\t//Find a random node from the database, using the unique id attribute\r\n\t\t\tint nodeId = random.nextInt(totalGraphNodes);\r\n\t\t\t//node = graphDb.findNode(LabelEnum.Person, \"id\" , nodeId);\r\n\t\t\tnode = graphDb.getNodeById(nodeId);\r\n\t\t\ttx.success();\r\n\t\t}\r\n\t\treturn node;\r\n\t}",
"private void sampleEdge() {\n int rand = RandomUtil.getInstance().nextInt(\n getNumNodes() * (getNumNodes() - 1));\n randomParent = rand / (getNumNodes() - 1);\n int rest = rand - randomParent * (getNumNodes() - 1);\n if (rest >= randomParent) {\n randomChild = rest + 1;\n }\n else {\n randomChild = rest;\n }\n }",
"private static int chooseParent() {\n\t\tint parent = 0;\n\t\tChromosome thisChromo = null;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\t// Randomly choose an eligible parent.\n\t\t\tparent = getRandomNumber(0, population.size() - 1);\n\t\t\tthisChromo = population.get(parent);\n\t\t\tif (thisChromo.selected() == true) {\n\t\t\t\tdone = true;\n\t\t\t}\n\t\t}\n\n\t\treturn parent;\n\t}",
"protected NNode getRandomNode() {\n\t\tArrayList<NNode> nodearr = new ArrayList<NNode>();\n\t\tnodearr.addAll(nodes.values());\n\t\treturn nodearr.get(Braincraft.randomInteger(nodearr.size()));\n\t}",
"public BTNode getRandomNodeBadTime() {\n\t\tint toFind = (int)(Math.random() * size + 1);\n\t\tQueue<BTNode> q = new LinkedList<BTNode>();\n\t\tq.add(tree);\n\t\tBTNode current = new BTNode(0);\n\t\tfor (int i = 1; i <= toFind; i++) {\n\t\t\tcurrent = q.poll();\n\t\t\t\n\t\t\tif (current != null) {\n\t\t\t\tq.add(current.left);\n\t\t\t\tq.add(current.right);\n\t\t\t}\n\t\t}\n\t\treturn current;\n\t}",
"public void insertRandom() {\n // Create new node\n CriteriaNode newNode = generateRandomNonterminalNode();\n\n // Get random leaf node\n Node[] nodes = getRandomTerminalNode();\n Node prev = nodes[PREV];\n Node node = nodes[CURR];\n\n // Replace either left or right with a random CriteriaNode\n if (prev == null) {\n // If tree has only a root node\n if (U.chance()) {\n root.left = newNode;\n } else {\n root.right = newNode;\n }\n } else {\n // Replace the correct reference of prev with the new node\n if (prev.left == node) {\n prev.left = newNode;\n } else {\n prev.right = newNode;\n }\n }\n }",
"@Override\r\n\tpublic final Genome chooseParent() {\r\n\t\tGenome baby;\r\n\r\n\t\t// If there is a single member, then choose that one.\r\n\t\tif (this.members.size() == 1) {\r\n\t\t\tbaby = this.members.get(0);\r\n\t\t} else {\r\n\t\t\t// If there are many, then choose the population based on survival\r\n\t\t\t// rate\r\n\t\t\t// and select a random genome.\r\n\t\t\tfinal int maxIndexSize \r\n\t\t\t= (int) (this.population.getSurvivalRate() * this.members\r\n\t\t\t\t\t.size()) + 1;\r\n\t\t\tfinal int theOne = (int) RangeRandomizer.randomize(0, maxIndexSize);\r\n\t\t\tbaby = this.members.get(theOne);\r\n\t\t}\r\n\r\n\t\treturn baby;\r\n\t}",
"private static int chooseParent(final int parentA) {\n\t\tint parent = 0;\n\t\tChromosome thisChromo = null;\n\t\tboolean done = false;\n\n\t\twhile (!done) {\n\t\t\t// Randomly choose an eligible parent.\n\t\t\tparent = getRandomNumber(0, population.size() - 1);\n\t\t\tif (parent != parentA) {\n\t\t\t\tthisChromo = population.get(parent);\n\t\t\t\tif (thisChromo.selected() == true) {\n\t\t\t\t\tdone = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn parent;\n\t}",
"public static Node buildRandomTree() {\n\t\tNode root = createNode(15);\n\t\troot.leftChild = createNode(10);\n\t\troot.rightChild = createNode(4);\n\t\troot.leftChild.leftChild = createNode(25);\n\t\troot.leftChild.leftChild.rightChild = createNode(27);\n\t\troot.leftChild.leftChild.leftChild = createNode(13);\n\t\troot.leftChild.rightChild = createNode(25);\n\t\troot.leftChild.rightChild.rightChild = createNode(7);\n\t\t\n\t\treturn root;\n\t}",
"public static void populateTreeRandom(BinarySearchTree tree)\n {\n int currentNumber = 0;\n\n System.out.println(\"RANDOM NUMBERS PRE POPULATION: \" );\n\n for(int i = 1; i < 101; i++)\n {\n currentNumber = (int) (Math.random() * 100);\n\n System.out.printf(\"%3d \", currentNumber);\n\n if(i % 20 == 0)\n {\n System.out.println();\n }\n\n tree.add(currentNumber);\n }\n\n System.out.println();\n }",
"public TreeNode getRandomNodeLeftSize(){\n\n Random random = new Random();\n int randomIndex = random.nextInt(size());\n return getRandomIndexNode(randomIndex);\n }",
"public static Tree chooseRandTree(double[] distribution, Tree[] trees){\n double r = new Random().nextDouble();\n //System.out.println(r);\n //System.out.println(Arrays.toString(distribution));\n for (int i = 0; i < distribution.length; i++){\n if (r <= distribution[i]){\n return trees[i];\n }\n \n }\n return null;\n \n \n }",
"Genome chooseParent();",
"public int getRandom() {\n return sub.get(rand.nextInt(sub.size()));\n }",
"private ArrayList<Chromosome> selectParentsRandom() {\n ArrayList<Chromosome> parents = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n\n for (int i = 0; i < Defines.crossoverParentCt; i++) {\n // Generate random index into chromosomes in range [0..size-1]\n int randomParent = Defines.randNum(0, chromosomes.size() - 1);\n // Remember the new parent\n parents.add(chromosomes.get(randomParent));\n }\n return parents;\n }",
"public Item sample() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the number is: \" + index);\n int k = 0;\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t return p.item;\n }",
"public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }",
"public int getRandom() {\n Random rand = new Random();\n int count = 0;\n int res = node.val;\n while (node != null) {\n if (rand.nextInt(count + 1) == count) res = node.val;\n node = node.next;\n count++;\n }\n return res;\n }",
"protected void randomStep() {\n\t\tint n = curNode.getDegree();\n\t\tint r = 0;\n\n\t\tif (n > 0) {\n\t\t\tr = ctx.random().nextInt(n);\n\n\t\t\tAntCo2Edge curEdge = (AntCo2Edge) curNode.getEdge(r);\n\n\t\t\tassert curEdge != null : \"found no edge\";\n\n\t\t\tcross(curEdge, true);\n\t\t}\n\t}",
"RandomizedRarestFirstSelector(Random random) {\n this.random = random;\n }",
"@Override\n public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n return treeGenerator;\n }",
"public void removeRandom() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes == null)\n return;\n \n // Generate random DecisionNode to replace\n DecisionNode replacementNode = DecisionNode.getRandom();\n \n // Update prev reference\n if (nodes[PREV].left == nodes[CURR]){\n nodes[PREV].left = replacementNode;\n } else {\n nodes[PREV].right = replacementNode;\n }\n }",
"public abstract String getSelectedNode();",
"public int insert(){ // Wrapper insert function, passes random values to insert integer data in the tree.\n Random rn = new Random();\n\n\n for (int i = 0; i < 10; ++i)\n {\n insert(3);\n insert(5);\n insert(9);\n insert(5);\n insert(8);\n insert(1);\n insert(7);\n insert(4);\n insert(3);\n }\n return 1;\n }",
"@Override\n public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n return treeGenerator;\n }",
"public int getRandom() {\r\n\r\n\t\tListNode temp = this.head;\r\n\t\tListNode random = this.head;\r\n\r\n\t\tint c = 1;\r\n\r\n\t\tfor (; temp != null; temp = temp.next) {\r\n\r\n\t\t\tint r = new Random().nextInt(c) + 1;\r\n\r\n\t\t\tc++;\r\n\t\t\tif (r == 1) {\r\n\t\t\t\trandom = temp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn random.val;\r\n\r\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tTreeNodeRandom tree = new TreeNodeRandom(10);\r\n\t\tTreeNodeRandom n2 = new TreeNodeRandom(6);\r\n\t\tTreeNodeRandom n3 = new TreeNodeRandom(12);\r\n\t\tTreeNodeRandom n4 = new TreeNodeRandom(5);\r\n\t\tTreeNodeRandom n5 = new TreeNodeRandom(8);\r\n\t\tTreeNodeRandom n6 = new TreeNodeRandom(11);\r\n\t TreeNodeRandom n7 = new TreeNodeRandom(13);\r\n\t TreeNodeRandom n8 = new TreeNodeRandom(7);\r\n\t TreeNodeRandom n9 = new TreeNodeRandom(9);\r\n\t tree.left = n2;\r\n\t tree.right = n3;\r\n\t tree.random = n2;\r\n\t n2.left = n4;\r\n\t n2.right = n5;\r\n\t n2.random = n8;\r\n\t n3.left = n6;\r\n\t n3.right = n7;\r\n\t n3.random = n5;\r\n\t n4.random = n9;\r\n\t n5.left = n8;\r\n\t n5.right = n9;\r\n\t n5.random = tree;\r\n\t n6.random = n9;\r\n\t n9.random = n8;\r\n\t\t\r\n\t\t\r\n\t\tCloneNodeWithRandomPtr obj = new CloneNodeWithRandomPtr();\r\n\t\tobj.displayTree(tree);\r\n\t\tSystem.out.println();\r\n\t\tTreeNodeRandom temp = tree;\r\n\t\tTreeNodeRandom c = obj.cloneLeftRight(tree);\r\n\t\t//TreeNodeRandom c = obj.cloneNodeHashmap(tree);\r\n\t\tobj.displayTree(tree);\r\n\t}",
"public void onNodeSelect(NodeSelectEvent event) {\n if (event.getTreeNode().getType().equalsIgnoreCase(TreeNodeType.PARENT.getLabel()))\n productToolOperation.loadTemplateByCategory(getOnlyChild(), event.getTreeNode());\n }",
"public Node[] getRandomNonterminalNode(boolean depthLimited){\n ArrayList<Node[]> list = new ArrayList();\n if (!depthLimited){\n constructListOfNonTerminalPairsRec(list, root.left, root, (short)1);\n constructListOfNonTerminalPairsRec(list, root.right, root, (short)1);\n } else {\n constructListOfNonTerminalPairsLimitedDepthRec(list, root.left, root, (short)1);\n constructListOfNonTerminalPairsLimitedDepthRec(list, root.right, root, (short)1);\n }\n\n if (list.isEmpty()){\n return null;\n }\n int rand = new Random().nextInt(list.size());\n \n // choose random pair\n return list.get(rand);\n }",
"public Individual selectIndividual(Population population) {\n // Get individuals\n List<Individual> individuals = population.getPopulation();\n\n // Spin roulette wheel\n double populationFitness = population.getPopulationFitness();\n double rouletteWheelPosition = Math.random() * populationFitness;\n\n // Find parent\n double spinWheel = 0;\n for (Individual individual : individuals) {\n spinWheel += individual.getFitness();\n if (spinWheel >= rouletteWheelPosition) {\n return individual;\n }\n }\n return individuals.get(population.size() - 1);\n }",
"public void randomize() {\r\n\t\tRandom random = new Random();// random generator used to get random int\r\n\t\tint r;// will hold the random int\r\n\t\tint num;// will hold the filtered random int that determines with entity to use for a tile\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\tr = random.nextInt(32);// gets random int from 0 to 32\r\n\t\t\t\tif (r < 4) num = 0; else if (r < 8) num = 1; else if (r < 31) num = 2; else num = 3;// distributes different objects\r\n\t\t\t\tif (nodes[i * WIDTH_TILES + j].isOccupied() == false) {// if tile empty or random chosen\r\n\t\t\t\t\tnodes[i * WIDTH_TILES + j] = new Node(new Point(i * BOARD_WIDTH / WIDTH_TILES, j * BOARD_WIDTH / HEIGHT_TILES), new ImageIcon(icons[num]).getImage(), true, occupants[num]);// creates random tile\r\n\t\t\t\t}// if (random)\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t}",
"void selectBlock(byte pos) {\n if (pos <= getChildren().size) {\n selected = pos;\n for (Actor c : getChildren()) {\n c.setScale(0.35f);\n }\n getChildren().get(selected).setScale(0.4f);\n }\n }",
"private void randForest(int x, int y) {\n\t\tint rand = random.nextInt(10);\n\t\tif (rand == 1) {\n\t\t\tentities.add(new Tree(x << 4, y << 4));\n\t\t\tgetTile(x, y).setSolid(true);\n\t\t}\n\n\t}",
"public T getRandomElement() {\n\t\treturn this.itemList.get(this.getRandomIndex());\n\t}",
"public DefaultMutableTreeNode getRequestedNode()\n {\n // Reset node to be displayed\n displayNode = root;\n \n // Iterate trough the path array\n for (int i = 0; i < pathArray.length; i++)\n {\n if (displayNode.getDepth() > 1)\n {\n displayNode = (DefaultMutableTreeNode)\n displayNode.getChildAt(pathArray[i]);\n }\n }\n \n // Return node to be displayed\n return displayNode;\n }",
"public int getRandom() {\n ListNode curr = head2;\n int r = rand.nextInt(size);\n for (int i=0; i<r; i++) {\n if (curr!= null){\n curr = curr.next;\n }\n }\n return curr.val;\n }",
"private Node chooseNode(Identity identity) {\n\t\treturn availableNodes.peek();\n\t}",
"private TreeNode getOnlyChild() {\n return templateRoot.getChildren().get(0);\n }",
"int pickTree(String actionStr)\r\n\t{\r\n\t\tboolean endLoop = false;\r\n\t\tString choiceStr = \"\";\r\n\t\tint intChoice = -1;\r\n\t\t\r\n\t\tif(createdTrees.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"No trees created. Please build a tree first.\");\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\tdo\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Which tree to \" + actionStr + \"?: (1 to \" + createdTrees.size() + \")\");\r\n\t\t\t\tchoiceStr = lineReader.nextLine();\r\n\t\t\t\t\r\n\t\t\t\tif(false == choiceStr.matches(\"[+-]?\\\\d\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tintChoice = Integer.parseInt(choiceStr);\r\n\t\t\t\t\r\n\t\t\t\tif((0 < intChoice) && (intChoice <= createdTrees.size()))\r\n\t\t\t\t{\r\n\t\t\t\t\tendLoop = true;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice. Please try again.\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NoSuchElementException|IllegalStateException|PatternSyntaxException|NumberFormatException e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Caught Exception: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}while(false == endLoop);\r\n\t\t\r\n\t\treturn (intChoice-1);\r\n\t}",
"public Sample SelectSample() {\n\t\t\n\t\tif(sample_map.size() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tfloat sum = 0;\n\t\tfloat min = Float.MAX_VALUE;\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tmin = Math.min(min, ptr.s.weight);\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tmin = Math.abs(min) + 1;\n\t\tptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tsum += ptr.s.weight + min;\n\t\t\tif(ptr.s.weight + min < 0) {\n\t\t\t\tSystem.out.println(\"neg val\");System.exit(0);\n\t\t\t}\n\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tfloat val = (float) (Math.random() * sum);\n\n\t\tsum = 0;\n\t\tptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tsum += ptr.s.weight + min;\n\n\t\t\tif(sum >= val) {\n\t\t\t\treturn ptr.s;\n\t\t\t}\n\t\t\t\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\tSystem.out.println(\"error\");System.exit(0);\n\t\treturn null;\n\t}",
"public void grow(Grid[][] map) {\n\t\tBranchNode parent = root;\r\n\t\twhile (parent.children.size() > 0) {\r\n\t\t\tif (parent.children.size() >= max_branch_per_node) {\r\n\t\t\t\t// if no more room at this branch\r\n\t\t\t\tparent = parent.children\r\n\t\t\t\t\t\t.get((int) (Math.random() * parent.children.size()));\r\n\t\t\t} else if (Math.random() < 0.5) {\r\n\t\t\t\t// if there is still room, picks randomly\r\n\t\t\t\tparent = parent.children\r\n\t\t\t\t\t\t.get((int) (Math.random() * parent.children.size()));\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint newX, newY; // X and Y coordinates for the new node.\r\n\t\tint r = (int) (Math.random() * GENE_TOTAL);\r\n\t\tint gene_count = width_gene[0];\r\n\t\tint width_select = 0;\r\n\t\twhile (r > gene_count) {\r\n\t\t\twidth_select += 1;\r\n\t\t\tgene_count += width_gene[width_select];\r\n\t\t}\r\n\t\tr = (int) (Math.random() * WIDTH_VARIATION);\r\n\t\tnewX = parent.x - WIDTH_VARIATION / 2 + (width_select - 2)\r\n\t\t\t\t* WIDTH_VARIATION + r;\r\n\t\tif (newX < 0) {// if goes off the grid, push back.\r\n\t\t\tnewX = 0;\r\n\t\t} else if (newX >= World.WORLD_WIDTH) {\r\n\t\t\tnewX = World.WORLD_WIDTH - 1;\r\n\t\t}\r\n\r\n\t\tr = (int) (Math.random() * GENE_TOTAL);\r\n\t\tgene_count = height_gene[0];\r\n\t\tint height_select = 0;\r\n\t\twhile (r > gene_count) {\r\n\t\t\theight_select += 1;\r\n\t\t\tgene_count += height_gene[height_select];\r\n\t\t}\r\n\t\tr = (int) (Math.random() * HEIGHT_VARIATION);\r\n\t\tnewY = parent.y + height_select * HEIGHT_VARIATION + r;\r\n\t\tif (newY >= World.WORLD_HEIGHT) {\r\n\t\t\tnewY = World.WORLD_HEIGHT - 1;\r\n\t\t}\r\n\r\n\t\t// add the branch to the total body.\r\n\t\tamount_of_tree += (int) Math.sqrt((newX - parent.x) * (newX - parent.x)\r\n\t\t\t\t+ (newY - parent.y) * (newY - parent.y));\r\n\t\tBranchNode child = new BranchNode(parent, newX, newY);\r\n\t\tparent.children.add(child);\r\n\r\n\t\tif (parent.leaf_alive) {\r\n\t\t\t// kill leaf, because branch is growing off of it\r\n\t\t\tparent.killLeaf(this, map);\r\n\t\t}\r\n\r\n\t\t// make new leaf on new branch\r\n\t\tchild.addLeaf(this, map);\r\n\t}",
"public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}",
"public void refresh()\n\t{\n\t\tNode master = new Node(\"Tyler\");\n\t\t//master.add(new Node(\"Test\"));\n\t\tmaster.addParent(new Node(\"Clinton\"));\n\t\tmaster.addParent(new Node(\"Terry\"));\n\t\t\n\t\tmaster.add(\"Justin\", \"Terry\"); \n\t\tmaster.add(\"Justin\", \"Clinton\"); \n\t\t//this adds directly under Terry\n\t\t//maybe do this differently...\n\t\t\n\t\t\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"Diana\"));\n\t\tmaster.findNode(\"Terry\").addParent(new Node(\"George\"));\n\t\t\n\t\tmaster.add(new Node(\"Tyler 2.0\"));\n\t\tmaster.add(new Node(\"Tyler 3.0\"));\n\t\tmaster.add(new Node(\"Tyler Jr\"));\n\t\t\n\n\t\tmaster.add(\"Tyler Jr Jr\", \"Tyler 2.0\");\n\t\t\n\t\tmaster.add(\"Tyler 3.0\", \"Tyler Jr 2.0\");\n\t\t\n\t\tmaster.findNode(\"Clinton\").addParent(new Node(\"Eric\"));\n\t\tmaster.findNode(\"Eric\").addParent(new Node(\"Eric's Dad\"));\n\t\t\n\t\t\n\t\tmaster.findNode(\"Tyler Jr Jr\", 6).add(new Node(\"Mini Tyler\"));\n\t\t//master.findNode(\"Clinton\", 2).add(new Node(\"Justin\"));\n\t\t\n\t\t\n\t\tmaster.getParent().get(0).findNode(\"Justin\", 3).add(new Node(\"Mini Justin\"));\n\t\t\n\t\tmaster.add(new Node(\"Laptop\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Keyboard\"));\n\t\tmaster.findNode(\"Laptop\").add(new Node(\"Mouse\"));\n\t\t\n\t\tmaster.add(\"Touchpad\", \"Laptop\");\n\t\t//master.add(\"Justin\", \"Eric\");\n\t\t\n\t\tmaster.add(\"Hunger\", \"Tyler\");\n\t\t\n\t\tselectedNode = master;\n\t\tselect(selectedNode);\n\t}",
"public Item getRandomItem() {\n int index = 0;\n int i = (int) (Math.random() * getItems().size()) ;\n for (Item item : getItems()) {\n if (index == i) {\n return item;\n }\n index++;\n }\n return null;\n }",
"static void setRandomMondrianColourRecursively(Context context, ViewGroup parent, int randomRange) {\n for (int i = 0; i <= parent.getChildCount(); i++) {\n View child = parent.getChildAt(i);\n if (child instanceof ViewGroup) {\n setRandomMondrianColourRecursively(context, (ViewGroup) child, randomRange);\n } else if (child != null && child.getTag() == context.getString(R.string.mondrian_rect)) {\n child.setBackgroundResource(getMondrianColour(randomRange));\n }\n }\n }",
"public GAIndividual selectParent(Vector pop);",
"private void selectRandomPlayer() {\n Random rand = new Random();\n // Restrict random number range to available indexes in the players list.\n // - 1 to offset zero-based index numbering.\n int random = rand.nextInt(players.size());\n activePlayer = players.get(random);\n }",
"public void mutateNonterminalNode() {\n Node[] nodes = getRandomNonterminalNode(false);\n if (nodes != null)\n ((CriteriaNode) nodes[1]).randomizeIndicator();\n }",
"public int getRandom() {\n int n = r.nextInt(this.length);\n ListNode curr = this.head;\n \n while (n > 0) {\n curr = curr.next;\n n--;\n }\n \n return curr.val;\n }",
"public T getRandom()\n\t{\n\t\tDLLNode<T> newNode = head;\n\t\tint randomNum = (int)(Math.random()*size);\n\t\tfor(int i =0; i<randomNum; i++){\n\t\t\tnewNode= newNode.getNext();\n\t\t}\n\t\treturn newNode.getData();\n\t}",
"public void addRandomKids(OperatorFactory o, TerminalFactory t,\r\n int maxDepth, Random rand) {}",
"public void selectParents1() {\n // Create a new parent list for this reproductive cycle. Let the garbage\n // handler dispose of the old list, if there was one.\n switch (Defines.parentAlgo) {\n case Defines.PA_RANDOM:\n this.parents = this.selectParentsRandom();\n break;\n\n case Defines.PA_ROULETTE:\n this.parents = this.selectParentsRoulette();\n break;\n\n case Defines.PA_TOURNAMENT:\n this.parents = this.selectParentsTournament();\n break;\n }\n// this.howGoodAreParents();\n }",
"public String pickFork() {\r\n\t\t\tString fork = \"right-fork\";\r\n\t\t\t// pick random fork if don't have any\r\n\t\t\tif (!forks[0] && !forks[1]) {\r\n\t\t\t\tRandom r = new Random();\r\n\t\t\t\tif (r.nextInt(9) + 1 <= 5) {\r\n\t\t\t\t\tfork = \"left-fork\";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfork = \"right-fork\";\r\n\t\t\t\t}\r\n\t\t\t} else if (!forks[0]) {\r\n\t\t\t\tfork = \"left-fork\";\r\n\t\t\t}\r\n\t\t\treturn fork;\r\n\t\t}",
"@Test\n public void testChooseLocalNode() {\n DatanodeDescriptor localNode = dataNodes[0];\n for (int i = 0; i < CHOOSE_TIMES; i++) {\n DatanodeStorageInfo[] targets =\n namenode.getNamesystem().getBlockManager().getBlockPlacementPolicy()\n .chooseTarget(FILE, 1, localNode,\n new ArrayList<DatanodeStorageInfo>(), false, null, BLOCK_SIZE,\n TestBlockStoragePolicy.DEFAULT_STORAGE_POLICY, null);\n Assert.assertEquals(1, targets.length);\n Assert.assertEquals(localNode, targets[0].getDatanodeDescriptor());\n }\n }",
"private static TETile randomTile() {\n int tileNum = RANDOM.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.TREE;\n case 1: return Tileset.FLOWER;\n case 2: return Tileset.GRASS;\n case 3: return Tileset.SAND;\n case 4: return Tileset.MOUNTAIN;\n default: return Tileset.NOTHING;\n }\n }",
"public void randomizeCategory() {\n this.group = (int) (3*Math.random()+1);\n }",
"private void findRandomItem(TreeMap<Double, String> randomTreeMap)\r\n \t{\r\n \t\tif(randomTreeMap.size() > 1)\r\n \t\t{\r\n\t\t\trandomTreeMap.remove(randomTreeMap.ceilingEntry(Math.random()).getKey());\r\n \t\t\tfindRandomItem(randomTreeMap);\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\treturn;\r\n \t\t}\r\n \t}",
"public BTNode getRandomNodeBadSpace() {\n\t\tint toFind = (int)(Math.random() * size);\n\t\treturn arr.get(toFind);\n\t}",
"public void setRandomSpawn(final Random random)\r\n {\r\n final List<Double> rows = new ArrayList<>();\r\n \r\n final double column;\r\n \r\n //get a random true/false result\r\n if (random.nextBoolean())\r\n {\r\n //here we will do west\r\n column = 0.5;\r\n }\r\n else\r\n {\r\n //here we will do east\r\n column = COLUMNS - 0.5;\r\n }\r\n \r\n for (double row=0; row < ROWS; row++)\r\n {\r\n //if platform exists add this as a possibility\r\n if (getObject(Type.Platform, (int)column, row) != null)\r\n rows.add(row);\r\n }\r\n \r\n super.setCol(column);\r\n \r\n final int index = random.nextInt(rows.size());\r\n super.setRow(rows.get(index) + 0.5);\r\n }",
"private static INodePO findNode(INodePO ownerNode,\n INodePO selectecNode) {\n Iterator childIt = ownerNode.getNodeListIterator();\n while (childIt.hasNext()) {\n INodePO child = (INodePO)childIt.next();\n if (child.getId().equals(selectecNode.getId())) {\n return child;\n }\n }\n return null;\n }",
"private Trouser getRandomTrouser() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME + \" ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // Extract shirt details\n if (c.moveToFirst()) {\n int trouserId = c.getInt((c.getColumnIndex(TrouserEntry._ID)));\n String trouserPath = c.getString(c.getColumnIndex(TrouserEntry.IMG_PATH));\n\n c.close();\n return new Trouser(trouserId, trouserPath);\n } else {\n return null;\n }\n }",
"private void tournament_selection() {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < this.pop_size; i++) {\r\n\r\n // pick 2 random ints to for indices of parents\r\n int parent1 = new Random().nextInt(this.pop_size);\r\n int parent2 = new Random().nextInt(this.pop_size);\r\n\r\n individual p1 = new individual(main_population.getPopulation()[parent1].getGenes(), solutions, output);\r\n individual p2 = new individual(main_population.getPopulation()[parent2].getGenes(), solutions, output);\r\n\r\n if (p1.getFitness() >= p2.getFitness()) {\r\n temp_pop[i] = p1;\r\n } else {\r\n temp_pop[i] = p2;\r\n }\r\n }\r\n this.main_population.setPopulation(temp_pop);\r\n this.main_population.update_population();\r\n }",
"private void getRandomNumber() {\n\t\tRandom generator = new Random();\n\t\trandomNumber = generator.nextInt(POSSIBLE_CHOICE.length);\n\t}",
"public static void simulate(BinarySearchTree tree)\n {\n String data = \"\";\n\n //populateTree(tree);\n\n populateTreeRandom(tree);\n\n data = tree.breadthFirstTraversal();\n\n System.out.println(\"RANDOM DATA POST POPULATION: \\n\" + data);\n }",
"private Shirt getRandomShirt() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME + \" ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // Extract shirt details\n if (c.moveToFirst()) {\n int shirtId = c.getInt((c.getColumnIndex(ShirtEntry._ID)));\n String shirtPath = c.getString(c.getColumnIndex(ShirtEntry.IMG_PATH));\n\n c.close();\n return new Shirt(shirtId, shirtPath);\n } else {\n return null;\n }\n }",
"Point chooseCentre(treeNode node, MTRandom clustererRandom){\n\n\t\t//How many times should we try to choose a centre ??\n\t\tint times = 3;\n\t\t\t\n\t\t//stores the nodecost if node is split with the best centre\n\t\tdouble minCost = node.cost;\n\t\tPoint bestCentre = null;\n\t\t\n\t\t//loop counter variable\n\t\tint i;\n\t\tint j;\n\t\t\n\t\tfor(j=0;j<times;j++){\n\t\t\t//sum of the relativ cost of the points\n\t\t\tdouble sum = 0.0;\n\t\t\t//random number between 0 and 1\n\t\t\tdouble random = clustererRandom.nextDouble();\n\t\t\t\n\t\t\tfor(i=0;i<node.n;i++){\n\t\t\t\n\t\t\t\tsum += treeNodeCostOfPoint(node,node.points[i]) / node.cost;\n\t\t\t\tif(sum >= random){\n\t\t\t\t\tif(node.points[i].weight == 0.0){\n\t\t\t\t\t\t//printf(\"ERROR: CHOOSEN DUMMY NODE THOUGH OTHER AVAILABLE \\n\");\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t\tdouble curCost = treeNodeSplitCost(node,node.centre,node.points[i]);\n\t\t\t\t\tif(curCost < minCost){\n\t\t\t\t\t\tbestCentre = node.points[i];\n\t\t\t\t\t\tminCost = curCost;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(bestCentre == null){\n\t\t\treturn node.points[0];\n\t\t} else {\n\t\t\treturn bestCentre;\n\t\t}\n\t}",
"private TetrisPiece randomPiece() {\n\t\tint rand = Math.abs(random.nextInt());\n\t\treturn new TetrisPiece(rand % (PIECE_COLORS.length));\n\t}",
"private static Position fetchRandomPosition(){\n return new Position(0,0).returnRandomPosition();\n }",
"private void chooseBreedToBeIdentified() {\n Random r = new Random();\n int questionBreedIndex = r.nextInt(3);\n\n questionCarMake = displayingCarMakes.get(questionBreedIndex);\n carMakeNameTitle.setText(questionCarMake);\n }",
"public Position sampleRandomUniformPosition();",
"private void selectRandom() {\n\n\t\tRandom randomise;\n\n\t\t// Select random char from Spinner only if it is enabled\n\t\tif (solo.getCurrentSpinners().get(0).isEnabled()) {\n\t\t\trandomise = new Random();\n\t\t\trandomCharPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t\t.getCount());\n\n\t\t\tsolo.pressSpinnerItem(0, randomCharPos);\n\t\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\t\trandomChar = solo.getCurrentSpinners().get(0).getSelectedItem()\n\t\t\t\t\t.toString();\n\t\t}\n\n\t\t// Select random act from Spinner\n\t\trandomise = new Random();\n\t\trandomActPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(1, randomActPos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomAct = solo.getCurrentSpinners().get(1).getSelectedItem()\n\t\t\t\t.toString();\n\n\t\t// Select random page from Spinner\n\t\trandomise = new Random();\n\t\trandomPagePos = randomise.nextInt(solo.getCurrentSpinners().get(2)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(2, randomPagePos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomPage = solo.getCurrentSpinners().get(2).getSelectedItem()\n\t\t\t\t.toString();\n\t}",
"@Override\n public WorldGenerator getRandomWorldGenForTrees(Random par1Random)\n {\n return this.worldGeneratorTrees;\n }",
"public void openRandom() {\n\t\tint total = N * N;\n\t\tint index, row, col;\n\t\tdo {\n\t\t\tindex = randomGenerator.nextInt(total);\n\t\t\trow = index / N;\n\t\t\tcol = index % N;\n\t\t}while(isOpen(row, col) && size < total);\n\t\tif(size < total)\n\t\t\topen(row, col);\n\t}",
"public Point2D getRandomNodeLocation() {\n int validNum = 0;\n for (GraphNode graphNode : nodeVector) {\n if (graphNode.isValid()){\n validNum++;\n }\n }\n int randomIndex = RandomEnhanced.randInt(0,validNum-1);\n\n for (GraphNode graphNode : nodeVector) {\n if (graphNode.isValid()){\n if (randomIndex==0) return ((NavNode)graphNode).getPosition();\n randomIndex--;\n }\n }\n return null;\n }",
"public void placeRandom() {\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.placeRandom();\r\n\t}",
"private void spawnTrees() {\n int spawnNum = this.random.nextInt(10) + 20;\n if (this.treeTiles.size() >= 30) { // max 30 trees\n spawnNum = 0;\n }\n for (int i = 0; i < spawnNum; i++) {\n String tree = trees[this.random.nextInt(trees.length)];\n int y = this.random.nextInt(this.getMap().length);\n Tile spawnTile = this.getMapAt(this.random.nextInt(this.getMap()[y].length), y);\n Tile centerTile;\n if ((spawnTile != null) && this.inMap(spawnTile.getX()-2, spawnTile.getY()-1)) {\n centerTile = this.getMapAt(spawnTile.getX()-2, spawnTile.getY()-1);\n } else {\n centerTile = null;\n }\n if ((spawnTile != null) && (spawnTile instanceof GroundTile)\n && (centerTile != null) && (centerTile instanceof GroundTile)\n && (spawnTile.getContent() == null)) {\n ExtrinsicTree newTree = new ExtrinsicTree(tree);\n newTree.setStage(17);\n spawnTile.setContent(newTree);\n this.treeTiles.add(spawnTile);\n }\n }\n }",
"public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }",
"public static Node copyRandomList(Node head) {\n\t \n\t Node root = head;\n\t Map<Node, Node> map = new HashMap<>();\n\t \n\t\twhile( root != null ){\n\t\t\tNode newNode = new Node(root.val);\n\t\t\tmap.put( root, newNode );\n\t\t\troot = root.next;\n\t\t}\n\t \n\t\troot = head;\n\t\tNode node = new Node(0);\n\t\tNode ref = node;\n\n\t\tnode.next = ( root != null ) ? map.get( root ) : null;;\n\t\tnode = node.next;\n\t\twhile( root != null ){\n\n\t\t\tNode n1 = ( root.next != null ) ? map.get( root.next ) : null;\n\t\t\tNode n2 = ( root.random != null ) ? map.get( root.random ) : null;\n\t\t\n\t\t\tnode.next = n1;\n\t\t\tnode.random = n2;\n\t\t\n\t\t\troot = root.next;\n\t\t\tnode = node.next;\n\t\t}\n\t\t\n\t\treturn ref.next;\n\t}",
"public TreeNodeRandom cloneLeftRight(TreeNodeRandom root){\r\n\t\tif(root==null)\r\n\t\t\treturn null;\r\n\t\t//TreeNodeRandom clone = new TreeNodeRandom(root.val);\r\n\t\tTreeNodeRandom left = root.left;\r\n\t\troot.left = new TreeNodeRandom(root.val);\r\n\t\troot.left.left=left;\r\n\t\troot.left.left=left;\r\n\t\tif(left!=null)\r\n\t\t\tleft.left=cloneLeftRight(left);\r\n\t\troot.left.right = cloneLeftRight(root.right);\r\n\t\treturn root.left;\r\n\t}",
"private static Option pickRandom() {\n\t\treturn Option.values()[rand.nextInt(3)];\n\t}",
"public int getFakeParentId()\n {\n return fakeParentId;\n }",
"private void buildTree(int random_attr){\n String[] schema = new String[]{\"min, max, avg, label\"};\n CassandraDriver driver = CassandraDriver.getInstance();\n ArrayList<int[]> train = driver.queryData(\"data\", schema);\n RandomForest forest = new RandomForest();\n forest.numAttr = RandomForestTrainingMapReduce.N;\n forest.numAttrRandom = random_attr;\n RealDecisionTree tree = new RealDecisionTree(train, forest, RandomForestTrainingMapReduce.N);\n\n // serialize this tree and write to Cassandra.\n byte[] t = serialize(tree);\n try {\n driver.insertData(t, \"Forest\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public int root(){\n\t\tRandom r1=new Random();\n\t\tint r2= r1.nextInt((9) + 1) + 1;\n\t\treturn r2*100;\n\t}",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}",
"private Node chooseMinerNode(MinerType m) {\n\t\tNetwork.shuffle();\n\t\tfor (int i=0; i< Network.size(); i++) {\n\t\t\tNetNode n = (NetNode) Network.get(i);\n\t\t\t\tif (n.getMtype() == m)\n\t\t\t\t\treturn n;\t\n\t\t}\n\t\treturn null;\n\t}",
"private Vector2d generateNewPositionForChild()\n {\n\n Random generator = new Random();\n List<Vector2d> freePositions = new LinkedList<>(); //tutaj przechowywane sa wolne pozycje wokol\n Vector2d position;\n Directions directionToAdd;\n\n for(int i = 0; i<8; i++)\n {\n directionToAdd = new Directions(i); //wykorzystujemy klase directions do generowania pozycji wokol\n position = this.position.add(directionToAdd.move());\n if(map.animalsAt(position).isEmpty())\n {\n freePositions.add(position);\n }\n }\n\n if(freePositions.isEmpty()) //jezeli nie ma wolnych pozycji\n {\n //jesli nie ma wolnych pozycji\n int x = generator.nextInt(8);\n directionToAdd = new Directions(x);\n return this.position.add(directionToAdd.move());\n }\n\n //jezeli mamy wolne pozycje to generujemy dowolna z listy\n int x = generator.nextInt(freePositions.size());\n Vector2d newPosition = freePositions.get(x);\n\n return newPosition;\n }",
"public void sample(RandomGenerator rng) {\n\t\tdouble rate = priorRate;\n\t\tint sumTk = 0;\n\t\tfor (ProbabilityNode node : tiedNodes) {\n\t\t\tBetaDistribution betaD = new BetaDistribution(rng, this.c, node.marginal_nk);\n\t\t\tdouble q = Math.max(1e-75, betaD.sample());\n\t\t\trate += FastMath.log(1.0 / q);\n\t\t\tsumTk += node.marginal_tk;\n\t\t}\n\t\tdouble scale = 1.0 / rate;\n\t\t// marginal nk here is \\sum_{child}child.marginal_tk\n\t\tGammaDistribution gammaD = new GammaDistribution(rng, sumTk + priorShape, scale);\n\t\tthis.setConcentration(gammaD.sample());\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 }",
"private static TreeNode getNode() {\n TreeNode treeNode = new TreeNode(1);\n TreeNode left = new TreeNode(2);\n TreeNode right = new TreeNode(3);\n treeNode.left = left;\n treeNode.right = right;\n\n left.left = new TreeNode(4);\n right.left = new TreeNode(5);\n right.right = new TreeNode(6);\n return treeNode;\n }",
"public int getRandom() {\n Random rand = new Random();\n return list.get(rand.nextInt(linklist.size()));\n }",
"private void chooseSprite()\r\n\t{\r\n\t\t//Ensure pedestrian sprites exist\r\n\t\tif (sprites.isEmpty()) {\r\n\t\t\tSystem.err.println(\"ERROR: No pedestrian sprites have been loaded\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//Select a random sprite\r\n\t\tint index = (int) Math.floor( Math.random()*sprites.size() );\r\n\t\tspriteName = sprites.get(index);\r\n\t\tsetSprite(\"pedestrians/\"+spriteName);\r\n\t}",
"private void random() {\n\n\t}",
"public Point getLocation(){\n\t\tint x = widgetchild.getAbsoluteX();\n\t\tint y = widgetchild.getAbsoluteY();\n\t\tint rx = Random.nextInt(0, widgetchild.getWidth());\n\t\tint ry = Random.nextInt(0, widgetchild.getHeight());\n\t\treturn new Point(x+rx,y+ry);\n\t}",
"public TreeNode getParentNode();",
"@Test\n public void testChooseLocalNodeWithLocalNodeLoaded() {\n DatanodeDescriptor localNode = dataNodes[1];\n int numLocalChosen = 0;\n for (int i = 0; i < CHOOSE_TIMES; i++) {\n DatanodeStorageInfo[] targets =\n namenode.getNamesystem().getBlockManager().getBlockPlacementPolicy()\n .chooseTarget(FILE, 1, localNode,\n new ArrayList<DatanodeStorageInfo>(), false, null, BLOCK_SIZE,\n TestBlockStoragePolicy.DEFAULT_STORAGE_POLICY, null);\n\n Assert.assertEquals(1, targets.length);\n if (localNode == targets[0].getDatanodeDescriptor()) {\n numLocalChosen++;\n }\n }\n Assert.assertTrue(numLocalChosen < (CHOOSE_TIMES - numLocalChosen));\n }",
"public int getRandom() {\n int k = 1;\n ListNode node = this.head;\n int i = 0;\n ArrayList<Integer> reservoir = new ArrayList<Integer>();\n //先把前k个放进水塘\n while (i < k && node != null) {\n reservoir.add(node.val);\n node = node.next;\n i++;\n }\n // i++; // i == k => i == k+1 这样i就代表了现在已经处理过的总共数字个位\n i = 1;\n while (node != null) {\n //更换水塘里的数字的概率要是 k/(现在处理过的数字总数),所以因为i是从0开始,所以概率为从0\n // 到i的数当中选0 到k-1的数字,rand.nextInt(i) < k的概率是k/(现在处理过的数字总数)\n if (rand.nextInt(k+i) == i) {\n reservoir.set(rand.nextInt(k), node.val);\n }\n i++;\n node = node.next;\n }\n return reservoir.get(0);// or return reservoir when k > 1;\n }",
"Chromosome getRandom();",
"private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }"
]
| [
"0.7070326",
"0.6843693",
"0.68064696",
"0.67223805",
"0.668857",
"0.65845674",
"0.6399905",
"0.6388617",
"0.63185006",
"0.62233365",
"0.60735625",
"0.60718536",
"0.6049248",
"0.60378146",
"0.5995859",
"0.59067357",
"0.59002346",
"0.5865021",
"0.58351225",
"0.5830682",
"0.5788506",
"0.57318735",
"0.57002723",
"0.5699755",
"0.567651",
"0.56596434",
"0.56583196",
"0.56216043",
"0.5599216",
"0.5595694",
"0.55939204",
"0.55685973",
"0.55685514",
"0.5565745",
"0.55355626",
"0.5524786",
"0.5524594",
"0.5520215",
"0.5495276",
"0.5471356",
"0.5441104",
"0.5438212",
"0.5434042",
"0.5427202",
"0.5425526",
"0.54188263",
"0.5413061",
"0.5407806",
"0.5376282",
"0.5375657",
"0.5345287",
"0.5329299",
"0.5325595",
"0.53098506",
"0.530653",
"0.5303906",
"0.52951807",
"0.5291203",
"0.52874166",
"0.5286365",
"0.5268766",
"0.5266079",
"0.5261722",
"0.5258841",
"0.5243971",
"0.5242164",
"0.52353173",
"0.52222407",
"0.52210325",
"0.5220022",
"0.52133954",
"0.51982963",
"0.51929426",
"0.5192241",
"0.51908344",
"0.5185513",
"0.5184935",
"0.51784223",
"0.51766986",
"0.51732206",
"0.5164658",
"0.51528794",
"0.51364625",
"0.5135413",
"0.51309115",
"0.5128629",
"0.5126519",
"0.51264554",
"0.5121307",
"0.5112271",
"0.5111904",
"0.5110933",
"0.510724",
"0.5105461",
"0.51028776",
"0.50998205",
"0.5098996",
"0.509305",
"0.50864637",
"0.50857246"
]
| 0.59904724 | 15 |
if you impletement interfaces you have to implement all methodstw | @Override
public void engineStart(String engineType, boolean isKeyLess) {
System.out.println("This is the implementation");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Pasticcere {\r\n //No attributes\r\n public void accendiForno();\r\n}",
"public interface Zrada\n{\n void accuse();\n}",
"public interface Tigari {\npublic void printDetalii();\n}",
"public interface zzo\n extends IInterface\n{\n\n public abstract void zze(AdRequestParcel adrequestparcel);\n}",
"public interface IDeneme {\n \n void dene();\n}",
"public interface EntradaPontosDAO extends EntradaPontosSQL{\n\n}",
"public interface IFaci {\n}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"@Override\n public boolean isInterface() { return false; }",
"public interface PhrasingContent extends ContentInterface {\r\n\r\n}",
"public interface Producto {\r\n\tpublic void accion();\r\n}",
"interface InterfaceDemo {\n int age =0; //接口中变量都是公开静态常量\n String name =null;\n abstract void aa();\n\n public abstract void display(); //接口中方法都是抽象的\n}",
"public interface i {\n}",
"public interface eit {\n}",
"public interface Najpopulaniji {\n\n public void najpop(Film f);\n\n public void download(ArrayList<Film> lista);\n\n public void downloadPrethodnihFilmova(ArrayList<Film> lista);\n\n}",
"public interface ViewBinhLuan {\n void DangBinhLuanThanhCong();\n void DangBinhLuanThatBai();\n}",
"public interface IConexion\n{\n public void conectar();\n public void desconectar();\n public String getDatos(); \n}",
"public interface Jefes {\n\n//Los metodos de las intefeces no utilizan llaves\n String tomar_decisiones(String decision);\n\n \n\n\n \n}",
"public interface zze\n extends IInterface\n{\n\n public abstract void zza(zzd zzd, GoogleSignInConfig googlesigninconfig);\n\n public abstract void zza(zzd zzd, SignInConfiguration signinconfiguration);\n\n public abstract void zzb(zzd zzd, GoogleSignInConfig googlesigninconfig);\n\n public abstract void zzb(zzd zzd, SignInConfiguration signinconfiguration);\n\n public abstract void zzc(zzd zzd, GoogleSignInConfig googlesigninconfig);\n}",
"public interface a extends IInterface {\n}",
"interface I {}",
"public Object _get_interface()\n {\n throw new NO_IMPLEMENT(reason);\n }",
"public interface a {\n void a();\n }",
"public interface a {\n void a();\n }",
"public void interfaceMethod() {\n\t\tSystem.out.println(\"overriden method from interface\");\t\t\r\n\t}",
"public interface Allele {\n}",
"public interface MethodeBaseDeDonnee\n{\n public void insertion(Object object);\n public Object afficherObject(long id);\n}",
"interface NewInterface extends Interface1,Interface2,Interface3{\n\n\tpublic void getD();\n\n}",
"public interface ITier {\n\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic Zoo getZoo();\n\tpublic void setZoo(Zoo zoo);\n\t\n\tpublic void fuettere(Personal personal); //implemented. Gibt aus, dass tier von personal gefüttert wird.\n\tpublic void lebtIn(/*String gehege, Gehege neuesGehege, */Gehege gehege); //implemented\n\t\t\n}",
"public interface AbstractC2502fH1 extends IInterface {\n}",
"public interface IBaisiView {\n\n //更新数据\n public void updateData(List<BSDataListBean> mData);\n\n //显示loadingDialog\n public void showLoadingDialog();\n\n //隐藏loadingDiaog\n public void dissmissLoadingDialog();\n\n //没有网络\n public void noNet();\n //获取失败\n public void netError();\n\n\n\n}",
"public interface ViewInterface extends BaseViewInterface {\n /**\n * Interface method yang diimplement ketika presenter berhasil memcreate/update report\n * @param report balikan berupa object report\n * @param isNew balikan berupa nilai boolean true(jika berupa data baru/insert) atau false(bukan data baru/update)\n */\n void onReportResult(Report report, boolean isNew);\n\n /**\n * Interface method yang diimplement ketika presenter berhasil menghapus report\n * @param report balikan berupa object report\n */\n void onReportDeleted(Report report);\n\n /**\n * Interface method yang diimplement ketika presenter berhasil mendapatkan data report\n * @param reports balikan berupa List report\n * @param sumary balikan berupa summary\n */\n void onGetAllDataReport(List<Report> reports, Sumary sumary);\n }",
"public interface Date extends Tipo_Dato {\r\n}",
"public interface ITire {\n\n /**\n * 轮胎\n */\n void tire();\n}",
"public interface AbstractC03680oI {\n}",
"public interface Poulet {\n /*DEFINIT le nombre de like effectué par ce poulet */\n public void setnombreLike(int nombre_like);\n\n /*DEFINIT le nombre de match de ce poulet */\n public void setnombreMatch(int nombre_match);\n\n}",
"public interface IPresenterTinTuc {\n void layDanhSachTinTuc(String duongDan);\n TrangTinTuc layDanhSachTinTucLoadMore(String duongDan);\n}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public interface NuevoTesauroForm\r\n{\r\n}",
"public interface TipoJogador {\n\n /**\n * Informa para o jogador que uma tecla foi pressionada.\n * \n * @param t Tecla que foi pressionada.\n */\n public void informarTeclaPressionada( Tecla t );\n \n /**\n * Informa para o jogador que uma tecla foi solta.\n * \n * @param t Tecla que foi solta.\n */\n public void informarTeclaSolta( Tecla t );\n \n}",
"public interface ABC extends Unionpay { //农行卡\n public boolean payPhoneBill(String phone , double money );//交话费\n}",
"public interface IHead extends IDetail {\n}",
"public interface a {\n }",
"public interface Comunicator {\n \n\n}",
"public interface Pracujacy {\r\n void pracuj();\r\n}",
"public interface Ave {\n\n public void voar();\n\n}",
"public interface DAOAvaliadorInterface extends DAOGenericoInterface{\n \n /**\n * Método para listar os avaliadores cadastrados no sistema.\n * @return \n */\n public List<AvaliadorDB> listar();\n \n /**\n * Método para inserir um avaliador no sistema.\n * @param avaliador \n */\n public void inserir(AvaliadorDB avaliador);\n \n /**\n * Método para alterar um avaliador cadastrado no sistema.\n * @param avaliador \n */\n public void alterar(AvaliadorDB avaliador);\n \n}",
"public interface Entrada {\r\n\t\r\n\tpublic abstract String getLinVenta();\r\n\t\r\n\tpublic abstract boolean getTarjetaFid();\r\n\t\r\n\tpublic abstract boolean getEmpleado();\r\n\t\r\n\tpublic abstract int getDia();\r\n\t\r\n\tpublic abstract String getHora();\r\n\t\r\n\tpublic abstract boolean isFinalFichero();\r\n}",
"public interface Hablidades {\n\n\n public int velocidad ();\n public int fuerza ();\n public int poderEspecial();\n}",
"public interface Implementor {\n // 实现抽象部分需要的某些具体功能\n void operationImpl();\n}",
"public Biseccion(InterfaceB funcion) { // En el constructor de la clase se recibe un parametro de tipo interface (InterfaseB)\n f = funcion; // al atributo f se le pasa el parametro que se esta recibiendo (funcion);\n \n }",
"public interface i {\n void D(String str);\n\n void H();\n\n void L(String str);\n\n void b0(Response response);\n\n void c(List<DomainExpired> list);\n\n void h(Map<String, List<ExtendedMail>> map);\n\n void p(ApiError apiError);\n}",
"public interface FlyBehevour {\n void fly();\n}",
"public interface IBaseLayerList {\n /**\n * 初始化SwipeRefresh\n */\n void initSwipeRefresh();\n\n /**\n * 初始化RecycleView\n */\n void initRecycleView();\n\n /**\n * 初始化Adapter\n */\n void initAdapter();\n}",
"public interface IBaseModle {\n\n\n}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public interface IDisplay {\n\t\n\t\tpublic abstract void aggiorna(String damostrare);\n}",
"interface InWriter { // In interface class, all methods are abstract. (You can't specify the body)\n // public abstract void write(); By default all methods are public and abstract\n void write();\n}",
"public interface MainIView<E> extends IView<E>,IToolbar {\n}",
"public interface IDao {\r\n\r\n}",
"public interface bzt extends cdm {\n}",
"public interface LizaCow extends Cow {\n\n}",
"public interface IZiFenLeiXiang {\n public String getid();\n public void showZiFenLeiXiang(ZiFenLeiXiangBean ziFenLeiXiangBean);\n}",
"public interface ITeslaProduct extends IProduct {\n //@Override\n public abstract void makeProduct();\n}",
"public interface GetTaskInterface extends publiceviewinterface {\n void gettaskdetails(MyTaskBean myTaskBean);\n void accepttask();\n void gettaskfall();\n}",
"public interface Inteiros extends Numeros\n{\n}",
"public interface b {\n void a();\n }",
"public interface b {\n void a();\n }",
"public interface IControleBatterie extends RequiredI {\n\n\t/**\n\t * Permet d'allumer ou eteindre la batterie\n\t * @param etat\n\t * @throws Exception\n\t */\n\tpublic void envoyerEtatUniteProduction(EtatUniteProduction etat) throws Exception;\n}",
"public interface A {\n default void oi(){\n System.out.println(\"Dentro do oi de A\");\n }\n}",
"public interface IUser extends ILogin{\r\n public String getLogin();\r\n}",
"public interface IPresenterHienThiSanPhamTheoDanhMuc {\n void LayDanhSachSP_theoMaLoai(int masp,boolean kiemtra);\n}",
"public interface IEstado {\n\n /**\n * Modifica el estado del objeto publicacion\n *\n * @return String\n */\n String ejecutarAccion();\n}",
"public interface C22486a {\n void bGQ();\n\n void cMy();\n }",
"public interface DiscoverIView extends BaseIView {\n\n}",
"public interface Command {\n void doSomothing();//具体做什么\n}",
"interface A{\n void show();\n}",
"public interface IZhihuStoryPresenter extends BasePresenter{\n void getZhihuStory(String id);\n\n// void getGuokrArticle(String id);\n}",
"public interface IVendUploadView extends IBaseView{\n void upLoadSccess();\n void getGoodsDetail(GoodsDetailEntity.DataBean dataBean);\n void changeGoodsSuccess();\n void onError(String msg);\n}",
"@Override\n\tpublic void implements_(JDefinedClass cls) {\n\n\t}",
"public interface AlarmInfoInterface {\n\n /**\n * 时间选择\n */\n void showDateDialog(int timetype);\n /**\n * 通知区县选择\n */\n void showCountrySelectDialog(int type);\n\n void showProgress(boolean isshow);\n /**\n * 显示图片\n */\n void showImage();\n /**\n * 显示图片\n */\n void showImageDetail(int imgpath);\n /**\n * 接警来源\n */\n void showOriginDialog();\n /**\n * 火情状态\n */\n void showStatusDialog();\n\n /**\n * 是否火灾\n */\n void showIsfireDialog();\n /**\n * 接警详细\n */\n void openAlarmInfoDetails(String id);\n\n\n\n\n}",
"public interface IMainView extends IBaseView{\n}",
"interface Interface1 {\n\tpublic void getA();\n\n\tpublic void printA();\n}",
"public interface ObjetoDependienteDeTurno {\n\n public void siguienteTurno();\n\n}",
"public interface IChws_wdt extends IChws, IWdt{\n\n\tpublic IRI iri();\n\n}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void hello(){\n\t\tSystem.out.println(\"hello Interface\\n\");\n\t}",
"public interface Mypersent {\n void getData();\n}",
"public interface IBibliotheque {\n\t// Start of user code (user defined attributes for IBibliotheque)\n\n\t// End of user code\n\n\t/**\n\t * Description of the method listeDesEmpruntsEnCours.\n\t */\n\tpublic void listeDesEmpruntsEnCours();\n\n\t// Start of user code (user defined methods for IBibliotheque)\n\n\t// End of user code\n\n}",
"public interface AInterface {\n\n public void say();\n\n}",
"public interface CreateMyGoodsView extends MvpView,BaseHintView,BaseActivityHelpView{\n}",
"public interface I_Metier {\n public double getTemperature (String nomCapteur) throws TemperatureException;\n}",
"public interface BiodataViewInterface {\n void showLoading();\n void hideLoading();\n void onFinishinsert(ResponsModel res);\n void onFailureinsert();\n\n void log(String t);\n}",
"public interface IModel {\n void requestData(String url, OnHomeDataChangeLister onHomeDataChangeLister);\n\n interface OnHomeDataChangeLister {\n //头条\n void onHomeData(Toutiao1 toutiao1);\n }\n// //视频\n// void VideoData(OnVideoDataChangeLister onVideoDataChangeLister);\n// interface OnVideoDataChangeLister{\n// void OnVideoLister(Video video);\n// }\n}",
"public interface Igual extends ComplexInstruction\n{\n}",
"public interface IViewKhuyenMai {\n void hienThiDanhSachKhuyenMai(List<KhuyenMai> khuyenMaiList);\n}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public interface B extends A {\n void b();\n}",
"public interface e {\n}",
"public interface ModeloProdutoProduto extends DCIObjetoDominio , ModeloProdutoProdutoAgregadoI , ModeloProdutoProdutoDerivadaI\n{\n\n\t\n\tpublic long getIdModeloProdutoProduto();\n\tpublic void setIdModeloProdutoProduto(long valor);\n\t\n\t\n\tpublic long getIdModeloProdutoRa();\n\tpublic void setIdModeloProdutoRa(long valor);\n\t\n\t\n\tpublic long getIdProdutoRa();\n\tpublic void setIdProdutoRa(long valor);\n\t\n\t\n}",
"interface C34503a {\n void bMl();\n }"
]
| [
"0.71751946",
"0.71154785",
"0.7100564",
"0.7095828",
"0.7012511",
"0.6965048",
"0.69241863",
"0.69193697",
"0.690322",
"0.6871455",
"0.68582237",
"0.6814034",
"0.6800779",
"0.67947376",
"0.67818594",
"0.6750723",
"0.67412317",
"0.6737642",
"0.673284",
"0.6726131",
"0.6712112",
"0.6701114",
"0.66968286",
"0.66968286",
"0.66920596",
"0.6660575",
"0.6649199",
"0.66391164",
"0.6634218",
"0.6631617",
"0.6629237",
"0.66213423",
"0.6609305",
"0.6603634",
"0.65950894",
"0.6593118",
"0.6590481",
"0.65869457",
"0.6578489",
"0.6571059",
"0.6560976",
"0.65506756",
"0.6548997",
"0.6541443",
"0.65304244",
"0.65159506",
"0.6509084",
"0.650818",
"0.65029824",
"0.6498459",
"0.6497253",
"0.64964515",
"0.6486052",
"0.6478346",
"0.647535",
"0.6474032",
"0.64704806",
"0.64641225",
"0.6463863",
"0.6458853",
"0.64557755",
"0.6451974",
"0.64501274",
"0.64466125",
"0.6444971",
"0.6441696",
"0.64392287",
"0.64392287",
"0.64389515",
"0.64370215",
"0.6436665",
"0.6434644",
"0.64304036",
"0.64238334",
"0.6419077",
"0.64093804",
"0.64023155",
"0.640136",
"0.6400947",
"0.6399716",
"0.63979304",
"0.6397191",
"0.6396776",
"0.63912636",
"0.638941",
"0.6384198",
"0.63809973",
"0.63798",
"0.6378159",
"0.63778746",
"0.63658786",
"0.6365337",
"0.63591546",
"0.63583124",
"0.63569313",
"0.6353707",
"0.63480073",
"0.63466424",
"0.6346308",
"0.63438964",
"0.63431937"
]
| 0.0 | -1 |
/ NOTE FOR DEVELOPERS: Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. | public static void clearCache() {
getPersistence().clearCache();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> {\n\n}",
"public interface SmartCultureFarmService extends Service<SmartCultureFarm> {\n\n}",
"public interface SRiskCardNodeConditionService extends Service<SRiskCardNodeCondition> {\n\n}",
"@Override \r\n public boolean needsDsfService() { return false; }",
"@Override\n protected void reconfigureService() {\n }",
"@WebService(name = \"HelloService\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface HelloService {\r\n\r\n\r\n /**\r\n * \r\n * @param name\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"say\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.Say\")\r\n @ResponseWrapper(localName = \"sayResponse\", targetNamespace = \"http://soap_spring_cxf.ws.demo/\", className = \"demo.ws.soap_spring_cxf.SayResponse\")\r\n public String say(\r\n @WebParam(name = \"name\", targetNamespace = \"\")\r\n String name);\r\n\r\n}",
"@Override\n public void modifiedService(ServiceReference<ManagedService> reference, ManagedService service) {\n }",
"@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}",
"public interface OperationServiceService extends javax.xml.rpc.Service {\n public java.lang.String getOperationServiceAddress();\n\n public fr.uphf.service.OperationService getOperationService() throws javax.xml.rpc.ServiceException;\n\n public fr.uphf.service.OperationService getOperationService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;\n}",
"public interface OfficialWebsiteHistoryService extends Service<OfficialWebsiteHistory> {\n\n}",
"@Override\n public void modifiedService(ServiceReference<ManagedServiceFactory> reference,\n ManagedServiceFactory service) {\n }",
"@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethod\")\n @ResponseWrapper(localName = \"serviceMethodResponse\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceMethodResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String serviceMethod();\n}",
"public interface FileOperationService extends OperationService<AbstractFileOperationI18nNamedServiceEntity> {\n\n}",
"public interface AlarmDataEnvService extends Service<AlarmDataEnv> {\n\n}",
"public interface IContractMgtService {\n\n}",
"@Override \r\n public boolean needsEmfService() { return false; }",
"@Override\r\n\tpublic void modifiedService(ServiceReference arg0, Object arg1) {\n\t\t\r\n\t}",
"@WebService(targetNamespace = \"http://cxf.poc.ideo.com/\", name = \"OperationService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface OperationService {\n\n @WebResult(name = \"additionResponse\", targetNamespace = \"http://cxf.poc.ideo.com/\", partName = \"additionResponse\")\n @WebMethod\n public AdditionResponse addition(\n @WebParam(partName = \"additionRequest\", name = \"additionRequest\", targetNamespace = \"http://cxf.poc.ideo.com/\")\n AdditionRequest additionRequest\n );\n}",
"@Override\n public String getServicesXMLPath()\n {\n return servicesXMLPath;\n }",
"public interface ISystemUpdateHistoryService extends IBaseService<SystemUpdateHistory> {\n\n}",
"@WebService(name = \"ListSubscriptions\", targetNamespace = \"http://soap/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ListSubscriptions {\n\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getList\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetList\")\n @ResponseWrapper(localName = \"getListResponse\", targetNamespace = \"http://soap/\", className = \"artifact_list.GetListResponse\")\n public String getList();\n\n}",
"public interface TearcherInfoService extends Service<TearcherInfo> {\n\n}",
"public interface CommunityPostItemService extends Service<CommunityPostItem> {\n\n}",
"@Service(name = \"CustomerService\")\n@OpenlegacyDesigntime(editor = \"WebServiceEditor\")\npublic interface CustomerServiceService {\n\n public CustomerServiceOut getCustomerService(CustomerServiceIn customerServiceIn) throws Exception;\n\n @Getter\n @Setter\n public static class CustomerServiceIn {\n \n Integer id3;\n }\n \n @ApiModel(value=\"CustomerServiceOut\", description=\"\")\n @Getter\n @Setter\n public static class CustomerServiceOut {\n \n @ApiModelProperty(value=\"Getuserdetails\")\n Getuserdetails getuserdetails;\n }\n}",
"public interface ControllcurveService extends Service<Controllcurve> {\n\n}",
"public UpdateService() {\n super(\"UpdateService\");\n }",
"public String getServiceName(){\n return serviceName;\n }",
"public interface XmlService {\n\n\t/**\n\t * Parse response file.\n\t * \n\t * @param xmlPath\n\t * @param orderId\n\t * @param complete_on\n\t * @return\n\t * @throws JAXBException\n\t */\n ResponseMQ parseResponseFile(String xmlPath, Long orderId, Date complete_on) throws JAXBException;\n \n /**\n * \n * @param xml\n * @param orderId\n * @param complete_on\n * @return\n * @throws JAXBException\n */\n\tResponseMQ parseResponse(String xml, Long orderId, Date complete_on) throws JAXBException;\n\n\t/**\n\t * Generate change status request.\n\t * \n\t * @param requestMQ\n\t * @return result string or NULL\n\t */\n\tString generateChangeStatusRequest(RequestMQ requestMQ);\n\t\n}",
"@WebService(targetNamespace = \"http://www.talend.org/jpa\", name = \"JPAService\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface JPAService {\n\n @WebResult(name = \"deleteResponse\", targetNamespace = \"http://www.talend.org/jpa\", partName = \"parameters\")\n @WebMethod(action = \"http://www.talend.org/jpa/delete\")\n public java.lang.String delete(\n @WebParam(partName = \"parameters\", name = \"deleteRequest\", targetNamespace = \"http://www.talend.org/jpa\")\n IdType parameters\n );\n\n @WebResult(name = \"persistResponse\", targetNamespace = \"http://www.talend.org/jpa\", partName = \"parameters\")\n @WebMethod(action = \"http://www.talend.org/jpa/persist\")\n public java.lang.String persist(\n @WebParam(partName = \"parameters\", name = \"persistRequest\", targetNamespace = \"http://www.talend.org/jpa\")\n PersonType parameters\n );\n}",
"@WebService(targetNamespace = \"esdk_ivs_professional_server\", name = \"IVSProfessional.ClusterManager\")\n@XmlSeeAlso({ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface IVSProfessionalClusterManager {\n\n @WebResult(name = \"getNVRListResponse\", targetNamespace = \"esdk_ivs_professional_server\", partName = \"parameters\")\n @WebMethod(action = \"esdk_ivs_professional_server.getNVRList\")\n public GetNVRListResponse getNVRList(\n @WebParam(partName = \"parameters\", name = \"getNVRList\", targetNamespace = \"esdk_ivs_professional_server\")\n GetNVRList parameters\n );\n}",
"@RemoteServiceRelativePath(\"getAddress\")\npublic interface AddressService extends RemoteService {\n\tpublic String[] getAddress() throws IOException;\n}",
"public interface IWxNotifyInfoService extends IBaseService<WxNotifyInfoModel> {\n\n}",
"public AddFavouriteService() {\n super(\"AddFavouriteService\");\n }",
"@WebService(name = \"CustomerSoapType\", targetNamespace = \"http://test.co.id/ws/customer/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CustomerSoapType {\n\n\n /**\n * Request All Customer\n * \n * @return\n * returns id.co.bca.ws.mbs.soap.customer.ListOfCustomerType\n */\n @WebMethod(operationName = \"GetAllCustomer\")\n @WebResult(name = \"GetAllCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public ListOfCustomerType getAllCustomer();\n\n /**\n * Insert Customer\n * \n * @param parameters\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"InsertCustomer\")\n @WebResult(name = \"InsertCustomerResponse\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n public String insertCustomer(\n @WebParam(name = \"InsertCustomer\", targetNamespace = \"http://test.co.id/ws/customer/\", partName = \"parameters\")\n CustomerType parameters);\n\n}",
"public interface UserService extends MinsxEntityService {\n\n}",
"public ServiceProvider() {\n super();\n setContent(\"\");\n }",
"@Override\n protected void loadXMLDescription() {\n\n }",
"public interface PostTagRefService extends IService<PostTagRef> {\n\n}",
"public interface TbContentCategoryService extends BaseTreeService<TbContentCategory> {\n}",
"@WebService(name=\"AgentManagementServiceInterface\",targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\")\npublic interface AgentManagementWebService {\n\t\n\t/**\n\t * This operation will accept jaxb Agents and either saves or updates it.\n\t * @TODO\n\t * This operation should allow for response.\n\t * Need to modify schema for Response\n\t * @param xmlAgents\n\t */\n\t@WebMethod\n\tpublic gov.nih.nci.cabig.caaers.integration.schema.common.CaaersServiceResponse createOrUpdateAgent(@WebParam(name=\"Agents\",\n targetNamespace=\"http://schema.integration.caaers.cabig.nci.nih.gov/common\") Agents xmlAgents) throws SecurityExceptionFaultMessage;\n\n}",
"public interface EzService {\n}",
"@WebService(name = \"DocumentValidationSchemaService\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\")\n@XmlSeeAlso({\n pl.softfly.integ.doc.entity.ObjectFactory.class,\n pl.softfly.integ.endpoint.entity.ObjectFactory.class,\n pl.softfly.integ.entity.ObjectFactory.class,\n pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ObjectFactory.class,\n pl.softfly.integ.shipment.entity.ObjectFactory.class\n})\npublic interface DocumentValidationSchemaService {\n\n\n /**\n * @param arg0\n * @return returns pl.softfly.integ.doc.entity.DocumentHeader\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"validate\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.Validate\")\n @ResponseWrapper(localName = \"validateResponse\", targetNamespace = \"http://schema.validation.doc.jaxws.invoice.samples.integ.softfly.pl/\", className = \"pl.softfly.integ.samples.invoice.jaxws.doc.validation.schema.ValidateResponse\")\n public DocumentHeader validate(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n DocumentHeader arg0);\n\n}",
"public org.apache.axis2.context.xsd.ServiceContext getServiceContext(){\n return localServiceContext;\n }",
"public interface IFoodServiceInfoService extends IBaseService<ZlnfFoodServiceInfo, ZlnfFoodServiceInfoExample, Integer>{\n\n}",
"@WebService(targetNamespace = \"http://interfaces.webService.xxdai.com/\", name = \"BaseInfoCXFService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface BaseInfoCXFService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"alterBaseInfo\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfo\")\n @WebMethod\n @ResponseWrapper(localName = \"alterBaseInfoResponse\", targetNamespace = \"http://interfaces.webService.xxdai.com/\", className = \"com.xxdai.person.ws.baseinfo.AlterBaseInfoResponse\")\n public java.lang.String alterBaseInfo(\n @WebParam(name = \"alterBaseInfoJson\", targetNamespace = \"\")\n java.lang.String alterBaseInfoJson\n );\n}",
"@WebService(name = \"LegislationSearch\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface LegislationSearch {\n\n\n /**\n * \n * @param startIndex\n * @param pageSize\n * @param constraints\n * @return\n * returns gov.ga.legis.legislation.LegislationSearchResultsPaged\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage\n * @throws LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n */\n @WebMethod(operationName = \"GetLegislationSearchResultsPaged\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationSearchResultsPaged\")\n @WebResult(name = \"GetLegislationSearchResultsPagedResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationSearchResultsPaged\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPaged\")\n @ResponseWrapper(localName = \"GetLegislationSearchResultsPagedResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationSearchResultsPagedResponse\")\n public LegislationSearchResultsPaged getLegislationSearchResultsPaged(\n @WebParam(name = \"Constraints\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationSearchConstraints constraints,\n @WebParam(name = \"PageSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer pageSize,\n @WebParam(name = \"StartIndex\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer startIndex)\n throws LegislationSearchGetLegislationSearchResultsPagedInvalidPageSizeFaultFaultFaultMessage, LegislationSearchGetLegislationSearchResultsPagedInvalidSearchConstraintsFaultFaultFaultMessage\n ;\n\n /**\n * \n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndex\n */\n @WebMethod(operationName = \"GetLegislationForSession\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationForSession\")\n @WebResult(name = \"GetLegislationForSessionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationForSession\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSession\")\n @ResponseWrapper(localName = \"GetLegislationForSessionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationForSessionResponse\")\n public ArrayOfLegislationIndex getLegislationForSession(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @param documentType\n * @param sessionId\n * @param rangeSize\n * @return\n * returns gov.ga.legis.legislation.ArrayOfLegislationIndexRangeSet\n */\n @WebMethod(operationName = \"GetLegislationRanges\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRanges\")\n @WebResult(name = \"GetLegislationRangesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRanges\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRanges\")\n @ResponseWrapper(localName = \"GetLegislationRangesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangesResponse\")\n public ArrayOfLegislationIndexRangeSet getLegislationRanges(\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId,\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"RangeSize\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer rangeSize);\n\n /**\n * \n * @param range\n * @return\n * returns gov.ga.legis.legislation.LegislationIndexRange\n */\n @WebMethod(operationName = \"GetLegislationRange\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationRange\")\n @WebResult(name = \"GetLegislationRangeResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationRange\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRange\")\n @ResponseWrapper(localName = \"GetLegislationRangeResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationRangeResponse\")\n public LegislationIndexRange getLegislationRange(\n @WebParam(name = \"Range\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n LegislationIndexRangeSet range);\n\n /**\n * \n * @param legislationId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetail\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetail\")\n @WebResult(name = \"GetLegislationDetailResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetail\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetail\")\n @ResponseWrapper(localName = \"GetLegislationDetailResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailResponse\")\n public LegislationDetail getLegislationDetail(\n @WebParam(name = \"LegislationId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer legislationId);\n\n /**\n * \n * @param number\n * @param documentType\n * @param sessionId\n * @return\n * returns gov.ga.legis.legislation.LegislationDetail\n */\n @WebMethod(operationName = \"GetLegislationDetailByDescription\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetLegislationDetailByDescription\")\n @WebResult(name = \"GetLegislationDetailByDescriptionResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetLegislationDetailByDescription\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescription\")\n @ResponseWrapper(localName = \"GetLegislationDetailByDescriptionResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetLegislationDetailByDescriptionResponse\")\n public LegislationDetail getLegislationDetailByDescription(\n @WebParam(name = \"DocumentType\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n DocumentType documentType,\n @WebParam(name = \"Number\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer number,\n @WebParam(name = \"SessionId\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n Integer sessionId);\n\n /**\n * \n * @return\n * returns gov.ga.legis.legislation.ArrayOfSubject\n */\n @WebMethod(operationName = \"GetTitles\", action = \"http://www.legis.ga.gov/2009/01/01/services/LegislationSearch/GetTitles\")\n @WebResult(name = \"GetTitlesResult\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\")\n @RequestWrapper(localName = \"GetTitles\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitles\")\n @ResponseWrapper(localName = \"GetTitlesResponse\", targetNamespace = \"http://www.legis.ga.gov/2009/01/01/services/\", className = \"gov.ga.legis.legislation.GetTitlesResponse\")\n public ArrayOfSubject getTitles();\n\n}",
"public interface AttentionService extends CoreService<AttentionDO> {\n \n}",
"@Override\r\n\tpublic void modifiedService(ServiceReference<T> reference, ServletContextHelperElement service) {\n\t}",
"public interface ButtonArticleService extends Service<ButtonArticle> {\n\n}",
"public interface Service {\n // Service-specific methods go here\n }",
"@Override\n\tprotected BaseService getService() {\n\t\treturn null;\n\t}",
"public interface BusDistributorService extends Services<BusDistributor,Long> {\r\n}",
"@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/AddressService\", name = \"AddressService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.addressservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface AddressService {\r\n\r\n @WebResult(name = \"GetDoNotDisturbResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetDoNotDisturb\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetDoNotDisturbResponse getDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"GetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetDoNotDisturbException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetAddressCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"OriginateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"Originate\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/Originate\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ContactResponse originate(\r\n @WebParam(partName = \"parameters\", name = \"OriginateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressOriginateRequest parameters\r\n ) throws OriginateException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetDoNotDisturb\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetDoNotDisturb\")\r\n public void setDoNotDisturb(\r\n @WebParam(partName = \"parameters\", name = \"SetDoNotDisturbRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetDoNotDisturbRequest parameters\r\n ) throws SessionNotCreatedException, SetDoNotDisturbException;\r\n\r\n @WebResult(name = \"IsForwardedResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsForwarded\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsForwarded\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsForwardedResponse isForwarded(\r\n @WebParam(partName = \"parameters\", name = \"IsForwardedRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsForwardedException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetForwarding\")\r\n public void setForwarding(\r\n @WebParam(partName = \"parameters\", name = \"SetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetForwardingRequest parameters\r\n ) throws SetForwardingException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"CancelForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/CancelForwarding\")\r\n public void cancelForwarding(\r\n @WebParam(partName = \"parameters\", name = \"CancelForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, CancelForwardingException;\r\n\r\n @WebResult(name = \"GetStateResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetState\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetState\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetStateResponse getState(\r\n @WebParam(partName = \"parameters\", name = \"GetStateRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetStateException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminals\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminals\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalsResponse getTerminals(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetTerminalsException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetPresenceResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetPresence\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetPresence\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetPresenceResponse getPresence(\r\n @WebParam(partName = \"parameters\", name = \"GetPresenceRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetPresenceException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnection\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnection\")\r\n public com.nortel.soa.oi.cct.types.addressservice.ConnectionResponse getConnection(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.ConnectionRequest parameters\r\n ) throws GetConnectionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetMessageWaitingResponse getMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"GetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetTerminalStatusResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetTerminalStatus\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetTerminalStatus\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetTerminalStatusResponse getTerminalStatus(\r\n @WebParam(partName = \"parameters\", name = \"GetTerminalStatusRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetTerminalStatusException;\r\n\r\n @WebMethod(operationName = \"PresenceSubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceSubscribe\")\r\n public void presenceSubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceSubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.PresenceSubscribeRequest parameters\r\n ) throws PresenceSubscribeException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetConnectionsResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetConnections\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetConnections\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetConnectionsResponse getConnections(\r\n @WebParam(partName = \"parameters\", name = \"GetConnectionsRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetConnectionsException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SendInstantMessage\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SendInstantMessage\")\r\n public void sendInstantMessage(\r\n @WebParam(partName = \"parameters\", name = \"SendInstantMessage\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.InstantMessageRequest parameters\r\n ) throws SessionNotCreatedException, SendInstantMessageException;\r\n\r\n @WebResult(name = \"GetUriResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetUri\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetUri\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetUriResponse getUri(\r\n @WebParam(partName = \"parameters\", name = \"GetUriRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws GetUriException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetForwardingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetForwarding\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/GetForwarding\")\r\n public com.nortel.soa.oi.cct.types.addressservice.GetForwardingResponse getForwarding(\r\n @WebParam(partName = \"parameters\", name = \"GetForwardingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws SessionNotCreatedException, GetForwardingException;\r\n\r\n @WebMethod(operationName = \"PresenceUnsubscribe\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/PresenceUnsubscribe\")\r\n public void presenceUnsubscribe(\r\n @WebParam(partName = \"parameters\", name = \"PresenceUnsubscribeRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws PresenceUnsubscribeException, SessionNotCreatedException;\r\n\r\n @WebMethod(operationName = \"SetMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/SetMessageWaiting\")\r\n public void setMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"SetMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.SetMessageWaitingRequest parameters\r\n ) throws SetMessageWaitingException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"IsMessageWaitingResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\", partName = \"response\")\r\n @WebMethod(operationName = \"IsMessageWaiting\", action = \"http://www.nortel.com/soa/oi/cct/AddressService/IsMessageWaiting\")\r\n public com.nortel.soa.oi.cct.types.addressservice.IsMessageWaitingResponse isMessageWaiting(\r\n @WebParam(partName = \"parameters\", name = \"IsMessageWaitingRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/AddressService\")\r\n com.nortel.soa.oi.cct.types.addressservice.AddressRequest parameters\r\n ) throws IsMessageWaitingException, SessionNotCreatedException;\r\n}",
"public interface ConditionPaiementManager\r\n extends GenericManager<ConditionPaiement, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"ConditionPaiementManager\";\r\n\r\n}",
"@WebService(name = \"EmployeeManagementWebService\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface EmployeeManagementWebService {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns com.virtualpairprogrammers.employeemanagement.Employee\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getEmployeeById\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeById\")\n @ResponseWrapper(localName = \"getEmployeeByIdResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetEmployeeByIdResponse\")\n public Employee getEmployeeById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<com.virtualpairprogrammers.employeemanagement.Employee>\n * @throws ServiceUnavailableException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllEmployees\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployees\")\n @ResponseWrapper(localName = \"getAllEmployeesResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.GetAllEmployeesResponse\")\n public List<Employee> getAllEmployees()\n throws ServiceUnavailableException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"registerEmployee\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployee\")\n @ResponseWrapper(localName = \"registerEmployeeResponse\", targetNamespace = \"http://employeemanagement.virtualpairprogrammers.com/\", className = \"com.virtualpairprogrammers.employeemanagement.RegisterEmployeeResponse\")\n public void registerEmployee(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Employee arg0);\n\n}",
"public interface AddStudentBookOrderPackageService extends EntityService<StudentBookOrderPackage> {\n public StudentBookOrderPackage addStudentBookOrderPackage(String spotCode, String orderCodes, String logisticCode, int isNoce, String loginName)throws Exception;\n}",
"public void service() {\n\t}",
"@RemoteServiceRelativePath(\"attributeset\")\r\npublic interface AttributeSetService extends RemoteService {\r\n\t/**\r\n\t * Deletes a given set\r\n\t */\r\n\tpublic void delete(long setId) throws ServerException;\r\n\r\n\t/**\r\n\t * Creates or updates a set\r\n\t */\r\n\tpublic GUIAttributeSet save(GUIAttributeSet set) throws ServerException;\r\n\r\n\t/**\r\n\t * Loads a given set from the database\r\n\t */\r\n\tpublic GUIAttributeSet getAttributeSet(long setId) throws ServerException;\r\n\r\n\t/**\r\n\t * Saves the list of all possible options\r\n\t */\r\n\tpublic void saveOptions(long setId, String attribute, String[] values) throws ServerException;\r\n\r\n\t/**\r\n\t * Delete a selection of options\r\n\t */\r\n\tpublic void deleteOptions(long setId, String attribute, String[] values) throws ServerException;\r\n\r\n\t/**\r\n\t * Reads the contacts that are about to be imported from CSV\r\n\t */\r\n\tpublic String[] parseOptions(long setId, String attribute) throws ServerException;\r\n}",
"@Override\n\tpublic void configure(CServiceParameter arg0)\n\t{\n\n\t}",
"@Override\n public String getName() {\n return \"Service Stability\";\n }",
"@WebService(wsdlLocation=\"https://salescloud-hostname/crmCommonSalesParties/AccountService?WSDL\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/\",\n name=\"AccountService\")\n@XmlSeeAlso(\n { ObjectFactory.class })\npublic interface AccountService\n{\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processCSAccountResponse\")\n @ResponseWrapper(localName=\"processCSAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountResponse\")\n @RequestWrapper(localName=\"processCSAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ProcessData processCSAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processCSAccountAsync\")\n @RequestWrapper(localName=\"processCSAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessCSAccountAsync\")\n @Oneway\n public void processCSAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processData\")\n ProcessData processData, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHints\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHints/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getDfltObjAttrHintsResponse\")\n @ResponseWrapper(localName=\"getDfltObjAttrHintsResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsResponse\")\n @RequestWrapper(localName=\"getDfltObjAttrHints\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHints\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public ObjAttrHints getDfltObjAttrHints(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTime\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTime/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getServiceLastUpdateTimeResponse\")\n @ResponseWrapper(localName=\"getServiceLastUpdateTimeResponse\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeResponse\")\n @RequestWrapper(localName=\"getServiceLastUpdateTime\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTime\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public XMLGregorianCalendar getServiceLastUpdateTime()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityList\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityList/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getEntityListResponse\")\n @ResponseWrapper(localName=\"getEntityListResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListResponse\")\n @RequestWrapper(localName=\"getEntityList\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityList\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public List<ServiceViewInfo> getEntityList()\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getEntityListAsync\")\n @RequestWrapper(localName=\"getEntityListAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetEntityListAsync\")\n @Oneway\n public void getEntityListAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getDfltObjAttrHintsAsync\")\n @RequestWrapper(localName=\"getDfltObjAttrHintsAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetDfltObjAttrHintsAsync\")\n @Oneway\n public void getDfltObjAttrHintsAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"viewName\")\n String viewName, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"localeName\")\n String localeName);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getServiceLastUpdateTimeAsync\")\n @RequestWrapper(localName=\"getServiceLastUpdateTimeAsync\",\n targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetServiceLastUpdateTimeAsync\")\n @Oneway\n public void getServiceLastUpdateTimeAsync();\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/getAccountResponse\")\n @ResponseWrapper(localName=\"getAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountResponse\")\n @RequestWrapper(localName=\"getAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult getAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/createAccountResponse\")\n @ResponseWrapper(localName=\"createAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountResponse\")\n @RequestWrapper(localName=\"createAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult createAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/updateAccountResponse\")\n @ResponseWrapper(localName=\"updateAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountResponse\")\n @RequestWrapper(localName=\"updateAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult updateAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/deleteAccountResponse\")\n @ResponseWrapper(localName=\"deleteAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountResponse\")\n @RequestWrapper(localName=\"deleteAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public MethodResult deleteAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/mergeAccountResponse\")\n @ResponseWrapper(localName=\"mergeAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountResponse\")\n @RequestWrapper(localName=\"mergeAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult mergeAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/findAccountResponse\")\n @ResponseWrapper(localName=\"findAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountResponse\")\n @RequestWrapper(localName=\"findAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult findAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccount\", fault =\n { @FaultAction(value=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccount/Fault/ServiceException\",\n className = ServiceException.class) }, output=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/AccountService/processAccountResponse\")\n @ResponseWrapper(localName=\"processAccountResponse\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountResponse\")\n @RequestWrapper(localName=\"processAccount\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccount\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"result\")\n public DataObjectResult processAccount(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl)\n throws ServiceException;\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/findAccountAsync\")\n @RequestWrapper(localName=\"findAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.FindAccountAsync\")\n @Oneway\n public void findAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findCriteria\")\n FindCriteria findCriteria, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"findControl\")\n FindControl findControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/updateAccountAsync\")\n @RequestWrapper(localName=\"updateAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.UpdateAccountAsync\")\n @Oneway\n public void updateAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/createAccountAsync\")\n @RequestWrapper(localName=\"createAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.CreateAccountAsync\")\n @Oneway\n public void createAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/mergeAccountAsync\")\n @RequestWrapper(localName=\"mergeAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.MergeAccountAsync\")\n @Oneway\n public void mergeAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/getAccountAsync\")\n @RequestWrapper(localName=\"getAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.GetAccountAsync\")\n @Oneway\n public void getAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"PartyId\")\n long partyId);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/processAccountAsync\")\n @RequestWrapper(localName=\"processAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.ProcessAccountAsync\")\n @Oneway\n public void processAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"changeOperation\")\n String changeOperation, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n List<Account> account, @WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"processControl\")\n ProcessControl processControl);\n\n @WebMethod(action=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @Action(input=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/deleteAccountAsync\")\n @RequestWrapper(localName=\"deleteAccountAsync\", targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n className=\"oracle.cloud.sampleapps.nearmejwt.types.DeleteAccountAsync\")\n @Oneway\n public void deleteAccountAsync(@WebParam(targetNamespace=\"http://xmlns.oracle.com/apps/crmCommon/salesParties/accountService/types/\",\n name=\"account\")\n Account account);\n}",
"public ServiceCompte() {\n\t\tsuper();\n\t}",
"public UpdateMarkerService() {\n super(\"UpdateMarkerService\");\n }",
"@Override\r\n\tpublic void getServiceResult(ServiceResult result) {\n\t\t\r\n\t}",
"@Deprecated\npublic interface OrderCompanyJournalReadRpcService {\n\n\n}",
"public interface Service {\n\n}",
"public interface Service {\n\n}",
"public Class getServiceClass()\n {\n return serviceClass;\n }",
"@WebService(targetNamespace = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService\", name = \"RoutePointConnectionService\")\r\n@XmlSeeAlso({com.nortel.soa.oi.cct.types.routepointconnectionservice.ObjectFactory.class, com.nortel.soa.oi.cct.faults.ObjectFactory.class, com.nortel.soa.oi.cct.types.ObjectFactory.class, org.xmlsoap.schemas.ws._2003._03.addressing.ObjectFactory.class, org.oasis_open.docs.wsrf._2004._06.wsrf_ws_basefaults_1_2_draft_01.ObjectFactory.class})\r\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\r\npublic interface RoutePointConnectionService {\r\n\r\n @WebMethod(operationName = \"RoutePointRetrieve\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/RoutePointRetrieve\")\r\n public void routePointRetrieve(\r\n @WebParam(partName = \"parameters\", name = \"RoutePointRetrieveRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RoutePointRetrieveRequest parameters\r\n ) throws RoutePointRetrieveException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetVersionResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetVersion\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetVersion\")\r\n public com.nortel.soa.oi.cct.types.GetVersionResponse getVersion(\r\n @WebParam(partName = \"parameters\", name = \"GetVersionRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.GetVersionRequest parameters\r\n ) throws GetVersionException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GetCapabilitiesResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GetCapabilities\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GetCapabilities\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionCapabilitiesResponse getCapabilities(\r\n @WebParam(partName = \"parameters\", name = \"GetCapabilitiesRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.ConnectionRequest parameters\r\n ) throws GetCapabilitiesException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"RouteResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"result\")\r\n @WebMethod(operationName = \"Route\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/Route\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteResponse route(\r\n @WebParam(partName = \"parameters\", name = \"RouteRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.RouteRequest parameters\r\n ) throws RouteException, SessionNotCreatedException;\r\n\r\n @WebResult(name = \"GiveMediaTreatmentResponse\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\", partName = \"response\")\r\n @WebMethod(operationName = \"GiveMediaTreatment\", action = \"http://www.nortel.com/soa/oi/cct/RoutePointConnectionService/GiveMediaTreatment\")\r\n public com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentResponse giveMediaTreatment(\r\n @WebParam(partName = \"parameters\", name = \"GiveMediaTreatmentRequest\", targetNamespace = \"http://www.nortel.com/soa/oi/cct/types/RoutePointConnectionService\")\r\n com.nortel.soa.oi.cct.types.routepointconnectionservice.GiveMediaTreatmentRequest parameters\r\n ) throws GiveMediaTreatmentException, SessionNotCreatedException;\r\n}",
"public interface OrderedProductService extends Service<OrderedProduct> {\n}",
"private WebServicesFabrica(){}",
"public interface MaDeductionItemService extends Service<MaDeductionItem> {\n public List<MaDeductionItems> getMark(String domainUnid);\n}",
"@ProviderType\npublic interface ServiceUserMapped {\n\n\n /**\n * The name of the osgi property holding the sub service name.\n */\n String SUBSERVICENAME = \"subServiceName\";\n\n}",
"@WebService(name = \"SoapService\", targetNamespace = \"http://test/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface SoapService {\n\n\n /**\n * \n * @param fileName\n * @return\n * returns java.lang.Integer\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResult\", targetNamespace = \"http://test/\", className = \"test.GetResult\")\n @ResponseWrapper(localName = \"getResultResponse\", targetNamespace = \"http://test/\", className = \"test.GetResultResponse\")\n @Action(input = \"http://test/SoapService/getResultRequest\", output = \"http://test/SoapService/getResultResponse\")\n public Integer getResult(\n @WebParam(name = \"fileName\", targetNamespace = \"\")\n String fileName);\n\n /**\n * \n * @param path\n */\n @WebMethod\n @Oneway\n @RequestWrapper(localName = \"getFilePath\", targetNamespace = \"http://test/\", className = \"test.GetFilePath\")\n @Action(input = \"http://test/SoapService/getFilePath\")\n public void getFilePath(\n @WebParam(name = \"path\", targetNamespace = \"\")\n String path);\n\n}",
"interface ISampleStoreForwardClient\n{\n /**\n * Service PID for Spillway service\n */\n public final static String SERVICE_PID = \"com.ge.dspmicro.sample.storeforwardclient\"; //$NON-NLS-1$\n\n /** Required Property key for storeforward name */\n public final static String STOREFORWARD = SERVICE_PID + \".storeforward\"; //$NON-NLS-1$\n\n}",
"public interface PanSequenceService extends BaseService<PanSequence> {\n}",
"@WebService(name = \"MyServ\", targetNamespace = \"http://myServ\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface MyServ {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns double\r\n */\r\n @WebMethod(operationName = \"ConvertMtoKm\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"ConvertMtoKm\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKm\")\r\n @ResponseWrapper(localName = \"ConvertMtoKmResponse\", targetNamespace = \"http://myServ\", className = \"myserv.ConvertMtoKmResponse\")\r\n public double convertMtoKm(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n double arg0);\r\n\r\n}",
"public mService() {\n super(\"fetchImageService\");\n }",
"public ElementServiceImpl() {\n\t\tsuper();\n\t}",
"public interface DaIotDictionaryService extends Service<DaIotDictionary> {\n\n}",
"@WebService(targetNamespace = \"http://services.bookservice.atatorus.fr/\", name = \"Hello\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface Hello {\n\n @WebMethod\n @RequestWrapper(localName = \"hello\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.Hello_Type\")\n @ResponseWrapper(localName = \"helloResponse\", targetNamespace = \"http://services.bookservice.atatorus.fr/\", className = \"fr.atatorus.bookservice.services.HelloResponse\")\n @WebResult(name = \"return\", targetNamespace = \"\")\n public java.lang.String hello(\n @WebParam(name = \"nom\", targetNamespace = \"\")\n java.lang.String nom\n );\n}",
"private static interface Service {}",
"public interface ProcesoMSGEliminarBuzonMensajeService extends Service {\n\n\t/**\n\t * Proceso que realiza la eliminacin del buzon de mensajes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarEliminarBuzonMensaje(Map criteria);\n\n}",
"public interface ServiceEMESkeletonInterface {\n \n \n /**\n * Auto generated method signature\n * \n * @param requestMessage\n * @throws MsgFaultMsg : \n */\n\n \n public ch.iec.tc57._2011.schema.message.ResponseMessageDocument request\n (\n ch.iec.tc57._2011.schema.message.RequestMessageDocument requestMessage\n )\n throws MsgFaultMsg;\n \n }",
"public interface IResteasyService {\r\n\t\r\n\t/**\r\n\t * Service name inside OSGi namespace service registration.\r\n\t */\r\n\tpublic static final String SERVICE_NAME = ResteasyService.class.getName();\r\n\r\n\t/**\r\n\t * Add a SingletonResource.\r\n\t * @param resource\r\n\t */\r\n\tpublic void addSingletonResource(Object resource);\r\n\t\r\n\t/**\r\n\t * Remove a SingletonResource.\r\n\t * @param clazz\r\n\t */\r\n\tpublic void removeSingletonResource(Class<?> clazz);\r\n\r\n}",
"public interface TypeOperationService {\n\n\n}",
"@WebService(name = \"EmployeeService\", targetNamespace = \"http://service.com/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface EmployeeService {\r\n\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @throws Exception_Exception\r\n */\r\n @WebMethod(operationName = \"InsertEmployee\")\r\n @RequestWrapper(localName = \"InsertEmployee\", targetNamespace = \"http://service.com/\", className = \"com.service.InsertEmployee\")\r\n @ResponseWrapper(localName = \"InsertEmployeeResponse\", targetNamespace = \"http://service.com/\", className = \"com.service.InsertEmployeeResponse\")\r\n @Action(input = \"http://service.com/EmployeeService/InsertEmployeeRequest\", output = \"http://service.com/EmployeeService/InsertEmployeeResponse\", fault = {\r\n @FaultAction(className = Exception_Exception.class, value = \"http://service.com/EmployeeService/InsertEmployee/Fault/Exception\")\r\n })\r\n public void insertEmployee(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Employee arg0)\r\n throws Exception_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @return\r\n * returns java.util.List<com.service.Employee>\r\n * @throws Exception_Exception\r\n */\r\n @WebMethod(operationName = \"DisplayEmployees\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"DisplayEmployees\", targetNamespace = \"http://service.com/\", className = \"com.service.DisplayEmployees\")\r\n @ResponseWrapper(localName = \"DisplayEmployeesResponse\", targetNamespace = \"http://service.com/\", className = \"com.service.DisplayEmployeesResponse\")\r\n @Action(input = \"http://service.com/EmployeeService/DisplayEmployeesRequest\", output = \"http://service.com/EmployeeService/DisplayEmployeesResponse\", fault = {\r\n @FaultAction(className = Exception_Exception.class, value = \"http://service.com/EmployeeService/DisplayEmployees/Fault/Exception\")\r\n })\r\n public List<Employee> displayEmployees()\r\n throws Exception_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns com.service.Employee\r\n * @throws Exception_Exception\r\n */\r\n @WebMethod(operationName = \"DisplayEmployeeById\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"DisplayEmployeeById\", targetNamespace = \"http://service.com/\", className = \"com.service.DisplayEmployeeById\")\r\n @ResponseWrapper(localName = \"DisplayEmployeeByIdResponse\", targetNamespace = \"http://service.com/\", className = \"com.service.DisplayEmployeeByIdResponse\")\r\n @Action(input = \"http://service.com/EmployeeService/DisplayEmployeeByIdRequest\", output = \"http://service.com/EmployeeService/DisplayEmployeeByIdResponse\", fault = {\r\n @FaultAction(className = Exception_Exception.class, value = \"http://service.com/EmployeeService/DisplayEmployeeById/Fault/Exception\")\r\n })\r\n public Employee displayEmployeeById(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n int arg0)\r\n throws Exception_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns int\r\n * @throws Exception_Exception\r\n * @throws NonexistentEntityException_Exception\r\n */\r\n @WebMethod(operationName = \"UpdateEmployee\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"UpdateEmployee\", targetNamespace = \"http://service.com/\", className = \"com.service.UpdateEmployee\")\r\n @ResponseWrapper(localName = \"UpdateEmployeeResponse\", targetNamespace = \"http://service.com/\", className = \"com.service.UpdateEmployeeResponse\")\r\n @Action(input = \"http://service.com/EmployeeService/UpdateEmployeeRequest\", output = \"http://service.com/EmployeeService/UpdateEmployeeResponse\", fault = {\r\n @FaultAction(className = NonexistentEntityException_Exception.class, value = \"http://service.com/EmployeeService/UpdateEmployee/Fault/NonexistentEntityException\"),\r\n @FaultAction(className = Exception_Exception.class, value = \"http://service.com/EmployeeService/UpdateEmployee/Fault/Exception\")\r\n })\r\n public int updateEmployee(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Employee arg0)\r\n throws Exception_Exception, NonexistentEntityException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns int\r\n * @throws NonexistentEntityException_Exception\r\n */\r\n @WebMethod(operationName = \"DeleteEmployee\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"DeleteEmployee\", targetNamespace = \"http://service.com/\", className = \"com.service.DeleteEmployee\")\r\n @ResponseWrapper(localName = \"DeleteEmployeeResponse\", targetNamespace = \"http://service.com/\", className = \"com.service.DeleteEmployeeResponse\")\r\n @Action(input = \"http://service.com/EmployeeService/DeleteEmployeeRequest\", output = \"http://service.com/EmployeeService/DeleteEmployeeResponse\", fault = {\r\n @FaultAction(className = NonexistentEntityException_Exception.class, value = \"http://service.com/EmployeeService/DeleteEmployee/Fault/NonexistentEntityException\")\r\n })\r\n public int deleteEmployee(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Integer arg0)\r\n throws NonexistentEntityException_Exception\r\n ;\r\n\r\n /**\r\n * \r\n * @param arg0\r\n * @return\r\n * returns com.service.Employee\r\n * @throws NonexistentEntityException_Exception\r\n */\r\n @WebMethod(operationName = \"SearchEmployeeById\")\r\n @WebResult(targetNamespace = \"\")\r\n @RequestWrapper(localName = \"SearchEmployeeById\", targetNamespace = \"http://service.com/\", className = \"com.service.SearchEmployeeById\")\r\n @ResponseWrapper(localName = \"SearchEmployeeByIdResponse\", targetNamespace = \"http://service.com/\", className = \"com.service.SearchEmployeeByIdResponse\")\r\n @Action(input = \"http://service.com/EmployeeService/SearchEmployeeByIdRequest\", output = \"http://service.com/EmployeeService/SearchEmployeeByIdResponse\", fault = {\r\n @FaultAction(className = NonexistentEntityException_Exception.class, value = \"http://service.com/EmployeeService/SearchEmployeeById/Fault/NonexistentEntityException\")\r\n })\r\n public Employee searchEmployeeById(\r\n @WebParam(name = \"arg0\", targetNamespace = \"\")\r\n Integer arg0)\r\n throws NonexistentEntityException_Exception\r\n ;\r\n\r\n}",
"public interface IGroupCodeService extends BaseService<GroupCode, Integer> {\r\n\r\n}",
"public interface RappelManager\r\n extends GenericManager<Rappel, Long>\r\n{\r\n\r\n public final static String SERVICE_NAME = \"RappelManager\";\r\n\r\n}",
"public interface CreditCardInformationDataService extends DataService<CreditCardInformation, String> {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model required=\"true\" ordered=\"false\" legalEntityIdRequired=\"true\" legalEntityIdOrdered=\"false\"\n\t * @generated\n\t */\n\tCreditCardInformation getByLegalEntity(int legalEntityId);\n\n}",
"@WebService(targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/requester\", name = \"ConnectionRequesterPort\")\n@XmlSeeAlso({net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.ObjectFactory.class, net.es.nsi.lib.soap.gen.saml.assertion.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmlenc.ObjectFactory.class, net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ObjectFactory.class, net.es.nsi.lib.soap.gen.xmldsig.ObjectFactory.class})\npublic interface ConnectionRequesterPort {\n\n /**\n * This reserveFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a reserve failure. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveFailed\")\n @RequestWrapper(localName = \"reserveFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This querySummaryConfirmed message is sent from the target NSA to\n * requesting NSA as an indication of a successful querySummary\n * operation. This is in response to an original querySummary request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/querySummaryConfirmed\")\n @RequestWrapper(localName = \"querySummaryConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void querySummaryConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QuerySummaryResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This provisionConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful provision operation.\n * This is in response to an original provision request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/provisionConfirmed\")\n @RequestWrapper(localName = \"provisionConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void provisionConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * The error message is sent from a Provider NSA to Requester\n * NSA as an indication of the occurence of an error condition.\n * This is in response to an original request from the associated\n * Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/error\")\n @RequestWrapper(localName = \"error\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericErrorType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void error(\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This terminateConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful terminate operation.\n * This is in response to an original terminate request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/terminateConfirmed\")\n @RequestWrapper(localName = \"terminateConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void terminateConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This releaseConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful release operation.\n * This is in response to an original release request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/releaseConfirmed\")\n @RequestWrapper(localName = \"releaseConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void releaseConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous error message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/errorEvent\")\n @RequestWrapper(localName = \"errorEvent\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ErrorEventType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void errorEvent(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"event\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.EventEnumType event,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"additionalInfo\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.TypeValuePairListType additionalInfo,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/dataPlaneStateChange\")\n @RequestWrapper(localName = \"dataPlaneStateChange\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStateChangeRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void dataPlaneStateChange(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"dataPlaneStatus\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.DataPlaneStatusType dataPlaneStatus,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveAbortConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveAbort.\n * This is in response to an original reserveAbort request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveAbortConfirmed\")\n @RequestWrapper(localName = \"reserveAbortConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveAbortConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/messageDeliveryTimeout\")\n @RequestWrapper(localName = \"messageDeliveryTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.MessageDeliveryTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void messageDeliveryTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"correlationId\", targetNamespace = \"\")\n java.lang.String correlationId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitFailed message is sent from a Provider NSA to\n * Requester NSA as an indication of a modify failure. This\n * is in response to an original modify request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitFailed\")\n @RequestWrapper(localName = \"reserveCommitFailed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericFailedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitFailed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"connectionStates\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ConnectionStatesType connectionStates,\n @WebParam(name = \"serviceException\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.types.ServiceExceptionType serviceException,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryNotificationConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryNotification\n * operation. This is in response to an original queryNotification request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryNotificationConfirmed\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n @WebResult(name = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", partName = \"acknowledgment\")\n public net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType queryNotificationConfirmed(\n @WebParam(partName = \"queryNotificationConfirmed\", name = \"queryNotificationConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryNotificationConfirmedType queryNotificationConfirmed,\n @WebParam(partName = \"header\", mode = WebParam.Mode.INOUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryResultConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryResult operation.\n * This is in response to an original queryResult request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryResultConfirmed\")\n @RequestWrapper(localName = \"queryResultConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryResultConfirmed(\n @WebParam(name = \"result\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryResultResponseType> result,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveCommitConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reserveCommit request.\n * This is in response to an original reserveCommit request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveCommitConfirmed\")\n @RequestWrapper(localName = \"reserveCommitConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveCommitConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * An autonomous message issued from a Provider NSA to Requester\n * NSA. The acknowledgment indicates that the Requester NSA has\n * accepted the notification request for processing. There are no\n * associated confirmed or failed messages.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveTimeout\")\n @RequestWrapper(localName = \"reserveTimeout\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveTimeoutRequestType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveTimeout(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"notificationId\", targetNamespace = \"\")\n long notificationId,\n @WebParam(name = \"timeStamp\", targetNamespace = \"\")\n javax.xml.datatype.XMLGregorianCalendar timeStamp,\n @WebParam(name = \"timeoutValue\", targetNamespace = \"\")\n int timeoutValue,\n @WebParam(name = \"originatingConnectionId\", targetNamespace = \"\")\n java.lang.String originatingConnectionId,\n @WebParam(name = \"originatingNSA\", targetNamespace = \"\")\n java.lang.String originatingNSA,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This reserveConfirmed message is sent from a Provider NSA to\n * Requester NSA as an indication of a successful reservation. This\n * is in response to an original reserve request from the\n * associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/reserveConfirmed\")\n @RequestWrapper(localName = \"reserveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReserveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void reserveConfirmed(\n @WebParam(name = \"connectionId\", targetNamespace = \"\")\n java.lang.String connectionId,\n @WebParam(name = \"globalReservationId\", targetNamespace = \"\")\n java.lang.String globalReservationId,\n @WebParam(name = \"description\", targetNamespace = \"\")\n java.lang.String description,\n @WebParam(name = \"criteria\", targetNamespace = \"\")\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.ReservationConfirmCriteriaType criteria,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n\n /**\n * This queryRecursiveConfirmed message is sent from the Provider NSA to\n * Requester NSA as an indication of a successful queryRecursive\n * operation. This is in response to an original queryRecursive request\n * from the associated Requester NSA.\n * \n */\n @WebMethod(action = \"http://schemas.ogf.org/nsi/2013/12/connection/service/queryRecursiveConfirmed\")\n @RequestWrapper(localName = \"queryRecursiveConfirmed\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveConfirmedType\")\n @ResponseWrapper(localName = \"acknowledgment\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/connection/types\", className = \"net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.GenericAcknowledgmentType\")\n public void queryRecursiveConfirmed(\n @WebParam(name = \"reservation\", targetNamespace = \"\")\n java.util.List<net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.types.QueryRecursiveResultType> reservation,\n @WebParam(name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType header,\n @WebParam(mode = WebParam.Mode.OUT, name = \"nsiHeader\", targetNamespace = \"http://schemas.ogf.org/nsi/2013/12/framework/headers\", header = true)\n javax.xml.ws.Holder<net.es.nsi.lib.soap.gen.nsi_2_0_r117.framework.headers.CommonHeaderType> header1\n ) throws net.es.nsi.lib.soap.gen.nsi_2_0_r117.connection.ifce.ServiceException;\n}",
"@WebService(targetNamespace = \"http://www.pm.company.com/service/Pawel/\", name = \"Pawel\")\n@XmlSeeAlso({com.company.pm.schema.pawelschema.ObjectFactory.class})\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\npublic interface Pawel {\n\n @WebResult(name = \"firstOperationResponse\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\", partName = \"firstOperationResponse\")\n @WebMethod(operationName = \"FirstOperation\", action = \"http://www.pm.company.com/service/Pawel/FirstOperation\")\n public com.company.pm.schema.pawelschema.FirstOperationResponseType firstOperation(\n @WebParam(partName = \"firstOperationRequest\", name = \"firstOperationRequest\", targetNamespace = \"http://www.pm.company.com/schema/PawelSchema\")\n com.company.pm.schema.pawelschema.FirstOperationRequestType firstOperationRequest\n );\n}",
"@Override\n\tpublic URL getServiceUrl()\n\t{\n\t\treturn null;\n\t}",
"@WebService(name = \"ConfigurationService\", targetNamespace = \"http://ws.coverity.com/v7\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ConfigurationService {\n\n\n /**\n * \n * @param message\n * @param usernames\n * @param subject\n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"notify\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.Notify\")\n @ResponseWrapper(localName = \"notifyResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.NotifyResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/notifyRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/notifyResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/notify/Fault/CovRemoteServiceException\")\n })\n public List<String> notify(\n @WebParam(name = \"usernames\", targetNamespace = \"\")\n List<String> usernames,\n @WebParam(name = \"subject\", targetNamespace = \"\")\n String subject,\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.AttributeDefinitionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttributes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributes\")\n @ResponseWrapper(localName = \"getAttributesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributesResponse\")\n public List<AttributeDefinitionDataObj> getAttributes();\n\n /**\n * \n * @param attributeDefinitionId\n * @return\n * returns com.coverity.ws.v7.AttributeDefinitionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttribute\")\n @ResponseWrapper(localName = \"getAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAttribute/Fault/CovRemoteServiceException\")\n })\n public AttributeDefinitionDataObj getAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.VersionDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getVersion\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersion\")\n @ResponseWrapper(localName = \"getVersionResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetVersionResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getVersionRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getVersionResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getVersion/Fault/CovRemoteServiceException\")\n })\n public VersionDataObj getVersion()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.GroupsPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroups\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroups\")\n @ResponseWrapper(localName = \"getGroupsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroups/Fault/CovRemoteServiceException\")\n })\n public GroupsPageDataObj getGroups(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n GroupFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @param pageSpec\n * @return\n * returns com.coverity.ws.v7.UsersPageDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUsers\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsers\")\n @ResponseWrapper(localName = \"getUsersResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUsersResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUsersRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUsersResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUsers/Fault/CovRemoteServiceException\")\n })\n public UsersPageDataObj getUsers(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n UserFilterSpecDataObj filterSpec,\n @WebParam(name = \"pageSpec\", targetNamespace = \"\")\n PageSpecDataObj pageSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @return\n * returns com.coverity.ws.v7.GroupDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroup\")\n @ResponseWrapper(localName = \"getGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getGroup/Fault/CovRemoteServiceException\")\n })\n public GroupDataObj getGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @return\n * returns com.coverity.ws.v7.RoleDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRole\")\n @ResponseWrapper(localName = \"getRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getRole/Fault/CovRemoteServiceException\")\n })\n public RoleDataObj getRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttribute\")\n @ResponseWrapper(localName = \"createAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createAttribute/Fault/CovRemoteServiceException\")\n })\n public void createAttribute(\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.RoleDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllRoles\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRoles\")\n @ResponseWrapper(localName = \"getAllRolesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllRolesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllRolesResponse\")\n public List<RoleDataObj> getAllRoles();\n\n /**\n * \n * @param groupSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroup\")\n @ResponseWrapper(localName = \"createGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createGroup/Fault/CovRemoteServiceException\")\n })\n public void createGroup(\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRole\")\n @ResponseWrapper(localName = \"createRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createRole/Fault/CovRemoteServiceException\")\n })\n public void createRole(\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroup\")\n @ResponseWrapper(localName = \"deleteGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteGroup/Fault/CovRemoteServiceException\")\n })\n public void deleteGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param groupSpec\n * @param groupId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateGroup\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroup\")\n @ResponseWrapper(localName = \"updateGroupResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateGroupResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateGroupResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateGroup/Fault/CovRemoteServiceException\")\n })\n public void updateGroup(\n @WebParam(name = \"groupId\", targetNamespace = \"\")\n GroupIdDataObj groupId,\n @WebParam(name = \"groupSpec\", targetNamespace = \"\")\n GroupSpecDataObj groupSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleSpec\n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRole\")\n @ResponseWrapper(localName = \"updateRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateRole/Fault/CovRemoteServiceException\")\n })\n public void updateRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId,\n @WebParam(name = \"roleSpec\", targetNamespace = \"\")\n RoleSpecDataObj roleSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param roleId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteRole\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRole\")\n @ResponseWrapper(localName = \"deleteRoleResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteRoleResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteRoleResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteRole/Fault/CovRemoteServiceException\")\n })\n public void deleteRole(\n @WebParam(name = \"roleId\", targetNamespace = \"\")\n RoleIdDataObj roleId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStream\")\n @ResponseWrapper(localName = \"createStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStream/Fault/CovRemoteServiceException\")\n })\n public void createStream(\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param streamSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStream\")\n @ResponseWrapper(localName = \"updateStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateStream/Fault/CovRemoteServiceException\")\n })\n public void updateStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param onlyIfEmpty\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStream\")\n @ResponseWrapper(localName = \"deleteStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteStream/Fault/CovRemoteServiceException\")\n })\n public void deleteStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"onlyIfEmpty\", targetNamespace = \"\")\n boolean onlyIfEmpty)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUser\")\n @ResponseWrapper(localName = \"createUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createUser/Fault/CovRemoteServiceException\")\n })\n public void createUser(\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @param userSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUser\")\n @ResponseWrapper(localName = \"updateUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateUser/Fault/CovRemoteServiceException\")\n })\n public void updateUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username,\n @WebParam(name = \"userSpec\", targetNamespace = \"\")\n UserSpecDataObj userSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUser\")\n @ResponseWrapper(localName = \"deleteUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteUser/Fault/CovRemoteServiceException\")\n })\n public void deleteUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllIntegrityControlPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissions\")\n @ResponseWrapper(localName = \"getAllIntegrityControlPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllIntegrityControlPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissionsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllIntegrityControlPermissions/Fault/CovRemoteServiceException\")\n })\n public List<PermissionDataObj> getAllIntegrityControlPermissions(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @param attributeDefinitionSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttribute\")\n @ResponseWrapper(localName = \"updateAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateAttribute/Fault/CovRemoteServiceException\")\n })\n public void updateAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId,\n @WebParam(name = \"attributeDefinitionSpec\", targetNamespace = \"\")\n AttributeDefinitionSpecDataObj attributeDefinitionSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param attributeDefinitionId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteAttribute\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttribute\")\n @ResponseWrapper(localName = \"deleteAttributeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteAttributeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttributeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteAttribute/Fault/CovRemoteServiceException\")\n })\n public void deleteAttribute(\n @WebParam(name = \"attributeDefinitionId\", targetNamespace = \"\")\n AttributeDefinitionIdDataObj attributeDefinitionId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMap\")\n @ResponseWrapper(localName = \"createComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createComponentMap/Fault/CovRemoteServiceException\")\n })\n public void createComponentMap(\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapSpec\n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMap\")\n @ResponseWrapper(localName = \"updateComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateComponentMap/Fault/CovRemoteServiceException\")\n })\n public void updateComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId,\n @WebParam(name = \"componentMapSpec\", targetNamespace = \"\")\n ComponentMapSpecDataObj componentMapSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentMapId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteComponentMap\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMap\")\n @ResponseWrapper(localName = \"deleteComponentMapResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteComponentMapResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMapResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteComponentMap/Fault/CovRemoteServiceException\")\n })\n public void deleteComponentMap(\n @WebParam(name = \"componentMapId\", targetNamespace = \"\")\n ComponentMapIdDataObj componentMapId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProject\")\n @ResponseWrapper(localName = \"createProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createProject/Fault/CovRemoteServiceException\")\n })\n public void createProject(\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProject\")\n @ResponseWrapper(localName = \"updateProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateProject/Fault/CovRemoteServiceException\")\n })\n public void updateProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"projectSpec\", targetNamespace = \"\")\n ProjectSpecDataObj projectSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProject\")\n @ResponseWrapper(localName = \"deleteProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteProject/Fault/CovRemoteServiceException\")\n })\n public void deleteProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStore\")\n @ResponseWrapper(localName = \"createTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createTriageStore/Fault/CovRemoteServiceException\")\n })\n public void createTriageStore(\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreSpec\n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStore\")\n @ResponseWrapper(localName = \"updateTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateTriageStore/Fault/CovRemoteServiceException\")\n })\n public void updateTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"triageStoreSpec\", targetNamespace = \"\")\n TriageStoreSpecDataObj triageStoreSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param triageStoreId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteTriageStore\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStore\")\n @ResponseWrapper(localName = \"deleteTriageStoreResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteTriageStoreResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStoreResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteTriageStore/Fault/CovRemoteServiceException\")\n })\n public void deleteTriageStore(\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param componentId\n * @return\n * returns com.coverity.ws.v7.ComponentDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponent\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponent\")\n @ResponseWrapper(localName = \"getComponentResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponent/Fault/CovRemoteServiceException\")\n })\n public ComponentDataObj getComponent(\n @WebParam(name = \"componentId\", targetNamespace = \"\")\n ComponentIdDataObj componentId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param username\n * @return\n * returns com.coverity.ws.v7.UserDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUser\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUser\")\n @ResponseWrapper(localName = \"getUserResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetUserResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getUserRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getUserResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getUser/Fault/CovRemoteServiceException\")\n })\n public UserDataObj getUser(\n @WebParam(name = \"username\", targetNamespace = \"\")\n String username)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.StreamDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getStreams\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreams\")\n @ResponseWrapper(localName = \"getStreamsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetStreamsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getStreamsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getStreams/Fault/CovRemoteServiceException\")\n })\n public List<StreamDataObj> getStreams(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n StreamFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.CheckerPropertyDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCheckerProperties\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerProperties\")\n @ResponseWrapper(localName = \"getCheckerPropertiesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCheckerPropertiesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerPropertiesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getCheckerProperties/Fault/CovRemoteServiceException\")\n })\n public List<CheckerPropertyDataObj> getCheckerProperties(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n CheckerPropertyFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteSnapshot\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshot\")\n @ResponseWrapper(localName = \"deleteSnapshotResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteSnapshotResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshotResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteSnapshot/Fault/CovRemoteServiceException\")\n })\n public void deleteSnapshot(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param viewname\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"executeNotification\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotification\")\n @ResponseWrapper(localName = \"executeNotificationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.ExecuteNotificationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/executeNotificationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/executeNotification/Fault/CovRemoteServiceException\")\n })\n public void executeNotification(\n @WebParam(name = \"viewname\", targetNamespace = \"\")\n String viewname)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ProjectDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getProjects\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjects\")\n @ResponseWrapper(localName = \"getProjectsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetProjectsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getProjectsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getProjects/Fault/CovRemoteServiceException\")\n })\n public List<ProjectDataObj> getProjects(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ProjectFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param projectId\n * @param sourceStreamId\n * @return\n * returns com.coverity.ws.v7.StreamDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"copyStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStream\")\n @ResponseWrapper(localName = \"copyStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CopyStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/copyStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/copyStream/Fault/CovRemoteServiceException\")\n })\n public StreamDataObj copyStream(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"sourceStreamId\", targetNamespace = \"\")\n StreamIdDataObj sourceStreamId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamSpec\n * @param projectId\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createStreamInProject\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProject\")\n @ResponseWrapper(localName = \"createStreamInProjectResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateStreamInProjectResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProjectResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createStreamInProject/Fault/CovRemoteServiceException\")\n })\n public void createStreamInProject(\n @WebParam(name = \"projectId\", targetNamespace = \"\")\n ProjectIdDataObj projectId,\n @WebParam(name = \"streamSpec\", targetNamespace = \"\")\n StreamSpecDataObj streamSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"setAcceptingNewCommits\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommits\")\n @ResponseWrapper(localName = \"setAcceptingNewCommitsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetAcceptingNewCommitsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setAcceptingNewCommitsResponse\")\n public void setAcceptingNewCommits(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n boolean arg0);\n\n /**\n * \n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDay\")\n @ResponseWrapper(localName = \"getMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getMessageOfTheDayResponse\")\n public String getMessageOfTheDay();\n\n /**\n * \n * @param message\n */\n @WebMethod\n @RequestWrapper(localName = \"setMessageOfTheDay\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDay\")\n @ResponseWrapper(localName = \"setMessageOfTheDayResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetMessageOfTheDayResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setMessageOfTheDayResponse\")\n public void setMessageOfTheDay(\n @WebParam(name = \"message\", targetNamespace = \"\")\n String message);\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.TriageStoreDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStores\")\n @ResponseWrapper(localName = \"getTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getTriageStores/Fault/CovRemoteServiceException\")\n })\n public List<TriageStoreDataObj> getTriageStores(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n TriageStoreFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.CommitStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getCommitState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitState\")\n @ResponseWrapper(localName = \"getCommitStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetCommitStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getCommitStateResponse\")\n public CommitStateDataObj getCommitState();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.ServerDomainIdDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLdapServerDomains\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomains\")\n @ResponseWrapper(localName = \"getLdapServerDomainsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLdapServerDomainsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLdapServerDomainsResponse\")\n public List<ServerDomainIdDataObj> getLdapServerDomains();\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.LicenseStateDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLicenseState\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseState\")\n @ResponseWrapper(localName = \"getLicenseStateResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLicenseStateResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLicenseStateResponse\")\n public LicenseStateDataObj getLicenseState();\n\n /**\n * \n * @param snapshotId\n * @param snapshotData\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateSnapshotInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfo\")\n @ResponseWrapper(localName = \"updateSnapshotInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateSnapshotInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateSnapshotInfo/Fault/CovRemoteServiceException\")\n })\n public void updateSnapshotInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n SnapshotIdDataObj snapshotId,\n @WebParam(name = \"snapshotData\", targetNamespace = \"\")\n SnapshotInfoDataObj snapshotData)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.FeatureUpdateTimeDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getLastUpdateTimes\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimes\")\n @ResponseWrapper(localName = \"getLastUpdateTimesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetLastUpdateTimesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getLastUpdateTimesResponse\")\n public List<FeatureUpdateTimeDataObj> getLastUpdateTimes();\n\n /**\n * \n * @param ldapConfigurationSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"createLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfiguration\")\n @ResponseWrapper(localName = \"createLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.CreateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/createLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void createLdapConfiguration(\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param ldapConfigurationSpec\n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"updateLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfiguration\")\n @ResponseWrapper(localName = \"updateLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.UpdateLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/updateLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void updateLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj,\n @WebParam(name = \"ldapConfigurationSpec\", targetNamespace = \"\")\n LdapConfigurationSpecDataObj ldapConfigurationSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.SnapshotPurgeDetailsObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"getSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public SnapshotPurgeDetailsObj getSnapshotPurgeDetails()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param purgeDetailsSpec\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"setSnapshotPurgeDetails\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetails\")\n @ResponseWrapper(localName = \"setSnapshotPurgeDetailsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.SetSnapshotPurgeDetailsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetailsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/setSnapshotPurgeDetails/Fault/CovRemoteServiceException\")\n })\n public void setSnapshotPurgeDetails(\n @WebParam(name = \"purgeDetailsSpec\", targetNamespace = \"\")\n SnapshotPurgeDetailsObj purgeDetailsSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param srcTriageStoreIds\n * @param triageStoreId\n * @param deleteSourceStores\n * @param assignStreamsToTargetStore\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mergeTriageStores\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStores\")\n @ResponseWrapper(localName = \"mergeTriageStoresResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.MergeTriageStoresResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStoresResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/mergeTriageStores/Fault/CovRemoteServiceException\")\n })\n public void mergeTriageStores(\n @WebParam(name = \"srcTriageStoreIds\", targetNamespace = \"\")\n List<TriageStoreIdDataObj> srcTriageStoreIds,\n @WebParam(name = \"triageStoreId\", targetNamespace = \"\")\n TriageStoreIdDataObj triageStoreId,\n @WebParam(name = \"deleteSourceStores\", targetNamespace = \"\")\n boolean deleteSourceStores,\n @WebParam(name = \"assignStreamsToTargetStore\", targetNamespace = \"\")\n boolean assignStreamsToTargetStore)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.PermissionDataObj>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllPermissions\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissions\")\n @ResponseWrapper(localName = \"getAllPermissionsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllPermissionsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllPermissionsResponse\")\n public List<PermissionDataObj> getAllPermissions();\n\n /**\n * \n * @return\n * returns java.util.List<com.coverity.ws.v7.LdapConfigurationDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getAllLdapConfigurations\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurations\")\n @ResponseWrapper(localName = \"getAllLdapConfigurationsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetAllLdapConfigurationsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurationsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getAllLdapConfigurations/Fault/CovRemoteServiceException\")\n })\n public List<LdapConfigurationDataObj> getAllLdapConfigurations()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotId\n * @return\n * returns java.util.List<com.coverity.ws.v7.DeleteSnapshotJobInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDeleteSnapshotJobInfo\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfo\")\n @ResponseWrapper(localName = \"getDeleteSnapshotJobInfoResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDeleteSnapshotJobInfoResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfoResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDeleteSnapshotJobInfo/Fault/CovRemoteServiceException\")\n })\n public List<DeleteSnapshotJobInfoDataObj> getDeleteSnapshotJobInfo(\n @WebParam(name = \"snapshotId\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotId)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param streamId\n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotIdDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotsForStream\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStream\")\n @ResponseWrapper(localName = \"getSnapshotsForStreamResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotsForStreamResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStreamResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotsForStream/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotIdDataObj> getSnapshotsForStream(\n @WebParam(name = \"streamId\", targetNamespace = \"\")\n StreamIdDataObj streamId,\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n SnapshotFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param serverDomainIdDataObj\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteLdapConfiguration\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfiguration\")\n @ResponseWrapper(localName = \"deleteLdapConfigurationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.DeleteLdapConfigurationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfigurationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/deleteLdapConfiguration/Fault/CovRemoteServiceException\")\n })\n public void deleteLdapConfiguration(\n @WebParam(name = \"serverDomainIdDataObj\", targetNamespace = \"\")\n ServerDomainIdDataObj serverDomainIdDataObj)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param filterSpec\n * @return\n * returns java.util.List<com.coverity.ws.v7.ComponentMapDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getComponentMaps\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMaps\")\n @ResponseWrapper(localName = \"getComponentMapsResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetComponentMapsResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMapsResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getComponentMaps/Fault/CovRemoteServiceException\")\n })\n public List<ComponentMapDataObj> getComponentMaps(\n @WebParam(name = \"filterSpec\", targetNamespace = \"\")\n ComponentMapFilterSpecDataObj filterSpec)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns java.util.List<java.lang.String>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getDefectStatuses\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatuses\")\n @ResponseWrapper(localName = \"getDefectStatusesResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetDefectStatusesResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatusesResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getDefectStatuses/Fault/CovRemoteServiceException\")\n })\n public List<String> getDefectStatuses()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @param snapshotIds\n * @return\n * returns java.util.List<com.coverity.ws.v7.SnapshotInfoDataObj>\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSnapshotInformation\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformation\")\n @ResponseWrapper(localName = \"getSnapshotInformationResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSnapshotInformationResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformationResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getSnapshotInformation/Fault/CovRemoteServiceException\")\n })\n public List<SnapshotInfoDataObj> getSnapshotInformation(\n @WebParam(name = \"snapshotIds\", targetNamespace = \"\")\n List<SnapshotIdDataObj> snapshotIds)\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns javax.xml.datatype.XMLGregorianCalendar\n * @throws CovRemoteServiceException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getServerTime\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTime\")\n @ResponseWrapper(localName = \"getServerTimeResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetServerTimeResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getServerTimeResponse\", fault = {\n @FaultAction(className = CovRemoteServiceException_Exception.class, value = \"http://ws.coverity.com/v7/ConfigurationService/getServerTime/Fault/CovRemoteServiceException\")\n })\n public XMLGregorianCalendar getServerTime()\n throws CovRemoteServiceException_Exception\n ;\n\n /**\n * \n * @return\n * returns com.coverity.ws.v7.ConfigurationDataObj\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getSystemConfig\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfig\")\n @ResponseWrapper(localName = \"getSystemConfigResponse\", targetNamespace = \"http://ws.coverity.com/v7\", className = \"com.coverity.ws.v7.GetSystemConfigResponse\")\n @Action(input = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigRequest\", output = \"http://ws.coverity.com/v7/ConfigurationService/getSystemConfigResponse\")\n public ConfigurationDataObj getSystemConfig();\n\n}",
"@WebService(serviceName = \"CommandService\", targetNamespace = ProcessWebService.NAMESPACE)\npublic interface CommandWebService {\n\n final static String NAMESPACE = \"http://services.remote.kie.org/\" + ServicesVersion.VERSION + \"/command\";\n \n @WebMethod(action = \"urn:Execute\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"executeRequest\", targetNamespace = NAMESPACE, className = \"org.kie.remote.services.ws.wsdl.generated.WrapperCommandRequest\")\n @ResponseWrapper(localName = \"executeResponse\", targetNamespace = NAMESPACE, className = \"org.kie.remote.services.ws.wsdl.generated.WrapperCommandResponse\")\n public JaxbCommandsResponse execute(@WebParam(name = \"request\", targetNamespace = \"\") JaxbCommandsRequest request) throws CommandWebServiceException;\n\n}",
"@WebService(name = \"People\", targetNamespace = \"http://ws.soap.finalproject.introsde/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface People {\n\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePerson\")\n @ResponseWrapper(localName = \"createPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/createPersonResponse\")\n public int createPerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.Person\n */\n @WebMethod\n @WebResult(name = \"person\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPerson\")\n @ResponseWrapper(localName = \"getPersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonResponse\")\n public Person getPerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param person\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"personId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updatePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePerson\")\n @ResponseWrapper(localName = \"updatePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdatePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updatePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/updatePersonResponse\")\n public int updatePerson(\n @WebParam(name = \"person\", targetNamespace = \"\")\n Person person);\n\n /**\n * \n * @param personId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responsePersonCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deletePerson\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePerson\")\n @ResponseWrapper(localName = \"deletePersonResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeletePersonResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deletePersonRequest\", output = \"http://ws.soap.finalproject.introsde/People/deletePersonResponse\")\n public int deletePerson(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"people\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPeopleList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleList\")\n @ResponseWrapper(localName = \"getPeopleListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPeopleListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPeopleListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPeopleListResponse\")\n public ListPersonWrapper getPeopleList();\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"currentHealth\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getCurrentHealth\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealth\")\n @ResponseWrapper(localName = \"getCurrentHealthResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetCurrentHealthResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthRequest\", output = \"http://ws.soap.finalproject.introsde/People/getCurrentHealthResponse\")\n public ListMeasureWrapper getCurrentHealth(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"vitalSigns\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getVitalSigns\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSigns\")\n @ResponseWrapper(localName = \"getVitalSignsResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetVitalSignsResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getVitalSignsRequest\", output = \"http://ws.soap.finalproject.introsde/People/getVitalSignsResponse\")\n public ListMeasureWrapper getVitalSigns(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctor\")\n @ResponseWrapper(localName = \"createDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/createDoctorResponse\")\n public int createDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns introsde.finalproject.soap.ws.Doctor\n */\n @WebMethod\n @WebResult(name = \"doctor\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctor\")\n @ResponseWrapper(localName = \"getDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getDoctorResponse\")\n public Doctor getDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param doctor\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"doctorId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctor\")\n @ResponseWrapper(localName = \"updateDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateDoctorResponse\")\n public int updateDoctor(\n @WebParam(name = \"doctor\", targetNamespace = \"\")\n Doctor doctor);\n\n /**\n * \n * @param doctorId\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseDoctorCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctor\")\n @ResponseWrapper(localName = \"deleteDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteDoctorResponse\")\n public int deleteDoctor(\n @WebParam(name = \"doctorId\", targetNamespace = \"\")\n int doctorId);\n\n /**\n * \n * @param idDoctor\n * @return\n * returns introsde.finalproject.soap.ws.ListPersonWrapper\n */\n @WebMethod\n @WebResult(name = \"patientList\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getPersonByDoctor\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctor\")\n @ResponseWrapper(localName = \"getPersonByDoctorResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetPersonByDoctorResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorRequest\", output = \"http://ws.soap.finalproject.introsde/People/getPersonByDoctorResponse\")\n public ListPersonWrapper getPersonByDoctor(\n @WebParam(name = \"idDoctor\", targetNamespace = \"\")\n int idDoctor);\n\n /**\n * \n * @param familyId\n * @return\n * returns introsde.finalproject.soap.ws.Family\n */\n @WebMethod\n @WebResult(name = \"family\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getFamily\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamily\")\n @ResponseWrapper(localName = \"getFamilyResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetFamilyResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getFamilyRequest\", output = \"http://ws.soap.finalproject.introsde/People/getFamilyResponse\")\n public Family getFamily(\n @WebParam(name = \"familyId\", targetNamespace = \"\")\n int familyId);\n\n /**\n * \n * @param idPerson\n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminder\")\n @ResponseWrapper(localName = \"createReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/createReminderResponse\")\n public int createReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListReminderWrapper\n */\n @WebMethod\n @WebResult(name = \"reminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminder\")\n @ResponseWrapper(localName = \"getReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/getReminderResponse\")\n public ListReminderWrapper getReminder(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param reminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"updateReminder\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminder\")\n @ResponseWrapper(localName = \"updateReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateReminderResponse\")\n public int updateReminder(\n @WebParam(name = \"reminder\", targetNamespace = \"\")\n Reminder reminder);\n\n /**\n * \n * @param idReminder\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseReminderCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteReminder\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminder\")\n @ResponseWrapper(localName = \"deleteReminderResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteReminderResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteReminderRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteReminderResponse\")\n public int deleteReminder(\n @WebParam(name = \"idReminder\", targetNamespace = \"\")\n int idReminder);\n\n /**\n * \n * @param idPerson\n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTarget\")\n @ResponseWrapper(localName = \"createTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/createTargetResponse\")\n public int createTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTargetList\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetList\")\n @ResponseWrapper(localName = \"getTargetListResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetListResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetListRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetListResponse\")\n public ListTargetWrapper getTargetList(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param target\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"targetId\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTarget\")\n @ResponseWrapper(localName = \"updateTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateTargetResponse\")\n public int updateTarget(\n @WebParam(name = \"target\", targetNamespace = \"\")\n Target target);\n\n /**\n * \n * @param idTarget\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseTargetCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTarget\")\n @ResponseWrapper(localName = \"deleteTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteTargetResponse\")\n public int deleteTarget(\n @WebParam(name = \"idTarget\", targetNamespace = \"\")\n int idTarget);\n\n /**\n * \n * @param idMeasureDef\n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListTargetWrapper\n */\n @WebMethod\n @WebResult(name = \"targets\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getTarget\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTarget\")\n @ResponseWrapper(localName = \"getTargetResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetTargetResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getTargetRequest\", output = \"http://ws.soap.finalproject.introsde/People/getTargetResponse\")\n public ListTargetWrapper getTarget(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId,\n @WebParam(name = \"idMeasureDef\", targetNamespace = \"\")\n int idMeasureDef);\n\n /**\n * \n * @param measure\n * @param idPerson\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"createMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasure\")\n @ResponseWrapper(localName = \"createMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.CreateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/createMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/createMeasureResponse\")\n public int createMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure,\n @WebParam(name = \"idPerson\", targetNamespace = \"\")\n int idPerson);\n\n /**\n * \n * @param personId\n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureWrapper\n */\n @WebMethod\n @WebResult(name = \"measure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasure\")\n @ResponseWrapper(localName = \"getMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureResponse\")\n public ListMeasureWrapper getMeasure(\n @WebParam(name = \"personId\", targetNamespace = \"\")\n int personId);\n\n /**\n * \n * @param measure\n * @return\n * returns int\n * @throws ParseException_Exception\n */\n @WebMethod\n @WebResult(name = \"idUpdatedMeasure\", targetNamespace = \"\")\n @RequestWrapper(localName = \"updateMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasure\")\n @ResponseWrapper(localName = \"updateMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.UpdateMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/updateMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/updateMeasureResponse\", fault = {\n @FaultAction(className = ParseException_Exception.class, value = \"http://ws.soap.finalproject.introsde/People/updateMeasure/Fault/ParseException\")\n })\n public int updateMeasure(\n @WebParam(name = \"measure\", targetNamespace = \"\")\n Measure measure)\n throws ParseException_Exception\n ;\n\n /**\n * \n * @param idMeasure\n * @return\n * returns int\n */\n @WebMethod\n @WebResult(name = \"responseMeasureCode\", targetNamespace = \"\")\n @RequestWrapper(localName = \"deleteMeasure\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasure\")\n @ResponseWrapper(localName = \"deleteMeasureResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.DeleteMeasureResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/deleteMeasureRequest\", output = \"http://ws.soap.finalproject.introsde/People/deleteMeasureResponse\")\n public int deleteMeasure(\n @WebParam(name = \"idMeasure\", targetNamespace = \"\")\n int idMeasure);\n\n /**\n * \n * @return\n * returns introsde.finalproject.soap.ws.ListMeasureDefinitionWrapper\n */\n @WebMethod\n @WebResult(name = \"measureDefinition\", targetNamespace = \"\")\n @RequestWrapper(localName = \"getMeasureDefinition\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinition\")\n @ResponseWrapper(localName = \"getMeasureDefinitionResponse\", targetNamespace = \"http://ws.soap.finalproject.introsde/\", className = \"introsde.finalproject.soap.ws.GetMeasureDefinitionResponse\")\n @Action(input = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionRequest\", output = \"http://ws.soap.finalproject.introsde/People/getMeasureDefinitionResponse\")\n public ListMeasureDefinitionWrapper getMeasureDefinition();\n\n}",
"public Service_WidgetUpdate() {\n super(\"WidgetUpdateService\");\n }",
"@WebService(targetNamespace = \"http://webservice.review.km.kmss.landray.com/\", name = \"IKmReviewWebserviceService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface IKmReviewWebserviceService {\n\n @WebResult(name = \"return\", targetNamespace = \"\")\n @RequestWrapper(localName = \"addReview\", targetNamespace = \"http://webservice.review.km.kmss.landray.com/\", className = \"com.hanergy.out.CXF.AddReview\")\n @WebMethod\n @ResponseWrapper(localName = \"addReviewResponse\", targetNamespace = \"http://webservice.review.km.kmss.landray.com/\", className = \"com.hanergy.out.CXF.AddReviewResponse\")\n public String addReview(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n KmReviewParamterForm arg0\n ) throws Exception_Exception;\n}",
"public interface BranchService extends Service<Branch, Long> {\n}",
"public interface MetadataService extends CrudService<Metadata, Integer>{\n\tMetadata createContentOfMetadata(Metadata metadata);\n}",
"@WebService(wsdlLocation=\"https://jcs.my-oraclecloudapps.com/HealthCare/HealthCarePort?WSDL\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", name=\"HealthCare\")\n@XmlSeeAlso(\n { com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.ObjectFactory.class })\npublic interface HealthCare\n{\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/isMedicationReadyToPickupResponse\")\n @ResponseWrapper(localName=\"isMedicationReadyToPickupResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickupResponse\")\n @RequestWrapper(localName=\"isMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.IsMedicationReadyToPickup\")\n @WebResult(targetNamespace=\"\")\n public boolean isMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/requestOrderStatusResponse\")\n @ResponseWrapper(localName=\"requestOrderStatusResponse\",\n targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\", className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatusResponse\")\n @RequestWrapper(localName=\"requestOrderStatus\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.RequestOrderStatus\")\n @WebResult(targetNamespace=\"\")\n public String requestOrderStatus(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/setMedicationReadyToPickup\")\n @RequestWrapper(localName=\"setMedicationReadyToPickup\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.SetMedicationReadyToPickup\")\n @Oneway\n public void setMedicationReadyToPickup(@WebParam(targetNamespace=\"\",\n name=\"arg0\")\n String arg0);\n\n @WebMethod\n @Action(input=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionRequest\",\n output=\"http://ws.healthcare.ptsdemo.oracle.com/HealthCare/loadPrescriptionResponse\")\n @ResponseWrapper(localName=\"loadPrescriptionResponse\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescriptionResponse\")\n @RequestWrapper(localName=\"loadPrescription\", targetNamespace=\"http://ws.healthcare.ptsdemo.oracle.com/\",\n className=\"com.oracle.ptsdemo.healthcare.wsclient.healthcare.generated.LoadPrescription\")\n @WebResult(targetNamespace=\"\")\n public String loadPrescription(@WebParam(targetNamespace=\"\", name=\"arg0\")\n String arg0);\n}"
]
| [
"0.5909163",
"0.5823901",
"0.5810444",
"0.57656497",
"0.5738431",
"0.5694753",
"0.56761783",
"0.5621604",
"0.56056505",
"0.5597553",
"0.5591603",
"0.5586397",
"0.5577285",
"0.5566433",
"0.55652165",
"0.5560494",
"0.55442244",
"0.55405724",
"0.55267614",
"0.5523465",
"0.5521978",
"0.54999864",
"0.54984456",
"0.54779303",
"0.54687554",
"0.545919",
"0.5448658",
"0.5446966",
"0.5436427",
"0.5430898",
"0.54295176",
"0.5415605",
"0.540456",
"0.54043233",
"0.54023033",
"0.53996176",
"0.53919244",
"0.53876907",
"0.53802454",
"0.53784806",
"0.5367327",
"0.5365059",
"0.53608257",
"0.5359701",
"0.5359667",
"0.53566957",
"0.5345372",
"0.5337034",
"0.5332472",
"0.53310287",
"0.5330425",
"0.532529",
"0.5322775",
"0.53226346",
"0.53171635",
"0.530306",
"0.5300783",
"0.52947354",
"0.5290354",
"0.5289319",
"0.5286458",
"0.52846366",
"0.5282632",
"0.52733576",
"0.5261311",
"0.5253279",
"0.5253279",
"0.52510434",
"0.5249515",
"0.52484477",
"0.5245139",
"0.5239522",
"0.52367496",
"0.5235194",
"0.5234973",
"0.5233764",
"0.52306026",
"0.52239716",
"0.52237904",
"0.52216715",
"0.5217335",
"0.52172977",
"0.5212464",
"0.5212177",
"0.5210626",
"0.52075535",
"0.5206428",
"0.520308",
"0.5200963",
"0.5200937",
"0.52000433",
"0.51992583",
"0.5199236",
"0.5192547",
"0.518957",
"0.5186958",
"0.51865",
"0.51856524",
"0.5183058",
"0.5181924",
"0.51816046"
]
| 0.0 | -1 |
Returns the gdf tender submission details where tenderReferenceNumber = &63; or throws a NoSuchGDFTenderSubmissionDetailsException if it could not be found. | public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(
String tenderReferenceNumber)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByGDF_Tender_Reference_Number(
tenderReferenceNumber);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"@Override\n\tpublic String getSubmissionText() {\n\t\treturn model.getSubmissionText();\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\r\n\tpublic Grade findGradeDetails(Long gradeId) {\r\n\t\treturn gradeRepository.findOne(gradeId);\r\n\t}",
"public String getReferenceNarrativeText() {\n\t\tif ((this.getMdht().getText() != null) && (this.getMdht().getText().getText() != null)) {\n\t\t\treturn this.getMdht().getText().getText();\n\t\t}\n\t\treturn null;\n\t}",
"private String getNameHtml(final Submitter submitter) {\n final GedRenderer<? extends GedObject> renderer =\n new SimpleNameRenderer(submitter.getName(),\n submitterRenderer.getRendererFactory(),\n submitterRenderer.getRenderingContext());\n return renderer.getNameHtml();\n }",
"public String getResearchteachername() {\r\n\t\treturn researchteachername;\r\n\t}",
"public String getName() {\n\t\tfinal String submitterName = getSubmitterName();\n\t\tif (submitterName != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_name\" + TAB + submitterName;\n\t\treturn null;\n\t}",
"public RS274GCodeRenderer getRendererByGCodeProvider(Integer idGCodeProvider) throws GkException{\n\t\tfor (RS274GCodeRenderer renderer : cacheRenderer.get()) {\n\t\t\tif(ObjectUtils.equals(idGCodeProvider, renderer.getIdGCodeProvider())){\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t}\n\t\tthrow new GkTechnicalException(\"Renderer for GCodeProvider with internal id [\"+idGCodeProvider+\"] does not exist\");\n\t}",
"public final boolean getRendererDisabled(int rendererIndex) {\n return rendererDisabledFlags.get(rendererIndex);\n }",
"@Override\n\tpublic List<EngageAnswerDetails> findEngageAnswerDetailsWithSubject(\n\t\t\tString answerNumber) {\n\t\treturn engageAnswerDetailsMapper.selectEngageAnswerDetailsWithSubject(answerNumber);\n\t}",
"public RendererBean findRenderer(\r\n String componentFamily,\r\n String rendererType)\r\n {\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n return _renderers.get(compositeKey);\r\n }",
"private String getTenderTypeForCard(String tenderType, Locale locale) {\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT)) {\n return getMessage(locale, \"pdf.receipt.debit\");\n } else {\n return getMessage(locale, \"pdf.receipt.credit\");\n }\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public java.lang.CharSequence getGLPOSTDETAILS() {\n return GLPOST_DETAILS;\n }",
"public static TeaFileReader getReader(String fileFormat) {\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn ff.reader;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Default. Should never happen :)\r\n\t\treturn new TextReader();\r\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <TendererQualificationType> tendererQualification ()\n {\n return UBL23WriterBuilder.create (TendererQualificationType.class);\n }",
"public String getAssessmentandReportingInstanceReference() {\n return assessmentandReportingInstanceReference;\n }",
"public static int getHeighestGrade(int subject_index) {\n //defining the right list of grades\n ArrayList<Grade> list;\n if(subject_index != ALL_SUBJECTS) {\n list = grades.get(subject_index);\n }\n else {\n list = getGradeList();\n }\n\n //getting highest grade of list\n int max = 0;\n if(list.size() == 0) {\n if(settings.grades_isRatingInGrades()) {\n return 6;\n }\n else {\n return 15;\n }\n }\n for(Grade grade: list) {\n if(grade.getNumber() > max) {\n max = grade.getNumber();\n }\n }\n return max;\n }",
"@Override\n\tpublic void setSubmissionId(long submissionId) {\n\t\tmodel.setSubmissionId(submissionId);\n\t}",
"public java.lang.CharSequence getGLPOSTDETAILS() {\n return GLPOST_DETAILS;\n }",
"public java.lang.String getDept_restructuring_number() {\n return dept_restructuring_number;\n }",
"public String getPatientCareTakerEmail() {\n\t\treturn this.patientCareTakerEmail;\n\t}",
"public Long getResearchteacherid() {\r\n\t\treturn researchteacherid;\r\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public java.lang.String getIssueNumber() {\r\n return issueNumber;\r\n }",
"public String getGradeName() {\n return gradeName;\n }",
"Calendar getSubmissionDeadline(ReportingPeriod period, Long transmissionType);",
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"public java.lang.String getTerritorialityCode() {\n return territorialityCode;\n }",
"ExperimenterId getExperimenterId();",
"public List<ModelingSubmission> modelingSubmissionsForComparison(ModelingExercise exerciseWithParticipationsAndSubmissions) {\n return exerciseWithParticipationsAndSubmissions.getStudentParticipations().parallelStream().map(Participation::findLatestSubmission).filter(Optional::isPresent)\n .map(Optional::get).filter(submission -> submission instanceof ModelingSubmission).map(submission -> (ModelingSubmission) submission).collect(toUnmodifiableList());\n }",
"public String getPoster() {\n return getElement().getPoster();\n }",
"public String getParticipantIssuerBankTransactionRoutingDetails() {\n return participantIssuerBankTransactionRoutingDetails;\n }",
"public java.lang.String getReferenceNumber() {\r\n return referenceNumber;\r\n }",
"public String getFamilyName() throws PDFNetException {\n/* 550 */ return GetFamilyName(this.a);\n/* */ }",
"public int getNumberSubmissions() {\n\t\treturn submissions.size();\n\t}",
"public String getTjr() {\n return tjr;\n }",
"DateTime getSubmissionTime();",
"public void setDept_restructuring_number(java.lang.String dept_restructuring_number) {\n this.dept_restructuring_number = dept_restructuring_number;\n }",
"public org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo getAttachmentInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo)get_store().find_element_user(ATTACHMENTINFO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public java.lang.String getReviewerName() {\n return reviewerName;\n }",
"String getRendererType();",
"public java.lang.String getStudent_contactEmail() {\n\t\treturn _primarySchoolStudent.getStudent_contactEmail();\n\t}",
"public String getParticipantContactNumber() {\r\n\t\treturn participantContactNumber;\r\n\t}",
"public String getReporterName() {\n return reporterName;\n }",
"public String getExtendedStackTrace() {\n return getExtendedStackTrace(null);\n }",
"@Nullable\n\tpublic Throwable getException() {\n\t\treturn exception;\n\t}",
"public Researcher getResearcherByID(int id);",
"public String toString() {\n return \"submission\";\n }",
"public static String getStackTrace( Throwable exception ) {\r\n\t\tStringWriter sw = new StringWriter();\r\n\t\tPrintWriter pw = new PrintWriter( sw );\r\n\t\texception.printStackTrace( pw );\r\n\t\treturn sw.toString();\r\n\t}",
"public String getReferringPhysician()\n {\n return referringPhysician;\n }",
"protected String getRecipient() {\n return parameterService.getParameterValueAsString(AwardDocument.class,\n Constants.REPORT_TRACKING_NOTIFICATIONS_BATCH_RECIPIENT);\n }",
"public java.lang.String getStudent_contactPhoneNumber() {\n\t\treturn _primarySchoolStudent.getStudent_contactPhoneNumber();\n\t}",
"public static String getStackTrace() {\n Exception e = new Exception();\n return getStackTrace(e);\n }",
"@Nonnull\n public static UBL23WriterBuilder <TendererQualificationResponseType> tendererQualificationResponse ()\n {\n return UBL23WriterBuilder.create (TendererQualificationResponseType.class);\n }",
"public static String getGrade(SalaryGrade[] salaryGrades, int salary) {\n\t\treturn null;\n\t}",
"public int bestSubmissionNumber(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 submission number for the highest score\n return (studentList.get(exists)).getBestSubmitNumber();\n }\n }",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"@Override\n\tpublic List<EmployeeReferalResponseModel> getEmployeeDetails(String referance_email) throws CustomException {\n\n\t\tif (!UserUtility.isValidEmail(referance_email)) {\n\t\t\tthrow new CustomException(204, \"Invalid email id\");\n\t\t}\n\t\tList<EmployeeReferal> employeeReferal = employeeReferalRepository.findByEmployeeEmail(referance_email);\n\n\t\tif (Objects.isNull(employeeReferal) || employeeReferal.isEmpty()) {\n\t\t\tthrow new CustomException(500, \"Reference user does not exists\");\n\t\t}\n\t\treturn conversionUtility.convertTOGetEmployees(employeeReferal);\n\t}",
"public ReceiverIdentifier getRecipient() {\n\n // Get the recipient of the missive document\n return this.missiveHeader.getRcv();\n }",
"Achievements getPostDetails();",
"private FontInfo getFont(FontFormat format, String postScriptName) {\n/* 461 */ if (postScriptName.contains(\"+\"))\n/* */ {\n/* 463 */ postScriptName = postScriptName.substring(postScriptName.indexOf('+') + 1);\n/* */ }\n/* */ \n/* */ \n/* 467 */ FontInfo info = this.fontInfoByName.get(postScriptName);\n/* 468 */ if (info != null && info.getFormat() == format)\n/* */ {\n/* 470 */ return info;\n/* */ }\n/* 472 */ return null;\n/* */ }",
"public Name\ngetSigner() {\n\treturn signer;\n}",
"public VitalParticipant getParticipant() {\n\t\treturn this.getAssignmentResponse().getParticipant();\n }",
"public String findGradeFormatByID (int gradeID);",
"public java.lang.String getPostMasterEmail() {\n return postMasterEmail;\n }",
"TeacherRecord getTeacher(String recordId, String clientId) throws Exception;",
"public String submittedBy() {\n return this.submittedBy;\n }",
"public String getReportTlrno() {\r\n return reportTlrno;\r\n }",
"@Nonnull\n public static UBL23WriterBuilder <TenderReceiptType> tenderReceipt ()\n {\n return UBL23WriterBuilder.create (TenderReceiptType.class);\n }",
"private UriRef getRenderRdfType(Resource renderletDef) {\n\t\tIterator<Triple> renderedTypeIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderedType, null);\n\n\t\tif (renderedTypeIter.hasNext()) {\n\t\t\treturn (UriRef) renderedTypeIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"public boolean hasGLPOSTDETAILS() {\n return fieldSetFlags()[12];\n }"
]
| [
"0.7707685",
"0.73532814",
"0.72248966",
"0.7024509",
"0.64994705",
"0.64500946",
"0.63582474",
"0.62262946",
"0.6177138",
"0.6049266",
"0.59516716",
"0.5532311",
"0.54394066",
"0.51395893",
"0.49489927",
"0.4708277",
"0.47048706",
"0.46772116",
"0.45953256",
"0.44861454",
"0.44731712",
"0.44372436",
"0.44196665",
"0.43830195",
"0.43236536",
"0.431608",
"0.42486304",
"0.417636",
"0.41368008",
"0.4017059",
"0.38539094",
"0.3839999",
"0.38038918",
"0.37803358",
"0.37486938",
"0.3727834",
"0.3714485",
"0.36970034",
"0.36751112",
"0.36708316",
"0.36473352",
"0.3639644",
"0.36278853",
"0.36256555",
"0.3620895",
"0.36160627",
"0.36100304",
"0.36099136",
"0.3605899",
"0.35860145",
"0.3567834",
"0.35274735",
"0.35252863",
"0.35108617",
"0.35092065",
"0.34986392",
"0.34925914",
"0.34843087",
"0.3469048",
"0.3468598",
"0.34631285",
"0.3459173",
"0.3459126",
"0.3457322",
"0.34524882",
"0.34502047",
"0.34446552",
"0.3439364",
"0.34374815",
"0.34276968",
"0.34238744",
"0.34143046",
"0.34012",
"0.33953324",
"0.33942923",
"0.33930355",
"0.33912975",
"0.33878967",
"0.3383413",
"0.33774376",
"0.33729666",
"0.33673868",
"0.33646142",
"0.33637336",
"0.3363385",
"0.33592755",
"0.33544514",
"0.33541447",
"0.33530188",
"0.3347238",
"0.33469662",
"0.33438125",
"0.33397612",
"0.33382663",
"0.33377922",
"0.33329764",
"0.3331345",
"0.3330346",
"0.332896",
"0.33219376"
]
| 0.7703364 | 1 |
Returns the gdf tender submission details where tenderReferenceNumber = &63; or returns null if it could not be found. Uses the finder cache. | public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(
String tenderReferenceNumber) {
return getPersistence().fetchByGDF_Tender_Reference_Number(
tenderReferenceNumber);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public java.lang.String getReferenceNumber() {\r\n return referenceNumber;\r\n }",
"public String getReferenceNarrativeText() {\n\t\tif ((this.getMdht().getText() != null) && (this.getMdht().getText().getText() != null)) {\n\t\t\treturn this.getMdht().getText().getText();\n\t\t}\n\t\treturn null;\n\t}",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\n\tpublic Entity getControllingPassenger() {\n\t\tList<Entity> list = getPassengers();\n\t\treturn list.isEmpty() ? null : list.get(0);\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public RS274GCodeRenderer getRendererByGCodeProvider(Integer idGCodeProvider) throws GkException{\n\t\tfor (RS274GCodeRenderer renderer : cacheRenderer.get()) {\n\t\t\tif(ObjectUtils.equals(idGCodeProvider, renderer.getIdGCodeProvider())){\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t}\n\t\tthrow new GkTechnicalException(\"Renderer for GCodeProvider with internal id [\"+idGCodeProvider+\"] does not exist\");\n\t}",
"public String getCustomerEligibilityAssessmentRetrieveActionTaskReference() {\n return customerEligibilityAssessmentRetrieveActionTaskReference;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public String getSearchValue(){\n\t\tif (this.facetTiers == null || this.facetTiers.size() == 0)\n\t\t\treturn null;\n\t\treturn this.facetTiers.get(this.facetTiers.size()-1).getIdentifier();\n\t}",
"public RendererBean findRenderer(\r\n String componentFamily,\r\n String rendererType)\r\n {\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n return _renderers.get(compositeKey);\r\n }",
"public int getTransactionReferenceNumber() {\n\t\treturn transactionReferenceNumber;\n\t}",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent getPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic synchronized T get(long threadId) {\r\n\t\t// FIXME -mutithread LINYUN [2]\r\n\t\t// LLT: this is where we disable recording other threads not the main one\r\n\t\tif (threadId != mainThreadId) {\r\n\t\t\treturn null; // for now, only recording trace for main thread.\r\n\t\t}\r\n\t\t\r\n\t\tint i = 0;\r\n\t\twhile(i <= lastUsedIdx) {\r\n\t\t\tITracer tracer = rtStore[i];\r\n\t\t\tif (tracer.getThreadId() == threadId) {\r\n\t\t\t\treturn (T) tracer;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tT tracer = initTracer(threadId);\r\n\t\trtStore[++lastUsedIdx] = tracer;\r\n\t\treturn tracer;\r\n\t}",
"@JsonIgnore\r\n public String getReferenceId() {\r\n return OptionalNullable.getFrom(referenceId);\r\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg getTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg)get_store().find_element_user(TPG$30, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public String getName() {\n\t\tfinal String submitterName = getSubmitterName();\n\t\tif (submitterName != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_name\" + TAB + submitterName;\n\t\treturn null;\n\t}",
"public Researcher getResearcherByID(int id);",
"@Override\r\n\tpublic Trainee getTraineeByContact(long contact) throws BusinessException {\n\t\treturn null;\r\n\t}",
"public org.hl7.fhir.ResourceReference getPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(PATIENT$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public String getTjr() {\n return tjr;\n }",
"public static TeaFileReader getReader(String fileFormat) {\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn ff.reader;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Default. Should never happen :)\r\n\t\treturn new TextReader();\r\n\t}",
"public Long getResearchteacherid() {\r\n\t\treturn researchteacherid;\r\n\t}",
"private UriRef getRenderRdfType(Resource renderletDef) {\n\t\tIterator<Triple> renderedTypeIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderedType, null);\n\n\t\tif (renderedTypeIter.hasNext()) {\n\t\t\treturn (UriRef) renderedTypeIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"public BookEntry getEntry(PhoneNumber phoneNumber) {\n\t\t//Create a Set for Map.Entry<K,V> type entries\n\t\tSet<Map.Entry<Person, BookEntry>> phoneBookEntries = phoneBook.entrySet();\n\t\t//Iterate through the entry set\n\t\tfor (Map.Entry<Person, BookEntry> currentEntry : phoneBookEntries) {\n\t\t\t//Compare the PhoneNumber object referenced in current Bookentry with the target phoneNumber\n\t\t\tif (currentEntry.getValue().getNumber().equals(phoneNumber)) { //equals method to be overriden in PhoneNumber class!\n\t\t\t\t//If a match is found, return the full BookEntry by the key\n\t\t\t\treturn phoneBook.get(currentEntry.getKey());\n\t\t\t}\n\t\t}\n\t\t//If this is reached, no BookEntry with phoneNumber was found, return null\n\t\treturn null;\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public Person getPerson(ResourceReference resourceReference) {\n return resourceReference == null ? null : getPerson(resourceReference.getResource());\n }",
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"public T mo35062j() {\n WeakReference<T> weakReference = this.f30698c;\n if (weakReference == null) {\n return null;\n }\n return weakReference.get();\n }",
"public Match getMatch(int matchNum){\n\t\tfor(Match match : matches){\n\t\t\tif(match.number == matchNum){\n\t\t\t\treturn match;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static Reference getReference() {\n return getRequest() == null ? null : getRequest().getResourceRef();\n }",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public Integer getPatentNum() {\r\n return patentNum;\r\n }",
"public Patient getPatient(String idNumber)\n {\n Patient targetAccount = null;\n \n for (Patient account : accountsToVerify)\n {\n if (account.getIdNumber().equals(idNumber))\n {\n targetAccount = account;\n break;\n }\n }\n \n return targetAccount;\n }",
"private String getReference(RequestInfo requestInfo) throws DefectException { \r\n\t\tlog.info(\"Start - getReference\");\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to read, request information is missing\");\r\n\t\t}\r\n\t\tif(CommonUtil.isNull(restApi))\r\n\t\t\tcreateInstance();\r\n\t\t\r\n\t\tString ref = null;\r\n try {\r\n\r\n log.info(\"Getting Query Response\");\r\n \r\n QueryResponse qryResponse = getQueryResponse(requestInfo);\r\n \r\n log.info(\"Got Query Response : \" + qryResponse);\r\n \r\n JsonArray qryResults = qryResponse.getResults();\r\n JsonElement qryElement = qryResults.get(0);\r\n JsonObject qryObject = qryElement.getAsJsonObject();\r\n ref = qryObject.get((requestInfo.getRefField() != null)?requestInfo.getRefField():RallyConstants._REF).toString();\r\n\r\n } finally {\r\n \tcloseDefect();\r\n \t\tlog.info(\"End - getReference\");\r\n \t\t System.out.println(\"value of ref is\"+ ref);\r\n }\r\n \r\n\t\treturn ref;\r\n \t}",
"public E getReferenceId() {\n return referenceId;\n }",
"public Object get(Object refName)\r\n {\r\n String key = String.valueOf(refName);\r\n if (isSafeMode() && key.indexOf('.') >= 0)\r\n {\r\n return null;\r\n }\r\n return this.context.get(key);\r\n }",
"TeacherRecord getTeacher(String recordId, String clientId) throws Exception;",
"public TimeEntry getTimeEntryAt(int index)\n throws RedmineException\n {\n SoftReference<TimeEntry> softReference;\n synchronized(timeEntries)\n {\n softReference = timeEntries.get(index);\n if (softReference == null)\n {\nDprintf.dprintf(\"todo: get at index\");\n getTimeEntries(ID_ANY,ID_ANY,ID_ANY,null);\n\n softReference = timeEntries.get(index);\n if (softReference == null)\n {\nDprintf.dprintf(\"todo: get at index\");\n getTimeEntries(ID_ANY,ID_ANY,ID_ANY,null);\n\n softReference = timeEntries.get(index);\n }\n }\n }\n\n return (softReference != null) ? softReference.get() : null;\n }",
"private UriRef getRenderingSpecification(Resource renderletDef) {\n\t\tIterator<Triple> renderSpecIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingSpecification, null);\n\t\tif (renderSpecIter.hasNext()) {\n\t\t\treturn (UriRef) renderSpecIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"private String getTenderTypeForCard(String tenderType, Locale locale) {\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT)) {\n return getMessage(locale, \"pdf.receipt.debit\");\n } else {\n return getMessage(locale, \"pdf.receipt.credit\");\n }\n }",
"private FontInfo getFont(FontFormat format, String postScriptName) {\n/* 461 */ if (postScriptName.contains(\"+\"))\n/* */ {\n/* 463 */ postScriptName = postScriptName.substring(postScriptName.indexOf('+') + 1);\n/* */ }\n/* */ \n/* */ \n/* 467 */ FontInfo info = this.fontInfoByName.get(postScriptName);\n/* 468 */ if (info != null && info.getFormat() == format)\n/* */ {\n/* 470 */ return info;\n/* */ }\n/* 472 */ return null;\n/* */ }",
"public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}",
"public Student findStudent(int studentNumber)\r\n {\r\n for(Student s : students) // look in the list\r\n {\r\n if(s.getStudentNumber() == studentNumber) // if the student number is the same\r\n return s;\r\n }\r\n\r\n return null;\r\n }",
"public String getMerchandisingLoanRetrieveActionTaskReference() {\n return merchandisingLoanRetrieveActionTaskReference;\n }",
"@Override\n\tpublic TGuideInfoCustom findElectrityBypk(String guidepk) throws Exception {\n\t\treturn tGuideInfoCustomMapper.findElectrityBypk(guidepk);\n\t}",
"public java.lang.String getDept_restructuring_number() {\n return dept_restructuring_number;\n }",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"public org.hl7.fhir.Contact getContact()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Contact target = null;\n target = (org.hl7.fhir.Contact)get_store().find_element_user(CONTACT$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public Speaker findSpeaker(String speakerEmail){\n for (Speaker s : userManager.getSpeakerList()){\n if (s.getEmail().equals(speakerEmail)){\n return s;\n }\n }\n return null;\n }",
"public java.lang.String getTerritorialityCode() {\n return territorialityCode;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe getTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe)get_store().find_element_user(TPE$32, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public String getPatientCareTakerEmail() {\n\t\treturn this.patientCareTakerEmail;\n\t}",
"public String getAssessmentandReportingInstanceReference() {\n return assessmentandReportingInstanceReference;\n }",
"public String getResearchteachername() {\r\n\t\treturn researchteachername;\r\n\t}",
"public Borrower getBorrower() {\n if (isBeforeFirst() || isAfterLast())\n return null;\n Borrower borrower = new Borrower();\n borrower.setId(getLong(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_ID)));\n borrower.setLoanAmount(getFloat(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_AMOUNT_BORROWED)));\n borrower.setInterestRate(getFloat(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_INTEREST_RATE)));\n borrower.setName(getString(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_NAME)));\n borrower.setIsPaid((getInt(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_PAID)) != 0));\n borrower.setPhoneNumber(getString(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_PHONE_NUMBER)));\n borrower.setThumbnailUri(getString(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_THUMBNAIL_URI)));\n borrower.setContactUri(Uri.parse(getString(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_CONTACT_URI))));\n\n if (!getWrappedCursor().isNull((getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_AMOUNT_PAID)))) {\n borrower.setAmountPaid(getFloat(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_AMOUNT_PAID)));\n }\n if (!getWrappedCursor().isNull((getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_LOAN_DURATION)))) {\n borrower.setLoanDuration(getInt(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_LOAN_DURATION)));\n }\n\n borrower.setDateBorrowed(getDateBorrowed());\n borrower.setDateDue(getDateDue());\n\n\n return borrower;\n }",
"@Override\n public Object getReferenced(Optional<?> reference) {\n return reference.orElse(null);\n }",
"public static Ring getRingByTeacherId(int teacherId) {\n\r\n String sql = \"select r.* from ring r \\n\"\r\n + \"join Teacher t \\n\"\r\n + \"on t.ringId = r.ringId \\n\"\r\n + \"where t.teacherId = ?\";\r\n\r\n Connection conn = DB.connect();\r\n PreparedStatement st;\r\n ResultSet rs;\r\n Ring ring;\r\n try {\r\n st = conn.prepareStatement(sql);\r\n st.setInt(1, teacherId);\r\n rs = st.executeQuery();\r\n System.out.println(sql);\r\n if (rs.next()) {\r\n ring = new Ring();\r\n \r\n ring.setRingId(rs.getInt(\"ringId\"));\r\n ring.setSchoolId(rs.getInt(\"schoolId\"));\r\n //ring.setDate(rs.getDate(\"date\"));\r\n ring.setName(rs.getString(\"name\"));\r\n ring.setMaxStudentNumber(rs.getInt(\"maxStudentNumber\"));\r\n \r\n return ring;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\r\n \r\n }\r\n return null;\r\n }",
"private String m6598O() {\n try {\n Field declaredField = Class.forName(\"android.app.Activity\").getDeclaredField(\"mReferrer\");\n declaredField.setAccessible(true);\n return (String) declaredField.get(this);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"<reflectGetReferrer>,Exception: \" + e.toString());\n return null;\n }\n }",
"String getReference();",
"String getReference();",
"public org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo getAttachmentInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo)get_store().find_element_user(ATTACHMENTINFO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"private ObsolescenceReference retrieveReference() {\n \n if (StringUtil.isEmptyOrNull(selectedReferenceName)) {\n return null;\n }\n \n switch (referenceTypeChosen) {\n case MANUFACTURERPN_TYPEARTICLE:\n ManufacturerPN lManufacturerPN =\n articleBean.findManufacturerPNByName(selectedReferenceName);\n if (lManufacturerPN != null && selectedTypeArticle != null) {\n return new ObsolescenceReference(lManufacturerPN,\n selectedTypeArticle);\n }\n else {\n return null;\n }\n \n case AIRBUSPN_TYPEARTICLE:\n AirbusPN lAirbusPN =\n articleBean.findAirbusPNByName(selectedReferenceName);\n if (lAirbusPN != null && selectedTypeArticle != null) {\n return new ObsolescenceReference(lAirbusPN, selectedTypeArticle);\n }\n else {\n return null;\n }\n \n case SOFTWARE:\n return new ObsolescenceReference(\n softBean.findByCompleteName(selectedReferenceName));\n \n case TYPEPC:\n return new ObsolescenceReference(\n articleBean.findTypePCByName(selectedReferenceName));\n default:\n }\n return null;\n }",
"public String getFinancialDocumentRevolvingFundReferenceNumber() {\r\n return financialDocumentRevolvingFundReferenceNumber;\r\n }",
"public String getParticipantAcquirerBankReference() {\n return participantAcquirerBankReference;\n }",
"public com.walgreens.rxit.ch.cda.CE getRaceCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CE target = null;\n target = (com.walgreens.rxit.ch.cda.CE)get_store().find_element_user(RACECODE$18, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public java.lang.String getReference() {\n return reference;\n }",
"public String getRewardPointsTransactionInstanceReference() {\n return rewardPointsTransactionInstanceReference;\n }",
"@Override\r\n\tpublic Student findTea(Teacher teacher) {\n\t\treturn null;\r\n\t}",
"public String getLoyaltyNumber() {\n if (compositePOSTransaction.getLoyaltyCard() != null)\n return compositePOSTransaction.getLoyaltyCard().getLoyaltyNumber();\n else\n return null;\n }",
"public gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId getPatentSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public Freelancer getFreelancer(String freelancerId) {\n Response response = freelancerGetByIdService.resolveTemplate(\"freelancerId\", freelancerId).request(MediaType.APPLICATION_JSON).get();\n if (response.getStatus() == 200) {\n return response.readEntity(Freelancer.class);\n } else if (response.getStatus() == 404) {\n return null;\n } else {\n throw new ServiceUnavailableException();\n }\n }",
"@Nullable\n String getRef();",
"public static EcidContact doCacheLookup(Context ctx, String number, int numberType)\n {\n Log.d(TAG, \"ECID AOSP VERSION: \" + ECID_AOSP_VERSION);\n if (ctx != null && !TextUtils.isEmpty(number)) {\n EcidContact cidContact = getEcidContact(number);\n return cidContact;\n }\n else {\n Log.d(TAG, \"doLookup Invalid Args: ctx: \" + ctx + \" number: \" + number);\n return null;\n }\n }",
"public java.lang.String getRefnum() {\n return refnum;\n }",
"public final String getReference() {\n return reference;\n }",
"public Contributor getContact() {\n\t\treturn null;\n\t\t// org.dom4j.Document xmlDoc = getXmlDoc();\n\t\t// return getContributor();\n\t}",
"public String getReference() {\n return reference;\n }",
"public String getReferringPhysician()\n {\n return referringPhysician;\n }",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public Signpost getSignpost(Signpost signpost)\n\t{\n\t\tif (_signposts.contains(signpost))\n\t\t{\n\t\t\tfor (Signpost sp : _signposts)\n\t\t\t{\n\t\t\t\tif (sp.equals(signpost))\n\t\t\t\t{\n\t\t\t\t\treturn sp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}"
]
| [
"0.778188",
"0.67633057",
"0.6465242",
"0.6314669",
"0.6150741",
"0.5802052",
"0.546757",
"0.5444579",
"0.528051",
"0.52329445",
"0.5169953",
"0.48965874",
"0.48404577",
"0.4836855",
"0.4791259",
"0.45657638",
"0.45250875",
"0.44806308",
"0.4395797",
"0.43502414",
"0.4297324",
"0.42869505",
"0.42742878",
"0.4264896",
"0.42529222",
"0.4232447",
"0.42148313",
"0.419262",
"0.41650346",
"0.4164726",
"0.41592833",
"0.4153994",
"0.41520667",
"0.41323566",
"0.4131371",
"0.41288197",
"0.4101396",
"0.40822604",
"0.40693432",
"0.4047772",
"0.40466458",
"0.4029512",
"0.4028041",
"0.40231243",
"0.40125787",
"0.40045407",
"0.40027738",
"0.40006536",
"0.39790884",
"0.39716884",
"0.39646283",
"0.39609683",
"0.3959225",
"0.39591664",
"0.39421898",
"0.39416605",
"0.39360154",
"0.39353374",
"0.39328846",
"0.39284444",
"0.39137074",
"0.39135024",
"0.39090675",
"0.3908516",
"0.38960263",
"0.38873658",
"0.3882435",
"0.3882012",
"0.38782492",
"0.38763148",
"0.38743496",
"0.38720918",
"0.38662207",
"0.38618252",
"0.38522977",
"0.38471848",
"0.3844167",
"0.3840666",
"0.3833529",
"0.3833529",
"0.38321778",
"0.38317865",
"0.38304925",
"0.38282967",
"0.38279057",
"0.3827099",
"0.38187617",
"0.38161495",
"0.38159335",
"0.38152942",
"0.38132972",
"0.38102445",
"0.38056996",
"0.38056806",
"0.38034934",
"0.3800613",
"0.3799154",
"0.3797291",
"0.37934896",
"0.37930596"
]
| 0.7464197 | 1 |
Returns the gdf tender submission details where tenderReferenceNumber = &63; or returns null if it could not be found, optionally using the finder cache. | public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(
String tenderReferenceNumber, boolean useFinderCache) {
return getPersistence().fetchByGDF_Tender_Reference_Number(
tenderReferenceNumber, useFinderCache);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public String getReferenceNarrativeText() {\n\t\tif ((this.getMdht().getText() != null) && (this.getMdht().getText().getText() != null)) {\n\t\t\treturn this.getMdht().getText().getText();\n\t\t}\n\t\treturn null;\n\t}",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public String getCustomerEligibilityAssessmentRetrieveActionTaskReference() {\n return customerEligibilityAssessmentRetrieveActionTaskReference;\n }",
"public java.lang.String getReferenceNumber() {\r\n return referenceNumber;\r\n }",
"public String getSearchValue(){\n\t\tif (this.facetTiers == null || this.facetTiers.size() == 0)\n\t\t\treturn null;\n\t\treturn this.facetTiers.get(this.facetTiers.size()-1).getIdentifier();\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"@Override\n\tpublic Entity getControllingPassenger() {\n\t\tList<Entity> list = getPassengers();\n\t\treturn list.isEmpty() ? null : list.get(0);\n\t}",
"public Researcher getResearcherByID(int id);",
"public RendererBean findRenderer(\r\n String componentFamily,\r\n String rendererType)\r\n {\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n return _renderers.get(compositeKey);\r\n }",
"public RS274GCodeRenderer getRendererByGCodeProvider(Integer idGCodeProvider) throws GkException{\n\t\tfor (RS274GCodeRenderer renderer : cacheRenderer.get()) {\n\t\t\tif(ObjectUtils.equals(idGCodeProvider, renderer.getIdGCodeProvider())){\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t}\n\t\tthrow new GkTechnicalException(\"Renderer for GCodeProvider with internal id [\"+idGCodeProvider+\"] does not exist\");\n\t}",
"public String getName() {\n\t\tfinal String submitterName = getSubmitterName();\n\t\tif (submitterName != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_name\" + TAB + submitterName;\n\t\treturn null;\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"@Override\r\n\tpublic Trainee getTraineeByContact(long contact) throws BusinessException {\n\t\treturn null;\r\n\t}",
"@JsonIgnore\r\n public String getReferenceId() {\r\n return OptionalNullable.getFrom(referenceId);\r\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent getPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Patent)get_store().find_element_user(PATENT$16, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"private UriRef getRenderRdfType(Resource renderletDef) {\n\t\tIterator<Triple> renderedTypeIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderedType, null);\n\n\t\tif (renderedTypeIter.hasNext()) {\n\t\t\treturn (UriRef) renderedTypeIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public int getTransactionReferenceNumber() {\n\t\treturn transactionReferenceNumber;\n\t}",
"public org.hl7.fhir.ResourceReference getPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().find_element_user(PATIENT$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg getTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpg)get_store().find_element_user(TPG$30, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public Long getResearchteacherid() {\r\n\t\treturn researchteacherid;\r\n\t}",
"public String getTjr() {\n return tjr;\n }",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public Person getPerson(ResourceReference resourceReference) {\n return resourceReference == null ? null : getPerson(resourceReference.getResource());\n }",
"private String getReference(RequestInfo requestInfo) throws DefectException { \r\n\t\tlog.info(\"Start - getReference\");\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to read, request information is missing\");\r\n\t\t}\r\n\t\tif(CommonUtil.isNull(restApi))\r\n\t\t\tcreateInstance();\r\n\t\t\r\n\t\tString ref = null;\r\n try {\r\n\r\n log.info(\"Getting Query Response\");\r\n \r\n QueryResponse qryResponse = getQueryResponse(requestInfo);\r\n \r\n log.info(\"Got Query Response : \" + qryResponse);\r\n \r\n JsonArray qryResults = qryResponse.getResults();\r\n JsonElement qryElement = qryResults.get(0);\r\n JsonObject qryObject = qryElement.getAsJsonObject();\r\n ref = qryObject.get((requestInfo.getRefField() != null)?requestInfo.getRefField():RallyConstants._REF).toString();\r\n\r\n } finally {\r\n \tcloseDefect();\r\n \t\tlog.info(\"End - getReference\");\r\n \t\t System.out.println(\"value of ref is\"+ ref);\r\n }\r\n \r\n\t\treturn ref;\r\n \t}",
"public static TeaFileReader getReader(String fileFormat) {\r\n\t\tfor(FileFormats ff : FileFormats.values()) {\r\n\t\t\tif(ff.equals(fileFormat)) {\r\n\t\t\t\treturn ff.reader;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Default. Should never happen :)\r\n\t\treturn new TextReader();\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic synchronized T get(long threadId) {\r\n\t\t// FIXME -mutithread LINYUN [2]\r\n\t\t// LLT: this is where we disable recording other threads not the main one\r\n\t\tif (threadId != mainThreadId) {\r\n\t\t\treturn null; // for now, only recording trace for main thread.\r\n\t\t}\r\n\t\t\r\n\t\tint i = 0;\r\n\t\twhile(i <= lastUsedIdx) {\r\n\t\t\tITracer tracer = rtStore[i];\r\n\t\t\tif (tracer.getThreadId() == threadId) {\r\n\t\t\t\treturn (T) tracer;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tT tracer = initTracer(threadId);\r\n\t\trtStore[++lastUsedIdx] = tracer;\r\n\t\treturn tracer;\r\n\t}",
"private UriRef getRenderingSpecification(Resource renderletDef) {\n\t\tIterator<Triple> renderSpecIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingSpecification, null);\n\t\tif (renderSpecIter.hasNext()) {\n\t\t\treturn (UriRef) renderSpecIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"private FontInfo getFont(FontFormat format, String postScriptName) {\n/* 461 */ if (postScriptName.contains(\"+\"))\n/* */ {\n/* 463 */ postScriptName = postScriptName.substring(postScriptName.indexOf('+') + 1);\n/* */ }\n/* */ \n/* */ \n/* 467 */ FontInfo info = this.fontInfoByName.get(postScriptName);\n/* 468 */ if (info != null && info.getFormat() == format)\n/* */ {\n/* 470 */ return info;\n/* */ }\n/* 472 */ return null;\n/* */ }",
"public BookEntry getEntry(PhoneNumber phoneNumber) {\n\t\t//Create a Set for Map.Entry<K,V> type entries\n\t\tSet<Map.Entry<Person, BookEntry>> phoneBookEntries = phoneBook.entrySet();\n\t\t//Iterate through the entry set\n\t\tfor (Map.Entry<Person, BookEntry> currentEntry : phoneBookEntries) {\n\t\t\t//Compare the PhoneNumber object referenced in current Bookentry with the target phoneNumber\n\t\t\tif (currentEntry.getValue().getNumber().equals(phoneNumber)) { //equals method to be overriden in PhoneNumber class!\n\t\t\t\t//If a match is found, return the full BookEntry by the key\n\t\t\t\treturn phoneBook.get(currentEntry.getKey());\n\t\t\t}\n\t\t}\n\t\t//If this is reached, no BookEntry with phoneNumber was found, return null\n\t\treturn null;\n\t}",
"@Override\n public Object getReferenced(Optional<?> reference) {\n return reference.orElse(null);\n }",
"TeacherRecord getTeacher(String recordId, String clientId) throws Exception;",
"public String getMerchandisingLoanRetrieveActionTaskReference() {\n return merchandisingLoanRetrieveActionTaskReference;\n }",
"private String getTenderTypeForCard(String tenderType, Locale locale) {\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT)) {\n return getMessage(locale, \"pdf.receipt.debit\");\n } else {\n return getMessage(locale, \"pdf.receipt.credit\");\n }\n }",
"public static Reference getReference() {\n return getRequest() == null ? null : getRequest().getResourceRef();\n }",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"@Override\n\tpublic TGuideInfoCustom findElectrityBypk(String guidepk) throws Exception {\n\t\treturn tGuideInfoCustomMapper.findElectrityBypk(guidepk);\n\t}",
"public Integer getPatentNum() {\r\n return patentNum;\r\n }",
"public String getPatientCareTakerEmail() {\n\t\treturn this.patientCareTakerEmail;\n\t}",
"public T mo35062j() {\n WeakReference<T> weakReference = this.f30698c;\n if (weakReference == null) {\n return null;\n }\n return weakReference.get();\n }",
"public org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo getAttachmentInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TAttachmentInfo)get_store().find_element_user(ATTACHMENTINFO$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getFunctionalRiskRetrieveActionTaskReference() {\n return functionalRiskRetrieveActionTaskReference;\n }",
"public Freelancer getFreelancer(String freelancerId) {\n Response response = freelancerGetByIdService.resolveTemplate(\"freelancerId\", freelancerId).request(MediaType.APPLICATION_JSON).get();\n if (response.getStatus() == 200) {\n return response.readEntity(Freelancer.class);\n } else if (response.getStatus() == 404) {\n return null;\n } else {\n throw new ServiceUnavailableException();\n }\n }",
"@Override\r\n\tpublic Student findTea(Teacher teacher) {\n\t\treturn null;\r\n\t}",
"@Nullable\n String getRef();",
"public Speaker findSpeaker(String speakerEmail){\n for (Speaker s : userManager.getSpeakerList()){\n if (s.getEmail().equals(speakerEmail)){\n return s;\n }\n }\n return null;\n }",
"public Object get(Object refName)\r\n {\r\n String key = String.valueOf(refName);\r\n if (isSafeMode() && key.indexOf('.') >= 0)\r\n {\r\n return null;\r\n }\r\n return this.context.get(key);\r\n }",
"public String getResearchteachername() {\r\n\t\treturn researchteachername;\r\n\t}",
"public Patient getPatient(String idNumber)\n {\n Patient targetAccount = null;\n \n for (Patient account : accountsToVerify)\n {\n if (account.getIdNumber().equals(idNumber))\n {\n targetAccount = account;\n break;\n }\n }\n \n return targetAccount;\n }",
"public String getReference(){\r\n\t\t\r\n\t\treturn McsElement.getElementByXpath(driver,REFERENCE_INPUT).getAttribute(\"value\");\r\n\t}",
"public Student findStudent(int studentNumber)\r\n {\r\n for(Student s : students) // look in the list\r\n {\r\n if(s.getStudentNumber() == studentNumber) // if the student number is the same\r\n return s;\r\n }\r\n\r\n return null;\r\n }",
"public java.lang.String getDept_restructuring_number() {\n return dept_restructuring_number;\n }",
"public Match getMatch(int matchNum){\n\t\tfor(Match match : matches){\n\t\t\tif(match.number == matchNum){\n\t\t\t\treturn match;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic String calendarPdfReference(String context, String id,\n\t\t\tint scheduleType, String timeRangeString, String userName,\n\t\t\tTimeRange dailyTimeRange) {\n\t\treturn null;\n\t}",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"private ObsolescenceReference retrieveReference() {\n \n if (StringUtil.isEmptyOrNull(selectedReferenceName)) {\n return null;\n }\n \n switch (referenceTypeChosen) {\n case MANUFACTURERPN_TYPEARTICLE:\n ManufacturerPN lManufacturerPN =\n articleBean.findManufacturerPNByName(selectedReferenceName);\n if (lManufacturerPN != null && selectedTypeArticle != null) {\n return new ObsolescenceReference(lManufacturerPN,\n selectedTypeArticle);\n }\n else {\n return null;\n }\n \n case AIRBUSPN_TYPEARTICLE:\n AirbusPN lAirbusPN =\n articleBean.findAirbusPNByName(selectedReferenceName);\n if (lAirbusPN != null && selectedTypeArticle != null) {\n return new ObsolescenceReference(lAirbusPN, selectedTypeArticle);\n }\n else {\n return null;\n }\n \n case SOFTWARE:\n return new ObsolescenceReference(\n softBean.findByCompleteName(selectedReferenceName));\n \n case TYPEPC:\n return new ObsolescenceReference(\n articleBean.findTypePCByName(selectedReferenceName));\n default:\n }\n return null;\n }",
"public static EcidContact doCacheLookup(Context ctx, String number, int numberType)\n {\n Log.d(TAG, \"ECID AOSP VERSION: \" + ECID_AOSP_VERSION);\n if (ctx != null && !TextUtils.isEmpty(number)) {\n EcidContact cidContact = getEcidContact(number);\n return cidContact;\n }\n else {\n Log.d(TAG, \"doLookup Invalid Args: ctx: \" + ctx + \" number: \" + number);\n return null;\n }\n }",
"public static Ring getRingByTeacherId(int teacherId) {\n\r\n String sql = \"select r.* from ring r \\n\"\r\n + \"join Teacher t \\n\"\r\n + \"on t.ringId = r.ringId \\n\"\r\n + \"where t.teacherId = ?\";\r\n\r\n Connection conn = DB.connect();\r\n PreparedStatement st;\r\n ResultSet rs;\r\n Ring ring;\r\n try {\r\n st = conn.prepareStatement(sql);\r\n st.setInt(1, teacherId);\r\n rs = st.executeQuery();\r\n System.out.println(sql);\r\n if (rs.next()) {\r\n ring = new Ring();\r\n \r\n ring.setRingId(rs.getInt(\"ringId\"));\r\n ring.setSchoolId(rs.getInt(\"schoolId\"));\r\n //ring.setDate(rs.getDate(\"date\"));\r\n ring.setName(rs.getString(\"name\"));\r\n ring.setMaxStudentNumber(rs.getInt(\"maxStudentNumber\"));\r\n \r\n return ring;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(User.class.getName()).log(Level.SEVERE, null, ex);\r\n \r\n }\r\n return null;\r\n }",
"public org.hl7.fhir.Contact getContact()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Contact target = null;\n target = (org.hl7.fhir.Contact)get_store().find_element_user(CONTACT$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getFinancialDocumentRevolvingFundReferenceNumber() {\r\n return financialDocumentRevolvingFundReferenceNumber;\r\n }",
"public java.lang.String getTerritorialityCode() {\n return territorialityCode;\n }",
"String getReference();",
"String getReference();",
"public BCField getField() {\n String dec = getFieldDeclarerName();\n if (dec == null) \n return null;\n\n BCClass bc = getProject().loadClass(dec, getClassLoader());\n BCField[] fields = bc.getFields(getFieldName());\n if (fields.length == 0)\n return null;\n return fields[0];\n }",
"@Override\r\n\tpublic String searchPoster(String searchPoster) throws Exception {\n\t\treturn null;\r\n\t}",
"public String getReferringPhysician()\n {\n return referringPhysician;\n }",
"public String getParticipantAcquirerBankReference() {\n return participantAcquirerBankReference;\n }",
"public String getReferenceUrl() {\n\t\tif ((this.getMdht().getText() != null)\n\t\t\t\t&& (this.getMdht().getText().getReference() != null)) {\n\t\t\treturn this.getMdht().getText().getReference().getValue();\n\t\t}\n\t\treturn null;\n\t}",
"private static String findNumber() {\n\t\treturn null;\r\n\t}",
"private String m6598O() {\n try {\n Field declaredField = Class.forName(\"android.app.Activity\").getDeclaredField(\"mReferrer\");\n declaredField.setAccessible(true);\n return (String) declaredField.get(this);\n } catch (Exception e) {\n C0938a.m5004b(\"SR/SoundRecorder\", \"<reflectGetReferrer>,Exception: \" + e.toString());\n return null;\n }\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe getTpe()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpe)get_store().find_element_user(TPE$32, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public TimeEntry getTimeEntryAt(int index)\n throws RedmineException\n {\n SoftReference<TimeEntry> softReference;\n synchronized(timeEntries)\n {\n softReference = timeEntries.get(index);\n if (softReference == null)\n {\nDprintf.dprintf(\"todo: get at index\");\n getTimeEntries(ID_ANY,ID_ANY,ID_ANY,null);\n\n softReference = timeEntries.get(index);\n if (softReference == null)\n {\nDprintf.dprintf(\"todo: get at index\");\n getTimeEntries(ID_ANY,ID_ANY,ID_ANY,null);\n\n softReference = timeEntries.get(index);\n }\n }\n }\n\n return (softReference != null) ? softReference.get() : null;\n }",
"public String getResearchactor() {\r\n\t\treturn researchactor;\r\n\t}",
"public E getReferenceId() {\n return referenceId;\n }",
"public USAStaffingRecruitmentResult getRecruitmentData(String requestNumber){\r\n\r\n\t\tUSAStaffingRecruitmentResult usasRecruitment = new USAStaffingRecruitmentResult();\r\n\r\n\t\tPrompt recruitmentPrompt = new Prompt(properties.getReportPromptRequest(), requestNumber, requestNumber);\r\n\t\tCognosReport recruitmentReport = new CognosReport(properties.getRecruitmentReportName(), properties.getRecruitmentReportPath(), properties.getReportFormatDataSet(), recruitmentPrompt);\r\n\r\n\t\tif(properties.getProgramMode().equalsIgnoreCase(properties.getTestMode())){//test mode\r\n\t\t\tlog.info(\"**Application is running in TEST MODE: Pre-downloaded Recruitment report will be used to generate the response.\");\r\n\t\t\tString reportPath = properties.getRecruitmentFileLocation() + File.separator + requestNumber + \".xml\";\r\n\t\t\tlog.info(\"Using XML report for Recruitment \"+ reportPath + \" for transformation.\");\r\n\t\t\tusasRecruitment = recruitmentService.parseReportFromFile(reportPath);\r\n\t\t}else{//normal or production mode\r\n\t\t\tlog.info(\"Connecting to USAS - Cognos Server to get \" + properties.getRecruitmentReportName() + \" report for Request Number [\"+requestNumber+\"].\"); \r\n\t\t\tusasRecruitment = recruitmentService.parseReportFromUSASResponse(this.client.processReportDataRequest(recruitmentReport), requestNumber);\r\n\t\t}\r\n\t\tif(usasRecruitment.getRequestNumber().length() == 0)//setting request number for response if not available\t\t\t\r\n\t\t\tusasRecruitment.setRequestNumber(requestNumber);\r\n\t\tlog.info(usasRecruitment.toString());\r\n\t\treturn usasRecruitment;\r\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public com.walgreens.rxit.ch.cda.CE getRaceCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CE target = null;\n target = (com.walgreens.rxit.ch.cda.CE)get_store().find_element_user(RACECODE$18, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public String getAssessmentandReportingInstanceReference() {\n return assessmentandReportingInstanceReference;\n }",
"public Object getCustomerEligibilityAssessmentRetrieveActionTaskRecord() {\n return customerEligibilityAssessmentRetrieveActionTaskRecord;\n }"
]
| [
"0.73136824",
"0.68286914",
"0.64160126",
"0.6171252",
"0.5987347",
"0.57187897",
"0.5384493",
"0.538303",
"0.51614517",
"0.5081119",
"0.50762963",
"0.4888435",
"0.4739882",
"0.46916324",
"0.4652659",
"0.4512056",
"0.4449921",
"0.4363675",
"0.43183878",
"0.4277665",
"0.4267892",
"0.4206069",
"0.4182441",
"0.4148139",
"0.41423172",
"0.41392893",
"0.41268563",
"0.40988743",
"0.40948248",
"0.40815797",
"0.4072423",
"0.40548518",
"0.40384004",
"0.40282306",
"0.4009712",
"0.4007295",
"0.39946893",
"0.3990005",
"0.3962245",
"0.39583385",
"0.39566532",
"0.39533445",
"0.39512327",
"0.39480904",
"0.3943439",
"0.39362958",
"0.39227846",
"0.39100853",
"0.3909677",
"0.39092204",
"0.38897",
"0.38882887",
"0.3870297",
"0.38657793",
"0.3862668",
"0.38547385",
"0.38532168",
"0.3853153",
"0.38424152",
"0.38370106",
"0.38340825",
"0.3831463",
"0.3829881",
"0.38270286",
"0.38237834",
"0.38149938",
"0.3806146",
"0.38055843",
"0.38048512",
"0.380416",
"0.38024506",
"0.37978917",
"0.37947014",
"0.37872723",
"0.3784545",
"0.3778741",
"0.3777512",
"0.37740985",
"0.37730685",
"0.37640744",
"0.37630048",
"0.37591043",
"0.37591043",
"0.3753071",
"0.3752639",
"0.37492663",
"0.37491587",
"0.37466213",
"0.37453893",
"0.37430274",
"0.37415206",
"0.3740919",
"0.37388185",
"0.3736522",
"0.37342447",
"0.37321305",
"0.37179884",
"0.37139663",
"0.37137368",
"0.37097996"
]
| 0.7802712 | 0 |
Removes the gdf tender submission details where tenderReferenceNumber = &63; from the database. | public static GDFTenderSubmissionDetails
removeByGDF_Tender_Reference_Number(String tenderReferenceNumber)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().removeByGDF_Tender_Reference_Number(
tenderReferenceNumber);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public final void removeNum_emp() {\n removeValue(getNum_empAttribute(getMtDatabase()));\n }",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"void removeHadithReferenceNo(Object oldHadithReferenceNo);",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static void RecipeTipsFirebaseDeleteSingle() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n String number = snapshot.child(FIELD_RECIPE_TIPS_NUMBER).getValue(String.class);\n\n assert number != null;\n if (number.equals(sCurrentRecipeTipNumber)) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }",
"public long removeEmployerFromDb(String employer){\n \tString selection = Employers.COLUMN_NAME_TITLE + \" LIKE ?\";\n \t\n \t// Specify arguments in placeholder order.\n \tString[] selectionArgs = { employer };\n \t\n \t// Issue SQL statement.\n \treturn db.delete(Employers.TABLE_NAME, selection, selectionArgs);\n\t}",
"public void unsetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIBBMT$4, 0);\r\n }\r\n }",
"public static boolean removeSurgeryEntry(String srg) {\n boolean result = new SurgeriesList().removeSurgery(srg);\n if (result) {\n updateSurgeriesTable();\n }\n return result;\n }",
"public static void RecipeTipsFirebaseDeleteAll() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }",
"public void deleteAssignment(DefaultMutableTreeNode assignmentNode) {\n\t\tDefaultMutableTreeNode categoryNode = ((DefaultMutableTreeNode) assignmentNode.getParent());\n\t\tcategoryNode.remove(assignmentNode);\n\t\t\n\t\t// remove assignment from the category and from GPACalculator\n\t\t((GPACalculator)((DefaultMutableTreeNode) categoryNode.getParent()).getUserObject()).deleteAssignmentGrade(categoryNode.toString().split(\" \")[0], assignmentNode.toString().split(\" \")[0]);\n\t\tCategory category = (Category)categoryNode.getUserObject();\n\t\tString assignmentName = assignmentNode.toString().split(\" \")[0];\n\t\tcategory.deleteAssignmentGrade(assignmentName);\n\t}",
"@Action( ACTION_REMOVE_REFERENCE )\r\n public String doRemoveReference( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_REFERENCE ) );\r\n ReferenceHome.remove( nId );\r\n addInfo( INFO_REFERENCE_REMOVED, getLocale( ) );\r\n return redirectView( request, VIEW_MANAGE_REFERENCES );\r\n }",
"public static void deleteReminder()\n {\n System.out.print(\"Select event number reminder to delete: \");\n String evNum = CheckInput.getString();\n try\n {\n PreparedStatement pstmt = null;\n String str = \"delete from reminder where eventnumber = ?\";\n pstmt = conn.prepareStatement(str);\n pstmt.setString(1,evNum);\n pstmt.executeUpdate();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public void deletePerson() {\n\t\t\n\n\t\tString code = selectedPerson.getCode();\n\t\tString nameKey = selectedPerson.getName()+code;\n\t\tString lastnameKey = selectedPerson.getLastName()+code;\n\t\tString fullNameKey = nameKey+lastnameKey+code;\n\t\ttreeName.removeE(nameKey);\n\t\ttreeLastname.removeE(lastnameKey);\n\t\ttreeFullName.removeE(fullNameKey);\n\t\ttreeCode.removeE(code);\n\n\t\t\n\t}",
"@Override\n\tpublic void removeByemailReqBfcInfo(boolean inStage, String email) {\n\t\tfor (LocalRichInfo localRichInfo : findByemailReqBfcInfo(inStage,\n\t\t\t\temail, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}",
"void removeHadithBookNo(Object oldHadithBookNo);",
"public void deletePerson() {\n\t\tSystem.out.println(\"*****Delete the record*****\");\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"Enter phone number for deletion : \");\n\t\tlong PhoneDelete = sc.nextLong();\n\t\tfor (int i = 0; i < details.length; i++) {\n\t\t\tif (details[i] != null && details[i].getPhoneNo() == PhoneDelete) {\n\t\t\t\tdetails[i] = null;\n\t\t\t\tSystem.out.println(\"Record deleted successfully\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void removeByschoolId(long schoolId);",
"public void unsetBirthTime()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BIRTHTIME$12, 0);\n }\n }",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public void removeBtn(){\r\n\t\t\r\n\t\tWorkflowEntry entryToBeRemoved = (WorkflowEntry) tableView.getSelectionModel().getSelectedItem();\r\n\t\t\r\n\t\tdata.remove(entryToBeRemoved);\r\n\t\t\r\n\t}",
"public void unsetAdministrativeGenderCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ADMINISTRATIVEGENDERCODE$10, 0);\n }\n }",
"public void removeContact() {\r\n int selection = getContactSelection().getMinSelectionIndex();\r\n Statement stmt = null;\r\n try {\r\n rowSet.absolute(selection+1);\r\n Connection con = rowSet.getConnection();\r\n stmt = con.createStatement();\r\n String sql = \"delete from \" + CONTACTS_TABLE + \" where \" + CONTACTS_KEY + \" = \" + rowSet.getObject(CONTACTS_KEY);\r\n stmt.executeUpdate(sql);\r\n rowSet.execute();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n } finally {\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }\r\n }\r\n }",
"public String deleteResearcher(int id);",
"public void mo64175c() {\n if (this.f41223d != null) {\n this.f41223d.removeMessages(1);\n }\n this.f41225f = true;\n }",
"public static void deleteRefRecord(int referenceeState,String selectedItem) throws FileNotFoundException{\n String filePath=\"userData\\\\\";\n if(referenceeState==1){\n filePath = \"userData\\\\departments.txt\";\n }else if(referenceeState==2){\n filePath = \"userData\\\\specializedArea.txt\";\n \n }\n File file = new File(filePath);\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n // get lines from txt file\n Object[] tableLines = br.lines().toArray();\n String[] stringArray = Arrays.copyOf(tableLines,tableLines.length, String[].class);\n ArrayList<String> list = new ArrayList<String>(Arrays.asList(stringArray));\n // extratct data from lines and add to the object array list\n for(int i = 0; i < stringArray.length; i++){\n String line = stringArray[i].toString().trim();\n if(line.equals(selectedItem)){\n list.remove(selectedItem);\n }\n }\n //deleting a all lines in the txt\n PrintWriter writer = new PrintWriter(file);\n writer.print(\"\");\n writer.close();\n //writing existing files to txt \n for(String loopObj: list){\n if(referenceeState==1){\n writingDepartment(loopObj);\n }else if(referenceeState==2){\n writingSpecializedArea(loopObj);\n } \n br.close();\n \n }\n \n }catch (Exception ex){\n Logger.getLogger(homeAdminGUI.class.getName()).log(Level.SEVERE, null, ex);\n \n }\n}",
"public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }",
"private void removeOlderGigs() {\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tint currentHr = cal.get(Calendar.HOUR_OF_DAY);\r\n\t\t\r\n\t\tif ((currentHr >= 0 && currentHr <= 7)) {\r\n\t\t\t//Log.d(TAG, \"deleting older gigs\");\r\n\t\t\tmGigsDbHelper.deleteOlderGigs();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }",
"public static void deletetea(String teaid2) {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"delete from teacher where ID = ? \");\n\t\t\tps.setString(1, teaid2);\n\t\t\tps.execute();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录删除成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t}catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据删除失败!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"public synchronized Map<String, Long> removeCountersSubmission(\n\t\t\tint idSubmission) {\n\t\tMap<Integer, Map<String, Long>> mines = counters.get(myId);\n\t\tif (mines != null)\n\t\t\treturn mines.remove(idSubmission);\n\t\telse\n\t\t\treturn null;\n\t}",
"private void removeStudy(int studyID) {\n\t}",
"public boolean deleteStudentRecord(String sEmail, String tEmail) {\n\t\treturn new Tutor().removeStudent(sEmail, tEmail);\n\t}",
"void unsetGradeModelRefs();",
"public Student removeStudent()\r\n {\r\n Student student = null;\r\n\r\n if(first_node != null)\r\n {\r\n student = first_node.getData();\r\n first_node = first_node.getNextNode();\r\n\r\n number_of_entries--;\r\n removeID(student.getStudent_ID());\r\n updateAcademicLevels(\"remove\", student.getAcademic_year());\r\n }\r\n return student;\r\n }",
"public void removeFinArFundsInActionAppliedHistory(FinArFundsInActionAppliedHistory finArFundsInActionAppliedHistory);",
"public void removeIncident(Incidente incidente, int table) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\t// 2. delete\n\t\tdb.delete(INCIDENT_TABLES[table], IncidentKey.ID.getColumnName()\n\t\t\t\t+ \" = ?\", new String[] { String.valueOf(incidente.getId()) });\n\t\t// 3. close\n\t\tdb.close();\n\t}",
"public void deleteLastFeedback() {\n\t\tint index = this.getLastPlayIndex();\n\n\t\tif (this.guessList[index].getCode() == null) {\n\t\t\tthis.guessList[index] = null;\n\t\t} else {\n\t\t\tthis.guessList[index].setFeedback(null);\n\t\t}\n\n\t\t// Notify all observers\n\t\tsuper.dataChanged();\n\t}",
"public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"public void removeEntry(ActionEvent event) {\n\t\tnewReport2.removeSample(table.getSelectionModel().getSelectedItem());\n\t\ttable.getItems().removeAll(table.getSelectionModel().getSelectedItem());\n\t\tif(conclusionNumbers1.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber())!=-1) {\n\t\t\tconclusionNumbers1.remove(conclusionNumbers1.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber()));\n\t\t}\n\t\telse {\n\t\t\tconclusionNumbers2.remove(conclusionNumbers2.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber()));\n\t\t}\n\t}",
"public void removeVenTransactionFee(VenTransactionFee venTransactionFee);",
"private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }",
"@Override\n\tpublic void removeCampus(Campus campus) {\n\t\tEntityManager em=emf.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\ttry {\n\t\t\tem.remove(em.merge(campus));\n\t\t\tem.getTransaction().commit();\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tif (em.getTransaction().isActive()) {\n\t\t\t\tem.getTransaction().rollback();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void removeRenderer(Integer idGCodeProvider) throws GkException{\n\t\tRS274GCodeRenderer renderer = getRendererByGCodeProvider(idGCodeProvider);\n\t\texecutionService.removeExecutionListener(renderer);\n\t\tcacheRenderer.remove(renderer);\n\t\trenderer.destroy();\n\t}",
"void removeMentionedIn(Hadith oldMentionedIn);",
"public void leaveEvent(String eventRef) {\n Event removed = mCache.getSingleFile(eventRef, mCacheDir);\n mCache.removeSingleEvent(eventRef, mCacheDir);\n mEventCollection.document(eventRef).update(\"attendees\", FieldValue.arrayRemove(mUserRef), result -> {\n if(!result.isSuccessful()) {\n // If the user could not be removed from the event, restore the cache\n mCache.saveEvent(removed, eventRef, removed.getDate(), mCacheDir);\n postCurrentCacheContent();\n }\n });\n }",
"public void removeRawReferrer(String paramString, long paramLong) {\n }",
"static public void deleteSubjectMark(Integer subjectMarkID){\n\t Session session = HibernateUtil.getSessionFactory().openSession();\n\t Transaction tx = null;\n\t try{\n\t tx = session.beginTransaction();\n\t SubjectMark subjectMark = (SubjectMark)session.get(Teacher.class, subjectMarkID); \n\t session.delete(subjectMark); \n\t tx.commit();\n\t }catch (HibernateException e) {\n\t if (tx!=null) tx.rollback();\n\t e.printStackTrace(); \n\t }finally {\n\t session.close(); \n\t }\n\t }",
"public void unsetPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PATIENT$2, 0);\n }\n }",
"private void deleteBooking() \n {\n Scanner memberID=new Scanner(System.in);\n System.out.println(\"Please enter your member number: \");\n int memberId = memberID.nextInt();\n \n Member mem = sportsClub.searchMember(memberId);\n if(mem==null || mem.getBookings()==null)\n {\n System.out.println(\"Sorry! There are no members with the given ID. \");\n\n \n\n }\n else\n {\n for(Booking b : mem.getBookings())//Displays the member details n bookings\n {\n System.out.println(\"Booking Id : \" + b.hashCode()+ \" Booking made by \"+mem.getMemberName() +\" for \" + b.getBookingDate() + \" at \" + b.getBookingTime() + \" for \" + b.getBookingEndTime() + \" minutes on Court number \" + b.getCourt().getCourtId());\n\n }\n \n if(mem.getBookings().size()!=0)\n {\n Scanner inputID=new Scanner(System.in);\n System.out.println(\"Enter Booking ID: \");\n int input = inputID.nextInt();\n Iterator<Booking> itr = mem.getBookings().iterator();\n\n\n while(itr.hasNext())//delettion starts based on the ID\n { \n if(itr.next().hashCode() == input)\n {\n itr.remove();\n for(String str : mem.getSportsPlayed())\n {\n Sport sportObj = sportsClub.findSport(str);\n\n ArrayList<Court> itrCourt = sportObj.getCourtList();\n for(Court c : itrCourt)//finds the court\n {\n\n Iterator<Booking> itrBooking = c.getCourtBookings().iterator();\n while(itrBooking.hasNext())//helps to get the booking object\n {\n if(itrBooking.next().hashCode() == input)\n {\n itrBooking.remove();//removes the booking object\n System.out.println(\"Deleted Successfully\");\n }\n } \n } \n } \n }\n }\n }\n }\n\n\n\n }",
"@Action( ACTION_REMOVE_REFCERTIFICATIONLEVEL )\n public String doRemoveRefCertificationLevel( HttpServletRequest request )\n {\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_REFCERTIFICATIONLEVEL ) );\n\n try\n {\n RefCertificationLevelHome.remove( nId );\n }\n catch( Exception e )\n {\n addInfo( \"Le level ne peut être supprimé car il est utilisé dans la définition d'un processus\" );\n return redirectView( request, VIEW_MANAGE_REFCERTIFICATIONLEVELS );\n }\n addInfo( INFO_REFCERTIFICATIONLEVEL_REMOVED, getLocale( ) );\n resetListId( );\n\n return redirectView( request, VIEW_MANAGE_REFCERTIFICATIONLEVELS );\n }",
"public void deletePost(View v){\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n //remove the job from the list of all jobs with a listener\n DatabaseReference myJobRef = database.getReference(\"Jobs\");\n myJobRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this,jobPost.getPostid()));\n //remove the job from the users job list with a listener*\n DatabaseReference myUserJobsRef = database.getReference(\"Users\").child(jobPost.getUserid()).child(\"jobs\");\n myUserJobsRef.addListenerForSingleValueEvent(new ToggleAddIDVEListener(ViewSingleJobActivity.this, jobPost.getPostid()));\n finish();\n }",
"public void unsetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPG$30, 0);\r\n }\r\n }",
"private void refreshDBDangerZone(){\n FirebaseDatabase.getInstance().getReference().child(\"Danger Zone Markers\")\n .addListenerForSingleValueEvent(new ValueEventListener() {\n Date currentDate = new Date();\n String currentDateString = currentDate.toString();\n String getCurrentDateSubString = currentDateString.substring(0,10);\n\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n int numberOfMarkers = 0;\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n numberOfMarkers++;\n String markerDate = snapshot.child(\"time\").getValue().toString();\n System.out.println(\"MARKER DATE: \" + markerDate);\n System.out.println(\"CURRENT DATE: \" + getCurrentDateSubString);\n if(numberOfMarkers>1){\n if(!(markerDate.contains(getCurrentDateSubString))) {\n snapshot.getRef().removeValue();\n }\n }\n\n\n }\n\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"void removeEndingHadithNo(Object oldEndingHadithNo);",
"public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }",
"protected void removeReference()\n {\n }",
"public void deleteStudent(String MatricNo) {\n\t\tif (checkIfStudentExists(MatricNo)) {\n\t\t\tfor (Student student : StudentList) {\n\t\t\t\tif (MatricNo.equals(student.getMatricNo())) {\n\t\t\t\t\tStudentList.remove(student);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<Object> students = new ArrayList<Object>();\n\t\t\tfor (Student s : StudentList)\n\t\t\t\tstudents.add((Object) s);\n\t\t\tFileManager.writeObjectToFile(\"student.dat\", students);\n\t\t\tSystem.out.println(\"Student Has been deleted\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Student Does not Exist\");\n\t\t}\n\t}",
"public void eraseContact(View v)\n {\n appState.firebaseReference.child(receivedPersonInfo.uid).removeValue();\n }",
"@Override\n public void onSuccess(Void aVoid) {\n Query fquery = FirebaseDatabase.getInstance().getReference(\"Posts\").orderByChild(\"pId\").equalTo(postId);\n fquery.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for (DataSnapshot ds: dataSnapshot.getChildren()){\n\n ds.getRef().removeValue(); // remove value from firebase where pId matched\n\n }\n Toast.makeText(PostDetailActivity.this, \"Post Deleted !\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n\n }",
"public void deleteteacher(Teacher Te){\n this.tlist.remove(Te);\n }",
"void remove(ThreadLocal<?> key) {\n cleanUp();\n\n for (int index = key.hash & mask;; index = next(index)) {\n Object reference = table[index];\n\n if (reference == key.reference) {\n // Success!\n table[index] = TOMBSTONE;\n table[index + 1] = null;\n tombstones++;\n size--;\n return;\n }\n\n if (reference == null) {\n // No entry found.\n return;\n }\n }\n }",
"void removeHadithNo(Object oldHadithNo);",
"public void deleteGlossaryEntry(final Field entryToDelete) {\n\t\tif (_glossary.contains(entryToDelete)) {\n\t\t\t_glossary.removeChild(entryToDelete);\n\t\t}\n\t}",
"public void removeOrganMistake() {\n records.remove(selectedRecord);\n DonorReceiver account = accountManager.getAccountsByNHI(selectedRecord.getNhi()).get(selectedRecord.getNhi());\n TransplantWaitingList.removeOrganMistake(selectedRecord, accountManager);\n PageNav.loadNewPage(PageNav.TRANSPLANTLIST);\n }",
"@FXML\n void removeSubmit() {\n generalTextArea.clear();\n\n RadioButton selectedRadioButton;\n String departRemove;\n try{\n selectedRadioButton = (RadioButton) departmentRemove.getSelectedToggle();\n departRemove = selectedRadioButton.getText();\n }catch(NullPointerException e){\n generalTextArea.appendText(\"Please select a department.\");\n return;\n }\n\n String date = dateRemoveText.getText();\n if(!isParse(date)){\n return;\n }\n String name = nameRemoveText.getText();\n if(name.length() == 0){\n generalTextArea.appendText(\"The name field was left blank. Please enter a name! \\n\");\n return;\n }\n int tempPay = 0;\n Profile newEmployeeProfile = profileData(name, departRemove, date);\n Employee employeeToBeRemoved = new Fulltime(newEmployeeProfile, tempPay);\n boolean wasEmployeeRemoved = company.remove(employeeToBeRemoved);\n if (wasEmployeeRemoved) {\n generalTextArea.appendText(\"Employee removed.\");\n }else if (company.getNumEmployee() == 0){\n generalTextArea.appendText(\"Employee database is empty.\");\n }else{\n generalTextArea.appendText(\"Employee does not exist.\");\n }\n clearEverything();\n }",
"@Override\r\n\tpublic boolean delFeback(int feedbackId) {\n\t\treturn BaseDao.execute(\"delete from feedback where feedbackId = ?\", feedbackId) > 0;\r\n\t}",
"public void removeCaregiverFromPatient(final Patient patient, final String caregiverId, final Context context){\n db.collection(Constants.PATIENTS_COLLECTION_FIELD).document(patient.getId()).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n Patient dbPatient = documentSnapshot.toObject(Patient.class);\n if (dbPatient != null){\n dbPatient.removeCaregiver(caregiverId);\n updatePatientInDatabase(dbPatient);\n Toast.makeText(context, context.getString(R.string.removed_caregiver_message), Toast.LENGTH_LONG).show();\n }\n else {\n Toast.makeText(context, context.getString(R.string.unable_to_remove_caregiver_message), Toast.LENGTH_LONG).show();\n }\n }\n });\n }",
"public void unsetRaceCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(RACECODE$18, 0);\n }\n }",
"public void unsetPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PATENT$16, 0);\r\n }\r\n }",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public void unsetGPSAntennaDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(GPSANTENNADETAILSID$14);\r\n }\r\n }",
"public void removeFightsystem( Long fightsystemId )\r\n {\n\r\n }",
"private final void m118787c(bkcr bkcr) {\n if (getAdapter() instanceof bkcq) {\n ((bkcq) getAdapter()).remove(bkcr);\n }\n }",
"@Override\r\n\tpublic Feedback removeFeedback(int feedbackId) {\n\t\tFeedback feedback= frepository.getOne(feedbackId);\r\n\t\tfrepository.delete(feedback);\r\n\t\treturn feedback;\r\n\t}",
"public void removeLastEntry(){\r\n\t\tboards.remove(boards.size() -1 );\r\n\t}",
"public void removeAgent() {agent = null;}",
"private void deleteEntry() {\n String desiredId = idField.getText();\n Student student = studentHashMap.get(desiredId);\n\n try {\n if (student == null) {\n throw new NoMatchFoundException();\n } else if (this.checkInput(student) == false) {\n throw new InputMismatchException();\n } else if (studentHashMap.containsKey(desiredId)) {\n studentHashMap.remove(desiredId);\n this.displayStatusPanel(\n \"Success: \" + student.getName() + \" removed.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n } else {\n throw new NoMatchFoundException();\n }\n } catch(NoMatchFoundException ex) {\n this.displayStatusPanel(\n \"Error: Entry not found.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } catch(InputMismatchException e) {\n this.displayStatusPanel(\n \"Error: Information does not match data on file.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n }\n }",
"public void mo20823g(C3246b bVar) {\n this.f18933c.remove(bVar);\n }",
"@Override\n public void deleteEntryUsingExtension(String number) {\n for (int i=0; i<members.size(); i++){\n if (members.get(i).getExtension().equals(number)){\n members.remove(i);\n break;\n }\n }\n\n }",
"public void removeTextWriter(Contact value) {\r\n\t\tBase.remove(this.model, this.getResource(), TEXTWRITER, value);\r\n\t}",
"public void supprimer(Etudiant t) {\n\t\tdao.supprimer(t);\r\n\t}",
"public void unlockCashDrawer(String campusCode, String documentId);",
"private void deleteJob(int floorNumber){\n jobs.remove(floorNumber);\n }",
"void removeStartingHadithNo(Object oldStartingHadithNo);",
"@Override\r\n\tpublic int delByStuuid(HashMap<String, String> getParamMap) {\n\t\treturn collectionMedicalRecordDao.delByStuuid(getParamMap);\r\n\t}",
"private void DeleteBurnInsOnPreviousSamples() {\n\t\tif (gibbs_sample_num <= num_gibbs_burn_in + 1 && gibbs_sample_num >= 2){\n\t\t\tgibbs_samples_of_bart_trees[gibbs_sample_num - 2] = null;\n\t\t}\n\t}",
"public void removeByapproval_status(java.lang.String approval_status);",
"@Override\n public void delete(JavaStudyClub javaStudyClub) {\n entityManager.remove(javaStudyClub);\n }",
"private static void removeTalker(User talker, AppCompatActivity activity) {\n mRefUsersTalk\n .child(mAuth.getCurrentUser().getUid())\n .child(talker.getId())\n .removeValue()\n .addOnSuccessListener(aVoid -> {\n\n //REMOVES CURRENT USER TO TALKER NODE\n mRefUsersTalk\n .child(talker.getId())\n .child(mAuth.getCurrentUser().getUid())\n .removeValue()\n .addOnSuccessListener(aVoid1 -> {\n showProgressDialog(false);\n Toast.makeText(activity.getApplicationContext(), \"Usuário removido com sucesso!\", Toast.LENGTH_SHORT)\n .show();\n\n backToMainActivity(activity);\n })\n .addOnFailureListener(Throwable::getLocalizedMessage);\n })\n .addOnFailureListener(Throwable::getLocalizedMessage);\n\n }",
"@Override\n\tpublic void deletePostingFail(String postingNumber) {\n\t\tString posting_Number = postingNumber;\n\t\tuserInfoDAO.deletePostingFail(posting_Number);\n\t}",
"public CampaignEditPage deleteEntryInSeriesField()\r\n\t{\r\n\t\treadconfig();\r\n\t\t//counting the number of entry in the field\r\n\t\tint iCount = driver.findElements(By.xpath(library.getProperty(\"camp_edit_series_number\"))).size();\r\n\t\tSystem.out.println(\"**series: \"+iCount);\r\n\t\tfor (int i=0; i<iCount;i++)\r\n\t\t{\r\n\t\t\tdriver.findElement(By.xpath(library.getProperty(\"camp_edit_series\"))).sendKeys(Keys.BACK_SPACE);\r\n\t\t}\r\n\t\treturn new CampaignEditPage(driver);\r\n\t}",
"public void removeStudent(Student InStudent)\n\t{\n\t\tclassRoll.remove (InStudent);\n\t\tsaveNeed = true;\n\n\t}"
]
| [
"0.6254274",
"0.6187174",
"0.543087",
"0.50963736",
"0.5057926",
"0.5011935",
"0.5010041",
"0.48165923",
"0.47493982",
"0.47320604",
"0.47286034",
"0.4704556",
"0.46648455",
"0.46365425",
"0.46352294",
"0.46279287",
"0.4606665",
"0.4604103",
"0.45875335",
"0.45819306",
"0.45725575",
"0.45703316",
"0.45690864",
"0.4562392",
"0.45595878",
"0.4557607",
"0.4544988",
"0.45440248",
"0.45390335",
"0.4539025",
"0.45380092",
"0.45345008",
"0.45236418",
"0.45167542",
"0.4515634",
"0.45007437",
"0.44938844",
"0.44844607",
"0.44792476",
"0.44748306",
"0.44743794",
"0.4460557",
"0.44551936",
"0.4450323",
"0.44472808",
"0.4447004",
"0.44421467",
"0.44370815",
"0.44345653",
"0.44343957",
"0.44339338",
"0.442716",
"0.44138798",
"0.44078693",
"0.44073313",
"0.44063553",
"0.44052133",
"0.44040158",
"0.4395169",
"0.43924397",
"0.43917698",
"0.43905047",
"0.43897563",
"0.4388071",
"0.43837902",
"0.43824682",
"0.4381888",
"0.43691003",
"0.43648532",
"0.4357583",
"0.43512163",
"0.43506444",
"0.43492675",
"0.43484896",
"0.43483832",
"0.43477848",
"0.4347059",
"0.4345689",
"0.43442023",
"0.43436402",
"0.4342835",
"0.4340928",
"0.434034",
"0.43358156",
"0.43347895",
"0.43192708",
"0.4316629",
"0.4316354",
"0.43142888",
"0.43139625",
"0.4313675",
"0.43133092",
"0.43018585",
"0.42935687",
"0.42929608",
"0.4291321",
"0.42869025",
"0.4283623",
"0.4281259",
"0.42797688"
]
| 0.66750324 | 0 |
Returns the number of gdf tender submission detailses where tenderReferenceNumber = &63;. | public static int countByGDF_Tender_Reference_Number(
String tenderReferenceNumber) {
return getPersistence().countByGDF_Tender_Reference_Number(
tenderReferenceNumber);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public java.lang.String getReferenceNumber() {\r\n return referenceNumber;\r\n }",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public int getTransactionReferenceNumber() {\n\t\treturn transactionReferenceNumber;\n\t}",
"public int getNumberOfActivitiesByPoster(Identity posterIdentity);",
"public Integer getNumJrnPost() {\n return numJrnPost;\n }",
"public int getNumberSubmissions() {\n\t\treturn submissions.size();\n\t}",
"public NM getNumberOfTPSTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(39, 0);\r\n\t\treturn retVal;\r\n }",
"public int numSubmissions() {\n int counter = 0;\n\n for (int i = 0; i < studentList.size(); i++) {\n // number of submits for each student in student list is accumulated\n counter += (studentList.get(i)).getNumberSubmits();\n }\n\n return counter;\n }",
"public String getJP_BankData_ReferenceNo();",
"public Integer getTbApWtEntryNumber()\n\t\t\t\tthrows AgentException{\n\t\t// Fill up with necessary processing\n\n\t\treturn tbApWtEntryNumber;\n\t}",
"@Override\n\tpublic String getLastPostingNumber() {\n\t\tString count = userInfoDAO.getLastPostingNumber();\n\t\treturn count;\n\t}",
"int getRealtorNumCnt(RealtorDTO realtorDTO);",
"@PrivateAPI\n\tpublic int getReferenceCount() {\n\t\treturn this.referencesFromCapacityMap.get();\n\t}",
"public Integer getRt_thanks_count() {\n return rt_thanks_count;\n }",
"public int GetNumber() {\n int num = 0;\n for (int i=0; i<m_colourMap.length; i++) {\n if (!(m_colourMap[i].equals(null))) {\n num++; \n }\n }\n return(num);\n }",
"private int getRewardCount(String confirmationNumber) {\n return jdbcTemplate\n .queryForInt(\"select count(*) from T_REWARD where CONFIRMATION_NUMBER = ?\", confirmationNumber);\n }",
"protected void getRecipientNumber(TargetForm aForm, HttpServletRequest req) {\n\t\tTargetDao targetDao = (TargetDao) getBean(\"TargetDao\");\n\t\tTarget target = (Target) getBean(\"Target\");\n\t\tRecipientDao recipientDao = (RecipientDao) getBean(\"RecipientDao\");\n\t\t\n\t\ttarget = targetDao.getTarget(aForm.getTargetID(), aForm.getCompanyID(req));\n\t\tint numOfRecipients = recipientDao.sumOfRecipients(aForm.getCompanyID(req), target.getTargetSQL());\n\t\t\n\t\taForm.setNumOfRecipients(numOfRecipients);\n\t\t\n\t}",
"private int getNum(EngClass ec) {\n\t\treturn engClassService.getStuNum(ec);\n\t}",
"int getBlockNumbersCount();",
"public int getAssignmentCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ASSIGNMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"@Override\r\n\tpublic int GenderCount(String gender) {\n\t\tint count = 0;\r\n\t\tfor (Map.Entry<String, MemberBean> entry : map.entrySet()) {\r\n\t\t\tif(entry.getValue().getGender().equals(gender)){\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public java.lang.String getNum_ant() throws java.rmi.RemoteException;",
"public NM getPsl39_NumberOfTPSTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(39, 0);\r\n\t\treturn retVal;\r\n }",
"public int getNumberOfActivitiesByPoster(Identity ownerIdentity, Identity viewerIdentity);",
"public Integer getPatentNum() {\r\n return patentNum;\r\n }",
"int getPostNum();",
"public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public long getnNum() {\n return nNum;\n }",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static int countByGDFTendersByUserId(long supplierId) {\n\t\treturn getPersistence().countByGDFTendersByUserId(supplierId);\n\t}",
"int getWorkAreaCount(String dept, Long workArea);",
"@Override\n\tpublic Integer getTeacherForCount() {\n\t\treturn teacherDAO.getTeacherForCount();\n\t}",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public long numPostingEntries();",
"int getMailCount() {\n\t\treturn mail_count[mailbox_number];\n\t}",
"@Override\n public int getNbHarvesting(String harvesterName)\n {\n return 0;\n }",
"public int obtenerNumeroFuentes() {\n\t\tint n = 0;\n\n\t\ttry {\n\n\t\t\trs = stmt\n\t\t\t\t\t.executeQuery(\"SELECT COUNT(IDFUENTE) AS FUENTES FROM FUENTE\");\n\t\t\trs.next();\n\n\t\t\tn = rs.getInt(\"FUENTES\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"No es posible recuperar el numero de fuentes\");\n\n\t\t}\n\n\t\treturn n;\n\t}",
"@Override\n\tpublic int getCountByGldDTLNO(Map<String, String> params) {\n\t\t\n\t\treturn queryForInt(\"Tkwh.getNUM\", params);\n\t}",
"public void setReferenceNumber(java.lang.String referenceNumber) {\r\n this.referenceNumber = referenceNumber;\r\n }",
"public long gettNum() {\n return tNum;\n }",
"public String getNum_of_sat_test_takers() {\n return num_of_sat_test_takers;\n }",
"public int m2693T() {\n return ((Integer) this.f2439a.m2666a(ea.cL)).intValue();\n }",
"@Override\r\n\tpublic int[] getTicketCount() {\n\t\tint[] result = new int[2];\r\n\t\tList<FeeRecord> card = feeRecordDao.getCardRecords();\r\n\t\tList<FeeRecord> cash = feeRecordDao.getCashRecords();\r\n\t\tresult[0] = card.size();\r\n\t\tresult[1] = cash.size();\r\n\t\treturn result;\r\n\t}",
"public int getNumStudents()\n\t{\n\t\treturn numStudents;\n\t}",
"int getStudentResponseCount();",
"public int sizeOfFootnoteRefArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FOOTNOTEREF$10);\n }\n }",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"@Override\r\n\tpublic int getGeunTaeCnt(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeCnt\",params);\r\n\t}",
"int getStudentCount();",
"public final String getNum_emp() {\n return getString(getNum_empAttribute(getMtDatabase()));\n }",
"public int getXrefCount() {\n String countQuery = \"SELECT * FROM \" + XREF_TABLE;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n int xrefCount = cursor.getCount();\n cursor.close();\n\n return xrefCount;\n }",
"public static int getNos() {\n\t\treturn numberOfStudents;\n\t}",
"public int getDepartedPassengerCount() {\n\t\tint total = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttotal += taxi.getTotalNrOfPassengers();\n\t\t}\n\t\treturn total;\n\t}",
"public int getPageNumber ()\n {\n try {\n if (!isOfType (\"Page\"))\n throw new RuntimeException (\"invalid page reference\");\n return ((PDFDictionary) get (\"Parent\")).getPageOffset (this);\n } catch (Exception e) {\n Options.warn (e.getMessage ());\n return -1;\n }\n }",
"public int getSubstanceLotNumberReps() {\r\n \treturn this.getReps(15);\r\n }",
"public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }",
"public java.lang.String getRefnum() {\n return refnum;\n }",
"public String getTallaNbr() {\n return (String)getAttributeInternal(TALLANBR);\n }",
"public int numberReferencesToThis() {\n return referenceToThis.size();\n }",
"public int getNumGruppoPacchetti();",
"public String getCountRef() {\n return countRef;\n }",
"public int getNum() {\n\treturn this.n;\n }",
"@Override\r\n\tpublic int countReview(String bnum) {\n\t\treturn ss.selectOne(\"countReview\", bnum);\r\n\t}",
"@Override\n\tpublic int getNoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_supplier_id) FROM supplier_product\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public int numSubmissions(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 name is invalid or student does not exist\n if (name == null || name == \"\" || exists == -1) {\n return -1;\n } else {\n // student does exists, so returns number of submissions for student\n return (studentList.get(exists)).getNumberSubmits();\n }\n }",
"public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }",
"double get_num(ThreadContext tc, RakudoObject classHandle);",
"public void setTransactionReferenceNumber(int transactionReferenceNumber) {\n\t\tthis.transactionReferenceNumber = transactionReferenceNumber;\n\t}",
"int getRefsCount();",
"int getBadgeNumber();",
"int getBadgeNumber();",
"public int getNrDuengerVorhanden(){\r\n\t\treturn this.modelData.getPresentFertiliser().size();\r\n\t}",
"public int getNumber() {\n\t\treturn 666;\n\t}",
"int getEducationsCount();",
"public String getSRefNo() {\n return sRefNo;\n }",
"int getReaultCount();",
"public int getTotalPassengers() {\n return totalPassengers;\n }",
"public int getStudentCount() {\n\t\t\t\tif (studentBuilder_ == null) {\n\t\t\t\t\treturn student_.size();\n\t\t\t\t} else {\n\t\t\t\t\treturn studentBuilder_.getCount();\n\t\t\t\t}\n\t\t\t}",
"public int getNumberOfStudents(String stream,String section){\n int number=0;\n SQLiteDatabase sqLiteDatabase=helper.getReadableDatabase();\n String query=\"SELECT \"+Constant.UID+\" FROM \"+Constant.TEACHER_EMAIL_VALUE+\" WHERE \"\n +Constant._STREAM+\" = \"+stream+\" AND \"+\n Constant.SECTION+\" = \"+section;\n Cursor cursor=sqLiteDatabase.rawQuery(query,null);\n while (cursor.moveToNext()){\n number++;\n }\n cursor.close();\n return number;\n\n }",
"static long reviewCount(Context context) {\n SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context);\n return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW);\n }",
"public int getNbTomb(String player) {\r\n\t\tif (hasTomb(player))\r\n\t\t\treturn tombs.get(player).getNbSign();\r\n\t\telse\r\n\t\t\treturn 0;\r\n\t}",
"private int getReferences() {\n int quantity = 0;\n for (Option o : criteriaList.get(currentCriteria).getOptionList()) {\n boolean wasFound = false;\n for (String s : speciesLeft)\n if (o.getEntities().contains(s))\n wasFound = true;\n if (wasFound)\n ++quantity;\n }\n return quantity;\n }",
"public long getContainNReadNum() {\n return containNReadNum;\n }",
"int getPersonInfoCount();",
"public int getNoOfTickets() {\n\t\treturn noOfTickets;\r\n\t}",
"public int getPostNum() {\n return postNum_;\n }",
"Collection<? extends Object> getHadithReferenceNo();",
"public Short getnNumreq() {\n return nNumreq;\n }",
"public String getNUM_TANQUE() {\n return NUM_TANQUE;\n }",
"public int getElfCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int getPhoneNuber() {\r\n return phoneNuber;\r\n }",
"public int getCountExemplarsBorrowed() {\r\n \t\tif (book == null) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \r\n \t\tint borrowedCount = 0;\r\n \t\tList<Exemplar> exemplars = exemplarMgr.findByBook(book);\r\n \t\t// list exemplars\r\n \t\tfor (Exemplar exemplar : exemplars) {\r\n \t\t\tif (exemplar.getIsBorrowed()) {\r\n \t\t\t\tborrowedCount++;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn borrowedCount;\r\n \t}"
]
| [
"0.6529362",
"0.5876645",
"0.57346475",
"0.5624255",
"0.543258",
"0.53291494",
"0.513682",
"0.5132287",
"0.5116904",
"0.5114691",
"0.50983137",
"0.50515336",
"0.50488985",
"0.50191814",
"0.49822575",
"0.49672118",
"0.48854294",
"0.48808986",
"0.4862509",
"0.4859808",
"0.4844901",
"0.48418087",
"0.4806005",
"0.479759",
"0.4755942",
"0.4752124",
"0.4751469",
"0.4731858",
"0.47283775",
"0.47270614",
"0.47196832",
"0.4719292",
"0.47136337",
"0.47008836",
"0.46983197",
"0.46944436",
"0.4689098",
"0.46786478",
"0.46764058",
"0.46702555",
"0.46640974",
"0.46631783",
"0.46594343",
"0.4653415",
"0.46480343",
"0.4646823",
"0.46416542",
"0.4631577",
"0.46272537",
"0.4626059",
"0.4624231",
"0.4620319",
"0.46197444",
"0.4615783",
"0.4595564",
"0.4590548",
"0.45874527",
"0.45821542",
"0.45784497",
"0.45750397",
"0.45728526",
"0.45668572",
"0.4560831",
"0.4551537",
"0.45488292",
"0.45403343",
"0.45370647",
"0.4534127",
"0.45277736",
"0.45239475",
"0.45173633",
"0.45169336",
"0.4512002",
"0.450358",
"0.44999897",
"0.44982615",
"0.44920626",
"0.4480563",
"0.4480563",
"0.44796324",
"0.4477644",
"0.44748333",
"0.4473089",
"0.44680548",
"0.44646093",
"0.44640717",
"0.44561195",
"0.4454837",
"0.44536215",
"0.4452952",
"0.4448801",
"0.44464105",
"0.4444449",
"0.44442192",
"0.4438868",
"0.4434684",
"0.4434555",
"0.44327697",
"0.4432547",
"0.44325343"
]
| 0.7331717 | 0 |
Returns the gdf tender submission details where tenderReferenceNumber = &63; and supplierId = &63; or throws a NoSuchGDFTenderSubmissionDetailsException if it could not be found. | public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(
String tenderReferenceNumber, long supplierId)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByGDFTenderRefeNoByUserId(
tenderReferenceNumber, supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }",
"@Override\r\n\tpublic Grade findGradeDetails(Long gradeId) {\r\n\t\treturn gradeRepository.findOne(gradeId);\r\n\t}",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"@Override\n\tpublic String getSubmissionText() {\n\t\treturn model.getSubmissionText();\n\t}",
"public void setSubmissionId(long submissionId) {\r\n this.submissionId = submissionId;\r\n }",
"public Integer getSupplierId() {\n return supplierId;\n }",
"@Override\n\tpublic List<EmployeeReferalResponseModel> getEmployeeDetails(String referance_email) throws CustomException {\n\n\t\tif (!UserUtility.isValidEmail(referance_email)) {\n\t\t\tthrow new CustomException(204, \"Invalid email id\");\n\t\t}\n\t\tList<EmployeeReferal> employeeReferal = employeeReferalRepository.findByEmployeeEmail(referance_email);\n\n\t\tif (Objects.isNull(employeeReferal) || employeeReferal.isEmpty()) {\n\t\t\tthrow new CustomException(500, \"Reference user does not exists\");\n\t\t}\n\t\treturn conversionUtility.convertTOGetEmployees(employeeReferal);\n\t}",
"@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }",
"String getSupplierID();",
"public static SupplierEntityExpert getSupplierEntityExpert(OADBTransaction txn)\n { \n return (SupplierEntityExpert)txn.getExpert(SupplierEOImpl.getDefinitionObject()); \n \n }",
"@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"public RS274GCodeRenderer getRendererByGCodeProvider(Integer idGCodeProvider) throws GkException{\n\t\tfor (RS274GCodeRenderer renderer : cacheRenderer.get()) {\n\t\t\tif(ObjectUtils.equals(idGCodeProvider, renderer.getIdGCodeProvider())){\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t}\n\t\tthrow new GkTechnicalException(\"Renderer for GCodeProvider with internal id [\"+idGCodeProvider+\"] does not exist\");\n\t}",
"private String getNameHtml(final Submitter submitter) {\n final GedRenderer<? extends GedObject> renderer =\n new SimpleNameRenderer(submitter.getName(),\n submitterRenderer.getRendererFactory(),\n submitterRenderer.getRenderingContext());\n return renderer.getNameHtml();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"public String getSupplier() {\n return supplier;\n }",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public Map getEditSupplier(Long suppilerId) {\r\n\r\n\t\tSupplierDetailDao dao1 = new SupplierDetailDao();\r\n\t\tList catList = dao1.getEditSupplier1(suppilerId);\r\n\t\t\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < catList.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) catList.get(i);\r\n\t\t\tSupplierEditBean bean = new SupplierEditBean();\r\n\t\t\tbean.setAddress((String) o[0]);\r\n\t\t\tbean.setCity((String) o[1]);\r\n\t\t\tbean.setContactPerson((String) o[2]);\r\n\t\t\tbean.setPin((Long) o[3]);\r\n\t\t\tbean.setEmail((String) o[4]);\r\n\t\t\tbean.setMobileno((Long) o[5]);\r\n\t\t\tbean.setPanNo((String) o[6]);\r\n\t\t\tbean.setSupplierName((String) o[7]);\r\n\t\t\tbean.setSuppCode((String) o[8]);\r\n\t\t\tbean.setTaxType((String) o[9]);\r\n\r\n\t\t\tmap.put(bean.getSupplierName(), bean);\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public String getGradeName() {\n return gradeName;\n }",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public String getName() {\n\t\tfinal String submitterName = getSubmitterName();\n\t\tif (submitterName != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_name\" + TAB + submitterName;\n\t\treturn null;\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <TendererQualificationType> tendererQualification ()\n {\n return UBL23WriterBuilder.create (TendererQualificationType.class);\n }",
"public List<ModelingSubmission> modelingSubmissionsForComparison(ModelingExercise exerciseWithParticipationsAndSubmissions) {\n return exerciseWithParticipationsAndSubmissions.getStudentParticipations().parallelStream().map(Participation::findLatestSubmission).filter(Optional::isPresent)\n .map(Optional::get).filter(submission -> submission instanceof ModelingSubmission).map(submission -> (ModelingSubmission) submission).collect(toUnmodifiableList());\n }",
"public static int countByGDFTendersByUserId(long supplierId) {\n\t\treturn getPersistence().countByGDFTendersByUserId(supplierId);\n\t}",
"public java.lang.CharSequence getGLPOSTDETAILS() {\n return GLPOST_DETAILS;\n }",
"public String getPatientCareTakerEmail() {\n\t\treturn this.patientCareTakerEmail;\n\t}",
"public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }",
"public String getFamilyName() throws PDFNetException {\n/* 550 */ return GetFamilyName(this.a);\n/* */ }",
"public GradeBookPage angelInstructorGradebookPage()\r\n\t{\r\n\t\tResultUtil.report(\"INFO\", \"AngelHomePage > angelInstructorAssignmentPage\", driver);\r\n\t\tswitchFrameToContentFrame();\r\n\t\treturn PageFactory.initElements(driver, GradeBookPage.class);\r\n\t}",
"public String getReferenceNarrativeText() {\n\t\tif ((this.getMdht().getText() != null) && (this.getMdht().getText().getText() != null)) {\n\t\t\treturn this.getMdht().getText().getText();\n\t\t}\n\t\treturn null;\n\t}",
"public java.lang.CharSequence getGLPOSTDETAILS() {\n return GLPOST_DETAILS;\n }",
"public RendererBean findRenderer(\r\n String componentFamily,\r\n String rendererType)\r\n {\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n return _renderers.get(compositeKey);\r\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"public Freelancer getFreelancer(String freelancerId) {\n Response response = freelancerGetByIdService.resolveTemplate(\"freelancerId\", freelancerId).request(MediaType.APPLICATION_JSON).get();\n if (response.getStatus() == 200) {\n return response.readEntity(Freelancer.class);\n } else if (response.getStatus() == 404) {\n return null;\n } else {\n throw new ServiceUnavailableException();\n }\n }",
"public Researcher getResearcherByID(int id);",
"public String getContentDisposition() throws Exception {\r\n if (externalUrl != null) {\r\n AmazonS3URI s3Uri = DirectUtils.getS3Uri(externalUrl);\r\n if (s3Uri != null) {\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + DirectUtils.getS3FileKey(externalUrl) + \"\\\"\";\r\n }\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + DirectUtils.getFileNameFromUrl(externalUrl) + \"\\\"\";\r\n }\r\n\r\n if (contest.getProjectHeader().getProjectCategory().getId() == ContestType.COPILOT_POSTING.getId()) {\r\n // it's copilot posting, append user handle to each file in the copilot posting submission\r\n Resource[] resources = contest.getResources();\r\n long userId = 0;\r\n for (Resource r : resources) {\r\n if (r.getId() == submission.getUpload().getOwner()) {\r\n userId = Long.parseLong(r.getProperty(\"External Reference ID\"));\r\n break;\r\n }\r\n }\r\n return \"attachment; filename=\\\"submission-\" + getUserService().getUserHandle(userId) + \"-\" +\r\n uploadedFile.getRemoteFileName()\r\n + \"\\\"\";\r\n } else {\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + uploadedFile.getRemoteFileName()\r\n + \"\\\"\";\r\n }\r\n }",
"public String getResearchteachername() {\r\n\t\treturn researchteachername;\r\n\t}",
"public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <TendererQualificationResponseType> tendererQualificationResponse ()\n {\n return UBL23WriterBuilder.create (TendererQualificationResponseType.class);\n }",
"public ShortlistedSuppliersTable getShortlistedSupplierData(JSONObject shortlistedSupplier, String shortlistedSupplierId) {\n try {\r\n if ( shortlistedSupplier != null) {\r\n\r\n String proposalId = shortlistedSupplier.getString(\"proposal_id\");\r\n String supplierId = shortlistedSupplier.getString(\"supplier_id\");\r\n String supplierContentTypeId = shortlistedSupplier.getString(\"content_type_id\");\r\n //String phase = shortlistedSupplier.getString(\"phase\");\r\n String phase = \"1\"; // TODO: 23/2/17 hardcoded. remove it\r\n String lastModified = getCurrentDate();\r\n return new ShortlistedSuppliersTable(shortlistedSupplierId, proposalId, supplierId, supplierContentTypeId, phase, lastModified);\r\n }\r\n }\r\n catch (Exception e){\r\n Log.d(\"getShortlistSuppData\", e.getMessage());\r\n }\r\n return null;\r\n }",
"@Override\n\tpublic ResponseEntity<?> addGradeSubject(Integer tId, Integer gsId) {\n\t\tif (teacherRepo.existsById(tId)) {\n\t\t\tif (gradeSubjectRepo.existsById(gsId)) {\n\t\t\t\tUTeacherEntity teacher = teacherRepo.findById(tId).get();\n\t\t\t\tGrade_Subject gradSub = gradeSubjectRepo.findById(gsId).get();\n\t\t\t\tInteger label = gradSub.getGrade().getLabel();\n\n\t\t\t\tif (teacherGradeSubjectRepo.findByTeacher_idAndGradeSubject_id(tId, gsId).isPresent()) {\n\t\t\t\t\treturn new ResponseEntity<String>(\"Already exists in database.\", HttpStatus.NOT_ACCEPTABLE);\n\t\t\t\t} else {\n\t\t\t\t\tif ((teacher.getTitle() == ETitle.SUBJECT_TEACHER && label > 4)\n\t\t\t\t\t\t\t|| (teacher.getTitle() == ETitle.LOWER_GRADES_TEACHER && label < 5)) {\n\t\t\t\t\t\tTeacher_Grade_Subject tgs = new Teacher_Grade_Subject();\n\t\t\t\t\t\ttgs.setTeacher(teacher);\n\t\t\t\t\t\ttgs.setGradeSubject(gradSub);\n\t\t\t\t\t\tteacherGradeSubjectRepo.save(tgs);\n\t\t\t\t\t\tlogger.error(\"Error occured while creating tgs\");\n\t\t\t\t\t\tlogger.info(\"Admin (email: \" + AuthController.getEmail() + \") added new tgs \" + tgs);\n\t\t\t\t\t\treturn new ResponseEntity<Teacher_Grade_Subject>(tgs, HttpStatus.OK);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn new ResponseEntity<String>(\"Compatance is not acceptable.\", HttpStatus.NOT_ACCEPTABLE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no subject_grade with such ID\"),\n\t\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t\t}\n\t\t} else {\n\t\t\treturn new ResponseEntity<RestError>(new RestError(10, \"There is no teacher with such ID\"),\n\t\t\t\t\tHttpStatus.NOT_FOUND);\n\t\t}\n\n\t}",
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"public String getAssessmentandReportingInstanceReference() {\n return assessmentandReportingInstanceReference;\n }",
"java.lang.String getDelegateSuggestedSignerEmail();",
"public String getReporterName() {\n return reporterName;\n }",
"public java.lang.String getStudent_contactEmail() {\n\t\treturn _primarySchoolStudent.getStudent_contactEmail();\n\t}",
"public String getScientificNameAuthorship() {\n return scientificNameAuthorship;\n }",
"public String getEvaluationFormId() {\n return this.evaluationFormId;\n }",
"@Override\n\tpublic EntryMessage traceEntry(String format, Supplier<?>... paramSuppliers) {\n\t\treturn null;\n\t}",
"private String getTenderTypeForCard(String tenderType, Locale locale) {\n if (tenderType.equalsIgnoreCase(PdfConstants.DEBIT)) {\n return getMessage(locale, \"pdf.receipt.debit\");\n } else {\n return getMessage(locale, \"pdf.receipt.credit\");\n }\n }",
"public String getPassengersDetails(){\n waitForPageToLoad();\n String passengers = driver.findElement(oPassengerDetails).getText();\n logger.debug(\"passenger details are :\" + passengers);\n return passengers;\n }",
"public void setSupplierNum(String supplierNum) {\n this.supplierNum = supplierNum == null ? null : supplierNum.trim();\n }",
"@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}",
"Achievements getPostDetails();",
"@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"public String getGeneName() {\n return geneName;\n }",
"public static String getGrade(SalaryGrade[] salaryGrades, int salary) {\n\t\treturn null;\n\t}",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"public String getPoster() {\n return getElement().getPoster();\n }",
"public String findGradeFormatByID (int gradeID);",
"public String getQualificationName() {\n return qualificationName;\n }",
"DocumentData getPreviewReport(String documentId,\n String filename, String mimetype) throws IOException;"
]
| [
"0.7656397",
"0.72548676",
"0.7182607",
"0.7169304",
"0.702853",
"0.69146526",
"0.6743881",
"0.6578075",
"0.65184504",
"0.63909835",
"0.624964",
"0.61910117",
"0.60125136",
"0.59480304",
"0.5940514",
"0.5651857",
"0.56043684",
"0.5600567",
"0.52861685",
"0.5026725",
"0.5024619",
"0.49914685",
"0.48602512",
"0.46555048",
"0.4566641",
"0.4449367",
"0.43760252",
"0.42546517",
"0.41645816",
"0.41566592",
"0.41187888",
"0.41167825",
"0.40563774",
"0.4049473",
"0.40459543",
"0.40079743",
"0.3942435",
"0.39316574",
"0.39109573",
"0.38793352",
"0.3850314",
"0.38484716",
"0.38378912",
"0.3820113",
"0.38136962",
"0.377225",
"0.37242678",
"0.37139505",
"0.37118834",
"0.3711375",
"0.3695161",
"0.36731222",
"0.36700854",
"0.36653918",
"0.36623424",
"0.36106598",
"0.36090618",
"0.359402",
"0.35931405",
"0.3585165",
"0.3579285",
"0.35702536",
"0.35646984",
"0.35602483",
"0.3556432",
"0.35547024",
"0.3550881",
"0.3550818",
"0.35437626",
"0.35368577",
"0.3531824",
"0.35272306",
"0.3523161",
"0.35128608",
"0.35051867",
"0.34849817",
"0.3470163",
"0.34691435",
"0.34686226",
"0.34677798",
"0.3463651",
"0.34491682",
"0.34486315",
"0.34463277",
"0.34411445",
"0.34336862",
"0.34270874",
"0.34264398",
"0.34103143",
"0.34022933",
"0.34016147",
"0.34013695",
"0.33997136",
"0.33995038",
"0.3396856",
"0.33962026",
"0.33908552",
"0.33891168",
"0.33874944",
"0.3387493"
]
| 0.74519885 | 1 |
Returns the gdf tender submission details where tenderReferenceNumber = &63; and supplierId = &63; or returns null if it could not be found. Uses the finder cache. | public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(
String tenderReferenceNumber, long supplierId) {
return getPersistence().fetchByGDFTenderRefeNoByUserId(
tenderReferenceNumber, supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public Integer getSupplierId() {\n return supplierId;\n }",
"@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }",
"public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public String getSupplier() {\n return supplier;\n }",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }",
"@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }",
"String getSupplierID();",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public ShortlistedSuppliersTable getShortlistedSupplierData(JSONObject shortlistedSupplier, String shortlistedSupplierId) {\n try {\r\n if ( shortlistedSupplier != null) {\r\n\r\n String proposalId = shortlistedSupplier.getString(\"proposal_id\");\r\n String supplierId = shortlistedSupplier.getString(\"supplier_id\");\r\n String supplierContentTypeId = shortlistedSupplier.getString(\"content_type_id\");\r\n //String phase = shortlistedSupplier.getString(\"phase\");\r\n String phase = \"1\"; // TODO: 23/2/17 hardcoded. remove it\r\n String lastModified = getCurrentDate();\r\n return new ShortlistedSuppliersTable(shortlistedSupplierId, proposalId, supplierId, supplierContentTypeId, phase, lastModified);\r\n }\r\n }\r\n catch (Exception e){\r\n Log.d(\"getShortlistSuppData\", e.getMessage());\r\n }\r\n return null;\r\n }",
"public Freelancer getFreelancer(String freelancerId) {\n Response response = freelancerGetByIdService.resolveTemplate(\"freelancerId\", freelancerId).request(MediaType.APPLICATION_JSON).get();\n if (response.getStatus() == 200) {\n return response.readEntity(Freelancer.class);\n } else if (response.getStatus() == 404) {\n return null;\n } else {\n throw new ServiceUnavailableException();\n }\n }",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public RS274GCodeRenderer getRendererByGCodeProvider(Integer idGCodeProvider) throws GkException{\n\t\tfor (RS274GCodeRenderer renderer : cacheRenderer.get()) {\n\t\t\tif(ObjectUtils.equals(idGCodeProvider, renderer.getIdGCodeProvider())){\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t}\n\t\tthrow new GkTechnicalException(\"Renderer for GCodeProvider with internal id [\"+idGCodeProvider+\"] does not exist\");\n\t}",
"public Map getEditSupplier(Long suppilerId) {\r\n\r\n\t\tSupplierDetailDao dao1 = new SupplierDetailDao();\r\n\t\tList catList = dao1.getEditSupplier1(suppilerId);\r\n\t\t\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < catList.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) catList.get(i);\r\n\t\t\tSupplierEditBean bean = new SupplierEditBean();\r\n\t\t\tbean.setAddress((String) o[0]);\r\n\t\t\tbean.setCity((String) o[1]);\r\n\t\t\tbean.setContactPerson((String) o[2]);\r\n\t\t\tbean.setPin((Long) o[3]);\r\n\t\t\tbean.setEmail((String) o[4]);\r\n\t\t\tbean.setMobileno((Long) o[5]);\r\n\t\t\tbean.setPanNo((String) o[6]);\r\n\t\t\tbean.setSupplierName((String) o[7]);\r\n\t\t\tbean.setSuppCode((String) o[8]);\r\n\t\t\tbean.setTaxType((String) o[9]);\r\n\r\n\t\t\tmap.put(bean.getSupplierName(), bean);\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}",
"public String getCustomerEligibilityAssessmentRetrieveActionTaskReference() {\n return customerEligibilityAssessmentRetrieveActionTaskReference;\n }",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public Supplier findSupplier(int suppliernum, boolean retrieveAssociation);",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"public static int countByGDFTendersByUserId(long supplierId) {\n\t\treturn getPersistence().countByGDFTendersByUserId(supplierId);\n\t}",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"public Researcher getResearcherByID(int id);",
"@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}",
"public void setSupplierNum(String supplierNum) {\n this.supplierNum = supplierNum == null ? null : supplierNum.trim();\n }",
"@Override\n\tpublic Entity getControllingPassenger() {\n\t\tList<Entity> list = getPassengers();\n\t\treturn list.isEmpty() ? null : list.get(0);\n\t}",
"public static SupplierEntityExpert getSupplierEntityExpert(OADBTransaction txn)\n { \n return (SupplierEntityExpert)txn.getExpert(SupplierEOImpl.getDefinitionObject()); \n \n }",
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"@Override\n\tpublic SupplierView getSupplierBySupplierIdAndProductId(long supplierId, long productId) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,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 WHERE supplier_id=? and product_id=?\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId, productId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"@Override\n\tpublic List<SupplierView> getSupplierByName(String supplierName) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,h.buy_date,h.supplier_unique_id,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 WHERE supplier_name=?\";\n\t\tList<Map<String, Object>> row=getJdbcTemplate().queryForList(sql, supplierName);\n\t\tList<SupplierView> supplier_view=new ArrayList<SupplierView>();\n\t\tfor(Map<String, Object> rows:row)\n\t\t{\n\t\t\tSupplierView obj=new SupplierView();\n\t\t\tobj.setSupplierId((int)rows.get(\"supplier_id\"));\n\t\t\tobj.setSupplierName((String)rows.get(\"supplier_name\"));\n\t\t\tobj.setSupplierType((String)rows.get(\"supplier_type\"));\n\t\t\tobj.setImage((String)rows.get(\"image\"));\n\t\t\tobj.setPermanentAddress((String)rows.get(\"permanent_address\"));\n\t\t\tobj.setTemporaryAddress((String)rows.get(\"temporary_address\"));\n\t\t\tobj.setQuantity((int)rows.get(\"quantity\"));\n obj.setCost((double)rows.get(\"cost\"));\n obj.setSupplierUniqueId((int)rows.get(\"supplier_unique_id\"));\n obj.setBuyDate((Date)rows.get(\"buy_date\"));\n obj.setProductId((long)rows.get(\"product_id\"));\n obj.setProductName((String)rows.get(\"product_name\"));\n obj.setUsername((String) rows.get(\"username\"));\n supplier_view.add(obj);\n\t\t}\n\t\treturn supplier_view;\n\t}",
"public HashMap<Integer, Float> getProductsForSupplier(int supplierId) {\n\t\tHashMap<Integer, Float> map = new HashMap<Integer, Float>();\n\t\tString sql = \"select product_id, offer_price from supplier_products where supplier_id = ? order by product_id asc\";\n\t\ttry (Connection connection = DriverManager.getConnection(URL, user, password);\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(sql)) {\n\t\t\tstatement.setInt(1, supplierId);\n\t\t\tResultSet res = statement.executeQuery();\n\n\t\t\twhile (res.next()) {\n\t\t\t\tmap.put(res.getInt(1), res.getFloat(2));\n\t\t\t}\n\t\t\treturn map;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Couldn't find a supplier with the id: \" + supplierId);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic TGuideInfoCustom findElectrityBypk(String guidepk) throws Exception {\n\t\treturn tGuideInfoCustomMapper.findElectrityBypk(guidepk);\n\t}",
"private UriRef getRenderingSpecification(Resource renderletDef) {\n\t\tIterator<Triple> renderSpecIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingSpecification, null);\n\t\tif (renderSpecIter.hasNext()) {\n\t\t\treturn (UriRef) renderSpecIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"protected File getFreeTask() {\n for (File task : tasks) {\n boolean isFree = true;\n for (EvaluatorHandle handle : evaluations) {\n if (handle.getTask() == task) {\n isFree = false;\n break;\n }\n }\n if (isFree) {\n return task;\n }\n }\n return null;\n }",
"private static HashMap<String, Object> fetchReferralRecruitmentData(HashMap<String, Object> parameterMap) {\n\t\t//BEGIN-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\tPsPersonalApplicantReferral psReferralSource = PsPersonalApplicantReferral.findByEmployeeIdAndEffectiveDate((String)parameterMap.get(\"employeeId\"), (Date)parameterMap.get(\"effectiveDate\")); //PS_PERS_APPL_REF\n\t\tBigInteger referralSourceId = psReferralSource.getSourceId();\n\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findBySourceId(referralSourceId); //PS_HRS_SOURCE_I\n\t\tString referralSourceDescription = psRecruitmentSource.getSourceDescription();\n//\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findByRecruitmentSourceId(recruitmentSourceId); //PS_HRS_SOURCE_I\n\t\t//LET $PSRecruit_Source_Code = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n\t\tString referralSourceName = psRecruitmentSource.getSourceName();\n\t\tString psSpecificReferralSource = \"\";\n\t\t//DO HR05-FORMAT-REFERRAL-SOURCE \n\t\t\t//BEGIN-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t\t//Let $Found = 'N' !Initialize the found indicator\n\t\t\t//!Based on the value in the PeopleSoft Recruit Source Code assign the\n\t\t\t//!corresponding legacy system code that will be passed.\n\t\t\t//Let $PSReferral_Source = &CPT101.ZHRF_LEGRECRUITSRC\n\t\t\tString referralSource = CrossReferenceReferralSource.findActiveLegacyRecruiterSourceByReferralSource(referralSourceName); //PS_ZHRT_RFSRC_CREF\n\t\t\t//IF ($Found = 'N')\n\t\t\tif(referralSource == null) {\n\t\t\t\t//LET $PSReferral_Source = ' '\n\t\t\t\treferralSource = \"\";\n\t\t\t\t//IF $PSRecruit_Source_Code = ' ' !If the Referral Source code was not entered in PS\n\t\t\t\tif(referralSourceName == null || referralSourceName.isEmpty()) {\n\t\t\t\t\tparameterMap.put(\"errorProgram\", \"ZHRI105A\");\n\t\t\t\t\t//LET $ErrorMessageParm = 'Referral source not selected in PeopleSoft.'\n\t\t\t\t\tparameterMap.put(\"errorMessage\", \"Referral source not selected in PeopleSoft.\");\n\t\t\t\t\t//DO Prepare-Error-Parms ! JHV 09/11/02 fix Date Mask error ZHR_PRDSPT_INTF_ERROR\n\t\t\t\t\t//DO Call-Error-Routine !From ZHRI100A.SQR\n\t\t\t\t\tMain.doErrorCommand(parameterMap);\n\t\t\t\t}\n\t\t\t\t//ELSE\n\t\t\t\telse {\n\t\t\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35)\n\t\t\t\t\tpsSpecificReferralSource = referralSourceDescription;\n//\t\t\t\t\tPSSpecific_Refer_Src = PSRefSourceDescr;\n\t\t\t\t//END-IF !$PSRecruit_Source_Code = ' '\n\t\t\t\t}\n\t\t\t//END-IF !$Found = 'N'\n\t\t\t}\n\t\t\t//!Make sure not less than 35 long\n\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35) \n\t\t\t//TODO: //LET $PSSpecific_Refer_Src = RPAD($PSSpecific_Refer_Src,35,' ')\n\t\t\tpsSpecificReferralSource = psSpecificReferralSource.substring(0, 35);\n\t\t\tString recruitmentSourceId = psRecruitmentSource.getSourceDescription();\n\t\t\tif(recruitmentSourceId != null) {\n\t\t\t\trecruitmentSourceId = recruitmentSourceId.trim();\n\t\t\t\trecruitmentSourceId = String.format(\"%1$-35s\", recruitmentSourceId);\n\t\t\t}\n\t\t\tparameterMap.put(\"recruitmentSourceId\", recruitmentSourceId);\n\t\t\t//END-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t//Let $PSReferralSource = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n//\t\tString PSReferralSource = psRecruitmentSource.getSourceName();\n\t\t//END-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\treferralSource = referralSource != null ? referralSource.trim() : referralSource;\n\t\tparameterMap.put(\"referralSource\", referralSource);\n\t\treturn parameterMap;\n\t}",
"public String getSupplierCommodity() {\n return supplierCommodity;\n }",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public String getFunctionalRiskRetrieveActionTaskReference() {\n return functionalRiskRetrieveActionTaskReference;\n }",
"public RendererBean findRenderer(\r\n String componentFamily,\r\n String rendererType)\r\n {\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n return _renderers.get(compositeKey);\r\n }",
"public List<DetailerCall> getDetailers() {\n if (detailers == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n DetailerCallDao targetDao = daoSession.getDetailerCallDao();\n List<DetailerCall> detailersNew = targetDao._queryTask_Detailers(uuid);\n synchronized (this) {\n if(detailers == null) {\n detailers = detailersNew;\n }\n }\n }\n return detailers;\n }",
"public java.lang.String getReferenceNumber() {\r\n return referenceNumber;\r\n }",
"public String getReferenceNarrativeText() {\n\t\tif ((this.getMdht().getText() != null) && (this.getMdht().getText().getText() != null)) {\n\t\t\treturn this.getMdht().getText().getText();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic List<String> fetchDataForEtowerForeCastCall(String[] refNbrs) {\n\t\treturn senderDataRepository.fetchDataForEtowerForeCastCall(refNbrs);\r\n\t}",
"public void setSupplierName(String supplierName) {\n this.supplierName = supplierName == null ? null : supplierName.trim();\n }",
"private UriRef getRenderRdfType(Resource renderletDef) {\n\t\tIterator<Triple> renderedTypeIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderedType, null);\n\n\t\tif (renderedTypeIter.hasNext()) {\n\t\t\treturn (UriRef) renderedTypeIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"public Borrower getBorrower() {\n if (isBeforeFirst() || isAfterLast())\n return null;\n Borrower borrower = new Borrower();\n borrower.setId(getLong(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_ID)));\n borrower.setLoanAmount(getFloat(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_AMOUNT_BORROWED)));\n borrower.setInterestRate(getFloat(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_INTEREST_RATE)));\n borrower.setName(getString(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_NAME)));\n borrower.setIsPaid((getInt(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_PAID)) != 0));\n borrower.setPhoneNumber(getString(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_PHONE_NUMBER)));\n borrower.setThumbnailUri(getString(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_THUMBNAIL_URI)));\n borrower.setContactUri(Uri.parse(getString(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_CONTACT_URI))));\n\n if (!getWrappedCursor().isNull((getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_AMOUNT_PAID)))) {\n borrower.setAmountPaid(getFloat(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_AMOUNT_PAID)));\n }\n if (!getWrappedCursor().isNull((getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_LOAN_DURATION)))) {\n borrower.setLoanDuration(getInt(getColumnIndex(PayUpDataBaseHelper.COLUMN_BORROWER_LOAN_DURATION)));\n }\n\n borrower.setDateBorrowed(getDateBorrowed());\n borrower.setDateDue(getDateDue());\n\n\n return borrower;\n }",
"@Override\r\n\tpublic Retailer findByRetailerName(String retailerName,int projectId) {\n\t\treturn iImportSalesRecordDao.findByRetailerName(retailerName,projectId);\r\n\t}",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"public long getSubmissionId() {\r\n return submissionId;\r\n }",
"public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}",
"public Speaker findSpeaker(String speakerEmail){\n for (Speaker s : userManager.getSpeakerList()){\n if (s.getEmail().equals(speakerEmail)){\n return s;\n }\n }\n return null;\n }",
"public Producer getProducerByEmailFetchingAddressFetchingProfile(String producerEmail);",
"public String getName() {\n\t\tfinal String submitterName = getSubmitterName();\n\t\tif (submitterName != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_name\" + TAB + submitterName;\n\t\treturn null;\n\t}",
"@Override\n\tpublic String calendarPdfReference(String context, String id,\n\t\t\tint scheduleType, String timeRangeString, String userName,\n\t\t\tTimeRange dailyTimeRange) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<EmployeeReferalResponseModel> getEmployeeDetails(String referance_email) throws CustomException {\n\n\t\tif (!UserUtility.isValidEmail(referance_email)) {\n\t\t\tthrow new CustomException(204, \"Invalid email id\");\n\t\t}\n\t\tList<EmployeeReferal> employeeReferal = employeeReferalRepository.findByEmployeeEmail(referance_email);\n\n\t\tif (Objects.isNull(employeeReferal) || employeeReferal.isEmpty()) {\n\t\t\tthrow new CustomException(500, \"Reference user does not exists\");\n\t\t}\n\t\treturn conversionUtility.convertTOGetEmployees(employeeReferal);\n\t}",
"public USAStaffingRecruitmentResult getRecruitmentData(String requestNumber){\r\n\r\n\t\tUSAStaffingRecruitmentResult usasRecruitment = new USAStaffingRecruitmentResult();\r\n\r\n\t\tPrompt recruitmentPrompt = new Prompt(properties.getReportPromptRequest(), requestNumber, requestNumber);\r\n\t\tCognosReport recruitmentReport = new CognosReport(properties.getRecruitmentReportName(), properties.getRecruitmentReportPath(), properties.getReportFormatDataSet(), recruitmentPrompt);\r\n\r\n\t\tif(properties.getProgramMode().equalsIgnoreCase(properties.getTestMode())){//test mode\r\n\t\t\tlog.info(\"**Application is running in TEST MODE: Pre-downloaded Recruitment report will be used to generate the response.\");\r\n\t\t\tString reportPath = properties.getRecruitmentFileLocation() + File.separator + requestNumber + \".xml\";\r\n\t\t\tlog.info(\"Using XML report for Recruitment \"+ reportPath + \" for transformation.\");\r\n\t\t\tusasRecruitment = recruitmentService.parseReportFromFile(reportPath);\r\n\t\t}else{//normal or production mode\r\n\t\t\tlog.info(\"Connecting to USAS - Cognos Server to get \" + properties.getRecruitmentReportName() + \" report for Request Number [\"+requestNumber+\"].\"); \r\n\t\t\tusasRecruitment = recruitmentService.parseReportFromUSASResponse(this.client.processReportDataRequest(recruitmentReport), requestNumber);\r\n\t\t}\r\n\t\tif(usasRecruitment.getRequestNumber().length() == 0)//setting request number for response if not available\t\t\t\r\n\t\t\tusasRecruitment.setRequestNumber(requestNumber);\r\n\t\tlog.info(usasRecruitment.toString());\r\n\t\treturn usasRecruitment;\r\n\t}",
"@Override\r\n\tpublic Retailer findRetailerByProvId(int provinceId, String retailerName) {\n\t\treturn iImportSalesRecordDao.findRetailerByProvId(provinceId, retailerName);\r\n\t}",
"private ObsolescenceReference retrieveReference() {\n \n if (StringUtil.isEmptyOrNull(selectedReferenceName)) {\n return null;\n }\n \n switch (referenceTypeChosen) {\n case MANUFACTURERPN_TYPEARTICLE:\n ManufacturerPN lManufacturerPN =\n articleBean.findManufacturerPNByName(selectedReferenceName);\n if (lManufacturerPN != null && selectedTypeArticle != null) {\n return new ObsolescenceReference(lManufacturerPN,\n selectedTypeArticle);\n }\n else {\n return null;\n }\n \n case AIRBUSPN_TYPEARTICLE:\n AirbusPN lAirbusPN =\n articleBean.findAirbusPNByName(selectedReferenceName);\n if (lAirbusPN != null && selectedTypeArticle != null) {\n return new ObsolescenceReference(lAirbusPN, selectedTypeArticle);\n }\n else {\n return null;\n }\n \n case SOFTWARE:\n return new ObsolescenceReference(\n softBean.findByCompleteName(selectedReferenceName));\n \n case TYPEPC:\n return new ObsolescenceReference(\n articleBean.findTypePCByName(selectedReferenceName));\n default:\n }\n return null;\n }",
"public String getMerchandisingLoanRetrieveActionTaskReference() {\n return merchandisingLoanRetrieveActionTaskReference;\n }",
"@Override\r\n\tpublic Grade findGradeDetails(Long gradeId) {\r\n\t\treturn gradeRepository.findOne(gradeId);\r\n\t}",
"public Object getCustomerEligibilityAssessmentRetrieveActionTaskRecord() {\n return customerEligibilityAssessmentRetrieveActionTaskRecord;\n }",
"public Opportunities[] findWhereSupplierIdEquals(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ? ORDER BY supplier_id\", new Object[] { new Integer(supplierId) } );\r\n\t}"
]
| [
"0.7829407",
"0.71441907",
"0.69220024",
"0.662973",
"0.6273137",
"0.6049054",
"0.6013798",
"0.5967622",
"0.5895011",
"0.5762354",
"0.5580839",
"0.55778694",
"0.5547441",
"0.5522818",
"0.54735297",
"0.52969605",
"0.52902496",
"0.5093962",
"0.50759953",
"0.503742",
"0.50185806",
"0.49360985",
"0.48794892",
"0.4870467",
"0.47858715",
"0.47673354",
"0.4757035",
"0.47436318",
"0.47264606",
"0.47150767",
"0.4688572",
"0.4666301",
"0.46516296",
"0.46016836",
"0.4599422",
"0.4569859",
"0.45609614",
"0.45546755",
"0.4545392",
"0.44909638",
"0.4483399",
"0.44502163",
"0.44007146",
"0.437293",
"0.4352619",
"0.4340401",
"0.42998785",
"0.42839137",
"0.42795447",
"0.42634997",
"0.42502892",
"0.4237612",
"0.42263505",
"0.41965088",
"0.41671774",
"0.4166247",
"0.4163398",
"0.41076055",
"0.40948942",
"0.40837944",
"0.408042",
"0.40732154",
"0.40454683",
"0.4041595",
"0.40399224",
"0.40231574",
"0.40211582",
"0.4014463",
"0.3988623",
"0.39669585",
"0.39594305",
"0.39591387",
"0.39424205",
"0.39270774",
"0.39199463",
"0.3918731",
"0.39124188",
"0.39091575",
"0.39084777",
"0.3901376",
"0.39001805",
"0.3896371",
"0.3891653",
"0.38817856",
"0.3881544",
"0.38787082",
"0.3864778",
"0.38634372",
"0.38596594",
"0.3853355",
"0.3850604",
"0.38472006",
"0.38465825",
"0.3843908",
"0.38373652",
"0.3833436",
"0.38320047",
"0.3828006",
"0.38279602",
"0.3825025"
]
| 0.78109145 | 1 |
Returns the gdf tender submission details where tenderReferenceNumber = &63; and supplierId = &63; or returns null if it could not be found, optionally using the finder cache. | public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(
String tenderReferenceNumber, long supplierId, boolean useFinderCache) {
return getPersistence().fetchByGDFTenderRefeNoByUserId(
tenderReferenceNumber, supplierId, useFinderCache);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public String getSupplierName() {\n return supplierName;\n }",
"public static GDFTenderSubmissionDetails create(long tenderSubRefID) {\n\t\treturn getPersistence().create(tenderSubRefID);\n\t}",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }",
"public String getSupplier() {\n return supplier;\n }",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static void cacheResult(\n\t\tGDFTenderSubmissionDetails gdfTenderSubmissionDetails) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetails);\n\t}",
"String getSupplierID();",
"public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }",
"@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"public String getCustomerEligibilityAssessmentRetrieveActionTaskReference() {\n return customerEligibilityAssessmentRetrieveActionTaskReference;\n }",
"public Freelancer getFreelancer(String freelancerId) {\n Response response = freelancerGetByIdService.resolveTemplate(\"freelancerId\", freelancerId).request(MediaType.APPLICATION_JSON).get();\n if (response.getStatus() == 200) {\n return response.readEntity(Freelancer.class);\n } else if (response.getStatus() == 404) {\n return null;\n } else {\n throw new ServiceUnavailableException();\n }\n }",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}",
"public ShortlistedSuppliersTable getShortlistedSupplierData(JSONObject shortlistedSupplier, String shortlistedSupplierId) {\n try {\r\n if ( shortlistedSupplier != null) {\r\n\r\n String proposalId = shortlistedSupplier.getString(\"proposal_id\");\r\n String supplierId = shortlistedSupplier.getString(\"supplier_id\");\r\n String supplierContentTypeId = shortlistedSupplier.getString(\"content_type_id\");\r\n //String phase = shortlistedSupplier.getString(\"phase\");\r\n String phase = \"1\"; // TODO: 23/2/17 hardcoded. remove it\r\n String lastModified = getCurrentDate();\r\n return new ShortlistedSuppliersTable(shortlistedSupplierId, proposalId, supplierId, supplierContentTypeId, phase, lastModified);\r\n }\r\n }\r\n catch (Exception e){\r\n Log.d(\"getShortlistSuppData\", e.getMessage());\r\n }\r\n return null;\r\n }",
"public Supplier findSupplier(int suppliernum, boolean retrieveAssociation);",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public Map getEditSupplier(Long suppilerId) {\r\n\r\n\t\tSupplierDetailDao dao1 = new SupplierDetailDao();\r\n\t\tList catList = dao1.getEditSupplier1(suppilerId);\r\n\t\t\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < catList.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) catList.get(i);\r\n\t\t\tSupplierEditBean bean = new SupplierEditBean();\r\n\t\t\tbean.setAddress((String) o[0]);\r\n\t\t\tbean.setCity((String) o[1]);\r\n\t\t\tbean.setContactPerson((String) o[2]);\r\n\t\t\tbean.setPin((Long) o[3]);\r\n\t\t\tbean.setEmail((String) o[4]);\r\n\t\t\tbean.setMobileno((Long) o[5]);\r\n\t\t\tbean.setPanNo((String) o[6]);\r\n\t\t\tbean.setSupplierName((String) o[7]);\r\n\t\t\tbean.setSuppCode((String) o[8]);\r\n\t\t\tbean.setTaxType((String) o[9]);\r\n\r\n\t\t\tmap.put(bean.getSupplierName(), bean);\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"public String getSubmissionType() {\n\t\tif (submissionType != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submission_type\" + TAB + submissionType.toString();\n\t\treturn null;\n\t}",
"public static int countByGDFTendersByUserId(long supplierId) {\n\t\treturn getPersistence().countByGDFTendersByUserId(supplierId);\n\t}",
"public RS274GCodeRenderer getRendererByGCodeProvider(Integer idGCodeProvider) throws GkException{\n\t\tfor (RS274GCodeRenderer renderer : cacheRenderer.get()) {\n\t\t\tif(ObjectUtils.equals(idGCodeProvider, renderer.getIdGCodeProvider())){\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t}\n\t\tthrow new GkTechnicalException(\"Renderer for GCodeProvider with internal id [\"+idGCodeProvider+\"] does not exist\");\n\t}",
"public Researcher getResearcherByID(int id);",
"public static SupplierEntityExpert getSupplierEntityExpert(OADBTransaction txn)\n { \n return (SupplierEntityExpert)txn.getExpert(SupplierEOImpl.getDefinitionObject()); \n \n }",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}",
"public String getFunctionalRiskRetrieveActionTaskReference() {\n return functionalRiskRetrieveActionTaskReference;\n }",
"@Override\n\tpublic SupplierView getSupplierBySupplierIdAndProductId(long supplierId, long productId) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,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 WHERE supplier_id=? and product_id=?\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId, productId);\n\t}",
"public void setSupplierNum(String supplierNum) {\n this.supplierNum = supplierNum == null ? null : supplierNum.trim();\n }",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"@Override\n\tpublic List<SupplierView> getSupplierByName(String supplierName) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,h.buy_date,h.supplier_unique_id,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 WHERE supplier_name=?\";\n\t\tList<Map<String, Object>> row=getJdbcTemplate().queryForList(sql, supplierName);\n\t\tList<SupplierView> supplier_view=new ArrayList<SupplierView>();\n\t\tfor(Map<String, Object> rows:row)\n\t\t{\n\t\t\tSupplierView obj=new SupplierView();\n\t\t\tobj.setSupplierId((int)rows.get(\"supplier_id\"));\n\t\t\tobj.setSupplierName((String)rows.get(\"supplier_name\"));\n\t\t\tobj.setSupplierType((String)rows.get(\"supplier_type\"));\n\t\t\tobj.setImage((String)rows.get(\"image\"));\n\t\t\tobj.setPermanentAddress((String)rows.get(\"permanent_address\"));\n\t\t\tobj.setTemporaryAddress((String)rows.get(\"temporary_address\"));\n\t\t\tobj.setQuantity((int)rows.get(\"quantity\"));\n obj.setCost((double)rows.get(\"cost\"));\n obj.setSupplierUniqueId((int)rows.get(\"supplier_unique_id\"));\n obj.setBuyDate((Date)rows.get(\"buy_date\"));\n obj.setProductId((long)rows.get(\"product_id\"));\n obj.setProductName((String)rows.get(\"product_name\"));\n obj.setUsername((String) rows.get(\"username\"));\n supplier_view.add(obj);\n\t\t}\n\t\treturn supplier_view;\n\t}",
"public List<DetailerCall> getDetailers() {\n if (detailers == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n DetailerCallDao targetDao = daoSession.getDetailerCallDao();\n List<DetailerCall> detailersNew = targetDao._queryTask_Detailers(uuid);\n synchronized (this) {\n if(detailers == null) {\n detailers = detailersNew;\n }\n }\n }\n return detailers;\n }",
"public Producer getProducerByEmailFetchingAddressFetchingProfile(String producerEmail);",
"@Override\n\tpublic TGuideInfoCustom findElectrityBypk(String guidepk) throws Exception {\n\t\treturn tGuideInfoCustomMapper.findElectrityBypk(guidepk);\n\t}",
"private UriRef getRenderingSpecification(Resource renderletDef) {\n\t\tIterator<Triple> renderSpecIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingSpecification, null);\n\t\tif (renderSpecIter.hasNext()) {\n\t\t\treturn (UriRef) renderSpecIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"public String getSupplierCommodity() {\n return supplierCommodity;\n }",
"private static HashMap<String, Object> fetchReferralRecruitmentData(HashMap<String, Object> parameterMap) {\n\t\t//BEGIN-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\tPsPersonalApplicantReferral psReferralSource = PsPersonalApplicantReferral.findByEmployeeIdAndEffectiveDate((String)parameterMap.get(\"employeeId\"), (Date)parameterMap.get(\"effectiveDate\")); //PS_PERS_APPL_REF\n\t\tBigInteger referralSourceId = psReferralSource.getSourceId();\n\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findBySourceId(referralSourceId); //PS_HRS_SOURCE_I\n\t\tString referralSourceDescription = psRecruitmentSource.getSourceDescription();\n//\t\tPsRecruitmentSource psRecruitmentSource = PsRecruitmentSource.findByRecruitmentSourceId(recruitmentSourceId); //PS_HRS_SOURCE_I\n\t\t//LET $PSRecruit_Source_Code = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n\t\tString referralSourceName = psRecruitmentSource.getSourceName();\n\t\tString psSpecificReferralSource = \"\";\n\t\t//DO HR05-FORMAT-REFERRAL-SOURCE \n\t\t\t//BEGIN-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t\t//Let $Found = 'N' !Initialize the found indicator\n\t\t\t//!Based on the value in the PeopleSoft Recruit Source Code assign the\n\t\t\t//!corresponding legacy system code that will be passed.\n\t\t\t//Let $PSReferral_Source = &CPT101.ZHRF_LEGRECRUITSRC\n\t\t\tString referralSource = CrossReferenceReferralSource.findActiveLegacyRecruiterSourceByReferralSource(referralSourceName); //PS_ZHRT_RFSRC_CREF\n\t\t\t//IF ($Found = 'N')\n\t\t\tif(referralSource == null) {\n\t\t\t\t//LET $PSReferral_Source = ' '\n\t\t\t\treferralSource = \"\";\n\t\t\t\t//IF $PSRecruit_Source_Code = ' ' !If the Referral Source code was not entered in PS\n\t\t\t\tif(referralSourceName == null || referralSourceName.isEmpty()) {\n\t\t\t\t\tparameterMap.put(\"errorProgram\", \"ZHRI105A\");\n\t\t\t\t\t//LET $ErrorMessageParm = 'Referral source not selected in PeopleSoft.'\n\t\t\t\t\tparameterMap.put(\"errorMessage\", \"Referral source not selected in PeopleSoft.\");\n\t\t\t\t\t//DO Prepare-Error-Parms ! JHV 09/11/02 fix Date Mask error ZHR_PRDSPT_INTF_ERROR\n\t\t\t\t\t//DO Call-Error-Routine !From ZHRI100A.SQR\n\t\t\t\t\tMain.doErrorCommand(parameterMap);\n\t\t\t\t}\n\t\t\t\t//ELSE\n\t\t\t\telse {\n\t\t\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35)\n\t\t\t\t\tpsSpecificReferralSource = referralSourceDescription;\n//\t\t\t\t\tPSSpecific_Refer_Src = PSRefSourceDescr;\n\t\t\t\t//END-IF !$PSRecruit_Source_Code = ' '\n\t\t\t\t}\n\t\t\t//END-IF !$Found = 'N'\n\t\t\t}\n\t\t\t//!Make sure not less than 35 long\n\t\t\t//LET $PSSpecific_Refer_Src = SUBSTR($PSRefSourceDescr,1,35) \n\t\t\t//TODO: //LET $PSSpecific_Refer_Src = RPAD($PSSpecific_Refer_Src,35,' ')\n\t\t\tpsSpecificReferralSource = psSpecificReferralSource.substring(0, 35);\n\t\t\tString recruitmentSourceId = psRecruitmentSource.getSourceDescription();\n\t\t\tif(recruitmentSourceId != null) {\n\t\t\t\trecruitmentSourceId = recruitmentSourceId.trim();\n\t\t\t\trecruitmentSourceId = String.format(\"%1$-35s\", recruitmentSourceId);\n\t\t\t}\n\t\t\tparameterMap.put(\"recruitmentSourceId\", recruitmentSourceId);\n\t\t\t//END-PROCEDURE HR05-FORMAT-REFERRAL-SOURCE\n\t\t//Let $PSReferralSource = LTRIM(RTRIM(&CHSI2.HRS_SOURCE_NAME,' '),' ') \n//\t\tString PSReferralSource = psRecruitmentSource.getSourceName();\n\t\t//END-PROCEDURE HR05-GET-REFERRAL-SOURCE\n\t\treferralSource = referralSource != null ? referralSource.trim() : referralSource;\n\t\tparameterMap.put(\"referralSource\", referralSource);\n\t\treturn parameterMap;\n\t}",
"public static void cacheResult(\n\t\tList<GDFTenderSubmissionDetails> gdfTenderSubmissionDetailses) {\n\n\t\tgetPersistence().cacheResult(gdfTenderSubmissionDetailses);\n\t}",
"@Override\n\tpublic Entity getControllingPassenger() {\n\t\tList<Entity> list = getPassengers();\n\t\treturn list.isEmpty() ? null : list.get(0);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"String getCustomerEmail(String bookingRef);",
"@Override\r\n\tpublic List<String> fetchDataForEtowerForeCastCall(String[] refNbrs) {\n\t\treturn senderDataRepository.fetchDataForEtowerForeCastCall(refNbrs);\r\n\t}",
"@Override\n\tpublic List<EmployeeReferalResponseModel> getEmployeeDetails(String referance_email) throws CustomException {\n\n\t\tif (!UserUtility.isValidEmail(referance_email)) {\n\t\t\tthrow new CustomException(204, \"Invalid email id\");\n\t\t}\n\t\tList<EmployeeReferal> employeeReferal = employeeReferalRepository.findByEmployeeEmail(referance_email);\n\n\t\tif (Objects.isNull(employeeReferal) || employeeReferal.isEmpty()) {\n\t\t\tthrow new CustomException(500, \"Reference user does not exists\");\n\t\t}\n\t\treturn conversionUtility.convertTOGetEmployees(employeeReferal);\n\t}",
"@Override\n\tpublic String calendarPdfReference(String context, String id,\n\t\t\tint scheduleType, String timeRangeString, String userName,\n\t\t\tTimeRange dailyTimeRange) {\n\t\treturn null;\n\t}",
"public String getReferenceNarrativeText() {\n\t\tif ((this.getMdht().getText() != null) && (this.getMdht().getText().getText() != null)) {\n\t\t\treturn this.getMdht().getText().getText();\n\t\t}\n\t\treturn null;\n\t}",
"private UriRef getRenderRdfType(Resource renderletDef) {\n\t\tIterator<Triple> renderedTypeIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderedType, null);\n\n\t\tif (renderedTypeIter.hasNext()) {\n\t\t\treturn (UriRef) renderedTypeIter.next().getObject();\n\t\t}\n\t\treturn null;\n\t}",
"public String getName() {\n\t\tfinal String submitterName = getSubmitterName();\n\t\tif (submitterName != null)\n\t\t\treturn ProteomeXchangeFilev2_1.MTD + TAB + \"submitter_name\" + TAB + submitterName;\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Retailer findByRetailerName(String retailerName,int projectId) {\n\t\treturn iImportSalesRecordDao.findByRetailerName(retailerName,projectId);\r\n\t}",
"public Object getCustomerEligibilityAssessmentRetrieveActionTaskRecord() {\n return customerEligibilityAssessmentRetrieveActionTaskRecord;\n }",
"public String getMerchandisingLoanRetrieveActionTaskReference() {\n return merchandisingLoanRetrieveActionTaskReference;\n }",
"public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}",
"public RendererBean findRenderer(\r\n String componentFamily,\r\n String rendererType)\r\n {\r\n String compositeKey = componentFamily + \"|\" + rendererType;\r\n return _renderers.get(compositeKey);\r\n }",
"public String getTraderEmailId() {\n return traderEmailId;\n }",
"protected File getFreeTask() {\n for (File task : tasks) {\n boolean isFree = true;\n for (EvaluatorHandle handle : evaluations) {\n if (handle.getTask() == task) {\n isFree = false;\n break;\n }\n }\n if (isFree) {\n return task;\n }\n }\n return null;\n }",
"public USAStaffingRecruitmentResult getRecruitmentData(String requestNumber){\r\n\r\n\t\tUSAStaffingRecruitmentResult usasRecruitment = new USAStaffingRecruitmentResult();\r\n\r\n\t\tPrompt recruitmentPrompt = new Prompt(properties.getReportPromptRequest(), requestNumber, requestNumber);\r\n\t\tCognosReport recruitmentReport = new CognosReport(properties.getRecruitmentReportName(), properties.getRecruitmentReportPath(), properties.getReportFormatDataSet(), recruitmentPrompt);\r\n\r\n\t\tif(properties.getProgramMode().equalsIgnoreCase(properties.getTestMode())){//test mode\r\n\t\t\tlog.info(\"**Application is running in TEST MODE: Pre-downloaded Recruitment report will be used to generate the response.\");\r\n\t\t\tString reportPath = properties.getRecruitmentFileLocation() + File.separator + requestNumber + \".xml\";\r\n\t\t\tlog.info(\"Using XML report for Recruitment \"+ reportPath + \" for transformation.\");\r\n\t\t\tusasRecruitment = recruitmentService.parseReportFromFile(reportPath);\r\n\t\t}else{//normal or production mode\r\n\t\t\tlog.info(\"Connecting to USAS - Cognos Server to get \" + properties.getRecruitmentReportName() + \" report for Request Number [\"+requestNumber+\"].\"); \r\n\t\t\tusasRecruitment = recruitmentService.parseReportFromUSASResponse(this.client.processReportDataRequest(recruitmentReport), requestNumber);\r\n\t\t}\r\n\t\tif(usasRecruitment.getRequestNumber().length() == 0)//setting request number for response if not available\t\t\t\r\n\t\t\tusasRecruitment.setRequestNumber(requestNumber);\r\n\t\tlog.info(usasRecruitment.toString());\r\n\t\treturn usasRecruitment;\r\n\t}",
"private String getReference(RequestInfo requestInfo) throws DefectException { \r\n\t\tlog.info(\"Start - getReference\");\r\n\t\tif(CommonUtil.isNull(requestInfo)){\r\n\t\t\tlog.error(\"Request Info is null - \"+ requestInfo);\t\t\t\r\n\t\t\tthrow new DefectException(\"failed to read, request information is missing\");\r\n\t\t}\r\n\t\tif(CommonUtil.isNull(restApi))\r\n\t\t\tcreateInstance();\r\n\t\t\r\n\t\tString ref = null;\r\n try {\r\n\r\n log.info(\"Getting Query Response\");\r\n \r\n QueryResponse qryResponse = getQueryResponse(requestInfo);\r\n \r\n log.info(\"Got Query Response : \" + qryResponse);\r\n \r\n JsonArray qryResults = qryResponse.getResults();\r\n JsonElement qryElement = qryResults.get(0);\r\n JsonObject qryObject = qryElement.getAsJsonObject();\r\n ref = qryObject.get((requestInfo.getRefField() != null)?requestInfo.getRefField():RallyConstants._REF).toString();\r\n\r\n } finally {\r\n \tcloseDefect();\r\n \t\tlog.info(\"End - getReference\");\r\n \t\t System.out.println(\"value of ref is\"+ ref);\r\n }\r\n \r\n\t\treturn ref;\r\n \t}",
"@Override\r\n\tpublic Retailer findRetailerByProvId(int provinceId, String retailerName) {\n\t\treturn iImportSalesRecordDao.findRetailerByProvId(provinceId, retailerName);\r\n\t}",
"@RequestMapping(path = \"/v1/recommendations\", method = RequestMethod.GET)\n public ResponseEntity<Object> getRecommendations(@RequestParam(\"ag\") String assetGroup,\n @RequestParam(name = \"targettype\", required = false) String targetType) {\n if (Strings.isNullOrEmpty(assetGroup)) {\n return ResponseUtils.buildFailureResponse(new Exception(ASSET_MANDATORY));\n }\n ResponseData response = null;\n try {\n response = new ResponseData(complianceService.getRecommendations(assetGroup, targetType));\n } catch (ServiceException e) {\n return complianceService.formatException(e);\n }\n return ResponseUtils.buildSucessResponse(response);\n\n }",
"public HashMap<Integer, Float> getProductsForSupplier(int supplierId) {\n\t\tHashMap<Integer, Float> map = new HashMap<Integer, Float>();\n\t\tString sql = \"select product_id, offer_price from supplier_products where supplier_id = ? order by product_id asc\";\n\t\ttry (Connection connection = DriverManager.getConnection(URL, user, password);\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(sql)) {\n\t\t\tstatement.setInt(1, supplierId);\n\t\t\tResultSet res = statement.executeQuery();\n\n\t\t\twhile (res.next()) {\n\t\t\t\tmap.put(res.getInt(1), res.getFloat(2));\n\t\t\t}\n\t\t\treturn map;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Couldn't find a supplier with the id: \" + supplierId);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic Grade findGradeDetails(Long gradeId) {\r\n\t\treturn gradeRepository.findOne(gradeId);\r\n\t}",
"public Producer getProducerByProducerEmailFetchingProfile(String producerEmail);",
"public Requisition getRequisitionByID(int requisitionID);",
"public void setSupplierName(String supplierName) {\n this.supplierName = supplierName == null ? null : supplierName.trim();\n }",
"public Speaker findSpeaker(String speakerEmail){\n for (Speaker s : userManager.getSpeakerList()){\n if (s.getEmail().equals(speakerEmail)){\n return s;\n }\n }\n return null;\n }"
]
| [
"0.77327484",
"0.71336377",
"0.68114376",
"0.65315586",
"0.6226583",
"0.59862995",
"0.5961841",
"0.5922088",
"0.5797127",
"0.564744",
"0.5563447",
"0.5504623",
"0.5495185",
"0.54576546",
"0.53973",
"0.5284352",
"0.52536774",
"0.50577235",
"0.5033144",
"0.49980488",
"0.49922147",
"0.48404098",
"0.4763503",
"0.47251862",
"0.47243208",
"0.46640396",
"0.4640742",
"0.4624578",
"0.4608847",
"0.46045306",
"0.46036544",
"0.4590427",
"0.45767245",
"0.45466304",
"0.45285392",
"0.45034373",
"0.4495446",
"0.44832388",
"0.44543344",
"0.4380721",
"0.43624803",
"0.4319339",
"0.42941824",
"0.42941117",
"0.42644495",
"0.42570263",
"0.4255292",
"0.4229435",
"0.42123026",
"0.4182602",
"0.41795877",
"0.41360196",
"0.4135516",
"0.41151065",
"0.40978986",
"0.4085442",
"0.4079126",
"0.4078246",
"0.40482196",
"0.4006166",
"0.40038016",
"0.3998952",
"0.39709842",
"0.39707965",
"0.39524946",
"0.3943912",
"0.3936188",
"0.3934286",
"0.39297283",
"0.3926324",
"0.39232257",
"0.39226714",
"0.39062756",
"0.39058572",
"0.39041132",
"0.39027503",
"0.38736612",
"0.3872755",
"0.3869032",
"0.3861664",
"0.3861569",
"0.38442013",
"0.38427857",
"0.3831023",
"0.38291946",
"0.38270524",
"0.38230994",
"0.3822532",
"0.38221768",
"0.38204807",
"0.38175648",
"0.38081092",
"0.38080025",
"0.3796506",
"0.37955236",
"0.3788074",
"0.37868884",
"0.37834206",
"0.37817353",
"0.3780909"
]
| 0.782215 | 0 |
Removes the gdf tender submission details where tenderReferenceNumber = &63; and supplierId = &63; from the database. | public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(
String tenderReferenceNumber, long supplierId)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().removeByGDFTenderRefeNoByUserId(
tenderReferenceNumber, supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public void _unlinkSupplier(ModelElement supplier1);",
"@Override\n\tpublic void deleteIntoSupplierView(long supplierId, long productId) {\n\t\tString sql=\"DELETE FROM supplier_product WHERE supplier_supplier_id=? AND product_product_id=?\";\n\t\tgetJdbcTemplate().update(sql, supplierId, productId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public void removeShipment(){\n String message = \"Choose one of the shipment to remove\";\n if (printData.checkAndPrintShipment(message,data.getBranchEmployee(ID).getBranchID())){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfShipment());\n if (subChoice!=0){\n data.getBranch(data.getShipment(subChoice-1).getBranchID()).removeShipment(data.getShipment(subChoice-1));\n data.removeShipment(data.getShipment(subChoice-1),data.getShipment(subChoice-1).getReceiver());\n System.out.println(\"Your Shipment has removed Successfully!\");\n }\n }\n }",
"public boolean deleteSuppEmail (java.lang.String supp_no) throws com.mcip.orb.CoException {\n return this._delegate.deleteSuppEmail(supp_no);\n }",
"public void actionPerformed(ActionEvent arg){\n\t\t\t\tif(editSuppIdCombo.getSelectedIndex() != 0){\n\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\tlistOfSuppliers.removeElement(editSuppIdCombo.getSelectedItem().toString());\n\t\t\t\t\t\t\tsuppIdCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\tsuppNameCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\teditSuppIdCombo.removeItem(editSuppIdCombo.getSelectedItem());\n\t\t\t\t\t\t\tsuppliers.remove(supplier);\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Supplier Deleted\");\n\t\t\t\t\t\t\teditSuppIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\teditSupplierName.setText(\"\");\n\t\t\t\t\t\t\teditSupplierAddress.setText(\"\");\n\t\t\t\t\t\t\teditSupplierEmail.setText(\"\");\n\t\t\t\t\t\t\teditSupplierPhone.setText(\"\");\n\t\t\t\t\t\t\teditSupplierDelivery.setText(\"\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public void deleteSupplierEntityById(int supplierEntityId) {\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n SupplierEntity entityToDelete = (SupplierEntity)session.get(SupplierEntity.class, supplierEntityId);\n session.delete(entityToDelete);\n tx.commit();\n log.warn(\"Deleted supplier: \" + entityToDelete + \" with id of: \" + supplierEntityId);\n\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n }",
"public void deleteSupplier(Supplier e){ \n\t template.delete(e); \n\t}",
"public void setSupplierNum(String supplierNum) {\n this.supplierNum = supplierNum == null ? null : supplierNum.trim();\n }",
"public void delete(SupplierCard supplier) {\n supplier_dao.delete(supplier);\n }",
"public final void removeNum_emp() {\n removeValue(getNum_empAttribute(getMtDatabase()));\n }",
"@Override\n\tpublic void deleteIntoSupplier(long supplierId, long productId) {\n\t\tString sql=\"DELETE FROM supplier WHERE supplier_id IN(SELECT B.supplier_supplier_id FROM supplier_product B INNER JOIN product p ON B.product_product_id=p.product_id WHERE supplier_id=? AND B.product_product_id=?)\";\n\t getJdbcTemplate().update(sql, supplierId, productId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static boolean removeSurgeryEntry(String srg) {\n boolean result = new SurgeriesList().removeSurgery(srg);\n if (result) {\n updateSurgeriesTable();\n }\n return result;\n }",
"private void cleanUpConsumedEsnRecords() {\n\t\tesnInfoRepository.findAllByIsConsumed(true).removeIf(item -> (Days\n\t\t\t\t.daysBetween(new DateTime(item.getDateImported()), new DateTime()).isGreaterThan(Days.days(30))));\n\t}",
"public void deleteSupplierEntity(SupplierEntity originEntity) {\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n session.delete(originEntity);\n tx.commit();\n log.warn(\"Deleted supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n }",
"private void removeOlderGigs() {\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tint currentHr = cal.get(Calendar.HOUR_OF_DAY);\r\n\t\t\r\n\t\tif ((currentHr >= 0 && currentHr <= 7)) {\r\n\t\t\t//Log.d(TAG, \"deleting older gigs\");\r\n\t\t\tmGigsDbHelper.deleteOlderGigs();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void deleteAssignment(DefaultMutableTreeNode assignmentNode) {\n\t\tDefaultMutableTreeNode categoryNode = ((DefaultMutableTreeNode) assignmentNode.getParent());\n\t\tcategoryNode.remove(assignmentNode);\n\t\t\n\t\t// remove assignment from the category and from GPACalculator\n\t\t((GPACalculator)((DefaultMutableTreeNode) categoryNode.getParent()).getUserObject()).deleteAssignmentGrade(categoryNode.toString().split(\" \")[0], assignmentNode.toString().split(\" \")[0]);\n\t\tCategory category = (Category)categoryNode.getUserObject();\n\t\tString assignmentName = assignmentNode.toString().split(\" \")[0];\n\t\tcategory.deleteAssignmentGrade(assignmentName);\n\t}",
"public void unlinkProduct() {\n Product result;\n String supplierID = getToken(\"Enter supplier ID: \");\n if (warehouse.searchSupplier(supplierID) == null) {\n System.out.println(\"No such supplier!\");\n return;\n }\n do {\n String productID = getToken(\"Enter product ID: \");\n result = warehouse.unlinkProduct(supplierID, productID);\n if (result != null) {\n System.out.println(\"Product [\" + productID + \"] unassigned from supplier: [\" + supplierID + \"]\");\n }\n else {\n System.out.println(\"Product could not be unassigned\");\n }\n if (!yesOrNo(\"unassign more products from supplier: [\"+ supplierID + \"]\")) {\n break;\n }\n } while (true);\n }",
"public void deleteEntry(int id) {\n\t\tString sql=\"delete from suppplierpayments where supplierpayId=\"+id+\"\"; \n\t template.update(sql); \n\t\t\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"@Override\n\tpublic void removeByemailReqBfcInfo(boolean inStage, String email) {\n\t\tfor (LocalRichInfo localRichInfo : findByemailReqBfcInfo(inStage,\n\t\t\t\temail, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}",
"public static void RecipeTipsFirebaseDeleteSingle() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n String number = snapshot.child(FIELD_RECIPE_TIPS_NUMBER).getValue(String.class);\n\n assert number != null;\n if (number.equals(sCurrentRecipeTipNumber)) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"public void setSupplierName(String supplierName) {\n this.supplierName = supplierName == null ? null : supplierName.trim();\n }",
"@Override\r\n\tpublic boolean delFeback(int feedbackId) {\n\t\treturn BaseDao.execute(\"delete from feedback where feedbackId = ?\", feedbackId) > 0;\r\n\t}",
"public static void RecipeTipsFirebaseDeleteAll() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }",
"public void removeEntry(ActionEvent event) {\n\t\tnewReport2.removeSample(table.getSelectionModel().getSelectedItem());\n\t\ttable.getItems().removeAll(table.getSelectionModel().getSelectedItem());\n\t\tif(conclusionNumbers1.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber())!=-1) {\n\t\t\tconclusionNumbers1.remove(conclusionNumbers1.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber()));\n\t\t}\n\t\telse {\n\t\t\tconclusionNumbers2.remove(conclusionNumbers2.indexOf(table.getSelectionModel().getSelectedItem().getSampleNumber()));\n\t\t}\n\t}",
"public void unsetGPSReceiverDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(GPSRECEIVERDETAILSID$16);\r\n }\r\n }",
"public static void deleteRefRecord(int referenceeState,String selectedItem) throws FileNotFoundException{\n String filePath=\"userData\\\\\";\n if(referenceeState==1){\n filePath = \"userData\\\\departments.txt\";\n }else if(referenceeState==2){\n filePath = \"userData\\\\specializedArea.txt\";\n \n }\n File file = new File(filePath);\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n // get lines from txt file\n Object[] tableLines = br.lines().toArray();\n String[] stringArray = Arrays.copyOf(tableLines,tableLines.length, String[].class);\n ArrayList<String> list = new ArrayList<String>(Arrays.asList(stringArray));\n // extratct data from lines and add to the object array list\n for(int i = 0; i < stringArray.length; i++){\n String line = stringArray[i].toString().trim();\n if(line.equals(selectedItem)){\n list.remove(selectedItem);\n }\n }\n //deleting a all lines in the txt\n PrintWriter writer = new PrintWriter(file);\n writer.print(\"\");\n writer.close();\n //writing existing files to txt \n for(String loopObj: list){\n if(referenceeState==1){\n writingDepartment(loopObj);\n }else if(referenceeState==2){\n writingSpecializedArea(loopObj);\n } \n br.close();\n \n }\n \n }catch (Exception ex){\n Logger.getLogger(homeAdminGUI.class.getName()).log(Level.SEVERE, null, ex);\n \n }\n}",
"private void deleteBooking() \n {\n Scanner memberID=new Scanner(System.in);\n System.out.println(\"Please enter your member number: \");\n int memberId = memberID.nextInt();\n \n Member mem = sportsClub.searchMember(memberId);\n if(mem==null || mem.getBookings()==null)\n {\n System.out.println(\"Sorry! There are no members with the given ID. \");\n\n \n\n }\n else\n {\n for(Booking b : mem.getBookings())//Displays the member details n bookings\n {\n System.out.println(\"Booking Id : \" + b.hashCode()+ \" Booking made by \"+mem.getMemberName() +\" for \" + b.getBookingDate() + \" at \" + b.getBookingTime() + \" for \" + b.getBookingEndTime() + \" minutes on Court number \" + b.getCourt().getCourtId());\n\n }\n \n if(mem.getBookings().size()!=0)\n {\n Scanner inputID=new Scanner(System.in);\n System.out.println(\"Enter Booking ID: \");\n int input = inputID.nextInt();\n Iterator<Booking> itr = mem.getBookings().iterator();\n\n\n while(itr.hasNext())//delettion starts based on the ID\n { \n if(itr.next().hashCode() == input)\n {\n itr.remove();\n for(String str : mem.getSportsPlayed())\n {\n Sport sportObj = sportsClub.findSport(str);\n\n ArrayList<Court> itrCourt = sportObj.getCourtList();\n for(Court c : itrCourt)//finds the court\n {\n\n Iterator<Booking> itrBooking = c.getCourtBookings().iterator();\n while(itrBooking.hasNext())//helps to get the booking object\n {\n if(itrBooking.next().hashCode() == input)\n {\n itrBooking.remove();//removes the booking object\n System.out.println(\"Deleted Successfully\");\n }\n } \n } \n } \n }\n }\n }\n }\n\n\n\n }",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }",
"public void unsetAdministrativeGenderCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ADMINISTRATIVEGENDERCODE$10, 0);\n }\n }",
"public static void deletetea(String teaid2) {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"delete from teacher where ID = ? \");\n\t\t\tps.setString(1, teaid2);\n\t\t\tps.execute();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"教师记录删除成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t}catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据删除失败!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"public void unlockCashDrawer(String campusCode, String documentId);",
"public ModelElement removeSupplier(ModelElement supplier1)\n // -end- 335C0D7A02E4 remove_head327A646F00E6 \"Dependency::removeSupplier\"\n ;",
"public void removeByschoolId(long schoolId);",
"public boolean deleteTempDebt(String szDebterName, String szAmount, String szEntitledName,String szGroupName) {\n\t\tboolean bWasDeleted = false;\n\t\t// Check if user name exist just for the security\n\t\tif ((getterBL.isUserNameExist(szDebterName)) && (getterBL.isUserNameExist(szEntitledName))) {\n\n\t\t\t// check if was deleted\n\t\t\tbWasDeleted = setterDB.deleteTempGelt(new Gelt(getterBL.getIdByName(szDebterName),\n\t\t\t\t\tInteger.parseInt(szAmount), getterBL.getIdByName(szEntitledName), getterDB.getGroupIdByGroupName(szGroupName)));\n\t\t}\n\t\treturn bWasDeleted;\n\t}",
"public boolean deleteStudentRecord(String sEmail, String tEmail) {\n\t\treturn new Tutor().removeStudent(sEmail, tEmail);\n\t}",
"public void deleteEducation() {\n workerPropertiesController.deleteEducation(myEducationCollection.getRowData()); \n // usuniecie z bazy\n getUser().getEducationCollection().remove(myEducationCollection.getRowData()); \n // usuniecie z obiektu usera ktory mamy zapamietany w sesji\n }",
"void removeHadithBookNo(Object oldHadithBookNo);",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"int delRouteByIdSupplier(Long id_supplier);",
"public void removeFinArFundsInActionAppliedHistory(FinArFundsInActionAppliedHistory finArFundsInActionAppliedHistory);",
"public String deleteResearcher(int id);",
"public void delete_contact(String contact, SupplierCard supplier) {\n supplier_dao.delete_contact(contact, supplier);\n }",
"public static void deleteReminder()\n {\n System.out.print(\"Select event number reminder to delete: \");\n String evNum = CheckInput.getString();\n try\n {\n PreparedStatement pstmt = null;\n String str = \"delete from reminder where eventnumber = ?\";\n pstmt = conn.prepareStatement(str);\n pstmt.setString(1,evNum);\n pstmt.executeUpdate();\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }",
"public long removeEmployerFromDb(String employer){\n \tString selection = Employers.COLUMN_NAME_TITLE + \" LIKE ?\";\n \t\n \t// Specify arguments in placeholder order.\n \tString[] selectionArgs = { employer };\n \t\n \t// Issue SQL statement.\n \treturn db.delete(Employers.TABLE_NAME, selection, selectionArgs);\n\t}",
"@Override\r\n\tpublic String removeStudntFavouritetutor(int studentUserId, int tutorUserId) {\r\n\t\tFavouriteTutor favouriteTutor = daoFavouriteTutor.CheckFavouriteTutor(daoStudentProfileDetail.getStudentProfileByStudentId(studentUserId).getStudent_Profile_Id(),daoTutorProfileDetail.getTutorProfileDetailByUserId(tutorUserId).getTutor_Profile_Id());\r\n\t\tString saveStatus=\"alreadyRemoved\";\r\n\t\tif(favouriteTutor!=null){\r\n\t\tdaoFavouriteTutor.delete(favouriteTutor);\r\n\t\tsaveStatus=\"success\";\r\n\t\t}\r\n\t\treturn saveStatus;\r\n\t}",
"public void removeYieldByYearAndProducer(int year, String producer)\n throws Exceptions.DatabaseDeletionException, Exceptions.NoDatabaseRecordsRemovedException {\n Boolean recordsDeleted = false;\n CollectionReference colRef = dbClient.collection(\"producerYields\");\n try {\n ApiFuture<QuerySnapshot> future = colRef.whereEqualTo(\"producer\", producer).whereEqualTo(\"year\", year).get();\n List<QueryDocumentSnapshot> documents = future.get().getDocuments();\n for (QueryDocumentSnapshot doc : documents) {\n doc.getReference().delete();\n recordsDeleted = true;\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n throw new Exceptions.DatabaseDeletionException(\n \"ERROR failed to delete records with year \" + year + \" and producer \" + producer);\n }\n if (!recordsDeleted) {\n throw new Exceptions.NoDatabaseRecordsRemovedException(\n \"No records to be removed for year \" + year + \" and producer '\" + producer + \"'\");\n }\n }",
"@Override\n\tpublic void removeCampus(Campus campus) {\n\t\tEntityManager em=emf.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\ttry {\n\t\t\tem.remove(em.merge(campus));\n\t\t\tem.getTransaction().commit();\n\t\t} finally {\n\t\t\t// TODO: handle finally clause\n\t\t\tif (em.getTransaction().isActive()) {\n\t\t\t\tem.getTransaction().rollback();\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public void removeByapproval_status(java.lang.String approval_status);",
"public void processDeletion() {\n\n\t\tString iD = idIn.getText();\n\n\t\tfc = fitnessProg.getFitnessClassWithID(iD);\n\t\tint indexPos = 0;\n\t\t\n\t\tif (fc != null) {\n\t\t\t\n\t\t\tint startTime = fc.getStartTime();\n\t\t\tindexPos = startTime - 9;\n\t\t\tfitnessClass [indexPos] = null;\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tJOptionPane.showMessageDialog(null, \"There is no scheduled class with this ID\",\n\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t}",
"void removeHadithReferenceNo(Object oldHadithReferenceNo);",
"void deleteTrackerAssignedOld(final Integer id);",
"@FXML\n void removeSubmit() {\n generalTextArea.clear();\n\n RadioButton selectedRadioButton;\n String departRemove;\n try{\n selectedRadioButton = (RadioButton) departmentRemove.getSelectedToggle();\n departRemove = selectedRadioButton.getText();\n }catch(NullPointerException e){\n generalTextArea.appendText(\"Please select a department.\");\n return;\n }\n\n String date = dateRemoveText.getText();\n if(!isParse(date)){\n return;\n }\n String name = nameRemoveText.getText();\n if(name.length() == 0){\n generalTextArea.appendText(\"The name field was left blank. Please enter a name! \\n\");\n return;\n }\n int tempPay = 0;\n Profile newEmployeeProfile = profileData(name, departRemove, date);\n Employee employeeToBeRemoved = new Fulltime(newEmployeeProfile, tempPay);\n boolean wasEmployeeRemoved = company.remove(employeeToBeRemoved);\n if (wasEmployeeRemoved) {\n generalTextArea.appendText(\"Employee removed.\");\n }else if (company.getNumEmployee() == 0){\n generalTextArea.appendText(\"Employee database is empty.\");\n }else{\n generalTextArea.appendText(\"Employee does not exist.\");\n }\n clearEverything();\n }",
"public void actionPerformed(ActionEvent event) {\n selectedPeriodRemove=teacherPeriodsList.getSelectedIndex();\r\n selectedTeacherRemove=editTeachersList.getSelectedIndex(); \r\n \r\n //if there is a selected period\r\n if ((selectedPeriodRemove!=-1)&&(selectedTeacherRemove!=-1)){\r\n \r\n //Clearing books with that period and teacher\r\n for (int i = 0; i < bookInv.numBookSets(); i++){\r\n for (int j = 0; j < bookInv.getBookSet(i).getSize(); j++){\r\n Book temp = bookInv.getBookSet(i).getBook(j);\r\n String teacherName = teachers.get(selectedTeacherRemove).getName();\r\n if (temp.getTeacherName() != null){\r\n if (temp.getTeacherName().equals(teacherName)){\r\n bookInv.getBookSet(i).getBook(j).setInStockStatus(true);\r\n bookInv.getBookSet(i).getBook(j).setStudentName(null);\r\n bookInv.getBookSet(i).getBook(j).setTeacherName(null);\r\n bookInv.getBookSet(i).getBook(j).setPeriodNum(-1);\r\n }\r\n }\r\n }\r\n }\r\n //Saving inventory\r\n try{\r\n bookInv.saveInv();\r\n }catch(IOException e){}\r\n \r\n teachers.get(selectedTeacherRemove).removeSinglePeriodBooks(selectedPeriodRemove);\r\n teachers.get(selectedTeacherRemove).removePeriod(selectedPeriodRemove);\r\n teachers.get(selectedTeacherRemove).writePeriodList (false); \r\n \r\n //remove the period from the list model\r\n teacherPeriodsListModel.removeElementAt(selectedPeriodRemove);\r\n } else if (selectedTeacherRemove==-1){\r\n JLabel chooseTeacher = new JLabel( \"Please select a teacher to edit!\");\r\n chooseTeacher.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), chooseTeacher, \"Teacher Editor\", JOptionPane.ERROR_MESSAGE); \r\n } else {\r\n JLabel choosePeriod = new JLabel( \"Please select a period to remove!\");\r\n choosePeriod.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n JOptionPane.showMessageDialog(new JFrame(), choosePeriod, \"Teacher Editor\", JOptionPane.ERROR_MESSAGE); \r\n }\r\n teacherPeriodsList.clearSelection();\r\n }",
"public void unsetGPSAntennaDetailsID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(GPSANTENNADETAILSID$14);\r\n }\r\n }",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"@Override\r\n\tpublic Feedback removeFeedback(int feedbackId) {\n\t\tFeedback feedback= frepository.getOne(feedbackId);\r\n\t\tfrepository.delete(feedback);\r\n\t\treturn feedback;\r\n\t}",
"public CampaignEditPage deleteEntryInSeriesField()\r\n\t{\r\n\t\treadconfig();\r\n\t\t//counting the number of entry in the field\r\n\t\tint iCount = driver.findElements(By.xpath(library.getProperty(\"camp_edit_series_number\"))).size();\r\n\t\tSystem.out.println(\"**series: \"+iCount);\r\n\t\tfor (int i=0; i<iCount;i++)\r\n\t\t{\r\n\t\t\tdriver.findElement(By.xpath(library.getProperty(\"camp_edit_series\"))).sendKeys(Keys.BACK_SPACE);\r\n\t\t}\r\n\t\treturn new CampaignEditPage(driver);\r\n\t}",
"public int deleteSupplier(int id) {\n\t\t\t String deleteQuery=\"delete from registration_customer_data where id='\"+id+\"' \";\n\t\t\t return template.update(deleteQuery); \n\t\t}",
"void deleteTrackerAssigned(final Integer id);",
"public void removeCaregiverFromPatient(final Patient patient, final String caregiverId, final Context context){\n db.collection(Constants.PATIENTS_COLLECTION_FIELD).document(patient.getId()).get().addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n Patient dbPatient = documentSnapshot.toObject(Patient.class);\n if (dbPatient != null){\n dbPatient.removeCaregiver(caregiverId);\n updatePatientInDatabase(dbPatient);\n Toast.makeText(context, context.getString(R.string.removed_caregiver_message), Toast.LENGTH_LONG).show();\n }\n else {\n Toast.makeText(context, context.getString(R.string.unable_to_remove_caregiver_message), Toast.LENGTH_LONG).show();\n }\n }\n });\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public void delete(MakerBean maker) {\n\t\ttry {\r\n\r\n\t\t\tString query = \"update tb_maker set activeFlag = 2, updateBy=?, updateDate=getdate() Where maker_ID=?\";\r\n\t\t\t\r\n\t\t\tint updateRecord = jdbcTemplate.update(query,\r\n\t\t\t\t\tnew Object[] { \r\n\t\t\t\t\t\t\tmaker.getUpdateBy(),\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tmaker.getMaker_ID()\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(\"btnDelete\");\n\t\t\t\tint i = table.getSelectedRow();\n\t\t\t\tif (i >= 0) {\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + i);\n\t\t\t\t\tSystem.out.println(\"row-Delete\" + textSuppD.getText());\n\t\t\t\t\tint suppID = Integer.parseInt(textSuppD.getText().trim());\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\tsuppDAO.Delete(suppModel);\n\t\t\t\t\tdb.commit();\n\t\t\t\t\tdb.close();\n\n\t\t\t\t\tmodel.removeRow(i);\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}",
"void unsetGradeModelRefs();",
"private void deletePastEvents() {\n Date now = new Date(); //gets the current date\n ArrayList<Integer> listofEventIDS = eventManager.getListOfEventIDs(); //gets list of all eventIDs in the system\n //checks every eventID, and if its in the past, then deletes everything related to that event\n for (Integer eventID: listofEventIDS) {\n //if the event happened before right now, delete the event, and remove all attendees that are attending that event, organizer, speaker and free up the room.\n if (eventManager.getEvent(eventID).getTime().before(now)){\n ArrayList<String> peopleAttending = eventManager.getEvent(eventID).getAttendees(); //list of userid of all people attending\n\n for (String attendeeID: peopleAttending){\n //check if attendee is a organizer attending the event\n if (organizerManager.userExist(attendeeID)){\n organizerManager.removeEvent(eventID, attendeeID);\n }\n //if its not a organizer, it must be a attendee\n else {\n attendeeManager.removeEvent(eventID,attendeeID);\n }\n }\n //NOTE: THIS WORKS RIGHT NOW BECAUSE WE ONLY HAVE 1 SPEAKER, IN PHASE 2 WE WILL HAVE MULTIPLE SPEAKERS\n speakerManager.getSpeaker(eventManager.getEvent(eventID).getSpeakerID()).removeAssignEvent(eventID);\n String organizerOfThisEvent = eventManager.getEvent(eventID).getOrganizerID(); //gets the userid of the organizer of this event\n //in the organizer's list of events that he/she created, this event is removed.\n organizerManager.removeEvent(eventID, organizerOfThisEvent);\n //removes the event from the room. NOTE THIS IS NOT NECESSARY AS YOU WILL NEVER BE ABLE TO ASSIGN A ROOM IN THE PAST, BUT JUST AS A SAFETY MEASURE.\n roomManager.removeEventFromRoom(eventManager.getEvent(eventID).getLocation(), eventID, eventManager.getTime(eventID));\n // and finally removes the event object itself from the event manager.\n eventManager.removeEvent(eventID);\n }\n }\n }",
"@Override\r\n\t\t\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\t\t\tcheckID();\r\n\t\t\t\t\t}",
"public void supprimer(Etudiant t) {\n\t\tdao.supprimer(t);\r\n\t}",
"public void removeRenderer(Integer idGCodeProvider) throws GkException{\n\t\tRS274GCodeRenderer renderer = getRendererByGCodeProvider(idGCodeProvider);\n\t\texecutionService.removeExecutionListener(renderer);\n\t\tcacheRenderer.remove(renderer);\n\t\trenderer.destroy();\n\t}",
"public void setSuppliersId(Short suppliersId) {\n this.suppliersId = suppliersId;\n }",
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"private void deleteEntry() {\n String desiredId = idField.getText();\n Student student = studentHashMap.get(desiredId);\n\n try {\n if (student == null) {\n throw new NoMatchFoundException();\n } else if (this.checkInput(student) == false) {\n throw new InputMismatchException();\n } else if (studentHashMap.containsKey(desiredId)) {\n studentHashMap.remove(desiredId);\n this.displayStatusPanel(\n \"Success: \" + student.getName() + \" removed.\",\n \"Success\",\n JOptionPane.INFORMATION_MESSAGE\n );\n } else {\n throw new NoMatchFoundException();\n }\n } catch(NoMatchFoundException ex) {\n this.displayStatusPanel(\n \"Error: Entry not found.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n } catch(InputMismatchException e) {\n this.displayStatusPanel(\n \"Error: Information does not match data on file.\",\n \"Error\",\n JOptionPane.WARNING_MESSAGE\n );\n }\n }",
"public void deleteDataRequirement(final Field dReqToDelete) {\n\t\tif (_dataReq.contains(dReqToDelete)) {\n\t\t\t_dataReq.removeChild(dReqToDelete);\n\t\t}\n\t}",
"public void removePatientFromDB(String fname, String lname)\r\n {\r\n \t String sql1 = \"DELETE from PATIENTDATA where firstname='\"+fname+\"' AND lastname='\"+lname+\"';\";\r\n try {\r\n\t\tstmt.executeUpdate(sql1);\r\n\t} catch (SQLException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n }",
"public void deleteLastFeedback() {\n\t\tint index = this.getLastPlayIndex();\n\n\t\tif (this.guessList[index].getCode() == null) {\n\t\t\tthis.guessList[index] = null;\n\t\t} else {\n\t\t\tthis.guessList[index].setFeedback(null);\n\t\t}\n\n\t\t// Notify all observers\n\t\tsuper.dataChanged();\n\t}",
"void deleteApplicantById(Integer applicantId);",
"void removeDeprecatedBookNo(Object oldDeprecatedBookNo);",
"public static void deletestu(String stuid2) {\n\t\ttry {\n\t\t\tps = conn.prepareStatement(\"delete from student where ID = ? \");\n\t\t\tps.setString(1, stuid2);\n\t\t\tps.execute();\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"学生记录删除成功!\", \"提示消息\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t} catch (Exception e1){\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\tJOptionPane.showMessageDialog(null, \"数据删除失败!\", \"提示消息\", JOptionPane.ERROR_MESSAGE);\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"public void unlink__customers( String qualificationId, String fk, final VoidCallback callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n\n \n invokeStaticMethod(\"prototype.__unlink__customers\", hashMapObject, new Adapter.Callback() {\n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(String response) {\n callback.onSuccess();\n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n\n \n\n \n\n }",
"public void removeByDataPackId(long dataPackId);",
"public void delete(CostEngineering costEngineering) {\n cost_engineering_dao.delete(costEngineering);\n }"
]
| [
"0.64777386",
"0.61897093",
"0.60989356",
"0.57711643",
"0.5756496",
"0.5474804",
"0.5149506",
"0.51072556",
"0.500886",
"0.48839635",
"0.48798433",
"0.48675296",
"0.4866644",
"0.4804395",
"0.47973564",
"0.47936785",
"0.47727677",
"0.47539625",
"0.47511867",
"0.47491926",
"0.46983677",
"0.46974835",
"0.4680864",
"0.4670773",
"0.4651321",
"0.462672",
"0.4616781",
"0.46153498",
"0.4593417",
"0.45829314",
"0.45319209",
"0.45232418",
"0.45209408",
"0.4511219",
"0.45057017",
"0.45004722",
"0.44999757",
"0.4489313",
"0.4479859",
"0.44783932",
"0.4477007",
"0.44751352",
"0.44733",
"0.4468986",
"0.4468934",
"0.44423983",
"0.44391122",
"0.44391054",
"0.44383618",
"0.44380307",
"0.4434152",
"0.4433577",
"0.44237027",
"0.44233513",
"0.44209892",
"0.44176427",
"0.4405937",
"0.43969652",
"0.43916783",
"0.4391288",
"0.43907854",
"0.43845478",
"0.43767467",
"0.43641368",
"0.43527967",
"0.43441913",
"0.43440628",
"0.43394294",
"0.43323165",
"0.4330913",
"0.43248558",
"0.4319714",
"0.43185863",
"0.4308333",
"0.4301679",
"0.4299338",
"0.42992172",
"0.42984772",
"0.429521",
"0.42890742",
"0.4281627",
"0.42739087",
"0.42738226",
"0.42648047",
"0.42508677",
"0.42475268",
"0.4242282",
"0.4233921",
"0.42282966",
"0.4225335",
"0.4217472",
"0.42124915",
"0.4212084",
"0.42116228",
"0.42103416",
"0.42101312",
"0.42078736",
"0.42042142",
"0.41991848",
"0.41972914"
]
| 0.71629226 | 0 |
Returns the number of gdf tender submission detailses where tenderReferenceNumber = &63; and supplierId = &63;. | public static int countByGDFTenderRefeNoByUserId(
String tenderReferenceNumber, long supplierId) {
return getPersistence().countByGDFTenderRefeNoByUserId(
tenderReferenceNumber, supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int countByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().countByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static int countByGDFTendersByUserId(long supplierId) {\n\t\treturn getPersistence().countByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\n\tpublic int getNoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_supplier_id) FROM supplier_product\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"@Override\n\tpublic int NoofSupplier() {\n\t\tString sql=\"SELECT COUNT(supplier_id) FROM supplier\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"@Override\n\tpublic int getNoofSupplier(String supplierName) {\n\t\t String sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}",
"@Override\n\tpublic int getNoofProduct(String supplierName) {\n\t String sql=\"SELECT COUNT(h.product_product_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t return total;\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber, useFinderCache);\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"@Override\n\tpublic int getNoofQuantity(String supplierName) {\n\t\tString sql=\"SELECT SUM(h.quantity) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}",
"public static GDFTenderSubmissionDetails\n\t\t\tremoveByGDF_Tender_Reference_Number(String tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public int getCountExemplarsFree() {\r\n \t\tif (book == null) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \r\n \t\tint freeCount = 0;\r\n \t\tList<Exemplar> exemplars = exemplarMgr.findByBook(book);\r\n \t\t// list exemplars\r\n \t\tfor (Exemplar exemplar : exemplars) {\r\n \t\t\tif (!exemplar.getIsBorrowed()) {\r\n \t\t\t\tfreeCount++;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn freeCount;\r\n \t}",
"@Override\n\tpublic int getNoofSupplier(String supplyStartDate, String supplyLastDate) {\n\t\tString sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE buy_date>=?::Date and buy_date<=?::Date\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplyStartDate, supplyLastDate);\n\t\treturn total;\n\t}",
"public int getAssignmentCount() {\n\t\tCursor c = db.query(TABLE_TEACHER_ASSIGNMENT,\n\t\t\t\tnew String[] { KEY_ROW_ID }, null, null, null, null, null);\n\t\treturn c == null ? 0 : c.getCount();\n\t}",
"public int numSubmissions() {\n int counter = 0;\n\n for (int i = 0; i < studentList.size(); i++) {\n // number of submits for each student in student list is accumulated\n counter += (studentList.get(i)).getNumberSubmits();\n }\n\n return counter;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public NM getNumberOfTPSTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(39, 0);\r\n\t\treturn retVal;\r\n }",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"int getEducationsCount();",
"@Override\n\tpublic int getNoofProduct() {\n\t\tString sql=\"SELECT COUNT(product_product_id) FROM supplier_product\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}",
"public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }",
"public int getCountExemplarsBorrowed() {\r\n \t\tif (book == null) {\r\n \t\t\treturn 0;\r\n \t\t}\r\n \r\n \t\tint borrowedCount = 0;\r\n \t\tList<Exemplar> exemplars = exemplarMgr.findByBook(book);\r\n \t\t// list exemplars\r\n \t\tfor (Exemplar exemplar : exemplars) {\r\n \t\t\tif (exemplar.getIsBorrowed()) {\r\n \t\t\t\tborrowedCount++;\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn borrowedCount;\r\n \t}",
"private int getRewardCount(String confirmationNumber) {\n return jdbcTemplate\n .queryForInt(\"select count(*) from T_REWARD where CONFIRMATION_NUMBER = ?\", confirmationNumber);\n }",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public int getNumberSubmissions() {\n\t\treturn submissions.size();\n\t}",
"int getRealtorNumCnt(RealtorDTO realtorDTO);",
"private int getNum(EngClass ec) {\n\t\treturn engClassService.getStuNum(ec);\n\t}",
"int getStudentResponseCount();",
"public NM getPsl39_NumberOfTPSTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(39, 0);\r\n\t\treturn retVal;\r\n }",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"private int getPersonTypeCountFromPassengers(final Collection<Passenger> passengers, final PersonType type)\r\n {\r\n final Set<PersonType> adultType = EnumSet.of(type);\r\n return PassengerUtils.getPersonTypeCountFromPassengers(passengers, adultType);\r\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"ArrayList<Relation> attributeCountLT4ForPropertiesbySupplierId(String supplierId);",
"@Override\n public int getNbHarvesting(String harvesterName)\n {\n return 0;\n }",
"public int obtenerNumeroFuentes() {\n\t\tint n = 0;\n\n\t\ttry {\n\n\t\t\trs = stmt\n\t\t\t\t\t.executeQuery(\"SELECT COUNT(IDFUENTE) AS FUENTES FROM FUENTE\");\n\t\t\trs.next();\n\n\t\t\tn = rs.getInt(\"FUENTES\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"No es posible recuperar el numero de fuentes\");\n\n\t\t}\n\n\t\treturn n;\n\t}",
"public int AssignedCount() {\n \t\treturn jobsent.size();\n \t}",
"@Override\n\tpublic int getCountByGldDTLNO(Map<String, String> params) {\n\t\t\n\t\treturn queryForInt(\"Tkwh.getNUM\", params);\n\t}",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"protected void getRecipientNumber(TargetForm aForm, HttpServletRequest req) {\n\t\tTargetDao targetDao = (TargetDao) getBean(\"TargetDao\");\n\t\tTarget target = (Target) getBean(\"Target\");\n\t\tRecipientDao recipientDao = (RecipientDao) getBean(\"RecipientDao\");\n\t\t\n\t\ttarget = targetDao.getTarget(aForm.getTargetID(), aForm.getCompanyID(req));\n\t\tint numOfRecipients = recipientDao.sumOfRecipients(aForm.getCompanyID(req), target.getTargetSQL());\n\t\t\n\t\taForm.setNumOfRecipients(numOfRecipients);\n\t\t\n\t}",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public int getCount() {\n\t\t\tcantidadGrupos = extras.getInt(\"cantidadGrupos\");\n\t\t\treturn cantidadGrupos;\n\t\t}",
"int getStudentCount();",
"int getWorkAreaCount(String dept, Long workArea);",
"int getNumberOfArtillery();",
"String getSupplierID();",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public long numPostingEntries();",
"public int getNumberOfStudents(String stream,String section){\n int number=0;\n SQLiteDatabase sqLiteDatabase=helper.getReadableDatabase();\n String query=\"SELECT \"+Constant.UID+\" FROM \"+Constant.TEACHER_EMAIL_VALUE+\" WHERE \"\n +Constant._STREAM+\" = \"+stream+\" AND \"+\n Constant.SECTION+\" = \"+section;\n Cursor cursor=sqLiteDatabase.rawQuery(query,null);\n while (cursor.moveToNext()){\n number++;\n }\n cursor.close();\n return number;\n\n }",
"static long reviewCount(Context context) {\n SQLiteDatabase db = ReviewsDatabaseHelper.getDatabase(context);\n return DatabaseUtils.queryNumEntries(db, GOOGLE_PLAY_REVIEW);\n }",
"public int getNumberOfActivitiesByPoster(Identity posterIdentity);",
"@Override\n\tpublic int countByemailReqBfcInfo(boolean inStage, String email) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_EMAILREQBFCINFO;\n\n\t\tObject[] finderArgs = new Object[] { inStage, email };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_LOCALRICHINFO_WHERE);\n\n\t\t\tquery.append(_FINDER_COLUMN_EMAILREQBFCINFO_INSTAGE_2);\n\n\t\t\tboolean bindEmail = false;\n\n\t\t\tif (email == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_EMAILREQBFCINFO_EMAIL_1);\n\t\t\t}\n\t\t\telse if (email.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_EMAILREQBFCINFO_EMAIL_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindEmail = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_EMAILREQBFCINFO_EMAIL_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tqPos.add(inStage);\n\n\t\t\t\tif (bindEmail) {\n\t\t\t\t\tqPos.add(email);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Override\r\n\tpublic int GenderCount(String gender) {\n\t\tint count = 0;\r\n\t\tfor (Map.Entry<String, MemberBean> entry : map.entrySet()) {\r\n\t\t\tif(entry.getValue().getGender().equals(gender)){\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public int qureyNumOfInspectors() {\r\n\t\tif (DBConnection.conn == null) {\r\n\t\t\tDBConnection.openConn();\r\n\t\t}\r\n\t\tint sum = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"select count(*) from InspectionPersonnel\";\r\n\t\t\tps = DBConnection.conn.prepareStatement(sql);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tsum = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tDBConnection.closeResultSet(rs);\r\n\t\t\tDBConnection.closeStatement(ps);\r\n\t\t\tDBConnection.closeConn();\r\n\t\t\treturn sum;\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"int getFundsCount();",
"int getFundsCount();",
"public void getSeedEntryCount(String mVarietyMstID,\n String mGradeId,String CurrentDate,\n String HeapNo,\n\n final HttpResponseListener<JSONObject> hhtpResponseListener) {\n CurrentDate = AllUtils.getFormattedDateForSql(CurrentDate);\n String url = ConstantPath.BASE_URL_NEW + \"Mahacott/CallTrackingRequest?action=getSeedEntryCount&CommodityMstId=2\"\n + \"&CommoVarietyMstId=\" + mVarietyMstID\n + \"&Grade=\" + mGradeId\n + \"&PressingDate=\" +CurrentDate\n + \"&HeapNo=\" + HeapNo + \"\";\n\n System.out.println(\"URL==\" + url);\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(\n Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n System.out.println(\"GET SEED STOCK QTY RESPONSE: \" + response.toString());\n hhtpResponseListener.getResponse(response);\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO Auto-generated method stub\n error.printStackTrace();\n }\n });\n\n RequestConnection.getRequestConnection(context).addRequestQue(jsonObjectRequest);\n\n }",
"public int getXrefCount() {\n String countQuery = \"SELECT * FROM \" + XREF_TABLE;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(countQuery, null);\n int xrefCount = cursor.getCount();\n cursor.close();\n\n return xrefCount;\n }",
"@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((supplierID == null) ? 0 : supplierID.hashCode());\r\n\t\treturn result;\r\n\t}",
"public int numSubmissions(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 name is invalid or student does not exist\n if (name == null || name == \"\" || exists == -1) {\n return -1;\n } else {\n // student does exists, so returns number of submissions for student\n return (studentList.get(exists)).getNumberSubmits();\n }\n }",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"@Query(\"\"\"\n SELECT COUNT (DISTINCT p) FROM ProgrammingExerciseStudentParticipation p\n JOIN p.submissions s\n WHERE p.exercise.id = :#{#exerciseId}\n AND s.submitted = TRUE\n AND (s.type <> 'ILLEGAL' OR s.type IS NULL)\n \"\"\")\n long countSubmissionsByExerciseIdSubmitted(@Param(\"exerciseId\") Long exerciseId);",
"int getVulnerabilityReportsCount();",
"private int getEducationalCount(){\n int count = 0;\n\n String whereClause = DbHelper.IS_EDUCATIONAL + \" = ?\";\n String[] whereArgs = new String[]{String.valueOf(true)};\n\n Cursor cursor = mDbHelper.getReadableDatabase().query(DbHelper.TABLE_NAME, null, whereClause, whereArgs, null, null, null);\n\n while(cursor.moveToNext()){\n count++;\n }\n\n return count;\n }",
"public static int getTotalTicketsResolved(int technicianId) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint couunt = 0;\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tString query = \"SELECT Count(technician_id) FROM alerts where technician_id= ? and status= 3;\";\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, technicianId);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcouunt = rs.getInt(1);\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 couunt;\r\n\t}",
"public String getCount() {\r\n \t\r\n \tBoolean anyAges = Boolean.FALSE;\r\n \tBoolean anyAssayTypes = Boolean.FALSE;\r\n \tint count = 0;\r\n \t\r\n \tfor (String age: ages) {\r\n \t\tif (age.endsWith(\"ANY\")) {\r\n \t\t\tanyAges = Boolean.TRUE;\r\n \t\t}\r\n \t}\r\n \t\r\n \tfor (String type: assayTypes) {\r\n \t\tif (type.equals(\"ANY\")) {\r\n \t\t\tanyAssayTypes = Boolean.TRUE;\r\n \t\t}\r\n \t}\r\n \t\r\n \t// No Restrictions on Ages or AssayTypes, count everything\r\n \tif (anyAssayTypes && anyAges) {\r\n \tcount = record.getPairs().size(); \t\t\r\n \t}\r\n \t\r\n \t// There are restrictions on ages only, iterate and count appropriately.\r\n \t\r\n \telse if (anyAssayTypes) {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String age: ages) {\r\n \t\t\t\tif (pair.getAge().equals(age)) {\r\n \t\t\t\t\tcount ++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \t// There are restrictions on assayTypes only, iterate and count appropriately.\r\n \t\r\n \telse if (anyAges) {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String type: assayTypes) {\r\n \t\t\t\tif (pair.getAssayType().equals(type)) {\r\n \t\t\t\t\tcount ++;\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \telse {\r\n \t\tfor (GxdLitAssayTypeAgePair pair: record.getPairs()) {\r\n \t\t\tfor (String type: assayTypes) {\r\n \t\t\t\tfor (String age: ages) {\r\n \t\t\t\t\tif (pair.getAssayType().equals(type) && pair.getAge().equals(age)) {\r\n \t\t\t\t\t\tcount ++;\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}\r\n\r\n \treturn \"\" + count;\r\n \t\r\n }",
"int getDetailsCount();",
"int getDetailsCount();",
"@Override\r\n\tpublic int[] getTicketCount() {\n\t\tint[] result = new int[2];\r\n\t\tList<FeeRecord> card = feeRecordDao.getCardRecords();\r\n\t\tList<FeeRecord> cash = feeRecordDao.getCashRecords();\r\n\t\tresult[0] = card.size();\r\n\t\tresult[1] = cash.size();\r\n\t\treturn result;\r\n\t}",
"@Override\n\tpublic int getNoofProduct(String supplyStartDate, String supplyLastDate) {\n\t\tString sql=\"SELECT COUNT(h.product_product_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE buy_date>=?::Date and buy_date<=?::Date\";\n\t\tint total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplyStartDate,supplyLastDate);\n\t\treturn total;\n\t}",
"int countByExample(PcQualificationInfoExample example);",
"public int getTotalPassengers() {\n return totalPassengers;\n }",
"public int numberOfFemale(){\n int female=0;\n for (int i=0;i<kangaroosInPoint.size();i++){\n if(kangaroosInPoint.get(i).getGender()=='F'){\n female++;\n } \n }\n return female;\n }",
"public String method_1457() {\r\n return String.format(\"count=%d\", new Object[]{Integer.valueOf(this.field_1677.size())});\r\n }",
"public int getNumStudents()\n\t{\n\t\treturn numStudents;\n\t}",
"public int getNumGruppoPacchetti();",
"public static GDFTenderSubmissionDetails findByGDF_Tender_Reference_Number(\n\t\t\tString tenderReferenceNumber)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public java.lang.String getNum_ant() throws java.rmi.RemoteException;",
"public int getDepartedPassengerCount() {\n\t\tint total = 0;\n\t\tfor (Taxi taxi : taxis) {\n\t\t\ttotal += taxi.getTotalNrOfPassengers();\n\t\t}\n\t\treturn total;\n\t}",
"public int getNrDuengerVorhanden(){\r\n\t\treturn this.modelData.getPresentFertiliser().size();\r\n\t}",
"@Override\r\n\tpublic int getGeunTaeCnt(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeCnt\",params);\r\n\t}",
"public static GDFTenderSubmissionDetails remove(long tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().remove(tenderSubRefID);\n\t}",
"public Integer getRt_thanks_count() {\n return rt_thanks_count;\n }",
"int getRefsCount();",
"@Override\n\tpublic Integer getTeacherForCount() {\n\t\treturn teacherDAO.getTeacherForCount();\n\t}",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"@Override\r\n\tpublic int getReportingUrlCreationInfoCount(Object obj){\n\t\ttry {\r\n\t\t\tMap<?, ?> map = (HashMap) obj;\r\n\t\t\tLong count = null;\r\n\t\t\tif (map != null && map.get(\"mapKey\") != null){\r\n\t\t\t\t// Condition Codes\r\n\t\t\t\tcount = (Long) getSession().createQuery(\"select count(*) from ReportingUrlCreation ruc\" +\r\n\t\t\t\t\t\t\" where ruc.status = 'A' and ruc.entityKey like :entityKey\")\r\n\t\t\t\t\t\t.setParameter(\"entityKey\", \"%\" + map.get(\"mapKey\") + \"%\")\r\n\t\t\t\t\t\t.uniqueResult();\r\n\t\t\t} else {\r\n\t\t\t\tcount = (Long) getSession().createQuery(\"select count(*) from ReportingUrlCreation ruc\" +\r\n\t\t\t\t\t\t\" where ruc.status = 'A' \")\r\n\t\t\t\t\t\t.uniqueResult();\r\n\t\t\t}\r\n\t\t\treturn count.intValue();\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tre.printStackTrace();\r\n\t\t\tthrow re;\r\n\t\t}\r\n\t}",
"int getUserQuestJobsCount();",
"public int getEnergy(){\n\t\tEnumeration students = table.keys(); \n\t\tint totalEnergy=0;\n\t\tHashtable<String,String> assignedProjects= new Hashtable<String,String>();\n\t\tint totalpenalties =0;\n\t while(students.hasMoreElements()) {\n\t CandidateAssignment cand = table.get((String) students.nextElement()); \n\t totalEnergy+=cand.getEnergy();\n\t \n\t String project = cand.getAssignedProject(); \n\t if(!assignedProjects.containsKey(project)){\n\t \t assignedProjects.put(project, project);\n\t }else{\n\t \t totalpenalties+=penalty; \n\t }\n\t }\n\t\treturn totalEnergy+ totalpenalties;\n\t}"
]
| [
"0.68265224",
"0.65537393",
"0.6365976",
"0.62393963",
"0.6096539",
"0.5834549",
"0.5725542",
"0.5722586",
"0.54204035",
"0.538925",
"0.53540313",
"0.5203225",
"0.51318735",
"0.51050055",
"0.5087125",
"0.50629324",
"0.50490713",
"0.50069237",
"0.5002655",
"0.49433088",
"0.4904209",
"0.4858194",
"0.48183978",
"0.4804768",
"0.48023129",
"0.47954077",
"0.4790638",
"0.47485992",
"0.47375876",
"0.4711353",
"0.4696573",
"0.46842048",
"0.46705097",
"0.46437842",
"0.46245182",
"0.46180362",
"0.46179765",
"0.46052143",
"0.4598063",
"0.4592395",
"0.45883545",
"0.45848444",
"0.45836678",
"0.45833597",
"0.45718285",
"0.45640445",
"0.45598617",
"0.45500702",
"0.45500654",
"0.45231333",
"0.4522614",
"0.45175815",
"0.45162123",
"0.45005453",
"0.44984868",
"0.44975227",
"0.44959065",
"0.44945115",
"0.44835946",
"0.44767657",
"0.44675732",
"0.44658068",
"0.44628394",
"0.4456057",
"0.44525945",
"0.44498143",
"0.44498143",
"0.4446099",
"0.44457012",
"0.44448197",
"0.4440819",
"0.44359076",
"0.44332692",
"0.44277194",
"0.4418303",
"0.44128242",
"0.44115624",
"0.44059485",
"0.44059485",
"0.43956774",
"0.43854648",
"0.43760318",
"0.43669093",
"0.43662962",
"0.4359559",
"0.43509027",
"0.4346255",
"0.43455064",
"0.43449822",
"0.43423826",
"0.43403602",
"0.43397555",
"0.43360412",
"0.43281204",
"0.43253174",
"0.43219504",
"0.4317865",
"0.4316464",
"0.43142483",
"0.43130663"
]
| 0.7576979 | 0 |
Returns all the gdf tender submission detailses where supplierId = &63;. | public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(
long supplierId) {
return getPersistence().findByGDFTendersByUserId(supplierId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public String supplierList(SupplierDetails s);",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }",
"public Integer getSupplierid() {\r\n return supplierid;\r\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}",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"public Opportunities[] findWhereSupplierIdEquals(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ? ORDER BY supplier_id\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public Map getAllBillBySuppliers1(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers1(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\t\t\tbean.setBillNo(o[0].toString());\r\n\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public HashMap<Integer, Float> getProductsForSupplier(int supplierId) {\n\t\tHashMap<Integer, Float> map = new HashMap<Integer, Float>();\n\t\tString sql = \"select product_id, offer_price from supplier_products where supplier_id = ? order by product_id asc\";\n\t\ttry (Connection connection = DriverManager.getConnection(URL, user, password);\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(sql)) {\n\t\t\tstatement.setInt(1, supplierId);\n\t\t\tResultSet res = statement.executeQuery();\n\n\t\t\twhile (res.next()) {\n\t\t\t\tmap.put(res.getInt(1), res.getFloat(2));\n\t\t\t}\n\t\t\treturn map;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Couldn't find a supplier with the id: \" + supplierId);\n\t\t}\n\t\treturn null;\n\t}",
"public Map getAllBillBySuppliers(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++)\r\n\t\t{\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\r\n\t\t\tString pendingBal = o[2].toString();\r\n\t\t\tif (pendingBal.equals(\"0\")) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbean.setBillNo(o[0].toString());\r\n\t\t\t\t//bean.setItemName(o[0].toString());\r\n\t\t\t\tbean.setSize(o[1].toString());\r\n\t\t\t\tbean.setBarcode(o[2].toString());\t\t\t\r\n\t\t\t}\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static int countByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().countByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }",
"public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }",
"@Override\n\tpublic SupplierView getSupplierBySupplierIdAndProductId(long supplierId, long productId) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,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 WHERE supplier_id=? and product_id=?\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId, productId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public static int countByGDFTendersByUserId(long supplierId) {\n\t\treturn getPersistence().countByGDFTendersByUserId(supplierId);\n\t}",
"String getSupplierID();",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}",
"List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public ShortlistedSuppliersTable getShortlistedSupplierData(JSONObject shortlistedSupplier, String shortlistedSupplierId) {\n try {\r\n if ( shortlistedSupplier != null) {\r\n\r\n String proposalId = shortlistedSupplier.getString(\"proposal_id\");\r\n String supplierId = shortlistedSupplier.getString(\"supplier_id\");\r\n String supplierContentTypeId = shortlistedSupplier.getString(\"content_type_id\");\r\n //String phase = shortlistedSupplier.getString(\"phase\");\r\n String phase = \"1\"; // TODO: 23/2/17 hardcoded. remove it\r\n String lastModified = getCurrentDate();\r\n return new ShortlistedSuppliersTable(shortlistedSupplierId, proposalId, supplierId, supplierContentTypeId, phase, lastModified);\r\n }\r\n }\r\n catch (Exception e){\r\n Log.d(\"getShortlistSuppData\", e.getMessage());\r\n }\r\n return null;\r\n }",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"@Override\n\tpublic List<SupplierView> getSupplierByName(String supplierName) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,h.buy_date,h.supplier_unique_id,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 WHERE supplier_name=?\";\n\t\tList<Map<String, Object>> row=getJdbcTemplate().queryForList(sql, supplierName);\n\t\tList<SupplierView> supplier_view=new ArrayList<SupplierView>();\n\t\tfor(Map<String, Object> rows:row)\n\t\t{\n\t\t\tSupplierView obj=new SupplierView();\n\t\t\tobj.setSupplierId((int)rows.get(\"supplier_id\"));\n\t\t\tobj.setSupplierName((String)rows.get(\"supplier_name\"));\n\t\t\tobj.setSupplierType((String)rows.get(\"supplier_type\"));\n\t\t\tobj.setImage((String)rows.get(\"image\"));\n\t\t\tobj.setPermanentAddress((String)rows.get(\"permanent_address\"));\n\t\t\tobj.setTemporaryAddress((String)rows.get(\"temporary_address\"));\n\t\t\tobj.setQuantity((int)rows.get(\"quantity\"));\n obj.setCost((double)rows.get(\"cost\"));\n obj.setSupplierUniqueId((int)rows.get(\"supplier_unique_id\"));\n obj.setBuyDate((Date)rows.get(\"buy_date\"));\n obj.setProductId((long)rows.get(\"product_id\"));\n obj.setProductName((String)rows.get(\"product_name\"));\n obj.setUsername((String) rows.get(\"username\"));\n supplier_view.add(obj);\n\t\t}\n\t\treturn supplier_view;\n\t}",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"public Map getEditSupplier(Long suppilerId) {\r\n\r\n\t\tSupplierDetailDao dao1 = new SupplierDetailDao();\r\n\t\tList catList = dao1.getEditSupplier1(suppilerId);\r\n\t\t\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < catList.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) catList.get(i);\r\n\t\t\tSupplierEditBean bean = new SupplierEditBean();\r\n\t\t\tbean.setAddress((String) o[0]);\r\n\t\t\tbean.setCity((String) o[1]);\r\n\t\t\tbean.setContactPerson((String) o[2]);\r\n\t\t\tbean.setPin((Long) o[3]);\r\n\t\t\tbean.setEmail((String) o[4]);\r\n\t\t\tbean.setMobileno((Long) o[5]);\r\n\t\t\tbean.setPanNo((String) o[6]);\r\n\t\t\tbean.setSupplierName((String) o[7]);\r\n\t\t\tbean.setSuppCode((String) o[8]);\r\n\t\t\tbean.setTaxType((String) o[9]);\r\n\r\n\t\t\tmap.put(bean.getSupplierName(), bean);\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"public void showSupplierList(){\n\t\tfor(int i = 0; i<supplierList.size();i++) {\n\t\t\tSystem.out.println(supplierList.get(i).getSupID()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getCompanyName()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getAddress()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getSaleRep());\n\t\t}\n\t}",
"public void setSuppliersId(Short suppliersId) {\n this.suppliersId = suppliersId;\n }",
"@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\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}",
"public ArrayList<GroupSupplier> getGroupSupplierList(){\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tArrayList<GroupSupplier> list = new ArrayList<GroupSupplier>();\n\t\ttry{\n\t\t\tCriteria cr = session.createCriteria(TblGroupSupplier.class);\n\t\t\tList<TblGroupSupplier> groupsuppliers = cr.list();\n\t\t\tif (groupsuppliers.size() > 0){\n\t\t\t\tfor (Iterator<TblGroupSupplier> iterator = groupsuppliers.iterator(); iterator.hasNext();){\n\t\t\t\t\tTblGroupSupplier tblgroupsupplier = iterator.next();\n\t\t\t\t\tGroupSupplier groupsupplier = new GroupSupplier();\n\t\t\t\t\tgroupsupplier.convertFromTable(tblgroupsupplier);\n\t\t\t\t\tlist.add(groupsupplier);\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<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierIdAndStatusCode(long supplierId);",
"List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);",
"@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }",
"public List<Supplier> getSuppliers(){ \n\t List<Supplier> list=new ArrayList<Supplier>(); \n\t list=template.loadAll(Supplier.class); \n\t return list; \n\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\t\ttry{\n\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\teditSupplierName.setText(supplier.getName());\n\t\t\t\t\t\t\teditSupplierAddress.setText(supplier.getAddress());\n\t\t\t\t\t\t\teditSupplierEmail.setText(supplier.getEmail());\n\t\t\t\t\t\t\teditSupplierPhone.setText(Integer.toString(supplier.getPhone()));\n\t\t\t\t\t\t\teditSupplierDelivery.setText(Integer.toString(supplier.getDaysToDeliver()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public void setSuppliersInforId(String suppliersInforId) {\n this.suppliersInforId = suppliersInforId;\n }",
"public List getEpIndepot(String suppliers) {\n\t\treturn getHibernateTemplate().find(\" from DIndepot a where a.SupplierId in \"+suppliers+\"\");\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"@Query(value = \"SELECT * \" +\n \"FROM suppliers as s\\n\" +\n \"inner JOIN parts p on s.id = p.supplier_id\\n\" +\n \"WHERE is_importer = false\\n\" +\n \"GROUP BY s.id;\",nativeQuery = true)\n List<Supplier> findAllThatDoNotImport();",
"SupplierInfo selectByPrimaryKey(Long id);",
"public List<SupplierEntity> getSuppliersExclType(String typeName) {\n\n List<SupplierEntity> suppliers = new ArrayList<>();\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n\n Criteria criteria = session.createCriteria(SupplierEntity.class);\n criteria.createCriteria(\"supplierType\").add(Restrictions.ne(\"name\", typeName));\n\n // Language lang = (Language)super.findByCriteria(criteria).get(0);\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = criteria.list();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n log.error(e.getStackTrace());\n\n } finally {\n session.close();\n }\n\n return suppliers;\n\n }",
"@Transactional\n\tpublic List<Supplier> list() {\n\t\tString hql=\"from Supplier\";\n\t\tQuery query=sessionFactory.getCurrentSession().createQuery(hql);\n\t\t\n\t\treturn query.list();\n\t}",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public static SupplierEntityExpert getSupplierEntityExpert(OADBTransaction txn)\n { \n return (SupplierEntityExpert)txn.getExpert(SupplierEOImpl.getDefinitionObject()); \n \n }",
"@Override\n public List<Object> getGroupMember(String name, int supplierId) {\n return null;\n }",
"public List<TblPurchaseOrderDetail>getAllDataPurchaseOrderDetail(TblSupplier supplier,TblPurchaseOrder po,RefPurchaseOrderStatus poStatus,TblItem item,Date startDate,Date endDate,TblPurchaseRequest mr);",
"public String getSupplier() {\n return supplier;\n }",
"public List<SupplierEntity> getSuppliersByType(String typeName) {\n\n List<SupplierEntity> suppliers = new ArrayList<>();\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n\n Criteria criteria = session.createCriteria(SupplierEntity.class);\n criteria.createCriteria(\"supplierType\").add(Restrictions.eq(\"name\", typeName));\n\n // Language lang = (Language)super.findByCriteria(criteria).get(0);\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = criteria.list();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n log.error(e.getStackTrace());\n\n } finally {\n session.close();\n }\n\n return suppliers;\n\n }",
"@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"@Override\r\n\tpublic List<Address> getAddressBySupplierId(int supplierId, int companyId) {\n\t\treturn getAddressDAO().getAddressBySupplierId(supplierId,companyId);\r\n\t}",
"List<EcsSupplierRebate> selectAll();",
"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 }",
"public void actionPerformed(ActionEvent e){\n\t\t\t\ttry{\n\t\t\t\t\tif(suppliers.size() >= 1){\n\t\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(suppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tsupplierJTextArea.setText(\" Supplier Id: \"+supplier.getId()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Name: \"+supplier.getName()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Address: \"+supplier.getAddress()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Email: \"+supplier.getEmail()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Phone: \"+supplier.getPhone()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Delivery Time: \"+supplier.getDaysToDeliver());\n\t\t\t\t\t\t\t\tsuppIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Suppliers Found\");\n\t\t\t\t\t}\n\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"List<Route> getAllRouteByIdSupplier(Long id_supplier);",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Supplierdetails)) {\n return false;\n }\n Supplierdetails other = (Supplierdetails) object;\n if ((this.supplierid == null && other.supplierid != null) || (this.supplierid != null && !this.supplierid.equals(other.supplierid))) {\n return false;\n }\n return true;\n }",
"@Override\r\n\tpublic List<Supplies> checkbythreed(Supplies supplies) {\n\t\treturn suppliesDao.checkbythreed(supplies);\r\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"@Override\n\tpublic List<SupplierView> getSupplierByBuyDate(String supplyStartDate, String supplyLastDate) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type, s.image, s.permanent_address, s.temporary_address, h.quantity,h.cost,h.supplier_unique_id,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 WHERE buy_date>=?::DATE and buy_date<=?::DATE \";\n\t List<Map<String, Object>> row=getJdbcTemplate().queryForList(sql, supplyStartDate, supplyLastDate);\n\t List<SupplierView> supplier_view=new ArrayList<SupplierView>();\n\t for(Map<String, Object> rows:row)\n\t {\n\t \tSupplierView obj=new SupplierView();\n\t \tobj.setSupplierId((int)rows.get(\"supplier_id\"));\n\t \tSystem.out.println(obj.getSupplierId());\n\t \tobj.setSupplierName((String)rows.get(\"supplier_name\"));\n\t \tSystem.out.println(obj.getSupplierName());\n\t \tobj.setSupplierType((String)rows.get(\"supplier_type\"));\n\t obj.setImage((String)rows.get(\"image\"));\n\t obj.setPermanentAddress((String)rows.get(\"permanent_address\"));\n\t obj.setTemporaryAddress((String)rows.get(\"temporary_address\"));\n\t obj.setQuantity((int)rows.get(\"quantity\"));\n\t obj.setCost((double)rows.get(\"cost\"));\n\t obj.setBuyDate((Date)rows.get(\"buy_date\"));\n\t obj.setSupplierUniqueId((Integer) rows.get(\"supplier_unique_id\"));\n\t obj.setProductId((long)rows.get(\"product_id\"));\n\t obj.setProductName((String)rows.get(\"product_name\"));\n\t obj.setUsername((String) rows.get(\"username\"));\n\t supplier_view.add(obj);\n\t }\n\t return supplier_view;\n\t}",
"@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((supplierID == null) ? 0 : supplierID.hashCode());\r\n\t\treturn result;\r\n\t}",
"public List<TblImagesubmission> getImageSubmissions(String submissionIdStr) {\n\t\tint submissionId = Integer.parseInt(submissionIdStr);\n\t\tList<TblImagesubmission> imagesList = imagesubmissionRepo.findImagesBySubmissionId(submissionId);\n\t\treturn imagesList;\n\t}",
"@Override\n\t\tpublic SupplierThreadLocalType[] getSupplierThreadLocalTypes() {\n\t\t\treturn this.supplierThreadLocalTypes\n\t\t\t\t\t.toArray(new SupplierThreadLocalType[this.supplierThreadLocalTypes.size()]);\n\t\t}",
"@GetMapping(\"task/{taskId}/reviewersBySF\")\n\tpublic ResponseEntity<Collection<ReviewerDTO>> getReviewersBySF(@PathVariable String taskId) {\n\t\tTaskDto task = rspe.findTask(taskId);\n\t\tString magazine = (String) rspe.getVariable(task.getProcessInstanceId(), \"magazine\");\n\t\tString naucnaOblast = (String) rspe.getVariable(task.getProcessInstanceId(), \"nsucnaOblast\");\n\t\tString paper = (String) rspe.getVariable(task.getProcessInstanceId(), \"filename\");\n\n\t\tCollection<ReviewerDTO> reviewers = appTaskService.getAllReviewersBySF(magazine, naucnaOblast);\n\t\tCollection<ReviewerDTO> reviewersData = new ArrayList<ReviewerDTO>();\n\n\t\tCollection<Review> reviews = reviewService.getByPaper(paper);\n\t\tfor(ReviewerDTO rew : reviewers) {\n\t\t\tboolean flag = false;\n\t\t\tfor(Review review : reviews) {\n\t\t\t\tSystem.out.println(\"evo me odje6666666666666666666666666666666 \"+rew.getUsername()+\" \"+review.getReviewer());\n\t\t\t\tif(rew.getUsername().equals(review.getReviewer())) {\n\t\t\t\t\tSystem.out.println(\"evo me odje6666666666666666666666666666666\");\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(!flag && !reviewersData.contains(rew)) {\n\t\t\t\t\n\t\t\t\treviewersData.add(rew);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"ispisujem task id: \" + task.getId());\n\t\treturn ResponseEntity.ok(reviewersData);\n\t}",
"public void setSupplierNum(String supplierNum) {\n this.supplierNum = supplierNum == null ? null : supplierNum.trim();\n }",
"@Override\n\tpublic int getNoofSupplier(String supplierName) {\n\t\t String sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public Producer getProducerByProducerIDFetchingAddressFetchingProducts(String producerID);",
"public List getAllUnPaidBillAmount(HttpServletRequest request, HttpServletResponse response) {\n\r\n\t\tString supplierId = request.getParameter(\"supplier\");\r\n\r\n\t\tMap<Long, GetSupplierDetails> map = new HashMap<Long, GetSupplierDetails>();\r\n\r\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList<GetSupplierDetails> custList = dao.getAllUnPaidBillAmount(supplierId);\r\n\r\n\t\treturn custList;\r\n\t}",
"private static boolean checkIfSupplierExists(int supplier_id, Parts part,\r\n\t\t\tData dat) {\r\n\r\n\t\tfor (Supplier sup : dat.getSuppliers_list()) {\r\n\t\t\tif (sup.getID() == supplier_id) {\r\n\t\t\t\t// int i = dat.getSuppliers_list().indexOf(sup);\r\n\t\t\t\tsup.getParts_supplied().add(part);\r\n\t\t\t\t// dat.getSuppliers_list().get(i).getParts_supplied().add(part);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public Supplier findSupplierById(int id) throws NameValidationException, AddressValidationException, ZipCodeValidationException, CityValidationException, PhoneValidationException, EmailValidationException {\n\t\tResultSet rs;\n\t\tSupplier res = null;\n\t\ttry {\n\t\t\tfindSupplierById.setInt(1, id);\n\t\t\trs = findSupplierById.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tres = buildSupplierObject(rs);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}",
"public void setSupplierName(String supplierName) {\n this.supplierName = supplierName == null ? null : supplierName.trim();\n }"
]
| [
"0.7120793",
"0.69285566",
"0.6645818",
"0.6479074",
"0.6226737",
"0.6174141",
"0.60621077",
"0.59568346",
"0.5884918",
"0.58474004",
"0.5825544",
"0.5770474",
"0.57497805",
"0.5740408",
"0.56597054",
"0.5588177",
"0.5579488",
"0.55629456",
"0.5559862",
"0.55592823",
"0.5549591",
"0.5541559",
"0.5533515",
"0.5529976",
"0.54898936",
"0.54826605",
"0.54722536",
"0.54661614",
"0.5427332",
"0.54254615",
"0.5395098",
"0.53459007",
"0.5341345",
"0.5338546",
"0.53334814",
"0.5326148",
"0.5323914",
"0.5310795",
"0.52987635",
"0.52985525",
"0.5296587",
"0.527736",
"0.5248067",
"0.52426136",
"0.5216568",
"0.51875067",
"0.5185555",
"0.5164003",
"0.51442796",
"0.5138255",
"0.5134473",
"0.5090138",
"0.50818306",
"0.5048488",
"0.5022643",
"0.49576086",
"0.49359578",
"0.49234414",
"0.49024826",
"0.49009898",
"0.4893811",
"0.4854437",
"0.4845914",
"0.48230553",
"0.47758877",
"0.47721374",
"0.47619927",
"0.47442988",
"0.4730455",
"0.46863958",
"0.46778813",
"0.46677437",
"0.46656308",
"0.46544337",
"0.46469635",
"0.46457565",
"0.4608908",
"0.45974895",
"0.45874304",
"0.45871016",
"0.45861122",
"0.45836315",
"0.4555881",
"0.4536347",
"0.4533437",
"0.45163465",
"0.45103928",
"0.4506916",
"0.4504946",
"0.44959345",
"0.44667602",
"0.44482586",
"0.44228464",
"0.44163233",
"0.4413771",
"0.44130436",
"0.44052318",
"0.4399753",
"0.4397216",
"0.43751994"
]
| 0.7332463 | 0 |
Returns a range of all the gdf tender submission detailses where supplierId = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from GDFTenderSubmissionDetailsModelImpl. | public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(
long supplierId, int start, int end) {
return getPersistence().findByGDFTendersByUserId(
supplierId, start, end);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public static List<Term> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);",
"public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end);",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"public static List<Term> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByDataTypeId(\n\t\tlong dataTypeId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"private List<GbGradingSchemaEntry> setupGradingSchemaEntries() {\n\n\t\t// get configured values or defaults\n\t\t// need to retain insertion order\n\t\tMap<String, Double> bottomPercents = new LinkedHashMap<>();\n\n\t\t// note that we sort based on name so we need to pull the right name out of the list of mappings, for both cases\n\t\tfinal String gradingSchemaName = this.gradeMappings.stream()\n\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t.findFirst()\n\t\t\t\t.get()\n\t\t\t\t.getName();\n\n\t\tif (StringUtils.equals(this.currentGradeMappingId, this.configuredGradeMappingId)) {\n\t\t\t// get the values from the configured grading scale in this gradebook and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.model.getObject().getGradebookInformation().getSelectedGradingScaleBottomPercents());\n\t\t} else {\n\t\t\t// get the default values for the chosen grading scale and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.gradeMappings.stream()\n\t\t\t\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t\t\t\t.findFirst()\n\t\t\t\t\t\t\t.get()\n\t\t\t\t\t\t\t.getDefaultBottomPercents());\n\t\t}\n\n\t\t// convert map into list of objects which is easier to work with in the views\n\t\tfinal List<GbGradingSchemaEntry> rval = new ArrayList<>();\n\t\tfor (final Map.Entry<String, Double> entry : bottomPercents.entrySet()) {\n\t\t\trval.add(new GbGradingSchemaEntry(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn rval;\n\t}",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByUserId(\n\t\tlong userId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }",
"MinmaxEntity getEnd();",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);",
"@RequestMapping(\n value = \"/{start}/{end}\",\n method = RequestMethod.GET\n )\n public final Iterable<Entry> filter(\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date start,\n @PathVariable @DateTimeFormat(iso = ISO.DATE) final Date end\n ) {\n if (end.before(start)) {\n throw new IllegalArgumentException(\"Start date must be before end\");\n }\n final List<Entry> result = new LinkedList<Entry>();\n List<Entry> entries = SecurityUtils.actualUser().getEntries();\n if (entries == null) {\n entries = Collections.emptyList();\n }\n for (final Entry entry : entries) {\n if (entry.getDate().after(start)\n && entry.getDate().before(end)) {\n result.add(entry);\n }\n }\n return result;\n }",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipationsByUuidAndCompanyId(\n\t\t\tString uuid, long companyId, int start, int end,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t\t<eu.strasbourg.service.project.model.Participation>\n\t\t\t\t\torderByComparator) {\n\n\t\treturn _participationLocalService.getParticipationsByUuidAndCompanyId(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"private HashMap getGradeRangeMap() {\n\t\tHashMap map = new HashMap();\n\t\tGradeRangeHelper grh;\n\t\tgrh = new GradeRangeHelper(\"Primary elementary\", \"DLESE:Primary elementary\", 0, 2);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"Intermediate elementary\", \"DLESE:Intermediate elementary\", 3, 5);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"Middle school\", \"DLESE:Middle school\", 6, 8);\n\t\tmap.put(grh.value, grh);\n\t\tgrh = new GradeRangeHelper(\"High school\", \"DLESE:High school\", 9, 12);\n\t\tmap.put(grh.value, grh);\n\t\treturn map;\n\t}",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public static void quickSort(String[] entrants, int start, int end) {\n if (end-start <= 0) {\r\n return;\r\n }\r\n // Set pivot as mid-point\r\n int pivot = (int) Math.ceil((end+start)/2.0), pivot_val = getVal(entrants[pivot]);\r\n // Move pivot to end\r\n swap(entrants, pivot, end);\r\n int left = end, right = end+1;\r\n while (right > left) {\r\n // Move left bound to first value greater than or equal to pivot\r\n for (int i = start; i <= end-1; i++) {\r\n if (getVal(entrants[i]) >= pivot_val) {\r\n left = i;\r\n break;\r\n }\r\n }\r\n // Move right bound to left until crosses left bound or finds value less than pivot\r\n for (int i = end-1; i >= left-1; i--) {\r\n if (getVal(entrants[i]) < pivot_val || i == left-1 || i == 0) {\r\n right = i;\r\n break;\r\n }\r\n }\r\n // Check if bounds crossed\r\n if (right <= left) {\r\n // Move pivot to final spot\r\n swap(entrants, left, end);\r\n }\r\n else {\r\n // Swap these values\r\n swap(entrants, left, right);\r\n }\r\n }\r\n // Do left and right partitions (left is location of pivot)\r\n quickSort(entrants, start, left-1);\r\n quickSort(entrants, left+1, end);\r\n return;\r\n }",
"public RangeInteger<TdProductShipment> getProductShipmentIdRange(){\n return productShipmentIdRange;\n }",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<GuideStatisticDTO> getGuidesStatisticByPeriod(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"SELECT XS.guide.firstName AS firstName, XS.guide.lastName AS lastName, COUNT(id) AS totalExcursions, \"\n\t\t\t\t\t\t+ \"SUM(XS.details.durationSec) AS excursionsTotalDuration \" + \"FROM Excursion AS XS \"\n\t\t\t\t\t\t+ \"WHERE (XS.start >= :startDate AND XS.end <= :endDate) GROUP BY XS.guide\");\n\t\tSystem.out.println(query.toString());\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\t\tList<GuideStatisticDTO> returnResult = new ArrayList<GuideStatisticDTO>();\n\t\tfor (Object[] obj : (List<Object[]>) result.list()) {\n\t\t\tGuideStatisticDTO listElement = new GuideStatisticDTO();\n\t\t\tlistElement.setFirstName(String.valueOf(obj[0]));\n\t\t\tlistElement.setLastName(String.valueOf(obj[1]));\n\t\t\tlistElement.setTotalExcursions((long) obj[2]);\n\t\t\tlistElement.setExcursionsTotalDuration(LocalTime.MIN.plusSeconds((long) obj[3]));\n\t\t\treturnResult.add(listElement);\n\n\t\t}\n\n\t\treturn returnResult;\n\t\t// return result.list();\n\t}",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipations(int start, int end) {\n\n\t\treturn _participationLocalService.getParticipations(start, end);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end);\n\t}",
"DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }",
"public EndSendEntry getEndSendEntry(BeginSendEntry beginSendEntry);",
"public static GDFTenderSubmissionDetails findByPrimaryKey(\n\t\t\tlong tenderSubRefID)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByPrimaryKey(tenderSubRefID);\n\t}",
"public String[] getGradeRanges() {\n\t\tString t = doc.get(getFieldId(\"gradeRange\", metadataFormat)).trim();\n\t\tString[] vals;\n\t\tif (t == null || t.length() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn t.split(\"\\\\+\");\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<ProductSpecificationMapping> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public AreaRendererEndType getEndType() {\n\t\treturn this.endType;\n\t}",
"public List<TblImagesubmission> getImageSubmissions(String submissionIdStr) {\n\t\tint submissionId = Integer.parseInt(submissionIdStr);\n\t\tList<TblImagesubmission> imagesList = imagesubmissionRepo.findImagesBySubmissionId(submissionId);\n\t\treturn imagesList;\n\t}",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end);",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end);",
"public java.util.List<Todo> findByGroupId(long groupId, int start, int end);",
"public List<TblPurchaseOrderDetail>getAllDataPurchaseOrderDetail(TblSupplier supplier,TblPurchaseOrder po,RefPurchaseOrderStatus poStatus,TblItem item,Date startDate,Date endDate,TblPurchaseRequest mr);",
"public java.util.List<Todo> findByTodoText(\n\t\tString todoText, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public Integer getSupplierId() {\n return supplierId;\n }"
]
| [
"0.81129897",
"0.7755532",
"0.76589185",
"0.72528315",
"0.6586802",
"0.6071328",
"0.5879447",
"0.5829739",
"0.5745274",
"0.5243409",
"0.51304346",
"0.5089428",
"0.48587984",
"0.4792279",
"0.47022912",
"0.45758012",
"0.45660034",
"0.45138314",
"0.44686323",
"0.44642773",
"0.42535207",
"0.42417684",
"0.41875198",
"0.4161484",
"0.4143401",
"0.41267183",
"0.41114572",
"0.41012466",
"0.4078755",
"0.4066975",
"0.40540218",
"0.40451714",
"0.40212286",
"0.40205517",
"0.4015872",
"0.4000874",
"0.39924178",
"0.39884523",
"0.39713603",
"0.3967037",
"0.39663815",
"0.3939166",
"0.39290997",
"0.39252362",
"0.3902692",
"0.38865164",
"0.38841212",
"0.38780573",
"0.38688523",
"0.38687524",
"0.38631928",
"0.38576856",
"0.38463044",
"0.38415465",
"0.38326684",
"0.38301173",
"0.38266662",
"0.3812527",
"0.38059682",
"0.38004646",
"0.37975827",
"0.37837034",
"0.37752822",
"0.37745923",
"0.375904",
"0.37446016",
"0.37434196",
"0.3736157",
"0.37345722",
"0.37296554",
"0.37253526",
"0.3724275",
"0.37241137",
"0.37082008",
"0.3707927",
"0.37078652",
"0.36977845",
"0.36917",
"0.36761487",
"0.3675386",
"0.36698803",
"0.3659325",
"0.36513534",
"0.36466387",
"0.36344558",
"0.36264816",
"0.36141548",
"0.3609536",
"0.36071855",
"0.36053795",
"0.3601086",
"0.3597971",
"0.35891202",
"0.35871527",
"0.35860014",
"0.35852566",
"0.35769823",
"0.357259",
"0.35691285",
"0.35689816"
]
| 0.73605186 | 3 |
Returns an ordered range of all the gdf tender submission detailses where supplierId = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from GDFTenderSubmissionDetailsModelImpl. | public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(
long supplierId, int start, int end,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {
return getPersistence().findByGDFTendersByUserId(
supplierId, start, end, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static List<Term> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<Todo> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static List<Term> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipationsByUuidAndCompanyId(\n\t\t\tString uuid, long companyId, int start, int end,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t\t<eu.strasbourg.service.project.model.Participation>\n\t\t\t\t\torderByComparator) {\n\n\t\treturn _participationLocalService.getParticipationsByUuidAndCompanyId(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByTodoText(\n\t\tString todoText, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataTypeId(\n\t\tlong dataTypeId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<ProductSpecificationMapping> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public java.util.List<DataEntry> findByUserId(\n\t\tlong userId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByCopiedFrom(\n\t\tlong copiedFrom, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworksByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Artwork> orderByComparator);",
"public java.util.List<ProductSpecificationMapping> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}",
"public java.util.List<Todo> findByG_U_S(\n\t\tlong groupId, long userId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator, retrieveFromCache);\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static void quickSort(String[] entrants, int start, int end) {\n if (end-start <= 0) {\r\n return;\r\n }\r\n // Set pivot as mid-point\r\n int pivot = (int) Math.ceil((end+start)/2.0), pivot_val = getVal(entrants[pivot]);\r\n // Move pivot to end\r\n swap(entrants, pivot, end);\r\n int left = end, right = end+1;\r\n while (right > left) {\r\n // Move left bound to first value greater than or equal to pivot\r\n for (int i = start; i <= end-1; i++) {\r\n if (getVal(entrants[i]) >= pivot_val) {\r\n left = i;\r\n break;\r\n }\r\n }\r\n // Move right bound to left until crosses left bound or finds value less than pivot\r\n for (int i = end-1; i >= left-1; i--) {\r\n if (getVal(entrants[i]) < pivot_val || i == left-1 || i == 0) {\r\n right = i;\r\n break;\r\n }\r\n }\r\n // Check if bounds crossed\r\n if (right <= left) {\r\n // Move pivot to final spot\r\n swap(entrants, left, end);\r\n }\r\n else {\r\n // Swap these values\r\n swap(entrants, left, right);\r\n }\r\n }\r\n // Do left and right partitions (left is location of pivot)\r\n quickSort(entrants, start, left-1);\r\n quickSort(entrants, left+1, end);\r\n return;\r\n }",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);",
"public java.util.List<Todo> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end);",
"public java.util.List<DataEntry> findByDataTypeId(\n\t\tlong dataTypeId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> filterFindByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}",
"public java.util.List<DataEntry> findByDataSectionId(\n\t\tlong dataSectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByTodoText(\n\t\tString todoText, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}",
"@Override\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator) {\n\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveEndUtcDtComparator();\n }",
"private List<GbGradingSchemaEntry> setupGradingSchemaEntries() {\n\n\t\t// get configured values or defaults\n\t\t// need to retain insertion order\n\t\tMap<String, Double> bottomPercents = new LinkedHashMap<>();\n\n\t\t// note that we sort based on name so we need to pull the right name out of the list of mappings, for both cases\n\t\tfinal String gradingSchemaName = this.gradeMappings.stream()\n\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t.findFirst()\n\t\t\t\t.get()\n\t\t\t\t.getName();\n\n\t\tif (StringUtils.equals(this.currentGradeMappingId, this.configuredGradeMappingId)) {\n\t\t\t// get the values from the configured grading scale in this gradebook and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.model.getObject().getGradebookInformation().getSelectedGradingScaleBottomPercents());\n\t\t} else {\n\t\t\t// get the default values for the chosen grading scale and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.gradeMappings.stream()\n\t\t\t\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t\t\t\t.findFirst()\n\t\t\t\t\t\t\t.get()\n\t\t\t\t\t\t\t.getDefaultBottomPercents());\n\t\t}\n\n\t\t// convert map into list of objects which is easier to work with in the views\n\t\tfinal List<GbGradingSchemaEntry> rval = new ArrayList<>();\n\t\tfor (final Map.Entry<String, Double> entry : bottomPercents.entrySet()) {\n\t\t\trval.add(new GbGradingSchemaEntry(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn rval;\n\t}",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"public java.util.List<Todo> findByG_U_S(\n\t\tlong groupId, long userId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"Observable<List<Order>> queryOrders(@NonNull String productId, @NonNull String productType,\n @NonNull String beginTime, @NonNull String endTime);",
"public java.util.List<Todo> findByTodoDateTime(\n\t\tDate todoDateTime, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataSectionId(\n\t\tlong dataSectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid(uuid, start, end, orderByComparator);\n\t}",
"DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }"
]
| [
"0.7756839",
"0.76631236",
"0.7210795",
"0.6715175",
"0.5934529",
"0.58176017",
"0.56742096",
"0.5581377",
"0.51789445",
"0.49147862",
"0.49019077",
"0.48562413",
"0.47536686",
"0.46396455",
"0.46369344",
"0.45404765",
"0.45107603",
"0.44964036",
"0.44922197",
"0.44694406",
"0.44678023",
"0.4462105",
"0.4437031",
"0.44184777",
"0.4412476",
"0.44088233",
"0.44021943",
"0.43870047",
"0.43803814",
"0.43665692",
"0.43649897",
"0.43474704",
"0.4344824",
"0.43389082",
"0.43124387",
"0.43094432",
"0.43081152",
"0.43065283",
"0.43025512",
"0.4283705",
"0.42702383",
"0.42277718",
"0.42137867",
"0.42136556",
"0.42051974",
"0.42021304",
"0.41949725",
"0.41845924",
"0.4143444",
"0.41382313",
"0.41276935",
"0.412371",
"0.41229117",
"0.41112942",
"0.40854865",
"0.40830678",
"0.4079508",
"0.40535694",
"0.40508604",
"0.4036149",
"0.40292895",
"0.4023802",
"0.40177247",
"0.40139338",
"0.39479876",
"0.3930402",
"0.3882972",
"0.38707787",
"0.38670477",
"0.38654515",
"0.38641962",
"0.3859302",
"0.38521817",
"0.38440776",
"0.3836622",
"0.38300833",
"0.38267845",
"0.38080612",
"0.38006347",
"0.37875676",
"0.37660384",
"0.37640235",
"0.37480733",
"0.37445128",
"0.37270427",
"0.37233856",
"0.3721275",
"0.37066862",
"0.370612",
"0.3702211",
"0.37010247",
"0.36987403",
"0.36967918",
"0.36958197",
"0.36884686",
"0.3683828",
"0.3664297",
"0.36629733",
"0.36618003",
"0.36563262"
]
| 0.81412894 | 0 |
Returns an ordered range of all the gdf tender submission detailses where supplierId = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent, then the query will include the default ORDER BY logic from GDFTenderSubmissionDetailsModelImpl. | public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(
long supplierId, int start, int end,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator,
boolean useFinderCache) {
return getPersistence().findByGDFTendersByUserId(
supplierId, start, end, orderByComparator, useFinderCache);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll(int start, int end) {\n\t\treturn getPersistence().findAll(start, end);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public static List<Term> filterFindByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator);\n\t}",
"public java.util.List<PlanoSaude> findAll(\n\t\tint start, int end, OrderByComparator<PlanoSaude> orderByComparator);",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static List<Term> findAll(\n\t\tint start, int end, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator) {\n\n\t\treturn getPersistence().findAll(start, end, orderByComparator);\n\t}",
"public static <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn getService().dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataPackId(\n\t\tlong dataPackId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static List<Term> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().filterFindByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<Todo> filterFindByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static List<Term> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByGroupId(\n\t\t\tgroupId, start, end, orderByComparator);\n\t}",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByDataCollectionId(\n\t\tlong dataCollectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic java.util.List<eu.strasbourg.service.project.model.Participation>\n\t\tgetParticipationsByUuidAndCompanyId(\n\t\t\tString uuid, long companyId, int start, int end,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t\t<eu.strasbourg.service.project.model.Participation>\n\t\t\t\t\torderByComparator) {\n\n\t\treturn _participationLocalService.getParticipationsByUuidAndCompanyId(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}",
"public java.util.List<Todo> findByGroupId(\n\t\tlong groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<FoundObject> findAll(\n\t\tint start, int end, OrderByComparator<FoundObject> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, useFinderCache);\n\t}",
"@Override\n\tpublic List<PhatVay> findAll(\n\t\tint start, int end, OrderByComparator<PhatVay> orderByComparator) {\n\n\t\treturn findAll(start, end, orderByComparator, true);\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator);",
"public java.util.List<Todo> filterFindByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataSetId(\n\t\tlong dataSetId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByG_S(\n\t\tlong groupId, int[] statuses, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByTodoText(\n\t\tString todoText, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataTypeId(\n\t\tlong dataTypeId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> findByTodoId(\n\t\tlong todoId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<ProductSpecificationMapping> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public java.util.List<ProductSpecificationMapping> findByProductType(\n\t\tString productType, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public java.util.List<DataEntry> findByUserId(\n\t\tlong userId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<CsclAppointeeMaster> findByid_(\n\t\tlong id_, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByCopiedFrom(\n\t\tlong copiedFrom, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public String getGradeRange() {\n\t\treturn this.gradeRange;\n\t}",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworksByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Artwork> orderByComparator);",
"public java.util.List<ProductSpecificationMapping> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator,\n\t\tboolean useFinderCache);",
"public Collection getGradeRanges() {\n\t\treturn gradeRangeMap.keySet();\n\t}",
"public java.util.List<Todo> findByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByG_U_S(\n\t\tlong groupId, long userId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByG_T(\n\t\tlong groupId, long termId, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator, boolean retrieveFromCache) {\n\n\t\treturn getPersistence().findByG_T(\n\t\t\tgroupId, termId, start, end, orderByComparator, retrieveFromCache);\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<CsclAppointeeMaster>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static void quickSort(String[] entrants, int start, int end) {\n if (end-start <= 0) {\r\n return;\r\n }\r\n // Set pivot as mid-point\r\n int pivot = (int) Math.ceil((end+start)/2.0), pivot_val = getVal(entrants[pivot]);\r\n // Move pivot to end\r\n swap(entrants, pivot, end);\r\n int left = end, right = end+1;\r\n while (right > left) {\r\n // Move left bound to first value greater than or equal to pivot\r\n for (int i = start; i <= end-1; i++) {\r\n if (getVal(entrants[i]) >= pivot_val) {\r\n left = i;\r\n break;\r\n }\r\n }\r\n // Move right bound to left until crosses left bound or finds value less than pivot\r\n for (int i = end-1; i >= left-1; i--) {\r\n if (getVal(entrants[i]) < pivot_val || i == left-1 || i == 0) {\r\n right = i;\r\n break;\r\n }\r\n }\r\n // Check if bounds crossed\r\n if (right <= left) {\r\n // Move pivot to final spot\r\n swap(entrants, left, end);\r\n }\r\n else {\r\n // Swap these values\r\n swap(entrants, left, right);\r\n }\r\n }\r\n // Do left and right partitions (left is location of pivot)\r\n quickSort(entrants, start, left-1);\r\n quickSort(entrants, left+1, end);\r\n return;\r\n }",
"public java.util.List<ProductSpecificationMapping> findAll(\n\t\tint start, int end);",
"public java.util.List<Todo> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByGroupId(\n\t\tlong groupId, int start, int end);",
"public java.util.List<DataEntry> findByDataTypeId(\n\t\tlong dataTypeId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<DataEntry> findByStatus(\n\t\tint status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public java.util.List<Todo> filterFindByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<CauHinhThuTienTet> findAll(\n\t\tint start, int end,\n\t\tOrderByComparator<CauHinhThuTienTet> orderByComparator,\n\t\tboolean retrieveFromCache) {\n\n\t\treturn getPersistence().findAll(\n\t\t\tstart, end, orderByComparator, retrieveFromCache);\n\t}",
"public java.util.List<DataEntry> findByDataSectionId(\n\t\tlong dataSectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public java.util.List<Todo> findByTodoText(\n\t\tString todoText, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"@Override\n\tpublic List<MonthlyTrading> getMonthlyTradingsByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<MonthlyTrading> orderByComparator) {\n\t\treturn monthlyTradingPersistence.findByUuid_C(uuid, companyId, start,\n\t\t\tend, orderByComparator);\n\t}",
"@Override\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator) {\n\n\t\treturn csclPollsChoicePersistence.findWithDynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public java.util.List<Todo> filterFindByG_U_S(\n\t\tlong groupId, long userId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static JwComparator<AcUspsInternationalCgrReplyOffer> getEffectiveEndUtcDtComparator()\n {\n return AcUspsInternationalCgrReplyOfferTools.instance.getEffectiveEndUtcDtComparator();\n }",
"public java.util.List<Todo> findByUserIdGroupId(\n\t\tlong userId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"private List<GbGradingSchemaEntry> setupGradingSchemaEntries() {\n\n\t\t// get configured values or defaults\n\t\t// need to retain insertion order\n\t\tMap<String, Double> bottomPercents = new LinkedHashMap<>();\n\n\t\t// note that we sort based on name so we need to pull the right name out of the list of mappings, for both cases\n\t\tfinal String gradingSchemaName = this.gradeMappings.stream()\n\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t.findFirst()\n\t\t\t\t.get()\n\t\t\t\t.getName();\n\n\t\tif (StringUtils.equals(this.currentGradeMappingId, this.configuredGradeMappingId)) {\n\t\t\t// get the values from the configured grading scale in this gradebook and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.model.getObject().getGradebookInformation().getSelectedGradingScaleBottomPercents());\n\t\t} else {\n\t\t\t// get the default values for the chosen grading scale and sort accordingly\n\t\t\tbottomPercents = sortBottomPercents(gradingSchemaName,\n\t\t\t\t\tthis.gradeMappings.stream()\n\t\t\t\t\t\t\t.filter(gradeMapping -> StringUtils.equals(gradeMapping.getId(), this.currentGradeMappingId))\n\t\t\t\t\t\t\t.findFirst()\n\t\t\t\t\t\t\t.get()\n\t\t\t\t\t\t\t.getDefaultBottomPercents());\n\t\t}\n\n\t\t// convert map into list of objects which is easier to work with in the views\n\t\tfinal List<GbGradingSchemaEntry> rval = new ArrayList<>();\n\t\tfor (final Map.Entry<String, Double> entry : bottomPercents.entrySet()) {\n\t\t\trval.add(new GbGradingSchemaEntry(entry.getKey(), entry.getValue()));\n\t\t}\n\n\t\treturn rval;\n\t}",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic <T> List<T> dynamicQuery(\n\t\tDynamicQuery dynamicQuery, int start, int end,\n\t\tOrderByComparator<T> orderByComparator);",
"@Override\n\tpublic List<Answer> findAll(\n\t\tint start, int end, OrderByComparator<Answer> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\tFinderPath finderPath = null;\n\t\tObject[] finderArgs = null;\n\n\t\tif ((start == QueryUtil.ALL_POS) && (end == QueryUtil.ALL_POS) &&\n\t\t\t(orderByComparator == null)) {\n\n\t\t\tif (useFinderCache) {\n\t\t\t\tfinderPath = _finderPathWithoutPaginationFindAll;\n\t\t\t\tfinderArgs = FINDER_ARGS_EMPTY;\n\t\t\t}\n\t\t}\n\t\telse if (useFinderCache) {\n\t\t\tfinderPath = _finderPathWithPaginationFindAll;\n\t\t\tfinderArgs = new Object[] {start, end, orderByComparator};\n\t\t}\n\n\t\tList<Answer> list = null;\n\n\t\tif (useFinderCache) {\n\t\t\tlist = (List<Answer>)finderCache.getResult(\n\t\t\t\tfinderPath, finderArgs, this);\n\t\t}\n\n\t\tif (list == null) {\n\t\t\tStringBundler query = null;\n\t\t\tString sql = null;\n\n\t\t\tif (orderByComparator != null) {\n\t\t\t\tquery = new StringBundler(\n\t\t\t\t\t2 + (orderByComparator.getOrderByFields().length * 2));\n\n\t\t\t\tquery.append(_SQL_SELECT_ANSWER);\n\n\t\t\t\tappendOrderByComparator(\n\t\t\t\t\tquery, _ORDER_BY_ENTITY_ALIAS, orderByComparator);\n\n\t\t\t\tsql = query.toString();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tsql = _SQL_SELECT_ANSWER;\n\n\t\t\t\tsql = sql.concat(AnswerModelImpl.ORDER_BY_JPQL);\n\t\t\t}\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tlist = (List<Answer>)QueryUtil.list(\n\t\t\t\t\tq, getDialect(), start, end);\n\n\t\t\t\tcacheResult(list);\n\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.putResult(finderPath, finderArgs, list);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception exception) {\n\t\t\t\tif (useFinderCache) {\n\t\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\t\t\t\t}\n\n\t\t\t\tthrow processException(exception);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"public java.util.List<Todo> findByG_U_S(\n\t\tlong groupId, long userId, int status, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"Observable<List<Order>> queryOrders(@NonNull String productId, @NonNull String productType,\n @NonNull String beginTime, @NonNull String endTime);",
"public java.util.List<Todo> findByTodoDateTime(\n\t\tDate todoDateTime, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public java.util.List<DataEntry> findByDataSectionId(\n\t\tlong dataSectionId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static List<Term> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tOrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().findByUuid(uuid, start, end, orderByComparator);\n\t}",
"DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }"
]
| [
"0.814064",
"0.7661712",
"0.7208798",
"0.67147946",
"0.59333277",
"0.58165175",
"0.5673764",
"0.5580035",
"0.51778966",
"0.4915338",
"0.49024326",
"0.48565373",
"0.4754301",
"0.46405235",
"0.46364874",
"0.45408303",
"0.45123634",
"0.4493952",
"0.44923276",
"0.44694307",
"0.44666523",
"0.4461331",
"0.44368392",
"0.44183922",
"0.4413729",
"0.44084972",
"0.4402292",
"0.43880433",
"0.43812522",
"0.4368098",
"0.43657354",
"0.43494004",
"0.43447128",
"0.4339481",
"0.43134257",
"0.43101856",
"0.43085623",
"0.430773",
"0.4303091",
"0.42833072",
"0.4271685",
"0.4227872",
"0.42146948",
"0.42135257",
"0.42045093",
"0.4203482",
"0.419536",
"0.41841704",
"0.4143182",
"0.41389102",
"0.41273764",
"0.41231096",
"0.41230887",
"0.4111365",
"0.40864602",
"0.40825126",
"0.40800807",
"0.4054289",
"0.40494475",
"0.40359938",
"0.40292946",
"0.40237352",
"0.40178946",
"0.40144703",
"0.3948435",
"0.39317247",
"0.3884819",
"0.38709307",
"0.38667533",
"0.38662112",
"0.3865649",
"0.38594598",
"0.38515225",
"0.3844887",
"0.3835821",
"0.38311973",
"0.38276112",
"0.38076842",
"0.3801165",
"0.37879306",
"0.37648046",
"0.37647122",
"0.37477028",
"0.3745528",
"0.37280494",
"0.3723364",
"0.3721759",
"0.3707755",
"0.37064376",
"0.37029356",
"0.37019864",
"0.36993444",
"0.36970118",
"0.3695509",
"0.36881492",
"0.36841485",
"0.36636424",
"0.36635634",
"0.3662207",
"0.36577842"
]
| 0.7755826 | 1 |
Returns the first gdf tender submission details in the ordered set where supplierId = &63;. | public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(
long supplierId,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator)
throws com.gdf.technical.bids.exception.
NoSuchGDFTenderSubmissionDetailsException {
return getPersistence().findByGDFTendersByUserId_First(
supplierId, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"String getSupplierID();",
"public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public String getSupplier() {\n return supplier;\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public ShortlistedSuppliersTable getShortlistedSupplierData(JSONObject shortlistedSupplier, String shortlistedSupplierId) {\n try {\r\n if ( shortlistedSupplier != null) {\r\n\r\n String proposalId = shortlistedSupplier.getString(\"proposal_id\");\r\n String supplierId = shortlistedSupplier.getString(\"supplier_id\");\r\n String supplierContentTypeId = shortlistedSupplier.getString(\"content_type_id\");\r\n //String phase = shortlistedSupplier.getString(\"phase\");\r\n String phase = \"1\"; // TODO: 23/2/17 hardcoded. remove it\r\n String lastModified = getCurrentDate();\r\n return new ShortlistedSuppliersTable(shortlistedSupplierId, proposalId, supplierId, supplierContentTypeId, phase, lastModified);\r\n }\r\n }\r\n catch (Exception e){\r\n Log.d(\"getShortlistSuppData\", e.getMessage());\r\n }\r\n return null;\r\n }",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }",
"@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }",
"@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}",
"public String supplierList(SupplierDetails s);",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"public static SupplierEntityExpert getSupplierEntityExpert(OADBTransaction txn)\n { \n return (SupplierEntityExpert)txn.getExpert(SupplierEOImpl.getDefinitionObject()); \n \n }",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public Supplier findSupplier(int suppliernum, boolean retrieveAssociation);",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public Producer getProducerByEmailFetchingAddressFetchingProfile(String producerEmail);",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"public Producer getProducerByProducerEmailFetchingProfile(String producerEmail);",
"public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}",
"public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}",
"SupplierInfo selectByPrimaryKey(Long id);",
"List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"ProductPurchaseItem getSupplierProductPurchaseItemPerCatalogNo(long suppId, String catalogNo);",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"public process get_first() {\n\t\treturn queue.getFirst();\n\t}",
"@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}",
"@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((supplierID == null) ? 0 : supplierID.hashCode());\r\n\t\treturn result;\r\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public Map getAllBillBySuppliers1(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers1(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\t\t\tbean.setBillNo(o[0].toString());\r\n\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public jq_Field first() { return _field; }",
"public Opportunities[] findWhereSupplierIdEquals(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ? ORDER BY supplier_id\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"private WorldDelivery getNextDelivery(String droneID, Set<WorldDelivery> undeliveredDeliveries){\n\n\t\tWorldDelivery lowestSeqNbDelivery = null;\n\t\tlong lowestSeqNb = Long.MAX_VALUE;\n\t\tfor(WorldDelivery delivery: undeliveredDeliveries){\n\t\t\t//check if this package is destined for the currently selected drone\n\t\t\tif(!droneID.equals(delivery.getDeliveryDroneID())){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlong currentSeqNb = delivery.getSequenceNumber();\n\n\t\t\t//and also if the sequence number is lower\n\t\t\tif( currentSeqNb < lowestSeqNb){\n\t\t\t\tlowestSeqNb = currentSeqNb;\n\t\t\t\tlowestSeqNbDelivery = delivery;\n\t\t\t}\n\t\t}\n\n\t\treturn lowestSeqNbDelivery;\n\t}",
"public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }",
"@Override\n public List<Object> getGroupMember(String name, int supplierId) {\n return null;\n }",
"public String getScientificNameAuthorship() {\n return scientificNameAuthorship;\n }",
"public static Optional<Student> getStudentWithSmallestGpa() {\n\t\treturn StudentDb.getAllStudents().stream()\n\t\t\t\t.collect(minBy(Comparator.comparing(Student::getGpa)));\n\t}",
"public Producer getProducerByEmailFetchingProfileFetchingAuthoritiesFetchingAddress(String producerEmail);",
"public String getSupplierCommodity() {\n return supplierCommodity;\n }",
"public Question getFirstQ()\n {\n return questionList.get(0);\n }",
"public RowIterator getSupplierSiteEO()\n {\n return (RowIterator)getAttributeInternal(SUPPLIERSITEEO);\n }",
"public Producer getProducerByProducerIDFetchingAddressFetchingProducts(String producerID);",
"public void actionPerformed(ActionEvent e){\n\t\t\t\ttry{\n\t\t\t\t\tif(suppliers.size() >= 1){\n\t\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(suppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tsupplierJTextArea.setText(\" Supplier Id: \"+supplier.getId()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Name: \"+supplier.getName()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Address: \"+supplier.getAddress()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Email: \"+supplier.getEmail()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Phone: \"+supplier.getPhone()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Delivery Time: \"+supplier.getDaysToDeliver());\n\t\t\t\t\t\t\t\tsuppIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Suppliers Found\");\n\t\t\t\t\t}\n\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public HashMap<Integer, Float> getProductsForSupplier(int supplierId) {\n\t\tHashMap<Integer, Float> map = new HashMap<Integer, Float>();\n\t\tString sql = \"select product_id, offer_price from supplier_products where supplier_id = ? order by product_id asc\";\n\t\ttry (Connection connection = DriverManager.getConnection(URL, user, password);\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(sql)) {\n\t\t\tstatement.setInt(1, supplierId);\n\t\t\tResultSet res = statement.executeQuery();\n\n\t\t\twhile (res.next()) {\n\t\t\t\tmap.put(res.getInt(1), res.getFloat(2));\n\t\t\t}\n\t\t\treturn map;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Couldn't find a supplier with the id: \" + supplierId);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic SupplierView getSupplierBySupplierIdAndProductId(long supplierId, long productId) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,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 WHERE supplier_id=? and product_id=?\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId, productId);\n\t}",
"public String getFirstP() {\n\t\treturn firstFieldP.getText();\n\t}",
"public void setSupplierNum(String supplierNum) {\n this.supplierNum = supplierNum == null ? null : supplierNum.trim();\n }",
"public String first() {\n\t\t\n\t\treturn \"\\n#1: \" + contacts[0].toString();\n\t}",
"public static WebElement btn_clickCompareSupplier() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(By.xpath(\"(//*[contains(text(),'Compare Supplier')])[position()=1]\"));\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }",
"List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);",
"public Map getAllBillBySuppliers(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++)\r\n\t\t{\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\r\n\t\t\tString pendingBal = o[2].toString();\r\n\t\t\tif (pendingBal.equals(\"0\")) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbean.setBillNo(o[0].toString());\r\n\t\t\t\t//bean.setItemName(o[0].toString());\r\n\t\t\t\tbean.setSize(o[1].toString());\r\n\t\t\t\tbean.setBarcode(o[2].toString());\t\t\t\r\n\t\t\t}\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}",
"public T getFirst() {\n\treturn _front.getCargo();\n }",
"public Supplier findSupplierById(int id) throws NameValidationException, AddressValidationException, ZipCodeValidationException, CityValidationException, PhoneValidationException, EmailValidationException {\n\t\tResultSet rs;\n\t\tSupplier res = null;\n\t\ttry {\n\t\t\tfindSupplierById.setInt(1, id);\n\t\t\trs = findSupplierById.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tres = buildSupplierObject(rs);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}",
"public void setSupplierName(String supplierName) {\n this.supplierName = supplierName == null ? null : supplierName.trim();\n }",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierIdAndStatusCode(long supplierId);",
"public Grupomuscular getFirstGrupomuscular()\r\n\t{\r\n\t\tif ((getGrupomusculars() != null) && !getGrupomusculars().isEmpty())\r\n\t\t{\r\n\t\t\treturn getGrupomusculars().get(FIRST);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<SupplierView> getSupplierByName(String supplierName) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,h.buy_date,h.supplier_unique_id,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 WHERE supplier_name=?\";\n\t\tList<Map<String, Object>> row=getJdbcTemplate().queryForList(sql, supplierName);\n\t\tList<SupplierView> supplier_view=new ArrayList<SupplierView>();\n\t\tfor(Map<String, Object> rows:row)\n\t\t{\n\t\t\tSupplierView obj=new SupplierView();\n\t\t\tobj.setSupplierId((int)rows.get(\"supplier_id\"));\n\t\t\tobj.setSupplierName((String)rows.get(\"supplier_name\"));\n\t\t\tobj.setSupplierType((String)rows.get(\"supplier_type\"));\n\t\t\tobj.setImage((String)rows.get(\"image\"));\n\t\t\tobj.setPermanentAddress((String)rows.get(\"permanent_address\"));\n\t\t\tobj.setTemporaryAddress((String)rows.get(\"temporary_address\"));\n\t\t\tobj.setQuantity((int)rows.get(\"quantity\"));\n obj.setCost((double)rows.get(\"cost\"));\n obj.setSupplierUniqueId((int)rows.get(\"supplier_unique_id\"));\n obj.setBuyDate((Date)rows.get(\"buy_date\"));\n obj.setProductId((long)rows.get(\"product_id\"));\n obj.setProductName((String)rows.get(\"product_name\"));\n obj.setUsername((String) rows.get(\"username\"));\n supplier_view.add(obj);\n\t\t}\n\t\treturn supplier_view;\n\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\t\ttry{\n\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\teditSupplierName.setText(supplier.getName());\n\t\t\t\t\t\t\teditSupplierAddress.setText(supplier.getAddress());\n\t\t\t\t\t\t\teditSupplierEmail.setText(supplier.getEmail());\n\t\t\t\t\t\t\teditSupplierPhone.setText(Integer.toString(supplier.getPhone()));\n\t\t\t\t\t\t\teditSupplierDelivery.setText(Integer.toString(supplier.getDaysToDeliver()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public GPoint first() {\n\t\tif (points.isEmpty()) {\n\t\t\tthrow new IllegalStateException(\"line group is empty\");\n\t\t}\n\t\treturn points.get(0);\n\t}",
"@Override\n\tpublic int getNoofSupplier(String supplierName) {\n\t\t String sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}",
"@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"protected ItineraryPricingInfoData getFirstAvailableItineraryPricingInfo(final PricedItineraryData pricedItinerary)\n\t{\n\t\tfor (final ItineraryPricingInfoData itineraryPricingInfoData : pricedItinerary.getItineraryPricingInfos())\n\t\t{\n\t\t\tif (itineraryPricingInfoData.isAvailable())\n\t\t\t{\n\t\t\t\tfinal boolean isAvailable = itineraryPricingInfoData.getBundleTemplates().stream()\n\t\t\t\t\t\t.allMatch(TravelBundleTemplateData::isAvailable);\n\t\t\t\tif (isAvailable)\n\t\t\t\t{\n\t\t\t\t\treturn itineraryPricingInfoData;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"private static StockItem searchForProductOffered(Collection<StockItem> offeredStockItems, ProductAmountTO currentRequiredProduct) {\t\n\t\tIterator<StockItem> stockItemIterator = offeredStockItems.iterator();\n\t\tStockItem currentStockItem;\n\t\twhile(stockItemIterator.hasNext()) {\n\t\t\tcurrentStockItem = stockItemIterator.next();\n\t\t\tProductTO productTO = FillTransferObjects.fillProductTO(currentStockItem.getProduct());\n\t\t\tif(productTO.equals(currentRequiredProduct.getProduct())) {\n\t\t\t\treturn currentStockItem;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn null;\n\t}",
"@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}",
"@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}",
"private static Map<String, Double> extractBestSuppliers (Map<Supplier, Double> supplierScores, int numResults) {\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\t\t\n\t\t//return the [numResults] best suppliers according to highest scores\n\t\tMap<String, Double> finalSupplierMap = new LinkedHashMap<String, Double>();\t\t\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tfinalSupplierMap.put(e.getKey().getId(), e.getValue());\n\t\t}\n\t\t\n\t\treturn finalSupplierMap;\n\n\t}",
"public E getFirst();",
"public List<SupplierEntity> getSuppliersExclType(String typeName) {\n\n List<SupplierEntity> suppliers = new ArrayList<>();\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n\n Criteria criteria = session.createCriteria(SupplierEntity.class);\n criteria.createCriteria(\"supplierType\").add(Restrictions.ne(\"name\", typeName));\n\n // Language lang = (Language)super.findByCriteria(criteria).get(0);\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = criteria.list();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n log.error(e.getStackTrace());\n\n } finally {\n session.close();\n }\n\n return suppliers;\n\n }",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"protected Object getReplierID(){\n IGroup g = getLocalGroup();\n\n int range = g.getGroupSize();\n\n Object sortedReplierID = null;\n /* While a replier has not been selected.*/\n while(sortedReplierID == null){\n\n /* Sort a process */\n int pindex = (int) (Math.random()* range);\n\n IProcess p = (IProcess) g.getMembers().get(pindex);\n\n /* If the selected process isn't the primary and isn't the local replica then it'll be selected.*/\n if(!isPrimary(p) && !p.getID().equals(getLocalServerID())){\n sortedReplierID = p.getID();\n }\n }\n return sortedReplierID;\n }",
"EcsSupplierRebate selectByPrimaryKey(Integer rebateId);"
]
| [
"0.6931434",
"0.6418394",
"0.5978506",
"0.5781895",
"0.57725745",
"0.5659731",
"0.5633758",
"0.5626124",
"0.5625947",
"0.5617413",
"0.5590402",
"0.5574314",
"0.5557924",
"0.5499116",
"0.5466408",
"0.54460347",
"0.53386724",
"0.5299185",
"0.5290159",
"0.5241042",
"0.5227094",
"0.5193365",
"0.5165924",
"0.515591",
"0.5125344",
"0.5088831",
"0.50741875",
"0.50542706",
"0.5050776",
"0.5030816",
"0.50094014",
"0.4972782",
"0.49416184",
"0.49330986",
"0.49010733",
"0.48973164",
"0.4876568",
"0.4872498",
"0.48724443",
"0.48530975",
"0.48396784",
"0.48326224",
"0.4811637",
"0.48084265",
"0.47640666",
"0.4760195",
"0.4737037",
"0.47366974",
"0.47326463",
"0.47131935",
"0.47120917",
"0.47112745",
"0.47053966",
"0.46876827",
"0.46819767",
"0.46617442",
"0.4626406",
"0.46239313",
"0.4620048",
"0.46141565",
"0.46021017",
"0.46015352",
"0.4577024",
"0.45708194",
"0.4568239",
"0.45653215",
"0.45626396",
"0.45460096",
"0.45097488",
"0.45015624",
"0.44941816",
"0.449143",
"0.44901434",
"0.44818178",
"0.4476391",
"0.44702017",
"0.44581246",
"0.4452251",
"0.4443329",
"0.44337142",
"0.44222653",
"0.44219455",
"0.44168285",
"0.44155833",
"0.44144914",
"0.44010678",
"0.4387828",
"0.43876356",
"0.4380388",
"0.43685097",
"0.436712",
"0.4356131",
"0.43552142",
"0.43552142",
"0.43491527",
"0.4341456",
"0.43390056",
"0.43374354",
"0.43312678",
"0.4323252"
]
| 0.60216606 | 2 |
Returns the first gdf tender submission details in the ordered set where supplierId = &63;. | public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_First(
long supplierId,
OrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {
return getPersistence().fetchByGDFTendersByUserId_First(
supplierId, orderByComparator);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_First(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_First(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDFTenderRefeNoByUserId(\n\t\tString tenderReferenceNumber, long supplierId, boolean useFinderCache) {\n\n\t\treturn getPersistence().fetchByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId, useFinderCache);\n\t}",
"public static GDFTenderSubmissionDetails[]\n\t\t\tfindByGDFTendersByUserId_PrevAndNext(\n\t\t\t\tlong tenderSubRefID, long supplierId,\n\t\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_PrevAndNext(\n\t\t\ttenderSubRefID, supplierId, orderByComparator);\n\t}",
"public Opportunities[] findBySubmissionForm(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ?\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"public Integer getSupplierid() {\r\n return supplierid;\r\n }",
"public Integer getSupplierId() {\n return supplierId;\n }",
"public static GDFTenderSubmissionDetails removeByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().removeByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public String getSupplierNum() {\n return supplierNum;\n }",
"public Long getSupplierId() {\n\t\treturn supplierId;\n\t}",
"public String getSupplierPartId() {\r\n return this.supplierPartId;\r\n }",
"public Remote.Supplier<SortedSet<E>> getSupplier()\n {\n return m_supplier == null ? DEFAULT_SUPPLIER : m_supplier;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(supplierId);\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"public int getSupplierId()\n {\n return(this.SupplierId);\n }",
"String getSupplierID();",
"public SupplierCard find_Supplier(Integer supplier_id) {\n return supplier_dao.find(supplier_id);\n }",
"@Override\n\tpublic Supplier getSupplierId(long supplierId) {\n\t\tString sql=\"SELECT * FROM supplier WHERE supplier_id=?\";\n\t\tRowMapper<Supplier> rowmapper=new BeanPropertyRowMapper<Supplier> (Supplier.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId);\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTenderRefeNoByUserId(\n\t\t\tString tenderReferenceNumber, long supplierId)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTenderRefeNoByUserId(\n\t\t\ttenderReferenceNumber, supplierId);\n\t}",
"public String getSupplier() {\n return supplier;\n }",
"public static GDFTenderSubmissionDetails fetchByGDFTendersByUserId_Last(\n\t\tlong supplierId,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().fetchByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end);\n\t}",
"public SupplierEntity getSupplierEntity(int supplierId) {\n\n SupplierEntity originEntity = new SupplierEntity();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n originEntity = (SupplierEntity)session.get(SupplierEntity.class, supplierId);\n tx.commit();\n if (originEntity != null) {\n log.warn(\"Retrieved supplier: \" + originEntity + \" with id of: \" + originEntity.getSupplierId());\n }\n } catch (HibernateException e) {\n\n if (tx!=null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return originEntity;\n\n }",
"public void setSupplierid(Integer supplierid) {\r\n this.supplierid = supplierid;\r\n }",
"public void setSupplierId(Integer supplierId) {\n this.supplierId = supplierId;\n }",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator);\n\t}",
"public static List<GDFTenderSubmissionDetails> findByGDFTendersByUserId(\n\t\tlong supplierId, int start, int end,\n\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator,\n\t\tboolean useFinderCache) {\n\n\t\treturn getPersistence().findByGDFTendersByUserId(\n\t\t\tsupplierId, start, end, orderByComparator, useFinderCache);\n\t}",
"public ShortlistedSuppliersTable getShortlistedSupplierData(JSONObject shortlistedSupplier, String shortlistedSupplierId) {\n try {\r\n if ( shortlistedSupplier != null) {\r\n\r\n String proposalId = shortlistedSupplier.getString(\"proposal_id\");\r\n String supplierId = shortlistedSupplier.getString(\"supplier_id\");\r\n String supplierContentTypeId = shortlistedSupplier.getString(\"content_type_id\");\r\n //String phase = shortlistedSupplier.getString(\"phase\");\r\n String phase = \"1\"; // TODO: 23/2/17 hardcoded. remove it\r\n String lastModified = getCurrentDate();\r\n return new ShortlistedSuppliersTable(shortlistedSupplierId, proposalId, supplierId, supplierContentTypeId, phase, lastModified);\r\n }\r\n }\r\n catch (Exception e){\r\n Log.d(\"getShortlistSuppData\", e.getMessage());\r\n }\r\n return null;\r\n }",
"public void setSupplierPartId(String supplierPartId) {\r\n this.supplierPartId = supplierPartId;\r\n }",
"@Override\n public List<KitchenSupplier> getKitchenSupplier(String supplierName) {\n Query query = em.createQuery(\"SELECT k FROM KitchenSupplier k WHERE k.ksupplierName = :inSupplierName\");\n query.setParameter(\"inSupplierName\", supplierName);\n List<KitchenSupplier> s = null;\n try {\n s = query.getResultList();\n } catch (NoResultException ex) {\n System.out.println(\"caught no result exception\");\n }\n return s;\n }",
"@Override\n public KitchenSupplier getKitchenSupplier(Long selectedSupplierId) {\n KitchenSupplier ks = em.find(KitchenSupplier.class, selectedSupplierId);\n return ks;\n }",
"@Override\n\tpublic DataTablesResponseInfo getSupplier() {\n\t\tDataTablesResponseInfo info = new DataTablesResponseInfo();\n\t\tinfo.setData(purchaseDao.getSupplier());\n\t\treturn info;\n\t}",
"public String supplierList(SupplierDetails s);",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"public void setSupplierId(Long supplierId) {\n\t\tthis.supplierId = supplierId;\n\t}",
"@Override\r\n\tpublic List<SenderdataMaster> fetchDataBasedonSupplier(List<String> incomingRefNbr, String supplier) {\n\t\treturn senderDataRepository.fetchDataBasedonSupplier(incomingRefNbr, supplier);\r\n\t}",
"public Short getSuppliersId() {\n return suppliersId;\n }",
"public static SupplierEntityExpert getSupplierEntityExpert(OADBTransaction txn)\n { \n return (SupplierEntityExpert)txn.getExpert(SupplierEOImpl.getDefinitionObject()); \n \n }",
"public static GDFTenderSubmissionDetails fetchByPrimaryKey(\n\t\tlong tenderSubRefID) {\n\n\t\treturn getPersistence().fetchByPrimaryKey(tenderSubRefID);\n\t}",
"public Supplier findSupplier(int suppliernum, boolean retrieveAssociation);",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"public Producer getProducerByEmailFetchingAddressFetchingProfile(String producerEmail);",
"public String getSuppliersInforId() {\n return suppliersInforId;\n }",
"public Producer getProducerByProducerEmailFetchingProfile(String producerEmail);",
"public jkt.hms.masters.business.MasStoreSupplier getSupplier () {\n\t\treturn supplier;\n\t}",
"public List getEpSupplier() {\n\t\treturn getHibernateTemplate().find(\" from JSupplierNh \");\n\t}",
"List<PurchaseOrderHeader> getAllOutstandingAndConfirmedPurchaseOrderHeaderPerOrguIdAndSupplierId(long supplierId);",
"SupplierInfo selectByPrimaryKey(Long id);",
"ProductPurchaseItem getSupplierProductPurchaseItemPerCatalogNo(long suppId, String catalogNo);",
"public void setSupplierId(int SupplierIdIn)\n {\n this.SupplierId = SupplierIdIn;\n }",
"public process get_first() {\n\t\treturn queue.getFirst();\n\t}",
"@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}",
"@Override\r\n\tpublic int hashCode() {\r\n\t\tfinal int prime = 31;\r\n\t\tint result = 1;\r\n\t\tresult = prime * result + ((supplierID == null) ? 0 : supplierID.hashCode());\r\n\t\treturn result;\r\n\t}",
"public static GDFTenderSubmissionDetails findByGDFTendersByUserId_Last(\n\t\t\tlong supplierId,\n\t\t\tOrderByComparator<GDFTenderSubmissionDetails> orderByComparator)\n\t\tthrows com.gdf.technical.bids.exception.\n\t\t\tNoSuchGDFTenderSubmissionDetailsException {\n\n\t\treturn getPersistence().findByGDFTendersByUserId_Last(\n\t\t\tsupplierId, orderByComparator);\n\t}",
"public Map getAllBillBySuppliers1(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers1(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\t\t\tbean.setBillNo(o[0].toString());\r\n\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public jq_Field first() { return _field; }",
"public Opportunities[] findWhereSupplierIdEquals(int supplierId) throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE supplier_id = ? ORDER BY supplier_id\", new Object[] { new Integer(supplierId) } );\r\n\t}",
"private WorldDelivery getNextDelivery(String droneID, Set<WorldDelivery> undeliveredDeliveries){\n\n\t\tWorldDelivery lowestSeqNbDelivery = null;\n\t\tlong lowestSeqNb = Long.MAX_VALUE;\n\t\tfor(WorldDelivery delivery: undeliveredDeliveries){\n\t\t\t//check if this package is destined for the currently selected drone\n\t\t\tif(!droneID.equals(delivery.getDeliveryDroneID())){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tlong currentSeqNb = delivery.getSequenceNumber();\n\n\t\t\t//and also if the sequence number is lower\n\t\t\tif( currentSeqNb < lowestSeqNb){\n\t\t\t\tlowestSeqNb = currentSeqNb;\n\t\t\t\tlowestSeqNbDelivery = delivery;\n\t\t\t}\n\t\t}\n\n\t\treturn lowestSeqNbDelivery;\n\t}",
"public List<SupplierEntity> getAllSuppliers() {\n\n List<SupplierEntity> suppliers = new ArrayList<SupplierEntity>();\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = session.createQuery(\"FROM SupplierEntity ORDER BY supplierId\").list();\n tx.commit();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n e.printStackTrace();\n\n } finally {\n\n session.close();\n\n }\n\n return suppliers;\n\n }",
"@Override\n public List<Object> getGroupMember(String name, int supplierId) {\n return null;\n }",
"public String getScientificNameAuthorship() {\n return scientificNameAuthorship;\n }",
"public static Optional<Student> getStudentWithSmallestGpa() {\n\t\treturn StudentDb.getAllStudents().stream()\n\t\t\t\t.collect(minBy(Comparator.comparing(Student::getGpa)));\n\t}",
"public Producer getProducerByEmailFetchingProfileFetchingAuthoritiesFetchingAddress(String producerEmail);",
"public String getSupplierCommodity() {\n return supplierCommodity;\n }",
"public Question getFirstQ()\n {\n return questionList.get(0);\n }",
"public RowIterator getSupplierSiteEO()\n {\n return (RowIterator)getAttributeInternal(SUPPLIERSITEEO);\n }",
"public Producer getProducerByProducerIDFetchingAddressFetchingProducts(String producerID);",
"public void actionPerformed(ActionEvent e){\n\t\t\t\ttry{\n\t\t\t\t\tif(suppliers.size() >= 1){\n\t\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(suppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\t\tsupplierJTextArea.setText(\" Supplier Id: \"+supplier.getId()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Name: \"+supplier.getName()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Address: \"+supplier.getAddress()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Email: \"+supplier.getEmail()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Phone: \"+supplier.getPhone()\n\t\t\t\t\t\t\t\t\t\t+\"\\n Delivery Time: \"+supplier.getDaysToDeliver());\n\t\t\t\t\t\t\t\tsuppIdCombo.setSelectedIndex(0);\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No Suppliers Found\");\n\t\t\t\t\t}\n\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public HashMap<Integer, Float> getProductsForSupplier(int supplierId) {\n\t\tHashMap<Integer, Float> map = new HashMap<Integer, Float>();\n\t\tString sql = \"select product_id, offer_price from supplier_products where supplier_id = ? order by product_id asc\";\n\t\ttry (Connection connection = DriverManager.getConnection(URL, user, password);\n\t\t\t\tPreparedStatement statement = connection.prepareStatement(sql)) {\n\t\t\tstatement.setInt(1, supplierId);\n\t\t\tResultSet res = statement.executeQuery();\n\n\t\t\twhile (res.next()) {\n\t\t\t\tmap.put(res.getInt(1), res.getFloat(2));\n\t\t\t}\n\t\t\treturn map;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Couldn't find a supplier with the id: \" + supplierId);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic SupplierView getSupplierBySupplierIdAndProductId(long supplierId, long productId) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,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 WHERE supplier_id=? and product_id=?\";\n\t\tRowMapper<SupplierView> rowmapper=new BeanPropertyRowMapper<SupplierView> (SupplierView.class);\n\t\treturn this.getJdbcTemplate().queryForObject(sql, rowmapper, supplierId, productId);\n\t}",
"public void setSupplierNum(String supplierNum) {\n this.supplierNum = supplierNum == null ? null : supplierNum.trim();\n }",
"public String getFirstP() {\n\t\treturn firstFieldP.getText();\n\t}",
"public String first() {\n\t\t\n\t\treturn \"\\n#1: \" + contacts[0].toString();\n\t}",
"public static WebElement btn_clickCompareSupplier() throws Exception{\r\n \ttry{\r\n \t\telement = driver.findElement(By.xpath(\"(//*[contains(text(),'Compare Supplier')])[position()=1]\"));\r\n \t\t\r\n \t}catch(Exception e){\r\n \t\tthrow(e);\r\n \t}\r\n \treturn element;\r\n }",
"List<ProductPurchaseItem> getAllSupplierProductPurchaseItems(long suppId, String searchStr);",
"public Map getAllBillBySuppliers(String supplierId) {\n\t\tSupplierDetailDao dao = new SupplierDetailDao();\r\n\t\tList list = dao.getAllBillBySuppliers(supplierId);\r\n\t\tMap map = new HashMap();\r\n\t\tfor (int i = 0; i < list.size(); i++)\r\n\t\t{\r\n\t\t\tObject[] o = (Object[]) list.get(i);\r\n\t\t\tcom.smt.bean.GetSupplierDetails bean = new com.smt.bean.GetSupplierDetails();\r\n\t\t\tSystem.out.println(Arrays.toString(o));\r\n\r\n\t\t\tString pendingBal = o[2].toString();\r\n\t\t\tif (pendingBal.equals(\"0\")) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tbean.setBillNo(o[0].toString());\r\n\t\t\t\t//bean.setItemName(o[0].toString());\r\n\t\t\t\tbean.setSize(o[1].toString());\r\n\t\t\t\tbean.setBarcode(o[2].toString());\t\t\t\r\n\t\t\t}\r\n\t\t\t// bean.setTotalAmount((Double)o[1]);\r\n\t\t\tSystem.out.println(\"***************\" + o[0]);\r\n\t\t\tmap.put(bean.getBillNo(), bean);\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}",
"public T getFirst() {\n\treturn _front.getCargo();\n }",
"public Supplier findSupplierById(int id) throws NameValidationException, AddressValidationException, ZipCodeValidationException, CityValidationException, PhoneValidationException, EmailValidationException {\n\t\tResultSet rs;\n\t\tSupplier res = null;\n\t\ttry {\n\t\t\tfindSupplierById.setInt(1, id);\n\t\t\trs = findSupplierById.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tres = buildSupplierObject(rs);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn res;\n\t}",
"public void setSupplierName(String supplierName) {\n this.supplierName = supplierName == null ? null : supplierName.trim();\n }",
"List<PurchaseOrderHeader> getAllPurchaseOrderHeaderPerOrguIdAndSupplierIdAndStatusCode(long supplierId);",
"public Grupomuscular getFirstGrupomuscular()\r\n\t{\r\n\t\tif ((getGrupomusculars() != null) && !getGrupomusculars().isEmpty())\r\n\t\t{\r\n\t\t\treturn getGrupomusculars().get(FIRST);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<SupplierView> getSupplierByName(String supplierName) {\n\t\tString sql=\"SELECT s.supplier_id, s.supplier_name, s.supplier_type,s.image,s.permanent_address, s.temporary_address,h.quantity,h.cost,h.buy_date,h.supplier_unique_id,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 WHERE supplier_name=?\";\n\t\tList<Map<String, Object>> row=getJdbcTemplate().queryForList(sql, supplierName);\n\t\tList<SupplierView> supplier_view=new ArrayList<SupplierView>();\n\t\tfor(Map<String, Object> rows:row)\n\t\t{\n\t\t\tSupplierView obj=new SupplierView();\n\t\t\tobj.setSupplierId((int)rows.get(\"supplier_id\"));\n\t\t\tobj.setSupplierName((String)rows.get(\"supplier_name\"));\n\t\t\tobj.setSupplierType((String)rows.get(\"supplier_type\"));\n\t\t\tobj.setImage((String)rows.get(\"image\"));\n\t\t\tobj.setPermanentAddress((String)rows.get(\"permanent_address\"));\n\t\t\tobj.setTemporaryAddress((String)rows.get(\"temporary_address\"));\n\t\t\tobj.setQuantity((int)rows.get(\"quantity\"));\n obj.setCost((double)rows.get(\"cost\"));\n obj.setSupplierUniqueId((int)rows.get(\"supplier_unique_id\"));\n obj.setBuyDate((Date)rows.get(\"buy_date\"));\n obj.setProductId((long)rows.get(\"product_id\"));\n obj.setProductName((String)rows.get(\"product_name\"));\n obj.setUsername((String) rows.get(\"username\"));\n supplier_view.add(obj);\n\t\t}\n\t\treturn supplier_view;\n\t}",
"public void actionPerformed(ActionEvent e){\n\t\t\t\ttry{\n\t\t\t\t\tfor(Supplier supplier: suppliers){\n\t\t\t\t\t\tif(supplier.getId() == Integer.parseInt(editSuppIdCombo.getSelectedItem().toString())){\n\t\t\t\t\t\t\teditSupplierName.setText(supplier.getName());\n\t\t\t\t\t\t\teditSupplierAddress.setText(supplier.getAddress());\n\t\t\t\t\t\t\teditSupplierEmail.setText(supplier.getEmail());\n\t\t\t\t\t\t\teditSupplierPhone.setText(Integer.toString(supplier.getPhone()));\n\t\t\t\t\t\t\teditSupplierDelivery.setText(Integer.toString(supplier.getDaysToDeliver()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}catch(NumberFormatException nfe){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select a Valid Supplier.\");\n\t\t\t\t}\n\t\t\t}",
"public GPoint first() {\n\t\tif (points.isEmpty()) {\n\t\t\tthrow new IllegalStateException(\"line group is empty\");\n\t\t}\n\t\treturn points.get(0);\n\t}",
"@Override\n\tpublic int getNoofSupplier(String supplierName) {\n\t\t String sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}",
"@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}",
"public static List<GDFTenderSubmissionDetails> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"protected ItineraryPricingInfoData getFirstAvailableItineraryPricingInfo(final PricedItineraryData pricedItinerary)\n\t{\n\t\tfor (final ItineraryPricingInfoData itineraryPricingInfoData : pricedItinerary.getItineraryPricingInfos())\n\t\t{\n\t\t\tif (itineraryPricingInfoData.isAvailable())\n\t\t\t{\n\t\t\t\tfinal boolean isAvailable = itineraryPricingInfoData.getBundleTemplates().stream()\n\t\t\t\t\t\t.allMatch(TravelBundleTemplateData::isAvailable);\n\t\t\t\tif (isAvailable)\n\t\t\t\t{\n\t\t\t\t\treturn itineraryPricingInfoData;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static GDFTenderSubmissionDetails fetchByGDF_Tender_Reference_Number(\n\t\tString tenderReferenceNumber) {\n\n\t\treturn getPersistence().fetchByGDF_Tender_Reference_Number(\n\t\t\ttenderReferenceNumber);\n\t}",
"public Object getFirst() {\n if (first == null)\n return null;\n return first.getInfo();\n }",
"private static StockItem searchForProductOffered(Collection<StockItem> offeredStockItems, ProductAmountTO currentRequiredProduct) {\t\n\t\tIterator<StockItem> stockItemIterator = offeredStockItems.iterator();\n\t\tStockItem currentStockItem;\n\t\twhile(stockItemIterator.hasNext()) {\n\t\t\tcurrentStockItem = stockItemIterator.next();\n\t\t\tProductTO productTO = FillTransferObjects.fillProductTO(currentStockItem.getProduct());\n\t\t\tif(productTO.equals(currentRequiredProduct.getProduct())) {\n\t\t\t\treturn currentStockItem;\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\treturn null;\n\t}",
"@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}",
"@Override\r\n\t\tpublic E getFirst() {\n\t\t\treturn pair.getFirst();\r\n\t\t}",
"private static Map<String, Double> extractBestSuppliers (Map<Supplier, Double> supplierScores, int numResults) {\n\t\tMap<Supplier, Double> rankedResults = sortDescending(supplierScores);\n\t\tIterable<Entry<Supplier, Double>> firstEntries =\n\t\t\t\tIterables.limit(rankedResults.entrySet(), numResults);\n\t\t\n\t\t//return the [numResults] best suppliers according to highest scores\n\t\tMap<String, Double> finalSupplierMap = new LinkedHashMap<String, Double>();\t\t\n\t\tfor (Entry<Supplier, Double> e : firstEntries) {\n\t\t\tfinalSupplierMap.put(e.getKey().getId(), e.getValue());\n\t\t}\n\t\t\n\t\treturn finalSupplierMap;\n\n\t}",
"public static void removeByGDFTendersByUserId(long supplierId) {\n\t\tgetPersistence().removeByGDFTendersByUserId(supplierId);\n\t}",
"public E getFirst();",
"public List<SupplierEntity> getSuppliersExclType(String typeName) {\n\n List<SupplierEntity> suppliers = new ArrayList<>();\n\n Session session = SessionFactoryProvider.getSessionFactory().openSession();\n\n Criteria criteria = session.createCriteria(SupplierEntity.class);\n criteria.createCriteria(\"supplierType\").add(Restrictions.ne(\"name\", typeName));\n\n // Language lang = (Language)super.findByCriteria(criteria).get(0);\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n suppliers = criteria.list();\n\n } catch (HibernateException e) {\n\n if (tx != null) {\n tx.rollback();\n }\n\n log.error(e.getStackTrace());\n\n } finally {\n session.close();\n }\n\n return suppliers;\n\n }",
"protected Object getReplierID(){\n IGroup g = getLocalGroup();\n\n int range = g.getGroupSize();\n\n Object sortedReplierID = null;\n /* While a replier has not been selected.*/\n while(sortedReplierID == null){\n\n /* Sort a process */\n int pindex = (int) (Math.random()* range);\n\n IProcess p = (IProcess) g.getMembers().get(pindex);\n\n /* If the selected process isn't the primary and isn't the local replica then it'll be selected.*/\n if(!isPrimary(p) && !p.getID().equals(getLocalServerID())){\n sortedReplierID = p.getID();\n }\n }\n return sortedReplierID;\n }",
"EcsSupplierRebate selectByPrimaryKey(Integer rebateId);"
]
| [
"0.64219964",
"0.6025004",
"0.5980941",
"0.57847035",
"0.577601",
"0.5662271",
"0.56363666",
"0.56301844",
"0.56284136",
"0.56201804",
"0.55909956",
"0.55746275",
"0.5561343",
"0.5501417",
"0.54676026",
"0.5447673",
"0.5341878",
"0.5301356",
"0.5294478",
"0.52418995",
"0.5231715",
"0.5196396",
"0.5169328",
"0.51599014",
"0.51303333",
"0.5091411",
"0.50761163",
"0.5058112",
"0.50532985",
"0.50318545",
"0.5010239",
"0.49739084",
"0.49435207",
"0.49352843",
"0.4902923",
"0.49020526",
"0.48784488",
"0.4871546",
"0.48712522",
"0.485175",
"0.4839583",
"0.4829992",
"0.4812983",
"0.48061672",
"0.47656867",
"0.47587702",
"0.47378066",
"0.47354108",
"0.4732456",
"0.47165924",
"0.47106144",
"0.47101656",
"0.47070605",
"0.4693202",
"0.46844643",
"0.4660924",
"0.4629481",
"0.4622388",
"0.46190298",
"0.46158347",
"0.4601805",
"0.45974398",
"0.45750007",
"0.45699534",
"0.45660996",
"0.4564267",
"0.4559173",
"0.45486447",
"0.4512345",
"0.45029673",
"0.44960308",
"0.449294",
"0.44900343",
"0.44821632",
"0.44734207",
"0.44723523",
"0.44565994",
"0.44509807",
"0.44433805",
"0.44383007",
"0.44234213",
"0.4420583",
"0.44184306",
"0.44184065",
"0.4412926",
"0.4403005",
"0.43862996",
"0.43852895",
"0.43775377",
"0.4368313",
"0.43681133",
"0.43538937",
"0.43535146",
"0.43535146",
"0.43498603",
"0.43421447",
"0.43396634",
"0.4337202",
"0.43284687",
"0.4319464"
]
| 0.6933584 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.