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: b
|
public final boolean mo118722b() {
MQTTClient a = MQTTClientManager.m55413a(C6969H.m41409d("G4DA6F33B8A1C9F16C522B96DDCD1"));
if (a != null) {
return a.mo57253a();
}
return false;
}
|
{
"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: b
|
public final void mo118720b(String str, String str2) {
C32569u.m150519b(str, C6969H.m41409d("G6486D818BA228328F506B94C"));
mo118714a(str);
mo118719b(str2);
MqttMonitor.f97502b.mo118674b();
FlowControlHelper.f97498a.mo118670a();
MQTTTopic<EventMessage> oVar = f97550g;
if (oVar != null) {
oVar.mo57280a(f97552i);
}
MQTTTopic<EventMessage> oVar2 = f97550g;
if (oVar2 != null) {
oVar2.mo57281b(true);
}
MQTTTopic<EventMessage> oVar3 = f97551h;
if (oVar3 != null) {
oVar3.mo57280a(f97552i);
}
MQTTTopic<EventMessage> oVar4 = f97551h;
if (oVar4 != null) {
oVar4.mo57281b(true);
}
f97547d.clear();
f97548e.clear();
f97549f = 0;
VideoXOnlineLog.m139072a(VideoXOnlineLog.f101073b, "MqttHelper stop()", null, 2, null);
}
|
{
"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: a
|
public final void mo118713a(EventMessage abVar) {
C32569u.m150519b(abVar, C6969H.m41409d("G6C95D014AB1DAE3AF50F974D"));
if (!m134904a(abVar, C6969H.m41409d("G6492C10E"))) {
VideoXOnlineLog abVar2 = VideoXOnlineLog.f101073b;
String abVar3 = abVar.toString();
C32569u.m150513a((Object) abVar3, C6969H.m41409d("G6C95D014AB1DAE3AF50F974DBCF1CCE47D91DC14B878E2"));
abVar2.mo121420a("msg, mqtt , 消息 : {}", abVar3);
m134907b(abVar);
}
}
|
{
"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: c
|
public final void mo118723c(String str) {
EventMessage abVar;
C32569u.m150519b(str, C6969H.m41409d("G7A97C737AC37"));
EventMessage abVar2 = null;
try {
abVar = EventMessage.f96677a.decode(Base64.decode(str, 0));
} catch (Exception e) {
VideoXOnlineLog.f101073b.mo121420a("link api 轮询 msg decode error : {}", String.valueOf(e.getMessage()));
abVar = abVar2;
}
if (abVar != null && !f97544a.m134904a(abVar, C6969H.m41409d("G658ADB11FF31BB20"))) {
VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;
String abVar4 = abVar.toString();
C32569u.m150513a((Object) abVar4, C6969H.m41409d("G60979B0EB003BF3BEF009700BB"));
abVar3.mo121420a("msg, link api , 消息 : {}", abVar4);
f97544a.m134907b(abVar);
}
}
|
{
"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
|
/ renamed from: a
|
public final void mo118716a(List<String> list) {
EventMessage abVar;
C32569u.m150519b(list, C6969H.m41409d("G658AC60E"));
Iterator<T> it = list.iterator();
while (it.hasNext()) {
EventMessage abVar2 = null;
try {
abVar = EventMessage.f96677a.decode(Base64.decode(it.next(), 0));
} catch (Exception e) {
VideoXOnlineLog.f101073b.mo121420a("anchor api 轮询 msg decode error : {}", String.valueOf(e.getMessage()));
abVar = abVar2;
}
if (abVar != null && !f97544a.m134904a(abVar, C6969H.m41409d("G688DD612B022EB28F607"))) {
VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;
String abVar4 = abVar.toString();
C32569u.m150513a((Object) abVar4, C6969H.m41409d("G60979B0EB003BF3BEF009700BB"));
abVar3.mo121420a("msg, anchor api , 消息 : {}", abVar4);
f97544a.m134907b(abVar);
}
}
}
|
{
"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 final void mo118721b(List<String> list) {
EventMessage abVar;
C32569u.m150519b(list, C6969H.m41409d("G658AC60E"));
Iterator<T> it = list.iterator();
while (it.hasNext()) {
EventMessage abVar2 = null;
try {
abVar = EventMessage.f96677a.decode(Base64.decode(it.next(), 0));
} catch (Exception e) {
VideoXOnlineLog.f101073b.mo121420a("audience api 轮询 msg decode error : {}", String.valueOf(e.getMessage()));
abVar = abVar2;
}
if (abVar != null && abVar.f96687k.longValue() >= f97549f && !f97544a.m134904a(abVar, C6969H.m41409d("G6896D113BA3EA82CA60F8041"))) {
VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;
String abVar4 = abVar.toString();
C32569u.m150513a((Object) abVar4, C6969H.m41409d("G60979B0EB003BF3BEF009700BB"));
abVar3.mo121420a("msg, audience api , 消息 : {}", abVar4);
f97544a.m134907b(abVar);
}
}
}
|
{
"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: a
|
public static /* synthetic */ void m134903a(MqttHelper fVar, List list, boolean z, int i, Object obj) {
if ((i & 2) != 0) {
z = true;
}
fVar.mo118717a(list, z);
}
|
{
"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 final void mo118717a(List<String> list, boolean z) {
EventMessage abVar;
C32569u.m150519b(list, C6969H.m41409d("G658AC60E"));
Iterator<T> it = list.iterator();
while (it.hasNext()) {
EventMessage abVar2 = null;
try {
abVar = EventMessage.f96677a.decode(Base64.decode(it.next(), 0));
} catch (Exception e) {
VideoXOnlineLog.f101073b.mo121420a(C6969H.m41409d("G7B86D61FB124EB24F509D04CF7E6CCD36CC3D008AD3FB969BC4E8B55"), String.valueOf(e.getMessage()));
abVar = abVar2;
}
if (abVar != null && (!z || !f97544a.m134904a(abVar, C6969H.m41409d("G7B86D61FB124EB28F607")))) {
VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;
String abVar4 = abVar.toString();
C32569u.m150513a((Object) abVar4, C6969H.m41409d("G60979B0EB003BF3BEF009700BB"));
abVar3.mo121420a("msg, recent api , 消息 : {}", abVar4);
f97544a.m134907b(abVar);
}
}
}
|
{
"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
|
private final boolean m134904a(EventMessage abVar, String str) {
Drama drama;
if (abVar.f96689m != null) {
String valueOf = String.valueOf(abVar.f96689m.longValue());
Theater a = StaticProperty.f99549a.mo120385a();
if (!TextUtils.equals(valueOf, (a == null || (drama = a.getDrama()) == null) ? null : drama.getId())) {
String abVar2 = abVar.toString();
C32569u.m150513a((Object) abVar2, C6969H.m41409d("G6C95D014AB1DAE3AF50F974DBCF1CCE47D91DC14B878E2"));
VideoXOnlineLog.f101073b.mo121420a("(filterMsg) drama_id 不匹配, " + str + " , 消息 : {}", abVar2);
return true;
}
}
if (abVar.f96690n == null) {
return false;
}
Integer num = abVar.f96690n;
int value = FilterType.EventFilter.getValue();
if (num != null && num.intValue() == value) {
MqttLinkedHashMap<String> gVar = f97548e;
String str2 = abVar.f96685i;
C32569u.m150513a((Object) str2, C6969H.m41409d("G6C95D014AB1DAE3AF50F974DBCE0D5D26797EA13BB"));
if (gVar.mo118727a(str2)) {
String abVar3 = abVar.toString();
C32569u.m150513a((Object) abVar3, C6969H.m41409d("G6C95D014AB1DAE3AF50F974DBCF1CCE47D91DC14B878E2"));
VideoXOnlineLog.f101073b.mo121420a("(filterMsg) eventFilterMap 已经存在消息,过滤, " + str + " , 消息 : {}", abVar3);
return true;
}
} else {
Integer num2 = abVar.f96690n;
int value2 = FilterType.BulletFilter.getValue();
if (num2 != null && num2.intValue() == value2) {
MqttLinkedHashMap<String> gVar2 = f97547d;
String str3 = abVar.f96685i;
C32569u.m150513a((Object) str3, C6969H.m41409d("G6C95D014AB1DAE3AF50F974DBCE0D5D26797EA13BB"));
if (gVar2.mo118727a(str3)) {
String abVar4 = abVar.toString();
C32569u.m150513a((Object) abVar4, C6969H.m41409d("G6C95D014AB1DAE3AF50F974DBCF1CCE47D91DC14B878E2"));
VideoXOnlineLog.f101073b.mo121420a("(filterMsg) bulletFilterMap 已经存在消息, 过滤, " + str + " , 消息 : {}", abVar4);
return true;
}
}
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }",
"private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}",
"public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}",
"public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }",
"public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }",
"public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }",
"public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }",
"public void a() {\n ((a) this.a).a();\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}",
"public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}",
"public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}",
"public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}",
"public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}",
"interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}",
"public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}",
"public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}",
"public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}",
"void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}",
"public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }",
"public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}",
"public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}",
"public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }",
"public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}",
"public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}",
"public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}",
"public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}",
"public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}",
"public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}",
"public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}",
"public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}",
"public 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
|
private final void m134907b(EventMessage abVar) {
C28082z zVar = abVar.f96686j;
Integer num = abVar.f96684h;
int value = EventCode.ApplyForConnect.getValue();
if (num != null && num.intValue() == value) {
MqttBus a = MqttBus.f97541a.mo118711a();
ApplyForConnectEvent bVar = zVar.f97419p;
C32569u.m150513a((Object) bVar, C6969H.m41409d("G6C95D014AB7EAA39F6028977F4EAD1E86A8CDB14BA33BF"));
a.mo118710a(bVar);
return;
}
int value2 = EventCode.PermitConnect.getValue();
if (num != null && num.intValue() == value2) {
MqttBus a2 = MqttBus.f97541a.mo118711a();
PermitConnectEvent asVar = zVar.f97420q;
C32569u.m150513a((Object) asVar, C6969H.m41409d("G6C95D014AB7EBB2CF403995CCDE6CCD96786D60E"));
a2.mo118710a(asVar);
return;
}
int value3 = EventCode.RefuseConnect.getValue();
if (num != null && num.intValue() == value3) {
MqttBus a3 = MqttBus.f97541a.mo118711a();
RefuseConnectEvent axVar = zVar.f97428y;
C32569u.m150513a((Object) axVar, C6969H.m41409d("G6C95D014AB7EB92CE01B834DCDE6CCD96786D60E"));
a3.mo118710a(axVar);
return;
}
int value4 = EventCode.BanConnection.getValue();
if (num != null && num.intValue() == value4) {
MqttBus a4 = MqttBus.f97541a.mo118711a();
BanConnectionEvent cVar = zVar.f97429z;
C32569u.m150513a((Object) cVar, C6969H.m41409d("G6C95D014AB7EA928E8319347FCEBC6D47D8ADA14"));
a4.mo118710a(cVar);
return;
}
int value5 = EventCode.Disconnect.getValue();
if (num != null && num.intValue() == value5) {
MqttBus a5 = MqttBus.f97541a.mo118711a();
DisconnectEvent nVar = zVar.f97372A;
C32569u.m150513a((Object) nVar, C6969H.m41409d("G6C95D014AB7EAF20F50D9F46FCE0C0C3"));
a5.mo118710a(nVar);
return;
}
int value6 = EventCode.ConfirmConnect.getValue();
if (num != null && num.intValue() == value6) {
MqttBus a6 = MqttBus.f97541a.mo118711a();
ConfirmConnectEvent eVar = zVar.f97373B;
C32569u.m150513a((Object) eVar, C6969H.m41409d("G6C95D014AB7EA826E808995AFFDAC0D8678DD019AB"));
a6.mo118710a(eVar);
return;
}
int value7 = EventCode.ConnectTimeout.getValue();
if (num != null && num.intValue() == value7) {
MqttBus a7 = MqttBus.f97541a.mo118711a();
ConnectTimeoutEvent hVar = zVar.f97378G;
C32569u.m150513a((Object) hVar, C6969H.m41409d("G6C95D014AB7EA826E800954BE6DAD7DE6486DA0FAB"));
a7.mo118710a(hVar);
return;
}
int value8 = EventCode.ConnectSuccess.getValue();
if (num != null && num.intValue() == value8) {
MqttBus a8 = MqttBus.f97541a.mo118711a();
ConnectSuccessEvent gVar = zVar.f97421r;
C32569u.m150513a((Object) gVar, C6969H.m41409d("G6C95D014AB7EA826E800954BE6DAD0C26A80D009AC"));
a8.mo118710a(gVar);
return;
}
int value9 = EventCode.ConnectExit.getValue();
if (num != null && num.intValue() == value9) {
MqttBus a9 = MqttBus.f97541a.mo118711a();
ConnectExitEvent fVar = zVar.f97422s;
C32569u.m150513a((Object) fVar, C6969H.m41409d("G6C95D014AB7EA826E800954BE6DAC6CF6097"));
a9.mo118710a(fVar);
return;
}
int value10 = EventCode.NewBullet.getValue();
if (num != null && num.intValue() == value10) {
MqttBus a10 = MqttBus.f97541a.mo118711a();
NewBulletEvent anVar = zVar.f97405b;
C32569u.m150513a((Object) anVar, C6969H.m41409d("G6C95D014AB7EA52CF131925DFEE9C6C3"));
Integer num2 = abVar.f96691o;
a10.mo118710a(new CommentNormal(anVar, num2 != null ? num2.intValue() : 0));
return;
}
int value11 = EventCode.EnterTheater.getValue();
if (num == null || num.intValue() != value11) {
int value12 = EventCode.NewGift.getValue();
if (num != null && num.intValue() == value12) {
MqttBus a11 = MqttBus.f97541a.mo118711a();
NewGiftEvent aoVar = zVar.f97407d;
C32569u.m150513a((Object) aoVar, C6969H.m41409d("G6C95D014AB7EA52CF1319741F4F1"));
a11.mo118710a(aoVar);
return;
}
int value13 = EventCode.UpdateContributors.getValue();
if (num == null || num.intValue() != value13) {
int value14 = EventCode.UpdateHotValue.getValue();
if (num != null && num.intValue() == value14) {
MqttBus a12 = MqttBus.f97541a.mo118711a();
UpdateHotValueEvent bmVar = zVar.f97409f;
C32569u.m150513a((Object) bmVar, C6969H.m41409d("G6C95D014AB7EBE39E20F844DCDEDCCC35695D416AA35"));
a12.mo118710a(bmVar);
return;
}
int value15 = EventCode.NewStatement.getValue();
if (num != null && num.intValue() == value15) {
MqttBus a13 = MqttBus.f97541a.mo118711a();
NewStatementEvent aqVar = zVar.f97410g;
C32569u.m150513a((Object) aqVar, C6969H.m41409d("G6C95D014AB7EA52CF131835CF3F1C6DA6C8DC1"));
a13.mo118710a(aqVar);
return;
}
int value16 = EventCode.Interact.getValue();
if (num != null && num.intValue() == value16) {
MqttBus a14 = MqttBus.f97541a.mo118711a();
InteractEvent ahVar = zVar.f97411h;
C32569u.m150513a((Object) ahVar, C6969H.m41409d("G6C95D014AB7EA227F20B8249F1F1"));
a14.mo118710a(ahVar);
return;
}
int value17 = EventCode.ReplyStatement.getValue();
if (num != null && num.intValue() == value17) {
MqttBus a15 = MqttBus.f97541a.mo118711a();
ReplyStatementEvent azVar = zVar.f97417n;
C32569u.m150513a((Object) azVar, C6969H.m41409d("G6C95D014AB7EB92CF6028977E1F1C2C36C8ED014AB"));
a15.mo118710a(azVar);
return;
}
int value18 = EventCode.RepliedStatement.getValue();
if (num != null && num.intValue() == value18) {
MqttBus a16 = MqttBus.f97541a.mo118711a();
RepliedStatementEvent ayVar = zVar.f97418o;
C32569u.m150513a((Object) ayVar, C6969H.m41409d("G6C95D014AB7EB92CF602994DF6DAD0C36897D017BA3EBF"));
a16.mo118710a(ayVar);
return;
}
int value19 = EventCode.TalkStart.getValue();
if (num != null && num.intValue() == value19) {
MqttBus a17 = MqttBus.f97541a.mo118711a();
TalkStartEvent beVar = zVar.f97423t;
C32569u.m150513a((Object) beVar, C6969H.m41409d("G6C95D014AB7EBF28EA05AF5BE6E4D1C3"));
a17.mo118710a(beVar);
return;
}
int value20 = EventCode.TalkEnd.getValue();
if (num != null && num.intValue() == value20) {
MqttBus a18 = MqttBus.f97541a.mo118711a();
TalkEndEvent bdVar = zVar.f97424u;
C32569u.m150513a((Object) bdVar, C6969H.m41409d("G6C95D014AB7EBF28EA05AF4DFCE1"));
a18.mo118710a(bdVar);
return;
}
int value21 = EventCode.DramaStart.getValue();
if (num != null && num.intValue() == value21) {
MqttBus a19 = MqttBus.f97541a.mo118711a();
DramaStartEvent wVar = zVar.f97425v;
C32569u.m150513a((Object) wVar, C6969H.m41409d("G6C95D014AB7EAF3BE7039177E1F1C2C57D"));
a19.mo118710a(wVar);
return;
}
int value22 = EventCode.DramaEnd.getValue();
if (num != null && num.intValue() == value22) {
MqttBus a20 = MqttBus.f97541a.mo118711a();
DramaEndEvent sVar = zVar.f97426w;
C32569u.m150513a((Object) sVar, C6969H.m41409d("G6C95D014AB7EAF3BE7039177F7EBC7"));
a20.mo118710a(sVar);
return;
}
int value23 = EventCode.ConnectorChange.getValue();
if (num != null && num.intValue() == value23) {
MqttBus a21 = MqttBus.f97541a.mo118711a();
ConnectorChangeEvent jVar = zVar.f97427x;
C32569u.m150513a((Object) jVar, C6969H.m41409d("G6C95D014AB7EA826E800954BE6EAD1E86A8BD414B835"));
a21.mo118710a(jVar);
return;
}
int value24 = EventCode.UpdateDramaIncome.getValue();
if (num != null && num.intValue() == value24) {
MqttBus a22 = MqttBus.f97541a.mo118711a();
UpdateDramaIncomeEvent bjVar = zVar.f97412i;
C32569u.m150513a((Object) bjVar, C6969H.m41409d("G6C95D014AB7EBE39E20F844DCDE1D1D66482EA13B133A424E3"));
a22.mo118710a(bjVar);
return;
}
int value25 = EventCode.DramaMustClose.getValue();
if (num != null && num.intValue() == value25) {
MqttBus a23 = MqttBus.f97541a.mo118711a();
DramaMustCloseEvent uVar = zVar.f97374C;
C32569u.m150513a((Object) uVar, C6969H.m41409d("G6C95D014AB7EAF3BE7039177FFF0D0C35680D915AC35"));
a23.mo118710a(uVar);
return;
}
int value26 = EventCode.TheaterMustLeave.getValue();
if (num != null && num.intValue() == value26) {
MqttBus a24 = MqttBus.f97541a.mo118711a();
TheaterMustLeaveEvent bgVar = zVar.f97375D;
C32569u.m150513a((Object) bgVar, C6969H.m41409d("G6C95D014AB7EBF21E30F844DE0DACEC27A97EA16BA31BD2C"));
a24.mo118710a(bgVar);
return;
}
int value27 = EventCode.FollowActor.getValue();
if (num != null && num.intValue() == value27) {
MqttBus a25 = MqttBus.f97541a.mo118711a();
FollowActorEvent agVar = zVar.f97379H;
C32569u.m150513a((Object) agVar, C6969H.m41409d("G6C95D014AB7EAD26EA029F5FCDE4C0C36691"));
a25.mo118710a(agVar);
return;
}
int value28 = EventCode.EjectMember.getValue();
if (num != null && num.intValue() == value28) {
MqttBus a26 = MqttBus.f97541a.mo118711a();
EjectMemberEvent xVar = zVar.f97382K;
C32569u.m150513a((Object) xVar, C6969H.m41409d("G6C95D014AB7EAE23E30D8477FFE0CED56C91"));
a26.mo118710a(xVar);
return;
}
int value29 = EventCode.QuietMember.getValue();
if (num != null && num.intValue() == value29) {
MqttBus a27 = MqttBus.f97541a.mo118711a();
QuietMemberEvent awVar = zVar.f97380I;
C32569u.m150513a((Object) awVar, C6969H.m41409d("G6C95D014AB7EBA3CEF0B8477FFE0CED56C91"));
a27.mo118710a(awVar);
return;
}
int value30 = EventCode.CancelQuietMember.getValue();
if (num != null && num.intValue() == value30) {
MqttBus a28 = MqttBus.f97541a.mo118711a();
CancelQuietMemberEvent dVar = zVar.f97381J;
C32569u.m150513a((Object) dVar, C6969H.m41409d("G6C95D014AB7EA828E80D9544CDF4D6DE6C97EA17BA3DA92CF4"));
a28.mo118710a(dVar);
return;
}
int value31 = EventCode.DeleteBullet.getValue();
if (num != null && num.intValue() == value31) {
MqttBus a29 = MqttBus.f97541a.mo118711a();
DeleteBulletEvent lVar = zVar.f97383L;
C32569u.m150513a((Object) lVar, C6969H.m41409d("G6C95D014AB7EAF2CEA0B844DCDE7D6DB6586C1"));
a29.mo118710a(lVar);
return;
}
int value32 = EventCode.Ping.getValue();
if (num != null && num.intValue() == value32) {
MqttBus a30 = MqttBus.f97541a.mo118711a();
PingEvent atVar = zVar.f97387P;
C32569u.m150513a((Object) atVar, C6969H.m41409d("G6C95D014AB7EBB20E809"));
a30.mo118710a(atVar);
return;
}
int value33 = EventCode.Alert.getValue();
if (num != null && num.intValue() == value33) {
MqttBus a31 = MqttBus.f97541a.mo118711a();
AlertEvent aVar = zVar.f97385N;
C32569u.m150513a((Object) aVar, C6969H.m41409d("G6C95D014AB7EAA25E31C84"));
a31.mo118710a(aVar);
return;
}
int value34 = EventCode.MustDisconnect.getValue();
if (num != null && num.intValue() == value34) {
MqttBus a32 = MqttBus.f97541a.mo118711a();
MustDisconnectEvent amVar = zVar.f97386O;
C32569u.m150513a((Object) amVar, C6969H.m41409d("G6C95D014AB7EA63CF51AAF4CFBF6C0D8678DD019AB"));
a32.mo118710a(amVar);
return;
}
int value35 = EventCode.DeleteStatement.getValue();
if (num != null && num.intValue() == value35) {
MqttBus a33 = MqttBus.f97541a.mo118711a();
DeleteStatementEvent mVar = zVar.f97384M;
C32569u.m150513a((Object) mVar, C6969H.m41409d("G6C95D014AB7EAF2CEA0B844DCDF6D7D67D86D81FB124"));
a33.mo118710a(mVar);
return;
}
int value36 = EventCode.DramaContinue.getValue();
if (num != null && num.intValue() == value36) {
MqttBus a34 = MqttBus.f97541a.mo118711a();
DramaContinueEvent rVar = zVar.f97377F;
C32569u.m150513a((Object) rVar, C6969H.m41409d("G6C95D014AB7EAF3BE7039177F1EACDC3608DC01F"));
a34.mo118710a(rVar);
return;
}
int value37 = EventCode.DramaPause.getValue();
if (num != null && num.intValue() == value37) {
MqttBus a35 = MqttBus.f97541a.mo118711a();
DramaPauseEvent vVar = zVar.f97376E;
C32569u.m150513a((Object) vVar, C6969H.m41409d("G6C95D014AB7EAF3BE7039177E2E4D6C46C"));
a35.mo118710a(vVar);
return;
}
int value38 = EventCode.CreatePoll.getValue();
if (num != null && num.intValue() == value38) {
MqttBus a36 = MqttBus.f97541a.mo118711a();
CreatePollEvent kVar = zVar.f97388Q;
C32569u.m150513a((Object) kVar, C6969H.m41409d("G6C95D014AB7EA83BE30F844DCDF5CCDB65"));
a36.mo118710a(kVar);
return;
}
int value39 = EventCode.FinishPoll.getValue();
if (num != null && num.intValue() == value39) {
MqttBus a37 = MqttBus.f97541a.mo118711a();
FinishPollEvent afVar = zVar.f97389R;
C32569u.m150513a((Object) afVar, C6969H.m41409d("G6C95D014AB7EAD20E8078340CDF5CCDB65"));
a37.mo118710a(afVar);
return;
}
int value40 = EventCode.PollVote.getValue();
if (num != null && num.intValue() == value40) {
MqttBus a38 = MqttBus.f97541a.mo118711a();
PollVoteEvent avVar = zVar.f97413j;
C32569u.m150513a((Object) avVar, C6969H.m41409d("G6C95D014AB7EBB26EA02AF5EFDF1C6"));
a38.mo118710a(avVar);
return;
}
int value41 = EventCode.UpdatePollStatistics.getValue();
if (num != null && num.intValue() == value41) {
MqttBus a39 = MqttBus.f97541a.mo118711a();
UpdatePollStatisticsEvent bnVar = zVar.f97414k;
C32569u.m150513a((Object) bnVar, C6969H.m41409d("G6C95D014AB7EBE39E20F844DCDF5CCDB65BCC60EBE24A23AF207935B"));
a39.mo118710a(bnVar);
return;
}
int value42 = EventCode.ObtainRedPacket.getValue();
if (num != null && num.intValue() == value42) {
MqttBus a40 = MqttBus.f97541a.mo118711a();
ObtainRedPacketEvent arVar = zVar.f97391T;
C32569u.m150513a((Object) arVar, C6969H.m41409d("G6C95D014AB7EA42BF20F9946CDF7C6D35693D419B435BF"));
a40.mo118710a(arVar);
return;
}
int value43 = EventCode.NewRedPacket.getValue();
if (num != null && num.intValue() == value43) {
MqttBus a41 = MqttBus.f97541a.mo118711a();
NewRedPacketEvent apVar = zVar.f97390S;
C32569u.m150513a((Object) apVar, C6969H.m41409d("G6C95D014AB7EA52CF131824DF6DAD3D66A88D00E"));
a41.mo118710a(apVar);
return;
}
int value44 = EventCode.FansTeamLevelUpgrade.getValue();
if (num != null && num.intValue() == value44) {
MqttBus a42 = MqttBus.f97541a.mo118711a();
FansTeamLevelUpgradeEvent adVar = zVar.f97392U;
C32569u.m150513a((Object) adVar, C6969H.m41409d("G6C95D014AB7EAD28E81DAF5CF7E4CEE86586C31FB30FBE39E11C914CF7"));
a42.mo118710a(adVar);
return;
}
int value45 = EventCode.JoinFansTeam.getValue();
if (num != null && num.intValue() == value45) {
MqttBus a43 = MqttBus.f97541a.mo118711a();
JoinFansTeamEvent ajVar = zVar.f97393V;
C32569u.m150513a((Object) ajVar, C6969H.m41409d("G6C95D014AB7EA126EF00AF4EF3EBD0E87D86D417"));
a43.mo118710a(ajVar);
return;
}
int value46 = EventCode.TheaterActivity.getValue();
if (num != null && num.intValue() == value46) {
MqttBus a44 = MqttBus.f97541a.mo118711a();
TheaterActivityEvent bfVar = zVar.f97394W;
C32569u.m150513a((Object) bfVar, C6969H.m41409d("G6C95D014AB7EBF21E30F844DE0DAC2D47D8AC313AB29"));
a44.mo118710a(bfVar);
return;
}
int value47 = EventCode.VideoFocusApply.getValue();
if (num != null && num.intValue() == value47) {
MqttBus a45 = MqttBus.f97541a.mo118711a();
VideoFocusApplyEvent bpVar = zVar.f97395X;
C32569u.m150513a((Object) bpVar, C6969H.m41409d("G6C95D014AB7EBD20E20B9F77F4EAC0C27ABCD40AAF3CB2"));
a45.mo118710a(bpVar);
return;
}
int value48 = EventCode.VideoFocusRefused.getValue();
if (num != null && num.intValue() == value48) {
MqttBus a46 = MqttBus.f97541a.mo118711a();
VideoFocusRefusedEvent brVar = zVar.f97396Y;
C32569u.m150513a((Object) brVar, C6969H.m41409d("G6C95D014AB7EBD20E20B9F77F4EAC0C27ABCC71FB925B82CE2"));
a46.mo118710a(brVar);
return;
}
int value49 = EventCode.UpdateDramaMemberIncome.getValue();
if (num != null && num.intValue() == value49) {
MqttBus a47 = MqttBus.f97541a.mo118711a();
UpdateDramaMemberIncomeEvent bkVar = zVar.f97415l;
C32569u.m150513a((Object) bkVar, C6969H.m41409d("G6C95D014AB7EBE39E20F844DCDE1D1D66482EA17BA3DA92CF4319946F1EACED2"));
a47.mo118710a(bkVar);
return;
}
int value50 = EventCode.SyncDramaAudioStatus.getValue();
if (num != null && num.intValue() == value50) {
MqttBus a48 = MqttBus.f97541a.mo118711a();
SyncDramaAudioStatusEvent bcVar = zVar.f97400ac;
C32569u.m150513a((Object) bcVar, C6969H.m41409d("G6C95D014AB7EB830E80DAF4CE0E4CED65682C01EB63F943AF20F845DE1"));
a48.mo118710a(bcVar);
return;
}
int value51 = EventCode.StatementVoteCountMilestone.getValue();
if (num != null && num.intValue() == value51) {
MqttBus a49 = MqttBus.f97541a.mo118711a();
StatementVoteCountMilestoneEvent bbVar = zVar.f97399ab;
C32569u.m150513a((Object) bbVar, C6969H.m41409d("G6C95D014AB7EB83DE71A9545F7EBD7E87F8CC11F8033A43CE81AAF45FBE9C6C47D8CDB1F"));
a49.mo118710a(bbVar);
return;
}
int value52 = EventCode.StatementQuestionMilestone.getValue();
if (num != null && num.intValue() == value52) {
MqttBus a50 = MqttBus.f97541a.mo118711a();
StatementQuestionMilestoneEvent baVar = zVar.f97403af;
C32569u.m150513a((Object) baVar, C6969H.m41409d("G6C95D014AB7EB83DE71A9545F7EBD7E87896D009AB39A427D9039944F7F6D7D86786"));
a50.mo118710a(baVar);
return;
}
int value53 = EventCode.VideoFocusTimeout.getValue();
if (num != null && num.intValue() == value53) {
MqttBus a51 = MqttBus.f97541a.mo118711a();
VideoFocusTimeoutEvent bsVar = zVar.f97397Z;
C32569u.m150513a((Object) bsVar, C6969H.m41409d("G6C95D014AB7EBD20E20B9F77F4EAC0C27ABCC113B235A43CF2"));
a51.mo118710a(bsVar);
return;
}
int value54 = EventCode.VideoFocusEnd.getValue();
if (num != null && num.intValue() == value54) {
MqttBus a52 = MqttBus.f97541a.mo118711a();
VideoFocusEndEvent bqVar = zVar.f97398aa;
C32569u.m150513a((Object) bqVar, C6969H.m41409d("G6C95D014AB7EBD20E20B9F77F4EAC0C27ABCD014BB"));
a52.mo118710a(bqVar);
return;
}
int value55 = EventCode.UpdateDramaCampStatistics.getValue();
if (num != null && num.intValue() == value55) {
MqttBus a53 = MqttBus.f97541a.mo118711a();
UpdateDramaCampStatisticsEvent biVar = zVar.f97416m;
C32569u.m150513a((Object) biVar, C6969H.m41409d("G6C95D014AB7EBE39E20F844DCDE1D1D66482EA19BE3DBB16F51A915CFBF6D7DE6A90"));
a53.mo118710a(biVar);
return;
}
int value56 = EventCode.JoinDramaCamp.getValue();
if (num != null && num.intValue() == value56) {
MqttBus a54 = MqttBus.f97541a.mo118711a();
JoinDramaCampEvent aiVar = zVar.f97401ad;
C32569u.m150513a((Object) aiVar, C6969H.m41409d("G6C95D014AB7EA126EF00AF4CE0E4CED65680D417AF"));
a54.mo118710a(aiVar);
return;
}
int value57 = EventCode.UpdateTheaterConfig.getValue();
if (num != null && num.intValue() == value57) {
MqttBus a55 = MqttBus.f97541a.mo118711a();
UpdateTheaterConfigEvent boVar = zVar.f97402ae;
C32569u.m150513a((Object) boVar, C6969H.m41409d("G6C95D014AB7EBE39E20F844DCDF1CBD26897D0088033A427E00797"));
a55.mo118710a(boVar);
return;
}
int value58 = EventCode.UpdateDurationTreasureBox.getValue();
if (num != null && num.intValue() == value58) {
MqttBus a56 = MqttBus.f97541a.mo118711a();
UpdateDurationTreasureBoxEvent blVar = zVar.f97404ag;
C32569u.m150513a((Object) blVar, C6969H.m41409d("G6C95D014AB7EBE39E20F844DCDE1D6C56897DC15B10FBF3BE30F835DE0E0FCD5669B"));
a56.mo118710a(blVar);
}
} else if (FlowControlHelper.f97498a.mo118671a(EventCode.UpdateContributors.getValue())) {
MqttBus a57 = MqttBus.f97541a.mo118711a();
UpdateContributorsEvent bhVar = zVar.f97408e;
C32569u.m150513a((Object) bhVar, C6969H.m41409d("G6C95D014AB7EBE39E20F844DCDE6CCD97D91DC18AA24A43BF5"));
a57.mo118710a(bhVar);
}
} else if (FlowControlHelper.f97498a.mo118671a(EventCode.EnterTheater.getValue())) {
MqttBus a58 = MqttBus.f97541a.mo118711a();
EnterTheaterEvent yVar = zVar.f97406c;
C32569u.m150513a((Object) yVar, C6969H.m41409d("G6C95D014AB7EAE27F20B8277E6EDC6D67D86C7"));
a58.mo118710a(yVar);
}
}
|
{
"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
|
public Response doLogin(UserDomain userDomain);
|
public UsersModel getUserById(String userEmail);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean doLogin(UserDTO loginUser);",
"public void login(User user);",
"void login(String user, String password);",
"boolean userLogin(UserDTO user) throws UserException, Exception;",
"private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public User doAuthentication(String account, String password);",
"public abstract User login(User data);",
"User loginUser(User userLoginRequest, HttpSession httpSession) throws Exception;",
"RequestResult loginRequest() throws Exception;",
"public boolean loginUser();",
"String login(Integer userId);",
"private void login(String username,String password){\n\n }",
"User login(String username, String password);",
"public Person login(String username, String password);",
"int authenticateUser(IDAOSession session, String userName, String password);",
"public abstract void login(String userName, String password) throws RemoteException;",
"String signIn(String userName, String password) throws UserNotFoundException;",
"public interface UserService {\n\n LoginResp login(String username, String psw);\n\n}",
"protected Response login() {\n return login(\"\");\n }",
"public String loginUser(Credentials credentials) throws Exception {\n\n\t\tString url = server_url + \"/user/login\";\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n\t\t//add request header\n\t\tcon.setRequestMethod(\"POST\");\n\t\tcon.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n\t\tcon.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n\n\t\t//String urlParameters = \"username=\" + credentials.username + \"&password=\" + credentials.password;\n\t\tJsonObject urlParameters = new JsonObject();\n\t\turlParameters.addProperty(\"username\", credentials.username);\n\t\turlParameters.addProperty(\"password\", credentials.password);\n\t\t\n\t\t// Send post request\n\t\tcon.setDoOutput(true);\n\t\tDataOutputStream wr = new DataOutputStream(con.getOutputStream());\n\t\twr.writeBytes(urlParameters.toString());\n\t\twr.flush();\n\t\twr.close();\n\n\t\tint responseCode = con.getResponseCode();\n\t\t\n\t\tif (responseCode != 200) {\n\t\t\treturn \"Failure\";\n\t\t}\n\t\t////System.out.println(\"\\nSending 'POST' request to URL : \" + url);\n\t\t////System.out.println(\"Post parameters : \" + urlParameters);\n\t\t////System.out.println(\"Response Code : \" + responseCode);\n\t\t\n\t\tif (responseCode == 400) {\n\t\t\tthrow new Exception();\n\t\t}\n\t\t\n\t\t//When we log in the server gives us a cookie that keeps the user identity\n\t\tusercookie = con.getHeaderField(\"set-cookie\");\n\t\tusercookie = usercookie.substring(0, usercookie.length() - 8);\n\n//\t\t@SuppressWarnings(\"deprecation\")\n//\t\tString decodedUserCookie = URLDecoder.decode(usercookie.substring(11));\n//\t\t\n//\t\tJsonParser jsonParser = new JsonParser();\n//\t\tJsonObject element = jsonParser.parse(decodedUserCookie).getAsJsonObject();\n\n\t\tBufferedReader in = new BufferedReader(\n\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\t\t\n\t\treturn response.toString();\n\t}",
"@PostMapping(value = \"/userslogin\")\n\tpublic <T> ResponseEntity<?> loginProcess(@RequestBody User user) {\n\t\tLoginResponse loginResponse = new LoginResponse();\n\t\ttry {\n\t\t\t\n\t\t\tuser.setUserId(userDelegate.fetchUserId(user.getEmail()));\n\t\t\tloginResponse = userDelegate.login(user);\n\t\t\treturn responseUtil.successResponse(loginResponse);\t\t\n\t\t}\n\t\tcatch(ApplicationException e){\t\n\t\t\treturn responseUtil.errorResponse(e);\n\t\t}\n\t\t\n\t}",
"public interface UserService {\n\n Object login(String username, String password);\n\n}",
"void loginAttempt(String email, String password);",
"@Override\n\tpublic void loginUser() {\n\t\t\n\t}",
"public interface LoginService {\n E3Result userLogin(String username, String password);\n}",
"@WebMethod public boolean logIn(String userName, String password);",
"public void login(String addr, String port, String user){\n if (state != State.NOCONNECTION){\n Log.d(\"State\", state.toString());\n return;\n }\n if (user.length() < 3){\n Log.d(\"Username\", \"length too short\");\n return; //BAD HUMAN!!!\n }\n _user = user;\n try {\n mConnection = new NetworkingConnection(new MyResponseVisitor(), addr, port);\n state = State.HASCONNECTION;\n } catch (UnknownHostException e){\n e.printStackTrace();\n //there is an unknown host aka ur IP is wrong bish\n Log.d(\"Bad IP address\", addr);\n state = State.NOCONNECTION;\n }\n //make the error handler somewher\n INetworkingConnection.OnErrorSend handleErr = new INetworkingConnection.OnErrorSend(){\n public void onError(@NonNull Throwable err){\n err.printStackTrace();\n }\n };\n //send the login request somewhere(???)\n LoginRequest loginReq = new LoginRequest(user);\n mConnection.send(loginReq, handleErr).execute();\n state = State.ATTEMPTEDLOGIN;\n }",
"public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }",
"public String signIn(String username, String password);",
"public void authenticate(LoginRequest loginRequest) {\n\n }",
"@GetMapping(\"/user\")\n public User login(@RequestParam String username, @RequestParam String password) { return userDataTierConnection.login(username,password); }",
"private void login(final String login, final String password, final String domainId) {\n checkCredentials(login, password);\n\n if (!login.isEmpty() && !password.isEmpty()) {\n Notification.activityStart();\n AuthentificationManager.getInstance()\n .authenticateOnSilverpeas(loginField.getText(), passwordField.getText(),\n domains.getSelectedValue(), null);\n }\n }",
"public AgentDTO login(String login, String senha);",
"void login(String userName) throws IllegalArgumentException, IOException;",
"@Override\n String execute(HttpServletRequest request, HttpServletResponse response) throws LegohusException {\n String email = request.getParameter(\"email\");\n String password = request.getParameter(\"password\");\n User user = LogicFacade.login(email, password);\n HttpSession session = request.getSession();\n session.setAttribute(\"user\", user);\n \n return \"WEB-INF/\" + user.getRole() + \"page\";\n }",
"@Override\n\tpublic boolean employeeLogin(Context ctx) {\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\tboolean result = authService.employeeLogIn(username, password);\n\t\treturn result;\n\t}",
"public LoginDomain(ValidatorDomain validatorDomain) {\r\n\t\tthis.validatorDomain = validatorDomain;\r\n\t}",
"@PostMapping(\"login\")\r\n public ResponseEntity<?> login(@RequestBody UserDetails userDetails) {\r\n try {\r\n companyService = (CompanyService) loginManager.login(userDetails.getEmail(), userDetails.getPassword(), userDetails.getClientType());\r\n } catch (LoginException error) {\r\n System.out.println(error.getMessage());\r\n return ResponseEntity.badRequest().body(error.getMessage());\r\n }\r\n return ResponseEntity.ok(jwtUtil.generateToken(userDetails));\r\n }",
"@Override\n\tpublic boolean login(String username, String password) {\n\t\treturn userProviderService.login(username, password);\n\t}",
"private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}",
"public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}",
"LoginContext login(String username, String password) throws LoginException;",
"@POST\r\n\t@Path(\"/login/\")\r\n\tpublic User login(@RequestBody User user);",
"User signIn(String login, String password);",
"public interface LoginService {\n String login(String username, String pwd);\n}",
"User login(String email, String password) throws AuthenticationException;",
"public static boolean login(Context ctx) {\n\t\t\n\t\tString username = ctx.formParam(\"username\");\n\t\tString password = ctx.formParam(\"password\");\n\t\t\n\t\tSystem.out.println(username);\n\t\tSystem.out.println(password);\n\t\t\n\t\tif(username.equals(\"user\") && password.equals(\"pass\")) {\n\t\t\tctx.res.setStatus(204);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"McBobby\",true));\n\t\t\treturn true;\n\t\t}else {\n\t\t\t\n\t\t\tctx.res.setStatus(400);\n\t\t\tctx.sessionAttribute(\"user\", new User(\"fake\",false));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t\n//\t\tctx.queryParam(password); /authenticate?password=value\n//\t\tctx.pathParam(password); /authenticate/{password}\n\t}",
"void login(String email, String password) throws InvalidCredentialsException, IOException;",
"@Override\n\tpublic ResultMessage login(String user_name, String password) throws RemoteException{\n\t\treturn null;\n\t}",
"public int login(String username, String password) \n {\n\treturn this.acctCtrl.login(username, password);\n\n }",
"@Override\n\tpublic SmbmsUser login(String userCode, String userPassword) {\n\t\treturn sud.login(userCode, userPassword);\n\t}",
"EmployeeMaster authenticateUser(int employeeId, String password);",
"public User logInUser(final String login, final String password);",
"public boolean attemptLogin(HttpServletRequest request, HttpServletResponse response, String data) {\n String userName = request.getParameter(\"userName\");\n String password = request.getParameter(\"password\");\n try {\n IUserDAO iUserDAOHibernate = UserDAOHibernate.getInstance();\n User user = iUserDAOHibernate.validateUserAndPassword(userName, password);\n if (user != null)\n {\n request.getSession().setAttribute(\"user\", user);\n createLoginCookie(response, userName, password);\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/login/userLogged\");\n return true;\n }\n else\n request.setAttribute(\"isSuccessfullyLoggedIn\",false);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (UserDAOException e) {\n System.out.println(e.getMessage());\n request.setAttribute(\"isSuccessfullyLoggedIn\",false);\n return false;\n }\n return false;\n }",
"public interface LoginService {\n\n public User login(String login, String password);\n\n}",
"@PostMapping(\"/login\")\n public ResponseEntity<Map<String, String>> loginUser(@RequestBody User user){\n Map<String, String> result = userService.validateUser(user.getUsername(), user.getPassword());\n if(!result.get(\"status\").equals(\"200\"))\n return new ResponseEntity<>(result, HttpStatus.OK);\n \n User validated_user = userService.getUserByUsername(user.getUsername());\n return new ResponseEntity<>(generateJWTTToken(validated_user), HttpStatus.OK);\n }",
"@Override\n public Response login(User user) {\n\n Response response = new Response();\n User foundUser = userDao.login(user);\n if(foundUser != null &&\n foundUser.getUserId() != null &&\n bCryptPasswordEncoder.matches(user.getPassword(), foundUser.getPassword())) {\n UserDetails userDetails = loadUserByUsername(foundUser.getEmail());\n response.setToken(jwtUtil.generateToken(userDetails));\n response.setUsername(foundUser.getUsername());\n\n return response;\n }\n return null;\n }",
"private Object authenticate(Invocation invocation, HttpServletRequest request,\r\n HttpServletResponse response) throws IOException {\r\n\r\n Object[] args = invocation.getArgs();\r\n if (args.length != 2) {\r\n throw new RuntimeException(\"The authenticate call must have two arguments\");\r\n }\r\n\r\n String user = (String) args[0];\r\n String password = (String) args[1];\r\n\r\n //We can make the remote call\r\n Object result = invoke(invocation);\r\n\r\n //If the authentification failed we finish the execution\r\n if (result instanceof LoginContext) {\r\n LoginContext loginContext = (LoginContext) result;\r\n if (loginContext == null) {\r\n throw new RuntimeException(\"Login failed!!\");\r\n }\r\n \r\n HttpSession session = request.getSession(false);\r\n String sessionId = session.getId();\r\n response.addHeader(\"jsessionid\", sessionId);\r\n\r\n \r\n session.setAttribute(User.USER_KEY, loginContext.getUser());\r\n\r\n session.setAttribute(RhSessionContext.CLIENT_ID, loginContext.getClient_id());\r\n session.setAttribute(RhSessionContext.ORG_ID, loginContext.getOrg_id());\r\n session.setAttribute(RhSessionContext.DUTY_ID, loginContext.getDutyId());\r\n\r\n Map attrs = loginContext.getAttributes();\r\n Set<Map.Entry> entries = attrs.entrySet();\r\n for (Map.Entry entry : entries) {\r\n session.setAttribute((String) entry.getKey(), entry.getValue());\r\n }\r\n\r\n // 创建login session\r\n LoginSession loginSession = new LoginSession();\r\n loginSession.setLoginName(loginContext.getUser().getUsername());\r\n loginSession.setIp(request.getRemoteHost());\r\n loginSession.setLoginDate(new Date(session.getCreationTime()));\r\n loginSession.setSessionId(session.getId());\r\n loginSession.setLiving(true);\r\n\r\n //Session hibernateSession = RhinoCtx.instance().getHibernate().getSession();\r\n try {\r\n \r\n ServiceBase serviceBase = (ServiceBase) ServiceFactory.getService(ServiceBase.NAME);\r\n //ServiceBase serviceBase = (ServiceBase) RhinoCtx.getBean(\"serviceBase\");\r\n //hibernateSession.beginTransaction();\r\n serviceBase.save(loginSession);\r\n //hibernateSession.getTransaction().commit();\r\n session.setAttribute(\"loginSession\", loginSession);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n //hibernateSession.getTransaction().rollback();\r\n } finally {\r\n //hibernateSession.close();\r\n }\r\n }\r\n return result;\r\n }",
"List<String> authenticateUser(String userName, String password);",
"@GET(\"/login\")\n Call<LoginResponse> loginRequest(@Path(\"username\") String username\n , @Path(\"password\") String password);",
"public String login() {\r\n FacesContext context = FacesContext.getCurrentInstance();\r\n HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();\r\n System.out.println(\"Username: \" + email);\r\n System.out.println(\"Password: \" + password);\r\n try {\r\n //this method will actually check in the realm for the provided credentials\r\n request.login(this.email, this.password);\r\n\r\n } catch (ServletException e) {\r\n context.addMessage(null, new FacesMessage(\"Login failed.\"));\r\n return \"error\";\r\n }\r\n return \"/faces/users/index.xhtml\";\r\n }",
"User authenticate(String username, String password);",
"boolean authenticate(String userName, String password);",
"@Override\r\n\tpublic User login(User u) throws Exception {\n\t\treturn userRepository.login(u);\r\n\t}",
"@PostMapping(\"/login\")\n @CrossOrigin\n public ResponseEntity<?> login(@RequestParam String contactNumber, @RequestParam String password) {\n String passwordByUser = String.valueOf(userService.findUserPassword(contactNumber));\n String sha256hex = Hashing.sha256()\n .hashString(password, Charsets.US_ASCII)\n .toString();\n if (userService.findUserPassword(contactNumber) == null)\n return new ResponseEntity<>(\"This contact number has not been registered!\", HttpStatus.OK);\n else if (!(passwordByUser.equalsIgnoreCase(sha256hex))) {\n return new ResponseEntity<>(\"Invalid Credentials\", HttpStatus.UNAUTHORIZED);\n } else {\n User user = userService.findUser(contactNumber);\n String accessToken = UUID.randomUUID().toString();\n userAuthTokenService.addAccessToken(user.getId(), accessToken);\n HttpHeaders headers = new HttpHeaders();\n headers.add(\"access-token\", accessToken);\n List<String> header = new ArrayList<>();\n header.add(\"access-token\");\n headers.setAccessControlExposeHeaders(header);\n return new ResponseEntity<>(user, headers, HttpStatus.OK);\n }\n }",
"@Override\n public boolean userLogin(String username, String password) \n {\n User tmpUser = null;\n tmpUser = getUser(username);\n if(tmpUser == null) return false;\n if(tmpUser.getPassword().equals(password)) return true;\n return false;\n }",
"UserToken login(String username, String password) throws WorkspaceException;",
"@Override\r\n\tpublic UserVO login(LoginUserVO user) {\n\t\treturn login.login(user);\r\n\t}",
"public abstract boolean login(String email, String passwaord) throws CouponSystemException;",
"public AuthToken loginUser(){\n return null;\n }",
"protected void login (HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n String username = req.getParameter(\"username\");\n String password = req.getParameter(\"password\");\n // invoke userService.login()\n User loginUser = userService.login(new User(null, username, password, null));\n // if null, then fail\n if (loginUser == null) {\n // save information to request domain\n req.setAttribute(\"msg\", \"Username or Password incorrect !\");\n req.setAttribute(\"username\", username);\n // jump to login page dispatcher share the same request information\n req.getRequestDispatcher(\"/pages/user/login.jsp\").forward(req, resp);\n }\n else {\n\n // save user information to Session domain\n req.getSession().setAttribute(\"user\", loginUser);\n req.getRequestDispatcher(\"/pages/user/login_success.jsp\").forward(req, resp);\n }\n\n }",
"protected void login() {\n\t\t\r\n\t}",
"public void login(String username, String password) {\n User user = new User(username, password);\r\n String paramBodyJsonStr = new Gson().toJson(user);\r\n Logger.d(\"paramBodyJsonStr=\" + paramBodyJsonStr);\r\n // handle login\r\n AndroidNetworking.post()\r\n .setContentType(\"application/json; charset=utf-8\")\r\n .setTag(this)\r\n .setUrl(Constants.URL_LOGIN)\r\n .build()\r\n .setApplicationJsonString(paramBodyJsonStr)\r\n .setAnalyticsListener(analyticsListener)\r\n .getAsJSONObject(new JSONObjectRequestListener() {\r\n @Override\r\n public void onResponse(JSONObject result) {\r\n Logger.d(\"response result=\" + result.toString());\r\n Result<LoggedInUser> defultResult = loginRepository.getDataSource().login(username, password);\r\n LoggedInUser data = ((Result.Success<LoggedInUser>) defultResult).getData();\r\n loginResult.setValue(new LoginResult(new LoggedInUserView(data.getDisplayName())));\r\n }\r\n\r\n @Override\r\n public void onError(ANError anError) {\r\n loginResult.setValue(new LoginResult(new Result.Error(anError)));\r\n Logger.d(\"anError=\" + anError.toString());\r\n if (!TextUtils.isEmpty(anError.getErrorDetail())) {\r\n Logger.d(\"getMessage=\" + anError.getMessage() + \" getErrorDetail=\" + anError.getErrorDetail());\r\n }\r\n }\r\n });\r\n\r\n }",
"public boolean login(String X_Username, String X_Password){\n return true;\n //call the function to get_role;\n //return false;\n \n \n }",
"public User getUser(String userName, String password);",
"@RequestMapping(value=\"/login/{username}/{password}\")\n @ResponseBody\n public boolean login(@PathVariable String username, @PathVariable String password){\n return customUserDetailsService.login(username, password);\n\n }",
"@Test\n\tpublic void testLoginUser(){\n\t\t\n\t\tboolean passed = true;\n\t\t\n\t\ttry {\n\t\t\tps.loginUser(new UserLoginInput(\"Sam\", \"sam\"));\n\t\t} catch (ServerException e) {\n\t\t\te.printStackTrace();\n\t\t\tpassed = false;\n\t\t}\n\t\t\n\t\tassertTrue(passed);\n\t}",
"@Override\r\n\tpublic void login() {\n\r\n\t}",
"Document login(String username, String password);",
"private void userLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString id=request.getParameter(\"user\");\r\n\t\tString pwd=request.getParameter(\"pwd\");\r\n\t\tUserFunctions uf=new UserFunctionsImpl();\r\n\t\tString st=uf.login(id, pwd);\r\n\t\tif(!(st.equals(\"incorrect username\")||st.equals(\"incorrect password\")))\r\n\t\t\t\t{\r\n\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"successlogin.jsp\");\r\n\t\trequest.setAttribute(\"name\", st); \r\n dispatcher.forward(request, response);\r\n\t\t\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(\"failurelogin.jsp\");\r\n\t\t\t\trequest.setAttribute(\"name\", st); \r\n\t\t dispatcher.forward(request, response);\r\n\t\t}\r\n\t\t\t\t\t\r\n\t\t\r\n\t}",
"public static void Login() \r\n\t{\n\t\t\r\n\t}",
"@RequestMapping(method = RequestMethod.POST)\n public ModelAndView doPost(@ModelAttribute(LOGIN_COMMAND) OpenidLoginFormBean_ids data, BindingResult errors, HttpServletRequest request) \n {\n final HttpSession session = request.getSession();\n\tfinal String username; \n\tfinal String password; \n\tString openid = null;\n\tBoolean user_authenticated = false;\n\t\t\n\t\t\n\tusername = data.getUsername(); /* a dict could be more useful ? */\n\tpassword = data.getPassword();\t/* user password is bound to the form backing object */\t\n\t\t\n\t\t\t\t\t\t\n\tif (LOG.isDebugEnabled()) LOG.debug(\"Attempting authentication with user=\"+username+\" password=\"+password);\n\t\t\n\tuser_authenticated = idp.authenticate_ids(username, password);\n\topenid = idp.getOpenid(username);\t\t\n\t\t\n\tif((user_authenticated) && (openid != null)) \n\t{\n\t return setPositiveSessionAuth(session, openid); \n\t} \n\telse \n\t{\n\t // set session-scope authentication flag to FALSE\n\t session.setAttribute(OpenidPars.SESSION_ATTRIBUTE_AUTHENTICATED, Boolean.FALSE);\n\t if (LOG.isDebugEnabled()) LOG.debug(\"Authentication error\");\n\t\t\t\n\t errors.reject(\"error.invalid\", new Object[] {}, \"Invalid OpenID and/or Password combination\");\n\t return new ModelAndView(view);\n\t}\n }",
"@RequestMapping(\"login\")\n public boolean Authenticate(String userName, String password, HttpServletResponse res, @CookieValue(value = \"userInfo\", defaultValue = \"\") String userCookie){\n\n if(userCookie != null && !userCookie.equals(\"\")){\n String user = userCookie.split(\"~~~\")[0];\n String pass = userCookie.split(\"~~~\")[1];\n String valid = userCookie.split(\"~~~\")[2];\n\n if(Boolean.valueOf(valid) && userService.authenticate(user, pass).isAuthenticated()) return true;\n }\n\n LoginViewModel viewModel = userService.authenticate(userName, password);\n if(viewModel.isAuthenticated()){\n String[] userInfo = new String[4];\n userInfo[0] = userName;\n userInfo[1] = password;\n userInfo[2] = String.valueOf(viewModel.getUserId());\n\n String userString = Joiner.on(\"~~~\").skipNulls().join(userInfo);\n\n Cookie cookie = new Cookie(\"userInfo\", userString);\n\n res.addCookie(cookie);\n return true;\n }\n return false;\n }",
"public String login(String email, String password, HttpServletRequest req, HttpServletResponse resp) {\r\n log.info(\"login player api service:\" + mso.getId());\r\n log.info(\"login: email=\" + email + \";password=\" + password);\r\n if (!BasicValidator.validateRequired(new String[] {email, password}))\r\n return this.assembleMsgs(NnStatusCode.INPUT_MISSING, null);; \r\n\r\n String result[] = {\"\"};\r\n NnUser user = userMngr.findAuthenticatedUser(email, password, mso.getId(), req);\r\n if (user != null) {\r\n result[0] = this.prepareUserInfo(user, null, req, true);\r\n userMngr.save(user); //change last login time (ie updateTime)\r\n this.setUserCookie(resp, CookieHelper.USER, user.getToken());\r\n } else {\r\n return this.assembleMsgs(NnStatusCode.USER_LOGIN_FAILED, null);\r\n }\r\n return this.assembleMsgs(NnStatusCode.SUCCESS, result);\r\n }",
"@POST\n\t@Path(\"/LoginService\")\n\tpublic String loginService(@FormParam(\"uname\") String uname,\n\t\t\t@FormParam(\"password\") String pass) \n\t{\n\t\tJSONObject object = new JSONObject();\n\t\tUserEntity user = UserEntity.getUser(uname, pass);\n\t\tif (user == null) {\n\t\t\tobject.put(\"Status\", \"Failed\");\n\t\t} else {\n\t\t\tUserEntity.currentUser = user;\n\t\t\tobject.put(\"Status\", \"OK\");\n\t\t\tobject.put(\"name\", user.getName());\n\t\t\tobject.put(\"email\", user.getEmail());\n\t\t\tobject.put(\"password\", user.getPass());\n\t\t}\n\n\t\treturn object.toString();\n\n\t}",
"@PostMapping(\"/loginUser\")\n\tpublic ResponseEntity<?> loginUser(@RequestBody User user, HttpSession hs) {\n\n\t\ttry {\n\t\t\tUser validUser = userService.loginUser(user.getEmailId(), user.getPassword());\n\t\t\ths.setAttribute(\"validUser\", validUser);\n\t\t\treturn new ResponseEntity<User>(validUser, HttpStatus.OK);\n\t\t} catch (Exception e) {\n\t\t\t// e.printStackTrace();\n\t\t\tthrow new UserNotFoundException(\"user not found\");\n\t\t}\n\t\t// return new ResponseEntity<String>(\"login failed\",HttpStatus.UNAUTHORIZED);\n\n\t}",
"Login.Req getLoginReq();",
"private void loginSuccess(String uname) {\n }",
"String login(String userName, String password) throws RemoteException, InterruptedException;",
"public abstract void login(\r\n com.google.protobuf.RpcController controller,\r\n PbDemoProto.Login_C2S request,\r\n com.google.protobuf.RpcCallback<PbDemoProto.Login_S2C> done);",
"protected void doPostLogin(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tout.println(\"Look where we are, it's the login page\");\n\t\t\n\t\t//get parameter Names\n\t\tsetParameters(request);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tKeyspace keyspace = Connection.getKeyspace();\n\t\tStringSerializer se = StringSerializer.get();\n\t\t\n\t\ttry\n\t\t{\n\t\t\t// given Keyspace keyspace and StringSerializer se\n\t\t\tSliceQuery<String, String, String> q = HFactory.createSliceQuery(keyspace, se, se, se);\n\t\t\tq.setColumnFamily(\"Users\") .setKey(displayName).setColumnNames(\"fullname\", \"email\", \"password\");\n\t\t\tQueryResult<ColumnSlice<String, String>> r = q.execute();\n\n\t\t\tfullname = r.get().getColumnByName(\"fullname\").getValue();\n\t\t\temail = r.get().getColumnByName(\"email\").getValue();\n\n\t\t\tif(password.equals(r.get().getColumnByName(\"password\").getValue()))\n\t\t\t{\n\t\t\t\t//LOGGED IN CORRECTLY\n\t\t\t\t\n\t\t\t\tmySexySession.setAttribute(\"displayName\", displayName);\n\t\t\t\tmySexySession.setAttribute(\"fullname\", fullname);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmySexySession.setAttribute(\"message\", \"Incorrect Password.\");\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t//catches happen when the key is not found (i.e. user doesn't exist)\n\t\t\tmySexySession.setAttribute(\"message\", \"User does not exist.\");\n\t\t}\n\t\tresponse.sendRedirect(\"/quotes/home\");\n\t}",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"@PostMapping(value = \"/login\", headers = {\"content-type=application/x-www-form-urlencoded\"})\n\tpublic ResponseEntity<UserDTO> login(WebRequest request){\n\t\t\n\t\tString username = request.getParameter(\"username\");\n\t\tString password = request.getParameter(\"password\");\n\t\t\n\t\tUser user = userService.findByUsername(username);\n\t\tif(user == null) {\n\t\t\t//ovo glumi token i ide u session local storage\n\t\t\treturn new ResponseEntity<UserDTO>(HttpStatus.NOT_FOUND);\n\t\t}else if(user.getPassword().equals(password)) {\n\t\t\treturn new ResponseEntity<UserDTO>(new UserDTO(user), HttpStatus.OK);\n\t\t}else {\n\t\t\treturn new ResponseEntity<UserDTO>(HttpStatus.UNAUTHORIZED);\n\t\t}\n\t\t\n\t\t\n\t}",
"public boolean login(HttpServletRequest request, HttpServletResponse response, String data) {\n String appCookieValue = getAppCookieValue(request);\n if (!Objects.equals(appCookieValue, \"\")) {\n String[] cookieValues = appCookieValue.split(\"_\");\n String userName = cookieValues[0];\n String password = cookieValues[1];\n return loginUsingCookie(request, response, userName, password);\n }\n else {\n User user = (User)request.getSession().getAttribute(\"user\");\n if(user != null){\n try {\n response.sendRedirect(\"http://localhost:8010/CostsManagerHit/home\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return true;\n }\n }\n return false;\n }",
"public String login(){\n UsernamePasswordToken token = new UsernamePasswordToken(user.getAccount(),\n user.getPassword());\n\n// \"Remember Me\" built-in:\n token.setRememberMe(user.isRememberMe());\n\n Subject currentUser = SecurityUtils.getSubject();\n\n\n try {\n currentUser.login(token);\n } catch (AuthenticationException e) {\n // Could catch a subclass of AuthenticationException if you like\n FacesContext.getCurrentInstance().addMessage(\n null,\n new FacesMessage(\"Login Failed: \" + e.getMessage(), e\n .toString()));\n return \"/login\";\n }\n return \"index\";\n }",
"@Override\n\tpublic User login(User user) {\n\t\treturn userMapper.login(user);\n\t}",
"@Override\n\tpublic SpaceUserVO login(SpaceUserVO spaceUserVO) throws Exception {\n\t\treturn null;\n\t}",
"private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }",
"Login() { \n }",
"public Token userLogin(String x500, String password) {\n\n Token retToken = null;\n\n try {\n retToken = userLogin2(x500, password);\n } catch (SCRSException e) {\n // TODO Auto-generated catch block\n System.out.print(e.getMessage());\n return emptyToken();\n }\n\n return retToken;\n\n }",
"@PostMapping(\"login\")\n\tpublic UserInfo login(@RequestBody User user) {\n\t\treturn userService.login(user);\n\t}"
] |
[
"0.7217326",
"0.7074495",
"0.69752",
"0.6949444",
"0.68376476",
"0.68352264",
"0.6834367",
"0.68289125",
"0.6827361",
"0.6676965",
"0.6587789",
"0.65599215",
"0.6559292",
"0.6538956",
"0.6490836",
"0.6426163",
"0.6366456",
"0.6361379",
"0.6341448",
"0.6326682",
"0.632571",
"0.63002205",
"0.629596",
"0.62842417",
"0.62832433",
"0.62794256",
"0.62727016",
"0.6245384",
"0.6227143",
"0.6209215",
"0.61951035",
"0.61927444",
"0.61896586",
"0.6182614",
"0.61615103",
"0.6160653",
"0.6156114",
"0.61533016",
"0.61484617",
"0.6144704",
"0.61372316",
"0.6136567",
"0.6120044",
"0.6105936",
"0.60956436",
"0.6093752",
"0.6080065",
"0.6072686",
"0.60702944",
"0.6051946",
"0.6045482",
"0.60295606",
"0.6022589",
"0.6021229",
"0.6020296",
"0.60188526",
"0.6018685",
"0.6016385",
"0.60105586",
"0.6006551",
"0.6000502",
"0.5988771",
"0.59875023",
"0.59856915",
"0.5981208",
"0.5977932",
"0.59764373",
"0.5975566",
"0.59700304",
"0.59642047",
"0.5963039",
"0.5962626",
"0.5960873",
"0.5944978",
"0.5940061",
"0.5938763",
"0.5938061",
"0.5936751",
"0.593294",
"0.593057",
"0.5927342",
"0.59268785",
"0.5925276",
"0.5925194",
"0.5920914",
"0.59177893",
"0.5913836",
"0.5913369",
"0.5905489",
"0.5900504",
"0.59002465",
"0.5894016",
"0.588153",
"0.58803016",
"0.58738685",
"0.5867053",
"0.58625776",
"0.58540404",
"0.58445346",
"0.5844481",
"0.58427924"
] |
0.0
|
-1
|
Return the enclosing view
|
@Override
public View getView() {
return mView;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"View getActiveView();",
"public abstract View getMainDialogContainer();",
"Window getParent();",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"public View getView() {\n\t\treturn view;\n\t}",
"protected ViewGroup getDecorView() {\n if (getContext() instanceof Activity) {\n View decor = ((Activity) getContext()).getWindow().getDecorView();\n\n if (decor instanceof ViewGroup) {\n return (ViewGroup) decor;\n }\n }\n\n //Try to fetch DecorView from parents\n ViewGroup view = this;\n while (view.getParent() != null && view.getParent() instanceof ViewGroup) {\n view = (ViewGroup) view.getParent();\n }\n return view;\n }",
"public View getView() { return view; }",
"public View getRootView() {\n return mEnclosingLayout == null ? mDecorContent : mEnclosingLayout;\n }",
"public View getView() {\n return view;\n }",
"public View getRootView(){\n return this.rootView;\n }",
"ViewElement getViewElement();",
"@Override\n public Activity getViewActivity() {\n return this;\n }",
"public View getTopView() {\n\t\tint topViewIndex = getChildCount() - 1;\n\t\treturn getChildAt(topViewIndex);\n\t}",
"public HBox getView() {\n return this;\n }",
"public View initTopView() {\n return null;\n }",
"public Parent getView() {\r\n Parent view = null;\r\n try {\r\n FXMLLoader loader = new FXMLLoader(\r\n ListProjectsViewController.class.getResource(\"/views/collaborator/Collaborator.fxml\"));\r\n loader.load();\r\n viewController = loader.getController();\r\n viewController.setListener(this);\r\n initializeCollaboratorCheckComboBox();\r\n setProjectTitleText();\r\n setCollaboratorsInCheckComboBox();\r\n view = loader.getRoot();\r\n\r\n } catch (IOException e) {\r\n HomeController.displayErrorAlert(e.getMessage(),\r\n ErrorMessagesUtils.ERROR_LOADING_VIEW);\r\n } catch (DatabaseException e) {\r\n HomeController.displayErrorAlert(e.getMessage(),\r\n ErrorMessagesUtils.ERROR_MESSAGE);\r\n } catch (ConnectionFailedException e) {\r\n HomeController.displayErrorAlert(e.getMessage(), ErrorMessagesUtils.CONNECTION_MSG_ERROR);\r\n }\r\n return view;\r\n }",
"public View e() {\n this.i = this.h.findViewById(c.e.popup_window_view);\n return this.i;\n }",
"public abstract int getRootView();",
"@Override\r\n\tpublic View getView() {\n\t\treturn this.view;\r\n\t}",
"@Override\n protected View getUpperView() {\n return null;\n }",
"public String getView();",
"public String getView();",
"protected View getCompartmentView() {\n\t\tView view = (View) getDecoratorTarget().getAdapter(View.class);\r\n\t\tIterator it = view.getPersistedChildren().iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tView child = (View) it.next();\r\n\t\t\tif (child.getType().equals(DeployCoreConstants.HYBRIDLIST_SEMANTICHINT)) {\r\n\t\t\t\treturn child;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public final ShapeView getParentView()\n {\n ShapeParent ancestor = getShapeParent();\n \n while (ancestor != null)\n {\n if (ancestor instanceof ShapeView)\n {\n return (ShapeView) ancestor;\n }\n \n ancestor = ancestor.getShapeParent();\n }\n \n return null;\n }",
"public interface IView {\n\n View getRootView();\n}",
"private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }",
"ViewActivity getDefaultParentActivity();",
"public WindowContent getViewContent() {\r\n return this.windowContent;\r\n }",
"public AbstractView getPrimeView()\n {\n return m_MainWindow.getPrimeView();\n }",
"@Override\r\n\tpublic View getContentView() {\n\t\treturn contentView;\r\n\t}",
"public BwView getView() {\n if (view == null) {\n view = new BwView();\n }\n\n return view;\n }",
"public static java.awt.Frame getParent() {\n return parent;\n}",
"public Pane getView() {\n return gridPane;\n }",
"public interface Helper<I> {\n RootThreadView getParent(I impl);\n }",
"@Override\n public Context getActivityContext() {\n return mView.get().getActivityContext();\n }",
"public View getRootView() {\n return mRootView;\n }",
"public View emitAsView() {\n return view;\n }",
"public DrawingView view() {\n return fView;\n }",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"public View f() {\n return this.h.findViewById(c.e.shadow_view);\n }",
"public TreeViewer getWrapedViewer(){\n\t\treturn wrapedViewer;\n\t}",
"@NonNull\n public final AutoRef<View> getView() throws IllegalStateException, ReferenceNullException {\n return AutoRef.of(getBinding().get().getRoot());\n }",
"UIComponent getParent();",
"public Pane<T> currentPane() {\n return currentPane(System.currentTimeMillis());\n }",
"public Window getParentWindow()\n {\n return LibSwingUtil.getWindowAncestor(parentDialog);\n }",
"private ViewFrame getViewFrame() {\n\t\treturn this.viewFrame;\n\t}",
"public WidgetParent getParent() {\n return this.m_parent;\n }",
"@Override\n\tpublic VLayout asWidget() {\n\t\treturn this;\n\t}",
"ViewContainer createViewContainer();",
"@Override\r\n public View getView() {\r\n return mBaseView;\r\n }",
"public ViewFactory getViewFactory()\n {\n return this;\n }",
"StableView view();",
"public View getPresentView() {\r\n\t\tView _presentView;\r\n\r\n\t\t// check present view\r\n\t\tif (null == _mView) {\r\n\t\t\t// get layout inflater\r\n\t\t\tLayoutInflater _layoutInflater = (LayoutInflater) getContext()\r\n\t\t\t\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n\r\n\t\t\t// inflater present view, save it and return\r\n\t\t\t_presentView = _mView = _layoutInflater.inflate(\r\n\t\t\t\t\tpresentViewLayout(), null);\r\n\t\t} else {\r\n\t\t\t// return immediately\r\n\t\t\t_presentView = _mView;\r\n\t\t}\r\n\r\n\t\treturn _presentView;\r\n\t}",
"@Override\n\tpublic View getView() {\n\t\treturn super.getView();\n\t}",
"private Activity getActivity() {\n return this;\n }",
"protected final Context getParent()\n {\n return m_parent;\n }",
"View createView();",
"@Override\r\n\tpublic Activity getActivity() {\n\t\treturn this;\r\n\t}",
"public AddressSetView getCurrentView();",
"Reference owner();",
"@Override\n\tpublic Activity getActivity() {\n\t\treturn this;\n\t}",
"public MainWindowViewController getMainWindowViewController() {\n return mainWindowViewController;\n }",
"public OwObject getParent()\r\n {\r\n return m_Parent;\r\n }",
"public @Nullable\n JFrame getOuterFrame() {\n if (null == outerFrame) {\n outerFrame = searchForOuterFrame();\n }\n return outerFrame;\n }",
"public Container getViewerPanel() {\n\t\treturn null;\n\t}",
"public java.lang.Boolean getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public java.lang.String getView() {\n return view;\n }",
"public Element getElement() {\n if (view != null) {\n return view.getElement();\n }\n return editor.getDocument().getDefaultRootElement();\n }",
"protected InteractionDrawingEditor getViewEditor()\n {\n return view.getEditor();\n }",
"public Instance getParent() {\r\n \t\treturn parent;\r\n \t}",
"public View getView() {\n // Create view lazily only once it's needed\n if (this.furnitureView == null) {\n this.furnitureView = this.viewFactory.createFurnitureView(this.home, this.preferences, this);\n }\n return this.furnitureView;\n }",
"@Override\n public View getView()\n {\n return view;\n }",
"public AccessibleElement getParent();",
"public IJQLayoutDiv asMe()\n {\n return this;\n }",
"ViewElement createViewElement();",
"public abstract String getView();",
"private Window getWindow() {\r\n return root.getScene().getWindow();\r\n }",
"@Override\n public Matcher way() {\n return withView(getElementView(this));\n }",
"public FlyView flyInstance(View parent);",
"public JRootPane findRootPaneFor(View view) {\n JRootPane pane = super.findRootPaneFor(view);\n\n if (pane != null) {\n return pane;\n }\n\n if (((SwingView) view).getDisplayMode() != SwingView.PRIMARY_WINDOW) {\n return pane;\n }\n\n return frame.getRootPane();\n }",
"PerformancesView getSiblingView() {\n\tif (this.buildsView == null) {\n\t\tthis.buildsView = (PerformancesView) getWorkbenchView(\"org.eclipse.test.internal.performance.results.ui.BuildsView\");\n\t}\n\treturn this.buildsView;\n}",
"default View getView() {\n return null;\n }",
"private TreeViewer getEntryEditorWidgetTreeViewer()\n {\n if ( entryEditor != null )\n {\n EntryEditorWidget mainWidget = entryEditor.getMainWidget();\n if ( mainWidget != null )\n {\n TreeViewer viewer = mainWidget.getViewer();\n return viewer;\n }\n }\n return null;\n }",
"public interface updateParentView {\n void updateParentView();\n }",
"public CoolBar getParent() {\n checkWidget();\n return parent;\n }",
"abstract public Container<?> getParent();",
"public abstract int presentViewLayout();",
"@Override\r\n\tpublic Widget getWidget() {\n\t\treturn asWidget();\r\n\t}",
"public IJoinGameView getJoinGameView() {\n\t\t\n\t\treturn (IJoinGameView)super.getView();\n\t}",
"Views getViews();",
"protected View getBottomLayout() {\n\t\treturn new View(this);\n\t}",
"public FormWindow getRelatedWindow();",
"String getViewClass();",
"public SeleniumQueryObject parent() {\n\t\treturn ParentFunction.parent(this);\n\t}",
"public Object caseView(View object) {\r\n\t\treturn null;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = getThisView(inflater,container);\n return view;\n }",
"public DialogView getView() {\n // Create view lazily only once it's needed\n if (this.home3DAttributesView == null) {\n this.home3DAttributesView = this.viewFactory.createHome3DAttributesView(\n this.preferences, this); \n }\n return this.home3DAttributesView;\n }",
"public JView getJView() {\r\n return this.view;\r\n }"
] |
[
"0.692387",
"0.67280495",
"0.6691033",
"0.66483504",
"0.65470654",
"0.65199304",
"0.64428544",
"0.64363265",
"0.6386162",
"0.63677627",
"0.6364884",
"0.63336897",
"0.6305493",
"0.62874436",
"0.6276591",
"0.62615764",
"0.6246509",
"0.6242639",
"0.621065",
"0.61647177",
"0.6152573",
"0.6152573",
"0.6134444",
"0.6131496",
"0.61276245",
"0.60922855",
"0.60881865",
"0.60598886",
"0.60495126",
"0.6042698",
"0.6005463",
"0.60032856",
"0.5960795",
"0.595684",
"0.59395546",
"0.5915522",
"0.59151995",
"0.59100056",
"0.58986574",
"0.5891653",
"0.5889279",
"0.58546066",
"0.58442664",
"0.5836158",
"0.58306056",
"0.5816573",
"0.58107513",
"0.58106095",
"0.5804575",
"0.57966727",
"0.57877845",
"0.5775422",
"0.5756816",
"0.5755654",
"0.57527655",
"0.5740178",
"0.57384753",
"0.57290614",
"0.57247597",
"0.56990725",
"0.56749046",
"0.56747246",
"0.5672042",
"0.5670387",
"0.5668838",
"0.56572765",
"0.56562626",
"0.56562626",
"0.56562626",
"0.5654292",
"0.56418353",
"0.56274706",
"0.56261015",
"0.5618851",
"0.5612008",
"0.56103086",
"0.55979913",
"0.559024",
"0.5590033",
"0.5589768",
"0.55893993",
"0.5589343",
"0.557306",
"0.55587417",
"0.5543555",
"0.5538453",
"0.55309904",
"0.5514908",
"0.55009407",
"0.55007595",
"0.54976916",
"0.54972166",
"0.5492532",
"0.5482704",
"0.5475921",
"0.5469321",
"0.546848",
"0.54660004",
"0.5465638",
"0.5463711"
] |
0.5664074
|
65
|
To handle the back press
|
@Override
public boolean onBackPreseed() {
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}",
"@Override\n // Detect when the back button is pressed\n public void onBackPressed() {\n\n // Let the system handle the back button\n\n super.onBackPressed();\n\n }",
"@Override\n public void handleOnBackPressed() {\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}",
"@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}",
"@Override\n \tpublic void onBackPressed() {\n \t}",
"@Override\r\n public void onBackPressed() {\n }",
"public void onBackPressed() {\r\n }",
"@Override\n\tpublic void onBackPressed() {\n\n\t}",
"protected void handleBack(ActionEvent event) {\n\t}",
"@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t}",
"@Override\n\tpublic void onBackPressed()\n\t{\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}",
"@Override\n public void onBackPressed() {}",
"@Override\n\t\tpublic boolean handleBackPressed() {\n\t\t\treturn false;\n\t\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}",
"boolean onBackPressed();",
"boolean onBackPressed();",
"@Override\n public void onBackPressed() { }",
"void onGoBackButtonClick();",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n public void onBackPressed() {\n }",
"@Override\n\tpublic void onBackKeyPressed() {\n\treturn;\t\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}",
"@Override\n public void backPressed(){\n }",
"public void onBackPressed() {\n backbutton();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\n\t\t\n\t}",
"@Override\n public void onBackPressed()\n {\n\n }",
"@Override\n public void onBackPressed() {\n backToHome();\n }",
"@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}",
"public void onBackPressed()\n {\n }",
"@Override\n public void onBackPressed() {\n if(web.canGoBack()){\n web.goBack();\n } else {\n super.onBackPressed();\n }\n }",
"public abstract boolean onBackPressed(boolean isSystemBackKey);",
"@Override\n\tpublic void backButton() {\n\n\t}",
"public abstract boolean onBackPressed();",
"@Override\n public void onBackPressed(){\n System.out.println(\"---------------- No debe hacer nada -------------------------------\");\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}",
"public void keyBackIsPressed(){}",
"@Override\n public void backButton() {\n\n\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}",
"public void back() {\n Views.goBack();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n super.onBackPressed();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tfinish();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n\tpublic void onBackKeyPressed() {\n\t\treturn;\n\t}",
"@Override public void onBackPressed() {\n boolean handled = container.onBackPressed();\n if (!handled) {\n finish();\n }\n }",
"@Override\n public void onBackPressed(){\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}",
"public static void onBackPressed()\n {\n }",
"@Override\n public void onBackPressed() {\n exitReveal();\n\n super.onBackPressed();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tfinish();\n\t}",
"@Override\n public void onBackPressed()\n {\n super.onBackPressed();\n }",
"@Override\n public void onBackPressed() {\n return;\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\tthis.finish();\n\t}",
"public boolean onBackPressed() {\n \treturn m_renderer.onBackPressed();\n }",
"@Override\n\tpublic void onBackPressed() {\n\t\tupdata();\n\t\tsuper.onBackPressed();\n\t}",
"@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if(keyCode==KeyEvent.KEYCODE_BACK){\n return back();\n }\n return super.onKeyDown(keyCode, event);\n }"
] |
[
"0.86009663",
"0.85492903",
"0.85341763",
"0.8529914",
"0.85047936",
"0.8490572",
"0.84406495",
"0.843962",
"0.84213173",
"0.84176886",
"0.840385",
"0.84013295",
"0.83889157",
"0.83889157",
"0.83889157",
"0.83889157",
"0.8388053",
"0.83811283",
"0.8371261",
"0.8367858",
"0.8355837",
"0.8355837",
"0.83461905",
"0.83461905",
"0.832931",
"0.8327437",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.83100486",
"0.8308431",
"0.82970095",
"0.82970095",
"0.8291779",
"0.8286055",
"0.8283852",
"0.8279973",
"0.82655054",
"0.825829",
"0.82456607",
"0.82456607",
"0.82456607",
"0.82456607",
"0.82456607",
"0.82456607",
"0.82456607",
"0.82456607",
"0.823369",
"0.8217807",
"0.8212625",
"0.8201523",
"0.8194752",
"0.81901914",
"0.8181273",
"0.81745464",
"0.8171687",
"0.81551003",
"0.8142449",
"0.8142449",
"0.8115581",
"0.81092834",
"0.81092834",
"0.81092834",
"0.81092834",
"0.81092834",
"0.81092834",
"0.81092834",
"0.8103655",
"0.8103655",
"0.8100382",
"0.8100382",
"0.8100382",
"0.8100382",
"0.80924946",
"0.80875427",
"0.8084835",
"0.8083519",
"0.8080703",
"0.8066738",
"0.8065995",
"0.8057139",
"0.8057139",
"0.8057139",
"0.80567485",
"0.8051598",
"0.80469143",
"0.80189794",
"0.8017019",
"0.80151707"
] |
0.0
|
-1
|
Create the view from the id provided
|
@Override
public void init(LayoutInflater inflater, ViewGroup parent) {
mView = inflater.inflate(R.layout.project_task_layout, parent, false);
mTaskList = (ExpandableListView) mView.findViewById(R.id.task_list);
// mTaskList.setHasFixedSize(true);
// final LinearLayoutManager mLayoutManager = new LinearLayoutManager(inflater.getContext());
// mTaskList.setLayoutManager(mLayoutManager);
mProjectName = (TextView) mView.findViewById(R.id.project_name);
final LinearLayout linearLayout = (LinearLayout) mView.findViewById(R.id.collapse_layout);
mProjectName.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if(linearLayout.getVisibility() == View.VISIBLE)
collapse(linearLayout);
else
expand(linearLayout);
}
});
mTaskList.setOnGroupClickListener(new ExpandableListView.OnGroupClickListener() {
@Override
public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {
// We call collapseGroupWithAnimation(int) and
// expandGroupWithAnimation(int) to animate group
// expansion/collapse.
if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
return parent.expandGroup(groupPosition, true);
}else
return true;
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"View createView();",
"@SuppressWarnings(\"unchecked\")\n\tpublic View getView(String id) {\n\t\tid =id.trim();\n\t\tt = (T) activity.findViewById(getId(id));\n\t\treturn (View)t;\n\t}",
"ViewElement createViewElement();",
"@GetMapping(\"/viewItem/{id}\")\n\tpublic ModelAndView viewItemById(@PathVariable(value=\"id\") long id) {\n\t\tModelAndView mv = new ModelAndView();\n\t\tItem item = itemService.findItemById(id);\n\t\tmv.setViewName(\"preview\");\n\t\tmv.addObject(\"item\", item);\n\t\t\n\t\treturn mv;\n\t}",
"int getViewId();",
"@SuppressWarnings(\"unchecked\")\n\tpublic <T extends View> T id(int id, Class<T> clz) {\n\t\treturn (T) id(id);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic View getView(int id) {\n\t\t\n\t\tt = (T) activity.findViewById(id);\n\t\treturn (View)t;\n\t}",
"public View findViewById(int id) {\r\n\t\tView _view;\r\n\r\n\t\t// get parent view\r\n\t\tView _presentView = getPresentView();\r\n\r\n\t\t// check present view\r\n\t\tif (null == _presentView) {\r\n\t\t\t_view = null;\r\n\r\n\t\t\tLog.e(LOG_TAG, \"Simple imeeting base view present view is null.\");\r\n\t\t} else {\r\n\t\t\t_view = _presentView.findViewById(id);\r\n\t\t}\r\n\r\n\t\treturn _view;\r\n\t}",
"public View create(Element elem) {\n return null;\n }",
"private View create(PersistedView pView) {\n DsmSorting sorting = nameToSorting.get(pView.dsmSortingName);\n if (null == sorting) {\n sorting = DsmSorting.values()[0];\n }\n\n View view = new View();\n view.setName(decodeString(pView.name));\n view.setSorting(sorting);\n\n return view;\n }",
"ViewCreator get(String userName);",
"@Override\n public void Create() {\n\n initView();\n }",
"public int getViewId() {\n return 123456;\n }",
"public static int generateViewId() {\n return View.generateViewId();\n }",
"public static DrawFragment newInstance(int index, Long id) {\n\t\t\n\t\tDrawFragment fragment = new DrawFragment();\n\t\t\n\t\tLog.e(\"TAG\",\"index = \" + index);\n\t\t\n\t\tBundle args = new Bundle();\n\t\targs.putInt(\"index\", index);\n\t\targs.putLong(\"imageId\", id);\n\t\t\n\t\tfragment.setArguments(args);\n\t\t\n\t\treturn fragment;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic S<T> get(View view,String id) {\n\t\tid =id.trim();\n\t\tt = (T) view.findViewById(getId(id));\n\t\treturn this;\n\t}",
"@SuppressWarnings(\"unchecked\")\n public static <T extends View> T get(View view, int id) {\n SparseArray<View> viewHolder = (SparseArray<View>) view.getTag();\n if (viewHolder == null) {\n viewHolder = new SparseArray<>();\n view.setTag(viewHolder);\n }\n View childView = viewHolder.get(id);\n if (childView == null) {\n childView = view.findViewById(id);\n viewHolder.put(id, childView);\n }\n return (T) childView;\n }",
"void addPropsView(String id, String className);",
"protected static View getView(String workspaceId, String modelId,\n String moduleId, String viewId) throws AnaplanAPIException {\n Module module = getModule(workspaceId, modelId, moduleId);\n\n if (module == null) {\n return null;\n }\n if (viewId == null || viewId.isEmpty()) {\n LOG.error(\"A view ID must be provided\");\n return null;\n }\n View view = module.getView(viewId);\n if (view == null) {\n LOG.error(\"View \\\"{}\\\" not found in workspace \\\"{}\\\", model \\\"{}\\\", module \\\"{}\\\"\",\n viewId, workspaceId, modelId, moduleId);\n }\n return view;\n }",
"public View create(Element elem, int p0, int p1) {\n return null;\n }",
"public OfficeDetailsActivity(String id, ApplicationRequestFactory requests,\n PlaceController<ApplicationPlace> placeController,\n RecordDetailsView<OfficeRecord> view) {\n this.placeController = placeController;\n this.id = id;\n this.requests = requests;\n view.setDelegate(this);\n this.view = view;\n }",
"View mo73990a(View view);",
"public void addSportmatchView(String name, int id) {\n LayoutInflater inflater = LayoutInflater.from(getContext());\n View inflatedLayout = inflater.inflate(R.layout.sportsnew, null);\n TextView sportsName = inflatedLayout.findViewById(R.id.sportsName);\n sportsName.setText(name);\n spoetsLayoyView.addView(inflatedLayout);\n\n }",
"private Response createActivityView(String scopeName, String roleName, Integer activityId, String tripId, Integer reportId, boolean withHistory, HttpServletRequest request, ActivityViewEnum view) throws ServiceException {\n String username = request.getRemoteUser();\n List<Dataset> datasets = usmService.getDatasetsPerCategory(USMSpatial.USM_DATASET_CATEGORY, username, USMSpatial.APPLICATION_NAME, roleName, scopeName);\n return createSuccessResponse(activityService.getFishingActivityForView(activityId, tripId, reportId, datasets, view, withHistory));\n }",
"@RequestMapping(value = \"/friendlink_view.jspx\", method = RequestMethod.GET)\r\n\tpublic void view(Integer id, HttpServletRequest request, HttpServletResponse response, ModelMap model) {\r\n\t\tif (id != null) {\r\n\t\t\tcmsFriendlinkMng.updateViews(id);\r\n\t\t\tResponseUtils.renderJson(response, \"true\");\r\n\t\t} else {\r\n\t\t\tResponseUtils.renderJson(response, \"false\");\r\n\t\t}\r\n\t}",
"public T createModel(Cursor cursor, String id);",
"@SuppressWarnings(\"unchecked\")\n\tpublic S<T> get(View view,int id) {\n\t\t\n\t\tt = (T) view.findViewById(id);\n\t\treturn this;\n\t}",
"interface ViewCreator {\n /**\n * Creates a view\n * @param path\n * @param sql\n * @param sqlContext\n */\n void createView(List<String> path, String sql, List<String> sqlContext, NamespaceAttribute... attributes);\n\n /**\n * Updates a view\n * @param path\n * @param sql\n * @param sqlContext\n * @param attributes\n */\n void updateView(List<String> path, String sql, List<String> sqlContext, NamespaceAttribute... attributes);\n\n /**\n * Drops a view\n * @param path\n */\n void dropView(List<String> path);\n }",
"@Override\n\tprotected Dialog onCreateDialog(int id)\n\t{\n\t\tsuper.onCreateDialog(id);\n\t\treturn visitor.instantiateDialog(id);\n\t}",
"ViewComponent createViewComponent();",
"private ViewFactory() {}",
"public static IView createView(String viewName, Readable file) throws IllegalArgumentException {\r\n IView<IReadOnlyModel<IMusicNote, IMusicPiece>> outputView = null;\r\n MusicalOperations<IMusicNote, IMusicPiece> mutableModel = MusicReader.parseFile(file, new\r\n MusicModel.ModelBuilder());\r\n IReadOnlyModel<IMusicNote, IMusicPiece> inputModel = new ReadOnlyModel(mutableModel);\r\n\r\n switch (viewName.toLowerCase()) {\r\n case \"midi\":\r\n try {\r\n outputView = new MidiViewer(inputModel, MidiSystem.getSequencer());\r\n } catch (MidiUnavailableException e) {\r\n e.getMessage();\r\n }\r\n break;\r\n\r\n case \"visual\":\r\n outputView = new GUIView(inputModel);\r\n break;\r\n\r\n case \"console\":\r\n outputView = new ConsoleViewer(inputModel);\r\n break;\r\n\r\n case \"composite\":\r\n try {\r\n outputView = new CompositeView(inputModel, MidiSystem.getSequencer());\r\n } catch (MidiUnavailableException e) {\r\n e.getMessage();\r\n }\r\n break;\r\n\r\n default:\r\n throw new IllegalArgumentException(\"Invalid type of view specified!\");\r\n }\r\n\r\n return outputView;\r\n }",
"void loadById(int id, LoadView mLoadView);",
"public View findViewById(int id) {\n Activity activity = ((Activity) context_);\n return activity.findViewById(id);\n }",
"public View findViewById(int id) {\n Activity activity_ = ((Activity) context_);\n return activity_.findViewById(id);\n }",
"public static View getView(Context context, int resourceId, View view) {\n\t\tLayoutInflater inflater = LayoutInflater.from(context);\n\t\tif (view != null) {\n\t\t\treturn view;\n\t\t}\n\t\tif (resourceId != INVALID) {\n\t\t\tview = inflater.inflate(resourceId, null);\n\t\t}\n\t\treturn view;\n\t}",
"@Test\n public void previewTemplateFromIdTest() throws IdfyException, Exception {\n TemplateWithIdPreview model = new TemplateWithIdPreview.Builder().build();\n UUID id = UUID.randomUUID();\n String xmlTemplate = new String(\"123\");\n api.previewTemplateFromId(model, id, xmlTemplate);\n }",
"private void processCreateView() throws HsqlException {\n\n String name = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n int logposition = tokenizer.getPartMarker();\n\n database.schemaManager.checkUserViewNotExists(session, name,\n schemaname.name);\n\n HsqlName viewHsqlName = database.nameManager.newHsqlName(name,\n tokenizer.wasQuotedIdentifier());\n\n viewHsqlName.schema = schemaname;\n\n HsqlName[] colList = null;\n\n if (tokenizer.isGetThis(Token.T_OPENBRACKET)) {\n try {\n HsqlArrayList list = Parser.getColumnNames(database, null,\n tokenizer, true);\n\n colList = new HsqlName[list.size()];\n colList = (HsqlName[]) list.toArray(colList);\n } catch (HsqlException e) {\n\n // fredt - a bug in 1.8.0.0 and previous versions causes view\n // definitions to script without double quotes around column names\n // in certain cases; the workaround here discards the column\n // names\n if (database.isStoredFileAccess()\n && session.isProcessingScript()) {\n while (true) {\n String token = tokenizer.getString();\n\n if (token.equals(Token.T_CLOSEBRACKET)\n || token.equals(\"\")) {\n break;\n }\n }\n } else {\n throw e;\n }\n }\n }\n\n tokenizer.getThis(Token.T_AS);\n tokenizer.setPartMarker();\n\n Parser parser = new Parser(session, database, tokenizer);\n int brackets = parser.parseOpenBracketsSelect();\n Select select;\n\n // accept ORDER BY or ORDRY BY with LIMIT - accept unions\n select = parser.parseSelect(brackets, true, false, true, true);\n\n if (select.sIntoTable != null) {\n throw (Trace.error(Trace.INVALID_IDENTIFIER, Token.INTO));\n }\n\n select.prepareResult(session);\n\n View view = new View(session, database, viewHsqlName,\n tokenizer.getLastPart(), colList);\n\n session.commit();\n database.schemaManager.linkTable(view);\n tokenizer.setPartMarker(logposition);\n }",
"public Model(int id) {\n\t\tthis.id = id;\n\t}",
"public void viewHandler(View v) {\n LinearLayout vwParentRow = (LinearLayout)v.getParent();\n TextView id =(TextView) vwParentRow.findViewById(R.id._id);\n Intent intent = new Intent(Hates.this, Formulario.class);\n\n intent.putExtra(C_MODO, C_VISUALIZAR);\n intent.putExtra(mDbHelper.ID, Long.valueOf((String)id.getText()));\n\n\n this.startActivityForResult(intent, C_VISUALIZAR);\n }",
"public Activity getById(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t return e; \n\t}",
"public static int getViewId() {\n\t\tviewId += 0x00000001;\n\t\treturn viewId;\n\t}",
"@Override\n public View createView(final String name, final String description) {\n final CView newView = m_module.getContent().getViewContainer().createView(name, description);\n\n return ObjectFinders.getObject(newView, m_views);\n }",
"public abstract ArchECoreView newView(ArchECoreArchitecture architecture) throws ArchEException;",
"@Override\n public void Create() {\n initView();\n initData();\n }",
"public View findViewById(int viewId){\r\n return AppContext.getCurrent().getActivity().getCurrentView().findViewById(viewId);\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic S<T> get(String id){\n\t\tid =id.trim();\n\t\t\n\t\tif(id.contains(\"*\")){\n\t\t\tif(l==null)\n\t\t\tl = (LinkedList<Sview>) getTableId();\n\t\t\t\n\t\t\tString sufix = getSufix(id);\n\t\t\tLinkedList<View> lv = new LinkedList<View>();\n\t\t\tfor (Sview v : l) {\n\t\t\t\tif(v.name.startsWith(sufix)){\n\t\t\t\t\tView vi = activity.findViewById(v.id);\n\t\t\t\t\tif(vi!=null)\n\t\t\t\t\tlv.add(vi);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(lv.size()!=0){\n\t\t\t\tt = (T) lv;\n\t\t\t}\n\t\t\t\n\t\t\treturn this;\n\t\t}\n\t\tif(id.equals(\"TextView\")){\t\t\n\t\t\tgetViewByType(\"TextView\");\n\t\t\treturn this;\n\t\t}\n\t\t\n\t\tif(id.equals(\"Button\")){\n\t\t\tgetViewByType(\"Button\");\n\t\t\treturn this;\n\t\t}\n\t\tif(id.equals(\"ImageView\")){\n\t\t\tgetViewByType(\"ImageView\");\n\t\t\treturn this;\n\t\t}\n\t\tif(id.equals(\"EditText\")){\n\t\t\tgetViewByType(\"EditText\");\n\t\t\treturn this;\n\t\t}\n\t\tif(id.equals(\"CheckBox)\")){\n\t\t\tgetViewByType(\"CheckBox\");\n\t\t\treturn this;\n\t\t}\n\t\tif(id.equals(\"ImageButton)\")){\n\t\t\tgetViewByType(\"ImageButton\");\n\t\t\treturn this;\n\t\t}\n\t\t\n\t\tif(id.equals(\"RadioButton)\")){\n\t\t\tgetViewByType(\"RadioButton\");\n\t\t\treturn this;\n\t\t}\n\t\t\n\t\t\n\t\t\tt = (T) activity.findViewById(getId(id));\n\n\t\treturn this;\n\t}",
"@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }",
"public ViewFactory(DataManager dm) {\n this.dm = dm;\n }",
"public ArticlePage openArticle(int id) {\n LOGGER.info(\"Opening article Nr. \" + (id + 1));\n baseFunc.click(getArticleById(id));\n return new ArticlePage(baseFunc);\n\n }",
"public void setTeacherOpView(int id) {\n\t\t\tviewTeacherOp = new TeacherOpView(id);\r\n\t\t\t//viewInsert.addBtnListener(listener);\r\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic View getView(String viewName) {\n\n\t\tint resourceID = context.getResources().getIdentifier(viewName, \"id\",\n\t\t\t\tcontext.getPackageName());\n\t\tviewObject = activity.findViewById(resourceID);\n\n\t\treturn viewObject;\n\t}",
"private View() {}",
"@Override\n\tpublic TvShow create(long tvShowId) {\n\t\tTvShow tvShow = new TvShowImpl();\n\n\t\ttvShow.setNew(true);\n\t\ttvShow.setPrimaryKey(tvShowId);\n\n\t\tString uuid = PortalUUIDUtil.generate();\n\n\t\ttvShow.setUuid(uuid);\n\n\t\treturn tvShow;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mBinding = DataBindingUtil.inflate(inflater,R.layout.fragment_goods, container, false);\n id = (String)getActivity().getIntent().getExtras().get(\"id\");\n initView();\n initData();\n\n return mBinding.getRoot();\n }",
"public String viewAction(long id) {\n quiz = quizEJB.getQuizById(id);\n return \"quiz.xhtml\";\n }",
"public ViewObject(ActivityInstance instance)\n {\n // Populate fields\n this.templateId = instance.getTemplate().getId();\n this.name = instance.getName();\n this.description = instance.getDescription();\n this.paramValues = instance.getParameterValues();\n }",
"private Id getViewContainerID() {\n if (semantic == null) {\n return Id.invalid();\n }\n return new Id(RefreshIDFactory.getOrCreateID(viewContainer));\n }",
"public View createView(String viewName,String query,List<String> attributeNames,\n\t\t\tList<String> summaries, List<String> summaryNames, DBConnector connectionType) throws Exception {\n\t\tif(this.viewMap.containsKey(viewName)) throw new Exception(\"view name '\"+viewName+\"' already exists!\");\n\t\tView v = new View(viewName,query, attributeNames, summaries, summaryNames,connectionType);\n\t\tthis.viewMap.put(viewName, v);\n\t\treturn v;\n\t}",
"private void NavCamera(int id){\n RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(Constants.START_POSITION, Constants.START_POSITION);\n View view = getLayoutInflater().inflate(R.layout.im_view, null);\n view.setLayoutParams(layoutParams);\n\n (view.findViewById(R.id.imm)).setId(idForNewItem);\n\n mapGeneratedImage.put(idForNewItem, new ParametersGeneratedImage(view, id));\n int temp = 1;\n if (mapForNewNote.get(mapGeneratedImage.get(idForNewItem)._type) != null)\n temp = mapForNewNote.get(mapGeneratedImage.get(idForNewItem)._type) + 1;\n mapForNewNote.put(mapGeneratedImage.get(idForNewItem)._type, temp);\n\n relativeMoveLayout.addView(view);\n\n view.setOnClickListener(this);\n view.setOnTouchListener(this);\n\n Toast.makeText(getApplicationContext(), \"count droids: \" + temp, Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(), \"id: \" + view.getId(), Toast.LENGTH_SHORT).show();\n idForNewItem++;\n }",
"private void createNewVisualPane(int solverId) {\n }",
"public static void bgfx_set_view_name(@NativeType(\"bgfx_view_id_t\") int _id, @NativeType(\"char const *\") ByteBuffer _name) {\n if (CHECKS) {\n checkNT1(_name);\n }\n nbgfx_set_view_name((short)_id, memAddress(_name));\n }",
"public static IView makeView(String type, int tempo) throws IllegalArgumentException {\n switch (type) {\n case \"text\":\n return new TextView();\n case \"visual\":\n return new VisualView(tempo);\n case \"svg\":\n return new SVGView(tempo);\n case \"edit\":\n return new EditorView(new VisualView(tempo));\n default:\n throw new IllegalArgumentException(\"Not a valid view\");\n }\n }",
"public DisplayObject(String id) {\n\t\tthis.setId(id);\n\t\tpointTransform =new AffineTransform();\n\t\tinitBbox();\n\t}",
"public static FishDetailFragment newInstance(String id) {\n FishDetailFragment fragment = new FishDetailFragment();\n Bundle args = new Bundle();\n args.putString(SELECTED_FISH_ID, id);\n fragment.setArguments(args);\n return fragment;\n }",
"protected Reservation factory(int id, Reservation entry) {\r\n \t\treturn new Reservation(id, entry.customer, entry.period, entry.vehicle);\r\n \t}",
"public View setClick(int id)\r\n\t{\r\n\r\n\t\tView v = findViewById(id);\r\n\t\tif (v != null)\r\n\t\t\tv.setOnClickListener(this);\r\n\t\treturn v;\r\n\t}",
"public static IView create(String s, int tempo) {\n if (s == null) {\n throw new IllegalArgumentException(\"Found Null Value\");\n }\n switch (s) {\n case \"text\":\n return new TextualView(tempo);\n case \"svg\":\n return new SVGView(tempo);\n case \"visual\":\n return new AnimationView(tempo);\n case \"interactive\":\n return new HybridView(tempo);\n default:\n throw new IllegalArgumentException(\"Can't Found This View\");\n }\n }",
"@Override\r\n\tpublic Botany show(int id) {\n\t\treturn dao.show(id);\r\n\t}",
"@GetMapping(\"/getItem/{id}\")\n\tpublic ModelAndView getItemById(@PathVariable(value=\"id\") long id) {\n\t\tModelAndView mv = new ModelAndView();\n\t\tItem item = itemService.findItemById(id);\n\t\tmv.setViewName(\"editItem\");// Set the view name\n\t\tmv.addObject(\"item\", item);// Add an item to the model and view object\n\t\t\n\t\treturn mv;\n\t}",
"public org.oep.cmon.dao.tlct.model.DanhMucGiayTo create(long id);",
"public void setBindViewId(int id){\n mBindViewId = id;\n }",
"ViewContainer createViewContainer();",
"public void setViewIdToLevel(int id) {\n mSameHeightViewId = id;\n }",
"void viewProductById(long id);",
"protected Scene createView() {\n\t\treturn null;\n\t}",
"@GetMapping(path = \"/view/{id}\")\n public String showById(@PathVariable(\"id\") Long id, Model model) {\n log.info(\"READ itinerary by ID : {}\", id);\n \n Itinerary itinerary = itineraryService.findById(id);\n \n if (Objects.isNull(itinerary)) {\n log.info(\"Any sector found with ID : {}\", id);\n return \"redirect:/itineraries/view\";\n }\n \n TreeSet<Comment> comments = new TreeSet<>(itinerary.getComments());\n \n model.addAttribute(\"itinerary\", itinerary);\n model.addAttribute(\"comment\", new Comment());\n model.addAttribute(\"comments\", comments);\n \n return VIEW;\n }",
"public static void bgfx_set_view_name(@NativeType(\"bgfx_view_id_t\") int _id, @NativeType(\"char const *\") CharSequence _name) {\n MemoryStack stack = stackGet(); int stackPointer = stack.getPointer();\n try {\n stack.nASCII(_name, true);\n long _nameEncoded = stack.getPointerAddress();\n nbgfx_set_view_name((short)_id, _nameEncoded);\n } finally {\n stack.setPointer(stackPointer);\n }\n }",
"public Version(Integer id) {\n this.id = id;\n }",
"public Lane(String id) {\n\t\tm_id = id;\n\t\tm_name = id;\n\t}",
"public static Uri buildMovieWithId(long id)\n {\n return ContentUris.withAppendedId(CONTENT_URI, id);\n }",
"Viewpoint createViewpoint();",
"public ViewEntryIdentificator( final String unid, final ViewIdentificator view ) {\r\n super();\r\n this.unid = unid;\r\n this.view = view;\r\n }",
"public ViewHolder(View view) {\n super(view);\n mView = view;\n mIdView = (TextView) view.findViewById(R.id.id);\n mContentView = (TextView) view.findViewById(R.id.content);\n mIconView = (ImageView) view.findViewById(R.id.browserIcon);\n }",
"AgendaViewModel create(Bundle savedInstanceState);",
"public void testCreateView()\n throws Exception\n {\n String sql = \"create schema s4\";\n stmt.execute(sql);\n\n sql = \"create view s4.v as select * from (values(0))\";\n runAndDiff(sql);\n }",
"public View create(Element elem)\n {\n if(isTextEval) {\n return new bluej.debugmgr.texteval.TextEvalSyntaxView(elem);\n }\n else {\n return new MoeSyntaxView(elem, errorMgr);\n }\n }",
"@Override\n public void openEventDetailView(int eventId) {\n EventDetailFragment eventDetailFragment = new EventDetailFragment();\n Bundle args = new Bundle();\n args.putInt(\"eventId\", eventId);\n eventDetailFragment.setArguments(args);\n\n createTransactionAndReplaceFragment(eventDetailFragment, getString(R.string.frg_tag_event_detail));\n }",
"protected void setViewId(View v, int id) {\n\t\tint current_id = v.getId();\n\t\tv.setId(id);\n\t\tfor(int i = 0; i < getChildCount(); i++) {\n\t\t\tRelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)getChildAt(i).getLayoutParams();\n\t\t\tint rules[] = params.getRules();\n\t\t\tfor(int j = 0; j < rules.length; j++) {\n\t\t\t\tif(rules[j] == current_id) {\n\t\t\t\t\tparams.addRule(j, id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"ViewComponentPart createViewComponentPart();",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }",
"@Override\n public void onClick(View view) {\n System.out.println(view.getId());\n switch(view.getId()){\n case R.id.btnNewWalk:\n showCreateWalkActivity();\n break;\n case R.id.btnNewWaypoint:\n showAddWayPointActivity();\n break;\n case R.id.btnSaveWalk:\n saveWalk();\n break;\n }\n }",
"public New getObject(long id);",
"public AddItemViewParameters(String viewID, Long id) {\n\t\tthis.id = id;\n\t\tthis.viewID = viewID;\n\t}",
"public interface ViewCreatorFactory extends Service {\n /**\n * Used to create Views in a space\n */\n interface ViewCreator {\n /**\n * Creates a view\n * @param path\n * @param sql\n * @param sqlContext\n */\n void createView(List<String> path, String sql, List<String> sqlContext, NamespaceAttribute... attributes);\n\n /**\n * Updates a view\n * @param path\n * @param sql\n * @param sqlContext\n * @param attributes\n */\n void updateView(List<String> path, String sql, List<String> sqlContext, NamespaceAttribute... attributes);\n\n /**\n * Drops a view\n * @param path\n */\n void dropView(List<String> path);\n }\n\n /**\n * get a ViewCreator for a particular user\n * @param userName\n * @return the ViewCreator\n */\n ViewCreator get(String userName);\n}",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"Factory selectByPrimaryKey(Long id);",
"String getUview_id();",
"public static ArticulosFragment newInstance(UUID articuloId){\n Bundle argumentos = new Bundle();\n argumentos.putSerializable(ARG_ARTICULO_ID,articuloId);\n\n ArticulosFragment fragment = new ArticulosFragment();\n fragment.setArguments(argumentos);\n return fragment;\n }",
"public ViewHolder(View view) {\n super(view);\n mView = view;\n mIdView = (TextView) view.findViewById(R.id.item_number);\n mContentView = (TextView) view.findViewById(R.id.content);\n }"
] |
[
"0.6843761",
"0.66569984",
"0.6180716",
"0.61533594",
"0.6120605",
"0.6119012",
"0.6105365",
"0.60350835",
"0.6013716",
"0.59523714",
"0.59439844",
"0.5875928",
"0.58672816",
"0.5842909",
"0.58334374",
"0.58196",
"0.58059424",
"0.58056754",
"0.57778853",
"0.57746065",
"0.57629347",
"0.5759063",
"0.56861955",
"0.56712395",
"0.56707937",
"0.56676304",
"0.563709",
"0.56074786",
"0.5597759",
"0.55852515",
"0.55742574",
"0.55579346",
"0.5554991",
"0.5550993",
"0.5543417",
"0.5518857",
"0.5508133",
"0.549761",
"0.5495517",
"0.5486516",
"0.54682004",
"0.54533",
"0.5447168",
"0.5442834",
"0.5439436",
"0.54377806",
"0.54295266",
"0.54199284",
"0.5413683",
"0.54000175",
"0.5392029",
"0.5387972",
"0.53749186",
"0.53728604",
"0.537121",
"0.5356249",
"0.5343448",
"0.5342035",
"0.53254145",
"0.5316047",
"0.5310583",
"0.5309935",
"0.5297719",
"0.5296012",
"0.52924067",
"0.52899766",
"0.5289959",
"0.52893424",
"0.528873",
"0.5288214",
"0.5282372",
"0.52781755",
"0.52741706",
"0.52721936",
"0.52718157",
"0.527045",
"0.5263169",
"0.52626014",
"0.52623427",
"0.5259429",
"0.52503556",
"0.52243173",
"0.52137876",
"0.5203096",
"0.51963896",
"0.5194435",
"0.5184596",
"0.5184141",
"0.5182218",
"0.51771903",
"0.5175939",
"0.5175939",
"0.51722604",
"0.517162",
"0.51695734",
"0.5166916",
"0.51639307",
"0.5160888",
"0.5149408",
"0.51476896",
"0.5146899"
] |
0.0
|
-1
|
We call collapseGroupWithAnimation(int) and expandGroupWithAnimation(int) to animate group expansion/collapse.
|
@Override
public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {
if ( Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
return parent.expandGroup(groupPosition, true);
}else
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onGroupCollapse(int groupPosition) {\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\n public void onGroupCollapse(int groupPosition) {\n\n }",
"@Override\r\n public void onGroupCollapse(int groupPosition) {\n\r\n }",
"void onGroupExpanded(int groupPosition);",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n }",
"void onGroupCollapsed(int groupPosition);",
"@Override\n public void onGroupExpand(int groupPosition) {\n\n }",
"@Override\n public void onGroupExpanded(int groupPosition) {\n\n }",
"@Override\r\n public void onGroupExpand(int groupPosition) {\n }",
"@Override\n public void onGroupCollapsed(int groupPosition) {\n\n }",
"@Override\n\tpublic boolean onGroupClick(ExpandableListView parent, View v,\n\t\t\tint groupPosition, long id) {\n\t\tif (mAnimatedExpandableListView.isGroupExpanded(groupPosition)) {\n\t\t\tmAnimatedExpandableListView\n\t\t\t\t\t.collapseGroupWithAnimation(groupPosition);\n\t\t} else {\n\t\t\tmAnimatedExpandableListView.expandGroupWithAnimation(groupPosition);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\t\t\t\t\tpublic void onGroupExpand(int groupPosition) {\n\t\t\t\t\t\tfor (int i = 0; i < expListAdapter.getGroupCount(); i++) {\r\n\r\n\t\t\t\t\t\t\tif (i != groupPosition) {\r\n\t\t\t\t\t\t\t\texpandablelistView.collapseGroup(i);\r\n\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}",
"public void collapse() {\n if (getVisibility() == View.GONE) {\n return;\n }\n mAnimatorCollapse.setDuration(mDuration);\n mAnimatorCollapse.start();\n }",
"void collapse(Segment seg, Animation anim);",
"@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v,\r\n int groupPosition, long id) {\n if (sign == -1) {\r\n // 展开被选的group\r\n data_list.expandGroup(groupPosition);\r\n // 设置被选中的group置于顶端\r\n data_list.setSelectedGroup(groupPosition);\r\n sign = groupPosition;\r\n } else if (sign == groupPosition) {\r\n data_list.collapseGroup(sign);\r\n sign = -1;\r\n } else {\r\n data_list.collapseGroup(sign);\r\n // 展开被选的group\r\n data_list.expandGroup(groupPosition);\r\n // 设置被选中的group置于顶端\r\n data_list.setSelectedGroup(groupPosition);\r\n sign = groupPosition;\r\n }\r\n return true;\r\n }",
"public void expand() {\n if (getVisibility() == View.VISIBLE) {\n return;\n }\n setVisibility(View.VISIBLE);\n mAnimatorExpand.setDuration(mDuration);\n mAnimatorExpand.start();\n }",
"public boolean collapse(final boolean animated);",
"private void collapseAll()\r\n\t{\r\n\t\tint count = listAdapter.getGroupCount();\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tmyList.collapseGroup(i);\r\n\t\t}\r\n\t}",
"public void collapse() {\n if (DEBUG) logf(\"collapse: \" + this);\n if (!isFullyCollapsed()) {\n mTimeAnimator.cancel();\n mClosing = true;\n // collapse() should never be a rubberband, even if an animation is already running\n mRubberbanding = false;\n fling(-mSelfCollapseVelocityPx, /*always=*/ true);\n }\n }",
"@SuppressWarnings(\"unused\")\n public GroupingToggle(final double cellWidth,\n final double cellHeight,\n final boolean isGrouped) {\n toggle.setText(isGrouped ? TOGGLE_ICON_EXPAND : TOGGLE_ICON_COLLAPSE);\n toggle.setX(cellWidth - TOGGLE_FONT_SIZE - PADDING);\n toggle.setY(TOGGLE_FONT_SIZE + PADDING);\n add(toggle);\n }",
"@Override\n public void onGroupExpand(int groupPosition) {\n switch (headerList.get(groupPosition).getMenuName()) {\n case (\"About\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new FragmentAbout());\n // getSupportFragmentManager().beginTransaction().add(R.id.fregmentContainer, new FragmentAbout()).addToBackStack(null).commit();\n //Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n case (\"Contact Us\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new FragmentContactUs());\n //().beginTransaction().add(R.id.fregmentContainer, new FragmentContactUs()).addToBackStack(null).commit();\n // Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n case (\"Product Registration\"):\n fregmentContainer.removeAllViews();\n replaceFragment(new ProductRegistrationFragment());\n // getSupportFragmentManager().beginTransaction().add(R.id.fregmentContainer, new ProductRegistrationFragment()).addToBackStack(null).commit();\n //Toast.makeText(DrawerActivity.this, \"ABOUT\", Toast.LENGTH_SHORT).show();\n drawer.closeDrawers();\n break;\n\n }\n\n\n // return true;\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n GroupHolder groupHolder = null;\n if (convertView == null) {\n convertView = LayoutInflater.from(mContext).inflate(R.layout.mangement_class_activity_elv_group_item, null);\n groupHolder = new GroupHolder();\n groupHolder.groupImg = (ImageView) convertView.findViewById(R.id.mangement_class_activity_elv_group_item_class_icon_iv);\n groupHolder.groupText = (TextView) convertView.findViewById(R.id.mangement_class_activity_elv_group_item_class_name_tv);\n convertView.setTag(groupHolder);\n }else {\n groupHolder = (GroupHolder) convertView.getTag();\n }\n\n if (isExpanded) {\n groupHolder.groupImg.setImageResource(R.mipmap.down_arrow);\n }else {\n groupHolder.groupImg.setImageResource(R.mipmap.right_arraw);\n }\n\n groupHolder.groupText.setText(groupTitle.get(groupPosition));\n\n// groupButton = (Button) convertView.findViewById(R.id.btn_group_function);\n// groupButton.setOnClickListener(this);\n return convertView;\n }",
"public void collapseNoAnim() {\n if (getVisibility() == View.GONE) {\n return;\n }\n mAnimatorCollapse.setDuration(0);\n mAnimatorCollapse.start();\n }",
"private void expandAll()\r\n\t{\r\n\t\tint count = listAdapter.getGroupCount();\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t{\r\n\t\t\tmyList.expandGroup(i);\r\n\t\t}\r\n\t}",
"@Override\n public void onHide() {\n// buttom.animate()\n// .translationY(height - buttom.getHeight())\n// .setInterpolator(new AccelerateInterpolator(2))\n// .setDuration(800)\n// .start();\n// top.animate()\n// .translationY(-height)\n// .setDuration(800)\n// .setInterpolator(new AccelerateInterpolator(2))\n// .start();\n mExpandableLinearLayout.collapse();\n }",
"public void expandNoAnim() {\n if (getVisibility() == View.VISIBLE) {\n return;\n }\n setVisibility(View.VISIBLE);\n mAnimatorExpand.setDuration(0);\n mAnimatorExpand.start();\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n if (parent.getExpandableListAdapter().getChildrenCount(groupPosition) == 0) {\n elv.collapseGroup(groupPosition);\n }\n return false;\n }",
"@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\t\tswitch (checkedId) {\n\t\t\t\tcase R.id.radio1:\n\t\t\t\t\tItemAnimator animator1=new DefaultItemAnimator();\n\t\t\t\t\tmRecyclerView.setItemAnimator(animator1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase R.id.radio3:\n\t\t\t\t\tmRecyclerView.setItemAnimator(null);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\trefreshDrawableState();\n\n\t\t\t\tmRevealView.setVisibility(View.GONE);\n\t\t\t}",
"public void onAnimationEnd(Animation animation) {\n\t\t\t\tanimationGroup.setVisibility(View.GONE);\n\t\t\t\tanimationGroup.clearAnimation();\n\t\t\t}",
"public java.util.ArrayList<android.animation.Animator> getChildAnimations() { throw new RuntimeException(\"Stub!\"); }",
"@Override\n public void onAnimationEnd(Animator animator) {\n setVisibility(View.GONE);\n if (mEsListener != null) {\n mEsListener.OnExpansionStateChanged(false);\n }\n }",
"public void toggleNoAnim() {\n if(isExpanded()) {\n collapseNoAnim();\n }\n else {\n expandNoAnim();\n }\n }",
"public void myGroupBtn(View view) {\n Intent i = new Intent(getApplicationContext(), MyGroup.class);\n // Removes animation\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }",
"private void m32686a(ViewGroup viewGroup, int i) {\n if (i == 0) {\n viewGroup.setVisibility(8);\n }\n }",
"public final void rule__AstTransition__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12010:1: ( rule__AstTransition__Group__0__Impl rule__AstTransition__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12011:2: rule__AstTransition__Group__0__Impl rule__AstTransition__Group__1\n {\n pushFollow(FOLLOW_rule__AstTransition__Group__0__Impl_in_rule__AstTransition__Group__024390);\n rule__AstTransition__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstTransition__Group__1_in_rule__AstTransition__Group__024393);\n rule__AstTransition__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AstTransition__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12128:1: ( rule__AstTransition__Group__4__Impl rule__AstTransition__Group__5 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12129:2: rule__AstTransition__Group__4__Impl rule__AstTransition__Group__5\n {\n pushFollow(FOLLOW_rule__AstTransition__Group__4__Impl_in_rule__AstTransition__Group__424633);\n rule__AstTransition__Group__4__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstTransition__Group__5_in_rule__AstTransition__Group__424636);\n rule__AstTransition__Group__5();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n Log.v(\"popwindow\",\"show the window111\");\n expandlistView.expandGroup(groupPosition);\n return true;\n }",
"@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v,\r\n int groupPosition, long id) {\n return false;\r\n }",
"@Override\r\n\tpublic View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) {\n\t\tGroupHolder grpHolder;\r\n\t\tString songHeader = ((SongHeader) getGroup(groupPosition)).getSongHeader();\r\n\t\tlong albumid = ((SongHeader) getGroup(groupPosition)).getAlbumid();\r\n if (convertView == null) {\r\n convertView = this.inflater.inflate(R.layout.player_group_list, null);\r\n grpHolder=new GroupHolder();\r\n grpHolder.groupText=(TextView) convertView.findViewById(R.id.groupMusicTitle);\r\n grpHolder.groupSongCount=(TextView) convertView.findViewById(R.id.groupSongCount);\r\n grpHolder.groupImage= (ImageView) convertView.findViewById(R.id.groupAlbumArt);\r\n grpHolder.dividerAbove=(View) convertView.findViewById(R.id.groupDividerAbove);\r\n //grpHolder.dividerBelow=(View) convertView.findViewById(R.id.groupDividerBelow);\r\n \r\n convertView.setTag(grpHolder);\r\n \r\n }\r\n else\r\n {\r\n \tgrpHolder=(GroupHolder)convertView.getTag();\r\n }\r\n \r\n if(groupPosition==0)\r\n {\r\n \tgrpHolder.dividerAbove.setVisibility(View.GONE);\r\n }\r\n else\r\n {\r\n \tgrpHolder.dividerAbove.setVisibility(View.VISIBLE);\r\n }\r\n \r\n grpHolder.groupText.setText(songHeader);\r\n int songCount=getChildrenCount(groupPosition)-1;\r\n grpHolder.groupSongCount.setText(songCount==1?songCount+\" song\":songCount+\" songs\");\r\n Log.d(TAG, \"album id \"+albumid);\r\n// if(albumid!=-1)\r\n// {\r\n \tgrpHolder.groupImage.setImageBitmap(MusicUtil.getArtworkQuick(this.context,albumid, 40, 40));\r\n \t\r\n // } \r\n \r\n return convertView; \r\n\t}",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n if (checkedId == R.id.tab_one) {\n tabHost.setCurrentTabByTag(\"spec_tab1\");\n mTranslateAnimation = new TranslateAnimation(start, 0, 0, 0);\n mTranslateAnimation.setDuration(200);\n mTranslateAnimation.setFillEnabled(true);\n mTranslateAnimation.setFillAfter(true);\n image.startAnimation(mTranslateAnimation);\n start = 0;\n } else if (checkedId == R.id.tab_two) {\n tabHost.setCurrentTabByTag(\"spec_tab2\");\n mTranslateAnimation = new TranslateAnimation(start, width, 0, 0);\n mTranslateAnimation.setDuration(200);\n mTranslateAnimation.setFillEnabled(true);\n mTranslateAnimation.setFillAfter(true);\n image.startAnimation(mTranslateAnimation);\n start = width;\n } else if (checkedId == R.id.tab_three) {\n tabHost.setCurrentTabByTag(\"spec_tab3\");\n mTranslateAnimation = new TranslateAnimation(start, width * 2, 0, 0);\n mTranslateAnimation.setDuration(200);\n mTranslateAnimation.setFillEnabled(true);\n mTranslateAnimation.setFillAfter(true);\n image.startAnimation(mTranslateAnimation);\n start = width * 2;\n } else if (checkedId == R.id.tab_four) {\n tabHost.setCurrentTabByTag(\"spec_tab4\");\n mTranslateAnimation = new TranslateAnimation(start, width * 3, 0, 0);\n mTranslateAnimation.setDuration(100);\n mTranslateAnimation.setFillEnabled(true);\n mTranslateAnimation.setFillAfter(true);\n image.startAnimation(mTranslateAnimation);\n start = width * 3;\n }\n }",
"public final void rule__AstTransition__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12039:1: ( rule__AstTransition__Group__1__Impl rule__AstTransition__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12040:2: rule__AstTransition__Group__1__Impl rule__AstTransition__Group__2\n {\n pushFollow(FOLLOW_rule__AstTransition__Group__1__Impl_in_rule__AstTransition__Group__124450);\n rule__AstTransition__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstTransition__Group__2_in_rule__AstTransition__Group__124453);\n rule__AstTransition__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\r\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n LogManager.i(\"=============OnGroupClickListener\");\r\n\r\n setListener();\r\n return true;\r\n }",
"public void startSettlingAnimation(View view, int i) {\n int i2;\n if (i == 4) {\n i2 = this.collapsedOffset;\n } else if (i == 6) {\n int i3 = this.halfExpandedOffset;\n if (this.fitToContents) {\n int i4 = this.fitToContentsOffset;\n if (i3 <= i4) {\n i2 = i4;\n i = 3;\n }\n }\n i2 = i3;\n } else if (i == 3) {\n i2 = getExpandedOffset();\n } else if (!this.hideable || i != 5) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Illegal state argument: \");\n sb.append(i);\n throw new IllegalArgumentException(sb.toString());\n } else {\n i2 = this.parentHeight;\n }\n if (this.viewDragHelper.smoothSlideViewTo(view, view.getLeft(), i2)) {\n setStateInternal(2);\n ViewCompat.postOnAnimation(view, new SettleRunnable(view, i));\n return;\n }\n setStateInternal(i);\n }",
"public void expand(){\n\t\texpanded = true;\n\t\tstartRow = 0;\n\t\tslider.setLimits(0, 0, optGroup.size() - maxRows);\n\t\ttakeFocus();\n\t}",
"public final void rule__AstAction__Group_4__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12768:1: ( rule__AstAction__Group_4__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12769:2: rule__AstAction__Group_4__1__Impl\n {\n pushFollow(FOLLOW_rule__AstAction__Group_4__1__Impl_in_rule__AstAction__Group_4__125891);\n rule__AstAction__Group_4__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public boolean onGroupClick(ExpandableListView parent, View v,int groupPosition, long id) {\n\t\t\t return false;\r\n\t\t\t}",
"public void collapse(boolean z) {\n if (!this.animating && this.expanded) {\n this.animating = true;\n this.touchDelegateGroup.setEnabled(false);\n toggleOverlay(false, z);\n this.collapseAnimation.setDuration(z ? 0 : (long) this.animationDuration);\n this.collapseAnimation.removeListener(this.collapseListener);\n this.collapseAnimation.addListener(this.collapseListener);\n this.collapseAnimation.start();\n this.expandAnimation.cancel();\n FABsMenuListener fABsMenuListener = this.menuListener;\n if (fABsMenuListener != null) {\n fABsMenuListener.onMenuCollapsed(this);\n }\n }\n }",
"@Override\n\t\t\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onMono() {\n\t ((ExpandableListView) parent).expandGroup(groupPosition, true);\n\t textMode.setText(\"Mono\");\n\t groupLayLeft.setBackgroundResource(R.drawable.list_group_item_corner);\n\t groupLayRight.setBackgroundResource(R.drawable.list_group_item_corner);\n\t\t\t}",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v,\n int groupPosition, long id) {\n return false;\n }",
"public final void rule__Affectation__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBrowser.g:1352:1: ( rule__Affectation__Group__0__Impl rule__Affectation__Group__1 )\n // InternalBrowser.g:1353:2: rule__Affectation__Group__0__Impl rule__Affectation__Group__1\n {\n pushFollow(FOLLOW_7);\n rule__Affectation__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Affectation__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setAnimationsTarget(View view) {\n this.mCollapseAlpha.setTarget(view);\n this.mCollapseDir.setTarget(view);\n this.mExpandAlpha.setTarget(view);\n this.mExpandDir.setTarget(view);\n if (!this.animationsSetToPlay) {\n addLayerTypeListener(this.mExpandDir, view);\n addLayerTypeListener(this.mCollapseDir, view);\n FABsMenu.this.collapseAnimation.play(this.mCollapseAlpha);\n FABsMenu.this.collapseAnimation.play(this.mCollapseDir);\n FABsMenu.this.expandAnimation.play(this.mExpandAlpha);\n FABsMenu.this.expandAnimation.play(this.mExpandDir);\n this.animationsSetToPlay = true;\n }\n }",
"public final void rule__Action__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3078:1: ( rule__Action__Group__4__Impl )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3079:2: rule__Action__Group__4__Impl\n {\n pushFollow(FOLLOW_rule__Action__Group__4__Impl_in_rule__Action__Group__46071);\n rule__Action__Group__4__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"protected abstract void animate(int anim);",
"@Override\n public void onAnimationEnd(Animator animation) {\n }",
"@Override\n public boolean onGroupClick(ExpandableListView parent, View v, int groupPosition, long id) {\n return false;\n }",
"public Builder setGroupIndex(int value) {\n copyOnWrite();\n instance.setGroupIndex(value);\n return this;\n }",
"abstract void configureGroupView(RecentTabsGroupView groupView, boolean isExpanded);",
"public void setAnimateChildLayout(boolean animateChildLayout) {\n if (mAnimateChildLayout != animateChildLayout) {\n mAnimateChildLayout = animateChildLayout;\n if (!mAnimateChildLayout) {\n mSavedItemAnimator = getItemAnimator();\n super.setItemAnimator(null);\n } else {\n super.setItemAnimator(mSavedItemAnimator);\n }\n }\n }",
"public final void rule__AstAction__Group_4__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12739:1: ( rule__AstAction__Group_4__0__Impl rule__AstAction__Group_4__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12740:2: rule__AstAction__Group_4__0__Impl rule__AstAction__Group_4__1\n {\n pushFollow(FOLLOW_rule__AstAction__Group_4__0__Impl_in_rule__AstAction__Group_4__025831);\n rule__AstAction__Group_4__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstAction__Group_4__1_in_rule__AstAction__Group_4__025834);\n rule__AstAction__Group_4__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n public void onClick(View v) {\n if (((ToggleButton) v).isChecked()) {\n ExpandAnimation animation = new ExpandAnimation(mailbox_setting_detail_layout, 250);\n mailbox_setting_detail_layout.startAnimation(animation);\n } else {\n ExpandAnimation animation = new ExpandAnimation(mailbox_setting_detail_layout, 250);\n mailbox_setting_detail_layout.startAnimation(animation);\n }\n }",
"public final void rule__AstAction__Group_4_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12831:1: ( rule__AstAction__Group_4_1__1__Impl )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12832:2: rule__AstAction__Group_4_1__1__Impl\n {\n pushFollow(FOLLOW_rule__AstAction__Group_4_1__1__Impl_in_rule__AstAction__Group_4_1__126015);\n rule__AstAction__Group_4_1__1__Impl();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void animationTrans() {\n float unitAngle;\n if (type == CIRCLE) {\n unitAngle = (float) 360 / defaultCount;\n } else {\n unitAngle = 45f;\n }\n final float oldAngle = mAngle;\n float nAngle = mAngle % actualAngle;\n float gapAngle = (float) (nAngle / unitAngle) - (int) (nAngle / unitAngle);\n\n final float willAngle;\n if (type == CIRCLE) {\n willAngle = (float) ((0.5 - gapAngle) * unitAngle);\n } else {\n if (gapAngle < 0.5) {\n willAngle = (float) ((0 - gapAngle) * unitAngle);\n } else {\n willAngle = (float) ((1 - gapAngle) * unitAngle);\n }\n }\n Animation a = new Animation() {\n\n @Override\n protected void applyTransformation(float interpolatedTime, Transformation t) {\n\n mAngle = oldAngle + willAngle * interpolatedTime;\n\n requestLayout();\n }\n\n @Override\n public boolean willChangeBounds() {\n return true;\n }\n };\n\n a.setDuration(200);\n startAnimation(a);\n }",
"@Override\n public void animate() {\n }",
"public final void rule__AstTransition__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12159:1: ( rule__AstTransition__Group__5__Impl rule__AstTransition__Group__6 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12160:2: rule__AstTransition__Group__5__Impl rule__AstTransition__Group__6\n {\n pushFollow(FOLLOW_rule__AstTransition__Group__5__Impl_in_rule__AstTransition__Group__524695);\n rule__AstTransition__Group__5__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstTransition__Group__6_in_rule__AstTransition__Group__524698);\n rule__AstTransition__Group__6();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public XMessage expandGroup(OpProjectSession session, XMessage request) {\r\n XMessage reply = new XMessage();\r\n // replace with api call\r\n XComponent resultSet = expandGroupStructure(session, request, false, null);\r\n if (resultSet != null) {\r\n List<XView> resultList = new ArrayList<XView>();\r\n for (int i = 0; i < resultSet.getChildCount(); i++) {\r\n resultList.add(resultSet.getChild(i));\r\n }\r\n reply.setArgument(OpProjectConstants.CHILDREN, resultList);\r\n }\r\n return reply;\r\n }",
"public final void rule__Commands__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:886:1: ( rule__Commands__Group__0__Impl rule__Commands__Group__1 )\n // InternalWh.g:887:2: rule__Commands__Group__0__Impl rule__Commands__Group__1\n {\n pushFollow(FOLLOW_13);\n rule__Commands__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Commands__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AstTransition__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12070:1: ( rule__AstTransition__Group__2__Impl rule__AstTransition__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12071:2: rule__AstTransition__Group__2__Impl rule__AstTransition__Group__3\n {\n pushFollow(FOLLOW_rule__AstTransition__Group__2__Impl_in_rule__AstTransition__Group__224512);\n rule__AstTransition__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstTransition__Group__3_in_rule__AstTransition__Group__224515);\n rule__AstTransition__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Activity__Group__4() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:584:1: ( rule__Activity__Group__4__Impl )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:585:2: rule__Activity__Group__4__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__Activity__Group__4__Impl_in_rule__Activity__Group__41159);\n rule__Activity__Group__4__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void hyperConsume(Group sceneGroup) {\n\t\t \tsetState(SpriteState.ANIMATION_ACTIVE);\n\t setvX(0);\n\t setvY(0);\n\t\n\t RotateTransition rt = new RotateTransition(Duration.millis(EXPLODE_DURATION));\n\t rt.setByAngle(HYPER_ROTATE);\n\t rt.setAutoReverse(false);\n\t ScaleTransition st = new ScaleTransition(Duration.millis(EXPLODE_DURATION));\n\t st.setByX(-1);\n\t st.setByY(-1);\n\t st.setAutoReverse(false);\n\t \n\t ParallelTransition pt = new ParallelTransition(getNode(), rt, st);\n\t pt.setOnFinished(event -> remove(sceneGroup));\n\t pt.play();\n\t}",
"public final void rule__Expressions__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:5629:1: ( rule__Expressions__Group_1__0__Impl rule__Expressions__Group_1__1 )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:5630:2: rule__Expressions__Group_1__0__Impl rule__Expressions__Group_1__1\n {\n pushFollow(FOLLOW_rule__Expressions__Group_1__0__Impl_in_rule__Expressions__Group_1__011042);\n rule__Expressions__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__Expressions__Group_1__1_in_rule__Expressions__Group_1__011045);\n rule__Expressions__Group_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AstAction__Group_4_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12800:1: ( rule__AstAction__Group_4_1__0__Impl rule__AstAction__Group_4_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12801:2: rule__AstAction__Group_4_1__0__Impl rule__AstAction__Group_4_1__1\n {\n pushFollow(FOLLOW_rule__AstAction__Group_4_1__0__Impl_in_rule__AstAction__Group_4_1__025953);\n rule__AstAction__Group_4_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstAction__Group_4_1__1_in_rule__AstAction__Group_4_1__025956);\n rule__AstAction__Group_4_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n public void onAnimationEnd(Animation animation) {\n generateClaendarGirdView();\n }",
"public final void rule__AstAction__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12460:1: ( ( ( rule__AstAction__Group_4__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12461:1: ( ( rule__AstAction__Group_4__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12461:1: ( ( rule__AstAction__Group_4__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12462:1: ( rule__AstAction__Group_4__0 )?\n {\n before(grammarAccess.getAstActionAccess().getGroup_4()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12463:1: ( rule__AstAction__Group_4__0 )?\n int alt101=2;\n int LA101_0 = input.LA(1);\n\n if ( (LA101_0==RULE_ID||LA101_0==81) ) {\n alt101=1;\n }\n switch (alt101) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12463:2: rule__AstAction__Group_4__0\n {\n pushFollow(FOLLOW_rule__AstAction__Group_4__0_in_rule__AstAction__Group__4__Impl25290);\n rule__AstAction__Group_4__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstActionAccess().getGroup_4()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n public void onAnimationStart(Animator animation) {\n findViewById(R.id.btn_camera_sticker_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_camera_filter_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_return).setVisibility(View.VISIBLE);\n\n //瞬间隐藏掉面板上的东西\n findViewById(R.id.btn_camera_beauty).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_filter1).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_lip).setVisibility(View.GONE);\n mFilterLayout.setVisibility(View.GONE);\n }",
"public final void rule__AstAction__Group_4__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12779:1: ( ( ( rule__AstAction__Group_4_1__0 )* ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12780:1: ( ( rule__AstAction__Group_4_1__0 )* )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12780:1: ( ( rule__AstAction__Group_4_1__0 )* )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12781:1: ( rule__AstAction__Group_4_1__0 )*\n {\n before(grammarAccess.getAstActionAccess().getGroup_4_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12782:1: ( rule__AstAction__Group_4_1__0 )*\n loop106:\n do {\n int alt106=2;\n int LA106_0 = input.LA(1);\n\n if ( (LA106_0==62) ) {\n alt106=1;\n }\n\n\n switch (alt106) {\n \tcase 1 :\n \t // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:12782:2: rule__AstAction__Group_4_1__0\n \t {\n \t pushFollow(FOLLOW_rule__AstAction__Group_4_1__0_in_rule__AstAction__Group_4__1__Impl25918);\n \t rule__AstAction__Group_4_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop106;\n }\n } while (true);\n\n after(grammarAccess.getAstActionAccess().getGroup_4_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n public View getGroupView(int groupPosition, boolean isExpanded,\n View convertView, ViewGroup parent) {\n TextView GroupView=getTextParentView();\n GroupView.setText(getGroup(groupPosition).toString());\n return GroupView;\n }",
"@Override\n public void toggle(final long duration, @Nullable final TimeInterpolator interpolator) {\n if (closePosition < getCurrentPosition()) {\n collapse(duration, interpolator);\n } else {\n expand(duration, interpolator);\n }\n }",
"@Override\n public void onClick(View v) {\n if (((ToggleButton) v).isChecked()) {\n ExpandAnimation animation = new ExpandAnimation(ll_setmail, 250);\n ll_setmail.startAnimation(animation);\n } else {\n ExpandAnimation animation = new ExpandAnimation(ll_setmail, 250);\n ll_setmail.startAnimation(animation);\n }\n }",
"@Override public void onClick(View v) {\n Snackbar.make(groupViewHolder.itemView, \"Group was toggled\", Snackbar.LENGTH_SHORT).show();\n }",
"public final void rule__Spinner__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:718:1: ( rule__Spinner__Group__1__Impl )\n // ../org.eclipse.ese.android.dsl.ui/src-gen/org/eclipse/ese/ui/contentassist/antlr/internal/InternalAndroid.g:719:2: rule__Spinner__Group__1__Impl\n {\n pushFollow(FollowSets000.FOLLOW_rule__Spinner__Group__1__Impl_in_rule__Spinner__Group__11413);\n rule__Spinner__Group__1__Impl();\n _fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__Action__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3089:1: ( ( '.' ) )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3090:1: ( '.' )\n {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3090:1: ( '.' )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3091:1: '.'\n {\n before(grammarAccess.getActionAccess().getFullStopKeyword_4()); \n match(input,23,FOLLOW_23_in_rule__Action__Group__4__Impl6099); \n after(grammarAccess.getActionAccess().getFullStopKeyword_4()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setChildViewToGroup() {\n int childViewCount = mDataList.size();\n mParent.removeAllViews();\n for(int i = 0; i < childViewCount; i++) {\n LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(mPopItemWidth, mPopItemHeight);\n ViewGroup v = (ViewGroup) mInflater.inflate(mResource, mParent, false);\n if (i == 0) {\n layoutParams.setMargins(0, mPopViewTopMargin, 0, 0);\n }\n else if (i == childViewCount - 1) {\n layoutParams.setMargins(0, 0, 0, mPopViewBottomMargin);\n }\n else {\n layoutParams.setMargins(0, 0, 0, 0);\n }\n v.setLayoutParams(layoutParams);\n v.setVisibility(INVISIBLE);\n mParent.addView(v);\n }\n }",
"public void visitGroup(Group group) {\n\t}",
"private void prepareAnimations() {\n scaleTo0Overshot = AnimationUtils.loadAnimation(this, R.anim.scale_100_to_0_anticipate);\n scaleTo0Overshot.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n //do nothing\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n fab.setVisibility(View.GONE);\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n //do nothing\n }\n });\n\n scaleTo100Overshot = AnimationUtils.loadAnimation(this, R.anim.scale_0_to_100_overshot);\n scaleTo100Overshot.setAnimationListener(new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n fab.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n //do nothing\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n //do nothing\n }\n });\n }",
"public final void rule__Affect__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:994:1: ( rule__Affect__Group__0__Impl rule__Affect__Group__1 )\n // InternalWh.g:995:2: rule__Affect__Group__0__Impl rule__Affect__Group__1\n {\n pushFollow(FOLLOW_15);\n rule__Affect__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Affect__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"@Override\n public void onAnimationStart(Animator animation) {\n findViewById(R.id.btn_sticker1).setVisibility(View.GONE);\n findViewById(R.id.btn_sticker2).setVisibility(View.GONE);\n findViewById(R.id.btn_sticker3).setVisibility(View.GONE);\n findViewById(R.id.btn_camera_sticker_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_camera_filter_album).setVisibility(View.VISIBLE);\n findViewById(R.id.btn_return).setVisibility(View.VISIBLE);\n\n\n\n //瞬间隐藏掉面板上的东西\n mStickerLayout.setVisibility(View.GONE);\n }",
"private void animateFAB() {\n if (isFabOpen) {\n fab.startAnimation(rotate_backward);\n fab1.startAnimation(fab_close);\n fab2.startAnimation(fab_close);\n card1.startAnimation(card_close);\n card2.startAnimation(card_close);\n fab1.setClickable(false);\n fab2.setClickable(false);\n isFabOpen = false;\n } else {\n /*jika dalam keadaan true*/\n fab.startAnimation(rotate_forward);\n fab1.startAnimation(fab_open);\n fab2.startAnimation(fab_open);\n card1.startAnimation(card_open);\n card2.startAnimation(card_open);\n fab1.setClickable(true);\n fab2.setClickable(true);\n isFabOpen = true;\n }\n }"
] |
[
"0.74453574",
"0.7340666",
"0.7318803",
"0.73101187",
"0.73101187",
"0.73101187",
"0.716131",
"0.7080038",
"0.6998765",
"0.6992646",
"0.6972588",
"0.6972588",
"0.69712025",
"0.696059",
"0.6916574",
"0.6870426",
"0.66057765",
"0.658941",
"0.6515665",
"0.6117766",
"0.6075453",
"0.6061176",
"0.5992947",
"0.5991338",
"0.5928616",
"0.59257644",
"0.59080124",
"0.58408964",
"0.57600856",
"0.57580435",
"0.56117076",
"0.5576168",
"0.5556821",
"0.5551077",
"0.55320215",
"0.55262256",
"0.5450219",
"0.5448918",
"0.54221815",
"0.5405085",
"0.53735197",
"0.53732896",
"0.5366659",
"0.5362532",
"0.53400904",
"0.5333179",
"0.5321681",
"0.53092253",
"0.5287734",
"0.52863413",
"0.5284715",
"0.527312",
"0.5269782",
"0.52666706",
"0.52570605",
"0.5250833",
"0.5249067",
"0.5247085",
"0.52390885",
"0.52390885",
"0.52390885",
"0.52390885",
"0.52324635",
"0.52235717",
"0.5210868",
"0.52060866",
"0.5197138",
"0.5191964",
"0.5184133",
"0.51751596",
"0.5172501",
"0.51521105",
"0.5149941",
"0.5142875",
"0.51405966",
"0.5134409",
"0.5131204",
"0.5130416",
"0.5123215",
"0.51229095",
"0.51223606",
"0.51210314",
"0.5119078",
"0.51189876",
"0.5113783",
"0.51064754",
"0.5101712",
"0.5094848",
"0.5093689",
"0.50921017",
"0.5084375",
"0.50753236",
"0.5066367",
"0.50616395",
"0.5059203",
"0.5057937",
"0.5055255",
"0.5053885",
"0.5053509",
"0.5050857"
] |
0.58033085
|
28
|
Creates the default factory implementation.
|
public static ScribbleFactory init()
{
try {
ScribbleFactory theScribbleFactory = (ScribbleFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.scribble.org/Scribble");
if (theScribbleFactory != null) {
return theScribbleFactory;
}
}
catch (Exception exception) {
EcorePlugin.INSTANCE.log(exception);
}
return new ScribbleFactoryImpl();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Factory() {\n\t\tsuper();\n\t}",
"public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"private ConcreteFactory() {}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public static Factory factory() {\n return ext_h::new;\n }",
"public EsoFactoryImpl()\r\n {\r\n super();\r\n }",
"public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }",
"public CommonsFactoryImpl() {\n\t\tsuper();\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public EcoreFactoryImpl() {\n super();\n }",
"public ServiceFactoryImpl() {\n\t\tsuper();\n\t}",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"public interface Factory {\r\n}",
"public EcoreFactoryImpl()\n {\n super();\n }",
"public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public PedidoFactoryImpl() {\n\t\tsuper();\n\t}",
"default Factory<T> toFactory() {\n throw new UnsupportedOperationException();\n }",
"private ServiceFactory() {}",
"protected abstract S createDefault();",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public CoreFactoryImpl() {\n\t\tsuper();\n\t}",
"public LanterneFactoryImpl() {\n\t\tsuper();\n\t}",
"public static BuiltinFactory init() {\n\t\ttry {\n\t\t\tBuiltinFactory theBuiltinFactory = (BuiltinFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.soluvas.com/schema/story.builtin/1.0\"); \n\t\t\tif (theBuiltinFactory != null) {\n\t\t\t\treturn theBuiltinFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new BuiltinFactoryImpl();\n\t}",
"public FvFactoryImpl() {\n\t\tsuper();\n\t}",
"public GpflFactoryImpl()\n {\n super();\n }",
"public Testing2FactoryImpl() {\n\t\tsuper();\n\t}",
"public static Factory factory() {\n return ext_dbf::new;\n }",
"public PascalFactoryImpl()\n {\n super();\n }",
"public ObjectFactory() {\r\n\t}",
"public ObjectFactory() {\n\t}",
"public MystFactoryImpl()\r\n {\r\n super();\r\n }",
"public borFactoryImpl() {\n\t\tsuper();\n\t}",
"public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}",
"public interface AbstractFactory {\n /**\n * Create cpu cpu.\n *\n * @return the cpu\n */\n Cpu createCpu();\n\n /**\n * Create main board main board.\n *\n * @return the main board\n */\n MainBoard createMainBoard();\n}",
"public BasicSafetyCaseFactoryImpl() {\n\t\tsuper();\n\t}",
"public interface Factory<T> {\n T create();\n}",
"public static Factory factory() {\n return Document_print::new;\n }",
"public ParameterizedInstantiateFactory() {\r\n super();\r\n }",
"public interface Factory {\n LeiFeng createLeiFeng();\n}",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public static PedidoFactory init() {\n\t\ttry {\n\t\t\tPedidoFactory thePedidoFactory = (PedidoFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(PedidoPackage.eNS_URI);\n\t\t\tif (thePedidoFactory != null) {\n\t\t\t\treturn thePedidoFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new PedidoFactoryImpl();\n\t}",
"public WdlFactoryImpl() {\n\t\tsuper();\n\t}",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] |
[
"0.77731436",
"0.76486766",
"0.74667984",
"0.7430188",
"0.7425205",
"0.7364157",
"0.72402287",
"0.7239365",
"0.71722776",
"0.7160405",
"0.71596897",
"0.7150511",
"0.71012115",
"0.7100998",
"0.7089295",
"0.70861953",
"0.7084425",
"0.7056558",
"0.70475817",
"0.70462054",
"0.7032594",
"0.7027336",
"0.70211387",
"0.70211387",
"0.70211387",
"0.7005747",
"0.69869524",
"0.6978728",
"0.6977554",
"0.69731724",
"0.69722575",
"0.69408",
"0.68847215",
"0.6878918",
"0.68729496",
"0.68370944",
"0.6811484",
"0.6809534",
"0.6806006",
"0.68028957",
"0.6800011",
"0.67854184",
"0.6762015",
"0.67484313",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6740896",
"0.6738694",
"0.6737374",
"0.67329735",
"0.67329735",
"0.67329735",
"0.67329735",
"0.67329735",
"0.67329735",
"0.67329735"
] |
0.0
|
-1
|
Creates an instance of the factory.
|
public ScribbleFactoryImpl()
{
super();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Factory() {\n\t\tsuper();\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"Instance createInstance();",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"private ConcreteFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public static Factory factory() {\n return ext_h::new;\n }",
"public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }",
"private EntityFactory() {}",
"public PedidoFactoryImpl() {\n\t\tsuper();\n\t}",
"public static Factory factory() {\n return ext_dbf::new;\n }",
"public void create(){}",
"private ServiceFactory() {}",
"public static BookFactory getInstance()\r\n {\r\n \r\n if(bookFactoryInstance == null)\r\n {\r\n bookFactoryInstance = new BookFactory();\r\n }\r\n \r\n return bookFactoryInstance;\r\n }",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"public EsoFactoryImpl()\r\n {\r\n super();\r\n }",
"public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public ParameterizedInstantiateFactory() {\r\n super();\r\n }",
"public ObjectFactory() {\r\n\t}",
"public ObjectFactory() {\n\t}",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] |
[
"0.73933536",
"0.7212417",
"0.72005916",
"0.6975247",
"0.6974846",
"0.68345267",
"0.67098427",
"0.66718435",
"0.66718435",
"0.66718435",
"0.66642797",
"0.6616401",
"0.6614854",
"0.66146886",
"0.6589288",
"0.6569264",
"0.6534342",
"0.65325534",
"0.6525314",
"0.6516507",
"0.64746517",
"0.64742935",
"0.6472291",
"0.6471961",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334",
"0.6460334"
] |
0.0
|
-1
|
/ Constructor for class Truck
|
public Truck(){
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public TruckManager() {\r\n super(Truck.TRUCKS);\r\n }",
"TransportTruck() {\n x = 0;\n y = 0;\n nrDoors = 2;\n enginePower = 1000;\n currentSpeed = 0;\n color = Color.red;\n modelName = \"Transport Truck\";\n\n storage = new StorageUnit(this, 5);\n\n stopEngine();\n }",
"public OrdinaryTruck() {\n\t\tsuper();\n\t\tmaxCapacity = 1000;\n\t}",
"public FridgeTruck(){\n\t\tsuper();\n\t\tthis.maxTemp = 10; // degrees Celsius\n\t\tsetCost(maxTemp);\n\t\tthis.maxCapacity = 800;\n\t}",
"public OrdinaryTruck(int itemQuantity)\n {\n this.itemQuantity = itemQuantity;\n }",
"public Truck()\r\n {\r\n super.setVehIs(VEHICLE_IS);\r\n // this.showMenu();\r\n }",
"public Trip() {}",
"public Truck(String color, int year, String make, boolean cargo){\n super (color, year, make);\n this.cargo = cargo;\n }",
"public Trip() {\n }",
"public TruckImpl(double lX, double lY, double lZ, double dX, double dY, double dZ,\n double spd, double mxSpd, double mlw) throws InvalidDataException {\n myMovable = MovableImplFactory.createMovable(lX, lY, lZ, dX, dY, dZ, spd, mxSpd);\n myIdentity = IdentifiableImplFactory.createIdentifiable();\n maxLoadWeight = mlw;\n\n }",
"public static Truck nextTruck(){\n Truck truck = null;\n Random r = new Random();\n switch (r.nextInt(2)){\n case 0: {\n truck = new Pickup(4000 + r.nextInt(2000), 10 + r.nextInt(10),\n 150 + r.nextInt(50), 4 + r.nextInt(4));\n break;\n }\n case 1: {\n truck = new Van(5000 + r.nextInt(2000), 12 + r.nextInt(10),\n 180 + r.nextInt(50), 3 + r.nextInt(2));\n break;\n }\n }\n return truck;\n }",
"public Trade() {\n\t}",
"public Trening() {\n }",
"public TTau() {}",
"public Scania() {\n\n super(2, 600, Color.white, \"Scania\", 13000);\n truckBed = new Ramp();\n }",
"public Troop() //make a overloaded constructor \n\t{\n\t\ttroopType = \"light\"; \n\t\tname = \"Default\";\n\t\thp = 50;\n\t\tatt = 20;\n\t}",
"public Trips() {\n this(\"trips\", null);\n }",
"@Test\n public void TruckTest(){\n Size trucksize =new Size(190,450);\n Truck truck = new Truck(\"ABC123\",trucksize);\n Assert.assertEquals(\"Should be ABC123\",\"ABC123\",truck.getLicense_plate());\n Assert.assertEquals(\"should be trucksize\",trucksize,truck.getSize_truck());\n Assert.assertEquals(\"Should be ABC123\",\"ABC123\",truck.licensePlate());\n Assert.assertEquals(\"Should be Truck\",\"Truck\",truck.type());\n Assert.assertEquals(\"Should be 0\",0,truck.vehicleCharacteristic().size());\n Assert.assertEquals(\"Should be Truck\",\"Truck\",truck.getType());\n\n }",
"public Tank(){\r\n\t\t\r\n\t}",
"protected Settlement() {\n // empty constructor\n }",
"public Tigre() {\r\n }",
"public Tower() {\n\t\t// Nothing as of now, trying to insert Towers as of now\n\t}",
"public Train(int id, int speed, int direction, int ticket) {\n this.id = id;\n this.speed = speed;\n this.direction = direction;\n this.ticket = ticket;\n trackStatus[ticket].tryAcquire();\n }",
"public Rook()\n {\n super();\n }",
"public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }",
"VehicleClass() {}",
"public DummyTrxLogic() {\r\n }",
"public VueTroncon(Troncon troncon) {\r\n\t\tsuper();\r\n\t\tthis.troncon = troncon;\r\n\t}",
"public Chick() {\n\t}",
"Flight() {}",
"public TRIP_Sensor () {\n super();\n }",
"public Tower(GameForm game) {\n super(game);\n }",
"public Rol() {}",
"public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }",
"public Trader(String traderName, Planet traderOrigin) {\n name = traderName;\n origin = traderOrigin;\n welcomeText = \"What're ya buy'in?\";\n }",
"public DetArqueoRunt () {\r\n\r\n }",
"private TbusRoadGraph() {}",
"public Train(){\n}",
"private TweetRiver() { }",
"public TaxiInformationController() {\n }",
"public ArcherTower() {\n\t\tsuper(defaultAttack, defaultRange, defaultAttackSpeed, name);\n\t}",
"public BicycleStation() {\n super();\n }",
"public HanoiTower(){\n\n }",
"public TripManager() {\n }",
"private UTruck(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public TCubico(){}",
"public Vehicle(){}",
"private TAPosition()\n {\n\n }",
"public Lotto2(){\n\t\t\n\t}",
"public Bike(){\n\t}",
"public TradeData() {\r\n\r\n\t}",
"public Trip(Vehicle v, boolean round) {\r\n this.vehicle = v;\r\n roundTrip = round;\r\n }",
"public Vehicle() {}",
"public DriveTrain(side left, side right){\n this.left = left;\n this.right = right;\n this.gear = new twoSpeed();\n }",
"public Trabajador() {\n\t\tsuper();\n\t}",
"private TMCourse() {\n\t}",
"Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }",
"public Strawberries() {\r\n\t\tsuper(price, nutrition, name);\r\n\t}",
"public Ticket() {\n\n }",
"public void setTruckQuantity(int truckQuantity) \n {\n this.truckQuantity = truckQuantity;\n }",
"public TrainAbstract() {\n\t\tthis.id = \"\";\n\t\tthis.departure = new Departure();\n\t\tthis.arrivalTerminus = new ArrivalTerminus();\n\t\tthis.location = new Location(\"\", \"\");\n\t\tthis.stopPoints = new ArrayList<ArrivalStopPoint>();\n\t}",
"public BuyTour() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public long getTruckId() {\n return truckId_;\n }",
"public long getTruckId() {\n return truckId_;\n }",
"public MountainBike() {\n super();\n }",
"public Vehicle() {\n\n\t}",
"public TrapTiles()\r\n {\r\n id = 604 ; \r\n }",
"public Tower(String name) {\n this.name = name;\n }",
"public Coin()\n {\n toss();//call the toss method\n }",
"public DriveTrain (int motorChannelL1,int motorChannelL2,int motorChannelR1,int motorChannelR2 ){\n leftMotor1 = new Victor(motorChannelL1);\n leftMotor2 = new Victor(motorChannelL2);\n rightMotor1 = new Victor(motorChannelR1);\n rightMotor2 = new Victor(motorChannelR2);\n highDrive = new RobotDrive(motorChannelL1, motorChannelR1);\n lowDrive = new RobotDrive(motorChannelL2, motorChannelR2);\n \n }",
"public RailRoad() {}",
"TRule createTRule();",
"public Forecasting() {\n }",
"public TriangleSolitaireModelImpl() {\r\n super(new TriangleBoard());\r\n }",
"public Vehicle() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"public Boop() {\n\t\tsuper();\n\t}",
"public Lift (SpeedController liftMotor) {\n m_liftMotor = liftMotor;\n }",
"Stock()\n {\n super();\n }",
"public ElectricBike() {\n\t\tsuper();\n\t}",
"public Troco() {\n }",
"public ProtoVehicle() {\n super();\n }",
"public ClientOfCompanyTrips() {\n companyController = new CompanyController();\n selected = new Company();\n tripBusiness = new TripBusiness();\n trip = new Trip();\n placeBusiness = new PlaceBusiness();\n place= new Place();\n clientBusiness = new ClientBusiness();\n client = new Client();\n }",
"public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }",
"public DriveTrain()\n\t{\n\t\tleftMotor1 = new VictorSPX(DriveTrainConstants.leftFrontMotorChannel);\n\t\tleftMotor2 = new VictorSPX(DriveTrainConstants.leftRearMotorChannel);\n\t\trightMotor1 = new VictorSPX(DriveTrainConstants.rightFrontMotorChannel);\n\t\trightMotor2 = new VictorSPX(DriveTrainConstants.rightRearMotorChannel);\n\n\t\tleftMotor1.setInverted(DriveTrainConstants.leftMotorInverted);\n\t\trightMotor1.setInverted(DriveTrainConstants.rightMotorInverted);\n\n\t\tleftMotor2.setInverted(InvertType.FollowMaster);\n\t\trightMotor2.setInverted(InvertType.FollowMaster);\n\n\t\tleftMotor2.set(ControlMode.Follower, leftMotor1.getDeviceID());\n\t\trightMotor2.set(ControlMode.Follower, rightMotor1.getDeviceID());\n\t}",
"public TrunkList(final TwilioTrunkingClient client) {\n\t\tsuper(client);\n\t}",
"public Tarifa() {\n ;\n }",
"public Tweed( ) {\n super( TWEED_NAME, TWEED_COST, TWEED_SOURCE );\n }",
"public Spell() {}",
"public Tbdtokhaihq3() {\n super();\n }",
"Bicycle(){\n\t\tthis.wheels=2;\n\t}",
"public Snake(){ super(); }",
"public Ticket(){\n\t\tpass = new Passenger();\n\t}",
"public TAccountTicketFlow(){}",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }",
"public int getTruckid() {\n return truckid_;\n }"
] |
[
"0.8277383",
"0.73401386",
"0.7328027",
"0.7149399",
"0.7116663",
"0.6705807",
"0.66559094",
"0.6598367",
"0.6577745",
"0.6572513",
"0.65111893",
"0.64976454",
"0.6474727",
"0.641528",
"0.63726366",
"0.63210714",
"0.6221605",
"0.618675",
"0.6171057",
"0.61417556",
"0.61413616",
"0.61239046",
"0.61158264",
"0.61150736",
"0.61124927",
"0.6100469",
"0.60466117",
"0.603506",
"0.6033783",
"0.6029043",
"0.6027037",
"0.6026763",
"0.6014969",
"0.600509",
"0.6001659",
"0.5990241",
"0.59890044",
"0.59755254",
"0.5973947",
"0.59650993",
"0.59468305",
"0.59467703",
"0.59422964",
"0.593534",
"0.5935055",
"0.59345675",
"0.59170294",
"0.5894564",
"0.5892841",
"0.5874385",
"0.5868514",
"0.5848718",
"0.5845785",
"0.5833673",
"0.5825924",
"0.58238953",
"0.58231",
"0.5813319",
"0.580945",
"0.5784865",
"0.57801694",
"0.5779661",
"0.57784075",
"0.57769316",
"0.57730377",
"0.57717705",
"0.57648075",
"0.57640594",
"0.5763928",
"0.57639134",
"0.57590437",
"0.57567835",
"0.57525444",
"0.57449013",
"0.5742304",
"0.5742077",
"0.57371426",
"0.5735507",
"0.5731537",
"0.57273537",
"0.5723997",
"0.5718466",
"0.57155436",
"0.57125026",
"0.5710511",
"0.57099295",
"0.5701821",
"0.56918925",
"0.56840456",
"0.5682437",
"0.5678143",
"0.56762916",
"0.5675984",
"0.5669266",
"0.565893",
"0.565893",
"0.565893",
"0.565893",
"0.565893",
"0.565893"
] |
0.8803942
|
0
|
/ constructor for special form of class Truck
|
public Truck(String color, int year, String make, boolean cargo){
super (color, year, make);
this.cargo = cargo;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Truck(){\n }",
"public TruckManager() {\r\n super(Truck.TRUCKS);\r\n }",
"public OrdinaryTruck() {\n\t\tsuper();\n\t\tmaxCapacity = 1000;\n\t}",
"public OrdinaryTruck(int itemQuantity)\n {\n this.itemQuantity = itemQuantity;\n }",
"public FridgeTruck(){\n\t\tsuper();\n\t\tthis.maxTemp = 10; // degrees Celsius\n\t\tsetCost(maxTemp);\n\t\tthis.maxCapacity = 800;\n\t}",
"TransportTruck() {\n x = 0;\n y = 0;\n nrDoors = 2;\n enginePower = 1000;\n currentSpeed = 0;\n color = Color.red;\n modelName = \"Transport Truck\";\n\n storage = new StorageUnit(this, 5);\n\n stopEngine();\n }",
"public TruckImpl(double lX, double lY, double lZ, double dX, double dY, double dZ,\n double spd, double mxSpd, double mlw) throws InvalidDataException {\n myMovable = MovableImplFactory.createMovable(lX, lY, lZ, dX, dY, dZ, spd, mxSpd);\n myIdentity = IdentifiableImplFactory.createIdentifiable();\n maxLoadWeight = mlw;\n\n }",
"public Truck()\r\n {\r\n super.setVehIs(VEHICLE_IS);\r\n // this.showMenu();\r\n }",
"public TTau() {}",
"public Trening() {\n }",
"public Trip() {}",
"public Troop() //make a overloaded constructor \n\t{\n\t\ttroopType = \"light\"; \n\t\tname = \"Default\";\n\t\thp = 50;\n\t\tatt = 20;\n\t}",
"public static Truck nextTruck(){\n Truck truck = null;\n Random r = new Random();\n switch (r.nextInt(2)){\n case 0: {\n truck = new Pickup(4000 + r.nextInt(2000), 10 + r.nextInt(10),\n 150 + r.nextInt(50), 4 + r.nextInt(4));\n break;\n }\n case 1: {\n truck = new Van(5000 + r.nextInt(2000), 12 + r.nextInt(10),\n 180 + r.nextInt(50), 3 + r.nextInt(2));\n break;\n }\n }\n return truck;\n }",
"public Scania() {\n\n super(2, 600, Color.white, \"Scania\", 13000);\n truckBed = new Ramp();\n }",
"public Trade() {\n\t}",
"public Chick() {\n\t}",
"public Trip() {\n }",
"public DummyTrxLogic() {\r\n }",
"public Rol() {}",
"VehicleClass() {}",
"public Tigre() {\r\n }",
"public Tower() {\n\t\t// Nothing as of now, trying to insert Towers as of now\n\t}",
"Vehicle() \n {\n System.out.println(\"Constructor of the Super class called\");\n noOfTyres = 5;\n accessories = true;\n brand = \"X\";\n counter++;\n }",
"private TweetRiver() { }",
"public Rook()\n {\n super();\n }",
"public Trips() {\n this(\"trips\", null);\n }",
"Flight() {}",
"public Tower(GameForm game) {\n super(game);\n }",
"public Vehicle(){}",
"public Train(int id, int speed, int direction, int ticket) {\n this.id = id;\n this.speed = speed;\n this.direction = direction;\n this.ticket = ticket;\n trackStatus[ticket].tryAcquire();\n }",
"private TbusRoadGraph() {}",
"@Test\n public void TruckTest(){\n Size trucksize =new Size(190,450);\n Truck truck = new Truck(\"ABC123\",trucksize);\n Assert.assertEquals(\"Should be ABC123\",\"ABC123\",truck.getLicense_plate());\n Assert.assertEquals(\"should be trucksize\",trucksize,truck.getSize_truck());\n Assert.assertEquals(\"Should be ABC123\",\"ABC123\",truck.licensePlate());\n Assert.assertEquals(\"Should be Truck\",\"Truck\",truck.type());\n Assert.assertEquals(\"Should be 0\",0,truck.vehicleCharacteristic().size());\n Assert.assertEquals(\"Should be Truck\",\"Truck\",truck.getType());\n\n }",
"protected Settlement() {\n // empty constructor\n }",
"public ArcherTower() {\n\t\tsuper(defaultAttack, defaultRange, defaultAttackSpeed, name);\n\t}",
"public Vehicle() {}",
"protected abstract void construct();",
"public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }",
"public Deck()\n {\n this(1);\n }",
"public BicycleStation() {\n super();\n }",
"public Bike(){\n\t}",
"public Cargo(){\n super(\"Cargo\");\n intake = new WPI_TalonSRX(RobotMap.cargoIntake);\n shoot = new WPI_TalonSRX(RobotMap.cargoShoot);\n }",
"public TCubico(){}",
"private UTruck(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"private TrapdoorMixin(int i, Material m) {\n super(i, m);\n throw new AssertionError(\"Don't touch my dummy constructors\");\n }",
"public TRIP_Sensor () {\n super();\n }",
"public Lotto2(){\n\t\t\n\t}",
"private TMCourse() {\n\t}",
"public Tank(){\r\n\t\t\r\n\t}",
"public DriveTrain (int motorChannelL1,int motorChannelL2,int motorChannelR1,int motorChannelR2 ){\n leftMotor1 = new Victor(motorChannelL1);\n leftMotor2 = new Victor(motorChannelL2);\n rightMotor1 = new Victor(motorChannelR1);\n rightMotor2 = new Victor(motorChannelR2);\n highDrive = new RobotDrive(motorChannelL1, motorChannelR1);\n lowDrive = new RobotDrive(motorChannelL2, motorChannelR2);\n \n }",
"public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }",
"public DetArqueoRunt () {\r\n\r\n }",
"public TutorIndustrial() {}",
"public AbstractT153()\n {\n }",
"public Vehicle() {\n\n\t}",
"public Train(){\n}",
"public TrainAbstract() {\n\t\tthis.id = \"\";\n\t\tthis.departure = new Departure();\n\t\tthis.arrivalTerminus = new ArrivalTerminus();\n\t\tthis.location = new Location(\"\", \"\");\n\t\tthis.stopPoints = new ArrayList<ArrivalStopPoint>();\n\t}",
"public Chick()\n {\n super(\"chick\");\n }",
"public DriveTrain(side left, side right){\n this.left = left;\n this.right = right;\n this.gear = new twoSpeed();\n }",
"public MountainBike() {\n super();\n }",
"public Coin()\n {\n toss();//call the toss method\n }",
"public Strawberries() {\r\n\t\tsuper(price, nutrition, name);\r\n\t}",
"public Tweed( ) {\n super( TWEED_NAME, TWEED_COST, TWEED_SOURCE );\n }",
"public ElectricBike() {\n\t\tsuper();\n\t}",
"public AbstractT602()\n {\n }",
"protected Betaling()\r\n\t{\r\n\t\t\r\n\t}",
"public Tower(String name) {\n this.name = name;\n }",
"private TAPosition()\n {\n\n }",
"public Supercar() {\r\n\t\t\r\n\t}",
"public VueTroncon(Troncon troncon) {\r\n\t\tsuper();\r\n\t\tthis.troncon = troncon;\r\n\t}",
"public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }",
"TRule createTRule();",
"public Constructor(){\n\t\t\n\t}",
"public RailRoad() {}",
"public Vehicle() {\n }",
"public TradeData() {\r\n\r\n\t}",
"@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }",
"@Override\n\tprotected Trunk makeNew(final TwilioTrunkingClient client, final Map<String, Object> params) {\n\t\treturn new Trunk(client, params);\n\t}",
"public Generic(){\n\t\tthis(null);\n\t}",
"TDrawingConstructor (ArrayList interpretation){\r\n fInterpretation=interpretation;\r\n}",
"public TrapTiles()\r\n {\r\n id = 604 ; \r\n }",
"public TaxiInformationController() {\n }",
"Bicycle(){\n\t\tthis.wheels=2;\n\t}",
"public Lift (SpeedController liftMotor) {\n m_liftMotor = liftMotor;\n }",
"public BarSeat(){\n\t\tsuper(1);\n\t}",
"private Fight() { }",
"public ChaCha()\n\t{\n\t\tsuper();\n\t}",
"public Bicycle(int gear, int speed)\r\n {\r\n this.gear = gear;\r\n this.speed = speed;\r\n }",
"public Chain()\n\t{\n\t\tcars = new HashSet<RollingStock>(); \n\t}",
"public Boop() {\n\t\tsuper();\n\t}",
"public Cohete() {\n\n\t}",
"public HanoiTower(){\n\n }",
"Classroom() {}",
"public ProtoVehicle() {\n super();\n }",
"Stock()\n {\n super();\n }",
"public ClientOfCompanyTrips() {\n companyController = new CompanyController();\n selected = new Company();\n tripBusiness = new TripBusiness();\n trip = new Trip();\n placeBusiness = new PlaceBusiness();\n place= new Place();\n clientBusiness = new ClientBusiness();\n client = new Client();\n }",
"public Warehouse(int x, int y, int ID, int edges, int numTrucks, int capacity, int radius){\r\n super(x,y,ID, edges); //call vertex constructor\r\n this.radius = radius;\r\n allShops = new ArrayList<CoffeeShop>();\r\n trucks = new ArrayList<Truck>();\r\n addTrucks(numTrucks, capacity, radius); //add in all the trucks with the designated capacity into an array\r\n }",
"public Chant(){}",
"public TriangleSolitaireModelImpl() {\r\n super(new TriangleBoard());\r\n }",
"@SuppressWarnings(\"unused\")\n private Flight() {\n this(null, null, null, null, null, null, null, null, null, null, null);\n }"
] |
[
"0.8411069",
"0.7952609",
"0.7328497",
"0.71356344",
"0.6880645",
"0.66856444",
"0.649857",
"0.6487011",
"0.6358761",
"0.63465506",
"0.63351816",
"0.6328959",
"0.6324241",
"0.6285498",
"0.62045157",
"0.6187191",
"0.618497",
"0.6121766",
"0.6120872",
"0.61188",
"0.6111492",
"0.608924",
"0.6064786",
"0.60528344",
"0.6047576",
"0.602276",
"0.60125005",
"0.6000733",
"0.5996627",
"0.5993787",
"0.59936285",
"0.59879726",
"0.5986981",
"0.5985451",
"0.59698826",
"0.5963444",
"0.59582317",
"0.5955766",
"0.5949835",
"0.5946606",
"0.59457546",
"0.5943751",
"0.5937994",
"0.59302574",
"0.59296584",
"0.590572",
"0.5905013",
"0.58879477",
"0.58728063",
"0.5866501",
"0.5857553",
"0.585547",
"0.5847405",
"0.58350635",
"0.5826756",
"0.5822987",
"0.5822747",
"0.5818737",
"0.5809189",
"0.5807036",
"0.58064395",
"0.58023185",
"0.5798284",
"0.5793047",
"0.5785087",
"0.57819164",
"0.5768081",
"0.5765358",
"0.5758959",
"0.57528996",
"0.57522494",
"0.5735387",
"0.57343626",
"0.5724023",
"0.57197416",
"0.5719389",
"0.5718968",
"0.5716813",
"0.57123286",
"0.5709796",
"0.5706727",
"0.57055575",
"0.56991535",
"0.56922126",
"0.5691972",
"0.56863344",
"0.5684008",
"0.5683348",
"0.56803226",
"0.5679841",
"0.56728274",
"0.566726",
"0.566502",
"0.5660103",
"0.5655038",
"0.56530905",
"0.5649491",
"0.5649383",
"0.56488365",
"0.5644992"
] |
0.6671552
|
6
|
/ Method change smogCheck
|
public void smogCheck(){
if(!cargo){
System.out.println("Hey ya don't got any cargo, might as well get your smog checked.");
this.cargo = true;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tint check_sweetness() {\n\t\treturn 30;\r\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\n\tpublic void check() {\n\t\t\n\t}",
"@Override\r\n\tint check_sweetness() {\n\t\treturn 10;\r\n\t}",
"void check();",
"void check();",
"public void checkGame() {\n\n\t}",
"protected boolean getStravaCheckToken()\n {\n return true;\n }",
"public void doChecking() {\n \tdoCheckingDump();\n \tdoCheckingMatl();\n }",
"public static void set_checks2(){\n\t\t\n\t\t//Check if difficulty\n\t\n\t\t\t//Check if user is batting\n\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\tif(PlayArena2.usershot2==PlayArena2.compshot2){\n\t\t\t\t\t\n\t\t\t\t\tcheck_if_factor2=true;}\n\t\t\t\telse if(PlayArena2.usershot2==6 && (PlayArena2.compshot2==2 || PlayArena2.compshot2==3))\n\t\t\t\t\tcheck_if_factor2=true;\n\t\t\t\telse if(PlayArena2.usershot2==4 && (PlayArena2.compshot2==2 ))\n\t\t\t\t\tcheck_if_factor2=true;\n\t\t\t\telse\n\t\t\t\t\tcheck_if_factor2=false;\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(PlayArena2.usershot2==PlayArena2.compshot2){\n\t\t\t\t\t\n\t\t\t\t\tcheck_if_factor2=true;}\n\t\t\t\telse\n\t\t\t\tcheck_if_factor2=false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t//Wicket?\nif(check_if_factor2){\n\t\t\t\t\n\t\t\t\tcheck_if_wicket2=true;\n\t\t\t\tint temp_wickets=0;\n\t\t\t\t\n\t\t\t\tif(wicket_2==2){\n\t\t\t\t\t\t temp_wickets=3;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Check Striker while wicket fell\n\t\t\tif(temp_wickets!=3)\n\t\t\t{\n\t\t\t\tif(Striker.equals(bat1))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\t\t\tStriker=PlayBrain1.myteam[++list_pointer];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\tStriker=PlayBrain1.oppteam[++list_pointer];\n\t\t\t\t\t\t\t}\n\t\t\t\t\tbat1=Striker;\n\t\t\t\t\t\n\t\t\t\t//\tSystem.out.println(Striker);\n\t\t\t\t\t//System.out.println(NonStriker);\n\t\t\t\t\t//System.out.println(wicket_1);\n\t\t\t\t}\n\t\t\t\t//Else of Striker\n\t\t\t\telse{\n\t\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\t\tStriker=PlayBrain1.myteam[++list_pointer];\n\t\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tStriker=PlayBrain1.oppteam[++list_pointer];\n\t\t\t\t\t\t}\n\t\t\t\tbat2=Striker;\n\t\t\t\t//System.out.println(Striker);\n\t\t\t\t//System.out.println(NonStriker);\n\t\t\t\t}\n\t\t\t\tif(over_ball_2!=5)\t\n\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\telse{\n\t\t\t\t\t//System.out.println(\"over strike change\");\n\t\t\t\t\tcheck_if_strike_change2=true;}\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//System.out.println(\"no wicket zone\");\n\t\t\t\tcheck_if_wicket2=false;\n\t\t\t\t\n\t\t\t\t//Strike Change?\n\t\t\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\t\t\tif(PlayArena2.usershot2%2!=0 && over_ball_2!=5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t\t}\n\t\t\t\t\telse if(PlayArena2.usershot2%2==0 && over_ball_2==5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(PlayArena2.compshot2%2!=0 && over_ball_2!=5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t}\n\t\t\t\t\telse if(PlayArena2.compshot2%2==0 && over_ball_2==5){\n\t\t\t\t\t\tcheck_if_strike_change2=true;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tcheck_if_strike_change2=false;\n\t\t\t\t}\n\t\t\t}\n\n\t}",
"private boolean canMakeSmores() {\n return (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1);\n }",
"@Override\n\tpublic void check() throws Exception {\n\t}",
"private CheckUtil(){ }",
"void check() throws YangException;",
"public boolean whiteCheckmate() {\n\t\treturn false;\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t public void AnonymousGasSmrCR_singleregister_alreatchecked(){\n\t\t\t\tReport.createTestLogHeader(\"Anonymous SMR\", \"Verify whether the anonymous Gas customer is able to do SMR journey\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRGasCRdata\");\n\t\t\t\tCrmUserProfile crmuserProfile = new TestDataHelper().getCrmUserProfile(\"CrmDetailsforSMR\");\n\t\t\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"ViewuserVerifynew\");\t\t\n\t\t\t new SubmitMeterReadAction()\n\t\t\t .openSMRpageCRGas(\"Gas\")\t\t\t \n\t\t\t .verifyAnonymousSAPGasCus_CR_Multiplereg_newuser_alertchecked(smrProfile) ;\n\t\t\t // .VerifySAPCRM_SMR(crmuserProfile,userProfile,smrProfile);\n\t\t\t \t}",
"boolean checkVerification();",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"void checkWinner() {\n\t}",
"public boolean whiteCheck() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void endCheck() {\n\t}",
"public abstract String check() throws Exception;",
"public void UpCheck_status1(MajorChange mc) ;",
"private Checking(String name) {\r\n\t\tsuper(name);\r\n\t}",
"@Override\r\n\tpublic void preCheck(CheckCommand checkCommand) throws Exception {\n\r\n\t}",
"public StringBuilder getCheckSB()\n\t{\n\t\treturn checkSB;\n\t}",
"public void signalCheck() {\n if(moves.length == 0){\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n for(int i = 0; i < moves.length; i++) {\n Space tmp = Board.fetchSpace(moves[i]);\n if(tmp.getPiece() != null) {\n if(this.getType().charAt(0) != tmp.getPiece().getType().charAt(0) && tmp.getPiece().getType().charAt(1) == 'K') {\n setiHaveCheck(true);\n calcPathToKing(tmp);\n break;\n }\n else {\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n }\n else {\n setiHaveCheck(false);\n pathToKing = null;\n rangeOfCheck = null;\n }\n }\n }",
"@Override\n\tpublic void checkScore() {\n\t\t\n\t}",
"public abstract void check(Manager manager);",
"boolean hasS5();",
"private CheckingTools() {\r\n super();\r\n }",
"private static void check(boolean bedingung, String msg) throws IllegalArgumentException\n {\n if (!bedingung)\n throw new IllegalArgumentException(msg);\n }",
"public void smell() {\n\t\t\n\t}",
"public boolean CheckMate(Board b, Player p, boolean check) {\n int WhiteKingx = WhiteKing(b)[0];\r\n int WhiteKingy = WhiteKing(b)[1];\r\n int BlackKingx = BlackKing(b)[0];\r\n int BlackKingy = BlackKing(b)[1];\r\n\r\n if (check && p.getColor()) {\r\n //currently in check and color is white\r\n for (int horizontal = -1; horizontal < 2; horizontal++) {\r\n for (int vertical = -1; vertical < 2; vertical++) {\r\n if (b.blocks[WhiteKingx][WhiteKingy].getPiece().ValidMove(b.blocks, WhiteKingx, WhiteKingy, WhiteKingx + horizontal, WhiteKingy + vertical)) {\r\n /* Check which blocks the king can move to.\r\n * If the king can move, check if that block still puts the king on check\r\n * If all of them yield check, then see if there is a piece that can move to prevent the check\r\n */\r\n b.move(WhiteKingx, WhiteKingy, WhiteKingx + horizontal, WhiteKingy + vertical);\r\n if(!CheckChecker(b, p)) {\r\n b.move(WhiteKingx + horizontal, WhiteKingy + vertical, WhiteKingx, WhiteKingy);\r\n return false;\r\n }\r\n b.move(WhiteKingx + horizontal, WhiteKingy + vertical, WhiteKingx, WhiteKingy);\r\n }\r\n }\r\n }\r\n }\r\n if (check && !p.getColor()) {\r\n for(int horizontal = -1; horizontal < 2; horizontal++) {\r\n for(int vertical = -1; vertical < 2; vertical ++) {\r\n if(b.blocks[BlackKingx][BlackKingy].getPiece().ValidMove(b.blocks, BlackKingx, BlackKingy, BlackKingx + horizontal, BlackKingy + vertical)) {\r\n b.move(BlackKingx, BlackKingy, BlackKingx + horizontal, BlackKingy + vertical);\r\n if(!CheckChecker(b, p)) {\r\n b.move(BlackKingx + horizontal, BlackKingy + vertical, BlackKingx, BlackKingy);\r\n return false;\r\n }\r\n b.move(BlackKingx + horizontal, BlackKingy + vertical, BlackKingx, BlackKingy);\r\n }\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"private void checks(){\n if (check(true)){\n changeBottomPane(\"White is in check! :(\");\n }\n else if (check(false)){\n changeBottomPane(\"Black is in check!!!!!!!!!!!\");\n }\n else{\n changeBottomPane(\"\");\n }\n }",
"default void checkInOk(String name) {\n }",
"public static void nomovecheck(){\n\t\tnomovecount=0;\n\t\tboardcheck(\"x\");\n\t\tboardcheck(\"o\");\n\t}",
"private void checkEnabled() {\n }",
"@Override\n public void computeSatisfaction() {\n\n }",
"private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}",
"public boolean blackCheckmate() {\n\t\treturn false;\n\t}",
"public void setGeneratedCheck(){\n generatedCheck = !generatedCheck;\n }",
"private void change_im_check(boolean boo){\r\n if(boo){ //IMAGEN SI EL MEASURE ES CORRECTO\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }else{ //IMAGEN PARA LA BUSQUEDA DE UN MEASURE\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img34.png\")));\r\n }\r\n }",
"public String checkSystem() {\r\n\t\tif(currentSheeps > totalSheeps || currentSheeps < 0) {\r\n\t\t\treturn \"inconsistent!\";\r\n\t\t}\r\n\t\telse if(currentSheeps < totalSheeps) {\r\n\t\t\treturn \"incomplete!\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn \"complete!\";\r\n\t\t}\r\n\t}",
"public int Check(){\n return 6;\n }",
"public abstract void setCheck(Boolean check);",
"public boolean checkCheckMate() {\n\t\t// \n\t\tboolean checked = false;\n\t\tfor (int i = 0; i < 32; i++) { \n\t\t\tif (pieces[i].handlePieceCheckMate()) {\n\t\t\t\tchecked = true;\n\n\t\t\t\tswitch (pieces[i].getColor())\n\t\t\t\t{\n\t\t\t\tcase BLACK:\n\t\t\t\t\twhichKing = 28;\n\t\t\t\t\tbreak;\n\t\t\t\tcase WHITE:\n\t\t\t\t\twhichKing = 4;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\twhichKing = 40;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t} \t\n\t\t}\n\t\treturn checked;\n\t}",
"public void checkIfShowerOn(){\n double currentSMA = mySMA.currentAverage();\n Log.d(LOGTAG,\"currentSMA: \"+currentSMA);\n Log.d(LOGTAG,\"isShowerOn: \"+ isShowerOn);\n if (currentSMA>SMA_THRESHOLD && !isShowerOn){\n //Initialize stuff to do once shower is on\n isShowerOn=true;\n startShower();\n } else if (currentSMA<SMA_THRESHOLD && isShowerOn){\n //Shutdown\n isShowerOn=false;\n endShower();\n }\n }",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void mpanNameErrorMsgValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify the functionality of Supply field and its appropriate error messages\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRGasUserforsingleMeter\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Electricity\")\n\t.ValidatempanErrormsg(smrProfile);\t\t\t\n}",
"public boolean blackCheck() {\n\t\treturn false;\n\t}",
"boolean hasS2();",
"public void checkData2019() {\n\n }",
"private void checkStories(){\n }",
"private boolean Verific() {\n\r\n\treturn true;\r\n\t}",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"public void testCheck()\r\n {\n DataUtil.check(9, \"This is a test!\");\r\n }",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"public boolean verMina(){\n\r\n return espM;\r\n }",
"public void priceCheck() {\n\t\tnew WLPriceCheck().execute(\"\");\n\t}",
"public static void checkMateScenario(String loser){\n\t\tif(loser.equals(\"noCheckMate\")){\n\t\t\treturn;\n\t\t}\n\t\tJOptionPane.showMessageDialog(userInterface.frame, loser);\n\t\t\n\t\tuserInterface.check.setText(\"\");\n\t\tuserInterface.turn.setText(\"Player turn: white\");\n\t\tturn = \"white\";\n\t\tnewGame();\n\t}",
"private void setOneAllChecks() {\r\n\r\n checkIman.setEnabled(true);\r\n checkBonferroni.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n checkHochberg.setEnabled(true);\r\n checkHommel.setEnabled(true);\r\n checkHolland.setEnabled(true);\r\n checkRom.setEnabled(true);\r\n checkFinner.setEnabled(true);\r\n checkLi.setEnabled(true);\r\n\r\n }",
"@Override\n\tpublic void checkMaintenanceStatus() {\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void readingGasErrorMsgValidation(){\t\t\t \n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verify functionality of Gas reading dials and its appropriate error messages for non SAP-ISU customer\");\n\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRGas\");\n\tnew SubmitMeterReadAction()\n\t.openSMRpage(\"Gas\")\n\t.validateGasreadingFiledErrormsg(smrProfile);\t\t\t\n}",
"private void chkSTMST()\n\t{\n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Select count(*) from fg_stmst\";\n\t\t\tM_strSQLQRY += \" where st_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and st_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\tif(cl_dat.getRECCNT(M_strSQLQRY) > 0)\n\t\t\t\tupdSTMST();\n\t\t\telse{\n\t\t\t\tsetMSG(\"Record does not exist in FG_STMST\",'E');\n\t\t\t\tcl_dat.M_flgLCUPD_pbst = false;\n\t\t\t\t}\n\t\t}\n\t\tcatch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"chkSTMST\");\n\t\t}\n\t}",
"private void smell() {\n try {\n this.console.println(MapControl.checkSmell(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } catch (MapControlException ex) {\n Logger.getLogger(GameMenuView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }",
"@Test\n public void testCheckPositive() {\n Helper.checkPositive(1, \"obj\", \"method\", LogManager.getLog());\n }",
"public abstract void selfCheck(MCTSConfig config);",
"abstract protected boolean checkMethod();",
"public void check2Minerals(){\n\t\t/*if (tfod != null) {\n\t\t\t// getUpdatedRecognitions() will return null if no new information is available since\n\t\t\t// the last time that call was made.\n\t\t\tList<Recognition> updatedRecognitions = tfod.getRecognitions();\n\n\t\t\tif (updatedRecognitions != null) {\n\n\t\t\t\tfloat goldMineral;\n\t\t\t\tfloat silverMineral;\n\n\t\t\t\tif(updatedRecognitions.size()==3){\n\t\t\t\t\tcheckMinerals();\n\t\t\t\t}\n\t\t\t\telse if (updatedRecognitions.size() >= 2) {\n\t\t\t\t\tif(updatedRecognitions.get(0).getLabel().equals(LABEL_GOLD_MINERAL)) {\n\t\t\t\t\t\tgoldMineral = updatedRecognitions.get(0).getLeft();\n\t\t\t\t\t\tsilverMineral = updatedRecognitions.get(1).getLeft();\n\t\t\t\t\t}\n\t\t\t\t\telse if(updatedRecognitions.get(1).getLabel().equals(LABEL_GOLD_MINERAL)){\n\t\t\t\t\t\tgoldMineral = updatedRecognitions.get(1).getLeft();\n\t\t\t\t\t\tsilverMineral = updatedRecognitions.get(0).getLeft();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tposition=\"right\";\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\ttelemetry.clearAll();\n\t\t\t\t\ttelemetry.addData(\"minerals\", updatedRecognitions.size());\n\t\t\t\t\ttelemetry.addData(\"goldMineral\", goldMineral);\n\t\t\t\t\ttelemetry.addData(\"silverMineral\", silverMineral);\n\t\t\t\t\ttelemetry.addData(\"position\", position);\n\t\t\t\t\ttelemetry.update();\n\n\n\t\t\t\t\tif(goldMineral<528){\n\t\t\t\t\t\tposition=\"center\";\n\t\t\t\t\t}\n\t\t\t\t\telse if(goldMineral>528){\n\t\t\t\t\t\tposition=\"left\";\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tposition=\"rotate\";\n\t\t\t\t\t}*/\n\n\t\t//\t\t}\n\t\t//\t}\n\t\t//}\n\t}",
"private void setMultipleChecks() {\r\n\r\n checkNemenyi.setEnabled(true);\r\n checkShaffer.setEnabled(true);\r\n checkBergman.setEnabled(true);\r\n\r\n checkIman.setEnabled(true);\r\n checkHolm.setEnabled(true);\r\n }",
"public boolean checkForGourds() {return false;}",
"@RequiresRoles(value = { \"admin\", \"maintenanceManager\",\"safe\",\"maintain\",\"engineer\" }, logical = Logical.OR)\n\t// 车辆安全检查\n\t@Override\n\tpublic JsonData saveSafeCheck(List<SafeCheckResult> safeCheckResult, String vSn) {\n\t\tlog.info(\"safeCheckResult:{}\", JsonMapper.obj2String(safeCheckResult));\n\t\tArrayList<String> exlist = new ArrayList<String>();\n\n\t\tfor (SafeCheckResult safeCheckResult2 : safeCheckResult) {\n\t\t\tif (StringUtils.isNoneBlank(safeCheckResult2.getCheckExplanation())) {\n\t\t\t\texlist.add(safeCheckResult2.getCheckExplanation());\n\n\t\t\t}\n\t\t\tif (safeCheckResult2.getUuid() == null) {\n\t\t\t\tSafeCheckResult safe = safeCheckResultRepository.findByItemAndVSn(safeCheckResult2.getItem(), vSn);\n\t\t\t\tif (safe != null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tsafeCheckResultRepository.save(safeCheckResult2);\n\t\t\t} else {\n\t\t\t\tsafeCheckResultRepository.save(safeCheckResult2);\n\t\t\t}\n\n\t\t}\n\t\tDate date = new Date();\n\t\tSafeCheck safeCheck = safeCheckRepository.findByvSn(vSn); // 查询是否已经安全检查\n\t\tReviewer reviewer = reviewerRepository.findByvSn(vSn); // 查询审核是否为空\n\t\tif (safeCheck != null) { // 如果检查不为空\n\t\t\tsafeCheck.setCheckPerson(TokenManagerUtils.getNickname()); // 设置检查人\n\t\t\tsafeCheck.setCheckTime(date); // 设置检查时间\n\t\t\tsafeCheckRepository.save(safeCheck); // 保存\n\t\t} else { // 为空 进行创建\n\t\t\tSafeCheck build = SafeCheck.builder().checkTime(date).checkPerson(TokenManagerUtils.getNickname()).vSn(vSn)\n\t\t\t\t\t.build();\n\t\t\tlog.info(\"build:{}\", JsonMapper.obj2String(build));\n\t\t\tsafeCheckRepository.save(build);\n\t\t}\n\n\t\tif (reviewer != null) { // 查询审核中的安全检查项是否为空\n\t\t\treviewer.setSafeCheckPerson(TokenManagerUtils.getNickname());\n\t\t} else { // 如果为空进行创建\n\t\t\tReviewer build = Reviewer.builder().safeCheckPerson(TokenManagerUtils.getNickname()).vSn(vSn).build();\n\t\t\tlog.info(\"build:{}\", JsonMapper.obj2String(build));\n\t\t\treviewerRepository.save(build);\n\t\t}\n\n\t\tCar car = carRepository.findByVSn(vSn);\n\t\tif (car != null) {\n\t\t\tcar.setSafeCheck(\"待核对\");\n\t\t}\n\t\treturn JsonData.success(\"车辆安全检查/更新成功\");\n\t}",
"public void coMina(){\n espM=true;\r\n }",
"public void checkOdlOpenflowMeterstats2(String x) throws SnmpStatusException;",
"static void sm() {\n }",
"public void checkIn() {\n\t}",
"public void checkOdlOpenflowManufacturer2(String x) throws SnmpStatusException;",
"public synchronized int checkGiftCardValues(String profileId) {\r\n if (getIsCheckValueButtonClicked() == false) {\r\n try {\r\n setIsCheckValueButtonClicked(true);\r\n GiftCard tempGiftCard = null;\r\n boolean validInquiryAttempt = true;\r\n ArrayList tempGiftCardList = new ArrayList();\r\n \r\n if (profileId == null || profileId.equals(\"\")) {\r\n return PROFILE_ID_NOT_FOUND;\r\n }\r\n \r\n for (int i = 0; i < getGiftCardList().size(); i++) {\r\n tempGiftCard = getGiftCardListItem(i);\r\n // System.out.println(\"The entered Card Number is : \" + tempGiftCard.getCardNumber());\r\n if (!tempGiftCard.getIsBlank()) {\r\n String tempGcNumber = tempGiftCard.getCardNumber();\r\n if (tempGcNumber.startsWith(\"80\") || tempGcNumber.startsWith(\"81\") || tempGcNumber.startsWith(\"82\") || tempGcNumber.startsWith(\"83\")) {\r\n // System.out.println(\"Inside the check for incircle cards : \" + tempGcNumber);\r\n validInquiryAttempt = false;\r\n tempGiftCard.setIsValid(false);\r\n tempGiftCard.setTransactionStatus(56);\r\n } else {\r\n // System.out.println(\"Outsie the check for incircle cards : \" + tempGiftCard.getCardNumber());\r\n if (giftCardModCheck(tempGiftCard)) {\r\n // System.out.println(\"The entered Card Number is : \" + tempGiftCard.getCardNumber());\r\n // System.out.println(\"inside the ModCheck condition : \" + tempGiftCard.getCardNumber());\r\n tempGiftCard.setAmountAvailable(0.0d);\r\n tempGiftCard.setIsValid(true);\r\n tempGiftCardList.add(tempGiftCard);\r\n } else {\r\n // System.out.println(\"inside else loop where transaction is set for -1 : \" + tempGiftCard.getCardNumber());\r\n validInquiryAttempt = false;\r\n tempGiftCard.setIsValid(false);\r\n tempGiftCard.setTransactionStatus(-1);\r\n }\r\n }\r\n } else {\r\n tempGiftCard.setIsValid(true);\r\n }\r\n }\r\n \r\n if (isLoggingDebug()) {\r\n logDebug(\"getGiftCardBalancerService-->\" + getGiftCardBalanceService() + \"<---\");\r\n }\r\n // Calling gift card service if atleast one gift card is valid.\r\n if (tempGiftCardList.size() != 0) {\r\n try {\r\n tempGiftCardList = (ArrayList) getGiftCardBalanceService().checkGiftCardBalance(profileId, tempGiftCardList);\r\n } catch (Exception e) {\r\n return GIFT_CARD_SYSTEM_UNAVAILABLE;\r\n }\r\n }\r\n // Logic to add the valid cards from the service to the giftcardList as they may be invalid cards in the giftcardList\r\n List<GiftCard> tempList = new ArrayList<GiftCard>();\r\n for (int i = 0; i < getGiftCardList().size(); i++) {\r\n for (int k = 0; k < tempGiftCardList.size(); k++) {\r\n GiftCard giftCardCurrent = getGiftCardListItem(i);\r\n GiftCard giftCardFromService = (GiftCard) tempGiftCardList.get(k);\r\n if (giftCardCurrent.getCardNumber().equals(giftCardFromService.getCardNumber()) && giftCardCurrent.getCid().equals(giftCardFromService.getCid())) {\r\n if (!tempList.contains(giftCardFromService)) {\r\n giftCardCurrent.setAmountAvailable(giftCardFromService.getAmountAvailable());\r\n giftCardCurrent.setTransactionStatus(giftCardFromService.getTransactionStatus());\r\n tempList.add(giftCardFromService);\r\n } else {\r\n getGiftCardList().remove(i);\r\n }\r\n }\r\n }\r\n }\r\n \r\n if (isLoggingDebug()) {\r\n for (int i = 0; i < getGiftCardList().size(); i++) {\r\n logDebug(\"giftcard--\" + i + \"--->\" + getGiftCardListItem(i) + \"<-----\");\r\n }\r\n }\r\n \r\n Iterator giftCardIterator = getGiftCardList().iterator();\r\n while (giftCardIterator.hasNext()) {\r\n tempGiftCard = (GiftCard) giftCardIterator.next();\r\n switch (tempGiftCard.getTransactionStatus()) {\r\n case GiftCard.AMOUNT_OVER_BALANCE:\r\n case GiftCard.CANCELED:\r\n case GiftCard.NM_MERCH_ONLY:\r\n case GiftCard.ALREADY_ON_FILE:\r\n case GiftCard.NOT_EQUAL_TO_INIT_VALUE:\r\n case GiftCard.BALANCE_NOT_TRUE:\r\n case GiftCard.NOT_BEEN_SOLD:\r\n case GiftCard.LOST_OR_STOLEN:\r\n case GiftCard.EXPIRED:\r\n case GiftCard.INVALID_CIN:\r\n case GiftCard.NOT_ADDING_VALUE:\r\n case GiftCard.DIV_04_ONLY:\r\n case GiftCard.DIV_05_ONLY:\r\n case GiftCard.REFUND_ONLY:\r\n case GiftCard.INVALID_INCIRCLE_CARD:\r\n case GiftCard.CARD_NOT_ON_FILE:\r\n validInquiryAttempt = false;\r\n tempGiftCard.setIsValid(false);\r\n break;\r\n \r\n case GiftCard.INVALID_TRANSACTION_TYPE:\r\n case GiftCard.HOST_COMMUNICATION_ERROR:\r\n case GiftCard.FILES_NOT_OPEN:\r\n case GiftCard.BAD_FILE:\r\n return GIFT_CARD_SYSTEM_UNAVAILABLE;\r\n \r\n case GiftCard.OK:\r\n default:\r\n }\r\n }\r\n \r\n if (validInquiryAttempt) {\r\n // if( !getGiftCardPageType().equals(STATIC_INQUIRY) ) {\r\n if (isLoggingDebug()) {\r\n logDebug(\"sorting.................\");\r\n }\r\n sortByGiftCardAmounts(getGiftCardList());\r\n // }\r\n return NO_ERRORS;\r\n } else {\r\n setInvalidCardErrorCount(getInvalidCardErrorCount() + 1);\r\n return INVALID_CARD_NUMBER;\r\n }\r\n } finally {\r\n setIsCheckValueButtonClicked(false);\r\n }\r\n } else {\r\n return NO_ERRORS;\r\n }\r\n }",
"private void getStatus() {\n\t\t\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifySAPElectricCustomer_old()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the SAP SMR page for Electric customer\");\nSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRElectricityUserforsingleMeter\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Electricity\")\n\t\t//.verifyAnonymousSAPElecCustomersRewrite(smrProfile)\n\t\t.verifyAnonymousSAPElectricCustomers(smrProfile)\n\t\t.verifyLeadTable(smrProfile);\n\t\n}",
"private IbanMod97Check() {\n\t}",
"@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}",
"@Override\n\tvoid checkConsistency()\n\t{\n\t\t\n\t}",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\n\tpublic void checkeoDeBateria() {\n\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t public void AnonymousGasSmrCR_singleregister_noalrertchecked(){\n\t\t\t\tReport.createTestLogHeader(\"Anonymous SMR\", \"Verify whether the anonymous Gas customer is able to do SMR journey without alret\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRGasCRdata\");\n\t\t\t new SubmitMeterReadAction()\n\t\t\t .openSMRpageCRGas(\"Gas\")\t\t\t \n\t\t\t .verifyAnonymousSAPGasCus_CR_Multiplereg_newuser_alretnonchecked(smrProfile); \n\t\t\t \t}",
"public void v_Verify_Guest7_Hidden(){\n\t}",
"boolean hasGcj02();",
"void checkValid();",
"public String snum_check(int snum) {\n\t\treturn Sdao.nameselect(snum);\r\n\t}",
"@Test\r\n public void testCheckGIS() {\r\n System.out.println(\"checkGIS\");\r\n String word = \"crowd\";\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = true;\r\n boolean result = instance.checkGIS(word);\r\n assertEquals(expResult, result);\r\n word = \"nevergoingtobeawordtotest\";\r\n expResult = false;\r\n result = instance.checkGIS(word);\r\n assertEquals(expResult, result);\r\n }",
"public void v_Verify_Guest6_Hidden(){\n\t}",
"public void v_Verify_Guest8_Hidden(){\n\t}",
"public static boolean testCheckMateWhite() {\n\t\t\t\tint i = 0;\n\t\t\t\tfor(Square s : BOARD_SQUARES) {\n\t\t\t\t\tPiece p = s.getPiece();\n\t\t\t\t\tif(s.hasPiece() && (p.getTeamColor()).equals(TeamColor.WHITE)) {\n\t\t\t\t\t\tif(!p.getPossibleMoves().isEmpty()) {\n\t\t\t\t\t\t\tfor(int[] potentialMove : p.getPossibleMoves()) {\n\t\t\t\t\t\t\t\tif(hasSquare(potentialMove)) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Completely move piece\n\t\t\t\t\t\t\t\t\tSquare targetSquare = getSquare(potentialMove);\n\t\t\t\t\t\t\t\t\tPiece savedPiece = targetSquare.getPiece();\n\t\t\t\t\t\t\t\t\ttargetSquare.setIcon(p);\n\t\t\t\t\t\t\t\t\ts.removePiece();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Update positions/square protections\n\t\t\t\t\t\t\t\t\tupdatePositions();\n\t\t\t\t\t\t\t\t\tsetProtectedSquares();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Test if still in check\n\t\t\t\t\t\t\t\t\tif(!testCheckWhite()) {\n\t\t\t\t\t\t\t\t\t\ti++;\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\t// Undo move\n\t\t\t\t\t\t\t\t\ttargetSquare.setIcon(savedPiece);\n\t\t\t\t\t\t\t\t\ts.setIcon(p);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn (i==0);\n\t}",
"public boolean isCheckable() {\n/* 738 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public static String checkEndGame(){\n\t\tif(turn.equals(\"white\") && king.whiteKingCheck == true){\n\t\t\tif(endGame.checkMate(board, \"white\")){\n\t\t\t\tincrementPoints(\"black\");\n\t\t\t\treturn \"Check Mate! Black Wins!\\n Press OK to start new game\";\n\t\t\t}\n\t\t}\n\t\tif(turn.equals(\"black\") && king.blackKingCheck == true){\n\t\t\tif(endGame.checkMate(board, \"black\")){\n\t\t\t\tincrementPoints(\"white\");\n\t\t\t\treturn \"Check Mate! White Wins!\\n Press OK to start new game\";\n\t\t\t}\n\t\t}\n\t\treturn \"noCheckMate\";\n\t}",
"protected void mo6255a() {\n }",
"private boolean doMASCCheckFor(Mounted masc, Vector<Report> vDesc, HashMap<Integer, CriticalSlot> vCriticals) {\n if (masc != null) {\n boolean bFailure = false;\n int nRoll = Compute.d6(2);\n\n usedMASC = true;\n Report r = new Report(2365);\n r.subject = getId();\n r.addDesc(this);\n r.add(masc.getName());\n vDesc.addElement(r);\n r = new Report(2370);\n r.subject = getId();\n r.indent();\n r.add(getMASCTarget());\n r.add(nRoll);\n\n if (nRoll < getMASCTarget()) {\n // uh oh\n bFailure = true;\n r.choose(false);\n vDesc.addElement(r);\n\n if (((MiscType) (masc.getType())).hasSubType(MiscType.S_SUPERCHARGER)) {\n if (masc.getType().hasFlag(MiscType.F_MASC)) {\n masc.setHit(true);\n masc.setMode(\"Off\");\n }\n // do the damage - engine crits\n int hits = 0;\n int roll = Compute.d6(2);\n r = new Report(6310);\n r.subject = getId();\n r.add(roll);\n r.newlines = 0;\n vDesc.addElement(r);\n if (roll <= 7) {\n // no effect\n r = new Report(6005);\n r.subject = getId();\n r.newlines = 0;\n vDesc.addElement(r);\n } else if ((roll >= 8) && (roll <= 9)) {\n hits = 1;\n r = new Report(6315);\n r.subject = getId();\n r.newlines = 0;\n vDesc.addElement(r);\n } else if ((roll >= 10) && (roll <= 11)) {\n hits = 2;\n r = new Report(6320);\n r.subject = getId();\n r.newlines = 0;\n vDesc.addElement(r);\n } else if (roll == 12) {\n hits = 3;\n r = new Report(6325);\n r.subject = getId();\n r.newlines = 0;\n vDesc.addElement(r);\n }\n for (int i = 0; (i < 12) && (hits > 0); i++) {\n CriticalSlot cs = getCritical(LOC_CT, i);\n if ((cs.getType() == CriticalSlot.TYPE_SYSTEM) && (cs.getIndex() == SYSTEM_ENGINE)) {\n vCriticals.put(new Integer(LOC_CT), cs);\n hits--;\n }\n }\n } else {\n // do the damage.\n // random crit on each leg, but MASC is not destroyed\n for (int loc = 0; loc < locations(); loc++) {\n if (locationIsLeg(loc) && (getHittableCriticals(loc) > 0)) {\n CriticalSlot slot = null;\n do {\n int slotIndex = Compute.randomInt(getNumberOfCriticals(loc));\n slot = getCritical(loc, slotIndex);\n } while ((slot == null) || !slot.isHittable());\n vCriticals.put(new Integer(loc), slot);\n }\n }\n }\n // failed a PSR, check for stalling\n doCheckEngineStallRoll(vDesc);\n } else {\n r.choose(true);\n vDesc.addElement(r);\n }\n return bFailure;\n }\n return false;\n }",
"private void checkForInstability(boolean overshoot) { \n if (overshoot == true) {\n setUnstable();\n } else {\n setStable();\n }\n }"
] |
[
"0.6277883",
"0.6206995",
"0.6206995",
"0.60212404",
"0.585943",
"0.585943",
"0.5829349",
"0.5755561",
"0.57472956",
"0.5709172",
"0.56437624",
"0.5581131",
"0.55699664",
"0.55570704",
"0.5535423",
"0.5519058",
"0.5512952",
"0.5507142",
"0.5482802",
"0.54724836",
"0.54140145",
"0.54023975",
"0.5394438",
"0.53732693",
"0.5361888",
"0.5360764",
"0.5349808",
"0.53425884",
"0.53326696",
"0.5325882",
"0.5321396",
"0.53179824",
"0.52970004",
"0.5289677",
"0.52879125",
"0.52861",
"0.5277284",
"0.5231932",
"0.5224659",
"0.52193606",
"0.52186614",
"0.5218168",
"0.5216162",
"0.5177516",
"0.5176633",
"0.51696086",
"0.5164467",
"0.51639163",
"0.5162998",
"0.51569617",
"0.5156552",
"0.51530397",
"0.51463604",
"0.5145727",
"0.51408416",
"0.51372147",
"0.513375",
"0.5131692",
"0.5127429",
"0.5124385",
"0.51149154",
"0.5113665",
"0.5112522",
"0.5108894",
"0.51072794",
"0.51056296",
"0.5092995",
"0.5088415",
"0.5082663",
"0.50801885",
"0.507257",
"0.5063782",
"0.5044938",
"0.50425744",
"0.5030982",
"0.5029033",
"0.5020022",
"0.50173116",
"0.50116444",
"0.50086695",
"0.5006264",
"0.50054777",
"0.5003966",
"0.5002024",
"0.49948213",
"0.49932453",
"0.49907628",
"0.49897683",
"0.4989625",
"0.4985768",
"0.4984868",
"0.49845177",
"0.49810216",
"0.49797",
"0.49738097",
"0.49731362",
"0.49708882",
"0.49679917",
"0.49677125",
"0.4963212"
] |
0.62022614
|
3
|
second example, compute some values by hand (these figures were not used in the end)
|
public static void main2(String[] args)
{
String designString = "design23e";
double coolingRate = 1.0;
Design design = new Design(designString, coolingRate, "distance-M1", true, "Unified");
System.out.println("FIGURE 1 160nt");
double distance = (160 * (1.0 / 3.0) * 1.8 * 1.8) * 1E-18;
getStats(distance, design);
System.out.println("FIGURE 1 640nt");
distance = (640 * (1.0 / 3.0) * 1.8 * 1.8) * 1E-18;
getStats(distance, design);
System.out.println("SITUATION A");
distance = (56 * (1.0 / 3.0) * 1.8 * 1.8 + 1 * 16.0 * 0.34 * 16 * 0.34) * 1E-18;
getStats(distance, design);
System.out.println("SITUATION B");
distance = ((48 * (1.0 / 3.0) + 1) * 1.8 * 1.8 + 1 * 16.0 * 0.34 * 16 * 0.34) * 1E-18;
getStats(distance, design);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract double compute(double value);",
"protected abstract SoyValue compute();",
"public abstract double calcular();",
"double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}",
"double getValue();",
"double getValue();",
"double getValue();",
"@Override\n public Float compute() {\n\treturn calc();\n }",
"public abstract double evaluate(double value);",
"public abstract double computeValue(Density density);",
"void doCalculations(){\n double out1;\n double out2;\n double out3;\n \n out1 = x + n * y - (x + n) * y;\n System.out.printf(\"If x=%s, n=%s, y=%s, then out1 = \\n\",x,n,y);\n System.out.println(out1 + \"\\n\");\n \n out2 = m / n + m % n;\n System.out.printf(\"If m=%s, n=%s, then out2 = \\n\",m,n);\n System.out.println(out2 + \"\\n\");\n \n out3 = 5 * x - n / 5;\n System.out.printf(\"If x=%s, n=%s, then out3 = \\n\",x,n);\n System.out.println(out3 + \"\\n\");\n \n \n }",
"double getBasedOnValue();",
"public abstract double getValue();",
"public double calculateValue () {\n return double1 * double2;\n }",
"protected abstract double operation(double val);",
"protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }",
"@Override\n\tpublic List<Double> computeValues() {\n\t\treturn null;\n\t}",
"protected float compute(){\n float result = 0f;\n String[] post = in2post(this.arr);\n result = post2ans(post);\n return result;\n }",
"@Override\n\t\tprotected int computeValue() {\n\t\t\treturn squareSide.get() * squareSide.get(); //return squared value\n\t\t}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"public double getValue();",
"@Override\n public double getResult(Map<String, Double> values) {\n List<Node> nodes = getChildNodes();\n double result = nodes.get(0).getResult(values);\n if (nodes.size() > 1) {\n for (int i = 1; i < nodes.size(); i++) {\n result = result / nodes.get(i).getResult(values);\n }\n }\n return result;\n }",
"public void compute() {}",
"public double evaluate(){\n trialsSoFar++;\n double tot = 0;\n int ix = 0;\n while (ix < genome.getGenome().size()) {\n // directly access the current value field of each bandit\n boolean block = true;\n for (int j=0; j<blockSize; j++) {\n if (genome.getGenome().get(ix).getX() != 1)\n block = false;\n ix++;\n }\n if (block) {\n tot += blockSize;\n }\n }\n return tot;\n }",
"static void compute(){\n XYChart.Series<Number, Number> euler = new XYChart.Series<>();\n XYChart.Series<Number, Number> eulerLocalError = new XYChart.Series<>();\n\n //inserting into series values at 0-th step\n euler.getData().add(new XYChart.Data<>(x0, y0));\n eulerLocalError.getData().add(new XYChart.Data<>(x0, 0.0));\n\n //looping through N steps (N - user inserted value)\n for (int i = 1; i <= N; ++i){\n //retrieving x and y-approximation at previous step\n double prevX = euler.getData().get(i - 1).getXValue().doubleValue();\n double prevY = euler.getData().get(i - 1).getYValue().doubleValue();\n\n //calculating current x, and current y-approximation\n double x = x0 + h * i;\n double y = prevY + h * derivativeAtPoint(prevX, prevY);\n\n //inserting to the approximation series pair of correspondent values\n euler.getData().add(new XYChart.Data<>(x, y));\n\n //calculating previous and current step exact solutions\n double prevExactY = exactSolution.calculate(x - h);\n double curExactY = exactSolution.calculate(x);\n\n //using formula for local error, calculating it and putting it into local error series for Euler's computational method\n double A = derivativeAtPoint(x - h, prevExactY);\n eulerLocalError.getData().add(new XYChart.Data<>(x, Math.abs(curExactY - prevExactY - h * A)));\n }\n //defining the name of the series\n euler.setName(\"Euler method\");\n eulerLocalError.setName(\"Euler method\");\n\n //inserting these series into their correspondent charts\n localErrorsChart.getData().add(eulerLocalError);\n approximationsAndExactSolutionChart.getData().add(euler);\n }",
"Double getValue();",
"public abstract double getPreis();",
"abstract public double compute(Composition comp, double e0);",
"@Override\n\tprotected Integer compute() {\n\t\treturn 3;\n\t}",
"public abstract double calcSA();",
"@Override\n public double calculate(double input)\n {\n return input/getValue();\n }",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}",
"public abstract double value(Instance output, Instance example);",
"public final double evaluate(double x,double[] pars){ return value(x,pars); }",
"double getPValue();",
"void compute() {\n\n if (random.nextBoolean()) {\n value = value + random.nextInt(variation);\n ask = value + random.nextInt(variation / 2);\n bid = value + random.nextInt(variation / 2);\n } else {\n value = value - random.nextInt(variation);\n ask = value - random.nextInt(variation / 2);\n bid = value - random.nextInt(variation / 2);\n }\n\n if (value <= 0) {\n value = 1.0;\n }\n if (ask <= 0) {\n ask = 1.0;\n }\n if (bid <= 0) {\n bid = 1.0;\n }\n\n if (random.nextBoolean()) {\n // Adjust share\n int shareVariation = random.nextInt(100);\n if (shareVariation > 0 && share + shareVariation < stocks) {\n share += shareVariation;\n } else if (shareVariation < 0 && share + shareVariation > 0) {\n share += shareVariation;\n }\n }\n }",
"public abstract double evaluate(Point p);",
"@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}",
"public double getValue(Hashtable positions, int[] conf) {\n\n return 0.0;\n}",
"@VTID(14)\r\n double getValue();",
"public void calculate();",
"public void calcOutput()\n\t{\n\t}",
"@Override\r\n\tprotected double evaluate(double[] values) throws EvaluationException {\r\n\t\tdouble sum = 0;\r\n\t\tfor (int i = 0 ; i < values.length ; i++){\r\n\t\t\tsum += values[i];\r\n\t\t}\r\n\t\treturn sum;\r\n\t}",
"private double calcuCMetric() {\n\t\treturn (p-1)/fcost;\n\t}",
"float getValue();",
"float getValue();",
"float getValue();",
"@Override\n\tpublic double compute(double input) {\n\t\treturn input;\n\t}",
"protected abstract Value evaluate();",
"private double getValue(double x) {\n return getTextToDouble(textA) * Math.pow(x, 3) + getTextToDouble(textB)\n * Math.pow(x, 2) + getTextToDouble(textC) * x + getTextToDouble(textD);\n }",
"float getEvaluationResult();",
"@Override\r\n public double calculatePiValue() {\r\n double variable = 0;\r\n double value = 0;\r\n for (int step =1;step<=steps; step++) {\r\n variable = step*2+1;\r\n if(step % 2 == 0) {\r\n value = value + ( (double)1 / variable);\r\n } else {\r\n value = value - ( (double)1 / variable);\r\n }\r\n }\r\n value = (1 + value)* 4;\r\n return value;\r\n }",
"public int eqnDecide(float[][] val, String ps) {\n int eq=0,u=0,sum=0,i;\n String unknown;\n unknown = ai.unknownFnd(ps); //contains the unknown var\n u = ai.unFlag(unknown);\n for (i=0;i<3;i++)\n sum+=val[i][1];\n sum+=u;\n System.out.println(sum);\n if (sum == 10)\n eq = 1;\n else if (sum == 14)\n eq = 2;\n else if (sum == 11)\n eq =3;\n return eq;\n }",
"public Double getResult();",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 - n2;\r\n\t}",
"@Override\r\n\t\tpublic double value(double x, double... parameters) {\n\t\t\tfinal double a = parameters[0];\r\n\t\t\tfinal double b = parameters[1];\r\n\t\t\tfinal double c = parameters[2];\r\n\t\t\tfinal double d = parameters[3];\r\n\t\t\tfinal double e = parameters[4];\r\n\t\t\treturn d + ((a - d) / (1 + Math.pow((x+e)/c, b)));\r\n\t\t}",
"private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}",
"public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}",
"@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"double getRealValue();",
"public static void main(String[] args) {\n\n\n\n double numberOfgallons = 5;\n\n double gallonstolitter = numberOfgallons*3.785;\n\n\n String result = numberOfgallons + \" gallons equal to: \"+gallonstolitter+ \" liters\";\n System.out.println(result);\n\n //=============================================\n /* 2. write a java program that converts litters to gallons\n 1 gallon = 3.785 liters\n 1 litter = 1/3.785\n*/\n\n /*double litter1 = 1/3.785;\n double l =10;\n double gallon1 = l*litter1;\n\n System.out.println(gallon1);\n //======================================================\n*/\n /*\n 3. manually calculate the following code fragements:\n\t\t\t\t1. int a = 200;\n\t\t\t\t\tint b = -a++ + - --a * a-- % 2\n\t\t\t\t\tb = ?\n\n */\n\n\n double numberOfLiters = 100;\n\n double LiterstoGallons = numberOfLiters/3.785;\n\n String result2 = numberOfLiters+\" liters equal to \"+LiterstoGallons+\" galons\";\n\n System.out.println(result2);\n\n\n\n\n\n\n\n\n\n\n\n\n\n int a = 200;\n int b = -a++ + - --a * a-- % 2;\n // b = -200 + - 200* 200%2 = -200;\n\n int x = 300;\n int y = 400;\n int z = x+y-x*y+x/y;\n // z= 300+400-300*400+300/400=700-120000+0(cunki int kimi qebul edir)= -119300;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }",
"@Override\n\tpublic double calculate() \n\t{\t\n\t\t//return 2.45e6;\n\t\t//return (2499.64 - (2.51 * tempCelsius.value)) * 1000;\t\n\t\t//return ((2.501 - (0.002361 * tempCelsius.value)) * 1e6)*0.33;\n\t\treturn ((2.501 - (0.002361 * tempCelsius.value)) * 1e6);\n\t}",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"@Override\r\n\tpublic void compute() {\n\t\t\r\n\t}",
"private static void term(long[] points) {\n\t\tlong temp;\n\t\tfor (int i1 = 0; i1 < points.length; i1++) {\n\t\t\t//System.out.println(((points[i1]/2))*((points[i1]/2)+1));\n\t\t\t//System.out.println((points[i1]/2)*((points[i1]/2)+1));\n\t\t\t\ttemp=(points[i1]/2)*((points[i1]/2)-1);\n\t\t\t//\tSystem.out.println(\"temp\"+temp);\n\t\t\t\tif((points[i1]%2)==0){\n\t\t\t\t\ttemp+=(points[i1])/2;\n\t\t\t\t}else{\n\t\t\t\t\ttemp+=(points[i1])/2;temp+=(points[i1])/2;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(temp);\n\t\t\t\ttemp=0;\n\t\t}\n\t}",
"double[] ComputeNew(node st){\n\tnode p;\n\tdouble[] l;\n\tdouble[] r;\n\tdouble[] result=new double[NUMFITCASE];\n\t\n\tfor(int j=0;j<NUMVAR;j++){\t\t\n\t\t\n\t\tif(st.name.equals(\"X\"+String.valueOf(j+1))){\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=fitcase[i].x[j];\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}\n\t\n\tif(st.name.equals(\"C\")){\n\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t{\n\t\t\tresult[i]=st.value;\n\t\t}\n\t\treturn result;\n\t}\n\telse\n\t\tif(st.name.equals(\"ERC\")) {\n\t\t\tif(st.value==VOIDVALUE) //if it has not been initialized then initialized and return the value\n\t\t\t st.value=GenerateER(st.name); \n\t\t//\t st.att[i]=st.value;\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=st.value; \n\t\t\t}\n\t\t\treturn result;\t\t\t \n\t\t}\t\n\telse // st.name=\"EXP\"\n\t{\n\t\tp = st.children;\n\t\tif(st.name.equals(\"add\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=PVAL(l[i] + r[i]);\n\t\t\t}\n\t\t\treturn result;\n\t\t} else if(st.name.equals(\"sub\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=PVAL(l[i] - r[i]);\n\t\t\t}\n\t\t\treturn result;\n\t\t} else if(st.name.equals(\"mul\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]=PVAL(l[i] * r[i]);\n\t\t\t}\n\t\t\treturn result;\n\t\t} else if(st.name.equals(\"div\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tif(r[i] == 0) \n\t\t\t\t\t{result[i]= 1;}\n\t\t\t\telse {result[i]= PVAL(l[i]/r[i]);}\t\t\t\t\n\t\t\t}\n\t\t\treturn result;\n\t\t\n\t\t} else if(st.name.equals(\"sin\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= Math.sin(l[i]);\t\t\t\t\n\t\t\t}\n\t\t\treturn result;\n\t\t\t\n\t\t\t\n\t\t} else if(st.name.equals(\"cos\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= Math.cos(l[i]);\t\t\t\t\n\t\t\t}\n\t\t\treturn result;\n\t\t\t\n\t\t} else if(st.name.equals(\"sqrt\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= Math.sqrt(Math.abs(l[i]));\t\t\t\n\t\t\t}\n\t\t\treturn result;\t\t\t\n\t\t} else if(st.name.equals(\"sqr\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= PVAL(l[i]*l[i]);\t\t\t\n\t\t\t}\n\t\t\treturn result;\n\t\t\t\n\t\t} else if(st.name.equals(\"ep\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= PVAL(Math.exp(l[i]));\t\n\t\t\t}\n\t\t\treturn result;\t\t\t\n\t\t} else if(st.name.equals(\"divE\")) {\n\t\t\tl = ComputeNew(p);\n\t\t\tr = ComputeNew(p.sibling);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= PVAL(l[i]/Math.sqrt(1+ r[i]*r[i]));\t\t\t\t\n\t\t\t}\n\t\t\treturn result;\t\t\t\n\t\t\t} \n\t\telse {\n\t\t\tl = ComputeNew(p);\n\t\t\tfor(int i=0; i<NUMFITCASE; i++)\n\t\t\t{\n\t\t\t\tresult[i]= PVAL(Math.exp(l[i]));\n\t\t\t\tif(l[i] == 0) result[i]= 0;\n\t\t\t\telse result[i]= PVAL(Math.log(Math.abs(l[i])));// fido fabs\n\t\t\t}\n\t\t\treturn result;\t\n\t\t\t\n\t\t}\n\t}\n}",
"public double evaluate(double x);",
"private void equate()\n\t{\n\t\t\tif(Fun == Function.ADD)\n\t\t\t{\t\t\t\n\t\t\t\tresult = calc.sum ( );\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end ADD condition\n\t\t\t\n\t\t\telse if(Fun == Function.SUBTRACT)\n\t\t\t{\n\t\t\t\tresult = calc.subtract ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end SUBTRACT condition\n\t\t\t\n\t\t\telse if (Fun == Function.MULTIPLY)\n\t\t\t{\n\t\t\t\tresult = calc.multiply ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}//end MULTIPLY condition\n\t\t\t\n\t\t\telse if (Fun == Function.DIVIDE)\n\t\t\t{\n\t\t\t\tresult = calc.divide ();\n\t\t\t\tupdateText();\n\t\t\t\tsetLeftValue();\n\t\t\t\tFun = null;\n\t\t\t}\n\t\t\t\t\n\t}",
"public double getPValue(WILCOXON_H0 h0) {\n if ( observations.size() == 0 )\n return -1.0;\n \n // dither to break rank ties\n dither();\n \n // sort\n Collections.sort(observations, new PairComparator());\n \n // sum\n double sum = 0.0;\n int n1 = 0;\n for (int i = 0; i < observations.size(); i++) {\n if ( observations.get(i).second == WILCOXON_SET.SET1 ) {\n sum += i+1;\n n1++;\n }\n }\n int n2 = observations.size() - n1;\n \n // todo -- these are actually integers\n // we want the smaller of U1 and U2\n double U1 = sum - (n1 * (n1 + 1.0) / 2.0);\n double U2 = (n1 * n2) - U1;\n \n double pvalue;\n // if we don't have enough data points, quit\n // if ( n1 < minimumNormalN || n2 < minimumNormalN ) {\n // pvalue = exactCalculation(h0, n1, n2, U1, U2);\n // } else {\n pvalue = normalApproximation(h0, n1, n2, U1, U2);\n // }\n \n if ( DEBUG && (n1 < minimumNormalN || n2 < minimumNormalN) ) {\n //for (int i = 0; i < observations.size(); i++)\n // System.out.println(observations.get(i).first + \" -> set\" + (observations.get(i).second == WILCOXON_SET.SET1 ? \"Alt\" : \"Ref\"));\n //System.out.printf(\"n1 %d n2 %d U1 %f U2 %f pValue %f QPValue %f%n\", n1, n2, U1, U2, pvalue, QualityUtils.phredScaleErrorRate(pvalue));\n }\n \n return pvalue;\n }",
"List<BigDecimal> computeRes();",
"public double utility();",
"public static void compute() {\n\n }",
"public double calculateValue() {\n if (!isLeaf && Double.isNaN(value)) {\n for (List<LatticeNode> list : children) {\n double tempVal = 0;\n for (LatticeNode node : list) {\n tempVal += ((CALatticeNode) node).calculateValue();\n }\n if (!list.isEmpty())\n value = tempVal;\n }\n }\n weight = Math.abs(value);\n return value;\n }",
"double getSum();",
"double getSum();",
"public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }",
"@Override\n\tpublic double valuta_figli() {\n\t\treturn simple_fitness();\n\t}",
"int getEvaluations();",
"private double calcuFcost() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t');\n\t}",
"@Override\r\n protected double computeValue()\r\n {\n return interpFlow.getValue(Scheduler.getCurrentTime());\r\n }",
"public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }",
"public float calculate(HashMap<String, Float> values) {\n\t\tfloat result = 1.0f; // 1*h1*h2...\n\t\t\n\t\ttry {\n\t\t\tfor(String component : components) {\n\t\t\t\tif(!values.containsKey(component)) throw new Exception(\"Component was not found in the value map.\");\n\t\t\t\tresult *= values.get(component);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tif(error)\n\t\t\tresult = 1 - result;\n\t\t\n\t\treturn result;\n\t}",
"public double getResult() {\n\t\treturn result; // so that skeleton code compiles\n\t}",
"@Override\n\tpublic double calc(double d1, double d2) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double calculate(int currentIteration, int maxIterations) {\n\t\treturn value;\n\t}",
"@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}",
"@Override\n public void step(final EvaluationContext theContext)\n {\n // pop the top 2 values and add them\n // and push the result onto the value stack\n //\n final Double theSecondOperand = theContext.popValue();\n final Double theFirstOperand = theContext.popValue();\n theContext.pushValue(theFirstOperand / theSecondOperand);\n }",
"abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;",
"public abstract double[] evaluateAt(double u, double v);",
"double getDoubleValue3();",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"@Override\r\n public double computeObjectiveValue(final double[] results,\r\n final Serializable staticState) {\r\n if (this.m_use)\r\n return this.m_func.computeObjectiveValue(results, staticState);\r\n return this.m_default;\r\n }",
"abstract void calculate(double a);",
"protected final double fa(double x, double ac, double ae) {return ac*Math.pow(x, ae)/K;}",
"@Override\n\tpublic void calculating() {\n\t\tresult=leftVal-rightVal;\n\t\t\n\t}",
"public void e(double num1, double num2) {\r\n\t\t\r\n\t\tdouble operar;\r\n\t\t\r\n\t\tfor(int i=0; i<num1; i++) {\r\n\t\t\t\r\n\t\t\toperar=1/factorial(i);\r\n\t\t\tCalcularEValue+=operar;\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}",
"List<BigDecimal> computeSol();",
"public void figure() {\r\n Currency nAdv = Currency.Zero;\r\n Currency nLow = Currency.NegativeOne;\r\n Currency nHigh = Currency.Zero;\r\n Currency nTotal = Currency.Zero;\r\n \r\n for(int i = 0; i < dayArray.size(); i++) {\r\n DayG dayG = (DayG) dayArray.get(i);\r\n Currency gross = dayG.getGross();\r\n \r\n nAdv = nAdv.add(gross);\r\n nTotal = nTotal.add(gross);\r\n if(nLow == Currency.NegativeOne || gross.lt(nLow)) {\r\n lowD = dayG;\r\n nLow = gross;\r\n }\r\n if(nHigh.lt(gross)) {\r\n highD = dayG;\r\n nHigh = gross;\r\n }\r\n }\r\n \r\n adverage = nAdv.divide(dayArray.size()).round();\r\n low = nLow.round();\r\n high = nHigh.round();\r\n \r\n //no need to round total, right?\r\n total = nTotal;\r\n }",
"private double getValMorp ( cell c, morphogen m) {\t\t\r\n\t\tif ( m.equals(morphogen.a))\r\n\t\t\treturn c.getVal1();\r\n\t\telse\r\n\t\t\treturn c.getVal2();\r\n\t}",
"public double sum() {\n/* 196 */ return this.mean * this.count;\n/* */ }"
] |
[
"0.6924631",
"0.65708435",
"0.65693635",
"0.6541848",
"0.6406094",
"0.6406094",
"0.6406094",
"0.6376421",
"0.6326674",
"0.62771416",
"0.62075275",
"0.61338437",
"0.6131677",
"0.6077435",
"0.6068774",
"0.6065256",
"0.6046748",
"0.60379",
"0.60311145",
"0.60028917",
"0.59503937",
"0.59496963",
"0.59274125",
"0.59187406",
"0.5915061",
"0.59126",
"0.5908872",
"0.5892233",
"0.58915013",
"0.588287",
"0.5866004",
"0.5863359",
"0.5862657",
"0.58564055",
"0.58563423",
"0.5850508",
"0.58348244",
"0.5834271",
"0.58131903",
"0.5808265",
"0.579056",
"0.5790523",
"0.5787454",
"0.5786627",
"0.5775285",
"0.5775285",
"0.5775285",
"0.5772073",
"0.5771356",
"0.57652205",
"0.5759082",
"0.57584846",
"0.5756952",
"0.57561743",
"0.57531667",
"0.57482415",
"0.5743701",
"0.5720245",
"0.57165164",
"0.5713328",
"0.57014453",
"0.5694862",
"0.56854945",
"0.5682993",
"0.56793636",
"0.56723493",
"0.56718445",
"0.56688684",
"0.56680715",
"0.5667485",
"0.56672466",
"0.5666111",
"0.5663395",
"0.5660397",
"0.5660397",
"0.5645832",
"0.5645587",
"0.5642334",
"0.5640528",
"0.56396985",
"0.56386644",
"0.5630512",
"0.5629522",
"0.56277144",
"0.5626668",
"0.5626021",
"0.5613692",
"0.56133616",
"0.56119984",
"0.5604664",
"0.5603092",
"0.5600401",
"0.5594312",
"0.5591156",
"0.55891836",
"0.5588716",
"0.5587302",
"0.55852014",
"0.55847746",
"0.5581694",
"0.55805755"
] |
0.0
|
-1
|
compute the transition for an simple state in the dimer (polymorphic tile)
|
public static void main3(String[] args)
{
String designString = "design23e";
double rate = 1.0;
Design design = new Design(designString, rate, "distance-M1", true, "");
State state = Util.generateInitialState(design);
RatesGenerator ratesGenerator = new RatesGenerator(design);
state.addFullStaple(4 * 16);
state.update(55, true);
// by default the rates are printed at temp_start.
ArrayList<Transition> rates = ratesGenerator.rates(state);
System.out.println("Number of transitions is " + rates.size());
System.out.println("state is " + state);
Util.print(rates);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract Etat transition();",
"protected abstract int newState();",
"public abstract State getStateAtTime(double t);",
"void nextState();",
"public State getState(Action action) { \n\t\tState newstate = new State(getTractor(), getK(), getMax(), getRows(), getColumns());\n\t\tfor (int i = 0; i < getRows(); i++) {\n\t\t\tfor (int j = 0; j < getColumns(); j++) {\n\t\t\t\tnewstate.cells[i][j] = new Square(i, j, cells[i][j].getSand()); \n\t\t\t}\n\t\t} \n\t\tnewstate.getSquare(newstate.getTractor()).setSand(newstate.getSquare(newstate.getTractor()).getSand()-action.distributedAmount());\n\t\tnewstate.tractor=(Square) action.getMovement();\n\t\tSquare[] adjacents = action.getAdjacents();\n\t\tint[] values = action.getValues();\n\n\t\tfor (int i = 0; i < adjacents.length; i++) {\n\t\t\tnewstate.getSquare(adjacents[i]).setSand(newstate.getSquare(adjacents[i]).getSand()+values[i]);\n\t\t}\n\t\treturn newstate;\n\t}",
"private void nextState() {\n int x;\n int y;\n y = st3;\n x = (st0 & MASK) ^ st1 ^ st2;\n x ^= (x << SH0);\n y ^= (y >>> SH0) ^ x;\n st0 = st1;\n st1 = st2;\n st2 = x ^ (y << SH1);\n st3 = y;\n st1 ^= parameter.getMat1(y);\n st2 ^= parameter.getMat2(y);\n }",
"public int getStateOfMovement(){ return stateOfMovement; }",
"TransitionType createTransitionType();",
"Transition createTransition();",
"Transition createTransition();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"int getState();",
"public boolean isTransition() {\n/* 4839 */ return this.isTransition;\n/* */ }",
"@Override\n\t\tprotected void doTransition() {\n\t\t\t\n\t\t}",
"Object getState();",
"long getStateChange();",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"public void changeState(int transition) {\n lastState = currentState;\n currentState = nextState[currentState][transition];\n // System.out.println(\" = \" + currentState);\n if (currentState == -2) {\n System.out.println(\"Error [\" + currentState + \"] has occured\");\n terminate();\n }\n else if (currentState == -1) {\n terminate();\n }\n states[currentState].run();\n }",
"public boolean transition() {\n current = new State(ts++, hopper); \n if (terminus.isTerminus(current)) {\n return false;\n } else {\n hopper.sendBall(oneMinute);\n return true;\n }\n }",
"public void nextTile() {\n/* 779 */ this.e.nextTile();\n/* 780 */ this.k = getTileIdx();\n/* */ \n/* */ \n/* 783 */ String str = (String)this.f.f(this.k);\n/* 784 */ if (str.equals(\"none\")) {\n/* 785 */ this.h = 0;\n/* */ }\n/* 787 */ else if (str.equals(\"rct\")) {\n/* 788 */ this.h = 1;\n/* 789 */ c();\n/* */ }\n/* 791 */ else if (str.equals(\"ict\")) {\n/* 792 */ this.h = 2;\n/* 793 */ d();\n/* */ } else {\n/* */ \n/* 796 */ throw new IllegalArgumentException(\"Component transformation not recognized\");\n/* */ } \n/* */ }",
"public abstract MoveTransition makeMove(Move move);",
"@Test\n public void genStateTransferMetric() {\n TreeMap<String, Integer> stat = new TreeMap<>();\n int currState = 8;\n for (int i = 1; i < numSteps; i++) {\n int nextStates = getNextState(currState);\n stat.compute(currState + \"-\" + nextStates, (k, v) -> v == null ? 1 : v + 1);\n currState = nextStates;\n }\n stat.forEach((k, v) -> System.out.printf(\"%s:%f\\n\", k.replace('-', ':'), (double) v / numSteps));\n }",
"void mo15871a(StateT statet);",
"public interface PuzzleState {\r\n\t/**\r\n\t * The puzzle allows for four moves whose names are fixed with an enum type\r\n\t * Operation. Note that MOVERIGHT means that a tile moves to the right and the\r\n\t * slot to its right need to be empty for this to be possible.\r\n\t */\r\n\tpublic enum Operation {\r\n\t\tMOVERIGHT, MOVELEFT, MOVEUP, MOVEDOWN\r\n\t};\r\n\r\n\t/**\r\n\t * Sets or resets PuzzleState object to the initial (final) state of a game with\r\n\t * the given dimension and number of empty slots. The initial state is the same\r\n\t * as the final state. All tiles are ordered from top-left to bottom-right,\r\n\t * empty slots are at the bottom-right. Parent and operation are set to null.\r\n\t * \r\n\t * @param dimension\r\n\t * is the number of tiles per row (or column)\r\n\t * @param numberOfEmptySlots\r\n\t * is a number between 1 and 3\r\n\t */\r\n\tpublic void setToInitialState(int dimension, int numberOfEmptySlots);\r\n\r\n\t/**\r\n\t * Get the value of the tile at the given row and column position. An empty slot\r\n\t * is represented as 0. The row, column index starts at 0. The top-left position\r\n\t * is (0,0).\r\n\t * \r\n\t * @param row\r\n\t * is the row index, range 0,1,..., dimension-1\r\n\t * @param column\r\n\t * is the column index, range 0,1,..., dimension-1\r\n\t * @return value for the tile at the given position, range 0,1,...,dimension^2-1\r\n\t */\r\n\tpublic int getValue(int row, int column);\r\n\r\n\t/**\r\n\t * Get the parent state which is the state from which the current state was\r\n\t * reached. The parent state is useful if one wants to represent that a puzzle\r\n\t * state A moves to puzzle state B with a particular move operation. For this\r\n\t * example B.getParent() returns A. Obtaining A is useful to navigate back on a\r\n\t * path from a current state to a initial state where all tiles are sorted. The\r\n\t * initial state does not have a parent.\r\n\t * \r\n\t * @return a previously stored parent state or null if the state is the initial\r\n\t * state.\r\n\t */\r\n\tpublic PuzzleState getParent();\r\n\r\n\t/**\r\n\t * Retrieves the operation by which this state is reached. The operation is set\r\n\t * when applying move or drag operations. The initial state has no operation.\r\n\t * \r\n\t * @return previously stored Operation or null if there is none.\r\n\t */\r\n\tpublic Operation getOperation();\r\n\r\n\t/**\r\n\t * Get length of the path from initial state to the current state. A path is a\r\n\t * sequence of states that result from a series of move operations that are\r\n\t * sequentially applied to the initial state to get to the current state. The\r\n\t * initial state has a path length of 0, states that are reached with one move\r\n\t * have path length of one and so forth. A drag operation is a GUI short cut and\r\n\t * is internally represented with an equivalent sequence of move operations.\r\n\t * Note that any move operation increases the path length even if the player\r\n\t * gets closer to the solution. So the path length is not the distance between\r\n\t * initial state and current state but the number of puzzle states that are\r\n\t * linked together in a sequence with the getParent() function.\r\n\t * \r\n\t * @return the number of move operations from initial state to this state, the\r\n\t * returned value is greater or equal 0\r\n\t */\r\n\tpublic int getPathLength();\r\n\r\n\t/**\r\n\t * Checks if it is possible to move a tile from the given position in the given\r\n\t * direction. If it is, the method returns a new instance of PuzzleState where\r\n\t * the parent state is set to this object, i.e. the current state before the\r\n\t * move, the operation is set to op and the state is set to the state that\r\n\t * results from the move operation. The operation also sets length of the path\r\n\t * from the initial state to the new state. Note that this length only increases\r\n\t * with move operations regardless of the distance to the initial state. If the\r\n\t * move is not possible, the method returns null.\r\n\t * \r\n\t * @param row\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param column\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param op\r\n\t * gives an operation such as move left or move up.\r\n\t * @return new PuzzleState for legal move. For illegal move operation it returns\r\n\t * null.\r\n\t */\r\n\tpublic PuzzleState move(int row, int column, Operation op);\r\n\r\n\t/**\r\n\t * A drag is a short cut for a possible series of move operations. In the GUI,\r\n\t * it results from a drag operations across multiple empty slots. Check if it is\r\n\t * possible to move a tile from the start position to the end position. If start\r\n\t * and end are not adjacent, there must be empty positions in between to make a\r\n\t * sequence of moves possible from start to end. If this is possible, the method\r\n\t * returns a new instance of PuzzleState where the state is set to the state\r\n\t * that results from the sequence of move operations. A number of intermediate\r\n\t * PuzzleStates is created as needed to represent the sequence of move\r\n\t * operations such that one can work backwards from the resulting state towards\r\n\t * the starting state with the getParent() operation. If the move is not\r\n\t * possible, the method returns null. Starting position has coordinates\r\n\t * (startRow,startColumn). Ending position has coordinates (endRow,endColumn).\r\n\t * \r\n\t * @param startRow\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param startColumn\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param endRow\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param endColumn\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @return new PuzzleState for legal sequence of moves, otherwise null.\r\n\t */\r\n\tpublic PuzzleState drag(int startRow, int startColumn, int endRow, int endColumn);\r\n\r\n\t/**\r\n\t * Creates a random path from this state to the newly generated returned state\r\n\t * that has the given length. The states are connected with a number of\r\n\t * intermediate PuzzleStates to represent the path such that one can reverse\r\n\t * from the resulting state backwards to the initial state in a step-by-step\r\n\t * manner with the help of the getParent() method. For state on the sequence,\r\n\t * the getPathLength() method gives the number of steps away from the initial\r\n\t * state. A path that contains cycles should be avoided as this is boring for\r\n\t * the game. The path is generated with the help of a random number generator to\r\n\t * make it irregular and non-deterministic.\r\n\t * \r\n\t * @param pathLength\r\n\t * is a value greater or equal 0, denotes the number of steps from\r\n\t * this state to the returned state\r\n\t * @return state that is reachable with the given number of moves\r\n\t */\r\n\tpublic PuzzleState shuffleBoard(int pathLength);\r\n\r\n\t/**\r\n\t * Tells if the current state has an empty slot at the given position with\r\n\t * coordinates (row, column).\r\n\t * \r\n\t * @param row\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @param column\r\n\t * is an index in the range 0,1,..., dimension-1\r\n\t * @return true if this is an empty slot, false otherwise\r\n\t */\r\n\tpublic boolean isEmpty(int row, int column);\r\n\r\n\t/**\r\n\t * Provides a puzzle state with same settings of tiles as the current state but\r\n\t * where the sequence of parent states is not representing the history how the\r\n\t * game got to the current state but the shortest possible sequence to the\r\n\t * solution (initial) state. The returned puzzle state can be operated just as\r\n\t * any puzzle state and its getParent() method leads to the initial state.\r\n\t * \r\n\t * @return new state object that can substitute the current state and has\r\n\t * shortest possible path to solution (initial) state.\r\n\t */\r\n\tpublic PuzzleState getStateWithShortestPath();\r\n}",
"@Override\n\tpublic void determineNextState(Cell cell)\n\t{\n\t\tMap<String, Cell> neighbors = cell.getNeighborsWrap();\n\t\tif (!cell.nextStateFinalized()) {\n\t\t\tList<Cell> emptyNeighbors = getEligibleNeighborsOfState(neighbors, EMPTY);\n\t\t\tif (cell.getState() == FISH) {\n\t\t\t\tupdateGenericSpeciesTraits(cell);\n\t\t\t\tif (emptyNeighbors.size() != 0) {\n\t\t\t\t\tif (readyToReproduce(cell)) {\n\t\t\t\t\t\treproduce(cell, emptyNeighbors);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmove(cell, emptyNeighbors);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (cell.getState() == SHARK) {\n\t\t\t\tupdateGenericSpeciesTraits(cell);\n\t\t\t\tincrementStarveTime(cell);\n\t\t\t\tList<Cell> fishNeighbors = new ArrayList<Cell>();\n\t\t\t\tfishNeighbors = getEligibleNeighborsOfState(neighbors, FISH);\n\t\t\t\tif (readyToStarve(cell)) {\n\t\t\t\t\tkill(cell);\n\t\t\t\t} else if (fishNeighbors.size() != 0) {\n\t\t\t\t\teat(fishNeighbors, cell);\n\t\t\t\t} else if (emptyNeighbors.size() != 0) {\n\t\t\t\t\tif (readyToReproduce(cell)) {\n\t\t\t\t\t\treproduce(cell, emptyNeighbors);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tCell movedTo = move(cell, emptyNeighbors);\n\t\t\t\t\t\tincrementStarveTime(movedTo);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private TileState getStateOf(long pos) {\r\n\t\tif ((pos & darkTiles) != 0L) {\r\n return TileState.DARK;\r\n } else if ((pos & lightTiles) != 0L) {\r\n return TileState.LIGHT;\r\n } else {\r\n return TileState.EMPTY;\r\n }\r\n\t}",
"int getStateValue2();",
"public interface AbstractState {\r\n abstract void toNextState(ChessBoard chessBoard,AbstractState state);\r\n}",
"public static int activityStateToWorkItemState( int newState )\r\n {\r\n // The states actually have the same ordinals.\r\n return newState;\r\n }",
"PowerState getState();",
"public int getState();",
"public int getState();",
"public int getState();",
"public int getState();",
"int getStateValue();",
"int getStateValue();",
"int getStateValue();",
"public native final Transition transition()/*-{\n\t\treturn this.transition();\n\t}-*/;",
"void transit();",
"public void transitionStates () {\n myCurrentState = myNextState;\n myNextState = null;\n }",
"public double getTransition(){\n\t\treturn transition;\n\t}",
"@Override\n protected void incrementStates() {\n\n }",
"public IFsm transitionTo(Class<? extends IState> p_newState) throws Exception;",
"public void updateState() {\n\n // After each frame, the unit has a slight morale recovery, but only up to the full base morale.\n morale = Math.min(morale + GameplayConstants.MORALE_RECOVERY, GameplayConstants.BASE_MORALE);\n\n if (morale < GameplayConstants.PANIC_MORALE) {\n state = UnitState.ROUTING;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.switchState(SingleState.ROUTING);\n }\n } else if (state == UnitState.ROUTING && morale > GameplayConstants.RECOVER_MORALE) {\n this.repositionTo(averageX, averageY, goalAngle);\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.switchState(SingleState.MOVING);\n }\n }\n\n // Update the state of each single and the average position\n double sumX = 0;\n double sumY = 0;\n double sumZ = 0;\n int count = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.updateState();\n sumX += single.getX();\n sumY += single.getY();\n sumZ += single.getZ();\n count += 1;\n }\n averageX = sumX / count;\n averageY = sumY / count;\n averageZ = sumZ / count;\n\n // Updating soundSink\n soundSink.setX(averageX);\n soundSink.setY(averageY);\n soundSink.setZ(averageZ);\n\n // Update the bounding box.\n updateBoundingBox();\n\n // Update stamina\n updateStamina();\n }",
"@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}",
"@Override public double stateTransitionWeight(int state1, int state2) {\n return 1 / (1 + benchmark.distance(state1, state2));\n }",
"public void getState();",
"public int getStateSwitchPosition();",
"public interface ScramState {\r\n\t/** Return the Node corresponding to McDiver's location in the graph. */\r\n\tNode currentNode();\r\n\r\n\t/** Return the Node associated with the exit from the sewer system.<br>\r\n\t * McDiver has to move to this Node in order to get out. */\r\n\tNode exit();\r\n\r\n\t/** Return a collection containing all the nodes in the graph.<br>\r\n\t * They are in no particular order. */\r\n\tCollection<Node> allNodes();\r\n\r\n\t/** Change McDiver's location to n.<br>\r\n\t * Throw an IllegalArgumentException if n is not directly connected to<br>\r\n\t * McDiver's location. */\r\n\tvoid moveTo(Node n);\r\n\r\n\t/** Return the steps remaining to get out of the sewer system.<br>\r\n\t * This value will change with every call to moveTo(Node),<br>\r\n\t * and if it reaches 0 before you get out, you have failed to get out. */\r\n\tint stepsToGo();\r\n}",
"public StateTransition getStateTransition() {\n\t\treturn (sb);\n\t}",
"public void setStateOfMovement(int movementState){stateOfMovement = movementState; }",
"int getStateValue1();",
"public interface MonsterStateTransitions {\n //state transitions\n void toVulnerableState();\n void toProtectedState();\n\n //actions\n void init();\n\n}",
"@Override\n public State doMove(State otherState) {\n\tWaterJugState state = (WaterJugState) otherState;\n \n if(this.getMoveName().equals(\"Fill Jug X\")){\n //if water jug X has room to add to \n if(state.getJugX() < 3){\n nextState = new WaterJugState(3, state.getJugY());\n } //else water jug x is full =3\n else {\n nextState = null;\n }\n }\n else if(this.getMoveName().equals(\"Fill Jug Y\")){\n if(state.getJugY()<4){\n nextState = new WaterJugState(state.getJugX(),4);\n }\n else{\n nextState=null;\n }\n }\n else if(this.getMoveName().equals(\"Empty Jug X\")){\n if(state.getJugX()>0){\n nextState = new WaterJugState(0,state.getJugY());\n }\n else{\n nextState=null;\n }\n }\n else if(this.getMoveName().equals(\"Empty Jug Y\")){\n if(state.getJugY()>0){\n nextState = new WaterJugState(state.getJugX(),0); \n }\n else{\n nextState= null;\n }\n }\n else if(this.getMoveName().equals(\"Transfer Jug X to Jug Y\")){\n if(state.getJugX()>0 && state.getJugY()<4){\n int Ycount=state.getJugY();\n int Xcount=state.getJugX();\n int total=Ycount+Xcount;\n if(total<=4){\n nextState = new WaterJugState(0,state.getJugX()+state.getJugY()); \n }\n else if(total>4){\n nextState= new WaterJugState((state.getJugX()+state.getJugY()-4),(state.getJugX()+state.getJugY())-(state.getJugX()+state.getJugY()-4)); \n }\n }\n else{\n nextState= null;\n }\n }\n else if(this.getMoveName().equals(\"Transfer Jug Y to Jug X\")){\n if(state.getJugY()>0 && state.getJugX()<3){\n int Ycount=state.getJugY();\n int Xcount=state.getJugX();\n int total=Ycount+Xcount;\n if(total<=3){\n nextState = new WaterJugState(state.getJugX()+state.getJugY(),0); \n }\n else if(total>3){\n nextState= new WaterJugState((state.getJugX()+state.getJugY())-(state.getJugX()+state.getJugY()-3),(state.getJugX()+state.getJugY()-3)); \n }\n }\n else{\n nextState= null;\n } \n }\n \n return nextState; \n }",
"State getTarget();",
"public abstract ExplicitMachineState convertToExplicitMachineState(MachineState state);",
"@Override\n\tpublic void \t\t\t\t\t\tuserDefinedInternalTransition (\n\t\t\t\t\t\t\t\tDuration elapsedTime)\n\t{\n\t\tDuration d1 = new Duration (\n\t\t\t\tthis.interDayDelay , \n\t\t\t\tthis.getSimulatedTimeUnit()\n\t\t\t) ; \n\t\t\n\t\tassert d1 != null ;\n\t\t\n\t\tTime t = this.getCurrentStateTime().add(d1) ; \n\t\tdouble dur = 2.0 * this.meanRunDuration * this.rg.nextBeta(1.75, 1.75) ; \n\t\tdouble temp = 2.0 * this.meanTemperature * this.rg.nextBeta(1.75, 1.75) ; \n\t\t// impossible to set temperature more than MAX_TEMPERATURE\n\t\ttemp = (temp > OvenModel.MAX_TEMPERATURE)?OvenModel.MAX_TEMPERATURE:temp ;\n\t\tthis.scheduleEvent(new RunOven(t, dur , temp));\n\t}",
"public double transition(RouteState state, RouteAction action, RouteState state0) {\r\n\t\tdouble probability = 0.0;\r\n\t\t\r\n\t\tif (state.getFromCity()==state.getToCity() || //\r\n\t\t\t\tstate.getFromCity()==state0.getFromCity() ||\r\n\t\t\t\tstate0.getFromCity()==action.getNeighborCity() || //-\r\n\t\t\t\tstate0.getToCity()!=action.getNeighborCity()|| //-\r\n\t\t\t\tstate0.getFromCity()==state0.getToCity() || //\r\n\t\t\t\tstate.getToCity() != state0.getFromCity()) {\r\n\t\t\t\tprobability = 0.0;\r\n\t\t} else {\r\n\t\t\tif (state0.hasTask()) {\r\n\t\t\t\tprobability = td.probability(state0.getFromCity(), state0.getToCity()); // delivery\r\n\t\t\t} else {\r\n\t\t\t\tprobability = 1.0/topology.cities().size();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn probability;\r\n\t}",
"StateT getState();",
"public abstract MachineState getInitialState();",
"int getStateValue3();",
"GameState requestActionTile();",
"void transit(Map<T, Integer> state) {\n for (Entry<T, Integer> x : input.entrySet())\n put(state, x.getKey(), get(state, x.getKey()) - x.getValue());\n for (T x : reset)\n put(state, x, 0);\n for (Entry<T, Integer> x : output.entrySet())\n put(state, x.getKey(), get(state, x.getKey()) + x.getValue());\n }",
"public NewTransitionRecord(){\r\n fromstate = 0;\r\n tostate = 0;\r\n rate = 0.0;\r\n }",
"public void compileStates(int timeinterval) {\r\n\t\tif(timeinterval == -1) {\r\n\t\t\t//Add initial State\r\n\t\t\treachableStates.add(initialState);\r\n\t\t\tthis.numReachableState = 1;\r\n\t\t\t\r\n\t\t}else{\t\t\t\t\r\n\t\tState s;\r\n\t\tint index = 0;\r\n\t\treachableStates.clear();\r\n\t\tfor(int i = 0; i < totalWorkloadLevel; i++) {\r\n\t\t\tfor(int j = 0; j < totalGreenEnergyLevel; j++) {\r\n\t\t\t\tfor(int k = 0; k < totalBatteryLevel; k++) {\r\n\t\t\t\t\ts = grid[timeinterval][i][j][k];\r\n\t\t\t\t\tif(s.getProbability() != 0) {\r\n\t\t\t\t\t\t//If probability of state is not 0, put this state into the reachable list. \r\n\t\t\t\t\t\ts.index = index;\r\n\t\t\t\t\t\tindex++;\r\n\t\t\t\t\t\treachableStates.add(s);\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\tthis.numReachableState = index;\r\n\t\t}\r\n\t}",
"String convertTransition(Transition instanceValue);",
"ESMFState getState();",
"public int getState() {return state;}",
"public int getState() {return state;}",
"@Test\n public void stateTransitionsTest() throws ApiException {\n Long loanId = null;\n PostSelfLoansLoanIdRequest body = null;\n String command = null;\n PostSelfLoansLoanIdResponse response = api.stateTransitions(loanId, body, command);\n\n // TODO: test validations\n }",
"private void performTransition() {\r\n\t\t// Do something only if the time has been reached\r\n\t\tif (transitionTime <= System.currentTimeMillis()) {\r\n\t\t\t// Clear the transition time\r\n\t\t\ttransitionTime = Long.MAX_VALUE;\r\n\r\n\t\t\t// If there are no lives left, the game is over. Show the final\r\n\t\t\t// screen.\r\n\t\t\tif (lives <= 0) {\r\n\t\t\t\t// Updates the highScore\r\n\t\t\t\tif (numScore > highScore) {\r\n\t\t\t\t\thighScore = numScore;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Updates the HighScore label in enhanced mode\r\n\t\t\t\tif (enhanced == true) {\r\n\t\t\t\t\tdisplay.setHighScore(highScore);\r\n\t\t\t\t}\r\n\t\t\t\t// Brings up the final screen\r\n\t\t\t\tfinalScreen();\r\n\t\t\t\t// JOptionPane.showMessageDialog(null, numLiveUpdated);\r\n\t\t\t}\r\n\r\n\t\t\t// If the ship was destroyed, place a new one and continue\r\n\t\t\telse if (ship == null) {\r\n\t\t\t\tplaceShip();\r\n\t\t\t}\r\n\t\t\tif (pstate.countAsteroids() == 0) {\r\n\r\n\t\t\t\t// increase the level and speed markers\r\n\t\t\t\tnumLevel += 1;\r\n\t\t\t\tspeed += 0.5;\r\n\r\n\t\t\t\t// Update the level display\r\n\t\t\t\tdisplay.setLevel(numLevel);\r\n\t\t\t\tParticipant.expire(alien);\r\n\t\t\t\tplaceAsteroids();\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Place a new alien when one has been destroyed\r\n\t\t\tif (pstate.countAliens() == 0 && ship != null) {\r\n\t\t\t\tif (numLevel == 2) {\r\n\t\t\t\t\tplaceAlien(1);\r\n\r\n\t\t\t\t} else if (numLevel >= 3) {\r\n\t\t\t\t\tplaceAlien(0);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tclipAlienDestroyed.stop();\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"private void changeState() {\n if (jobs.contains(this.currentFloor)){\n throw new AssertionError(\"Changing state of elevator no \" + ElevatorID + \" on destination floor\");\n }\n\n // empty job set -> going to IDLE state\n if (jobs.size() == 0) {\n this.currentState = IDLE;\n return;\n }\n\n Integer closestFloorDownwards = jobs.floor(this.currentFloor);\n Integer closestFloorUpwards = jobs.ceiling(this.currentFloor);\n\n switch (this.currentState) {\n // if elevator is in idle state then we need to go to the closest job possible\n case IDLE -> {\n Integer closestFloor =\n findClosestFloor(this.currentFloor, closestFloorUpwards, closestFloorDownwards);\n\n if (closestFloor < this.currentFloor) {\n this.currentState = DOWN;\n } else {\n this.currentState = UP;\n }\n }\n case DOWN -> {\n if (closestFloorDownwards != null) { // if there exists a predecessor in `jobs`\n this.currentState = DOWN; // let's continue going down\n } else {\n this.currentState = UP; // otherwise we need to go up\n }\n }\n case UP -> {\n if (closestFloorUpwards != null) { // if there exists a successor in `jobs`\n this.currentState = UP; // let's continue going up\n } else {\n this.currentState = DOWN; // otherwise we need to go down\n }\n }\n }\n }",
"java.lang.String getState();",
"public States transition(Alphabet sym) {\n return transitions.get(new Pair<>(currentState, sym));\n }",
"@Override\n\tpublic State doAction(State state) {\n\t\tPoint oldPoint = state.findCell(Keys.MOUSE);\n\t\tPoint newPoint = new Point(oldPoint.x+this.x,oldPoint.y+this.y);\n\t\tState newState = new State(state);\n\t\tnewState.setMode(Keys.IN_PROGRESS);\n\t\tif (newState.cellExists(newPoint.x, newPoint.y) && newState.getCell(newPoint.x, newPoint.y) != -1 && newState.getCell(newPoint.x, newPoint.y) != Keys.WALL) {\n\t\t\tnewState.setCell(oldPoint.x,oldPoint.y , Keys.EMPTY);\n\t\t\t\n\t\t\tif(this.x == 0 ^ this.y == 0)\n\t\t\t\tnewState.setScore(state.getScore()+10);\n\t\t\t\n\t\t\telse if(this.x != 0 && this.y != 0){\n\t\t\t\tnewState.setScore(state.getScore()+15);\n\t\t\t}\n\t\t\t\n\t\t\tif(newPoint.equals(state.findCell(Keys.CHEESE))) {\n\t\t\t\tnewState.setCell(newPoint.x, newPoint.y, Keys.MOUSE_AND_CHEESE);\n\t\t\t} else\n\t\t\t\tnewState.setCell(newPoint.x, newPoint.y, Keys.MOUSE);\n\t\t\t\n\t\t}\n\t\treturn newState;\n\t}",
"Transition createTransition(String literal);",
"private void updateTileState(int tileState, Tile tile) {\r\n CharSequence name = \"LTE\";\r\n switch (tileState){\r\n case Tile.STATE_ACTIVE:\r\n name = name + \" on\";\r\n break;\r\n case Tile.STATE_INACTIVE:\r\n name = name + \" off\";\r\n break;\r\n }\r\n\r\n Icon icon = Icon.createWithResource(getApplicationContext(), R.drawable.lte_text);\r\n tile.setIcon(icon);\r\n tile.setLabel(name);\r\n tile.setState(tileState);\r\n tile.updateTile();\r\n }",
"public S getRandomState();",
"private static int runStateOf(int c) { return c & ~CAPACITY; }",
"public static LocNode intialState() {\n\n\t \n\t char[][] newMatrix =copyMatrix(matrix);\n\t \n\t \n\n\t \n\twhile(true) {\n\t\t\t\n\t\t\t\n\t\tint i=getRandomIndex(size);\n\t\tint j=getRandomIndex(size);\n\t\t\n\t if(newMatrix[i][j]=='-') {\n\t \t\n\t \n\t \t newMatrix[i][j]='c' ;\n\t \t \n\t \t \n\t \t updateVisibility(i, j, newMatrix);\n\t \t \n\t \t\n\t \t LocNode intialState= new LocNode(newMatrix, calculateOpjectiveFunction(newMatrix));\n\t \t \n\t \t\n\t \t return intialState;\n\t }\n\t \n\t }\n }",
"public State getState();",
"public State getState();",
"@Override\n\tpublic Map<Integer, Action> initialStep(StateView newstate,\n\t\t\tHistoryView statehistory) {\n\t\tMap<Integer, Action> actions = new HashMap<Integer, Action>();\n\t\t\n\t\t// This is a list of all of your units\n\t\t// Refer to the resource agent example for ways of\n\t\t// differentiating between different unit types based on\n\t\t// the list of IDs\n\t\tList<Integer> myUnitIDs = newstate.getUnitIds(playernum);\n\t\t\n\t\t// This is a list of enemy units\n\t\tList<Integer> enemyUnitIDs = newstate.getUnitIds(enemyPlayerNum);\n\t\t\n\t\tif(enemyUnitIDs.size() == 0)\n\t\t{\n\t\t\t// Nothing to do because there is no one left to attack\n\t\t\treturn actions;\n\t\t}\n\n\t\t//This block of text sends all units to the corner, with the ballistas being in the back row.\n\t\tactions.put(myUnitIDs.get(0), Action.createCompoundMove(myUnitIDs.get(0), 1, 16));\n\t\tactions.put(myUnitIDs.get(1), Action.createCompoundMove(myUnitIDs.get(1), 2, 17));\n\t\tactions.put(myUnitIDs.get(2), Action.createCompoundMove(myUnitIDs.get(2), 17, 8));\n\t\tactions.put(myUnitIDs.get(3), Action.createCompoundMove(myUnitIDs.get(3), 0, 16));\n\t\tactions.put(myUnitIDs.get(4), Action.createCompoundMove(myUnitIDs.get(4), 2, 18));\n\t\tactions.put(myUnitIDs.get(5), Action.createCompoundMove(myUnitIDs.get(5), 0, 17));\n\t\tactions.put(myUnitIDs.get(6), Action.createCompoundMove(myUnitIDs.get(6), 1, 18));\n\n\t\treturn actions;\n\t}",
"public abstract State getSourceState ();",
"private void initTransitions() {\n s0.addTransition(htThr, s1, startStep);\n\n s1.addTransition(htPosPeekThr, s2, null);\n s1.addTransition(ltThr, s4, null);\n\n s2.addTransition(ltNegPeekThr, s3, null);\n\n s3.addTransition(htNegPeekThr, s5, null);\n\n s4.addTransition(ltThr, s0, null);\n s4.addTransition(htThr, s1, null);\n\n s5.addTransition(ltNegPeekThr, s3, null);\n s5.addTransition(htNegThr, s6, endStep);\n\n s6.addTransition(ltThr, s0, null);\n }",
"protected abstract int numStates();",
"@Override\r\n\tpublic void step(SimState state) {\r\n\r\n\t}",
"abstract public void updateState();",
"@Override public void setTime(UpodWorld w)\n{\n StateRepr sr = getState(w);\n sr.checkAgain(0);\n}",
"private static int evalState(GameState state){\n Move m = state.getMove();\n int counter = 0;\n\n // return directly if we encouter win or loss\n if(m.isXWin()){\n return 10000;\n }\n else if(m.isOWin()){\n return -1;\n }\n\n Vector<Integer> points = new Vector<Integer>();\n points.setSize(state.BOARD_SIZE*2+2);\n int player;\n Collections.fill(points, 1);\n int scaling = 4;\n int value = 0;\n\n for(int row = 0; row < state.BOARD_SIZE; row ++){\n for(int col = 0; col < state.BOARD_SIZE; col ++){\n player = state.at(row, col);\n\n // add points to the vector, increase by a factor for every new entry\n if(player == 1){\n points.set(row, points.get(row)*scaling);\n points.add(state.BOARD_SIZE + col, points.get(state.BOARD_SIZE - 1 + col)*scaling);\n\n // if it's in the first diagonal\n if(counter%state.BOARD_SIZE+1 == 0){\n points.add(state.BOARD_SIZE*2, points.get(state.BOARD_SIZE*2)*scaling);\n }\n\n // checking other diagonal\n if(counter%state.BOARD_SIZE-1 == 0 && row+col != 0){\n points.add(state.BOARD_SIZE*2 + 1, points.get(state.BOARD_SIZE*2)*scaling);\n }\n }\n // if an enemy player is encoutered null the value of the row/col\n else if(player == 2){\n points.set(row, 0);\n points.set(state.BOARD_SIZE + col, 0);\n if(counter%state.BOARD_SIZE+1 == 0){\n points.add(state.BOARD_SIZE*2, 0);\n }\n if(counter%state.BOARD_SIZE-1 == 0){\n points.add(state.BOARD_SIZE*2 + 1, 0);\n }\n }\n counter++;\n }\n }\n\n // if we have nulled the point we don't count it for the value of the state\n for(Integer i: points){\n if(i > 1){\n value += i;\n }\n }\n //System.err.println(\"Value: \" + value);\n return value;\n }",
"public void updateTransitionMap(){\n\t\tfor(String yWord:transition_map.keySet()){\n\t\t\tHashMap<String,DataUnit> stateTransitionMap=transition_map.get(yWord).state_transition;\n\t\t\t\n\t\t\t//count the total number of Nyo(y)\n\t\t\tint totalStateTransitionCount=0;\n\t\t\tfor(String nextY:stateTransitionMap.keySet()){\n\t\t\t\ttotalStateTransitionCount+=stateTransitionMap.get(nextY).count;\n\t\t\t}\n\t\t\t\n\t\t\tfor(String nextY:stateTransitionMap.keySet()){\n\t\t\t\tstateTransitionMap.get(nextY).prob=(stateTransitionMap.get(nextY).count*1.0)/totalStateTransitionCount;\n\t\t\t}\n\t\t\t\n\t\t\t//count the total number of Nyo(x,y)\n\t\t\tHashMap<String,DataUnit> terminalTransitionMap=transition_map.get(yWord).terminal_transition;\n\t\t\t\n\t\t\tint totalTerminalTransitionCount=0;\n\t\t\tint typeCount=0;\n\t\t\tfor(String xWord:terminalTransitionMap.keySet()){\n\t\t\t\ttotalTerminalTransitionCount+=terminalTransitionMap.get(xWord).count;\n\t\t\t\ttypeCount++;\n\t\t\t}\n\t\t\ttypeCount++;\n\t\t\tfor(String xWord:terminalTransitionMap.keySet()){\n\t\t\t\tterminalTransitionMap.get(xWord).prob=(terminalTransitionMap.get(xWord).count+1.0)/(totalTerminalTransitionCount+typeCount);\n\t\t\t}\n\t\t\t\n\t\t\tterminalTransitionMap.put(unknown_word,new DataUnit(1,1.0/(totalTerminalTransitionCount+typeCount)));\n\t\t}\n\t}",
"public State state();",
"public State() {\n resetTransitions();\n id = next_id++;\n }",
"@Override\n public int getState() {\n return myState;\n }"
] |
[
"0.68517363",
"0.6085185",
"0.60441333",
"0.5995327",
"0.5993048",
"0.5936695",
"0.59364057",
"0.5932179",
"0.5916837",
"0.5916837",
"0.59090406",
"0.59090406",
"0.59090406",
"0.59090406",
"0.59090406",
"0.59090406",
"0.5904038",
"0.59014034",
"0.58965755",
"0.589257",
"0.58877385",
"0.58877385",
"0.58877385",
"0.58877385",
"0.5866967",
"0.5859848",
"0.5831139",
"0.5817048",
"0.58072",
"0.58061194",
"0.5802511",
"0.57667714",
"0.57643926",
"0.57586896",
"0.57417357",
"0.5723421",
"0.5693313",
"0.5683774",
"0.5683774",
"0.5683774",
"0.5683774",
"0.56770855",
"0.56770855",
"0.56770855",
"0.56694263",
"0.5666682",
"0.5662225",
"0.56604177",
"0.56567144",
"0.5651769",
"0.5647433",
"0.563945",
"0.56305856",
"0.5626941",
"0.5620258",
"0.56142586",
"0.56106436",
"0.5610629",
"0.5602796",
"0.5602727",
"0.56002486",
"0.5594851",
"0.5582504",
"0.55724764",
"0.5544644",
"0.55348796",
"0.5534542",
"0.5508549",
"0.55043703",
"0.5500693",
"0.5497239",
"0.5495478",
"0.5495088",
"0.54898584",
"0.54875886",
"0.54875886",
"0.5482611",
"0.54767126",
"0.5471015",
"0.5463095",
"0.5445818",
"0.5443508",
"0.543354",
"0.5429305",
"0.54237044",
"0.5420804",
"0.54045355",
"0.5400338",
"0.5400338",
"0.5399661",
"0.53949815",
"0.5388731",
"0.5388125",
"0.53765535",
"0.5371477",
"0.53673863",
"0.53655034",
"0.5356565",
"0.53559196",
"0.5341161",
"0.5323269"
] |
0.0
|
-1
|
/ / Metodos / Llama al evento de tipo get del formulario marca
|
public void doGet( )
{
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Evento getEvento() { \n\t\t Evento evento = new Evento();\n\t\t List<Prenda> Lprendas = new ArrayList<Prenda>();\n\t\t Sugerencia sug = new Sugerencia();\n\t Prenda prend = new Prenda();\n Categoria categoria = new Categoria();\n\n categoria.setCodCategoria(1);\n categoria.setDescripcion(\"Zapatillas\");\n TipoPrenda tp = new TipoPrenda();\n tp.setDescripcion(\"lalal\");\n tp.setCategoria(categoria);\n tp.setCodTipoPrenda(1);\n \n \n Guardarropa guard = new Guardarropa();\n guard.setCompartido(false);\n guard.setDescripcion(\"guardarropa\");\n guard.setId(0); \n prend.setGuardarropa(guard);\n prend.setColorPrimario(\"rojo\");\n prend.setTipoPrenda(tp);\n prend.setColorSecundario(\"azul\");\n prend.setDescripcion(\"prenda 1\");\n prend.setNumeroDeCapa(EnumCapa.Primera);\n \tfor( int i = 0 ; i <= 4; i++) {\n prend.setCodPrenda(i);\n\t\t\tLprendas.add(prend);\t\t\t\n\t\t}\n \tsug.setIdSugerencia(1);\n \tsug.setMaxCapaInferior(0);\n \tsug.setMaxCapaSuperior(2);\t\n \tsug.setUsuario(new Usuario());\n \tsug.setListaPrendasSugeridas(Lprendas);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n\n \t return evento;\n\t }",
"@Override\n\tpublic String getType() {\n\t\treturn Global.GET;\n\t}",
"EventType getEvent();",
"Reserva Obtener();",
"Event getEvent();",
"public void limpiarCamposFormBusqueda() {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"public String getAviaoSingle(HttpServletRequest req) {\n try {\r\n String idAviao = req.getParameter(\"id_aviao\");\r\n \r\n AviaoDAO dao = new AviaoDAO();\r\n return html.getFormAtualizarAviao(dao.visualizarAviao(Integer.parseInt(idAviao)));\r\n } catch (Exception ex) {\r\n return \"Exceção: \" + ex.getMessage();\r\n }\r\n }",
"public void eventoFiltrar() {\n if (index >= 0) {\n if (tipoLista == 0) {\n tipoLista = 1;\n }\n RequestContext context = RequestContext.getCurrentInstance();\n infoRegistro = \"Cantidad de registros : \" + filtrarListFormulasProcesos.size();\n context.update(\"form:informacionRegistro\");\n }\n }",
"public String getTipo(){\r\n return Tipo;\r\n }",
"protected RespostaFormularioPreenchido() {\n // for ORM\n }",
"Input getObjetivo();",
"public List<EntradaDeMaterial> buscarEntradasDisponibles();",
"@Listen(\"onChange = #txtNombreMostrarTematica,#txtAreaMostrarTematica,#txtDescripcionMostrarTematica\")\r\n\tpublic void filtrarDatosCatalogo() {\r\n\t\tList<Tematica> tematicas1 = servicioTematica.buscarActivos();\r\n\t\tList<Tematica> tematicas2 = new ArrayList<Tematica>();\r\n\r\n\t\tfor (Tematica tematica : tematicas1) {\r\n\t\t\tif (tematica\r\n\t\t\t\t\t.getNombre()\r\n\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t.contains(txtNombreMostrarTematica.getValue().toLowerCase())\r\n\t\t\t\t\t&& tematica\r\n\t\t\t\t\t\t\t.getDescripcion()\r\n\t\t\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\ttxtDescripcionMostrarTematica.getValue()\r\n\t\t\t\t\t\t\t\t\t\t\t.toLowerCase())) {\r\n\t\t\t\ttematicas2.add(tematica);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tltbTematica.setModel(new ListModelList<Tematica>(tematicas2));\r\n\r\n\t}",
"public void recibir_estado_partida(){\n\n }",
"@GlobalCommand\n @Command \n @NotifyChange( \"mascotas\")\n public void doSearch() \n {\n System.out.println();\n mascotas = new ListModelList<>();\n List<Mascota> allEvents;// = eventDao.findAll(); //Para mostrar todo\n\n if((filterChip == null || \"\".equals(filterChip)) && \n (filterNombre == null || \"\".equals(filterNombre)) &&\n (filterPropietario == null || \"\".equals(filterPropietario)) && \n (filterSexo == null || \"\".equals(filterSexo)) &&\n (filterFnacimiento == null || \"\".equals(filterFnacimiento)) && \n (filterFdefuncion == null || \"\".equals(filterFdefuncion)) && \n (filterPeso == null || \"\".equals(filterPeso)) &&\n (filterAltura == null || \"\".equals(filterAltura)) && \n (filterRaza == null || \"\".equals(filterRaza)) &&\n (filterEspecie == null || \"\".equals(filterEspecie)) && \n (filterPelo == null || \"\".equals(filterPelo)) &&\n (filterFechaalta == null || \"\".equals(filterFechaalta)) &&\n (filterFechabaja == null || \"\".equals(filterFechabaja)) ) {\n mascotas.addAll(eventDao.findAll()); //Para mostrar todo\n }\n else \n {\n allEvents = eventDao.findAll();\n for (Mascota masc : allEvents) {\n String peso = masc.getPeso() + \"\";\n String altura = masc.getAltura() + \"\";\n String propietario = masc.getCliente().getFullname();\n String raza = masc.getRaza().getRaza();\n String especie = masc.getEspecie().getEspecie();\n String fechabaja, fechadef;\n if(masc.getFechabaja() != null) {\n fechabaja = masc.getFechabaja().toString();\n }\n else {\n fechabaja = \"\";\n }\n if(masc.getDefuncion() != null) {\n fechadef = masc.getDefuncion().toString();\n }\n else {\n fechadef = \"\";\n }\n if ((masc.getChip().toLowerCase().startsWith(filterChip.toLowerCase()) ) &&\n (masc.getNombre().toLowerCase().startsWith(filterNombre.toLowerCase()) ) &&\n (masc.getSexo().toLowerCase().startsWith(filterSexo.toLowerCase()) ) &&\n (masc.getNacimiento().toString().toLowerCase().startsWith(filterFnacimiento.toLowerCase()) ) &&\n (fechadef.toLowerCase().startsWith(filterFdefuncion.toLowerCase()) ) &&\n (masc.getPelo().toLowerCase().startsWith(filterPelo.toLowerCase()) ) &&\n (masc.getFechaalta().toString().toLowerCase().startsWith(filterFechaalta.toLowerCase()) ) &&\n (fechabaja.toLowerCase().startsWith(filterFechabaja.toLowerCase()) ) &&\n (peso.toLowerCase().startsWith(filterPeso.toLowerCase()) ) &&\n (altura.toLowerCase().startsWith(filterAltura.toLowerCase()) ) &&\n (propietario.toLowerCase().startsWith(filterPropietario.toLowerCase()) ) &&\n (raza.toLowerCase().startsWith(filterRaza.toLowerCase()) ) &&\n (especie.toLowerCase().startsWith(filterEspecie.toLowerCase()) )\n ) {\n mascotas.add(masc);\n }\n } //for(Mascota masc : allEvents)\n }\n }",
"public java.lang.String getObservacion(){\n return localObservacion;\n }",
"@RequestMapping(value=\"/cadastrarUsuario\", method=RequestMethod.GET)\r\n\tpublic String form(){\r\n\t\tSystem.out.println(\">>>>>>>>>>>>>>>>>>>>>cadastrarUsuario<<<<<<<<<<<<<<<<<<<evento/formEvento\");\r\n\t\treturn \"usuario/formUsuario\";\r\n\t}",
"public String getTipo(){\r\n return tipo;\r\n }",
"@Override\r\n\tprotected String requestText() {\n\t\tConsultarIndiceEjecucionAnioRequest consultarIndiceEjecucionAnioRequest = new ConsultarIndiceEjecucionAnioRequest();\r\n\t\tconsultarIndiceEjecucionAnioRequest.setPeriodo(periodo);\r\n\t\tString request = JSONHelper.serializar(consultarIndiceEjecucionAnioRequest);\r\n\t\treturn request;\r\n\t}",
"@Override\n public Object getEvent() {\n return eventObj;\n }",
"@RequestMapping(method=RequestMethod.GET)\n\t@ModelAttribute(value=\"etiquetas\")\n\tpublic Collection<Etiqueta> mostrarTodas(Model model){\n\t\tmodel.addAttribute(\"seccion\", \"Etiquetas QR\");\n\t\tmodel.addAttribute(\"etiquetaForm\", new EtiquetaForm());\n\t\tmodel.addAttribute(\"paginas\", paginasServicio.recuperarPorTipo(TipoPagina.PERSONALIZABLE));\n\t\treturn etiquetasServicio.recuperarTodas();\n\t}",
"@Override\n\tprotected void entrada(WebRequestContext request, Ocorrencia form) throws Exception {\t\t\n\t\tif (!\"true\".equals(request.getParameter(\"reload\"))) {\n\t\t\tFiltroUtils.preencheFiltroPlanoGestaoUnidadeUsuario(form);\n\t\t}\n\t\t\n\t\t//Se for uma nova ocorrência será dada a opção de gerar uma anomalia.\n\t\tif(form.getId() == null){\n\t\t\trequest.setAttribute(\"opcaoCriarAnomalia\", true);\n\n\t\t\t//seta a data e o usuario que esta logado\n\t\t\tform.setDataLancamento(new Date(System.currentTimeMillis()));\n\t\t\tform.setRelator((Usuario)request.getUser());\t\t\t\n\t\t}\n\t\t//Senão será apenas editada.\n\t\telse {\n\t\t\trequest.setAttribute(\"opcaoCriarAnomalia\", false);\n\t\t\tif(!anomaliaService.fazParteAnomalia(form)){\n\t\t\t\trequest.setAttribute(\"opcaoCriarAnomalia\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (!usuarioService.isUsuarioLogadoAdmin()) {\n\t\t\t\trequest.setAttribute(\"editarSomenteSituacao\", Boolean.TRUE);\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t}",
"public int getTipoDocumento();",
"public CarroVO getFormCarro() {\n try {\n String placa = cadastroView.getTxtPlaca().getText().trim();\n String cor = (String) cadastroView.getCbCor().getSelectedItem();\n ModeloVO modelo = (ModeloVO) cadastroView.getCbModelo().getSelectedItem();\n MarcaVO marca = (MarcaVO) cadastroView.getCbMarca().getSelectedItem();\n modelo.setMarca(marca);\n return new CarroVO(placa, cor, modelo);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"@Override\r\n\tprotected String requestText() {\n\t\tGuardarVtaCeroMotivoRequest guardarVtaCeroMotivoRequest = new GuardarVtaCeroMotivoRequest();\r\n\t\tguardarVtaCeroMotivoRequest.setAnio(Anio);\r\n\t\tguardarVtaCeroMotivoRequest.setCodCliente(codCliente);\r\n\t\tguardarVtaCeroMotivoRequest.setCodDeposito(codDeposito);\r\n\t\tguardarVtaCeroMotivoRequest.setMes(Mes);\r\n\t\tguardarVtaCeroMotivoRequest.setMotivo(Motivo);\r\n\t\tguardarVtaCeroMotivoRequest.setObservacion(observacion);\r\n\t\tguardarVtaCeroMotivoRequest.setSemana(Semana);\r\n\t\tguardarVtaCeroMotivoRequest.setUsuario(Usuario);\r\n\t\tString request = JSONHelper.serializar(guardarVtaCeroMotivoRequest);\r\n\t\treturn request;\r\n\t}",
"public String getTipo(){\n return tipo;\n }",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"public List<GrupoLocalResponse> buscarTodos();",
"public String getTipo();",
"public String getTipo();",
"@Override\r\n\tpublic Collection<? extends Partido> getEventos(Date fecha) {\n\t\treturn null;\r\n\t}",
"public List<PerfilTO> buscarTodos();",
"@GetMapping(value = \"/allFilter/{tipo}/{matricula}\")\n\tpublic ServerResponseMantenimiento getAllFilter(@PathVariable String tipo, @PathVariable String matricula) {\n\n\t\tServerResponseMantenimiento result = new ServerResponseMantenimiento();\n\n\t\ttry {\n\n\t\t\tList<MantenimientoDTO> listaResult = new ArrayList<MantenimientoDTO>();\n\t\t\tList<MantenimientoDTO> listaBD = null;\n\n\t\t\tif (!\"null\".equalsIgnoreCase(tipo)) {\n\t\t\t\tlistaBD = mantenimientoServiceAPI.getAllFiltro1(\"idTipoMantenimiento\", tipo, \"idVehiculo\");\n\n\t\t\t\tif (null != listaBD) {\n\t\t\t\t\tfor (MantenimientoDTO mantenimiento : listaBD) {\n\t\t\t\t\t\t// Busca el vehiculo\n\t\t\t\t\t\tif (null != mantenimiento.getIdVehiculo() && !mantenimiento.getIdVehiculo().isEmpty()) {\n\t\t\t\t\t\t\tVehiculoDTO vehiculo = vehiculoServiceAPI.get(mantenimiento.getIdVehiculo());\n\t\t\t\t\t\t\tmantenimiento.setVehiculo(vehiculo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Busca el tipo de mantenimiento\n\t\t\t\t\t\tif (null != mantenimiento.getIdTipoMantenimiento()\n\t\t\t\t\t\t\t\t&& !mantenimiento.getIdTipoMantenimiento().isEmpty()) {\n\t\t\t\t\t\t\tTipoMantenimientoDTO tipoMantenimiento = tipoMantenimientoServiceAPI\n\t\t\t\t\t\t\t\t\t.get(mantenimiento.getIdTipoMantenimiento());\n\t\t\t\t\t\t\tmantenimiento.setTipoMantenimiento(tipoMantenimiento);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlistaBD = mantenimientoServiceAPI.getAllNotBaja(\"idVehiculo\");\n\n\t\t\t\tif (null != listaBD) {\n\t\t\t\t\tfor (MantenimientoDTO mantenimiento : listaBD) {\n\t\t\t\t\t\t// Busca el vehiculo\n\t\t\t\t\t\tif (null != mantenimiento.getIdVehiculo() && !mantenimiento.getIdVehiculo().isEmpty()) {\n\t\t\t\t\t\t\tVehiculoDTO vehiculo = vehiculoServiceAPI.get(mantenimiento.getIdVehiculo());\n\t\t\t\t\t\t\tmantenimiento.setVehiculo(vehiculo);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Busca el tipo de mantenimiento\n\t\t\t\t\t\tif (null != mantenimiento.getIdTipoMantenimiento()\n\t\t\t\t\t\t\t\t&& !mantenimiento.getIdTipoMantenimiento().isEmpty()) {\n\t\t\t\t\t\t\tTipoMantenimientoDTO tipoMantenimiento = tipoMantenimientoServiceAPI\n\t\t\t\t\t\t\t\t\t.get(mantenimiento.getIdTipoMantenimiento());\n\t\t\t\t\t\t\tmantenimiento.setTipoMantenimiento(tipoMantenimiento);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!\"null\".equalsIgnoreCase(matricula)) {\n\t\t\t\tlistaResult = listaBD.stream()\n\t\t\t\t\t\t.filter(mantenimiento -> mantenimiento.getVehiculo().getMatricula().contains(matricula))\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t\t\t} else {\n\t\t\t\tlistaResult.addAll(listaBD);\n\t\t\t}\n\n\t\t\tresult.setListaMantenimiento(listaResult);\n\t\t\tErrorBean error = new ErrorBean();\n\t\t\terror.setCode(MessageExceptions.OK_CODE);\n\t\t\terror.setMessage(MessageExceptions.MSSG_OK);\n\t\t\tresult.setError(error);\n\n\t\t} catch (Exception e) {\n\t\t\t// LOG\n\t\t\tErrorBean error = new ErrorBean();\n\t\t\terror.setCode(MessageExceptions.GENERIC_ERROR_CODE);\n\t\t\terror.setMessage(MessageExceptions.MSSG_GENERIC_ERROR);\n\t\t\tresult.setError(error);\n\t\t}\n\n\t\treturn result;\n\t}",
"Documento getDocumento();",
"@Override\r\n\t\t\tpublic void valueChange(ValueChangeEvent event) {\n\t if (event.getProperty().getValue() == null) {\r\n\t \tgridCamposRespuestas.setVisible(false);\r\n\t }\r\n\t else \r\n\t \tgridCamposRespuestas.setVisible(true);\r\n\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic MedioPago grabar(MedioPago entidad) {\n\t\treturn null;\n\t}",
"@Test\n public void getFormaPagoTest() {\n FormaPagoEntity entity = data.get(0);\n FormaPagoEntity resultEntity = formaPagoLogic.getFormaPagoPorCliente(cliente.getId(), entity.getId());\n Assert.assertNotNull(resultEntity);\n Assert.assertEquals(entity.getId(), resultEntity.getId());\n }",
"@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }",
"public Mes getMesSeleccionado()\r\n/* 172: */ {\r\n/* 173:217 */ return this.mesSeleccionado;\r\n/* 174: */ }",
"public int getTipoAtaque(){return tipoAtaque;}",
"public List<EntradaDeMaterial> buscarEntradasDisponibles(Almacen a);",
"Object getTipo();",
"public void buscarController() {\n\t\tSystem.out.println(\"\\n*** Consultando Registros\\nCampo de Consulta Pesquisa: \"+selectPesquisa);\n\t\tif (selectPesquisa.equals(null) || selectPesquisa.equals(\"\")){\t\t\t\n\t\t\t\n\t\t\tatualizarTela(); \t\t\t\n\t\t}\n\t\t\n\t\tif (selectPesquisa.equals(\"nome\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\n\t\t\telse{\n\t\t\tSystem.out.println(\"\\n*** Buscando por Nome\\n\");\n\t\t\tString nome = campoPesquisa; // Inserindo o valor que vai passar como parametro para os metodos\n\t\t\tlistaPaciente = pacienteService.buscarPorNome(nome);\t\n\t\t\t}\n\t\t} //FECHANDO O IF SELECTPESQUISA(NOME)\n\t\t\n\t\tif (selectPesquisa.equals(\"idPaciente\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\t\t\n\t\t\t\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"\\n*** Buscando por ID\\n\");\n\t\t\t\ttry{ // Tratamento de Erro Caso o usuario Colocar Letras no campo\n\t\t\t\t\tSystem.out.println(\"** ID PACIENTE: \"+campoPesquisa);\n\t\t\t\t\tlong idPaciente = Long.parseLong(campoPesquisa); \n\t\t\t\t\tlistaPaciente = pacienteService.buscarPorId(idPaciente);\t\t\t\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\tSystem.err.println(\"\\n ** ID invalido\\n\"+e);\t\t\t\t\t\n\t\t\t\t\tlistaPaciente = null; // Lista vai ser vazia pois o ID foi invalido\n\t\t\t\t}\t\t\n\t\t\t} // FECHANDO O ELSE\n\t\t} //FECHANDO O IF SELECTPESQUISA(IDPROPRIETARIO)\n\t\t\n\t\tif (selectPesquisa.equals(\"cpf\")){\n\t\t\t\n\t\t\tif(campoPesquisa.equals(null)){ // Evitar o Erro de passar parametro nulo para o metodo\n\t\t\t\tatualizarTela(); \t\n\t\t\t}\t\t\n\t\t\telse{\n\t\t\tSystem.out.println(\"\\n*** Buscando por CPF\\n\");\t\t\t\n\t\t\tString cpf = campoPesquisa; // Inserindo o valor que vai passar como parametro para os metodos\n\t\t\tlistaPaciente = pacienteService.buscarPorCpf(cpf);\t\n\t\t\t}\n\t\t\n\t\t} // Fechando IF SELECTPESQUISA(CPF)\n\t\t\n\t\n\t}",
"@GetMapping(\"/listAll\")\n List<WebformMetabaseVO> getListWebforms();",
"public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }",
"public String getTipoEvento() {\n return tipoEvento;\n }",
"public boolean isGet();",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"@Override protected void eventoMemoriaModificata(Campo campo) {\n Campo tipoPrezzo;\n boolean acceso;\n\n try { // prova ad eseguire il codice\n// if (campo.getNomeInterno().equals(AlbSottoconto.CAMPO_FISSO)) {\n// tipoPrezzo = this.getCampo(AlbSottoconto.CAMPO_TIPO_PREZZO);\n// acceso = (Boolean)campo.getValore();\n// tipoPrezzo.setVisibile(acceso);\n// if (!acceso) {\n// tipoPrezzo.setValore(0);\n// }// fine del blocco if\n// }// fine del blocco if\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"@Override\r\n\tpublic Evento buscar(Evento evento) {\n\t\treturn repository.getOne(evento.getId());\r\n\t}",
"private void readForm() {\n }",
"@Override\r\n protected void onForm(ClientForm form) {\n \r\n }",
"public Ejercicio getEjercicio()\r\n/* 145: */ {\r\n/* 146:183 */ return this.ejercicio;\r\n/* 147: */ }",
"List<Videogioco> retriveByPiattaforma(String piattaforma);",
"protected Automovel getAutomovel(HttpServletRequest request) throws GenericException\n\t{\n\t\tAutomovel auto = new Automovel();\n\t\tauto.setIDAutomovel(Integer.parseInt(request.getParameter(\"idAutomovel\")));\n\t\t\t\t\n\t\treturn auto.consultarPorID();\n\t}",
"@Path(\"/productos\")\n @GET\n @Produces(MediaType.APPLICATION_JSON) //Por que una track si la aceptaba (ejemplo) pero un producto no?\n public String productos(){\n return test.getProductos().get(\"Leche\").toString();\n\n }",
"public Result inicioGenerarLibro(){\n ContabilidadDTO dto = new ContabilidadDTO();\n dto.tipoLibro = new Parametro(\"\",\"LVEN\",\"\");\n //dto.tipoLibro.id.codigo =\"LVEN\";\n dto.anio = new Parametro(\"\",\"2018\",\"\");\n //dto.anio.id.codigo =\"2018\";\n dto.mes = new Parametro(\"\",\"3\",\"\");\n //dto.mes.id.codigo =\"3\"; //Simpre debe ser el mes anterior al actual\n\n Form<ContabilidadDTO> contabilidadDTOForm = formFactory.form(ContabilidadDTO.class).fill(dto);\n\n/*\n EbeanServer db = DBConnectionUtil.getDBServerFacturador();\n List<BandejaFactura> lista = db.find(BandejaFactura.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (BandejaFactura x:lista) {\n System.out.println(x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class)\n .where().ilike(\"CVNT_NUM_DOCUMENTO\", \"F002-00000213\")\n .findList();\n for (ControlVenta x:lista) {\n System.out.println(\"*********** \"+x);\n }\n*/\n/*\n EbeanServer db = DBConnectionUtil.getDBServerSGV();\n List<ControlVenta> lista = db.find(ControlVenta.class).findList();; //BandejaFactura.find.all();//obtenerTodos();\n for (ControlVenta x:lista) {\n System.out.println(x);\n }\n*/\n\n return ok(generadorLibrosContables.render(contabilidadDTOForm));\n }",
"List<Pacote> buscarPorTransporte(Transporte transporte);",
"public List<Evento> getEventos() {\r\n\t\treturn eventos;\r\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/pruebaConsulta.do\")\n public @ResponseBody\n void pruebaConsulta(Model model)\n {\n String idEstado = \"15\";\n// //Fabricacion de objeto\n MunicipiosJSON municipiosJSON = new MunicipiosJSON();\n try\n {\n //Track tiempo\n Calendar ahora1 = Calendar.getInstance();\n long tiempo1 = ahora1.getTimeInMillis();\n municipiosJSON = daoCodigosPostales.municipiosEstado(\"15\");\n\n //Operacion realizada con exito\n municipiosJSON.setStatusJSON(true);\n Calendar ahora2 = Calendar.getInstance();\n long tiempo2 = ahora2.getTimeInMillis();\n long total = tiempo2 - tiempo1;\n System.out.println(\"Operacion con exito en \" + total + \"ms\");\n\n } catch(Exception e)\n {\n e.printStackTrace();\n //Error en consulta\n municipiosJSON.setStatusJSON(false);\n\n }\n\n }",
"@GetMapping(\"/mapeamentos\")\n @Timed\n public List<Mapeamento> getAllMapeamentos() {\n log.debug(\"REST request to get all Mapeamentos\");\n return mapeamentoRepository.findAll();\n }",
"@Override\n protected void eventoUscitaCampo(Campo campo) {\n\n try { // prova ad eseguire il codice\n\n if (campo.getNomeInterno().equals(nomeConto)) {\n this.setCodConto((Integer)campo.getValore());\n this.regolaCamera();\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"@Override\n protected void doGet(HttpServletRequest requete, HttpServletResponse reponse) throws ServletException, IOException {\n Integer idSousTournoiRecherche = tentativeRecuperationIdSousTournoi(requete);\n if (idSousTournoiRecherche == null){\n envoyerReponseMauvaisId(reponse);\n }\n else{\n SousTournoiDto sousTournoiTrouve = sousTournoiService.consulterSousTournoiSeul(idSousTournoiRecherche);\n if(sousTournoiTrouve != null){\n envoyerReponseRecuperationSousTournoi(sousTournoiTrouve, reponse);\n }\n else{\n envoyerReponseSousTournoiIntrouvable(reponse);\n }\n }\n }",
"public String getTelefono() {\r\n\treturn telefono;\r\n}",
"public static Event handleAddTimeLineEvents(HttpServletRequest request,\r\n\t\t\tLong timeLineId, SessionObjectBase sob) {\r\n\r\n\t\tEvent event = new Event();\r\n\r\n\t\tif (timeLineId == null) {\r\n\t\t\treturn event;\r\n\t\t}\r\n\r\n\t\tTimeLine timeline = TimeLine.getById(sob.schema, timeLineId);\r\n\r\n\t\tString sending_page = (String) request.getParameter(\"sending_page\");\r\n\r\n\t\tif ((sending_page != null)\r\n\t\t\t\t&& (sending_page.equalsIgnoreCase(\"timeline_creator\"))) {\r\n\r\n\t\t\tString command = (String) request.getParameter(\"command\");\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Update\")) {\r\n\t\t\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\t\t\tevent.setId(new Long(event_id));\r\n\t\t\t\tsob.draft_event_id = event.getId();\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Clear\")) {\r\n\t\t\t\tsob.draft_event_id = null;\r\n\t\t\t} else { // coming here as update or as create.\r\n\r\n\t\t\t\tString event_type = (String) request.getParameter(\"event_type\");\r\n\r\n\t\t\t\tint eventTypeInt = 1;\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\teventTypeInt = new Long(event_type).intValue();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tevent.setEventType(eventTypeInt);\r\n\t\t\t\t\r\n\t\t\t\tString eventTitle = (String) request.getParameter(\"event_title\");\r\n\t\t\t\t\r\n\t\t\t\tif (!(USIP_OSP_Util.stringFieldHasValue(eventTitle))){\r\n\t\t\t\t\teventTitle = \"No Title Provided\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tevent.setEventTitle(eventTitle);\r\n\t\t\t\tevent.setEventMsgBody((String) request\r\n\t\t\t\t\t\t.getParameter(\"event_text\"));\r\n\r\n\t\t\t\tString timeline_event_date = (String) request\r\n\t\t\t\t\t\t.getParameter(\"timeline_event_date\");\r\n\r\n\t\t\t\tSystem.out.println(timeline_event_date);\r\n\r\n\t\t\t\tSimpleDateFormat sdf_startdate = new SimpleDateFormat(\r\n\t\t\t\t\t\t\"MM/dd/yyyy HH:mm\");\r\n\r\n\t\t\t\t// set this to a safe date (now) in case the date entered does not parse well.\r\n\t\t\t\tevent.setEventStartTime(new java.util.Date());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDate ted = sdf_startdate.parse(timeline_event_date);\r\n\t\t\t\t\tevent.setEventStartTime(ted);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tsob.errorMsg = \"The date and time that you entered, \\\"\" + timeline_event_date + \"\\\", could not be interpreted. \" + \r\n\t\t\t\t\t\t\"The date was set to your current time.\";\r\n\t\t\t\t}\r\n\t\t\t\tevent.setSimId(sob.sim_id);\r\n\r\n\t\t\t\tevent.setPhaseId(sob.phase_id);\r\n\r\n\t\t\t\t// //////////////////////////////////////////\r\n\t\t\t\tevent.setTimelineId(timeline.getId());\r\n\r\n\t\t\t\tevent.saveMe(sob.schema);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tString remove_event = (String) request.getParameter(\"remove_event\");\r\n\t\tString edit_event = (String) request.getParameter(\"edit_event\");\r\n\r\n\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\tif ((remove_event != null) && (remove_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tEvent.removeMe(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = null;\r\n\t\t}\r\n\r\n\t\tif ((edit_event != null) && (edit_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tevent = Event.getById(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = event.getId();\r\n\t\t}\r\n\r\n\t\treturn event;\r\n\t}",
"public String getTelefono(){\n return telefono;\n }",
"@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Inscripcion.findAll\", null);\n }",
"com.walgreens.rxit.ch.cda.EIVLEvent getEvent();",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@GET\r\n public List<MarcaDetailDTO> getMarcas() {\r\n List<MarcaDetailDTO> listaMarcaes = listEntity2DetailDTO(marcaLogic.getMarcas());\r\n return listaMarcaes;\r\n }",
"@GetMapping(path = \"/realizar\")\n public ModelAndView getForm(){\n\n return new ModelAndView(ViewConstant.MANTCOMPRASMINO).addObject(\"compraMinorista\", new CompraMinorista());\n }",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public String obtener() {\n logger.debug(\"Obteniendo todos los equipos\");\n Set<Sala> salas= salaService.buscarTodasLasSalasSimples();\n logger.debug(\"Obtenidas.\");\n Genson genson = new Genson();\n String retorno = genson.serialize(salas);\n logger.debug(retorno);\n return retorno;\n }",
"public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }",
"@Override\n public Type getType() {\n return Type.TypeRequest;\n }",
"private void onGetAllRettighet(Event<FintResource> responseEvent) {\n Identifikator batcaveId = new Identifikator();\n batcaveId.setIdentifikatorverdi(\"BATCAVE\");\n Rettighet batcave = new Rettighet();\n batcave.setSystemId(batcaveId);\n batcave.setNavn(\"Batcave\");\n batcave.setKode(\"BAT-002\");\n batcave.setBeskrivelse(\"Grants access to the secret cave\");\n responseEvent.addData(FintResource\n .with(batcave)\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"BATMAN\").build())\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"ROBIN\").build())\n );\n\n Identifikator batmobileId = new Identifikator();\n batmobileId.setIdentifikatorverdi(\"BATMOBILE\");\n Rettighet batmobile = new Rettighet();\n batmobile.setSystemId(batmobileId);\n batmobile.setKode(\"BAT-001\");\n batmobile.setNavn(\"Batmobile\");\n batmobile.setBeskrivelse(\"Grants access to driving the ultimate vehicle\");\n responseEvent.addData(FintResource.with(batmobile)\n .addRelations(new Relation.Builder().with(Rettighet.Relasjonsnavn.IDENTITET).forType(Identitet.class).field(\"systemid\").value(\"BATMAN\").build())\n );\n }",
"public String getObservacion() {\n return observacion.get();\n }",
"com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();",
"String getEtiqueta();",
"private List<PreDocumentoEntrata> getPreDocumentiEntrata() {\t\n\t\tif(req.getRicercaSinteticaPreDocumentoEntrata()!=null){\n\t\t\treturn ricercaSinteticaPreDocumentoEntrata();\n\t\t}\n\t\t\n\t\treturn req.getPreDocumentiEntrata();\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic Object getAsObject(FacesContext arg0, UIComponent arg1, String string) {\n\t\t\n\t\tif (string == null || string.equals(\"Selecione um funcionario\")){\n\t\t\treturn null;\n\t\t}\n\t\treturn EntityManagerUtil.getEntityManager().find(Funcionario.class, Integer.parseInt(string));\n\t}",
"@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}",
"private Filtro getFiltroMenu() {\n /* variabili e costanti locali di lavoro */\n Filtro fdata1;\n Filtro fdata2;\n Filtro filtroData = null;\n Modulo modMenu;\n\n try { // prova ad eseguire il codice\n\n modMenu = MenuModulo.get();\n fdata1 = FiltroFactory.crea(modMenu.getCampo(Menu.Cam.data.get()),\n Filtro.Op.MAGGIORE_UGUALE,\n getDataInizio());\n\n fdata2 = FiltroFactory.crea(modMenu.getCampo(Menu.Cam.data.get()),\n Filtro.Op.MINORE_UGUALE,\n getDataFine());\n filtroData = new Filtro();\n filtroData.add(fdata1);\n filtroData.add(fdata2);\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 filtroData;\n }",
"public void getServicios() {\n\t\tjs.executeScript(\"arguments[0].click();\", cuadradito);\n\t\tinputSearch.sendKeys(\"Servicio\");\n\t\tjs.executeScript(\"arguments[0].click();\", servicios);\n\t}",
"com.google.speech.logs.timeline.InputEvent.Event getEvent();",
"public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }",
"private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }",
"private void cargaDatosBasicos(Model model) {\r\n\t\t\tLong t1 = System.currentTimeMillis();\r\n\t\t\tAccionesMGCBusquedaForm form = null;\r\n\t\t\tLinkedHashMap<String, String> dias = UtilFechas.getDias();\r\n\t\t\tLinkedHashMap<String, String> meses = UtilFechas.getMeses();\r\n\t\t\tLinkedHashMap<String, String> anios = UtilFechas.getAnios();\r\n\t\t\tmodel.addAttribute(\"dias\", dias);\r\n\t\t\tmodel.addAttribute(\"meses\", meses);\r\n\t\t\tmodel.addAttribute(\"anios\", anios);\r\n\t\t\tif (!model.containsAttribute(\"formulario\")) {\r\n\t\t\t\tform = new AccionesMGCBusquedaForm();\r\n\t\t\t\tmodel.addAttribute(\"formulario\", form);\r\n\t\t\t} else {\r\n\t\t\t\tform = (AccionesMGCBusquedaForm) model.asMap().get(\"formulario\");\r\n\t\t\t}\r\n\t/* Se ajusta para mercado TTV \r\n\t\ttry {\r\n\t\t\t\tint tipoMercado = form.getTipoMercado() == IAcciones.TIPO_MERCADO_REPOS ? IMercadoDao.REPOS\r\n\t\t\t\t\t\t: IMercadoDao.ACCIONES;\r\n\t\t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\t\tif (StringUtils.isNotEmpty(fechaConsulta)\r\n\t\t\t\t\t\t&& !fechaConsulta.equals(sdf.format(new Date()))) {\r\n\t\t\t\t\tcal.setTime(sdf.parse(fechaConsulta));\r\n\t\t\t\t}\r\n\t\t\t\tString mensajeHorario = this.mercadoDao.mercadoAbierto(cal,\r\n\t\t\t\t\t\ttipoMercado, true);\r\n\t\t\t\tmodel.addAttribute(\"horarioAcciones\", mensajeHorario);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlog.error(\"Error al cargar mensajeHorario\", e);\r\n\t\t\t}\r\n\t*/\r\n\t\t\ttry {\r\n\t\t\t\tint tipoMercado = IAccionesMGC.TIPO_MERCADO_REPOS_MGC; \r\n//\t\t\t\t? IMercadoDao.REPOS : IMercadoDao.ACCIONES ;\r\n\t\t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n\t\t\t\tif (StringUtils.isNotEmpty(fechaConsulta)\r\n\t\t\t\t\t\t&& !fechaConsulta.equals(sdf.format(new Date()))) {\r\n\t\t\t\t\tcal.setTime(sdf.parse(fechaConsulta));\r\n\t\t\t\t}\r\n\t\t\t\tString mensajeHorario = this.mercadoDao.mercadoAbierto(cal,\r\n\t\t\t\t\t\ttipoMercado, true);\r\n\t\t\t\tmodel.addAttribute(\"horarioAcciones\", mensajeHorario);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlog.error(\"Error al cargar mensajeHorario\", e);\r\n\t\t\t}\r\n\t//*\r\n\t\t\t\r\n\t\t\tLong t2 = System.currentTimeMillis();\r\n\t\t\tLong t = (t2 - t1) / 1000;\r\n\t\t\tlog\r\n\t\t\t\t\t.info(\"El tiempo en el método cargaDatosBasicos de ResumenAccionesMGCPortlet es =\"\r\n\t\t\t\t\t\t\t+ t);\r\n\t\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/{formularioId}\")\r\n\tpublic FormularioDTO get(@PathVariable(\"formularioId\") int formularioId) {\r\n\t\treturn formularioService.getOne(formularioId);\r\n\t}",
"@JsonGetter(\"event\")\r\n public String getEvent ( ) { \r\n return this.event;\r\n }",
"@Override\n public ExtensionResult doGetModelMobils(ExtensionRequest extensionRequest) {\n Map<String, String> output = new HashMap<>();\n\n String tipe = getEasyMapValueByName(extensionRequest, \"type\");\n String merek = getEasyMapValueByName(extensionRequest, \"merk\");\n\n String url = \"https://bububibap.herokuapp.com/getToyota/\";\n List<List<String>> models = getModelModel(url, \"mobil\", \"model\", tipe);\n List<ButtonBuilder> buttonBuilders = new ArrayList<>();\n List<String> model = models.get(type_index);\n for (String mod : model) {\n ButtonTemplate button = new ButtonTemplate();\n //button.setPictureLink(appProperties.getToyotaImgUrl());\n //button.setPicturePath(appProperties.getToyotaImgUrl());\n button.setTitle(mod);\n button.setSubTitle(mod);\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(mod);\n bookAction.setValue(\"model \" + mod);\n actions.add(bookAction);\n button.setButtonValues(actions);\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n buttonBuilders.add(buttonBuilder);\n }\n String btnBuilders = \"\";\n for (ButtonBuilder buttonBuilder : buttonBuilders) {\n btnBuilders += buttonBuilder.build();\n btnBuilders += \"&split&\";\n }\n\n CarouselBuilder carouselBuilder = new CarouselBuilder(btnBuilders);\n output.put(OUTPUT, carouselBuilder.build());\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }",
"protected static List<String> getEventsFromProducer(HttpClient httpClient,GetMethod getMethod, String url,String contentType) throws RESTException\n\t{\n\t\tList<String> resultEvents = new ArrayList<String>();\n\t\t\n // Execute request\n try {\n \n int result = httpClient.executeMethod(getMethod);\n if (result != 200)\n {\n \tthrow new RESTException(\"Could not perform GET on producer \"+url+\", responce result: \"+result);\n }\n \n \n InputStream input = getMethod.getResponseBodyAsStream(); \n BufferedReader br = new BufferedReader(\n new InputStreamReader(input));\n String output; \n while ((output = br.readLine()) != null) \n {\n \t\n \tresultEvents.add(output);\n }\n \n }\n catch(Exception e)\n {\n \tthrow new RESTException(e);\n \t\n }\n \n return resultEvents;\n\t}",
"public void recupera() {\n Cliente clienteActual;\n clienteActual=clienteDAO.buscaId(c.getId());\n if (clienteActual!=null) {\n c=clienteActual;\n } else {\n c=new Cliente();\n }\n }",
"public String getMarca(){\n return marca;\n }",
"@Override\n\tprotected BaseSearchForm devuelveFormBusqueda() throws Exception {\n\t\tMantenimientoCRAMatrizDiasSearchForm form = new MantenimientoCRAMatrizDiasSearchForm();\n\t\treturn form;\n\t}",
"@Override\r\n\tprotected String requestText() {\n\t\tActualizarCompromisoRequest actualizarCompromisoRequest = new ActualizarCompromisoRequest();\r\n\t\tactualizarCompromisoRequest.listaInventarioCompromiso = this.listaInventarioCompromiso;\r\n\t\tactualizarCompromisoRequest.listaPosicionCompromiso = this.listaPosicionCompromiso;\r\n\t\tactualizarCompromisoRequest.listaPresentacionCompromiso = this.listaPresentacionCompromiso;\r\n\t\tactualizarCompromisoRequest.updateInformacionAdicionalTO = this.updateInformacionAdicionalTO;\r\n\t\tactualizarCompromisoRequest.codigoCabecera = this.codigoCabecera;\r\n\t\tString request = JSONHelper.serializar(actualizarCompromisoRequest);\r\n\t\treturn request;\r\n\t}",
"@Override\n\tpublic Object getAsObject(FacesContext context, UIComponent component, String str) {\n\t\tif(str != null && !str.equals(\"\")){\n\t\t\tPostoServicoBean postoServicoBean = (PostoServicoBean) JSFUtil.getInstance().getSessionBean(\"postoServicoBean\");\n\t\t\tPostoServicoService postoServicoService = postoServicoBean.getService();\n\t\t\tPostoServico postoServico = postoServicoService.retrieve(Integer.valueOf(str));\n\t\t\treturn postoServico;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\t\t\t\tpublic void onEntrada(Object entrada, View view) {\n\t\t\t\t\tif (entrada != null) \n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtDNI1 = (TextView) view.findViewById(R.id.textViewDNI);\n\t\t\t\t\t\tTxtDNI1.setText(((Lista_entrada_ControlAcceso) entrada).get_IdFuncionario()); \n\n\t\t\t\t\t\tTextView TxtPlaca1 = (TextView) view.findViewById(R.id.textView_Placa);\n\t\t\t\t\t\tTxtPlaca1.setText(((Lista_entrada_ControlAcceso) entrada).get_Patente()); \n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtCod1 = (TextView) view.findViewById(R.id.textView_Cod); \n\t\t\t\t\t\tTxtCod1.setText(((Lista_entrada_ControlAcceso) entrada).get_CodError());\n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtFecha1= (TextView) view.findViewById(R.id.textView_Fecha); \n\t\t\t\t\t\tTxtFecha1.setText(((Lista_entrada_ControlAcceso) entrada).get_Fecha());\n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtHora1 = (TextView) view.findViewById(R.id.textView_Nivel); \n\t\t\t\t\t\tTxtHora1.setText(((Lista_entrada_ControlAcceso) entrada).get_Hora());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Toast.makeText(mContext,cadenaNueva, Toast.LENGTH_LONG).show();\n\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n\tpublic List<Materia> recuperarTodo() throws DataAccessException {\n\t\treturn null;\n\t}",
"private void getParameters(HttpServletRequest request) {\n\t\t// Recoger datos\n\t\tconcepto = request.getParameter(\"concepto\");\n\t\tString importeTexto = request.getParameter(\"importe\");\n\t\ttry {\n\t\t\timporte = Double.parseDouble(importeTexto);\n\n\t\t} catch (NumberFormatException e) {\n\t\t\timporte = (double) 0;\n\t\t}\n\t\tLong idCoche = Long.parseLong(request.getParameter(\"id_coche\"));\n\t\tc = daoCoche.getBYId(idCoche);\n\t\tidAgente = Long.parseLong(request.getParameter(\"id_agente\"));\n\t}",
"@Override\n\tpublic void read(Object entidade) {\n\t\t\n\t}"
] |
[
"0.5894904",
"0.5791245",
"0.56686026",
"0.56421083",
"0.5601277",
"0.5596243",
"0.55588716",
"0.5439771",
"0.539379",
"0.531749",
"0.5316813",
"0.53153753",
"0.53049296",
"0.5277661",
"0.5270883",
"0.52507484",
"0.5246413",
"0.5245497",
"0.52416575",
"0.523966",
"0.5191714",
"0.5187922",
"0.5174112",
"0.51686853",
"0.51659435",
"0.5164749",
"0.5164379",
"0.5162531",
"0.51598823",
"0.5147733",
"0.5147733",
"0.5139104",
"0.5137566",
"0.51364404",
"0.5127544",
"0.5101947",
"0.5101549",
"0.5097897",
"0.50943065",
"0.5088451",
"0.50812083",
"0.50769305",
"0.5073437",
"0.5071066",
"0.5063066",
"0.50627697",
"0.5057511",
"0.50538427",
"0.5049902",
"0.50476456",
"0.5035874",
"0.5029602",
"0.5027813",
"0.50170743",
"0.50121486",
"0.50113785",
"0.5010149",
"0.5004655",
"0.5003999",
"0.4999002",
"0.49900767",
"0.49873632",
"0.49867582",
"0.498355",
"0.4981419",
"0.49794224",
"0.49785325",
"0.4975786",
"0.49756593",
"0.4972647",
"0.49722242",
"0.4966606",
"0.49647745",
"0.4958875",
"0.49557108",
"0.49537495",
"0.49480343",
"0.49470213",
"0.4945505",
"0.4942354",
"0.49412894",
"0.49379715",
"0.49376085",
"0.493741",
"0.49359176",
"0.49324033",
"0.49299878",
"0.49280763",
"0.49248242",
"0.49239743",
"0.4922611",
"0.49202633",
"0.49173602",
"0.49160329",
"0.49150637",
"0.49115103",
"0.48980832",
"0.48960826",
"0.4895431",
"0.48927557",
"0.48925832"
] |
0.0
|
-1
|
Llama al evento de tipo post del formulario marca
|
public void doPost( )
{
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tvoid postarComentario() {\n\n\t}",
"public void post(Object event);",
"public postevent(int flag) {\n byGetOrPost = flag;\n\n\n\n\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"@Override\n protected void validateSave(Fornecedor post) {\n\n }",
"@Override\n protected void validateEdit(Fornecedor post) {\n\n }",
"public interface PostSingleEvent {\n void onStart();\n void onDone(PostResponse response);\n void onError(String err);\n Map<String, String> getHeaders();\n Map<String, String> getFiles();\n Map<String, String> getImages();\n}",
"public void addPostEvent()\r\n\t{\r\n\t\tfor(Event recordedEvent : eventsCount)\r\n\t\t{\r\n\t\t\tif(recordedEvent.getRequestType().equals(RequestMethod.POST))\r\n\t\t\t{\r\n\t\t\t\trecordedEvent.setAccessCount(recordedEvent.getAccessCount() + 1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void postularse() {\n\t\t\n\t\ttry {\t\t\t\n\n\t\t\tPostulante postulante= new Postulante();\n\t\t\tpostulante.setLegajo(Integer.valueOf(this.txtLegajo.getText()));\n\t\t\tpostulante.setFamiliaresACargo(Integer.valueOf(this.txtFamiliaresACargo.getText()));\n\t\t\tpostulante.setNombre(txtNombre.getText());\n\t\t\tpostulante.setApellido(txtApellido.getText());\n\t\t\t//postulante.setFechaDeNacimiento(this.txtFechaDeNaciminto.getText());\n\t\t\tpostulante.setCarrera(this.cmbCarrera.getSelectedItem().toString());\n\t\t\tpostulante.setNacionalidad(this.txtNacionalidad.getText());\n\t\t\tpostulante.setLocalidad(this.txtLocalidad.getText());\n\t\t\tpostulante.setProvincia(this.txtProvincia.getText());\n\t\t\t//postulante.setSituacionSocial(this.txtSituacionSocial.getText());\n\t\t\tpostulante.setDomicilio(this.txtDomicilio.getText());\n\t\t\tpostulante.setCodigoPostal(this.txtCodigoPostal.getText());\n\t\t\tpostulante.setEmail(this.txtEmail.getText());\n\t\t\tpostulante.setTelefono(Long.valueOf(this.txtTelefono.getText()));\n\t\t\t\n\t\t\t\n\t\t\tint ingresos=0, miembrosEconomicamenteActivos = 0;\n\t\t\tfor(Familiar familiar: familiares) {\n\t\t\t\tingresos+=familiar.getIngresos();\n\t\t\t\tif(ingresos > 0) {\n\t\t\t\t\tmiembrosEconomicamenteActivos++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tpostulante.setCantidadDeFamiliares(familiares.size());\n\t\t\tdouble promedio = Math.random() * (61) + 30 ; \n\t\t\tpostulante.setPromedio((int) promedio);\n\t\t\t\n\t\t\t\n\t\t\tint pIngresos, pActLaboral = 0, pVivienda = 0, pSalud = 0, pDependencia, pPromedio, pRendimiento, pDesarrollo;\n\t\t\t\n\t\t\t//Puntaje Ingresos\n\t\t\tint canastaBasicaPostulante = familiares.size() * canastaBasicaPromedio; \n\t\t\tif(ingresos <= canastaBasicaPostulante) {\n\t\t\t\tpIngresos = 30;\n\t\t\t}\n\t\t\telse if(ingresos >= (2*canastaBasicaPostulante)) {\n\t\t\t\tpIngresos = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpIngresos = (int) (30 - 0.15 * (familiares.size() - ingresos));\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Condicion Actividad Laboral\n\t\t\t\n\t\t\t\n\t\t\tint puntajeMiembros = 0;\n\t\t\t\n\t\t\tfor (Familiar familiar: familiares) {\n\t\t\t\t\tif(familiar.getIngresos() == 0) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 5;\n\t\t\t\t\t}\n\t\t\t\t\telse if(familiar.getIngresos() < salarioMinimo) {\n\t\t\t\t\t\tpuntajeMiembros = puntajeMiembros + 3;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(miembrosEconomicamenteActivos>0) {\n\t\t\tpActLaboral = puntajeMiembros/miembrosEconomicamenteActivos;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Vivienda - Extrae de cmbVivienda: 0 sin deudas - 1 con deudas - 2 sin propiedad\n\t\t\tint condicionVivienda = this.cmbVivienda.getSelectedIndex();\n\t\t\tswitch (condicionVivienda) {\n\t\t\tcase 0:\n\t\t\t\tpVivienda = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpVivienda = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpVivienda = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Salud - Extrae de cmbSalud: 0 tiene obra - 1 cobertura parcial - 2 no tiene\n\t\t\tint condicionSalud = this.cmbSalud.getSelectedIndex();\n\t\t\tswitch (condicionSalud) {\n\t\t\tcase 0:\n\t\t\t\tpSalud = 0;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tpSalud = 3;\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tpSalud = 5;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Dependencia\n\t\t\tif (familiares.size() - miembrosEconomicamenteActivos == 0) {\n\t\t\t\tpDependencia = 0;\n\t\t\t}\n\t\t\telse if(familiares.size() - miembrosEconomicamenteActivos > 2) {\n\t\t\t\tpDependencia = 5;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpDependencia = 3;\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Rendimiento académico\n\t\t\tint materiasAprobadas = (int) (Math.random() * (11));\n\t\t\tif(materiasAprobadas == 0) {\n\t\t\t\tpRendimiento = 4;\n\t\t\t\tpPromedio = 14;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tint materiasRegularizadas = (int) (Math.random() * (41 - materiasAprobadas));\n\t\t\t\tpRendimiento = materiasAprobadas/materiasRegularizadas * 10;\n\t\t\t//Puntaje Promedio: Se recuperaria del sysacad\n\t\t\t\tpPromedio = (int) (promedio/10 * 3.5);\n\t\t\t}\n\t\t\t\n\t\t\t//Puntaje Plan Desarrollo: Evaluado por comisión local\n\t\t\tpDesarrollo = (int) (Math.random() * 5 + 1);\n\n\n\t\t\tpuntaje = pIngresos + pActLaboral + pVivienda + pSalud + pDependencia + pPromedio + pRendimiento + pDesarrollo;\n\t\t\tpostulante.setMatAprobadas(materiasAprobadas);\n\t\t\t\n\t\t\ttry{ \n\t\t\t\tcontroller.postular(postulante,puntaje); \n\t\t\t\tJOptionPane.showMessageDialog(null, \"Se postuló al alumno \"+postulante.getNombre()+\" \"+postulante.getApellido()+\".\", \"Postulación exitosa.\", JOptionPane.OK_OPTION);\n\t\t\t\tlimpiarCampos();\n\t\t\t} \n\t\t\tcatch(Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se pudo postular el alumno\", \"Error\", JOptionPane.OK_OPTION);\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\tcatch(Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tJOptionPane.showMessageDialog(null, \"Datos incorrectos\", \"Error\", JOptionPane.OK_OPTION);\n\t\t}\n\t\t\n\t}",
"public void postData() {\n\n\t}",
"@Override\n public void onClick(View view) {\n\n TextView txtTitulo;\n Button btnGuardar;\n final TextInputEditText txtTituloPost;\n final TextInputEditText txtContenidoPost;\n\n dialogAgregarPost.setContentView(R.layout.activity_agregar);\n dialogAgregarPost.setCancelable(true);\n dialogAgregarPost.create();\n dialogAgregarPost.show();\n\n txtTitulo=dialogAgregarPost.findViewById(R.id.txtTitulo);\n btnGuardar=dialogAgregarPost.findViewById(R.id.btnGuardar);\n\n txtTituloPost=dialogAgregarPost.findViewById(R.id.titulo);\n txtContenidoPost=dialogAgregarPost.findViewById(R.id.contenido);\n\n\n //****** SE CREA UNA VARIABLE ESTÁTICA \"agregarEditar\" PARA VALIDAR Y CAMBIARLE EL TÍTULO AL DIALOG SEGÚN SEA INSERCION O ACTUALIZACION******//\n\n\n agregarEditar=\"AGREGAR\";\n\n if(PostActivity.agregarEditar==\"AGREGAR\")\n {\n txtTitulo.setText(\"AGREGAR POST\");\n }\n else\n {\n txtTitulo.setText(\"EDITAR POST\");\n }\n\n //****** EVENTO CLICK DE GUARDAR EN EL FORM DE INSERCION DE POSTS ******//\n\n btnGuardar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n //****** SE CREA LA URL ******//\n String url = \"https://jsonplaceholder.typicode.com/posts\";\n\n //****** SE CREA UNA SOLICITUD DE COLA DONDE SE LE MANDA EL MÉTODO \"POST\", LA URL Y SE CREAN LOS EVENTOS \"RESPONSE\" Y \"ON ERROR RESPONSE\" ******//\n\n StringRequest requestCrearPost = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //****** SI LA SOLICITUD SE COMPLETA CORRECTAMENTE Y EL RESPONSE ES \"OK\", SE MUESTRA UN TOAST DE CONFIRMACIÓN Y SE RE-CREA LA ACTIVIDAD******//\n Toast.makeText(PostActivity.this, \"POST CREADO CORRECTAMENTE\", Toast.LENGTH_SHORT).show();\n recreate();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n //****** SI LA SOLICITU NO SE COMPLETA CORRECTAMENTE, SE MUESTRA UN TOAST CON EL ERROR ******//\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }) {\n\n //****** SE MAPEAN Y SE RETORNAN LOS PARÁMETROS MANDÁNDOLE EL NOMBRE (COMO LO PIDE EL SERVIDOR) Y EL VALOR ******//\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", txtTituloPost.getText().toString());\n params.put(\"body\", txtContenidoPost.getText().toString());\n params.put(\"userId\", MainActivity.idUsuario);\n\n return params;\n }\n };\n //****** SE AGREGA A LA COLA DE SOLICITUDES LA SOLICITUD \"requestCrearPost\" ******//\n queue.add(requestCrearPost);\n }\n\n });\n\n }",
"public Integer getPostType() {\n return postType;\n }",
"public boolean isPost();",
"public boolean isPost();",
"public interface PostRequest {}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }",
"public void setTipoEvento(String tipoEvento) {\n this.tipoEvento = tipoEvento;\n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public void submit(View view){\n EditText ti = (EditText) findViewById(R.id.editText3);\n EditText pos = (EditText) findViewById(R.id.editText4);\n EditText tim = (EditText) findViewById(R.id.editText7);\n\n String titolo = ti.getText().toString();\n String post = pos.getText().toString();\n String time = tim.getText().toString();\n\n\n if (titolo.matches(\"\")) {\n Toast.makeText(this, \"Inserisci titolo\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (post.matches(\"\")) {\n Toast.makeText(this, \"Inserisci messaggio\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (time.matches(\"\")) {\n Toast.makeText(this, \"Inserisci minuti\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (Integer.valueOf(time)>60 ) {\n Toast.makeText(this, \"Durata massima 60 minuti!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (Integer.valueOf(time)<1 ) {\n Toast.makeText(this, \"Durata minima 1 minuto!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //Inserimento post online\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference(\"path/to/geofire\");\n GeoFire geoFire = new GeoFire(ref);\n\n\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference().child(\"posts\").push();\n String utente = FirebaseAuth.getInstance().getCurrentUser().getDisplayName();\n String utenteId = FirebaseAuth.getInstance().getCurrentUser().getUid();\n NewPost newPost = new NewPost(titolo,post,utente,utenteId ,mDatabase.getKey());\n LatLng latLng = ((MyApplication) this.getApplication()).getLatLng();\n\n if (latLng == null) {\n Toast.makeText(this, \"POSIZIONE NON TROVATA\", Toast.LENGTH_SHORT).show();\n return;\n }\n newPost.lat = latLng.latitude;\n newPost.longi = latLng.longitude;\n key = newPost.key;\n newPost.durata=Long.parseLong(time, 10);\n newPost.data = new Date().getTime();\n newPost.attivo = true;\n\n\n if(fotoPresente) {\n ByteArrayOutputStream bYtE = new ByteArrayOutputStream();\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n if (imageView != null) {\n Bitmap imageBitmap = ((BitmapDrawable)imageView.getDrawable()).getBitmap();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG,100,bYtE);\n byte[] byteArray = bYtE.toByteArray();\n String encodedImage = Base64.encodeToString(byteArray, Base64.DEFAULT);\n newPost.image = encodedImage;\n }\n }\n\n\n /*ByteArrayOutputStream bYtE = new ByteArrayOutputStream();\n ImageView profile = new ImageView(getBaseContext());\n Glide.with(this.getParent()).load(FirebaseAuth.getInstance().getCurrentUser().getPhotoUrl()).into(profile);\n Bitmap imageBitmap = ((BitmapDrawable)profile.getDrawable()).getBitmap();\n imageBitmap.compress(Bitmap.CompressFormat.JPEG,100,bYtE);\n byte[] byteArray = bYtE.toByteArray();\n String encodedImage = Base64.encodeToString(byteArray, Base64.DEFAULT);*/\n newPost.imageUser = FirebaseAuth.getInstance().getCurrentUser().getPhotoUrl().toString();\n\n\n\n mDatabase.setValue(newPost);\n\n String id = FirebaseAuth.getInstance().getCurrentUser().getUid();\n if(id!=null) {\n mDatabase = FirebaseDatabase.getInstance().getReference().child(\"postattivi\").child(id).push();\n mDatabase.setValue(newPost);\n }\n\n geoFire.setLocation(newPost.key , new GeoLocation(newPost.lat,newPost.longi) );\n\n mDatabase = FirebaseDatabase.getInstance().getReference().child(\"posts\").child(key).child(\"token\").push();\n String token = FirebaseAuth.getInstance().getCurrentUser().getUid();\n mDatabase.setValue(token.toString());\n\n\n this.finish();\n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"@Override\n public void onClick(View v) {\n String url = \"https://jsonplaceholder.typicode.com/posts\";\n\n //****** SE CREA UNA SOLICITUD DE COLA DONDE SE LE MANDA EL MÉTODO \"POST\", LA URL Y SE CREAN LOS EVENTOS \"RESPONSE\" Y \"ON ERROR RESPONSE\" ******//\n\n StringRequest requestCrearPost = new StringRequest(Request.Method.POST, url, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n\n //****** SI LA SOLICITUD SE COMPLETA CORRECTAMENTE Y EL RESPONSE ES \"OK\", SE MUESTRA UN TOAST DE CONFIRMACIÓN Y SE RE-CREA LA ACTIVIDAD******//\n Toast.makeText(PostActivity.this, \"POST CREADO CORRECTAMENTE\", Toast.LENGTH_SHORT).show();\n recreate();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n //****** SI LA SOLICITU NO SE COMPLETA CORRECTAMENTE, SE MUESTRA UN TOAST CON EL ERROR ******//\n Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();\n\n }\n }) {\n\n //****** SE MAPEAN Y SE RETORNAN LOS PARÁMETROS MANDÁNDOLE EL NOMBRE (COMO LO PIDE EL SERVIDOR) Y EL VALOR ******//\n @Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"title\", txtTituloPost.getText().toString());\n params.put(\"body\", txtContenidoPost.getText().toString());\n params.put(\"userId\", MainActivity.idUsuario);\n\n return params;\n }\n };\n //****** SE AGREGA A LA COLA DE SOLICITUDES LA SOLICITUD \"requestCrearPost\" ******//\n queue.add(requestCrearPost);\n }",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"void post(Post post) {\n if (post instanceof Video) {\n vd.compressVideo((Video) post);\n } else if (post instanceof Image) {\n id.decorateImage((Image) post);\n } else if (post instanceof Text) {\n tg.checkGrammar((Text) post);\n }\n }",
"@Override\n\tvoid postarFoto() {\n\n\t}",
"@Override\r\n protected void onForm(ClientForm form) {\n \r\n }",
"public String post();",
"public String getTipoEvento() {\n return tipoEvento;\n }",
"Boolean getIsPosted();",
"@POST\n\t@Produces(\"text/html\")\n\tpublic String getPost() {\n\t\treturn MessageConstants.POST_MESSAGE;\n\t}",
"public void postDatatoServer(String type, JSONObject data) {\n Log.w(\"Note\", data.toString());\r\n final Home baseHomeActivity = (Home) getActivity();\r\n\r\n JsonObjectRequest jsonArrayRequest =\r\n new JsonObjectRequest(\r\n Request.Method.POST, serverURL + \"/\" + type + \"/\", data, this, this) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n HashMap<String, String> headers = new HashMap<String, String>();\r\n headers.put(\"Authorization\", \"Token \" + baseHomeActivity.mToken);\r\n return headers;\r\n }\r\n };\r\n baseHomeActivity.mQueue.add(jsonArrayRequest);\r\n }",
"public static Event handleAddTimeLineEvents(HttpServletRequest request,\r\n\t\t\tLong timeLineId, SessionObjectBase sob) {\r\n\r\n\t\tEvent event = new Event();\r\n\r\n\t\tif (timeLineId == null) {\r\n\t\t\treturn event;\r\n\t\t}\r\n\r\n\t\tTimeLine timeline = TimeLine.getById(sob.schema, timeLineId);\r\n\r\n\t\tString sending_page = (String) request.getParameter(\"sending_page\");\r\n\r\n\t\tif ((sending_page != null)\r\n\t\t\t\t&& (sending_page.equalsIgnoreCase(\"timeline_creator\"))) {\r\n\r\n\t\t\tString command = (String) request.getParameter(\"command\");\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Update\")) {\r\n\t\t\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\t\t\tevent.setId(new Long(event_id));\r\n\t\t\t\tsob.draft_event_id = event.getId();\r\n\r\n\t\t\t}\r\n\r\n\t\t\tif (command.equalsIgnoreCase(\"Clear\")) {\r\n\t\t\t\tsob.draft_event_id = null;\r\n\t\t\t} else { // coming here as update or as create.\r\n\r\n\t\t\t\tString event_type = (String) request.getParameter(\"event_type\");\r\n\r\n\t\t\t\tint eventTypeInt = 1;\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\teventTypeInt = new Long(event_type).intValue();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tevent.setEventType(eventTypeInt);\r\n\t\t\t\t\r\n\t\t\t\tString eventTitle = (String) request.getParameter(\"event_title\");\r\n\t\t\t\t\r\n\t\t\t\tif (!(USIP_OSP_Util.stringFieldHasValue(eventTitle))){\r\n\t\t\t\t\teventTitle = \"No Title Provided\";\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tevent.setEventTitle(eventTitle);\r\n\t\t\t\tevent.setEventMsgBody((String) request\r\n\t\t\t\t\t\t.getParameter(\"event_text\"));\r\n\r\n\t\t\t\tString timeline_event_date = (String) request\r\n\t\t\t\t\t\t.getParameter(\"timeline_event_date\");\r\n\r\n\t\t\t\tSystem.out.println(timeline_event_date);\r\n\r\n\t\t\t\tSimpleDateFormat sdf_startdate = new SimpleDateFormat(\r\n\t\t\t\t\t\t\"MM/dd/yyyy HH:mm\");\r\n\r\n\t\t\t\t// set this to a safe date (now) in case the date entered does not parse well.\r\n\t\t\t\tevent.setEventStartTime(new java.util.Date());\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDate ted = sdf_startdate.parse(timeline_event_date);\r\n\t\t\t\t\tevent.setEventStartTime(ted);\r\n\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tsob.errorMsg = \"The date and time that you entered, \\\"\" + timeline_event_date + \"\\\", could not be interpreted. \" + \r\n\t\t\t\t\t\t\"The date was set to your current time.\";\r\n\t\t\t\t}\r\n\t\t\t\tevent.setSimId(sob.sim_id);\r\n\r\n\t\t\t\tevent.setPhaseId(sob.phase_id);\r\n\r\n\t\t\t\t// //////////////////////////////////////////\r\n\t\t\t\tevent.setTimelineId(timeline.getId());\r\n\r\n\t\t\t\tevent.saveMe(sob.schema);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tString remove_event = (String) request.getParameter(\"remove_event\");\r\n\t\tString edit_event = (String) request.getParameter(\"edit_event\");\r\n\r\n\t\tString event_id = (String) request.getParameter(\"event_id\");\r\n\r\n\t\tif ((remove_event != null) && (remove_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tEvent.removeMe(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = null;\r\n\t\t}\r\n\r\n\t\tif ((edit_event != null) && (edit_event.equalsIgnoreCase(\"true\"))) {\r\n\t\t\tevent = Event.getById(sob.schema, new Long(event_id));\r\n\t\t\tsob.draft_event_id = event.getId();\r\n\t\t}\r\n\r\n\t\treturn event;\r\n\t}",
"@Override\n\tpublic void postProcessAction(GwtEvent e) {\n\t\t\n\t}",
"public void setEventType(String eventType){\n this.eventType = eventType;\n }",
"public String getPost() {\r\n return post;\r\n }",
"public void post(ActionEvent actionEvent) throws IOException, ClassNotFoundException {\n Post post;\n if (postPic != null) {\n post = new Post(thisUser.getUser().getUsername(), title.getText()\n , description.getText(), new Date(), thisUser.getUser().getProfileImage(), postPic);\n post.setPostPicAddress(file.toString());\n } else {\n post = new Post(thisUser.getUser().getUsername(), title.getText()\n , description.getText(), new Date(), thisUser.getUser().getProfileImage());\n post.setPostPicAddress(\"No postPic\");\n }\n\n post.setOwner(thisUser.getUser().getUsername());\n\n CommandSender commandSender = new CommandSender(CommandType.NEWPOST\n , post);\n\n Client.getObjectOutputStream().writeObject(commandSender);\n\n thisUser.setSearchedUser(thisUser.getUser());\n Main.loadAPage(actionEvent\n , \"../FXMLs/MyProfile.fxml\"\n , \"SBUgram - Your Profile\"\n );\n\n }",
"@Override\r\n\tpublic void typeform() {\n\t\tSystem.out.println(\"Type Carre\");\r\n\t}",
"public String getPostForm() {\r\n if (getVisible() && getEnabled())\r\n return \"<postfield name=\\\"\"+getName()+\"\\\" value=\\\"$(\"+getName()+\")\\\"/>\";\r\n return \"\";\r\n }",
"@RequestMapping(\"/post\")\n public String createPost(Model model) {\n if(!model.containsAttribute(\"message\")){\n model.addAttribute(\"message\", new Message());\n }\n\n return \"form\";\n }",
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"public PostMessage()\n\t{\n\t\tsuper(MessageType.POST_MESSAGE);\n\t}",
"@Override\n\t\t\tpublic void onSubmitComplete(FormSubmitCompleteEvent event) {\n\n\t\t\t}",
"public interface MPFCallback {\n // TODO: Update argument type and name\n void editMyPost(Post post);\n\n void deleteMyPost(Post post);\n }",
"@Override\n public void modifyPost(List<Post> posts, int type) {\n\n\t}",
"protected String getSecondoPost() {\n// String testoPost;\n// String testo = this.getTestoNew();\n// String summary = this.getSummary();\n//// String edittoken = this.getToken();\n//\n// if (testo != null && !testo.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// testo = URLEncoder.encode(testo, \"UTF-8\");\n//\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n// if (summary != null && !summary.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// summary = URLEncoder.encode(summary, \"UTF-8\");\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n//\n// testoPost = \"text=\" + testo;\n// testoPost += \"&bot=true\";\n// testoPost += \"&minor=true\";\n// testoPost += \"&summary=\" + summary;\n//// testoPost += \"&token=\" + edittoken;\n//\n return \"\";\n }",
"public void eventoFiltrar() {\n if (index >= 0) {\n if (tipoLista == 0) {\n tipoLista = 1;\n }\n RequestContext context = RequestContext.getCurrentInstance();\n infoRegistro = \"Cantidad de registros : \" + filtrarListFormulasProcesos.size();\n context.update(\"form:informacionRegistro\");\n }\n }",
"@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}",
"public String getPost() {\n return post;\n }",
"public String getPost() {\n return post;\n }",
"protected RespostaFormularioPreenchido() {\n // for ORM\n }",
"void savePost(Post post);",
"interface GetPostIntractor {\n\n interface OnFinishedListener {\n\n void onFinishedUser(User[] noticeUser);\n\n void onFinished(Post[] noticePost);\n\n void onFailure(Throwable t);\n\n }\n\n void getNoticeArray(OnFinishedListener onFinishedListener);\n }",
"public EventType type() {\n return _type;\n }",
"String getEventType();",
"@Override\n\t@Transient\n\tpublic String getEventType() {\n\t\treturn \"AFTER\";\n\t}",
"private void handleSubmitOnPre() {\n }",
"public void setPostType(int postType) {\n\t\tthis.postType = postType;\n\t}",
"public void limpiarCamposFormBusqueda() {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\tPostDao postDao = DatabaseManager.getInstance().getDaoFactory().getPostDao();\n\n\t\t// prendo i dati dalla js\n\t\tString title = request.getParameter(\"title\");\n\t\tString message = request.getParameter(\"content\");\n\t\tString userid = (String) request.getSession(false).getAttribute(\"email\");\n\t\tString pathimg = request.getParameter(\"img\");\n\n\t\tSystem.out.println(\"this is the author of the post \" + userid);\n\n\t\t// creo la data del giorno corrente\n\t\tlong time = System.currentTimeMillis();\n\t\tjava.sql.Date date = new java.sql.Date(time);\n\t\t\n\t\tPost postToSave = new Post(1, title, message, userid, pathimg, date);\n\t\tpostDao.save(postToSave);\n\n\t\tJsonObject post = new JsonObject();\n\t\tpost.addProperty(\"msg\",postToSave.getMessaggio());\n\t\tpost.addProperty(\"title\", postToSave.getTitle());\n\t\tpost.addProperty(\"utente\", postToSave.getUtente());\n\t\tpost.addProperty(\"img\", postToSave.getImgname());\n\t\tpost.addProperty(\"id_post\", postToSave.getIdPost());\n\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tString reportDate = df.format(postToSave.getData());\n\n\t\tpost.addProperty(\"data\", reportDate);\n\t\tresponse.getWriter().write(post.toString());\n\n\t}",
"@Override\n public DataObjectResponse<T> handlePOST(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validatePOST(request);\n\n T dataObject = defaultFieldsOnCreate(request.getDataObject());\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.POST);\n\n if(!visibilityFilter.isVisible(request, dataObject))\n {\n response.setErrorResponse(ErrorResponseFactory.unauthorized(String.format(AUTHORIZATION_EXCEPTION, dataObject.getCustomerId()), request.getCID()));\n return response;\n }\n\n try\n {\n T persistedObject = objectPersister.persist(dataObject);\n if(persistedObject == null) {\n Throwable throwable = new RuntimeException(UNABLE_TO_CREATE_EXCEPTION);\n response.setErrorResponse(ErrorResponseFactory.buildErrorResponse(throwable, 400, request.getCID()));\n return response;\n }\n response.add(persistedObject);\n }\n catch(PersistenceException e)\n {\n BadRequestException badRequestException = new BadRequestException(UNABLE_TO_CREATE_EXCEPTION, e);\n response.setErrorResponse(ErrorResponseFactory.badRequest(badRequestException, request.getCID()));\n }\n return response;\n }",
"@Override\n public void inputTypeChange(ModelInputTypes m) {\n \n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tString type=req.getParameter(\"type\");\n\t\t\n\t\tif(\"feedback\".equals(type)){\n\t\t\treq.getRequestDispatcher(\"Feedback\").forward(req, resp);\n\t\t\t\n\t\t}else if(\"homeitem\".equals(type)){\n\t\t\treq.getRequestDispatcher(\"ListViewServlet\").forward(req, resp);\n\t\t}else if(\"image\".equals(type)){\n\t\t\treq.getRequestDispatcher(\"GetImageFromdb\").forward(req, resp);\n\t\t\t\n\t\t}else if(\"content\".equals(type)){\n\t\t\treq.getRequestDispatcher(\"ReadContent\").forward(req, resp);\n\t\t\t\t\t\t\n\t\t}else if(\"position\".equals(type)){\n\t\t\treq.getRequestDispatcher(\"position\").forward(req, resp);\t\t\t\n\t\t}\n\t}",
"public String onPostPers() {\n \r\n JobOffer c=categoryMetier.findJobOfferById(idCategorySelected);\r\n filDiscussion.setCategory(c);\r\n filDiscussion.setDateDiscussion(new java.util.Date());\r\n\r\n this.filDiscussionMetier.update(this.filDiscussion);\r\n return\"Forum\";\r\n }",
"public String getTypeEvent() {\n\t\treturn typeEvent;\n\t}",
"public Post()\n {\n nachrichten = new ArrayList<Nachricht>();\n }",
"private boolean isFormPost(HttpServletRequest request)\r\n/* 91: */ {\r\n/* 92:118 */ return (request.getContentType() != null) && (request.getContentType().contains(\"application/x-www-form-urlencoded\")) && (\"POST\".equalsIgnoreCase(request.getMethod()));\r\n/* 93: */ }",
"@PostMapping(\"/addPost\")\n public ResponseEntity addNewPost(@RequestBody Post post){\n postService.postNewInfo(post);\n return new ResponseEntity(HttpStatus.OK);\n }",
"public abstract boolean handlePost(FORM form, BindException errors) throws Exception;",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }",
"public AddVisite(java.awt.Frame parent, boolean modal, EventType type) {\n super(parent, modal);\n isRadioEnable = true;\n this.type = type;\n if (type == EventType.OUTING){\n eventType = \"Sortie\";\n }\n else\n eventType = \"Visite\";\n\n System.out.println(eventType);\n initComponents();\n alerteEmptyField.setVisible(false);\n }",
"@PostMapping(\"/demande\")\n public Demande addDemande(@RequestBody Demande demande)\n {\n try\n {\n \n /* ajout traitement spécial :\n * setDateCreate setCreatedBy\n * */\n demande.setDateOp(LocalDateTime.now());\n demande.setUtil(\"admin\");\n demande.setOp(\"A\"); // D,E\n demande= demandeRepository.save(demande);\n }\n catch(Exception e)\n {\n \n }\n return demande;\n }",
"private void postNewPost() {\n if (mIsReplyOnBulletin) {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewReply(etNewPostMsg.getText().toString(),\n getIntent().getExtras().getLong(EXTRA_POST_ID), NewPostActivity.this);\n } else {\n OperationManager operationManager = OperationManager.getInstance(NewPostActivity.this);\n operationManager.postNewBulletin(etNewPostSubject.getText().toString()\n , etNewPostMsg.getText().toString(), mFilesAdapter.getData(), NewPostActivity.this);\n\n }\n finish();\n }",
"public interface Post {\n\n\tpublic Long getId();\n\n\tpublic void setId(Long id);\n\n\tpublic Date getDate();\n\n\tpublic void setDate(Date date);\n\n\tpublic String getMessage();\n\n\tpublic void setMessage(String message);\n\n}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"EventViewForm [event=\" + event + \", eventAttender=\"\r\n\t\t\t\t+ eventAttender + \", post=\" + post + \", wallElements=\"\r\n\t\t\t\t+ wallElements + \"]\";\r\n\t}",
"public boolean isPosted() {\n\t\tObject oo = get_Value(\"Posted\");\n\t\tif (oo != null) {\n\t\t\tif (oo instanceof Boolean)\n\t\t\t\treturn ((Boolean) oo).booleanValue();\n\t\t\treturn \"Y\".equals(oo);\n\t\t}\n\t\treturn false;\n\t}",
"public WPPost getPost() {return post;}",
"EventType getEvent();",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"@RequestMapping(value = \"/newPost\", method = RequestMethod.POST)\n\tpublic String setNewPost(@ModelAttribute(\"post\") @Valid Post post, BindingResult result, ModelMap model) {\n\n\t\tif (result.hasErrors()) {\n\t\t\tSystem.out.println(\"There are errors newPost\");\n\t\t\tmodel.addAttribute(\"allpostTypes\", postService.AllPostType());\n\t\t\treturn \"/admin/post/newPost\";\n\t\t}\n\n\t\tpost = createPost(post);\n\n\t\tLike like = new Like();\n\t\tlike.setPost(post);\n\t\tlikeService.saveLike(like);\n\n\t\tUser user = userService.findUserByUsername(getPrincipal());\n\t\tpost.setUser(user);\n\t\tpostService.updatePost(post);\n\n\t\tmodel.addAttribute(\"operationmessage\",\n\t\t\t\tmessageSource.getMessage(\"message.newpost.success\", null, LocaleContextHolder.getLocale()));\n\t\treturn \"redirect:/profile/\" + getPrincipal();\n\t}",
"public RequestDataBuilder post() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.POST);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"public void postEvent(Runnable event) {\n\t\t\tfirebaseEventHandler.post(event) ;\n\t\t}",
"public java.lang.String getPost() {\n return instance.getPost();\n }",
"@FXML\n private void handleButtonAction(ActionEvent event){\n try {\n HandleFormEvents events = new HandleFormEvents();\n events.checkEventType(event, (isLoginable) events);\n } catch (IOException ex) {\n System.out.println(ex.getMessage());\n }\n }",
"@RequestMapping(value=\"/save\",method=RequestMethod.POST)\r\n\tpublic String saveData(@ModelAttribute UomType uomType,ModelMap map) {\r\n\t\t//call service layer\r\n\t\tInteger id=service.saveUomType(uomType);\r\n\t\t//construct success massage\r\n\t\tString msg=\"uom '\"+id+\"'created\";\r\n\t\t//send message to ui\r\n\t\tmap.addAttribute(\"message\", msg);\r\n\t\treturn \"UomRegister\";\r\n\t}",
"@RequestMapping(value=\"/nuevo\", method = RequestMethod.POST)\n public String registrarNuevo(@ModelAttribute Zapato zapato, ModelMap model){\n model.put(\"tallas\", tallaService.getActivos());\n model.put(\"colores\", colorService.getActivos());\n model.put(\"zapato\", new Zapato());\n model.put(\"c\", \"zapatos/nuevo\");\n return \"edicionZapatos\";\n }",
"private void doPost(String orden, String comentario, String url){\n Map<String, String> params = new HashMap<String, String>();\n //PREPARE BODY FOR POST\n params.put(\"token\", usuario.getmToken());\n params.put(\"idPedido\", orden);\n params.put(\"idUsuario\", Integer.toString(usuario.getmIdUsuario()));\n params.put(\"descripcion\", comentario);\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.POST, url,\n new JSONObject(params), new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try {\n if (response.getString(\"status\").equals(\"200\")){\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_succes), Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"Is 200: \" + response);\n } else {\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_error_genericpost), Toast.LENGTH_SHORT).show();\n Log.d(TAG, \"Not 200: \" + response);\n }\n } catch (JSONException e) {\n Log.d(TAG, \"onResponse: Error en parsing: \" + e);\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"onErrorResponse: Error de conexión\");\n Toast.makeText(getApplicationContext(), getString(R.string.gt_kemik_error_connection), Toast.LENGTH_LONG).show();\n }\n });\n //DO HTTP REQUEST\n VolleyController.getmInstance(getApplicationContext()).addToRequestQueque(request);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String dni = request.getParameter(\"dni\");\n String nombres = request.getParameter(\"nombres\");\n String apellido = request.getParameter(\"apellido\");\n //String fechaNacimiento = request.getParameter(\"fechaNacimiento\");\n LocalDate fechaNacimiento = LocalDate.parse(request.getParameter(\"fechaNacimiento\"));\n \n String direccion = request.getParameter(\"direccion\");\n String cargo = request.getParameter(\"cargo\");\n int usuario = Integer.parseInt(request.getParameter(\"usuario\"));\n \n //DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n //LocalDate date = LocalDate.parse(fechaNacimiento, formatter);\n \n //LLamamos a la controladora de la Logica\n EmpleadoControladora controlEmpleado = new EmpleadoControladora();\n if (usuario != 0 ){\n controlEmpleado.crearEmpleado(dni, nombres, apellido, fechaNacimiento, direccion, cargo, usuario);\n } else {\n controlEmpleado.crearEmpleadoSinUser(dni, nombres, apellido, fechaNacimiento, direccion, cargo);\n }\n \n //Armamos la redireccion\n response.sendRedirect(\"SvEmpleadoList\");\n }",
"@Override\n public Type getType() {\n return Type.TypeRequest;\n }",
"private void sendPost() {\n Map<String,Object> values = new HashMap<>();\n values.put(Constants.MANAGEMENT,management);\n values.put(Constants.GENERAL_INFORMATION,generalnformation);\n values.put(Constants.SYMPTOMS,symptoms);\n\n FireBaseUtils.mDatabaseDiseases.child(caseStudyUrl).child(url).updateChildren(values);\n Toast.makeText(DiseaseEditActivity.this, \"Item Posted\",LENGTH_LONG).show();\n finish();\n }",
"@Override\n public String getServletInfo() {\n return \"Servet to handle creation of new posts\";\n }",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"public String getEventType()\r\n {\r\n return eventType;\r\n }",
"public Evento getEvento() { \n\t\t Evento evento = new Evento();\n\t\t List<Prenda> Lprendas = new ArrayList<Prenda>();\n\t\t Sugerencia sug = new Sugerencia();\n\t Prenda prend = new Prenda();\n Categoria categoria = new Categoria();\n\n categoria.setCodCategoria(1);\n categoria.setDescripcion(\"Zapatillas\");\n TipoPrenda tp = new TipoPrenda();\n tp.setDescripcion(\"lalal\");\n tp.setCategoria(categoria);\n tp.setCodTipoPrenda(1);\n \n \n Guardarropa guard = new Guardarropa();\n guard.setCompartido(false);\n guard.setDescripcion(\"guardarropa\");\n guard.setId(0); \n prend.setGuardarropa(guard);\n prend.setColorPrimario(\"rojo\");\n prend.setTipoPrenda(tp);\n prend.setColorSecundario(\"azul\");\n prend.setDescripcion(\"prenda 1\");\n prend.setNumeroDeCapa(EnumCapa.Primera);\n \tfor( int i = 0 ; i <= 4; i++) {\n prend.setCodPrenda(i);\n\t\t\tLprendas.add(prend);\t\t\t\n\t\t}\n \tsug.setIdSugerencia(1);\n \tsug.setMaxCapaInferior(0);\n \tsug.setMaxCapaSuperior(2);\t\n \tsug.setUsuario(new Usuario());\n \tsug.setListaPrendasSugeridas(Lprendas);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n\n \t return evento;\n\t }",
"void post(T modelDTO);",
"protected void agregarUbicacion(){\n\n\n\n }",
"public void handle(Object e){\n\t\tif(e.getClass().equals(GetResultRequestEvent.class)){\n\t\t\tgetResults((GetResultRequestEvent)e);\n\t\t}else if(e.getClass().equals(RefreshAllDataEvent.class)){\n\t\t\ttf.getData(app);\n\t\t}else if(e.getClass().equals(ExportDataEvent.class)){\n\t\t\ttf.exportItemDB();\n\t\t}\n\t}",
"public void setEventType(String eventType)\n {\n this.eventType = eventType;\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Handle(method = HttpMethod.POST, path = \"/body\")\n void post(@Handle.Body String one, @Handle.Body String two, @Handle.Body String three);"
] |
[
"0.57423306",
"0.57258934",
"0.56597126",
"0.56238604",
"0.5580403",
"0.55732363",
"0.55540663",
"0.55253345",
"0.5501802",
"0.5384649",
"0.5298116",
"0.52882504",
"0.5259346",
"0.5259346",
"0.5227408",
"0.5182309",
"0.5178425",
"0.5165092",
"0.51641726",
"0.5110971",
"0.5077668",
"0.50687075",
"0.50615406",
"0.50580966",
"0.5055573",
"0.50543284",
"0.5032068",
"0.50300574",
"0.50240606",
"0.500334",
"0.49976623",
"0.49947363",
"0.4992546",
"0.49548268",
"0.49542788",
"0.49481502",
"0.49474645",
"0.49447387",
"0.49360716",
"0.4928659",
"0.4925102",
"0.49226278",
"0.4919778",
"0.4919203",
"0.4909904",
"0.49078867",
"0.49008602",
"0.48978364",
"0.48978364",
"0.48977605",
"0.48271525",
"0.4825183",
"0.48226213",
"0.480173",
"0.4801082",
"0.47966266",
"0.47838005",
"0.47824824",
"0.4763334",
"0.47614864",
"0.4754833",
"0.4751669",
"0.47377396",
"0.47356308",
"0.47345057",
"0.47315505",
"0.47280294",
"0.47219312",
"0.4703066",
"0.4701764",
"0.4700414",
"0.4697793",
"0.4696852",
"0.46928173",
"0.46925548",
"0.46912086",
"0.4680058",
"0.46662003",
"0.466318",
"0.46615058",
"0.46614528",
"0.46589166",
"0.4657889",
"0.46578014",
"0.46559137",
"0.4653362",
"0.465265",
"0.46512946",
"0.46463248",
"0.46446174",
"0.46440068",
"0.463997",
"0.46357012",
"0.46293747",
"0.46223518",
"0.462063",
"0.4619069",
"0.46114033",
"0.46114033",
"0.46112174"
] |
0.48343214
|
50
|
Fill board with shuffled integers in range from 0 to 15
|
public void fillBoard() {
List<Integer> fifteen = ArrayUtils.intArrayToList(SOLVED_BOARD);
Collections.shuffle(fifteen, this.random);
this.emptyTileIndex = fifteen.indexOf(0);
this.matrix = fifteen.stream().mapToInt(i -> i).toArray();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n boardMapper.put(7, new int[]{2, 0});\n boardMapper.put(8, new int[]{2, 1});\n boardMapper.put(9, new int[]{2, 2});\n\n }",
"public static void populate() {\n for (int i = 1; i <= 15; i++) {\n B.add(i);\n Collections.shuffle(B);\n\n }\n for (int i = 16; i <= 30; i++) {\n I.add(i);\n Collections.shuffle(I);\n }\n for (int n = 31; n <= 45; n++) {\n N.add(n);\n Collections.shuffle(N);\n }\n for (int g = 46; g <= 60; g++) {\n G.add(g);\n Collections.shuffle(G);\n }\n for (int o = 61; o <= 75; o++) {\n O.add(o);\n Collections.shuffle(O);\n }\n\n for (int i = 1; i <= 75; i++) {\n roll.add(i); // adds the numbers in the check list\n }\n }",
"private void generateBoardLayout() {\n Collections.shuffle(availableDice);\n List<GameCube> row1 = Arrays.asList(availableDice.get(0), availableDice.get(1), availableDice.get(2), availableDice.get(3));\n List<GameCube> row2 = Arrays.asList(availableDice.get(4), availableDice.get(5), availableDice.get(6), availableDice.get(7));\n List<GameCube> row3 = Arrays.asList(availableDice.get(8), availableDice.get(9), availableDice.get(10), availableDice.get(11));\n List<GameCube> row4 = Arrays.asList(availableDice.get(12), availableDice.get(13), availableDice.get(14), availableDice.get(15));\n board = new ArrayList<>();\n board.add(0, row1);\n board.add(1, row2);\n board.add(2, row3);\n board.add(3, row4);\n }",
"private void generateBoard(){\n\t}",
"public void genNewGame() {\n Random rand = new Random();\n int num = 0;\n\n int[] row = new int[9];\n\n for (int i = 0; i < 9; i++) {\n while (isInRow(row, num)) {\n num = rand.nextInt(9) + 1;\n }\n row[i] = num;\n }\n\n setRow(board, row, 0);\n shiftRow(row, 3);\n setRow(board, row, 1);\n shiftRow(row, 3);\n setRow(board, row, 2);\n\n shiftRow(row, 1);\n setRow(board, row, 3);\n shiftRow(row, 3);\n setRow(board, row, 4);\n shiftRow(row, 3);\n setRow(board, row, 5);\n\n shiftRow(row, 1);\n setRow(board, row, 6);\n shiftRow(row, 3);\n setRow(board, row, 7);\n shiftRow(row, 3);\n setRow(board, row, 8);\n\n }",
"private void fillBoard() {\n\t\tint randomRow, randomColumn;\n\t\t\n\t\tfor (int i = 0; i < bombs; ++i) {\n\t\t\trandomRow = (int)(Math.random() * rows);\n\t\t\trandomColumn = (int)(Math.random() * columns);\n\t\t\tboard[randomRow][randomColumn] = -1;\n\t\t}\n\t\t\n\t\tfor (int r = 0; r < rows; ++r) {\n\t\t\tfor (int c = 0; c < columns; ++c) {\n\t\t\t\tif (board[r][c] == -1) {\n\t\t\t\t\tincreaseFreeCells(r, c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"static void fillWithRandomColors() {\n\n for ( int row = 0; row < ROWS; row++ ) {\n for ( int column = 0; column < COLUMNS; column++ ) {\n changeToRandomColor( row, column );\n }\n }\n }",
"void generateBoard(){\r\n rearrangeSolution();\r\n makeInitial();\r\n }",
"private void board() {\r\n\t\tfor (int n = 0; n < ROW; n++) {\r\n\t\t\tfor (int m = 0; m < COL; m++) {\r\n\t\t\t\tboard[n][m] = 'X';\r\n\t\t\t}\r\n\t\t}\r\n\t\tturnRemaining = 42;\r\n\t}",
"public void randomize(){\r\n int random = (int) (Math.random()*36);\r\n for(int i = 0;i<7;i++){\r\n for(int j = 0;j<36;j++){\r\n temparray[1] = gameBoard[random];\r\n temparray[2] = gameBoard[j];\r\n gameBoard[j] = temparray[1];\r\n gameBoard[random] = temparray[2];\r\n \r\n }\r\n }\r\n \r\n }",
"void setRandomNumbersUp() {\n\t\tInteger[] numbers = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n\t\tInteger[] numbers2 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};\n\t\tList<Integer> numsList = Arrays.asList(numbers);\n\t\tCollections.shuffle(numsList);\n\t\tList<Integer> numsList2 = Arrays.asList(numbers2);\n\t\tCollections.shuffle(numsList2);\n\t\tList<Integer> combinedList = Stream.of(numsList, numsList2).flatMap(Collection::stream).collect(Collectors.toList());\n\t\t\n\t\t\n\t\tint counter = 0;\n\t\tfor (Node node : SquaresBoard.getChildren()) {\n\t\t\n\t\t\tif (node instanceof Label) {\n\t\t\t\t((Label) node).setText(combinedList.get(counter).toString());\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t\t\n\t}",
"void generateNewBoard() {\n createAvailableDice();\n\n // Add them to board\n generateBoardLayout();\n }",
"private void createRandomGame() {\n ArrayList<int[]> usedCoordinates = new ArrayList<>();\n\n // make sure the board is empty\n emptyBoard();\n\n //find different coordinates\n while (usedCoordinates.size() < 25) {\n int[] temp = new int[]{randomNumberGenerator.generateInteger(size), randomNumberGenerator.generateInteger(size)};\n\n // default contains(arraylist) doesn't work because it compares hashcodes\n if (! contains(usedCoordinates, temp)) {\n usedCoordinates.add(temp);\n }\n }\n\n for (int[] usedCoordinate : usedCoordinates) {\n board.setSquare(usedCoordinate[0], usedCoordinate[1], randomNumberGenerator.generateInteger(size) + 1);\n }\n\n //save start locations\n startLocations = usedCoordinates;\n }",
"public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}",
"public void initLogicBoard() {\n int numOfBombs = 0;\n while (numOfBombs<bombs) {\n int randX = (int) (Math.random() * (rows - 1));\n int randY = (int) (Math.random() * (cols - 1));\n if (allTiles[randX][randY].getType() != 10) {\n allTiles[randX][randY].setType(10);\n\n for (int m = randX - 1; m <= randX + 1; m++) {\n for (int n = randY - 1; n <= randY + 1; n++) {\n if ((m < rows && n < cols) && (m >= 0 && n >= 0)) {\n if (allTiles[m][n].getType() != 10)\n allTiles[m][n].setType(allTiles[m][n].getType() + 1);\n }\n }\n }\n numOfBombs++;\n\n }\n }\n }",
"public void shuffle(){\n\t\tfor(int i=0;i<1000||blank!=9;i++){\r\n\t\t\tif \t\t(blank == 1) shuffleAux(2,4,0,0,2);\t\t\t\t\r\n\t\t\telse if (blank == 2) shuffleAux(1,3,5,0,3);\r\n\t\t\telse if (blank == 3) shuffleAux(2,6,0,0,2);\r\n\t\t\telse if (blank == 4) shuffleAux(1,5,7,0,3);\t\t\t\r\n\t\t\telse if (blank == 5) shuffleAux(2,4,6,8,4);\r\n\t\t\telse if (blank == 6) shuffleAux(3,5,9,0,3);\r\n\t\t\telse if (blank == 7) shuffleAux(4,8,0,0,2);\t\t\t\r\n\t\t\telse if (blank == 8) shuffleAux(5,7,9,0,3);\r\n\t\t\telse if (blank == 9) shuffleAux(6,8,0,0,2);\r\n\t\t}\r\n\t}",
"public void fillTheBoard() {\n for (int i = MIN; i <= MAX; i++) {\n for (int j = MIN; j <= MAX; j++) {\n this.getCells()[i][j] = new Tile(i, j, false);\n }\n }\n }",
"static void fillArray(int[] array) {\n\t\tint i = 0;\r\n\t\tint number = 1;\r\n\t\twhile (i < array.length) {\r\n\t\t\tif ((int) Math.floor(Math.random() * Integer.MAX_VALUE) % 2 == 0) {\r\n\t\t\t\tnumber = number + (int) Math.floor(Math.random() * 5);\r\n\t\t\t\tarray[i] = number;\r\n\r\n\t\t\t} else {\r\n\t\t\t\tnumber++;\r\n\t\t\t\tarray[i] = number;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}",
"public void generateNewBoardAfterWin() {\n if(appleCount % 15 == 0) {\n System.out.println(\"CONGRATULATIONS YOU HAVE PASSED THE MAGICAL NUMBER OF: \" + appleCount);\n System.out.println(\"THIS MEANS YOU GET TO GO TO A NEW BOARD AND CONTINUE YOUR GAME - ENJOY!\");\n snakePartList.clear();\n snakeEnemyPartList.clear();\n SnakePartMaxID = 0;\n startSnake();\n }\n }",
"public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}",
"private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }",
"public void shuffle() {\n\t\t\n\t\tRandom random = new Random();\n\t\tint position;\n\t\t\n\t\tfor(int i = 0; i < 200 * dimension; i++) {\n\t\t\tposition = random.nextInt(numTiles - 1);\n\t\t\tif(isValidMove(position)) {\n\t\t\t\tmakeMove(position);\n\t\t\t}\n\t\t}\n\t\t\n\t\tnumMoves = 0;\n\t}",
"public void shuffle(){\r\n int randomPos;\r\n //for each card in the deck\r\n for(int i=0; i<52; i++){\r\n randomPos = getRandomPos(i);\r\n exchangeCards(i, randomPos);\r\n }\r\n topCardIndex = 0;\r\n\t}",
"private GamePiece[][] initBoard(int rows, int cols, Random rand) {\n gameBoard = new GamePiece[rows][cols];\n curPlayerRow = 0;\n curPlayerCol = 0;\n for(int i = 0; i < rows; i++){\n for(int j = 0; j < cols; j++){\n gameBoard[i][j] = new EmptyPiece();\n }\n }\n gameBoard[0][0] = new PlayerPiece(INIT_PLAYER_POINTS);\n curTrollRow = getRandTrollRow(rand, rows);\n curTrollCol = getRandTrollCol(rand, cols);\n while(curTrollRow == 7 && curTrollCol == 9){\n curTrollRow = getRandTrollRow(rand, rows);\n curTrollCol = getRandTrollCol(rand, cols);\n }\n gameBoard[curTrollRow][curTrollCol] = new TrollPiece();\n gameBoard[7][9] = new TreasurePiece(TREASURE_POINTS);\n return gameBoard;\n }",
"protected void fillBoard(Color playerColor)\n {\n for(int i = 0; i < 9; i++)\n this.setSquare(i, playerColor);\n }",
"public void initializeBoard() {\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tthis.board[i] = \"-\";\n\n\t\t}\n\n\t}",
"public boolean fillGrid(int[][] grid) {\n Integer[] intArray = {1, 2, 3, 4, 5, 6, 7, 8, 9};\n\n //Find unfilled cell and fill it.\n for (int i = 0; i < 81; i++) {\n int row = i / 9;\n int col = i % 9;\n if (grid[row][col] == 0) {\n\n //Shuffle collection\n List<Integer> intList = Arrays.asList(intArray);\n Collections.shuffle(intList);\n Integer[] numbers = intList.toArray(intArray);\n for (int j = 0; j < numbers.length; j++) {\n\n //Test Row to see if it contains the value\n if (!Arrays.asList(grid[row][0], grid[row][1], grid[row][2], \n \t\tgrid[row][3], grid[row][4], grid[row][5], grid[row][6], \n \t\tgrid[row][7], grid[row][8]).contains(numbers[j])) {\n\n //Test Column to see if it contains the value\n if (!Arrays.asList(grid[0][col],grid[1][col],grid[2][col],\n \t\tgrid[3][col],grid[4][col],grid[5][col],grid[6][col],\n \t\tgrid[7][col],grid[8][col]).contains(numbers[j])) {\n\n //Test squares to see if they contain value\n int[] testsquare;\n if (row < 3) {\n if (col < 3) {\n testsquare = testSection(grid, 3, 3, 0, 0);\n } else if (col < 6){\n testsquare = testSection(grid, 3, 6, 0, 3);\n } else {\n testsquare = testSection(grid, 3, 9, 0, 6);\n }\n } else if (row < 6){\n if (col < 3) {\n testsquare = testSection(grid, 6, 3, 3, 0);\n } else if (col < 6) {\n testsquare = testSection(grid, 6, 6, 3, 3);\n } else {\n testsquare = testSection(grid, 6, 9, 3, 6);\n }\n } else {\n if (col < 3) {\n testsquare = testSection(grid, 9, 3, 6, 0);\n } else if (col < 6) {\n testsquare = testSection(grid, 9, 6, 6, 3);\n } else {\n testsquare = testSection(grid, 9, 9, 6, 6);\n }\n }\n if (!Arrays.asList(testsquare[0], testsquare[1], testsquare[2], testsquare[3], testsquare[4],\n testsquare[5], testsquare[6], testsquare[7], testsquare[8]).contains(numbers[j])) {\n grid[row][col] = numbers[j];\n if (isFull(grid))\n return true;\n else if (fillGrid(grid))\n break;\n }\n }\n }\n }\n break;\n }\n }\n return false;\n }",
"private void shuffle() {\n\t\tint[] temp = new int[ROW];\n\t\tint row, col, decider, indexToSwapWith;\n\n\t\t// Shuffle as many we want.\n\t\tfor (int i = 0; i < SHUFFLE; i++) {\n\t\t\t// Decide which line to shuffle (ex. row or column).\n\t\t\tdecider = rand.nextInt(2);\n\n\t\t\tif (decider == 0) { // Swaps row.\n\t\t\t\trow = rand.nextInt(9);\n\n\t\t\t\tif (row < 3) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\n\t\t\t\t\t// Decides row to swap with.\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else if (row < 6) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\n\t\t\t\t\twhile (indexToSwapWith == row) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int j = 0; j < ROW; j++) {\n\t\t\t\t\t\ttemp[j] = answer[row][j];\n\t\t\t\t\t\tanswer[row][j] = answer[indexToSwapWith][j];\n\t\t\t\t\t\tanswer[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[row][j];\n\t\t\t\t\t\tproblem[row][j] = problem[indexToSwapWith][j];\n\t\t\t\t\t\tproblem[indexToSwapWith][j] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcol = rand.nextInt(9);\n\n\t\t\t\tif (col < 3) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3);\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else if (col < 6) {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 3;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\n\t\t\t\t\t// Decides column to swap with.\n\t\t\t\t\twhile (indexToSwapWith == col) {\n\t\t\t\t\t\tindexToSwapWith = rand.nextInt(3) + 6;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Swap\n\t\t\t\t\tfor (int j = 0; j < COLUMN; j++) {\n\t\t\t\t\t\ttemp[j] = answer[j][col];\n\t\t\t\t\t\tanswer[j][col] = answer[j][indexToSwapWith];\n\t\t\t\t\t\tanswer[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t\ttemp[j] = problem[j][col];\n\t\t\t\t\t\tproblem[j][col] = problem[j][indexToSwapWith];\n\t\t\t\t\t\tproblem[j][indexToSwapWith] = temp[j];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private int[][] makeBoard() {\r\n int[][] gridBoard = new int[gridSize][gridSize];\r\n int remainingPlacedBombs = numBombs;\r\n \r\n for (int i = 0; i < gridBoard.length; i++) {\r\n for (int j = 0; j < gridBoard[i].length; j++) {\r\n gridBoard[i][j] = 0;\r\n }\r\n } \r\n while (remainingPlacedBombs > 0) {\r\n int row = (int) (Math.random() * gridSize);\r\n int col = (int) (Math.random() * gridSize);\r\n if (gridBoard[row][col] == 0) {\r\n gridBoard[row][col] = 1;\r\n remainingPlacedBombs--;\r\n } \r\n } \r\n return gridBoard;\r\n }",
"public void initializeBoard() {\r\n int x;\r\n int y;\r\n\r\n this.loc = this.userColors();\r\n\r\n this.board = new ArrayList<ACell>();\r\n\r\n for (y = -1; y < this.blocks + 1; y += 1) {\r\n for (x = -1; x < this.blocks + 1; x += 1) {\r\n ACell nextCell;\r\n\r\n if (x == -1 || x == this.blocks || y == -1 || y == this.blocks) {\r\n nextCell = new EndCell(x, y);\r\n } else {\r\n nextCell = new Cell(x, y, this.randColor(), false);\r\n }\r\n if (x == 0 && y == 0) {\r\n nextCell.flood();\r\n }\r\n this.board.add(nextCell);\r\n }\r\n }\r\n this.stitchCells();\r\n this.indexHelp(0, 0).floodInitStarter();\r\n }",
"public Board()\n {\n ArrayList<String[]> dies = new ArrayList<String[]>();\n dies.add(Die0);\n dies.add(Die1);\n dies.add(Die2);\n dies.add(Die3);\n dies.add(Die4);\n dies.add(Die5);\n dies.add(Die6);\n dies.add(Die7);\n dies.add(Die8);\n dies.add(Die9);\n dies.add(Die10);\n dies.add(Die11);\n dies.add(Die12);\n dies.add(Die13);\n dies.add(Die14);\n dies.add(Die15);\n \n \n \n Random rand = new Random();\n int a = rand.nextInt(16);\n int b = rand.nextInt(15);\n int c = rand.nextInt(14);\n int d = rand.nextInt(13);\n int e = rand.nextInt(12);\n int f = rand.nextInt(11);\n int g = rand.nextInt(10);\n int h = rand.nextInt(9);\n int i = rand.nextInt(8);\n int j = rand.nextInt(7);\n int k = rand.nextInt(6);\n int l = rand.nextInt(5);\n int m = rand.nextInt(4);\n int n = rand.nextInt(3);\n int o = rand.nextInt(2);\n int p = rand.nextInt(1);\n row0.add(new Tile(dies.get(a)[rand.nextInt(6)].charAt(0),0,0));\n dies.remove(a);\n row0.add(new Tile(dies.get(b)[rand.nextInt(6)].charAt(0),0,1));\n dies.remove(b);\n row0.add(new Tile(dies.get(c)[rand.nextInt(6)].charAt(0),0,2));\n dies.remove(c);\n row0.add(new Tile(dies.get(d)[rand.nextInt(6)].charAt(0),0,3));\n dies.remove(d);\n row1.add(new Tile(dies.get(e)[rand.nextInt(6)].charAt(0),1,0));\n dies.remove(e);\n row1.add(new Tile(dies.get(f)[rand.nextInt(6)].charAt(0),1,1));\n dies.remove(f);\n row1.add(new Tile(dies.get(g)[rand.nextInt(6)].charAt(0),1,2));\n dies.remove(g);\n row1.add(new Tile(dies.get(h)[rand.nextInt(6)].charAt(0),1,3));\n dies.remove(h);\n row2.add(new Tile(dies.get(i)[rand.nextInt(6)].charAt(0),2,0));\n dies.remove(i);\n row2.add(new Tile(dies.get(j)[rand.nextInt(6)].charAt(0),2,1));\n dies.remove(j);\n row2.add(new Tile(dies.get(k)[rand.nextInt(6)].charAt(0),2,2));\n dies.remove(k);\n row2.add(new Tile(dies.get(l)[rand.nextInt(6)].charAt(0),2,3));\n dies.remove(l);\n row3.add(new Tile(dies.get(m)[rand.nextInt(6)].charAt(0),3,0));\n dies.remove(m);\n row3.add(new Tile(dies.get(n)[rand.nextInt(6)].charAt(0),3,1));\n dies.remove(n);\n row3.add(new Tile(dies.get(o)[rand.nextInt(6)].charAt(0),3,2));\n dies.remove(o);\n row3.add(new Tile(dies.get(p)[rand.nextInt(6)].charAt(0),3,3));\n dies.remove(p);\n tiles.add(row0);\n tiles.add(row1);\n tiles.add(row2);\n tiles.add(row3);\n \n }",
"public void generaBuits() {\r\n\r\n //FIX PARA EL OUT OF BOUNDS DE la columna 9 \r\n //int cellId = randomGenerator(N*N) - 1;\r\n //QUITAR \r\n //if (j != 0)\r\n //j = j - 1;\r\n int count = K;\r\n while (count != 0) {\r\n int cellId = generadorAleatoris(N * N) - 1;\r\n\r\n //System.out.println(cellId); \r\n // extract coordinates i and j \r\n int i = (cellId / N);\r\n int j = cellId % 9;\r\n\r\n // System.out.println(i+\" \"+j); \r\n if (mat[i][j] != 0) {\r\n count--;\r\n mat[i][j] = 0;\r\n }\r\n }\r\n }",
"public void setBoard() {\n for (int i = 0; i < 10 ; i++) {\n board[i] = coordinator.holes[i].getNumberOfMarbleBalls();\n }\n }",
"public void resetGame(){\n initBoard(ROWS, COLS, rand);\n }",
"private void permutateDigits(){\r\n List<Integer> digits = new ArrayList<Integer>();\r\n for (int dig = 1; dig < 10; dig++)\r\n digits.add(dig);\r\n Collections.shuffle(digits);\r\n for (int row = 0; row < 9; row++)\r\n for (int col = 0; col < 9; col++)\r\n solution[row][col] = digits.get(solution[row][col]-1);\r\n }",
"public static void createBoard() {\n Checkers[] CheckerBoard = new Checkers[24];\n CheckerBoard[0] = new Checkers(0,1,\"black\");\n CheckerBoard[1] = new Checkers(0,3,\"black\");\n CheckerBoard[2] = new Checkers(0,5,\"black\");\n CheckerBoard[3] = new Checkers(0,7,\"black\");\n CheckerBoard[4] = new Checkers(1,0,\"black\");\n CheckerBoard[5] = new Checkers(1,2,\"black\");\n CheckerBoard[6] = new Checkers(1,4,\"black\");\n CheckerBoard[7] = new Checkers(1,6,\"black\");\n CheckerBoard[8] = new Checkers(2,1,\"black\");\n CheckerBoard[9] = new Checkers(2,3,\"black\");\n CheckerBoard[10] = new Checkers(2,5,\"black\");\n CheckerBoard[11] = new Checkers(2,7,\"black\");\n CheckerBoard[12] = new Checkers(5,1,\"red\");\n CheckerBoard[13] = new Checkers(5,3,\"red\");\n CheckerBoard[14] = new Checkers(5,5,\"red\");\n CheckerBoard[15] = new Checkers(5,7,\"red\");\n CheckerBoard[16] = new Checkers(6,0,\"red\");\n CheckerBoard[17] = new Checkers(6,2,\"red\");\n CheckerBoard[18] = new Checkers(6,4,\"red\");\n CheckerBoard[19] = new Checkers(6,6,\"red\");\n CheckerBoard[20] = new Checkers(7,1,\"red\");\n CheckerBoard[21] = new Checkers(7,3,\"red\");\n CheckerBoard[22] = new Checkers(7,5,\"red\");\n CheckerBoard[23] = new Checkers(7,7,\"red\");\n\n\n\n }",
"public void shuffleDeck() {\n\t\tint numberOfShuffles = (int) ( Math.random() * 4 + 1 ) ;\n\t\tCard temp;\n\t\t\n\t\tfor( int j = 0; j < numberOfShuffles; j++ ) {\n\t\t\tfor( int i = 0; i < deck.length; i++ ) {\n\t\t\t\tint randSwitchNum = (int) (Math.random() * 52);\n\t\t\t\ttemp = deck[i];\n\t\t\t\tdeck[i] = deck[randSwitchNum];\n\t\t\t\tdeck[randSwitchNum] = temp;\n\t\t\t}\n\t\t}\t\n\t}",
"public void initializeGameboard() {\r\n\t\t\r\n\t\t for (int row=0 ; row<gameBoard.length; row++)\r\n\t\t { \r\n\t\t \t \r\n\t\t \t for(int column=0;column<gameBoard[row].length;column++ )\t \r\n\t\t \t { \r\n\t\t \t\t if( row==0|| row ==1)\r\n\t\t \t\t { \r\n\t\t \t\t\t if (column==0) {gameBoard[row][column]=\"2\";}\r\n\t\t \t\t\t else if (column==1) {gameBoard[row][column]=\"3\";}\t \r\n\t\t \t\t\t else if (column==2) {gameBoard[row][column]=\"4\";} \r\n\t\t \t\t\t else if (column==3) {gameBoard[row][column]=\"5\";} \r\n\t\t \t\t\t else if (column==4) {gameBoard[row][column]=\"6\";} \r\n\t\t \t\t\t else if (column==5) {gameBoard[row][column]=\"7\";}\r\n\t\t \t\t\t else if (column==6) {gameBoard[row][column]=\"8\";} \r\n\t\t \t\t\t else if (column==7) {gameBoard[row][column]=\"9\";}\r\n\t\t \t\t\t else if (column==8) {gameBoard[row][column]=\"10\";} \r\n\t\t \t\t\t else if (column==9) {gameBoard[row][column]=\"11\";} \r\n\t\t \t\t\t else if (column==10) {gameBoard[row][column]=\"12\";} \r\n\t\t \t\t }\r\n\t\t \t\t \r\n\t\t\t \t else if(row ==2 || row==3) \r\n\t\t\t \t {\r\n\t\t\t \t\t if (column==0) {gameBoard[row][column]=\"12\";}\r\n\t\t \t\t\t else if (column==1) {gameBoard[row][column]=\"11\";}\t \r\n\t\t \t\t\t else if (column==2) {gameBoard[row][column]=\"10\";} \r\n\t\t \t\t\t else if (column==3) {gameBoard[row][column]=\"9\";} \r\n\t\t \t\t\t else if (column==4) {gameBoard[row][column]=\"8\";} \r\n\t\t \t\t\t else if (column==5) {gameBoard[row][column]=\"7\";}\r\n\t\t \t\t\t else if (column==6) {gameBoard[row][column]=\"6\";} \r\n\t\t \t\t\t else if (column==7) {gameBoard[row][column]=\"5\";}\r\n\t\t \t\t\t else if (column==8) {gameBoard[row][column]=\"4\";} \r\n\t\t \t\t\t else if (column==9) {gameBoard[row][column]=\"3\";} \r\n\t\t \t\t\t else if (column==10) {gameBoard[row][column]=\"2\";} \r\n\t\t\t \t }\r\n\t\t }\r\n\t\t }\r\n\t }",
"public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }",
"public void populateArray()\n { \n Random rand = new Random(); // calling random class to generate random numbers\n randInt = new int[this.getWidth()]; // initializing array to its panel width\n rand.setSeed(System.currentTimeMillis());\n for(int i = 0; i < this.getWidth();i++) // assigning the random values to array \n {\n randInt[i] = rand.nextInt(this.getHeight() -1) + 1;\n }\n this.repaint(); // calling paint method\n }",
"private void fillBoard() {\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tboard[i] = ' ';\n\t\t}\n\t\tfor (int i = 0; i < isFree.length; i++) {\n\t\t\tisFree[i] = true;\n\t\t}\n\t}",
"public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }",
"public void spreadShuffle()\r\n {\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck = null;\r\n for (int i = 0; i < SHUFFLE_COUNT; i++) {\r\n while (cards.size() > 0)\r\n {\r\n shuffledDeck.add( drawRandom() );\r\n }\r\n tempDeck = cards;\r\n cards = shuffledDeck;\r\n tempDeck.clear();\r\n shuffledDeck = tempDeck;\r\n }\r\n }",
"private void updateShuffleboard()\n {\n }",
"public static void initialiseGameBoard(){\n\n for ( int row = 0 ; row < 6 ; row++ ){\n for ( int column = 0 ; column < 7 ; column++ ){\n gameBoard[row][column] = \"-\";\n }\n }\n }",
"public static void fill(int[] array,int start,int ende){\n\tfor (int c=0; c<array.length; c++){\r\n\t\tRandom rand = new Random(); \r\n\t\tarray[c] = rand.nextInt(ende+1-start) + start;\r\n\t}\r\n\tSystem.out.print(\"\\n\");\r\n}",
"public void resetBoard(){\n totalmoves = 0;\n this.board = new Cell[3][3];\n //fill the board with \"-\"\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board[i][j]=new Cell(new Coordinates(i,j), \"-\");\n }\n }\n }",
"private void setRandomColors() {\n for(int i = 0; i< noOfColumns; i++) {\n for (int j = 0; j< noOfRows; j++) {\n if(cards[i][j].getCardState() != CardState.MATCHED){\n int randomNumber = (int) (Math.random()*4);\n cards[i][j].setColor(colors[randomNumber]);\n }\n }\n }\n }",
"static void fill(int[] array)\n\t{\n\t\tRandom r = new Random();\n\t\tfor(int i = 0; i < array.length; i++)\n\t\t{\n\t\t\tarray[i] = r.nextInt(100);\n\t\t}\n\t}",
"public int[] setUpBoard(int noOfPlayers)\r\n\t{\r\n\t\tswitch(noOfPlayers)\r\n\t\t{\r\n\t\t//One player\r\n\t\tcase 1:\r\n\t\t\tfillTriangle(-1, board, 1, 16, 12);\r\n\t\t\treturn new int[] {1};\r\n\t\t//Two players opposite to one another\r\n\t\tcase 2:\r\n\t\t\tfillTriangle(-1, board, 1, 16, 12);\r\n\t\t\tfillTriangle(1, board, 4, 0, 4);\r\n\t\t\treturn new int[] {1,4};\r\n\t\t//Three players arranged in a triangle\r\n\t\tcase 3:\r\n\t\t\tfillTriangle(1, board, 2, 9, 13);\r\n\t\t\tfillTriangle(1, board, 4, 0, 4);\r\n\t\t\tfillTriangle(1, board, 6, 9, 4);\r\n\t\t\treturn new int[] {2,4,6};\r\n\t\t//Four players with two empty spots opposite from one another\r\n\t\tcase 4:\r\n\t\t\tfillTriangle(1, board, 2, 9, 13);\r\n\t\t\tfillTriangle(-1, board, 3, 7, 12);\r\n\t\t\tfillTriangle(-1, board, 5, 7, 3);\r\n\t\t\tfillTriangle(1, board, 6, 9, 4);\r\n\t\t\treturn new int[] {2,3,5,6};\r\n\t\t//Five players\r\n\t\tcase 5:\r\n\t\t\tfillTriangle(-1, board, 1, 16, 12);\r\n\t\t\tfillTriangle(1, board, 2, 9, 13);\r\n\t\t\tfillTriangle(-1, board, 3, 7, 12);\r\n\t\t\tfillTriangle(1, board, 4, 0, 4);\r\n\t\t\tfillTriangle(-1, board, 5, 7, 3);\r\n\t\t\treturn new int[] {1,2,3,4,5};\r\n\t\t//All six positions occupied by players\r\n\t\tdefault:\r\n\t\t\tfillTriangle(-1, board, 1, 16, 12);\r\n\t\t\tfillTriangle(1, board, 2, 9, 13);\r\n\t\t\tfillTriangle(-1, board, 3, 7, 12);\r\n\t\t\tfillTriangle(1, board, 4, 0, 4);\r\n\t\t\tfillTriangle(-1, board, 5, 7, 3);\r\n\t\t\tfillTriangle(1, board, 6, 9, 4);\r\n\t\t\treturn new int[] {1,2,3,4,5,6};\r\n\t\t}\r\n\t}",
"public static void resetBoard() {\n\t\tfor (int i = 0; i<3; i++) {\n\t\t\tfor (int j = 0; j<3; j++) {\n\t\t\t\tboard[i][j] = '_';\n\t\t\t}\n\t\t}\n\t\tprintBoard();\n\t}",
"private void initialiseBoard() {\n boardStringArr = new ArrayList<>(16);\n for (int i = 0; i < 16; i++) {\n boardStringArr.add(\"\");\n }\n int randFirstIndex = rand.nextInt(16);\n int randSecondIndex = (randFirstIndex + 5 )% 16;\n boardStringArr.set(randFirstIndex, \"2\");\n boardStringArr.set(randSecondIndex, \"2\");\n\n TextView te = (TextView) gvBoard.getChildAt(randFirstIndex);// !! not a correct way of initialising a view\n TextView te2 = (TextView) gvBoard.getChildAt(randSecondIndex);// !! not a correct way of initialising a view\n te.setText(\"2\");\n te2.setText(\"2\");\n }",
"void makeBoard(int[] values) {\n int c = 0;\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n if (values[c] == 0) {\n blankRow = i;\n blankCol = j;\n }\n board[i][j] = values[c++];\n }\n }\n this.rank = setRank();\n }",
"public void reset() {\n\t board = new int[]{1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0,\n 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0,\n 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 2, 2, 2, 2};\n\t currentPlayer = 1;\n\t turnCount = 0;\n\t for (int i=0; i<81; i++) {\n\t \n\t\t hash ^= rand[3*i+board[i]]; //row-major order\n\t \n\t }\n }",
"private Board create4by4Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 4);\n Tile t2 = new Tile(1, 4);\n Tile t3 = new Tile(2, 4);\n Tile t4 = new Tile(3, 4);\n Tile t5 = new Tile(4, 4);\n Tile t6 = new Tile(5, 4);\n Tile t7 = new Tile(6, 4);\n Tile t8 = new Tile(7, 4);\n Tile t9 = new Tile(8, 4);\n Tile t10 = new Tile(9, 4);\n Tile t11 = new Tile(10, 4);\n Tile t12 = new Tile(11, 4);\n Tile t13 = new Tile(12, 4);\n Tile t14 = new Tile(13, 4);\n Tile t15 = new Tile(14, 4);\n Tile t16 = new Tile(15, 4);\n tiles = new Tile[4][4];\n tiles[0][0] = t5;\n tiles[0][1] = t16;\n tiles[0][2] = t1;\n tiles[0][3] = t3;\n tiles[1][0] = t13;\n tiles[1][1] = t15;\n tiles[1][2] = t9;\n tiles[1][3] = t12;\n tiles[2][0] = t2;\n tiles[2][1] = t6;\n tiles[2][2] = t7;\n tiles[2][3] = t14;\n tiles[3][0] = t10;\n tiles[3][1] = t4;\n tiles[3][2] = t8;\n tiles[3][3] = t11;\n return new Board(tiles);\n }",
"public static void createBoard() \n\t{\n\t\tfor (int i = 0; i < tictactoeBoard.length; i++) \n\t\t{\n\t\t\ttictactoeBoard[i] = '-';\n\t\t}\n\t}",
"public void Shuffle() {\n int i = 0;\n while (i < 52) {\n int rando = (int) (5.0 * (Math.random()));\n Cards temp = deck[rando];\n deck[rando] = deck[i];\n deck[i] = temp;\n i++;\n }\n\n Arrays.stream(deck).forEach(c -> System.out.format(\"%s,\",c));\n }",
"public JumbleBoard shuffle()\n {\n\n for (int i = 0; i < dice.length; i++)\n {\n for (int j = 0; j < dice[i].length; j++)\n {\n int a = random.nextInt(dice.length);\n int b = random.nextInt(dice[i].length);\n\n char c = dice[i][j];\n dice[i][j] = dice[a][b];\n dice[a][b] = c;\n\n }\n }\n\n return this;\n\n }",
"public static void initBoard()\r\n\t{\n\t\tfor ( int r=0; r<3; r++ )\r\n\t\t\tfor ( int c=0; c<3; c++ )\r\n\t\t\t\tboard[r][c] = ' ';\r\n\t}",
"private static void gen(int[][] sudo, int row, int col) throws Exception {\n\t\tif (col == sudo[0].length - 1)\n\t\t\treturn;\n\n\t\tArrayList<Integer> nums = new ArrayList<Integer>();\n\t\tfor (int i = begin; i <= end; i++) {\n\t\t\tif (i == sudo[row][col])\n\t\t\t\tcontinue;\n\t\t\tnums.add(i);\n\t\t}\n\t\tCollections.shuffle(nums);\n\t\tfor (int j = 0; j < size; j++) {\n\t\t\tif (j == row)\n\t\t\t\tcontinue;\n\t\t\tboolean f = false;\n\t\t\tint k = nums.size() - 1;\n\t\t\twhile (!f && k >= 0) {\n\t\t\t\tint v = nums.get(nums.size() - 1);\n\t\t\t\tif (SoduUtils.validBoard(sudo, j, col, v)) {\n\t\t\t\t\tsudo[j][col] = v;\n\t\t\t\t\tf = true;\n\t\t\t\t\tnums.remove(k);\n\t\t\t\t} else {\n\t\t\t\t\tk--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!f) {\n\t\t\t\tthrow new Exception(\"try one more time\");\n\t\t\t}\n\t\t}\n\n\t\tgen(sudo, row, col + 1);\n\n\t}",
"private void setShips(){\n\t\t\n\t\tint x,y;\n\t\tboolean orientacja;\n\t\tRandom generator = new Random();\n\t\t\n\t\tint ilosc = 1;\n\t\tint j = 0;\n\t\tfor(int i = 4; i > 0 ; i--){\n\t\t\twhile( j < ilosc ){\n\t\t\t\tx = generator.nextInt( 13 );\t\t\n\t\t\t\ty = generator.nextInt( 13 );\n\t\t\t\torientacja = generator.nextBoolean();\n\t\t\t\tif( isPossibleAddShip(x, y, i, orientacja) ) j++;\t\n\t\t\t}\n\t\tilosc++;\n\t\tj=0;\n\t\t}\n\t\t\n\t}",
"public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }",
"public static int[][] createBoard() {\r\n\t\t\r\n\t\tint[][] board = new int [8][8];\r\n\t\t//printing the red solduers\r\n\t\tfor (int line =0,column=0;line<3;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//printing the blu solduers\r\n\t\tfor (int line =5,column=0;line<8;line=line+1){\r\n\t\t\tif (line%2==0){column=0;}\r\n\t\t\telse {column=1;}\r\n\t\t\tfor (;column<8;column=column+2){\r\n\t\t\t\tboard [line][column] = -1;\r\n\t\t\t}\r\n\t\t}\t\t\t\r\n\t\treturn board;\r\n\t}",
"public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }",
"public void randomlySetAllQR() {\n\t\tfor (int q = -3; q <=3; q++) {\r\n\t\t\tfor (int r = -3; r <=3; r++) {\r\n\t\t\t\tsetHexFromQR(q,r, new HexModel(HexModel.TileType.DesertTile));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }",
"public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t\t// : Shuffle with random seed each time, then we can save the seed\r\n\t\t// Collections.shuffle(cards, new Random(10));\r\n\t}",
"public void ShowBoard(){\n System.out.println(\" ___________{5}_____{4}_____{3}_____{2}_____{1}_____{0}____________\");\n System.out.println(\"| ____ ____ ____ ____ ____ ____ ____ ____ |\");\n System.out.printf(\"| | | [_%2d_] [_%2d_] [_%2d_] [_%2d_] [_%2d_] [_%2d_] | | |\\n\",\n this.gameBoard[5], this.gameBoard[4], this.gameBoard[3],\n this.gameBoard[2], this.gameBoard[1], this.gameBoard[0]);\n System.out.println(\"| | | | | |\");\n System.out.printf(\"| | %2d | ____ ____ ____ ____ ____ ____ | %2d | |\\n\",\n this.gameBoard[6], this.gameBoard[13]);\n System.out.printf(\"| |____| [_%2d_] [_%2d_] [_%2d_] [_%2d_] [_%2d_] [_%2d_] |____| |\\n\",\n this.gameBoard[7], this.gameBoard[8], this.gameBoard[9],\n this.gameBoard[10], this.gameBoard[11], this.gameBoard[12]);\n System.out.println(\"|_________________________________________________________________|\");\n }",
"public void shuffle(){ \n \n Collections.shuffle(cardDeck);\n /*Random rand = new Random();\n for(int i = 0 ; i < 110 ; i++){\n int firstCard = rand.nextInt(110);\n int secondCard = rand.nextInt(110);\n Collections.swap(cardDeck,firstCard,secondCard);\n }*/\n }",
"private void fillBoardWithCells(){\n double posx = MyValues.HORIZONTAL_VALUE*0.5*MyValues.HEX_SCALE + MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE;\n double posy = 2*MyValues.DIAGONAL_VALUE*MyValues.HEX_SCALE ;\n HexCell startCell = new HexCell(0,0, this);\n startCell.changePosition(posx, posy);\n boardCells[0][0] = startCell;\n for (int i = 0; i< x-1; i++) {\n HexCell currentCell = new HexCell(i+1, 0, this);\n boardCells[i+1][0] = currentCell;\n //i mod 2 = 0: Bottom\n if (i % 2 == 0) {\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT_RIGHT );\n } else {\n //i mod 2 =1: Top\n boardCells[i][0].placeHexCell(currentCell, MyValues.HEX_POSITION.TOP_RIGHT );\n }\n }\n for(int i = 0; i < x; i++){\n for(int j = 0; j < y-1; j++){\n HexCell currentCell = new HexCell(i, j+1, this);\n //System.out.println(Integer.toString(i) + Integer.toString(j));\n boardCells[i][j+1] = currentCell;\n boardCells[i][j].placeHexCell(currentCell, MyValues.HEX_POSITION.BOT);\n }\n }\n }",
"private void makeInitial(){\r\n for (int row = 0; row < 9; row++)\r\n System.arraycopy(solution[row], 0, initial[row], 0, 9);\r\n List<Position> fields = new ArrayList<Position>();\r\n for (int row = 0; row < 9; row++)\r\n for (int col = 0; col < 9; col++)\r\n fields.add(new Position(row, col));\r\n Collections.shuffle(fields);\r\n for (int index = 0; index < 40; index ++)\r\n initial[fields.get(index).row][fields.get(index).col] = 0;\r\n }",
"public void shuffleDeck() {\n for (int i = 0; i < TOTAL_NUMBER_OF_CARDS - 1; i++) {\n Random r = new Random();\n int x = r.nextInt(TOTAL_NUMBER_OF_CARDS);\n Card y = deck.get(x);\n deck.set(x, deck.get(i));\n deck.set(i, y);\n }\n }",
"public ProbIA5Board(int []init) {\n board = new int[init.length];\n\n for (int i = 0; i< init.length; i++) {\n board[i] = init[i];\n }\n }",
"public void resetBoard(){\r\n for(int i = 0;i<6;i++){ //empty board \r\n for (int j = 0; j < 7; j++) {\r\n boardRep[i][j] = 0;\r\n }\r\n }\r\n \r\n for (int i = 0; i < 7; i++) { // set column heights to 0\r\n currentFilled[i] = 0;\r\n }\r\n \r\n blackToPlay = true; //black goes first for now\r\n refreshDisplay(); \r\n \r\n }",
"private void fillDeck() {\n int index = 0;\n for (int suit = 1; suit <= 4; suit++) {\n for (int rank = 1; rank <= 13; rank++) {\n deck[index] = new Card(rank, suit);\n index++;\n\n }\n }\n }",
"private static void showBoard() {\n for (int i = 1; i < 10; i++) {\n for (int j = 1; j < 4; j++) {\n System.out.println(j + \".\" + board[i]);\n }\n\n }\n }",
"public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}",
"public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }",
"void makeBoard(int jumbleCt) {\n int val = 1;\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n board[i][j] = val++;\n }\n }\n blankRow = SIZE - 1;\n blankCol = SIZE - 1;\n board[blankRow][blankCol] = 0;\n jumble(jumbleCt);\n deletePrevMoves();\n this.rank = setRank();\n }",
"private void setBoard() {\r\n Timer timer = new Timer();\r\n for (int i = 0; i < rectangles.size(); i++) {\r\n if (i < numTargets) {\r\n rectangles.get(i).setFill(Color.DARKBLUE);\r\n int finalI = i;\r\n rectangles.get(i).setOnMouseClicked(new EventHandler<>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n rectangles.get(finalI).removeEventHandler(MouseEvent.MOUSE_CLICKED, this);\r\n rectangles.get(finalI).setFill(Color.DARKBLUE);\r\n for (int i = 0; i < numTargets; i++) {\r\n if (rectangles.get(i).getFill() == Color.DARKBLUE) numClicked++;\r\n }\r\n if (numClicked == numTargets) {\r\n level++;\r\n levelText.setValue(level);\r\n for (int j = 0; j < numTargets; j++) rectangles.get(j).setFill(Color.BLUE);\r\n numTargets++;\r\n numClicked = 0;\r\n if (upgradeCounter == upgradeBound) {\r\n upgradeCounter = 0;\r\n upgradeBound++;\r\n gridSize++;\r\n increaseGridSize();\r\n createRectangles();\r\n addRectanglesToGrid(grid, rectangles);\r\n rectangleSize -= 10;\r\n resizeRectangle();\r\n } else upgradeCounter++;\r\n\r\n Collections.shuffle(rectangles);\r\n TimerTask t = new TimerTask() {\r\n @Override\r\n public void run() {\r\n setBoard();\r\n }\r\n };\r\n timer.schedule(t, 1000L);\r\n }\r\n numClicked = 0;\r\n rectangles.get(finalI).removeEventHandler(MouseEvent.MOUSE_CLICKED, this);\r\n }\r\n });\r\n }\r\n else {\r\n rectangles.get(i).setFill(Color.BLUE);\r\n int finalI1 = i;\r\n rectangles.get(i).setOnMouseClicked(new EventHandler<MouseEvent>() {\r\n @Override\r\n public void handle(MouseEvent event) {\r\n rectangles.get(finalI1).removeEventHandler(MouseEvent.MOUSE_CLICKED, this);\r\n numClicked = 0;\r\n numLives--;\r\n livesText.setValue(numLives);\r\n Collections.shuffle(rectangles);\r\n setBoard();\r\n rectangles.get(finalI1).removeEventHandler(MouseEvent.MOUSE_CLICKED, this);\r\n }\r\n });\r\n }\r\n }\r\n\r\n TimerTask task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n for (int i = 0; i < numTargets; i++)\r\n rectangles.get(i).setFill(Color.BLUE);\r\n }\r\n };\r\n timer.schedule(task, 2000L);\r\n }",
"public FlipBoard (int topSlots, int holesToPick, Random r)\n {\n long flipBits = r.nextLong();\n long holeBits = 0;\n\n if (holesToPick > 0) {\n int possibleHoles = HEIGHT * (topSlots + (HEIGHT - 1));\n ArrayIntSet holeSpots = new ArrayIntSet();\n for (int ii=0; ii < possibleHoles; ii++) {\n holeSpots.add(ii);\n }\n holeBits = pickHoles(holeBits, topSlots, holesToPick, r, holeSpots);\n }\n \n populate(topSlots, flipBits, 0L, holeBits);\n }",
"public static void shuffle(int data[]) {\n\n }",
"public void shuffleTiles() {\n\t\tdo {\n\t\t\tCollections.shuffle(tiles);\n\n\t\t\t// Place the blank tile at the end\n\t\t\ttiles.remove(theBlankTile);\n\t\t\ttiles.add(theBlankTile);\n\n\t\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\t\ttileViews.get(row * gridSize + column).setCurrentTile(\n\t\t\t\t\t\t\ttiles.get(row * gridSize + column));\n\t\t\t\t}\n\t\t\t}\n\t\t} while (!isSolvable());\n\t\tmoveCount = 0;\n\n\t}",
"public void turn(int num) {\r\n\t\tfor (int i = 0; i < num % 8; i++) {\r\n\t\t\tturn();\r\n\t\t}\r\n\t}",
"public static void scrambledArray(int[] array){\n Random rand=new Random();// use java.util.random method to scramble the index number\n for(int i=0;i<array.length;i++){\n int num=rand.nextInt(15);\n // swap the two different positioned values by swaping their index number \n int temp=array[i];\n array[i]=array[num];\n array[num]=temp; }\n }",
"private void initializeBoard(){\r\n checks =new int[][]{{0,2,0,2,0,2,0,2},\r\n {2,0,2,0,2,0,2,0},\r\n {0,2,0,2,0,2,0,2},\r\n {0,0,0,0,0,0,0,0},\r\n {0,0,0,0,0,0,0,0},\r\n {1,0,1,0,1,0,1,0},\r\n {0,1,0,1,0,1,0,1},\r\n {1,0,1,0,1,0,1,0}};\r\n }",
"static void fillArray(int[] ar)\n\t{\n\t Random r= new Random();\n\t for(int i = 0; i< ar.length; i++)\n\t {\n\t\t ar[i]= r.nextInt(100);\n\t }\n\t}",
"public static int[][] createBoard() {\r\n\r\n\t\tint[][] board = new int[9][9];\r\n\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\tfor (int j = 0; j < 9; j++)\r\n\t\t\t\tboard[i][j] = scan.nextInt();\r\n\t\t}\r\n\t\treturn board;\r\n\r\n\t}",
"public PuzzleState shuffleBoard(int pathLength);",
"public void shuffle(int numShuffles)\n { \n Card tempCard;\n int switchOne, switchTwo;\n\n for (int i=0; i<numCards; i++){\n switchOne = rand.nextInt(numCards);\n switchTwo = rand.nextInt(numCards);\n\n tempCard = cardAry[switchOne];\n cardAry[switchOne] = cardAry[switchTwo];\n cardAry[switchTwo] = tempCard; \n }\n\n if(cardAry.length > 1 && cardAry.length <=5 && isSorted()==true)\n shuffle(2);\n }",
"public Board randomBoard() {\n int[][] board = new int[tileLength][tileLength];\n\n //Random scramble algorithm\n\n //Create solved nxn board\n for (int i = 0; i <tileLength*tileLength ; i++) {\n board[i / tileLength][i % tileLength] = (i + 1) % (tileLength*tileLength);\n }\n\n Board b = new Board(board);\n\n //Perform 50 random moves on the board\n Random r = new Random();\n\n int parity = r.nextInt(2);\n\n for (int i = 0; i < 50 + parity; i++) {\n ArrayList<Board> children = b.getSuccessors();\n children.trimToSize();\n int count = children.size();\n b = children.get(r.nextInt(count));\n\n }\n\n b.setParent(null);\n b.setGScore(0);\n\n return b;\n }",
"public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }",
"public static void initialBoard() {\n\t\tSystem.out.println(\"Welcome to TicTacToe ♡\");\n\t\tfor (int i = 0; i < 9; i++) {\n\t\t\tfor (int j = 0; j < 9; j++) {\n\t\t\t\tboard[i][j] = '-';\n\t\t\t}\n\t\t}\n\t}",
"public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}",
"public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}",
"private static void fillArea()\n\t{\n\t\tconnections=new int[board.length][board[1].length];\n\n\t\twhile(!(isFilled()))\n\t\t{\n\t\t\tTemplates temp = Templates.intToTemplates(rn.nextInt(Templates.values().length));\n\t\t\ttemp.rotate(rn.nextInt(4));\n\n\t\t\taddTemplate(temp);\n\t\t}\t\n\t}",
"public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }",
"private void shufflePositions() {\r\n\r\n // Inizializzo con il progressivo delle posizioni\r\n for (int i = 0; i < shufflePositions.length; i++) {\r\n shufflePositions[i] = i;\r\n }\r\n\r\n int lastIndex ;\r\n int tempIndex = 0;\r\n int tempVal = 0;\r\n\r\n// // Tecnica 1 - Knuth (gli indici da scambiare sono scelti dall'inizio in un insieme decrescente in cardinalità)\r\n// int lastIndex = shufflePositions.length;\r\n// for (int i = 0; i < shufflePositions.length-1; i++) {\r\n// tempIndex = i+secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n// tempVal=shufflePositions[tempIndex];\r\n// shufflePositions[tempIndex]=shufflePositions[i];\r\n// shufflePositions[i] = tempVal; \r\n// lastIndex--;\r\n// } \r\n \r\n //Tecnica 2 - Knuth GAB Modification (gli indici casuali sono scelti dal fondo in un insieme decrescente in cardinalità)\r\n lastIndex = shufflePositions.length-1;\r\n for (int i = 0; i < shufflePositions.length - 1; i++) {\r\n tempIndex = secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n tempVal = shufflePositions[tempIndex];\r\n shufflePositions[tempIndex] = shufflePositions[lastIndex];\r\n shufflePositions[lastIndex] = tempVal;\r\n lastIndex--;\r\n }\r\n \r\n// // Tecnica 3 - Algoritmo standard delle collections\r\n// Integer[]tempArray = new Integer[MaxBufferLength];\r\n// for (int i=0;i<MaxBufferLength;i++){\r\n// tempArray[i]=i;\r\n// \r\n// }\r\n// List<Integer> tempList = Arrays.asList(tempArray);\r\n//\r\n// Collections.shuffle(tempList, secureRandom);\r\n// tempArray= (Integer[]) tempList.toArray();\r\n// for (int i=0;i<shufflePositions.length;i++){\r\n// shufflePositions[i]=tempArray[i];\r\n// }\r\n }",
"public void shuffle()\r\n\t{\r\n\t\tCollections.shuffle(_tiles);\r\n\t}",
"private void addPowerUps() {\n\t\tfor (int i = 0; i < 4; i++) {\n\n\t\t\tint x = (int) (Math.random() * 10);\n\t\t\tint y = (int) (Math.random() * 10);\n\n\t\t\twhile (pgrid[x][y] != 0) { // prevents overlaps\n\t\t\t\tx = (int) (Math.random() * 10);\n\t\t\t\ty = (int) (Math.random() * 10);\n\t\t\t}\n\n\t\t\tpgrid[x][y] = 2;\n\t\t}\n\t}"
] |
[
"0.70091623",
"0.6903006",
"0.6705865",
"0.66567796",
"0.6637196",
"0.6617042",
"0.6469332",
"0.64327085",
"0.6424341",
"0.635816",
"0.6350199",
"0.63458294",
"0.62801015",
"0.6261886",
"0.6244292",
"0.6236708",
"0.62349576",
"0.6221823",
"0.620164",
"0.6156918",
"0.61534643",
"0.6137506",
"0.60896456",
"0.6084999",
"0.60618037",
"0.60442454",
"0.60332936",
"0.60149884",
"0.599754",
"0.5995026",
"0.5979476",
"0.597023",
"0.5969841",
"0.59647584",
"0.5960257",
"0.5958357",
"0.5948577",
"0.59428054",
"0.59377944",
"0.59347105",
"0.59344417",
"0.5931118",
"0.59276843",
"0.59266263",
"0.5918967",
"0.58971304",
"0.5894971",
"0.58888394",
"0.5884739",
"0.5875417",
"0.5874717",
"0.58506703",
"0.5832971",
"0.5832741",
"0.58243567",
"0.58212394",
"0.5820037",
"0.58184093",
"0.58159184",
"0.58065337",
"0.5782129",
"0.57787573",
"0.5772709",
"0.5771925",
"0.5767621",
"0.57641464",
"0.57630765",
"0.57583535",
"0.57568586",
"0.57496154",
"0.57478",
"0.5741355",
"0.57411724",
"0.5739244",
"0.57320225",
"0.57314694",
"0.57239497",
"0.5719877",
"0.5717671",
"0.57121277",
"0.5709166",
"0.57088083",
"0.57049835",
"0.5693793",
"0.5687732",
"0.56831485",
"0.56799424",
"0.5669541",
"0.56658876",
"0.5657775",
"0.5655059",
"0.56475085",
"0.5644426",
"0.56431943",
"0.5633185",
"0.5619959",
"0.5618303",
"0.56110936",
"0.56025875",
"0.56006825"
] |
0.77100325
|
0
|
Perform a move of the empty tile in give direction
|
public boolean move(final Direction direction) {
if (analyser.canMove(this.matrix, this.emptyTileIndex, direction)) {
this.matrix = analyser.move(this.matrix, this.emptyTileIndex, direction);
this.emptyTileIndex += direction.getIndexMod();
return true;
}
return false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void move(Tile t);",
"private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }",
"public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}",
"public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }",
"public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }",
"public synchronized void move(int direction){\n if (direction == 0){\n return;\n }\n if (this.movePossible(direction)){\n int[] columns = direction < 0 ? new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12} : new int[]{12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n for (int i : columns){\n for (int j = 1; j < 25; j++){\n if (this.movable[i][j]){\n this.map[i + direction][j] = this.map[i][j];\n this.movable[i + direction][j] = this.movable[i][j];\n this.colors[i + direction][j] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n }\n }\n }\n this.piecePositionX += direction;\n }\n repaint();\n }",
"public Piece move(TetrisDirectionsEnum direction) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void movment() {\n\t\tif(ghost.shot && fired) {\n\t\t\tif(direction == RIGHT)\n\t\t\t\tmove(RIGHT);\n\t\t\telse if(direction == LEFT)\n\t\t\t\tmove(LEFT);\n\t\t\telse if(direction == UP)\n\t\t\t\tmove(UP);\n\t\t\telse if(direction == DOWN)\n\t\t\t\tmove(DOWN);\n\t\t}\n\t}",
"@Override\n\tpublic int move(int direction) {\n\t\tswitch (direction) {\n\t\tcase LEFT:\n\t\t{\n\t\t\t\tanimator.animateMovement(LEFT, SPEED);\n\t\t\t\tif(animator.dx==-Math.round(25/SPEED)*SPEED) {\n\t\t\t\t\tanimator.resetOffset();\n\t\t\t\t\tif(position.column <= 0) {\n\t\t\t\t\t\tthis.dispose();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tposition = game.getCurrentMaze().board[position.column-1][position.row];\n\t\t\t\t\t\tcheckForHit();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn MOVE_SUCCESS;\n\t\t\t}\n\t\tcase UP:\n\t\t{\n\t\t\t\tanimator.animateMovement(UP, SPEED);\n\t\t\t\tif(animator.dy==-Math.round(25/SPEED)*SPEED) {\n\t\t\t\t\tanimator.resetOffset();\n\t\t\t\t\tif(position.row <= 0) {\n\t\t\t\t\t\tthis.dispose();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tposition = game.getCurrentMaze().board[position.column][position.row-1];\n\t\t\t\t\t\tcheckForHit();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn MOVE_SUCCESS;\n\t\t\t}\n\t\tcase RIGHT:\n\t\t\t{\n\t\t\t\t\tanimator.animateMovement(RIGHT, SPEED);\n\t\t\t\t\tif(animator.dx==Math.round(25/SPEED)*SPEED) {\n\t\t\t\t\t\tanimator.resetOffset();\n\t\t\t\t\t\tif(position.column >= (Game.WIDTH/Tile.TILE_SIZE)-2) {\n\t\t\t\t\t\t\tthis.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tposition = game.getCurrentMaze().board[position.column+1][position.row];\n\t\t\t\t\t\t\tcheckForHit();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\treturn MOVE_SUCCESS;\n\t\t\t}\n\t\tcase DOWN:\n\t\t\t{\n\t\t\t\tanimator.animateMovement(DOWN, SPEED);\n\t\t\t\tif(animator.dy==Math.round(25/SPEED)*SPEED) {\n\t\t\t\t\tanimator.resetOffset();\n\t\t\t\t\tif(position.row >= (Game.WIDTH/Tile.TILE_SIZE)-2) {\n\t\t\t\t\t\tfired = false;\n\t\t\t\t\t\tthis.dispose();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse { \n\t\t\t\t\t\tposition = game.getCurrentMaze().board[position.column][position.row+1];\n\t\t\t\t\t\tcheckForHit();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn MOVE_SUCCESS;\n\t\t\t\t}\n\t\t}\n\t\treturn MOVE_FAIL;\n\t}",
"public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }",
"public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }",
"public void move(){\n\t\t\n\t}",
"@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}",
"void move(int direction)\n {\n int step = 1;\n int covered = 0;\n if ((direction==1 && tankY==0) || (direction==2 && tankY >= 512) || (direction==3 && tankX == 0) || (direction==1 && tankX >=512)){\n System.out.println(\"Illegal move \"+ direction);\n return;\n }\n turn(direction);\n\n while (covered < 64){\n if (direction ==1 ){\n tankY -= step;\n }\n if (direction ==2 ){\n tankY += step;\n }\n if (direction ==4){\n tankX += step;\n }\n if (direction ==3 ){\n tankX -= step;\n }\n covered +=step;\n }\n repaint();\n sleep(speed);\n\n }",
"public void move()\n {\n move(WALKING_SPEED);\n }",
"public void move() {\n\r\n\t}",
"public void move(int moveDirection) {\n //if same or opposite direction, check if movable\n if ((direction - moveDirection) % 6 == 0) {\n this.direction = moveDirection;\n if (moveable()) {\n if (direction == 12) {\n this.setLocation(new Point(this.getX(),\n this.getY() - speed));\n }\n //move right\n if (direction == 3) {\n this.setLocation(new Point(this.getX() + speed,\n this.getY()));\n\n }\n //move down\n if (direction == 6) {\n this.setLocation(new Point(this.getX(),\n this.getY() + speed));\n }\n //move left\n if (direction == 9) {\n this.setLocation(new Point(this.getX() - speed,\n this.getY()));\n }\n\n }\n } // if it is turning, check if can turn or not. If can turn then turn and move according to the direction before turn, otherwise, just leave the monster there\n else {\n Point snapToGridPoint = GameUtility.GameUtility.snapToGrid(\n this.getLocation());\n Point gridPoint = GameUtility.GameUtility.toGridCordinate(\n this.getLocation());\n Point nextPoint = new Point(gridPoint.x, gridPoint.y);\n //if the distance is acceptable\n if (GameUtility.GameUtility.distance(snapToGridPoint,\n this.getLocation()) < GameUtility.GameUtility.TILE_SIZE / 2.5) {\n\n if (moveDirection == 3) {\n int x = Math.max(0, gridPoint.x + 1);\n nextPoint = new Point(x, gridPoint.y);\n } else if (moveDirection == 6) {\n int y = Math.max(0, gridPoint.y + 1);\n nextPoint = new Point(gridPoint.x, y);\n } else if (moveDirection == 9) {\n int x = Math.min(19, gridPoint.x - 1);\n nextPoint = new Point(x, gridPoint.y);\n } else if (moveDirection == 12) {\n int y = Math.min(19, gridPoint.y - 1);\n nextPoint = new Point(gridPoint.x, y);\n }\n // if the turn is empty, then snap the monster to the grid location\n if (!(GameManager.getGameMap().getFromMap(nextPoint) instanceof Wall) && !(GameManager.getGameMap().getFromMap(\n nextPoint) instanceof Bomb)) {\n if (GameUtility.GameUtility.distance(snapToGridPoint,\n this.getLocation()) < GameUtility.GameUtility.TILE_SIZE / 10) {\n this.setLocation(snapToGridPoint);\n this.direction = moveDirection;\n } else {\n if (direction == 9 || direction == 3) {\n int directionOfMovement = (snapToGridPoint.x - getX());\n directionOfMovement = directionOfMovement / Math.abs(\n directionOfMovement);\n this.setLocation(new Point(\n this.getX() + directionOfMovement * speed,\n this.getY()));\n } else if (direction == 12 || direction == 6) {\n int directionOfMovement = (snapToGridPoint.y - getY());\n directionOfMovement = directionOfMovement / Math.abs(\n directionOfMovement);\n this.setLocation(new Point(\n this.getX(),\n this.getY() + directionOfMovement * speed));\n }\n }\n }\n }\n }\n }",
"public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}",
"public void move(long deltaTime) {\n\n Point currentTile = getOccupyingTile(position);\n\n /*\n if (!Simulator.getInstance().getTileMap().isInsideMap(currentTile))\n return;\n\n if (Simulator.getInstance().getTileMap().isAWall(currentTile) || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile))\n return;\n*/\n\n if (Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile))\n return;\n\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n\n\n if (!Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile) && Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector().equals(new Point2D.Double(0.0, 0.0))) {\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n double angle = 0;\n while ((angle >= 60 && angle <= 120) || (angle >= 150 && angle <= 210) || (angle >= 240 && angle <= 300) || (angle >= 330) || (angle <= 30)) {\n\n angle = Math.random() * 360;\n }\n setVector(new Point2D.Double(Math.cos(Math.toRadians(angle)) / 1.5, Math.sin(Math.toRadians(angle)) / 1.5));\n } else {\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n }\n\n\n Point2D vectorDiff = new Point2D.Double(vector.getX() - targetVector.getX(), vector.getY() - targetVector.getY());\n\n if (vectorDiff.getX() < 0)\n vector.setLocation(vector.getX() + 0.001 * velocity * deltaTime, vector.getY());\n else if (vectorDiff.getX() > 0)\n vector.setLocation(vector.getX() - 0.001 * velocity * deltaTime, vector.getY());\n\n if (vectorDiff.getY() < 0)\n vector.setLocation(vector.getX(), vector.getY() + 0.001 * velocity * deltaTime);\n else if (vectorDiff.getY() > 0)\n vector.setLocation(vector.getX(), vector.getY() - 0.001 * velocity * deltaTime);\n\n\n Point2D newPosition = new Point2D.Double(\n position.getX() + (velocity * deltaTime) * vector.getX(), position.getY() + (velocity * deltaTime) * vector.getY());\n\n\n Point targetTile = getOccupyingTile(newPosition);\n\n\n Point direction = getDirection(currentTile, targetTile);\n\n\n if (!Simulator.getInstance().getTileMap().isInsideMap(targetTile) || Simulator.getInstance().getTileMap().isAWall(targetTile)\n || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(targetTile)) {// || Simulator.getInstance().getDestination().getDistanceMap().getTiles()[targetTile.y][targetTile.x].getVector() == new Point2D.Double(0, 0)) {\n\n if (Simulator.getInstance().isUsingBounceCollision()) {\n if (direction.x > 0 || direction.x < 0)\n vector.setLocation(vector.getX() * -0.5, vector.getY());\n if (direction.y > 0 || direction.y < 0)\n vector.setLocation(vector.getX(), vector.getY() * -0.5);\n\n newPosition = new Point2D.Double(\n position.getX() + (velocity * deltaTime) * vector.getX(), position.getY() + (velocity * deltaTime) * vector.getY());\n\n\n targetTile = getOccupyingTile(newPosition);\n\n //Secondary check to make sure the bounce doesn't make it go out of bounds\n if (!Simulator.getInstance().getTileMap().isInsideMap(targetTile) || Simulator.getInstance().getTileMap().isAWall(targetTile)\n || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(targetTile)) { //|| Simulator.getInstance().getDestination().getDistanceMap().getTiles()[targetTile.y][targetTile.x].getVector() == new Point2D.Double(0, 0)) {\n vector.setLocation(0, 0);\n } else {\n setPosition(newPosition);\n }\n\n\n } else {\n vector.setLocation(0, 0);\n }\n\n } else {\n setPosition(newPosition);\n }\n\n }",
"public void move(int dir) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tint nextX = x[i] + dir;\n\t\t\tif (nextX < 0 || nextX >= 10)\n\t\t\t\treturn;\n\t\t\tif (Tetris.game.grid[nextX][y[i]] != 0)\n\t\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tx[i] += dir;\n\t}",
"public void move() {\n super.move(DIRECTION.getRandom());\n }",
"@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}",
"public void move();",
"public void move();",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"public void move() {\n\tupdateSwapTime();\n\tupdateAttackTime();\n\n\tif (enemyNear) {\n\t if (moved) {\n\t\tstopMove();\n\t\tmoved = false;\n\t }\n\t} else {\n\t if (!moved) {\n\t\tcontinueMove();\n\t\tmoved = true;\n\t }\n\n\t x += dx;\n\t y += dy;\n\n\t if (x < speed) {\n\t\tx = speed;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y < speed) {\n\t\ty = speed;\n\t\tdy = (-1) * dy;\n\t }\n\n\t if (x > MapSize.getSIZE().getWidth() - 40) {\n\t\tx = MapSize.getSIZE().getWidth() - 40;\n\t\tdx = (-1) * dx;\n\t }\n\n\t if (y > MapSize.getSIZE().getHeight() - 40) {\n\t\ty = MapSize.getSIZE().getHeight() - 40;\n\t\tdy = (-1) * dy;\n\t }\n\t}\n }",
"public void resetMove() {\n\t\tthis.moveMade = false;\n\t}",
"public void move()\n {\n universe.erase(this);\n \n // compute new position\n \n yPosition += ySpeed;\n xPosition += xSpeed;\n\n // check if it has hit the ground\n if(yPosition >= (groundPosition - diameter) && ySpeed > 0) {\n yPosition = groundPosition - diameter;\n ySpeed = -ySpeed; \n }\n // check if top\n if(yPosition <= 0 && ySpeed < 0){\n ySpeed = -ySpeed; \n }\n //check right\n if(xPosition >= (universe.getLength() - diameter) && xSpeed >0){\n xSpeed = -xSpeed;\n }\n //check left\n if(xPosition <= 0 && xSpeed < 0){\n xSpeed = -xSpeed;\n }\n \n // draw again at new position\n universe.draw(this);\n }",
"public void MoveTileSelf(Integer position){\n /**\n * if opponent activated confusion - move to a random tile\n */\n if(confused){\n //random tile for confusion\n Integer tile;\n do{\n Integer tile1 = returnRandom(getNthDigit(position,1)-1,getNthDigit(position,1)+2);\n Integer tile2 = returnRandom(getNthDigit(position,2)-1,getNthDigit(position,2)+2); // between 0 and 2\n tile = Integer.parseInt(tile1.toString() + tile2.toString());\n }while (tile==myTile || tile==opponentTile || getNthDigit(tile,1)<1 || getNthDigit(tile,1)>7 || getNthDigit(tile,2)<1 || getNthDigit(tile,2)>7);\n position = tile;\n showTimedAlertDialog(\"You are confused!\", \"moving at a random direction\", 5);\n confused = false;\n }\n\n /**\n * send message to opponent\n */\n MultiplayerManager.getInstance().SendMessage(position.toString());\n\n if(!is_debug){\n HandleLejos(myTile, position);\n }\n\n ImageView player1 = findImageButton(\"square_\"+position.toString());\n ImageView player1_old = findImageButton(\"square_\"+myTile.toString());\n player1.setImageDrawable(getResources().getDrawable(R.drawable.tank_blue));\n player1_old.setImageDrawable(getResources().getDrawable(android.R.color.transparent));\n myTile = position;\n myTurn = false;\n turnNumber = turnNumber + 1;\n }",
"public static void moveEntity(int direction){\n int tileSize = SpriteHandler.tileSize;\n switch(direction){\n case 0:\n if((userY-tileSize) >= MapManager.offset){\n userY -= tileSize;\n }\n break;\n case 1:\n if((userX+tileSize) <= (MapManager.width_X * tileSize)){\n userX += tileSize; \n }\n break;\n case 2:\n if((userY+tileSize) <= (MapManager.height_Y * tileSize)){\n userY += tileSize; \n }\n break;\n case 3:\n if((userX-tileSize) >= MapManager.offset){\n userX -= tileSize; \n }\n break;\n }\n }",
"public void move(String direction) {\n \n }",
"void move();",
"@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}",
"public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}",
"private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }",
"public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}",
"public void move() {\n\n }",
"public void move() {\n if(Objects.nonNull(this.position)) {\n Position position = this.getPosition();\n Function<Position, Position> move = moveRobotInDirectionMap.get(position.getDirection());\n this.position = move.apply(position);\n }\n }",
"@Override\n\tpublic void move() {\n\t\tCoordinate currPos = new Coordinate(control.getPosition());\n\t\t\n\t\t// if we have enough packages head to the exit\n\t\tif (control.numParcels() <= control.numParcelsFound()) {\n\t\t\t// if we don't have a path to the exit\n\t\t\tif (control.currentPath == null || !control.isHeadingToFinish) {\t\n\t\t\t\t// find path to exit\n\t\t\t\tArrayList<Coordinate> tempPath = null;\n\t\t\t\t// See if there's a path without needing to go through hazards\n\t\t\t\ttempPath = control.findPath(currPos, control.finish.get(0), control.hazardsMap.keySet());\n\t\t\t\tSet<Coordinate> tempHazards = new HashSet<>(control.hazardsMap.keySet());\n\t\t\t\t// If no path without going through hazards, just go through them\n\t\t\t\tif (tempPath == null || tempPath.size() == 0) {\n\t\t\t\t\tfor (Coordinate coord : control.hazardsMap.keySet()) {\n\t\t\t\t\t\ttempHazards.remove(coord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If it's a valid map, there should be a path now\n\t\t\t\tcontrol.setPath(control.findPath(currPos, control.finish.get(0), tempHazards));\n\t\n\t\t\t\tcontrol.isHeadingToFinish = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\theadTowardsPackages(currPos);\n\t\t\n\t\texploreUnseenMap(currPos);\n\t\t\n\t\tMapTile currTile = control.getView().get(currPos);\n\t\tboolean isHealth = false;\n\t\tif (currTile.getType() == MapTile.Type.TRAP) {\n\t\t\tTrapTile trap = (TrapTile) currTile;\n\t\t\tif (trap.getTrap().equals(\"health\")) {\n\t\t\t\tisHealth = true;\n\t\t\t}\n\t\t}\n\t\tif (isHealth && (control.getHealth() < HEALTH_TRAP_THRESHOLD)) {\n\t\t\t// do nothing\n\t\t\treturn;\n\t\t} else {\n\t\t\tisHealth = false;\n\t\t\tcontrol.moveTowards(control.dest);\n\t\t}\n\t\t\n\t}",
"void doneMoving();",
"public void move(Cell[][] maze) {\n // check monster still alive or not\n if (!alive) {\n return;\n }\n //four directions: left, right, up, down\n int[][] dirs = {{0, -1}, {0, 1}, {-1, 0}, {1, 0}};\n // a list to store all valid directions to move\n List<int[]> validDir = new ArrayList<>();\n for (int[] dir : dirs) {\n int newRow = this.current_row + dir[0];\n int newCol = this.current_column + dir[1];\n // try finding a location where is not wall, not the previous location, not a place 3 sides surrounded by walls\n // and save it to valid directions list\n if (maze[newRow][newCol].getValue() != 1 && !(newRow == pre_row && newCol == pre_column)\n && validNextMove(newRow, newCol, maze)) {\n int[] newLocation = new int[]{newRow, newCol};\n validDir.add(newLocation);\n }\n }\n //If there is no valid move choice, the monster has to backtrack\n if (validDir.size() == 0) {\n this.current_row = this.pre_row;\n this.current_column = this.pre_column;\n this.pre_row = this.current_row;\n this.pre_column = this.current_column;\n } else {\n // randomly select a valid direction to move\n Random random = new Random();\n int ranNum = random.nextInt(validDir.size());\n int[] newLoc = validDir.get(ranNum);\n int newRow = newLoc[0];\n int newCol = newLoc[1];\n this.pre_row = this.current_row;\n this.pre_column = this.current_column;\n this.current_row = newRow;\n this.current_column = newCol;\n }\n }",
"public abstract void move( char direction );",
"private void swapTileWithBlank(TileView tv) {\n\t\tTile tile = tv.getCurrentTile();\n\n\t\tTileView theBlankTileView = tileViews\n\t\t\t\t.get(computeLocationValue(theBlankTile.getCurrentLocation()));\n\n//\t\tLog.v(\"log_tag\", \"Tile Row= \" + tile.getCurrentLocation().getRow()\n//\t\t\t\t+ \" Tile Column= \" + tile.getCurrentLocation().getColumn());\n//\t\tLog.v(\"log_tag\", \"theBlankTile Row= \"\n//\t\t\t\t+ theBlankTile.getCurrentLocation().getRow() + \" theBlankTile Column= \"\n//\t\t\t\t+ theBlankTile.getCurrentLocation().getColumn());\n\n\t\tif (tile.getCurrentLocation().isAdjacent(\n\t\t\t\ttheBlankTile.getCurrentLocation())) {\n\n\t\t\t// Animate tile movement\n\t\t\tif (tile.getCurrentLocation().getColumn() < theBlankTile\n\t\t\t\t\t.getCurrentLocation().getColumn()) {\n\t\t\t\ttheBlankTileView.bringToFront();\n\t\t\t\t// LEFT\n\t\t\t\ttheBlankTileView.startAnimation(AnimationUtils.loadAnimation(\n\t\t\t\t\t\tthis.context, R.anim.left_animation));\n\n\t\t\t} else if (tile.getCurrentLocation().getColumn() > theBlankTile\n\t\t\t\t\t.getCurrentLocation().getColumn()) {\n\t\t\t\ttheBlankTileView.bringToFront();\n\t\t\t\t// RIGHT\n\t\t\t\ttheBlankTileView.startAnimation(AnimationUtils.loadAnimation(\n\t\t\t\t\t\tthis.context, R.anim.right_animation));\n\n\t\t\t} else if (tile.getCurrentLocation().getRow() < theBlankTile\n\t\t\t\t\t.getCurrentLocation().getRow()) {\n\t\t\t\ttheBlankTileView.bringToFront();\n\t\t\t\t// UP\n\t\t\t\ttheBlankTileView.startAnimation(AnimationUtils.loadAnimation(\n\t\t\t\t\t\tthis.context, R.anim.up_animation));\n\n\t\t\t} else if (tile.getCurrentLocation().getRow() > theBlankTile\n\t\t\t\t\t.getCurrentLocation().getRow()) {\n\t\t\t\ttheBlankTileView.bringToFront();\n\t\t\t\t// DOWN\n\t\t\t\ttheBlankTileView.startAnimation(AnimationUtils.loadAnimation(\n\t\t\t\t\t\tthis.context, R.anim.down_animation));\n\t\t\t}\n\t\t\ttheBlankTileView.setCurrentTile(tile);\n\t\t\ttv.setCurrentTile(theBlankTile);\n\n\t\t\tmoveCount++;\n\n\t\t\tmoveTextView.setText(\"Moves : \" + moveCount);\n\t\t}\n\n\t\tif (isCorrect()) {\n\t\t\t((Activity) context).showDialog(PuzzleActivity.DIALOG_COMPLETED_ID);\n\t\t}\n\n\t}",
"public void resetMove() {\n pointer = 0;\n }",
"public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }",
"public void move() { \n\t\tSystem.out.println(\"MOVING\");\n\t\tswitch(direction) {\n\t\t\tcase NORTH: {\n\t\t\t\tyloc -= ySpeed;\n\t\t\t}\n\t\t\tcase SOUTH: {\n\t\t\t\tyloc+= xSpeed;\n\t\t\t}\n\t\t\tcase EAST: {\n\t\t\t\txloc+= xSpeed;\n\t\t\t}\n\t\t\tcase WEST: {\n\t\t\t\txloc-= xSpeed;\n\t\t\t}\n\t\t\tcase NORTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase NORTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc-=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHEAST: {\n\t\t\t\txloc+=xSpeed;\n\t\t\t\tyloc+=ySpeed;\n\t\t\t}\n\t\t\tcase SOUTHWEST: {\n\t\t\t\txloc-=xSpeed;\n\t\t\t\tyloc+= ySpeed;\n\t\t\t}\n\t\t}\n\t}",
"public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}",
"public void move() throws InstructionExecutionException\r\n\t{\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tStreet street=this.getHeadingStreet();\r\n\t\t\tif(street==null){\r\n\t\t\t\tString err=\"WALL·E says: There is no street in direction \"+this.getCurrentHeading();\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tPlace nextPlace=street.nextPlace(this.currentPlace);\r\n\t\t\tif (street.isOpen()){\r\n\t\t\t\tthis.currentPlace=nextPlace;\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tthis.navigationPanel.updateCell(currentDirection, nextPlace);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tString err=\"WALL·E says: Arrggg, there is a street but it is closed!\";\r\n\t\t\t\tif(isSwing()){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, err);\r\n\t\t\t\t}\r\n\t\t\t\tthrow new InstructionExecutionException(err);\r\n\t\t\t}\r\n\t\t}catch (Exception e){\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}",
"public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }",
"public abstract void move(int row, int col) throws IllegalMoveException;",
"private Board moveTo(int direction) {\n Board newBoard = new Board(this.state);\n int oZ = this.zero;\n int nZ = oZ;\n switch (direction) {\n case Board.LEFT: nZ = oZ - 1; break;\n case Board.RIGHT: nZ = oZ + 1; break;\n case Board.UP: nZ = oZ - Board.dim; break;\n case Board.DOWN: nZ = oZ + Board.dim; break;\n default: return null;\n }\n newBoard.state[oZ] = state[nZ];\n newBoard.state[nZ] = 0;\n newBoard.zero = nZ;\n\n // update heuristic iteratively except for MAN\n switch(Board.heuristic) {\n case HAM:\n if (state[nZ] == oZ) newBoard.dist = this.dist - 1;\n else if (state[nZ] == nZ) newBoard.dist = this.dist + 1;\n else newBoard.dist = this.dist;\n break;\n case INT: // iterative update the interference\n // this is the most logically complicated code I have\n // done in a while\n int moved = state[nZ];\n int oC;\n newBoard.inter = inter;\n switch (direction) {\n case Board.LEFT:\n case Board.RIGHT: // LEFT AND RIGHT\n if (Board.colOf[state[nZ]] == Board.colOf[nZ]) {\n // we've replaced a piece on its col with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old column\n //System.out.println(\"Took \" + state[nZ] + \" out of its col\");\n for (int i = Board.colOf[nZ]; i < nZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n \n } else if (Board.colOf[state[nZ]] == Board.colOf[oZ]) {\n // we've put a piece on its col that was a zero\n // interference can only increase since we know\n // the piece didn't below to its old column\n //System.out.println(\"Put \" + state[nZ] + \" into its col\");\n for (int i = Board.colOf[oZ]; i < oZ; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ + Board.dim; i < state.length; i+=Board.dim)\n if (Board.colOf[state[i]] == Board.colOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n break;\n default: // UP AND DOWN\n if (Board.rowOf[state[nZ]] == Board.rowOf[nZ]) {\n // we've replaced a piece on its row with a zero\n // interference can only decrease since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Took \" + state[nZ] + \" out of its row\");\n for (int i = Board.dim*Board.rowOf[nZ]; i < nZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] > state[nZ])\n newBoard.inter--;\n for (int i = nZ+1; i < Board.dim*(Board.rowOf[nZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[nZ] &&\n state[i] < state[nZ])\n newBoard.inter--;\n } else if (Board.rowOf[state[nZ]] == Board.rowOf[oZ]) {\n // we've put a piece on its row that was a zero\n // interference can only increase since we know\n // the piece didn't belong to its old row\n //System.out.println(\"Put \" + state[nZ] + \" into its row\");\n for (int i = Board.dim*Board.rowOf[oZ]; i < oZ; i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] > state[nZ])\n newBoard.inter++;\n for (int i = oZ+1; i < Board.dim*(Board.rowOf[oZ]+1); i++)\n if (Board.rowOf[state[i]] == Board.rowOf[oZ] &&\n state[i] < state[nZ])\n newBoard.inter++;\n }\n } \n default: // update the manhattan distance\n newBoard.dist = this.dist - \n Board.manhattanTable[state[nZ]][nZ] +\n Board.manhattanTable[state[nZ]][oZ];\n }\n return newBoard;\n }",
"public void move(int dx, int dy) {\n\t\ttileX = tileX + dx;\n\t\ttileY = tileY + dy;\n\t}",
"public void reset( )\n\t{\n\t\tint count = 1;\n\t\tthis.setMoves( 0 );\n\t\tfor( int i = 0; i < this.getSize(); i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < this.getWidth(); j++ )\n\t\t\t{\n\t\t\t\tthis.setTile( count++, i, j );\n\t\t\t\tif( i == getSize( ) - 1 && j == getWidth( ) - 1 ) {\n\t\t\t\t\tthis.setTile( -1, i, j );\n\t\t\t\t\tlocationX = i;\n\t\t\t\t\tlocationY = j;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public void move(int distance);",
"public void move(FightCell cell);",
"public void makeMove(int id) {\n\t\t\n\t\tint position = findPosition(id);\n\t\t\n\t\tswap(position,blankTilePos);\n\t\t\n\t\tblankTilePos = position;\n\t\tnumMoves++;\n\t}",
"public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}",
"public void move(String direction) {\n\t\t// Constants.\n\t\tfinal int THRESHOLD = 5;\n\n\t\t// Delay player movement.\n\t\tif (this.delayCounter <= THRESHOLD) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Reset delay.\n\t\tthis.delayCounter = 0;\n\n\t\t// Set references.\n\t\tdouble oldX = this.tilePositionX;\n\t\tdouble oldY = this.tilePositionY;\n\t\tthis.direction = direction;\n\t\tint[][] map = this.level.getMap();\n\n\t\t// Move the player accordingly.\n\t\tif (direction.equals(\"left\")) {\n\t\t\tthis.tilePositionX = this.tilePositionX - this.MOVE_SPEED;\n\t\t}\n\t\tif (direction.equals(\"right\")) {\n\t\t\tthis.tilePositionX = this.tilePositionX + this.MOVE_SPEED;\n\t\t}\n\t\tif (direction.equals(\"up\")) {\n\t\t\tthis.tilePositionY = this.tilePositionY - this.MOVE_SPEED;\n\t\t}\n\t\tif (direction.equals(\"down\")) {\n\t\t\tthis.tilePositionY = this.tilePositionY + this.MOVE_SPEED;\n\t\t}\n\n\t\t// Updates the collisionBox.\n\t\tthis.collisionBox.setRect(this.tilePositionX * this.SCALE,\n\t\t\t\tthis.tilePositionY * this.SCALE, this.SCALE, this.SCALE);\n\n\t\t// Checks if it is colliding with regular or Gold tiles.\n\t\tcollideWithOthers(map);\n\t\tcollideWithGold(map, oldX, oldY);\n\n\t\t// Checks if it is colliding with the barrier.\n\t\tif (collideWithBarrier()) {\n\t\t\tthis.tilePositionX = oldX;\n\t\t\tthis.tilePositionY = oldY;\n\t\t}\n\n\t\t// Generates a new regualrCollisionBoxes array list.\n\t\tthis.level.generateRegularCollisionBoxes();\n\t}",
"void move(String direction) {\n \tif (direction.equals(\"A\")) { \n \t\tsetXCoord(getXCoord()-getHSpeed());\n \t} else if (direction.equals(\"D\")) {\n \t\tsetXCoord(getXCoord()+getHSpeed());\n \t}\n }",
"public void move(String direction);",
"@Override\n\tpublic void excute() {\n\t\tmoveEvent.move(commandinfo.getValue() * 200);\n\t}",
"private MoveAction moveInDirection(Direction direction) {\n\t\tposition.x += direction.x();\n\t\tposition.y += direction.y();\n\t\tmoveAllLists();\n\t\treturn new MoveAction(direction.moveCode());\n\t}",
"public void act(){\n\t\tTile[] possibleMoves = game.getAllNeighbours(currentPosition);\r\n\t\tTile targetTile = possibleMoves[rng.nextInt(4)];\r\n\t\tmove(targetTile);\r\n\t}",
"public boolean move() {\r\n\t\tif (direction == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tint newPosX = this.posX;\r\n\t\tint newPosY = this.posY;\r\n\r\n\t\tswitch (this.direction) {\r\n\t\tcase NORTH:\r\n\t\t\tnewPosY++;\r\n\t\t\tbreak;\r\n\t\tcase WEST:\r\n\t\t\tnewPosX--;\r\n\t\t\tbreak;\r\n\t\tcase SOUTH:\r\n\t\t\tnewPosY--;\r\n\t\t\tbreak;\r\n\t\tcase EAST:\r\n\t\t\tnewPosX++;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tboolean canMoveToNewPosition = tabletop.canMove(newPosX, newPosY);\r\n\t\tif (!canMoveToNewPosition) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tthis.posX = newPosX;\r\n\t\tthis.posY = newPosY;\r\n\r\n\t\treturn true;\r\n\t}",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public void move() {\r\n if(direction == 1) {\r\n if(userRow < grid.getNumRows() - 1) {\r\n userRow++;\r\n handleCollision(userRow, 1);\r\n }\r\n } else if(direction == -1) {\r\n if(userRow > 0) {\r\n userRow--;\r\n handleCollision(userRow, 1);\r\n }\r\n }\r\n }",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void move(){\n System.out.println(\"I can't move...\");\n }",
"boolean move(Unit unit, Direction direction);",
"abstract void move();",
"public boolean move();",
"public void MoveBlock(int direction) {\r\n switch (direction) {\r\n case 0://right\r\n SaveUndo();//save the old mao on undo array\r\n //update BlockList and map matrix\r\n blockList.updateBlock(i, j, i, j + 1, Integer.valueOf(String.valueOf(map[i][j])), 1);\r\n map[i][j + 1] = map[i][j];\r\n map[i][j] = '0';\r\n gamePage.Sounds(0);//move sound\r\n numberOfMoves++;\r\n break;\r\n case 1://left\r\n SaveUndo();//save the old mao on undo array\r\n //update BlockList and map matrix\r\n blockList.updateBlock(i, j, i, j - 1, Integer.valueOf(String.valueOf(map[i][j])), 2);\r\n map[i][j - 1] = map[i][j];\r\n map[i][j] = '0';\r\n gamePage.Sounds(0);//move sound\r\n numberOfMoves++;\r\n break;\r\n case 2://down\r\n new AnimationThread().execute('d');//check if move down\r\n new AnimationThread().execute('b');//check if there is block will remove\r\n break;\r\n }\r\n }",
"@Override\n\tpublic void move() {\n\t\t\n\t}",
"void move() {\n\t\tif (reachedEdge()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\t\tif (reachedLeft()) {\n\t\t\tvelocityX = velocityX * -1;\n\t\t\ty = y + 50;\n\t\t}\n\n\t\tx = x + velocityX;\n\t}",
"public void movePiece(Coordinate from, Coordinate to);",
"public PuzzleState move(int row, int column, Operation op);",
"public void movePlayer(String direction) {\n if(playerAlive(curPlayerRow, curPlayerCol)){\n if(direction.equals(\"u\")&&(curPlayerRow-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow-1), curPlayerCol);\n curPlayerRow -= 1;\n }else if(direction.equals(\"d\")&&(curPlayerRow+1)<=7){\n overwritePosition(curPlayerRow, curPlayerCol, (curPlayerRow+1), curPlayerCol);\n curPlayerRow += 1;\n }else if(direction.equals(\"l\")&&(curPlayerCol-1)>=0){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol-1));\n curPlayerCol -= 1;\n }else if(direction.equals(\"r\")&&(curPlayerCol+1)<=9){\n overwritePosition(curPlayerRow, curPlayerCol, curPlayerRow, (curPlayerCol+1));\n curPlayerCol += 1;\n }\n }\n if(playerFoundTreasure(curPlayerRow, curPlayerCol)){\n playerWins();\n }\n adjustPlayerLifeLevel(curPlayerRow, curPlayerCol);\n int[] array = calcNewTrollCoordinates(curPlayerRow, curPlayerCol, curTrollRow, curTrollCol);\n if(curPlayerRow == curTrollRow && curPlayerCol == curTrollCol){\n gameBoard[curTrollRow][curTrollCol] = new TrollPiece();\n }else{\n int newTrollRow = array[0];\n int newTrollCol = array[1];\n overwritePosition(curTrollRow, curTrollCol, newTrollRow, newTrollCol);\n curTrollRow = newTrollRow;\n curTrollCol = newTrollCol;\n }\n }",
"public void move() {\n\t\tif(path.size() != 0) {\n\t\t\tCoordinate c = path.get(0);\n\t\t\tint x1 = c.x;\n\t\t\tint y1 = c.y;\n\t\t\t\t\n\t\t\tif(Math.abs(x1 - x) > speed || Math.abs(y1 - y) > speed) {\n\t\t\t\tif(this.x > x1) {\n\t\t\t\t\tvy = 0;\n\t\t\t\t\ttx.translate(-speed, vy);\n\t\t\t\t\tthis.x -= speed;\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse if(this.x < x1) {\n\t\t\t\t\t//this.x += speed;\n\t\t\t\t\tvy = 0;\n\t\t\t\t\ttx.translate(speed, vy);\n\t\t\t\t\tthis.x += speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(this.y > y1) {\n\t\t\t\t\t//vx = 0;\n\t\t\t\t\ttx.translate(0, -speed);\n\t\t\t\t\tthis.y -= speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if(this.y < y1) {\n\t\t\t\t\t//vx = 0;\n\t\t\t\t\ttx.translate(0, speed);\n\t\t\t\t\tthis.y += speed;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\tpath.remove(0);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t}",
"public void Move()\n {\n \n }",
"public void move() {\n spriteBase.move();\n\n Double newX = spriteBase.getXCoordinate() + spriteBase.getDxCoordinate();\n Double newY = spriteBase.getYCoordinate() + spriteBase.getDyCoordinate();\n\n if (!newX.equals(spriteBase.getXCoordinate())\n || !newY.equals(spriteBase.getYCoordinate())) {\n Logger.log(String.format(\"Monster moved from (%f, %f) to (%f, %f)\",\n spriteBase.getXCoordinate(), spriteBase.getYCoordinate(), newX, newY));\n }\n }",
"public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }",
"private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}",
"public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }",
"@Override\n\tpublic void move() {\n\n\t}",
"boolean doMove();",
"private void tryMovePlayer(int direction) {\n int layerOffset = 0, rowOffset = 0, colOffset = 0;\n boolean canMove = false;\n Maze3D.Cell currentCell = maze3D[playerLayer][playerRow][playerCol];\n Maze3D.Cell nextCell = null;\n try {\n switch (direction)\n {\n case Maze3D.UP:\n nextCell = maze3D[playerLayer][playerRow - 1][playerCol];\n canMove = !(currentCell.isWallTop() || nextCell.isWallBottom());\n rowOffset = -1;\n break;\n case Maze3D.DOWN:\n nextCell = maze3D[playerLayer][playerRow + 1][playerCol];\n canMove = !(currentCell.isWallBottom() || nextCell.isWallTop());\n rowOffset = 1;\n break;\n case Maze3D.LEFT:\n nextCell = maze3D[playerLayer][playerRow][playerCol - 1];\n canMove = !(currentCell.isWallLeft() || nextCell.isWallRight());\n colOffset = -1;\n break;\n case Maze3D.RIGHT:\n nextCell = maze3D[playerLayer][playerRow][playerCol + 1];\n canMove = !(currentCell.isWallRight() || nextCell.isWallLeft());\n colOffset = 1;\n break;\n case Maze3D.FRONT:\n nextCell = maze3D[playerLayer - 1][playerRow][playerCol];\n canMove = !(currentCell.isWallFront() || nextCell.isWallBack());\n layerOffset = -1;\n break;\n case Maze3D.BACK:\n nextCell = maze3D[playerLayer + 1][playerRow][playerCol];\n canMove = !(currentCell.isWallBack() || nextCell.isWallFront());\n layerOffset = 1;\n break;\n }\n //if cell is not null and can move, then move\n if (nextCell != null && canMove)\n {\n playerLayer += layerOffset;\n playerRow += rowOffset;\n playerCol += colOffset;\n mazeView.setPlayerLocation(playerLayer, playerRow, playerCol);\n moves++;\n }\n //if new position is the solution, then game is solved\n if (isSolved())\n {\n notifyGameEnd();\n }\n }\n catch (ArrayIndexOutOfBoundsException e)\n {\n Log.d(TAG, \"tryMovePlayer: player tried to move to edge\");\n }\n }",
"@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"하늘을 날다\");\n\t}",
"public boolean moveUnit(Position from, Position to);",
"@Override\n public PlayerMove move() {\n\n return null;\n }",
"@Test\n public void respawnRobotX0Y0OnMoveDirectionNORTH(){\n checkRespawnOnOutOfBounds(0, 0, CardinalDirection.NORTH);\n }",
"@Override\n\tpublic void move() {\n\t}",
"@Override\n\tpublic void move(Direction d) {\n\t\t\n\t}"
] |
[
"0.7219207",
"0.6953276",
"0.69016576",
"0.6848261",
"0.68453413",
"0.6833477",
"0.6817804",
"0.6716043",
"0.66781",
"0.6629178",
"0.660351",
"0.6589621",
"0.6569732",
"0.6540164",
"0.6532495",
"0.6522173",
"0.65061325",
"0.65059185",
"0.65035504",
"0.64962435",
"0.64926434",
"0.6491415",
"0.64671963",
"0.64606565",
"0.64606565",
"0.6458948",
"0.64448404",
"0.64428127",
"0.6415348",
"0.64145446",
"0.640661",
"0.6406076",
"0.6394988",
"0.63900703",
"0.63865006",
"0.6372016",
"0.6365545",
"0.63536036",
"0.6344533",
"0.6329831",
"0.6328807",
"0.63248914",
"0.6315825",
"0.6313368",
"0.6309039",
"0.6307097",
"0.62903583",
"0.627859",
"0.6274325",
"0.6271517",
"0.6264671",
"0.62637466",
"0.6263724",
"0.6263252",
"0.6232029",
"0.6227786",
"0.6225737",
"0.6216302",
"0.62160265",
"0.619829",
"0.6191447",
"0.6178236",
"0.6175705",
"0.6174949",
"0.6173531",
"0.6173477",
"0.6173477",
"0.6173477",
"0.6173477",
"0.6173477",
"0.6173477",
"0.6173477",
"0.6173386",
"0.6167523",
"0.6164583",
"0.6163234",
"0.6162756",
"0.6161975",
"0.6161669",
"0.6158739",
"0.61563265",
"0.615337",
"0.6151065",
"0.6147175",
"0.61399215",
"0.61371183",
"0.6124584",
"0.6120566",
"0.61188173",
"0.61131036",
"0.61074996",
"0.61032164",
"0.6101169",
"0.6098043",
"0.60972416",
"0.6096684",
"0.6096212",
"0.6092405",
"0.6091394",
"0.60856724"
] |
0.6834614
|
5
|
Set new matrix and find empty tile inside it
|
public void setMatrix(int[] matrix) {
this.matrix = matrix;
this.emptyTileIndex = indexOfEmptyTile();
if (this.emptyTileIndex == -1) throw new IllegalStateException("Board does not contains empty tile!");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}",
"private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }",
"public void fillBoard() {\n List<Integer> fifteen = ArrayUtils.intArrayToList(SOLVED_BOARD);\n Collections.shuffle(fifteen, this.random);\n this.emptyTileIndex = fifteen.indexOf(0);\n this.matrix = fifteen.stream().mapToInt(i -> i).toArray();\n }",
"@Override\n\tpublic void reset() {\n\t\tfor (int i = 0; i < _board.length; i++)\n for (int j = 0; j < _board[i].length; j++)\n \t_board[i][j] = null;\n\n\t\t_columnFull = new HashSet<Integer>();\n\t\t_lastPosition = new HashMap<Integer,Integer>();\n\t}",
"private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }",
"public void clearTiles() {\n \tfor (int x = 0; x < (mAbsoluteTileCount.getX()); x++) {\n for (int y = 0; y < (mAbsoluteTileCount.getY()); y++) {\n setTile(0, x, y);\n }\n }\n }",
"public void Reset ( ) \r\n\t{\r\n\t\tcurrentCol = size / 2;\r\n\t\tcurrentRow = size / 2;\r\n\t\t\r\n\t\tint totalDistance;\r\n\t\tdo {\r\n\t\tint dist = size*size+1;\r\n\t\tmaze = new Room [size] [size];\r\n\t\tfor ( int row = 0; row < size; row++ )\r\n\t\t\tfor ( int col = 0; col < size; col++ )\r\n\t\t\t\tmaze [row] [col] = new Room ( dist);\r\n\t\ttotalDistance = CalcDistance();\r\n\t\t} while ( totalDistance >= size*size );\r\n\t\t\r\n\t\tmaze [currentRow] [currentCol].InsertWalker ( );\r\n\t}",
"private void updateClearedTiles() {\r\n int count = 0;\r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (!grid[r][c].isHidden() && !grid[r][c].isBomb()) {\r\n count++;\r\n }\r\n }\r\n }\r\n clearedTiles = count;\r\n }",
"public void reset( )\n\t{\n\t\tint count = 1;\n\t\tthis.setMoves( 0 );\n\t\tfor( int i = 0; i < this.getSize(); i++ )\n\t\t{\n\t\t\tfor( int j = 0; j < this.getWidth(); j++ )\n\t\t\t{\n\t\t\t\tthis.setTile( count++, i, j );\n\t\t\t\tif( i == getSize( ) - 1 && j == getWidth( ) - 1 ) {\n\t\t\t\t\tthis.setTile( -1, i, j );\n\t\t\t\t\tlocationX = i;\n\t\t\t\t\tlocationY = j;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public void resetEmpty() {\n\t /*reset the mineField with no mines*/\n mineField = blankField(this.row, this.col);\n }",
"public void findBlank () {\n // blank position\n for (int r = 0; r < rows; r++) {\n for (int c = 0; c < columns; c++) {\n if (this.currentState[r][c] == blank) {\n setBlankCoordinates(new int[]{r, c});\n }\n }\n }\n }",
"private void resetPosition() {\n for (int i = 0; i < board.length; i++) {\n for (int j = 0; j < board[0].length; j++) {\n if (!board[i][j]) {\n rowPos = i;\n columnPos = j;\n return;\n }\n }\n }\n }",
"public void blank() {\r\n\t\trunning = false;// sets the simulation to stopped\r\n\t\tfor (int i = 0; i < TOTAL_TILES; i++)// loops through all tiles\r\n\t\t\tnodes[i] = new Node(new Point(i / WIDTH_TILES * SIZE_TILES, i % HEIGHT_TILES * SIZE_TILES), new ImageIcon(\"empty.png\").getImage(), false, \"empty\");// sets empty tile\r\n\t}",
"public void fillTheBoard() {\n for (int i = MIN; i <= MAX; i++) {\n for (int j = MIN; j <= MAX; j++) {\n this.getCells()[i][j] = new Tile(i, j, false);\n }\n }\n }",
"public void clearTiles() {\r\n\r\n for (int i = 0; i < 16; i += 1) {\r\n tiles[i] = 0;\r\n }\r\n boardView.invalidate();\r\n placedShips = 0;\r\n }",
"public void initializeMaze(){\n for(int i = 0; i < 20; i ++){\n for(int j = 0; j < 15; j ++){\n if((i % 2 == 1) && (j % 2 == 1)){\n maze[i][j] = NOTVISIBLESPACE;\n }\n else{\n maze[i][j] = NOTVISIBLEWALL;\n }\n }\n }\n\n for(int i = 0; i < 15; i ++){\n maze[19][i] = NOTVISIBLEWALL;\n }\n }",
"private static void mineInitialization(){\n\t\tfor (int m = 0; m < BOARD_SIZE; m++)\n\t\t{\n\t\t\tmX = RNG.nextInt(BOARD_SIZE);\n\t\t\tmY = RNG.nextInt(BOARD_SIZE);\n\t\t\tif(gameBoard[mX][mY].equals(Spaces.Empty))\n\t\t\t{\n\t\t\t\tgameBoard[mX][mY] = Spaces.Mine;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tm--;\n\t\t\t}\n\t\t}\n\t}",
"private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}",
"public void resetMap() {\n for (int x = 0; x < cells; x++) {\n for (int y = 0; y < cells; y++) {\n Node current = map[x][y];\n if (current.getType() == 4 || current.getType() == 5)\n map[x][y] = new Node(3, x, y);\n }\n }\n\n if (startx > -1 && starty > -1) { //RESET THE START AND FINISH\n map[startx][starty] = new Node(0, startx, starty);\n map[startx][starty].setJumps(0);\n }\n\n if (finishx > -1 && finishy > -1)\n map[finishx][finishy] = new Node(1, finishx, finishy);\n\n reset(); //RESET SOME VARIABLES\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 }",
"@Test\n public void emptyBoard() {\n Board b = new Board();\n for (int c = 0; c < b.SIZE; c += 1) {\n for (int r = 0; r < b.SIZE; r += 1) {\n assertEquals(EMPTY, b.get(c, r));\n }\n }\n }",
"private void overwritePositionWithEmpty(int row, int col){\n gameBoard[row][col] = new EmptyPiece();\n }",
"void markRowAndColumnZero(int[][] matrix) {\n HashSet<Integer> rows = new HashSet<Integer>();\n HashSet<Integer> columns = new HashSet<Integer>();\n for(int i=0; i< matrix.length;i++) {\n for(int j =0; j < matrix[0].length; j++) {\n if(matrix[i][j] == 0) {\n rows.add(i);\n columns.add(j);\n }\n }\n }\n Iterator<Integer> rowsIterator = rows.iterator();\n while(rowsIterator.hasNext()) {\n int rowToBeSetToZero = rowsIterator.next();\n for(int i=0;i< matrix[0].length;i++) {\n matrix[rowToBeSetToZero][0] = 0;\n }\n }\n\n Iterator<Integer> columnsIterator = columns.iterator();\n while(columnsIterator.hasNext()) {\n int columnToBeSetToZero = columnsIterator.next();\n for(int i=0;i< matrix[0].length;i++) {\n matrix[i][columnToBeSetToZero] = 0;\n }\n }\n\n return;\n\n\n }",
"public void plantBombsInEmptyCells() {\n\t\tfor (int i = 0; i < r; i++) {\n\t\t\tfor (int j = 0; j < c; j++) {\n\t\t\t\tgrid[i][j] = ( grid[i][j] < 0 ? 0 : grid[i][j] );\n\t\t\t}\n\t\t}\n\t}",
"public void renderBoard(){\n for (int k = 0; k < grid.length; k++)\n for (int m = 0; m < grid[k].length; m++)\n grid[k][m] = 0;\n\n // fill the 2D array using information for non-empty tiles\n for (Cell c : game.getNonEmptyTiles())\n grid[c.getRow()][c.getCol()] = c.getValue();\n }",
"public void makeIdentity() {\n if (rows == cols) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n if (i == j) {\n matrix.get(i)[j] = 1;\n }\n else {\n matrix.get(i)[j] = 0;\n }\n }\n }\n }\n else {\n throw new NonSquareMatrixException();\n }\n }",
"void makeZero(){\n nnz = 0;\n for(int i=0; i<this.matrixSize; i++){\n this.rows[i] = new List();\n }\n }",
"public void clear(){\r\n\t\tfor ( int x = 0; x < grid.length; x++ )\r\n\t\t\tfor ( int y = 0; y < grid[0].length; y++ )\r\n\t\t\t\tgrid[x][y] = false;\r\n\t}",
"private void setMediumDifficultyGridUp1(){\n\t\tmediumDifficulty1 = new SudokuGrid();\n\t\tCell[][] _matrix = {{new Cell(6), new Cell(0), new Cell(0), new Cell(0), new Cell(1), new Cell(0), new Cell(0), new Cell(7), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(8), new Cell(0), new Cell(5), new Cell(7), new Cell(0), new Cell(0), new Cell(0), new Cell(4), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(2), new Cell(0), new Cell(5), new Cell(0), new Cell(0), new Cell(6), new Cell(0), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(3), new Cell(0), new Cell(0), new Cell(0), new Cell(4), new Cell(7), new Cell(0), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(7), new Cell(0), new Cell(0), new Cell(3), new Cell(0), new Cell(8), new Cell(0), new Cell(0), new Cell(2)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(0), new Cell(9), new Cell(1), new Cell(0), new Cell(0), new Cell(0), new Cell(5), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(0), new Cell(2), new Cell(0), new Cell(0), new Cell(1), new Cell(0), new Cell(8), new Cell(0)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(7), new Cell(0), new Cell(0), new Cell(0), new Cell(5), new Cell(3), new Cell(0), new Cell(6)},\n\t\t\t\t\t\t\t{new Cell(0), new Cell(6), new Cell(0), new Cell(0), new Cell(2), new Cell(0), new Cell(0), new Cell(0), new Cell(7)}};\n\t\tmediumDifficulty1.set_matrix(_matrix);\n\t}",
"@Test\n public void checkingForCorrectBlankIdPosition() {\n BoardManager boardManager = new BoardManager(3, 3);\n Tile tiles[][] = new Tile[Board.NUM_ROWS][Board.NUM_COLS];\n tiles[0][0] = new Tile(0);\n tiles[0][1] = new Tile(7);\n tiles[0][2] = new Tile(1);\n tiles[1][0] = new Tile(8);\n tiles[1][1] = new Tile(3);\n tiles[1][2] = new Tile(2);\n tiles[2][0] = new Tile(6);\n tiles[2][1] = new Tile(5);\n tiles[2][2] = new Tile(4);\n boardManager.getBoard().setTiles(tiles);\n assertEquals(2, boardManager.findXPosition());\n }",
"public void reset() {\n for (int i = 0; i < numberOfRows; i++ ) {\n for (int j =0; j < numberOfColumns; j++) {\n if (grid[i][j] == LASER) {\n this.Remove(i,j);\n }\n }\n }\n }",
"public void resetBoard(){\r\n for(int i = 0;i<6;i++){ //empty board \r\n for (int j = 0; j < 7; j++) {\r\n boardRep[i][j] = 0;\r\n }\r\n }\r\n \r\n for (int i = 0; i < 7; i++) { // set column heights to 0\r\n currentFilled[i] = 0;\r\n }\r\n \r\n blackToPlay = true; //black goes first for now\r\n refreshDisplay(); \r\n \r\n }",
"public ArrayList<Tile> getEmptyTiles(){\n\t\tArrayList<Tile> emptyTiles = new ArrayList<Tile>();\n\t\tArrayList<Tile> boardTiles = getAllBoardTiles();\n\t\tfor (Tile tile : boardTiles) {\n\t\t\tif(tile.getPiece()== null && tile.getColor1()== PrimaryColor.BLACK) {\n\t\t\t\temptyTiles.add(tile);\n\t\t\t}\n\t\t}\n\t\treturn emptyTiles;\n\t}",
"private void genInitialMatch(){\n for (int i = 0; i < rows; i++)\n for (int j = 0; j < cols; j++)\n if(source[i][j] == 0 && chosenInRow[i] == -1 && chosenInCol[j] == -1) {\n chosenInRow[i] = j;\n chosenInCol[j] = i;\n break;\n }\n }",
"public void reset() {\n for (int r = 0; r < size; r++) {\n for (int c = 0; c < size; c++) {\n board[r][c] = null;\n }\n }\n }",
"public void fill() {\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tmaze[x][y] = Block.WALL;\n\t\t\t}\n\t\t}\n\t}",
"public void reset() {\n\t\ttilePath.clear();\n\t}",
"public void setAdjacent()\r\n {\n \t\r\n adjacentTiles = new Tile[6];\r\n \r\n \r\n //Driver.map[VERT][HOR]\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos > 1) //topleft\r\n {\r\n \ttopLeft = Driver.map[verticalPos + 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \ttopLeft = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length - 2) //top\r\n {\r\n \ttop = Driver.map[verticalPos + 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \ttop = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos < Driver.map[0].length) //topright\r\n {\r\n \ttopRight = Driver.map[verticalPos + 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \ttopRight = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos < Driver.map[0].length) //bottomright\r\n {\r\n \tbottomRight = Driver.map[verticalPos - 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \tbottomRight = null;\r\n }\r\n \r\n if(verticalPos > 2) //bottom\r\n {\r\n \tbottom = Driver.map[verticalPos - 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \tbottom = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos > 1) //botttomLeft\r\n {\r\n \tbottomLeft = Driver.map[verticalPos - 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \tbottomLeft = null;\r\n }\r\n \t\r\n \r\n adjacentTiles[0] = topLeft;\r\n adjacentTiles[1] = top;\r\n adjacentTiles[2] = topRight;\r\n adjacentTiles[3] = bottomRight;\r\n adjacentTiles[4] = bottom;\r\n adjacentTiles[5] = bottomLeft;\r\n \r\n \r\n// System.out.print(\"main tile \" + getHor() + \", \" + getVert() + \" \");\r\n// for(int i = 0; i < adjacentTiles.length; i++)\r\n// {\r\n// \tif( adjacentTiles[i] != null)\r\n// \t\tSystem.out.print(adjacentTiles[i].getHor() + \", \" + adjacentTiles[i].getVert() + \" | \");\r\n// \telse\r\n// \t\tSystem.out.print(\"null \");\r\n// }\r\n// System.out.println();\r\n \r\n }",
"private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}",
"@Override\r\n\tpublic void reset() {\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].Clear();\r\n\t\t}\r\n\t\tcomputerTurn();\r\n\t\tcomputerTurn();\r\n\t\tfreeCells = rows_size*columns_size - 2;\r\n\t\ttakenCells = 2;\r\n\t}",
"public void presetPattern(){\n // clear all the cells\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n game.grid[i][j] = false;\n }\n }\n \n // change specific cells to live\n for (int i = 7; i < 12; i++) {\n for (int j = 7; j < 12; j++) {\n game.grid[i][j] = true;\n }\n }\n \n // remove middle cell\n game.grid[9][9] = false;\n \n repaint();\n }",
"public void clear() {\n rows = cols = 0;\n matrix.clear();\n }",
"void create(){\n // I assign zero value to each element of the array.\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n array[i][j]= 0;\n }\n }\n // I create random values for mines indexes\n int min = 0;\n int max = this.row;\n Random random = new Random();\n int randRow, randColumn, count=0;\n //I generate random mines quarter of the size of the array and assign it into the array.\n while(count != (this.row*this.column/4)){\n randRow = random.nextInt(max + min) + min;\n randColumn = random.nextInt(max + min) + min;\n if (array[randRow][randColumn] != -1){\n array[randRow][randColumn]= -1;\n count++;\n }\n }\n // I show the all minesweeper map\n for (int i = 0;i< this.row; i++){\n for (int j = 0; j< this.column; j++){\n if (array[i][j]==0)\n System.out.print(\"0 \");\n else\n System.out.print(\"* \");\n }\n System.out.println();\n }\n }",
"public void setZeroes2(int[][] matrix) {\n boolean row00 = false;\n boolean col00 = false;\n\n int row = 0, col = 0;\n int rows = matrix.length;\n int cols = matrix[0].length;\n while (col < cols && !row00) {\n row00 = matrix[0][col++] == 0;\n }\n while (row < rows && !col00) {\n col00 = matrix[row++][0] == 0;\n }\n\n for (row = 1; row < rows; ++row) {\n for (col = 1; col < cols; ++col) {\n if (matrix[row][col] == 0) {\n matrix[row][0] = 0;\n matrix[0][col] = 0;\n }\n }\n }\n for (row = 1; row < rows; ++row) {\n for (col = 1; col < cols; ++col) {\n if (matrix[0][col] == 0 || matrix[row][0] == 0) {\n matrix[row][col] = 0;\n }\n }\n }\n if (row00) {\n for (col = 0; col < cols; ++col) {\n matrix[0][col] = 0;\n }\n }\n if (col00) {\n for (row = 0; row < rows; ++row) {\n matrix[row][0] = 0;\n }\n }\n }",
"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}",
"private void tileSetSurroundingBombs() {\r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n int neighborBombs = neighborBombCount(grid[r][c]);\r\n grid[r][c].setSurroundingBombs(neighborBombs);\r\n }\r\n } \r\n }",
"public void find_empty_cells(int j) {\n\n int current_col = j % cols;\n int cell;\n\n if (current_col > 0) {\n cell = j - cols - 1;\n if (cell >= 0)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j - 1;\n if (cell >= 0)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j + cols - 1;\n if (cell < all_cells)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n }\n\n cell = j - cols;\n if (cell >= 0)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j + cols;\n if (cell < all_cells)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n if (current_col < (cols - 1)) {\n cell = j - cols + 1;\n if (cell >= 0)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j + cols + 1;\n if (cell < all_cells)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j + 1;\n if (cell < all_cells)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n }\n\n }",
"public void resetBoard(){\n totalmoves = 0;\n this.board = new Cell[3][3];\n //fill the board with \"-\"\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board[i][j]=new Cell(new Coordinates(i,j), \"-\");\n }\n }\n }",
"public void clearGrid() {\n\t\tfor (int i = 0; i < this.board.length; i++) {\n\t\t\tArrays.fill(this.board[i], EMPTY);\n\t\t}\n\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}",
"public void clearHighlightTile() {\n\t\tfor(int i = 0;i < 8;i++) {\n\t\t\tfor(int j = 0;j < 8;j++) {\n\t\t\t\tRectangle rect = Main.tile[i][j].rectangle;\n\t\t\t\tif(rect.getStrokeType() == StrokeType.INSIDE){\n\t\t\t\t\trect.setStrokeType(StrokeType.INSIDE);\n\t\t\t\t\trect.setStroke(Color.TRANSPARENT);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void reset() {\n for (int r = 0; r < MAX_ROWS; r++) {\n for (int c = 0; c < MAX_COLUMNS; c++) {\n cells[r][c].reset();\n }\n }\n mazeGeneration.clear();\n }",
"private void makeInitial(){\r\n for (int row = 0; row < 9; row++)\r\n System.arraycopy(solution[row], 0, initial[row], 0, 9);\r\n List<Position> fields = new ArrayList<Position>();\r\n for (int row = 0; row < 9; row++)\r\n for (int col = 0; col < 9; col++)\r\n fields.add(new Position(row, col));\r\n Collections.shuffle(fields);\r\n for (int index = 0; index < 40; index ++)\r\n initial[fields.get(index).row][fields.get(index).col] = 0;\r\n }",
"public boolean fill() {\n boolean modified = false;\n for (int i = 0; i < gameBoard.getSize(); i++) {\n for (int j = gameBoard.getSize() - 1; j >= 0; j--) {\n Coordinates actualCoordinates = new Coordinates(i, j);\n if (gameBoard.getValue(actualCoordinates) == 0) {\n if (j == 0) {\n gameBoard.setValue(actualCoordinates, DiamondColor.getRandomColor());\n } else {\n Coordinates topCoordinates = new Coordinates(i, j - 1);\n gameBoard.setValue(actualCoordinates, gameBoard.getValue(topCoordinates));\n gameBoard.setValue(topCoordinates, 0);\n }\n modified = true;\n }\n }\n }\n return modified;\n }",
"private void setNeighboringMines(){\n\t\t//cycle the board\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++){\n\t\t\t\tint neighborCount = 0;\n\t\t\t\tif(!board[r][c].isMine()) {\n\t\t\t\t\t//checks if there is mines touching\n\t\t\t\t\tneighborCount = neighboringMines(r, c);\n\t\t\t\t\tif (neighborCount > 0) {\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(true);\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines\n\t\t\t\t\t\t\t\t(neighborCount);\n\t\t\t\t\t} else if (neighborCount == 0) {\n\t\t\t\t\t\tboard[r][c].setNumNeighboringMines(0);\n\t\t\t\t\t\tboard[r][c].setIsNeighboringMine(false);\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private TETile[][] initialize() {\n int width = size.width;\n int height = size.height;\n world = new TETile[width][height];\n for (int w = 0; w < width; w++) {\n for (int h = 0; h < height; h++) {\n world[w][h] = Tileset.NOTHING;\n }\n }\n return world;\n }",
"private static int[][] identifyMatrixWithZeros(int[][] matrix){\n\t\tboolean[] rowCheck = new boolean[matrix.length];\n\t\tboolean[] colCheck = new boolean[matrix[0].length];\n\n\t\tfor(int i=0;i<matrix.length ;i++) {\n\t\t\tfor(int j=0;j<matrix[0].length;j++) {\n\t\t\t\tif(matrix[i][j] == 0) {\n\t\t\t\t\trowCheck[i] = true;\n\t\t\t\t\tcolCheck[j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int row=0;row<rowCheck.length;row++) {\n\t\t\tif(rowCheck[row])\n\t\t\t\tnullifyRows(matrix, row);\n\t\t}\n\t\t\n\t\tfor(int col=0;col<colCheck.length;col++) {\n\t\t\tif(colCheck[col])\n\t\t\t\tnullifyColumns(matrix, col);\n\t\t}\n\t\treturn matrix;\n\t}",
"public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }",
"private void initGameMatrix() {\n double matrixTileHeight = this.fieldPane.getMaxHeight() / 11;\n double matrixTileWidth = this.fieldPane.getMaxWidth() / 11;\n\n for (int i = 0; i < this.fieldPane.getMaxWidth(); i += matrixTileWidth) {\n for (int j = 0; j < this.fieldPane.getMaxHeight(); j += matrixTileHeight) {\n Rectangle2D r = new Rectangle2D(j, i, matrixTileWidth, matrixTileHeight);\n gameMatrix.add(r);\n }\n }\n }",
"@Test(timeout=2000)\n public void fullBoardMatch() {\n ThreesBoard board = new ThreesBoard(); \n \n for (int i = 0; i < ThreesBoard.ROWS; i++) {\n for (int j = 0; j < ThreesBoard.COLUMNS; j++) {\n board.set_tile(i, j, 1); \n }\n }\n board.set_tile(0, 0, 2);\n ThreesController threes = new ThreesController(board);\n threes.move_up();\n assertTrue(threes.getBoard().get_tile(0, 0).getValue() == 3);\n assertTrue(threes.getBoard().get_tile(1, 0).getValue() == 1);\n assertTrue(threes.getBoard().get_tile(2, 0).getValue() == 1);\n }",
"public void setZeroes_ok(int[][] matrix) {\n\t\tif (matrix == null || matrix.length == 0)\n\t\t\treturn;\n\n\t\tint m = matrix.length;\n\t\tint n = matrix[0].length;\n\n\t\tif (m == 1) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tif (matrix[0][j] == 0) {\n\t\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\t\tmatrix[0][k] = 0;\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (n == 1) {\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tif (matrix[i][0] == 0) {\n\t\t\t\t\tfor (int k = 0; k < m; k++) {\n\t\t\t\t\t\tmatrix[k][0] = 0;\n\t\t\t\t\t}\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint idx = 0;\n\t\tboolean[][] visit = new boolean[m][n];\n\t\twhile (idx <= m * n - 1) {\n\t\t\tint i = idx / n;\n\t\t\tint j = idx % n;\n\t\t\tif (i < m && j < n && matrix[i][j] == 0 && visit[i][j] == false) {\n\t\t\t\t// set whole row to 0\n\t\t\t\tfor (int k = 0; k < n; k++) {\n\t\t\t\t\tif (matrix[i][k] != 0) {\n\t\t\t\t\t\tmatrix[i][k] = 0;\n\t\t\t\t\t\tvisit[i][k] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// set whole col to 0\n\t\t\t\tfor (int l = 0; l < m; l++) {\n\t\t\t\t\tif (matrix[l][j] != 0) {\n\t\t\t\t\t\tmatrix[l][j] = 0;\n\t\t\t\t\t\tvisit[l][j] = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tidx++;\n\t\t}\n\t}",
"private void resetMatrix() {\n mSuppMatrix.reset();\n setImageViewMatrix(getDrawMatrix());\n checkMatrixBounds();\n }",
"public void reset() {\n\t\tfor (int x = 0; x < worldWidth; x++) {\n\t\t\tfor (int y = 0; y < worldHeight; y++) {\n\t\t\t\ttileArr[x][y].restart();\n\t\t\t}\n\t\t}\n\t\tlost = false;\n\t\tisFinished = false;\n\t\tplaceBombs();\n\t\tsetNumbers();\n\t}",
"public void resetSquares(){\n int x = 0;\n int y = 0;\n for (int i = 0; i < board.length;i++){\n if(x == row){\n x = 0;\n }\n x++;\n for(int j = 0; j < board.length; j++){\n if(y == column){\n y = 0;\n }\n y++;\n board[i][j] = new Square(x, y);\n }\n }\n }",
"public void setZeroes(int[][] matrix) {\n\t\t\tint m = matrix.length;\n\t\t\tint n = matrix[0].length;\n\t\t\t\n\t\t\tboolean fc = false, fr = false; // first row, first column as markers\n\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tif (matrix[i][j] == 0) {\n\t\t\t\t\t\tif (i == 0) fr = true;\n\t\t\t\t\t\tif (j == 0) fc = true;\n\t\t\t\t\t\tmatrix[0][j] = 0;\n\t\t\t\t\t\tmatrix[i][0] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 1; i < m; i++) {\n\t\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\t\tif (matrix[0][j] == 0 || matrix[i][0] == 0) {\n\t\t\t\t\t\tmatrix[i][j] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (fr) {\n\t\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t\tmatrix[0][j] = 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (fc) {\n\t\t\t\tfor (int i = 0; i < m; i++) {\n\t\t\t\t\tmatrix[i][0] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void clearSubbedTiles() { subbedTiles.clear(); }",
"public void assignmines() {\n\n for(int row = 0; row < mineBoard.length; row++) {\n for(int col = 0; col < mineBoard[0].length; col++) {\n mineBoard[row][col] = 0;\n }\n }\n\n int minesPlaced = 0;\n Random t = new Random();\n while(minesPlaced < nummines) {\n int row = t.nextInt(10);\n int col = t.nextInt(10);\n if(mineBoard[row][col] == Empty) {\n setmine(true);\n mineBoard[row][col] = Mine;\n minesPlaced++;\n }\n }\n }",
"public void updateBoard() {\r\n\t\tfor(int i = 0, k = 0; i < board.getWidth(); i+=3) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j+=3) {\r\n\t\t\t\t//Check that there are pieces to display\r\n\t\t\t\tif(k < bag.size()) {\r\n\t\t\t\t\tboard.setTile(bag.get(k), i, j);\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tboard.fillSpace(GridSquare.Type.EMPTY, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean isEmpty( int r, int c ) {\n\treturn matrix[r][c] == null;\n }",
"public void next(){\n\t\tboolean[][] newBoard = new boolean[rows][columns]; //create a temporary board, same size as real game board\n\t\tfor(int i = 0; i < rows; i++){\n\t\t\tfor(int j = 0; j < columns; j++){\n\t\t\t\tnewBoard[i][j] = false; //set all to false\n\t\t\t}\n\t\t}\n\t\tint cellCounter = 0;\n\t\tfor (int i = (rows - 1); i >= 0; i--) {\n\t\t\tfor (int j = (columns - 1); j >= 0; j--) { //iterate through the game board\n\t\t\t\tfor (int k = (i - 1); k < (i + 2); k++) {\n\t\t\t\t\tfor (int m = (j - 1); m < (j + 2); m++) {//iterate around the testable element\n\t\t\t\t\t\tif (!(k == i && m == j)) {\n\t\t\t\t\t\t\tif (!((k < 0 || k > (rows - 1)) || (m < 0 || m > (columns - 1)))) { //if not out of bounds and not the original point\n\t\t\t\t\t\t\t\tif (theGrid[k][m]) {\n\t\t\t\t\t\t\t\t\tcellCounter++; //if a cell is alive at the surrounding point, increase the counter\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (cellCounter == 3 || cellCounter == 2 && theGrid[i][j]) { //if meets the criteria\n\t\t\t\t\tnewBoard[i][j] = true; //create on new board\n\t\t\t\t}\n\t\t\t\tcellCounter = 0; //reset cell counter\n\t\t\t}\n\t\t}\n\t\t//transpose onto new grid\n\t\tfor(int i = 0; i < rows; i++){\n\t\t\tfor(int j = 0; j < columns; j++){\n\t\t\t\tif(newBoard[i][j]){ //read temp board, set temp board data on real game board\n\t\t\t\t\ttheGrid[i][j] = true;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttheGrid[i][j] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void clear() {\n\t\tfor(int i=0;i<height;i++) {\n\t\t\tfor(int j=0;j<width;j++) {\n\t\t\t\tgrid[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"private void floodFill(Tile tile) {\r\n // Check that this tile is non clicked to prevent infinite loops\r\n if (tile.clickable()) {\r\n // Show contents and set as clicked\r\n tile.setVisibleType(tile.getType());\r\n updateClearedTiles();\r\n\r\n int row = tile.getRow();\r\n int col = tile.getCol();\r\n\r\n if (tiles[row][col] == 0) {\r\n for (int rowCheck = -1; rowCheck <= 1; rowCheck++) {\r\n for (int colCheck = -1; colCheck <= 1; colCheck++) {\r\n int tempRow = row+rowCheck;\r\n int tempCol = col+colCheck;\r\n if (tileExistAndNotMine(tempRow, tempCol)) {\r\n Tile current = tileList.get(tempRow * BOARD_MAX_WIDTH + tempCol);\r\n System.out.println(current);\r\n floodFill(current);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void nullifyMatrix(int[][] mat) {\r\n //extra space\r\n boolean rows[] = new boolean[mat[0].length];\r\n boolean columns[] = new boolean[mat.length];\r\n \r\n for (int i=0;i<mat.length ;i++ ) {\r\n for (int j=0; j<mat[0].length;j++ ) {\r\n if(mat[i][j] == 0) {\r\n rows[i] = true;\r\n columns[j] = true;\r\n }\r\n } \r\n }\r\n \r\n //Nullify rows\r\n for(int i=0; i<rows.length; i++) {\r\n if(rows[i])\r\n helperNullifyRow(mat, i);\r\n }\r\n //Nullify columns\r\n for(int i=0; i<columns.length; i++) {\r\n if(columns[i])\r\n helperNullifyColumn(mat,i);\r\n }\r\n printMat(mat);\r\n }",
"public void setZeroes1(int[][] matrix) {\n boolean col00 = false;\n\n int row, col;\n int rows = matrix.length;\n int cols = matrix[0].length;\n for (row = 0; row < rows; ++row) {\n for (col = 0; col < cols; ++col) {\n if (matrix[row][col] == 0) {\n if (col != 0) {\n matrix[0][col] = 0;\n matrix[row][0] = 0;\n } else {\n col00 = true;\n }\n }\n }\n }\n for (row = rows - 1; row >= 0; --row) {\n for (col = 1; col < cols; ++col) {\n if (matrix[row][0] == 0 || matrix[0][col] == 0) {\n matrix[row][col] = 0;\n }\n }\n }\n if (col00) {\n for (row = rows - 1; row >= 0; --row) {\n matrix[row][0] = 0;\n }\n }\n }",
"private void fillBoard() {\n\n boardMapper.put(1, new int[]{0, 0});\n boardMapper.put(2, new int[]{0, 1});\n boardMapper.put(3, new int[]{0, 2});\n boardMapper.put(4, new int[]{1, 0});\n boardMapper.put(5, new int[]{1, 1});\n boardMapper.put(6, new int[]{1, 2});\n boardMapper.put(7, new int[]{2, 0});\n boardMapper.put(8, new int[]{2, 1});\n boardMapper.put(9, new int[]{2, 2});\n\n }",
"static void update(int[][] matrix){\n\t\tboolean rowFlag = false;\n\t\tboolean colFlag = false;\n\t\tint n = matrix.length;\n int m = matrix[0].length;\n for(int i=0;i<n;i++){\n for(int j=0;j<m;j++){\n if(i==0 && matrix[i][j]==0){\n rowFlag =true;\n }\n if(j==0 && matrix[i][j]==0){\n colFlag = true;\n }\n if(matrix[i][j]==0){\n matrix[0][j] = 0;\n matrix[i][0] = 0;\n }\n }\n }\n for(int i=1;i<n;i++){\n for(int j=1;j<m;j++){\n if(matrix[i][0]==0||matrix[0][j]==0){\n matrix[i][j]=0;\n }\n }\n }\n if(rowFlag){\n for(int i=0;i<m;i++){\n matrix[0][i] =0 ;\n }\n }\n if(colFlag){\n for(int j=0;j<n;j++){\n matrix[j][0] = 0;\n }\n }\n\n\t}",
"public boolean fillGrid(int[][] grid) {\n Integer[] intArray = {1, 2, 3, 4, 5, 6, 7, 8, 9};\n\n //Find unfilled cell and fill it.\n for (int i = 0; i < 81; i++) {\n int row = i / 9;\n int col = i % 9;\n if (grid[row][col] == 0) {\n\n //Shuffle collection\n List<Integer> intList = Arrays.asList(intArray);\n Collections.shuffle(intList);\n Integer[] numbers = intList.toArray(intArray);\n for (int j = 0; j < numbers.length; j++) {\n\n //Test Row to see if it contains the value\n if (!Arrays.asList(grid[row][0], grid[row][1], grid[row][2], \n \t\tgrid[row][3], grid[row][4], grid[row][5], grid[row][6], \n \t\tgrid[row][7], grid[row][8]).contains(numbers[j])) {\n\n //Test Column to see if it contains the value\n if (!Arrays.asList(grid[0][col],grid[1][col],grid[2][col],\n \t\tgrid[3][col],grid[4][col],grid[5][col],grid[6][col],\n \t\tgrid[7][col],grid[8][col]).contains(numbers[j])) {\n\n //Test squares to see if they contain value\n int[] testsquare;\n if (row < 3) {\n if (col < 3) {\n testsquare = testSection(grid, 3, 3, 0, 0);\n } else if (col < 6){\n testsquare = testSection(grid, 3, 6, 0, 3);\n } else {\n testsquare = testSection(grid, 3, 9, 0, 6);\n }\n } else if (row < 6){\n if (col < 3) {\n testsquare = testSection(grid, 6, 3, 3, 0);\n } else if (col < 6) {\n testsquare = testSection(grid, 6, 6, 3, 3);\n } else {\n testsquare = testSection(grid, 6, 9, 3, 6);\n }\n } else {\n if (col < 3) {\n testsquare = testSection(grid, 9, 3, 6, 0);\n } else if (col < 6) {\n testsquare = testSection(grid, 9, 6, 6, 3);\n } else {\n testsquare = testSection(grid, 9, 9, 6, 6);\n }\n }\n if (!Arrays.asList(testsquare[0], testsquare[1], testsquare[2], testsquare[3], testsquare[4],\n testsquare[5], testsquare[6], testsquare[7], testsquare[8]).contains(numbers[j])) {\n grid[row][col] = numbers[j];\n if (isFull(grid))\n return true;\n else if (fillGrid(grid))\n break;\n }\n }\n }\n }\n break;\n }\n }\n return false;\n }",
"public void resetGrid() {\n // reset all cells to dead\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n game.grid[i][j] = false;\n }\n } \n // repaint so that the cells show up regardless of if the program has started or not\n repaint();\n }",
"public void clearGrid(){\n\t\tfor(int i = 0; i < rows; i++){//rows\n\t\t\tfor(int j = 0; j < columns; j++){//columns\n\t\t\t\ttheGrid[i][j] = false; //set to false\n\t\t\t}\n\t\t}\n\t}",
"protected Tile[] newTiles() {\n int len = getWidthInTiles() * getHeightInTiles();\n Tile[] t = new Tile[ len ];\n for(int i = 0; i < len; i++) {\n t[i] = null;\n }\n return t;\n }",
"private static void changeFirstRowAndColumn(int[][] matrix,MatrixSize matrixSize){\n for(int i=1;i<matrixSize.numberOfRows;i++){\n for(int j=1;j<matrixSize.numberOfColumns;j++) {\n if(matrix[i][j]==0){\n matrix[i][0]=0;\n matrix[0][j]=0;\n }\n }\n }\n }",
"public void reset() {\n \tboard = new char[columns][rows];\n \tfor(int i = 0; i < columns; i++) {\n \t\tfor(int j = 0; j < rows; j++) {\n \t\t\tboard[i][j] = EMPTY;\n \t\t}\n \t}\n\t}",
"public boolean checkSwitch(int row, int col){\n boolean output = false;\n Tile[] updownleftright = new Tile[4]; //Array which holds the four adjacent tiles\n if (row - 1 >= 0) updownleftright[0] = tiles[row - 1][col];\n else updownleftright[0] = nulltile;\n \n if (row + 1 < sidelength) updownleftright[1] = tiles[row + 1][col];\n else updownleftright[1] = nulltile;\n \n if (col - 1 >= 0) updownleftright[2] = tiles[row][col - 1];\n else updownleftright[2] = nulltile;\n \n if (col + 1 < sidelength) updownleftright[3] = tiles[row][col + 1];\n else updownleftright[3] = nulltile;\n \n for (int i = 0; i < 4; i ++) //Goes through the array and checks to see if any adjacent tile is the blank tile\n {\n if (updownleftright[i].getCurPic() == blankindex){\n tiles[row][col].swap(updownleftright[i]);\n return true;\n }\n }\n return false;\n }",
"public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}",
"public void makeEmpty() {\r\n for (int i = 0; i < tableSize; i++) {\r\n table[i] = new DList<Entry<K, V>>();\r\n }\r\n }",
"public void resetGrid() {\n grid = new byte[grid.length];\n }",
"private void setThePieces(){\n for(int i = 0; i<HEIGHT;i++){\n for(int j = 0; j<WIDTH;j++){\n if(piecesToSwap[i][j]==null){\n \n }else{\n m_Pieces[i][j]=piecesToSwap[i][j];\n \n }\n }\n }\n }",
"@Test\n public void initialiseEmptyBoardTest() {\n String[][] newBoard = new String[15][10];\n newBoard = enemyGameBoard.initialiseEmptyBoard();\n int counter = 0;\n for(int i = 0; i < GameConstants.BOARD_SIZE_X; i++) {\n for (int j = 0; j < GameConstants.BOARD_SIZE_Y; j++){\n assertTrue(newBoard[i][j].equals(\"WATER\"));\n counter++;\n }\n }\n assertTrue(counter == 150); \n }",
"public void clear() {\n for (int row = 0; row < 8; ++row) {\n for (int col = 0; col < 8; ++col) {\n board[row][col] = null;\n }\n }\n whitePieces = new LinkedList<Piece>();\n blackPieces = new LinkedList<Piece>();\n }",
"public void resetSudoku(){\n\t\tfor (int i = 0; i < size*size; i++){\n\t\t\tfor (int j = 0; j < size*size; j++){\n\t\t\t\tif (!fixedNumbers[i][j])\n\t\t\t\t\tnumbers[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"public Board twin() {\n Board c = getClone();\n int firstTileRow = -1, firstTileCol = -1, secTileRow = -1, secTileCol = -1;\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if (tiles[i][j] != 0) {\n firstTileRow = i;\n firstTileCol = j;\n break outerloop;\n }\n }\n }\n\n outerloop:\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n if ((tiles[i][j] != 0) && ((i != firstTileRow) || (j != firstTileCol))) {\n secTileRow = i;\n secTileCol = j;\n break outerloop;\n }\n }\n }\n\n int t = c.tiles[firstTileRow][firstTileCol];\n c.tiles[firstTileRow][firstTileCol] = c.tiles[secTileRow][secTileCol];\n c.tiles[secTileRow][secTileCol] = t;\n return c;\n }",
"public void reset() {\n for (int i = 0; i < this.numRows; i++) {\n this.rows[i] = new int[0];\n }\n for (int k = 0; k < this.numCols; k++) {\n this.cols[k] = new IntOpenHashSet();\n }\n }",
"@Override\n public void initializeBoard(int r, int c) {\n\n grid = new Tile[HEIGHT][WIDTH];\n\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n grid[row][col] = new Tile(Tile.BLANK, row, col);\n }\n }\n\n Random random = new Random();\n for (int i = 0; i < numMines; i++) {\n int row = random.nextInt(HEIGHT);\n int col = random.nextInt(WIDTH);\n if ((row == r && col == c) || grid[row][col].getType() == Tile.MINE || grid[row][col].getType() == Tile.NUMBER) {\n i--;\n } else {\n grid[row][col] = new Tile(Tile.MINE, row, col);\n }\n }\n\n for (int row = 0; row < grid.length; row++) {\n for (int col = 0; col < grid[0].length; col++) {\n if (getNumNeighboringMines(row, col) > 0 && grid[row][col].getType() != Tile.MINE) {\n Tile tile = new Tile(Tile.NUMBER, getNumNeighboringMines(row, col), row, col);\n grid[row][col] = tile;\n }\n }\n }\n }",
"private void prepare(Maze maze) {\n\t\tList<Coordinate> unlockedCells = new ArrayList<>();\n\t\tfor (int a=0; a<data.length; a++) \n\t\t\tfor (int b=0; b<data[0].length; b++) \n\t\t\t\tif (data[a][b]) maze.buildWall(a, b); else unlockedCells.add(new Coordinate(a, b));\n\t\tif (!unlockedCells.isEmpty()) {\n\t\t\tRandom r = new Random();\n\t\t\tSupplier<Coordinate> randomCoordinate = () -> unlockedCells.get(r.nextInt(unlockedCells.size()));\n\t\t\tmaze.setStart( randomCoordinate.get() );\n\t\t\tmaze.setGoal( randomCoordinate.get() );\n\t\t}\n\t}",
"private void clearBoard() {\n for (int i = 0; i < BOARD_HEIGHT * BOARD_WIDTH; ++i) {\n board[i] = Tetrominoe.NoShape;\n }\n }",
"public void setZeroes2(int[][] matrix) {\n\t\tif (matrix == null || matrix.length == 0 ||\n matrix[0] == null || matrix[0].length == 0)\n return;\n\n int r = matrix.length, c = matrix[0].length;\n boolean[] rows = new boolean[r], cols = new boolean[c];\n for (int i = 0; i < r; i++) {\n for (int j = 0; j < c; j++) {\n if (matrix[i][j] == 0) {\n rows[i] = true;\n cols[j] = true;\n }\n }\n }\n\n for (int i = 0; i < r; i++) {\n for (int j = 0; j < c; j++) {\n if (rows[i] || cols[j])\n matrix[i][j] = 0;\n }\n }\n }",
"private void resetMatrixB() {\n\t\t// find the magnitude of the largest diagonal element\n\t\tdouble maxDiag = 0;\n\t\tfor( int i = 0; i < N; i++ ) {\n\t\t\tdouble d = Math.abs(B.get(i,i));\n\t\t\tif( d > maxDiag )\n\t\t\t\tmaxDiag = d;\n\t\t}\n\n\t\tB.zero();\n\t\tfor( int i = 0; i < N; i++ ) {\n\t\t\tB.set(i,i,maxDiag);\n\t\t}\n\t}",
"public void makeEmpty() { \r\n for (int i = 0; i < hash_table.length; i++) {\r\n if (hash_table[i] != null) {\r\n hash_table[i] = null;\r\n }\r\n }\r\n size = 0;\r\n }",
"private void fillBoard() {\n\t\tint randomRow, randomColumn;\n\t\t\n\t\tfor (int i = 0; i < bombs; ++i) {\n\t\t\trandomRow = (int)(Math.random() * rows);\n\t\t\trandomColumn = (int)(Math.random() * columns);\n\t\t\tboard[randomRow][randomColumn] = -1;\n\t\t}\n\t\t\n\t\tfor (int r = 0; r < rows; ++r) {\n\t\t\tfor (int c = 0; c < columns; ++c) {\n\t\t\t\tif (board[r][c] == -1) {\n\t\t\t\t\tincreaseFreeCells(r, c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private ArrayList<PredatorPreyCell> getEmptyCells(Grid<Integer> grid) {\n\t\tArrayList<PredatorPreyCell> emptyCells = new ArrayList<PredatorPreyCell>();\n\t\tfor(int i = 0; i < grid.getHeight(); i++) {\n\t\t\tfor(int j = 0; j < grid.getWidth(); j++) {\n\t\t\t\tif(grid.getGridMatrix()[i][j].getValue() == EMPTY &&\n\t\t\t\t (grid.getGridMatrix()[i][j].getNewValue() == null || grid.getGridMatrix()[i][j].getNewValue() == EMPTY)) {\n\t\t\t\t\temptyCells.add((PredatorPreyCell) grid.getGridMatrix()[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn emptyCells;\n\t}",
"public abstract void setEmpty(AwtCell empty);"
] |
[
"0.6784904",
"0.67597127",
"0.67251986",
"0.6589316",
"0.65031075",
"0.63819623",
"0.63785225",
"0.6365819",
"0.6332061",
"0.6298583",
"0.6291134",
"0.6289485",
"0.6277108",
"0.6272058",
"0.6251518",
"0.620605",
"0.6187948",
"0.618108",
"0.61806417",
"0.6175873",
"0.61490303",
"0.6127516",
"0.60812503",
"0.60806096",
"0.6058682",
"0.6052693",
"0.6043209",
"0.6037333",
"0.59931284",
"0.5989453",
"0.59791684",
"0.59760064",
"0.5960129",
"0.5958327",
"0.5937328",
"0.59090334",
"0.5905216",
"0.5899418",
"0.58951795",
"0.58925134",
"0.5887213",
"0.5876482",
"0.5868553",
"0.5866194",
"0.5854248",
"0.5849764",
"0.5848115",
"0.5847547",
"0.5845186",
"0.5838099",
"0.58283275",
"0.5827743",
"0.5817878",
"0.5814174",
"0.58135575",
"0.58106077",
"0.5808779",
"0.5804149",
"0.580163",
"0.5795041",
"0.57946265",
"0.57849663",
"0.57839763",
"0.5780776",
"0.5770078",
"0.5764358",
"0.57616895",
"0.5757669",
"0.57507366",
"0.57291013",
"0.57266796",
"0.57191896",
"0.5711055",
"0.57070553",
"0.570655",
"0.5693787",
"0.56931543",
"0.56907636",
"0.5687179",
"0.56761396",
"0.5673399",
"0.567266",
"0.56691444",
"0.5663818",
"0.56613874",
"0.56596214",
"0.56554866",
"0.5655225",
"0.5653171",
"0.5651292",
"0.56501573",
"0.5647892",
"0.56475246",
"0.5642774",
"0.56424415",
"0.56390977",
"0.5631467",
"0.5631",
"0.5620009",
"0.5619952"
] |
0.60441476
|
26
|
draw the track(moving background)
|
private void drawTrack(Canvas canvas){
if(trackEnabled){
progressPaint.setShader(null);
progressPaint.setColor(mTrackColor);
if(fillEnabled) {
progressPaint.setStyle(Paint.Style.FILL);
initTrack(canvas, true);
}else {
progressPaint.setStyle(Paint.Style.STROKE);
initTrack(canvas, false);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}",
"@Override public void paintTrack(Graphics g) {\n\n g.translate(trackRect.x, trackRect.y);\n\n int trackLeft = 0;\n int trackTop = 0;\n int trackRight;\n int trackBottom;\n if (slider.getOrientation() == SwingConstants.HORIZONTAL) {\n trackBottom = trackRect.height - 1 - getThumbOverhang();\n trackTop = trackBottom - getTrackWidth() + 1;\n trackRight = trackRect.width - 1;\n } else {\n // if (leftToRight) {\n trackLeft = trackRect.width - getThumbOverhang() - getTrackWidth();\n trackRight = trackRect.width - getThumbOverhang() - 1;\n // } else {\n // trackLeft = getThumbOverhang();\n // trackRight = getThumbOverhang() + getTrackWidth() - 1;\n // }\n trackBottom = trackRect.height - 1;\n }\n\n // Draw the track\n paintTrackBase(g, trackTop, trackLeft, trackBottom, trackRight);\n\n // Draw the fill\n paintTrackFill(g, trackTop, trackLeft, trackBottom, trackRight);\n\n // Draw the highlight\n paintTrackHighlight(g, trackTop, trackLeft, trackBottom, trackRight);\n\n g.translate(-trackRect.x, -trackRect.y);\n }",
"public void draw() {\n\n // Make sure our drawing surface is valid or we crash\n if (ourHolder.getSurface().isValid()) {\n // Lock the canvas ready to draw\n canvas = ourHolder.lockCanvas();\n // Draw the background color\n paint.setTypeface(tf);\n canvas.drawColor(Color.rgb(178,223,219));\n paint.setColor(Color.rgb(255,255,255));\n canvas.drawRect(offsetX, offsetY, width-offsetX, (height-100)-offsetY, paint);\n // Choose the brush color for drawing\n paint.setColor(Color.argb(50,0,0,0));\n paint.setFlags(Paint.ANTI_ALIAS_FLAG);\n // Make the text a bit bigger\n paint.setTextSize(40);\n paint.setStrokeWidth(5);\n paint.setStrokeCap(Paint.Cap.ROUND);\n // Display the current fps on the screen\n canvas.drawText(\"FPS:\" + fps, 20, 40, paint);\n paint.setTextSize(400);\n if(hasTouched == true) {\n if (count < 0) {\n canvas.drawText(0 + \"\", (width / 2) - 100, height / 2, paint);\n } else if(count<=numLines) {\n canvas.drawText(count + \"\", (width / 2) - 100, height / 2, paint);\n }\n } else {\n paint.setTextSize(100);\n canvas.drawText(\"TAP TO START\", (width / 2) - 300, height / 2, paint);\n }\n paint.setColor(Color.rgb(0,150,136));\n\n paint.setColor(color);\n\n canvas.drawCircle(xPosition, yPosition, radius, paint);\n\n paint.setColor(lineColor);\n\n if(isMoving==true && hasHit == false && count>=0) {\n canvas.drawLine(initialX, initialY, endX, endY, paint);\n }\n paint.setColor(Color.rgb(103,58,183));\n\n for(int i=0; i<verts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, verts[0].length, verts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n for (int i=0; i<innerVerts.length; i++) {\n canvas.drawVertices(Canvas.VertexMode.TRIANGLES, innerVerts[0].length, innerVerts[i], 0, null, 0, verticesColors, 0, null, 0, 0, new Paint());\n }\n // Draw everything to the screen\n ourHolder.unlockCanvasAndPost(canvas);\n\n //Display size and width\n\n }\n\n }",
"public void draw(){\n textAlign(CENTER);\n route.update(pp, qq);\n SoundSys();\n fill(0xff31F0FF, 127);\n noStroke();\n ellipse(mouseX, mouseY, 30, 30);\n}",
"private void drawBackground(Graphics g){\r\n g.setColor(Colors.ColorAlpha(Colors.blacks,a1));\r\n g.fillRect(0,0,w,h);\r\n if(moving){\r\n g.drawImage(Assets.burst.get((int)((game.counter%8)*0.625)),(int)(w*0.472),(int)(h*0.455),null);\r\n g.drawImage(Assets.sparks.get(((game.counter%20)/2)),(int)(w*0.465),(int)(h*0.345),null);\r\n }\r\n drawWires(g);\r\n }",
"@Override\n public void run() {\n drawBack(holder);\n drawClock();\n// drawCircle();\n }",
"public void draw() {\n\t\tif (fill) {\n\t\t\tapplet.noStroke();\n\t\t\tapplet.fill(color);\n\t\t} else {\n\t\t\tapplet.noFill();\n\t\t\tapplet.stroke(color);\n\t\t}\n\t\tapplet.rect(position.x, position.y, size.x, size.y);\n\t\tsliderButton.draw(new PVector(-10,0));\n\t}",
"@Override\n public void paint(Graphics g) {\n\tsuper.paint(g);\n\t// getContentPane().setBackground(Color.orange);\n\timg = Util.createImage(getContentPane());\n\tbackColor = new Color(img.getRGB(3, 3));\n\t// img.getGraphics().setColor(Color.blue);\n\t// img.getGraphics().fillRect(0, 0, img.getWidth(), img.getHeight());\n\tdrawEntrance(new Point(557, 70), 0, img.getGraphics());\n\tgetContentPane().getGraphics().drawImage(img, 0, 0, null);\n\tanimate(g);\n\t// img = Util.createImage(getContentPane());\n\n }",
"@Override\n\tpublic void draw(Graphics g) {\n\t\tsuper.draw(g);\n\t\tif(!satillite){\n\t\t\tdrawTrace(g);\n\t\t}\n\t\t\n \t\tmove();\n\t}",
"public void draw() {\n \n // TODO\n }",
"public void draw() {\r\n PennDraw.clear();\r\n\r\n for (int i = 0; i < targets.length; i++) {\r\n targets[i].draw();\r\n }\r\n\r\n bird.draw(); \r\n\r\n if (mouseWasPressedLastUpdate) {\r\n bird.drawVelocity();\r\n }\r\n\r\n PennDraw.advance();\r\n }",
"public void draw() {\n background(0);\n}",
"public void draw (Graphics g) {\n\t\tNode hold = head;\r\n\t\tfor(int i= 0; i < this.track-1; i++) {\r\n\t\t\tg.setColor(Color.red);\r\n\t\t\tg.fillOval(hold.data.XC, hold.data.YC, hold.data.pixels, hold.data.pixels);\r\n\t\t\thold = hold.next;\r\n\t\t\ttm.start();\r\n\t\t}\r\n\t\t\r\n\t\t//tm.start();\r\n\t}",
"public void draw() {\r\n if(isVisible()) {\r\n Canvas canvas = Canvas.getCanvas();\r\n canvas.draw(this,getColor(),\r\n new Rectangle(\r\n (int)round(getXposition()),\r\n (int)round(getYposition()),\r\n (int)round(size),\r\n (int)round(size)));\r\n canvas.wait(10);\r\n }\r\n }",
"public void beginDrawing();",
"private void drawTrack(GL2 gl, GLU glu) {\r\n // Rectangle storing the offsets of the track\r\n double offset[] = new double[4];\r\n\r\n // Prepare the rectangle\r\n if (alignment.equals(Alignment.horizontal)) {\r\n offset[0] = x1;\r\n offset[1] = y1 - (trackWidth / 2);\r\n offset[2] = x2;\r\n offset[3] = y2 + (trackWidth / 2);\r\n } else {\r\n offset[0] = x1 - (trackWidth / 2);\r\n offset[1] = y1;\r\n offset[2] = x2 + (trackWidth / 2);\r\n offset[3] = y2;\r\n }\r\n\r\n // Apply track color\r\n gl.glColor4dv(trackColor.getColor(), 0);\r\n\r\n // Draw the track as a rectangle\r\n gl.glRectd(offset[0], offset[1], offset[2], offset[3]);\r\n }",
"private void draw() {\n frames++;\n MainFrame.singleton().draw();\n }",
"public void draw() {\n \n }",
"void drawCurrentTick();",
"public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }",
"public void draw() {\n\t\tsuper.repaint();\n\t}",
"public void draw()\r\n {\r\n drawn = true;\r\n }",
"public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }",
"public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}",
"public void draw(float delta) {\n\t\tcanvas.clear();\n\t\tcanvas.begin();\n\t\tcw = canvas.getWidth();\n\t\tch = canvas.getHeight();\n\t\tfor (int i = -5; i < 5; i++) {\n\t\t\tfor (int j = -5; j < 5; j++) {\n\t\t\t\tcanvas.draw(getBackground(dayTime), Color.WHITE, cw*i * 2, ch*j * 2, cw * 2, ch * 2);\n\t\t\t\tif(dayTime == 0 || dayTime == 1){\n\t\t\t\t\tcanvas.draw(getBackground(dayTime + 1), levelAlpha, cw*i * 2, ch*j * 2, cw * 2, ch * 2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcanvas.end();\n\t\tif (walls.size() > 0){ \n\t\t\tfor (ArrayList<Float> wall : walls) canvas.drawPath(wall);\n\t\t}\n\t\tcanvas.begin();\n\t\t//\t\tcanvas.draw(background, Color.WHITE, 0, 0, canvas.getWidth(), canvas.getHeight());\n\t\t//canvas.draw(rocks, Color.WHITE, 0, 0, canvas.getWidth(), canvas.getHeight());\n\t\t\n\t\t\n//\t\tfor (ArrayList<Float> wall : walls) canvas.drawPath(wall);\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.draw(canvas);\n\t\t}\n\t\t\n\n\t\tfor (int i = -5; i < 5; i++) {\n\t\t\tfor (int j = -5; j < 5; j++) {\n\t\t\t\tcanvas.draw(overlay, referenceC, cw*i, ch*j, cw, ch);\n\t\t\t}\n\t\t}\n\n\t\tcanvas.end();\n\n\t\tif (debug) {\n\t\t\tcanvas.beginDebug();\n\t\t\tfor(Obstacle obj : objects) {\n\t\t\t\tobj.drawDebug(canvas);\n\t\t\t}\n\t\t\tcanvas.endDebug();\n\t\t}\n\n\n\n//\t\t// Final message\n//\t\tif (complete && !failed) {\n//\t\t\tdisplayFont.setColor(Color.BLACK);\n//\t\t\tcanvas.begin(); // DO NOT SCALE\n//\t\t\tcanvas.drawTextCentered(\"VICTORY!\", displayFont, 0.0f);\n//\t\t\tcanvas.end();\n//\t\t\tdisplayFont.setColor(Color.BLACK);\n//\t\t} else if (failed) {\n//\t\t\tdisplayFont.setColor(Color.RED);\n//\t\t\tcanvas.begin(); // DO NOT SCALE\n//\t\t\tcanvas.drawTextCentered(\"FAILURE!\", displayFont, 0.0f);\n//\t\t\tcanvas.end();\n//\t\t}\n\t}",
"private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }",
"private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }",
"public void draw(float dt) {\r\n\r\n\r\n\t\tCharacterModel lead = movementController.getLead();\r\n\t\tcanvas.clear();\r\n\r\n\t\tfloat cameraX = camera.position.x - canvas.getWidth() / 2;\r\n\t\tfloat cameraY = camera.position.y - canvas.getHeight() / 2;\r\n\r\n\t\t// Create the frame buffer if uninitialized\r\n\t\tif (fbo == null) {\r\n\t\t\tfbo = new FrameBuffer(Pixmap.Format.RGBA8888, canvas.getWidth(), canvas.getHeight(), false);\r\n\t\t}\r\n\r\n\t\t// Draw background\r\n\t\tcanvas.beginCustom(GameCanvas.BlendState.NO_PREMULT, GameCanvas.ChannelState.ALL);\r\n//\t\tcanvas.draw(backgroundTexture, Color.WHITE, cameraX, cameraY, canvas.getWidth(), canvas.getHeight());\r\n\t\tbackgroundAnimator.setRegion(backgroundTexture);\r\n\t\tbackgroundAnimator.setFrame((int)backgroundAnimeframe);\r\n\t\tcanvas.draw(backgroundAnimator, Color.WHITE, cameraX, cameraY, canvas.getWidth(), canvas.getHeight());\r\n\t\tcanvas.endCustom();\r\n\r\n\t\t// Create alpha background if uninitialized\r\n\t\tif (alpha_background == null) {\r\n\t\t\talpha_background = createRectangularTexture(canvas.getWidth(), canvas.getHeight());\r\n\t\t}\r\n\r\n\t\tCharacterModel follower = lead.equals(phobia) ? somni : phobia;\r\n\r\n\t\t// Check if switching and update mask drawing\r\n\t\tif (switching) {\r\n\t\t\tif (!holdingHands) {\r\n\t\t\t\t// Apply fade effect for follower (fading away)\r\n\t\t\t\tdrawFadePlatforms(cameraX, cameraY, follower);\r\n\t\t\t}\r\n\r\n\t\t\t// Draw mask for the mask leader\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, !holdingHands ? 1 : 0, maskLeader);\r\n\r\n\t\t\t// Draw mask for the follower while switching\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1, follower);\r\n\r\n\t\t\t// Draw mask for the mask leader to cover follower's\r\n\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1,\r\n\t\t\t\t\tmaskLeader);\r\n\r\n\t\t\t// Increase mask size\r\n\t\t\tmaskWidth += INCREMENT_AMOUNT;\r\n\t\t\tmaskHeight += INCREMENT_AMOUNT;\r\n\t\t\tif (riftCoversCameraBounds(cameraX, cameraY, maskWidth, maskHeight, maskLeader)) {\r\n\t\t\t\tmaskWidth = MIN_MASK_DIMENSIONS.x;\r\n\t\t\t\tmaskHeight = MIN_MASK_DIMENSIONS.y;\r\n\t\t\t\tswitching = false;\r\n\t\t\t\tmaskLeader = follower;\r\n\t\t\t\tbackgroundTexture = backgroundTexture.equals(backgroundLightTexture) ? backgroundDarkTexture :\r\n\t\t\t\t\t\tbackgroundLightTexture;\r\n\t\t\t\tbackgroundAnimator.setRegion(backgroundTexture);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Check if shrinking\r\n\t\t\tboolean shrinking = maskWidth > MIN_MASK_DIMENSIONS.x || maskHeight > MIN_MASK_DIMENSIONS.y;\r\n\t\t\tif (shrinking) {\r\n\t\t\t\t// Apply fade away effect for the lead (fading in)\r\n\t\t\t\tif (!holdingHands) {\r\n\t\t\t\t\tdrawFadePlatforms(cameraX, cameraY, lead);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Make sure the rift is still drawn (to carry over the effect)\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, !holdingHands ? 1 : 0, maskLeader);\r\n\r\n\t\t\t\t// Draw mask for the lead while shrinking\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y,\r\n\t\t\t\t\t\t!holdingHands ? 1 : 0, lead);\r\n\r\n\t\t\t\t// Draw mask for the mask leader to cover follower's\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1,\r\n\t\t\t\t\t\tmaskLeader);\r\n\t\t\t} else {\r\n\t\t\t\t// Draw lead platform\r\n\t\t\t\tif (!holdingHands) {\r\n\t\t\t\t\tcanvas.begin();\r\n\t\t\t\t\tfor (Obstacle obj : lead.equals(somni) ? lightObjects : darkObjects) {\r\n\t\t\t\t\t\tobj.draw(canvas);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcanvas.end();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Draw mask leader's mask AFTER drawing lead platforms (prevents popping platforms)\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, maskWidth, maskHeight, 2, maskLeader);\r\n\r\n\t\t\t\t// Draw mask for the lead to cover maskLeader's\r\n\t\t\t\tdrawSpiritObjects(cameraX, cameraY, MIN_MASK_DIMENSIONS.x, MIN_MASK_DIMENSIONS.y, 1, lead);\r\n\r\n\t\t\t}\r\n\r\n\t\t\t// Decrease mask size to minimum\r\n\t\t\tmaskWidth -= maskWidth <= MIN_MASK_DIMENSIONS.x ? 0 : INCREMENT_AMOUNT;\r\n\t\t\tmaskHeight -= maskHeight <= MIN_MASK_DIMENSIONS.y ? 0 : INCREMENT_AMOUNT;\r\n\t\t}\r\n\r\n\t\t// Draw light and dark platforms if holding hands\r\n\t\tif (holdingHands) {\r\n\t\t\tcanvas.begin();\r\n\t\t\tfor (Obstacle obj : lead.equals(somni) ? lightObjects : darkObjects) {\r\n\t\t\t\tobj.draw(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\t\t\talphaAmount = alphaAmount + alphaIncrement >= 1 ? 1 : alphaAmount + alphaIncrement;\r\n\t\t} else {\r\n\t\t\talphaAmount = alphaAmount - alphaIncrement <= 0 ? 0 : alphaAmount - alphaIncrement;\r\n\t\t\t;\r\n\t\t}\r\n\t\talphaWhite.a = alphaAmount;\r\n\t\tcanvas.begin();\r\n\t\tfor (Obstacle obj : follower.equals(somni) ? lightObjects : darkObjects) {\r\n//\t\t\t((SimpleObstacle) obj).drawWithTint(canvas, alphaWhite);\r\n\t\t\t((PlatformModel) obj).drawWithTint(canvas, alphaWhite);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw shared platforms\r\n\t\tcanvas.begin();\r\n\t\tfor (Obstacle obj : sharedObjects) {\r\n\r\n\t\t\t// Ignore characters which we draw separately\r\n\t\t\tif (!(obj instanceof CharacterModel)) {\r\n\t\t\t\t(obj).draw(canvas);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw current model\r\n\t\tcanvas.begin();\r\n\t\tif (holdingHands) {\r\n\t\t\tcombined.draw(canvas, Color.WHITE);\r\n\t\t} else {\r\n\t\t\talphaWhite.a = 0.5f;\r\n\t\t\tfollower.draw(canvas, alphaWhite);\r\n\t\t\tlead.draw(canvas, Color.WHITE);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw sliders if active\r\n\t\tcanvas.begin();\r\n\t\tif (!createdSliders) {\r\n\t\t\tcreateSliders();\r\n\t\t\tcreatedSliders = true;\r\n\t\t}\r\n\r\n\t\tif (slidersActive()) {\r\n\t\t\tstage.draw();\r\n\t\t\tstage.act();\r\n\t\t\tdisplayFont.getData().setScale(.3f, .3f);\r\n\t\t\tlabelStyle.fontColor = lead == phobia ? Color.BLACK : Color.WHITE;\r\n\t\t\tdrawSliders();\r\n\t\t\tGdx.input.setInputProcessor(stage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw pauseMenu\r\n\t\tcanvas.begin();\r\n\r\n//\t\tif (firstTimeRendered) {\r\n//\t\t\tcreateModalWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRendered = false;\r\n//\t\t}\r\n//\t\tif (firstTimeRenderedWinMenu) {\r\n//\t\t\tcreateWinWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRenderedWinMenu = false;\r\n//\t\t}\r\n//\r\n//\t\tif (firstTimeRenderedFailMenu) {\r\n//\t\t\tcreateFailWindow(camera.position.x, camera.position.y);\r\n//\t\t\tfirstTimeRenderedFailMenu = false;\r\n//\t\t}\r\n\r\n\t\tif (pauseMenuActive()) {\r\n\t\t\tcanvas.draw(blurBackground, Color.BLACK, cameraX, cameraY, canvas.getWidth(), canvas.getWidth());\r\n\t\t\tsetPositionPauseMenu();\r\n\t\t\tfirstPosition = true;\r\n\t\t\tpauseMenuStage.draw();\r\n\t\t\tpauseMenuStage.act(dt);\r\n\r\n\t\t\tif (exitButton.isOver()) {\r\n\t\t\t\tunderline.setSize(exitButton.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(exitButton.getX() + UNDERLINE_OFFSETX, exitButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else if (resumeButton.isOver()) {\r\n\t\t\t\tunderline.setSize(resumeButton.getWidth() + UNDERLINE_WIDTH_OFFSET, resumeButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(resumeButton.getX() + UNDERLINE_OFFSETX, resumeButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else if (restartButton.isOver()) {\r\n\t\t\t\tunderline.setSize(restartButton.getWidth() + UNDERLINE_WIDTH_OFFSET, restartButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\tunderline.setPosition(restartButton.getX() + UNDERLINE_OFFSETX, restartButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\tunderline.setVisible(true);\r\n\t\t\t} else {\r\n\t\t\t\tunderline.setVisible(false);\r\n\t\t\t}\r\n\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\tpauseMenu.setBackground(blueRectangle);\r\n\t\t\t\texitButton.getStyle().up = blueExit;\r\n\t\t\t\tresumeButton.getStyle().up = blueResume;\r\n\t\t\t\trestartButton.getStyle().up = blueRestart;\r\n\t\t\t\tunderline.setDrawable(blueUnderline);\r\n\t\t\t\tmusicIcon.setDrawable(blueMusicNote);\r\n\t\t\t\tsoundIcon.setDrawable(blueSound);\r\n\t\t\t\tsliderMusic.getStyle().background = blueSlider;\r\n\t\t\t\tsliderMusic.getStyle().knob = blueKnob;\r\n\t\t\t\tsliderSound.getStyle().background = blueSlider;\r\n\t\t\t\tsliderSound.getStyle().knob = blueKnob;\r\n\t\t\t} else {\r\n\t\t\t\tpauseMenu.setBackground(orangeRectangle);\r\n\t\t\t\texitButton.getStyle().up = orangeExit;\r\n\t\t\t\tresumeButton.getStyle().up = orangeResume;\r\n\t\t\t\trestartButton.getStyle().up = orangeRestart;\r\n\t\t\t\tunderline.setDrawable(orangeUnderline);\r\n\t\t\t\tmusicIcon.setDrawable(orangeMusicNote);\r\n\t\t\t\tsoundIcon.setDrawable(orangeSound);\r\n\t\t\t\tsliderMusic.getStyle().background = orangeSlider;\r\n\t\t\t\tsliderMusic.getStyle().knob = orangeKnob;\r\n\t\t\t\tsliderSound.getStyle().background = orangeSlider;\r\n\t\t\t\tsliderSound.getStyle().knob = orangeKnob;\r\n\t\t\t}\r\n\r\n\t\t\tGdx.input.setInputProcessor(pauseMenuStage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\tcanvas.begin();\r\n\t\tif (firstTimeRenderedPauseButton) {\r\n\t\t\tcreatePauseButton();\r\n\t\t\tfirstTimeRenderedPauseButton = false;\r\n\t\t} else {\r\n\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\tpauseButton.getStyle().up = bluePauseButton;\r\n\t\t\t} else {\r\n\t\t\t\tpauseButton.getStyle().up = orangePauseButton;\r\n\t\t\t}\r\n\t\t\tdrawPauseButton();\r\n\t\t}\r\n\r\n\t\tif (!pauseMenuActive() && gameScreenActive && !slidersActive()) {\r\n\t\t\tGdx.input.setInputProcessor(pauseButtonStage);\r\n\t\t}\r\n\t\tcanvas.end();\r\n\r\n\t\t// Draw debug if active\r\n\t\tif (isDebug()) {\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : sharedObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : lightObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\t\t\tcanvas.beginDebug();\r\n\t\t\tfor (Obstacle obj : darkObjects) {\r\n\t\t\t\tobj.drawDebug(canvas);\r\n\t\t\t}\r\n\t\t\tcanvas.endDebug();\r\n\r\n\t\t}\r\n\r\n\t\t// Draw final message when level ends\r\n\t\t// Draw final message when level ends\r\n\t\t//JENNA\r\n\t\tif (isComplete() && !isFailure()) {\r\n\r\n\r\n\t\t\tcanvas.begin();\r\n\t\t\tif (isComplete()) {\r\n\r\n\t\t\t\tsetPositionMenu(winMenu);\r\n\t\t\t\twinMenuStage.draw();\r\n\t\t\t\twinMenuStage.act(dt);\r\n\r\n\t\t\t\tif (exitButtonWin.isOver()) {\r\n\t\t\t\t\tunderlineWinMenu.setSize(exitButtonWin.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButtonWin.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineWinMenu.setPosition(exitButtonWin.getX() + UNDERLINE_OFFSETX, exitButtonWin.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineWinMenu.setVisible(true);\r\n\t\t\t\t} else if (advanceButton.isOver()) {\r\n\t\t\t\t\tunderlineWinMenu.setSize(advanceButton.getWidth() + UNDERLINE_WIDTH_OFFSET, advanceButton.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineWinMenu.setPosition(advanceButton.getX() + UNDERLINE_OFFSETX, advanceButton.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineWinMenu.setVisible(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tunderlineWinMenu.setVisible(false);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\t\twinMenu.setBackground(blueRectangle);\r\n\t\t\t\t\texitButtonWin.getStyle().up = blueExit;\r\n\t\t\t\t\tadvanceButton.getStyle().up = blueNext;\r\n\t\t\t\t\tunderlineWinMenu.setDrawable(blueUnderline);\r\n\t\t\t\t} else {\r\n\t\t\t\t\twinMenu.setBackground(orangeRectangle);\r\n\t\t\t\t\texitButtonWin.getStyle().up = orangeExit;\r\n\t\t\t\t\tadvanceButton.getStyle().up = orangeNext;\r\n\t\t\t\t\tunderlineWinMenu.setDrawable(orangeUnderline);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tGdx.input.setInputProcessor(winMenuStage);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\r\n\r\n\t\t} else if (isFailure()) {\r\n\r\n\t\t\tcanvas.begin();\r\n\t\t\tif (isFailure()) {\r\n\t\t\t\tsetPositionMenu(failMenu);\r\n\t\t\t\tfailMenuStage.draw();\r\n\t\t\t\tfailMenuStage.act(dt);\r\n\r\n\t\t\t\tif (exitButtonFail.isOver()) {\r\n\t\t\t\t\tunderlineFailMenu.setSize(exitButtonFail.getWidth() + UNDERLINE_WIDTH_OFFSET, exitButtonFail.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineFailMenu.setPosition(exitButtonFail.getX() + UNDERLINE_OFFSETX, exitButtonFail.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineFailMenu.setVisible(true);\r\n\t\t\t\t} else if (restartButtonFail.isOver()) {\r\n\t\t\t\t\tunderlineFailMenu.setSize(restartButtonFail.getWidth() + UNDERLINE_WIDTH_OFFSET, restartButtonFail.getHeight() + UNDERLINE_HEIGHT_OFFSET);\r\n\t\t\t\t\tunderlineFailMenu.setPosition(restartButtonFail.getX() + UNDERLINE_OFFSETX, restartButtonFail.getY() + UNDERLINE_OFFSETY);\r\n\t\t\t\t\tunderlineFailMenu.setVisible(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tunderlineFailMenu.setVisible(false);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (movementController.getAvatar() == somni || movementController.getLead() == somni) {\r\n\t\t\t\t\tfailMenu.setBackground(blueRectangle);\r\n\t\t\t\t\texitButtonFail.getStyle().up = blueExit;\r\n\t\t\t\t\trestartButtonFail.getStyle().up = blueRestart;\r\n\t\t\t\t\tunderlineFailMenu.setDrawable(blueUnderline);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfailMenu.setBackground(orangeRectangle);\r\n\t\t\t\t\texitButtonFail.getStyle().up = orangeExit;\r\n\t\t\t\t\trestartButtonFail.getStyle().up = orangeRestart;\r\n\t\t\t\t\tunderlineFailMenu.setDrawable(orangeUnderline);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tGdx.input.setInputProcessor(failMenuStage);\r\n\t\t\t}\r\n\t\t\tcanvas.end();\r\n\r\n\r\n\t\t}\r\n\t}",
"public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}",
"private void updateTheTrack() {\n if(mOval != null){\n mOval = null;\n }\n mOval = new RectF(getPaddingLeft() + mTrackWidth, getPaddingTop() + mTrackWidth,\n getWidth() - getPaddingRight() - mTrackWidth,\n getHeight() - getPaddingBottom() - mTrackWidth);\n\n }",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"public void draw() {\n\t //FrameRate should only 5 when there is no activity. Otherwise, 60\n if (!EventQueue.getInstance().isTiccing() && System.currentTimeMillis() - lastActive >= 300) {\n noLoop();\n setFrameRate(5);\n println(\"no draw activity\");\n } else{\n \t setFrameRate(60);\n }\n background(255);\n //Process menu data at the beginning\n // Menu menuSing = Menu.getInstance();\n // if ((boolean) menuSing.getControllerValue(\"Button0\")) {\n // KeyMap.getInstance().run('q');\n // }\n\n pushMatrix();\n //Enable scrolling\n translate(0, verticalScroll);\n StringManager.getInstance().draw();\n\n popMatrix();\n\n //if (frameCount % 10 == 0)System.out.println(frameRate);\n\n //Draw menu after\n Menu.getInstance().draw();\n }",
"public void draw(){\n }",
"public DrawingPanel(Color color, Color backColor)\r\n {\r\n\r\n /**********************************************************\r\n To be completed\r\n**********************************************************/\r\n\t currentColor = color;\r\n\t this.setBackground(backColor);\r\n\t currentX = 0;\r\n\t currentY = 0;\r\n\t moveX = 3;\r\n\t moveY = 3;\r\n\t diameter = 5;\r\n\t delay = 20;\r\n\t dotList = new ArrayList();\r\n\t MoveListener task = new MoveListener();\r\n\t timer = new Timer(delay, task);\r\n\t timer.start();\r\n }",
"public void draw(){\r\n\r\n\t\t\t//frame of house\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(250,0);\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.move(0,300);\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.move(-250,0);\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(250,150);\r\n\t\t\tpen.down();\r\n\t\t\tpen.move(-250,150);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(0,0);\r\n\t\t\tpen.down();\r\n\r\n\t\t\t//door\r\n\t\t\tpen.setColor(Color.blue);\r\n\t\t\tpen.setWidth(10);\r\n\t\t\tpen.move(50,0);\r\n\t\t\tpen.move(50,100);\r\n\t\t\tpen.move(-50,100);\r\n\t\t\tpen.move(-50,0);\r\n\t\t\tpen.move(0,0);\r\n\r\n\t\t\t//windows\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\t\t\tpen.move(-150,80);\r\n\t\t\tpen.down();\r\n\t\t\tpen.drawCircle(30);\r\n\t\t\tpen.up();\r\n\r\n\t\t\t//extra\r\n\t\t\tpen.move(-45,120);\r\n\t\t\tpen.down();\r\n\t\t\tpen.setColor(Color.black);\r\n\t\t\tpen.drawString(\"This is a house\");\r\n\t}",
"public void draw();",
"public void draw();",
"public void draw();",
"public void draw() {\n }",
"void draw();",
"protected void drawGUI() {\n batch.draw(background, 0, 0);\n }",
"@Override\r\n \tpublic void paintComponent(Graphics g) {\r\n \t\tsuper.paintComponent(g);\r\n \t\tdrawSnake(g);\r\n \t}",
"public void draw() {\r\n\t\t// Draw the triangle making up the mountain\r\n\t\tTriangle mountain = new Triangle(this.x, 100,\r\n\t\t\t\tthis.x + mountainSize / 2, 100, this.x + mountainSize / 4,\r\n\t\t\t\t100 - this.y / 4, Color.DARK_GRAY, true);\r\n\t\t// Draw the triangle making up the snow cap\r\n\t\tthis.snow = new Triangle(side1, bottom - this.y / 8, side2, bottom\r\n\t\t\t\t- this.y / 8, this.x + mountainSize / 4, 100 - this.y / 4,\r\n\t\t\t\tColor.WHITE, true);\r\n\t\tthis.window.add(mountain);\r\n\t\tthis.window.add(snow);\r\n\t}",
"private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }",
"public synchronized void draw() {\n // Clear the canvas\n// canvas.setFill(Color.BLACK);\n// canvas.fillRect(0, 0, canvasWidth, canvasHeight);\n canvas.clearRect(0, 0, canvasWidth, canvasHeight);\n\n // Draw a grid\n if (drawGrid) {\n canvas.setStroke(Color.LIGHTGRAY);\n canvas.setLineWidth(1);\n for (int i = 0; i < mapWidth; i++) {\n drawLine(canvas, getPixel(new Point(i - mapWidth / 2, -mapHeight / 2)), getPixel(new Point(i - mapWidth / 2, mapHeight / 2)));\n drawLine(canvas, getPixel(new Point(-mapWidth / 2, i - mapHeight / 2)), getPixel(new Point(mapWidth / 2, i - mapHeight / 2)));\n }\n }\n\n // Draw each player onto the canvas\n int height = 0;\n for (Player p : playerTracking) {\n canvas.setStroke(p.getColor());\n\n drawName(canvas, p.getName(), height, p.getColor());\n height += 30;\n\n canvas.setLineWidth(7);\n\n // Draw each position\n Point last = null;\n int direction = 0;\n for (Point point : p.getPoints()) {\n if (last != null) {\n drawLine(canvas, getPixel(last), getPixel(point));\n\n Point dir = point.substract(last);\n if (dir.X > dir.Y && dir.X > 0) {\n direction = 1;\n } else if (dir.X < dir.Y && dir.X < 0) {\n direction = 3;\n } else if (dir.Y > dir.X && dir.Y > 0) {\n direction = 2;\n } else if (dir.Y < dir.X && dir.Y < 0) {\n direction = 0;\n }\n }\n last = point;\n }\n\n drawSlug(canvas, p.getId() - 1, getPixel(last), direction);\n }\n }",
"@Override\r\n public void paint(Graphics g){\n if(ch.moveCountY == 1 && flag == false){ \r\n flag = true;\r\n animator = new Thread(this);\r\n animator.start();\r\n }\r\n \r\n super.paint(g);\r\n \r\n Graphics2D g2d = (Graphics2D) g;\r\n \r\n if(ch.v == 330){\r\n ch.mainC = img;\r\n }\r\n \r\n if(pos2 < -15){\r\n // g2d.drawImage(img_bg2 , pos2, 0 , null);\r\n b.setBounds(pos2, 0, 995, 610);\r\n \r\n }\r\n \r\n if(pos <= -15){\r\n b.setBounds(pos2, 0, 995, 610);\r\n //g2d.drawImage(img_bg2 , pos2, 0 , null);\r\n \r\n }\r\n \r\n \r\n a.setBounds(pos, 0, 995, 610);\r\n g2d.drawImage(ch.getImage() , ch.getMoveX() , ch.v , null);\r\n g2d.drawImage(obs1.getImage() , obs1.getX() , obs1.getY() , null);\r\n g2d.drawImage(obs2.pic2 , obs2.getX() , obs2.getY() , null);\r\n \r\n }",
"@Override\r\n\tpublic void paint(float deltaTime) {\n\t\t\r\n\t}",
"public void paint() {\n BufferStrategy bs;\n bs = this.getBufferStrategy();\n\n Graphics g = bs.getDrawGraphics();\n g.drawImage(background, 0, 0, this.getWidth(), this.getHeight(), null);\n if (this.blackHoles != null) {\n for (BlackHole blackHole : this.blackHoles) {\n blackHole.paint(g);\n }\n }\n if (this.balls != null) {\n for (int i = 0; i <this.balls.size() ; i++) {\n this.balls.get(i).paint(g);\n }\n\n }\n\n bs.show();\n g.dispose();\n\n }",
"private void draw() {\n gsm.draw(g);\n }",
"public void draw(){\n super.repaint();\n }",
"@Override\r\n public void draw() {\n }",
"public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}",
"@Override\n\tpublic void draw(){\n\t\tif( HighGui.queryFrame(capture, im) ){\n\t\t\tbackground(70);\n\n\t\t\t// Draw it\n\t\t\timage(PUtils.getPImage(im), 0, 0);\n\n\t\t\tSmoothType type = SmoothType.CV_BLUR;\n\t\t\tif( r.value() != -1) type = SmoothType.values()[(int)r.value()-1];\n\n\t\t\tint size1 = (int)size1_slider.value();\n\t\t\tif( size1%2 == 0 ) size1++;\n\t\t\tint size2 = (int)size2_slider.value();\n\t\t\tif( size2%2 == 0 ) size2++;\n\n\t\t\tImgProc.smooth(im, im_smooth, type, size1, size2, param3_slider.value(), param4_slider.value());\n\t\t\timage(PUtils.getPImage(im_smooth), w, 0);\n\t\t}\n\t}",
"public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}",
"@Override\n public void draw()\n {\n }",
"public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }",
"public void draw() {\n\n }",
"public void moveAndDraw(Graphics window)\r\n {\n Color temp = getColor();\r\n\t\tdraw(window, Color.WHITE);\r\n\t\tsetPos(getXSpeed()+xSpeed, getYSpeed()+ySpeed);\r\n\t\tdraw(window, temp);\r\n\t\t//setY\r\n\r\n\t\t//draw the ball at its new location\r\n }",
"public void draw(){\n\t\tcomponent.draw();\r\n\t}",
"@Override\n public void run() {\n while (playing) {\n //update the frame\n update();\n //increment every frame\n Constants.FRAME_COUNT++;\n //draw objects on the frame\n draw();\n //control\n control();\n }\n }",
"private void draw() {\n\t\tgsm.draw(g);\n\t\tg.setColor(Color.WHITE);\n\t\tif (fps < 25)\n\t\t\tg.setColor(Color.RED);\n\t\tg.drawString(\"FPS: \" + fps, 10, 15);\n\t}",
"public void draw() {\n\t\tp.pushStyle();\n\t\t{\n\t\t\tp.rectMode(PConstants.CORNER);\n\t\t\tp.fill(360, 0, 70, 180);\n\t\t\tp.rect(60f, 50f, p.width - 110f, p.height * 2f * 0.33f - 50f);\n\t\t\tp.rect(60f, p.height * 2f * 0.33f + 50f, p.width - 110f, p.height * 0.33f - 130f);\n\t\t}\n\t\tp.popStyle();\n\n\t\tlineChart.draw(40f, 40f, p.width - 80f, p.height * 2f * 0.33f - 30f);\n\t\tlineChart2.draw(40f, p.height * 2f * 0.33f + 45f, p.width - 80f, p.height * 0.33f - 110f);\n\t\t//p.line(x1, y1, x2, y2);\n\n\t}",
"@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tif (frameTick > 30) {\n\t\t\tframeTick = 0;\n\t\t\tframeState = (frameState + 1) % 2;\n\t\t}\n\t\tgc.drawImage(imageFrame.get(frameState), position.first - GameCanvas.getCurrentInstance().getStartX(),\n\t\t\t\tposition.second);\n\t\tframeTick++;\n\t}",
"void draw() {\n scsw.draw();\n \n}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"public void draw(){\n\t\t int startRX = 100;\r\n\t\t int startRY = 100;\r\n\t\t int widthR = 300;\r\n\t\t int hightR = 300;\r\n\t\t \r\n\t\t \r\n\t\t // start points on Rectangle, from the startRX and startRY\r\n\t\t int x1 = 0;\r\n\t\t int y1 = 100;\r\n\t\t int x2 = 200;\r\n\t\t int y2 = hightR;\r\n\t\t \r\n //direction L - false or R - true\r\n\t\t \r\n\t\t boolean direction = true;\r\n\t\t \t\r\n\t\t\r\n\t\t //size of shape\r\n\t\t int dotD = 15;\r\n\t\t //distance between shapes\r\n\t int distance = 30;\r\n\t\t \r\n\t rect(startRX, startRY, widthR, hightR);\r\n\t \r\n\t drawStripesInRectangle ( startRX, startRY, widthR, hightR,\r\n\t \t\t x1, y1, x2, y2, dotD, distance, direction) ;\r\n\t\t \r\n\t\t super.draw();\r\n\t\t}",
"@Override\n public void draw() {\n }",
"public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}",
"@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }",
"public void draw() \n{\n background(250, 243, 225);\n timer(); //control timing of the program\n mapwd.draw(); //visualize weekday trajectory\n shadeTra(t1); \n mapwk.draw(); //visualize weekend trajectory\n shadeTra(t2); \n transport(); //draw the transport legend\n infoDisplay(); //display almost text information\n \n\n stroke(0);\n \n gweekend();\n gweekday();\n frame();\n graduation();\n piechart();\n \n stroke(0);\n arrow();\n \n saveFrame(\"Output1/traffic_######.tif\");\n}",
"@Override\n\tpublic void Draw(GL gl, GLU glu, int frame, double dt) {\n\t\t//DrawOval(gl, 0,0, 1,0, 0, 0);\n\n\t\tDrawBraid(gl, x_Start * 100, y_Start * 100, 1, 0, 0, 0);\n\n\n\t}",
"public void draw(){\n\t\tStdDraw.picture(this.xxPos,this.yyPos,\"images/\"+this.imgFileName);\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile(true){\r\n\t\t\t\t\tdraw();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void draw(Graphics g) {\n\t\tg.setColor(Color.PINK);\r\n\t\tg.fillRect(getX(), getY(), getWidth(), getHeight());\r\n\t\t\r\n\t}",
"public void mousePressed() {\n\t\tint loc = mouseX + mouseY * width;\n\t\ttrackColor = pixels[loc];\n\t\tflock.killAll();\n\n\t\t//settingsW.settingsWindow.redraw();\n\t\t\n\t\tprintln(\"trackColor=\" + (red(trackColor)) + \",\" + (green(trackColor))\n\t\t\t\t+ \",\" + (blue(trackColor)));\n\t}",
"public void draw(){\n hit();\n hit();\n }",
"@Override\n\tpublic void draw() {\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}",
"@Override\n\tpublic void Draw(float delta) {\n\t\t\n\t}",
"@Override\n protected void onDraw(Canvas canvas) {\n\n // Draw the board\n backgCalculating.draw(canvas, displayArea, centralBall);\n\n // Delay\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {}\n\n invalidate(); // Force a re-draw\n }",
"public void paintComponent(Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\t\r\n\t\t// Setting drawings the global color.\r\n\t\tg.setColor( this.model.defaultV.movingColor ); \r\n\r\n\t\t//Painting all of the particles.\r\n\t\tfor(int i = 0; i < this.model.particleArray.size(); i++) {\r\n\t\t\tParticle p = (Particle) this.model.particleArray.get(i);\r\n\t\t\tint x = (int) p.x;\r\n\t\t\tint y = (int) p.y;\r\n\t\t\t\r\n\t\t\t// Changing the color accordingly.\r\n\t\t\tif( p.isMoving ) {\r\n\t\t\t\tg.setColor( p.color );\r\n\t\t\t} else {\r\n\t\t\t\tg.setColor( this.model.defaultV.stuckColor );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Painting each particle.\r\n\t\t\tg.fillRect(x, y, this.model.defaultV.particleSize, this.model.defaultV.particleSize);\r\n\t\t\t\r\n\t\t\tif (p.isTracking && p.trackingPath.size() > 1) {\r\n\t\t\t\tParticle firstPos = p.trackingPath.get(0); // Our very first particle position.\r\n\t\t\t\tfor(int j = 1; j < p.trackingPath.size() - 1; j++) {\r\n\t\t\t\t\tParticle secondPos = p.trackingPath.get(j);\r\n\t\t\t\t\t// draw line from first to second.\r\n\t\t\t\t\tGraphics2D g2 = (Graphics2D) g;\r\n\t\t\t\t\tLine2D lin = new Line2D.Float((int) firstPos.x, (int) firstPos.y, (int) secondPos.x, (int) secondPos.y);\r\n\t\t\t\t\tg.setColor( p.color );\r\n\t\t\t\t\tg2.draw(lin);\r\n\t\t\t\t\t// Set our first to the next.\r\n\t\t\t\t\tfirstPos = secondPos;\r\n\t\t\t\t}\r\n\t\t\t}\r\n }\r\n\t}",
"private void drawBackground() {\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(BACKGROUND_RESOURCE);\r\n\t\tString text = \"Nitro Teleport Waypoints\";\r\n\t\tint posX = (width - SIZE_X) / 2;\r\n\t\tint posY = (height - SIZE_Y) / 2;\r\n\t\tint strWidth = this.fontRendererObj.getStringWidth(text);\r\n\r\n\t\tthis.drawTexturedModalRect(posX, posY, 0, 0, SIZE_X, SIZE_Y);\r\n\t\tthis.drawCenteredString(this.fontRendererObj, text, width / 2, posY - 17, 0xFFFFFF);\r\n\t}",
"public void displayWave(ArrayList<Float> wave,Color color){\r\n\r\n //find the center pixel's Y value so we know where to start drawing the wave from\r\n //this will ensure the wave is drawn where the distance to the top and the bottom of the screen is equal\r\n int CenterYPixel = canvas.heightProperty().intValue()/2;//this is int division\r\n gc.beginPath();\r\n gc.setStroke(color);\r\n gc.setLineWidth(waveThickness);\r\n\r\n\r\n\r\n if(!drawFromRisingEdge) {\r\n gc.moveTo(0, CenterYPixel + Math.round(-wave.get(0) / VoltagePerDivision * pixelsPerDivision));\r\n for (int i = 0; i < wave.size(); i++) {\r\n //for the x value of the lineTo function, we use canvas.widthProperty().intValue()/wave1.size()\r\n //to convert the wave index number to pixels such that it fills the entire width of the canvas\r\n //for the y value, we start from the center CenterYPixel, and then add the value of the wave\r\n //(0,0) of the canvas is top left, so a high y value is lower, so we use the - to flip the wave\r\n //we then scale this by the voltageMultiplier for our user defined divisions\r\n //and lastly scale by pixelsPerDivision so convert the voltage into pixel values (1V is pixelsPerDivision pixels from the center line)\r\n float xPos = (int) (pixelsPerSample * i);\r\n // System.out.println(\"XVal:\"+xPos+\" pix per sample \"+pixelsPerSample);\r\n // gc.lineTo(i * canvas.widthProperty().intValue() / wave.size(), CenterYPixel + Math.round(-wave.get(i) * voltageMultiplier * pixelsPerDivision));\r\n gc.lineTo(xPos, CenterYPixel + Math.round(-wave.get(i) / VoltagePerDivision * pixelsPerDivision));\r\n }\r\n }else{\r\n int risingIndex = findRisingEdgeIndex();\r\n gc.moveTo(0, CenterYPixel + Math.round(-wave.get(risingIndex) / VoltagePerDivision * pixelsPerDivision));\r\n for (int i = risingIndex; i < wave.size(); i++) {\r\n\r\n float xPos = (int) (pixelsPerSample * (i-risingIndex));\r\n\r\n gc.lineTo(xPos, CenterYPixel + Math.round(-wave.get(i) / VoltagePerDivision * pixelsPerDivision));\r\n }\r\n\r\n }\r\n gc.stroke();\r\n }",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"public void drawGraph()\n\t{\n\t\tp.rectMode(PApplet.CORNERS);\n\n\t\t//background(0);\n\t\tp.stroke(255);\n\n\t\t// draw the logarithmic averages\n\t\t//spect.forward(jingle.mix);\n\n\t\tint w = PApplet.parseInt(p.width/spect.avgSize());\n\n\t\tfor(int i = 0; i < fTimer.length; i++)\n\t\t{\n\t\t\tint xPos = i*w;\n\n\t\t\t// Draw numbers\n\t\t\tp.fill(255);\n\t\t\tp.text(i, xPos + (w/2), height2 + 20);\n\n\t\t\t// check fill for beat \n\t\t\tlong clock = System.currentTimeMillis();\n\n\t\t\tif (clock - fTimer[i] < sensitivity)\n\t\t\t{\n\t\t\t\tp.noStroke();\n\n\t\t\t\tfloat h = PApplet.map(clock - fTimer[i], 0, sensitivity, 255, 0);\n\t\t\t\tp.fill(h);\n\t\t\t\tp.ellipse(xPos, height2 + 30, 15, 15); \n\t\t\t}\n\n\t\t\tp.stroke(255);\n\t\t\tp.noFill();\n\t\t\tp.rect(xPos, height2, xPos + w, height2 - spect.getAvg(i));\n\t\t}\n\t}",
"private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }",
"public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }",
"public void paint(){\n\t\tif(this.x+GameScreen.backCam<900 && this.x+GameScreen.backCam>-60){\n\t\t\tGraphicsHandler.drawImage(texture,this.x+GameScreen.backCam,this.y+GameScreen.yCam,size,size);\n\t\t}\n\t}",
"private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }",
"@Override\n public void draw(GameCanvas canvas) {\n drawWall(canvas, true, opacity);\n drawWall(canvas, false, opacity);\n }",
"public void draw(){\n\t\tif(selected){\n\t\t\timg.draw(xpos,ypos,scale,Color.blue);\n\t\t}else{\n\t\t\timg.draw(xpos, ypos, scale);\n\t\t}\n\t}",
"public void moveAndDraw(Graphics window)\r\n {\r\n \t//draw a white ball at old ball location\r\n\t draw(window, Color.WHITE);\r\n\t setx(getx()+xSpeed);\r\n\t sety(gety()+ySpeed);\r\n\r\n\t\t\t//draw the ball at its new location\r\n\t this.draw(window);\r\n }",
"private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }",
"public Comets()\n {\n \n draw();\n }",
"void draw() {\n canvas.drawColor(Color.BLACK);\n insertSort(vstar);\n for( int i=0; i<NUMSTARS; i++){\n vstar[i].draw();\n }\n }",
"public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}"
] |
[
"0.69739574",
"0.693951",
"0.69002724",
"0.68107986",
"0.6784162",
"0.6670168",
"0.66681045",
"0.66194737",
"0.6582129",
"0.6580056",
"0.6575437",
"0.6573252",
"0.65695924",
"0.6558854",
"0.6510837",
"0.648115",
"0.6419279",
"0.6416445",
"0.64157474",
"0.641563",
"0.6394111",
"0.638246",
"0.63753563",
"0.63678783",
"0.6363931",
"0.63489693",
"0.634215",
"0.63398546",
"0.63371766",
"0.63326436",
"0.6324082",
"0.6324082",
"0.6321133",
"0.6314336",
"0.62996495",
"0.62961954",
"0.62805766",
"0.62805766",
"0.62805766",
"0.6267197",
"0.6264114",
"0.6264075",
"0.6263674",
"0.6257747",
"0.6238156",
"0.6237878",
"0.6230328",
"0.62146336",
"0.6212487",
"0.62076133",
"0.61986935",
"0.6198653",
"0.6197272",
"0.61956424",
"0.61935246",
"0.6193223",
"0.6189699",
"0.6185971",
"0.61819494",
"0.6169124",
"0.61685556",
"0.61650413",
"0.61650157",
"0.61649835",
"0.61640936",
"0.6161665",
"0.6161665",
"0.61531395",
"0.61531395",
"0.6145312",
"0.61324185",
"0.6129984",
"0.6125487",
"0.61175585",
"0.61064947",
"0.6104741",
"0.61002326",
"0.60926354",
"0.60864985",
"0.6067763",
"0.6064051",
"0.6063303",
"0.606166",
"0.6060209",
"0.60550135",
"0.6050993",
"0.6046629",
"0.60431963",
"0.6041382",
"0.6028641",
"0.602736",
"0.60268104",
"0.60153216",
"0.60127634",
"0.60079336",
"0.60057145",
"0.60035384",
"0.5998263",
"0.5992787",
"0.59823513"
] |
0.73294514
|
0
|
draw the each scale zone, you can set round corner fot it
|
private void drawScaleZones(boolean isGraduated){
Log.e(TAG, "init======isGraduated>>>>>"+isGraduated );
if(isGraduated){
if(pathEffect == null){
pathEffect = new PathDashPathEffect(mScaleZonePath, mScaleZonePadding,0, PathDashPathEffect.Style.ROTATE);
}
progressPaint.setPathEffect(pathEffect);
}else {
pathEffect = null;
progressPaint.setPathEffect(null);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void drawMap(ObservableList<Node> root, int scale) {\n\t\tfor (int x=0; x<dimensions; x++) {\n\t\t\tfor (int y=0; y<dimensions; y++) {\n\t\t\t\tRectangle rect = new Rectangle(x*scale, y*scale, scale, scale);\n\t\t\t\trect.setStroke(Color.BLACK);\n\t\t\t\trect.setFill(Color.LIGHTSKYBLUE);\n\t\t\t\troot.add(rect);\n\t\t\t\toceanGrid[x][y] = 0; //empty square\n\t\t\t}\n\t\t}\n\t}",
"protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }",
"private void updateBoxes(){\n if(model.getMap() != null) {\n DoubleVec position = invModelToView(new DoubleVec(canvas.getWidth()*0.5,canvas.getHeight()*0.5));\n inner = new Rectangle(position, 1.0/zoomFactor * fi * canvas.getWidth(), 1.0/zoomFactor * fi * canvas.getHeight(), 0);\n outer = new Rectangle(position, 1.0/zoomFactor * fo * canvas.getWidth(), 1.0/zoomFactor * fo * canvas.getHeight(), 0);\n }\n }",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }",
"public void drawScale()\n\t{\n\tint sw=150;\n\tint sh=10;\n\tint x=width-sw-15;\n\tint y=(int)(END_Y+sh*0.5);\n\tscaleBox=new Rectangle2D.Float(x, y, sw, sh);\n\tstrokeWeight(1);\n\t\n\tCell hc=null;\n\tCell finalhc=null;\n\tfor(int i=0;i<hoveredCells.size();i++)\n\t\t{\n\t\thc=hoveredCells.get(i);\n\t\tif(hc.level==min(levelThreshold, minHoveredLevel))\n\t\t\tfinalhc=hc;\n\t\t}\n\thc=finalhc;\n\t\n\tboolean refDrawn=false;\n\tdouble jump0=(255-(0/(float)sw)*255);\n\tdouble jump1=(255-(0/(float)sw)*255);\n\tdouble jump=Math.ceil(jump1-jump0)+2;\n\t\n\tfor(int i=0;i<sw;i++)\n\t\t{\n\t\tint h=0;\n\t\tboolean drawReference=false;\n\t\tswitch(COLOR_MODE)\n\t\t\t{\n\t\t\tcase COLOR_EXPRESSION:\n\t\t\t\tif(i>sw*0.5)\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-((i-sw*0.5)/(sw*0.5)*255));\n\t\t\t\t\tstroke(255,h,h);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getRed()==255 && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\telse\t\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-(Math.abs(i-sw*0.5)/Math.abs(sw*0.5))*255);\n\t\t\t\t\tstroke(h,h,255);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getBlue()==255 && Math.abs(hc.color.get(selectedCol).getRed()-h)<=jump)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COLOR_DEVIATION:\n\t\t\t\th=(int)Math.round(255-(i/(float)sw)*255);\n\t\t\t\tstroke(h,255,h);\n\t\t\t\tif(hc!=null && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\tdrawReference=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tline(x+i,y,x+i,y+sh);\n\t\tif(drawReference && !refDrawn)\n\t\t\t{\n\t\t\tstroke(0);\n\t\t\tline(x+i, y-2, x+i, y+sh+2);\n\t\t\trefDrawn=true;\n\t\t\t}\n\t\t}\n\tstroke(200,200,200);\n\tnoFill();\n\trect(x-1,y-1,sw+1,sh+1);\n\t\n\t//Draw legend\n\ttextAlign(CENTER, TOP);\n\tfill(200);\n\tline(x,y+sh,x,y+sh+2);\n\tif(whiteValue==MEAN)\ttext(\"min\", x, y+sh+3);\n\telse if(whiteValue==MEDIAN)\ttext(\"0\", x, y+sh+3);\n\tline((int)(x+sw*0.5),y+sh,(int)(x+sw*0.5),y+sh+2);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\ttext(\"avg\", (int)(x+sw*0.5), y+sh+3);\n\t\ttext(\"(\"+expData.average+\")\", (int)(x+sw*0.5), y+sh+6);\n\t\t\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"50\", (int)(x+sw*0.5), y+sh+3);\n\t\n\tline(x+sw-1,y+sh,x+sw-1,y+sh+2);\n\tif(whiteValue==MEAN)\t\ttext(\"max\", x+sw-1, y+sh+3);\n\telse if(whiteValue==MEDIAN)\ttext(\"100\", x+sw-1, y+sh+3);\n\t\n\t//line((int)(x+sw*0.25),y+sh,(int)(x+sw*0.25),y+sh+1);\n\t//line((int)(x+sw*0.75),y+sh,(int)(x+sw*0.75),y+sh+1);\n\tline((int)(x+sw*0.1),y+sh,(int)(x+sw*0.1),y+sh+1);\n\tline((int)(x+sw*0.2),y+sh,(int)(x+sw*0.2),y+sh+1);\n\tline((int)(x+sw*0.3),y+sh,(int)(x+sw*0.3),y+sh+1);\n\tline((int)(x+sw*0.4),y+sh,(int)(x+sw*0.4),y+sh+1);\n\tline((int)(x+sw*0.6),y+sh,(int)(x+sw*0.6),y+sh+1);\n\tline((int)(x+sw*0.7),y+sh,(int)(x+sw*0.7),y+sh+1);\n\tline((int)(x+sw*0.8),y+sh,(int)(x+sw*0.8),y+sh+1);\n\tline((int)(x+sw*0.9),y+sh,(int)(x+sw*0.9),y+sh+1);\n\tnoStroke();\n\t}",
"private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }",
"public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(.01);\n for (Point2D p : s) {\n p.draw();\n }\n }",
"void scaleArea(float scaleFactor) {\n\t\t// for more advanced (more than 4 points), use this algorithm:\n\t\t// http://stackoverflow.com/questions/1109536/an-algorithm-for-inflating-deflating-offsetting-buffering-polygons\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tPVector tmp = PVector.sub(point[i].position, anchor);\n\t\t\ttmp.mult(scaleFactor);\n\t\t\tpoint[i].position.set(PVector.add(anchor, tmp));\n\t\t}\n\t}",
"public void draw(){\n\t\tif(selected){\n\t\t\timg.draw(xpos,ypos,scale,Color.blue);\n\t\t}else{\n\t\t\timg.draw(xpos, ypos, scale);\n\t\t}\n\t}",
"public void draw() {\n final int columns = (int) (2 * Math.ceil(Math.max(-minx, maxx)));\n final int rows = (int) (2 * Math.ceil(Math.max(-miny, maxy)));\n\n final int drawColumns;\n final int drawRows;\n drawColumns = drawRows = Math.max(columns, rows);\n\n double leftOffsetPx = BORDER;\n double rightOffsetPx = BORDER;\n double topOffsetPx = BORDER;\n double bottomOffsetPx = BORDER;\n\n final double availableWidth = view.getWidth() - leftOffsetPx - rightOffsetPx;\n final double availableHeight = view.getHeight() - topOffsetPx - bottomOffsetPx;\n\n final double drawWidth;\n final double drawHeight;\n drawWidth = drawHeight = Math.min(availableWidth, availableHeight);\n\n leftOffsetPx = rightOffsetPx = (view.getWidth() - drawWidth) / 2;\n topOffsetPx = bottomOffsetPx = (view.getHeight() - drawHeight) / 2;\n\n // Adjust for aspect ratio\n columnWidth = rowHeight = drawHeight / columns;\n\n centerX = (drawColumns / 2.0) * columnWidth + leftOffsetPx;\n centerY = (drawRows / 2.0) * rowHeight + topOffsetPx;\n\n drawVerticalLine((float) centerX, topOffsetPx, bottomOffsetPx);\n drawHorizontalLine((float) centerY, leftOffsetPx, rightOffsetPx);\n\n int yTick = (int) (-drawRows / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (yTick <= drawRows / 2.0) {\n if (yTick != 0) {\n final String label = yTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", yTick) : null;\n drawYTick(-yTick * rowHeight + centerY, centerX, label);\n }\n yTick += TICK_INTERVAL;\n }\n\n int xTick = (int) (-drawColumns / 2.0 / TICK_INTERVAL) * TICK_INTERVAL;\n while (xTick <= drawColumns / 2.0) {\n if (xTick != 0) {\n final String label = xTick % (TICK_INTERVAL * 2) == 0 ? String.format(\"%d\", xTick) : null;\n drawXTick(xTick * columnWidth + centerX, centerY, label);\n }\n xTick += TICK_INTERVAL;\n }\n\n double adaptiveTextSize = getAdaptiveTextSize();\n\n final Paint paint = new Paint();\n final float textSize = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, (float)adaptiveTextSize, view.getResources().getDisplayMetrics());\n paint.setTextSize(textSize);\n paint.setTypeface(Typeface.create(Typeface.MONOSPACE, Typeface.NORMAL));\n for (Entry entry : data.getEntries()) {\n final double x = entry.getX();\n final double y = entry.getY();\n\n final double xDraw = x * columnWidth + centerX;\n final double yDraw = -y * rowHeight + centerY;\n\n CharSequence dispStr = entry.getStringLabel();\n if (dispStr == null) {\n dispStr = String.format(\"%.0f\", entry.getValue());\n }\n\n\n\n\n Rect bounds = getTextRectBounds(dispStr, paint);\n int textHeight = bounds.height();\n int textWidth = bounds.width();\n canvas.drawText(dispStr, 0, dispStr.length(),\n (float) xDraw - textWidth * 0.5f, (float) yDraw + textHeight * 0.5f,\n paint);\n }\n\n }",
"private void paintTheImage() {\n SPainter bruhmoment = new SPainter(\"Kanizsa Square\" ,400,400);\n\n SCircle dot = new SCircle(75);\n paintBlueCircle(bruhmoment,dot);\n paintRedCircle(bruhmoment,dot);\n paintGreenCircles(bruhmoment,dot);\n\n SSquare square= new SSquare(200);\n paintWhiteSquare(bruhmoment,square);\n\n\n }",
"@Override\n\tpublic int[] getImageScaleDrawing() {\n\t\treturn new int[] {\n\t\t\t\t80, 80\n\t\t};\n\t}",
"private void drawMe(Canvas canvas) {\n\n float halfNegative = mFullBlockSize*(1 - mDividerScale)/2;\n float borderLength = getWidth() - 2*halfNegative;\n float borderMargin = halfNegative + (1 - mBorderScale)*borderLength/2;\n\n// if(mDividerScale == 1 && mBorderScale == 1) {\n// canvas.drawPath(mBorderPath, mBorderPaint);\n// canvas.drawPath(mDividersPath, mDividerPaint);\n// } else {\n\n //left border\n canvas.drawLine(0, borderMargin, 0, mHeight - borderMargin, mBorderPaint);\n\n //right border\n canvas.drawLine(mWidth, borderMargin, mWidth, mHeight - borderMargin, mBorderPaint);\n\n //top border\n canvas.drawLine(borderMargin, 0, mWidth - borderMargin, 0, mBorderPaint);\n\n //bottom border\n canvas.drawLine(borderMargin, mHeight, mWidth - borderMargin, mHeight, mBorderPaint);\n\n\n for(int i = 0; i < mFieldSize; i++) {\n for(int j = 0; j < mFieldSize; j++) {\n if(i != 0)\n canvas.drawLine(mFullBlockSize*i, mFullBlockSize*j + halfNegative, mFullBlockSize*i, mFullBlockSize*(j + 1) - halfNegative, mDividerPaint);\n if(j != 0)\n canvas.drawLine(mFullBlockSize*i + halfNegative, mFullBlockSize*j, mFullBlockSize*(i + 1) - halfNegative, mFullBlockSize*j, mDividerPaint);\n }\n }\n// }\n\n\n float radius = (mFullBlockSize - halfNegative*2)*mTileRadiusRatio;\n for(int i = 0; i < mTiles.size(); i++) {\n Tile tile = mTiles.get(i);\n\n canvas.save();\n canvas.translate(tile.x + halfNegative, tile.y + halfNegative);\n\n if(tile.scale != 1) {\n canvas.scale(tile.scale, tile.scale, realTileSize()/2, realTileSize()/2);\n }\n\n mTilePaint.setColor(mColorMap.get(tile.number));\n mTextPaint.setColor(mColorMap.get(tile.number));\n\n canvas.save();\n if(tile.borderRotation + tile.rotation != 0 && tile.borderRotation + tile.rotation != 360) {\n canvas.rotate(tile.borderRotation + tile.rotation, realTileSize()/2, realTileSize()/2);\n }\n\n// canvas.drawPath(mBaseTilePath, mTilePaint);\n canvas.drawRoundRect(0, 0, realTileSize(), realTileSize(),\n radius, radius, mTilePaint);\n\n canvas.restore();\n\n if(tile.rotation != 0 && tile.rotation != 360) {\n canvas.rotate(tile.rotation, realTileSize()/2, realTileSize()/2);\n }\n\n String text = String.valueOf(tile.number);\n\n TextConfig config = mTextConfigs[text.length() - 1];\n\n config.paint.setColor(mColorMap.get(tile.number));\n\n float textWidth = config.paint.measureText(text);\n\n\n canvas.translate(0, config.yOffset);\n//\n canvas.drawText(text, ((float) mFullBlockSize - 2*halfNegative)/2f - textWidth/2 - 1, 0, config.paint);\n\n canvas.restore();\n\n }\n\n\n // canvas.restore();\n\n\n }",
"private void drawScale(Graphics2D g)\n\t{\n\t\tStroke drawingStroke = new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);\t\n\t\tg.setStroke(drawingStroke);\n\t\tdouble xAxisLength = midBoxWidth - AXIS_Y_GAP*2;\n\t\tdouble yAxisLength = midBoxHeight - AXIS_X_GAP*2;\n\t\tint xScale = statsCollector.getXScale();\n\t\tint yScale = statsCollector.getYScale(graph);\n\t\t//scale = 300000;\n\n\n\t\t// X-axis\n\t\tLine2D.Double line = new Line2D.Double();\n\t\tint yLength = 10;\n\t\tint xLength = totalEntered[0].length -1;\n\t\tif (xLength < 10) {\n\t\t\txLength = 10;\n\t\t}\n\t\tdouble xGap = xAxisLength/xLength;\n\t\tdouble yGap = yAxisLength/yLength;\n\n\t\tfloat offset = 1;\n\n\n\t\t// for loop based on how many points there are\n\t\tfor (int i = 0; i < xLength; i++) {\n\t\t\tline.setLine(ORIGIN_X + xGap*(i+1), ORIGIN_Y, ORIGIN_X + xGap*(i+1), ORIGIN_Y + 8);\n\t\t\tg.draw(line);\n\n\t\t\tif (i % 2 == 1 && i > 0) {\n\t\t\t\tint value = (i+1)*xScale;\n\t\t\t\toffset = 1;\n\t\t\t\twhile (value % 10 != value) {\n\t\t\t\t\toffset++;\n\t\t\t\t\tvalue = value/10;\n\t\t\t\t}\n\t\t\t\t//if ((i+1)*scale < 10) {\n\t\t\t\tg.drawString(Integer.toString((i+1)*xScale), (float)((ORIGIN_X + xGap*(i+1)) - 3.75*offset), (float)(ORIGIN_Y + 25));\n\t\t\t\t//} else {\n\t\t\t\t//g2d.drawString(Integer.toString((i+1)*scale), (float)((ORIGIN_X + xGap*(i+1)) - 7), (float)(ORIGIN_Y + 25));\n\t\t\t\t//}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t// Y-axis\n\t\tfor (int i = 0; i < yLength; i++) {\n\t\t\tline.setLine(ORIGIN_X, ORIGIN_Y - yGap*(i+1), ORIGIN_X - 8, ORIGIN_Y - yGap*(i+1));\n\t\t\tg.draw(line);\n\n\t\t\tif (i % 2 == 1 && i > 0) {\n\t\t\t\tint value = (i+1)*yScale;\n\t\t\t\toffset = 1;\n\t\t\t\twhile (value % 10 != value) {\n\t\t\t\t\toffset++;\n\t\t\t\t\tvalue = value/10;\n\t\t\t\t}\n\t\t\t\tg.drawString(Integer.toString((i+1)*yScale), (float)(ORIGIN_X - 18 - 4*offset), (float)(ORIGIN_Y - yGap*(i+1)) + 4);\n\t\t\t}\n\t\t}\n\t}",
"public void draw(){\n\t\t int startRX = 100;\r\n\t\t int startRY = 100;\r\n\t\t int widthR = 300;\r\n\t\t int hightR = 300;\r\n\t\t \r\n\t\t \r\n\t\t // start points on Rectangle, from the startRX and startRY\r\n\t\t int x1 = 0;\r\n\t\t int y1 = 100;\r\n\t\t int x2 = 200;\r\n\t\t int y2 = hightR;\r\n\t\t \r\n //direction L - false or R - true\r\n\t\t \r\n\t\t boolean direction = true;\r\n\t\t \t\r\n\t\t\r\n\t\t //size of shape\r\n\t\t int dotD = 15;\r\n\t\t //distance between shapes\r\n\t int distance = 30;\r\n\t\t \r\n\t rect(startRX, startRY, widthR, hightR);\r\n\t \r\n\t drawStripesInRectangle ( startRX, startRY, widthR, hightR,\r\n\t \t\t x1, y1, x2, y2, dotD, distance, direction) ;\r\n\t\t \r\n\t\t super.draw();\r\n\t\t}",
"private void drawImages() {\n\t\t\r\n\t}",
"@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }",
"public void draw() \r\n\t{\r\n\t\tdraw(root, new RectHV(0,0,1,1) );\r\n\t}",
"private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble x = pointsSubStroke.get(i).getX();\n\t\t\t\tdouble y = pointsSubStroke.get(i).getX();\n\t\t\t\t\n\t\t\t\tthis.leftX = Math.min(x, leftX);\n\t\t\t\tthis.righX = Math.max(x, righX);\n\t\t\t\tthis.topY = Math.min(y, topY);\n\t\t\t\tthis.bottomY = Math.max(y, bottomY);\n\t\t\t}\n\t\t}",
"public void paintNormalized(){\n\t\t\n\t\tint min = 99999;\n\t\tint max = 0;\n\t\t\n\t\tfor (int i=0; i < ranges.size(); i++){\n\t\t\tif ((ranges.elementAt(i).getMin()) < min){\n\t\t\t\tmin = ranges.elementAt(i).getMin();\n\t\t\t}\n\t\t\tif ((ranges.elementAt(i).getMax()) > max){\n\t\t\t\tmax = ranges.elementAt(i).getMax();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Once I've got them, the paint is simple, because Positioner.getAssociatedPosition() returns\n\t\t// the exact pixel where the color has to be painted\n\t\t\n\t\tPositioner positions = new Positioner(drawingPanel.getHeight(), min, max);\n\t\t\n\t\tint i = 1;\n\t\tBufferedImage img = new BufferedImage(drawingPanel.getWidth(), drawingPanel.getHeight(), BufferedImage.TYPE_INT_ARGB);\n\t\t\t\t\n\t\twhile (i <= ranges.size()){\n\t\t\tpaintBufferedSolid(ranges.elementAt(ranges.size()-i).getColor(),positions.getAssociatedPosition(ranges.elementAt(ranges.size()-i).getMax()) , positions.getAssociatedPosition(ranges.elementAt(ranges.size()-i).getMin()), img);\n\t\t\ti++;\n\t\t}\n\n\t\t\t\n\t\t\n\t\tdrawingPanel.getGraphics().drawImage(img, 0, 0, img.getWidth(), img.getHeight(), null);\n\t\t\n\t\t// Painting the ranges\n\t\t\n\t\trangesPanel.removeAll();\t\t\t// Clears rangePanel\n\t\t\n\t\tJLabel currentRange;\n\t\t\n\t\tcurrentRange = new JLabel(Integer.toString(ranges.elementAt(0).getMin()));\n\t\tcurrentRange.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tcurrentRange.setBounds(35, rangesPanel.getHeight()-16, 60, 16);\n\t\t\n\t\t\n\t\trangesPanel.add(currentRange);\n\t\tint last = rangesPanel.getHeight()-16;\n\t\tint aux;\n\t\tfor (int j = 0; j < ranges.size(); j++){\n\t\t\taux = positions.getAssociatedPosition(ranges.elementAt(j).getMax());\n\t\t\tcurrentRange = new JLabel(Integer.toString(ranges.elementAt(j).getMax()));\n\t\t\tcurrentRange.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tif (aux+16 < last){\n\t\t\t\tcurrentRange.setBounds(35, aux, 60, 16);\n\t\t\t\tlast = aux;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcurrentRange.setBounds(35, last-16, 60, 16);\n\t\t\t\tlast = last - 16;\n\t\t\t}\n\t\t\t\t\n\t\t\trangesPanel.add(currentRange);\n\t\t}\n\t\t\n\t\trangesPanel.repaint();\n\t}",
"@Override\r\n public final void draw(final Square s, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(s.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(s.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(s.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(s.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(s.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(s.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(s.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n \r\n draw(new Line((String.valueOf(s.getxSus())), String.valueOf(s.getySus()),\r\n String.valueOf(s.getxSus() + s.getLatura() - 1), String.valueOf(s.getySus()), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus()), String.valueOf(s.getxSus() + s.getLatura() - 1),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus())),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus()), color, String.valueOf(s.getBorderColor().getAlpha()),\r\n paper), paper);\r\n for (int i = s.getxSus() + 1; i < s.getxSus() + s.getLatura() - 1; i++) {\r\n for (int j = s.getySus() + 1; j < s.getySus() + s.getLatura() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, s.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n\r\n }",
"public void draw() {\n\t\tp.pushStyle();\n\t\t{\n\t\t\tp.rectMode(PConstants.CORNER);\n\t\t\tp.fill(360, 0, 70, 180);\n\t\t\tp.rect(60f, 50f, p.width - 110f, p.height * 2f * 0.33f - 50f);\n\t\t\tp.rect(60f, p.height * 2f * 0.33f + 50f, p.width - 110f, p.height * 0.33f - 130f);\n\t\t}\n\t\tp.popStyle();\n\n\t\tlineChart.draw(40f, 40f, p.width - 80f, p.height * 2f * 0.33f - 30f);\n\t\tlineChart2.draw(40f, p.height * 2f * 0.33f + 45f, p.width - 80f, p.height * 0.33f - 110f);\n\t\t//p.line(x1, y1, x2, y2);\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制矩形\");\n\t\t\n\t}",
"private void paintCourbePoints() {\n\t\tfloat x, y;\n\t\tint i, j;\n\t\t\n\t\tfor(x=xMin; x<=xMax; x++) {\n\t\t\ty = parent.getY(x);\n\t\t\t\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\ti = convertX(x);\n\t\t\t\tj = convertY(y);\n\t\t\t\t\n\t\t\t\t//Utilisation d'un carre/losange pour simuler un point \n\t\t\t\t//de taille superieur a un pixel car celui-ci est peu visible.\n\t\t\t\tpaintPointInColor(i-2, j);\n\t\t\t\tpaintPointInColor(i-1, j-1);\t\t\t\t\n\t\t\t\tpaintPointInColor(i-1, j);\n\t\t\t\tpaintPointInColor(i-1, j+1);\n\t\t\t\tpaintPointInColor(i, j-2);\t//\t *\n\t\t\t\tpaintPointInColor(i, j-1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j);\t//\t* * * * *\n\t\t\t\tpaintPointInColor(i, j+1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j+2);\t//\t *\n\t\t\t\tpaintPointInColor(i+1, j-1);\n\t\t\t\tpaintPointInColor(i+1, j);\n\t\t\t\tpaintPointInColor(i+1, j+1);\n\t\t\t\tpaintPointInColor(i+2, j);\n\t\t\t}\n\t\t}\t\t\n\t}",
"private void drawSquares() {\n for (Square square : gui.game) {\n new SquareRenderer(gui, g2, square);\n }\n }",
"@Override\r\n\tprotected void generateAreas() {\n\t\tPerlinNoise noise = new PerlinNoise(new Random().nextInt(), xmasTemplate.getScale(), xmasTemplate.getOctaves(), xmasTemplate.getPersistence());\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\t\tif (getValue(x, y) != BASE) {\r\n\t\t\t\t\tif (noise.perlinNoise(x, y) > xmasTemplate.getThreshold()) {\r\n\t\t\t\t\t\tsetValue(x, y, WALL);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tsetValue(x, y, FLOOR);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Fill east, west and south\r\n\t\tfor (int x = 0; x < getWidth(); x ++) {\r\n\t\t\tdrawArea(x, 0, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\t\tfor (int y = 0; y < getHeight(); y ++) {\r\n\t\t\tdrawArea(0, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t\tdrawArea(getWidth() - 1, y, CosineInterpolator.instance.interpolate(2.0f, 6.0f, (float) Math.random()), WALL);\r\n\t\t}\r\n\r\n\t\t// Draw random blotch lines between each base first\r\n\t\tArrayList<Point> basesCopy = new ArrayList<Point>(getBases());\r\n\t\tfor (int i = 0; i < basesCopy.size(); i ++) {\r\n\t\t\tPoint p1 = basesCopy.get(i);\r\n\t\t\tint j = Util.random(0, basesCopy.size() - 1);\r\n\t\t\tPoint p2 = basesCopy.get(j);\r\n\t\t\tbasesCopy.set(i, p2);\r\n\t\t\tbasesCopy.set(j, p1);\r\n\t\t}\r\n\r\n\t\tPoint s = basesCopy.get(0), t;\r\n\t\tdrawArea(s.getX(), s.getY(), (xmasTemplate.getMinMainTunnelWidth() + xmasTemplate.getMaxMainTunnelWidth()) / 2.0f, FLOOR);\r\n\t\tfor (int i = 0; i < basesCopy.size() - 1; i ++) {\r\n\t\t\ts = basesCopy.get(i);\r\n\t\t\tt = basesCopy.get(i + 1);\r\n\t\t\tdrawLine(s.getX(), s.getY(), t.getX(), t.getY(), xmasTemplate.getMinMainTunnelWidth(), xmasTemplate.getMaxMainTunnelWidth(), FLOOR);\r\n\t\t}\r\n\r\n\t}",
"private void drawGrid(){\r\n\r\n\t\tdrawHorizontalLines();\r\n\t\tdrawVerticalLines();\r\n\t}",
"@Override\r\n public final void draw(final Circle s, final BufferedImage paper) {\n\r\n int xc = s.getX();\r\n int yc = s.getY();\r\n int r = s.getRaza();\r\n int x = 0, y = r;\r\n final int trei = 3;\r\n int doi = 2;\r\n int d = trei - doi * r;\r\n while (y >= x) {\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n x++;\r\n if (d > 0) {\r\n y--;\r\n final int patru = 4;\r\n final int zece = 10;\r\n d = d + patru * (x - y) + zece;\r\n } else {\r\n final int patru = 4;\r\n final int sase = 6;\r\n d = d + patru * x + sase;\r\n }\r\n if (checkBorder(xc + x, yc + y, paper)) {\r\n paper.setRGB(xc + x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc + y, paper)) {\r\n paper.setRGB(xc - x, yc + y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + x, yc - y, paper)) {\r\n paper.setRGB(xc + x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - x, yc - y, paper)) {\r\n paper.setRGB(xc - x, yc - y, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc + x, paper)) {\r\n paper.setRGB(xc + y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc + y, yc - x, paper)) {\r\n paper.setRGB(xc + y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc + x, paper)) {\r\n paper.setRGB(xc - y, yc + x, s.getBorderColor().getRGB());\r\n }\r\n if (checkBorder(xc - y, yc - x, paper)) {\r\n paper.setRGB(xc - y, yc - x, s.getBorderColor().getRGB());\r\n }\r\n\r\n }\r\n floodFill(xc, yc, s.getFillColor(), s.getBorderColor(), paper);\r\n }",
"public void draw() {\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setPenRadius(0.01);\n for (Point2D point : points) {\n StdDraw.point(point.x(), point.y());\n }\n StdDraw.setPenRadius();\n }",
"public abstract void Draw(Graphics2D g, double zoomFactor);",
"public abstract void Draw(Graphics2D g, double zoomFactor);",
"private void drawStuff() {\n //Toolkit.getDefaultToolkit().sync();\n g = bf.getDrawGraphics();\n bf.show();\n Image background = window.getBackg();\n try {\n g.drawImage(background, 4, 24, this);\n\n for(i=12; i<264; i++) {\n cellKind = matrix[i];\n\n if(cellKind > 0)\n g.drawImage(tile[cellKind], (i%12)*23-3, (i/12)*23+17, this);\n }\n\n drawPiece(piece);\n drawNextPiece(pieceKind2);\n\n g.setColor(Color.WHITE);\n g.drawString(\"\" + (level+1), 303, 259);\n g.drawString(\"\" + score, 303, 339);\n g.drawString(\"\" + lines, 303, 429);\n\n } finally {bf.show(); g.dispose();}\n }",
"public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }",
"@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}",
"private void drawAxes() {\n float margin = 90;\n\n //TODO tony va a hacer que el eje aparezca abajo\n //X rojo\n text(\"+X\",margin,-2,0);\n text(\"-X\",-margin,-2,0);\n stroke(210, 0, 0);\n line(-size,0,0,size,0,0);\n\n //Y verde\n text(\"-Z\",2,margin,0);\n text(\"+Z\",2,-margin,0);\n stroke(0, 210, 0);\n line(0,-size,0,0,size,0);\n\n //Z azul\n text(\"+Y\",5,0,margin);\n text(\"-Y\",5,0,-margin);\n stroke(0, 0, 210);\n line(0, 0, -size,0,0, size);\n }",
"public abstract void paint(Graphics2D graphics, float scale);",
"@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2 = (Graphics2D) g;\n g2.scale(2, 2);\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setColor(Color.WHITE);\n\n Application.grid.draw(g2);\n ui.draw(g2);\n }",
"public void Wall()\n {\n if (this.getX() > 50 -this.getScale()) \n { \n this.setX(this.getX()-0.5); \n } \n else if (this.getX() < getScale()) \n {\n this.setX(this.getX()+0.5);\n \n }else if (this.getZ() > 50-this.getScale() ) \n {\n this.setZ(this.getZ()-0.5);\n \n }else if (this.getScale() > this.getZ()) \n {\n this.setZ(this.getZ()+0.5);\n }\n }",
"public void draw() {\n draw(this.root, new RectHV(0.0, 0.0, 1.0, 1.0));\n }",
"public void draw(Graphics g, int... paneOffsets) { }",
"private static void addShaped()\n {}",
"public void draw() {\n draw(root, true);\n }",
"private void drawShapes() {\n\n // get a polygon shape object\n SKPolygon polygon = new SKPolygon();\n // set the polygon's nodes\n List<SKCoordinate> nodes = new ArrayList<SKCoordinate>();\n nodes.add(new SKCoordinate(-122.4342, 37.7765));\n nodes.add(new SKCoordinate(-122.4141, 37.7765));\n nodes.add(new SKCoordinate(-122.4342, 37.7620));\n polygon.setNodes(nodes);\n // set the outline size\n polygon.setOutlineSize(3);\n // set colors used to render the polygon\n polygon.setOutlineColor(new float[]{1f, 0f, 0f, 1f});\n polygon.setColor(new float[]{1f, 0f, 0f, 0.2f});\n // render the polygon on the map\n mapView.addPolygon(polygon);\n\n // get a circle mask shape object\n SKCircle circleMask = new SKCircle();\n // set the shape's mask scale\n circleMask.setMaskedObjectScale(1.3f);\n // set the colors\n circleMask.setColor(new float[]{1f, 1f, 0.5f, 0.67f});\n circleMask.setOutlineColor(new float[]{0f, 0f, 0f, 1f});\n circleMask.setOutlineSize(3);\n // set circle center and radius\n circleMask.setCircleCenter(new SKCoordinate(-122.4200, 37.7665));\n circleMask.setRadius(300);\n // set outline properties\n circleMask.setOutlineDottedPixelsSkip(6);\n circleMask.setOutlineDottedPixelsSolid(10);\n // set the number of points for rendering the circle\n circleMask.setNumberOfPoints(150);\n // render the circle mask\n mapView.addCircle(circleMask);\n\n\n // get a polyline object\n SKPolyline polyline = new SKPolyline();\n // set the nodes on the polyline\n nodes = new ArrayList<SKCoordinate>();\n nodes.add(new SKCoordinate(-122.4342, 37.7898));\n nodes.add(new SKCoordinate(-122.4141, 37.7898));\n nodes.add(new SKCoordinate(-122.4342, 37.7753));\n polyline.setNodes(nodes);\n // set polyline color\n polyline.setColor(new float[]{0f, 0f, 1f, 1f});\n // set properties for the outline\n polyline.setOutlineColor(new float[]{0f, 0f, 1f, 1f});\n polyline.setOutlineSize(4);\n polyline.setOutlineDottedPixelsSolid(3);\n polyline.setOutlineDottedPixelsSkip(3);\n mapView.addPolyline(polyline);\n }",
"@Override\r\n\tpublic void paint(Graphics g) {\r\n\t\tGraphics2D g2 = (Graphics2D)g;\r\n\t\tint w = getWidth();\r\n\t\tint h = getHeight();\r\n\t\tg2.setColor(Color.BLACK);\r\n\t\tg2.fillRect(0, 0, w, h);\r\n\r\n\t\tif (w != lastWidth || h != lastHeight) {\r\n\t\t\tlastWidth = w;\r\n\t\t\tlastHeight = h;\r\n\t\t\t// if the render window changes, re-zoom to update scrollbars\r\n\t\t\tupdateRegions();\r\n\t\t}\r\n\t\tAffineTransform t = g2.getTransform();\r\n\t\tg2.scale(scale, scale);\r\n\t\tint k = 0;\r\n\t\tint j = 0;\r\n\t\tGamePlanet planet = gameWorld.player.selectedPlanet;\r\n\t\tif (planet == null) {\r\n\t\t\tplanet = gameWorld.getOwnPlanetsInOrder().get(0);\r\n\t\t\tgameWorld.player.selectedPlanet = planet;\r\n\t\t}\r\n\t\tint surfaceType = planet.surfaceType.index;\r\n\t\tbyte[] mapBytes = getSelectedPlanetSurface();\r\n\t\t// RENDER VERTICALLY\r\n\t\tMap<Integer, Tile> surface = gfx.getSurfaceTiles(surfaceType);\r\n\t\tfor (int mi = 0; mi < MAP_START_X.length; mi++) {\r\n\t\t\tk = MAP_START_X[mi];\r\n\t\t\tj = MAP_START_Y[mi];\r\n\t\t\tint i = toMapOffset(k, j);\r\n\t\t\tint kmin = MAP_END_X[mi];\r\n\t\t\twhile (i >= 0 && k >= kmin) {\r\n\t\t\t\tint tileId = (mapBytes[2 * i + 4] & 0xFF) - (surfaceType < 7 ? 41 : 84);\r\n\t\t\t\tint stripeId = mapBytes[2 * i + 5] & 0xFF;\r\n\t\t\t\tTile tile = surface.get(tileId);\r\n\t\t\t\tif (tile != null) {\r\n\t\t\t\t\ttile.createImage(daylight);\r\n\t\t\t\t\t// 1x1 tiles can be drawn from top to bottom\r\n\t\t\t\t\tif (tile.width == 1 && tile.height == 1) {\r\n\t\t\t\t\t\tint x = xoff + Tile.toScreenX(k, j);\r\n\t\t\t\t\t\tint y = yoff + Tile.toScreenY(k, j);\r\n\t\t\t\t\t\tif (x >= -tile.image.getWidth() && x <= (int)(getWidth() / scale)\r\n\t\t\t\t\t\t\t\t&& y >= -tile.image.getHeight() && y <= (int)(getHeight() / scale) + tile.image.getHeight()) {\r\n\t\t\t\t\t\t\tg2.drawImage(tile.image, x, y - tile.image.getHeight() + tile.heightCorrection, null);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else \r\n\t\t\t\t\tif (stripeId < 255) {\r\n\t\t\t\t\t\t// multi spanning tiles should be cut into small rendering piece for the current strip\r\n\t\t\t\t\t\t// ff value indicates the stripe count\r\n\t\t\t\t\t\t// the entire image would be placed using this bottom left coordinate\r\n\t\t\t\t\t\tint j1 = stripeId >= tile.width ? j + tile.width - 1 : j + stripeId;\r\n\t\t\t\t\t\tint k1 = stripeId >= tile.width ? k + (tile.width - 1 - stripeId) : k;\r\n\t\t\t\t\t\tint j2 = stripeId >= tile.width ? j : j - (tile.width - 1 - stripeId);\r\n\t\t\t\t\t\tint x = xoff + Tile.toScreenX(k1, j1);\r\n\t\t\t\t\t\tint y = yoff + Tile.toScreenY(k1, j2);\r\n\t\t\t\t\t\t// use subimage stripe\r\n\t\t\t\t\t\tint x0 = stripeId >= tile.width ? Tile.toScreenX(stripeId, 0) : Tile.toScreenX(0, -stripeId);\r\n\t\t\t\t\t\tBufferedImage subimage = tile.strips[stripeId];\r\n\t\t\t\t\t\tg2.drawImage(subimage, x + x0, y - tile.image.getHeight() + tile.heightCorrection, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tk--;\r\n\t\t\t\ti = toMapOffset(k, j);\r\n\t\t\t}\r\n\t\t}\r\n\t\tComposite comp = null;\r\n//\t\tComposite comp = g2.getComposite();\r\n//\t\tg2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, daylight));\r\n//\t\tg2.setColor(Color.BLACK);\r\n//\t\tg2.fill(mainWindow);\r\n//\t\tg2.setComposite(comp);\r\n\t\t\r\n\t\tif (tilesToHighlight != null) {\r\n\t\t\tdrawIntoRect(g2, gfx.getFrame(0), tilesToHighlight);\r\n\t\t}\r\n\t\tg2.setTransform(t);\r\n\t\t// RENDER INFOBARS\r\n\t\tinfobarRenderer.renderInfoBars(this, g2);\r\n\t\t// RENDER LEFT BUTTONS\r\n\t\tg2.drawImage(gfx.buildingButton, btnBuilding.rect.x, btnBuilding.rect.y, null);\r\n\t\tg2.setColor(Color.BLACK);\r\n\t\tg2.drawLine(btnBuilding.rect.width, btnBuilding.rect.y, btnBuilding.rect.width, btnBuilding.rect.y + btnBuilding.rect.height - 1);\r\n\t\t\r\n\t\tg2.drawImage(gfx.leftTop, leftTopRect.x, leftTopRect.y, null);\r\n\t\tif (leftFillerRect.height > 0) {\r\n\t\t\tPaint p = g2.getPaint();\r\n\t\t\tg2.setPaint(leftFillerPaint);\r\n\t\t\tg2.fill(leftFillerRect);\r\n\t\t\tg2.setPaint(p);\r\n\t\t}\r\n\t\tg2.drawImage(gfx.leftBottom, leftBottomRect.x, leftBottomRect.y, null);\r\n\t\tg2.drawLine(btnRadar.rect.width, btnRadar.rect.y, btnRadar.rect.width, \r\n\t\t\t\tbtnRadar.rect.y + btnRadar.rect.height - 1);\r\n\t\tg2.drawImage(gfx.radarButton, btnRadar.rect.x, btnRadar.rect.y, null);\r\n\t\t\r\n\t\t// RENDER RIGHT BUTTONS\r\n\t\tg2.drawImage(gfx.buildingInfoButton, btnBuildingInfo.rect.x, btnBuildingInfo.rect.y, null);\r\n\t\tg2.drawImage(gfx.rightTop, rightTopRect.x, rightTopRect.y, null);\r\n\t\tif (rightFillerRect.height > 0) {\r\n\t\t\tPaint p = g2.getPaint();\r\n\t\t\tg2.setPaint(rightFillerPaint);\r\n\t\t\tg2.fill(rightFillerRect);\r\n\t\t\tg2.setPaint(p);\r\n\t\t}\r\n\t\tg2.drawImage(gfx.rightBottom, rightBottomRect.x, rightBottomRect.y, null);\r\n\t\tg2.drawImage(gfx.screenButtons, btnButtons.rect.x, btnButtons.rect.y, null);\r\n\t\t\r\n\t\tif (btnColonyInfo.visible) {\r\n\t\t\tif (btnColonyInfo.down) {\r\n\t\t\t\tg2.drawImage(gfx.colonyInfoButtonDown, btnColonyInfo.rect.x, btnColonyInfo.rect.y, null);\r\n\t\t\t} else {\r\n\t\t\t\tg2.drawImage(gfx.colonyInfoButton, btnColonyInfo.rect.x, btnColonyInfo.rect.y, null);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (btnPlanet.visible) {\r\n\t\t\tif (btnPlanet.down) {\r\n\t\t\t\tg2.drawImage(gfx.planetButtonDown, btnPlanet.rect.x, btnPlanet.rect.y, null);\r\n\t\t\t} else {\r\n\t\t\t\tg2.drawImage(gfx.planetButton, btnPlanet.rect.x, btnPlanet.rect.y, null);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (btnStarmap.visible) {\r\n\t\t\tif (btnStarmap.down) {\r\n\t\t\t\tg2.drawImage(gfx.starmapButtonDown, btnStarmap.rect.x, btnStarmap.rect.y, null);\r\n\t\t\t} else {\r\n\t\t\t\tg2.drawImage(gfx.starmapButton, btnStarmap.rect.x, btnStarmap.rect.y, null);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (btnBridge.visible) {\r\n\t\t\tif (btnBridge.down) {\r\n\t\t\t\tg2.drawImage(gfx.bridgeButtonDown, btnBridge.rect.x, btnBridge.rect.y, null);\r\n\t\t\t} else {\r\n\t\t\t\tg2.drawImage(gfx.bridgeButton, btnBridge.rect.x, btnBridge.rect.y, null);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (btnBuilding.down) {\r\n\t\t\tg2.drawImage(gfx.buildPanel, buildPanelRect.x, buildPanelRect.y, null);\r\n\t\t}\r\n\t\tif (btnBuildingInfo.down) {\r\n\t\t\tg2.drawImage(gfx.buildingInfoPanel, buildingInfoPanelRect.x, buildingInfoPanelRect.y, null);\r\n\t\t}\r\n\t\tif (btnRadar.down) {\r\n\t\t\tg2.drawImage(gfx.radarPanel, radarPanelRect.x, radarPanelRect.y, null);\r\n\t\t}\r\n\t\tShape sp = g2.getClip();\r\n\t\tg2.clip(infobarRenderer.topInfoArea);\r\n\t\ttext.paintTo(g2, infobarRenderer.topInfoArea.x, infobarRenderer.topInfoArea.y + 1, 14, 0xFFFFFFFF, \r\n\t\t\t\tplanet != null ? planet.name : \"\");\r\n\t\tg2.setClip(sp);\r\n\t\t\r\n\t\t// now darken the entire screen\r\n\t\tif (darkness > 0.0f) {\r\n\t\t\tcomp = g2.getComposite();\r\n\t\t\tg2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, darkness));\r\n\t\t\tg2.setColor(Color.BLACK);\r\n\t\t\tg2.fillRect(0, 0, w, h);\r\n\t\t\tg2.setComposite(comp);\r\n\t\t}\r\n\t}",
"@Override\n public void draw() {\n /** preparacion de la ventana **/\n background(255);\n lights();\n directionalLight(40, 90, 100, 1, 40, 40);\n\n translate(origin.x,origin.y);\n scale(zoom);\n\n\n /** entrada del usuario **/\n userInput();\n /** ejes X Y Z **/\n drawAxes();\n /** aplicar ik **/\n writePos();\n\n /** escala de los objetos**/\n scale(-1.2f);\n\n /** esfera que muestra la posicion en coord X Y Z\n *\n * X -> coord[0]\n * Y -> coord[1]\n * Z -> coord[2]\n *\n * **/\n pushMatrix();\n noStroke();\n fill(250, 100, 1);\n translate(-coord_cartesian[1] ,-coord_cartesian[2] -11,-coord_cartesian[0] );\n sphere(2);\n popMatrix();\n\n\n /**\n * Dibuja el brazo\n */\n pushMatrix();\n arm.drawArm();\n popMatrix();\n }",
"public void drawAllGraphics(){\r\n\t\t \r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Draw all shapes\");\r\n\t\t\r\n\t}",
"public void drawSquareView() {\r\n \tview.updateSquare();\r\n \tview.drawSquare();\r\n }",
"public void draw(Graphics surface) {\r\n surface.drawLine(50, 50, 250, 250);\r\n\tsurface.drawOval(20,20,40,40);\r\n box.draw(surface);\r\n\tfor (BouncingBox b : boxes) {\r\n\t b.draw(surface);\r\n\t}\r\n }",
"public void draw() {\n StdDraw.clear();\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setXscale(-drawLength * 0.1, drawLength * 1.2);\n StdDraw.setYscale(-drawLength * 0.65, drawLength * 0.65);\n StdDraw.line(0, 0, drawLength, 0);\n StdDraw.text(-drawLength * 0.05, 0, \"0\");\n StdDraw.text(drawLength * 1.1, 0, Integer.toString(size()));\n }",
"@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制圆形\");\n\t}",
"static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }",
"public void displayScaled(float scaleFactor) {\n pushMatrix();\n scale(scaleFactor);\n shape(fullCar);\n popMatrix();\n }",
"public void med1() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Med. 1\");\n win.setLocation(300, 10);\n win.setBackground(java.awt.Color.red);\n for(int y = -10; y < HEIGHT; y += 24) {\n for(int x = -10; x < WIDTH; x += 24) {\n octagon(x, y, g);\n }\n }\n }",
"void setBounds(double x, double y, double scale) {\n double drawAspect = (double)width / (double)height;\n\n double halfPlotWidth = scale / 2.0;\n double halfPlotHeight = scale / 2.0;\n if (drawAspect > 1.0) {\n halfPlotWidth *= drawAspect;\n } else {\n halfPlotHeight /= drawAspect;\n }\n\n setBounds(x - halfPlotWidth, y - halfPlotHeight, x + halfPlotWidth, y + halfPlotHeight);\n }",
"private void setScaleToBoardViewPanes(double scale) {\n boardController.getDrawedBoard().setScaleX(scale);\n boardController.getDrawedBoard().setScaleY(scale);\n boardController.getCanvas().setScaleX(scale);\n boardController.getCanvas().setScaleY(scale);\n boardController.getDartBoard().setScaleX(scale);\n boardController.getDartBoard().setScaleY(scale);\n boardController.getPointsAreaPane().setScaleX(scale);\n boardController.getPointsAreaPane().setScaleY(scale);\n }",
"void drawRegion (double b, double e) {\n begT = b; endT = e;\n drawStuff (img.getGraphics ());\n }",
"@Override\n public void draw(Graphics graphics){\n graphics.fillRect(referencePoint.getX() + width / 3, referencePoint.getY() + height / 3, width / 3, height / 3);\n }",
"@Override\r\n public void paint(Graphics y) {\n super.paintComponent(y);\r\n\r\n for (int i = 0; i < 20; i++) {\r\n\r\n switch (opcion) {\r\n case 1:\r\n int xRect = 10 + (i *10);\r\n int yRect = 10 + (i * 10);\r\n int anchoRect = 50 + (i * 10);\r\n int altoRect = 50 + (i * 10);\r\n\r\n y.drawRect(xRect, yRect, anchoRect, altoRect);\r\n break;\r\n\r\n case 2:\r\n int xOval = 10 + (i * 10);\r\n int yOval = 10 + (i * 10);\r\n int anchoOval = 50 + (i * 10);\r\n int altoOval = 50 + (i * 10);\r\n\r\n y.drawOval(xOval, yOval, anchoOval, altoOval);\r\n break;\r\n\r\n case 3:\r\n int x3d = 10 + (i * 10);\r\n int y3d = 10 + (i * 10);\r\n int ancho3d = 50 + (i * 10);\r\n int alto3d = 50 + (i * 10);\r\n y.draw3DRect(x3d, y3d, ancho3d, alto3d, true);\r\n break;\r\n \r\n case 4:\r\n int rectax = 100 + (i * 10);\r\n int rectay = 100 + (i * 10);\r\n int anchorecta = 500 + (i * 10);\r\n int altorecta = 500 + (i * 10);\r\n y.drawLine(rectax, rectay, anchorecta, altorecta);\r\n \r\n \r\n case 5:\r\n int rectaxx = 100 + (i * 10);\r\n int rectayy = 100 + (i * 10);\r\n int anchonueva = 500 + (i * 10);\r\n int altonueva = 500 + (i * 10);\r\n y.draw3DRect(rectaxx, rectayy, anchonueva, altonueva, true);\r\n }\r\n\r\n }\r\n\r\n }",
"public Skull() {\n\t\tsuper();\n\t\tsuper.setWidth(width);\n\t\tsuper.setheight(height);\n\t\tloadPattern();\n\t\tcurrentPattern = walkPattern;\n\t}",
"void draw() {\n\t\tSystem.out.println(\"Drawing the Rectange...\");\n\t\t}",
"public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }",
"@Override\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\n\n\t\tg.setColor(Color.BLACK);\n\n\t\tg.setFont(numFont);\n\n\t\tif (param.showaxis) {\n\t\t\t// pixels\n\t\t\tint actualcenterx = (int) math.Math.scale(0, param.minx, param.maxx, 0, getWidth());\n\t\t\tint actualcentery = (int) math.Math.scale(0, param.miny, param.maxy, getHeight(), 0);\n\n\t\t\tg.drawLine(actualcenterx, 0, actualcenterx, getHeight());\n\t\t\tg.drawLine(0, actualcentery, getWidth(), actualcentery);\n\t\t\tg.drawString(0 + \"\", actualcenterx - xoffset, actualcentery + yoffset);\n\n\t\t\tg.drawString(param.maxx + \"\", getWidth() - xoffset * (param.maxx + \"\").length(), actualcentery + yoffset);\n\t\t\tg.drawString(param.minx + \"\", 0, actualcentery + yoffset);\n\t\t\tg.drawString(param.maxy + \"\", actualcenterx - xoffset * (param.maxy + \"\").length(), yoffset);\n\t\t\tg.drawString(param.miny + \"\", actualcenterx - xoffset * (param.miny + \"\").length(), getHeight() - yoffset);\n\t\t}\n\n\t\tfor (UIPointSet pointSet : pointSets) {\n\n\t\t\tint prevpx = 0, prevpy = 0;\n\t\t\tfor (int i = 0; i < pointSet.getPoints().length; i++) {\n\n\t\t\t\tdouble[] point = pointSet.getPoints()[i];\n\t\t\t\t// pixels\n\t\t\t\tint px = (int) math.Math.scale(point[0], param.minx, param.maxx, 0, getWidth());\n\t\t\t\tint py = (int) math.Math.scale(point[1], param.miny, param.maxy, getHeight(), 0);\n\n\t\t\t\tif (pointSet.getPointColor() != null) {\n\t\t\t\t\tint pointWidth = 10;\n\t\t\t\t\tg.setColor(pointSet.getPointColor());\n\t\t\t\t\tg.fillOval(px - pointWidth / 2, py - pointWidth / 2, pointWidth, pointWidth);\n\t\t\t\t}\n\n\t\t\t\tif (pointSet.getLineColor() != null && i > 0) {// if (Math.abs(y2 - y) < (getHeight())) {\n\t\t\t\t\tg.setColor(pointSet.getLineColor());\n\t\t\t\t\tg.drawLine(prevpx, prevpy, px, py);\n\t\t\t\t\tfor (int ii = 1; ii < 2; ii++) {\n\t\t\t\t\t\tg.drawLine(prevpx, prevpy - ii, px, py - ii);\n\t\t\t\t\t\tg.drawLine(prevpx, prevpy + ii, px, py + ii);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tprevpx = px;\n\t\t\t\tprevpy = py;\n\n\t\t\t}\n\t\t}\n\n\t\tfor (PointBox bx : savedBoxes) {\n\t\t\tbx.updatePixCoordinate();\n\t\t\tg.setColor(bx.pointSet.getPointColor());\n\t\t\tbx.paint(g, clickingmBox && mBox.equals(bx), false);\n\t\t}\n\t\tif (showmBox) {\n\t\t\tint index = savedBoxes.indexOf(mBox);\n\t\t\tg.setColor(mBox.pointSet.getPointColor());\n\t\t\tif (index < 0) {\n\t\t\t\tmBox.paint(g, clickingmBox, false);\n\t\t\t} else {\n\t\t\t\tsavedBoxes.get(index).paint(g, clickingmBox, true);\n\t\t\t}\n\t\t\t// now draw the box (top left)\n\t\t\tint corneroffset = 10;\n\t\t\tString eqS = \"y = \" + mBox.pointSet.getTitle();\n\t\t\tString fnumS = pointSets.indexOf(mBox.pointSet) + \"\";\n\n\t\t\tint boxx = corneroffset + 10;\n\t\t\tint boxy = corneroffset;\n\t\t\tint boxw = eqS.length() * (xoffset - 4) + 8 + corneroffset;\n\t\t\tint boxh = yoffset + corneroffset;\n\n\t\t\tg.clearRect(boxx, boxy, boxw, boxh);\n\n\t\t\tg.drawString(eqS, xoffset + corneroffset, yoffset + corneroffset);\n\n\t\t\tg.setFont(subFont);\n\t\t\tg.drawString(fnumS, xoffset * 2 + corneroffset, (yoffset * 4 / 3) + corneroffset);\n\n\t\t\tg.drawRect(boxx, boxy, boxw, boxh);\n\n\t\t}\n\t}",
"public void createMinimap() {\n if (gameField.getFields().size() == 1024) {\n rootSize = 32;\n blockSize = 8;\n } else { //if size == 64^2 == 4096\n rootSize = 64;\n blockSize = 4;\n }\n int magnification = gameFieldController.getMagnification();\n if (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene() != null) {\n positionBoxSizeX = blockSize *\n (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene().getWidth() / (rootSize * magnification));\n\n positionBoxSizeY = blockSize *\n (AdvancedWarsApplication.getInstance().getGameScreenCon().base.getScene().getHeight() / (rootSize * magnification));\n } else {\n //for offline test\n positionBoxSizeX = (blockSize * 1920) / (rootSize * magnification);\n positionBoxSizeY = (blockSize * 1080) / (rootSize * magnification);\n }\n\n for (int i = 0; i < rootSize; ++i) {\n for (int j = 0; j < rootSize; ++j) {\n Field currentField = gameField.getFields().get(i * rootSize + j);\n Rectangle rectangle = new Rectangle(blockSize, blockSize);\n if (!currentField.getType().equals(\"Grass\")) {\n if (currentField.getType().equals(\"Water\")) {\n rectangle.setFill(Color.rgb(11, 89, 139));\n } else if (currentField.getType().equals(\"Forest\")) {\n rectangle.setFill(Color.rgb(38, 106, 0));\n } else { //if currentField equals Mountain\n rectangle.setFill(Color.rgb(95, 111, 54));\n }\n rectangle.relocate((i * blockSize) + 1, (j * blockSize) + 1);\n drawPane.getChildren().add(rectangle);\n }\n }\n }\n Rectangle rect = new Rectangle(positionBoxSizeX, positionBoxSizeY);\n Rectangle clip = new Rectangle(1, 1, positionBoxSizeX - 2, positionBoxSizeY - 2);\n positionBox = Shape.subtract(rect, clip);\n positionBox.setFill(Color.WHITE);\n drawPane.getChildren().add(positionBox);\n isCreated = true;\n }",
"public void show(){\n fill(255);\n stroke(255);\n \n if (left){\n rect(0, y, size, brickLength);\n x = 0;\n }\n else{\n rect(width - size, y, size, brickLength);\n x = width - size;\n }\n }",
"@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }",
"public void paintComponent(Graphics g){\n \t\tsuper.paintComponent(g);\r\n \r\n \t\tint numOfRows = (int)blockShape.getResolution().x;\r\n \t\tint numOfCols = (int)blockShape.getResolution().y;\r\n \t\tint gridSize = (int)(SHAPE_WIN_SIZE/numOfRows);\r\n \t\t\r\n \t\t//1st: paint each element in the BlockShape -> shape(Color[][])\r\n \t\tfor(int i=0; i< numOfRows;i++){\r\n \t\t\tfor(int j=0; j< numOfCols; j++){\r\n \t\t\t\tg.setColor(blockShape.getShapeElement(i, j));\r\n \r\n \t\t\t\tif(i == numOfRows-1 || j == numOfCols-1){\r\n \t\t\t\t\t//the last row and last column is a bit wider because of the type casting =_=\r\n \t\t\t\t\tg.fillRect(j*gridSize, i*gridSize, gridSize+10, gridSize+10);\r\n \t\t\t\t}else{\r\n \t\t\t\t\tg.fillRect(j*gridSize, i*gridSize, gridSize, gridSize);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\r\n \t\t//2nd: paint the grid corresponding to the resolution of blockShape\r\n \t\tg.setColor(Color.orange);\r\n \t\tfor (int row = 0; row < numOfRows; row++) {\r\n \t\t\tg.drawLine(0,row*gridSize ,SHAPE_WIN_SIZE, row*gridSize);\r\n \t\t}\r\n \t\tg.drawLine(0,SHAPE_WIN_SIZE, SHAPE_WIN_SIZE, SHAPE_WIN_SIZE);\r\n \r\n \t\tfor (int col = 0; col < numOfCols; col++) {\r\n \t\t\tg.drawLine(col*gridSize, 0 , col*gridSize , SHAPE_WIN_SIZE);\r\n \t\t}\r\n \t\tg.drawLine(SHAPE_WIN_SIZE-1, 0, SHAPE_WIN_SIZE-1, SHAPE_WIN_SIZE);\r\n \t}",
"public static void mainDraw(Graphics graphics) {\n Color[] colors = {Color.green, Color.blue, Color.red, Color.cyan};\n int rectangles[] = {50, 100, 150, 200};\n for (int k = 0; k < 4; k++) {\n toCenter(graphics, rectangles[k], colors[k]);\n }\n }",
"public void draw() {\n draw(root, false);\n }",
"private void drawBox(Graphics2D g)\n\t{\n\t\t// Resize values with magic numbers\n\t\tLine2D.Double line = new Line2D.Double();\n\t\tStroke drawingStroke = new BasicStroke(3, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);\t\t\n\t\tg.setStroke(drawingStroke);\n\t\tmidBoxWidth = super.getWidth() - 234;\n\t\tmidBoxHeight = super.getHeight() - 55;\n\t\tORIGIN_X = MID_BOX_X + AXIS_X_GAP;\n\t\tORIGIN_Y = MID_BOX_Y + midBoxHeight - AXIS_X_GAP;\n\n\t\t/**\n\t\t * Super hard coded for now \n\t\t */\n\n\t\t// White background\n\t\tRectangle2D middle = new Rectangle2D.Double(MID_BOX_X, MID_BOX_Y, midBoxWidth, midBoxHeight);\t\t\n\t\tg.setColor(Color.white);\n\t\tg.fill(middle);\n\t\t// Drawing borders\n\t\tg.setColor(Color.black);\n\t\t// Top\n\t\tline.setLine(MID_BOX_X, MID_BOX_Y, MID_BOX_X + midBoxWidth, MID_BOX_Y);\n\t\tg.draw(line);\n\t\t// Left\n\t\tline.setLine(MID_BOX_X, MID_BOX_Y, MID_BOX_X, MID_BOX_Y + midBoxHeight);\n\t\tg.draw(line);\n\t\t// Bottom\n\t\tline.setLine(MID_BOX_X, MID_BOX_Y + midBoxHeight, MID_BOX_X + midBoxWidth, MID_BOX_Y + midBoxHeight);\n\t\tg.draw(line);\n\t\t// Right\n\t\tline.setLine(MID_BOX_X + midBoxWidth, MID_BOX_Y, MID_BOX_X + midBoxWidth, MID_BOX_Y + midBoxHeight);\n\t\tg.draw(line);\n\n\t\t// Drawing Axes\n\t\tdrawingStroke = new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);\n\t\tg.setStroke(drawingStroke);\n\t\t// Y-axis\n\t\tline.setLine(MID_BOX_X + AXIS_X_GAP, MID_BOX_Y + AXIS_Y_GAP/2, MID_BOX_X + AXIS_X_GAP, MID_BOX_Y + midBoxHeight - AXIS_Y_GAP/2);\n\t\tg.draw(line);\t\n\n\t\t// Arrow Tip\n\t\tline.setLine(MID_BOX_X + AXIS_X_GAP, MID_BOX_Y + AXIS_Y_GAP/2, MID_BOX_X + AXIS_X_GAP + 10, MID_BOX_Y + AXIS_Y_GAP/2 + 15);\n\t\tg.draw(line);\t\t\t\n\t\tline.setLine(MID_BOX_X + AXIS_X_GAP, MID_BOX_Y + AXIS_Y_GAP/2, MID_BOX_X + AXIS_X_GAP - 10, MID_BOX_Y + AXIS_Y_GAP/2 + 15);\n\t\tg.draw(line);\t\n\n\t\t// X-axis\n\t\tline.setLine(MID_BOX_X + AXIS_Y_GAP/2, MID_BOX_Y + midBoxHeight - AXIS_X_GAP, MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2, MID_BOX_Y + midBoxHeight - AXIS_X_GAP);\n\t\tg.draw(line);\n\t\t// Arrow tip\n\t\tline.setLine(MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2, MID_BOX_Y + midBoxHeight - AXIS_X_GAP, MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2 - 15, MID_BOX_Y + midBoxHeight - AXIS_X_GAP + 10);\n\t\tg.draw(line);\t\t\t\n\t\tline.setLine(MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2, MID_BOX_Y + midBoxHeight - AXIS_X_GAP, MID_BOX_X + midBoxWidth - AXIS_Y_GAP/2 - 15, MID_BOX_Y + midBoxHeight - AXIS_X_GAP - 10);\n\t\tg.draw(line);\t\n\n\t\tnew BasicStroke(2, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND);\n\t\tg.setStroke(drawingStroke);\n\n\t\t// Axis labels\n\t\tg.setColor(Color.black);\n\t\tg.rotate(Math.toRadians(-90));\n\n\t\t// Magic numbers - even I don't know what they are but they somehow centres the text\n\t\tswitch (graph) {\n\t\tcase ARRIVAL: {\n\t\t\tg.drawString(\"Total arrivals per interval (cars)\", -midBoxHeight/2 - 80, MID_BOX_X + 16);\n\t\t\tbreak;\n\t\t}\n\t\tcase MAX_QUEUE_TIME: {\n\t\t\tg.drawString(\"Max Queue Time (seconds)\", -midBoxHeight/2 - 70, MID_BOX_X + 16);\n\t\t\tbreak;\n\t\t}\n\t\tcase AVG_QUEUE_TIME: {\n\t\t\tg.drawString(\"Average Queue Time (seconds)\", -midBoxHeight/2 - 80, MID_BOX_X + 16);\n\t\t\tbreak;\n\t\t}\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tg.rotate(Math.toRadians(90));\n\t\tg.drawString(\"Time Interval (minutes)\", MID_BOX_X + midBoxWidth/2 - 50, MID_BOX_Y + midBoxHeight - AXIS_Y_GAP/2 + 18);\n\t}",
"public static void draw(ArrayList<Sighting> data){\n \n \t\tint backgroundColor = Utils.globalProcessing.color(120, 120, 120, 60);\n \n \t\tUtils.globalProcessing.fill(backgroundColor);\n \n \t\tUtils.globalProcessing.rect(200, 0, 1024, 768);\n \t\t//Utils.globalProcessing.rectMode(Utils.globalProcessing.CORNERS);\n \t\tArrayList<Shape> shapes = new ArrayList<Shape>();\n \t\tArrayList<Time> times = new ArrayList<Time>();\n \t\tArrayList<City> locations = new ArrayList<City>();\n \t\t//calculate min/max for each dimension\n \t\tfor(int i = 0; i < data.size(); i++){\n \t\t\tSighting s = data.get(i);\n \t\t\tif(!shapes.contains(s.getShape()))\n \t\t\t\tshapes.add(s.getShape());\n \t\t\tif(!times.contains(s.getTime()))\n \t\t\t\ttimes.add(s.getTime());\n \t\t\tif(!locations.contains(s.getPosition()))\n \t\t\t\tlocations.add((City)s.getPosition());\n \t\t}\n \t\tfloat xPloti, xPlote, yPloti, yPlote;\n \t\txPloti = 200;\n \t\txPlote = 1024;\n \t\tyPloti = 100;\n \t\tyPlote = 700;\n \n \t\tfloat maxDistance = 0;\n\t\tfloat minPopulationDensity = Utils.allCities.get(0).getPopulationDensity();\n\t\tfloat maxpopulationDensity = Utils.allCities.get(0).getPopulationDensity();\n \t\tfor(City c: locations){\n \t\t\tif(c.getDistanceAirport() > maxDistance)\n \t\t\t\tmaxDistance = c.getDistanceAirport();\n \t\t\tif(c.getPopulationDensity()< minPopulationDensity)\n \t\t\t\tminPopulationDensity = c.getPopulationDensity();\n \t\t\telse if(c.getPopulationDensity() > maxpopulationDensity)\n \t\t\t\tmaxpopulationDensity = c.getPopulationDensity();\n \n \t\t}\n \n \n \n \t\t\n \t\tfor(int i = 0; i < data.size(); i++){\n \t\t\tSighting s = data.get(i);\n \t\t\tUtils.globalProcessing.stroke(s.getShape().getColor());\n \t\t\tUtils.globalProcessing.beginShape();\n \t\t\t//Utils.globalProcessing.stroke(120);\n \t\t\tfloat x = Utils.globalProcessing.map((float)1/7, 0, 1, xPloti, xPlote);\n \t\t\tfloat y = Utils.globalProcessing.map(((City)s.getPosition()).getDistanceAirport(), 0, maxDistance, yPloti, yPlote);\n \n \t\t\tUtils.globalProcessing.vertex(x,y); // distance\n \n \t\t\tx = Utils.globalProcessing.map((float)2/7, 0, 1, xPloti, xPlote);\n \t\t\ty = Utils.globalProcessing.map(((City)s.getPosition()).getPopulationDensity(), minPopulationDensity, maxpopulationDensity, yPloti, yPlote);\n \n \t\t\tUtils.globalProcessing.vertex(x,y); //populationDensity\n \t\t\tUtils.globalProcessing.endShape();\n \t\t\t//It works only if I threat all the couple of points as separate, indipendent lines\n \t\t\tUtils.globalProcessing.beginShape();\n \n \t\t\tUtils.globalProcessing.vertex(x,y);\n \n \t\t\tx = Utils.globalProcessing.map((float)3/7, 0, 1, xPloti, xPlote);\n \t\t\tif(s.getTime().getBeginTime().get(Calendar.HOUR_OF_DAY)<19 &&s.getTime().getBeginTime().get(Calendar.HOUR_OF_DAY)>=7)\n \t\t\t\ty = Utils.globalProcessing.map(1, 0, 3, yPloti, yPlote); //day \n \t\t\telse\t\n \t\t\t\ty = Utils.globalProcessing.map(2, 0, 3, yPloti, yPlote); //night \n \t\t\t//System.out.println(x +\" \" +y);\n \t\t\tUtils.globalProcessing.vertex(x,y); // night/day\n \t\t\tUtils.globalProcessing.endShape();\n \t\t\tUtils.globalProcessing.beginShape();\n \t\t\t\n \t\t\tUtils.globalProcessing.vertex(x,y);\n \t\t\tx = Utils.globalProcessing.map((float)4/7, 0, 1, xPloti, xPlote);\n \t\t\ty = Utils.globalProcessing.map(s.getTime().getBeginTime().get(Calendar.MONTH)+1, 0, 13, yPloti, yPlote);\n \t\t\tUtils.globalProcessing.vertex(x, y); //month of the year\n \t\t\t\n \t\t\tUtils.globalProcessing.endShape();\n \t\t\tUtils.globalProcessing.beginShape();\n \t\t\t\n \t\t\tUtils.globalProcessing.vertex(x, y);\n \t\t\tx = Utils.globalProcessing.map((float)5/7, 0, 1, xPloti, xPlote);\n \t\t\tif(s.getTime().getBeginTime().get(Calendar.MONTH)==Calendar.MARCH || s.getTime().getBeginTime().get(Calendar.MONTH) == Calendar.APRIL ||\n \t\t\t\t\ts.getTime().getBeginTime().get(Calendar.MONTH) == Calendar.MAY) //Spring\n \t\t\ty = Utils.globalProcessing.map(1, 0, 5, yPloti, yPlote);\n \t\t\telse if(s.getTime().getBeginTime().get(Calendar.MONTH)==Calendar.JUNE || s.getTime().getBeginTime().get(Calendar.MONTH) == Calendar.JULY ||\n \t\t\t\t\ts.getTime().getBeginTime().get(Calendar.MONTH) == Calendar.AUGUST) //summer\n \t\t\t\ty = Utils.globalProcessing.map(2, 0, 5, yPloti, yPlote);\n \t\t\telse if(s.getTime().getBeginTime().get(Calendar.MONTH)==Calendar.SEPTEMBER || s.getTime().getBeginTime().get(Calendar.MONTH) == Calendar.OCTOBER ||\n \t\t\t\t\ts.getTime().getBeginTime().get(Calendar.MONTH) == Calendar.NOVEMBER) //autumn\n \t\t\t\ty = Utils.globalProcessing.map(3, 0, 5, yPloti, yPlote);\n \t\t\telse\n \t\t\t\ty = Utils.globalProcessing.map(3, 0, 5, yPloti, yPlote);\n \t\t\tUtils.globalProcessing.vertex(x, y); //seasons\n \t\t\t\n \t\t\tUtils.globalProcessing.endShape();\n \t\t\tUtils.globalProcessing.beginShape();\n \t\t\t\n \t\t\tUtils.globalProcessing.vertex(x, y);\n \t\t\t\n \t\t\tx = Utils.globalProcessing.map((float)6/7, 0, 1, xPloti, xPlote);\n \t\t\ty = Utils.globalProcessing.map(s.getTime().getBeginTime().get(Calendar.YEAR), 2000, 2011, yPloti, yPlote);\n \t\t\tUtils.globalProcessing.vertex(x, y); //years\n \t\t\tUtils.globalProcessing.endShape();\n \t\t}\n \t\t//draw vertical lines\n \n \t\tfor(int i = 1; i < 7 ; i++){\n \t\t\tfloat x = Utils.globalProcessing.map((float)i/7, 0, 1, xPloti, xPlote);\n \t\t\t//Utils.globalProcessing.\n \t\t}\n \n \t}",
"public void russia(){\n stroke(1);\n //back guns\n fill(0);\n rect(73,192,4,15);\n rect(224,192,4,15);\n rect(71,207,8,15);\n rect(222,207,8,15);\n rect(66,207,3,15);\n rect(232,207,3,17);\n rect(122,109,4,15);\n rect(175,110,4,15);\n rect(121,120,6,15);\n rect(174,120,6,15);\n rect(116,124,3,15);\n rect(182,124,3,15);\n\n //wings\n fill(165,0,0);//gray\n beginShape();\n vertex(14,286);\n vertex(61,236);\n vertex(88,308);\n vertex(51,334);\n vertex(14,313);\n endShape(CLOSE);\n beginShape();\n vertex(286,287);\n vertex(286,312);\n vertex(247,335);\n vertex(212,309);\n vertex(238,238);\n endShape(CLOSE);\n\n fill(0);//black\n beginShape();\n vertex(38,307);\n vertex(74,307);\n vertex(80,314);\n vertex(81,337);\n vertex(68,345);\n vertex(38,327);\n endShape(CLOSE);\n beginShape();\n vertex(219,316);\n vertex(226,308);\n vertex(262,308);\n vertex(262,326);\n vertex(231,345);\n vertex(219,336);\n endShape(CLOSE);\n\n fill(18,39,148);//blue\n beginShape();\n vertex(96,191);\n vertex(61,230);\n vertex(60,269);\n vertex(96,312);\n vertex(101,300);\n vertex(100,247);\n vertex(112,232);\n vertex(132,232);\n vertex(131,186);\n endShape(CLOSE);\n beginShape();\n vertex(204,191);\n vertex(240,230);\n vertex(240,270);\n vertex(205,312);\n vertex(200,302);\n vertex(200,248);\n vertex(193,238);\n vertex(185,231);\n vertex(170,230);\n vertex(170,186);\n endShape(CLOSE);\n\n //white\n fill(200);\n beginShape();\n vertex(70,217);\n vertex(74,220);\n vertex(81,210);\n vertex(85,213);\n vertex(75,227);\n vertex(72,229);\n vertex(71,231);\n vertex(73,233);\n vertex(73,268);\n vertex(71,272);\n vertex(76,277);\n vertex(82,274);\n vertex(89,283);\n vertex(90,297);\n vertex(66,272);\n vertex(65,235);\n vertex(68,229);\n vertex(62,228);\n endShape(CLOSE);\n beginShape();\n vertex(228,217);\n vertex(225,218);\n vertex(218,211);\n vertex(215,213);\n vertex(223,227);\n vertex(226,226);\n vertex(230,230);\n vertex(227,233);\n vertex(228,270);\n vertex(229,272);\n vertex(223,276);\n vertex(218,276);\n vertex(210,283);\n vertex(211,296);\n vertex(235,273);\n vertex(234,233);\n vertex(232,228);\n vertex(237,227);\n endShape(CLOSE);\n\n //guns\n //red\n fill(194,24,11);\n beginShape();\n vertex(121,301);\n vertex(98,313);\n vertex(102,336);\n vertex(119,342);\n vertex(139,336);\n vertex(141,313);\n endShape(CLOSE);//l\n beginShape();\n vertex(159,312);\n vertex(162,336);\n vertex(180,342);\n vertex(200,336);\n vertex(202,313);\n vertex(180,302);\n endShape(CLOSE);\n\n //black\n fill(0);\n rect(105,315,30,30);\n rect(166,315,30,30);\n quad(105,344,109,355,131,355,135,344);\n quad(166,344,170,355,192,355,196,344);\n\n rect(103,253,33,62);//l\n rect(164,252,33,62);//r\n //white\n fill(200);\n bezier(103,252,107,230,132,230,136,252);//l\n bezier(164,252,169,230,192,230,197,252);//r\n\n rect(103,280,33,25);//l\n rect(164,280,33,25);//r\n rect(104,319,33,26,3);//l\n rect(165,319,33,26,3);//r\n fill(194,24,11);\n rect(115,310,7,28,8);//l\n rect(178,310,7,28,8);//r\n\n fill(194,24,11);\n rect(105,284,10,15);\n rect(124,284,10,15);\n rect(167,285,10,15);\n rect(185,284,10,15);\n\n //body-wings\n\n fill(0,0,67);//blue\n bezier(107,154,101,162,98,169,98,187);\n bezier(191,153,199,164,202,172,203,187);\n quad(107,154,98,186,98,223,107,224);\n quad(191,153,203,186,202,223,192,223);\n fill(192,0,11);//red\n quad(134,112,108,147,107,239,132,230);\n quad(165,112,192,147,193,239,168,230);\n //black\n fill(0);\n quad(130,122,130,142,111,164,111,147);\n quad(169,122,188,147,188,165,169,144);\n //white\n fill(200);\n beginShape();\n vertex(131,154);\n vertex(129,202);\n vertex(118,202);\n vertex(112,181);\n vertex(110,179);\n vertex(110,171);\n endShape(CLOSE);\n beginShape();\n vertex(170,154);\n vertex(190,172);\n vertex(190,182);\n vertex(188,181);\n vertex(182,201);\n vertex(172,201);\n endShape(CLOSE);\n\n fill(0);\n quad(134,193,166,193,154,342,146,342);\n fill(192,0,11);\n quad(142,180,159,180,152,352,148,352);\n //white\n fill(200);\n ellipse(150,374,6,50);\n\n //head\n fill(160,0,0);\n ellipse(149.5f,72,33,25);\n ellipse(149.5f,94,30,170);\n fill(0);\n ellipse(149.5f,94,20,160);\n fill(154,155,84);\n ellipse(149.5f,94,17,77);\n strokeWeight(2);\n line(143,74,158,74);\n line(142,104,158,104);\n strokeWeight(1);\n fill(200);\n bezier(143,15,147,2,153,2,155.5f,15);\n}",
"public void paintComponent(Graphics g){\n super.paintComponent(g);\n g.setColor(Color.BLACK);\n g.fillRect(0,0,width*scale,height*scale);\n if(game.getWindowNum() == 2){\n for(int x = 0; x < world.length*scale; x+=scale){\n for(int y = 0; y < world[0].length*scale; y+= scale){\n if(game.getDiscoverdWorld()[x/scale][y/scale] == 1){\n if(world[x/scale][y/scale] == 0){\n g.setColor(Color.CYAN);\n }\n else if(world[x/scale][y/scale] == 1){\n g.setColor(Color.GREEN);\n }\n else if(world[x/scale][y/scale] == 2){\n g.setColor(new Color(102,66,0));\n }\n else if(world[x/scale][y/scale] == 3){\n g.setColor(new Color(105,105,105));\n }\n g.fillRect(x,y,scale,scale);\n }\n }\n }\n g.setColor(Color.RED);\n g.fillRect((int)(game.getPlayerCords()[0]*(double)scale),(int)(game.getPlayerCords()[1]*(double)scale),scale*game.getPlayerDimentions()[0],scale*game.getPlayerDimentions()[1]);\n g.setColor(Color.BLACK);\n g.drawRect((int)(game.getViewBoxCords()[0]*scale),(int)(game.getViewBoxCords()[1]*scale),(int)(game.getPlayerView().length*scale),(int)(game.getPlayerView()[0].length*scale));\n g.drawString(\"X: \"+game.getPlayerCords()[0]+\" Y: \"+game.getPlayerCords()[1],20,20);\n g.drawString(\"Seed: \"+game.getSeed(),20,40);\n g.drawString(\"Grounded: \"+game.getPlayer().getGrounded(),20,60);\n g.drawString(\"Vertical Velocity: \"+game.getPlayer().getVertVelocity(),20,80);\n }\n else if(game.getWindowNum() == 1){\n int[][] viewPlane = game.getPlayerView();\n double playerViewScale = game.getPlayerViewScale();\n double[] viewBoxCords = game.getViewBoxCords();\n g.setColor(Color.CYAN);\n for(int x = 0; x < viewPlane.length;x++){\n for(int y = 0; y < viewPlane[0].length;y++){\n if(viewPlane[x][y] != 0 && game.getDiscoverdWorld()[x+(int)viewBoxCords[0]][y+(int)viewBoxCords[1]] == 1){\n g.drawImage(textures.get(viewPlane[x][y]-1),(int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),this);\n /*\n if(viewPlane[x][y] == 1){\n g.setColor(Color.GREEN);\n }\n else if(viewPlane[x][y] == 2){\n g.setColor(new Color(102,66,0));\n }\n else if(viewPlane[x][y] == 3){\n g.setColor(new Color(105,105,105));\n }\n g.fillRect((int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),(int)(playerViewScale+0.5),(int)(playerViewScale+0.5));\n */\n }\n else if(viewPlane[x][y] == 0 && game.getDiscoverdWorld()[x+(int)viewBoxCords[0]][y+(int)viewBoxCords[1]] == 1){\n g.fillRect((int)(((double)x-(viewBoxCords[0]%1))*playerViewScale),(int)(((double)y-(viewBoxCords[1]%1))*playerViewScale),(int)(playerViewScale+1),(int)(playerViewScale+1));\n }\n }\n }\n if(recentlyHit != null){\n g.setColor(new Color(50,50,50,(int)(255*(1-recentlyHit.getHealthPercent()))));\n g.fillRect((int)(recentlyHit.getX()*playerViewScale)-(int)(viewBoxCords[0]%1*playerViewScale)+1,(int)(recentlyHit.getY()*playerViewScale)-(int)(viewBoxCords[1]%1*playerViewScale)+1,(int)playerViewScale,(int)playerViewScale);\n }\n //g.setColor(Color.RED);\n //g.fillRect((int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),(int)playerViewScale*game.getPlayerDimentions()[0],(int)playerViewScale*game.getPlayerDimentions()[1]);\n if(game.isFacingRight()){\n g.drawImage(textures.get(3),(int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),this);\n }\n else{\n g.drawImage(textures.get(4),(int)((game.getPlayerCords()[0]-viewBoxCords[0])*playerViewScale),(int)((game.getPlayerCords()[1]-viewBoxCords[1])*playerViewScale),this);\n }\n g.setColor(Color.BLACK);\n g.setFont(font2);\n g.drawString(\"X: \"+game.getPlayerCords()[0]+\" Y: \"+game.getPlayerCords()[1],20,20);\n g.drawString(\"Seed: \"+game.getSeed(),20,40);\n g.drawString(\"Grounded: \"+game.getPlayer().getGrounded(),20,60);\n g.drawString(\"Vertical Velocity: \"+game.getPlayer().getVertVelocity(),20,80);\n g.drawString(\"View Box Cords: X:\"+viewBoxCords[0]+\" Y: \"+viewBoxCords[1],20,100);\n int a = 0;\n for(Item i: game.getPlayerInventory()){\n if(i != null){\n g.drawString(i.getName()+\" Count: \"+i.getCount(),20,120+a*20);\n a++;\n }\n } \n g.setColor(new Color(100,100,100,95));\n g.fillRect((int)(0.09*viewPlane.length*playerViewScale),(int)(0.8*viewPlane[0].length*playerViewScale),(int)(0.82*viewPlane.length*playerViewScale),(int)(0.12*viewPlane[0].length*playerViewScale));\n g.setColor(Color.WHITE);\n for(int i = 0; i < game.getPlayerHotbar().length;i++){\n if(i == game.getPlayer().getHotbarItemSelected()){\n g.setColor(Color.BLACK);\n g.fillRect((int)(0.11*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.81*viewPlane[0].length*playerViewScale),(int)(0.06*playerViewScale*viewPlane.length),(int)(0.1*viewPlane[0].length*playerViewScale));\n g.setColor(Color.WHITE);\n }\n else{\n g.fillRect((int)(0.11*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.81*viewPlane[0].length*playerViewScale),(int)(0.06*playerViewScale*viewPlane.length),(int)(0.1*viewPlane[0].length*playerViewScale));\n }\n if(game.getPlayer().getHotbar()[i] != null){\n g.drawImage(textures.get(game.getPlayer().getHotbar()[i].getTextureNum()),(int)(0.125*viewPlane.length*playerViewScale)+(int)(i*0.08*viewPlane.length*playerViewScale),(int)(0.83*viewPlane[0].length*playerViewScale),this);\n }\n }\n if(game.isInvenVisible()){\n int rowLength = 10;\n g.setColor(new Color(100,100,100,180));\n g.fillRect((int)(0.05*screenWidth),(int)(0.06*screenHeight),(int)(0.9*screenWidth),(int)(0.7*screenHeight));\n g.setColor(Color.WHITE);\n int count = 0; \n for(Item i: game.getPlayerInventory()){\n if(i!=null){\n g.drawImage(textures.get(i.getTextureNum()),(int)(0.08*screenWidth)+(int)((count%rowLength)*0.085*screenWidth),(int)(0.085*screenHeight)+(int)((int)(count/rowLength)*0.085*screenHeight),this);\n g.drawString(\"x\"+i.getCount(),(int)(0.11*screenWidth)+(int)((count%rowLength)*0.085*screenWidth),(int)(0.096*screenHeight)+(int)((int)(count/rowLength)*0.085*screenHeight));\n count++;\n }\n }\n }\n else if(game.isCraftingVisible()){\n g.setColor(new Color(100,100,100,180));\n g.fillRect((int)(0.05*viewPlane.length*playerViewScale),(int)(0.05*viewPlane[0].length*playerViewScale),(int)(0.9*viewPlane.length*playerViewScale),(int)(0.7*viewPlane[0].length*playerViewScale));\n }\n g.setColor(Color.BLACK);\n g.drawRect((int)(screenWidth*0.8),(int)(screenHeight*.03),(int)(screenWidth*.18),(int)(screenHeight*0.04));\n g.setColor(new Color((int)(255*(1-game.getPlayerHealthPercent())),(int)(255*game.getPlayerHealthPercent()),0));\n g.fillRect((int)(screenWidth*0.8)+1,(int)(screenHeight*.03)+1,(int)(screenWidth*.18*game.getPlayerHealthPercent())-1,(int)(screenHeight*0.04)-1);\n g.setColor(new Color(50,50,50,200));\n g.setFont(font1);\n g.drawString(game.getPlayerHealthPercent()*100+\"%\",(int)(screenWidth*.88),(int)(screenHeight*0.06));\n }\n }",
"public void draw() {\n for (Point2D point : pointSet) {\n point.draw();\n }\n }",
"@Override\n public void draw(Canvas canvas){\n final float scaleFactorX = getWidth()/(WIDTH*1.f);\n final float scaleFactorY = getHeight()/(HEIGHT*1.f);\n if(canvas!=null){\n final int savedState = canvas.save();\n canvas.scale(scaleFactorX, scaleFactorY);\n bg.draw(canvas);\n //below was to draw collis boxes\n // canvas.drawRect(new Rect(10, 10, 200,300 - 15*jumpCounter), myPaint);\n // if(!bananas.isEmpty())\n // canvas.drawRect(bananas.get(0).getRectangle(), myPaint );\n player.draw(canvas);\n for(TallBricks c: cones){\n c.draw(canvas);\n }\n for(Banana b: bananas){\n b.draw(canvas);\n }\n drawText(canvas);\n canvas.restoreToCount(savedState);\n }\n }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"public void drawControlPolygon() {\n\t\t//this.frame.stroke(255, 0, 0);\n\t\tfor(int i=0;i<points.length;i++) {\n\t\t\tfor(int j=0;j<points[i].length;j++)\n\t\t\t\tthis.frame.drawVertex(points[i][j]);\n\t\t}\n\t}",
"void render() {\n smooth();\n for (int x = 0; x < yvalues.length; x++) {\n noStroke();\n fill(0,0,255,100);\n ellipseMode(CENTER);\n ellipse(x*xspacing,yvalues[x],16,16);\n }\n }",
"@Override\n\tpublic void settings() {\n\t\tpreviewRect = WallGeometry.scaleRectangleRounded(WallGeometry.getInstance().getWallGeometry(), Preview.SCALE);\n\t\tsize(previewRect.width, previewRect.height, P3D);\n\t}",
"JFreeChart generateBox();",
"public void drawSkewedScale()\n\t{\n\ttextFont(font, 12);\n\t\n\tDecimalFormat df=new DecimalFormat(\"#.##\");\n\ttextAlign(CENTER, TOP);\n\tint sw=150;\n\tint sh=10;\n\tint x=width-sw-15;\n\tint y=(int)(END_Y+sh*1.7);\n\tscaleBox=new Rectangle2D.Float(x, y, sw, sh);\n\tstrokeWeight(1);\n\t\n\tCell hc=null;\n\tCell finalhc=null;\n\tfor(int i=0;i<hoveredCells.size();i++)\n\t\t{\n\t\thc=hoveredCells.get(i);\n\t\tif(hc.level==min(levelThreshold, minHoveredLevel))\n\t\t\tfinalhc=hc;\n\t\t}\n\thc=finalhc;\n\t\n\tboolean refDrawn=false;\n\tdouble jump0=(255-(0/(float)sw)*255);\n\tdouble jump1=(255-(0/(float)sw)*255);\n\tdouble jump=Math.ceil(jump1-jump0)+2;\n\t\n\t\n\tdouble mid=sw*0.5;//for median\n\tif(whiteValue==MEAN)\t\n\t\tmid=sw*(expData.average-expData.min)/(expData.max-expData.min);\n\t\n\tdouble jumpBelow=Math.ceil(255/(255*mid/sw))+0;\n\tdouble jumpAbove=Math.ceil(255/Math.abs(255*mid/sw-255))+0;\n\t\n\t//Draw legend\n\tstroke(200,200,200);\n\tfill(200);\n\t\n\tline(x,y,x,y-3);\n\tif(whiteValue==MEAN)\t\n\t\t{\n\t\t//text(\"min\", x, y+sh+3);\n\t\ttext(df.format(expData.min), x, y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"0\", x, y-12);\n\t\n\tline((int)(x+mid),y+sh,(int)(x+mid),y-3);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\t//text(\"avg\", (int)(x+mid), y+sh+3);\n\t\ttext(df.format(expData.average), (int)(x+mid), y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"50\", (int)(x+mid), y-12);\n\t\n\tline(x+sw-1,y+sh,x+sw-1,y-3);\n\tif(whiteValue==MEAN)\t\t\n\t\t{\n\t\t//text(\"max\", x+sw-1, y+sh+3);\n\t\ttext(df.format(expData.max), x+sw-1, y-12);\n\t\t}\n\telse if(whiteValue==MEDIAN)\ttext(\"100\", x+sw-1, y-12);\n\t\n\tline((int)(x+mid*0.5),y+sh,(int)(x+mid*0.5),y-2);\n\tline((int)(x+mid*2),y+sh,(int)(x+mid*2),y-2);\n\t\t\t\t\n\tfor(int i=0;i<sw;i++)\n\t\t{\n\t\tint h=0;\n\t\tboolean drawReference=false;\n\t\tswitch(COLOR_MODE)\n\t\t\t{\n\t\t\tcase COLOR_EXPRESSION:\n\t\t\t\tif(i>mid)\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-((i-mid)/Math.abs(sw-mid)*255));\n\t\t\t\t\tstroke(255,h,h);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getRed()==255 && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jumpAbove)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\telse\t\n\t\t\t\t\t{\n\t\t\t\t\th=(int)Math.round(255-(Math.abs(i-mid)/Math.abs(sw-mid))*255);\n\t\t\t\t\tstroke(h,h,255);\n\t\t\t\t\tif(hc!=null && hc.color.get(selectedCol).getBlue()==255 && Math.abs(hc.color.get(selectedCol).getRed()-h)<=jumpBelow)\n\t\t\t\t\t\tdrawReference=true;\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase COLOR_DEVIATION:\n\t\t\t\th=(int)Math.round(255-(i/(float)sw)*255);\n\t\t\t\tstroke(h,255,h);\n\t\t\t\tif(hc!=null && Math.abs(hc.color.get(selectedCol).getBlue()-h)<=jump)\n\t\t\t\t\tdrawReference=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\tline(x+i,y,x+i,y+sh);\n\t\tif(drawReference && !refDrawn)\n\t\t\t{\n\t\t\tstroke(0);\n\t\t\tfill(0);\n\t\t\tline(x+i, y-2, x+i, y+sh+2);\n\t\t\tfill(255,200);\n\t\t\tnoStroke();\n\t\t\trect(x+i-10, y+sh, 20,15);\n\t\t\tfill(0);\n\t\t\tstroke(0);\n\t\t\tif(whiteValue==MEAN)\t\ttext(df.format(hc.expressionLevel.get(selectedCol)), x+i, y+sh+3);\n\t\t\telse if(whiteValue==MEDIAN)\ttext(df.format(expData.getQuantile(hc.expressionLevel.get(selectedCol), selectedCol)), x+i, y+sh+3);\n\t\t\trefDrawn=true;\n\t\t\t}\n\t\t}\n\tstroke(200,200,200);\n\tnoFill();\n\trect(x-1,y-1,sw+1,sh+1);\n\t\n\ttextFont(font, 14);\n\t\n\tnoStroke();\n\t}",
"void effacer() {\r\n Graphics g = this.zoneDessin.getGraphics();\r\n g.setColor(Color.gray);\r\n g.fillRect(0, 0, this.getWidth(), this.getHeight());\r\n }",
"public void draw() {\r\n background(255);\r\n\r\n float mouseXFactor = map(mouseX, 0, width, 0.05f, 1);\r\n float mouseYFactor = map(mouseY, 0, height, 0.05f, 1);\r\n\r\n for (int gridX = 0; gridX < img.width; gridX++) {\r\n for (int gridY = 0; gridY < img.height; gridY++) {\r\n // grid position + tile size\r\n float tileWidth = width / (float) img.width;\r\n float tileHeight = height / (float) img.height;\r\n float posX = tileWidth * gridX;\r\n float posY = tileHeight * gridY;\r\n\r\n // get current color\r\n int c = pixelArray[gridX][gridY];\r\n\r\n // greyscale conversion\r\n int greyscale = round(red(c) * 0.222f + green(c) * 0.707f + blue(c) * 0.071f);\r\n\r\n if (drawMode == 1) {\r\n // greyscale to ellipse area\r\n fill(0);\r\n noStroke();\r\n float r2 = 1.1284f * sqrt(tileWidth * tileWidth * (1 - greyscale / 255.0f));\r\n r2 = r2 * mouseXFactor * 3;\r\n ellipse(posX, posY, r2, r2);\r\n } else if (drawMode == 2) {\r\n // greyscale to rotation, line length and stroke weight\r\n stroke(0);\r\n float w4 = map(greyscale, 0, 255, 10, 0);\r\n strokeWeight(w4 * mouseXFactor + 0.1f);\r\n float l4 = map(greyscale, 0, 255, 35, 0);\r\n l4 = l4 * mouseYFactor;\r\n pushMatrix();\r\n translate(posX, posY);\r\n rotate(greyscale / 255.0f * PI);\r\n line(0, 0, 0 + l4, 0 + l4);\r\n popMatrix();\r\n } else if (drawMode == 3) {\r\n // greyscale to line relief\r\n float w5 = map(greyscale, 0, 255, 5, 0.2f);\r\n strokeWeight(w5 * mouseYFactor + 0.1f);\r\n // get neighbour pixel, limit it to image width\r\n int /* color */ c2 = img.get(min(gridX + 1, img.width - 1), gridY);\r\n stroke(c2);\r\n int greyscale2 = (int) (red(c2) * 0.222f + green(c2) * 0.707f + blue(c2) * 0.071f);\r\n float h5 = 50 * mouseXFactor;\r\n float d1 = map(greyscale, 0, 255, h5, 0);\r\n float d2 = map(greyscale2, 0, 255, h5, 0);\r\n line(posX - d1, posY + d1, posX + tileWidth - d2, posY + d2);\r\n } else if (drawMode == 4) {\r\n // pixel color to fill, greyscale to ellipse size\r\n float w6 = map(greyscale, 0, 255, 25, 0);\r\n noStroke();\r\n fill(c);\r\n ellipse(posX, posY, w6 * mouseXFactor, w6 * mouseXFactor);\r\n // TODO 2: Add the following: if(Math.random()<0.1) {pixelArray[gridX][gridY] = lerpColor(c,0xff0000, 0.1f);}\r\n } else if (drawMode == 5) {\r\n stroke(c);\r\n float w7 = map(greyscale, 0, 255, 5, 0.1f);\r\n strokeWeight(w7);\r\n fill(255, 255 * mouseXFactor);\r\n pushMatrix();\r\n translate(posX, posY);\r\n rotate(greyscale / 255.0f * PI * mouseYFactor);\r\n rect(0, 0, 15, 15);\r\n popMatrix();\r\n }\r\n /*\r\n * TODO 3: Add a drawMode == 6 case. \r\n * Try modifying the pixelArray \r\n * Try drawing shapes or colors depending on c and grayscale variables \r\n * Try adding other forms of animation\r\n */\r\n }\r\n }\r\n }",
"public void paintComponent(Graphics g) {\n\n super.paintComponent(g); //Paint background\n Graphics2D g2 = (Graphics2D) g; //Cast Graphics object to Graphics2D\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n Dimension d = getSize();\n\n //Defines the corners of the plot area in pixels\n int iMin = (int) (PA_XO * d.width);\n int iMax = (int) ((PA_XO + PA_XS) * d.width);\n int jMin = (int) (PA_YO * d.height);\n int jMax = (int) ((PA_YO + PA_YS) * d.height);\n\n //Define the scaling between the plot area in x-y and the plot area in pixels\n double xScale = (double) (iMax - iMin) / (xMax - xMin);\n double yScale = (double) (jMax - jMin) / (yMax - yMin);\n\n //Draws x-axis and y-axis\n g2.setColor(Color.black); //Sets color of axes to black\n g2.draw(new Rectangle2D.Double(PA_XO * d.width, PA_YO * d.height,\n PA_XS * d.width, PA_YS * d.height));\n\n double ix;\n double iy;\n for (int i = 0; i < nPts; i++) {\n //Draws the points (JPanel y starts at TOP of the panel)\n ix = iMin + ((x[i] - xMin) * xScale);\n iy = jMax - ((y[i] - yMin) * yScale);\n g2.setColor(Color.red); //Sets color of data points to red\n g2.fill(new Ellipse2D.Double(ix - dotSize / 2., iy - dotSize / 2.,\n dotSize, dotSize));\n\n }\n\n // Adds labels of xMin, xMax, yMin, yMax to drawing and positions them on the screen\n // String.valueOf(xMin) turns the number xMin into a String that you can draw.\n g2.setColor(Color.black);\n g2.drawString(\"Input Size (n)\", (float) (PA_XO * d.width + 150),\n (float) ((PA_YO + PA_YS) * d.height + 20));\n g2.drawString(\"Time (ms)\", (float) (PA_XO * d.width - 70),\n (float) ((PA_YO + PA_YS) * d.height - 200));\n g2.drawString(String.valueOf(xMin), (float) (PA_XO * d.width - 10.),\n (float) ((PA_YO + PA_YS) * d.height + 15.));\n g2.drawString(String.valueOf(xMax),\n (float) ((PA_XO + PA_XS) * d.width - 20.),\n (float) ((PA_YO + PA_YS) * d.height + 15.));\n g2.drawString(String.valueOf(yMin), (float) (PA_XO * d.width - 50.),\n (float) ((PA_YO + PA_YS) * d.height + 5.));\n g2.drawString(String.valueOf(yMax), (float) (PA_XO * d.width - 50.),\n (float) (PA_YO * d.height + 5.));\n }",
"public DrawGraphics() {\r\n box = new BouncingBox(200, 50, Color.RED);\r\n\tbox.setMovementVector(1,1);\r\n\r\n\tboxes = new ArrayList<BouncingBox>();\r\n\tboxes.add(new BouncingBox(35,40, Color.BLUE));\r\n\tboxes.get(0).setMovementVector(2,-1);\r\n\tboxes.add(new BouncingBox(120,80, Color.GREEN));\r\n\tboxes.get(1).setMovementVector(-1,2);\r\n\tboxes.add(new BouncingBox(500,80, Color.PINK));\r\n\tboxes.get(2).setMovementVector(-2,-2);\r\n }",
"public void display()\n {\n if(corner == 1)\n {\n moveTo(new Location(0,0));\n setDirection(135);\n }\n else if(corner == 2)\n {\n moveTo(new Location(0,9));\n setDirection(225);\n }\n else if(corner == 3)\n {\n moveTo(new Location(9,9));\n setDirection(315);\n }\n else if(corner == 4)\n {\n moveTo(new Location(9,0));\n setDirection(45);\n }\n }",
"private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }",
"private void drawSquarePlayerZoneBackground(Canvas canvas) {\n\t\t\n\t\tint left = PLAY_AREA_LEFT_PADDING; \n\t\tint top = PLAY_AREA_UP_PADDING;\n\t\tint right = left + PLAY_AREA_WIDTH_BLOCK*BLOCK_CUBE_SIZE;\n\t\tint bottom = top + PLAY_AREA_HEIGHT_BLOCK*BLOCK_CUBE_SIZE;\n\t\tint bcolor = 0;\n\t\t\n\t\tbcolor = getResources().getColor(R.color.BG);\n\t\t\n\t\tfillpaint.setColor(bcolor);\n\t\tstrokepaint.setColor(getResources().getColor(R.color.PLAYZONESTROKE));\n\t\tstrokepaint.setStrokeWidth(1);\n\t\t\n\t\tcanvas.drawRect(left, top, right, bottom, fillpaint);\n\t\tcanvas.drawRect(left, top, right, bottom, strokepaint);\n\t}",
"public void draw() {\n for (Point2D i : pointsSet)\n i.draw();\n }",
"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 }",
"@Override\npublic void paint(Graphics g) {\n\tsuper.paint(g);\n\tg.drawImage(bak, 0, 0, null);\n\t\n\t//画线\n\tfor(int i=0;i<Config.ROWS;i++)\n\t{\n\t\tfor(int j=0;j<Config.COLS;j++)\n\t\t{\n\t\t\tg.setColor(new Color(137,92,44));\n\t\t\tg.drawRect(j*Config.CELL+Config.OFFSETX, i*Config.CELL+Config.OFFSETY, Config.CELL, Config.CELL);\n\t\t}\n\t}\n\t//画焦点\n\tfor(int i=0;i<Config.ROWS;i++)\n\t{\n\t\tfor(int j=0;j<Config.COLS;j++)\n\t\t{\n\t\t\tif(Config.MAP[i][j]==Config.FOCUS)\n\t\t\t{\n\t\t\t\tg.setColor(new Color(137,92,44));\n\t\t\t\tg.fillRect(j*Config.CELL+Config.OFFSETX-5, i*Config.CELL+Config.OFFSETY-5, 10, 10);\n\t\t\t}\n\t\t}\n\t}\n\t\n\t//画子\n\t\tfor(int i=0;i<Config.ROWS;i++)\n\t\t{\n\t\t\tfor(int j=0;j<Config.COLS;j++)\n\t\t\t{\n\t\t\t\tif(Config.MAP[i][j]==Config.BLACK)\n\t\t\t\t{\n\t\t\t\t g.drawImage(black, Config.CELL*j+Config.OFFSETX-20, i*Config.CELL+Config.OFFSETY-20, null);\n\t\t\t\t \n\t\t\t\t}\n\t\t\t\tif(Config.MAP[i][j]==Config.WHITE)\n\t\t\t\t{\n\t\t\t\t g.drawImage(white, Config.CELL*j+Config.OFFSETX-20, i*Config.CELL+Config.OFFSETY-20, null);\n\t\t\t\t \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n //画提拉\n\t\tg.setFont(new Font(\"微软雅黑\",Font.BOLD,24));\n\t\tg.setColor(step%2==0?Color.black:Color.white);\n\t\tg.drawString(step%2==0?\"黑子下\":\"白子下\", 640, 80);\n}",
"@Override\n public void draw(GraphicsContext gc, int sides){}",
"void DrawEpizode(Canvas c){\n PointSize = c.getWidth()/Logic.getInstance().GameDeskSize;\n c.drawColor(Color.BLACK);\n floor_bitmap = Bitmap.createScaledBitmap(floor_bitmap, (int)PointSize,(int)PointSize,false);\n wall_bitmap = Bitmap.createScaledBitmap(wall_bitmap, (int)PointSize,(int)PointSize,false);\n point_bitmap = Bitmap.createScaledBitmap(point_bitmap, (int)PointSize,(int)PointSize,false);\n\n\n for (int i = 0; i < Logic.getInstance().GameDeskSize; i++){\n for(int j = 0; j < Logic.getInstance().GameDeskSize; j++){\n int State =Logic.getInstance().gamefield[i][j].getState();\n\n if(State>=40){\n State = Logic.getInstance().Gosts.Gosts.get(State-40).my_point_state;\n }\n\n switch (State) {\n case 0:\n //c.drawRect(i*PointSize, j*PointSize,i+1*PointSize, j+1*PointSize ,new Paint());\n c.drawBitmap(floor_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n break;\n case 1:\n c.drawBitmap(floor_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n c.drawBitmap(point_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n break;\n case 2:\n c.drawBitmap(floor_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n case 3:\n c.drawBitmap(floor_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n c.drawBitmap(wall_bitmap,(i*(PointSize)),(j*(PointSize)),new Paint());\n break;\n default: break;\n\n }\n }\n }\n }",
"public void draw(Graphics g, int scale, int offset) {\n\t\tColor tColor;\n\t\ttColor = g.getColor(); // save exisiting color\n\t\tg.setColor(color);\n Point translated = translateToAWT(point);\n if (fill == ShapeAttribute.SOLID && shape == ShapeAttribute.BOX)\n\t\t g.fillRect( offset + translated.x * scale - radius, \n offset + translated.y * scale - radius, \n scale * 2 * radius, scale * 2 * radius);\n else if (fill == ShapeAttribute.SOLID && shape == ShapeAttribute.OVAL)\n g.fillOval( offset + translated.x * scale - radius, \n offset + translated.y * scale - radius, \n scale * 2 * radius, scale * 2 * radius);\n else if (fill == ShapeAttribute.WIRE && shape == ShapeAttribute.BOX)\n \t\t g.fillRect( offset + translated.x * scale - radius, \n offset + translated.y * scale - radius, \n scale * 2 * radius, scale * 2 * radius); \n else if (fill == ShapeAttribute.WIRE && shape == ShapeAttribute.OVAL)\n g.fillOval( offset + translated.x * scale - radius, \n offset + translated.y * scale - radius, \n scale * 2 * radius, scale * 2 * radius); \n else // shape == dot\n g.drawLine( offset + translated.x * scale, \n offset + translated.y * scale, \n offset + translated.x * scale, \n offset + translated.y * scale);\n\t\tg.setColor(Color.black); // set label color\n if (drawLabel) g.drawString(label, offset + translated.x * scale + radius, \n offset + translated.y * scale - radius);\n g.setColor(tColor); // restore existing color\n\t\t}",
"@Override\n protected void paintComponent(Graphics g)\n {\n Graphics2D g2 = (Graphics2D) g;\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n Rectangle r = getBounds();\n g2.setColor(theme.getPitColor());\n // Paint different shapes depending on the shape type\n switch(theme.getPitShape())\n {\n case CIRCLE:\n g2.fillOval(0, 0, r.width, r.height);\n break;\n case SQUARE:\n g2.fillRect(0, 0, r.width, r.height);\n break;\n }\n\n paintStoneCount(g2);\n }",
"@Override\r\n\tpublic void draw() {\r\n\t\t//Set the background to dark grey\r\n\t\tbackground(50, 50, 50);\t\r\n\t\t//If the current state is processing, display text explaining this\r\n\t\tif (this.currentGameState == DisplayStates.PROCESSING) {\r\n\t\t\ttext(\"Processing, please wait...\", 30, 340); \r\n\t\t} else { //Otherwise, the grid should be drawn in it's current state\r\n\t\t\tthis.zoomer.transform(); //Transform the zoom based on user input\r\n\t\t\t//Get the cells in their current state\r\n\t\t\tthis.gridCells = this.world.getCells(); \r\n\t\t\t//Work out which size images to use.\r\n\t\t\tupdateImageScale();\r\n\t\t\t//Draw the images to the sketch based on the current scale\r\n\t\t\tif (this.currentImageScale == ImageDrawScales.LARGE) {\r\n\t\t\t\tdrawImages(LARGE_IMAGE, this.gridCells);\r\n\t\t\t} else if (this.currentImageScale == ImageDrawScales.MEDIUM) {\r\n\t\t\t\tdrawImages(MEDIUM_IMAGE, this.gridCells);\r\n\t\t\t} else {\r\n\t\t\t\tdrawImages(SMALL_IMAGE, this.gridCells);\r\n\t\t\t}\r\n\t\t}\r\n\t}"
] |
[
"0.6544824",
"0.63105804",
"0.6241624",
"0.62397915",
"0.62319064",
"0.6193354",
"0.61565804",
"0.6102918",
"0.6069486",
"0.6021289",
"0.59495574",
"0.5902132",
"0.58883804",
"0.5871487",
"0.58654463",
"0.586238",
"0.5830758",
"0.58268696",
"0.58222395",
"0.5822085",
"0.5818666",
"0.5818575",
"0.58065486",
"0.5796565",
"0.57739335",
"0.5771346",
"0.57686615",
"0.576351",
"0.5763369",
"0.576288",
"0.5750604",
"0.57467014",
"0.57467014",
"0.57456994",
"0.5743222",
"0.5729812",
"0.5687889",
"0.56826615",
"0.56778985",
"0.5675896",
"0.5671955",
"0.56637716",
"0.5654685",
"0.56518954",
"0.565178",
"0.56517345",
"0.5650935",
"0.56480587",
"0.56466913",
"0.56466913",
"0.56466913",
"0.5644083",
"0.56409067",
"0.56403804",
"0.5635777",
"0.56326985",
"0.5632671",
"0.5632244",
"0.56225973",
"0.5607888",
"0.5607085",
"0.55996203",
"0.5583911",
"0.558302",
"0.55804",
"0.55795115",
"0.55794716",
"0.55745333",
"0.55696714",
"0.5567441",
"0.55633754",
"0.5558366",
"0.5555818",
"0.5555502",
"0.5549371",
"0.5548724",
"0.55476016",
"0.554642",
"0.5543914",
"0.5542785",
"0.5542109",
"0.55400544",
"0.5533106",
"0.5529442",
"0.5528945",
"0.5525911",
"0.5521517",
"0.552114",
"0.5519162",
"0.5519161",
"0.55173284",
"0.5516406",
"0.55115867",
"0.550805",
"0.5505822",
"0.5498757",
"0.5491688",
"0.5487443",
"0.548551",
"0.54833686"
] |
0.65663916
|
0
|
init for track view
|
private void initTrack(Canvas canvas, boolean isFilled){
if(circleBroken){
canvas.drawArc(mOval, 135, 270, isFilled, progressPaint);
}else {
canvas.drawArc(mOval, 90, 360, isFilled, progressPaint);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void initView() {\n\t\t//buttonPlayPause = (ImageButton)getView().findViewById(R.id.ButtonTestPlayPause);\n\t\t//buttonPlayPause.setOnClickListener(this);\n\t\t\n\t\t//seekBarProgress = (SeekBar)getView().findViewById(R.id.SeekBarTestPlay);\t\n\t\t//seekBarProgress.setMax(99); // It means 100% .0-99\n\t\t//seekBarProgress.setOnTouchListener(this);\n\t\t//editTextSongURL = (EditText)findViewById(R.id.EditTextSongURL);\n\t\t//editTextSongURL.setText(R.string.testsong_20_sec);\n\t\t\n\t\t//mediaPlayer = new MediaPlayer();\n\t\t//mediaPlayer.setOnBufferingUpdateListener(this);\n\t\t//mediaPlayer.setOnCompletionListener(this);\n\t}",
"public MyTrackContainer(){\n\t}",
"public void initView() {\n ArrayAdapter<String> arrayAdapter=new ArrayAdapter<String>(getView().getContext(),android.R.layout.simple_list_item_1,tracks);\n list.setAdapter(arrayAdapter);\n }",
"public Track(){\n\t\tthis.trk = trackGenerator();\n\n\t}",
"public Track() {\r\n }",
"@Override\n protected void initView() {\n view.setVideoThumbnail(model.getThumbnail());\n\n if (isInFocus) {\n playOrPauseVideoIfMomentIsInFocus();\n }\n\n view.setMomentTitle(model.getTitle());\n view.setCounterTimeText(\"\" + Math.round((model.getEndTimeMs() - model.getStartTimeMs())/ TimeUtil.MS_IN_SECOND));\n\n view.setState(isInFocus);\n }",
"private void init() {\n initView();\n setListener();\n }",
"private void initView() {\n\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@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\n public void initView() {\n }",
"private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }",
"@Override\n protected void init() {\n Log.d(\"wyj\", \"init\");\n handler = new MyHandler();\n //设置horizontalScrollvView拉到头和尾的时候没有阴影颜色\n horiView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n //1.获得sharedPreference对象,SharedPrefences只能放基础数据类型,不能放自定义数据类型。\n preferences = SPManager.getSharedPreferences(AppUtils.getBaseContext());\n initShow();\n }",
"public void initView(){}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"public SearchTrack() {\n\t\tsuper();\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"@Override\n public void initView() {\n\n }",
"@Override\n public void init(View view) {\n this.view = (BackstoryView) view;\n }",
"void initView();",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"private void initView() {\n\t\tmSeekButton = (Button) findViewById(R.id.seekButton);\r\n\t\tmViewPager = (ViewPager) findViewById(R.id.viewPager);\r\n\t}",
"private void initView(){\n\t\tinitSize();\n\t\tinitText();\n\t\tinitBackground();\n\t\tthis.setOnClickListener(this);\n\t\tthis.setOnLongClickListener(this);\n\t}",
"private void init(View view) {\n tvRecordNotFound = view.findViewById(R.id.tvRecordNotFoundId);\n rvcarslist = view.findViewById(R.id.rvcarslistId);\n ivbackid = view.findViewById(R.id.ivbackid);\n LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity(), RecyclerView.VERTICAL, false);\n rvcarslist.setLayoutManager(layoutManager);\n ridesAdapter = new RidesAdapter(getActivity(), this);\n rvcarslist.setAdapter(ridesAdapter);\n ivbackid.setOnClickListener(this);\n }",
"public Track() {\n locations = new ArrayList<>();\n cars = new ArrayList<>();\n }",
"public TrackStat() {\r\n }",
"protected abstract void initView();",
"private void init(Activity context, Track track){\r\n\t\tmActivity = context;\r\n\t\tsetContentView(R.layout.lyrics);\r\n\t\tsetTitle(R.string.lyrics);\r\n\t\t\r\n\t\tmViewFlipper = (ViewFlipper)findViewById(R.id.LyricsViewFlipper);\r\n\t\tmTextView = (TextView)findViewById(R.id.LyricsTextView);\r\n\t\t\r\n\t\tif(track != mTrack){\r\n\t\t\tnew LyricsTask().execute(track);\r\n\t\t} else {\r\n\t\t\tshowLyrics();\r\n\t\t}\r\n\t}",
"private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"public void init(IViewPart arg0) {\n\n\t}",
"@Override\n public void initialize() {\n \tcontroller=new TrendsRuntimeController(this);\n \tJComponent trendsComponent=controller.getTrendsComponent();\n \tcomponent=trendsComponent;\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 WaveView() {\n initComponents();\n }",
"public abstract void initView();",
"@Override\n public void initView() {\n r3 = (LinearLayout) findViewById(R.id.r3);\n sign_time = (TextView) findViewById(R.id.sign_time);\n visitor_address_change = (TextView) findViewById(R.id.visitor_address_change);\n // 上传图片使用\n mGrideviewUpload = (GridView) findViewById(R.id.grideview_upload);\n mAdapter = new UploadAdapter(this);\n mGrideviewUpload.setAdapter(mAdapter);\n mParentView = (LinearLayout) getLayoutInflater().inflate(R.layout.creative_idea_new, null);\n mPicturePathList = new ArrayList<String>();\n mDialog = new BSProgressDialog(this);\n sign_time.setText(DateUtils.getCurrentTimess());\n mTitleTv.setText(\"位置签到\");\n activate();\n\n // MyThread m = new MyThread();\n // new Thread(m).start();\n }",
"public Tracklist(Activity context, List<Track> track) {\n super(context, R.layout.layout_track,track);\n\n this.context = context;\n this.track = track;\n }",
"private void viewInit() {\n }",
"@Override\n protected void initViewSetup() {\n }",
"@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}",
"private void initViews() {\n\n }",
"@Override\n\tprotected void initView() {\n\t\tiv_content = (ImageView) findViewById(R.id.music_content);\n\t\tiv_music = (ImageView) findViewById(R.id.music_me_iv);\n\t\tiv_queen = (ImageView) findViewById(R.id.music_queen_iv);\n\t\ttv_music = (TextView) findViewById(R.id.music_me_tv);\n\t\ttv_queen = (TextView) findViewById(R.id.music_queen_tv);\n\t\tiv_music.setOnClickListener(this);\n\t\tiv_queen.setOnClickListener(this);\n\t\t\n\t\tbitmap=DisplayUtil.readBitMap(getApplicationContext(), R.drawable.music_part1);\n\t\tiv_content.setImageBitmap(bitmap);\n\n\t}",
"public CustomAdapterTracks(ArrayList<TopTrack> myDataset, Context context) {\n mDataset = myDataset;\n mContext = context;\n }",
"private void init(View view) {\n\t\t\r\n\t\tFunSub = (CustemGallery)view.findViewById(R.id.FragMain_Pack);\r\n\t\t\r\n\t\tfragMain_Pack_CustemCalleryAdapter = new FragMain_Pack_CustemCalleryAdapter(getActivity());\r\n\t\t\r\n\t\tFunSub.setAdapter(fragMain_Pack_CustemCalleryAdapter);\r\n\t\t\r\n\t\t\r\n\t}",
"public Tra() {\n super();\n initComponents();\n loadData();\n }",
"private void initViews() {\n\n\t}",
"private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }",
"public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}",
"public void initViews(){\n }",
"public TreasureView() {\n initComponents();\n }",
"public TreasureView() {\n initComponents();\n }",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"private void initView() {\n initRefreshListView(mListview);\n }",
"private void initComponent(){\n chart = view.findViewById(R.id.chart1);\n imMood = view.findViewById(R.id.mood_view);\n btnSetMood = view.findViewById(R.id.btnSetMood);\n tvToday = view.findViewById(R.id.step_today);\n tvStepTakenToday = view.findViewById(R.id.step_takens_today);\n tvStepRunningToday = view.findViewById(R.id.step_running_today);\n btnSetMood2 = view.findViewById(R.id.btnSetMood2);\n tvToday.setText(DateUtilities.getCurrentDateInString());\n tvStepRunningToday.setText(\"0 km\");\n }",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"Track(){\n\t}",
"public View() {\n initComponents();\n }",
"protected void init() {\n /* 66 */\n super.init();\n /* */\n /* 68 */\n this.mChartTouchListener = new PieRadarChartTouchListener(this);\n /* */\n }",
"private void init(Context context) {\n getViewTreeObserver().addOnGlobalLayoutListener(this);\n inflate(context, R.layout.new_rp_resultview, this);\n mMainPanel = (ViewAnimator) findViewById(R.id.viewanimator);\n mInfoPanel = (ViewAnimator) findViewById(R.id.va_text);\n \n \n mInfoPanelText1 = (TextView) mInfoPanel.findViewById(R.id.tv1);\n mMainPanel.setDisplayedChild(0);\n\t}",
"private void init() {\n\t\tback=(ImageView)this.findViewById(R.id.back);\n\t\taddUser=(ImageView)this.findViewById(R.id.adduser);\n\t\tgrid=(GridView)this.findViewById(R.id.gridview);\n\t}",
"private void initializeView() {\n @SuppressLint(\"ResourceType\") InputStream is = getContext().getResources().openRawResource(this.gifId);\n mMovie = Movie.decodeStream(is);\n }",
"private void initView() {\n mRetrofit = new Retrofit.Builder()\n .baseUrl(Challenge1Activity.MY_BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n mTextViewDisplayTopRated = findViewById(R.id.text_view_display_toprated_movies);\n\n mTextViewPrev = findViewById(R.id.text_view_prev);\n mTextViewCurrentAndMaxPage = findViewById(R.id.text_view_current_and_max_page);\n mTextViewNext = findViewById(R.id.text_view_next);\n }",
"public TifViewFrame() {\n initComponents();\n }",
"@Override\n\tprotected void initView() {\n\t\tsetShuohuaTouchListener();\n\t\tiv_shuohua.setOnClickListener(new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tiv_operate.setSelected(!iv_operate.isSelected());\n\t\t\t\tiv_shuohua.setSelected(!iv_shuohua.isSelected());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tmViewPager.setOnPageChangeListener(new OnPageChangeListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void onPageSelected(int position)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tcurrentPosition = position;\n\t\t\t\tif (position == 0) {// 直播\n\t\t\t\t\tZhiBoFragment fragment = ((ZhiBoFragment) fragments\n\t\t\t\t\t\t\t.get(position));\n\t\t\t\t\tif (liveModels == null || liveModels.size() == 0) {\n\t\t\t\t\t\t//暂停计时器查询\n\t\t\t\t\t\tstopTimeTask();\n\t\t\t\t\t\t\n\t\t\t\t\t\tsquareLiveDetailLiveRequest(fragment, false,0);\n\t\t\t\t\t}\n\t\t\t\t} else if (position == 1) {// 聊天\n\t\t\t\t\tLiaotianFragment fragment = ((LiaotianFragment) fragments\n\t\t\t\t\t\t\t.get(position));\n\t\t\t\t\tif (chatModels == null || chatModels.size()==0) {\n\t\t\t\t\t\t//暂停计时器查询\n\t\t\t\t\t\tstopTimeTask();\n\t\t\t\t\t\t\n\t\t\t\t\t\tsquareLiveDetailChatRequest(fragment, false,0);\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 onPageScrolled(int position, float positionOffset,\n\t\t\t\t\tint positionOffsetPixels)\n\t\t\t{\n\t\t\t\tmIndicator.scroll(position, positionOffset);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onPageScrollStateChanged(int state)\n\t\t\t{\n\n\t\t\t}\n\t\t});\n\t}",
"private void initView() {\n\t\tfindViewById(R.id.rl_titlebar).setBackgroundColor(getResources().getColor(R.color.deep_blue));\n\t\tImageView mLeftImgv=(ImageView) findViewById(R.id.imgv_leftbtn);\n\t\t((TextView)findViewById(R.id.tv_title)).setText(\"病毒查杀进度\");\n\t\tmLeftImgv.setOnClickListener(this);\n\t\tmLeftImgv.setImageResource(R.drawable.title_back);\n\t\tmProcessTV = (TextView) findViewById(R.id.tv_scanprocess);\n\t\tmScanAppTV = (TextView) findViewById(R.id.tv_scansapp);\n\t\tmCancleBtn = (Button) findViewById(R.id.btn_canclescan);\n\t\tmCancleBtn.setOnClickListener(this);\n\t\tmScanListView = (ListView) findViewById(R.id.lv_scanapps);\n\t\tadapter=new ScanVirusAdapter(mScanAppInfos, this);\n\t\tmScanListView.setAdapter(adapter);\n\t\tmScanningIcon = (ImageView) findViewById(R.id.imgv_scanningicon);\n\t\tstartAnim();\n\t}",
"protected abstract void initializeView();",
"@Override\n\tpublic void Init(JPanel panel) {\n\n\t\tfor (int i = 0; i < tracks.size(); i++) {\n\t\t\tfor (Track track : tracks) {\n\t\t\t\tif (track.GetLevel() == i+ 1) {\n\t\t\t\t\ttrack.AtomInit(200 + 50 * i, panel);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public abstract void init(int myIndex, GameView view);",
"@Override\r\n\tpublic void initView() {\n\t\tsuper.initView();\r\n\t\tdialog = new BufferDialog(this);\r\n\t\tswitchAntiLost = (Switch) findViewById(R.id.switch_antilost);\r\n\t}",
"public TrackPlayer()\n\t{\n\t\tindex = 0;\n\n\t\ttmr = new AnimationTimer() {\n\t\t\t@Override\n\t\t\tpublic void handle(long xxx) {\n\t\t\t\tdouble now = System.currentTimeMillis() * .001;\n\t\t\t\tif (lastUpdate != -1) {\n\t\t\t\t\telapsed += now - lastUpdate;\n\t\t\t\t\tif (elapsed >= 60.0 / ClearComposer.cc.getTempo())\n\t\t\t\t\t{\n\t\t\t\t\t\telapsed = 0;\n\t\t\t\t\t\tplayNotes();\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\telapsed = 0;\n\t\t\t\t\tplayNotes();\n\t\t\t\t}\n\t\t\t\tlastUpdate = now;\n\t\t\t}\n\t\t};\n\n\t\ttracks = new ArrayList<>();\n\t}",
"private void initView(View view) {\n\t\tif (imageView == null) {\n\t\t\timageView = new MyImageView(getActivity());\n\t\t\tscrollView = (MyScrollView) view.findViewById(R.id.my_scroll_view);\n\t\t}\n\t}",
"public HTSViewInfo() {\n super(\"HTS View\", new AppVersion(15),\n \"Copyright (C) 2014-${year} Antony Holmes\",\n new HTSViewIcon(),\n \"View read track data at multiple resolutions.\");\n }",
"public StreamView(Context context) {\r\n\t\tsuper(context);\r\n\t\tthis.mContext = context;\r\n\t\tinit();\r\n\t}",
"private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}",
"@Override\n public void init() {\n\n super.init();\n\n }",
"public TrackCoach() {\n\n\t}",
"public abstract void initViews();",
"public ViewInit() {\n initComponents();\n }",
"protected void init(){\n /*Link Navigation Header Items*/\n songName = activity.findViewById(R.id.navigation_header_songName);\n songArtist = activity.findViewById(R.id.navigation_header_artistName);\n songAlbumArt = activity.findViewById(R.id.navigation_album_art);\n\n /*Setup Navigation Drawer*/\n mDrawerLayout = activity.findViewById(R.id.drawer_layout);\n mToggle = new ActionBarDrawerToggle(activity, mDrawerLayout, R.string.open, R.string.close);\n mDrawerLayout.addDrawerListener(mToggle);\n\n /*Synchronize the indicator with the state of the linked DrawerLayout after onRestoreInstanceState has occurred.*/\n mToggle.syncState();\n\n NavigationView navigationView = activity.findViewById(R.id.drawer_navigation_view);\n navigationView.setNavigationItemSelectedListener(this);\n\n getSongEventHandler().addSongPlaybackEventListener(this);\n }",
"@Override\n\tprotected void initUi(View view) {\n\t\tImagesArray = new ArrayList<Integer>();\n\t\tslider_text = (TextView) view.findViewById(R.id.slider_text);\n\t\tmPager = (ViewPager) view.findViewById(R.id.pager);\n\t\tindicator = (CircleIndicator) view.findViewById(R.id.indicator);\n\t\t\n\t\t\n\t\tinit();\n\t}",
"protected void init() {\n/* 35 */ super.init();\n/* */ \n/* 37 */ this.mRenderer = new BubbleChartRenderer(this, this.mAnimator, this.mViewPortHandler);\n/* */ }",
"public StreamRecorderDisplay() {\n initialize();\n }",
"private TrackBehaviour() {}",
"public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}",
"@Override\n\tprotected void initView() {\n\t\ttitle_tv.setText(\"营收记录\");\n\t\t// mPagerSlidingTabStrip.setIndicatorColorResource(R.color.red1);\n\n\t\tmPagerSlidingTabStrip\n\t\t\t\t.setOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPageSelected(int arg0) {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPageScrolled(int arg0, float arg1, int arg2) {\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}",
"public SynopticView() {\n\t\tsuper();\n\t}",
"protected abstract void initViews();",
"private void initview() {\n\t\tMyOnClickLinstener clickLinstener = new MyOnClickLinstener();\n\t\tdeliverynote_query_back.setOnClickListener(clickLinstener);\n\t\tdate_layout.setOnClickListener(clickLinstener);\n\t\t\n\t\t//listview条目点击事件\n\t\tDeliveryQueryListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> adapterView, View view, int position,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent(DeliveryNoteQueryActivity.this, DeliveryNoteDetailActivity.class);\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tDeliveryNote deliveryNote = (DeliveryNote) adapterView.getItemAtPosition(position);\n\t\t\t\tbundle.putString(\"currenttime\",currenttime);\n\t\t\t\tbundle.putSerializable(\"deliveryNote\", deliveryNote);\n\t\t\t\tintent.putExtras(bundle);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t});\n\t}",
"private void initTracks() {\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame1.getUI()).setNorthPane(null);\n jInternalFrame1.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame2.getUI()).setNorthPane(null);\n jInternalFrame2.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame3.getUI()).setNorthPane(null);\n jInternalFrame3.setVisible(false);\n ((javax.swing.plaf.basic.BasicInternalFrameUI)jInternalFrame4.getUI()).setNorthPane(null);\n jInternalFrame4.setVisible(false);\n \n //Creates the track array\n trackArray = new javax.swing.JInternalFrame[4];\n trackArray[0] = jInternalFrame1;\n trackArray[1] = jInternalFrame2;\n trackArray[2] = jInternalFrame3;\n trackArray[3] = jInternalFrame4;\n \n //Creates the waveforme array\n waveArray = new javax.swing.JPanel[4];\n waveArray[0] = track1Wave;\n waveArray[1] = track2Wave;\n waveArray[2] = track3Wave;\n waveArray[3] = track4Wave;\n \n //Creates tracklabel array\n labelArray = new javax.swing.JLabel[4];\n labelArray[0] = jLabel18;\n labelArray[1] = jLabel19;\n labelArray[2] = jLabel17;\n labelArray[3] = jLabel20;\n }",
"public ViewHolderLiveMap(View itemView) {\n super(itemView);\n tripTabFragment = TripTabFragment.getInstance();\n ButterKnife.bind(this, itemView);\n setUpGoogleMapFragment();\n if (PreferencesManager.getInstance(tripTabFragment.getContext()).getTripStartedState()) {\n toggleButtons(true);\n } else {\n toggleButtons(false);\n }\n Timber.d(\"method=constructor preferecenceStart='%s'\", PreferencesManager.getInstance(tripTabFragment.getContext()).getTripStartedState());\n }",
"private void init() {\n mCacheUtil = ExoPlayerCacheUtil.getInstance(this);\n\n //Lets put our array of URLs into a simple array adapter to display to the user\n ListView choicesListView = findViewById(R.id.lv_choices);\n mChoicesAdapter = new MediaListAdapter(this,\n R.layout.media_list_item, Arrays.asList(TestStreams.getHlsArray()));\n choicesListView.setAdapter(mChoicesAdapter);\n choicesListView.setOnItemClickListener(this);\n\n //The below code are just dummy fillers to provide a header and footer divider\n LayoutInflater inflater = getLayoutInflater();\n TextView tvEmptyHeader = (TextView) inflater.inflate(R.layout.choice_list_item, null);\n TextView tvEmptyFooter = (TextView) inflater.inflate(R.layout.choice_list_item, null);\n choicesListView.addHeaderView(tvEmptyHeader);\n choicesListView.addFooterView(tvEmptyFooter);\n\n LogTrace.d(TAG, \"Initialization complete.\");\n }",
"private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }",
"@Override\n\tprotected void initComponent() {\n\t\tmView.setClickable(true);\n\t\tmView.findViewById(R.id.know_text).setOnClickListener(mOnClickListener);\n\t\tmTitle = (TextView)mView.findViewById(R.id.unknown_title);\n\t}",
"public MainView() {\r\n\t\tinitialize();\r\n\t}"
] |
[
"0.72747463",
"0.72156626",
"0.71772975",
"0.6987803",
"0.6965167",
"0.68383306",
"0.680466",
"0.6799123",
"0.6794681",
"0.6794681",
"0.6780351",
"0.6780351",
"0.6756967",
"0.67554194",
"0.6748526",
"0.6730795",
"0.67155004",
"0.67155004",
"0.66888577",
"0.6682062",
"0.6682062",
"0.66733897",
"0.66579574",
"0.6639922",
"0.6626119",
"0.6609138",
"0.6591164",
"0.65620726",
"0.6553224",
"0.65500486",
"0.6546924",
"0.6480042",
"0.64693654",
"0.64691716",
"0.6469047",
"0.64454365",
"0.64313704",
"0.6430767",
"0.6430767",
"0.64201707",
"0.64188373",
"0.64051294",
"0.63888067",
"0.63875216",
"0.6379757",
"0.6372225",
"0.6367442",
"0.63462144",
"0.6338047",
"0.63190985",
"0.63023245",
"0.6299488",
"0.6296074",
"0.628947",
"0.62871623",
"0.6287027",
"0.6287027",
"0.6277742",
"0.62747335",
"0.62626976",
"0.62575364",
"0.6254017",
"0.6229534",
"0.6225069",
"0.6216723",
"0.6216699",
"0.6202579",
"0.6192371",
"0.6190203",
"0.6184088",
"0.61684513",
"0.6166326",
"0.61655426",
"0.616413",
"0.61526144",
"0.6148441",
"0.6143488",
"0.61413765",
"0.6134293",
"0.6133409",
"0.61325717",
"0.6128155",
"0.61177474",
"0.61161184",
"0.61092496",
"0.60979384",
"0.60976446",
"0.6090037",
"0.6089689",
"0.6073704",
"0.60735416",
"0.6070555",
"0.60541743",
"0.60533667",
"0.6048766",
"0.60463715",
"0.6039692",
"0.60374314",
"0.60317236",
"0.6027048",
"0.6016263"
] |
0.0
|
-1
|
draw the progress text
|
private void drawProgressText(Canvas canvas){
if(textVisibility){
mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);
mTextPaint.setStyle(Paint.Style.FILL);
mTextPaint.setTextSize(mProgressTextSize);
mTextPaint.setColor(mProgressTextColor);
mTextPaint.setTextAlign(Paint.Align.CENTER);
String progressText = ((int) moveProgress) + "%";
float x = (getWidth() + getPaddingLeft() - getPaddingRight()) / 2;
float y = (getHeight() + getPaddingTop() - getPaddingBottom() - (mTextPaint.descent() + mTextPaint.ascent())) / 2;
canvas.drawText(progressText, x , y, mTextPaint);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}",
"@Override\r\n\tpublic void onCustomDraw(Graphics2D g) {\n\t\tg.setColor(Color.black);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\tg.setColor(Color.green);\r\n\t\tfor(int i = 0; i < 50; i++){\r\n\t\t\tif(text[i] != null){\r\n\t\t\t\tg.drawString(text[i], 11, (i*10)+20);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n protected void onDraw(Canvas canvas) {\n paint.setColor(Color.BLACK);\n canvas.drawRect(canvas.getClipBounds(),paint);\n\n //draw the progress\n Rect rect = new Rect();\n rect.set(timelinePad ,timelinePad, ((int) ((getMeasuredWidth()-2*timelinePad)*currentPos)+timelinePad), getMeasuredHeight()-timelinePad);\n paint.setColor(Color.GREEN);\n float cornerRadius = timelinePad;\n canvas.drawRoundRect(new RectF(rect), cornerRadius, cornerRadius, paint);\n\n //draw time bounds\n paint.setColor(Color.WHITE);\n paint.setTextSize(1.5f*(getMeasuredHeight()-timelinePad*2)/2);\n float fontPad = (getMeasuredHeight()-paint.getFontMetrics(null)*0.8f)/2;\n if(pos != null && end != null) {\n String text = pos.toString(timelinePositionFormat)+\" / \"+end.toString(timelinePositionFormat);\n canvas.drawText(text, rect.left+(getMeasuredWidth()-timelinePad*2-paint.measureText(text))/2, getMeasuredHeight()-fontPad, paint);\n }\n }",
"@Override\r\n\tprotected void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawString(str, 10, 10);\r\n\t\tg.drawLine(10, 20, 110, 20);\r\n\t\tg.drawRect(pX, 30, 100, 100);\r\n\t\t\r\n\t}",
"public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}",
"public void paint (Graphics g) {\n text.setText(perfweb.genReport());\n super.paint(g);\n }",
"public void paint (Graphics g) {\n text.setText(perfweb.genReport());\n super.paint(g);\n }",
"@Override\n public void updateDrawState(TextPaint ds) {\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n mTextPain.setColor(mColor);\n canvas.drawText(mText,getWidth() / 2-mTextBound.width()/2,getHeight()/2+mTextBound.height()/2,mTextPain);\n }",
"public void draw() {\n StdDraw.clear();\n StdDraw.setPenColor(StdDraw.BLACK);\n StdDraw.setXscale(-drawLength * 0.1, drawLength * 1.2);\n StdDraw.setYscale(-drawLength * 0.65, drawLength * 0.65);\n StdDraw.line(0, 0, drawLength, 0);\n StdDraw.text(-drawLength * 0.05, 0, \"0\");\n StdDraw.text(drawLength * 1.1, 0, Integer.toString(size()));\n }",
"private String getProgressBar(){\n String output = \"\\u00A77[\";\n int total = 20;\n double unlocked = this.unlockedPercentage;\n output += \"\\u00A72\";\n //green bars for every 5% unlocked\n while(unlocked>=5){\n output += \"|\";\n unlocked-=5;\n total--;\n }\n //rest of them are red bars\n output += \"\\u00A7c\";\n while(total-->0){\n output += \"|\";\n }\n\n output += \"\\u00A77]\";\n return output;\n }",
"@Override\r\n\tprotected void draw(PGraphics pg) {\r\n\t\tif(font == null) {\r\n\t\t\tfont = rootContainer.getPApplet().createFont(\"Arial\", ((int)this.height * 0.8F));\r\n\t\t}\r\n\t\tpg.stroke(0);\r\n\t\tpg.strokeWeight(3);\r\n\t\tpg.noFill();\r\n\t\tif(activated == false) {\r\n\t\t}else {\r\n\t\t\tpg.line(x, y, x+height, y+height);\r\n\t\t\tpg.line(x+height, y, x, y+height);\r\n\t\t}\r\n\t\tpg.rect(x, y, height, height);\r\n\t\tpg.textAlign(PApplet.LEFT, PApplet.CENTER);\r\n\t\tpg.textFont(font);\r\n\t\tpg.fill(this.textColor.red, textColor.green, textColor.blue, textColor.alpha);\r\n\t\tpg.text(this.text, x+height+(height/2), y-3, width-height, height);\r\n\t}",
"private void draw(){\n\t\t\t Point level = new Point(txtBoard_top_left.x, txtBoard_top_left.y);\n\t\t\t level_info = new TextInfo(g, level, txt_width, size*4, LEVEL, this.level);\n\t\t\t level_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 2nd text info\n\t\t\t Point lines = new Point(level.x, level.y+size*2);\n\t\t\t lines_info = new TextInfo(g, lines, txt_width, size*4, LINES, this.lines);\n\t\t\t lines_info.drawTextInfo();\n\t\t\t \n\t\t\t // draw 3rd text info\n\t\t\t Point score = new Point(lines.x, lines.y+size*2);\n\t\t\t score_info = new TextInfo(g, score, txt_width, size*4, SCORE, this.score);\n\t\t\t score_info.drawTextInfo();\t\t\n\t\t}",
"void showProgress();",
"public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }",
"public void draw()\r\n {\r\n\tfinal GraphicsLibrary g = GraphicsLibrary.getInstance();\r\n\t_level.draw(g);\r\n\t_printText.draw(\"x\" + Mario.getTotalCoins(), 30, _height - 36, false);\r\n\t_printText.draw(\"C 000\", _width - 120, _height - 36, false);\r\n\t_printText.draw(Mario.getLives() + \"UP\", 240, _height - 36, false);\r\n\t_printText.draw(Mario.getPoints() + \"\", 400, _height - 36, false);\r\n\t_coin.draw();\r\n\t_1UP.draw();\r\n }",
"private void draw() {\n\t\tgsm.draw(g);\n\t\tg.setColor(Color.WHITE);\n\t\tif (fps < 25)\n\t\t\tg.setColor(Color.RED);\n\t\tg.drawString(\"FPS: \" + fps, 10, 15);\n\t}",
"public void displayText() {\n\n // Draws the border on the slideshow aswell as the text\n image(border, slideshowPosX - borderDisplace, textPosY - textMargin - borderDisplace);\n\n // color of text background\n fill(textBackground);\n\n //background for text\n rect(textPosX - textMargin, textPosY - textMargin, textSizeWidth + textMargin * 2, textSizeHeight + textMargin * 2);\n\n //draw text\n image(texts[scene], textPosX, textPosY, textSizeWidth, textSizeHeight, 0, 0 + scrolled, texts[scene].width, textSizeHeight + scrolled);\n }",
"@Override\n\tpublic void render() {\n\t\tif (this.hidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tsuper.render();\n\n\t\tthis.font.draw(Graphics.batch, this.label, this.getX(),\n\t\t\tthis.getY() + (this.getHeight() - this.font.getLineHeight()) / 2);\n\t}",
"@Override\n\tpublic void paint(Graphics e) {\n\t\tsuper.paint(e);\n\t\te.drawString(text, 20, 20);\n\t}",
"public static void draw() {\n\t\tStdDraw.clear();\n\t\tStdDraw.text(.5, .90, hint);\n\t\tStdDraw.text(.5, .5, label);\n\t\tStdDraw.text(0.5, 0.3, textBeingEntered);\n\t\tStdDraw.show(0);\n\n\t}",
"@Override\n protected void drawTask(Graphics g) {\n Graphics2D g2 = (Graphics2D) g;\n\n g2.setStroke(PetriNetUtils.defaultStroke);\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\n Rectangle2D outline = new Rectangle2D.Float(getPos().x - (getSize().width / 2),\n getPos().y - (getSize().height / 2)+5, getSize().width-5, getSize().height-5);\n\n // Draw shadow\n Rectangle2D shadow = new Rectangle2D.Float(getPos().x - (getSize().width / 2) + 5,\n getPos().y - (getSize().height / 2), getSize().width-5, getSize().height-5);\n if (subNetOk) { \n g2.setPaint(Color.WHITE);\n } else {\n g2.setPaint(Color.RED);\n }\n g2.fill(shadow); \n g2.setPaint(Color.BLACK);\n g2.draw(shadow);\n\n g2.setPaint(Color.WHITE);\n if (isEnabledHighlight()) {\n g2.setPaint(Color.GREEN);\n }\n g2.fill(outline);\n\n // Render remaining time if > 0\n if (getRemainingTime() > 0) {\n int duration = 1;\n try {\n duration = Integer.parseInt(getProperty(PROP_DURATION));\n if (duration == 0) {\n duration = 1;\n }\n } catch (NumberFormatException e) {\n }\n ;\n g2.setPaint(Color.GREEN);\n int barHeight = (int) ((double) getSize().height * ((double) getRemainingTime() / (double) duration));\n Rectangle2D bar = new Rectangle2D.Float(getPos().x - (getSize().width / 2),\n (getPos().y - (getSize().height / 2)) + (getSize().height - barHeight),\n getSize().width, barHeight);\n g2.fill(bar);\n }\n\n // Render instance count if > 0\n if (getInstanceCount() > 0) {\n g2.setPaint(Color.GRAY);\n g2.setFont(new Font(\"Arial Narrow\", Font.BOLD, 12));\n g2.drawString(\"\" + getInstanceCount(),\n getPos().x - ((getSize().width / 2) - 3),\n getPos().y - ((getSize().height / 2) - 12));\n }\n\n g2.setPaint(Color.BLACK);\n g2.draw(outline);\n\n // Set font\n g2.setFont(new Font(\"Arial Narrow\", Font.BOLD, 12));\n\n // Draw text\n if (getText() != null) {\n PetriNetUtils.drawText(g2, getPos().x, getPos().y + (getSize().height / 2),\n 70, getText(), PetriNetUtils.Orientation.TOP);\n }\n\n String metaData = \"\";\n\n // Show cost (if applicable)\n if (getProperty(PROP_COST).length() > 0) {\n metaData += getProperty(PROP_COST) + \"€\";\n }\n\n // Show duration (if applicable)\n if (getProperty(PROP_DURATION).length() > 0) {\n metaData += \" \" + getProperty(PROP_DURATION) + \"s\";\n }\n\n PetriNetUtils.drawText(g2, getPos().x, getPos().y + (getSize().height / 2) + 12,\n 70, metaData, PetriNetUtils.Orientation.TOP);\n\n // Show probability (if applicable)\n if (getProperty(PROP_PROBABILITY).length() > 0) {\n // Don't show 100% probability!\n if (!getProperty(PROP_PROBABILITY).equals(\"100\")) {\n PetriNetUtils.drawText(g2, getPos().x, getPos().y, getSize().width,\n getProperty(PROP_PROBABILITY) + \"%\", PetriNetUtils.Orientation.CENTER);\n }\n }\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }",
"@Override\n protected void paintForeground(Graphics2D g) {\n\n int fontSize = 40;\n\n g.setFont(new Font(\"TimesRoman\", Font.PLAIN, fontSize));\n g.setColor(Color.black);\n g.drawString(\"Points:\" + rat.getFoodCount(), 0, 40);\n\n }",
"public void updateProgressMessage() {\n pb.setMax(frames);\n int rendered = getNumFramesRendered(this, projectName);\n pb.setProgress(Math.min(pb.getMax(), rendered));\n int n = pb.getMax();\n int ratio = (rendered * 100) / n;\n String temp = String.format(\"Progress: %d / %d (%d%%)\", rendered, n, ratio);\n progressMessage.setText(temp);\n }",
"public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);",
"public void paintLoadingGraphics(Graphics g, String text, Dimension d){\n\t\tpaint(g, text, d);\n\t}",
"void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);",
"public void draw(Graphics2D g2d) {\r\n for (int i = 0; i < lines.size(); ++i) {\r\n int deltaX = (width - getGlobalFontMetrics().stringWidth(lines.elementAt(i))) / 2;\r\n int deltaY = getGlobalFontMetrics().getHeight() * (i + 1) - getGlobalFontMetrics().getDescent();\r\n g2d.drawString(lines.elementAt(i), x + deltaX + 1, y + deltaY);\r\n }\r\n }",
"public void renderText(float x ,float y ){\n ttf.drawString(x, y, text);\n }",
"@Override\n\tprotected void onDraw(Canvas canvas) \n\t{\n\t\tsuper.onDraw(canvas);\n\t\t\n\t\t//每项统计间隔的宽度\n\t\tint inspace = 30;\n\t\t\n\t\tint initX = 20;\n\t\tint initY = 20;\n\t\tcanvas.drawColor(Color.WHITE);\n\t\t\n\t\tint size = mItems.length;\n\t\t\n\t\tfor (int i = 0; i < size; i++) \n\t\t{\n\t\t\ttextPaint.setColor(mColors[i]);\n\t\t\tcanvas.drawText(\"text:\", initX, initY, textPaint);\n//\t\t\tcanvas.drawRect(rect, paint);\n\t\t\tcanvas.drawRect(initX +80, initY, initX + 200, initY +40, textPaint);\n\t\t\t\n\t\t\t\n\t\t\tinitY+=40;\n\t\t\t\n\t\t}\n\t\t\n\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t}",
"public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}",
"private void drawString( Graphics2D g2, String str, Point2D.Double p, Color colour )\r\n {\r\n double x = translateX( p.getX() );\r\n double y = translateY( p.getY() );\r\n \r\n Font f = g2.getFont().deriveFont( FONT_SIZE );\r\n g2.setFont( f );\r\n \r\n g2.setColor( colour );\r\n g2.drawString( str, (float)x, (float)y );\r\n }",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"private void setupProgressBar() {\n\t\tprogress_bar = new JProgressBar(0,words_to_spell.size());\n\t\tprogress_bar.setBounds(32, 170, 1284, 34);\n\t\tprogress_bar.setBorderPainted(false);\n\t\tprogress_bar.setBackground(Color.WHITE);\n\t\tprogress_bar.setStringPainted(true);\n\t\tprogress_bar.setString(\"\");\n\t\tadd(progress_bar);\n\t}",
"private void drawText(Graphics2D g2, String text, String fontName) {\n\n int fontSize = Math.round(getHeight() * factor);\n\n Font baseFont = new Font(fontName, Font.PLAIN, fontSize);\n Font font = baseFont.deriveFont(attr);\n\n GlyphVector gv = font.createGlyphVector(frc, text);\n Rectangle pixelBounds = gv.getPixelBounds(frc, 0, 0);\n\n int centerX = getWidth() / 2;\n int centerY = getHeight() / 2;\n\n float offsetX = pixelBounds.x + (pixelBounds.width / 2);\n float offsetY = pixelBounds.y + (pixelBounds.height / 2);\n\n AffineTransform at = new AffineTransform();\n at.translate(centerX - offsetX, centerY - offsetY);\n Shape outline = gv.getOutline();\n outline = at.createTransformedShape(outline);\n g2.fill(outline);\n }",
"public void displayProgress(String message) {\n }",
"@Override\n\tpublic void render(Canvas c) {\n\t\tc.drawText(text,(float)x+width,(float)y+height , paint);\n\t\t\n\t}",
"@Override\n public void paint(Graphics g) {\n \t Graphics2D g2 = (Graphics2D) g;\n Dimension size = getSize();\n Font font = new Font(\"Arial\", Font.PLAIN, 14);\n \n g.setFont(font);\n \n String tempString = histTitle;\n FontRenderContext frc = ((Graphics2D)g).getFontRenderContext();\n Rectangle2D boundsTemp = font.getStringBounds(tempString, frc);\n Rectangle2D boundsCond = font.getStringBounds(\"\", frc);\n int wText = Math.max((int)boundsTemp.getWidth(), (int)boundsCond.getWidth());\n int hText = (int)boundsTemp.getHeight() + (int)boundsCond.getHeight();\n int rX = (size.width-wText)/2;\n int rY = (size.height-hText)/2;\n \n g.setColor(Color.WHITE);\n g2.fillRect(0, 0, size.width, size.height);\n \n g.setColor(Color.BLACK);\n int xTextTemp = rX-(int)boundsTemp.getX(); // centres the text\n int yTextTemp = rY-(int)boundsTemp.getY();\n g.drawString(tempString, xTextTemp, 20);\n \n int maxX = size.width;\n int maxY = size.height;\n int yAxis_startX = 20; int yAxis_startY=maxY-20; int yAxis_endX=20; int yAxis_endY=20;\n int xAxis_startX = 20; int xAxis_startY=maxY-20; int xAxis_endX=maxX-20; int xAxis_endY=maxY-20;\n \n drawArrow(g, yAxis_startX, yAxis_startY, yAxis_endX, yAxis_endY, ArrowDirection.UPWARD);\n drawArrow(g, xAxis_startX, xAxis_startY, xAxis_startX+513, xAxis_endY, ArrowDirection.LEFTWARD); // what the hell. Let's fix hist width to 512 + 1 pixels (two pixels for each grayscale value)\n \n if (pierwszy==null) { // Clear the histogram view\n \t g.setColor(Color.WHITE);\n \t g.fillRect(yAxis_endX+1, yAxis_endY-1, 512, yAxis_startY-yAxis_endY-1);\n \t System.out.println(\"Cleared hist\");\n }\n else\n {\n \t BufferedImage grayScaled = new BufferedImage(pierwszy.getWidth(), pierwszy.getHeight(), BufferedImage.TYPE_BYTE_GRAY);\n \t Graphics gg = grayScaled.getGraphics();\n \t System.out.println(\"W=\"+grayScaled.getWidth()+\", H=\"+grayScaled.getHeight());\n \t gg.drawImage(pierwszy, 0, 0, null);\n \t lut = getGrayscaleHist(grayScaled);\n \t int maxBarHeight = yAxis_endY-yAxis_startY-1;\n \t paintBars(g, lut, xAxis_startX+1, xAxis_startY-1, maxBarHeight);\n }\n }",
"@Override\n public void render(Graphics g) {\n\n int x = g.repositionX((int) _coordOrigin._x + (int) _pos._x);\n int y = g.repositionY((int) _coordOrigin._y + ((int) _pos._y * (-1)));\n\n g.newFont(_f, g.repositionX(_lineThickness), _b);\n g.setColor(_c);\n g.drawText(_t, g.getCanvas().getX() + x, g.getCanvas().getY() + y);\n }",
"@Override\n public void setText(String text) {\n myProgressManager.setText2(this, text);\n }",
"@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n if (task.isFinished()) {\n int y = this.getHeight() / 2;\n g.drawLine(0, y, this.getWidth(), y);\n }\n }",
"public void update(){\n y -= 1; // Making the text float up\n // Making the text more transparent\n color = new Color(color.getRed(), color.getGreen(), color.getBlue(), color.getAlpha() - 2);\n }",
"public void showDrawMessage() {\n\t\tsetStatusBar(DRAW_MSG);\n\t}",
"private void updateStatusText() {\n Piece.Color playerColor = board.getTurnColor();\n\n if(board.isGameOver()) {\n if(board.isDraw()) {\n tvShowStatus.setTextColor(Color.BLUE);\n tvShowStatus.setText(\"DRAW\");\n }\n else if (board.getWinnerColor() == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK WINS\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE WINS\");\n }\n }\n else if(playerColor == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE\");\n }\n }",
"public void paintComponent(Graphics g){\n super.paintComponent(g);\n\n //casting the Graphics g to Graphics2D which is the updated version\n Graphics2D g2d = (Graphics2D)g;\n g2d.setFont(new Font(\"Times new Roman,\", Font.PLAIN,20));\n g2d.setColor(Color.white);\n //class rendering hints attribute to specify whether you want objects to be rendered as quickly as possible\n g2d.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\n int y = textY;\n\n for(String line : text.split(\"\\n\")){\n int stringLength = (int)g2d.getFontMetrics().getStringBounds(line,g2d).getWidth();\n int x = getWidth()/2 - stringLength/2;\n g2d.drawString(line,x, y +=28);\n }\n }",
"private void drawStrings(Graphics g, int wid, int hei) {\n Font f = new Font(\"Font.PLAIN\", Font.BOLD, hei / 20);\n g.setFont(f);\n g.setColor(Color.white);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 - 2, hei / 10 - 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 5, hei / 10 * 3 - 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 - 2, hei / 2 - 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 - 2, hei / 2 + hei / 20 + 3);\n g.setColor(Color.black);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20 + 2, hei / 10 + 2);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 9, hei / 10 * 3 + 2);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20 + 2, hei / 2 + 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63 + 2, hei / 2 + hei / 20 + 7);\n g.setColor(Color.red);\n g.drawString(\"LEVEL\", wid / 2 - 3 * wid / 20, hei / 10);\n g.drawString(\"TIME\", wid / 2 - 3 * wid / 20 + 7, hei / 10 * 3);\n g.drawString(\"CHIPS\", wid / 2 - 3 * wid / 20, hei / 2);\n g.drawString(\"LEFT\", wid / 2 - 3 * wid / 20 + hei / 63, hei / 2 + hei / 20 + 5);\n }",
"public void draw() {\n\t\tGL11.glColor3f(0.5f,0.5f,1.0f);\n\t\n\t\t// draw quad\n\t\tGL11.glBegin(GL11.GL_QUADS);\n\t\t\tGL11.glVertex2f(x,y);\n\t\t\tGL11.glVertex2f(x+width,y);\n\t\t\tGL11.glVertex2f(x+width,y+height);\n\t\t\tGL11.glVertex2f(x,y+height);\n\t\tGL11.glEnd();\n\t\t\n\t\tif(text != null || !text.equals(\"\"))\n\t\t\tfont.drawString(text, x, y);\n\t\n\t}",
"private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}",
"public void draw() {\n\t\tp.pushStyle();\n\t\t{\n\t\t\tp.rectMode(PConstants.CORNER);\n\t\t\tp.fill(360, 0, 70, 180);\n\t\t\tp.rect(60f, 50f, p.width - 110f, p.height * 2f * 0.33f - 50f);\n\t\t\tp.rect(60f, p.height * 2f * 0.33f + 50f, p.width - 110f, p.height * 0.33f - 130f);\n\t\t}\n\t\tp.popStyle();\n\n\t\tlineChart.draw(40f, 40f, p.width - 80f, p.height * 2f * 0.33f - 30f);\n\t\tlineChart2.draw(40f, p.height * 2f * 0.33f + 45f, p.width - 80f, p.height * 0.33f - 110f);\n\t\t//p.line(x1, y1, x2, y2);\n\n\t}",
"public void drawNoticeText(int h){\r\n Font font=new Font(\"SanSerif\",Font.BOLD,15); \r\n g.setColor(Color.red);\r\n g.setFont(font);\r\n String t=\"NOTE: All players cannot be on the same team.\";\r\n g.drawString(t,50,265);\r\n t=\"Use WASD to move.\";\r\n g.drawString(t,50,48); \r\n t=\"Press SPACE on the Start Button to Begin!\";\r\n g.drawString(t,120,h-5); \r\n \r\n font=new Font(\"SanSerif\",Font.BOLD,40); \r\n g.setColor(Color.black);\r\n g.setFont(font); \r\n t=\"Settings\";\r\n g.drawString(t,330,40); \r\n }",
"@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv.setText(String.format(\"%1.2f\", ((float)progress+20)/200));\r\n\t\t\t}",
"private void drawText(Graphics2D g, double xCenter, double yCenter, VisualItem item, String text, boolean drawBackground)\n {\n if (m_font == null) \n {\n m_font = item.getFont();\n m_font = FontLib.getFont(m_font.getName(), m_font.getStyle(), m_font.getSize());\n }\n \n g.setFont(m_font);\n FontMetrics fm = DEFAULT_GRAPHICS.getFontMetrics(m_font);\n int textH = fm.getHeight();\n int textW = fm.stringWidth(text);\n \n \t\t// Render a filled circular background\n if (drawBackground)\n {\n \tdouble radius = Math.max(textH, textW) / 2; \t\n \tEllipse2D circle = new Ellipse2D.Double(xCenter - radius, yCenter - radius, radius * 2, radius * 2);\n \tGraphicsLib.paint(g, item, circle, getStroke(item), RENDER_TYPE_FILL);\n }\n \n\t\t// Render the text \n\t\tint textColor = item.getTextColor();\n g.setPaint(ColorLib.getColor(textColor));\n\t\t\n\t boolean useInt = 1.5 > Math.max(g.getTransform().getScaleX(), g.getTransform().getScaleY());\n if ( useInt ) {\n g.drawString(text, (int)xCenter - textW/2, (int)yCenter + textH/2 - 3);\n } else {\n g.drawString(text, (float)xCenter - textW/2, (float)yCenter + textH/2 - 3);\n }\n }",
"@Override\n protected void childDraw(Canvas canvas, float factor) {\n LogUtil.e(TAG, \"childDraw\");\n for (int i = 0; i < tspans.size(); i++) {\n Tspan tspan = tspans.get(i);\n paint.setColor(tspan.getFill());\n paint.setTextSize(tspan.getFont_size() * factor);\n paint.setTypeface(tspan.getFont_family());\n canvas.drawText(tspan.text, x, tspan.y * factor,\n paint);\n x += paint.measureText(tspan.getText());\n paint.reset();\n }\n x=0;\n\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n mTextView.setText(\"\"+i);\n }",
"@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tsuper.paintComponent(g);\n\t\t\tg.setColor(Color.red);\n\t\t\tg.fillRoundRect(30, 30, 240, 140, 30, 30);\n\t\t\tg.setColor(Color.gray);\n\t\t\tg.setFont(new Font(\"Monospaced\", Font.BOLD, 48));\n\t\t\tg.drawString(\"Hallo! Was wenn ich mehr Text habe?\", 65, 110);\n\t\t}",
"public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }",
"@Override\n public void paint(Graphics g, ImageObserver observer) {\n if (font != null)\n g.setFont(font);\n g.setColor(color);\n g.drawString(lName + \": \" + value, x, y);\n }",
"public void update(){\n infoBar = new GreenfootImage (960, 50);\n infoBar.setFont(textFont);\n infoBar.setColor(textColor);\n String output = (\"Trees: \" + numTrees + \" Bushes: \" + numBushes + \" Prey: \" + numPrey + \" Predators: \" + numPredators);\n\n //centres the output on the bar.\n int centre = (960/2) - ((output.length() * 14)/2);\n\n infoBar.drawString(output, centre, 22); //draw the bar.\n this.setImage(infoBar);\n }",
"private void drawTimeLine (Graphics g) {\n g.setColor (parent.parent.parent.rulerColor);\n g.fillRect (0, _yPix - 3 * parent.lineSize, _xPix, 3 * parent.lineSize);\n \n g.setColor (Color.black);\n g.drawLine (0, _yPix - 3 * parent.lineSize, _xPix, _yPix - 3 * parent.lineSize);\n double inchT = parent.getTime (parent.dpi); if (inchT <= 0) return;\n int i = (int)Math.rint (begT / inchT);\n double t = i * inchT;\n while (t < endT) {\n int xcord = i * parent.dpi - parent.getEvtXCord (begT) - \n (int)Math.rint (parent.fm.charWidth ('|') / 2.0);\n \n g.drawString (\"|\", xcord, _yPix - 2 * parent.lineSize - parent.fDescent);\n \n String t1 = (new Float (t)).toString (), t2;\n \n if (t1.indexOf ('E') == -1) {\n\tint index = max;\n\tif (index > t1.length ()) index = t1.length ();\n\tt2 = t1.substring (0, index);\n }\n else {\n\tint exp = t1.indexOf ('E');\n\tString e = t1.substring (exp, t1.length ());\n\t\n\tint si = 5; if (exp < si) si = exp;\n\tString a = t1.substring (0, si);\n\t\n\tt2 = a + e;\n }\n \n g.drawString (t2,\n xcord - (int)Math.rint (parent.fm.stringWidth (t2) / 2.0),\n _yPix - (parent.lineSize + parent.fDescent));\n t = (++i * inchT);\n }\n }",
"public void draw(Graphics2D g2d) {\r\n g2d.setFont(new Font(font, Font.BOLD, size));\r\n g2d.drawString(text, x, y);\r\n }",
"String getProgressString();",
"public void draw(Graphics g){\n\n g.setColor(Color.red);\n g.drawLine(x1,y1,x2,y2);\n g.drawLine(x2,y2,x3,y3);\n g.drawLine(x3,y3,x1,y1);\n g.setFont(new Font(\"Courier\", Font.BOLD, 12));\n DecimalFormat fmt = new DecimalFormat(\"0.##\"); \n g.setColor(Color.blue);\n g.drawString(fmt.format(perimeter()) + \" \" + name,x1+2 , y1 -2);\n \n }",
"@Override\n public void draw( Graphics g )\n {\n g.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\n g.setColor( Color.BLUE );\n g.fillOval( baseX, baseY, myWidth, myHeight );\n g.setColor( Color.BLACK );\n g.drawString( card, baseX + 7, baseY + 20 ); }",
"public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }",
"@Override\n\tpublic void drawShape(Graphics2D g) {\n\t\tsuper.drawShape(g);\n\t\trect.drawAndFillShape(g);\n\t\tuiText.drawShape(g);\n\t}",
"@Override\n\tprotected void draw() {\n\t\tif(p != null) {\n\t\t\tp.pushStyle();\n\t\t\tp.noStroke();\n\t\t\tp.textAlign(PApplet.CENTER,PApplet.CENTER);\n\t\t\tp.textSize(12);\n\t\t\tif(this.isPressed) {\n\t\t\t\tp.fill(122, 138, 153);\n\t\t\t\tp.rect(x,y,width,height);\n\t\t\t\tp.fill(181, 206, 228);\n\t\t\t\tp.rect(x+2,y+2,width-4,height-4);\n\t\t\t\tp.fill(Color.BLACK.getRGB());\n\t\t\t\tp.text(text, x, y,width,height);\n\t\t\t}else {\n\t\t\t\tif(this.isHovered) {\n\t\t\t\t\tthis.p.fill(122, 138, 153);\n\t\t\t\t\tthis.p.rect(x, y, width, height);\n\t\t\t\t\tsetGradient(x+2,y+2,width-5,height-5,new Color(255,255,255),new Color(190, 211, 231));\n\t\t\t\t\tthis.p.fill(Color.BLACK.getRGB());\n\t\t\t\t\tthis.p.text(text, x, y,width,height);\n\t\t\t\t}else {\n\t\t\t\t\tthis.p.fill(122, 138, 153);\n\t\t\t\t\tthis.p.rect(x, y, width, height);\n\t\t\t\t\tsetGradient(x+1,y+1,width-3,height-3,new Color(255,255,255),new Color(190, 211, 231));\n\t\t\t\t\tthis.p.fill(Color.BLACK.getRGB());\n\t\t\t\t\tthis.p.text(text, x, y,width,height);\n\t\t\t\t}\n\t\t\t}\n\t\t\tp.popStyle();\n\t\t}\n\t}",
"public void paint( Graphics g ){\n\t\tColor prev = g.getColor();\r\n\t\t\r\n\t\tColor c = Color.WHITE;\r\n\t\tswitch( state ){\r\n\t\t\tcase YACSNames.TASK_NOT_INITIALIZED: \t\r\n\t\t\t\tc = (worker==null ? Color.WHITE : Color.YELLOW); \r\n\t\t\t\tbreak;\r\n\t\t\tcase YACSNames.TASK_IS_PROCESSING: \t\tc=Color.ORANGE; break;\r\n\t\t\tcase YACSNames.TASK_COMPLETED: \t\t\tc=Color.GREEN; break;\r\n\t\t\tcase YACSNames.TASK_FAILED: \t\t\tc=Color.RED; break;\r\n\t\t}\r\n\t\t\r\n\t\tg.setColor(c);\r\n\t\tg.fillRect(x, y, width, height);\r\n\t\t\r\n\t\tif( state == YACSNames.TASK_COMPLETED && result != YACSNames.RESULT_OK){\r\n\t\t\tg.setColor(Color.RED);\r\n\t\t\t\r\n\t\t\t// draw a miniature rect within the big one\r\n\t\t\t// move 25% to the right, move 25% down, draw 50% to right, 50% down\r\n\t\t\t/*g.fillRect( x+(x/4),\r\n\t\t\t\t\t\ty+(y/4), \r\n\t\t\t\t\t\twidth/2, height/2 );*/\r\n\t\t\tg.drawLine(x, y, x+width, y+height);\r\n\t\t\tg.drawLine(x+width, y, x, y+height);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( restores > 0 ){\r\n\t\t\tg.setColor( Color.BLACK );\r\n\t\t\t//g.drawLine( x, y+restores, x+restores, y );\r\n\t\t\tg.drawLine(x, y, x+width, y+height);\r\n\t\t\tg.drawLine(x+width, y, x, y+height);\r\n\t\t\t\r\n\t\t\tg.setColor( c );\r\n\t\t\tg.fillRect( x+(width/4), y+(height/4), width/2, height/2 );\r\n\t\t\t\r\n\t\t\tg.setColor( Color.BLACK );\r\n\t\t\tg.drawString( String.valueOf(restores), x+(width/3), y+((int)(height*0.75))-2 );\r\n\t\t}\r\n\t\t\r\n\t\tg.setColor(prev);\r\n\t}",
"String progressMessage();",
"public abstract double drawString(AEColor clr, double font_size, String str, double mid_x, double mid_y);",
"void drawLabel(){\n FreeTypeFontGenerator generator = new FreeTypeFontGenerator(Gdx.files.internal(\"Rubik-Regular.ttf\"));\n FreeTypeFontGenerator.FreeTypeFontParameter parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n parameter.size = 25;\n parameter.color = Color.BLACK;\n BitmapFont font2 = generator.generateFont(parameter);\n\n font2.getData().setScale(FONT_SCALE);\n\n font2.draw(game.getBatch(), \"Please insert the IP Address\\n you see on you partner's screen\", 50, 600);\n }",
"@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\n\t\tcanvas.drawArc(mArcRectF, 270, sweepAngle, false, arcPaint);\n\t\tcanvas.drawCircle(mCircleXY, mCircleXY, radius, circlePaint);\n\n\t\ttextPaint.measureText(mShowText, 0, mShowText.length());\n\n\t\tfloat baseLine = (circleWidth / 2)\n\t\t\t\t- ((textPaint.descent() + textPaint.ascent()) / 2);\n\n\t\tcanvas.drawText(mShowText, 0, mShowText.length(), mCircleXY, baseLine,\n\t\t\t\ttextPaint);\n\t}",
"public void draw(Graphics graphics, Game observer){\r\n graphics.setFont(new Font(\"TimesRoman\", Font.BOLD, 20));\r\n graphics.drawString(\"Next wave starts in:\", 400, 200);\r\n graphics.setFont(new Font(\"TimesRoman\", Font.BOLD, 40));\r\n graphics.drawString(String.valueOf(counter), 450, 300);\r\n }",
"public void Draw(Graphics g)\n/* */ {\n/* 55 */ g.setColor(this.m_color);\n/* */ \n/* 57 */ Point prevPt = new Point(0, 0);Point currPt = new Point(0, 0);\n/* */ \n/* 59 */ for (double t = 0.0D; t < 1.01D; t += this.m_tValue) {\n/* 60 */ ptFromTVal(t, currPt);\n/* */ \n/* 62 */ if (t == 0.0D) {\n/* 63 */ prevPt.x = currPt.x;\n/* 64 */ prevPt.y = currPt.y;\n/* */ }\n/* */ \n/* 67 */ g.drawLine(prevPt.x, prevPt.y, currPt.x, currPt.y);\n/* */ \n/* 69 */ if (this.m_showTPoints) {\n/* 70 */ g.fillOval(currPt.x - this.PT_RADIUS, currPt.y - this.PT_RADIUS, this.PT_DIAMETER, this.PT_DIAMETER);\n/* */ }\n/* */ \n/* 73 */ prevPt.x = currPt.x;\n/* 74 */ prevPt.y = currPt.y;\n/* */ }\n/* */ }",
"public void strokeString(float x, float y, String text);",
"private void drawText(Graphics2D g2)\n\t{\n\t\tfinal int PADDING = 5;\n\t\tfinal Rectangle bounds = getBounds();\n\t\tfinal String[] texts = getText().split(\"\\\\ \");\n\n\t\tfinal Font effectiveFont = font.deriveFont(font.getSize() * parent.getZoom());\n\n\t\tfinal FontMetrics metrics = g2.getFontMetrics(effectiveFont);\n\n\t\tfinal int hgt = metrics.getHeight();\n\t\tint adv, offsetY = bounds.y + PADDING + hgt, offsetX = PADDING;\n\t\tg2.setFont(effectiveFont);\n\n\t\tfor (final String text2 : texts)\n\t\t{\n\t\t\tfinal String currentText = text2 + \" \";\n\t\t\tadv = metrics.stringWidth(currentText);\n\n\t\t\tif (offsetX + adv > bounds.width - PADDING * 2)\n\t\t\t{\n\t\t\t\toffsetY += hgt; // new line\n\t\t\t\toffsetX = PADDING;\n\t\t\t}\n\n\t\t\tg2.drawString(currentText, bounds.x + offsetX, offsetY);\n\t\t\toffsetX += adv;\n\t\t}\n\t}",
"public void draw() {\n \n // TODO\n }",
"@Override\n protected final void setGraphics() {\n super.setGraphics();\n Graphics g = toDraw.getGraphics();\n g.setColor(Color.BLACK); \n \n for (int i = 0; i < choices.size(); i++) { \n g.drawString(choices.get(i).getValue(), wGap, (i + 1) * hItemBox);\n }\n }",
"public void paint(Graphics g) {\r\n g.drawString(message, 5, 15);\r\n }",
"private void renderCardStat(Graphics2D g,String str,int yOffset) {\n\t\twhile((currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2) + (this.makeRectangleWidth(g.getFont(), str)) > (this.displayCardBounds.x + this.displayCardBounds.width)) {\r\n\t\t\tg.setFont(new Font(g.getFont().getFamily(),g.getFont().getStyle(),g.getFont().getSize()-1));\r\n\t\t}\r\n\t\tg.drawString(str, currentCardBounds.x + currentCardBounds.width/2 - this.makeRectangleWidth(g.getFont(), str)/2, currentCardBounds.y + currentCardBounds.height + this.makeRectangleHeight(g.getFont(), str) + (yOffset));\r\n\t\t//g.setFont(originalFont);\r\n\t}",
"public void draw()\r\n\t{\r\n\t\tsynchronized (lines)\r\n\t\t{\r\n\t\t\tfor(int i = lines.size()-1; i >= 0; i--)\r\n\t\t\t{\r\n\t\t\t\tlines.get(i).draw();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public int drawString(String text, int x, int y, int color) {\n return this.drawString(text, x, y, color, false);\n }",
"public void drawGameCompleteScreen() {\r\n PennDraw.clear();\r\n\r\n if (didPlayerWin()) {\r\n PennDraw.text(width / 2, height / 2, \"You Win!\");\r\n } else if (didPlayerLose()) {\r\n PennDraw.text(width / 2, height / 2, \"You have lost...\");\r\n }\r\n\r\n PennDraw.advance();\r\n }",
"public static void splashText(String str)\n {\n if (mySplash != null && mySplash.isVisible())\n { // important to check here so no other methods need to know if there\n // really is a Splash being displayed\n\n // erase the last status text\n splashGraphics.setPaint(Color.LIGHT_GRAY);\n //splashGraphics.fill(splashTextArea);\n\n // draw the text\n splashGraphics.setPaint(Color.RED);\n splashGraphics.drawString(str, (int)(splashTextArea.getX() + splashTextArea.getWidth() * .30),(int)(splashTextArea.getY() + 15));\n\n // make sure it's displayed\n mySplash.update();\n }\n }",
"private void drawTrack(Canvas canvas){\n if(trackEnabled){\n progressPaint.setShader(null);\n progressPaint.setColor(mTrackColor);\n if(fillEnabled) {\n progressPaint.setStyle(Paint.Style.FILL);\n initTrack(canvas, true);\n }else {\n progressPaint.setStyle(Paint.Style.STROKE);\n initTrack(canvas, false);\n\n }\n }\n }",
"public void drawText(Canvas canvas) {\n Paint paint = new Paint();\n paint.setColor(Color.rgb(240, 230, 140)); //gold color\n paint.setTextSize(30);\n paint.setTypeface(Typeface.SANS_SERIF);\n\n canvas.drawText(\"SCORE: \" + player.getScore(), WIDTH - 250, HEIGHT - 10, paint); //display player score\n canvas.drawText(\"LEVEL: \" + level, 100, HEIGHT - 10, paint); //display level\n\n if(!player.getPlaying()){ //if player is dead\n paint.setColor(Color.rgb(102, 0, 0));\n paint.setTextSize(50);\n paint.setTypeface(Typeface.DEFAULT_BOLD);\n canvas.drawText(\"OH DEAR, YOU ARE DEAD!\", WIDTH/2 - 320, HEIGHT/2, paint); //print death message\n gameOver();\n }\n }",
"@Override\n public void drawBytes(byte[] buf, int s, int len, int x, int y) {\n graphics.drawBytes(buf, s, len, x, y - descent);\n if (bold) {\n graphics.drawBytes(buf, s, len, x + 1, y - descent);\n }\n\n if (underline) {\n graphics.drawLine(x, y - 1, x + len * char_width, y - 1);\n }\n\n }",
"public void run() {\r\n ouputProgressModel.setPogressStarted(true);\r\n try {\r\n for (int i = 0; i <= 100; i += 10) {\r\n // pause the thread\r\n Thread.sleep(PROCCESS_SLEEP_LENGTH);\r\n // update the percent value\r\n ouputProgressModel.setPercentComplete(i);\r\n SessionRenderer.render(\"progressExample\");\r\n }\r\n }\r\n catch (InterruptedException e) { }\r\n ouputProgressModel.setPogressStarted(false);\r\n }",
"@Override\n public void paint(Graphics g) {\n super.paint(g);\n\n // update the text area lenght\n updateTextAreaLenght();\n\n // update tha number of bars\n updateBars();\n \n // draw internal borders\n drawBorders(g);\n\n // draw the text area\n drawTextArea(g);\n\n // draw the content area\n drawContentArea(g);\n\n // draw bars\n drawBars(g);\n\n }",
"private void drawTextValues(boolean clearing) \r\n\t{\n\t\r\n\t\tdouble initalSize = getWidth() > getHeight() ? getHeight() : getWidth();\r\n\t\t\r\n\t\tdouble w = valueCanvas.getWidth();\r\n\t\tdouble h = valueCanvas.getHeight();\r\n\t\t//valueCanvas.setWidth(50);\r\n\t\t//valueCanvas.setHeight(50);\r\n\t\tGraphicsContext gc = valueCanvas.getGraphicsContext2D();\r\n\t\t\r\n\t\tFont font = Font.font(fontBase.getName(), scaleableFontSize.get());\r\n\t\t//Dieses ist dann zu vollziehen, wenn nur der Wert sich geändert hat.\r\n\t\tif(clearing)\r\n\t\t{\r\n\t\t\r\n\t\t\tgc.clearRect(0, 0, w, h);\r\n\t\t}\r\n\t\t\r\n\t\t//TODO raus\r\n\t\tgc.setFill(Color.RED);\r\n\t\tgc.fillRect(0, 0, valueCanvas.getWidth(), valueCanvas.getHeight());\r\n\t\t\t\r\n\t\t//text color\r\n\t\tgc.setFill(Color.web(\"#00000080\"));\r\n\t\t\r\n\t\tif(majorValue != null)\r\n\t\t{\r\n\t\t\t//initial\r\n\t\t\t //Ermittlung nach dem maximal möglichen Zustand\r\n\t\t\t Bounds maxTextAbmasse = this.getMaxTextWidth(font, this.majorValue);\r\n\t\t\t if(maxTextAbmasse.getWidth() < w && maxTextAbmasse.getHeight() < h)\r\n\t\t\t {\r\n\t\t\t\t double tempSize = getGreaterFont(initalSize * 0.12, w, h, majorValue);\r\n\t\t\t\t\tif(tempSize != getFontSize().get())\r\n\t\t\t\t\t\tgetFontSize().set(tempSize);\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t double tempSize = getLesserFont(getFontSize().get(), w, h, majorValue);\r\n\t\t\t\t\tif(tempSize != getFontSize().get())\r\n\t\t\t\t\t\tgetFontSize().set(tempSize);\r\n\t\t\t }\r\n\t\t\t font = Font.font(fontBase.getName(), getFontSize().get());\r\n\t\t}\r\n\t\tgc.setFont(font);\r\n\t\t\r\n\t\tText measuringUnit = new Text();\r\n\t\tif(majorValue == null)\r\n\t\t\tmeasuringUnit.setText(\"\");\r\n\t\telse\r\n\t\t\tmeasuringUnit.setText(\" \"+majorValue.getMeasurementUnit());\r\n\t\tmeasuringUnit.setFont(font);\r\n\t\t\r\n\t\tdouble masseinheitX = w - (measuringUnit.getLayoutBounds().getWidth());// + (gaugeSize * 0.015635));\r\n\t\t\r\n\t\tdouble haelfte = measuringUnit.getLayoutBounds().getHeight() / 2d;\r\n\t\tdouble masseinheitY = h/2d + (haelfte/2d);\r\n\t\tgc.fillText(measuringUnit.getText(), masseinheitX, masseinheitY);\r\n\t\t\t\r\n\t\t\r\n\t\tText valueField = new Text();\r\n\t\t\r\n\t\tif(majorValue == null)\r\n\t\t\tvalueField.setText(\"\");\r\n\t\telse\r\n\t\t\tvalueField.setText(String.format(\"%.1f\", majorValue.getCurrentValue()));\r\n\t\tvalueField.setFont(font);\r\n\t\t\r\n\t\tdouble valueX = masseinheitX - (valueField.getLayoutBounds().getWidth());// + (gaugeSize * 0.015635));\r\n\t\tdouble valueY = masseinheitY;\r\n\t\t\r\n\t\tgc.setFont(font);\r\n\t\tgc.fillText(valueField.getText(), valueX, valueY);\r\n\t\t\r\n\t}",
"void doThreshDisplay(){\n\t /// init colors\n\t int greenFill = color(125,125,0, 65);\n\t int redFill = color(255,0,0,65);\n\t int blueFill = color(0,0,255, 85);\n\t //\n\t float spacing = 15;\n\t // \n\t textFont(SanSerif);\n\t /// hint(ENABLE_NATIVE_FONTS) ;\n\t \n\t /// position\n\t float dPosY3 = 0-height/2;\n\t float dPosY2 = 0-height/2 + spacing;\n\t float dPosY1 = 0-height/2 + spacing + spacing;\n\t \n\t /// make the text flush with the display bar\n\t float dPosX3 = 0-width/2 + (threshold3 * .5f) + 10f;\n\t float dPosX2 = 0-width/2 + (threshold2 * .5f) + 10f;\n\t float dPosX1 = 0-width/2 + (threshold1 * .5f) + 10f;\n\t \n\t // thresh 3 -- green squares\n\t strokeWeight(1);\n\t \n\t fill(greenFill);\n\t stroke(64,208,0);\n\t rect(0-width/2, dPosY3, threshold3 * .5f, 10f);\n\t fill(255,255,0);\n\t text(\"BACKGROUND: \" + threshold3 * .5, dPosX3, dPosY3 + 10);\n\t \n\t \n\t /// thresh 2 -- red circles\n\t fill(redFill);\n\t stroke(204,0,0);\n\t /// rotate(-15);\n\t rect(0-width/2,dPosY2, threshold2 * .5f, 10f);\n\t fill(204,0,0);\n\t text(\"MIDDLEGROUND: \" + threshold2 * .5f, dPosX2, dPosY2 + 10f);\n\t \n\t //// thresh 1 -- blue triangles\n\t fill(blueFill);\n\t stroke(0,24,255);\n\t /// rotate(-15);\n\t rect(0-width/2, dPosY1, threshold1 * .5f, 10f);\n\t fill(0,24,255);\n\t text(\"FOREGROUND: \" + threshold1 * .5, dPosX1, dPosY1 + 10);\n\t \n\t \n\n\n\t}",
"public void paint(Graphics g) {\n\n\t\t// Horizontale Linie zwischen Spielfeld 1 & 2\n\t\tg.setColor(Color.black);\n\t\tg.drawLine(396, 20, 396, 415);\n\t\tg.drawLine(398, 20, 398, 415);\n\t\tg.drawLine(400, 20, 400, 415);\n\t\tg.drawLine(402, 20, 402, 415);\n\t\tg.drawLine(404, 20, 404, 415);\n\n\t\t// Horizontale Linie zwischen Spielfeld 2 & Chat\n\t\tg.setColor(Color.black);\n\t\tg.drawLine(780, 20, 780, 415);\n\t\tg.drawLine(782, 20, 782, 415);\n\t\tg.drawLine(784, 20, 784, 415);\n\t\tg.drawLine(786, 20, 786, 415);\n\t\tg.drawLine(788, 20, 788, 415);\n\n\t\t// Text fuer den Status\n\t\tg.setFont(new Font(\"Serif\", Font.BOLD, 18));\n\t\tg.drawString(\"Dein Spielfeld\", 115, 30);\n\t\tg.setColor(Color.red);\n\t\tg.drawString(this.status, 100, 55);\n\t\n\n\t\t// Chat Font\n\t\tg.setFont(new Font(\"Serif\", Font.BOLD, 18));\n\t\tg.setColor(Color.red);\n\t\tg.drawString(\"Chat!\", 900, 55);\n\t\tg.setFont(new Font(\"Serif\", Font.BOLD, 12));\n\t\tg.setColor(Color.red);\n\t\tg.drawString(\"Du bist Spieler \" + spielerNummer, 900, 80);\n\n\t\tg.setColor(Color.black);\n\t\tg.drawString(\"Dein Herausforderer\", 500, 30);\n\n\t\t// Spielfeld 1 Beschriftung zeichnen\n\t\tfor (int i = 30; i < 330; i = i + 30) {\n\t\t\t\n\t\t\tg.setFont(new Font(\"Serif\", Font.BOLD, 14));\n\t\t\tif (i == 300) {\n\t\t\t\tg.drawString(Integer.toString(i / 30), startX + i - 25,\n\t\t\t\t\t\tstartY - 5);\n\t\t\t} else {\n\t\t\t\tg.drawString(Integer.toString(i / 30), startX + i - 20,\n\t\t\t\t\t\tstartY - 5);\n\t\t\t}\n\t\t\tg.drawString(String.valueOf((char) (i / 30 + 64)), startX - 15,\n\t\t\t\t\tstartY + i - 10);\n\t\t}\n\t\t// Linien zeichnen\n\t\tfor (int i = 0; i < 330; i = i + 30) {\n\t\t\tg.drawLine(startX + i, startY, startX + i, endY);\n\t\t\tg.drawLine(startX, startY + i, endX, startY + i);\n\t\t}\n\t\t// Hover effekte und treffer fuer Spiefeld 1\n\t\tfor (int i = 0; i < 300; i = i + 30) {\n\t\t\tfor (int j = 0; j < 300; j = j + 30) {\n\t\t\t\t// Koordinaten\n\t\t\t\tint x = i / 30;\n\t\t\t\tint y = j / 30;\n\t\t\t\t// Wenn keine Schiffe gesetzen werden\n\t\t\t\tif (!setzeSchiffe) {\n\t\t\t\t\t//Noch kein schuss auf dem Feld dann blauen Hover\n\t\t\t\t\tif (spielfeld1[x][y] == 0) {\n\t\t\t\t\t\tif (startX + i + 1 == 30 * lastX + 1\n\t\t\t\t\t\t\t\t&& startY + j + 1 == 30 * lastY + 1) {\n\t\t\t\t\t\t\tg.setColor(Color.blue);\n\t\t\t\t\t\t\tg.fillRect(30 * lastX + 1, 30 * lastY + 1, 29, 29);\n\t\t\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\t\t\tg.drawLine(30 * lastX + 1 + 10,\n\t\t\t\t\t\t\t\t\t30 * lastY + 1 + 10, 30 * lastX + 1 + 20,\n\t\t\t\t\t\t\t\t\tlastY * 30 + 1 + 20);\n\t\t\t\t\t\t\tg.drawLine(30 * lastX + 1 + 20,\n\t\t\t\t\t\t\t\t\t30 * lastY + 1 + 10, 30 * lastX + 1 + 10,\n\t\t\t\t\t\t\t\t\tlastY * 30 + 1 + 20);\n\t\t\t\t\t\t}\n\t\t\t\t\t// geschossen aber kein Treffer\n\t\t\t\t\t} else if (spielfeld1[x][y] == 1) {\n\t\t\t\t\t\t// Wenn hover dann gray\n\t\t\t\t\t\tif (startX + i + 1 == 30 * lastX + 1\n\t\t\t\t\t\t\t\t&& startY + j + 1 == 30 * lastY + 1) {\n\t\t\t\t\t\t\tg.setColor(Color.gray);\n\t\t\t\t\t\t\tg.fillRect(30 * lastX + 1, 30 * lastY + 1, 29, 29);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//Kein Hover dann DarkGrey\n\t\t\t\t\t\t\tg.setColor(Color.darkGray);\n\t\t\t\t\t\t\tg.fillRect(startX + i + 1, startY + j + 1, 29, 29);\n\t\t\t\t\t\t}\n\t\t\t\t\t//Wenn treffer\n\t\t\t\t\t} else if (spielfeld1[x][y] == 2) {\n\t\t\t\t\t\t// wenn maus ueber feld dann Orange-Hover \n\t\t\t\t\t\tif (startX + i + 1 == 30 * lastX + 1\n\t\t\t\t\t\t\t\t&& startY + j + 1 == 30 * lastY + 1) {\n\t\t\t\t\t\t\tg.setColor(Color.orange);\n\t\t\t\t\t\t\tg.fillRect(30 * lastX + 1, 30 * lastY + 1, 29, 29);\n\t\t\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\t\t\tg.drawLine(30 * lastX + 1 + 10,\n\t\t\t\t\t\t\t\t\t30 * lastY + 1 + 10, 30 * lastX + 1 + 20,\n\t\t\t\t\t\t\t\t\tlastY * 30 + 1 + 20);\n\t\t\t\t\t\t\tg.drawLine(30 * lastX + 1 + 20,\n\t\t\t\t\t\t\t\t\t30 * lastY + 1 + 10, 30 * lastX + 1 + 10,\n\t\t\t\t\t\t\t\t\tlastY * 30 + 1 + 20);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// wenn maus ueber feld dann Roten-Hover \n\t\t\t\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\t\t\tg.fillRect(startX + i + 1, startY + j + 1, 29, 29);\n\t\t\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\t\t\tg.drawLine(startX + i + 1 + 10,\n\t\t\t\t\t\t\t\t\tstartY + j + 1 + 10, startX + i + 1 + 20,\n\t\t\t\t\t\t\t\t\tstartY + j + 1 + 20);\n\t\t\t\t\t\t\tg.drawLine(startX + i + 1 + 20,\n\t\t\t\t\t\t\t\t\tstartY + j + 1 + 10, startX + i + 1 + 10,\n\t\t\t\t\t\t\t\t\tstartY + j + 1 + 20);\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// Spielfeld2\n\t\tint lstartX = 450;\n\t\tint lendX = 750;\n\t\tg.setColor(Color.black);\n\t\t// Beschriftung des Feld 2\n\t\tfor (int i = 30; i < 330; i = i + 30) {\n\t\t\tg.setFont(new Font(\"Serif\", Font.BOLD, 14));\n\t\t\tif (i == 300) {\n\t\t\t\tg.drawString(Integer.toString(i / 30), lstartX + i - 25,\n\t\t\t\t\t\tstartY - 5);\n\t\t\t} else {\n\t\t\t\tg.drawString(Integer.toString(i / 30), lstartX + i - 20,\n\t\t\t\t\t\tstartY - 5);\n\t\t\t}\n\t\t\tg.drawString(String.valueOf((char) (i / 30 + 64)), lstartX - 15,\n\t\t\t\t\tstartY + i - 10);\n\t\t}\n\t\t//Linen des 2. Spiefeldes\n\t\tfor (int i = 0; i < 330; i = i + 30) {\n\t\t\tg.drawLine(lstartX + i, startY, lstartX + i, endY);\n\t\t\tg.drawLine(lstartX, startY + i, lendX, startY + i);\n\t\t}\n\n\t\t// Hover effekte\n\t\tfor (int i = 0; i < 300; i = i + 30) {\n\t\t\tfor (int j = 0; j < 300; j = j + 30) {\n\t\t\t\tint x = i / 30;\n\t\t\t\tint y = j / 30;\n\t\t\t\t//Fuers schiffe setzen\n\t\t\t\tif (gesetzeSchiffe.contains(new Point(x, y)) && setzeSchiffe) {\n\t\t\t\t\t//gesetzte schiffe schwart malen\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(lstartX + i + 1, startY + j + 1, 29, 29);\n\t\t\t\t//schiffe duerfen gesetzen werden\n\t\t\t\t} else if (setzeSchiffe) {\n\t\t\t\t\t// Hover effekt\n\t\t\t\t\tif (lstartX + i + 1 == 30 * lastX + 1\n\t\t\t\t\t\t\t&& startY + j + 1 == 30 * lastY + 1) {\n\t\t\t\t\t\tif (gesetzeSchiffe.contains(new Point(x, y))) {\n\t\t\t\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\t\t\tg.fillRect(30 * lastX + 1, 30 * lastY + 1, 29, 29);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tg.setColor(Color.blue);\n\t\t\t\t\t\t\tg.fillRect(30 * lastX + 1, 30 * lastY + 1, 29, 29);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tint anzahl = ships[anzahlschiffe - 1];\n\t\t\t\t\t\t// Drehung in X-Richtug\n\t\t\t\t\t\tif (drehen) {\n\t\t\t\t\t\t\t// Wie lang ist das Schiff?\n\t\t\t\t\t\t\tfor (int k = 0; k < anzahl; k++) {\n\t\t\t\t\t\t\t\t//Innerhalb des Spielfeldes Malen\n\t\t\t\t\t\t\t\tif (lstartX + i + 1 + k * 30 < lendX) {\n\t\t\t\t\t\t\t\t\tif (!gesetzeSchiffe.contains(new Point(x\n\t\t\t\t\t\t\t\t\t\t\t+ k, y)))\n\t\t\t\t\t\t\t\t\t\tg.setColor(Color.blue);\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\t\t\t\t\tg.fillRect(lstartX + i + 1 + k * 30, startY\n\t\t\t\t\t\t\t\t\t\t\t+ j + 1, 29, 29);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t// Drehung in Y-Richtug\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Wie lang ist das Schiff?\n\t\t\t\t\t\t\tfor (int k = 0; k < anzahl; k++) {\n\t\t\t\t\t\t\t\t//Innerhalb des Spielfeldes Malen\n\t\t\t\t\t\t\t\tif (startY + k * 30 + j + 1 < endY) {\n\t\t\t\t\t\t\t\t\tif (!gesetzeSchiffe.contains(new Point(x, y\n\t\t\t\t\t\t\t\t\t\t\t+ k)))\n\t\t\t\t\t\t\t\t\t\tg.setColor(Color.blue);\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\t\t\t\t\tg.fillRect(lstartX + i + 1, startY + k * 30\n\t\t\t\t\t\t\t\t\t\t\t+ j + 1, 29, 29);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Wenn keine schiffe gesetzt werden\n\t\t\t\t} else {\n\t\t\t\t\t// Kein schuss auf das Feld = DarkGrey\n\t\t\t\t\tif (spielfeld2[x][y] == 0\n\t\t\t\t\t\t\t&& gesetzeSchiffe.contains(new Point(x, y))) {\n\t\t\t\t\t\tg.setColor(Color.darkGray);\n\t\t\t\t\t\tg.fillRect(lstartX + i + 1, startY + j + 1, 29, 29);\n\t\t\t\t\t// Schuss = Gray\n\t\t\t\t\t} else if (spielfeld2[x][y] == 1) {\n\t\t\t\t\t\tg.setColor(Color.gray);\n\t\t\t\t\t\tg.fillRect(lstartX + i + 1, startY + j + 1, 29, 29);\n\t\t\t\t\t//Treffer mit Roten-Kreuz\n\t\t\t\t\t} else if (spielfeld2[x][y] == 2) {\n\t\t\t\t\t\tg.setColor(Color.red);\n\t\t\t\t\t\tg.fillRect(lstartX + i + 1, startY + j + 1, 29, 29);\n\t\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\t\tg.drawLine(lstartX + i + 1 + 10, startY + j + 1 + 10,\n\t\t\t\t\t\t\t\tlstartX + i + 1 + 20, startY + j + 1 + 20);\n\t\t\t\t\t\tg.drawLine(lstartX + i + 1 + 20, startY + j + 1 + 10,\n\t\t\t\t\t\t\t\tlstartX + i + 1 + 10, startY + j + 1 + 20);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Chat-GUI am \"Ende\" zeichnen\n\t\tsuper.paint(g);\n\t}",
"public synchronized void progress(String s){\n\t\tif(printStdErr){\n\t\t\tSystem.err.println(\"[PROGRESS] \" + s);\n\t\t}\n\t}",
"public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }",
"public void drawStepsVisualization(){\n\n visualization = new ProgressBar(context,null,android.R.attr.progressBarStyleHorizontal);\n visualization.setMax(numberOfSteps);\n visualization.setProgress(startProgressAt);\n visualization.getProgressDrawable().setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_IN);\n\n this.addView(visualization);\n\n }",
"@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}",
"public void drawHealthBar() {}",
"public void draw() { \n\t\tbackground(255); // Clear the screen with a white background\n\t\tfill(0);\n\t\ttextAlign(LEFT);\n\t\ttextSize(12);\n\t\t\n\t\tif (runCount == 0) {\n\t\t\tboard.onClick();\n\t\t} else if (runCount > 0) {\n\t\t\trunCount--;\n\t\t}\n\t\t\n\t\tif (board != null) {\n\t\t\tboard.draw(this, 0, 0, height, height);\n\t\t}\n\t\t\n\t}",
"public void drawText(final String text, final int xPos, final int yPos, final Color color){\n font.setColor(Color.BLACK);\n font.setScale(0.51f);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n \n font.setColor(Color.WHITE);\n font.setScale(0.5f);\n batch.begin();\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n font.setScale(1f);\n }",
"@Override\r\n public void paintComponent(Graphics g)\r\n {\n super.paintComponent(g);\r\n g.setColor(getParent().getBackground());\r\n g.fillRect(0, getHeight() / 2, getWidth(), getHeight());\r\n g.setColor(new Color(153, 153, 204));\r\n stringValue = Float.toString(_getValue());\r\n g.drawString(stringValue, getWidth() / 2 - (int) (stringValue.length() * 1.8f), getHeight() / 2 + 10);\r\n }"
] |
[
"0.73363537",
"0.65666336",
"0.6543222",
"0.6542439",
"0.6492756",
"0.6466985",
"0.64575225",
"0.6368956",
"0.6351277",
"0.6329414",
"0.62877274",
"0.627101",
"0.6257851",
"0.61865205",
"0.6161535",
"0.61521965",
"0.6147802",
"0.6128749",
"0.6128541",
"0.6087086",
"0.6085782",
"0.608506",
"0.60756224",
"0.6068834",
"0.6066936",
"0.6060294",
"0.6045048",
"0.6033397",
"0.60126835",
"0.59857494",
"0.59850794",
"0.59792507",
"0.5973587",
"0.5957468",
"0.5948086",
"0.5947711",
"0.5943394",
"0.5941113",
"0.59401304",
"0.5935573",
"0.59316736",
"0.5924748",
"0.5923644",
"0.5917784",
"0.5917636",
"0.59061456",
"0.59055406",
"0.5903119",
"0.58962935",
"0.58790326",
"0.58721",
"0.5869357",
"0.5858611",
"0.58581084",
"0.5845694",
"0.58407646",
"0.58260906",
"0.58247817",
"0.58243555",
"0.5822854",
"0.582024",
"0.5819599",
"0.58186966",
"0.5817517",
"0.5812405",
"0.5804834",
"0.58042556",
"0.58026534",
"0.5793141",
"0.57865095",
"0.5780292",
"0.577574",
"0.5774383",
"0.576784",
"0.5766909",
"0.57635236",
"0.57619464",
"0.5758587",
"0.57494116",
"0.57471436",
"0.5745716",
"0.57390386",
"0.57385045",
"0.57279885",
"0.5714683",
"0.57138467",
"0.57111835",
"0.5711122",
"0.5709182",
"0.57047725",
"0.5700285",
"0.56950027",
"0.5693541",
"0.56852454",
"0.56849384",
"0.5683022",
"0.5681715",
"0.5681466",
"0.5681189",
"0.56794214"
] |
0.8053152
|
0
|
set progress animate type
|
public void setAnimateType(@AnimateType int type){
this.mAnimateType = type;
setObjectAnimatorType(type);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setProgress(float progress);",
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void setProgress(int value);",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"private void setObjectAnimatorType(int animatorType){\n Log.e(TAG, \"AnimatorType>>>>>>\"+animatorType );\n switch (animatorType){\n case ACCELERATE_DECELERATE_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n }\n\n mInterpolator = new AccelerateDecelerateInterpolator();\n //progressAnimator.setInterpolator(new AccelerateDecelerateInterpolator());\n break;\n\n case LINEAR_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n }\n mInterpolator = new LinearInterpolator();\n //progressAnimator.setInterpolator(new LinearInterpolator());\n break;\n\n case ACCELERATE_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n mInterpolator = new AccelerateInterpolator();\n }\n //progressAnimator.setInterpolator(new AccelerateInterpolator());\n break;\n\n case DECELERATE_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n }\n mInterpolator = new DecelerateInterpolator();\n //progressAnimator.setInterpolator(new DecelerateInterpolator());\n break;\n\n case OVERSHOOT_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n }\n mInterpolator = new OvershootInterpolator();\n //progressAnimator.setInterpolator(new OvershootInterpolator());\n break;\n }\n }",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"public void setProgress(String progress) {\n this.progress = progress;\n }",
"public void startProgressAnimation(){\n progressAnimator = ObjectAnimator.ofFloat(this,\"progress\",mStartProgress, mEndProgress);\n Log.e(TAG, \"progressDuration: \"+ mProgressDuration);\n progressAnimator.setInterpolator(mInterpolator);\n progressAnimator.setDuration(mProgressDuration);\n progressAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float progress = (float) animation.getAnimatedValue(\"progress\");\n if(updateListener != null){\n updateListener.onCircleProgressUpdate(CircleProgressView.this, progress);\n }\n\n }\n });\n progressAnimator.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animator) {\n if(updateListener != null){\n updateListener.onCircleProgressStart(CircleProgressView.this);\n }\n }\n\n @Override\n public void onAnimationEnd(Animator animator) {\n if(updateListener != null){\n updateListener.onCircleProgressFinished(CircleProgressView.this);\n }\n }\n\n @Override\n public void onAnimationCancel(Animator animator) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animator) {\n\n }\n });\n progressAnimator.start();\n }",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"public void animateTo(float percent, long duration, TimeInterpolator interpolator) {\n if (currentProgress == percent || percent < 0f || percent > 1f) return;\n ValueAnimator animator = ValueAnimator.ofFloat(currentProgress, percent);\n animator.getDuration();\n animator.setDuration(duration != -1 ? duration : this.duration);\n animator.setInterpolator(interpolator != null ? interpolator : this.interpolator);\n animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n setProgress((float) animation.getAnimatedValue());\n }\n });\n animator.start();\n }",
"private void setProgress(String what)\n {\n if (progressBar != null)\n {\n double elapsed = (System.currentTimeMillis() - startMs) / 1000.;\n String etl = String.format(\"Elapsed: %4.0f\", elapsed);\n progressBar.setEstTime(etl);\n progressBar.setWorkingOn(what);\n progressBar.setProgress(-1);\n }\n }",
"public void setProgress(int percent) {\n setProgress((float) percent / 100);\n }",
"public void setProgress(int progress) {\r\n\t\tif (mProgress != progress) {\r\n\t\t\tmProgress = progress;\r\n\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, progress, false);\r\n\t\t\t}\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}",
"public void setProgress(float p) {\n _progress = Math.max(0.0f, Math.min(1.0f, p));\n }",
"public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }",
"public void setProgressDuration(int duration){\n this.mProgressDuration = duration;\n }",
"public void setProgress(int progress) {\n \t\t\tsynchronized (this) {\n \t\t\t\tm_progress = progress;\n \t\t\t\tthis.notify();\n \t\t\t}\n \t\t}",
"@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}",
"public void setGreenAnimation(){\n va.setDuration(75);\n va.setEvaluator(new ArgbEvaluator());\n va.setRepeatCount(ValueAnimator.INFINITE);\n va.setRepeatMode(ValueAnimator.REVERSE);\n va.start();\n\n //va.cancel();\n }",
"private void setProgressPercent(Integer integer) {\n\t\t\n\t}",
"@Override\n public void setAnim(int nextIn, int nextOut, int quitIn, int quitOut) {\n if (manager != null) {\n manager.setAnim(nextIn, nextOut, quitIn, quitOut);\n }\n }",
"T setSequencedAnimation(Boolean sequencedAnimation);",
"protected abstract void animate(int anim);",
"public void setProgress(int progress) {\n\t\tif (progress > mMax || progress < 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n\t\t}\n\t\tmProgress = progress;\n\t\tinvalidate();\n\t}",
"@NonNull\n public AnimationItfCore updateCurrentAnimationProgress(@IntRange(from = 0, to = 100) int progress) {\n mChanged |= mCurrentAnimation != null && mCurrentAnimation.updateProgress(progress);\n return this;\n }",
"public void onAnimationUpdate(float fraction, T value);",
"public void setZoomAnimationStyle(int style) {\n\t//zoomAnimationStyle = style;\n}",
"void startProgress();",
"public void onProgress(int pos);",
"void onProgress(float progress);",
"@Override\n protected void animStart() {\n }",
"public void setProgress( boolean onOff );",
"public void anim() {\n // start the timer\n t.start();\n }",
"public void progressMade();",
"public void mo1539b(int progress) {\n this.f4002h.setProgress(progress);\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"public void setAnimation()\n {\n if(speed<0)\n {\n if(animationCount % 4 == 0)\n animateLeft();\n }\n else\n {\n if(animationCount % 4 == 0)\n animateRight();\n }\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }",
"protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }",
"@Override\n public void animate() {\n }",
"private void updateAgentChangeFromSlider(int progress) {\n\t\tplayer.setAgentNumberChange(progress / 10);\n\n\t}",
"@Override\n public void showProgress() {\n\n }",
"public void mo1532a(int progress) {\n this.f3965a.f4003i.setProgress(progress);\n }",
"public abstract void setProgress (int currentStep, int totalSteps);",
"public void setProgressPublic(int progress) {\n\t\tsuper.setProgress(progress);\n\t}",
"@Override\n public void onAnimationStart(Animation animation) {\n number++;\n }",
"public void updateAnimation() {\n\t\tif (anim < 1000) {\n\t\t\tanim++;\n\t\t} else anim = 0;\n\t}",
"@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}",
"public void uploadingProgressBarSet(int processRate) {\n uploadingProgressBar.setProgress(processRate);\n }",
"public void toggleMovement(int type){\n\t\tif(type == 1){\n\t\t\tcurrLeftAnim = walkLeft;\n\t\t\tcurrRightAnim = walkRight;\n\t\t}\n\t\telse if(type == 2){\n\t\t\tcurrLeftAnim = runLeft;\n\t\t\tcurrRightAnim = runRight;\n\t\t}\n\t\telse if(type == 3){\n\t\t\tcurrLeftAnim = stillLeft;\n\t\t\tcurrRightAnim = stillRight;\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void setProgressValue(float value) {\n\t\tprogress_.setValue(value);\n\t}",
"public Builder setProgress(\n int index, int value) {\n ensureProgressIsMutable();\n progress_.set(index, value);\n onChanged();\n return this;\n }",
"public Builder setProgress(\n int index, int value) {\n ensureProgressIsMutable();\n progress_.set(index, value);\n onChanged();\n return this;\n }",
"public Builder setProgress(\n int index, int value) {\n ensureProgressIsMutable();\n progress_.set(index, value);\n onChanged();\n return this;\n }",
"private void toggleProgress() {\n if (progWheel.getVisibility() == View.VISIBLE) {\n // Needs its own thread for timing control\n Handler handler = new Handler();\n final Runnable r = new Runnable() {\n public void run() {\n if (progWheel.getVisibility()\n == View.VISIBLE) {\n progWheel.setVisibility(View.GONE);\n }\n }\n };\n handler.postDelayed(r, 1);\n } else if (progWheel.getVisibility() == View.GONE) {\n progWheel.spin();\n progWheel.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n public void onAnimationStart(Animator animation) {\n }",
"@Test\n public void setProgression() {\n final int progress = 16;\n final String progressText = \"0:16\";\n expandPanel();\n onView(withId(R.id.play)).perform(click()); //Pause playback\n\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n\n onView(withId(R.id.mpi_progress)).check(matches(withText(progressText)));\n assertTrue(getPlayerHandler().getTimeElapsed() == progress);\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\tpublic void setType(int type) {\n\t\t_dmGtStatus.setType(type);\n\t}",
"public interface AnimationCallback<T> {\r\n\r\n /**\r\n * when animation is running\r\n * \r\n * @param fraction the time percent, the value [0.0-1.0]\r\n * @param value animation value\r\n */\r\n public void onAnimationUpdate(float fraction, T value);\r\n}",
"public void setProgressDialog(Progress pb)\n {\n progressBar = pb;\n }",
"private void animateProgressBar(ProgressBar progressBar, Double origin, Double target){\n Timeline timeline = new Timeline(\n new KeyFrame(Duration.ZERO, new KeyValue(progressBar.progressProperty(), origin)),\n new KeyFrame(Duration.millis(500), e-> {\n }, new KeyValue(progressBar.progressProperty(), target))\n );\n timeline.play();\n }",
"@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void progress(Object... obj) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"public void setAnimate(final boolean animate) {\n this.animate = animate;\n }",
"@Override\n public void onAnimationEnd(Animator animator) {\n if (b == 50) {\n animation(50, 75, 20000, progressBar);\n } else if (b == 75) {\n animation(75, 88, 40000, progressBar);\n } else if (b == 88) {\n animation(88, 94, 80000, progressBar);\n } else if (b == 94) {\n animation(94, 97, 160000, progressBar);\n } else if (b == 97) {\n animation(97, 99, 320000, progressBar);\n }\n }",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }",
"public void setType (int type) {\n this.type = type;\n }",
"public void setType (int type) {\n this.type = type;\n }",
"@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"public void setType( final int type )\n {\n this.type = type;\n fireActionChanged();\n }",
"public void setType(int type) {\n type_ = type;\n }",
"public void setType(int t){\n this.type = t;\n }",
"@Override\n public void onAnimationStart(Animation arg0) {\n \n }",
"public void setAnimateCount(int count) {\n this.mAnimCount = count;\n }",
"@FloatRange(from = 0, to = 1) float getProgress();",
"private void changeSeekbar() {\n\n seekbar.setProgress(mediaPlayer.getCurrentPosition());\n\n if(mediaPlayer.isPlaying())\n {\n runnable=new Runnable() {\n @Override\n public void run() {\n changeSeekbar();\n }\n };\n handler.postDelayed(runnable,1000);\n }\n\n }",
"public void setBar(JProgressBar bar){\n prog = bar;\n }",
"public void setAnimation( int animationIndex )\n\t{\n\t\tanimation.setCurrentSequence( animationIndex );\n\t}",
"@Override\n public void onAnimationStart(Animation animation) {\n }",
"public CollapsingProgressView(@NotNull Context context, @Nullable AttributeSet attributeSet) {\n super(context, attributeSet);\n Intrinsics.checkNotNullParameter(context, \"context\");\n AnimatorSet animatorSet = new AnimatorSet();\n ValueAnimator ofInt = ValueAnimator.ofInt(0, 255);\n ofInt.setDuration(100L);\n ofInt.setInterpolator(new LinearInterpolator());\n ofInt.addUpdateListener(new a(0, this));\n ValueAnimator ofFloat = ValueAnimator.ofFloat(0.0f, 360.0f);\n ofFloat.setDuration(770L);\n GlobalAnimationsKt.setSafeRepeatCount(ofFloat, 10);\n ofFloat.setInterpolator(new LinearInterpolator());\n ofFloat.addUpdateListener(new a(1, this));\n animatorSet.playSequentially(ofInt, ofFloat);\n animatorSet.addListener(new AnimatorListenerAdapter(this) { // from class: com.avito.android.user_adverts.root_screen.adverts_host.header.menu_panel.CollapsingProgressView$$special$$inlined$apply$lambda$10\n public final /* synthetic */ CollapsingProgressView a;\n\n {\n this.a = r1;\n }\n\n @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener\n public void onAnimationStart(@Nullable Animator animator) {\n CollapsingProgressView.access$setCurrentAnimator$p(this.a, animator);\n }\n });\n this.s = animatorSet;\n c(context, attributeSet);\n }",
"@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}"
] |
[
"0.7034664",
"0.7024269",
"0.7024269",
"0.68545854",
"0.6795917",
"0.66856027",
"0.6242665",
"0.61909497",
"0.61570746",
"0.61537546",
"0.60824764",
"0.604561",
"0.60179853",
"0.59951776",
"0.5988551",
"0.598582",
"0.596461",
"0.595703",
"0.59510875",
"0.5938947",
"0.59388274",
"0.59319633",
"0.5878659",
"0.58531165",
"0.5842278",
"0.58043975",
"0.57979596",
"0.5786911",
"0.57566774",
"0.5731589",
"0.570917",
"0.57078725",
"0.56958985",
"0.56883913",
"0.5665887",
"0.5632508",
"0.56305826",
"0.5600218",
"0.55943614",
"0.55943614",
"0.55943614",
"0.55943614",
"0.5584201",
"0.55825573",
"0.5563528",
"0.5562247",
"0.5560438",
"0.5546826",
"0.5536215",
"0.5515352",
"0.5509327",
"0.55064905",
"0.5503339",
"0.5491484",
"0.5463662",
"0.54536974",
"0.5441153",
"0.5433375",
"0.543177",
"0.542317",
"0.542317",
"0.542317",
"0.542291",
"0.5422616",
"0.541647",
"0.54163855",
"0.54163855",
"0.54058754",
"0.53942764",
"0.5380562",
"0.53769696",
"0.5376601",
"0.53705513",
"0.53602415",
"0.53602415",
"0.5358813",
"0.5358481",
"0.5357477",
"0.5357477",
"0.5357378",
"0.5349114",
"0.5349114",
"0.5345751",
"0.5344467",
"0.5344467",
"0.53437316",
"0.53427345",
"0.53391784",
"0.5337811",
"0.5337644",
"0.53360695",
"0.5333704",
"0.5322818",
"0.5321479",
"0.5318716",
"0.5309791",
"0.5305123",
"0.5305123",
"0.53022146",
"0.52968967"
] |
0.7514004
|
0
|
set object animation type by received
|
private void setObjectAnimatorType(int animatorType){
Log.e(TAG, "AnimatorType>>>>>>"+animatorType );
switch (animatorType){
case ACCELERATE_DECELERATE_INTERPOLATOR:
if(mInterpolator!=null){
mInterpolator = null;
}
mInterpolator = new AccelerateDecelerateInterpolator();
//progressAnimator.setInterpolator(new AccelerateDecelerateInterpolator());
break;
case LINEAR_INTERPOLATOR:
if(mInterpolator!=null){
mInterpolator = null;
}
mInterpolator = new LinearInterpolator();
//progressAnimator.setInterpolator(new LinearInterpolator());
break;
case ACCELERATE_INTERPOLATOR:
if(mInterpolator!=null){
mInterpolator = null;
mInterpolator = new AccelerateInterpolator();
}
//progressAnimator.setInterpolator(new AccelerateInterpolator());
break;
case DECELERATE_INTERPOLATOR:
if(mInterpolator!=null){
mInterpolator = null;
}
mInterpolator = new DecelerateInterpolator();
//progressAnimator.setInterpolator(new DecelerateInterpolator());
break;
case OVERSHOOT_INTERPOLATOR:
if(mInterpolator!=null){
mInterpolator = null;
}
mInterpolator = new OvershootInterpolator();
//progressAnimator.setInterpolator(new OvershootInterpolator());
break;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setAnimateType(@AnimateType int type){\n this.mAnimateType = type;\n setObjectAnimatorType(type);\n }",
"public String getAnimationType() {\r\n return this.type;\r\n }",
"public int getType() {\n\t\treturn ANIMATED;\n\t}",
"public static Animation createBoxAnimation(String type) {\n\t\treturn null;\n\t}",
"T setSequencedAnimation(Boolean sequencedAnimation);",
"public void animation(Animation animation) {\n this.getAnimation().setAs(animation);\n this.getFlags().flag(Flag.ANIMATION);\n }",
"public abstract void setType();",
"public void setType(Object type)\r\n {\r\n\tthis.type = type;\r\n }",
"void setObjectType(String objectType);",
"@Override\n public void setAnim(int nextIn, int nextOut, int quitIn, int quitOut) {\n if (manager != null) {\n manager.setAnim(nextIn, nextOut, quitIn, quitOut);\n }\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"protected void setTimeline(RMTimeline aTimeline)\n{\n // Stop listening to old timeline property changes\n if(getTimeline()!=null) getTimeline().removePropertyChangeListener(this);\n \n // Set anim\n put(\"Anim\", aTimeline);\n \n // Set owner to this shape and start listening for property changes\n if(aTimeline!=null) {\n aTimeline.setOwner(this);\n aTimeline.addPropertyChangeListener(this);\n }\n}",
"public final native void setType(String type) /*-{\n this.setType(type);\n }-*/;",
"public void setTime(int aTime)\n{\n // Get shape timeline and set time (if non-null)\n RMTimeline timeline = getTimeline();\n if(timeline!=null) {\n undoerDisable();\n timeline.setTime(aTime);\n undoerEnable();\n }\n \n // If children have same animator as this shape, recurse setTime to children\n if(getAnimator()==getChildAnimator())\n for(int i=0, iMax=getChildCount(); i<iMax; i++)\n getChild(i).setTime(aTime);\n}",
"public void sendAnimationPacket(ViewableEntity entity, int animationType) {\n Object packet = ReflectUtils.newInstance(\"PacketPlayOutAnimation\");\n ReflectUtils.setField(packet, \"a\", entity.getEntityId());\n ReflectUtils.setField(packet, \"b\", animationType);\n sendPacket(packet);\n }",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t}",
"@Override\n public void onAnimationStart(Animation arg0) {\n \n }",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}",
"public interface TitaniumUIAnimationStartHandler {\n\t/**\n\t * <b>start</b>\n\t * <p>\n\t * fired when the animation starts\n\t * @param source the source object that fired the event\n\t * @param type the name of the event fired\n\t */\n\tvoid start(JavaScriptObject source, JavaScriptObject type);\n}",
"void setType(Type type)\n {\n this.type = type;\n }",
"protected abstract void animate(int anim);",
"@Override\n public void onAnimationStart(Animator animation) {\n }",
"public interface ImageAnimation \n { \n }",
"public void setType(String type);",
"public void setType(String type);",
"public void setType(String type);",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n public void onAnimationStart(Animation anim) {\n }",
"@Override\n\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\n\t\t}",
"public abstract void animationStarted();",
"void setType(java.lang.String type);",
"@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onAnimationStart(Animation arg0) {\n\t\t\n\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"protected abstract void animationLogicTemplate();",
"@Override\n public void onAnimationStart(Animator arg0) {\n\n }",
"@Override\n public void animate() {\n }",
"@Override\n public void onAnimationStart(Animator arg0) {\n\n }",
"@Override\n\tpublic void setType(Type t) {\n\t\theldObj.setType(t);\n\t}",
"@JSProperty(\"type\")\n void setType(Type value);",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public void onAnimationStart(Animation arg0) {\n\t}",
"@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t\t}",
"public static void \nsetTransparencyType(SoState state, int type)\n{\n\t SoLazyElement elem = SoLazyElement.getInstance(state);\n\t if (elem.coinstate.transptype != type) {\n\t getWInstance(state).setTranspTypeElt(type);\n\t }\n}",
"@Override\n\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\n\t\t}",
"@Override public void onAnimationStart(Animator arg0) {\n\n }",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\n\t\t\t}",
"protected void sequence_Type(ISerializationContext context, Type semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"AnimationView setAnimationView(AnimationView view);",
"@Override\n\tpublic boolean create(Animations obj) {\n\t\treturn false;\n\t}",
"public void setAnimaciones( ){\n\n int x= 0;\n Array<TextureRegion> frames = new Array<TextureRegion>();\n for(int i=1;i<=8;i++){\n frames.add(new TextureRegion(atlas.findRegion(\"demon01\"), x, 15, 16, 15));\n x+=18;\n }\n this.parado = new Animation(1 / 10f, frames);//5 frames por segundo\n setBounds(0, 0, 18, 15);\n\n }",
"@Override\r\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"public void setObjectType(Byte objectType) {\n this.objectType = objectType;\n }",
"@Override\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n protected void animStart() {\n }",
"@Override\n\t\t\t\t\tpublic void onAnimationStart(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n public void onAnimationStart(Animation animation) {\n\n }",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationStart(Animation animation) {\n\r\n\t\t\t}",
"@Override\r\n public void onAnimationStart(Animator arg0)// 动画开始\r\n {\n\r\n }",
"public void animate()\n\t{\n\t\tanimation.read();\n\t}",
"@Override\n public void setObjectType(String type) {\n this.objectType = type;\n }",
"@Override\n public void onAnimationStart(Animation animation) {\n }",
"protected void\nsetTranspTypeElt( int type) \n\n{\n coinstate.transptype = type;\n}",
"void setShape(IReadableShape shape) {\n keyframes.clear();\n if (!Objects.isNull(shape)) {\n this.shape = shape;\n this.updateKeyframes();\n }\n this.resetFrameList();\n\n }",
"@Override\n\tpublic void onAnimationStart(Animation animation) {\n\n\t}",
"public void setAnimation( int animationIndex )\n\t{\n\t\tanimation.setCurrentSequence( animationIndex );\n\t}",
"AnimationObject3d getParsedAnimationObject();",
"public synchronized void addAnimation(AnimationBase a) {\n addAnimation(a, 1);\n }",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public void setType(int type) {\n type_ = type;\n }",
"private void setType(String type) {\n mType = type;\n }",
"@Override\n public void onAnimationStart(Animation animation) {\n\n }",
"public void setType(final AngelType type) {\n this.type = type;\n }",
"public void setAnimation()\n {\n if(speed<0)\n {\n if(animationCount % 4 == 0)\n animateLeft();\n }\n else\n {\n if(animationCount % 4 == 0)\n animateRight();\n }\n }",
"public void onAnimationStart(Animation animation) {\n\r\n }",
"public void setType(Material type) {\n this.type = type;\n }",
"public void onAnimationStart(Animation animation) {\n }",
"public void toggleMovement(int type){\n\t\tif(type == 1){\n\t\t\tcurrLeftAnim = walkLeft;\n\t\t\tcurrRightAnim = walkRight;\n\t\t}\n\t\telse if(type == 2){\n\t\t\tcurrLeftAnim = runLeft;\n\t\t\tcurrRightAnim = runRight;\n\t\t}\n\t\telse if(type == 3){\n\t\t\tcurrLeftAnim = stillLeft;\n\t\t\tcurrRightAnim = stillRight;\n\t\t}\n\t}",
"public void setType(int t){\n this.type = t;\n }",
"public void setType(Type t) {\n type = t;\n }",
"public void setType(int atype)\n {\n type = atype;\n }",
"@Override\n\t public void onAnimationStart(Animation animation) {\n\t \n\t }",
"public StartAnimationHandler(SceneRenderer initRenderer)\r\n {\r\n renderer = initRenderer;\r\n }",
"public void setType(String objectType)\n\t{\n\t\tthis.type = objectType;\n\t}",
"public void change_type(int type_){\n\t\ttype = type_;\n\t\tif(type != 0)\n\t\t\toccupe = 1;\n\t}"
] |
[
"0.7135162",
"0.6761938",
"0.61580426",
"0.6044573",
"0.60366035",
"0.5851511",
"0.5717695",
"0.57170945",
"0.5655668",
"0.56528354",
"0.56336385",
"0.56336385",
"0.56286335",
"0.55980724",
"0.5565562",
"0.5562612",
"0.5535784",
"0.5535784",
"0.5529189",
"0.5511295",
"0.55063766",
"0.55048394",
"0.55035347",
"0.5501147",
"0.5499466",
"0.5469609",
"0.54680455",
"0.54654694",
"0.54654694",
"0.54654694",
"0.5461148",
"0.5461148",
"0.5461148",
"0.5461148",
"0.545068",
"0.54473644",
"0.5435926",
"0.54319847",
"0.54319847",
"0.5430191",
"0.5429566",
"0.5421567",
"0.54140973",
"0.5405859",
"0.54052377",
"0.53986776",
"0.5398087",
"0.539055",
"0.5382924",
"0.5382924",
"0.53680307",
"0.5361268",
"0.5356098",
"0.5354521",
"0.5354521",
"0.5354521",
"0.5354521",
"0.5350614",
"0.5346328",
"0.5346328",
"0.5342413",
"0.53326494",
"0.53322744",
"0.5331778",
"0.5328731",
"0.53248537",
"0.53207326",
"0.5314462",
"0.5309884",
"0.5305768",
"0.530486",
"0.530486",
"0.530486",
"0.52944624",
"0.5288991",
"0.52878624",
"0.52827686",
"0.5279349",
"0.52774644",
"0.527297",
"0.52645737",
"0.5263813",
"0.52590895",
"0.5259074",
"0.5254577",
"0.52503765",
"0.52392924",
"0.523509",
"0.52269346",
"0.52268326",
"0.52133",
"0.5210497",
"0.51936746",
"0.519359",
"0.51928335",
"0.51901716",
"0.5184929",
"0.5182574",
"0.51792204",
"0.5168477"
] |
0.6281159
|
2
|
set the width of progress stroke
|
public void setTrackWidth(int width){
this.mTrackWidth = Utils.dp2px(mContext, width);
progressPaint.setStrokeWidth(width);
updateTheTrack();
refreshTheView();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final native void setStrokeWidth(double width) /*-{\n\t\tthis.setStrokeWidth(width);\n\t}-*/;",
"void setStrokeWidth(float strokeWidth) {\n/* 180 */ this.mStrokeWidth = strokeWidth;\n/* */ }",
"public void setLineWidth(int width)\n {\n if (width > 0)\n lineWidth = width;\n else \n lineWidth = 1;\n }",
"public final Pen changeWidth(float width) {\n Color resultColor = this.color;\n LineStyle style = LineStyleUtils.getLineStyle(stroke);\n BasicStroke resultStroke = LineStyleUtils.getStroke(style, width);\n return new Pen(resultStroke, resultColor);\n }",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setStrokeWidth(float aValue)\n{\n // Set line width\n if(getStroke()==null) setStroke(new RMStroke(RMColor.black, aValue));\n else getStroke().setWidth(aValue);\n}",
"public void setLineWidth(float lineWidth);",
"@Override\n public void setLineWidth(double width) {\n graphicsEnvironmentImpl.setLineWidth(canvas, width);\n }",
"public void setLineWidth(float width)\r\n\t{\r\n\t\t// not implemented\r\n\t\tg.setPenWidth((int) width);\r\n\t}",
"public void setLineWidth(int width) {\n mPaintLine.setStrokeWidth(width);\n }",
"public void setWidth(int w){ widthRadius = w; }",
"public void setEdgeStrokeDestinationWidth(double value) {\n _edgeStrokeDestinationWidth = value;\n }",
"private void setBorderWidth(int width) {\n this.borderWidth = width;\n Rectangle r = (Rectangle) this.getChildren().get(0);\n r.setStrokeWidth(width);\n }",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"public void setNodeStrokeDestinationWidth(double value) {\n _nodeStrokeDestinationWidth = value;\n }",
"public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }",
"public void setStrokeWidth(Float strokeWidth) {\n\t\tthis.strokeWidth = strokeWidth;\n\t\tstroke = null;\n\t}",
"public abstract void setLineWidth(float lineWidth);",
"public void setNormalOvalStrokeWidth(int width) {\n this.mNormalOvalStrokeWidth = width;\n }",
"public void setLineWidth(Integer width) {\n style.setBorderWidth(width);\n }",
"public void setStrokeWidth(float strokeWidth) {\n this.setValue(STROKE_WIDTH_PROPERTY_KEY, strokeWidth);\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setCurrentStrokeValue(float value,int color) {\n currentStrokeValue = value;\n if(strokeWidthView != null) {\n strokeWidthView.setProgress((int) value,color);\n strokeWidthView.invalidate();\n }\n }",
"public void setLineWidth ( int width ) {\r\n\t\tline_width = width;\r\n\t}",
"void setWidth(int width);",
"void setWidth(int width);",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public final DoubleProperty strokeWidthProperty() {\n return getStrokeAttributes().widthProperty();\n }",
"public void setThickness(float thickness){\n this.thickness = thickness;\n }",
"public void setArcwidth(double aw) {\n\t\t\tarcwidth.set(aw);\n\t\t}",
"protected void setLineWidth(int width) {\r\n\t\tif (primaryShape instanceof Shape) {\r\n\t\t\t((Shape) primaryShape).setLineWidth(width);\r\n\t\t}\r\n\t}",
"public void setWidth(float width) {\n this.xRadius = width/2f;\n }",
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public void setThickness(int thickness) {\n\t\tthis.thickness = thickness;\n\t\tint ht = thickness;\n\t\tht = ht - ht / 2 + 2;\n\t\tif (thickness % 2 != 0)\n\t\t\tht -= 1;\n\t\trectF = new RectF(ht, ht, getWidth() - ht, getHeight() - ht);\n\t\tinvalidate();\n\t}",
"@Override\n\tpublic void setWidth(float width) {\n\n\t}",
"public void setWidth(int n){ // Setter method\n \n width = n; // set the class attribute (variable) radius equal to num\n }",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setWidth(final String value)\n {\n width = value;\n }",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}",
"public float getStrokeWidth() {\n\t\treturn strokeWidth;\n\t}",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}",
"public void setPenThickness(double index) {\n\t\tpenThickness = index;\n\t}",
"public void setSelectOvalStrokeWidth(int width) {\n this.mSelectOvalStrokeWidth = width;\n }",
"void setProgress(float progress);",
"public void setWidth(int w) {\n this.width = w;\n }",
"public void setWidth(int width) {\n this.width = width;\n }",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"public void setTrackWidth(int width) {\n invalidateRect.set(thumbOffset.getPointXToInt() - thumbCurvature, 0, thumbOffset.getPointXToInt() + thumbWidth, recyclerView.getHeight());\n trackWidth = width;\n updateThumbPath();\n invalidateRect.fuse(thumbOffset.getPointXToInt() - thumbCurvature, 0, thumbOffset.getPointXToInt() + thumbWidth, recyclerView.getHeight());\n recyclerView.invalidate();\n }",
"public void setEdgeStrokeSourceWidth(double value) {\n _edgeStrokeSourceWidth = value;\n }",
"public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;",
"public double getLineWidth(\n )\n {return lineWidth;}",
"public void setGestureLineWidth(int width) {\n this.mGestureLineWidth = width;\n }",
"@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }",
"public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }",
"public void setWidth(final int width) {\n\t\tthis.width = width;\n\t\tthis.widthString = \"%-\" + width + \"s\";\n\t}",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"@JSProperty(\"tickWidth\")\n void setTickWidth(double value);",
"void setProgress(int progress);",
"void setProgress(int progress);",
"double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }",
"@Override\r\n public void setWidth(String width) {\n }",
"void setFitWidth(short width);",
"public Builder setWidth(int value) {\n \n width_ = value;\n onChanged();\n return this;\n }",
"private void setCurrentWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmCurrentWidth = width;\r\n\t\t}\r\n\t}",
"public void yBindWidth(String bind_name, ObservableValue<? extends Number> width, boolean stroke_included);",
"public void setWidth(int w) {\n this.W = w;\n }",
"public void setPrefWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getPrefWidth()) return;\n firePropertyChange(\"PrefWidth\", put(\"PrefWidth\", w), w, -1);\n}",
"double getNewWidth();",
"public float getStrokeWidth() { return getStroke()==null? 0 : getStroke().getWidth(); }",
"public void setProgress(int value);",
"public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}",
"public void setWidth(String width) {\r\n this.width = width;\r\n }",
"public void setThumbWidth(int width) {\n invalidateRect\n .set(thumbOffset.getPointXToInt() - thumbCurvature, thumbOffset.getPointYToInt(), thumbOffset.getPointXToInt() + thumbWidth, thumbOffset.getPointYToInt() + thumbHeight);\n thumbWidth = width;\n updateThumbPath();\n invalidateRect\n .fuse(thumbOffset.getPointXToInt() - thumbCurvature, thumbOffset.getPointYToInt(), thumbOffset.getPointXToInt() + thumbWidth, thumbOffset.getPointYToInt() + thumbHeight);\n recyclerView.invalidate();\n }",
"@Override\n\t\tpublic void setValue(int n) {\n\t\t\tsuper.setValue(n);\n\t\t\tview.getDownpanel().getThicknessStatus().setThickness(n);\n\t\t\tview.getModel().setThickness(n);\n\t\t}",
"public void setNodeStrokeSourceWidth(double value) {\n _nodeStrokeSourceWidth = value;\n }",
"public void setWidth(int w) {\n\t\twidth = w;\n\t}",
"@Override\n public double getWidth() {\n return width;\n }",
"public void setThickness(String s)\n\t{\n\t\tthis.lineThickness = Integer.parseInt(s.substring(0, 1));\n\t}",
"public void setWidth(int width) {\n\t\tthis.width = width;\n\t}",
"public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }",
"public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }",
"public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }",
"public void setWidth(int width) {\n\t\tw = width;\n\t}",
"public void setWidth(double aValue)\n{\n if(_width==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Width\", _width, _width = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}",
"private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }",
"int getTextStrokeWidth();",
"public void setBrushSize(float newSize) {\n float pixelAmount = TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,\n newSize, getResources().getDisplayMetrics());\n brushSize = newSize;\n Log.i(LOG_TAG, \"Brush size: \" + newSize + \" pizel Amount:\" + pixelAmount);\n drawPaint = new Paint();\n drawPath.setPaint(drawPaint);\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n\n }",
"public void setWidth( int width ) {\n\t\t_width = width;\n\t}",
"double width () {\n Text text = new Text(event.name);\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }",
"public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }",
"protected int getOuterStrokeWidth(final ARXNode node, final int width) {\n int result = node.isChecked() ? width / 100 : 1;\n result = node.isChecked() ? result + 1 : result;\n return result >=1 ? result < 1 ? 1 : result : 1;\n }",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"public void setWidth( int width )\n {\n int charWidth = ChatMenuAPI.getCharacterWidth( getCharacter( ) );\n length = width / charWidth;\n }",
"public int grWidth() { return width; }",
"public void setWidth(int width) {\n this.width = width;\n this.rightEdge = RRConstants.getRightEdge(width);\n }"
] |
[
"0.70682377",
"0.7031226",
"0.69524354",
"0.69476116",
"0.686313",
"0.6825032",
"0.67488855",
"0.6745912",
"0.67084193",
"0.6705954",
"0.6671186",
"0.6659248",
"0.66198367",
"0.658665",
"0.6579754",
"0.654102",
"0.652579",
"0.65062094",
"0.6478818",
"0.6462512",
"0.6450724",
"0.6447817",
"0.643553",
"0.6426363",
"0.6417111",
"0.6417111",
"0.6402788",
"0.6361752",
"0.63395786",
"0.63161665",
"0.6271684",
"0.62614256",
"0.6260262",
"0.62301695",
"0.6205281",
"0.61907876",
"0.6183145",
"0.6166968",
"0.6166968",
"0.61631846",
"0.6136298",
"0.6133682",
"0.61315805",
"0.6120112",
"0.60551745",
"0.60542274",
"0.6048824",
"0.60382867",
"0.6032899",
"0.60313594",
"0.6023503",
"0.60103804",
"0.59892195",
"0.5961867",
"0.5961503",
"0.595681",
"0.5940313",
"0.5939343",
"0.5936869",
"0.5910014",
"0.5898406",
"0.5892479",
"0.5878184",
"0.5878184",
"0.58679706",
"0.58409834",
"0.5838499",
"0.58374035",
"0.58287364",
"0.58282006",
"0.58201456",
"0.57874274",
"0.57767403",
"0.5775445",
"0.5761955",
"0.57608664",
"0.57532537",
"0.57404494",
"0.5734929",
"0.5733905",
"0.57316583",
"0.57255363",
"0.5721444",
"0.57106805",
"0.5703359",
"0.5700746",
"0.5682837",
"0.56827927",
"0.56765133",
"0.56720144",
"0.56686974",
"0.5665369",
"0.5654307",
"0.56524414",
"0.56477994",
"0.56464183",
"0.56408674",
"0.56280637",
"0.5616277",
"0.5609383"
] |
0.7002257
|
2
|
set text size for inner text
|
public void setProgressTextSize(int size){
mProgressTextSize = Utils.sp2px(mContext, size);
refreshTheView();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setTextSize(float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mTextSize = Utils.convertDpToPixel(size);\n }",
"public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }",
"public void setTextSize() {\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n }",
"private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}",
"private void setDefaultTextSize() {\n this.text_size = (int) default_text_size;\n }",
"public void setTextSize(float textSize) {\n mTextContainer.setTextSize(textSize);\n }",
"public float getTextSize() {\n return mTextSize;\n }",
"public void setTextSizePx(float size) {\n mPaint.setTextSize(size);\n mSpaceWidth = mPaint.measureText(\" \");\n invalidate();\n }",
"public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}",
"public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }",
"public void setSubtitleFontSize(int size) {\n\t\tthis.subtitle_fontsize = size;\n\t}",
"public float getTextSize() {\n return mTextContainer.getTextSize();\n }",
"public void setTitleFontSize(int size) {\n\t\tthis.title_fontsize = size;\n\t}",
"public void setFontSizeText( String text )\r\n\t{\r\n\t\t// set the text in the Font Size text field as per the String passed in\r\n\t\tfontSizeTextField.setText( text );\r\n\t}",
"private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }",
"private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}",
"public float getTextSizePx() {\n return mPaint.getTextSize();\n }",
"public int getLabelTextSize(){\n return labelTextSize;\n }",
"private void fitTextToView() {\n int currentTextSize = (int) getTextSize();\n if (currentTextSize == mMinTextSize) {\n return;\n }\n\n final float width = getAvailableWidth();\n final String currentText = getText().toString();\n\n if (width <= 0 || TextUtils.isEmpty(currentText)) {\n return;\n }\n\n mTextPaint.set(getPaint());\n mTextPaint.setTextSize(currentTextSize);\n\n while (mTextPaint.measureText(currentText) > width && currentTextSize > mMinTextSize) {\n currentTextSize -= mTextSizeIncrement;\n mTextPaint.setTextSize(currentTextSize);\n }\n\n currentTextSize = Math.max(currentTextSize, mMinTextSize);\n setEllipsize(currentTextSize == mMinTextSize ? TextUtils.TruncateAt.END : null);\n\n setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize);\n }",
"public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }",
"public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }",
"public ComDialogBuilder setTitleTextSize(int textsize) {\n if(dialogTitle!=null){\n dialogTitle.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }",
"private void setRawTextSize(float f) {\n if (f != this.mTextView.getPaint().getTextSize()) {\n this.mTextView.getPaint().setTextSize(f);\n boolean bl = false;\n if (Build.VERSION.SDK_INT >= 18) {\n bl = this.mTextView.isInLayout();\n }\n if (this.mTextView.getLayout() != null) {\n this.mNeedsAutoSizeText = false;\n try {\n Method method = this.getTextViewMethod(\"nullLayouts\");\n if (method != null) {\n method.invoke((Object)this.mTextView, new Object[0]);\n }\n }\n catch (Exception exception) {\n Log.w((String)\"ACTVAutoSizeHelper\", (String)\"Failed to invoke TextView#nullLayouts() method\", (Throwable)exception);\n }\n if (!bl) {\n this.mTextView.requestLayout();\n } else {\n this.mTextView.forceLayout();\n }\n this.mTextView.invalidate();\n }\n }\n }",
"public int getFontSize();",
"public int setTextSize(int textSelection) {\n // Sets the text size in Settings\n Settings.setTextSize(textSelection);\n\n // Sets fragments text size\n textView.setTextSize(getResources().getInteger(Settings.getTextSize()));\n return Settings.getTextSize();\n }",
"public float getFontSize();",
"public void setHightlightedTextSize(Float size) {\n\n if (size > 24f)\n size = 24f;\n if (size < 6f)\n size = 6f;\n\n mHightlightedTextSize = Utils.convertDpToPixel(size);\n\n }",
"private static void setTextSizeForWidth(Paint paint, String text, float desiredWidth) {\n\n // Pick a reasonably large value for the test. Larger values produce\n // more accurate results, but may cause problems with hardware\n // acceleration. But there are workarounds for that, too; refer to\n // http://stackoverflow.com/questions/6253528/font-size-too-large-to-fit-in-cache\n final float defaultTextSize = 44f;\n paint.setTextSize(defaultTextSize);\n Rect textBounds = new Rect();\n paint.getTextBounds(text, 0, text.length(), textBounds);\n // Calculate the desired size as a proportion of our testTextSize.\n if (textBounds.width() > desiredWidth) {\n float desiredTextSize = defaultTextSize * (desiredWidth / textBounds.width());\n\n // Set the paint for that size.\n paint.setTextSize(desiredTextSize);\n }\n\n }",
"public ComDialogBuilder setMessageTextSize(int textsize) {\n if(dialogMsg!=null){\n dialogMsg.setTextSize(TypedValue.COMPLEX_UNIT_SP,textsize);\n }\n return this;\n }",
"@Override\n public int height()\n {\n return textCent.height();\n }",
"public void setFontSize(float fontSize){\n this.fontSize = fontSize;\n }",
"@RestrictTo(value={RestrictTo.Scope.LIBRARY_GROUP})\n void autoSizeText() {\n if (!this.isAutoSizeEnabled()) {\n return;\n }\n if (this.mNeedsAutoSizeText) {\n if (this.mTextView.getMeasuredHeight() <= 0) {\n return;\n }\n if (this.mTextView.getMeasuredWidth() <= 0) {\n return;\n }\n int n = this.invokeAndReturnWithDefault((Object)this.mTextView, \"getHorizontallyScrolling\", false) != false ? 1048576 : this.mTextView.getMeasuredWidth() - this.mTextView.getTotalPaddingLeft() - this.mTextView.getTotalPaddingRight();\n int n2 = this.mTextView.getHeight() - this.mTextView.getCompoundPaddingBottom() - this.mTextView.getCompoundPaddingTop();\n if (n <= 0) {\n return;\n }\n if (n2 <= 0) {\n return;\n }\n RectF rectF = TEMP_RECTF;\n synchronized (rectF) {\n TEMP_RECTF.setEmpty();\n AppCompatTextViewAutoSizeHelper.TEMP_RECTF.right = n;\n AppCompatTextViewAutoSizeHelper.TEMP_RECTF.bottom = n2;\n float f = this.findLargestTextSizeWhichFits(TEMP_RECTF);\n if (f != this.mTextView.getTextSize()) {\n this.setTextSizeInternal(0, f);\n }\n }\n }\n this.mNeedsAutoSizeText = true;\n }",
"public IconBuilder fontSize(int size) {\n\t\tthis.fixedFontSize = size;\n\t\treturn this;\n\t}",
"public String getFontSizeText()\r\n\t{\r\n\t\treturn fontSizeTextField.getText(); // return the text in the Font Size text field\r\n\t}",
"public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}",
"public ModernAutoSizeLabel(String text, int width) {\r\n super(text, width);\r\n }",
"public void adjustTextSize(String str) {\n int i;\n int i2 = this.mMinTextSize;\n int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop();\n int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - this.mEditText.getCompoundPaddingRight();\n this.mWidthLimit = width;\n this.mAvailableSpaceRect.right = (float) width;\n this.mAvailableSpaceRect.bottom = (float) height;\n if (!this.mIsMultiLine || Math.min(getRect().width(), getRect().height()) <= 40.0f) {\n i = binarySearch(i2, this.mMaxTextSize, this.mSizeTester, this.mAvailableSpaceRect);\n } else {\n i = 40;\n }\n this.mEditText.setTextSize(0, (float) i);\n }",
"public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}",
"public LabelBuilder setFontSize(int size) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setSize(size);\n\t\treturn this;\n\n\t}",
"private Text initDescriptionText(){\n Text description = new Text(Values.DESCRIPTION);\n description.setStyle(\"-fx-font-size: 18;\");\n description.setTextAlignment(TextAlignment.CENTER);\n description.wrappingWidthProperty().bind(widthProperty());\n return description;\n }",
"public void setLabelFont(int fontSize){\n Font labelFont = new Font(\"Serif\", Font.PLAIN, fontSize);\n minLabel.setFont(labelFont);\n medLabel.setFont(labelFont);\n maxLabel.setFont(labelFont);\n emptyLabel.setFont(labelFont);\n errorLabel.setFont(labelFont);\n }",
"public ModernAutoSizeLabel(String text) {\r\n super(text, TEXT_COLOR);\r\n }",
"private int getFontSize(LabelGeometry geom)\r\n {\r\n float fontSize = AWTUtilities.getFontSize(geom.getRenderProperties().getFont());\r\n\r\n // Scale based on the view\r\n Function<Kilometers, Float> scaleFunction = geom.getRenderProperties().getScaleFunction();\r\n if (scaleFunction != null)\r\n {\r\n float viewScale = scaleFunction.apply(myViewAltitudeSupplier.get()).floatValue();\r\n fontSize *= viewScale;\r\n }\r\n\r\n return Math.round(fontSize);\r\n }",
"public void setTextViewSize(float px) {\r\n\t\tfloat scaledDensity = getResources().getDisplayMetrics().scaledDensity;\r\n\t\tint sp = (int) (px / scaledDensity);\r\n\t\tsetTextSize(sp);\r\n\t}",
"public int getTextLabelFontSize() {\n\t\treturn mTextLabelFontSize;\n\t}",
"private static void loadTextSizes(Context context)\n\t{\n\t\tDisplayMetrics metrics = context.getResources().getDisplayMetrics();\n\t\tTEXT_SIZE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, metrics);\n\t\tTEXT_SIZE_BIG = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, metrics);\n\t\tPADDING = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, metrics);\n\t\tTEXT_SPACE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, metrics);\n\t}",
"public void setTextLabelFontSize(int mTextLabelFontSize) {\n\t\tthis.mTextLabelFontSize = mTextLabelFontSize;\n\t}",
"public void adjustTextFontSize(View view) {\n if (this.minimumFontSizeInPixels >= FONT_SIZE_EPSILON && (view instanceof TextView)) {\n TextView textView = (TextView) view;\n float densityScale = view.getResources().getDisplayMetrics().density;\n if (densityScale <= 0.0f) {\n densityScale = DEFAULT_SHADOW_RADIUS;\n }\n int value = textView.getWidth() - (textView.getTotalPaddingLeft() + textView.getTotalPaddingRight());\n if (!(this.layoutParams == null || this.layoutParams.optionWidth == null || this.layoutParams.autoFillsWidth)) {\n value -= (int) Math.ceil((double) densityScale);\n }\n if (value > 0) {\n float viewContentWidth = (float) value;\n String text = null;\n if (textView.getText() != null) {\n text = textView.getText().toString();\n }\n if (text != null && text.length() > 0) {\n float previousFontSize = textView.getTextSize();\n textView.setTextSize(0, this.unscaledFontSizeInPixels);\n while (true) {\n float currentFontSize = textView.getTextSize();\n if (currentFontSize >= this.minimumFontSizeInPixels + FONT_SIZE_EPSILON) {\n TextPaint textPaint = textView.getPaint();\n if (textPaint == null) {\n break;\n }\n float textWidth = textPaint.measureText(text);\n if (textWidth <= viewContentWidth) {\n break;\n }\n textView.setTextSize(0, Math.max(Math.min((viewContentWidth / textWidth) * currentFontSize, currentFontSize - densityScale), this.minimumFontSizeInPixels));\n } else {\n break;\n }\n }\n if (Math.abs(textView.getTextSize() - previousFontSize) >= FONT_SIZE_EPSILON) {\n final View finalView = view;\n view.post(new Runnable() {\n public void run() {\n finalView.requestLayout();\n }\n });\n }\n }\n }\n }\n }",
"public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }",
"@Override\n public void changeFontSize(int i) {\n lyricsTV.setTextSize((float) i);\n PreferencesManager pm = PreferencesManager.getInstance();\n pm.setFontSize(i);\n }",
"public double getFontSize(\n )\n {return fontSize;}",
"public ModernAutoSizeLabel(String text, Font font) {\r\n super(text, font);\r\n }",
"public float getFontSize() {\n return fontSize;\n }",
"public void setText(String text, int textSize, Colour textColour) {\n this.text = text;\r\n this.textSize = textSize;\r\n this.textColour = textColour;\r\n xTextOffset = w / 2 - text.length() * 7.666f;\r\n yTextOffset = h / 2 + textSize / 2.6666f;\r\n }",
"protected final void setSubscript() {\n setFontSize((int) (getFontSize() * 0.5d));\n// yOffset += getFontSize();\n }",
"public void setFontSize(int fontSize)\r\n {\r\n myFontSize = fontSize;\r\n }",
"public Builder setContentTextSize(float size) {\n this.contentTextSize = size;\n return this;\n }",
"private void setTextSize(ViewHolder holder) {\n // Get the text size string from SharedPreferences and check for the value associated with the key\n String textSize = sharedPrefs.getString(\n mContext.getString(R.string.settings_text_size_key),\n mContext.getString(R.string.settings_text_size_default));\n\n // Change text size of TextView by using the user's stored preferences\n if(textSize.equals(mContext.getString(R.string.settings_text_size_medium_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp22));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_small_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp20));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp14));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp12));\n } else if(textSize.equals(mContext.getString(R.string.settings_text_size_large_value))) {\n holder.titleTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp24));\n holder.sectionTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.trailTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp18));\n holder.authorTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n holder.dateTextView.setTextSize(TypedValue.COMPLEX_UNIT_PX,\n mContext.getResources().getDimension(R.dimen.sp16));\n }\n }",
"@Override\n public Dimension measureText(String text) {\n return graphicsEnvironmentImpl.measureText(canvas, text);\n }",
"private void updateLineHeight() {\n Text text = new Text(\"AM\");\n text.setFont(new Font(fontType, fontSize));\n lineHeight = round(text.getLayoutBounds().getHeight());\n }",
"public native final EditorBaseEvent fontSize(String val) /*-{\n\t\tthis.fontSize = val;\n\t\treturn this;\n\t}-*/;",
"public DisplayText (GraphicsContext gc, Canvas gameCanvas, int size) {\n\t\tthis.gc = gc;\n\t\tthis.gameCanvas = gameCanvas;\n\t\t\n\t\t vector = Font.loadFont(getClass().getResourceAsStream(\"/fonts/Vectorb.ttf\"), size); //load my custom font at the specified size \n\t}",
"public int getSubtitleFontSize() {\n\t\treturn this.subtitle_fontsize;\n\t}",
"public void setFontSize(int fontSize) {\n this.fontSize = fontSize;\n updateLineHeight();\n updateCursor();\n update();\n }",
"public int getButtonTextSize(){\n return buttonTextSize;\n }",
"double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }",
"private void setFontSize(float newFontSize) {\n\t\tfontSize = newFontSize;\n\t\tproperties.setProperty(\"fontSize\", Float.toString(newFontSize));\n\n\t\t// update all text-based components\n\t\tfor (Component c : components)\n\t\t\tc.setFont(c.getFont().deriveFont(newFontSize));\n\t\t\n\t\t// update machine graphics\n\t\tupdate(); \n\t}",
"public PatchTextStyleProperties fontSize(String fontSize) {\n this.fontSize = fontSize;\n return this;\n }",
"public native final String fontSize() /*-{\n\t\treturn this.fontSize;\n\t}-*/;",
"public static void adjustFontSize(Paint paint, String text,\r\n int charCount, Rect area, boolean isVerticalDirection) {\r\n Rect bounds = new Rect();\r\n paint.getTextBounds(text, 0, text.length(), bounds);\r\n\r\n float currentCharCount;\r\n if (!isVerticalDirection){\r\n currentCharCount = area.width() / (1.0f * bounds.width() / text.length());\r\n } else {\r\n currentCharCount = 1.0f * area.height() / bounds.height();\r\n }\r\n float newTextSize = paint.getTextSize() * currentCharCount / charCount;\r\n\r\n paint.setTextSize(newTextSize);\r\n }",
"public static void setDefaultTextSize(int defaultTextSize) {\n if (defaultTextSize < 0){\n throw new IllegalArgumentException(\"The text size must be >= 0\");\n }\n DEFAULT_TEXT_SIZE = defaultTextSize;\n }",
"public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}",
"public void setFontSize(int fontSize) {\r\n try {\r\n this.setFont(this.getFont().deriveFont((float) fontSize));\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font size\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }",
"public int getFontSize()\n \t{\n \t\treturn 13;\n \t}",
"@RestrictTo(value={RestrictTo.Scope.LIBRARY_GROUP})\n void setAutoSizeTextTypeWithDefaults(int n) {\n if (!this.supportsAutoSizeText()) return;\n if (n != 0) {\n if (n == 1) {\n DisplayMetrics displayMetrics = this.mContext.getResources().getDisplayMetrics();\n this.validateAndSetAutoSizeTextTypeUniformConfiguration(TypedValue.applyDimension((int)2, (float)12.0f, (DisplayMetrics)displayMetrics), TypedValue.applyDimension((int)2, (float)112.0f, (DisplayMetrics)displayMetrics), 1.0f);\n if (!this.setupAutoSizeText()) return;\n this.autoSizeText();\n return;\n }\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Unknown auto-size text type: \");\n stringBuilder.append(n);\n throw new IllegalArgumentException(stringBuilder.toString());\n }\n this.clearAutoSizeConfiguration();\n }",
"public TextView getTextView(String text,int textsize){\n TextView textView=new TextView(context);\n textView.setTextColor(Color.parseColor(\"#000000\"));\n textView.setTextSize(textsize);\n textView.setGravity(Gravity.CENTER);\n textView.setText(text);\n textView.setLayoutParams(layoutParams);\n return textView;\n }",
"public void setSize(String size) {\r\n //System.out.print(\"Setting Size...\");\r\n this.Size = size;\r\n }",
"public FontRenderer setSize(float size) {\n\t\tthis.size = size;\n\t\ttransform.setScale(size);\n\t\t\n\t\treturn this;\n\t}",
"public void setLabelFont(Font f);",
"public int fontSize() {\n\t\treturn fixedFontSize;\n\t}",
"public void grow() {\n\t\thtmlFontSize += 40;\n\t}",
"public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }",
"private void initLrcFontSize() {\n int screeHeight=getResources().getDisplayMetrics().heightPixels;\n int marginLeft=(int)(1.0*screeHeight/9);\n LrcView.defaultTextSize=DensityUtil.px2sp(this, (marginLeft));//设置默认的歌词大小\n LrcView.defaultDividerHeight=marginLeft/2;\n }",
"public int getSwitchTextSize(){\n return switchTextSize;\n }",
"public void setModifierFont(String name, int type, int size) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size);\n _SPR.RefreshModifierFont();\n }",
"public int getFontSize()\r\n {\r\n return myFontSize;\r\n }",
"void setFontScale(\n float s);",
"public final int getFontSize() {\n return fontSize;\n }",
"public int[] verifyFontCanvasSize(Graphics2D g2d, String text, int textWidth, int nodeWidth, int fontSize) {\n while (textWidth >= (nodeWidth - 2)) {\n fontSize = fontSize - 1;\n//\t\tcanvas:attrFont(fontFamily, fontSize, fontStyle);\n g2d.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, fontSize));\n textWidth = (int) Math.round(g2d.getFontMetrics().getStringBounds(text, g2d).getCenterX());\n// labelWidth = canvas:measureText(label);\n }\n return new int[]{textWidth, fontSize};\n }",
"protected int addMultilineTextElement(Element canvas, double x, double y, double width, double lineHeight,\n String text, float fontSize, String anchor, String weight) {\n return addMultilineTextElement(canvas, x, y, width, lineHeight,\n text, fontSize, anchor, weight, \"#000000\", ' ');\n }",
"@Action\n public void addWrappedText() {\n if (Math.random() < .33) {\n addWrappedTextEndChar();\n } else if (Math.random() < .5) {\n addWrappedTextRandom();\n } else {\n addWrappedTextSmall();\n }\n }",
"public void setTextFont(Font font);",
"public void SetTextField()\r\n\t{\n\t\tLoadSettings();\r\n\r\n\t\ttextView_reader.setFileName(fileName);\r\n\t\ttextView_reader.setTextSize(Setting_text_size);\r\n\t\ttextView_reader.setTextColor(DefaultSetting.color[Setting_text_color]);\r\n//\t\ttextView_reader.setBackgroundColor(DefaultSetting.color[Setting_bg_color]);\r\n\t\ttextView_reader.setTextCode(Setting_text_code);\r\n\t\tSystem.out.println(\"Setting_text_size = \" + Setting_text_size);\r\n\t}",
"private void setFont() {\n\t}",
"public FontLabel(String text) {\n super(text, JLabel.CENTER);\n setBackground(Color.white);\n setForeground(Color.black);\n setOpaque(true);\n setBorder(new LineBorder(Color.black));\n setPreferredSize(new Dimension(120, 40));\n }",
"double width () {\n Text text = new Text(event.name);\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }",
"public void centerText() {\r\n int theHeight = window.getGraphPanelHeight() / 2;\r\n int theWidth = window.getGraphPanelWidth() / 2;\r\n int writingHeight = textShape.getHeight() / 2;\r\n int writingWidth = textShape.getWidth() / 2;\r\n textShape.setY(theHeight - writingHeight);\r\n textShape.setX(theWidth - writingWidth);\r\n }",
"public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }",
"public TextButton (String text, int textSize)\n {\n buttonText = text;\n GreenfootImage tempTextImage = new GreenfootImage (text, textSize, Color.BLACK, Color.WHITE);\n myImage = new GreenfootImage (tempTextImage.getWidth() + 8, tempTextImage.getHeight() + 8);\n myImage.setColor (Color.WHITE);\n myImage.fill();\n myImage.drawImage (tempTextImage, 4, 4);\n\n myImage.setColor (Color.BLACK);\n myImage.drawRect (0,0,tempTextImage.getWidth() + 7, tempTextImage.getHeight() + 7);\n setImage(myImage);\n }",
"private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}"
] |
[
"0.76741123",
"0.7644059",
"0.7318365",
"0.7283502",
"0.7218772",
"0.70888066",
"0.6950938",
"0.69442236",
"0.6869883",
"0.68274844",
"0.66793734",
"0.66773725",
"0.66455543",
"0.66248417",
"0.6588465",
"0.651411",
"0.65095556",
"0.6465292",
"0.64559764",
"0.6424379",
"0.6406638",
"0.640639",
"0.63722545",
"0.6358238",
"0.6351205",
"0.6348414",
"0.63469356",
"0.63259256",
"0.6325277",
"0.63109744",
"0.6293365",
"0.62313396",
"0.62243414",
"0.62194765",
"0.6214292",
"0.62129366",
"0.6207166",
"0.61947644",
"0.61844456",
"0.6158436",
"0.6127111",
"0.61206526",
"0.6105045",
"0.61012816",
"0.60982245",
"0.6097816",
"0.60914844",
"0.60874784",
"0.6067782",
"0.6065816",
"0.6057213",
"0.6049897",
"0.60349005",
"0.602921",
"0.6025145",
"0.6024948",
"0.60034055",
"0.59932816",
"0.5983308",
"0.5970931",
"0.59593123",
"0.59510165",
"0.5946675",
"0.59362304",
"0.5932574",
"0.5923707",
"0.59229803",
"0.5920701",
"0.59175825",
"0.5913841",
"0.59024686",
"0.58966285",
"0.5882319",
"0.5878427",
"0.5870851",
"0.58600694",
"0.5854717",
"0.5853019",
"0.5809279",
"0.5807731",
"0.57964426",
"0.57904804",
"0.5775574",
"0.5760631",
"0.5755375",
"0.5746981",
"0.5738844",
"0.57232356",
"0.57137764",
"0.5708257",
"0.5702875",
"0.5679194",
"0.56768817",
"0.5673285",
"0.56704104",
"0.5661058",
"0.56586725",
"0.5656236",
"0.56536216",
"0.56529915"
] |
0.67881835
|
10
|
set text color for progress text
|
public void setProgressTextColor(@ColorInt int textColor){
this.mProgressTextColor = textColor;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setTextColor(String textColor);",
"Color(String text) {\n this.text = text;\n }",
"public void colorText() {\r\n String theColor = textShape.getText();\r\n if (theColor.contains(\"blue\")) {\r\n textShape.setForegroundColor(Color.BLUE);\r\n }\r\n else if (theColor.contains(\"red\")) {\r\n textShape.setForegroundColor(Color.RED);\r\n }\r\n else {\r\n textShape.setForegroundColor(Color.BLACK);\r\n }\r\n }",
"public void setTextColor(RMColor aColor) { }",
"public void setTextColor(int textColor) {\n this.textColor = textColor;\n }",
"public void setTextColor(int color) {\n mTextColor = color;\n }",
"public void setTextColor( Color txtColor ) {\r\n textColor = txtColor;\r\n }",
"private void drawProgressText(Canvas canvas){\n\n if(textVisibility){\n mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mTextPaint.setStyle(Paint.Style.FILL);\n mTextPaint.setTextSize(mProgressTextSize);\n mTextPaint.setColor(mProgressTextColor);\n mTextPaint.setTextAlign(Paint.Align.CENTER);\n\n String progressText = ((int) moveProgress) + \"%\";\n float x = (getWidth() + getPaddingLeft() - getPaddingRight()) / 2;\n float y = (getHeight() + getPaddingTop() - getPaddingBottom() - (mTextPaint.descent() + mTextPaint.ascent())) / 2;\n canvas.drawText(progressText, x , y, mTextPaint);\n\n }\n\n }",
"@Override\n public void setText(String text) {\n myProgressManager.setText2(this, text);\n }",
"public void setTextColor(Color textColor) {\r\n this.textColor = textColor;\r\n }",
"private void highlightText(Text text){\r\n\t text.changeColor(AnimalScript.COLORCHANGE_COLOR, Color.RED, new TicksTiming(0), new TicksTiming(0));\r\n\t }",
"private void setConsoleText(String text) {\n //<font color='red'>red</font>\n consoleView.setText(Html.fromHtml(text), TextView.BufferType.SPANNABLE);\n }",
"public IconBuilder textColor(int color) {\n\t\tthis.textColor = color;\n\t\treturn this;\n\t}",
"public void setTextColor(@ColorInt int textColor) {\n mTextContainer.setTextColor(textColor);\n }",
"void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}",
"public int textColor() {\n\t\treturn textColor;\n\t}",
"public Color getTextColor() {\r\n return textColor;\r\n }",
"@Override\n public void setPriorityTextColor(String textColor) {\n btnPrioritySet.setTextColor(Color.parseColor(textColor));\n }",
"private void setScoreText(){\n if(color != BLACK && color != WHITE){\n scoreLabel.setText(\"Score: Black - \" + calScore(BLACK) + \" White - \" + calScore(WHITE));\n }else {\n scoreLabel.setText(\"Score: \" + calScore(this.color));\n }\n }",
"public Color getTextColor(){\r\n return textColor;\r\n }",
"public static String yellow(String text){\n return ANSI_YELLOW + text + ANSI_YELLOW;\n }",
"public RMColor getTextColor() { return RMColor.black; }",
"public void setTextColor(int color) {\n this.textColor = 0xFF000000 | color; // Remove the alpha channel\n\n if (ad != null) {\n ad.setTextColor(color);\n }\n\n invalidate();\n }",
"@Override\n public void setStatusText(String text) {\n status.setText(text);\n }",
"public Color getTextColor();",
"private void updateTextColor() {\n if (mLauncher == null) {\n return;\n }\n ItemInfo info = (ItemInfo) getTag();\n if (info == null || mSupportCard) {\n return;\n }\n int color = getDyncTitleColor(info);\n mIconTitleColor = color;\n setPaintShadowLayer(color);\n if (getPaint().getColor() != color) {\n setTextColor(color);\n }\n\n }",
"Integer getTxtColor();",
"public static void setGlobalTextColor(Context context, int color){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"textColor\", color);\n edit.apply();\n\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n for(int i = 0 ; i<list.size(); i++){\n list.get(i).setTextColor(color);\n }\n saveOutfitJSON(context, list);\n }\n }",
"public void setStatusText(String text) {\r\n\t\tthis.status_text.setText(text);\r\n\t}",
"public String getTextColor();",
"private void updateStatusText() {\n Piece.Color playerColor = board.getTurnColor();\n\n if(board.isGameOver()) {\n if(board.isDraw()) {\n tvShowStatus.setTextColor(Color.BLUE);\n tvShowStatus.setText(\"DRAW\");\n }\n else if (board.getWinnerColor() == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK WINS\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE WINS\");\n }\n }\n else if(playerColor == Piece.Color.Black) {\n tvShowStatus.setTextColor(Color.BLACK);\n tvShowStatus.setText(\"BLACK\");\n }\n else {\n tvShowStatus.setTextColor(Color.WHITE);\n tvShowStatus.setText(\"WHITE\");\n }\n }",
"@Override\n\tpublic void setStatusText (String text) {\n\t}",
"public void setProgressTextSize(int size){\n mProgressTextSize = Utils.sp2px(mContext, size);\n refreshTheView();\n }",
"public void renderText(String text, int x, int y, int color)\n {\n renderText(text, x, y, color, 1.0f);\n }",
"public int getProgressColor() {\n\t\treturn mProgressPaint.getColor();\n\t}",
"public static String blue(String text){\n return ANSI_BLUE + text + ANSI_BLUE;\n }",
"public void setErrorText(String error, int color){\n errorText.setTextColor(color);\n errorText.setText(error);\n }",
"public static String purple(String text){\n return ANSI_PURPLE + text + ANSI_PURPLE;\n }",
"void setGOLabelTextColor(DREM_Timeiohmm.Treenode treeptr, Color newColor) {\n\t\tif (treeptr != null) {\n\t\t\ttreeptr.goText.setTextPaint(newColor);\n\n\t\t\tfor (int nchild = 0; nchild < treeptr.numchildren; nchild++) {\n\t\t\t\tsetGOLabelTextColor(treeptr.nextptr[nchild], newColor);\n\t\t\t}\n\t\t}\n\t}",
"public CommandViewBuilder setTextColor(Color textColor)\n\t\t{\n\t\t\tthis.textColor = textColor;\n\t\t\treturn this;\n\t\t}",
"public void setStatus(String text) {\n labelStatus.setText(text);\n }",
"void seeRed() {\n\t\tbar.setForeground(Color.RED);\n\t}",
"public Text(String text, Color color, String font)\n {\n this.text = text;\n this.color = color;\n this.font = font;\n \n /*\n GreenfootImage textImg=new GreenfootImage(\" \"+text+\" \", 24, Color.RED, new Color(0, 0, 0, 0));\n GreenfootImage image=new GreenfootImage(textImg.getWidth()+8, textImg.getHeight()+8);\n image.setColor(Color.BLACK);\n image.fill();\n image.setColor(Color.WHITE);\n image.fillRect(3, 3, image.getWidth()-6, image.getHeight()-6);\n image.setColor(Color.YELLOW);\n image.drawImage(textImg, (image.getWidth()-textImg.getWidth())/2, (image.getHeight()-textImg.getHeight())/2);\n setImage(image);\n */\n }",
"private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}",
"@Override\n public void onPageSelected(int index) {\n for (int i = 0; i < tvs.size(); i++) {\n if (i == index) {\n tvs.get(i).setTextColor(Color.BLUE);\n } else {\n tvs.get(i).setTextColor(Color.rgb(55, 55, 55));\n }\n }\n }",
"private void changeTextstr(int currentPoints){\n\n\n switch(currentPoints){\n case 1:\n str.setText(\" very weak\");\n str.setTextColor(Color.RED);\n break;\n case 2:\n str.setText(\" weak\");\n str.setTextColor(Color.parseColor(\"#FF6600\"));\n break;\n case 3:\n str.setText(\" fair\");\n str.setTextColor(Color.parseColor(\"#FFFF66\"));\n break;\n case 4:\n str.setText(\" strong\");\n str.setTextColor(Color.GREEN);\n break;\n case 5:\n str.setText(\" very strong\");\n str.setTextColor(Color.parseColor(\"#2C6700\"));\n }\n\n\n }",
"private void setDefaultTextColor(Context context) {\n\n }",
"public void setText(String text, int textSize, Colour textColour) {\n this.text = text;\r\n this.textSize = textSize;\r\n this.textColour = textColour;\r\n xTextOffset = w / 2 - text.length() * 7.666f;\r\n yTextOffset = h / 2 + textSize / 2.6666f;\r\n }",
"private void updateTextColor(TextView view, boolean isOn) {\n if (isOn) {\n view.setTextColor(Color.GREEN);\n } else {\n view.setTextColor(Color.BLACK);\n }\n }",
"public void setTextLabelForegroundColor(int mTextLabelForegroundColor) {\n\t\tthis.mTextLabelForegroundColor = mTextLabelForegroundColor;\n\t}",
"public static void setTextColor(String color, TextView v){\n v.setTextColor(Color.parseColor(color.isEmpty() ? \"#000000\" : color));\n }",
"public void changeColor (Color color){\n ((Label) _node).setTextFill(color);\n }",
"ColorGroup(String text) {\n this.text = text;\n }",
"public void setTextColorAndFont(GraphicsContext graphicsContext) {\r\n\t\tgraphicsContext.setFill(Color.WHITE);\r\n\t\tgraphicsContext.setFont(Font.font(25));\r\n\t}",
"@Override\n protected void onProgressUpdate(String... values) {\n labelStatus.setText(values[0]);\n }",
"@Override\n public Color getFontColor(){\n return Color.BLACK;\n }",
"public void applyColor() {\n\t\tSystem.out.println(\"Yellow\");\n\n\t}",
"@Override\n public void choiced(String result) {\n target.setText(result);\n target.setTextColor(getResources().getColor(R.color.app_color));\n }",
"@AutoEscape\n\tpublic String getTextColor();",
"public void setTextSettings(){\n\n ArrayList<Text> headlines = new ArrayList<>();\n //Add any text element here\n //headlines.add(this.newText);\n\n Color textColorHeadlines = new Color(0.8,0.8,0.8,1);\n\n for ( Text text : headlines ){\n text.setFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 20));\n text.setFill(textColorHeadlines);\n text.setEffect(new DropShadow(30, Color.BLACK));\n\n }\n\n }",
"public int getTextColor() {\n return mTextColor;\n }",
"public void setCursorPositionColor(Color color)\n {\n this.jStatusBarColor.setBackground(color);\n this.jStatusBarColor.setText(\"RGB:\"+color.getRed()+\",\"+color.getGreen()+\",\"+color.getBlue());\n }",
"@NlsContexts.ProgressText\n String getIndexingProgressText();",
"public void setFontColor(int red, int green, int blue, int alpha){\n if(isTheColorInputCorrect(red, green, blue, alpha)){\n fontColor = new Color(red, green, blue); \n }\n }",
"public void setProgressColor(int progressColor) {\n\t\tmProgressPaint.setColor(progressColor);\n\t\tinvalidate();\n\t}",
"private void showLabel(String text, Color color) {\n GLabel result = new GLabel(text);\n result.setFont(\"Verdana-60\");\n result.setColor(color);\n result.sendToFront();\n add(result, (getWidth() - result.getWidth()) /2, (getHeight() - result.getHeight()) / 2 );\n pause(FREEZE_TIME);\n remove(result);\n }",
"private void setRhText(double percent){\n String text;\n Formatter fmt = new Formatter();\n\n if (!((Double)percent).isNaN()) {\n text = fmt.format(\"%2.2f %%\", percent).out().toString();\n enableView(rhText, true);\n }\n else {\n text = \"-- %\";\n enableView(rhText, false);\n }\n\n rhText.setText(text);\n }",
"public static String textColor(String color,String message)\n {\n String colorCode = null;\n switch (color.toLowerCase())\n {\n case \"red\":\n colorCode = \"\\033[1;91m\";\n break;\n\n case \"green\":\n colorCode = \"\\033[1;92m\";\n break;\n\n case \"blue\":\n colorCode = \"\\033[1;94m\";\n break;\n\n case \"yellow\":\n colorCode = \"\\033[1;93m\";\n break;\n\n case \"purple\":\n colorCode = \"\\033[1;95m\";\n break;\n\n case \"cyan\":\n colorCode = \"\\033[1;96m\";\n break;\n\n case \"white\":\n colorCode = \"\\033[1;97m\";\n break;\n\n default:\n colorCode = \"\\033[0m\";\n break;\n\n }\n return String.format(\"%s%s%s\",colorCode,message,\"\\033[0m\");\n }",
"public @ColorInt int getTextColor() {\n return mTextContainer.getTextColor();\n }",
"public IconBuilder autoTextColor() {\n\t\tthis.textColor = AUTO_TEXT_COLOR;\n\t\treturn this;\n\t}",
"public void setDisabledTextColor(Color arg1) {\r\n\t\tgetJTextField().setDisabledTextColor(arg1);\r\n\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n mTextView.setText(\"\"+i);\n }",
"String getProgressString();",
"public void setDrawTickTexts(Color color) {\n mTextPaint.setColor(color);\n drawTickTextsColor = color;\n }",
"public int getTextLabelForegroundColor() {\n\t\treturn mTextLabelForegroundColor;\n\t}",
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void setLblTextColor(Color color) {\n lblSysteemMelding.setForeground(color);\n }",
"public void setProgress(String progress) {\n this.progress = progress;\n }",
"private void updateCountDownText() {\n int minutes = (int)(timeLeftInMillis / 1000) / 60 % 60;\n int seconds = (int)(timeLeftInMillis / 1000) % 60;\n\n String timeFormatted = String.format(Locale.getDefault(),\"%02d:%02d\",minutes,seconds);\n textViewCountDown.setText(timeFormatted);\n\n if (timeLeftInMillis < 10000) {\n textViewCountDown.setTextColor(Color.RED);\n } else {\n textViewCountDown.setTextColor(textColorDefaultCd);\n }\n }",
"public void _TextColor() {\n testProperty(\"TextColor\", new PropertyTester() {\n protected Object getNewValue(String prop, Object old) {\n return utils.isVoid(old) ? new Integer(123) : null ;\n }\n }) ;\n }",
"void setStatusColour(Color colour);",
"@Nullable\n @NlsContexts.ProgressText\n String getIndexingProgressText();",
"public void setForegroundColor(int color) {\n this.foregroundColor = color;\n }",
"private static void updateColors() {\n try {\n text.setBackground(colorScheme[0]); outputText.setBackground(colorScheme[0]); \n //frame.setBackground(colorScheme[0]);\n\n //Determines the color to set the splitter\n if(colorScheme[0].equals(Color.BLACK)) splitter.setBackground(Color.DARK_GRAY.darker());\n else if(colorScheme[0].equals(new Color(35,37,50))) splitter.setBackground(new Color(35,37,50).brighter());\n else if(colorScheme[0].equals(Color.GRAY) || colorScheme[0].equals(Color.LIGHT_GRAY) || colorScheme[0].equals(Color.WHITE)) splitter.setBackground(null);\n else splitter.setBackground(colorScheme[0].darker());\n\n text.getStyledDocument().getForeground(attributeScheme[11]); //Will work, but needs to be refreshed somehow.\n outputText.setForeground(colorScheme[11]); \n } catch (Exception e) {\n System.out.println(\"The error was here!\");\n e.printStackTrace();\n }\n }",
"public IconBuilder autoTextColorPreferWhite() {\n\t\tthis.textColor = AUTO_TEXT_COLOR_WHITE;\n\t\treturn this;\n\t}",
"@Override\n public void run() {\n\t\t\t\t\ttable.getDisplay().timerExec(100, new Runnable() {\n\t\t\t\t\t\t@Override\n public void run() {\n//\t\t\t\t\t\t\tfindText.setBackground(PropertyChangeListener.getColor(found == null && matchCount == 0 ? new RGB(255, 0, 0) : new RGB(255, 255, 255)));\n\t\t\t\t\t\t\tif (!wrapped)\n\t\t\t\t\t\t\t\thexEditor.getEditorSite().getActionBars().getStatusLineManager().setMessage(found == null && matchCount == 0 ? Messages.HexEditorControl_7 : matchCount > 0 ? Messages.HexEditorControl_8 + matchCount + Messages.HexEditorControl_9 : null);\n\t\t\t\t\t\t\tupdateStatusPanel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}",
"private void applyForegroundColor() {\r\n\t\tthis.control.setForeground(PromptSupport.getForeground(this.control));\r\n\t}",
"public void setLblColor(Color value) {\n lblColor = value;\n }",
"public void setText(String text) {\n\t\t_coolBar.setText(text);\n\t}",
"@SuppressWarnings({ \"nls\", \"boxing\" })\n\tpublic final void appendToPane(final String text, final Color color)\n\t{\n\t\tStyleContext sc = StyleContext.getDefaultStyleContext();\n\t\tAttributeSet aset = sc.addAttribute(SimpleAttributeSet.EMPTY, StyleConstants.Foreground, color);\n\n\t\t//\t\taset = sc.addAttribute(aset, StyleConstants.FontFamily, \"Menlo Regular\");\n\t\t//\t\taset = sc.addAttribute(aset, StyleConstants.FontSize, 12);\n\t\taset = sc.addAttribute(aset, StyleConstants.Alignment, StyleConstants.ALIGN_LEFT);\n\n\t\tint len = io.getTextPane().getDocument().getLength();\n\t\tio.getTextPane().setCaretPosition(len);\n\t\tio.getTextPane().setCharacterAttributes(aset, false);\n\t\tio.getTextPane().replaceSelection(text);\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif(isRecognition) {\n\t\t\t\t\t\t\talpha *= 0.95f;\n//\t\t\t\t\t\t\tsetBackgroundColor((int) (255 * (1 - label) * alpha));\n\t\t\t\t\t\t\ttxtHandParts.setTextColor(Color.argb((int) (alpha * 255), 255,\n\t\t\t\t\t\t\t\t\t255, 255));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(alpha > 0.1f) {\n\t\t\t\t\t\t\t\tLog.d(LOGTAG, (int) (255 * (1 - label) * alpha)+\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }",
"public TextButton (String text,int textSize, Color color)\n {\n buttonText = text;\n GreenfootImage tempTextImage = new GreenfootImage (text, textSize, color, Color.WHITE);\n myImage = new GreenfootImage (tempTextImage.getWidth() + 8, tempTextImage.getHeight() + 8);\n myImage.setColor (Color.WHITE);\n myImage.fill();\n myImage.drawImage (tempTextImage, 4, 4);\n\n myImage.setColor (Color.BLACK);\n myImage.drawRect (0,0,tempTextImage.getWidth() + 7, tempTextImage.getHeight() + 7);\n setImage(myImage);\n }",
"private void logTextColors() {\n // Get ColorStateLists (defines text colors for all possible states that the View can be in)\n ColorStateList cslEditText = mBind.maxWidthEdit.getTextColors();\n ColorStateList cslTextView = mBind.maxWidthLabel.getTextColors();\n\n // The standard Android enabled and disabled states (used in the ColorStateLists)\n int enabledState = android.R.attr.state_enabled;\n int disabledState = -android.R.attr.state_enabled;\n\n // Get the text colours for the enabled and disabled states\n int defaultColor = 0xFFFFFFFF;\n int editTextEnabled = cslEditText.getColorForState(new int[] {enabledState}, defaultColor);\n int editTextDisabled = cslEditText.getColorForState(new int[] {disabledState}, defaultColor);\n int textViewEnabled = cslTextView.getColorForState(new int[] {enabledState}, defaultColor);\n int textViewDisabled = cslTextView.getColorForState(new int[] {disabledState}, defaultColor);\n\n // Output\n Log.v(LOG_TAG, \"Text colour EditText enabled: \" + Integer.toHexString(editTextEnabled));\n Log.v(LOG_TAG, \"Text colour EditText disabled: \" + Integer.toHexString(editTextDisabled));\n Log.v(LOG_TAG, \"Text colour TextView enabled: \" + Integer.toHexString(textViewEnabled));\n Log.v(LOG_TAG, \"Text colour TextView disabled: \" + Integer.toHexString(textViewDisabled));\n\n // Example results on API level 23 with dark text on light background theme\n // (Compare with https://material.google.com/style/color.html#color-color-schemes):\n // EditText enabled: 0xDE000000: black, opacity 222/255 (87.06%) -> primary text\n // EditText disabled: 0x3A000000: black, opacity 58/255 (22.75%) -> 26.1% of primary text\n // TextView enabled: 0x8A000000: black, opacity 138/255 (54.12%) -> secondary text\n // TextView disabled: 0x24000000: black, opacity 36/255 (14.12%) -> 26.1% of secondary text\n }",
"@Override\n protected void onDraw(Canvas canvas) {\n mTextPain.setColor(mColor);\n canvas.drawText(mText,getWidth() / 2-mTextBound.width()/2,getHeight()/2+mTextBound.height()/2,mTextPain);\n }",
"public synchronized void progress(String s){\n\t\tif(printStdErr){\n\t\t\tSystem.err.println(\"[PROGRESS] \" + s);\n\t\t}\n\t}",
"public void setLabelColor(String labelColor)\n {\n myLabelColor = labelColor;\n }",
"public void setColor(String c);",
"public static void splashText(String str)\n {\n if (mySplash != null && mySplash.isVisible())\n { // important to check here so no other methods need to know if there\n // really is a Splash being displayed\n\n // erase the last status text\n splashGraphics.setPaint(Color.LIGHT_GRAY);\n //splashGraphics.fill(splashTextArea);\n\n // draw the text\n splashGraphics.setPaint(Color.RED);\n splashGraphics.drawString(str, (int)(splashTextArea.getX() + splashTextArea.getWidth() * .30),(int)(splashTextArea.getY() + 15));\n\n // make sure it's displayed\n mySplash.update();\n }\n }"
] |
[
"0.72146875",
"0.70883447",
"0.6881628",
"0.6827589",
"0.6800282",
"0.67320293",
"0.66490287",
"0.6648284",
"0.6638843",
"0.6548845",
"0.6536068",
"0.6527263",
"0.6410082",
"0.6395441",
"0.6299337",
"0.62778693",
"0.623743",
"0.6216734",
"0.6215424",
"0.6141603",
"0.6126632",
"0.61215174",
"0.6116585",
"0.6111217",
"0.6110947",
"0.60996836",
"0.6092516",
"0.6081871",
"0.6075504",
"0.607286",
"0.6070094",
"0.6043291",
"0.60128975",
"0.59520704",
"0.59464675",
"0.5916463",
"0.5870165",
"0.5844876",
"0.58444613",
"0.5839895",
"0.5835126",
"0.58269644",
"0.58253145",
"0.5822904",
"0.58059454",
"0.5792092",
"0.5782486",
"0.5774125",
"0.5753403",
"0.574155",
"0.57303137",
"0.5718496",
"0.570943",
"0.56969684",
"0.56899",
"0.56816995",
"0.5680521",
"0.56782174",
"0.56780607",
"0.5664334",
"0.5652265",
"0.5650102",
"0.5644824",
"0.5622513",
"0.56062317",
"0.5603409",
"0.5601643",
"0.55828655",
"0.55828583",
"0.55799246",
"0.55693513",
"0.5564093",
"0.5562725",
"0.555929",
"0.5557267",
"0.55572313",
"0.55572313",
"0.5551371",
"0.55512184",
"0.55509454",
"0.5531225",
"0.5525977",
"0.55258614",
"0.5521531",
"0.5504305",
"0.55039185",
"0.5499479",
"0.5484426",
"0.5464765",
"0.5455847",
"0.54505974",
"0.5440878",
"0.5439133",
"0.54340965",
"0.5416353",
"0.5413977",
"0.54082936",
"0.5407738",
"0.54074925",
"0.54038936"
] |
0.8252715
|
0
|
set duration of progress moving
|
public void setProgressDuration(int duration){
this.mProgressDuration = duration;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setDuration(int duration);",
"public void setDuration(long duration) {\n\t\tthis.startDuration = System.currentTimeMillis();\n\t\tthis.endDuration = startDuration + duration * 1000;\n\t}",
"public void setDuration(int val){this.duration = val;}",
"public void setDuration( Long duration );",
"void setDuration(org.apache.xmlbeans.GDuration duration);",
"public void setDuration(int duration){\n this.duration = duration;\n }",
"public void setDuration(int duration) {\n mDuration = duration;\n }",
"public void timePassed(double dt) {\r\n this.moveOneStep(dt);\r\n }",
"public void speedUp(){\r\n\t\tmoveSpeed+=1;\r\n\t\tmoveTimer.setDelay(1000/moveSpeed);\r\n\t}",
"public void setDuration(int duration) {\n if (this.duration != duration) {\n this.duration = duration;\n }\n }",
"public void timePassed(double dt) {\n this.moveOneStep(dt);\n }",
"public void setDuration(int duration) {\n this.duration = duration;\n }",
"public void setDuration(int duration) {\n this.duration = duration;\n }",
"void setProgress(float progress);",
"@Override\n public void timePassed() {\n moveOneStep();\n }",
"public void setDuration(Duration duration)\r\n {\r\n m_duration = duration;\r\n }",
"protected void setDuraction(int seconds) {\n duration = seconds * 1000L;\n }",
"public void timePassed(double dt) {\r\n moveOneStep(dt);\r\n }",
"public void setDuration(float duration) {\n\t\tthis.duration = duration;\n\t}",
"public void setDuration(long duration) {\n this.duration = duration;\n }",
"public void setDuration(long duration) {\n this.duration = duration;\n }",
"public void setDuration(long duration) {\n this.duration = duration;\n }",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"public void setDuration(DeltaSeconds d) {\n duration = d ;\n }",
"public void setAnimationDuration(final int animationDuration);",
"public void timePassed() {\n this.moveOneStep();\n }",
"public void animateTo(float percent, long duration, TimeInterpolator interpolator) {\n if (currentProgress == percent || percent < 0f || percent > 1f) return;\n ValueAnimator animator = ValueAnimator.ofFloat(currentProgress, percent);\n animator.getDuration();\n animator.setDuration(duration != -1 ? duration : this.duration);\n animator.setInterpolator(interpolator != null ? interpolator : this.interpolator);\n animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n setProgress((float) animation.getAnimatedValue());\n }\n });\n animator.start();\n }",
"private void setTimer(){\n\n //initialize the time variable\n int time = 10;\n\n //calculate the totaltime\n totalTimeCountInMilliseconds = time * 1000;\n\n //set the maximum time of the progress bar timer\n mProgressBar1.setMax( time * 1000);\n }",
"public void setDuration(Number duration) {\n this.duration = duration;\n }",
"public void moveDelay ( )\r\n\t{\r\n\t\ttry {\r\n\t\t\tThread.sleep( 1000 );\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void setDuration(Integer duration) {\n this.duration = duration;\n }",
"public void setDuration(int duration) {\r\n this.duration = duration;\r\n if (connections.get(lightIndex).getTrafficLight().getSignal()\r\n == TrafficSignal.YELLOW) {\r\n connections.get(lightIndex).getTrafficLight().setSignal\r\n (TrafficSignal.GREEN);\r\n }\r\n currentGreenTime = 0;\r\n currentYellowTime = 0;\r\n }",
"void updateSeekbar(int position, int duration);",
"public void SetDuration(int duration)\n {\n TimerMax = duration;\n if (Timer > TimerMax)\n {\n Timer = TimerMax;\n }\n }",
"public void setDuration(int duration)\r\n\t{\r\n\t\tif (duration < 0) { throw new IllegalArgumentException(\"duration muss groesser als 0 sein\"); }\r\n\t\tthis.duration = duration;\r\n\t}",
"@Override\n public void onTick(long leftTimeInMilliseconds) {\n long seconds = leftTimeInMilliseconds / 1000;\n barTimer.setProgress((int) seconds);\n\n }",
"@Override\n public void setDuration(final int duration) {\n if (duration < 0) {\n throw new IllegalArgumentException(\"Animators cannot have negative duration: \" +\n duration);\n }\n this.duration = duration;\n }",
"public android.animation.AnimatorSet setDuration(long duration) { throw new RuntimeException(\"Stub!\"); }",
"public void setDuration(Integer duration) {\n this.duration = duration;\n }",
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void setDuration(Long duration)\r\n {\r\n this.duration = duration;\r\n }",
"public void progressBar(Rectangle progressBar) {\n \n currentHeight = 0;\n moveProgress = new AnimationTimer() {\n \n \n double heightMax = 210;\n double heightGrow = 5;\n @Override\n public void handle(long now) {\n if(currentHeight < heightMax) {\n currentHeight += heightGrow;\n progressBar.setHeight(currentHeight);\n } else if(currentHeight == heightMax) {\n currentHeight = 0;\n }\n \n \n }\n };\n moveProgress.start();\n }",
"public void seekTo(int progress) {\n mediaController.getTransportControls().seekTo(progress/1000);\n }",
"public void setDelayMove(float delay_)\n\t{\n\t\tdelayMove=delayMove+delay_;\n\t}",
"public void setDuration(int newDuration) {\n this.duration = newDuration;\n }",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"private void incrementDuration(TestResult result) {\n long currentTime = System.currentTimeMillis();\n result.setDuration((float) (currentTime - lastTime) / (float) 1000);\n lastTime = currentTime;\n totalDuration += result.getDuration();\n totalTunitDurations += result.getDuration();\n }",
"public void setLength(int duration){\n\t\tlength = duration;\n\t}",
"private void procUpdatePosition(int position) {\n //log_d(\"procUpdatePosition: \" + position);\n\n float ratio = 0;\n if( mDuration > 0 ) {\n ratio = (float)position / (float)mDuration;\n }\n\n int progress = (int)(MAX_PROGRESS * ratio);\n setSeekbarProgress(progress);\n\n}",
"Posn getDuration();",
"public void changeUnitDurationTo(long t) {\n\t\tm_unitDuration = t;\n\t\tif( m_privateNotification != null ) {\n\t\t\tString content = \"changeUnitDuration:\"+Long.toString(t)+\";\";\n\t\t\tm_privateNotification.sendMessage(m_parentName+\"TSCanvasMenu\", m_parentName+\"TSCanvas\", content);\n\t\t\tm_privateNotification.sendMessage(m_parentName+\"TSCanvasMenu\", m_parentName+\"TSAbstractCanvas\", content);\n\t\t}\n\t}",
"public void setLastMoved(double time);",
"public void setProgress(int value);",
"public void startProgressAnimation(){\n progressAnimator = ObjectAnimator.ofFloat(this,\"progress\",mStartProgress, mEndProgress);\n Log.e(TAG, \"progressDuration: \"+ mProgressDuration);\n progressAnimator.setInterpolator(mInterpolator);\n progressAnimator.setDuration(mProgressDuration);\n progressAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float progress = (float) animation.getAnimatedValue(\"progress\");\n if(updateListener != null){\n updateListener.onCircleProgressUpdate(CircleProgressView.this, progress);\n }\n\n }\n });\n progressAnimator.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animator) {\n if(updateListener != null){\n updateListener.onCircleProgressStart(CircleProgressView.this);\n }\n }\n\n @Override\n public void onAnimationEnd(Animator animator) {\n if(updateListener != null){\n updateListener.onCircleProgressFinished(CircleProgressView.this);\n }\n }\n\n @Override\n public void onAnimationCancel(Animator animator) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animator) {\n\n }\n });\n progressAnimator.start();\n }",
"@Test\n public void setProgression() {\n final int progress = 16;\n final String progressText = \"0:16\";\n expandPanel();\n onView(withId(R.id.play)).perform(click()); //Pause playback\n\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n\n onView(withId(R.id.mpi_progress)).check(matches(withText(progressText)));\n assertTrue(getPlayerHandler().getTimeElapsed() == progress);\n }",
"void MoveTimed( double power, double theta_degrees, double t_secs, boolean set_gTheta){\n if( set_gTheta ) gTheta = getAngle();\n \n double t_start = getRuntime();\n while ( opModeIsActive() ) {\n \n GoDir( power, theta_degrees );\n \n Position pos = imu.getPosition();\n \n double t_elapsed = getRuntime()-t_start;\n telemetry.addData(\"T remaining\", t_secs-t_elapsed);\n telemetry.addData(\"delta Theta\", getAngle() - gTheta);\n telemetry.addData(\"encoder\", leftDrive.getCurrentPosition());\n telemetry.update();\n if ( t_elapsed >= t_secs ) break;\n }\n\n topDrive.setPower( 0 );\n leftDrive.setPower( 0 );\n rightDrive.setPower( 0 );\n }",
"@Override\n protected void showChangePosition(long duration, int newPositionProgress) {\n }",
"private void driveForwardTimer()\r\n\t{\r\n\t\tif(timer.get() < Config.Auto.timeDriveForward){\r\n\t\t\tdrive.setSpeed(0, 0, Config.Auto.driveForwardSpeed, Config.Auto.driveForwardSpeed);\r\n\t\t\tSystem.out.println(timer.get());}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tdrive.setSpeed(0, 0, 0, 0);\r\n\t\t\tautoStep++;\r\n\t\t}\r\n\t}",
"public void seekTo(int progress) {\n\t\tmediaPlayer.seekTo(progress);\n sendPlayingStateBroadcast();\n\t}",
"private void setProgress(String what)\n {\n if (progressBar != null)\n {\n double elapsed = (System.currentTimeMillis() - startMs) / 1000.;\n String etl = String.format(\"Elapsed: %4.0f\", elapsed);\n progressBar.setEstTime(etl);\n progressBar.setWorkingOn(what);\n progressBar.setProgress(-1);\n }\n }",
"public void onStep() {\n distance += (float)(stepLength / 100000.0);\n notifyListener();\n }",
"@Override\n public void onDurationUs(long durationUs) {\n sleep();\n isDurationSet = true;\n }",
"void setDuration(java.lang.String duration);",
"@Override\n\tpublic void step() {\n\t\tthis.y-= speed;\t\n\t}",
"protected void setMove(int t){\r\n\t\tthis.move = t;\r\n\t}",
"public abstract void setProgress (int currentStep, int totalSteps);",
"@Override\n public long progressInterval() {\n return 500;\n }",
"public void progressBarTimer() {\r\n progressBar.setProgress(0);\r\n TimerTask task = new TimerTask() {\r\n @Override\r\n public void run() {\r\n if(!pause) progressBar.incrementProgressBy(1);\r\n\r\n //Game over\r\n if (progressBar.getProgress() >= 100) gameOver();\r\n }\r\n };\r\n\r\n //schedule starts after 0.01 seconds and repeats every second.\r\n timer.schedule(task, 10, 1000);\r\n }",
"public abstract void move(int elapsedTime);",
"private void moveTimer(long period) {\n\t\tmoveTimer.schedule(new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\tif (Math.abs(relativeX + MOVE_DISTANCE * (getMoveRight() ? 1 : -1)) > onLog.getImageWidth() / 2) {\n\t\t\t\t\tsetMoveRight(!getMoveRight());\n\t\t\t\t\trelativeX += MOVE_DISTANCE * (getMoveRight() ? 1 : -1);\n\t\t\t\t} else {\n\t\t\t\t\trelativeX += MOVE_DISTANCE * (getMoveRight() ? 1 : -1);\n\t\t\t\t}\n\t\t\t}\n\t\t}, period, period);\n\t}",
"public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}",
"void xsetDuration(org.apache.xmlbeans.XmlInt duration);",
"public void setDuration(Duration param) {\n this.localDuration = param;\n }",
"public abstract void setProgress (String description, int currentStep, int totalSteps);",
"public void move(float deltaTime) {\n }",
"public void move(Point p) {\n\t\tchange = new Point(p.x - point.x, p.y - point.y);\n\t\tmoveProgress = 1;\n\t\t// moves();\n\t}",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"private Sleep(Duration duration) {\n this.duration = duration;\n }",
"public void setTimeout(long t) {\n StepTimeout = t;\n }",
"public abstract void animation(double seconds);",
"@Override\n\tpublic void step() {\n\t\ty += speed;\n\t}",
"public AnimatorSet setDuration(long duration) {\n/* 233 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public void move() {\n if (movementCooldown > 0) {\n movementCooldown --;\n } else {\n super.move();\n movementCooldown = MAX_MOVEMENT_COOLDOWN;\n }\n }",
"private void changeSeekbar() {\n\n seekbar.setProgress(mediaPlayer.getCurrentPosition());\n\n if(mediaPlayer.isPlaying())\n {\n runnable=new Runnable() {\n @Override\n public void run() {\n changeSeekbar();\n }\n };\n handler.postDelayed(runnable,1000);\n }\n\n }",
"public int getDuration() {return this.duration;}",
"public int setDelay(int duration, int slow_duration, int affected_points_size)\r\n {\r\n if (slow_duration != 0)\r\n {\r\n this.delay = (slow_duration - duration)*(affected_points_size-1);\r\n }\r\n else\r\n {\r\n this.delay = 0;\r\n }\r\n\r\n return this.delay;\r\n }",
"private static void pause(int duration) {\n LOG.info(\"\\nlets go again!\\n\");\n sleep(duration);\n }",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}",
"public abstract void setMovementPerTick(float step);",
"public void setDelay(long d){delay = d;}",
"public void setRunDuration(int value) {\n this.runDuration = value;\n }",
"void setTime(){\n gTime += ((float)millis()/1000 - millisOld)*(gSpeed/4);\n if(gTime >= 4) gTime = 0;\n millisOld = (float)millis()/1000;\n }",
"public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}",
"private void setViewOnFinish() {\n if (mediaPlayer.isPlaying()) {\n mediaPlayer.stop();\n seekBar.setProgress(100);\n songCurrentDurationLabel.setText(songTotalDurationLabel.getText().toString());\n }\n // Don't need seek bar so stop seek handler\n stopSeekHandler();\n }",
"public void move(long timePassed) {\n\t\tif (x < -100) {\r\n\t\t\tthis.destroy();\r\n\t\t}\r\n\r\n\t\tsuper.move(timePassed);\r\n\t}",
"public void setTimeout (double seconds) {\n multiPathTimeout = seconds;\n }",
"public void setDirectionMove(double direction);",
"@Override \r\n\t\t public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n\t\t \tint actualValue = Math.round(progress/100)*100;\r\n\t\t \tactualValue += delayMinimum;\t\t \t\r\n\t\t seekValue.setText(\"\"+actualValue);\t\t\r\n\t\t delayTime = actualValue;\r\n\t\t }"
] |
[
"0.7020874",
"0.65978247",
"0.6555716",
"0.65414184",
"0.6518583",
"0.64195406",
"0.64162225",
"0.6307648",
"0.6274222",
"0.6262638",
"0.6255615",
"0.625399",
"0.625399",
"0.62287587",
"0.61979",
"0.61841905",
"0.6181827",
"0.6181411",
"0.6166775",
"0.61651015",
"0.61651015",
"0.6119548",
"0.61119807",
"0.61058164",
"0.6102426",
"0.6101682",
"0.6092607",
"0.60859686",
"0.6078558",
"0.6065011",
"0.60557336",
"0.6035847",
"0.603151",
"0.6030224",
"0.60236514",
"0.6020462",
"0.60119015",
"0.6010821",
"0.5973784",
"0.595567",
"0.595567",
"0.5948146",
"0.5946044",
"0.5945057",
"0.59366214",
"0.59303343",
"0.5929925",
"0.59155923",
"0.5900575",
"0.58815783",
"0.5846936",
"0.5827229",
"0.58012724",
"0.57816255",
"0.57772714",
"0.5765344",
"0.57598794",
"0.57473373",
"0.574672",
"0.57223517",
"0.5715133",
"0.57005596",
"0.5695446",
"0.56929904",
"0.5692769",
"0.5684879",
"0.5682208",
"0.5676101",
"0.56733924",
"0.56713533",
"0.5670476",
"0.56685394",
"0.56658334",
"0.5661693",
"0.56501013",
"0.5647148",
"0.56470245",
"0.5643951",
"0.5642759",
"0.56358117",
"0.56331",
"0.5631976",
"0.5631043",
"0.5627583",
"0.558701",
"0.55851376",
"0.55746716",
"0.55711555",
"0.55657595",
"0.55651927",
"0.55651677",
"0.5560524",
"0.5557288",
"0.55563706",
"0.5554248",
"0.5545169",
"0.55408555",
"0.5538581",
"0.55336046",
"0.5530156"
] |
0.73484457
|
0
|
set track for progress
|
public void setTrackEnabled(boolean trackAble){
this.trackEnabled = trackAble;
refreshTheView();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void setProgress(int value);",
"private void setProgress(String what)\n {\n if (progressBar != null)\n {\n double elapsed = (System.currentTimeMillis() - startMs) / 1000.;\n String etl = String.format(\"Elapsed: %4.0f\", elapsed);\n progressBar.setEstTime(etl);\n progressBar.setWorkingOn(what);\n progressBar.setProgress(-1);\n }\n }",
"void setProgress(float progress);",
"private void setCurrentTrack() {\n runOnUiThread(new Runnable() {\n public void run() {\n setText(controller.getCurrentTrack());\n }\n });\n\t}",
"public void setProgress(int progress) {\n \t\t\tsynchronized (this) {\n \t\t\t\tm_progress = progress;\n \t\t\t\tthis.notify();\n \t\t\t}\n \t\t}",
"public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }",
"@Override\n public void track() {\n tracker.update(\n driveEncoder.getCount(),\n getTurnAngle(turnEncoder.getCount())\n );\n }",
"Track(){\n\t}",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"public abstract void setProgress (int currentStep, int totalSteps);",
"void setTrack(String track) {\r\n this.track = track;\r\n }",
"public void setProgress(int percent) {\n setProgress((float) percent / 100);\n }",
"public void setProgress(String progress) {\n this.progress = progress;\n }",
"private void setProgressPercent(Integer integer) {\n\t\t\n\t}",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"public void progressMade();",
"public void setProgress(int progress) {\r\n\t\tif (mProgress != progress) {\r\n\t\t\tmProgress = progress;\r\n\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, progress, false);\r\n\t\t\t}\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}",
"void startProgress();",
"protected void sendProgress() {\n setProgress(getProgress() ^ 1);\n }",
"public abstract void setProgress (String description, int currentStep, int totalSteps);",
"public void onProgress(int pos);",
"@Override\n public void onStartTrackingTouch(SeekBar arg0) {\n mp.seekTo(seek.getProgress());\n }",
"void tick() { \r\n if (midi && sequencer.isRunning()) { \r\n audioPosition = (int) sequencer.getTickPosition(); \r\n progress.setValue(audioPosition); \r\n } else if (!midi && clip.isActive()) { \r\n audioPosition = (int) (clip.getMicrosecondPosition() / 1000); \r\n progress.setValue(audioPosition); \r\n } else \r\n reset(); \r\n }",
"void setCurrentTrack(int trackNumber, FloppyDriveSide trackSide) {\n if (isDebugEnabled) {\n d(TAG, \"set track: \" + trackNumber + \", side: \" + trackSide);\n }\n this.currentTrackNumber = trackNumber;\n this.currentTrackSide = trackSide;\n // OnFloppyDriveTrackChanged listeners notify if disk image mounted\n if (isDiskImageMounted()) {\n for (OnFloppyDriveTrackChanged listener : trackChangedListeners) {\n listener.onFloppyDriveTrackChanged(trackNumber, trackSide);\n }\n }\n }",
"@Override\n public void onTrackCount(int trackCount) {\n sleep();\n isTrackCountSet = true;\n }",
"private void manageTrackUpdate(final AbstractTrack track)\n {\n selectBestTrack();\n }",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\tseekBarProgress.setSecondaryProgress(percent);\n\t}",
"@Override\n public void onProgress(float percent, SpeedTestReport report) {\n System.out.println(\"[PROGRESS] progress : \" + percent + \"%\");\n System.out.println(\"[PROGRESS] rate in octet/s : \" + report.getTransferRateOctet());\n System.out.println(\"[PROGRESS] rate in bit/s : \" + report.getTransferRateBit());\n }",
"void track();",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n seekBarProgress.setSecondaryProgress(percent);\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }",
"@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}",
"private void changeSeekbar() {\n\n seekbar.setProgress(mediaPlayer.getCurrentPosition());\n\n if(mediaPlayer.isPlaying())\n {\n runnable=new Runnable() {\n @Override\n public void run() {\n changeSeekbar();\n }\n };\n handler.postDelayed(runnable,1000);\n }\n\n }",
"private void primarySeekBarProgressUpdater() {\n \tseekBarProgress.setProgress((int)(((float)mediaPlayer.getCurrentPosition()/mediaFileLengthInMilliseconds)*100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n\t\tif (mediaPlayer.isPlaying()) {\n\t\t\tRunnable notification = new Runnable() {\n\t\t public void run() {\n\t\t \tprimarySeekBarProgressUpdater();\n\t\t\t\t}\n\t\t };\n\t\t handler.postDelayed(notification,1000);\n \t}\n }",
"public void increment() { this.progressBar.setValue(++this.progressValue); }",
"@Override\n\t\t\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\t\t\tLog.d(this.getClass().getName(), \"percent: \" + percent);\n\t\t\t\tprogressBar.setSecondaryProgress(percent);\n\t\t\t}",
"private void primarySeekBarProgressUpdater() {\n seekBarProgress.setProgress((int) (((float) mediaPlayer.getCurrentPosition() / mediaFileLengthInMilliseconds) * 100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n if (mediaPlayer.isPlaying()) {\n Runnable notification = new Runnable() {\n public void run() {\n primarySeekBarProgressUpdater();\n }\n };\n handler.postDelayed(notification, 1000);\n }\n }",
"@Test\n public void setProgression() {\n final int progress = 16;\n final String progressText = \"0:16\";\n expandPanel();\n onView(withId(R.id.play)).perform(click()); //Pause playback\n\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n\n onView(withId(R.id.mpi_progress)).check(matches(withText(progressText)));\n assertTrue(getPlayerHandler().getTimeElapsed() == progress);\n }",
"public void setProgressDialog(Progress pb)\n {\n progressBar = pb;\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}",
"@Override\n\tpublic void execute()\n\t{\n\t\tintake.set(percentage);\n\t}",
"public void setProgress(float p) {\n _progress = Math.max(0.0f, Math.min(1.0f, p));\n }",
"@Override\n public void progress(FileStatus status) {\n progressReporter.progress();\n }",
"public void setseekbars()\n {\n red.setProgress(SV.getRed(selected));\n blue.setProgress(SV.getBlue(selected));\n green.setProgress(SV.getGreen(selected));\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }",
"public void setTracked(CTracked tracked) {\r\n\t\tthis.tracked = tracked;\r\n\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n cakeModel.numCandles = progress;\n cakeView.invalidate();\n }",
"public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }",
"public void setResults(SeekBar sb, TextView tv, int progress) {\r\n\t\tsb.setProgress(progress);\r\n\t\ttv.setText(String.valueOf(progress));\r\n\t}",
"private void setUpProgressBar() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n int totalLocationCount = 0;\n double visitedCount = 0;\n\n while (cursor.moveToNext()) {\n totalLocationCount++;\n int visited = cursor.getInt(cursor.getColumnIndex(database.COL_VISITED));\n if (visited == 1) visitedCount++;\n }\n\n int progress = (int) (visitedCount / totalLocationCount * 100);\n ProgressBar progressBar = findViewById(R.id.progress);\n TextView progressText = findViewById(R.id.progress_text);\n progressBar.setProgress(progress);\n progressText.setText(\" \" + progress + \"%\");\n }",
"private void drawTrack(Canvas canvas){\n if(trackEnabled){\n progressPaint.setShader(null);\n progressPaint.setColor(mTrackColor);\n if(fillEnabled) {\n progressPaint.setStyle(Paint.Style.FILL);\n initTrack(canvas, true);\n }else {\n progressPaint.setStyle(Paint.Style.STROKE);\n initTrack(canvas, false);\n\n }\n }\n }",
"@Override\n public void onProgressChanged(SeekBar bar, int progress, boolean fromuser) {\n mProgress = progress;\n mSeekBarFromUser = fromuser;\n }",
"public void seekTo(int progress) {\n mediaController.getTransportControls().seekTo(progress/1000);\n }",
"@Override\n\tpublic void count(float elapsed) {\n\t\tmProgress += elapsed;\n\t}",
"public void setProgress( boolean onOff );",
"public abstract void onProgress(short percentage, long downloadedSoFar);",
"public void setProgressPublic(int progress) {\n\t\tsuper.setProgress(progress);\n\t}",
"public void setTrackNumber (String number){\n trackNumber = number;\n }",
"@Override\n\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\tboolean fromUser) {\n\t\t\tcustomPercent = progress / 100.0;\n\t\t\tupdateCustom();\n\t\t\t\n\t\t}",
"@Override\n public void progress(FileStatus status) {\n progressReporter.progress();\n }",
"@Override\n public void showProgress() {\n\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_quantidade = inf.findViewById(R.id.volume_12);\n txtV_quantidade.setText(\"\"+progress+\" copo(s)\");\n }",
"public void startTracking() {\n reset();\n trackingTask = scheduler.scheduleAtFixedRate(this, 0, 10, TimeUnit.MILLISECONDS);\n }",
"private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }",
"@Override\n public void onProgress(long downloaded,\n long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }",
"void onProgress(float progress);",
"public void seekTo(int progress) {\n\t\tmediaPlayer.seekTo(progress);\n sendPlayingStateBroadcast();\n\t}",
"public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n textStart.setText(String.valueOf(arg1));\n count = arg1;\n }",
"@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }",
"@Override\n\tpublic void progress(int arg0) {\n\t\tm_progress = arg0 / 10;\n\t\t//Main.log(TAG, \"progress : \" + m_progress + \"%\");\n\t}",
"private void updateProgress(String progressLabel, int progress) {\n if (myHost != null && ((progress != previousProgress) || \n (!progressLabel.equals(previousProgressLabel)))) {\n myHost.updateProgress(progressLabel, progress);\n }\n previousProgress = progress;\n previousProgressLabel = progressLabel;\n }",
"public void onStartTrackingTouch(SeekBar seekbar) {\n\t\t// _updateThumb = false;\n\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tfloat set = (float) progress/100;\n\t\t\t\tLog.v(\"set\", set+\"\");\n\t\t\t\tmMediaPlayer[0].setVolume(set,set);\n\t\t\t}",
"public void setProgress(int progress) {\n\t\tif (progress > mMax || progress < 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n\t\t}\n\t\tmProgress = progress;\n\t\tinvalidate();\n\t}",
"private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}",
"@Override \n\t\t\t\tpublic void onStopTrackingTouch(SeekBar analyseSeekBar) {\n\t\t\t\tp1 = analyseSeekBar.getProgress();\t\t\n\t\t\t\t}",
"public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }",
"@Test\n public void progressionUpdaterStartedAfterPlay() {\n expandPanel();\n SeekBar seekBar = (SeekBar) getActivity().findViewById(R.id.mpi_seek_bar);\n final int progress = seekBar.getProgress();\n\n onView(isRoot()).perform(ViewActions.waitForView(\n R.id.mpi_seek_bar, new ViewActions.CheckStatus() {\n @Override\n public boolean check(View v) {\n return ((SeekBar) v).getProgress() > progress;\n }\n }, 10000));\n }",
"@Override\n public void run() {\n for (int i = 0; i<100 ; i++) {\n pb.setProgress(i/1000.0);\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\tgraph.setSpacing(seek.getProgress());\r\n\t\t\t\t\r\n\t\t\t}",
"private void updateProgress() {\n progressBar.setProgress( (1.0d * currentQuestion) / numQuestions);\n }",
"@Override\r\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tsuper.onProgressUpdate(values);\r\n\t\t\tsetProgress(values[0]);\r\n\t\t\t\r\n\r\n\t\t}",
"private void setSeekbarListener(){\n mTempSeekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n if(progress<=100 && progress>=0){\n // change display temp based on seekbar progress and update the view\n display_temp = Tools.roundToHalf((32-9)*progress/100.0+9);\n Log.v(TAG, \"onProgressChanged: temp:\"+display_temp+\"seekbar progress=\"+progress);\n updateControlView();\n // update the mercury of the thermometer\n ClipDrawable mMercuryClip = (ClipDrawable) mMercuryImg.getDrawable();\n mMercuryClip.setLevel(progress*100);\n }\n }\n });\n }",
"@Override \r\n\t\t public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n\t\t \tint actualValue = Math.round(progress/100)*100;\r\n\t\t \tactualValue += delayMinimum;\t\t \t\r\n\t\t seekValue.setText(\"\"+actualValue);\t\t\r\n\t\t delayTime = actualValue;\r\n\t\t }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n progressBar.setProgress(values[0].intValue());\n\n }",
"public void setIsTrack(boolean isTrack){\n this.isTrack = isTrack;\n }",
"@Override\n\tpublic void onProgressUpdate() {\n\n\t}",
"public Track(){\n\t\tthis.trk = trackGenerator();\n\n\t}",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"public void setBar(JProgressBar bar){\n prog = bar;\n }",
"protected void onProgressUpdate(Integer... progress) {\n\t\t}",
"public void onProgressUpdate(int numRouleau,String prochain);"
] |
[
"0.7283603",
"0.7283603",
"0.7112823",
"0.7090415",
"0.7070828",
"0.70295185",
"0.6984851",
"0.6967184",
"0.685854",
"0.6709091",
"0.6689617",
"0.66843355",
"0.66787976",
"0.661263",
"0.6607481",
"0.6592745",
"0.6585865",
"0.6568179",
"0.65641934",
"0.6531059",
"0.647439",
"0.64726466",
"0.64309585",
"0.64246994",
"0.64125276",
"0.63849956",
"0.6380707",
"0.63746274",
"0.63596165",
"0.6346518",
"0.6296793",
"0.6285013",
"0.6267677",
"0.62564355",
"0.62559444",
"0.62428683",
"0.6214151",
"0.6207162",
"0.62027496",
"0.61911297",
"0.6188584",
"0.6185254",
"0.61766183",
"0.6173401",
"0.6173401",
"0.61606205",
"0.6152367",
"0.6150494",
"0.6128641",
"0.61278063",
"0.6123357",
"0.6114945",
"0.6111069",
"0.6110871",
"0.61079085",
"0.6106025",
"0.61040103",
"0.6103563",
"0.6084303",
"0.60762364",
"0.60758907",
"0.60750794",
"0.60730237",
"0.60594714",
"0.60540736",
"0.60492074",
"0.60465056",
"0.6038555",
"0.60381424",
"0.60381424",
"0.6034383",
"0.60292184",
"0.6027907",
"0.6025993",
"0.60209274",
"0.6020405",
"0.6016658",
"0.6012722",
"0.6008228",
"0.600371",
"0.5998419",
"0.59939826",
"0.5991944",
"0.5991604",
"0.5988534",
"0.5986958",
"0.59665346",
"0.59541434",
"0.5949284",
"0.59479856",
"0.5946846",
"0.5946096",
"0.59383667",
"0.59372115",
"0.5936531",
"0.5936284",
"0.5934926",
"0.5934833",
"0.5934545",
"0.5932742",
"0.59307253"
] |
0.0
|
-1
|
set track color for progress background
|
public void setTrackColor(@ColorInt int color){
this.mTrackColor = color;
refreshTheView();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean bo) {\n int r = sbrRed.getProgress();\n int g = sbrGreen.getProgress();\n int b = sbrBlue.getProgress();\n int a = sbrAlpha.getProgress();\n\n int color = Color.argb(a,r,g,b);\n vieColors.setBackgroundColor(color);\n\n //Toast.makeText(this, \"The new color is: \"+a, Toast.LENGTH_SHORT).show();\n }",
"private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}",
"private void drawTrack(Canvas canvas){\n if(trackEnabled){\n progressPaint.setShader(null);\n progressPaint.setColor(mTrackColor);\n if(fillEnabled) {\n progressPaint.setStyle(Paint.Style.FILL);\n initTrack(canvas, true);\n }else {\n progressPaint.setStyle(Paint.Style.STROKE);\n initTrack(canvas, false);\n\n }\n }\n }",
"public int getProgressColor() {\n\t\treturn mProgressPaint.getColor();\n\t}",
"public void setBackgroundColor(Color color) {\n //bar.setBackground(color);\n }",
"private void updateColorPreview() {\n runOnUiThread(() -> colorView.setBackgroundColor(Utils.HSV_to_ARGB(specState.hue,\n specState.saturation,\n specState.value)));\n }",
"public void setProgressColor(int progressColor) {\n\t\tmProgressPaint.setColor(progressColor);\n\t\tinvalidate();\n\t}",
"private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }",
"void onColorChanged(SeekBar seekBar, int color, boolean b);",
"void setColor(){\n this.objectColour = new Color(rValue,gValue,bValue,timeToLive).brighter();\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}",
"private void setProgressBarColor(int ID){\n if(progress!=null){\n Drawable progressDrawable;\n\n switch (ID){\n case 1: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar0);\n break;\n case 2 : progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar1);\n break;\n case 3 : progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar2);\n break;\n case 4: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar3);\n break;\n case 5: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar0);\n break;\n case 6: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar1);\n break;\n default: progressDrawable = weakContext.get().getResources().getDrawable(R.drawable.customprogressbar);\n break;\n }\n progress.setProgressDrawable(progressDrawable);\n }\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n fade = seeker.getProgress();\r\n if(!getLucky) {\r\n Log.i(\"Poop\", \"getLucky == false\");\r\n hold = ColorFinder.kindFinder(color, gotColor1);\r\n test = ColorFinder.kindFinder(color2, gotColor2);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else if(getLucky && gotColor2){\r\n Log.i(\"Poop\", \"getLuck == true and gotColor2 ==true\");\r\n hold = ColorFinder.randomColorFinder(ran, dom, ness);\r\n test = ColorFinder.kindFinder(color2, gotColor2);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else if(getLucky && gotColor1) {\r\n Log.i(\"Poop\", \"getLucky == true and gotColor1 == true\");\r\n hold = ColorFinder.kindFinder(color, gotColor1);\r\n test = ColorFinder.randomColorFinder(fus, ro, dah);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n } else {\r\n Log.i(\"Poop\", \"getLucky == true and nothing else\");\r\n hold = ColorFinder.randomColorFinder(ran, dom, ness);\r\n test = ColorFinder.randomColorFinder(fus, ro, dah);\r\n token = new StringTokenizer(hold);\r\n smoken = new StringTokenizer(test);\r\n redTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken())\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n greenTotal = (int) ColorFinder.colorFinder(Integer.parseInt(token.nextToken()),\r\n Integer.parseInt(smoken.nextToken()), fade);\r\n blueTotal = (int) ColorFinder.colorFinder((Integer.parseInt(token.nextToken()))\r\n , Integer.parseInt(smoken.nextToken()), fade);\r\n hex = ColorFinder.changeColor(redTotal, greenTotal, blueTotal);\r\n colorBlend.setBackgroundColor(hex);\r\n }\r\n if(gotColor1&& gotColor2) {\r\n getLucky = false;\r\n }\r\n }",
"void seeGreen() {\n\t\tbar.setForeground(Color.GREEN);\n\t}",
"public void setCircleProgressColor(int color) {\r\n\t\tmCircleProgressColor = color;\r\n\t\tmCircleProgressPaint.setColor(mCircleProgressColor);\r\n\t\tinvalidate();\r\n\t}",
"public void changing_redbar(View v)\n {\n SV.setRed(selected,((SeekBar)v).getProgress());\n }",
"public void setseekbars()\n {\n red.setProgress(SV.getRed(selected));\n blue.setProgress(SV.getBlue(selected));\n green.setProgress(SV.getGreen(selected));\n }",
"public abstract void setCurBackground(Color colr);",
"public void setBg(){\n this.setBackground(color);\n }",
"private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }",
"public PlayerIndicator (Color color)\n {\n this.color = color;\n setBackground(BACKGROUND_COLOR);\n setPreferredSize(new Dimension(30, 30));\n }",
"public void setColor(double value) {\r\n\t\tif (value < 0) {\r\n\t\t\tpg.fill(140+(int)(100*(-value)), 0, 0);\r\n\t\t} else {\r\n\t\t\tpg.fill(0, 140+(int)(100*(value)), 0);\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n AlertDialog.Builder b = new AlertDialog.Builder(MainOfflineActivity.this);\n b.setTitle(\"Set your own color\");\n b.setIcon(imgpen.getDrawable());\n View seekBarView = getLayoutInflater().inflate(R.layout.color_seekbar, null);\n b.setView(seekBarView);\n\n final TextView colorBlock = seekBarView.findViewById(R.id.color_block);\n SeekBar seekRed = seekBarView.findViewById(R.id.seekbar_red);\n SeekBar seekGreen = seekBarView.findViewById(R.id.seekbar_green);\n SeekBar seekBlue = seekBarView.findViewById(R.id.seekbar_blue);\n SeekBar seekAlpha = seekBarView.findViewById(R.id.seekbar_alpha);\n\n seekRed.setMax(255);\n seekRed.setProgress(RED);\n seekGreen.setMax(255);\n seekGreen.setProgress(GREEN);\n seekBlue.setMax(255);\n seekBlue.setProgress(BLUE);\n seekAlpha.setMax(255);\n seekAlpha.setProgress(ALPHA);\n\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n\n seekRed.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n RED = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekGreen.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n GREEN = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekBlue.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n BLUE = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n seekAlpha.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n @Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n ALPHA = i;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n colorBlock.setBackgroundColor(colorHexCode);\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n b.setPositiveButton(\"Done\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n imgpen.setColorFilter(colorHexCode);\n Objects.requireNonNull(getDrawable(stroke)).setTint(colorHexCode);\n finalColor = colorHexCode;\n initColorForPalette = finalColor;\n }\n });\n b.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n b.setNeutralButton(\"Default\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ALPHA = 255;\n RED = 39;\n GREEN = 41;\n BLUE = 41;\n colorHexCode = Color.argb(ALPHA, RED, GREEN, BLUE);\n imgpen.setColorFilter(colorHexCode);\n Objects.requireNonNull(getDrawable(stroke)).setTint(colorHexCode);\n finalColor = colorHexCode;\n initColorForPalette = finalColor;\n }\n });\n\n AlertDialog d = b.create();\n d.show();\n }",
"protected void setPlayerBackground() { Console.setBackground(Console.YELLOW); }",
"public int getCircleProgressColor() {\r\n\t\treturn mCircleProgressColor;\r\n\t}",
"@Override\n public void setBackgroundColor(int backgroundColor) {\n }",
"@Override public void paintTrack(Graphics g) {\n\n g.translate(trackRect.x, trackRect.y);\n\n int trackLeft = 0;\n int trackTop = 0;\n int trackRight;\n int trackBottom;\n if (slider.getOrientation() == SwingConstants.HORIZONTAL) {\n trackBottom = trackRect.height - 1 - getThumbOverhang();\n trackTop = trackBottom - getTrackWidth() + 1;\n trackRight = trackRect.width - 1;\n } else {\n // if (leftToRight) {\n trackLeft = trackRect.width - getThumbOverhang() - getTrackWidth();\n trackRight = trackRect.width - getThumbOverhang() - 1;\n // } else {\n // trackLeft = getThumbOverhang();\n // trackRight = getThumbOverhang() + getTrackWidth() - 1;\n // }\n trackBottom = trackRect.height - 1;\n }\n\n // Draw the track\n paintTrackBase(g, trackTop, trackLeft, trackBottom, trackRight);\n\n // Draw the fill\n paintTrackFill(g, trackTop, trackLeft, trackBottom, trackRight);\n\n // Draw the highlight\n paintTrackHighlight(g, trackTop, trackLeft, trackBottom, trackRight);\n\n g.translate(-trackRect.x, -trackRect.y);\n }",
"public void setCursorPositionColor(Color color)\n {\n this.jStatusBarColor.setBackground(color);\n this.jStatusBarColor.setText(\"RGB:\"+color.getRed()+\",\"+color.getGreen()+\",\"+color.getBlue());\n }",
"public void mousePressed() {\n\t\tint loc = mouseX + mouseY * width;\n\t\ttrackColor = pixels[loc];\n\t\tflock.killAll();\n\n\t\t//settingsW.settingsWindow.redraw();\n\t\t\n\t\tprintln(\"trackColor=\" + (red(trackColor)) + \",\" + (green(trackColor))\n\t\t\t\t+ \",\" + (blue(trackColor)));\n\t}",
"private void writeTrackStyle() {\n printWriter.println(\"<Style id=\\\"\" + TRACK_STYLE + \"\\\">\");\n printWriter.println(\"<LineStyle><color>7f0000ff</color><width>4</width></LineStyle>\");\n printWriter.println(\"<IconStyle>\");\n printWriter.println(\"<scale>1.3</scale>\");\n printWriter.println(\"<Icon><href>\" + TRACK_ICON + \"</href></Icon>\");\n printWriter.println(\"</IconStyle>\");\n printWriter.println(\"</Style>\");\n }",
"private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}",
"private void setupTintControl() {\n\n SeekBar tintControl = (SeekBar) findViewById(R.id.slider);\n tintControl.setMax(MAX_TINT);\n tintControl.setProgress(0);\n\n // Set an OnSeekBarChangeListener on the\n tintControl.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\n\n\n public void onProgressChanged(SeekBar seekBar, final int progress,\n boolean fromUser) {\n updateAllViews(progress);\n }\n\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }\n\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }\n });\n\n }",
"private void updateProgressBar(int currentPoints){\n\n progressBar.setProgress(currentPoints);\n\n switch(currentPoints){\n case 1:\n progressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\n break;\n case 2:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FF6600\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 3:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FFFF66\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 4:\n progressBar.getProgressDrawable().setColorFilter(Color.GREEN, PorterDuff.Mode.SRC_IN);\n\n break;\n case 5:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#2C6700\"), PorterDuff.Mode.SRC_IN);\n\n }\n\n\n\n }",
"private void updateColor() {\n int redShift = red << 16; // red: 0xRR0000 <- 0xRR\n int greenShift = green << 8; // red: 0xGG00 <- 0xGG\n int blueShift = blue; // blue: 0xBB <- 0xBB\n int alphaShift = 0xff << 24; // alpha 0xff000000 <- 0xff // we don't want our color to be transparent.\n int color = alphaShift | redShift | greenShift | blueShift;\n viewColor.setBackgroundColor(color);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif(isRecognition) {\n\t\t\t\t\t\t\talpha *= 0.95f;\n//\t\t\t\t\t\t\tsetBackgroundColor((int) (255 * (1 - label) * alpha));\n\t\t\t\t\t\t\ttxtHandParts.setTextColor(Color.argb((int) (alpha * 255), 255,\n\t\t\t\t\t\t\t\t\t255, 255));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(alpha > 0.1f) {\n\t\t\t\t\t\t\t\tLog.d(LOGTAG, (int) (255 * (1 - label) * alpha)+\"\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}",
"void setStatusColour(Color colour);",
"public MyProgress setWindowColor(int color) {\n mWindowColor = color;\n return this;\n }",
"private void drawBackground(Canvas canvas) {\n if (resourceHelper == null || settingsHelper == null) return;\n \n paint.setStrokeWidth(0);\n paint.setStyle(Paint.Style.FILL);\n \n int lastThreshold = top;\n \n for (MeasurementLevel measurementLevel : new MeasurementLevel[]{MeasurementLevel.HIGH, MeasurementLevel.MID, MeasurementLevel.LOW}) {\n paint.setColor(resourceHelper.getGraphColor(measurementLevel));\n int threshold = settingsHelper.getThreshold(sensor, measurementLevel);\n \n canvas.drawRect(0, project(lastThreshold), getWidth(), project(threshold), paint);\n lastThreshold = threshold;\n }\n \n paint.setColor(resourceHelper.getGraphColor(MeasurementLevel.VERY_LOW));\n canvas.drawRect(0, project(lastThreshold), getWidth(), getHeight(), paint);\n }",
"public int getPercentageColor() {\n return percentageColor;\n }",
"private void setToBackground(Color color) {\n\t\tfor (Loc l : currentPiece.getLocation()) {\n\t\t\tif (l.isOnBoard()) {\n\t\t\t\tboardTiles[l.row][l.col] = color;\n\t\t\t}\n\t\t}\n\t}",
"void seeRed() {\n\t\tbar.setForeground(Color.RED);\n\t}",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar skb, int prog, boolean fromUser) {\n\t\t\t\tMySurfaceView.redVal = prog;\n\t\t\t}",
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void changeProBarColor(Color color) {\n matchProgressBar.setForeground(color);\n }",
"public void applyColor() {\n\t\tSystem.out.println(\"Yellow\");\n\n\t}",
"void setProgress(float progress);",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"private void assignTileColor() {\n boolean isLightTile = ((tileCoordinate + tileCoordinate / 8) % 2 == 0);\n setBackground(isLightTile ? LIGHT_TILE_COLOR : DARK_TILE_COLOR);\n }",
"@Override\n public void onAnimationUpdate(ValueAnimator\n animator) {\n etiqueta.setBackgroundColor((Integer)animator.getAnimatedValue());\n }",
"public void setColor(int datapoints) {\n\t\tif (datapoints == 0) {\n\t\t\tmainSash.setBackground(new Color(Display.getCurrent(), new RGB(180, 0, 0)));\n\t\t} else {\n\t\t\tmainSash.setBackground(new Color(Display.getCurrent(), new RGB(0, 180, 0)));\n\t\t}\n\t}",
"@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}",
"public void setColor(int value);",
"@Override\r\n\tpublic void paintComponent(Graphics g)\r\n\t{\r\n\t\tif(_StartFinish)\r\n\t\t\tsetBackground(Color.WHITE);\r\n\t\telse\r\n\t\t\tsetBackground(Color.DARK_GRAY);\r\n\t\t\r\n\t\tsuper.paintComponent(g);\r\n\t}",
"void changeResumeButtonColor(Color color);",
"private void lineColor() {\n\n\t}",
"void fill(int rgb);",
"public void Color() {\n\t\t\r\n\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n Log.d(TAG, \"Set LCD back-light level:\"+progress);\n mDisplayControl.setBacklight(progress);\n }",
"public void updateBackground(Color color) {\r\n background = color;\r\n }",
"public void lightPause() {\n stopPawn.setStyle(\"-fx-background-color: RED;\"\n + \"-fx-background-radius: 30;\"\n + \"-fx-border-radius: 30;\"\n + \"-fx-border-color: 363507;\");\n movePawn.setStyle(\"-fx-background-color: null\");\n buildPawn.setStyle(\"-fx-background-color: null\");\n }",
"public void changeColor() {\n linearLayout.setBackgroundColor(currentColor);\n for (int i = 0; i < arrayList.size(); i++) {\n arrayList.get(i).gifImageView.setBackgroundColor(currentColor);\n }\n }",
"@Override\n\tpublic void setPersonal_4_RulerMeter() \n\t{\n\t\tclassScaleColor.put(\"RulerMeter\", LIGHT_YELLOW_COLOR);\n\n\t\t\n\t\t//indicatorColor = (DARK_BLUEBERRY_COLOR);\n\t\tclassIndicatorColor.put(\"RulerMeter\", DARK_BLUEBERRY_COLOR);\n\t\t\n\t\tlabelColor = (METER_TICK_COLOR);\n\t}",
"public static void setViewBGcolor(Context context, int color){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"bgColor\", color);\n edit.apply();\n }",
"private void setViewColor(String route) {\n \t\tint color = Data.getColorFromRouteTag(route);\n \t\tstopTextView.setTextColor(getResources().getColor(color));\n \t\tcolorBar.setBackgroundColor(getResources().getColor(color));\n \t\tcolorSeperator.setBackgroundColor(getResources().getColor(color));\n \t}",
"private void setPenColor() {\n\t}",
"void color(){\n Activity.setColor(borderColor);\n ViewAnimator.color(backCircularColorView, \"circularColor\", 0, 500, backCircularColorView.getCircularColor(), textColor);\n ViewAnimator.color(leftCircularColorView, \"circularColor\", 100, 500, leftCircularColorView.getCircularColor(), textColor);\n ViewAnimator.color(rightCircularColorView, \"circularColor\", 200, 500, rightCircularColorView.getCircularColor(), textColor);\n ViewAnimator.color(backCircularColorView, \"borderColor\", 0, 500, backCircularColorView.getCircularColor(), borderColor);\n ViewAnimator.color(leftCircularColorView, \"borderColor\", 100, 500, leftCircularColorView.getCircularColor(), borderColor);\n ViewAnimator.color(rightCircularColorView, \"borderColor\", 200, 500, rightCircularColorView.getCircularColor(), borderColor);\n }",
"public void setBackgroundColor(Color c) {\n backColor = c;\n updateFigureForModel(nodeFigure);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n // 背景工作處理\"中\"更新的事\n\n }",
"@Override\n\t\t\tpublic void onAnimationUpdate(ValueAnimator animation) {\n\t\t\t\trlayout.setBackgroundColor((Integer)animation.getAnimatedValue());\n\t\t\t}",
"private void setBackgroundColor(int red) {\n\t\tint bgColor = Color.argb(255, red, 0, 0);\n\t\tlayout.setBackgroundColor(bgColor);\n\t}",
"public void setManualBackgroundColor(Color color) {\n _manualBackgroundColor = color;\n }",
"public void setColor(int color);",
"public void setColor(int color);",
"@Override\n\tpublic void setPersonal_4_HalfGaugeMeter() \n\t{\n\t\tbgColor = METER_SCALE_COLOR;\n\t}",
"@Override\n public void onColorChange(int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n Log.w(\"CameraEngineActivity\", \"R:\" + r + \" G:\" + g + \" B:\" + b);\n colorText.setBackgroundColor(color);\n }",
"public static void setProgressBarColor(\n Context context,\n ProgressBar progressBar,\n int colorId\n ) {\n progressBar\n .getIndeterminateDrawable()\n .setColorFilter(\n context.getResources().getColor(colorId),\n android.graphics.PorterDuff.Mode.SRC_IN\n );\n }",
"@BindingAdapter(\"app:progressTint\")\n public static void tintPopularity(ProgressBar view,Popularity popularity){\n int color = getAssociatedColor(popularity, view.getContext());\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n view.setProgressTintList(ColorStateList.valueOf(color));\n }\n }",
"public void setColor(float r, float g, float b, float a);",
"public void setProgress(int value);",
"@Override public void onAnimationUpdate(ValueAnimator animation) {\n hsv[1] = from[1] + (to[1] - from[1])*animation.getAnimatedFraction();\n hsv[2] = from[2] + (to[2] - from[2])*animation.getAnimatedFraction();\n\n list_item.setBackgroundColor(Color.HSVToColor(hsv));\n }",
"@Override\r\n public void setBackground(Color c) {\r\n super.setBackground(c);\r\n colorWheel = null;\r\n repaint();\r\n }",
"public void setHslColorBg(int newval) throws YAPI_Exception\n {\n _hslColor = newval;\n _ycolorled.set_hslColor(newval);\n }",
"public void setColor( GraphColor newVal ) {\n color = newVal;\n }",
"@Override\n\tpublic void setColour(float r, float g, float b) {\n\n\t}",
"public void setColor()\n {\n String PREF_FILE_NAME = \"PrefFile\";\n final SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE);\n\n if(preferences.getBoolean(\"ColorBlind\", false)) {\n View box1 = this.findViewById(R.id.username);\n box1.setBackgroundColor(0xffffffff);\n\n View box2 = this.findViewById(R.id.password);\n box2.setBackgroundColor(0xffffffff);\n\n View box3 = this.findViewById(R.id.Login);\n box3.setBackgroundColor(0xffffffff);\n\n }\n }",
"@Override\n public void periodic() {\n\n if (lastcolor != sColor())\n {\n lastcolor = sColor();\n colorcount++;\n }\n\n DriverStation.reportError(sColor() + /*\",\" + sRGB() +*/ \", \" + sIsClose() + \",\" + String.valueOf(colorcount), false);\n\n\n \n }",
"public void setPercentageColor(int percentageColor) {\n this.percentageColor = percentageColor;\n percentageView.setTextColor(ColorStateList.valueOf(percentageColor));\n invalidate();\n requestLayout();\n }",
"private void setColor() {\n cell.setStroke(Color.GRAY);\n\n if (alive) {\n cell.setFill(aliveColor);\n } else {\n cell.setFill(deadColor);\n }\n }",
"public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }",
"@Override\n public Color getColor() {\n return color;\n }",
"public void setColor(int r, int g, int b);",
"public void setRgbColorBg(int newval) throws YAPI_Exception\n {\n _rgbColor = newval;\n _ycolorled.set_rgbColor(newval);\n }",
"private void setHueDrawables() {\n\t\tShapeDrawable.ShaderFactory sf = new ShapeDrawable.ShaderFactory() {\n\t\t @Override\n\t\t public Shader resize(int width, int height) {\n\t\t \tLinearGradient gradient = new LinearGradient(0.f, 0.f, width, 0.0f, \n\t\t \t\t\tnew int[] { 0xffff0000, 0xffffff00, 0xff00ff00, 0xff00ffff, 0xff0000ff, 0xffff00ff, 0xffff0000}, \n\t\t \t\t\t\t null, TileMode.CLAMP);\n\t\t \treturn gradient;\n\t\t }\n\t\t};\n\t\t\n\t\tPaintDrawable p = new PaintDrawable();\n\t\tp.setShape(new RectShape());\n\t\tp.setShaderFactory(sf);\n\t\t\n\t\tthis.hueSeekBar.setProgressDrawable((Drawable) p);\n\t}",
"public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }",
"public Figure(Color color){\n this.color=color;\n }",
"public static void update(){\n\t\t\n\t\tgraphFrame.setColor(color);\n\t}",
"void setGreen(int green){\n \n this.green = green;\n }",
"public void setColorAccordingToAge() {\n float brightness = (float) Math.max(0f, Math.min(1f, getLifetime() / fullbrightnessLifetime));\n Color color = Color.getHSBColor(.5f, 1f, brightness);\n setColor(color);\n }"
] |
[
"0.68639076",
"0.6810637",
"0.64383113",
"0.6437945",
"0.6289318",
"0.6148773",
"0.6102508",
"0.61007845",
"0.60642356",
"0.5971697",
"0.5966475",
"0.5939258",
"0.5931743",
"0.59136575",
"0.59126335",
"0.5882328",
"0.58715",
"0.5814083",
"0.5806093",
"0.5783995",
"0.5719715",
"0.5713651",
"0.56905186",
"0.5675389",
"0.5647759",
"0.5645181",
"0.5642991",
"0.56396574",
"0.5623393",
"0.5606053",
"0.5591673",
"0.5590238",
"0.55869514",
"0.55869347",
"0.55856466",
"0.5566841",
"0.5566538",
"0.55654526",
"0.55650914",
"0.5535707",
"0.5534136",
"0.55321515",
"0.5524143",
"0.55193967",
"0.55193967",
"0.55133516",
"0.5502239",
"0.54840046",
"0.5472489",
"0.5470122",
"0.5470002",
"0.54644984",
"0.5457992",
"0.5444733",
"0.54413104",
"0.544051",
"0.5433808",
"0.54335886",
"0.5414539",
"0.54116786",
"0.54111445",
"0.540997",
"0.5409936",
"0.54064596",
"0.53963274",
"0.5395813",
"0.5393718",
"0.5390544",
"0.5382561",
"0.53691524",
"0.5364386",
"0.5339621",
"0.5337021",
"0.53323716",
"0.53323716",
"0.5329782",
"0.5321834",
"0.5315816",
"0.53109336",
"0.5309075",
"0.5299768",
"0.5297335",
"0.5289196",
"0.52790964",
"0.5268254",
"0.52667034",
"0.5263765",
"0.5258019",
"0.5244451",
"0.5236232",
"0.52362156",
"0.5230782",
"0.5226523",
"0.52261674",
"0.522511",
"0.5224047",
"0.52207184",
"0.5212422",
"0.52092457",
"0.52079046"
] |
0.703211
|
0
|
set content for progress inner space
|
public void setFillEnabled(boolean fillEnabled){
this.fillEnabled = fillEnabled;
refreshTheView();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void progressMode() {\n\t\t// lazily build the layout\n\t\tif (progressLayout == null) {\n\t\t\tprogressLayout = new DefaultVerticalLayout(true, true);\n\n\t\t\tprogressBar = new ProgressBar();\n\t\t\tprogressBar.setHeight(\"20px\");\n\t\t\tprogressLayout.add(progressBar);\n\n\t\t\tstatusLabel = new Text(\"\");\n\t\t\tprogressLayout.add(statusLabel);\n\t\t}\n\t\tprogressBar.setValue(0.0f);\n\t\tstatusLabel.setText(\"\");\n\n\t\tremoveAll();\n\t\tadd(progressLayout);\n\t}",
"private void setupProgressBar() {\n\t\tprogress_bar = new JProgressBar(0,words_to_spell.size());\n\t\tprogress_bar.setBounds(32, 170, 1284, 34);\n\t\tprogress_bar.setBorderPainted(false);\n\t\tprogress_bar.setBackground(Color.WHITE);\n\t\tprogress_bar.setStringPainted(true);\n\t\tprogress_bar.setString(\"\");\n\t\tadd(progress_bar);\n\t}",
"public void updateProgressMessage() {\n pb.setMax(frames);\n int rendered = getNumFramesRendered(this, projectName);\n pb.setProgress(Math.min(pb.getMax(), rendered));\n int n = pb.getMax();\n int ratio = (rendered * 100) / n;\n String temp = String.format(\"Progress: %d / %d (%d%%)\", rendered, n, ratio);\n progressMessage.setText(temp);\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }",
"@Override\n public void updateScreen() {\n if (dirty) {\n Alkahestry.logger.info(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// String name = String.valueOf(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// fontRenderer.drawString(name, xSize / 2 - fontRenderer.getStringWidth(name) / 2, 6, 0x404040);\n// fontRenderer.drawString(playerInv.getDisplayName().getUnformattedText(), 8, ySize - 94, 0x404040);\n dirty = false;\n }\n// ((ContainerMoleculeSplitter) container)\n// .moleculeSplitterTileEntity\n// .\n super.updateScreen();\n }",
"@Override\n public void run() {\n pbCount.setProgress(wordsCount);\n }",
"private void setUiDuringBackgroundTask(String progress) {\n progressDialog.setMessage(progress);\n\n setInfo(progress);\n }",
"public void run() {\n\t\t\t\t\tmHandler.post(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tprogressbar.setProgress(Integer\r\n\t\t\t\t\t\t\t\t\t.parseInt(tvsp.progress));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}",
"public void progressBar(Rectangle progressBar) {\n \n currentHeight = 0;\n moveProgress = new AnimationTimer() {\n \n \n double heightMax = 210;\n double heightGrow = 5;\n @Override\n public void handle(long now) {\n if(currentHeight < heightMax) {\n currentHeight += heightGrow;\n progressBar.setHeight(currentHeight);\n } else if(currentHeight == heightMax) {\n currentHeight = 0;\n }\n \n \n }\n };\n moveProgress.start();\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n // 背景工作處理\"中\"更新的事\n\n }",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"带进度条的表\");\r\n\t\tshell.setLayout(new FillLayout());\r\n\r\n\t\tTable table = new Table(shell, SWT.BORDER);\r\n\t\ttable.setHeaderVisible(true);\r\n\t\ttable.setLinesVisible(true);\r\n\r\n//\t\t两列\r\n\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\tnew TableColumn(table, SWT.NONE);\r\n\t\t}\r\n\t\ttable.getColumn(0).setText(\"Task\");\r\n\t\ttable.getColumn(1).setText(\"Progress\");\r\n\r\n//\t\t四十行\r\n\t\tfor (int i = 0; i < 40; i++) {\r\n\t\t\tTableItem item = new TableItem(table, SWT.NONE);\r\n\t\t\titem.setText(\"Task \" + i);\r\n//\t\t\t行数为5的倍数时添加进度条\r\n\t\t\tif (i % 5 == 0) {\r\n\t\t\t\tProgressBar bar = new ProgressBar(table, SWT.NONE);\r\n\t\t\t\tbar.setSelection(i); // 进度条显示的百分比\r\n\t\t\t\tTableEditor editor = new TableEditor(table);\r\n\t\t\t\teditor.grabHorizontal = editor.grabVertical = true; // 宽度高度同表格\r\n\t\t\t\teditor.setEditor(bar, item, 1); // 在表格上方显示进度条\r\n\t\t\t}\r\n\t\t}\r\n\t\ttable.getColumn(0).pack();\r\n\t\ttable.getColumn(1).setWidth(128);\r\n\r\n\t\tshell.pack();\r\n\t}",
"@Override\n public void run() {\n for (int i = 0; i<100 ; i++) {\n pb.setProgress(i/1000.0);\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"void setProgress(int progress);",
"void setProgress(int progress);",
"@Override public void addTab(String title, Component content) {\n super.addTab(title, new JLabel(\"Loading...\"));\n JProgressBar bar = new JProgressBar();\n int currentIndex = getTabCount() - 1;\n JLabel label = new JLabel(title);\n Dimension dim = label.getPreferredSize();\n int w = Math.max(80, dim.width);\n label.setPreferredSize(new Dimension(w, dim.height));\n Insets tabInsets = UIManager.getInsets(\"TabbedPane.tabInsets\");\n bar.setPreferredSize(new Dimension(w, dim.height - tabInsets.top - 1));\n // bar.setString(title);\n // bar.setUI(new BasicProgressBarUI());\n setTabComponentAt(currentIndex, bar);\n SwingWorker<String, Integer> worker = new BackgroundTask() {\n @Override protected void process(List<Integer> chunks) {\n if (!isDisplayable()) {\n // System.out.println(\"process: DISPOSE_ON_CLOSE\");\n cancel(true);\n }\n }\n\n @Override protected void done() {\n if (!isDisplayable()) {\n // System.out.println(\"done: DISPOSE_ON_CLOSE\");\n cancel(true);\n return;\n }\n setTabComponentAt(currentIndex, label);\n setComponentAt(currentIndex, content);\n String txt;\n try {\n txt = get();\n } catch (InterruptedException ex) {\n txt = \"Interrupted\";\n Thread.currentThread().interrupt();\n } catch (ExecutionException ex) {\n txt = \"Exception\";\n }\n label.setToolTipText(txt);\n }\n };\n worker.addPropertyChangeListener(new ProgressListener(bar));\n // executor.execute(worker);\n worker.execute();\n }",
"@Override\n public void setText(String text) {\n myProgressManager.setText2(this, text);\n }",
"private void setProgress(String what)\n {\n if (progressBar != null)\n {\n double elapsed = (System.currentTimeMillis() - startMs) / 1000.;\n String etl = String.format(\"Elapsed: %4.0f\", elapsed);\n progressBar.setEstTime(etl);\n progressBar.setWorkingOn(what);\n progressBar.setProgress(-1);\n }\n }",
"@Override\n public void showProgress() {\n\n }",
"@Override\n\tprotected void onProgressUpdate(Integer... values) {\n\t\tint len = progressBar.getProgress() + values[0];\n\t\tprogressBar.setProgress(len);\n\t\tString str = progressBar.getProgress() * 100 / progressBar.getMax()\n\t\t\t\t+ \"%\";\n\t\ttv.setText(\"下载完成\" + str);\n\t\tsuper.onProgressUpdate(values);\n\t}",
"void setProgress(float progress);",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttextArea.setText(textArea.getText()+\"\\n\"+s);\n\t\t\t}",
"@Override\n public void update(final Progress progress) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n progressBar.setValue(progress.getIntPercentage());\n progressField.setText(roundToSingleDigit(progress.getPercentage()) + \"%\");\n }\n });\n }",
"@Override\n\t\t/*\n\t\t * UI线程执行\n\t\t */\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t\t// 取出发布进度的值\n\t\t\tint value = values[0];\n\t\t\t// 设置给Button\n\t\t\tbtn.setText(\"\" + value);\n\t\t\tpb.setProgress(value);\n\t\t}",
"private void updateProgress(int progress) {\n if (myHost != null) {\n myHost.updateProgress(progress);\n } else {\n System.out.println(\"Progress: \" + progress + \"%\");\n }\n }",
"@Override\r\n\tprotected void onProgressUpdate(String... s) {\r\n\t\tactivity.addToGUI(s[0]);\r\n\t}",
"protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}",
"@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tprgDlg.setMax(nTotalPage);\r\n\t\t\t\t\t\t\tprgDlg.setProgress(nPage);\r\n\t\t\t\t\t\t}",
"private void updateBar() {\n\t\tString resources = String.format(\"Money: $%d\\nAgents: %d\\nMedia reach: %d\\nPopulation unrest: %d\"\n\t\t\t\t, player.getMoney(), player.getAgentNumber(), player.getMediaReach(), player.getUnrestSpread());\n\t\t((TextView) findViewById(R.id.text_resource_display_left)).setText(resources);\n\t\t\n\t\tresources = String.format(\"\\nAgent skill: %.0f%%\\nMedia influence: %.0f%%\\nPopulation care: %.0f%%\"\n\t\t\t\t, player.getAgentSkill(), player.getMediaPerception(), player.getUnrestStrength());\n\t\t((TextView) findViewById(R.id.text_resource_display_right)).setText(resources);\n\t}",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}",
"private void updateUI() {\n handler_.post(new Runnable() {\n public void run() {\n bar_.setProgress(time_);\n String remTimeStr = \"\" + (maxTime_ - time_);\n timeRemaining_.setText(REM_STRING.replace(\"?\", remTimeStr));\n }\n });\n }",
"public void setContents()\r\n\t{\r\n\t\t// contents.widthProperty().bind(this.prefWidthProperty());\r\n\t\t// contents.heightProperty().bind(this.prefHeightProperty());\r\n\t\t// contents.resize(width, height);\r\n\t\t// contents.relocate(width/4, height/4);\r\n\r\n\t}",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"public void initContent(int progressBarInitValue, int progressBarTotalValue) {\n mExamProgressBar.setMax(progressBarTotalValue * 10);\n mExamProgressBar.setProgress(progressBarInitValue * 10);\n }",
"private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n progress.setMessage(getResources().getString(R.string.loading));\n progress.setIndeterminate(false);\n progress.setCancelable(true);\n // progress.show();\n }",
"private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}",
"public Searching6() {\r\n try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}\r\n catch (Exception e) {}\r\n initComponents();\r\n progBar = new JProgressBar(0, 100);\r\n jPanel2.add(progBar);\r\n progBar.setBounds(70, 10, 280, 20);\r\n new Thread(new thread1()).start();\r\n\r\n /*for (int i=0; i<=100; i++){ //Progressively increment variable i\r\n progBar.setValue(i); //Set value\r\n progBar.repaint();\r\n }*/\r\n }",
"protected void createContents() {\n\t\tsetText(\"Termination\");\n\t\tsetSize(340, 101);\n\n\t}",
"private void ini_Progressbar()\r\n\t{\r\n\r\n\t\tfloat ref = UiSizes.that.getWindowHeight() / 13;\r\n\t\tCB_RectF CB_LogoRec = new CB_RectF(this.getHalfWidth() - (ref * 2.5f), this.getHeight() - ((ref * 5) / 4.11f) - ref, ref * 5,\r\n\t\t\t\t(ref * 5) / 4.11f);\r\n\r\n\t\t// CB_Logo = new Image(CB_LogoRec, \"CB_Logo\");\r\n\t\t// CB_Logo.setDrawable(new SpriteDrawable(atlas.createSprite(\"cachebox-logo\")));\r\n\t\t// this.addChild(CB_Logo);\r\n\r\n\t\tString VersionString = Global.getVersionString();\r\n\t\tTextBounds bounds = Fonts.getNormal().getMultiLineBounds(VersionString + Global.br + Global.br + Global.splashMsg);\r\n\t\tdescTextView = new Label(0, CB_LogoRec.getY() - ref - bounds.height, this.getWidth(), bounds.height + 10, \"DescLabel\");\r\n\t\t// HAlignment.CENTER funktioniert (hier) (noch) nicht, es kommt rechtsbündig raus\r\n\t\tdescTextView.setWrappedText(VersionString + Global.br + Global.br + Global.splashMsg);\r\n\t\tdescTextView.setHAlignment(HAlignment.CENTER);\r\n\t\tthis.addChild(descTextView);\r\n\r\n\t\tDrawable ProgressBack = new NinePatchDrawable(atlas.createPatch(\"btn-normal\"));\r\n\t\tDrawable ProgressFill = new NinePatchDrawable(atlas.createPatch(\"progress\"));\r\n\r\n\t\tfloat ProgressHeight = Math.max(ProgressBack.getBottomHeight() + ProgressBack.getTopHeight(), ref / 1.5f);\r\n\r\n\t\tprogress = new ProgressBar(new CB_RectF(0, 0, this.getWidth(), ProgressHeight), \"Splash.ProgressBar\");\r\n\r\n\t\tprogress.setBackground(ProgressBack);\r\n\t\tprogress.setProgressFill(ProgressFill);\r\n\t\tthis.addChild(progress);\r\n\r\n\t\tfloat logoCalcRef = ref * 1.5f;\r\n\r\n\t\tCB_RectF rec_Mapsforge_Logo = new CB_RectF(200, 50, logoCalcRef, logoCalcRef / 1.142f);\r\n\t\tCB_RectF rec_FX2_Logo = new CB_RectF(rec_Mapsforge_Logo);\r\n\t\tfloat w = logoCalcRef * 2.892655367231638f;\r\n\t\tCB_RectF rec_LibGdx_Logo = new CB_RectF(this.getHalfWidth() - (w / 2), 50, w, w);\r\n\r\n\t\trec_FX2_Logo.setX(400);\r\n\r\n\t\tLasifant = new LasifantAnimation(rec_LibGdx_Logo, \"LibGdx_Logo\");\r\n\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-1\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-2\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-3\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-4\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-5\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-6\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-7\"));\r\n\t\tLasifant.addLastFrame(atlas.createSprite(\"logo-8\"));\r\n\r\n\t\tLasifant.play();\r\n\r\n\t\tthis.addChild(Lasifant);\r\n\r\n\t}",
"@Override\n\t\tprotected void onProgressUpdate(String... values) {\n\t\t\tlong total = Long.parseLong(values[0]);\n\t\t\tdialog.setProgress((int) ((total * 100) / lengthOfFile));\n\t\t\tdialog.setMessage((total / (1024 * 1014)) + \"MB/\"\n\t\t\t\t\t+ (lengthOfFile / (1024 * 1024)) + \"MB\");\n\t\t\tsuper.onProgressUpdate(values);\n\t\t}",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n progressDialog.setMessage(text.substring(0,values[0]));\n progressDialog.setProgress(values[0]);\n }",
"public void setProgress(int value);",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"void showProgress();",
"private void progressBar()\n {\n int amount = 0;\n for(Movie a:\n baseMovieList)\n if(a.isWatched())\n amount++;\n int fill = 100 / baseMovieList.size() * amount;\n progressBar.setProgress(fill);\n }",
"public abstract void setProgress (String description, int currentStep, int totalSteps);",
"public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }",
"public void run() {\r\n ouputProgressModel.setPogressStarted(true);\r\n try {\r\n for (int i = 0; i <= 100; i += 10) {\r\n // pause the thread\r\n Thread.sleep(PROCCESS_SLEEP_LENGTH);\r\n // update the percent value\r\n ouputProgressModel.setPercentComplete(i);\r\n SessionRenderer.render(\"progressExample\");\r\n }\r\n }\r\n catch (InterruptedException e) { }\r\n ouputProgressModel.setPogressStarted(false);\r\n }",
"@Override\n public void run() {\n progressBar.setValue(progressBar.getMaximum());\n }",
"public void run(){\n\t\t\t\tsetIconImage(new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB));\n\t\t\t\tsetTitle(msg);\n\t\t\t\t\n\t\t\t\t//createGUI\n\t\t\t\tloadBar = new JProgressBar();\n\t\t\t\tadd(BorderLayout.CENTER, loadBar);\n\t\t\t\tmessageLabel.setText(msg + \"...\");\n\t\t\t\tadd(BorderLayout.NORTH, messageLabel);\n\t\t\t\tsetDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\t\t\tsetSize(300, 75);\n\t\t\t\tsetPreferredSize(getSize());\n\t\t\t\tsetPercentage(0);\n\t\t\t\tsetResizable(false);\n\t\t\t\tsetLocationRelativeTo(null);\n\t\t\t\tsetVisible(true);\n\t\t\t}",
"@Override\n public void run() {\n result.setText(\"\"+res);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }",
"public void setResults(SeekBar sb, TextView tv, int progress) {\r\n\t\tsb.setProgress(progress);\r\n\t\ttv.setText(String.valueOf(progress));\r\n\t}",
"private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\n }",
"public StatusBar() {\n super();\n super.setPreferredSize(new Dimension(100, 16));\n setMessage(\"Ready\");\n }",
"@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }",
"@Override\n protected void onProgressUpdate(String... values) {\n setUiDuringBackgroundTask(values[0]);\n }",
"@Override\n public void baseSetContentView() {\n View.inflate(this, R.layout.ac_taskevent_select_progress,mContentLayout);\n x.view().inject(this);\n Intent intent = getIntent();\n if (intent.hasExtra(\"id\")) {\n taskid = intent.getStringExtra(\"id\");\n }\n\n if (intent.hasExtra(\"schedule\")) {\n schedule = intent.getStringExtra(\"schedule\");\n }\n\n if (intent.hasExtra(\"type\")) {\n type = intent.getIntExtra(\"type\", 0);\n }\n\n percentValue = Integer.valueOf(schedule);\n i = percentValue / 10;\n basei = percentValue / 10;\n\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_quantidade = inf.findViewById(R.id.volume_12);\n txtV_quantidade.setText(\"\"+progress+\" copo(s)\");\n }",
"public void setBar(JProgressBar bar){\n prog = bar;\n }",
"private void setBottomCounter() {\n\t\tVBox bottomBox = new VBox();\n\t\tbottomBox.setAlignment(Pos.BOTTOM_CENTER);\n\t\tbottomBox.setPadding(new Insets(10, 10, 10, 10));\n\t\tbottomBox.setSpacing(5);\n\t\t\n\t\tlastProperty = new Text(\"\");\n\t\tlastProperty.setFont(Font.font(\"TimesNewRoman\", FontWeight.BOLD, 24));\n\t\tlastProperty.setFill(Color.GREEN);\n\t\t\n\t\tcounterText = new Text(\"Total number of properties listed: \" + Property.getTotalProperties());\n\t\tcounterText.setFont(Font.font(\"Bauhaus 93\", FontWeight.BOLD, 24));\n\t\tcounterText.setFill(Color.rgb(100, 0, 150));\n\t\t\n\t\t\n\t\tbottomBox.getChildren().addAll(lastProperty, counterText);\n\t\t\n\t\tmainPane.setBottom(bottomBox);\n\t\t\n\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n mTextView.setText(\"\"+i);\n }",
"private JProgressBar setProgressBar(JProgressBar PB)\r\n\t{\r\n\t\tPB = new JProgressBar(0, 100);\r\n\t\tPB.setMinimum(0);\r\n\t\tPB.setMaximum(100);\r\n\t\tPB.setStringPainted(true);\r\n\t\treturn PB;\r\n\t}",
"@Override\n protected void onProgressUpdate(String... values) {\n super.onProgressUpdate(values);\n String message = values[0];\n dialog.setMessage(waitMsg + message);\n displayProgress(message);\n }",
"private void drawProgressText(Canvas canvas){\n\n if(textVisibility){\n mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mTextPaint.setStyle(Paint.Style.FILL);\n mTextPaint.setTextSize(mProgressTextSize);\n mTextPaint.setColor(mProgressTextColor);\n mTextPaint.setTextAlign(Paint.Align.CENTER);\n\n String progressText = ((int) moveProgress) + \"%\";\n float x = (getWidth() + getPaddingLeft() - getPaddingRight()) / 2;\n float y = (getHeight() + getPaddingTop() - getPaddingBottom() - (mTextPaint.descent() + mTextPaint.ascent())) / 2;\n canvas.drawText(progressText, x , y, mTextPaint);\n\n }\n\n }",
"public void publishProgress(int progress) {\n super.publishProgress(progress);\n }",
"private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}",
"@Override\n public void run() {\n \tstatusTextView.setText(statusText(s));\n }",
"private void setUpProgressBar() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n int totalLocationCount = 0;\n double visitedCount = 0;\n\n while (cursor.moveToNext()) {\n totalLocationCount++;\n int visited = cursor.getInt(cursor.getColumnIndex(database.COL_VISITED));\n if (visited == 1) visitedCount++;\n }\n\n int progress = (int) (visitedCount / totalLocationCount * 100);\n ProgressBar progressBar = findViewById(R.id.progress);\n TextView progressText = findViewById(R.id.progress_text);\n progressBar.setProgress(progress);\n progressText.setText(\" \" + progress + \"%\");\n }",
"public void run() {\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = Msg_SetProgress;\n\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t}",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"public void displayProgress(String message) {\n }",
"@Override\r\n\tprotected void progressFinished() {\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public void setContent(Object... objects) {\n try {\n if (objects != null && objects.length > 0) {\n Balance balance = (Balance) objects[0];\n\n String value = null;\n if (balance != null) {\n value = balance.getResult();\n }\n\n if (value == null || value.isEmpty()) {\n value = \"0\";\n }\n\n String s = DigitsUtils.valueToString(new BigInteger(value));\n\n if (s.length() < lengthValue) {\n linearLayout.setOrientation(LinearLayout.HORIZONTAL);\n }\n\n textValue.setText(s);\n\n textValue.post(new Runnable() {\n @Override\n public void run() {\n int lineCount = textValue.getLineCount();\n if (lineCount > 1) {\n linearLayout.setOrientation(LinearLayout.VERTICAL);\n lengthValue = textValue.length();\n }\n }\n });\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv.setText(String.format(\"%1.2f\", ((float)progress+20)/200));\r\n\t\t\t}",
"@Override\n public void transferred(long num) {\n publishProgress((int) ((num / (float) totalSize) * 100));\n }",
"@Override\n\tpublic void run(double arg0) {\n\t\tVisualization vis = getVisualization();\n\t\tDisplay display = vis.getDisplay(0);\n\t\tChatVisualizationPanePrefuse cvp = (ChatVisualizationPanePrefuse)display.getParent();\n\t cvp.setFix(new Point2D.Double(cvp.getMiddle_item().getX(),cvp.getMiddle_item().getY()));\n\n\t\t\n\t}",
"public abstract void addProgressComponents (Container panel);",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}",
"@Override\r\n public void onUIProgressStart(long totalBytes) {\r\n super.onUIProgressStart(totalBytes);\r\n\r\n }",
"private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }",
"public void onSyncProgress(long height, long startHeight, long endHeight, double percentDone, String message);",
"public void updateProgress(long readBytes, long contentLength) {\n Xtreemfs_portletApplication.this.subwindow.pi.setValue(new Float(readBytes / (float) contentLength));\n Xtreemfs_portletApplication.this.subwindow.textualProgress.setValue(+ readBytes/1024 + \" out of \" + contentLength/1024 + \"KiB uploaded.\");\n }",
"@Test\n public void setProgression() {\n final int progress = 16;\n final String progressText = \"0:16\";\n expandPanel();\n onView(withId(R.id.play)).perform(click()); //Pause playback\n\n onView(withId(R.id.mpi_seek_bar)).perform(ViewActions.slideSeekBar(progress));\n\n onView(withId(R.id.mpi_progress)).check(matches(withText(progressText)));\n assertTrue(getPlayerHandler().getTimeElapsed() == progress);\n }",
"public ProgressBar(Vector2 position, Vector2 size, Texture containerTexture, Texture barTexture) {\n super(position, size, containerTexture);\n _innerSize = new Vector2(0.0f, _size._y);\n _innerTexture = barTexture;\n setProgress(0.0f);\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tprogressDialog = new ProgressDialog(context);\n\t\t\t\t\t\t\tprogressDialog.setCancelable(true);\n\t\t\t\t\t\t\tprogressDialog.setMessage(context.getString(R.string.initialising_runtime));\n\t\t\t\t\t\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n\t\t\t\t\t\t\tprogressDialog.setIndeterminate(true);\n\t\t\t\t\t\t\tprogressDialog.show();\n\t\t\t\t\t\t}",
"void startProgress();",
"@Override\n public void showProgressSync() {\n }",
"@Override\n public void run() {\n super.run();\n for (int i = 0; i < times; i++) {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n // TODO Auto-generated method stub\n GenerationDetail detail = ga.getDetail();\n generationLabel.setText(String.valueOf(detail.getGeneration()+1));\n averageFitnessLabel.setText(String.valueOf(detail.getAverageFitness()));\n maxFitnessLabel.setText(String.valueOf(detail .getMaxFitness()));\n minFitnessLabel.setText(String.valueOf(detail.getMinFitness()));\n progressBar.setValue(100 * (detail.getGeneration())/ Integer.valueOf(times-1));\n }\n });\n }\n }",
"@Override\n protected String doInBackground(Integer... integers) {\n\n for (int i = 0; i < 100; i++) {\n\n try {\n //Lanza el metodo onProgressUpdate y le pasamos el parametro i\n //Para actualizar la barra y el textView\n Thread.sleep(tiempo);\n publishProgress(i);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n return \"Task Completed.\";\n\n }",
"@Override\n\t\t\t\t\t\tpublic void onLoading(long count, long current) {\n\t\t\t\t\t\t\tsuper.onLoading(count, current);\n\t\t\t\t\t\t\tprocess_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\tint process = (int) (current*100/count);\n\t\t\t\t\t\t\tprocess_tv.setText(\"下载进度:\"+process+\"%\");\n\t\t\t\t\t\t}",
"private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tLinearLayout.LayoutParams params=new LinearLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n\t\t\tparams.gravity=Gravity.CENTER_HORIZONTAL;\n\t\t\tprogressLoading.setLayoutParams(params);\n\t\t\tmContainer.addView(progressLoading);\n\t\t}",
"private String getProgressBar(){\n String output = \"\\u00A77[\";\n int total = 20;\n double unlocked = this.unlockedPercentage;\n output += \"\\u00A72\";\n //green bars for every 5% unlocked\n while(unlocked>=5){\n output += \"|\";\n unlocked-=5;\n total--;\n }\n //rest of them are red bars\n output += \"\\u00A7c\";\n while(total-->0){\n output += \"|\";\n }\n\n output += \"\\u00A77]\";\n return output;\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tdisplayArea.append(messageToDisplay);\r\n\t\t\t\tdisplayArea.setCaretPosition(displayArea.getText().length());\t//把文本区域中的输入光标定位到文本区域中最后一个字符之后\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}",
"public void createStatusBar(JPanel bar) {\n bar.setPreferredSize(new Dimension(getWidth(), 25));\n bar.setBackground(Color.LIGHT_GRAY);\n\n // add into container\n bar.add(paintModule.sizeLabel);\n bar.add(paintModule.coordinate);\n\n }",
"public void setProgressNotification(View view){\n //Add \"10\" to notifications - a progress notification\n currentNotifications.add(10);\n\n //setup the notification manager\n final NotificationManager mNotifyManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n //Build a notification\n final NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this);\n mBuilder.setContentTitle(\"RAM Download\")\n .setContentText(\"Download in progress\")\n .setSmallIcon(R.drawable.memory);\n\n // Start a lengthy operation in a background thread\n new Thread(\n new Runnable() {\n @Override\n public void run() {\n int incr;\n // Do the \"lengthy\" operation 20 times\n\n for (incr = 0; incr <= 500; incr+=5) {\n // Sets the progress indicator to a max value, the\n // current completion percentage, and \"determinate\"\n // state\n mBuilder.setProgress(100, incr, false);\n\n // Displays the progress bar for the first time.\n mNotifyManager.notify(10, mBuilder.build());\n\n // Sleeps the thread, simulating an operation\n // that takes time\n try {\n // Sleep for 1/10 a second\n Thread.sleep(100);\n } catch (InterruptedException e) {\n }\n }\n\n // When the loop is finished, updates the notification\n mBuilder.setContentText(\"Download complete\")\n\n // Removes the progress bar\n .setProgress(0,0,false);\n mNotifyManager.notify(10, mBuilder.build());\n }\n }\n\n // Starts the thread by calling the run() method in its Runnable\n ).start();\n\n }",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n iniProgressDialog(text.length());\n }"
] |
[
"0.630418",
"0.61335444",
"0.59622216",
"0.58997667",
"0.5899581",
"0.5880344",
"0.587012",
"0.58583635",
"0.57424104",
"0.57221943",
"0.5708548",
"0.5704266",
"0.5698596",
"0.5698596",
"0.5665638",
"0.5662186",
"0.5659828",
"0.5628151",
"0.5626633",
"0.561311",
"0.5607361",
"0.5582448",
"0.5577904",
"0.5548426",
"0.5540766",
"0.5521066",
"0.55193996",
"0.55056566",
"0.55022407",
"0.54985493",
"0.5497045",
"0.5494201",
"0.5490297",
"0.54870456",
"0.54869556",
"0.54787993",
"0.5471723",
"0.5451714",
"0.5450565",
"0.5444586",
"0.5442761",
"0.54388374",
"0.5436874",
"0.54346037",
"0.54230446",
"0.54226977",
"0.5419735",
"0.5409477",
"0.54061824",
"0.5398329",
"0.539352",
"0.5381362",
"0.53808165",
"0.53677213",
"0.5365855",
"0.53654647",
"0.53654647",
"0.53646994",
"0.5361854",
"0.5356679",
"0.5350731",
"0.5344577",
"0.53350407",
"0.5324386",
"0.53182006",
"0.5303593",
"0.5295073",
"0.5293849",
"0.5289056",
"0.5288779",
"0.52840596",
"0.5269378",
"0.5269378",
"0.52674395",
"0.5260881",
"0.52566224",
"0.5254523",
"0.5253142",
"0.52519673",
"0.5248714",
"0.5246944",
"0.5246864",
"0.52367115",
"0.5235857",
"0.52281284",
"0.52227896",
"0.5213556",
"0.52108055",
"0.52027285",
"0.519195",
"0.51894546",
"0.51805115",
"0.517333",
"0.51652783",
"0.5164104",
"0.51628506",
"0.5161289",
"0.5159934",
"0.51549375",
"0.51546353",
"0.5152605"
] |
0.0
|
-1
|
set the broken circle for progress
|
public void setCircleBroken(boolean isBroken){
this.circleBroken = isBroken;
refreshTheView();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void initProgressDrawing(Canvas canvas, boolean isFilled){\n\n if(circleBroken){\n Log.e(TAG, \"circleBroken>>>>>>\"+\"yes\" );\n canvas.drawArc(mOval, 135 + mStartProgress*2.7f, (moveProgress - mStartProgress) * 2.7f, isFilled, progressPaint);\n\n }else {\n Log.e(TAG, \"circleBroken>>>>>>\"+\"no\" );\n canvas.drawArc(mOval, 270 + mStartProgress*3.6f , (moveProgress - mStartProgress) * 3.6f, isFilled, progressPaint);\n }\n\n }",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"public void setCircleProgressColor(int color) {\r\n\t\tmCircleProgressColor = color;\r\n\t\tmCircleProgressPaint.setColor(mCircleProgressColor);\r\n\t\tinvalidate();\r\n\t}",
"private void setPenRadius() {\n\t}",
"private void drawFadingUnselectedDot(Canvas canvas, float progress) {\n int blendedColor =\n ColorUtils.blendARGB(\n mUnselectedColor, mSelectedColor, progress / 2);\n mPaint.setColor(getTransitionAdjustedColor(blendedColor));\n float radius = MathUtils.lerp(mUnselectedRadius, mSelectedColor, progress / 2);\n canvas.drawCircle(radius, 0, radius, mPaint);\n canvas.translate(radius * 2, 0);\n }",
"void setProgress(float progress);",
"public void setCenterCircleFill(){\n if(solvable){\n solvableCircle.setFill(Color.GREEN);\n }\n else{\n solvableCircle.setFill(Color.RED);\n }\n }",
"void setProgress(int progress);",
"void setProgress(int progress);",
"public void setErrorIndicatorPaint(Paint paint) {\n/* 158 */ this.errorIndicatorPaint = paint;\n/* 159 */ fireChangeEvent();\n/* */ }",
"public void setPending()\n\t{\n\t\tprogressBar.setString(XSTR.getString(\"progressBarWaiting\"));\n\t\tprogressBar.setIndeterminate(true);\n\t\tprogressBar.setValue(0);\n\t\t\n\t\tstoplightPanel.setPending();\n\t}",
"public void setProgress(int value);",
"public void setProgress( boolean onOff );",
"private void initTrack(Canvas canvas, boolean isFilled){\n if(circleBroken){\n canvas.drawArc(mOval, 135, 270, isFilled, progressPaint);\n }else {\n canvas.drawArc(mOval, 90, 360, isFilled, progressPaint);\n }\n }",
"private void drawCircle(Canvas canvas, float progress, boolean isInHotseatOrHideseat){\n int circleBackColor = 0x3fffffff;//25% alpha of Color.WHITE\n int circleFrontColor = 0xffffffff;//Color.WHITE\n int point[] = getAppIconCenter(isInHotseatOrHideseat);\n int centerX = point[0];\n int centerY = point[1];\n int roundHeadRadius = DOWNLOAD_ARC_WIDTH / 2;\n float sweep = Math.min(360, 360 * progress / 100);\n canvas.save();\n RectF rect = new RectF(centerX - DOWNLOAD_ARC_DRAW_R,\n centerY - DOWNLOAD_ARC_DRAW_R,\n centerX + DOWNLOAD_ARC_DRAW_R,\n centerY + DOWNLOAD_ARC_DRAW_R);\n drawHoloSector(canvas, rect, 0, 360, circleBackColor);\n if ( progress != PROGRESS_NOT_DOWNLOAD ) {\n drawHoloSector(canvas, rect, 270, sweep, circleFrontColor);\n drawRoundHead(canvas, centerX, centerY, 270, roundHeadRadius, circleFrontColor);\n drawRoundHead(canvas, centerX, centerY, 270 + sweep, roundHeadRadius, circleFrontColor);\n }\n canvas.restore();\n }",
"public int getCircleProgressColor() {\r\n\t\treturn mCircleProgressColor;\r\n\t}",
"public void startProgressAnimation(){\n progressAnimator = ObjectAnimator.ofFloat(this,\"progress\",mStartProgress, mEndProgress);\n Log.e(TAG, \"progressDuration: \"+ mProgressDuration);\n progressAnimator.setInterpolator(mInterpolator);\n progressAnimator.setDuration(mProgressDuration);\n progressAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float progress = (float) animation.getAnimatedValue(\"progress\");\n if(updateListener != null){\n updateListener.onCircleProgressUpdate(CircleProgressView.this, progress);\n }\n\n }\n });\n progressAnimator.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animator) {\n if(updateListener != null){\n updateListener.onCircleProgressStart(CircleProgressView.this);\n }\n }\n\n @Override\n public void onAnimationEnd(Animator animator) {\n if(updateListener != null){\n updateListener.onCircleProgressFinished(CircleProgressView.this);\n }\n }\n\n @Override\n public void onAnimationCancel(Animator animator) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animator) {\n\n }\n });\n progressAnimator.start();\n }",
"public String _setcirclecolor(int _nonvaluecolor,int _innercolor) throws Exception{\n_mcirclenonvaluecolor = _nonvaluecolor;\n //BA.debugLineNum = 61;BA.debugLine=\"mCircleFillColor = InnerColor\";\n_mcirclefillcolor = _innercolor;\n //BA.debugLineNum = 62;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 63;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public void setErrorIndicatorStroke(Stroke stroke) {\n/* 188 */ this.errorIndicatorStroke = stroke;\n/* 189 */ fireChangeEvent();\n/* */ }",
"public void setProgress(BigValue progress) {\n this.progress = progress;\n this.checkProgress();\n }",
"public static void circle_progressbar(double percentage, double x_coordinate, double y_coordinate) \n {\n if(x_coordinate>100 || y_coordinate>100 || percentage >100 || percentage < 0) \n {\n System.out.println(\"Invalid Input\");\n }\n \n else {\n if(percentage == 0)\n System.out.println(\"BLUE\");\n \n else \n {\n double angle_percentage = Math.toDegrees(Math.atan2(x_coordinate - 50, y_coordinate - 50));\n if (angle_percentage < 0)\n angle_percentage+= 360;\n \n double bar_percentage = percentage*3.6;\n \n double dist_from_center= Math.pow((x_coordinate - 50),2) + Math.pow((x_coordinate - 50),2);\n //A point can be red only if it is inside of the circle\n if(angle_percentage <= bar_percentage && dist_from_center < 2500)\n {\n System.out.println(\"RED\");\n } \n \n else\n {\n System.out.println(\"BLUE\");\n }\n \n //Calculate the x-y coordinate to angle\n //then calculate that angle is what percentage of the circle\n //then if the given percentage >= angle percentage - RED\n //if the given percentage < angle percentage - BLUE\n } \n }\n }",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"private void drawSelectedDot(Canvas canvas, float progress) {\n mPaint.setColor(\n getTransitionAdjustedColor(\n ColorUtils.blendARGB(mSelectedColor, mUnselectedColor, progress / 2)));\n float radius = MathUtils.lerp(mSelectedRadius, mUnselectedRadius, progress / 2);\n canvas.drawCircle(radius, 0, radius, mPaint);\n canvas.translate(radius * 2, 0);\n }",
"public void scanningBlurScoreBarSetProgress(int progress) {\n if (progress > scanningBlurValueBar.getProgress()) {\n scanningBlurValueBar.setProgress(progress);\n scanningBlurScoreBarDecrease();\n }\n }",
"public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }",
"private JProgressBar setProgressBar(JProgressBar PB)\r\n\t{\r\n\t\tPB = new JProgressBar(0, 100);\r\n\t\tPB.setMinimum(0);\r\n\t\tPB.setMaximum(100);\r\n\t\tPB.setStringPainted(true);\r\n\t\treturn PB;\r\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressBar.setProgress(0);\n\t\t\tprogressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\t\t\tsuper.onPreExecute();\n\t\t}",
"public void setProgress(float p) {\n _progress = Math.max(0.0f, Math.min(1.0f, p));\n }",
"private void drawDataPoint(Graphics g, int radius, int x, int y)\r\n/* 123: */ {\r\n/* 124: 99 */ g.fillOval(x - radius, y - radius, 2 * radius, 2 * radius);\r\n/* 125: */ }",
"public abstract void setPercentDead(double percent);",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"public void setProgress(int progress) {\n \t\t\tsynchronized (this) {\n \t\t\t\tm_progress = progress;\n \t\t\t\tthis.notify();\n \t\t\t}\n \t\t}",
"public void clearCircle();",
"public void setPercentage(int i){\n\t\tif(loadBar != null) loadBar.setValue(i);\n\t\tif(i >= 100){\n\t\t\tdispose();\n\t\t}\n\t}",
"public void onProgressChanged (SeekBar seekBar, int progress, boolean fromUser) {\n myCircleView.setSize(progress*2);\n }",
"private void setProgressPercent(Integer integer) {\n\t\t\n\t}",
"@Override\n public void setCircle(boolean isCircle) {\n mIsCircle = isCircle;\n updatePath();\n invalidateSelf();\n }",
"@Override \r\n\t\t\t public void onProgressChanged(SeekBar seekBar, int progress, \r\n\t\t\t boolean fromUser) {\n\t\t\t\t\tgraph.setSpacing(progress);\r\n\t\t\t}",
"public void setRedCarFaultPercentage(java.math.BigDecimal value);",
"public void setProgress(int progress) {\r\n\t\tif (mProgress != progress) {\r\n\t\t\tmProgress = progress;\r\n\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, progress, false);\r\n\t\t\t}\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n p.setStrokeWidth(progress);\n\n bitmap.eraseColor(Color.WHITE);\n canvas.drawLine(30,50,320,50,p);\n imageView.setImageBitmap(bitmap);\n }",
"@Override\r\n protected void onProgressUpdate(Void... values) {\r\n super.onProgressUpdate(values);\r\n invalidate();\r\n }",
"public Paint getErrorIndicatorPaint() { return this.errorIndicatorPaint; }",
"public void eraseCircle() {\n paintCircle(rPoint1, rPoint2);\n }",
"public void setProgress(int percent) {\n setProgress((float) percent / 100);\n }",
"public void setBusy() {\n\t\tlabelReady.setEnabled(false);\n\t\tlabelBusy.setEnabled(true);\n\t\tsetStatusBar(WAIT_MOVE_MSG);\n\t}",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t}",
"private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}",
"public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }",
"public void setCircleState(State state)\n {\n iconPartStates[3] = state;\n this.paintImmediately(this.getVisibleRect());\n }",
"@Override\n public void showProgress() {\n mCircleProgressThemeDetail.setVisibility(View.VISIBLE);\n mCircleProgressThemeDetail.spin();\n mRecyclerThemeDaily.setVisibility(View.GONE);\n }",
"private void updateUnrestChangeFromSlider(int progress) {\n\t\tplayer.setUnrestSpreadChange(progress / 10);\n\t}",
"public void setProgress(int progressValue) {\n progress.set(defaultToHundred(progressValue));\n indeterminate.set(progressValue < 0);\n }",
"public void setNilSmallCircle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.astrogrid.stc.region.v1_10.beans.SmallCircleType target = null;\n target = (org.astrogrid.stc.region.v1_10.beans.SmallCircleType)get_store().find_element_user(SMALLCIRCLE$2, 0);\n if (target == null)\n {\n target = (org.astrogrid.stc.region.v1_10.beans.SmallCircleType)get_store().add_element_user(SMALLCIRCLE$2);\n }\n target.setNil();\n }\n }",
"public void setProgress(int progress) {\n\t\tif (progress > mMax || progress < 0) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Progress (%d) must be between %d and %d\", progress, 0, mMax));\n\t\t}\n\t\tmProgress = progress;\n\t\tinvalidate();\n\t}",
"private void toggleProgress() {\n if (progWheel.getVisibility() == View.VISIBLE) {\n // Needs its own thread for timing control\n Handler handler = new Handler();\n final Runnable r = new Runnable() {\n public void run() {\n if (progWheel.getVisibility()\n == View.VISIBLE) {\n progWheel.setVisibility(View.GONE);\n }\n }\n };\n handler.postDelayed(r, 1);\n } else if (progWheel.getVisibility() == View.GONE) {\n progWheel.spin();\n progWheel.setVisibility(View.VISIBLE);\n }\n }",
"public CircleWithException() {\n this(1.0);\n }",
"public void setIndeterminate(final boolean b){\n\t\tRunnable changeValueRunnable = new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\tloadBar.setIndeterminate(b);\n\t\t\t}\n\t\t};\n\t\tSwingUtilities.invokeLater(changeValueRunnable);\n\t}",
"public void setColor(double value) {\r\n\t\tif (value < 0) {\r\n\t\t\tpg.fill(140+(int)(100*(-value)), 0, 0);\r\n\t\t} else {\r\n\t\t\tpg.fill(0, 140+(int)(100*(value)), 0);\r\n\t\t}\r\n\t}",
"@Override\n public void setIndeterminate() {\n }",
"private void updateProgressBar(int currentPoints){\n\n progressBar.setProgress(currentPoints);\n\n switch(currentPoints){\n case 1:\n progressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\n break;\n case 2:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FF6600\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 3:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FFFF66\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 4:\n progressBar.getProgressDrawable().setColorFilter(Color.GREEN, PorterDuff.Mode.SRC_IN);\n\n break;\n case 5:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#2C6700\"), PorterDuff.Mode.SRC_IN);\n\n }\n\n\n\n }",
"public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }",
"@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}",
"private void resetProBar() {\n matchProgressBar.setValue(matchProgressBar.getMinimum());\n }",
"public CircleWithException(double radius) {\n setRadius(radius);\n numberOfObjects++;\n }",
"public Circle(double radius, String color, boolean filled){\n super(color, filled);\n this.radius = radius;\n }",
"public void setProgressBar(JProgressBar bar) {\n matchProgressBar = bar;\n }",
"public void changing_redbar(View v)\n {\n SV.setRed(selected,((SeekBar)v).getProgress());\n }",
"public void paint(Graphics g)\r\n/* 58: */ {\r\n/* 59: 40 */ super.paint(g);\r\n/* 60: 41 */ if (this.data.length == 0) {\r\n/* 61: 41 */ return;\r\n/* 62: */ }\r\n/* 63: 42 */ int totalWidth = getWidth();\r\n/* 64: 43 */ int totalHeight = getHeight();\r\n/* 65: 44 */ if ((totalWidth == 0) || (totalHeight == 0)) {\r\n/* 66: 44 */ return;\r\n/* 67: */ }\r\n/* 68: 45 */ int width = this.fillPercentage * totalWidth / 100;\r\n/* 69: 46 */ int height = this.fillPercentage * totalHeight / 100;\r\n/* 70: 47 */ int radius = Math.min(width, height) / 2;\r\n/* 71: 48 */ int xCenter = totalWidth / 2;\r\n/* 72: 49 */ int yCenter = totalHeight / 2;\r\n/* 73: 50 */ drawData(g, radius, xCenter, yCenter);\r\n/* 74: */ }",
"private void setPenColor() {\n\t}",
"@Override\n public void resume() {\n originProgress = 10;\n mSkbProgress.setProgress((int) originProgress);\n }",
"public void setGraphicsDataReadProgress(final int percentage) {\n\t\tthis.graphicsDataProgressBar.setSelection(percentage);\n\t}",
"public void setRadius( double r ) \r\n { radius = ( r >= 0.0 ? r : 0.0 ); }",
"public Circle() {\n radius = 1.0;\n color = \"red\";\n }",
"private void setBusyCursor(){\r\n\t\tlensdiagram.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\t}",
"@Override\n public void done() {\n \tbar.finished();\n \tbar.setCursor(null);\n }",
"public void setBlueCarFaultPercentage(java.math.BigDecimal value);",
"public void progressMade();",
"public void setGreenAnimation(){\n va.setDuration(75);\n va.setEvaluator(new ArgbEvaluator());\n va.setRepeatCount(ValueAnimator.INFINITE);\n va.setRepeatMode(ValueAnimator.REVERSE);\n va.start();\n\n //va.cancel();\n }",
"public Circle() {\n radius = 1.0;\n color = \"red\";\n }",
"private void drawTrack(Canvas canvas){\n if(trackEnabled){\n progressPaint.setShader(null);\n progressPaint.setColor(mTrackColor);\n if(fillEnabled) {\n progressPaint.setStyle(Paint.Style.FILL);\n initTrack(canvas, true);\n }else {\n progressPaint.setStyle(Paint.Style.STROKE);\n initTrack(canvas, false);\n\n }\n }\n }",
"public void setProgress(String progress) {\n this.progress = progress;\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }",
"public void magenta() {\n g2.setPaint(Color.magenta);\r\n }",
"private void drawNormalOval(Canvas canvas) {\n canvas.save();\n for (int i = 0; i < mRectFPointList.size(); i++) {\n mNormalOvalPaint.setStyle(Paint.Style.STROKE);\n mNormalOvalPaint.setStrokeWidth(mNormalOvalStrokeWidth);\n if (isSelected(mRectFPointList.get(i))) {\n if (MATCH_STATUS_MATCH_FAILED == mMatchStatus) {\n mNormalOvalPaint.setColor(mNormalOvalStrokeErrorColor);\n } else {\n mNormalOvalPaint.setColor(mNormalOvalStrokeSelectColor);\n }\n } else {\n mNormalOvalPaint.setColor(mNormalOvalStrokeColor);\n }\n canvas.drawCircle(mRectFPointList.get(i).centerX(), mRectFPointList.get(i).centerY(),\n mNormalOvalRadius - mNormalOvalStrokeWidth / 2.0f, mNormalOvalPaint);\n\n mNormalOvalPaint.setStyle(Paint.Style.FILL);\n if (isSelected(mRectFPointList.get(i))) {\n if (MATCH_STATUS_MATCH_FAILED == mMatchStatus) {\n mNormalOvalPaint.setColor(mNormalOvalSolidErrorColor);\n } else {\n mNormalOvalPaint.setColor(mNormalOvalSolidSelectColor);\n }\n } else {\n mNormalOvalPaint.setColor(mNormalOvalSolidColor);\n }\n canvas.drawCircle(mRectFPointList.get(i).centerX(), mRectFPointList.get(i).centerY(),\n mNormalOvalRadius - mNormalOvalStrokeWidth, mNormalOvalPaint);\n }\n canvas.restore();\n }",
"private void setPenDown(boolean value)\n {\n\n if (value)\n {\n strokeBuilder = new StrokeBuilder();\n }\n else\n {\n final PathCurve curve = strokeBuilder.getDisplayPath();\n if (curve != null)\n {\n SwingUtilities.invokeLater(new Runnable()\n {\n @Override\n public void run()\n {\n history.add(curve.asPath2D());\n repaint();\n }\n });\n }\n strokeBuilder = null;\n }\n penDown = value;\n }",
"@Override\n public long progressInterval() {\n return 500;\n }",
"public void setValue(double value) {\n if(value<=0){\n mDrange = 0;\n pb.setProgress(0);\n ProgressDragLayout.this.requestLayout();\n ProgressDragLayout.this.invalidate();\n return;\n }\n progressAdd = 0;\n mDrange = 0;\n drange_1=0;\n int progress = (int) (value * 100);\n size = progress;\n double drange = (int) (value * viewWidth);\n drange_1 = drange / size;\n Log.e(\"size-------\", size +\"\");\n mhander.sendEmptyMessageDelayed(view_top.hashCode(),20);\n }",
"public int hidePen () {\n myPenDown = false;\n return 0;\n }",
"@Override\n\tpublic void reset() {\n\t\tmProgress = 0;\n\t}",
"public abstract void setProgress (int currentStep, int totalSteps);",
"@Override\n public void execute() {\n m_colorSpinner.spinMotor(1.0);\n }",
"public void onProgress(int pos);",
"public void paintWheel() {\n \t\n //initialColor is the initially-selected color to be shown in the rectangle on the left of the arrow.\n //for example, 0xff000000 is black, 0xff0000ff is blue. Please be aware of the initial 0xff which is the alpha.\n AmbilWarnaDialog dialog = new AmbilWarnaDialog(c, currentColor, new OnAmbilWarnaListener() {\n \n // Executes, when user click Cancel button\n @Override\n public void onCancel(AmbilWarnaDialog dialog){\n }\n \n // Executes, when user click OK button\n @Override\n public void onOk(AmbilWarnaDialog dialog, int color) {\n \t\n \tcurrentColor=color;\n \t//convert RGB values to float(0-1) for OpenGL use\n \tfloat r=(float)Color.red(color)/255;\n \tfloat g=(float)Color.green(color)/255;\n \tfloat b=(float)Color.blue(color)/255;\n \t\n \tsetModelColor(r,g,b);\n }\n });\n dialog.show();\n }",
"public void setDiameter(int diameter) {\n circleDiameter = diameter;\n\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }",
"@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n if (task.isFinished()) {\n int y = this.getHeight() / 2;\n g.drawLine(0, y, this.getWidth(), y);\n }\n }",
"public Circle(double radius){\n\t\tradius =this.radius;\n\t\tcolor =\"Red\";\n\t}",
"public Circle(double r)\n {\n setRad(r);\n\n }"
] |
[
"0.67704713",
"0.628519",
"0.6156074",
"0.6080812",
"0.5902003",
"0.5865063",
"0.5805693",
"0.57845503",
"0.57845503",
"0.57720774",
"0.57634014",
"0.5713221",
"0.5684486",
"0.56350344",
"0.56175035",
"0.5598671",
"0.5595334",
"0.5566441",
"0.55550027",
"0.55507004",
"0.55383116",
"0.5522202",
"0.55202156",
"0.550522",
"0.5499144",
"0.5496852",
"0.54800606",
"0.54583377",
"0.5413604",
"0.5366611",
"0.5358839",
"0.53507024",
"0.53291136",
"0.5321694",
"0.53169864",
"0.531542",
"0.5309891",
"0.5302337",
"0.53004193",
"0.5292627",
"0.5282727",
"0.5269505",
"0.52636254",
"0.5261949",
"0.52595097",
"0.52558655",
"0.52488",
"0.52421784",
"0.523886",
"0.5236857",
"0.5234721",
"0.5231517",
"0.52278143",
"0.5224863",
"0.5223158",
"0.52118593",
"0.5209166",
"0.5208527",
"0.5203399",
"0.5203361",
"0.520053",
"0.5189338",
"0.51846665",
"0.51824415",
"0.5180229",
"0.51785374",
"0.51757115",
"0.5164202",
"0.51641643",
"0.51405734",
"0.5127822",
"0.511932",
"0.5114952",
"0.51130235",
"0.5110403",
"0.5096285",
"0.50874275",
"0.5087232",
"0.50862414",
"0.50859225",
"0.5070268",
"0.5063559",
"0.50592387",
"0.50585276",
"0.50539494",
"0.50531894",
"0.5047028",
"0.504182",
"0.504006",
"0.50388443",
"0.50360924",
"0.503605",
"0.50293595",
"0.5028124",
"0.5023896",
"0.5020731",
"0.5018196",
"0.5014631",
"0.50143653",
"0.5013113"
] |
0.685641
|
0
|
set the scale zone type for progress view
|
public void setGraduatedEnabled(final boolean isGraduated){
this.isGraduated = isGraduated;
post(new Runnable() {
@Override
public void run() {
drawScaleZones(isGraduated);
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void setMediaAssetScaleTypeValue(int value) {\n mediaAssetScaleType_ = value;\n }",
"public void setSizeType(int type) {\n\t\tif (sizeType == type)\n\t\t\treturn;\n\t\tif (type != LMOptions.SMALL && type != LMOptions.LARGE && type != LMOptions.VARY)\n\t\t\treturn;\n\t\t\n\t\tdouble scale = parentLattice.getScale();\n\t\tdouble dotSize = DOT_NODE_SIZE * scale;\n\t\tdouble smallSize = SMALL_NODE_SIZE * scale;\n\t\tdouble largeSize = LARGE_NODE_SIZE * scale;\n\t\t\n\t\tif (type == LMOptions.SMALL && sizeType == LMOptions.LARGE) {\n\t\t\tsizeType = LMOptions.SMALL;\n\t\t\tdouble x = shape.getX() + ((largeSize - smallSize) / 2.0);\n\t\t\tdouble y = shape.getY() + ((largeSize - smallSize) / 2.0);\n\t\t\tshape.setFrame(x, y, smallSize, smallSize);\n\t\t}\n\n\t\telse if (type == LMOptions.SMALL && sizeType == LMOptions.VARY) {\n\t\t\tsizeType = LMOptions.SMALL;\n\t\t\tif (ownObject) {\n\t\t\t\tdouble x = shape.getX() + ((largeSize - smallSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() + ((largeSize - smallSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, smallSize, smallSize);\n\t\t\t} else {\n\t\t\t\tdouble x = shape.getX() - ((smallSize - dotSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() - ((smallSize - dotSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, smallSize, smallSize);\n\t\t\t}\n\t\t}\n\n\t\telse if (type == LMOptions.LARGE && sizeType == LMOptions.SMALL) {\n\t\t\tsizeType = LMOptions.LARGE;\n\t\t\tdouble x = shape.getX() - ((largeSize - smallSize) / 2.0);\n\t\t\tdouble y = shape.getY() - ((largeSize - smallSize) / 2.0);\n\t\t\tshape.setFrame(x, y, largeSize, largeSize);\n\t\t}\n\n\t\telse if (type == LMOptions.LARGE && sizeType == LMOptions.VARY) {\n\t\t\tsizeType = LMOptions.LARGE;\n\t\t\tif (!ownObject) {\n\t\t\t\tdouble x = shape.getX() - ((largeSize - dotSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() - ((largeSize - dotSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, largeSize, largeSize);\n\t\t\t}\n\t\t}\n\n\t\telse if (type == LMOptions.VARY && sizeType == LMOptions.LARGE) {\n\t\t\tsizeType = LMOptions.VARY;\n\t\t\tif (!ownObject) {\n\t\t\t\tdouble x = shape.getX() + ((largeSize - dotSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() + ((largeSize - dotSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, dotSize, dotSize);\n\t\t\t}\n\t\t}\n\n\t\telse if (type == LMOptions.VARY && sizeType == LMOptions.SMALL) {\n\t\t\tsizeType = LMOptions.VARY;\n\t\t\tif (ownObject) {\n\t\t\t\tdouble x = shape.getX() - ((largeSize - smallSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() - ((largeSize - smallSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, largeSize, largeSize);\n\t\t\t} else {\n\t\t\t\tdouble x = shape.getX() + ((smallSize - dotSize) / 2.0);\n\t\t\t\tdouble y = shape.getY() + ((smallSize - dotSize) / 2.0);\n\t\t\t\tshape.setFrame(x, y, dotSize, dotSize);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (internalLattice != null)\n\t\t\tinternalLattice.refreshConceptsShape();\n\t\t\n\t\tlabel.refreshShape();\n\t}",
"public void setScale(float scale);",
"void setVisualizationType(MapVisualizationType visType);",
"public native void setUnits(int resolutionType) throws MagickException;",
"ScaleType getScale();",
"void setScale(ScaleSelector sensor, int scaleNo);",
"private void setScaleToBoardViewPanes(double scale) {\n boardController.getDrawedBoard().setScaleX(scale);\n boardController.getDrawedBoard().setScaleY(scale);\n boardController.getCanvas().setScaleX(scale);\n boardController.getCanvas().setScaleY(scale);\n boardController.getDartBoard().setScaleX(scale);\n boardController.getDartBoard().setScaleY(scale);\n boardController.getPointsAreaPane().setScaleX(scale);\n boardController.getPointsAreaPane().setScaleY(scale);\n }",
"public void setZoomAnimationStyle(int style) {\n\t//zoomAnimationStyle = style;\n}",
"private void setMediaAssetScaleType(com.whensunset.wsvideoeditorsdk.model.MediaAssetScaleType value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n mediaAssetScaleType_ = value.getNumber();\n }",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"public void setZoom(int ps) {\n P_SCALE = ps;\n //EMBOSS = P_SCALE*8;\n }",
"void setMaxScale(int value);",
"public void setScale(double value) {\n this.scale = value;\n }",
"protected abstract void onScalePercentChange(int zoom);",
"@Override\n public void setScale(float scale) {\n this.scale = scale;\n }",
"public void setScaleZoneWidth(float zoneWidth){\n this.mScaleZoneWidth = Utils.dp2px(mContext, zoneWidth);\n }",
"public void setScalePosition(int level) throws RemoteException, IllegalParamException {\n io.scaleRMI(number, level);\n }",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"public void setScale(int indexInST, float time, Vector3f scale) {\n PointInTime toAdd=findTime(time);\n toAdd.setScale(indexInST,scale);\n }",
"public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}",
"public void setScale(float scale) {\n setLocalScale(scale);\n }",
"private void setZoomLevel() {\n final float oldMaxScale = photoView.getMaximumScale();\n photoView.setMaximumScale(oldMaxScale *2);\n photoView.setMediumScale(oldMaxScale);\n }",
"public void scanningThumbScale() {\n stopAnimationHandler();\n scanningBlurValueBar.setProgress(100);\n ScaleAnimation scaleAnimation = new ScaleAnimation(0f, 1f, 0f, 1f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);\n scaleAnimation.setFillAfter(false);\n scaleAnimation.setInterpolator(new BounceInterpolator());\n scaleAnimation.setDuration(600);\n scanningThumb.setVisibility(VISIBLE);\n scanningThumb.startAnimation(scaleAnimation);\n }",
"private void drawScaleZones(boolean isGraduated){\n\n Log.e(TAG, \"init======isGraduated>>>>>\"+isGraduated );\n if(isGraduated){\n if(pathEffect == null){\n\n pathEffect = new PathDashPathEffect(mScaleZonePath, mScaleZonePadding,0, PathDashPathEffect.Style.ROTATE);\n }\n progressPaint.setPathEffect(pathEffect);\n }else {\n pathEffect = null;\n progressPaint.setPathEffect(null);\n }\n\n }",
"public void setScale(float scale) {\n this.scale = scale;\n }",
"private void setScanType(ImageView.ScaleType scanType) {\n if (mImageView != null) {\n mImageView.setScaleType(scanType);\n }\n }",
"private void setXscale() {\n\t}",
"public void rescale()\r\n\t{\n\t}",
"public void setScaleZoneLength(float zoneLength){\n this.mScaleZoneLength = Utils.dp2px(mContext, zoneLength);\n }",
"public void setCanScale(boolean scale){\n mScale = scale;\n }",
"public void setViewType(int type) {\n this.type = type;\n }",
"public void setScale(double n) {\n\n\t}",
"public ScaleControl() {\n super();\n }",
"public void setScale(double scale) {\r\n if (scale >= 0.1) {\r\n this.scale = scale;\r\n }\r\n }",
"public void setScale( float scale ) {\n\t\tthis.scale = scale;\n\t}",
"@Override\n public void setLevel(int level) {\n if (level > 1) {\n this.level = level;\n scaleUp();\n percentageScaling();\n }\n }",
"private void clearMediaAssetScaleType() {\n \n mediaAssetScaleType_ = 0;\n }",
"private void setContentTypeImmediate(AppsCustomizePagedView.ContentType type) {\n onTabChangedStart();\n onTabChangedEnd(type);\n }",
"void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }",
"private static <T extends Shape> void scaleShape(T shape, double scale){\r\n\t\tshapeContainer = new ShapeContainer<Shape>(shape);\r\n\t\ttry {\r\n\t\t\tshapeContainer.changeShapeScale(scale);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }",
"@Override\n\tpublic void setResolution(Dimension size) {\n\n\t}",
"public int getMediaAssetScaleTypeValue() {\n return mediaAssetScaleType_;\n }",
"public void setZoom(){\n\t\tactive.setZoom();\n\t}",
"public void scaleCard(int cType){\n if(cType == 1){\n finalCardWidth = (int) (CARDWIDTH * scale);\n finalCardHeight = (int) (CARDHEIGHT * scale);\n }\n else{\n finalBackWidth = (int) (BACKWIDTH * backScale);\n finalBackHeight = (int) (BACKHEIGHT * backScale);\n }\n }",
"@Override\n public void settings(){\n size(500, 500);\n }",
"@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}",
"@Override\n public void settings() {\n size(800, 800, P3D);\n }",
"public void settings() {\n size(640, 384);\n }",
"public void go_to_scale_position() {\n stop_hold_arm();\n Dispatcher.get_instance().add_job(new JMoveArm(RobotMap.Arm.pot_value_scale, 0.9, 0.7, 0.7, 0.2, 0.8, false, false));\n hold_arm();\n }",
"public void setButtonRadiusScale(int scale) {\n percentage = scale;\n if (percentage > 50) percentage = 50;\n if (percentage < 25) percentage = 25;\n }",
"void setTubeUpDimension(double width, double height);",
"@Override\n\tpublic void settings() {\n\t\tpreviewRect = WallGeometry.scaleRectangleRounded(WallGeometry.getInstance().getWallGeometry(), Preview.SCALE);\n\t\tsize(previewRect.width, previewRect.height, P3D);\n\t}",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"@Override\n\tpublic void setPaintType(int type) {\n\t\tthis.shapeType = type;\n\t}",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"public void increaseTimescale() {\n\t\ttimeScaler = timeScaler>=5 ? 5 : timeScaler + TIMESCLALER_FACTOR;\n\t}",
"@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}",
"void setPaperSize(short size);",
"void setScale(int objIndex,Vector3f scale){\n look[objIndex].setScale(scale);\n usedScale.set(objIndex);\n }",
"public void setStorageType(short type) {\n\tstorageType = type;\n }",
"public void set_surface_type(int st) {\n surface_type = st;\n }",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"public interface ScalingUtils$StatefulScaleType {\n Object m21594a();\n}",
"public void setScale(final double scale) {\r\n\t\tthis.scale = scale;\r\n\t}",
"public void setValue(int type)\r\n\t{\r\n\t\tif(type < NONE || type > CENTIMETER)\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"type < NONE || type > CENTIMETER\");\r\n\t\t}\r\n\t\tsuper.setShort(0, (short)type);\r\n\t}",
"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}",
"@JSProperty(\"pane\")\n void setPane(double value);",
"@Override\n public void onScale(float ratio){\n isReady = true;\n mRatio = ratio;\n }",
"public void setScale(float scale) {\n \t\tthis.scale = scale;\n \t\tupdateTransform();\n \t\tfireEvent(new ScalingEvent(scale));\n \t}",
"public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }",
"public void setSpaceType(String type, int y, int x) {\r\n\t\t// Get Space\r\n\t\tButton space = carpark[y][x];\r\n\t\t\r\n\t\t// Platform.runLater() is used to prevent thread conflicts\r\n\t\tPlatform.runLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// Setup Space\r\n\t\t\t\tspace.setText(type);\r\n\t\t\t\tspace.setStyle(space.getStyle() + \"-fx-background-color: #000000;\");\r\n\t\t\t\tspace.setTextFill(Color.GREEN);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void setScale(float scale, int xform) {\n\t\tm_xforms[xform].m_scale = scale;\n\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 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 }",
"public void setResolution(int value) {\n this.resolution = value;\n }",
"public void setType(short type){\n\t\tthis.type = type;\n\t}",
"void setVResolution(short resolution);",
"public boolean testTilingscale(EIfcfillareastyletiles type) throws SdaiException;",
"public void setScaleZonePadding(int zonePadding){\n this.mScaleZonePadding = Utils.dp2px(mContext, zonePadding);\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}",
"protected void updateScales() {\n hscale = 1f;\n vscale = 1f;\n viewData.setHscale(hscale);\n viewData.setVscale(vscale);\n }",
"public void settings() { size(1200, 800); }",
"public void handle(ActionEvent ae) {\n scaleFactor += 0.1; \n if(scaleFactor > 2.0) scaleFactor = 0.4; \n \n scale.setX(scaleFactor); \n scale.setY(scaleFactor); \n \n }",
"public TiledView setScales(AxisScale scale) {\n return setScales(scale,scale);\n }",
"public int getScale() {\n return scale_;\n }",
"public void setType(int type) {\n type_ = type;\n }",
"TinySpinnerButtonUI ( int type )\r\n {\r\n orientation = type;\r\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}",
"private void setObjectAnimatorType(int animatorType){\n Log.e(TAG, \"AnimatorType>>>>>>\"+animatorType );\n switch (animatorType){\n case ACCELERATE_DECELERATE_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n }\n\n mInterpolator = new AccelerateDecelerateInterpolator();\n //progressAnimator.setInterpolator(new AccelerateDecelerateInterpolator());\n break;\n\n case LINEAR_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n }\n mInterpolator = new LinearInterpolator();\n //progressAnimator.setInterpolator(new LinearInterpolator());\n break;\n\n case ACCELERATE_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n mInterpolator = new AccelerateInterpolator();\n }\n //progressAnimator.setInterpolator(new AccelerateInterpolator());\n break;\n\n case DECELERATE_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n }\n mInterpolator = new DecelerateInterpolator();\n //progressAnimator.setInterpolator(new DecelerateInterpolator());\n break;\n\n case OVERSHOOT_INTERPOLATOR:\n\n if(mInterpolator!=null){\n mInterpolator = null;\n }\n mInterpolator = new OvershootInterpolator();\n //progressAnimator.setInterpolator(new OvershootInterpolator());\n break;\n }\n }",
"public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }",
"public Builder setMediaAssetScaleTypeValue(int value) {\n copyOnWrite();\n instance.setMediaAssetScaleTypeValue(value);\n return this;\n }",
"void onScaleChange(float scaleFactor, float focusX, float focusY);",
"public final void set(float scale) {\n\tm00 = scale; m01 = 0.0f; m02 = 0.0f;\n\tm10 = 0.0f; m11 = scale; m12 = 0.0f;\n\tm20 = 0.0f; m21 = 0.0f; m22 = scale;\n }",
"Controls () {\n \n barX = 40;\n barWidth = 15;\n \n minY = 40;\n maxY = minY + height/3 - sliderHeight/2;\n \n minZoomValue = height - height;\n maxZoomValue = height; // 300 percent\n valuePerY = (maxZoomValue - minZoomValue) / (maxY - minY);\n \n sliderWidth = 25;\n sliderHeight = 10;\n sliderX = (barX + (barWidth/2)) - (sliderWidth/2); \n sliderValue = minZoomValue; \n sliderY = minY; \n }",
"public TiledView setVScale(AxisScale scale) {\n return setScales(_bhp.getScale(),scale);\n }",
"@Override\n\t\t\tpublic void doMyThings() {\n\t\t\t\tsetVideoScale(SCREEN_DEFAULT);\n\t\t\t}",
"private void setupZoomBar(BaseFastViewFinder.HeadUpDisplaySetupState headUpDisplaySetupState) {\n Zoombar zoombar = this.getBaseLayout().getZoomBar();\n if (zoombar == null) return;\n switch (.$SwitchMap$com$sonyericsson$android$camera$fastcapturing$view$BaseFastViewFinder$HeadUpDisplaySetupState[headUpDisplaySetupState.ordinal()]) {\n default: {\n zoombar.updateZoombarType(Zoombar.Type.PARTIAL_SUPER_RESOLUTION);\n return;\n }\n case 1: \n case 2: \n }\n zoombar.updateZoombarType(Zoombar.Type.NORMAL);\n }",
"ManualScalingType createManualScalingType();",
"public int getScale(){\n return scale;\n }"
] |
[
"0.61063254",
"0.6065834",
"0.5868168",
"0.5804126",
"0.5748562",
"0.56724703",
"0.5669385",
"0.56548643",
"0.56302726",
"0.5603149",
"0.55119324",
"0.55108106",
"0.5474402",
"0.54540145",
"0.5431402",
"0.5425367",
"0.5403772",
"0.5397514",
"0.5396528",
"0.5389036",
"0.53735554",
"0.53608",
"0.53577995",
"0.5330184",
"0.5330125",
"0.5314868",
"0.5308104",
"0.5287586",
"0.52496064",
"0.5244981",
"0.52050984",
"0.5198128",
"0.51886785",
"0.51567304",
"0.51534444",
"0.5147354",
"0.5132485",
"0.5127483",
"0.5125005",
"0.51239324",
"0.51231676",
"0.51058674",
"0.5104512",
"0.509762",
"0.5094144",
"0.50799656",
"0.50796384",
"0.5072354",
"0.50583404",
"0.504838",
"0.5046634",
"0.50417304",
"0.5038253",
"0.50335884",
"0.5025709",
"0.5002765",
"0.5000883",
"0.499387",
"0.4993546",
"0.49826825",
"0.49807593",
"0.49701956",
"0.49622208",
"0.4958962",
"0.49582243",
"0.49513",
"0.49446133",
"0.49433145",
"0.4936841",
"0.49263686",
"0.4913844",
"0.4912755",
"0.49080527",
"0.49020523",
"0.4894454",
"0.48896688",
"0.48853165",
"0.4877267",
"0.48768002",
"0.48755798",
"0.4868957",
"0.48685056",
"0.48668295",
"0.4865701",
"0.48601505",
"0.4859889",
"0.48531738",
"0.48522332",
"0.48478702",
"0.4844728",
"0.48397022",
"0.48358506",
"0.48354858",
"0.48332655",
"0.48284838",
"0.48262087",
"0.48142743",
"0.48131865",
"0.4805165",
"0.4800557",
"0.4798699"
] |
0.0
|
-1
|
set the scale zone width for it
|
public void setScaleZoneWidth(float zoneWidth){
this.mScaleZoneWidth = Utils.dp2px(mContext, zoneWidth);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setWidth(double w)\n { this.widthDefault = w; }",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setWidth(int w){\n \twidth = w;\n }",
"public void setWidth(int w)\n {\n width = w;\n }",
"public void setWidth(int w) {\n this.W = w;\n }",
"public void setWidth(int w){ widthRadius = w; }",
"void setWidth(int width);",
"void setWidth(int width);",
"public void setWidth(int w) {\n this.width = w;\n }",
"@Override\n\tpublic void setWidth(int newWidth) {\n\t\tint width = (int) (newWidth * 0.5);\n\t\tif (width > mainContainer.getMinWidth()) {\n\t\t\tscreenWidth = width;\n\t\t\tmainContainer.setPrefWidth(screenWidth);\n\t\t}\n\t\tcenterScreenX(newWidth);\n\t}",
"public void setScaleZoneLength(float zoneLength){\n this.mScaleZoneLength = Utils.dp2px(mContext, zoneLength);\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"public void setWidth(int w) {\n\t\twidth = w;\n\t}",
"public void setWidth(double width) {\n this.width = width;\n }",
"@Override\n\tpublic void setWidth(float width) {\n\n\t}",
"public void setWidth(int width) {\n this.width = width;\n }",
"void setFitWidth(short width);",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"public void setWidth(double w) {\n\t\t\twidth.set(clamp(w, WIDTH_MIN, WIDTH_MAX));\n\t\t}",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"public void setWidth(float width) {\n this.xRadius = width/2f;\n }",
"public void setWidth(Integer width) {\n this.width = width;\n control.draw();\n }",
"public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }",
"private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }",
"private void setXscale() {\n\t}",
"public void settings() { size(1200, 800); }",
"public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(int width) {\n\t\tw = width;\n\t}",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public void setWidth(final int theWidth) {\n myWidth = theWidth;\n }",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"public void setPrefWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getPrefWidth()) return;\n firePropertyChange(\"PrefWidth\", put(\"PrefWidth\", w), w, -1);\n}",
"public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }",
"public void setWidth(final String value)\n {\n width = value;\n }",
"@JsProperty\n public void setWidth(int width);",
"public void setWidth(Double width) {\n\t\tthis.width = width;\n\t}",
"void setDimension(double width, double height);",
"void setTubeUpDimension(double width, double height);",
"public void setNodeStrokeDestinationWidth(double value) {\n _nodeStrokeDestinationWidth = value;\n }",
"public void setWidth (int width) {\r\n\tcheckWidget();\r\n\tif ((style & SWT.SEPARATOR) == 0) return;\r\n\tif (width < 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_WIDTH, width, 0);\r\n\tif (control != null && !control.isDisposed ()) {\r\n\t\tcontrol.setBounds (getBounds ());\r\n\t}\r\n}",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"public void setWidth( int width ) {\n\t\t_width = width;\n\t}",
"public void SetWidth(double width) {\n OCCwrapJavaJNI.ShapeAnalysis_FreeBoundData_SetWidth(swigCPtr, this, width);\n }",
"public void setupRatio(int width) {\n\t\t//reset SpriteCurrentEdge to fix value every level\n\t\tSpriteCurrentEdge = ResourceManager.FixSizeSpriteEdge;\n\t\t\n\t\tSpriteScaleFactor = ResourceManager.getInstance().cameraWidth / (width * SpriteCurrentEdge);\n\t\t\n\t\t//update resize currentEdge\n\t\tSpriteCurrentEdge = (int)Math.ceil(SpriteCurrentEdge * SpriteScaleFactor);\n\t\t\n\t\t/*\n\t\tLog.i(TAG, String.format(\"width:%1$d edge:%2$d scale:%3$f\", width, \n\t\t\t\tGameManager.getInstance().SpriteCurrentEdge,\n\t\t\t\tGameManager.getInstance().SpriteScaleFactor));\n\t\t*/\n\t}",
"public void rescale()\r\n\t{\n\t}",
"@Override\n\tpublic void setBoxWidth(int l) {\n\t\tmaxwid = l;\n\t}",
"public void setWidth(int width) {\n\t\tthis.width = width;\n\t}",
"void setHorizontalResolution(int horizontalResolution);",
"public void setScaleZonePadding(int zonePadding){\n this.mScaleZonePadding = Utils.dp2px(mContext, zonePadding);\n }",
"private void setWindowWidth(int width) {\n this.width = width;\n }",
"public final native void setWidth(double width) /*-{\n this.setWidth(width);\n }-*/;",
"@Override\r\n public void setWidth(String width) {\n }",
"@JSProperty(\"tickWidth\")\n void setTickWidth(double value);",
"public void setWidth(int width) {\n if (width > 0) {\n this.width = width;\n }\n }",
"void setPaperSize(short size);",
"@Override\n public void settings() {\n size(800, 800, P3D);\n }",
"private void setTargetWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetWidth = width;\r\n\t\t}\r\n\t}",
"private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }",
"private void resize() {\n }",
"public Builder setWidth(int value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n onChanged();\n return this;\n }",
"public void resize() {\n\t\tsp.doLayout();\n\t}",
"public void setMinWidth(double aWidth)\n{\n double w = aWidth<=0? 0 : aWidth; if(w==getMinWidth()) return;\n firePropertyChange(\"MinWidth\", put(\"MinWidth\", w), w, -1);\n}",
"public void setWidth(String string) {\r\n\t\t_width = string;\r\n\t}",
"public void setRrWidth(int width) {\n rrWidth = width;\n }",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"private void setBorderWidth(int width) {\n this.borderWidth = width;\n Rectangle r = (Rectangle) this.getChildren().get(0);\n r.setStrokeWidth(width);\n }",
"@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }",
"public void setWidth(String width) {\r\n this.width = width;\r\n }",
"public void setFrameSize();",
"@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }",
"public void setBandWidth(double value, int subsystem) {\n _avTable.set(ATTR_BANDWIDTH, value, subsystem);\n }",
"public void setWidth(int n){ // Setter method\n \n width = n; // set the class attribute (variable) radius equal to num\n }",
"@Override\n public void settings(){\n size(500, 500);\n }",
"public void setBaseWidth(double baseWidth) {\n this.baseWidth = baseWidth;\n }",
"private void setWidth() {\n\n for (int i = 0; i < historicList.size(); i++) {\n RelativeLayout layout = layoutsList.get(i);\n\n ViewGroup.LayoutParams params = layout.getLayoutParams();\n int position = historicList.get(i).position;\n if (position > 4) {\n position = 4;\n } else if (position < 0) {\n position = 0;\n }\n WidthScreen(position, params);\n }\n }",
"public int getWidth() { return width; }",
"public int getWidth() { return width; }",
"@Override\n public int getWidth() {\n return width;\n }",
"@Override\n public int getWidth() {\n return width;\n }",
"double getNewWidth();",
"@Override\r\n public void resize(int width, int height) {\n stage.getViewport().update(width, height, true);\r\n }",
"private void rescale() {\n this.affineTransform = AffineTransform.getScaleInstance(this.zoom,\n this.zoom);\n int width = (int) ((this.board.getWidth() * 32) * this.zoom);\n int height = (int) ((this.board.getHeight() * 32) * this.zoom);\n this.setPreferredSize(new Dimension(width, height));\n this.repaint();\n }",
"private void setCurrentWidth(int width)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmCurrentWidth = width;\r\n\t\t}\r\n\t}",
"public void setSize(float width, float height);",
"void setMaxScale(int value);",
"@Override\r\n\tpublic int setWidth() {\n\t\treturn 0;\r\n\t}",
"void setWidthHeight() {\n\t\tsetWidthHeight(getNcols() * grid().gridW, getNvisibleRows() * grid().gridH);\n\t}",
"public void setScale() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n scaleAffine();\n Scalebar.putZoomLevelDistances();\n\n //Set up the JFrame using the monitors resolution.\n setSize(screenSize); //screenSize\n setPreferredSize(new Dimension(800, 600)); //screenSize\n setExtendedState(Frame.NORMAL); //Frame.MAXIMIZED_BOTH\n }",
"public void updateWidth() {\n\t\t// Update width\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().updateFamilyWidth();\n\t\t\tthis.setWidth(this.getFamily().getWidth()\n\t\t\t\t\t+ this.getFamily().getNextWidth());\n\t\t} else {\n\t\t\tthis.setWidth(1);\n\t\t}\n\t}",
"public Builder setWidth(int value) {\n \n width_ = value;\n onChanged();\n return this;\n }",
"public void setWidth(Integer width)\n {\n getStateHelper().put(PropertyKeys.width, width);\n }",
"public final int getWidth(){\n return width_;\n }",
"@Override\n\tpublic void resize(int width, int height) {\n\t stage.getViewport().update(width, height, true);\n\t}",
"void setTubeDownDimension(double width, double height);",
"public void resetPaddleWidthToOriginal(){\n myRectangle.setWidth(PADDLE_LENGTH);\n myLength = PADDLE_LENGTH;\n }",
"public void setW(int i) {\n\t\tthis.width=i;\n\t\t\n\t}"
] |
[
"0.6885109",
"0.687807",
"0.6755856",
"0.673658",
"0.66552263",
"0.6653496",
"0.66448957",
"0.66448957",
"0.66259265",
"0.6516044",
"0.6502216",
"0.64910275",
"0.64412475",
"0.64376944",
"0.63606584",
"0.6326914",
"0.6325408",
"0.63172364",
"0.6312607",
"0.6284317",
"0.6262681",
"0.625187",
"0.62464213",
"0.62436754",
"0.621606",
"0.61795616",
"0.6172524",
"0.6133111",
"0.61225474",
"0.61225474",
"0.6121504",
"0.61156297",
"0.6113818",
"0.6101022",
"0.60952395",
"0.6087495",
"0.6087027",
"0.6082844",
"0.6067302",
"0.60573864",
"0.60564506",
"0.6053834",
"0.6032018",
"0.6031541",
"0.6030801",
"0.6028118",
"0.60032725",
"0.59923166",
"0.59910506",
"0.5971156",
"0.5961461",
"0.5954603",
"0.5946339",
"0.5940597",
"0.5937677",
"0.59253895",
"0.59088427",
"0.59013987",
"0.58984095",
"0.58957887",
"0.5889255",
"0.58809084",
"0.5878278",
"0.5873172",
"0.5838263",
"0.58302474",
"0.5827724",
"0.5818815",
"0.58161736",
"0.5814853",
"0.58123726",
"0.58114564",
"0.5811222",
"0.5809715",
"0.57976204",
"0.57929504",
"0.5790193",
"0.5789459",
"0.5786",
"0.5779124",
"0.5779124",
"0.57686687",
"0.57686687",
"0.57659733",
"0.5760787",
"0.5755057",
"0.5751679",
"0.57467145",
"0.5743479",
"0.5737297",
"0.5731699",
"0.5729674",
"0.5722959",
"0.57201713",
"0.5720043",
"0.57009387",
"0.5698187",
"0.56909066",
"0.56773365",
"0.566946"
] |
0.79614085
|
0
|
set the scale zone length for it
|
public void setScaleZoneLength(float zoneLength){
this.mScaleZoneLength = Utils.dp2px(mContext, zoneLength);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setScaleZoneWidth(float zoneWidth){\n this.mScaleZoneWidth = Utils.dp2px(mContext, zoneWidth);\n }",
"default void setLength(double t) {\r\n scaleDirection(t / getLength());\r\n }",
"public void setScale_length(float scale_length) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 0, scale_length);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 0, scale_length);\n\t\t}\n\t}",
"public void setScaleZonePadding(int zonePadding){\n this.mScaleZonePadding = Utils.dp2px(mContext, zonePadding);\n }",
"void setMaxScale(int value);",
"void setAxisLength(CalibratedAxis axis, long length);",
"public void setLength(double length){this.length=length;}",
"void setTubeUpDimension(double width, double height);",
"public void zoomToLength(int length) {\n zoomToLength(length, (getRangeEnd()+ 1 + getRangeStart()) / 2); // + 1 because ranges are inclusive\n }",
"public void rescale()\r\n\t{\n\t}",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"void scaleArea(float scaleFactor) {\n\t\t// for more advanced (more than 4 points), use this algorithm:\n\t\t// http://stackoverflow.com/questions/1109536/an-algorithm-for-inflating-deflating-offsetting-buffering-polygons\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tPVector tmp = PVector.sub(point[i].position, anchor);\n\t\t\ttmp.mult(scaleFactor);\n\t\t\tpoint[i].position.set(PVector.add(anchor, tmp));\n\t\t}\n\t}",
"public void setLength(double length)\r\n {\r\n this.length = length;\r\n }",
"void setTubeDownDimension(double width, double height);",
"private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }",
"public final void setRealSize() {\r\n setZoom(ZOOM_REAL_SIZE);\r\n }",
"public void setLength(Double newlength)\n {\n length = newlength;\n }",
"public void setMaxPaddleLength(){\n myRectangle.setWidth(myScreenWidth - SIDEBAR_WIDTH);\n }",
"public void setLength(double length) {\r\n this.length = length;\r\n }",
"public void setLength(double newLength) {\n length = newLength;\n }",
"public void resetPaddleWidth(){\n myRectangle.setWidth(myLength);\n }",
"public void setLength(double length) {\n this.length = length;\n }",
"public void setScale(float scale);",
"public void setWidth(int w){ widthRadius = w; }",
"void setDimension(double width, double height);",
"public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}",
"private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }",
"public void setLength(long length);",
"public void setLength(long length);",
"public void setZoom(int ps) {\n P_SCALE = ps;\n //EMBOSS = P_SCALE*8;\n }",
"public void scale(double s);",
"public void setLength(Point e) {\r\n int Dx = Math.abs(this.origin.getX() - e.getX());\r\n int Dy = Math.abs(this.origin.getY() - e.getY());\r\n if (Dx > Dy) {\r\n this.length = Dx;\r\n } else { this.length = Dy; }\r\n }",
"public void setMapDimensions(int boardWidth, int boardLength) {\r\n int longerSide = Math.max(boardWidth, boardLength);\r\n this.distance = longerSide * 0.9f;\r\n this.minDistance = longerSide * 0.1f;\r\n this.maxDistance = 1.5f * longerSide;\r\n this.center = new Vector3f();\r\n this.center.x = (boardWidth - 1) / 2f;\r\n this.center.z = (boardLength - 1) / 2f;\r\n this.boardLength = boardLength;\r\n this.boardWidth = boardWidth;\r\n this.space = this.maxDistance - this.minDistance;\r\n zoom(0f);\r\n }",
"public void settings() { size(1200, 800); }",
"public void setLength(double length) {\n\t\tthis.length = length;\n\t}",
"public void setWidth(double value) {\n this.width = value;\n }",
"public void setLength(float length) { // l = 2.3\r\n\t\tthis.length = length; // length = 2.3\r\n\t\t\r\n\t}",
"public boolean setLength(double Length);",
"public void setLength(int duration){\n\t\tlength = duration;\n\t}",
"public void setSize(double s)\n\t{\n\t\tsize = s;\n\t}",
"void setLength(int length);",
"private void resize() {\n }",
"public void resetPaddleWidthToOriginal(){\n myRectangle.setWidth(PADDLE_LENGTH);\n myLength = PADDLE_LENGTH;\n }",
"void setPaperSize(short size);",
"public void setFrameSize();",
"void setLength( long length );",
"public void setSize(double size) \n {\n this.size = size;\n }",
"private void rescale() {\n this.affineTransform = AffineTransform.getScaleInstance(this.zoom,\n this.zoom);\n int width = (int) ((this.board.getWidth() * 32) * this.zoom);\n int height = (int) ((this.board.getHeight() * 32) * this.zoom);\n this.setPreferredSize(new Dimension(width, height));\n this.repaint();\n }",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public void setScale(double value) {\n this.scale = value;\n }",
"public void setScale(float x) {\n worldMatrix = math3d.mul(math3d.scaling(new vec3(x,x,x)), worldMatrix);\n }",
"public void setLength(long length) { \n this.length = length; \n }",
"public void setScaleXY(double sx, double sy) { setScaleX(sx); setScaleY(sy); }",
"public Vector4d scale(double s) {\n\t\tx *= s; y *= s; z *= s; w *= s;\n\t\treturn this;\n\t}",
"void scale(double factor);",
"private static <T extends Shape> void scaleShape(T shape, double scale){\r\n\t\tshapeContainer = new ShapeContainer<Shape>(shape);\r\n\t\ttry {\r\n\t\t\tshapeContainer.changeShapeScale(scale);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}",
"public void increaseTimescale() {\n\t\ttimeScaler = timeScaler>=5 ? 5 : timeScaler + TIMESCLALER_FACTOR;\n\t}",
"public void setBBoxLength(int aLength)\r\n {\r\n theBBoxLength = aLength;\r\n if (theBBoxLengthField != null)\r\n {\r\n theBBoxLengthField.setValue(theBBoxLength);\r\n theBBoxLengthField.updateUI();\r\n }\r\n }",
"@Override\n public void settings() {\n size(800, 800, P3D);\n }",
"public void handleIncreaseLengthPowerup(){\n myRectangle.setWidth(myRectangle.getWidth()*increaseLengthPowerupSizeFactor);\n myLength=(int)(myLength*increaseLengthPowerupSizeFactor);\n }",
"public void setLength(int n){ // Setter method\n \n length = n; // set the class attribute (variable) radius equal to num\n }",
"@JSProperty(\"tickLength\")\n void setTickLength(double value);",
"@Override\n public void settings(){\n size(500, 500);\n }",
"void setBounds(double x, double y, double scale) {\n double drawAspect = (double)width / (double)height;\n\n double halfPlotWidth = scale / 2.0;\n double halfPlotHeight = scale / 2.0;\n if (drawAspect > 1.0) {\n halfPlotWidth *= drawAspect;\n } else {\n halfPlotHeight /= drawAspect;\n }\n\n setBounds(x - halfPlotWidth, y - halfPlotHeight, x + halfPlotWidth, y + halfPlotHeight);\n }",
"MapScale(int x, int y, int width, int height, Camera cam)\n {\n super();\n this.cam = cam;\n s2 = (cam.getScale());\n setOpaque(false);\n\n setLocation(x, y);\n setSize(width, height);\n }",
"@Override\n\tpublic void setScale(Vector3d scale) {\n\t\t\n\t}",
"public void setScaleZoneCornerRadius(int cornerRadius){\n this.mScaleZoneCornerRadius = Utils.dp2px(mContext, cornerRadius);\n }",
"@Test\n public void testSetZoomMultiplier() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MULTIPLIER, 1.678f);\n }",
"private void setXscale() {\n\t}",
"public void zoomToZone(GeoPoint geoTopLeft,\r\n GeoPoint geoBottomRight)\r\n throws NotOnChartException,\r\n ZoneTooSmallException {\r\n// System.out.println(\"Zooming to zone:\" + geoTopLeft.toString() + \" and \" + geoBottomRight.toString());\r\n boolean zoneSizeOK = false;\r\n int nbTest = 0, maxTest = 100;\r\n Point topLeftOnThePanel = null, bottomRightOnThePanel = null;\r\n while (!zoneSizeOK && nbTest < maxTest) {\r\n topLeftOnThePanel = this.getPanelPoint(geoTopLeft.getL(),\r\n geoTopLeft.getG());\r\n bottomRightOnThePanel = this.getPanelPoint(geoBottomRight.getL(),\r\n geoBottomRight.getG());\r\n if (topLeftOnThePanel.x != bottomRightOnThePanel.x &&\r\n topLeftOnThePanel.y != bottomRightOnThePanel.y) {\r\n int deltaX = Math.abs(topLeftOnThePanel.x - bottomRightOnThePanel.x);\r\n int deltaY = Math.abs(topLeftOnThePanel.y - bottomRightOnThePanel.y);\r\n if (Math.max(deltaX, deltaY) > 100)\r\n zoneSizeOK = true;\r\n } else {\r\n bottomRightOnThePanel = new Point(topLeftOnThePanel.x + 10, topLeftOnThePanel.y + 10);\r\n }\r\n nbTest++;\r\n if (!zoneSizeOK) {\r\n// System.out.println(\"Zoom-zoom!\");\r\n this.zoomIn();\r\n }\r\n }\r\n// if (zoneSizeOK)\r\n {\r\n double ratio = Math.min((double) this.getVisibleRect().width / (double) Math.abs(topLeftOnThePanel.x - bottomRightOnThePanel.x),\r\n (double) this.getVisibleRect().height / (double) Math.abs(topLeftOnThePanel.y - bottomRightOnThePanel.y));\r\n// System.out.println(\"Ratio:\" + ratio);\r\n if (ratio == 1d)\r\n return; // TASK Make sure that's right\r\n double oldZoom = getZoomFactor();\r\n setZoomFactor(ratio);\r\n parent.zoomFactorHasChanged(ratio);\r\n zoomIn();\r\n setZoomFactor(oldZoom);\r\n// parent.zoomFactorHasChanged(oldZoom);\r\n\r\n double middleLat = ((geoTopLeft.getL() + geoBottomRight.getL()) / 2.0);\r\n double middleLong = ((geoTopLeft.getG() + geoBottomRight.getG()) / 2.0);\r\n if (sign(geoTopLeft.getG()) != sign(geoBottomRight.getG())) {\r\n double delta = Math.abs(geoTopLeft.getG() + geoBottomRight.getG());\r\n middleLong = geoTopLeft.getG() + (delta / 2);\r\n if (middleLong > 180)\r\n middleLong -= 360;\r\n }\r\n Point middle = getPanelPoint(middleLat, middleLong);\r\n int _w = getVisibleRect().width;\r\n int _h = getVisibleRect().height;\r\n Point topLeft = new Point(middle.x - (_w / 2),\r\n middle.y - (_h / 2));\r\n\r\n // Scroll it in position\r\n// Point topLeft = getPanelPoint(nLat, wLong);\r\n// System.out.println(\"Current Chart Panel, w:\" + this.getWidth() + \", h:\" + this.getHeight());\r\n// System.out.println(\"Scrolling to \" + topLeft.x + \",\" + topLeft.y + \" and \" + this.getVisibleRect().width + \", \" + this.getVisibleRect().height);\r\n this.scrollRectToVisible(new Rectangle(topLeft.x, topLeft.y, this.getVisibleRect().width, this.getVisibleRect().height));\r\n if (topLeft.x < 0 || topLeft.x > this.getWidth() ||\r\n topLeft.y < 0 || topLeft.y > this.getHeight()) {\r\n throw new NotOnChartException(\"Requested zoom position not on the choosen chart:\" +\r\n \"\\nx:\" + Integer.toString(topLeft.x) +\r\n \", y:\" + Integer.toString(topLeft.y) +\r\n \"\\nfor w:\" + Integer.toString(this.getWidth()) +\r\n \" and h:\" + Integer.toString(this.getHeight()));\r\n }\r\n }\r\n// else\r\n// {\r\n // Try to zoom here...\r\n// throw new RuntimeException(\"ChartPanel.zoomToZone not ready...\");\r\n// }\r\n if (!zoneSizeOK) {\r\n throw new ZoneTooSmallException(\"Zone Too Small Exception:\" +\r\n \"\\ntop left:\" + geoTopLeft.toString() + \", bottom right:\" + geoBottomRight.toString() +\r\n \"\\nfor w:\" + Integer.toString(this.getWidth()) + \" and h:\" + Integer.toString(this.getHeight()));\r\n }\r\n }",
"public void setLength(double len) throws IllegalArgumentException\n {\n if (len<0) throw new IllegalArgumentException (\"Length cannot be negative\" + len);\n else length = len;\n }",
"public void setScale() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n scaleAffine();\n Scalebar.putZoomLevelDistances();\n\n //Set up the JFrame using the monitors resolution.\n setSize(screenSize); //screenSize\n setPreferredSize(new Dimension(800, 600)); //screenSize\n setExtendedState(Frame.NORMAL); //Frame.MAXIMIZED_BOTH\n }",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"void setScale(ScaleSelector sensor, int scaleNo);",
"public void setDrawScale(Vector2 value) {\n \tsetDrawScale(value.x,value.y); \n\t}",
"public void setFrameSize(double aWidth, double aHeight)\n{\n // If shape not rotated, scaled or skewed, just set and return\n if(!isRSS()) {\n if(_width<0) { setX(_x + (aWidth+_width)); aWidth = -aWidth; }\n if(_height<0) { setY(_y + (aHeight+_height)); aHeight = -aHeight; }\n setSize(aWidth, aHeight); return;\n }\n \n // Convert X & Y axis to parent coords\n RMSize x_axis = convertVectorToShape(new RMSize(_width, 0), _parent);\n RMSize y_axis = convertVectorToShape(new RMSize(0, _height), _parent);\n\n // Scale widths of X & Y axes in parent coords by ratio of NewWidth/OldWidth\n double sizeByRatio1 = Math.abs(aWidth)/(Math.abs(x_axis.width) + Math.abs(y_axis.width));\n x_axis.width *= sizeByRatio1; y_axis.width *= sizeByRatio1;\n \n // Scale heights of X & Y axes in parent coords by ratio of NewHeight/OldHeight\n double sizeByRatio2 = Math.abs(aHeight)/(Math.abs(x_axis.height) + Math.abs(y_axis.height));\n x_axis.height *= sizeByRatio2; y_axis.height *= sizeByRatio2;\n\n // Cache current bounds origin (this shouldn't change)\n RMPoint origin = getFrameXY();\n \n // Reset current Skew and convert X & Y axis from parent coords\n setSkewXY(0, 0);\n convertVectorFromShape(x_axis, _parent);\n convertVectorFromShape(y_axis, _parent);\n\n // Set the size to compensate for the skew\n setSize(x_axis.width, y_axis.height);\n\n // Calculate new skew angles (or roll, if width or height is zero)\n if(width()==0)\n setRoll(getRoll() - Math.toDegrees(Math.atan(y_axis.width/y_axis.height)));\n else if(height()==0)\n setRoll(getRoll() - Math.toDegrees(Math.atan(x_axis.height/x_axis.width)));\n else {\n setSkewX(Math.toDegrees(Math.atan(x_axis.height/x_axis.width)));\n setSkewY(Math.toDegrees(Math.atan(y_axis.width/y_axis.height)));\n }\n\n // Reset original bounds origin (it may have been effected by skew changes)\n setFrameXY(origin);\n}",
"public void scale(double sx, double sy)\r\n\t{\r\n\t\t// System.out.println(\"scale\");\r\n\t}",
"public static void setLength( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, LENGTH, value);\r\n\t}",
"public void setReferenceSize() {\n transformManager.setReferenceSize();\n scaledComponentLayout.saveSwingComponentCoordinates( 1.0 );\n setScale( 1.0 );\n\n // Set the canvas size\n determineCanvasSize();\n\n if ( DEBUG_OUTPUT_ENABLED ) {\n System.out.println( \"ApparatusPanel2.setReferenceBounds: referenceBounds=\" + transformManager.getReferenceBounds() );\n }\n }",
"private void setSizeBox() {\n\t\t\tthis.leftX = pointsSubStroke.get(0).getX();\n\t\t\tthis.righX = pointsSubStroke.get(0).getX();\n\t\t\tthis.topY = pointsSubStroke.get(0).getY();\n\t\t\tthis.bottomY = pointsSubStroke.get(0).getY();\n\t\t\t\n\t\t\tfor(int i = 0; i < pointsSubStroke.size();i++) {\n\t\t\t\tdouble x = pointsSubStroke.get(i).getX();\n\t\t\t\tdouble y = pointsSubStroke.get(i).getX();\n\t\t\t\t\n\t\t\t\tthis.leftX = Math.min(x, leftX);\n\t\t\t\tthis.righX = Math.max(x, righX);\n\t\t\t\tthis.topY = Math.min(y, topY);\n\t\t\t\tthis.bottomY = Math.max(y, bottomY);\n\t\t\t}\n\t\t}",
"private static void setUniverse(double R) {\n StdDraw.setXscale((-R), (R));\n StdDraw.setYscale((-R), (R));\n }",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"@Test\n public void testSetZoomMax() {\n final DraggingCamera camera = newValueObject();\n testBoundField(camera, DraggingCamera.ZOOM_MAX, 10.0f);\n }",
"public void setLocalSize(int size);",
"@Override\r\n public void resize(int width, int height) {\n stage.getViewport().update(width, height, true);\r\n }",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"public SceneGraphNode setScale(double sx, double sy, double sz) {\n\t\tscaleX = sx;\n\t\tscaleY = sy;\n\t\tscaleZ = sz;\n\t\treturn this;\n\t}",
"@JSProperty(\"size\")\n void setSize(double value);",
"public void setWidth(int nuova_larghezza)\n {\n \tboolean bo = informaPreUpdate();\n larghezza = nuova_larghezza;\n\t\tinformaPostUpdate(bo);\n }",
"public void setLength(int length)\n {\n this.length = length;\n }",
"private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }",
"public void setXLength(int length) {\n this.xLength = length;\n }",
"public void set_length(short value) {\n setUIntElement(offsetBits_length(), 8, value);\n }",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"private void setDimensions() {\n IPhysicalVolume physVol_parent = getModule().getGeometry().getPhysicalVolume();\n ILogicalVolume logVol_parent = physVol_parent.getLogicalVolume();\n ISolid solid_parent = logVol_parent.getSolid();\n Box box_parent;\n if (Box.class.isInstance(solid_parent)) {\n box_parent = (Box) solid_parent;\n } else {\n throw new RuntimeException(\"Couldn't cast the module volume to a box!?\");\n }\n _length = box_parent.getXHalfLength() * 2.0;\n _width = box_parent.getYHalfLength() * 2.0;\n\n }",
"@Override\n\tpublic void setResolution(Dimension size) {\n\n\t}",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setLength(int length) {\r\n this.length = length;\r\n }",
"public void setScale(int indexInST, float time, Vector3f scale) {\n PointInTime toAdd=findTime(time);\n toAdd.setScale(indexInST,scale);\n }",
"public void resize() {\n\t\tsp.doLayout();\n\t}"
] |
[
"0.7227608",
"0.63585836",
"0.6314122",
"0.62952834",
"0.6036902",
"0.6019026",
"0.59070665",
"0.5900962",
"0.58757454",
"0.5875252",
"0.585173",
"0.5835419",
"0.5829938",
"0.58229196",
"0.580257",
"0.5797147",
"0.5789759",
"0.5753688",
"0.5752259",
"0.57434493",
"0.57188225",
"0.5701105",
"0.5697092",
"0.5689683",
"0.5671644",
"0.5671467",
"0.5659363",
"0.5647258",
"0.5647258",
"0.56214875",
"0.5606302",
"0.5604872",
"0.5589483",
"0.5576106",
"0.5570992",
"0.55473655",
"0.5535981",
"0.55355257",
"0.5521241",
"0.5520921",
"0.5515546",
"0.5505707",
"0.5494464",
"0.54943866",
"0.54864424",
"0.5482917",
"0.54736036",
"0.5454573",
"0.54467267",
"0.5445602",
"0.54168594",
"0.5387954",
"0.53837293",
"0.53836554",
"0.5382905",
"0.5381685",
"0.5378126",
"0.53696525",
"0.53685474",
"0.53668696",
"0.5362567",
"0.53612584",
"0.5358918",
"0.53579265",
"0.535579",
"0.5350893",
"0.53477985",
"0.53299755",
"0.5322456",
"0.5317926",
"0.53153",
"0.53113973",
"0.5309355",
"0.53051853",
"0.53029466",
"0.5300056",
"0.5295681",
"0.52955025",
"0.5295391",
"0.5289",
"0.52866155",
"0.5278155",
"0.5274761",
"0.5267178",
"0.52660656",
"0.5265864",
"0.5259594",
"0.52591866",
"0.5258922",
"0.52576935",
"0.5256562",
"0.52561873",
"0.5254708",
"0.525226",
"0.5244028",
"0.5240564",
"0.5239238",
"0.5239238",
"0.52283627",
"0.5228056"
] |
0.76631314
|
0
|
set each zone's distance
|
public void setScaleZonePadding(int zonePadding){
this.mScaleZonePadding = Utils.dp2px(mContext, zonePadding);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void set_distance() {\n int[] k = new int[getQueue().length];\n distance = 0.0;\n for (int i = 1; i < getQueue().length; i++) {\n distance += getPoints().get(way[i]).distance(getPoints().get(way[i - 1]));\n }\n distance += getPoints().get(getQueue()[getPoints().size() - 1]).distance(getPoints().get(0));\n enterd = true;\n }",
"private void setDistanceValues(){\n float [] sumDistances = new float[1];\n\n distanceValue =0.0;\n\n for(int i= 0; i < trackingList.size()-1;i++){\n double startLong = trackingList.get(i).getLongtitude();\n double startLat = trackingList.get(i).getLatitude();\n double endLong = trackingList.get(i+1).getLongtitude();\n double endLat = trackingList.get(i+1).getLatitude();\n\n Location.distanceBetween(startLat,startLong,endLat,endLong,sumDistances);\n \n distanceValue += sumDistances[0];\n }\n\n }",
"private void calculateDistances() {\n for (int point = 0; point < ntree.size(); point++) {\n calculateDistances(point);\n }\n }",
"public static void setDistances (double idistances){\n\t\t\tdistances = idistances;\n\t}",
"public void setDistance(float dist);",
"public void setSatelliteDistance(int distance) {\n this.satelliteDistance = distance;\n resetItems();\n }",
"@Override\n\tpublic void setCityDistance(String CityID1, String CityID2, double distance) {\n\t\t\n\t\t\n\t\tArrayList<String> cityList = constantPO.getCityList();\n\t\t\n\n\t\t\n\t\tint city_1 = 0 , city_2 =0;\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<cityList.size();i++){\t\t\t\n\t\t\tif (cityList.get(i).equals(CityID1)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcity_1++;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<cityList.size();i++){\t\t\t\n\t\t\tif (cityList.get(i).equals(CityID2)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcity_2++;\n\t\t}\n\t\t\n\t\tString[] temp1=constantPO.getCityDistance().get(city_1).split(\" \");\n\t\tString temp =\"\";\n\t\tfor(int i=0;i<temp1.length;i++){\n\t\t\tif(i!=city_2)\n\t\t\t\ttemp+=temp1[i];\n\t\t\telse \n\t\t\t\ttemp+=distance+\"\";\n\t\t\t\n\t\t\t\n\t\t\tif(i!=temp1.length-1)\n\t\t\t\ttemp+=\" \";\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tString[] temp2=constantPO.getCityDistance().get(city_2).split(\" \");\n\t\tString temp3 =\"\";\n\t\tfor(int i=0;i<temp2.length;i++){\n\t\t\tif(i!=city_1)\n\t\t\t\ttemp3+=temp2[i];\n\t\t\telse \n\t\t\t\ttemp3+=distance+\"\";\n\t\t\t\n\t\t\t\n\t\t\tif(i!=temp2.length-1)\n\t\t\t\ttemp3+=\" \";\n\t\t\t\t\n\t\t\t\n\t\t}\n\t\n\t\t\n\n\t\t\n\t\t\n\t\tArrayList<String> cityDistance = new ArrayList<>();\n\t\t\n\t\tfor(int i=0;i<constantPO.getCityDistance().size();i++){\n\t\t\t\n\t\t\tif(i==city_1)\n\t\t\t\tcityDistance.add(temp);\n\t\t\telse if (i==city_2) {\n\t\t\t\tcityDistance.add(temp3);\n\t\t\t}else {\n\t\t\t\tcityDistance.add(constantPO.getCityDistance().get(i));\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t\tconstantPO.setCityDistance(cityDistance);\n\t\t\n\t}",
"private void updatePointSpeeds() {\n\t\tfor (int i = 0; i < locations.size(); i++) {\n\t\t\tLocationStructure loc = locations.get(i);\t\t\n\t\t\tDouble dist = Double.MIN_VALUE;\n\t\t\tDouble lat1 = loc.getLatitude().doubleValue();\n\t\t\tDouble lon1 = loc.getLongitude().doubleValue();\n\t\t\t\n\t\t\tDate d = times.get(i);\n\t\t\t\n\t\t\tif( i+1 < locations.size()) {\n\t\t\t\tloc = locations.get(i+1);\n\t\t\t\tDouble lat2 = loc.getLatitude().doubleValue();\n\t\t\t\tDouble lon2 = loc.getLongitude().doubleValue();\n\t\t\t\tdist = calculateDistance(lat1, lon1, lat2, lon2);\n\t\t\t\t\n\t\t\t\tDate d1 = times.get(i+1);\n\t\t\t\tDateTime dt1 = new DateTime(d);\n\t\t\t\tDateTime dt2 = new DateTime(d1);\n\t\t\t\tint seconds = Seconds.secondsBetween(dt1, dt2).getSeconds();\t\t\t\n\t\t\t\tDouble pd = (dist/seconds)*60;\n\t\t\t\tif(!pd.isNaN()) {\n\t\t\t\t\tpointSpeed.add(pd);\t\t\n\t\t\t\t\tSystem.out.println(\"BUS STATE-- Added point speed of \"+ (dist/seconds)*60 + \" for \" +this.vehicleRef);\n\t\t\t\t}\n\t\t\t} else break;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}",
"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 }",
"void updateDistance(int distance);",
"public void setEstimatedTrainLocations() {\n\t\t// TODO: for each train\n\t\tfor (Train t : trains) {\n\t\t\t// calculate the distance traveled since the last tick\n\t\t\tdouble speed = t.currSpeed * 0.488888889; // in yards/second\n\t\t\tdouble elapsedTime = SimClock.getDeltaMs() * 0.001; //in seconds\n\t\t\tdouble distanceTraveled = speed*elapsedTime; //yards\n\t\t\tDefaultBlock block = ((DefaultBlock)blockData.get(t.currentBlock));\n\t\t\tif (distanceTraveled > t.authority) {\n\t\t\t\tdistanceTraveled = t.authority;\n\t\t\t\tt.currSpeed = 0;\n\t\t\t}\n\t\t\telse if (trainRoutes.get(t.trainId).route.size() == 1) {\n\t\t\t\tif (t.distanceTraveledOnBlock + distanceTraveled > block.blockLength/2) {\n\t\t\t\t\tdistanceTraveled = block.blockLength/2 - t.distanceTraveledOnBlock;\n\t\t\t\t\tt.distanceTraveledOnBlock = block.blockLength/2;\n\t\t\t\t\tt.currSpeed = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check if the train has entered a new block\n\t\t\tif (block.occupied == false) {\n\t\t\t\t// it has.\n\t\t\t\tt.currentBlock = trainRoutes.get(t.trainId).route.get(1);\n\t\t\t\tt.distanceTraveledOnBlock = block.blockLength - t.distanceTraveledOnBlock;\n\t\t\t\tt.currSpeed = ((DefaultBlock) blockData.get(t.currentBlock)).speedLimit;\n\t\t\t\tif (t.currSpeed > t.maxSpeed) {\n\t\t\t\t\tt.currSpeed = t.maxSpeed;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// calculate the distance traveled on block\n\t\t\telse if ((t.distanceTraveledOnBlock + distanceTraveled) > block.blockLength) {\n\t\t\t\tt.distanceTraveledOnBlock = block.blockLength;\n\t\t\t}\n\t\t\tt.authority -= distanceTraveled;\n\t\t\tt.currSpeed = trainRoutes.get(t.trainId).speed;\n\t\t\tt.distanceTraveledOnBlock += distanceTraveled;\n\t\t\t\n\t\t}\n\t}",
"protected void fillZoneNodeMap() {\r\n\t\tfor(SupplyZone s : supplyZoneLines){\r\n\t\t\tString zoneName = s.getZoneName();\r\n\t\t\tzoneNodeMap.put(zoneName, new ZoneNode(zoneName));\r\n\t\t}\r\n\t}",
"public void setDistance(int d) {\r\n\t\tdistance = d;\r\n\t}",
"public void setDistance(int value) {\n this.distance = value;\n }",
"void setDistanceInM(int distanceInM);",
"public double calcDistBetweenStops(){\n List<Location> locs = destinations.getLocationList();\r\n double totalDist = 0;\r\n for (int i = 0; i < (locs.size() - 1); i++){\r\n double distance = locs.get(i).DistanceTo(locs.get(i+1));\r\n totalDist += distance;\r\n }\r\n return totalDist;\r\n }",
"public void setDistance(double distance) {\r\n this.distance = distance;\r\n }",
"void setDistanceInKm(float distanceInKm);",
"private void addMountains() {\n int randRow = 0;\n int randColumn = 0;\n int randValue = 0;\n do {\n randRow = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n randColumn = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n for (int i = (randRow - 2); i < (randRow + 2); i++) {\n for (int j = (randColumn - 2); j < (randColumn + 2); j++) {\n if ((tileMap[i][j].getTerrain() instanceof Grass) && (tileMap[i][j].isEmpty())) {\n randValue = (int)(Math.round(Math.random()));\n if (randValue == 0) {\n tileMap[i][j] = new Space(new Mountain(i, j)); //Create a mountain\n }\n }\n }\n }\n } while (!checkMountainCoverage());\n }",
"public void setDistanceFunction(DistanceFunction distanceFunction);",
"public void setDistance(double distance) {\n this.distance = distance;\n }",
"public void setDistance(double distance) {\n this.distance = distance;\n }",
"private void setAltitudeValues(){\n minAlt = trackingList.get(0).getAltitude();\n maxAlt = trackingList.get(0).getAltitude();\n averageAlt = trackingList.get(0).getAltitude();\n\n double sumAlt =0.0;\n\n for (TrackingEntry entry:trackingList) {\n\n sumAlt += entry.getAltitude();\n\n //sets min Speed\n if (minAlt > entry.getAltitude()){\n minAlt = entry.getAltitude();\n }\n //sets max Speed\n if (maxAlt < entry.getAltitude()) {\n maxAlt = entry.getAltitude();\n }\n\n }\n averageAlt = sumAlt/trackingList.size();\n }",
"private void computeDistances() {\n for (int i = 0; i < groundTruthInstant.size(); ++i)\n for (int j = 0; j < estimatedInstant.size(); ++j) {\n float currentDist = groundTruthInstant.get(i).getDistanceTo(estimatedInstant.get(j).getPos());\n if (currentDist < distToClosestEstimate[i][0]) {\n distToClosestEstimate[i][0] = currentDist;\n distToClosestEstimate[i][1] = j;\n }\n }\n }",
"public void setDistance(float distance) {\n this.distance = distance;\n }",
"void addDistance(float distanceToAdd);",
"private void copyDistances(int i, double[] dist) {\n IntStream.range(0, dist.length).forEach(k -> dist[k] = this.distanceList.get(k)[i]);\n }",
"double distance() {\r\n\t double dist_total = 0;\r\n\t for (int i = 0; i < index.length - 1; i++) {\r\n\t dist_total += city(i).distance(city(i + 1));\r\n\t }\r\n\t \r\n\t return dist_total;\r\n\t}",
"public void setDistance(double distance) {\r\n\t\tthis.distance = distance;\r\n\t}",
"public void initZoneAreas() {\n this.zoneList = new ArrayList<Node>();\n this.zoneRoot = new Node(\"Zone Root\");\n \n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\"); \n mat.setColor(\"Color\", new ColorRGBA(0,1,1,0.5f));\n mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);\n \n Geometry zoneBox1 = new Geometry(\"Zone 1\",new Box(12,1,12));\n Node zoneNode1 = new Node(\"Zone 1\");\n zoneBox1.setMaterial(mat);\n zoneBox1.setQueueBucket(Bucket.Transparent);\n zoneNode1.attachChild(zoneBox1);\n this.zoneList.add(zoneNode1);\n this.zoneRoot.attachChild(zoneNode1);\n \n zoneNode1.setLocalTranslation(CubeToWorldVector(7.5f,0,47.5f));\n \n Geometry zoneBox2 = new Geometry(\"Zone 2\",new Box(18f,1,6));\n Node zoneNode2 = new Node(\"Zone 2\");\n zoneBox2.setMaterial(mat);\n zoneBox2.setQueueBucket(Bucket.Transparent);\n zoneNode2.attachChild(zoneBox2);\n this.zoneList.add(zoneNode2);\n this.zoneRoot.attachChild(zoneNode2);\n \n zoneNode2.setLocalTranslation(CubeToWorldVector(17.5f,0,47.5f));\n \n Geometry zoneBox2b = new Geometry(\"Zone 2b\",new Box(6f,1,6));\n Node zoneNode2b = new Node(\"Zone 2b\");\n zoneBox2b.setMaterial(mat);\n zoneBox2b.setQueueBucket(Bucket.Transparent);\n zoneNode2b.attachChild(zoneBox2b);\n this.zoneList.add(zoneNode2b);\n this.zoneRoot.attachChild(zoneNode2b);\n \n zoneNode2b.setLocalTranslation(CubeToWorldVector(21.5f,0,43.5f));\n \n Geometry zoneBox3 = new Geometry(\"Zone 3\",new Box(24f,1,22.5f));\n Node zoneNode3 = new Node(\"Zone 3\");\n zoneBox3.setMaterial(mat);\n zoneBox3.setQueueBucket(Bucket.Transparent);\n zoneNode3.attachChild(zoneBox3);\n this.zoneList.add(zoneNode3);\n this.zoneRoot.attachChild(zoneNode3);\n \n zoneNode3.setLocalTranslation(CubeToWorldVector(23.5f,0,34f));\n \n Geometry zoneBox4 = new Geometry(\"Zone 4\",new Box(9f,1,9f));\n Node zoneNode4 = new Node(\"Zone 4\");\n zoneBox4.setMaterial(mat);\n zoneBox4.setQueueBucket(Bucket.Transparent);\n zoneNode4.attachChild(zoneBox4);\n this.zoneList.add(zoneNode4);\n this.zoneRoot.attachChild(zoneNode4);\n \n zoneNode4.setLocalTranslation(CubeToWorldVector(12.5f,0,29.5f));\n \n Geometry zoneBox4b = new Geometry(\"Zone 4b\",new Box(9f,1,22.5f));\n Node zoneNode4b = new Node(\"Zone 4b\");\n zoneBox4b.setMaterial(mat);\n zoneBox4b.setQueueBucket(Bucket.Transparent);\n zoneNode4b.attachChild(zoneBox4b);\n this.zoneList.add(zoneNode4b);\n this.zoneRoot.attachChild(zoneNode4b);\n \n zoneNode4b.setLocalTranslation(CubeToWorldVector(6.5f,0,25f));\n \n Geometry zoneBox5 = new Geometry(\"Zone 5\",new Box(36f,1,18f));\n Node zoneNode5 = new Node(\"Zone 5\");\n zoneBox5.setMaterial(mat);\n zoneBox5.setQueueBucket(Bucket.Transparent);\n zoneNode5.attachChild(zoneBox5);\n this.zoneList.add(zoneNode5);\n this.zoneRoot.attachChild(zoneNode5);\n \n zoneNode5.setLocalTranslation(CubeToWorldVector(13.5f,0,11.5f));\n rootNode.attachChild(this.zoneRoot);\n }",
"public double calculateDistance(int index1, int index2) {\n //Initialize city hashmaps\n HashMap<String, Object> portland = new HashMap<String, Object>();\n portland.put(\"cityIndex\", 1);\n portland.put(\"x\", 50);\n portland.put(\"y\", 50);\n HashMap<String, Object> sedona = new HashMap<String, Object>();\n sedona.put(\"cityIndex\", 2);\n sedona.put(\"x\", 100);\n sedona.put(\"y\", 500);\n HashMap<String, Object> syracuse = new HashMap<String, Object>();\n syracuse.put(\"cityIndex\", 3);\n syracuse.put(\"x\", 800);\n syracuse.put(\"y\", 50);\n HashMap<String, Object> denver = new HashMap<String, Object>();\n denver.put(\"cityIndex\", 4);\n denver.put(\"x\", 300);\n denver.put(\"y\", 250);\n HashMap<String, Object> miami = new HashMap<String, Object>();\n miami.put(\"cityIndex\", 5);\n miami.put(\"x\", 800);\n miami.put(\"y\", 750);\n HashMap<String, Object> madison = new HashMap<String, Object>();\n madison.put(\"cityIndex\", 6);\n madison.put(\"x\", 550);\n madison.put(\"y\", 150);\n HashMap<String, Object> dallas = new HashMap<String, Object>();\n dallas.put(\"cityIndex\", 7);\n dallas.put(\"x\", 350);\n dallas.put(\"y\", 750);\n\n //put hashmaps into an array\n HashMap[] cityArray = {portland, sedona, syracuse, denver, miami, madison, dallas};\n int x1 = 0;\n int x2 = 0;\n int y1 = 0;\n int y2 = 0;\n\n //grab appropriate x and y values\n for(HashMap city: cityArray) {\n if(city.containsValue(index1)) {\n x1 = (int)city.get(\"x\");\n y1 = (int)city.get(\"y\");\n }\n if(city.containsValue(index2)) {\n x2 = (int)city.get(\"x\");\n y2 = (int)city.get(\"y\");\n }\n }\n\n //calculate and return distance\n double distance = Math.sqrt(Math.pow((x1-x2), 2) + Math.pow((y1-y2), 2));\n return distance;\n }",
"double getDistance();",
"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 }",
"@Override\r\n\tpublic void setDistance(Distance distance) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.distance = distance;\r\n\t\t\r\n\t}",
"public LatLonDistance(Collection<K> locationList) {\n locations = locationList;\n }",
"void calculate_distance()\n {\n \t\n \tfor(int i = 0; i<V ; i++)\n \t{\n \t\tfor(int j = 0; j<E ; j++)\n \t\t{\n \t\t\trelax(edge[j].src, edge[j].destination, edge[j].weight);\n \t\t}\n \t\tsp[i] = dist[i];\n \t\tx[i] = dist[i];\n \t}\n \tSystem.out.println();\n }",
"public Ocean() {\n for (int i=0; i < N; i++) {\n for (int j=0; j < N; j++) {\n zone[i][j] = new Zone(i,j);\n }\n }\n }",
"public static Map<Cell, Map<Cell, Number>> getDistances() {\n\t\treturn distances;\n\t}",
"public void reinitiallizeDistanceFunctionOutside() {\n\t\tint i, j;\r\n\t\tfor (i = 0; i < _levelSet.length; i++) {\r\n\t\t\tfor (j = 0; j < _levelSet[i].length; j++) {\r\n\t\t\t\tint iPlus = imposeBorder(i + 1, _iSize);\r\n\t\t\t\tint iMinus = imposeBorder(i - 1, _iSize);\r\n\t\t\t\tint jPlus = imposeBorder(j + 1, _iSize);\r\n\t\t\t\tint jMinus = imposeBorder(j - 1, _iSize);\r\n\t\t\t\tif (_levelSet[i][j] > 0) // // the check for points in region\r\n\t\t\t\t\t// // the check for points in border\r\n\t\t\t\t\tif (MatrixMath.anyNeighborIsInside(_levelSet, i, j, iPlus,\r\n\t\t\t\t\t\t\tiMinus, jPlus, jMinus)) {\r\n\t\t\t\t\t\t// points in border are placed in narrowband\r\n\t\t\t\t\t\t_narrowBandOutside.add(new Location(i, j,\r\n\t\t\t\t\t\t\t\t_levelSet[i][j]));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// and location in distance matrix is set to infinite\r\n\t\t\t\t\t\t_levelSet[i][j] = Double.POSITIVE_INFINITY;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// iterate until narrow band is empty\r\n\t\t// OrderByLevelSetValue comparator = new OrderByLevelSetValue();\r\n\t\t// int lixo = 0;\r\n\t\twhile (_narrowBandOutside.size() > 0) {\r\n\t\t\t// if (lixo++ > 5000) {\r\n\t\t\t// System.out.println(\"done \" + lixo);\r\n\t\t\t// break;\r\n\t\t\t// }\r\n\t\t\t// get the minimum value\r\n\t\t\tLocation minVal = _narrowBandOutside.first();\r\n\t\t\t// get the neighbors that are still in _faraway\r\n\t\t\tint iPlus = imposeBorder(minVal.i + 1, _iSize);\r\n\t\t\tint iMinus = imposeBorder(minVal.i - 1, _iSize);\r\n\t\t\tint jPlus = imposeBorder(minVal.j + 1, _iSize);\r\n\t\t\tint jMinus = imposeBorder(minVal.j - 1, _iSize);\r\n\t\t\ttransferNeighborOutside(iPlus, minVal.j);\r\n\t\t\ttransferNeighborOutside(iMinus, minVal.j);\r\n\t\t\ttransferNeighborOutside(minVal.i, jPlus);\r\n\t\t\ttransferNeighborOutside(minVal.i, jMinus);\r\n\t\t\t// remove the value from the narrowband\r\n\t\t\t_narrowBandOutside.remove(minVal);\r\n\t\t}\r\n\t\t// done\r\n\t}",
"private void getDistance() {\n\n float dist = 0;\n Location location = \n locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n while (location==null) { //If we don't know where we are right now\n Toast.makeText(this, \"No last known location. Aborting...\", \n Toast.LENGTH_LONG).show();\n location = \n locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n }\n\n createPositions();\n\n dist = location.distanceTo(mPositions.get(0).toLocation());\n distanceList.add(dist);\n\n dist = mPositions.get(0).toLocation().distanceTo(mPositions.get(1).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(1).toLocation().distanceTo(mPositions.get(2).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(2).toLocation().distanceTo(mPositions.get(3).toLocation());\n distanceList.add(dist);\n dist = mPositions.get(3).toLocation().distanceTo(mPositions.get(4).toLocation());\n distanceList.add(dist);\n \n }",
"public void setMountains (int value)\n {\n if (value == 1)\n {\n this.mountains = (grid/12000)+1;\n }\n \n if (value == 2)\n {\n this.mountains = (grid/10000)+2;\n }\n \n if (value == 3)\n {\n this.mountains = (grid/8000)+3;\n }\n }",
"public Transition[] computeDistances(){\n\t\tSystem.out.println(\"Computing Transitions...\");\n\t\tTransition[] instanceTransitions = new Transition[nbBd*(nbBd-1)*4];\n\t\t//i sera l'indice de la cellule du tableau\n\t\tint i=0;\n\t\tfor (Strip aStrip : tabStrips){\n\t\t\tfor (Strip anotherStrip : tabStrips)\n\t\t\t\tif (aStrip != anotherStrip){\n\t\t\t\t\tdouble dist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t}//i != j\n\t\t\t//calcul de indMiddleTMin au fur et a mesure en utilisant des coefficients \n\t\t\t//pour eviter de depasser la taille maximale des int \n\t\t\tint divider = ((2*i) / ((nbBd-1) * 4));\n\t\t\tindMiddleTMin = ((indMiddleTMin * (divider - 2)) + (aStrip.indTMin0 + aStrip.indTMin1)) / divider;\n\t\t}//for\n\t\treturn instanceTransitions;\n\t}",
"public void setDistance(double distance) {\n\t\tthis.distance = distance;\n\t}",
"void setDropLocations(RouteDTO routeDTO, List<RoutePointDTO> points);",
"public void setViewDistance(float distance) { viewDistance = distance; }",
"public void driveToDistance(double distance) {\n //TODO\n }",
"public void updateDist(double distance) {\n this.distance = distance;\n }",
"private void updateStationPositions() {\n //stations going east\n if(layout == Layout.square) {\n for (int i = 0; i < numStations; i++) {\n northbound.get(i).setPosition(i+1,2*numStations+1);\n eastbound.get(i).setPosition(0,numStations+(i+1));\n southbound.get(i).setPosition(numStations+1+i,0);\n westbound.get(i).setPosition(numStations*2+1,1+i);\n }\n }else{\n for (int i = 0; i < numStations; i++) {\n eastbound.get(i).setPosition(i,2*numStations+i);\n northbound.get(i).setPosition(numStations+i,3*numStations+i);\n southbound.get(i).setPosition(2*numStations+i,i);\n westbound.get(i).setPosition(3*numStations+i,numStations+i);\n }\n }\n\n }",
"public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setDistance(double interval) {\r\n\t\tthis.setSpeed();\r\n\t\t//System.out.println(\"distance: \" + this.distRun + \" speed: \" + this.currSpeed + \" interval: \"+ interval);\r\n\t\tthis.distRun += this.currSpeed * interval;\r\n\t}",
"private void setPoints () {\n\t\tArrayList<Point> emptySpot = new ArrayList<Point>();\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\tif (maze[i][j] == 0) {\n\t\t\t\temptySpot.add(new Point (i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(emptySpot);\n\t\tthis.goal = emptySpot.get(0);\n\t\tdouble goalRange = this.goal.getX() + this.goal.getY();\n\t\tfor (int i = 1; i < emptySpot.size(); i++) {\n\t\t\tPoint playerStart = emptySpot.get(i);\n\t\t\tdouble playerRange = playerStart.getX() + playerStart.getY();\n\t\t\tif (Math.abs(playerRange - goalRange) > width/2)\n\t\t\tthis.playerStart = playerStart;\n\t\t}\n\t}",
"public void setPoints(List<GeoPoint> points){\n\t\tclearPath();\n\t\tint size = points.size();\n\t\tmOriginalPoints = new int[size][2];\n\t\tfor (int i=0; i<size; i++){\n\t\t\tGeoPoint p = points.get(i);\n\t\t\tmOriginalPoints[i][0] = p.getLatitudeE6();\n\t\t\tmOriginalPoints[i][1] = p.getLongitudeE6();\n\t\t\tif (!mGeodesic){\n\t\t\t\taddPoint(p);\n\t\t\t} else {\n\t\t\t\tif (i>0){\n\t\t\t\t\t//add potential intermediate points:\n\t\t\t\t\tGeoPoint prev = points.get(i-1);\n\t\t\t\t\tfinal int greatCircleLength = prev.distanceTo(p);\n\t\t\t\t\t//add one point for every 100kms of the great circle path\n\t\t\t\t\tfinal int numberOfPoints = greatCircleLength/100000;\n\t\t\t\t\taddGreatCircle(prev, p, numberOfPoints);\n\t\t\t\t}\n\t\t\t\taddPoint(p);\n\t\t\t}\n\t\t}\n\t}",
"public void reinitiallizeDistanceFunctionInside() {\n\t\tint i, j;\r\n\t\tfor (i = 0; i < _levelSet.length; i++) {\r\n\t\t\tfor (j = 0; j < _levelSet[i].length; j++) {\r\n\t\t\t\tint iPlus = imposeBorder(i + 1, _iSize);\r\n\t\t\t\tint iMinus = imposeBorder(i - 1, _iSize);\r\n\t\t\t\tint jPlus = imposeBorder(j + 1, _iSize);\r\n\t\t\t\tint jMinus = imposeBorder(j - 1, _iSize);\r\n\t\t\t\tif (_levelSet[i][j] <= 0) // // the check for points in region\r\n\t\t\t\t\t// // the check for points in border\r\n\t\t\t\t\tif (MatrixMath.anyNeighborIsOutside(_levelSet, i, j, iPlus,\r\n\t\t\t\t\t\t\tiMinus, jPlus, jMinus)) {\r\n\t\t\t\t\t\t// points in border are placed in narrowband\r\n\t\t\t\t\t\t// _narrowBandInside.add(new Location(i, j));\r\n\t\t\t\t\t\t_narrowBandInside.add(new Location(i, j));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// and location in distance matrix is set to infinite\r\n\t\t\t\t\t\t_levelSet[i][j] = Double.NEGATIVE_INFINITY;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// iterate until narrow band is empty\r\n\t\t// OrderByLevelSetValue comparator = new OrderByLevelSetValue();\r\n\t\t// while (_narrowBandInside.size() > 0) {\r\n\t\twhile (_narrowBandInside.size() > 0) {\r\n\t\t\t// get the maximum value\r\n\t\t\t// Location maxVal = _narrowBandInside.last();\r\n\t\t\tLocation maxVal = _narrowBandInside.last();\r\n\t\t\t// System.out.println(\"maxVal \" + maxVal);\r\n\t\t\t// System.out.println(\"_narrowBandInside.contains(maxVal) \"\r\n\t\t\t// + _narrowBandInside.contains(maxVal));\r\n\t\t\t// System.out.println(\"maxVal.compareTo(maxVal) \"\r\n\t\t\t// + maxVal.compareTo(maxVal));\r\n\r\n\t\t\t// get the neighbors that are still in _faraway\r\n\t\t\tint iPlus = imposeBorder(maxVal.i + 1, _iSize);\r\n\t\t\tint iMinus = imposeBorder(maxVal.i - 1, _iSize);\r\n\t\t\tint jPlus = imposeBorder(maxVal.j + 1, _iSize);\r\n\t\t\tint jMinus = imposeBorder(maxVal.j - 1, _iSize);\r\n\t\t\ttransferNeighborInside(iPlus, maxVal.j);\r\n\t\t\ttransferNeighborInside(iMinus, maxVal.j);\r\n\t\t\ttransferNeighborInside(maxVal.i, jPlus);\r\n\t\t\ttransferNeighborInside(maxVal.i, jMinus);\r\n\t\t\t// remove the value from the narrowband\r\n\t\t\t// _narrowBandInside.remove(maxVal);\r\n\t\t\t_narrowBandInside.remove(maxVal);\r\n\t\t}\r\n\t\t// done\r\n\t}",
"public int[] getDistances(){\n\t\treturn distances;\n\t}",
"public void calculateCost() {\n\t\tthis.cost = 0.0;\n\t\t\n\t\tint i, count = this.cities.size()-1;\n\t\tfor (i = 0; i < count; i++)\n\t\t\tthis.cost += this.cities.get(i).distances[this.cities.get(i+1).index];\n\n\t\tthis.cost += this.cities.get(count).distances[this.cities.get(0).index];\n\t}",
"public CalculateDistance(LevelSetApplet japp, LevelSetCanvas canvas1)\r\n\t{\r\n\tthis.canvas1 = canvas1;\r\n\tthis.japp = japp;\t\r\n\t\t//System.out.println(\"got here\");\r\n\tinitializations();\t\r\n\t\t//System.out.println(\"got here2\");\r\n\t\tSystem.out.println(\"Finding Boundary\");\r\n\tfindBoundary(useDestinations);\r\n\t\tSystem.out.println(\"Building Initial Band\");\r\n\tbuildInitialBand();\r\n\t\tSystem.out.println(\"Running Algorithm\");\r\n\t\r\n\twhile(active.size()>0)\r\n\t\t{\r\n\t\trunAlgorithmStep();\r\n\t\t}\r\n \r\n System.out.println(\"Distance function calculated\");\r\n\t\r\n\tmaxPhi = findMaxPhi();\r\n\t//if(useDestinations) maxPhi = 150;\r\n \r\n // Save phi in phiTemp\r\n for(int i=0; i<pixelsWide; i++) {\r\n for(int j=0; j<pixelsHigh; j++) {\r\n phiTemp[i][j] = phi[i][j];\r\n }\r\n }\r\n\t}",
"double getDistanceInMiles();",
"public float getDistance();",
"public void getTotalDistance(ArrayList<NewLocation> arrLocations){\n double sumOfDistances = 0;\n //traverse through each point saved in the array of locations\n for (int i = 0; i < arrLocations.size() - 1; i++) {\n sumOfDistances += getDistanceBetween_2points(arrLocations.get(i).getLatitude(),\n arrLocations.get(i).getLongitude(),\n arrLocations.get(i+1).getLatitude(),\n arrLocations.get(i+1).getLongitude());\n }\n Log.d(TAG, \"getTotalDistance: \" + sumOfDistances);\n //set a new format for the results\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n totalDistanceView.setText(df.format(sumOfDistances)+\" m\");\n }",
"public void setStreets(int numx, int numy);",
"public void initSpawnPoints() {\n this.spawnPointList = new ArrayList<Node>();\n \n //Player spawn point location (5,0,47) In Ready Room\n this.addSpawnPoint(5.5f,0,47.5f,90, true);\n //Mob spawn point location (16,0,47) In Zone 2\n this.addSpawnPoint(16.5f, 0, 47.5f, 270, false); \n //Mob spawn point location (21,0,43)\n this.addSpawnPoint(21.5f, 0, 43.5f, 0,false);\n \n //Mob spawners in Zone 3\n this.addSpawnPoint(17.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(29.5f, 0, 37.5f, 90, false);\n this.addSpawnPoint(17.5f, 0, 29.5f, 270, false);\n \n //Mob spawners in Zone 4\n this.addSpawnPoint(12.5f, 0, 29.5f, 90, false);\n this.addSpawnPoint(6.5f, 0, 20.5f, 0, false);\n \n //Mob spawners in Zone 5\n this.addSpawnPoint(9.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(17.5f, 0, 6.5f, 0, false);\n this.addSpawnPoint(24.5f, 0, 8.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 11.5f, 270, false);\n this.addSpawnPoint(24.5f, 0, 14.5f, 270, false);\n }",
"public void setRouteCenter() {\n\t\tif (metaInfo.isAutoZoomingChecked()) {\n\t\t\t// Calculates the mean point and sets the route.\n\t\t\tdouble meanLat = 0;\n\t\t\tdouble meanLon = 0;\n\t\t\tint numberPoints;\n\t\t\tdouble farthestLat = 0;\n\t\t\tdouble farthestLon = 0;\n\t\t\tdouble zoom;\n\n\t\t\tList<UIWayPoint> currentWayPoints = utilities.getOrderedWayPoints();\n\t\t\tnumberPoints = utilities.getOrderedWayPoints().size();\n\n\t\t\tfor (UIWayPoint p : currentWayPoints) {\n\t\t\t\tmeanLat += Double.valueOf(p.getLatitude());\n\t\t\t\tmeanLon += Double.valueOf(p.getLongitude());\n\t\t\t}\n\n\t\t\tmeanLat /= (numberPoints * 1.0);\n\t\t\tmeanLon /= (numberPoints * 1.0);\n\n\t\t\t// Finds farthest latitude and longitude from mean.\n\t\t\tfor (UIWayPoint p : currentWayPoints) {\n\t\t\t\tif ((Math.abs(Double.valueOf(p.getLatitude()) - meanLat) > farthestLat)) {\n\t\t\t\t\tfarthestLat = (Math.abs((Double.valueOf(p.getLatitude())) - meanLat));\n\t\t\t\t}\n\t\t\t\tif ((Math.abs(Double.valueOf(p.getLongitude()) - meanLon) > farthestLon)) {\n\t\t\t\t\tfarthestLon = (Math.abs((Double.valueOf(p.getLongitude()) - meanLon)));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Used to calculate zoom level.\n\t\t\tPoint centerPoint = new Point(meanLat, meanLon);\n\t\t\tif (farthestLat == 0 && farthestLon == 0) {\n\t\t\t\tzoom = 17;\n\t\t\t} else {\n\t\t\t\tzoom = Math.floor(Math.log10(180.0 / Math.max(farthestLat, farthestLon)) / Math.log10(2));\n\t\t\t}\n\n\t\t\tleafletMap.setCenter(centerPoint, zoom + 1);\n\t\t}\n\t}",
"public void updateGPSCoordinates(Location location) {\n longitude = location.getLongitude();\n latitude = location.getLatitude();\n LatLng userLatLng = new LatLng(latitude,longitude);\n iterator = AdParts.listIterator();\n while (iterator.hasNext()) {\n current = iterator.next();\n current.setDistance(userLatLng.distanceTo(current.getLatLng()));\n }\n Collections.sort(AdParts, new Comparator<Ad>() {\n @Override\n public int compare(Ad o1, Ad o2) {\n return Double.compare(o1.getDistance(), o2.getDistance());\n }\n });\n Log.d(\"asdf\", String.valueOf(longitude));\n mapboxMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(\n latitude, longitude), 10));\n updateTempList();\n }",
"private void setOriginNode() {\n double sumX = 0;\n double sumY = 0;\n Iterator<Point> it = _elements.iterator();\n while (it.hasNext()) {\n Point p = it.next();\n sumX += x(p);\n sumY += y(p);\n }\n _nodeOrigin[0] = sumX / _elements.size();\n _nodeOrigin[1] = sumY / _elements.size();\n }",
"public void setDistance(Dimension2D distance) {\n\t\tthis.distance.setSize(distance);\n\t}",
"public void setActualTrainLocations(HashMap<String, Integer> trainLocations) {\n\t\t// TODO: for each train\n\t\t\t// calculate the distance traveled on block\n\t\t\t// update the total distance traveled for the train.\n\t}",
"@Override\n protected void onPostExecute(ArrayList<PlaceNearby> list) {\n\n for (int i = 0; i < list.size(); i++) {\n\n PlaceNearby mPlace = list.get(i);\n\n double place_lat = Double.parseDouble(mPlace.getLatitude());\n double place_lng = Double.parseDouble(mPlace.getLongitude());\n\n double x = Math.pow((place_lat-mlatitude),2);\n double y = Math.pow((place_lng-mlongitude),2);\n double distance = Math.sqrt(x+y);\n\n mPlace.setDistance(distance);\n\n mPlaces.add(mPlace);\n adapter.notifyDataSetChanged();\n }\n }",
"protected void setCalculatedAccessPoints(Vector<AccessPointDrawable> aps) {\n\t\tfor (int i = 0; i < map.getSubDrawables().size(); i++) {\r\n\t\t\tMultiTouchDrawable d = map.getSubDrawables().get(i);\r\n\t\t\tif (d instanceof AccessPointDrawable && ((AccessPointDrawable) d).isCalculated()) {\r\n\t\t\t\tmap.removeSubDrawable(d);\r\n\t\t\t\ti--;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tDao<AccessPoint, Integer> apDao = databaseHelper.getDao(AccessPoint.class);\r\n\t\t\tDao<Location, Integer> locDao = databaseHelper.getDao(Location.class);\r\n\r\n\t\t\tfor (AccessPoint ap : site.getAccessPoints()) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (ap.isCalculated())\r\n\t\t\t\t\t\tapDao.delete(ap);\r\n\t\t\t\t} catch (Exception e) {\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfor (AccessPointDrawable ap : aps) {\r\n\r\n\t\t\t\tlocDao.createIfNotExists(ap.getAccessPoint().getLocation());\r\n\t\t\t\tap.getAccessPoint().setProjectSite(site);\r\n\t\t\t\tapDao.createOrUpdate(ap.getAccessPoint());\r\n\t\t\t}\r\n\r\n\t\t\tprojectSiteDao.refresh(site);\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLogger.e(\"could not delete old or create new ap results\", e);\r\n\t\t}\r\n\r\n\t\tfor (AccessPointDrawable ap : aps) {\r\n\t\t\tmap.addSubDrawable(ap);\r\n\t\t\tmap.recalculatePositions();\r\n\r\n\t\t}\r\n\t\tmultiTouchView.invalidate();\r\n\t}",
"private void addRouteMArkers()\n {\n //routeMarker.add(new MarkerOptions().position(new LatLng(geo1Dub,geo2Dub)));\n\n }",
"@DBField\n public void setDistance(float distance){\n this.distance = distance;\n }",
"public void update()\n {\n scene.realDistance(cfg,\n segway.position(),\n segway.pitch(),\n segway.yaw(),\n result);\n \n scale.setX(result.distance());\n }",
"private Distance(){}",
"public void placeDrivingDistance(int index){\n Place place=place_map.get(index);\n String url =\"https://maps.googleapis.com/maps/api/directions/json?origin=\"+currentLocation+\"&destination=place_id:\"+place.getPlace_id()+\"&mode=driving&key=AIzaSyBECdnBe-LP4YUxygPWgDmEeDqOEx_Rv08\";\n\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n //Log.d(\"TAG\", response.toString());\n try {\n JSONArray array=response.getJSONArray(\"routes\");\n String length = array.getJSONObject(0).getJSONArray(\"legs\").getJSONObject(0).getJSONObject(\"distance\").getString(\"text\");\n String time = array.getJSONObject(0).getJSONArray(\"legs\").getJSONObject(0).getJSONObject(\"duration\").getString(\"text\");\n System.out.println(\"driving response = [\" + length + time + \"]\");\n placeDistance.setText(\" \"+length+\" driving: \"+time);\n ImageView walkingImg =(ImageView)findViewById(R.id.walkingImg);\n walkingImg.setImageResource(R.drawable.ic_time_to_leave_black_36dp);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n //initialMap();\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"TAG\", error.getMessage(), error);\n }\n });\n queue.add(jsonObjectRequest);\n }",
"@Test\n public void testDistanceTo() {\n System.out.println(\"Testing distanceTo() for a range of different GPS coordinates\");\n double distancesExpected[] = {\n 786.3,\n 786.3,\n 786.3,\n 786.3,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2,\n\t\t\t102.2\n };\n\t\t\n for (int i = 0; i < this.testCoordinates.length; i++) {\n double expResult = distancesExpected[i];\n double result = this.origin.distanceTo(this.testCoordinates[i]);\n\t\t\tSystem.out.println(\"Expected: \" + expResult + \", Actual: \" + result);\n assertEquals(expResult, result, 0.1);\n }\n }",
"public void compute() {\n\n this.jddPtsInflexion.clear();\n ILineString lsInitialee = this.geom;\n\n ILineString lsInitiale = Operateurs.resampling(lsInitialee, 1);\n ILineString lsLisse = GaussianFilter.gaussianFilter(lsInitiale, 5, 1);\n\n double sumOfDistances = 0;\n double length = 70;// 200 m max\n double sumOfAngels = 0;\n // ArrayList<Double> angels=new ArrayList<Double>();\n ArrayList<Double> differences = new ArrayList<Double>();\n\n ArrayList<Double> distances = new ArrayList<Double>();\n\n IDirectPosition p1 = lsInitiale.coord().get(0);\n IDirectPosition p2 = lsInitiale.coord().get(1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double angel = Math.atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n angel = (angel + Math.PI) * 180 / Math.PI;\n\n // angels.add(angel);\n\n for (int i = 1; i < lsInitiale.coord().size() - 1; i++) {\n\n p1 = lsInitiale.coord().get(i);\n p2 = lsInitiale.coord().get(i + 1);\n\n distances.add(p1.distance2D(p2));\n sumOfDistances += distances.get(distances.size() - 1);\n\n double newAngel = Math\n .atan2(p1.getY() - p2.getY(), p1.getX() - p2.getX());\n\n // give the value that varie from 0 to 360-epsilon\n newAngel = (newAngel + Math.PI) * 180 / Math.PI;\n\n // angels.add(newAngel);\n\n while (sumOfDistances > length && differences.size() > 0) {\n sumOfDistances -= distances.get(0);\n\n sumOfAngels -= differences.get(0);\n\n distances.remove(0);\n // System.out.println(\"olddiff=\" + differences.get(0));\n differences.remove(0);\n\n }\n\n double diff = newAngel - angel;\n\n if (diff > 180)\n diff = -360 + diff;// for the case of angel=10 and newAngel=350;\n else if (diff < -180)\n diff = 360 + diff;\n\n differences.add(diff);\n sumOfAngels += diff;\n angel = newAngel;\n // System.out.println(\"sumOfAngels=\" + sumOfAngels);\n // System.out.println(\"angel=\" + newAngel);\n // System.out.println(\"diff=\" + diff);\n\n /*\n * for(int k=0;k<angels.size();k++){ double diff2=newAngel-angels.get(k));\n * if(diff2>180)diff2=360-diff2;// for the case of angel=10 and\n * newAngel=350; else if(diff2<-180)diff2=-360-diff2;\n * if(Math.abs(newAngel->200) {\n * \n * }\n * \n * \n * }\n */\n\n if (Math.abs(sumOfAngels) > 100) {\n\n double maxOfDiff = 0;\n int indexOfMaxOfDiff = -1;\n for (int k = 0; k < differences.size(); k++) {\n if (differences.get(k) > maxOfDiff) {\n maxOfDiff = differences.get(k);\n indexOfMaxOfDiff = k;\n\n }\n\n }\n double maxDistance = -1;\n int maxDistancePointIndex = -1;\n // if(i+differences.size()-indexOfMaxOfDiff-1>=jddPtsInflexion.size())\n for (int jj = 0; jj < differences.size(); jj++) {\n // jddPtsInflexion.add(lsInitiale.coord().get(i+differences.size()-indexOfMaxOfDiff-2));\n if (i + jj - indexOfMaxOfDiff >= 0\n && i + jj - indexOfMaxOfDiff < lsInitiale.coord().size()) {\n int currIndex = i + jj - indexOfMaxOfDiff;\n double distance = lsInitiale.coord().get(currIndex).distance2D(\n lsLisse.coord().get(currIndex));\n if (distance > maxDistance) {\n maxDistance = distance;\n maxDistancePointIndex = currIndex;\n }\n\n }\n\n }\n\n if (maxDistancePointIndex >= 0)\n this.jddPtsInflexion.add(lsInitiale.coord()\n .get(maxDistancePointIndex));\n\n differences.clear();\n sumOfDistances = distances.get(distances.size() - 1);\n distances.clear();\n sumOfAngels = 0;\n i++;\n\n }\n\n }\n\n }",
"public double getDistance () {\n return distance;\n }",
"public void reinitiallizeDistanceFunctionBothWays() {\r\n\t\t// Use this for parallel execution of both sides\r\n\t\treinitiallizeDistanceFunctionInside();\r\n\t\treinitiallizeDistanceFunctionOutside();\r\n\t}",
"public final void setDistance(float distance) {\n this.distance = distance;\n }",
"public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}",
"@Override\n\tpublic void postProcessDistances(double[] distances) {\n\t\t\n\t}",
"@JsonIgnore public Collection<Distance> getFlightDistanceDistances() {\n final Object current = myData.get(\"flightDistance\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Distance>) current;\n }\n return Arrays.asList((Distance) current);\n }",
"private static void updateDistances(Stop newStop) {\n stopDistances.put(new StopPair(newStop, newStop), 0);\n for (Stop s : getAllStops()) {\n // Calculate distance both directions, as implementation of\n // calculateDistancesBetweenStops may change and provide non-mirroring\n // results.\n int distanceA = calculateDistanceBetweenStops(s, newStop);\n int distanceB = calculateDistanceBetweenStops(newStop, s);\n stopDistances.put(new StopPair(s, newStop), distanceA);\n stopDistances.put(new StopPair(newStop, s), distanceB);\n }\n }",
"void mutate() {\r\n\t\tif (Math.random() < TSP.p_mutate) {\r\n\t\t\t// randomly flip two cities\r\n\t\t\trndSwapTwo();\r\n\t\t\tthis.distance = distance();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic double getDistanceToZone(final int x, final int y)\n\t{\n\t\tif (isInsideZone(x, y, zoneZ1))\n\t\t{\n\t\t\treturn 0; // If you are inside the zone distance to zone is 0.\n\t\t}\n\t\t\n\t\tdouble test, shortestDist = Math.pow(zoneX1 - x, 2) + Math.pow(zoneY1 - y, 2);\n\t\t\n\t\ttest = Math.pow(zoneX1 - x, 2) + Math.pow(zoneY2 - y, 2);\n\t\tif (test < shortestDist)\n\t\t{\n\t\t\tshortestDist = test;\n\t\t}\n\t\t\n\t\ttest = Math.pow(zoneX2 - x, 2) + Math.pow(zoneY1 - y, 2);\n\t\tif (test < shortestDist)\n\t\t{\n\t\t\tshortestDist = test;\n\t\t}\n\t\t\n\t\ttest = Math.pow(zoneX2 - x, 2) + Math.pow(zoneY2 - y, 2);\n\t\tif (test < shortestDist)\n\t\t{\n\t\t\tshortestDist = test;\n\t\t}\n\t\t\n\t\treturn Math.sqrt(shortestDist);\n\t}",
"public static void ITdistances()\n\t{\n\t\t//System.err.println(\"Position\");\n\n\t\tclade = clad[k];\n\n\t\tclade.tipDistance = 0;\n\t\tclade.intDistance = 0;\n\t\tclade.tipDisNested = 0;\n\t\tclade.intDisNested = 0;\n\t\tclade.indTipClades = 0;\n\t\tclade.indIntClades = 0;\n\n\n\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t{ \n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (clade.Position[i] == tip)\n\t\t\t\t\tclade.indTipClades += clade.rowTotal[i];\n\t\t\t\telse\n\t\t\t\t\tclade.indIntClades += clade.rowTotal[i];\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\t// weigthing within class\n\t\t\t\tclade.tipDistance += clade.Position[i] * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.tipDisNested += clade.Position[i] * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\tclade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\tclade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\t\n\t\t\t\t\n\t\t\t\t// unweighted\n\t\t\t\t//clade.tipDistance += clade.Position[i] * clade.Dc[i] / (double) clade.check;\n\t\t\t\t//clade.tipDisNested += clade.Position[i] * clade.Dn[i] / (double) clade.check;\n\t\t\t\t//clade.intDistance += (1 - clade.Position[i]) * clade.Dc[i] / (double) (clade.numSubClades - clade.check);\n\t\t\t\t//clade.intDisNested += (1 - clade.Position[i]) * clade.Dn[i] / (double) (clade.numSubClades - clade.check);\t\n\t\t\t}\n\n\t\t clade.tipIntDistance = clade.intDistance - clade.tipDistance;\n\t\t clade.tipIntDisNested = clade.intDisNested - clade.tipDisNested;\n\t\t if(verbose){\n\t\t\tlogfile.println(\"\\nIT \" + clade.cladeName + \" indTipClades = \" + clade.indTipClades\n\t\t\t\t+ \" indIntClades + \" + clade.indIntClades);\n\t\t\tlogfile.println(\"\\nITc \" + clade.cladeName + \" meanInt = \" + clade.intDistance\n\t\t\t\t+ \" meanTip = \" + clade.tipDistance);\n\t\t\tlogfile.println(\"ITn \" + clade.cladeName + \" meanInt = \" + clade.intDisNested\n\t\t\t\t+ \" meanTip = \" + clade.tipDisNested);\n\t\t }\n\t\t}\n\n\t\t//System.err.println(\"IT clade \" + clade.cladeName + \" meanInt = \" + clade.intDistance + \" meanTip = \" + clade.tipDistance);\n\n\t}",
"public void setZ(Double z);",
"public void calcDistance() {\n if (DataManager.INSTANCE.getLocation() != null && location.getLength() == 2) {\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n double dLat = Math.toRadians(location.getLatitude() - DataManager.INSTANCE.getLocation().getLatitude()); // deg2rad below\n double dLon = Math.toRadians(location.getLongitude() - DataManager.INSTANCE.getLocation().getLongitude());\n double a =\n Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(location.getLatitude()))\n * Math.cos(Math.toRadians(location.getLatitude()))\n * Math.sin(dLon / 2)\n * Math.sin(dLon / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double d = KM_IN_RADIUS * c; // Distance in km\n distance = (float) d;\n } else distance = null;\n }",
"private void updateDistance(String s1, String s2)\n\t{\n\t\tString name = EdgeUtil.formatEdge(s1, s2);\n\t\tint weightOld = this.listNode.get(s2).getDistanceFromOrigin();\n\t\tint weightNew = this.listNode.get(s1).getDistanceFromOrigin() + this.listEdge.get(name).getWeight();\n\t\t\n\t\tif(weightOld > weightNew) {\n\t\t\tthis.listNode.get(s2).setDistanceFromOrigin(weightNew);\n\t\t\tthis.listNode.get(s2).setPrecedent(s1);\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic List<KinderGarten> chercherParZone(Double longi, Double lat,Double rayon) {\n\t\t\t\t\tList<KinderGarten> list = new ArrayList<>();\n\t\t\t\t\tList<KinderGarten> list2 =(List<KinderGarten>) kindergartenRepo.findAll();\n\t\t\t\t\tfor(int i=0;i<list2.size();i++)\n\t\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()));\n\t\t\t\t\t\tif(calculDis(longi,lat,list2.get(i).getLongi(),list2.get(i).getLatitude()) <= rayon)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlist.add(list2.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// long/lat/r\n\t\t\t\t\t//coord bd Ariana long:10.182733 lat: 36.900635 // long:10.804493 lat2 :36.460875\n\t\t\t\t\t\n\t\t\t\t\t//test 1 Ariana 10.1852049/36.8989212/1 \n\t\t\t\t\t\n\t\t\t\t\t//test 2 A GHANA 10.181863/36.806459/1 // long2:10.182039 lat2: 36.806021 \n\t\t\t\t\t//\n\t\t\t\t\treturn list;\n\t\t\t\t}",
"private void sortDistHelper(Vector<Restaurant> vec, double origin_lat, double origin_long) {\n for (int i = 1; i < vec.size(); i++) {\n int j = i - 1;\n Restaurant key = vec.get(i);\n while (j >= 0 && !vec.get(j).compareDistance(key, origin_lat, origin_long)) {\n Restaurant temp = vec.remove(j + 1);\n vec.add(j, temp);\n j--;\n }\n }\n }",
"void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}",
"private void setSpeedValues(){\n minSpeed = trackingList.get(0).getSpeed();\n maxSpeed = trackingList.get(0).getSpeed();\n averageSpeed = trackingList.get(0).getSpeed();\n\n double sumSpeed =0.0;\n for (TrackingEntry entry:trackingList) {\n\n sumSpeed += entry.getSpeed();\n\n //sets min Speed\n if (minSpeed > entry.getSpeed()){\n minSpeed = entry.getSpeed();\n }\n //sets max Speed\n if (maxSpeed < entry.getSpeed()) {\n maxSpeed = entry.getSpeed();\n }\n\n }\n\n averageSpeed = sumSpeed/trackingList.size();\n }",
"public static void addVectorCircle(MapLocation center, float size, float baseDesire, float distanceDesire) {\n switch (vectorCircleCount) {\n case 0:\n Z1vc_baseDesire = baseDesire + (distanceDesire * size);\n Z1vc_distanceDesire = -distanceDesire;\n Z1vc_center = center;\n Z1vc_size = size;\n vectorCircleCount++;\n break;\n case 1:\n Z2vc_baseDesire = baseDesire + (distanceDesire * size);\n Z2vc_distanceDesire = -distanceDesire;\n Z2vc_center = center;\n Z2vc_size = size;\n vectorCircleCount++;\n break;\n case 2:\n Z3vc_baseDesire = baseDesire + (distanceDesire * size);\n Z3vc_distanceDesire = -distanceDesire;\n Z3vc_center = center;\n Z3vc_size = size;\n vectorCircleCount++;\n break;\n case 3:\n Z4vc_baseDesire = baseDesire + (distanceDesire * size);\n Z4vc_distanceDesire = -distanceDesire;\n Z4vc_center = center;\n Z4vc_size = size;\n vectorCircleCount++;\n break;\n case 4:\n Z5vc_baseDesire = baseDesire + (distanceDesire * size);\n Z5vc_distanceDesire = -distanceDesire;\n Z5vc_center = center;\n Z5vc_size = size;\n vectorCircleCount++;\n break;\n case 5:\n Z6vc_baseDesire = baseDesire + (distanceDesire * size);\n Z6vc_distanceDesire = -distanceDesire;\n Z6vc_center = center;\n Z6vc_size = size;\n vectorCircleCount++;\n break;\n case 6:\n Z7vc_baseDesire = baseDesire + (distanceDesire * size);\n Z7vc_distanceDesire = -distanceDesire;\n Z7vc_center = center;\n Z7vc_size = size;\n vectorCircleCount++;\n break;\n case 7:\n Z8vc_baseDesire = baseDesire + (distanceDesire * size);\n Z8vc_distanceDesire = -distanceDesire;\n Z8vc_center = center;\n Z8vc_size = size;\n vectorCircleCount++;\n break;\n case 8:\n Z9vc_baseDesire = baseDesire + (distanceDesire * size);\n Z9vc_distanceDesire = -distanceDesire;\n Z9vc_center = center;\n Z9vc_size = size;\n vectorCircleCount++;\n break;\n case 9:\n Z10vc_baseDesire = baseDesire + (distanceDesire * size);\n Z10vc_distanceDesire = -distanceDesire;\n Z10vc_center = center;\n Z10vc_size = size;\n vectorCircleCount++;\n break;\n case 10:\n Z11vc_baseDesire = baseDesire + (distanceDesire * size);\n Z11vc_distanceDesire = -distanceDesire;\n Z11vc_center = center;\n Z11vc_size = size;\n vectorCircleCount++;\n break;\n case 11:\n Z12vc_baseDesire = baseDesire + (distanceDesire * size);\n Z12vc_distanceDesire = -distanceDesire;\n Z12vc_center = center;\n Z12vc_size = size;\n vectorCircleCount++;\n break;\n case 12:\n Z13vc_baseDesire = baseDesire + (distanceDesire * size);\n Z13vc_distanceDesire = -distanceDesire;\n Z13vc_center = center;\n Z13vc_size = size;\n vectorCircleCount++;\n break;\n case 13:\n Z14vc_baseDesire = baseDesire + (distanceDesire * size);\n Z14vc_distanceDesire = -distanceDesire;\n Z14vc_center = center;\n Z14vc_size = size;\n vectorCircleCount++;\n break;\n case 14:\n Z15vc_baseDesire = baseDesire + (distanceDesire * size);\n Z15vc_distanceDesire = -distanceDesire;\n Z15vc_center = center;\n Z15vc_size = size;\n vectorCircleCount++;\n break;\n case 15:\n Z16vc_baseDesire = baseDesire + (distanceDesire * size);\n Z16vc_distanceDesire = -distanceDesire;\n Z16vc_center = center;\n Z16vc_size = size;\n vectorCircleCount++;\n break;\n case 16:\n Z17vc_baseDesire = baseDesire + (distanceDesire * size);\n Z17vc_distanceDesire = -distanceDesire;\n Z17vc_center = center;\n Z17vc_size = size;\n vectorCircleCount++;\n break;\n case 17:\n Z18vc_baseDesire = baseDesire + (distanceDesire * size);\n Z18vc_distanceDesire = -distanceDesire;\n Z18vc_center = center;\n Z18vc_size = size;\n vectorCircleCount++;\n break;\n case 18:\n Z19vc_baseDesire = baseDesire + (distanceDesire * size);\n Z19vc_distanceDesire = -distanceDesire;\n Z19vc_center = center;\n Z19vc_size = size;\n vectorCircleCount++;\n break;\n case 19:\n Z20vc_baseDesire = baseDesire + (distanceDesire * size);\n Z20vc_distanceDesire = -distanceDesire;\n Z20vc_center = center;\n Z20vc_size = size;\n vectorCircleCount++;\n break;\n }\n }",
"private void reassignCentroids(Map<double[], Set<String>> restaurantClusters) {\n\n for (double[] centroid : restaurantClusters.keySet()) {\n\n // If a centroid has no restaurants, do not update the centroid\n if (restaurantClusters.get(centroid).isEmpty()) {\n continue;\n }\n\n double totalLat = 0;\n double totalLon = 0;\n int size = restaurantClusters.get(centroid).size();\n\n for (String rID : restaurantClusters.get(centroid)) {\n Restaurant r = this.restaurantMap.get(rID);\n // Get the total value for lattitude and longitude for all restaurants\n // in the cluster\n totalLat += r.getLatitude();\n totalLon += r.getLongitude();\n }\n\n centroid[0] = totalLat / size;\n centroid[1] = totalLon / size;\n }\n }",
"@Test\n public void testSetLocations() {\n System.out.println(\"setLocations\");\n List<DTO_Location> locations = new ArrayList<>();\n locations.add(new DTO_Location(new GregorianCalendar().toString(), 2L, 0.1, 0.2));\n DTO_Ride instance = dtoRide;\n instance.setLocations(locations);\n List<DTO_Location> result = instance.getLocations();\n assertEquals(1, locations.size());\n }",
"public int CalcDistance ( )\r\n\t{\r\n\t\tfor ( int i = 0; i<size; i++ )\r\n\t\t{\r\n\t\t\tfor ( int offR = 0; offR <= size/2; offR++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int c = 0; c <= size/2; c++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == 0 && maze [offR] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenUp() && maze [offR-1] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR-1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == 0 && maze [offR] [c].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenLeft() && maze [offR] [c-1].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c-1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor ( int c = size-1; c >= size/2; c-- )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == 0 && maze [offR] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenUp() && maze [offR-1] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR-1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == size-1 && maze [offR] [c].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenRight() && maze [offR] [c+1].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c+1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor ( int offR = size-1; offR >= size/2; offR-- )\r\n\t\t\t{\r\n\t\t\t\tfor ( int c = 0; c <= size/2; c++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == size-1 && maze [offR] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenDown() && maze [offR+1] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR+1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == 0 && maze [offR] [c].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenLeft() && maze [offR] [c-1].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c-1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor ( int c = size-1; c >= size/2; c-- )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == size-1 && maze [offR] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenDown() && maze [offR+1] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR+1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == size-1 && maze [offR] [c].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenRight() && maze [offR] [c+1].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c+1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn maze [currentRow] [currentCol].getDistanceToExit();\r\n\t}",
"private void calculateDistances(int point) {\n int start = getDistanceIndex(point);\n\n for (int i = 0; i < point; i++) {\n distances[start + i] = getDistance(ntree.get(point), ntree.get(i));\n }\n\n int numPoints = getNumPoints();\n\n for (int i = point + 1; i < numPoints; i++) {\n start = getDistanceIndex(i);\n distances[start + point] = getDistance(ntree.get(point),\n ntree.get(i));\n }\n }",
"private void updateMowerCords() {\n\t\tfor (int i = 0; i < this.map.size(); i++) {\r\n\t\t\tfor (int j = 0; j < this.map.get(i).size(); j++) {\r\n\t\t\t\tif (this.map.get(i).get(j) == this.mower) {\r\n\t\t\t\t\tthis.x = j;\r\n\t\t\t\t\tthis.y = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public double ComputeDistance(){ \n\t\tdouble lat1 = this.depAirportCity.getLatDegs() + (double)(this.depAirportCity.getLatMins())/60; \n\t\tdouble lon1 = this.depAirportCity.getLongDegs() + (double)(this.depAirportCity.getLongMins())/60;\n\t\tdouble lat2 = this.arrAirportCity.getLatDegs() + (double)(this.arrAirportCity.getLatMins())/60; \n\t\tdouble lon2 = this.arrAirportCity.getLongDegs() + (double)(this.arrAirportCity.getLongMins())/60;\n\t\t\n\t\tdouble distance = Haversine.getMiles(lat1, lon1, lat2, lon2);\n\t\treturn distance;\n\t}",
"public HashMap<String, String> getCalculation(){\n return directionsList;\n }",
"public void update(long delta){\n \n if(placement <= -1000){\n placement = zPosition;\n }\n placement -= 5;\n \n \n }"
] |
[
"0.6499838",
"0.6477769",
"0.60571533",
"0.60560024",
"0.603562",
"0.5759329",
"0.5725683",
"0.5714549",
"0.5653647",
"0.5653554",
"0.55610156",
"0.5543021",
"0.5539232",
"0.5507174",
"0.5504156",
"0.5486531",
"0.5479642",
"0.5454993",
"0.5449629",
"0.54235494",
"0.5418976",
"0.5418976",
"0.54076934",
"0.53491485",
"0.53490156",
"0.53394353",
"0.53220093",
"0.5316505",
"0.5311052",
"0.5300447",
"0.52855486",
"0.52734417",
"0.5270334",
"0.5259106",
"0.5258597",
"0.52580804",
"0.52558714",
"0.52401555",
"0.51909477",
"0.51884323",
"0.51792437",
"0.51736635",
"0.5173308",
"0.51594967",
"0.51495063",
"0.5147556",
"0.514635",
"0.5137389",
"0.51330703",
"0.51230264",
"0.51225126",
"0.5107316",
"0.5107246",
"0.5103507",
"0.51006395",
"0.50974846",
"0.5082706",
"0.5080554",
"0.5072403",
"0.50614846",
"0.50511235",
"0.50446594",
"0.5039531",
"0.5039111",
"0.50357395",
"0.50280744",
"0.50235605",
"0.50211394",
"0.500709",
"0.49973753",
"0.49830854",
"0.49692455",
"0.49653703",
"0.49634066",
"0.49611467",
"0.49578455",
"0.4957691",
"0.4950212",
"0.49396935",
"0.49395066",
"0.49322522",
"0.49310124",
"0.49267092",
"0.4921971",
"0.4917845",
"0.4898684",
"0.4896084",
"0.48954943",
"0.48886746",
"0.48876703",
"0.48832768",
"0.48826927",
"0.4876328",
"0.4875537",
"0.4875158",
"0.48695022",
"0.48686534",
"0.48674586",
"0.48654425",
"0.4864126",
"0.48589757"
] |
0.0
|
-1
|
set corner radius for each zone
|
public void setScaleZoneCornerRadius(int cornerRadius){
this.mScaleZoneCornerRadius = Utils.dp2px(mContext, cornerRadius);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public final void setCornerRadii(float cornerRadius) {\n setCornerRadii(new float[] { cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius, cornerRadius });\n }",
"public void setRadius(int radius);",
"public void setCornerRadius(float cornerRadius) {\n mPolygonShapeSpec.setCornerRadius(cornerRadius);\n mBorderPaint.setPathEffect(new CornerPathEffect(cornerRadius));\n mPaint.setPathEffect(new CornerPathEffect(cornerRadius));\n invalidate();\n }",
"public void setRegion(CoordinateRadius region);",
"public void setCornerRadii(float[] radii) {\n if (mState.mRadii != radii) {\n if (radiusEquals(radii, 0, +0.0f)) {\n mState.mRadii = null;\n invalidateSelf(mState.mShader, false);\n } else {\n mState.mRadii = radii;\n invalidateSelf(mState.mShader, true);\n }\n }\n }",
"public RegionCreator radius(int radius)\n\t{\n\t\tthis.radius = radius;\n\t\treturn this;\n\t}",
"private void configureLocation() {\n radius = size / 2;\n circleX = bounds.left + radius;\n circleY = bounds.top + radius;\n }",
"public void setRadius(float r) {\n if (!highwayPerspectiveEnabled) {\n radius = r;\n } else {\n radius = defaultClusterRadius * getPerspectiveScaleFactor(location);\n }\n radiusX = radius / aspectRatio;\n radiusY = radius * aspectRatio;\n }",
"public final void setCornerRadii(float topLeftRadius, float topRightRadius, float bottomLeftRadius, float bottomRightRadius) {\n setCornerRadii(new float[] { topLeftRadius, topLeftRadius, topRightRadius, topRightRadius, bottomRightRadius, bottomRightRadius, bottomLeftRadius, bottomLeftRadius });\n }",
"public MyProgress setCornerRadius(float radius) {\n mCornerRadius = radius;\n return this;\n }",
"protected void buildRadius()\r\n\t{\n\t\tif (m_Qmax == null || m_Qmin == null)\r\n\t\t{\r\n\t\t\tupdateQMinQMax();\r\n\t\t}\r\n\t\t\r\n\t\tm_Radius = getMaxDistanceOrigin();\r\n\t}",
"public void setBorderRadius(Corner corner, float radius) {\n switch (corner) {\n case TOP_LEFT:\n borderRadius.x = radius;\n break;\n case TOP_RIGHT:\n borderRadius.y = radius;\n break;\n case BOTTOM_LEFT:\n borderRadius.z = radius;\n break;\n case BOTTOM_RIGHT:\n borderRadius.w = radius;\n break;\n }\n rounded = true;\n }",
"private Corners findCorners(ArrayList<MatOfPoint> markers) {\n ArrayList<Point> corners = new ArrayList<>();\n for (MatOfPoint mrk : markers) {\n List<Point> list = mrk.toList();\n mrk.release();\n double sumx = 0, sumy = 0;\n for (Point p : list) {\n sumx += p.x;\n sumy += p.y;\n }\n corners.add(new Point(sumx/list.size(), sumy/list.size()));\n // System.out.println(list.size());\n }\n sortCorners(corners);\n // for (Point p : corners) System.out.println(p.x + \" \" + p.y);\n for (int i = 0; i < corners.size(); i++) {\n corners.get(i).x /= width;\n corners.get(i).y /= height;\n }\n if (corners.size() == 4) {\n return new Corners(corners.get(0), corners.get(1), corners.get(3), corners.get(2));\n }\n return null;\n }",
"public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);",
"public void setCornering(double cornering) {\r\n this.cornering = cornering;\r\n }",
"public void setRadius(int radius) {\n this.radius = radius;\n }",
"public void setRadius(int r) {\n this.radius = r;\n }",
"public int getRadius() { return radius; }",
"public abstract float getRadius();",
"public abstract float getRadius();",
"public void setRadius(double r) { radius.set(clamp(r, RADIUS_MIN, RADIUS_MAX)); }",
"public double getRadius(){\n return radius;\n }",
"public void setRadius(double radius){\n this.radius = radius;\n }",
"public int getRadius_() {\r\n\t\treturn radius_;\r\n\t}",
"public void setRadius(double value) {\n radius = value;\n }",
"double getRadius();",
"public void setFixedRadius ( int radius ) {\r\n\t\tradius_mag_dependent = false;\r\n\t\tplot_radius = radius;\r\n\t}",
"public void initZoneAreas() {\n this.zoneList = new ArrayList<Node>();\n this.zoneRoot = new Node(\"Zone Root\");\n \n Material mat = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\"); \n mat.setColor(\"Color\", new ColorRGBA(0,1,1,0.5f));\n mat.getAdditionalRenderState().setBlendMode(BlendMode.Alpha);\n \n Geometry zoneBox1 = new Geometry(\"Zone 1\",new Box(12,1,12));\n Node zoneNode1 = new Node(\"Zone 1\");\n zoneBox1.setMaterial(mat);\n zoneBox1.setQueueBucket(Bucket.Transparent);\n zoneNode1.attachChild(zoneBox1);\n this.zoneList.add(zoneNode1);\n this.zoneRoot.attachChild(zoneNode1);\n \n zoneNode1.setLocalTranslation(CubeToWorldVector(7.5f,0,47.5f));\n \n Geometry zoneBox2 = new Geometry(\"Zone 2\",new Box(18f,1,6));\n Node zoneNode2 = new Node(\"Zone 2\");\n zoneBox2.setMaterial(mat);\n zoneBox2.setQueueBucket(Bucket.Transparent);\n zoneNode2.attachChild(zoneBox2);\n this.zoneList.add(zoneNode2);\n this.zoneRoot.attachChild(zoneNode2);\n \n zoneNode2.setLocalTranslation(CubeToWorldVector(17.5f,0,47.5f));\n \n Geometry zoneBox2b = new Geometry(\"Zone 2b\",new Box(6f,1,6));\n Node zoneNode2b = new Node(\"Zone 2b\");\n zoneBox2b.setMaterial(mat);\n zoneBox2b.setQueueBucket(Bucket.Transparent);\n zoneNode2b.attachChild(zoneBox2b);\n this.zoneList.add(zoneNode2b);\n this.zoneRoot.attachChild(zoneNode2b);\n \n zoneNode2b.setLocalTranslation(CubeToWorldVector(21.5f,0,43.5f));\n \n Geometry zoneBox3 = new Geometry(\"Zone 3\",new Box(24f,1,22.5f));\n Node zoneNode3 = new Node(\"Zone 3\");\n zoneBox3.setMaterial(mat);\n zoneBox3.setQueueBucket(Bucket.Transparent);\n zoneNode3.attachChild(zoneBox3);\n this.zoneList.add(zoneNode3);\n this.zoneRoot.attachChild(zoneNode3);\n \n zoneNode3.setLocalTranslation(CubeToWorldVector(23.5f,0,34f));\n \n Geometry zoneBox4 = new Geometry(\"Zone 4\",new Box(9f,1,9f));\n Node zoneNode4 = new Node(\"Zone 4\");\n zoneBox4.setMaterial(mat);\n zoneBox4.setQueueBucket(Bucket.Transparent);\n zoneNode4.attachChild(zoneBox4);\n this.zoneList.add(zoneNode4);\n this.zoneRoot.attachChild(zoneNode4);\n \n zoneNode4.setLocalTranslation(CubeToWorldVector(12.5f,0,29.5f));\n \n Geometry zoneBox4b = new Geometry(\"Zone 4b\",new Box(9f,1,22.5f));\n Node zoneNode4b = new Node(\"Zone 4b\");\n zoneBox4b.setMaterial(mat);\n zoneBox4b.setQueueBucket(Bucket.Transparent);\n zoneNode4b.attachChild(zoneBox4b);\n this.zoneList.add(zoneNode4b);\n this.zoneRoot.attachChild(zoneNode4b);\n \n zoneNode4b.setLocalTranslation(CubeToWorldVector(6.5f,0,25f));\n \n Geometry zoneBox5 = new Geometry(\"Zone 5\",new Box(36f,1,18f));\n Node zoneNode5 = new Node(\"Zone 5\");\n zoneBox5.setMaterial(mat);\n zoneBox5.setQueueBucket(Bucket.Transparent);\n zoneNode5.attachChild(zoneBox5);\n this.zoneList.add(zoneNode5);\n this.zoneRoot.attachChild(zoneNode5);\n \n zoneNode5.setLocalTranslation(CubeToWorldVector(13.5f,0,11.5f));\n rootNode.attachChild(this.zoneRoot);\n }",
"private void setPenRadius() {\n\t}",
"public double getRadius() { return radius; }",
"public Builder setRadius(int value) {\n bitField0_ |= 0x00000004;\n radius_ = value;\n onChanged();\n return this;\n }",
"public float[] getCornerRadii() {\n return mState.mRadii;\n }",
"public CoordinateRadius getRegion();",
"public void setArea(double radius) {\n this.radius = radius;\n }",
"public void setRadius( double r ) \r\n { radius = ( r >= 0.0 ? r : 0.0 ); }",
"long getRadius();",
"public int getFixedRadius ( ) {\r\n\t\treturn plot_radius;\r\n\t}",
"private double getRadius() {\n\t\treturn Math.min(getWidth(), getHeight()) / 2.0 * RADIUS_MODIFIER;\n\t}",
"public int getRadius() {\n return radius_;\n }",
"public void setRadius(double value) {\n this.radius = value;\n }",
"public void setRadius(int radius)\n {\n this.radius = radius;\n super.setSize(radius + 2, radius + 2);\n this.paintImmediately(this.getVisibleRect());\n }",
"int getRadius();",
"public double getRadius(){return radius;}",
"public double getRadius(){\n\t\treturn radius;\n\t}",
"public int getRadius() {\n return radius;\n }",
"public void setRadius(double radius) {\r\n this.radius = radius;\r\n }",
"private void setRadius(float radius) {\n\t\tthis.radius = radius;\n\t}",
"public int getRadius() {\n return radius_;\n }",
"public void setRadius(int radius) {\n\t\tthis.radius = radius;\n\t}",
"public void setRadius(double radius) {\n this.radius = radius;\n }",
"public Coord3d[] corners() {\n Coord3d[] corners = new Coord3d[8];\n corners[0] = new Coord3d(xmax, ymax, zmax);\n corners[1] = new Coord3d(xmin, ymax, zmax);\n corners[2] = new Coord3d(xmin, ymin, zmax);\n corners[3] = new Coord3d(xmax, ymax, zmax);\n corners[4] = new Coord3d(xmax, ymax, zmin);\n corners[5] = new Coord3d(xmin, ymax, zmin);\n corners[6] = new Coord3d(xmin, ymin, zmin);\n corners[7] = new Coord3d(xmax, ymax, zmin);\n return corners;\n }",
"public double getRadius(){\n return r;\n }",
"public int getRadius() {\n\t\treturn radius;\n\t}",
"public void setRadius(double radius){\n\t\tradius =this.radius;\n\t}",
"public void setRadius(double n)\r\n\t{\r\n\t\tradius = n;\r\n\t}",
"public float getRadius() {\n return radius;\n }",
"public double getRadius(){\r\n return radius;\r\n }",
"public void setPickRadius(double r) {\n\t\t\n\t}",
"private void setCurrentRadius(double r){\n\t\t\n\t\t_currentRadius = r;\n\t\t\n\t}",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public double getRadius() {\n return radius;\n }",
"public int getRadius()\n\t{\n\t\treturn radius;\n\t}",
"public double getRadius() {\r\n\t\treturn radius;\r\n\t}",
"public void setCircleClip(int x, int y, int radius);",
"@Override\n public void setRadius(float radius) {\n Arrays.fill(mRadii, radius);\n updatePath();\n invalidateSelf();\n }",
"public void setRadius(float radius) {\n this.radius = radius;\n }",
"private void adjustToRadius(){\n float distance = (float)(2 *METERS_PER_MILE * mRadius);\n LatLngBounds bounds = boundsWithCenterAndLatLngDistance(\n new LatLng(mCurrentLoc.latitude, mCurrentLoc.longitude)\n , distance, distance);\n mMap.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0), 1000, null);\n }",
"public double getRadius()\r\n\t{\r\n\t\treturn radius;\r\n\t}",
"public int getEventCornerRadius() {\n return config.eventCornerRadius;\n }",
"public void setRadius(double entry) {\r\n\t\tradius = entry;\r\n\t}",
"public double getRadius()\r\n {\r\n return radius;\r\n }",
"public int getRadius() {\r\n\t\treturn this.radius;\r\n\t}",
"public abstract double getBoundingCircleRadius();",
"@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .7, 1.1, .3, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower inner corner\r\n\t\tgetPositions().putAll(createSymmetricLines(1.1, .3, .7, .25, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> middle\r\n\t\tgetPositions().putAll(createSymmetricLines(.7, .25, .2, 1.35, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//inner\r\n\t\tgetPositions().putAll(createSymmetricLines(1, .5, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricLines(0.8, .4, .55, 0.95, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\t\tgetPositions().putAll(createSymmetricPoints(0.9, .5, WingPart.INNER_LEFT, WingPart.INNER_RIGHT));\r\n\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_RIGHT, WingPart.INNER_RIGHT));\r\n//\t\tgetPositions().putAll(fill(WingPart.OUTER_LEFT, WingPart.INNER_LEFT));\r\n\t}",
"public double getRadius() {\r\n\t\treturn _radius;\r\n\t}",
"public void setBorderRadius(float radius) {\n setBorderRadius(Corner.TOP_LEFT, radius);\n setBorderRadius(Corner.TOP_RIGHT, radius);\n setBorderRadius(Corner.BOTTOM_LEFT, radius);\n setBorderRadius(Corner.BOTTOM_RIGHT, radius);\n }",
"protected void setCornerControls(ObservableList<Node> content) {\n this.cornerControlsProperty().setValue(content);\n }",
"public IconBuilder roundRect(int radius) {\n\t\tthis.shape = IconShape.ROUNDED;\n\t\tthis.radius = radius;\n\t\treturn this;\n\t}",
"public double getRadius() {\n\t\treturn radius;\n\t}",
"public double getRadius() {\n\t\treturn radius;\n\t}",
"public void setWidth(int w){ widthRadius = w; }",
"public Zone[] getZones() {\n\t\treturn cvizZonesToICirclesZones(zones);\n\t}",
"private static void calculateRadiusforCircle()\r\n\t{\r\n\t\tsensorRadius = Math.sqrt((double) averageDensity / (double) numberOfSensors);\r\n\t\tsensorRadius = sensorRadius * unitSizeForCircle;\r\n\t\tnoOfCellRowsCoulmns = (int) (unitSizeForSquare / sensorRadius);\r\n\t\tcell = new Cell[noOfCellRowsCoulmns + 2][noOfCellRowsCoulmns + 3];\r\n\t\tinitializeCell(noOfCellRowsCoulmns + 2, noOfCellRowsCoulmns + 3);\r\n\t}",
"public void setRadius(double radius) {\n\t\tthis.radius = radius;\n\t}",
"public void setRadius(double radius) {\n\t\tthis.radius = radius;\n\t}",
"private void setCircle() {\n\t\tlayout_Circle=new Circle[][] {{null, null, null, null, null, null, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, finishCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, pos80, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos7_1, pos70, pos71, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos6_2, pos6_1, pos60, pos61, pos62, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos5_3, pos5_2, pos5_1, pos50, pos51, pos52, pos53, null, null},\n\t\t\t \t\t\t\t\t\t {null, pos4_4, pos4_3, pos4_2, pos4_1, pos40, pos41, pos42, pos43, pos44, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos3_3, pos3_2, pos3_1, pos30, pos31, pos32, pos33, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos2_2, pos2_1, pos20, pos21, pos22, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos1_1, pos10, pos11, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, startCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, null, null, null, null, null, null}};\n\t}",
"public float getRadius()\n {\n return _radius;\n }",
"public void plotinit() {\r\n\r\n\t\tfloat dx;\r\n\t\tfloat dy;\r\n\t\tfloat d;\r\n\r\n\t\tdy = ymax - ymin;\r\n\t\tdx = xmax - xmin;\r\n\t\td = (dx > dy ? dx : dy) * 1.1f;\r\n\r\n\t\tpxmin = xmin - (d - dx) / 2.0f;\r\n\t\tpxmax = xmax + (d - dx) / 2.0f;\r\n\t\tpymin = ymin - (d - dy) / 2.0f;\r\n\t\tpymax = ymax + (d - dy) / 2.0f;\r\n\r\n\t\tcradius = (pxmax - pxmin) / 350.0f;\r\n\r\n\t}",
"public int getRadius()\n {\n return this.radius;\n }",
"public double getRadius() {\n return radius; \n }",
"public void setCornerArcRadius (int cornerArcRadius) {\n if (cornerArcRadius <= 0) {\n Log.warning(\"Attempted to set a checkbox corner arc radius of less than or equal to 0.\");\n }\n\n synchronized (this) {\n this.cornerArcRadius = cornerArcRadius;\n }\n }"
] |
[
"0.64356065",
"0.63461035",
"0.6155365",
"0.60176885",
"0.60029566",
"0.59630567",
"0.59150434",
"0.5914306",
"0.5879341",
"0.58692116",
"0.58476174",
"0.57957447",
"0.5795205",
"0.5786485",
"0.57648516",
"0.57522964",
"0.57472616",
"0.5731663",
"0.5727884",
"0.5727884",
"0.57187986",
"0.5717958",
"0.5717765",
"0.5709505",
"0.56864065",
"0.5684409",
"0.56815296",
"0.567216",
"0.5663076",
"0.56593585",
"0.5651121",
"0.5640887",
"0.56369394",
"0.5633898",
"0.5628795",
"0.5625522",
"0.56204176",
"0.5611544",
"0.5592911",
"0.55919206",
"0.55823886",
"0.5581466",
"0.5581444",
"0.5568098",
"0.5559329",
"0.55537105",
"0.555314",
"0.5541904",
"0.55270386",
"0.5509425",
"0.55087066",
"0.5505366",
"0.5499101",
"0.548159",
"0.54812944",
"0.54761773",
"0.5464818",
"0.54459506",
"0.5445352",
"0.5437805",
"0.5437805",
"0.5437805",
"0.5437805",
"0.5437805",
"0.5437805",
"0.5437805",
"0.5437805",
"0.5437805",
"0.5437805",
"0.54368305",
"0.5432507",
"0.5428234",
"0.5420174",
"0.5418923",
"0.5417915",
"0.54167455",
"0.54084",
"0.53921866",
"0.53906715",
"0.5380299",
"0.5376325",
"0.5375936",
"0.5367055",
"0.53635925",
"0.5353216",
"0.53495556",
"0.5344894",
"0.53328574",
"0.53328574",
"0.5328296",
"0.5317559",
"0.53152597",
"0.5305359",
"0.5305359",
"0.5287192",
"0.52817005",
"0.52804536",
"0.527866",
"0.52716917",
"0.5260542"
] |
0.6755696
|
0
|
set the visibility for progress inner text
|
public void setProgressTextVisibility(boolean visibility){
this.textVisibility = visibility;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void setLoadingBarVisible(String text)\n {\n loadingBar.setVisibility(View.VISIBLE);\n loadingText.setText(text);\n }",
"public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n search_progress.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(search_progress, \"alpha\", 0.0f, 1.0f).start();\n }",
"private void hideProgress() {\n\n if(null != mErrorTextView) {\n mErrorTextView.setVisibility(View.GONE);\n }\n }",
"public void showProgressBar() {\n\t\tmProgressBarVisible = true;\n\t\tif (getView() != null) {\n\t\t\tLinearLayout progressLayout = (LinearLayout) getView()\n\t\t\t\t\t.findViewById(R.id.severity_list_progress_layout);\n\t\t\tif (progressLayout != null)\n\t\t\t\tprogressLayout.setVisibility(View.VISIBLE);\n\t\t}\n\t}",
"private void setProgressBarVisible(boolean pBool) {\n\n ProgressBar tempBar = (ProgressBar)findViewById(R.id.tallyDeviceConnectionStatusMessageProgressBar);\n\n if (pBool) { tempBar.setVisibility(View.VISIBLE); }\n else { tempBar.setVisibility(View.GONE); }\n\n }",
"public void setProgressBarVisible(final boolean flag) {\r\n pBarVisible = flag;\r\n }",
"public void infoProgressOn (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.VISIBLE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.GONE);\n }\n }\n });\n }",
"@Override\n protected void onPreExecute() {\n pb.setVisibility(View.VISIBLE);\n }",
"private void showProgressIndicator() {\n setProgressBarIndeterminateVisibility(true);\n setProgressBarIndeterminate(true);\n }",
"@Override\n\tprotected void onPreExecute() {\n\t\tprogressBar.setVisibility(View.VISIBLE);\n\t\ttv.setVisibility(View.VISIBLE);\n\t\tsuper.onPreExecute();\n\t}",
"public void hideProgress() {\n search_progress.setVisibility(View.GONE);\n img_left_action.setAlpha(0.0f);\n img_left_action.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(img_left_action, \"alpha\", 0.0f, 1.0f).start();\n }",
"void hideProgress();",
"void showLoading(boolean visible);",
"@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progress.setVisibility(ProgressBar.VISIBLE);\n }",
"@Override\n public void setSupportProgressBarIndeterminateVisibility(boolean visible) {\n getSupportActionBar().getCustomView().setVisibility(visible ? View.VISIBLE : View.GONE);\n }",
"private void setVisibilityTextViewDebetableGoalsNowNotAvailable (String visibility) {\n\n RelativeLayout tmpNotAvailable = (RelativeLayout) viewFragmentDebetablGoalNow.findViewById(R.id.textViewOurGoalsFunctionNotAvailable);\n\n if (tmpNotAvailable != null) {\n\n switch (visibility) {\n\n case \"show\":\n tmpNotAvailable.setVisibility(View.VISIBLE);\n break;\n case \"hide\":\n tmpNotAvailable.setVisibility(View.GONE);\n break;\n }\n }\n }",
"private void toggleProgress() {\n if (progWheel.getVisibility() == View.VISIBLE) {\n // Needs its own thread for timing control\n Handler handler = new Handler();\n final Runnable r = new Runnable() {\n public void run() {\n if (progWheel.getVisibility()\n == View.VISIBLE) {\n progWheel.setVisibility(View.GONE);\n }\n }\n };\n handler.postDelayed(r, 1);\n } else if (progWheel.getVisibility() == View.GONE) {\n progWheel.spin();\n progWheel.setVisibility(View.VISIBLE);\n }\n }",
"private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}",
"private void showNoFavoriteMoviesTextView(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.VISIBLE);\n }",
"public void setProgressBarVisible(boolean flag) {\r\n\r\n pBarVisible = flag;\r\n\r\n if (progressBar != null) {\r\n progressBar.setVisible(flag);\r\n }\r\n }",
"@Override\n protected void onPreExecute() {\n mProgressbar.setVisibility(View.VISIBLE);\n }",
"@Override\n protected void onPreExecute() {\n mProgressBar.setVisibility(View.VISIBLE);\n }",
"@Override\n public void showProgress() {\n mCircleProgressThemeDetail.setVisibility(View.VISIBLE);\n mCircleProgressThemeDetail.spin();\n mRecyclerThemeDaily.setVisibility(View.GONE);\n }",
"@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\t//\t\t\tmProgress.setVisibility(View.VISIBLE);\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tprogressLayout.setVisibility(View.VISIBLE);\n\n\t\t}",
"public void showProgress(){\n loadMainActivity.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.INVISIBLE);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n linearLayoutParent.setVisibility(show ? View.GONE : View.VISIBLE);\n linearLayoutParent.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n linearLayoutParent.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n linearLayoutParent.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"void showProgress();",
"public void infoProgressOff (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.GONE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.VISIBLE);\n }\n }\n });\n }",
"public ProgressBar showText() {\n this.showText = true;\n updateText();\n return this;\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tlinlaHeaderProgress.setVisibility(View.VISIBLE);\n\t\t}",
"@Override\n\tpublic void hideProgress() {\n\t\twaitDialog(false);\n\t}",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mAnalysisForm.setVisibility(show ? View.GONE : View.VISIBLE);\n mAnalysisForm.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mAnalysisForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mAnalysisForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@Override\n public void showProgress() {\n\n }",
"public void showTimer(){\n mTimerProgressBar.setVisibility(View.VISIBLE);\n mTimerText.setVisibility(View.VISIBLE);\n }",
"protected void showProgressBar(boolean visible) {\n\t\tif (mContext == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (mContext instanceof BaseActivity) {\n\t\t\tBaseActivity activity = (BaseActivity) mContext;\n\t\t\tactivity.showProgressBar(visible);\n\t\t}\n\t}",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mReviewFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mReviewFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mReviewFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mReviewFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"public void showProgress(boolean show) {\n \t}",
"private void drawProgressText(Canvas canvas){\n\n if(textVisibility){\n mTextPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mTextPaint.setStyle(Paint.Style.FILL);\n mTextPaint.setTextSize(mProgressTextSize);\n mTextPaint.setColor(mProgressTextColor);\n mTextPaint.setTextAlign(Paint.Align.CENTER);\n\n String progressText = ((int) moveProgress) + \"%\";\n float x = (getWidth() + getPaddingLeft() - getPaddingRight()) / 2;\n float y = (getHeight() + getPaddingTop() - getPaddingBottom() - (mTextPaint.descent() + mTextPaint.ascent())) / 2;\n canvas.drawText(progressText, x , y, mTextPaint);\n\n }\n\n }",
"private void Visibility(Boolean vis) {\n jSP1.setVisible(vis);\r\n jSP2.setVisible(vis);\r\n loadFile.setVisible(!vis);\r\n saveFile.setVisible(!vis);\r\n sourceFileLabel.setVisible(!vis);\r\n sourceFileName.setVisible(!vis);\r\n resultFileLabel.setVisible(!vis);\r\n resultFileName.setVisible(!vis);\r\n }",
"public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLoadingAuctionSaleList);\n Intrinsics.checkExpressionValueIsNotNull(progressBar, \"pbLoadingAuctionSaleList\");\n progressBar.setVisibility(0);\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbLoadingAuctionSaleList);\n Intrinsics.checkExpressionValueIsNotNull(progressBar2, \"pbLoadingAuctionSaleList\");\n progressBar2.setVisibility(8);\n }",
"protected void showProgressBar(boolean show){\n if(show){\n mProgressBar.setVisibility(View.VISIBLE);\n }\n else{\n mProgressBar.setVisibility(View.GONE);\n }\n }",
"private void hideProgressDialogWithTitle() {\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.dismiss();\n }",
"public void setVisibility(int value) {\n this.visibility = value;\n }",
"private void hideProgressIndicator() {\n setProgressBarIndeterminateVisibility(false);\n setProgressBarIndeterminate(false);\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\t//progreso.setVisibility(View.VISIBLE);\n\t\t\tsetProgressBarIndeterminateVisibility(true);\n\t\t}",
"public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }",
"@Override\r\n\tpublic void showLoading(boolean isLoading) {\r\n\t\tsetSupportProgressBarIndeterminateVisibility(isLoading);\r\n\t}",
"@Override\n public void setText(String text) {\n myProgressManager.setText2(this, text);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mDisplayFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mDisplayFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mDisplayFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mLoadMsg.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mDisplayFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"private void showLoading()\n {\n relLoadingPanel.setVisibility(View.VISIBLE);\n ViewHelper.setViewGroupEnabled(scrMainContainer, false);\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }",
"private void showElements(){\n question.setVisibility(View.VISIBLE);\n yes_for_joke.setVisibility(View.VISIBLE);\n no_for_joke.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.GONE);\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n }",
"public final void showLoadingIndicator(boolean z) {\n if (z) {\n ProgressBar progressBar = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(progressBar, \"pbReviewPayment\");\n progressBar.setVisibility(0);\n return;\n }\n ProgressBar progressBar2 = (ProgressBar) _$_findCachedViewById(C2723R.C2726id.pbReviewPayment);\n Intrinsics.checkExpressionValueIsNotNull(progressBar2, \"pbReviewPayment\");\n progressBar2.setVisibility(8);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n loginSV.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n loginPB.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n loginPB.setVisibility(show ? View.VISIBLE : View.GONE);\n loginSV.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n }",
"private void showProgress(final boolean show) {\n //hide the relevant UI components.\n binding.loginProgress.setVisibility(show ? View.VISIBLE : View.GONE);\n binding.emailLoginForm.setVisibility(show ? View.GONE : View.VISIBLE);\n }",
"public void MonitorTextView()\n {\n TextView textview = (TextView) findViewById(R.id.textViewDelayLength);\n textview.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View v) {\n EditText editText = (EditText) findViewById(R.id.editTextMessageDelay);\n SeekBar seek = (SeekBar) findViewById(R.id.seekBarMessageDelay);\n if (editText.getVisibility() == View.GONE)\n {\n editText.setVisibility(View.VISIBLE);\n seek.setVisibility(View.GONE);\n }\n else if (editText.getVisibility() == View.VISIBLE)\n {\n editText.setVisibility(View.GONE);\n seek.setVisibility(View.VISIBLE);\n }\n }\n });\n }",
"private void showProgress(String taskName,String processString)\n {\n mProgressView = ProgressDialog.show(this, taskName, processString, true);\n mLoginFormView.setVisibility(View.INVISIBLE);\n\n }",
"private void showNothing(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(false);\n recyclerView.setVisibility(View.INVISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n\n\n LoadingView.setVisibility(show ? View.VISIBLE : View.GONE);\n LoadingView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n LoadingView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n LoadingView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mFilterFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mFilterFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mFilterFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mFilterFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"private void showIndicator() {\n mProgressBarHolder.setVisibility(View.VISIBLE);\n mEmailView.setFocusableInTouchMode(false);\n mEmailView.setFocusable(false);\n mEmailView.setEnabled(false);\n mPasswordView.setFocusableInTouchMode(false);\n mPasswordView.setFocusable(false);\n mPasswordView.setEnabled(false);\n mRegister.setEnabled(false);\n mEmailSignInButton.setEnabled(false);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }",
"@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t //this method will be running on UI thread\n\t mProgressBar.setVisibility(View.VISIBLE);\n\t }",
"private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n logoImageView.animate().setDuration(shortAnimTime).alpha(show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n logoImageView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n }",
"private void displayTextView() {\n wellnessEntryErrorTextView.setText(\"This is an error message e.g no data\");\n wellnessEntryErrorTextView.setVisibility(View.VISIBLE);\n recyclerView.setVisibility(View.GONE);\n }",
"void hideProgress() {\n removeProgressView();\n removeScreenshotView();\n }",
"private void progressMode() {\n\t\t// lazily build the layout\n\t\tif (progressLayout == null) {\n\t\t\tprogressLayout = new DefaultVerticalLayout(true, true);\n\n\t\t\tprogressBar = new ProgressBar();\n\t\t\tprogressBar.setHeight(\"20px\");\n\t\t\tprogressLayout.add(progressBar);\n\n\t\t\tstatusLabel = new Text(\"\");\n\t\t\tprogressLayout.add(statusLabel);\n\t\t}\n\t\tprogressBar.setValue(0.0f);\n\t\tstatusLabel.setText(\"\");\n\n\t\tremoveAll();\n\t\tadd(progressLayout);\n\t}",
"@Override\n\tpublic void setVisible(boolean vis) {\n\t\t\n\t}",
"private void uploadingProgressBarInit() {\n uploadingProgressBar.setVisibility(VISIBLE);\n uploadingProgressBar.setProgress(0);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mSearchFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mSearchFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mSearchFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mSearchFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"private void showProgress(final boolean show) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}",
"@Override\n\t\tpublic void onShutter() {\n\t\t\tmProgressContainer.setVisibility(View.VISIBLE);\n\t\t}",
"@Override\n public void esconderBarraProgresso(){\n progressbar.setVisibility(View.GONE);\n listView.setVisibility(View.VISIBLE);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\n // for very easy animations. If available, use these APIs to fade-in\n // the progress spinner.\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n// mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n\n }\n });\n\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// mProgressView.animate().setDuration(shortAnimTime).alpha(\n// show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n// @Override\n// public void onAnimationEnd(Animator animation) {\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// }\n// });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n// mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n// mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"public void hide(){\n background.setOpacity(0);\n text.setOpacity(0);\n }",
"private void hideElements(){\n question.setVisibility(View.GONE);\n yes_for_joke.setVisibility(View.GONE);\n no_for_joke.setVisibility(View.GONE);\n progressBar.setVisibility(View.VISIBLE);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n public void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mProgressBar.setVisibility(show ? View.GONE : View.VISIBLE);\n btnAwardPoints.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n btnAwardPoints.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressBar.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressBar.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressBar.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressBar.setVisibility(show ? View.VISIBLE : View.GONE);\n btnAwardPoints.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n\n }",
"private void setVisibility( int answer_visibility )\n {\n int yes_no_visibility = View.VISIBLE;\n\n if ( answer_visibility == View.VISIBLE )\n {\n yes_no_visibility = View.INVISIBLE;\n }\n\n TextView question = (TextView) findViewById( R.id.question );\n question.setVisibility( yes_no_visibility );\n\n ImageView butterfly_icon = (ImageView) findViewById( R.id.butterfly_icon );\n \n if ( yes_no_visibility == View.VISIBLE )\n {\n ((AnimationDrawable) butterfly_icon.getBackground()).start();\n }\n else\n {\n ((AnimationDrawable) butterfly_icon.getBackground()).stop();\n }\n\n butterfly_icon.setVisibility( yes_no_visibility );\n\n ImageView caterpillar_icon = (ImageView) findViewById( R.id.caterpillar_icon );\n \n if ( yes_no_visibility == View.VISIBLE )\n {\n caterpillar_icon.startAnimation( caterpillar_icon_animation );\n }\n else\n {\n caterpillar_icon_animation.cancel();\n caterpillar_icon.clearAnimation();\n }\n\n caterpillar_icon.setVisibility(yes_no_visibility);\n\n TextView answer = (TextView) findViewById( R.id.answer );\n answer.setVisibility(answer_visibility);\n\n ImageView answer_rectangle = (ImageView) findViewById( R.id.answer_rectangle );\n answer_rectangle.setVisibility(answer_visibility);\n }",
"@Override\n\tpublic void setVisible(boolean visibility) {\n\t\t//do nothing\n\t}",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n /*mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mLoginFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });*/\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n //mLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"public void goneProgress(){\n mProgressBar.setVisibility(View.GONE);\n }",
"@Override\r\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\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\r\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\tPropertyRepairActivity.this.runOnUiThread(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnonemsgtext.setVisibility(View.GONE);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}",
"private void showMovies(){\n errorTextView.setVisibility(View.INVISIBLE);\n errorButton.setVisibility(View.INVISIBLE);\n errorButton.setEnabled(true);\n recyclerView.setVisibility(View.VISIBLE);\n progressBar.setVisibility(View.INVISIBLE);\n noFavoriteMoviesTextView.setVisibility(View.INVISIBLE);\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\r\n private void showProgress(final boolean show) {\r\n // On Honeycomb MR2 we have the ViewPropertyAnimator APIs, which allow\r\n // for very easy animations. If available, use these APIs to fade-in\r\n // the progress spinner.\r\n\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\r\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\r\n\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n mRaspberryLoginFormView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n });\r\n\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mCancelButton.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mProgressView.animate().setDuration(shortAnimTime).alpha(\r\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\r\n @Override\r\n public void onAnimationEnd(Animator animation) {\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n }\r\n });\r\n } else {\r\n // The ViewPropertyAnimator APIs are not available, so simply show\r\n // and hide the relevant UI components.\r\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mCancelButton.setVisibility(show ? View.VISIBLE : View.GONE);\r\n mRaspberryLoginFormView.setVisibility(show ? View.GONE : View.VISIBLE);\r\n }\r\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n form.setVisibility(show ? View.GONE : View.VISIBLE);\n form.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n form.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n progress.setVisibility(show ? View.VISIBLE : View.GONE);\n progress.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n progress.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n progress.setVisibility(show ? View.VISIBLE : View.GONE);\n form.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR2)\n private void showProgress(final boolean show) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n int shortAnimTime = getResources().getInteger(android.R.integer.config_shortAnimTime);\n\n mItemFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n mItemFormView.animate().setDuration(shortAnimTime).alpha(\n show ? 0 : 1).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mItemFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n });\n\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mProgressView.animate().setDuration(shortAnimTime).alpha(\n show ? 1 : 0).setListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n }\n });\n } else {\n // The ViewPropertyAnimator APIs are not available, so simply show\n // and hide the relevant UI components.\n mProgressView.setVisibility(show ? View.VISIBLE : View.GONE);\n mItemFormView.setVisibility(show ? View.GONE : View.VISIBLE);\n }\n }",
"private void makeLeaderboardVisible(){\n if(leaderBoardBar!=null){\n leaderBoardBar.animate().alpha(1).setDuration(800).setInterpolator(new DecelerateInterpolator(2.0f));\n }\n }",
"public boolean isProgressBarVisible() {\r\n return pBarVisible;\r\n }",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tprogressBar.setVisibility(View.GONE);\n\t\t\t\t\t\t\t}",
"private void showLoading() {\n hideNoNetwork();\n mRecipesBinding.fragmentRecipesProgressBar.setVisibility(View.VISIBLE);\n }",
"public void showProgressDialog() {\r\n progressDialog.setMessage(getResources().getString(R.string.text_loading));\r\n progressDialog.setCancelable(false);\r\n progressDialog.show();\r\n }",
"@Override public void searchStarted() {\n progressBar.setVisibility(View.VISIBLE);\n }"
] |
[
"0.72213334",
"0.6945024",
"0.6729525",
"0.66975975",
"0.66588306",
"0.6514176",
"0.6485301",
"0.64605033",
"0.6407363",
"0.63956916",
"0.63830495",
"0.6371731",
"0.6367164",
"0.6322816",
"0.63133377",
"0.6311407",
"0.626863",
"0.6248622",
"0.6242173",
"0.62390894",
"0.62135017",
"0.6184121",
"0.618201",
"0.6170324",
"0.61677593",
"0.6166295",
"0.6142141",
"0.6141401",
"0.6135553",
"0.61242783",
"0.609414",
"0.6092664",
"0.6083728",
"0.6077244",
"0.6074973",
"0.60688525",
"0.6061655",
"0.6055409",
"0.6050154",
"0.604242",
"0.6037934",
"0.60354084",
"0.6033193",
"0.602506",
"0.60115904",
"0.60077816",
"0.5997768",
"0.59933704",
"0.59854156",
"0.5984782",
"0.59788",
"0.5968936",
"0.5966422",
"0.5950454",
"0.59367853",
"0.5935837",
"0.59301996",
"0.5929577",
"0.5929177",
"0.59287",
"0.5918351",
"0.59112173",
"0.5906992",
"0.590321",
"0.5897965",
"0.58970976",
"0.5892495",
"0.58861876",
"0.5878679",
"0.5877842",
"0.5870886",
"0.5867819",
"0.5858808",
"0.5855798",
"0.58528507",
"0.5851782",
"0.5850983",
"0.5849321",
"0.58452135",
"0.58354026",
"0.5831056",
"0.58302754",
"0.5828038",
"0.58184534",
"0.5816508",
"0.5813886",
"0.58102846",
"0.5806909",
"0.5801256",
"0.5801256",
"0.57995415",
"0.5796382",
"0.57929343",
"0.5783961",
"0.57818395",
"0.57788515",
"0.57737505",
"0.5765988",
"0.57496476",
"0.5749199"
] |
0.8384582
|
0
|
start the progress's moving
|
public void startProgressAnimation(){
progressAnimator = ObjectAnimator.ofFloat(this,"progress",mStartProgress, mEndProgress);
Log.e(TAG, "progressDuration: "+ mProgressDuration);
progressAnimator.setInterpolator(mInterpolator);
progressAnimator.setDuration(mProgressDuration);
progressAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
@Override
public void onAnimationUpdate(ValueAnimator animation) {
float progress = (float) animation.getAnimatedValue("progress");
if(updateListener != null){
updateListener.onCircleProgressUpdate(CircleProgressView.this, progress);
}
}
});
progressAnimator.addListener(new Animator.AnimatorListener() {
@Override
public void onAnimationStart(Animator animator) {
if(updateListener != null){
updateListener.onCircleProgressStart(CircleProgressView.this);
}
}
@Override
public void onAnimationEnd(Animator animator) {
if(updateListener != null){
updateListener.onCircleProgressFinished(CircleProgressView.this);
}
}
@Override
public void onAnimationCancel(Animator animator) {
}
@Override
public void onAnimationRepeat(Animator animator) {
}
});
progressAnimator.start();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void moveToStart();",
"public void moveStart(\n )\n {\n index = StartIndex;\n if(state == null)\n {\n if(parentLevel == null)\n {state = new GraphicsState(this);}\n else\n {state = parentLevel.state.clone(this);}\n }\n else\n {\n if(parentLevel == null)\n {state.initialize();}\n else\n {parentLevel.state.copyTo(state);}\n }\n\n notifyStart();\n\n refresh();\n }",
"void startProgress();",
"public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}",
"public void startAnimating() {\n\t\tif (!mAnimating) {\n\t\t\tmAnimating = true;\n\t\t\tmAnimationProgress = mProgress;\n\t\t\tmAnimationHandler.sendEmptyMessage(0);\n\t\t}\n\t}",
"public void startMovingToTarget() \r\n {\n movingToTarget = true;\r\n }",
"public void goToStart() {\n\t\tsetPosition(0);\n\t}",
"public void startMoving ()\n {\n if (canMove()) {\n ((Mobile)_actor).setDirection(_actor.getRotation());\n _actor.set(Mobile.MOVING);\n }\n }",
"public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}",
"public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}",
"public void monitor() {\n moveTo(1.0, 10);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n getPos();\n }",
"public synchronized void moveStarted(Move move, MoveProvider mp) {\n\t\tangle0 = 0;\n\t\tdistance0 = 0;\n\t\tcurrent = false;\n\t\tthis.m_mover = mp;\n\t}",
"@Override\n public void startExecuting()\n {\n this.entity.getNavigator().tryMoveToXYZ(this.xPosition, this.yPosition, this.zPosition, this.speed);\n }",
"public final void forceStartMoveLoop() {\r\n\t\txOff = 0;\r\n\t\tzOff = 0;\r\n\t\tmoveStart = System.currentTimeMillis();\r\n\t}",
"public void resume() {\n moveStop = true;\n }",
"public void startAnimation() {\n animationStart = System.currentTimeMillis();\n }",
"public synchronized void continueRunning() {\n\t\tif (!busy)\n\t\t\treturn;\n\t\tif (!stage.bluetoothConnected()) {\n\t\t\tstop();\n\t\t\treturn;\n\t\t}\n\t\tif (strideSize < MINIMUM_STRIDE) {\n\t\t\tcomplete();\n\t\t}\n\t\tif (state == STATE_READY) {\n\t\t\tSystem.out.println(\"Moving to starting position...\");\n\t\t\tmoveInZ(strideSize * Z_RANGE / 2);\n\t\t\tstate = STATE_MOVING;\n\t\t}\n\t\tif (state == STATE_MOVING) {\n\t\t\tboolean stop = zMoveStep();\n\t\t\tif (stop) {\n\t\t\t\tswitchDirection();\n\t\t\t\tstate = STATE_STEPPING;\n\t\t\t}\n\t\t}\n\t\tif (state == STATE_STEPPING) {\n\t\t\tsynchronized(lockStatus) {\n\t\t\t\twaitFrames = PAUSE; \n\t\t\t}\n\t\t}\n\t}",
"void doneMoving();",
"public void onProgress(int pos);",
"public final void start(){\n cpt = 0;\n inProgress = true;\n init();\n UpdateableManager.addToUpdate(this);\n }",
"public void run() {\n\t\t\t\t\t\tint x=905;\n\t\t\t\t\t\tint y=36;\n\t\t\t\t\t\twhile(x!=665){\n\t\t\t\t\t\t\tif((x-665)>10){\n\t\t\t\t\t\t\t\tx-=10;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tx=665;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tJPanelSearch.this.setLocation(x, y);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void startAnimation() {\n int delay = 50; // milliseconds\n ActionListener taskPerformer = new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n if (counter < points.length - 1) {\n counter += 20;\n if (counter > points.length) {\n counter = points.length - 1;\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n validate();\n repaint();\n } else {\n ((Timer) evt.getSource()).stop();\n notifyStopped();\n }\n }\n };\n new Timer(delay, taskPerformer, getFreeColClient()).start();\n }",
"@Override\r\n public void run() {\r\n move();\r\n }",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"public void run() {\n\t\t\t\t\t\tint x=905;\n\t\t\t\t\t\tint y=36;\n\t\t\t\t\t\twhile(x!=665){\n\t\t\t\t\t\t\tif((x-665)>10){\n\t\t\t\t\t\t\t\tx-=10;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tx=665;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tJPanelEdit.this.setLocation(x, y);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }",
"public void startExecuting()\n\t{\n\t\tdouble d0 = this.leapTarget.xCoord - this.entity.posX;\n\t\tdouble d1 = this.leapTarget.zCoord - this.entity.posZ;\n\t\tfloat f = MathHelper.sqrt(d0 * d0 + d1 * d1);\n\t\tthis.entity.motionX += (d0 / (double)f * 0.5D * 0.800000011920929D + this.entity.motionX * 0.20000000298023224D)/2;\n\t\tthis.entity.motionZ += (d1 / (double)f * 0.5D * 0.800000011920929D + this.entity.motionZ * 0.20000000298023224D)/2;\n\t\tthis.entity.motionY = (double)this.leapMotionY;\n\t}",
"public void run() {\n\t\t\t\t\t\tint x=665;\n\t\t\t\t\t\tint y=36;\n\t\t\t\t\t\twhile(x!=905){\n\t\t\t\t\t\t\tif((905-x)>10){\n\t\t\t\t\t\t\t\tx+=10;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tx=905;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tJPanelSearch.this.setLocation(x, y);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"protected void execute() {\n\n\t\tspeed = oi.getLeftY();\n\n\t\tleftTicks = drive.getLeftRotation();\n\t\trightTicks = drive.getRightRotation();\n\n\t\t/*\n\t\t * if (startAngle == drive.getAngle()) { drive.setBoth(oi.getLeftY()); }\n\t\t * else if (startAngle < drive.getAngle()) { if (oi.getLeftY() > 0)\n\t\t * drive.setBoth(oi.getLeftY(), .9 * oi.getLeftY()); else drive.setBoth(\n\t\t * .9 * oi.getLeftY(),oi.getLeftY()); } else if (startAngle >\n\t\t * drive.getAngle()) { if (oi.getLeftY() > 0)\n\t\t * drive.setBoth(oi.getLeftY(), .9 * oi.getLeftY()); else\n\t\t * drive.setBoth(.9 * oi.getLeftY(), oi.getLeftY()); }\n\t\t */\n\t\tif (leftTicks == 0 || rightTicks == 0)\n\t\t\tdrive.setBoth(speed);\n\t\telse\n\t\t\tdrive.setBoth(MathUtil.setLimits((rightTicks / leftTicks) * speed, -1.0, 1.0),\n\t\t\t\t\tMathUtil.setLimits((leftTicks / rightTicks) * speed, -1.0, 1.0));\n\n\t}",
"public void act() \n {\n // Add your action code here.\n /*\n if ( pixelsMoved >= 20 )\n {\n moving = false;\n pixelsMoved = 0;\n }\n */\n if ( moving )\n {\n move(1);\n pixelsMoved++;\n \n if ( pixelsMoved >= 20 )\n {\n setMoving( false );\n }\n }\n }",
"private void startProgressBar() {\n\t b_buscar.setVisibility(View.GONE);\n\t // wi_progreso.setVisibility(View.VISIBLE);\n\t ly_progreso.setVisibility(View.VISIBLE);\n\t}",
"public void start(){\n //Set pausing to false\n pausing = false;\n next();\n }",
"private void moveStart(MouseEvent e) {\n\t\tif (e.getButton()!=PRIMARY || resizing.get()!=NONE) return;\n\n\t\tmouseMonitor = APP.getMouse().observeMouseVelocity(consumer(m -> mouseSpeed = m.getSpeed()));\n\t\tisMoving.set(true);\n\t\tappX = e.getSceneX();\n\t\tappY = e.getSceneY();\n\t}",
"public void run() {\n\t\t\t\t\t\tint x=665;\n\t\t\t\t\t\tint y=36;\n\t\t\t\t\t\twhile(x!=905){\n\t\t\t\t\t\t\tif((905-x)>10){\n\t\t\t\t\t\t\t\tx+=10;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tx=905;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(50);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tJPanelEdit.this.setLocation(x, y);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public void move(Point p) {\n\t\tchange = new Point(p.x - point.x, p.y - point.y);\n\t\tmoveProgress = 1;\n\t\t// moves();\n\t}",
"@SuppressWarnings(\"static-access\")\n\t@Override\n\tpublic void run() \n\t{\n\t\tint currentdx = 0;\n\t\tint currentdy = 0;\n\t\twhile(currentdy < Math.abs(dy) || currentdx < Math.abs(dx))\n\t\t{\n\t\t\tif(time == 0)\n\t\t\t{\n\t\t\t\tif(dx < 0 || dy < 0){\n\t\t\t\tdy = -dy;\n\t\t\t\tdx = -dx;\n\t\t\t\tcurrentdy = dy;\n\t\t\t\tcurrentdx = dx;\n\t\t\t\tMainController.getInstance().moveImage(name, -dx, -dy);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcurrentdy = dy;\n\t\t\t\t\tcurrentdx = dx;\n\t\t\t\t\tMainController.getInstance().moveImage(name, dx, dy);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(currentdy < Math.abs(dy) && currentdx < Math.abs(dx)){\n\t\t\t\tcurrentdy++;\n\t\t\t\tcurrentdx++;\t\t\t\t\n\t\t\t\tMainController.getInstance().moveImage(name, dx/Math.abs(dx), dy/Math.abs(dy));\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(currentdy < Math.abs(dy)){\n\t\t\t\t\tcurrentdy++;\t\n\t\t\t\t\tMainController.getInstance().moveImage(name, 0, dy/Math.abs(dy));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tif(currentdx < Math.abs(dx)){\n\t\t\t\t\tcurrentdx++;\t\t\t\t\n\t\t\t\t\tMainController.getInstance().moveImage(name, dx/Math.abs(dx), 0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tthis.sleep(time * 1000 / (( Math.max(Math.abs(dx), Math.abs(dy) ))+1));\n\t\t\t\tMainController.getInstance().repaint();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\n\t\t\tif((currentdx % 100 == 0 && currentdx != dx )|| (currentdy % 100 == 0&& currentdy!=dy))\n\t\t\t\tSystem.out.println(currentdx + \" \" + currentdy);\n\t\t}\n\t}",
"public void stepForward() {\n\t\tposition = forwardPosition();\n\t}",
"public void updateStep(int current){\n visualization.setProgress(current + stepsToMoveForward);\n }",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"public void startClick() {\n if(!isRunning){\n startButton.setText(\"Pause\");\n isRunning = true;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n draw();\n timeline.play();\n }else{\n startButton.setText(\"Start\");\n isRunning = false;\n isMovable = false;\n board.finalizeBoard();\n setFocusTraversable(true);\n aliveLabel.setText(Integer.toString(board.getCellsAlive()));\n draw();\n timeline.pause();\n }\n }",
"@Override\n public void start() {\n this.mob.getNavigation().startMovingTo(\n this.mob.getPositionTarget().getX(),\n this.mob.getPositionTarget().getY(),\n this.mob.getPositionTarget().getZ(),\n this.speed\n );\n }",
"@Override\r\n public void act() {\r\n boolean willMove = canMove();\r\n if (isEnd) {\r\n // to show step count when reach the goal\r\n if (!hasShown) {\r\n String msg = stepCount.toString() + \" steps\";\r\n JOptionPane.showMessageDialog(null, msg);\r\n hasShown = true;\r\n }\r\n } else if (willMove) {\r\n move();\r\n // increase step count when move\r\n stepCount++;\r\n // 把当前走过的位置加入栈顶的arrayList\r\n crossLocation.peek().add(getLocation());\r\n // 当前方向的概率+1\r\n probablyDir[getDirection() / 90]++;\r\n } else if (!willMove) {\r\n // 这时候必须一步一步返回栈顶arrayList的开头\r\n ArrayList<Location> curCrossed = crossLocation.peek();\r\n curCrossed.remove(curCrossed.size() - 1);\r\n next = curCrossed.get(curCrossed.size() - 1);\r\n move();\r\n stepCount++;\r\n // 当前方向反向的概率-1\r\n probablyDir[((getDirection() + Location.HALF_CIRCLE)\r\n % Location.FULL_CIRCLE) / Location.RIGHT]--;\r\n if (curCrossed.size() == 1) {\r\n // 返回之后pop\r\n crossLocation.pop();\r\n }\r\n }\r\n }",
"public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] - 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft + pDown)\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] + 1;\n\t\t\t}\n\t\t\tif (time % 10 == 0)\n\t\t\t{\n\t\t\t\thistogramFrame.append(Math.sqrt(xpositions[i] * xpositions[i]\n\t\t\t\t\t\t+ ypositions[i] * ypositions[i]));\n\t\t\t}\n\t\t\txmax = Math.max(xpositions[i], xmax);\n\t\t\tymax = Math.max(ypositions[i], ymax);\n\t\t\txmin = Math.min(xpositions[i], xmin);\n\t\t\tymin = Math.min(ypositions[i], ymin);\n\t\t}\n\t}",
"private void startDragging() {\n Point mousePosition = calculateMouseLocation();\n mouseX = mousePosition.getX();\n mouseY = mousePosition.getY();\n prevX = getArea().getX();\n prevY = getArea().getY();\n setDragging(true);\n }",
"@Override\n\tpublic void moveExecStart(Counter player) {\n\n\t}",
"public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}",
"public void startExecuting() {\n\t\t\tRandom random = this.parentEntity.getRNG();\n\t\t\tdouble d0 = this.parentEntity.posX + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tdouble d1 = this.parentEntity.posY + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tdouble d2 = this.parentEntity.posZ + (double)((random.nextFloat() * 2.0F - 1.0F) * 16.0F);\n\t\t\tthis.parentEntity.getMoveHelper().setMoveTo(d0, d1, d2, 0.3D);\n\t\t}",
"@Override\n\tpublic void excute() {\n\t\tmoveEvent.move(commandinfo.getValue() * 200);\n\t}",
"public void move_to_gantry() {\n\t\tstop_moving();\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmove(gpX, gpY, gpZ);\n\t}",
"@Override\n public void movement() {\n if (isAlive()) {\n //Prüfung ob A oder die linke Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_LEFT) || Keyboard.isKeyDown(KeyEvent.VK_A)) {\n //Änder die X Position um den speed wert nach link (verkleinert sie)\n setPosX(getPosX() - getSpeed());\n //Prüft ob der Spieler den linken Rand des Fensters erreicht hat\n if (getPosX() <= 0) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(0);\n }\n }\n //Prüfung ob D oder die rechte Pfeiltaste gedrückt ist\n if (Keyboard.isKeyDown(KeyEvent.VK_RIGHT) || Keyboard.isKeyDown(KeyEvent.VK_D)) {\n //Änder die X Position um den speed wert nach rechts (vergrößert sie)\n setPosX(getPosX() + getSpeed());\n //Prüft ob der Spieler den rechten Rand des Fensters erreicht hat\n if (getPosX() >= Renderer.getWindowSizeX() - getWight() - 7) {\n //Setzt die X Position des Spielers an den Rand des Fensters zurück\n setPosX(Renderer.getWindowSizeX() - getWight() - 7);\n }\n }\n //Aktualsiert die Hitbox\n setBounds();\n }\n }",
"public void pos1 () throws InterruptedException {\n pos = 1;\n mainFlop.setPosition(0.7);\n subFlop.setPosition(0.35);\n Thread.sleep(400);\n }",
"protected void execute() {\n \tRobot.driveSubsystem.runLeftSide(howFastWeWantToMove);\n }",
"public void start() {\n isStarted = true;\n clearBoard();\n newPiece();\n }",
"void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }",
"void startMovement();",
"public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }",
"public void move() {\n switch (dir) {\n case 1:\n this.setX(getX() + this.speed);\n moveHistory.add(new int[] {getX() - this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 2:\n this.setY(getY() - this.speed);\n moveHistory.add(new int[] {getX(), getY() + this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 3:\n this.setX(getX() - this.speed);\n moveHistory.add(new int[] {getX() + this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 4:\n this.setY(getY() + this.speed);\n moveHistory.add(new int[] {getX(), getY() - this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n default:\n break;\n }\n }",
"public void startAnimation() {\n timer.start();\n }",
"protected void execute() {\r\n if (dumper.isLimitSwitchPressed()) {\r\n dumper.stop();\r\n state = STATE_SUCCESS;\r\n }\r\n if (increment >= maxSeek) {\r\n dumper.stop();\r\n state = STATE_FAILURE;\r\n }\r\n switch (state) {\r\n case STATE_SEEK_LEFT:\r\n if (dumper.getPosition() >= desiredPosition) {\r\n desiredPosition = startPosition - increment;\r\n dumper.foward();\r\n state = STATE_SEEK_RIGHT;\r\n }\r\n break;\r\n case STATE_SEEK_RIGHT:\r\n if (dumper.getPosition() <= desiredPosition) {\r\n increment += 0.05;\r\n desiredPosition = startPosition + increment;\r\n dumper.backward();\r\n state = STATE_SEEK_LEFT;\r\n }\r\n break;\r\n }\r\n }",
"void startAnimation();",
"@Override\n public void timePassed() {\n moveOneStep();\n }",
"public void start() {\n start(mRangeStart, mRange, mIsPositive);\n }",
"public void move()\n {\n double angle = Math.toRadians( getRotation() );\n int x = (int) Math.round(getX() + Math.cos(angle) * WALKING_SPEED);\n int y = (int) Math.round(getY() + Math.sin(angle) * WALKING_SPEED);\n setLocation(x, y);\n }",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"public void onMoveGestureStarted()\n\t{\n\t\tfireEvent(TiC.EVENT_MOVE_START, null);\n\t}",
"public void startAnimation() {\r\n\t\tani.start();\r\n\t}",
"private void move() {\n acceleration.accelerate(velocity, position);\r\n }",
"private void start() {\n _countdownBar = new TimeProgressBar((ProgressBar) findViewById(R.id.game_pb_countdown), _game);\n _gameView.setClickable(true);\n _startBtn.setEnabled(false);\n _game.startGame();\n _countdownBar.startTimer();\n }",
"public void move() {\r\n\t\tmoveCount++;\r\n\t}",
"private void moveForward(double length) {\n\t\tsens.setXPos(sens.getXPos() + (Math.cos(Math.toRadians(sens.getDirection())) * length));\n\t\tsens.setYPos(sens.getYPos() + (Math.sin(Math.toRadians(sens.getDirection())) * length));\n\t}",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}",
"public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }",
"@Override\n public void actionPerformed(ActionEvent e){ \n move();\n }",
"void tick() { \r\n if (midi && sequencer.isRunning()) { \r\n audioPosition = (int) sequencer.getTickPosition(); \r\n progress.setValue(audioPosition); \r\n } else if (!midi && clip.isActive()) { \r\n audioPosition = (int) (clip.getMicrosecondPosition() / 1000); \r\n progress.setValue(audioPosition); \r\n } else \r\n reset(); \r\n }",
"@Override\n protected void animStart() {\n }",
"public void seekTo(int progress) {\n\t\tmediaPlayer.seekTo(progress);\n sendPlayingStateBroadcast();\n\t}",
"public void notifyMoveAnimationFinished();",
"public void anim() {\n // start the timer\n t.start();\n }",
"private void moveLeft(){\n \n setGlobalLocation(getGlobalX() - speed, getGlobalY());\n animationSpeedLeft();\n }",
"protected void execute() {\r\n\r\n Robot.drive.driveForward(DRIVE_SPEED);\r\n }",
"@Override\n protected void execute() {\n if(isBackwards) {\n exeBackwards();\n } else {\n exeForwards();\n }\n\n SmartDashboard.putNumber(\"DrivePath/SegmentX\", m_left_follower.getSegment().x);\n SmartDashboard.putNumber(\"DrivePath/SegmentVelocity\", m_left_follower.getSegment().velocity);\n }",
"public void start() {\n if(mCancelAnim){\n setCancelAnimator(false);\n onEnd();\n return;\n }\n if (count <= 0) {\n setCancelNext(true);\n onEnd();\n return; //end\n }\n //start once now\n /* Logger.d(\"AnimateHelper\",\"start_before_start\",\"count = \" + count +\n \",already started ?=\" + anim.isStarted());*/\n --count;\n anim.start();\n }",
"private void startAnimation(){\n\t TimerActionListener taskPerformer = new TimerActionListener();\n\t new Timer(DELAY, taskPerformer).start();\n \t}",
"public void start()\n {\n animator = new Thread(this);\n animator.start();\n }",
"protected void execute() {\n \tshooterWheel.shooterWheelSpeedControllerAft.Pause();\n \tshooterWheel.shooterWheelSpeedControllerFwd.Pause();\n \t\n }",
"@Override\n\tpublic void move() {\n\t\ttry {\n\t\t\tTimeUnit.SECONDS.sleep(new Random().nextInt(5));\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Tank moving...\");\n\t}",
"@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tfor(int i=1;;i++) {\r\n\t\t\t\tball.move(component.getBounds());\r\n\t\t\t\tcomponent.repaint();\r\n\t\t\t\tThread.sleep(DELAY);\r\n\t\t\t}\r\n\t\t}catch(InterruptedException e) {\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void setStart() {\r\n // this code handles all events for squares\r\n int x1 = this.origin.getX(); //origin point is used to keep track\r\n int y1 = this.origin.getY(); //of where the rectangle was first pressed\r\n int x2 = this.end.getX();\r\n int y2 = this.end.getY();\r\n int L = this.length;\r\n\r\n if (x1 >= x2 && y1 >= y2) {\r\n this.start = new Point(x1 - L, y1 - L);\r\n } else if (x1 >= x2 && y1 <= y2) {\r\n this.start = new Point(x1 - L, y1);\r\n } else if (x1 <= x2 && y1 >= y2) {\r\n this.start = new Point(x1, y1 - L);\r\n } else if (x1 <= x2 && y1 <= y2) {\r\n this.start = new Point(x1, y1);\r\n }\r\n }",
"public void act() {\n boolean willMove = canMove();\n if (isEnd && !hasShown) {\n String msg = stepCount.toString() + \" steps\";\n JOptionPane.showMessageDialog(null, msg);\n hasShown = true;\n } else if (willMove) {\n move();\n stepCount++;\n }\n }",
"public void AdvancePos() {\n \tswitch (data3d.TrackDirection){\n \tcase 0:\n \tc2.PositionValue += 1;\n \tc2.PositionValue = (c2.PositionValue % c2.getMaxPos());\n \tbreak;\n \tcase 1:\n \tc3.PositionValue += 1;\n \tc3.PositionValue = (c3.PositionValue % c3.getMaxPos());\n \tbreak;\n \tcase 2:\n \tc1.PositionValue += 1;\n \tc1.PositionValue = (c1.PositionValue % c1.getMaxPos());\n \tbreak;\n \tcase 3:\n \tdata3d.setElement((data3d.ActiveElement + 1) % data3d.Elements);\n \tcase 4:\n \tdata3d.setTime((data3d.ActiveTime + 1) % data3d.Times);\n \t}\n }",
"public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }",
"public void move() {\r\n\t\tSystem.out.print(\"This Goose moves forward\");\r\n\t}",
"public void move() {\r\n\t\tSystem.out.print(\"This Tiger moves forward\");\r\n\t}",
"public void toMoving() {\n notifyStartMoving(this.getCurrentTurn().getCurrentPlayer().getNickname());\n if (getCurrentTurn().getCurrentPlayer().isHasSpecialMove()) {\n notifyAskForEffect(currentTurn.getCurrentPlayer().getNickname());\n } else {\n notifyChooseWorker(this.getCurrentTurn().getCurrentPlayer().getNickname(), board);\n }\n }",
"public void seekTo(int progress) {\n mediaController.getTransportControls().seekTo(progress/1000);\n }",
"public void start(){\n\t\tthis.lastUpdate = System.currentTimeMillis();\n\t\tthis.millisIntoFrame=0;\n\t\tthis.currentFrame=0;\n\t}",
"public void move()\n\t{\n\t\tx = x + dx;\n\t}",
"public void move() {\r\n\t\tx = x + speed;\r\n\t}",
"public void move() {\r\n\t\tSystem.out.print(\"This animal moves forward\");\r\n\t}"
] |
[
"0.7215332",
"0.69332236",
"0.6928291",
"0.6909706",
"0.6688792",
"0.65394217",
"0.64998335",
"0.64774334",
"0.64417064",
"0.6411925",
"0.636685",
"0.6358509",
"0.6350873",
"0.63219786",
"0.6297205",
"0.629581",
"0.62924397",
"0.6271531",
"0.62577224",
"0.6237897",
"0.62207127",
"0.6220682",
"0.6208068",
"0.6193418",
"0.61852115",
"0.618509",
"0.61842525",
"0.61645406",
"0.61541563",
"0.6146527",
"0.613971",
"0.61394083",
"0.61241263",
"0.61232066",
"0.611447",
"0.610879",
"0.60633695",
"0.6054238",
"0.6034182",
"0.60210454",
"0.6019131",
"0.6017611",
"0.60081345",
"0.600707",
"0.60062325",
"0.60039485",
"0.6001503",
"0.59984297",
"0.5998393",
"0.59957105",
"0.5994323",
"0.5989161",
"0.59870964",
"0.5979839",
"0.5973027",
"0.5957294",
"0.59420776",
"0.5936259",
"0.5929416",
"0.5921147",
"0.59187865",
"0.59166574",
"0.59160095",
"0.58963734",
"0.58905524",
"0.58834684",
"0.5868712",
"0.5863216",
"0.58540565",
"0.58458674",
"0.5843458",
"0.58431274",
"0.584219",
"0.5836425",
"0.58285314",
"0.5822258",
"0.58178127",
"0.58177817",
"0.5810474",
"0.58097595",
"0.5807115",
"0.5795014",
"0.5790386",
"0.57888204",
"0.5787521",
"0.57815593",
"0.57806194",
"0.5780012",
"0.57682675",
"0.5763746",
"0.5763564",
"0.57598656",
"0.57584786",
"0.57571214",
"0.57565504",
"0.5756152",
"0.5750823",
"0.5750188",
"0.57488686",
"0.57453305"
] |
0.5937979
|
57
|
stop the progress moving
|
public void stopProgressAnimation(){
if(progressAnimator!=null){
progressAnimator.cancel();
progressAnimator = null;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void stop() {\n this.setCurrentCell(0);\n this.setPicX(0);\n slowDownX();\n slowDownY();\n setMoving(false);\n if (moveDown) {\n this.setPicY(0);\n } else if (moveUp) {\n this.setPicY(211);\n } else if (moveLeft) {\n this.setPicY(141);\n } else if (moveRight) {\n this.setPicY(74);\n }\n }",
"public void stop()\n\t{\n\t\tindex = 0;\n\t\tlastUpdate = -1;\n\t\tpause();\n\t}",
"public void stop()\n\t{\n\t\tfrogVelocityX = 0;\n\t}",
"public void stopMovement() {\n this.movementComposer.stopMovement();\n }",
"public void stop() {\n intake(0.0);\n }",
"void stop() {\n this.currentDirection = 0;\n this.currentVelocity = 0;\n }",
"public void stopMoving()\n {\n mouthPosition = 0;\n }",
"public void stopMovement() {\r\n this.canMove = false;\r\n }",
"public void progressStop(Text text) {\n wowPerfectShotSound = new MediaPlayer(new Media(new File(\"src/resources/audio/wowPerfectShot.mp4\").toURI().toString()));\n shosLaunchSound = new MediaPlayer(new Media(new File(\"src/resources/audio/shosLaunch.mp4\").toURI().toString()));\n\n moveProgress.stop();\n if(currentHeight > 200) {\n if(wowPerfectShotSound.getStatus() == MediaPlayer.Status.PLAYING){\n wowPerfectShotSound.stop();\n wowPerfectShotSound.play();\n }else{\n wowPerfectShotSound.play();\n }\n text.setText(\"PERFECT SHOT!\");\n } else {\n shosLaunchSound.play();\n text.setText(\"\");\n }\n }",
"public void stopGame()\r\n\t{\r\n\t\tthis.inProgress = false;\r\n\t\tif(this.round == 0)\r\n\t\t{\r\n\t\t\t++this.round;\r\n\t\t}\r\n\t}",
"public void stopAnim() {\n // stop the timer\n t.stop();\n }",
"public void stop() {\n\tanimator = null;\n\toffImage = null;\n\toffGraphics = null;\n }",
"@Override\n\tpublic void stop() {\n\t\tsetAccelerate(false);\n\t}",
"public void stop()\n {\n mover.stop();\n }",
"public void stop()\r\n {\r\n breakoutAnimator = null;\r\n }",
"public void stop() {\r\n _keepGoing = false;\r\n }",
"private void fireProgressListenerStop() {\n if (progress == null) {\n return;\n }\n progress.stop(new ProgressEvent(this, ProgressEvent.STOP));\n }",
"public void stop() {\n\t\tdrive.tankDrive(0, 0);\n\t}",
"@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tmoving = false;\n\t\t}",
"public void stop() {\n pause();\n if (isInPreviewMode) {\n isInPreviewMode = false;\n }\n seekTo(0, new OnCompletionListener() {\n @Override\n public void onComplete() {\n //no-op\n }\n });\n }",
"public void stop() {\n\t\tthis.velocity = 0.0;\n\t}",
"@Override\n public void stop() {\n animatorThread = null;\n\n //Get rid of the objects necessary for double buffering.\n offGraphics = null;\n offImage = null;\n }",
"public static void stopMoving()\n {\n //System.out.println(\"player stopped moving\");\n runSound.stop();\n walkSound.stop();\n }",
"public void stop() {\n\t\tthis.stopper = true;\n\t}",
"public void stop()\r\n\t{\r\n\t\tif (state == State.ENTERING) {\r\n\t\t\tsetSpeed(0);\r\n\t\t\tstate = State.STOPPED;\r\n\t\t\tsetSprite(\"pedestrians/\"+spriteName.substring(0,spriteName.indexOf(\"Walk1.gif\")) + \"Stop1.gif\");\r\n\t\t}\r\n\t}",
"private void stop(){\n\t\tisstop = true;\n\t\tif(ddaemon!=null){\n\t\t\tddaemon.setStop(true);\n\t\t\tddaemon = null;\n\t\t}\n\t\tif(ndaemon!=null){\n\t\t\tndaemon.setStop(true);\n\t\t\tndaemon = null;\n\t\t}\n\t\t// si on ne doit pas garder les dicoms on les supprime\n\t\tif(DicomWorkerClient.DICOMDIR!=null){\n\t\t\ttry {\n\t\t\t\tFileUtils.deleteDirectory(DicomWorkerClient.DICOMDIR.toFile());\n\t\t\t} catch (IOException e) {\n\t\t\t\tWindowManager.mwLogger.log(Level.SEVERE, \"Directory deletion exception\",e);\n\t\t\t}\n\t\t\tDicomWorkerClient.DICOMDIR=null;\n\t\t}\n\t\tif(statusThread!=null){\n\t\t\tsetLock(false);\n\t\t\tgetLblStatus().setText(\"\");\n\t\t\tprogressPanel.setVisible(false);\n\t\t\tstatusThread.stop();\n\t\t\tstatusThread = null;\n\t\t}\n\t}",
"public void stop() {\n if (clip == null) return;\n clip.stop();\n }",
"public void stop_moving() {\n\t\tlogger.info(\"Human stop requested!\");\n\t\tPublisher move_base = new Publisher(\"/ariac_human/stop\", \"std_msgs/Bool\", bridge);\t\t\n\t\tmove_base.publish(new Bool(true)); \n\t}",
"public void cancel() {\r\n\t\tbStop = true;\r\n\t}",
"public void stopAnimating() {\n\t\tmAnimating = false;\n\t\tmAnimationProgress = mProgress;\n\t\tmAnimationHandler.removeMessages(0);\n\t\tinvalidate();\n\t}",
"public void stop(){\n running = false;\n }",
"public void endMove()\n\t{\n\t\tBMTron.delayed += 50;\n\t\tif (delayed == 2000)\n\t\t{\n\t\t\tfor (int i = 0; i < 5; i++) \n\t\t\t{\n\t\t\t\tif (players[i].exist)\n\t\t\t\t{\n\t\t\t\t\tmove[i].interrupt();\n\t\t\t\t}\n\t\t\t}\n\t\t\trepaint.interrupt();\n\t\t\tBMTron.frame.setVisible(false);\n\t\t\tSelection.frame.setVisible(true);\n\t\t\tdelayed = 0;\n\t\t}\n\t}",
"public void stop()\n {\n animator = null;\n }",
"public void deten(){\n\t \tanimacion2.stop();\n\t }",
"public void resume() {\n moveStop = true;\n }",
"private void stopDragging() {\n setDragging(false);\n mouseX = mouseY = prevX = prevY = 0;\n }",
"private synchronized void stop(){\n this.go = false;\n }",
"public void stop() {\n setDest(location);\n }",
"public void stop() {\r\n running = false;\r\n }",
"public void stop() {\n m_enabled = false;\n }",
"@Override\n public void stop() {\n leftFrontDrive.setPower(0.0);\n rightFrontDrive.setPower(0.0);\n leftRearDrive.setPower(0.0);\n rightRearDrive.setPower(0.0);\n\n // Disable Tracking when we are done;\n targetsUltimateGoal.deactivate();\n\n //closes object detection to save system resouces\n if (tfod != null) {\n tfod.shutdown();\n }\n }",
"public void stopAnimation()\n {\n animationTimer.stop();\n }",
"public void intakeStop()\n {\n intake_up.set(ControlMode.PercentOutput, 0.0f);\n intake_down.set(ControlMode.PercentOutput, 0.0f);\n }",
"public void stop()\n\t{\n\t\trunning = false;\n\t}",
"void stopAnimation()\n {\n animationTimer.cancel();\n }",
"public void stop(){\n stop = true;\n }",
"public void stop() {}",
"public final void stop() {\n running = false;\n \n \n\n }",
"public void stop() {\n m_servo.setSpeed(0.0);\n }",
"public void stopFeeding() {\n motor.set(0);\n }",
"public void stopAnimation() {\r\n\t\tani.stop();\r\n\t}",
"public void stop() {\n\t\tthis.timer.cancel();\n\t}",
"public void stopWheel()\n {\n setVectorTarget(Vector2D.ZERO);\n\n turnMotor.setPosition(0.5);\n\n if (driveMotor != null)\n driveMotor.setVelocity(0);\n }",
"public void stop() {\n setClosedLoopControl(false);\n }",
"public void stop(){\n return;\n }",
"@Override\n\tpublic boolean stopDown() {\n\t\tboolean rs = super.stopDown();\n\t\tif(rs == true && this.x_dir == STOP){\n\n\t\t}\n\t\treturn rs;\n\t}",
"public void stop(float delta) {\n\t\t\n\t}",
"public void stop()\n {\n robot.FL_drive.setPower(0);\n robot.FR_drive.setPower(0);\n robot.BL_drive.setPower(0);\n robot.BR_drive.setPower(0);\n }",
"@Override\n\tpublic boolean stopLeft() {\n\t\tboolean rs = super.stopLeft();\n\t\tif(rs == true && this.y_dir == STOP){\n\t\t}\n\t\treturn rs;\n\t}",
"public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}",
"public void stop() {\n stop = true;\n }",
"public void stop() {\n running = false;\n }",
"public void stop(){\n\t\t\n\t}",
"public void stop() {\n enable = false;\n }",
"public void stop() {\n _running = false;\n }",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void completeStop(){\n motorFrontLeft.setPower(0);\n motorFrontRight.setPower(0);\n motorBackLeft.setPower(0);\n motorBackRight.setPower(0);\n }",
"public synchronized void stop() {\n this.running = false;\n }",
"@Override\n\tpublic void stop() {\n\t\tif (player != null) {\n\t\t\tplayer.close();\n\n\t\t\tpauseLocation = 0;\n\t\t\tsetSongTotalLenght(0);\n\t\t}\n\t}",
"@Override public void stop() {\n\t\t_active = false;\n\t}",
"@Override\n public void stop() {}",
"public void stop() {\n\t\tthis.stopTime = System.nanoTime();\n\t\tthis.running = false;\n\t}",
"public void stop() {\n enemyTimeline.stop();\n }",
"public void cancel() {\n target.setAllowFlight(false);\n target.setWalkSpeed(0.01F);\n target.setFlySpeed(0.01F);\n targets.remove(target);\n\n JavaUtils.broadcastStage(\"done\",this);\n }",
"@Override\n public void stop() {\n f.setVisible(false);\n }",
"public synchronized void stop()\n {\n if (open) {\n //stop = true;\n notifyAll();\n started = false;\n line.stop();\n timeTracker.pause();\n }\n }",
"public void stop()\n {\n running = false;\n }",
"private void stop_meter() {\n\t\t\t mEngin.stop_engine();\n\t\t\t\n\t\t}",
"@Override\n public void stop() {\n if (FLM != null) FLM.setPower(0);\n if (FRM != null) FRM.setPower(0);\n if (BLM != null) BLM.setPower(0);\n if (BRM != null) BRM.setPower(0);\n if (BigSuck != null) BigSuck.setPower(0);\n if (SmallSuck != null) SmallSuck.setPower(0);\n if (UpLift != null) UpLift.setPower(0);\n if (DragArm != null) DragArm.setPosition(DragArmRestPosition);\n if (LiftGrab != null) LiftGrab.setPosition(LiftGrabRestPosition);\n if (LiftSwivel != null) LiftSwivel.setPosition(LiftSwivelRestPosition);\n }",
"public void stop() {\n\t\tmotor1.set( Constants.CLAW_MOTOR_STOPPED );\n\t\t}",
"@Override\r\n public void stop() {\r\n }",
"@Override\r\n public void stop() {\r\n }",
"public void stop() {\n\t\tsetPower(Motor.STOP);\r\n\t}",
"public void stop() {\n\t\t\n\t}",
"public void stopTurning() {\r\n turningPID.disable();\r\n tankDrive(0, 0);\r\n }",
"public void stop() {\n\t\t_timer.cancel();\n\t}"
] |
[
"0.75926006",
"0.732973",
"0.7295463",
"0.7282265",
"0.7219901",
"0.7097301",
"0.7078949",
"0.6986461",
"0.6969892",
"0.69679815",
"0.6950776",
"0.6929759",
"0.69116527",
"0.6886122",
"0.6886108",
"0.68827057",
"0.6867769",
"0.6859713",
"0.68585724",
"0.6834419",
"0.68152106",
"0.6810869",
"0.67863286",
"0.67803645",
"0.6775017",
"0.6755304",
"0.6752034",
"0.6748877",
"0.6746521",
"0.67402554",
"0.6735473",
"0.6732223",
"0.67291176",
"0.671921",
"0.6696531",
"0.66921884",
"0.668741",
"0.66863436",
"0.66788524",
"0.66743505",
"0.6668823",
"0.66632974",
"0.66617936",
"0.6652783",
"0.6652246",
"0.6650759",
"0.66479385",
"0.66430783",
"0.6632719",
"0.66294074",
"0.6627644",
"0.66265446",
"0.6622904",
"0.6617151",
"0.6612989",
"0.6610373",
"0.66033864",
"0.6585636",
"0.65836394",
"0.65724134",
"0.6565504",
"0.65642875",
"0.6561019",
"0.65601856",
"0.6556439",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.65516895",
"0.6532079",
"0.6531011",
"0.6526772",
"0.6515924",
"0.6513061",
"0.6509845",
"0.6508106",
"0.6504545",
"0.6503618",
"0.6501086",
"0.6498863",
"0.64987993",
"0.64893514",
"0.6477385",
"0.64685494",
"0.64685494",
"0.6467082",
"0.64662224",
"0.6455506",
"0.64545494"
] |
0.750776
|
1
|
update the oval progress track
|
private void updateTheTrack() {
if(mOval != null){
mOval = null;
}
mOval = new RectF(getPaddingLeft() + mTrackWidth, getPaddingTop() + mTrackWidth,
getWidth() - getPaddingRight() - mTrackWidth,
getHeight() - getPaddingBottom() - mTrackWidth);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void update()\n {\n this.lastProgress = this.progress;\n\n if (this.lastProgress >= 1.0F)\n {\n this.func_184322_i();\n this.worldObj.removeTileEntity(this.pos);\n this.invalidate();\n\n if (this.worldObj.getBlockState(this.pos).getBlock() == Blocks.piston_extension)\n {\n this.worldObj.setBlockState(this.pos, this.pistonState, 3);\n this.worldObj.notifyBlockOfStateChange(this.pos, this.pistonState.getBlock());\n }\n }\n else\n {\n this.progress += 0.5F;\n\n if (this.progress >= 1.0F)\n {\n this.progress = 1.0F;\n }\n\n this.func_184322_i();\n }\n }",
"private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}",
"public void updateProgress(Land land){\n String wiltedString = \"[ wilted ]\";\n StringBuilder progressBar = new StringBuilder();\n String percentageCompleted = \"\";\n int finalStatus = land.getCurrentStatus();\n\n if (land.getCropName() != null){\n Crop crop = cropDAO.retrieveCrop(land.getCropName());\n double timeToGrow = crop.getTime();\n\n Date plantTime = land.getPlantTime();\n Date finishedTime = land.getFinishedTime();\n Date witherTime = land.getWitherTime();\n Date timeNow = new Date();\n\n int timeAfterWilt = (int) (timeNow.getTime() - witherTime.getTime());\n int timeAfterFinished = (int) (timeNow.getTime() - finishedTime.getTime());\n// double timeElapsed =(double) (timeNow.getTime() - plantTime.getTime());\n double timeElapsed =(double) ((timeNow.getTime() - plantTime.getTime()) / 60000);\n\n if (timeAfterWilt > 0){ //withered\n land.setCurrentStatus(-1);\n finalStatus = -1;\n progressBar = new StringBuilder(wiltedString);\n } else if (timeAfterFinished > 0 ){\n land.setCurrentStatus(2);\n finalStatus = 2;\n progressBar = new StringBuilder(\"[##########]\");\n percentageCompleted = \"100%\";\n } else {\n double percentage = (timeElapsed / timeToGrow )* 100;\n int intPercentage = (int) percentage;\n percentageCompleted = intPercentage + \"%\";\n progressBar = new StringBuilder(\"[\");\n int display = intPercentage/10 ;\n for (int i =1; i<= 10; i++){\n if (i <= display){\n progressBar.append(\"#\");\n } else {\n progressBar.append(\"-\");\n }\n }\n progressBar.append(\"]\");\n }\n }\n\n String finalProgressBar = progressBar + \" \"+ percentageCompleted;\n land.setProgressBar(finalProgressBar);\n\n Connection conn = controller.getConnection();\n PreparedStatement stmt = null;\n String sql = \"UPDATE magnet.land SET currentStatus = ?, progressBar = ? WHERE owner = ? AND plotNumber = ?;\";\n\n try {\n stmt = conn.prepareStatement(sql);\n stmt.setInt(1, finalStatus);\n stmt.setString(2, finalProgressBar);\n stmt.setString(3, land.getOwner());\n stmt.setInt(4, land.getPlotNumber());\n stmt.executeUpdate();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override protected void onProgressUpdate(Integer... vals) {\n updateProgressBar(vals[0].intValue());\n }",
"public void onProgressUpdate(int numRouleau,String prochain);",
"@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}",
"public void increment() { this.progressBar.setValue(++this.progressValue); }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n cakeModel.numCandles = progress;\n cakeView.invalidate();\n }",
"@Override\n public void update(final Progress progress) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n progressBar.setValue(progress.getIntPercentage());\n progressField.setText(roundToSingleDigit(progress.getPercentage()) + \"%\");\n }\n });\n }",
"@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}",
"public static void updateProgressBar() {\r\n mHandler.postDelayed(mUpdateTime, 100);\r\n }",
"protected void onProgressUpdate(Integer... progress) {\n\t\t}",
"public void onProgress(int pos);",
"@Override\n\tpublic void onProgressUpdate() {\n\n\t}",
"void setProgress(float progress);",
"private void updateProgressBar(int currentPoints){\n\n progressBar.setProgress(currentPoints);\n\n switch(currentPoints){\n case 1:\n progressBar.getProgressDrawable().setColorFilter(Color.RED, PorterDuff.Mode.SRC_IN);\n\n break;\n case 2:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FF6600\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 3:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#FFFF66\"), PorterDuff.Mode.SRC_IN);\n\n break;\n case 4:\n progressBar.getProgressDrawable().setColorFilter(Color.GREEN, PorterDuff.Mode.SRC_IN);\n\n break;\n case 5:\n progressBar.getProgressDrawable().setColorFilter(Color.parseColor(\"#2C6700\"), PorterDuff.Mode.SRC_IN);\n\n }\n\n\n\n }",
"public void update(){\n \tSystem.out.println(model.toString());\n\t\tnumberofsteps.setText(model.toString());\n\t\tint selectedColor = model.getCurrentSelectedColor();\n\t\t\n\t\t// Update dots\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\t\t\t\t// Assign captured dots to correct colour\n\t\t\t\tif (model.isCaptured(i, j))\n\t\t\t\t\tdots[i][j].setColor(selectedColor);\n\t\t\t}\n\t\t}\n\t\t\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"private void updateAgentChangeFromSlider(int progress) {\n\t\tplayer.setAgentNumberChange(progress / 10);\n\n\t}",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }",
"void updateSeekbar(int position, int duration);",
"@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }",
"protected void onProgressUpdate(String... progress) {\n\t\t\t\t\t\t// Set progress percentage\n\t\t\t\t\t\tprgDialog.setProgress(Integer.parseInt(progress[0]));\n\t\t\t\t\t}",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"void setProgress(int progress);",
"void setProgress(int progress);",
"@Override\n void individualUpdate() {\n timeToLive--;\n radius++;\n setColor();\n }",
"@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}",
"public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }",
"private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }",
"private void updateProgress(final int value) {\n \t\t// update progress bar\n \t\tprogressBar.setValue(value);\n \t\tfinal int previous = 100 * (value - 1) / progressBar.getMaximum();\n \t\tfinal int current = 100 * value / progressBar.getMaximum();\n \t\tif (previous != current) progressBar.setString(\"\" + current + \"%\");\n \n \t\t// redraw calendar graphic\n \t\tprogressFrame.repaint();\n \t}",
"private void updateProgress(int progress) {\n if (myHost != null) {\n myHost.updateProgress(progress);\n } else {\n System.out.println(\"Progress: \" + progress + \"%\");\n }\n }",
"protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}",
"public void setProgress(int value);",
"public void update(Observable o,Object arg) {\n RedBlackTree t = (RedBlackTree)o;\n Graphics g = getGraphics();\n\n if (arg != null) {\n setLastUpdate(false);\n Progress = (String)arg;\n }\n else {\n // done\n setLastUpdate(true);\n Progress = \"Finished\";\n }\n\n // mark Busy, no repaints while Busy\n Busy = true;\n\n // get a new vector to store active nodes in\n ActiveNodes = new Vector(MaxCols);\n\n // traverse inorder and redraw\n // after this procedure is done, the active nodes are ready to draw\n t.inorder(0,t,new TreeLayout());\n\n // not Busy anymore\n Busy = false;\n\n // force a repaint\n repaint();\n\n // wait for user to observe results\n Stpr.waitStep();\n }",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar skb, int prog, boolean fromUser) {\n\t\t\t\tMySurfaceView.redVal = prog;\n\t\t\t}",
"private void procUpdatePosition(int position) {\n //log_d(\"procUpdatePosition: \" + position);\n\n float ratio = 0;\n if( mDuration > 0 ) {\n ratio = (float)position / (float)mDuration;\n }\n\n int progress = (int)(MAX_PROGRESS * ratio);\n setSeekbarProgress(progress);\n\n}",
"public void updateProgress() {\r\n\t\tfireTableDataChanged();\r\n\t}",
"public void progressMade();",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"private void updateProgress() {\n progressBar.setProgress( (1.0d * currentQuestion) / numQuestions);\n }",
"@Override\n\t protected void onProgressUpdate(Void... values) {\n\t }",
"@Override\n\tprotected void onProgressUpdate(Integer... values) {\n\t}",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n\tprotected void updateOtherProgress() {\n\t\t\n\t\ttempList.clear();\n\t\titeration++;\n\t\tJMetalLogger.logger.info(iteration + \" iteration...\");\n\t\t\n//\t\ttry {\n//\t\t\tnew SolutionListOutput(getPopulation()).printObjectivesToFile(\"results/media/FUN\"+iteration+\".tsv\");\n//\t\t} catch (IOException e) {\n//\t\t\te.printStackTrace();\n//\t\t}\n\t}",
"public void updateGameProgression() {\n \tif (players.size() == 0) {\n \t\tSystem.out.println(\"Game over\");\n \t\tgameOver.set(true);\n \t}\n \tif (goal.checkGoalCompleted().get()) {\n \t\tdungeonCompleted.set(true);\n \t} else {\n \t\tdungeonCompleted.set(false);\n \t}\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n }",
"@Override\n\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\tseekBarProgress.setSecondaryProgress(percent);\n\t}",
"void onProgress(float progress);",
"@Override\n\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\tboolean fromUser) {\n\t\t\tcustomPercent = progress / 100.0;\n\t\t\tupdateCustom();\n\t\t\t\n\t\t}",
"private void updateCustom(){\n\n // sets customTipTextView's text to match the position of the SeekBar\n customTipTextView.setText(currentCustomPercent + getString(R.string.percent_sign));\n\n // calculate the custom tip amount\n double customTipAmount = currentBillTotal * currentCustomPercent * .01;\n\n // calculate the total bill including the custom tip\n double customTotalAmount = currentBillTotal + customTipAmount;\n\n // display the tip and total bill amounts\n tipCustomEditText.setText(String.format(getString(R.string.two_dec_float), customTipAmount));\n totalCustomEditText.setText(String.format(getString(R.string.two_dec_float), customTotalAmount));\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n progressBar.setProgress(values[0].intValue());\n\n }",
"private void updateProgress(String progressLabel, int progress) {\n if (myHost != null && ((progress != previousProgress) || \n (!progressLabel.equals(previousProgressLabel)))) {\n myHost.updateProgress(progressLabel, progress);\n }\n previousProgress = progress;\n previousProgressLabel = progressLabel;\n }",
"@Override\n\tpublic void execute()\n\t{\n\t\tintake.set(percentage);\n\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_graduacao = inf.findViewById(R.id.textView11);\n txtV_graduacao.setText(\"\"+progress+\" %\");\n }",
"@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }",
"private void updateRunnable() {\n updateSeekBar = new Runnable() {\n @Override\n public void run() {\n playerSeekBar.setProgress(mediaPlayer.getCurrentPosition());\n seekBarHandler.postDelayed(this, 500);\n }\n };\n }",
"@Override\n public void onProgress(long downloaded,\n long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }",
"@Override\r\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tsuper.onProgressUpdate(values);\r\n\t\t\tsetProgress(values[0]);\r\n\t\t\t\r\n\r\n\t\t}",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onBufferingUpdate(MediaPlayer mp, int percent) {\n\t\t\t\tLog.d(this.getClass().getName(), \"percent: \" + percent);\n\t\t\t\tprogressBar.setSecondaryProgress(percent);\n\t\t\t}",
"private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\n }",
"public void run() {\r\n ouputProgressModel.setPogressStarted(true);\r\n try {\r\n for (int i = 0; i <= 100; i += 10) {\r\n // pause the thread\r\n Thread.sleep(PROCCESS_SLEEP_LENGTH);\r\n // update the percent value\r\n ouputProgressModel.setPercentComplete(i);\r\n SessionRenderer.render(\"progressExample\");\r\n }\r\n }\r\n catch (InterruptedException e) { }\r\n ouputProgressModel.setPogressStarted(false);\r\n }",
"public abstract void onProgress(short percentage, long downloadedSoFar);",
"@Override\n \tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)\n \t{\n \t\tradiusTextField.setText(\"\" + progress);\n \t}",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n imageProvider.setUploading_status((float) progress[0]);\n // updating progress bar value\n if(progressBar != null) {\n if(progress[0] >= 100 && imageProvider.getUploaded()) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n progressBar.setProgress(progress[0]);\n }\n if(progress[0] >= 100 && haze!= null && imageProvider.getUploaded()){\n haze.setAlpha(0f);\n }\n if(progress[0] >= 100 && refreshImageButton!=null && !imageProvider.getUploaded()){\n refreshImageButton.setVisibility(View.INVISIBLE);\n }\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n protected void onProgressUpdate(Object[] values) {\n }",
"@Test\n public void progressionUpdaterStartedAfterPlay() {\n expandPanel();\n SeekBar seekBar = (SeekBar) getActivity().findViewById(R.id.mpi_seek_bar);\n final int progress = seekBar.getProgress();\n\n onView(isRoot()).perform(ViewActions.waitForView(\n R.id.mpi_seek_bar, new ViewActions.CheckStatus() {\n @Override\n public boolean check(View v) {\n return ((SeekBar) v).getProgress() > progress;\n }\n }, 10000));\n }",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"public void update() {\n\n difT();\n difXY();\n solveFlow();\n //drawColorFlow();\n }",
"private void updateProgress(String progressLabel, int progress) {\n if (myHost != null) {\n myHost.updateProgress(progressLabel, progress);\n } else {\n System.out.println(progressLabel + \" \" + progress + \"%\");\n }\n }",
"public void update(Observable o, Object arg) {\n final Download download = (Download) o;\n int index = downloadList.indexOf(download);\n // Fire table row update notification to table.\n fireTableRowsUpdated(index, index);\n\n progressBar1.setMaximum(getRowCount());\n\n final int s = download.getStatus();\n\n if (s == Download.COMPLETE || s == Download.SKIPPED)\n progress++;\n else if (s == Download.CANCELLED)\n progress--;\n progressBar1.setValue(progress);\n\n if (getStatus() == Download.DOWNLOADING && (s == Download.COMPLETE || s == Download.ERROR || s == Download.SKIPPED)) {\n Download candidate = null;\n for (Download d : downloadList) {\n if (d.getStatus() == Download.DOWNLOADING) return;\n if (d.getStatus() == Download.PENDING && candidate == null) candidate = d;\n }\n if (candidate != null) candidate.resume(); // Start the next download\n }\n }",
"void reportProgress(List<Node> update);",
"@Override\n public void onBufferingUpdate(MediaPlayer mp, int percent) {\n seekBarProgress.setSecondaryProgress(percent);\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_quantidade = inf.findViewById(R.id.volume_12);\n txtV_quantidade.setText(\"\"+progress+\" copo(s)\");\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }",
"public void onProgressUpdate(Integer ... value){\n pb.setVisibility(View.VISIBLE);\n pb.setProgress(value[0]);\n }",
"private void primarySeekBarProgressUpdater() {\n seekBarProgress.setProgress((int) (((float) mediaPlayer.getCurrentPosition() / mediaFileLengthInMilliseconds) * 100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n if (mediaPlayer.isPlaying()) {\n Runnable notification = new Runnable() {\n public void run() {\n primarySeekBarProgressUpdater();\n }\n };\n handler.postDelayed(notification, 1000);\n }\n }",
"public void onProgressChanged (SeekBar seekBar, int progress, boolean fromUser) {\n myCircleView.setSize(progress*2);\n }",
"@Override\n\t\tpublic void updateVariables(){\n\t\t\tthis.currentX = odometer.getCurrentX();\n\t\t\tthis.currentY = odometer.getCurrentY();\n\t\t\tthis.currentAngle = odometer.getHeadingAngle();\n\t\t\tthis.currentAverageVelocity = odometer.getCurrentAverageVelocity();\n\t\t}",
"public void progress(double timeStep){\n\t\tfor(Ball b : balls){\n\t\t\t((BoardObject) b).progress(timeStep);\n\t\t}\n\t\t\n\t\tfor (Gadget g : gadgets){\n\t\t\t((BoardObject) g).progress(timeStep);\n\t\t}\n\t\t\n\t\tfor(Ball ball : balls){\n\t\t\tif(!ball.getInAbsorber()){\n\t\t\t\tdouble vY = ball.getVel().y();\n\t\t\t\tdouble vX = ball.getVel().x();\n\t\t\t double newVY = vY + GRAVITY * timeStep;\n\t\t\t double newVX = vX * (1 - MU_1 * timeStep - MU_2 * Math.abs(vX) * timeStep);\n\t\t\t newVY = newVY * (1 - MU_1 * timeStep - MU_2 * Math.abs(newVY) * timeStep);\n\t\t\t \n\t\t\t ball.setVel(new Vect(newVX, newVY));\n\t\t\t}\n\t\t}\n\t}",
"public void notifyAlgoUpdateCurrentValue() {\n this.mHwGradualBrightnessAlgo.updateTargetAndRate(this.mTargetValue, this.mRate);\n this.mHwGradualBrightnessAlgo.updateCurrentBrightnessValue((float) this.mCurrentValue);\n }",
"public synchronized void updateProgress(boolean completedOK) {\n\n if (completedOK) mCompletedOKCount++;\n\n mCompletedCount++;\n\n double total = mMusicObjectList.size();\n double count = mCompletedCount;\n int percent = (int) ((count / total) * 100d);\n\n mDownloadListener.onUpdate(percent);\n }",
"private void primarySeekBarProgressUpdater() {\n \tseekBarProgress.setProgress((int)(((float)mediaPlayer.getCurrentPosition()/mediaFileLengthInMilliseconds)*100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n\t\tif (mediaPlayer.isPlaying()) {\n\t\t\tRunnable notification = new Runnable() {\n\t\t public void run() {\n\t\t \tprimarySeekBarProgressUpdater();\n\t\t\t\t}\n\t\t };\n\t\t handler.postDelayed(notification,1000);\n \t}\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n }",
"public void update() {\n if (!hasStarted) {\n //drive.setAutonStraightDrive();\n hasStarted = true;\n } else {\n if (Math.abs((Math.abs(rotations) - (Math.abs(drive.getRightSensorValue() / 4096)))) <= TOLERANCE) {\n drive.setBrakeMode(true);\n setFinished(true);\n }\n }\n\n }",
"@Override\n\tpublic void count(float elapsed) {\n\t\tmProgress += elapsed;\n\t}",
"private void update() {\n setPieceType();\n initBackground(pieceIndex);\n }",
"@Override\n public void onClick(View view) {\n progressStatus = 0;\n\n // Start the lengthy operation in a background thread\n new Thread(new Runnable() {\n @Override\n public void run() {\n while (progressStatus < 100) {\n // Update the progress status\n progressStatus += 1;\n }\n\n //Try to sleep the thread for 30 milliseconds\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Update the progress bar\n handler.post(new Runnable() {\n @Override\n public void run() {\n pgb.setProgress(progressStatus);\n }\n });\n }\n }).start();// Start the operation\n }",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}"
] |
[
"0.6686856",
"0.65138674",
"0.6388379",
"0.63180447",
"0.62997776",
"0.6293503",
"0.62458134",
"0.6226777",
"0.6214936",
"0.6213977",
"0.61999685",
"0.6183973",
"0.6169303",
"0.61663264",
"0.6148861",
"0.6136968",
"0.6136455",
"0.6103189",
"0.6097806",
"0.6097806",
"0.60780615",
"0.6071439",
"0.6071439",
"0.60687435",
"0.603827",
"0.60347867",
"0.6029414",
"0.60078615",
"0.59999996",
"0.59999996",
"0.5992746",
"0.5989961",
"0.59861434",
"0.5981483",
"0.59790295",
"0.59730893",
"0.5948381",
"0.5946709",
"0.59275806",
"0.5919598",
"0.5917317",
"0.5891336",
"0.5888498",
"0.5882389",
"0.58816004",
"0.5869006",
"0.5855186",
"0.58494127",
"0.58423394",
"0.58389884",
"0.5834192",
"0.5822786",
"0.58187",
"0.5817836",
"0.58150756",
"0.5814421",
"0.5811342",
"0.58095235",
"0.58038557",
"0.5791167",
"0.5790405",
"0.5789637",
"0.5786523",
"0.57785445",
"0.57741505",
"0.5766452",
"0.5752355",
"0.5750067",
"0.5745213",
"0.573699",
"0.57365155",
"0.57337326",
"0.5733618",
"0.5727571",
"0.5713818",
"0.57092834",
"0.5705661",
"0.57034725",
"0.56977403",
"0.56964034",
"0.56918406",
"0.5690963",
"0.5683426",
"0.5681825",
"0.5680962",
"0.5679911",
"0.5677626",
"0.5659968",
"0.5659945",
"0.5656944",
"0.56477654",
"0.5645249",
"0.5643993",
"0.56421995",
"0.56421995",
"0.56395006",
"0.56391865",
"0.5634504",
"0.56279165",
"0.5607441"
] |
0.6821587
|
0
|
init the circle progress drawing
|
private void initProgressDrawing(Canvas canvas, boolean isFilled){
if(circleBroken){
Log.e(TAG, "circleBroken>>>>>>"+"yes" );
canvas.drawArc(mOval, 135 + mStartProgress*2.7f, (moveProgress - mStartProgress) * 2.7f, isFilled, progressPaint);
}else {
Log.e(TAG, "circleBroken>>>>>>"+"no" );
canvas.drawArc(mOval, 270 + mStartProgress*3.6f , (moveProgress - mStartProgress) * 3.6f, isFilled, progressPaint);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void plotinit() {\r\n\r\n\t\tfloat dx;\r\n\t\tfloat dy;\r\n\t\tfloat d;\r\n\r\n\t\tdy = ymax - ymin;\r\n\t\tdx = xmax - xmin;\r\n\t\td = (dx > dy ? dx : dy) * 1.1f;\r\n\r\n\t\tpxmin = xmin - (d - dx) / 2.0f;\r\n\t\tpxmax = xmax + (d - dx) / 2.0f;\r\n\t\tpymin = ymin - (d - dy) / 2.0f;\r\n\t\tpymax = ymax + (d - dy) / 2.0f;\r\n\r\n\t\tcradius = (pxmax - pxmin) / 350.0f;\r\n\r\n\t}",
"private void initProgress()\n {\n\n if (showProgressBar && progressBar == null)\n { // there's an issue if called from matlab of getting the progress frame\n // in matlab's event loop so we can't just create a new one here\n progressBar = new Progress();\n }\n if (progressBar != null)\n {\n progressBar.setChanName(channelName);\n progressBar.setWorkingOn(\"Initializing\");\n progressBar.setEstTime(\"Time remaining: unknown\");\n progressBar.setProgress(-1);\n progressBar.setPosition();\n }\n }",
"private void init() {\n\t\tcircle.init();\n\n\t\tcircle.startCircle();\n\t\tboard.startUpdating();\n\t}",
"private void initTrack(Canvas canvas, boolean isFilled){\n if(circleBroken){\n canvas.drawArc(mOval, 135, 270, isFilled, progressPaint);\n }else {\n canvas.drawArc(mOval, 90, 360, isFilled, progressPaint);\n }\n }",
"public void calling() {\n\t\tCircle tc = new Circle(new Coordinate(-73, 42), 0);\n\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n\t\t\tPaintShapes.paint.addCircle(tc);\n\t\t\tPaintShapes.paint.myRepaint();\n\t\t}\n\t\t\n//\t\tMap<Double, Coordinate>angle_coordinate=new HashMap<Double, Coordinate>();\n//\t\tLinkedList<double[]>coverangle=new LinkedList<double[]>();\n//\t\tMap<Double[], Coordinate[]>uncoverArc=new HashMap<Double[], Coordinate[]>();\n//\t\tdouble a1[]=new double[2];\n//\t\ta1[0]=80;\n//\t\ta1[1]=100;\n//\t\tangle_coordinate.put(a1[0], new Coordinate(1, 0));\n//\t\tangle_coordinate.put(a1[1], new Coordinate(0, 1));\n//\t\tcoverangle.add(a1);\n//\t\tdouble a2[]=new double[2];\n//\t\ta2[0]=0;\n//\t\ta2[1]=30;\n//\t\tangle_coordinate.put(a2[0], new Coordinate(2, 0));\n//\t\tangle_coordinate.put(a2[1], new Coordinate(0, 2));\n//\t\tcoverangle.add(a2);\n//\t\tdouble a3[]=new double[2];\n//\t\ta3[0]=330;\n//\t\ta3[1]=360;\n//\t\tangle_coordinate.put(a3[0], new Coordinate(3, 0));\n//\t\tangle_coordinate.put(a3[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a3);\n//\t\tdouble a4[]=new double[2];\n//\t\ta4[0]=20;\n//\t\ta4[1]=90;\n//\t\tangle_coordinate.put(a4[0], new Coordinate(4, 0));\n//\t\tangle_coordinate.put(a4[1], new Coordinate(0, 4));\n//\t\tcoverangle.add(a4);\n//\t\tdouble a5[]=new double[2];\n//\t\ta5[0]=180;\n//\t\ta5[1]=240;\n//\t\tangle_coordinate.put(a5[0], new Coordinate(5, 0));\n//\t\tangle_coordinate.put(a5[1], new Coordinate(0, 5));\n//\t\tcoverangle.add(a5);\n//\t\tdouble a6[]=new double[2];\n//\t\ta6[0]=270;\n//\t\ta6[1]=300;\n//\t\tangle_coordinate.put(a6[0], new Coordinate(6, 0));\n//\t\tangle_coordinate.put(a6[1], new Coordinate(0, 6));\n//\t\tcoverangle.add(a6);\n//\t\tdouble a7[]=new double[2];\n//\t\ta7[0]=360;\n//\t\ta7[1]=360;\n//\t\tangle_coordinate.put(a7[0], new Coordinate(7, 7));\n//\t\tangle_coordinate.put(a7[1], new Coordinate(7, 7));\n//\t\tcoverangle.add(a7);\n//\t\t// sort the cover arc\n//\t\tint minindex = 0;\n//\t\tfor (int j = 0; j < coverangle.size() - 1; j++) {\n//\t\t\tminindex = j;\n//\t\t\tfor (int k = j + 1; k < coverangle.size(); k++) {\n//\t\t\t\tif (coverangle.get(minindex)[0] > coverangle.get(k)[0]) {\n//\t\t\t\t\tminindex = k;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tdouble tem[] = new double[2];\n//\t\t\ttem = coverangle.get(j);\n//\t\t\tcoverangle.set(j, coverangle.get(minindex));\n//\t\t\tcoverangle.set(minindex, tem);\n//\t\t}\n//\t\tfor(int ii=0;ii<coverangle.size();ii++){\n//\t\t\tdouble aa[]=coverangle.get(ii);\n//\t\t\tSystem.out.println(aa[0]+\" \"+aa[1]);\n//\t\t}\n//\t\tSystem.out.println(\"----------------------------\");\n//\t\t// find the uncover arc\n//\t\tint startposition = 0;\n//\t\twhile (startposition < coverangle.size() - 1) {\n//\t\t\tdouble coverArc[] = coverangle.get(startposition);\n//\t\t\tboolean stop = false;\n//\t\t\tint m = 0;\n//\t\t\tfor (m = startposition + 1; m < coverangle.size() && !stop; m++) {\n//\t\t\t\tdouble bb[] = coverangle.get(m);\n//\t\t\t\tif (bb[0] <= coverArc[1]) {\n//\t\t\t\t\tcoverArc[0] = Math.min(coverArc[0], bb[0]);\n//\t\t\t\t\tcoverArc[1] = Math.max(coverArc[1], bb[1]);\n//\t\t\t\t} else {\n//\t\t\t\t\tCoordinate uncover[]=new Coordinate[2];\n//\t\t\t\t\t//record the consistant uncover angle\n//\t\t\t\t\tDouble[] uncoverA=new Double[2];\n//\t\t\t\t\tuncoverA[0]=coverArc[1];\n//\t\t\t\t\tuncoverA[1]=bb[0];\n//\t\t\t\t\tIterator<Map.Entry<Double, Coordinate>> entries = angle_coordinate\n//\t\t\t\t\t\t\t.entrySet().iterator();\n//\t\t\t\t\twhile (entries.hasNext()) {\n//\t\t\t\t\t\tMap.Entry<Double, Coordinate> entry = entries.next();\n//\t\t\t\t\t\tif (entry.getKey() == coverArc[1])\n//\t\t\t\t\t\t\tuncover[0] = entry.getValue();\n//\t\t\t\t\t\telse if (entry.getKey() == bb[0])\n//\t\t\t\t\t\t\tuncover[1] = entry.getValue();\n//\t\t\t\t\t}\n//\t\t\t\t\tuncoverArc.put(uncoverA, uncover);\n//\t\t\t\t\tstartposition = m;\n//\t\t\t\t\tstop = true;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tif(m==coverangle.size()){\n//\t\t\t\tstartposition=m;\n//\t\t\t}\n//\t\t}\n//\t\n//\t\tSystem.out.println(uncoverArc.entrySet().size());\n//\t\tint n=uncoverArc.entrySet().size();\n//\t\tint k=2;\n//\t\twhile(n>0){\n//\t\t\tIterator<Map.Entry<Double[],Coordinate[]>>it=uncoverArc.entrySet().iterator();\n//\t\t\tMap.Entry<Double[], Coordinate[]>newneighbor=it.next();\n//\t\t\tSystem.out.println(newneighbor.getKey()[0]+\" \"+newneighbor.getValue()[0]);\n//\t\t\tSystem.out.println(newneighbor.getKey()[1]+\" \"+newneighbor.getValue()[1]);\n//\t\t uncoverArc.remove(newneighbor.getKey());\n//\t\t \n//\t\tif(k==2){\n//\t\tDouble[] a8=new Double[2];\n//\t\ta8[0]=(double)450;\n//\t\ta8[1]=(double)500;\n//\t\tCoordinate a9[]=new Coordinate[2];\n//\t\ta9[0]=new Coordinate(9, 0);\n//\t\ta9[1]=new Coordinate(0, 9);\n//\t\tuncoverArc.put(a8, a9);\n//\t\tk++;\n//\t\t}\n//\t\tn=uncoverArc.entrySet().size();\n//\t\tSystem.out.println(\"new size=\"+uncoverArc.entrySet().size());\n//\t\t}\n//\t\t\t\n\t\t\t\n\t\t\n\t\t/***************new test*************************************/\n//\t\tCoordinate startPoint=new Coordinate(500, 500);\n//\t\tLinkedList<VQP>visitedcircle_Queue=new LinkedList<VQP>();\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 500), 45));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(589, 540), 67));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(500, 550), 95));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(439, 560), 124));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(460, 478), 69));\n//\t\tvisitedcircle_Queue.add(new VQP(new Coordinate(580, 580), 70));\n//\t\tIterator<VQP>testiterator=visitedcircle_Queue.iterator();\n//\t\twhile(testiterator.hasNext()){\n//\t\t\tVQP m1=testiterator.next();\n//\t\t\tCircle tm=new Circle(m1.getCoordinate(), m1.getRadius());\n//\t\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\t\tPaintShapes.paint.color = PaintShapes.paint.redTranslucence;\n//\t\t\t\tPaintShapes.paint.addCircle(tm);\n//\t\t\t\tPaintShapes.paint.myRepaint();\n//\t\t\t}\n//\t\t\t\n//\t\t}\n//\t\tdouble coverradius=calculateIncircle(startPoint, visitedcircle_Queue);\n//\t\tCircle incircle=new Circle(startPoint, coverradius);\n//\t\tif (PaintShapes.painting && logger.isDebugEnabled()) {\n//\t\t\tPaintShapes.paint.color = PaintShapes.paint.blueTranslucence;\n//\t\t\tPaintShapes.paint.addCircle(incircle);\n//\t\t\tPaintShapes.paint.myRepaint();\n//\t\t}\n//\t\t/***************end test*************************************/\n\t\tEnvelope envelope = new Envelope(-79.76259, -71.777491,\n\t\t\t\t40.477399, 45.015865);\n\t\tdouble area=envelope.getArea();\n\t\tdouble density=57584/area;\n\t\tSystem.out.println(\"density=\"+density);\n\t\tSystem.out.println(\"end calling!\");\n\t}",
"private void init(){\n\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth(3);\n paint.setColor(Color.BLACK);\n paint.setTextSize(25);\n firstDraw = true;\n }",
"public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }",
"public Circle() {\n radius = 1.0;\n color = \"red\";\n }",
"public Circle() {\n radius = 1.0;\n color = \"red\";\n }",
"static void InitiateDraw() {\n\t\tshape = new GeneralPath();\n\t\ti1.setOverlay(null);\n\t\tOL = new Overlay();\n\t}",
"public void draw(){\n if (! this.isFinished() ){\n UI.setColor(this.color);\n double left = this.xPos-this.radius;\n double top = GROUND-this.ht-this.radius;\n UI.fillOval(left, top, this.radius*2, this.radius*2);\n }\n }",
"@Override\n public void draw() {\n drawAPI.drawCircle(radius, x, y); \n }",
"public Circle() {\r\n this.radius = 0.0;\r\n this.center = new Point();\r\n }",
"private void init() {\n\n mCursorPaint = new Paint();\n mCursorPaint.setColor(Color.BLUE);\n\n mLimitPaint = new Paint();\n mLimitPaint.setColor(Color.YELLOW);\n\n mCoveredPaint = new Paint();\n mCoveredPaint.setColor(Color.CYAN);\n\n mRangePaint = new Paint();\n mRangePaint.setColor(Color.DKGRAY);\n\n mEraserPaint = new Paint();\n mEraserPaint.setColor(Color.TRANSPARENT);\n // ensure the erasing effect\n mEraserPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC));\n }",
"public void startProgressAnimation(){\n progressAnimator = ObjectAnimator.ofFloat(this,\"progress\",mStartProgress, mEndProgress);\n Log.e(TAG, \"progressDuration: \"+ mProgressDuration);\n progressAnimator.setInterpolator(mInterpolator);\n progressAnimator.setDuration(mProgressDuration);\n progressAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n @Override\n public void onAnimationUpdate(ValueAnimator animation) {\n float progress = (float) animation.getAnimatedValue(\"progress\");\n if(updateListener != null){\n updateListener.onCircleProgressUpdate(CircleProgressView.this, progress);\n }\n\n }\n });\n progressAnimator.addListener(new Animator.AnimatorListener() {\n @Override\n public void onAnimationStart(Animator animator) {\n if(updateListener != null){\n updateListener.onCircleProgressStart(CircleProgressView.this);\n }\n }\n\n @Override\n public void onAnimationEnd(Animator animator) {\n if(updateListener != null){\n updateListener.onCircleProgressFinished(CircleProgressView.this);\n }\n }\n\n @Override\n public void onAnimationCancel(Animator animator) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animator animator) {\n\n }\n });\n progressAnimator.start();\n }",
"public CircularLayoutComponent() {\n initComponents();\n setOpaque(true);\n setDoubleBuffered(true);\n segmentSizeSpinner.addChangeListener(this);\n targetMarginSpinner.addChangeListener(this);\n sourceMarginSpinner.addChangeListener(this);\n segmentMarginSpinner.addChangeListener(this);\n segmentAngleSpinner.addChangeListener(this);\n }",
"public void paint(Graphics g)\r\n/* 58: */ {\r\n/* 59: 40 */ super.paint(g);\r\n/* 60: 41 */ if (this.data.length == 0) {\r\n/* 61: 41 */ return;\r\n/* 62: */ }\r\n/* 63: 42 */ int totalWidth = getWidth();\r\n/* 64: 43 */ int totalHeight = getHeight();\r\n/* 65: 44 */ if ((totalWidth == 0) || (totalHeight == 0)) {\r\n/* 66: 44 */ return;\r\n/* 67: */ }\r\n/* 68: 45 */ int width = this.fillPercentage * totalWidth / 100;\r\n/* 69: 46 */ int height = this.fillPercentage * totalHeight / 100;\r\n/* 70: 47 */ int radius = Math.min(width, height) / 2;\r\n/* 71: 48 */ int xCenter = totalWidth / 2;\r\n/* 72: 49 */ int yCenter = totalHeight / 2;\r\n/* 73: 50 */ drawData(g, radius, xCenter, yCenter);\r\n/* 74: */ }",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"public Circle(){ // 1 constructor\n this.radius = DEFAULT_RADIUS;\n this.color = DEFAULT_COLOR;\n }",
"public Circle() {\n\t\tr=0.0; //by defalut set radius to something so we have a circle \n\t}",
"private void setCircle() {\n\t\tlayout_Circle=new Circle[][] {{null, null, null, null, null, null, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, finishCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, pos80, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos7_1, pos70, pos71, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos6_2, pos6_1, pos60, pos61, pos62, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos5_3, pos5_2, pos5_1, pos50, pos51, pos52, pos53, null, null},\n\t\t\t \t\t\t\t\t\t {null, pos4_4, pos4_3, pos4_2, pos4_1, pos40, pos41, pos42, pos43, pos44, null},\n\t\t\t \t\t\t\t\t\t {null, null, pos3_3, pos3_2, pos3_1, pos30, pos31, pos32, pos33, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, pos2_2, pos2_1, pos20, pos21, pos22, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, pos1_1, pos10, pos11, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, startCircle, null, null, null, null, null},\n\t\t\t \t\t\t\t\t\t {null, null, null, null, null, null, null, null, null, null, null}};\n\t}",
"public Circle()\r\n\t{\r\n\t\tradius = 0.0;\r\n\t}",
"@Override\n public void onDraw(final Canvas canv) {\n \t\n for (CircleArea circle : mCircles) {\n \t\n \tmCirclePaint.setColor(Color.GRAY);\n \tcanv.drawCircle(circle.centerX, circle.centerY, circle.radius+2, mCirclePaint);\n \tmCirclePaint.setColor(0xFFBFFFEF);\n canv.drawCircle(circle.centerX, circle.centerY, circle.radius, mCirclePaint);\n \n \n if(circle.isFinal){\n \tmCirclePaint.setColor(Color.GRAY);\n \tmCirclePaint.setStyle(Paint.Style.STROKE);\n \tmCirclePaint.setStrokeWidth(2);\n \tcanv.drawCircle(circle.centerX, circle.centerY, circle.radius-3, mCirclePaint);\n \tmCirclePaint.setStrokeWidth(40);\n \tmCirclePaint.setStyle(Paint.Style.FILL);\n }\n if(circle == this.initial){\n \tmCirclePaint.setColor(Color.BLACK);\n \tPath path = new Path();\n \tpath.moveTo(circle.centerX-circle.radius,circle.centerY);\n \tpath.lineTo(circle.centerX-circle.radius*2,(float) (circle.centerY - circle.radius/1.5));\n \tpath.lineTo(circle.centerX-circle.radius*2, (float) (circle.centerY+ circle.radius/1.5));\n \n \tcanv.drawPath(path, mCirclePaint);\n }\n \n \n mCirclePaint.setTextSize(23);\n mCirclePaint.setColor(Color.BLACK);\n canv.drawText(circle.id,circle.centerX-12,circle.centerY+8,mCirclePaint);\n }\n \n if(mLines.size() >= 1){\n \tmCirclePaint.setStrokeWidth(1);\n \tif(mode == 2 || mode == 3){\n\t \tfor(int i=0;i<mLines.size();i++){\n\t \n\t \t\t\n\t\t \t\t\n\t \t\t\tif(mLines.get(i).circleEnd != null){\n\t \t\t\t\t\n\n\t\t \t\t\tmCirclePaint.setColor(Color.BLACK);\n\t\t\t \tmCirclePaint.setStrokeWidth(1);\n\t\t\t \t\n\t\t\t \tint points[] = this.getPoints(\n\t\t\t \t\t\tmLines.get(i).circleStart.centerX,\n\t\t\t \t\t\tmLines.get(i).circleStart.centerY,\n\t\t\t \t\t\tmLines.get(i).circleEnd.centerX, \n\t\t\t \t\t\tmLines.get(i).circleEnd.centerY);\n\t\t\t \t\n\t\t\t \tcanv.drawLine(\n\t\t\t \t\t\tpoints[0],points[1],points[2],points[3], \n\t\t\t \t\t\tmCirclePaint);\n\t\t\t \t\n\t\t\t \tcanv.drawCircle(points[2], points[3], 4, mCirclePaint);\n\t\t\t \t\n\t\t\t \t//int rectPoints[] = this.rectBound(points);\n\t\t\t \t//RectF rectF = new RectF(rectPoints[0],rectPoints[1],rectPoints[2],rectPoints[3]);\n\t\t\t \tint rectPoints[] = {\n\t\t\t \t\t\tmLines.get(i).circleStart.centerX,\n\t\t\t \t\t\tmLines.get(i).circleStart.centerY,\n\t\t\t \t\t\tmLines.get(i).circleEnd.centerX, \n\t\t\t \t\t\tmLines.get(i).circleEnd.centerY};\n\t\t\t \t\n\t\t\t \t\t\t /*Path path = new Path();\n\t\t\t \t\t\t RectF oval = new RectF();\n\t\t\t \t\t\t \n\t\t\t \t\t\t mCirclePaint.setStyle(Style.STROKE);\n\t\t\t \t\t\t mCirclePaint.setColor(Color.BLACK);\n\t\t\t \t\t\t oval.set(rectPoints[0]-60,rectPoints[1],rectPoints[0],rectPoints[1]+60);\n\t\t\t \t\t\t path.arcTo(oval,250,-230,true);\n\t\t\t \t\t\t canv.drawPath(path, mCirclePaint);\n\t\t\t \t\t\t \n\t\t\t \t\t\t mCirclePaint.setStyle(Style.FILL);*/\n\t\t\t \t\t\t \n\t\t\t \t\n\t\t\t \tif(mLines.get(i).name != null){\n\t\t\t\t \tmCirclePaint.setTextSize(20);\n\t\t\t\t \t\n\t\t\t\t \tmLines.get(i).textCoordsX = (points[0]+points[2])/2;\n\t\t\t\t \tmLines.get(i).textCoordsY = (points[1]+points[3])/2;\n\t\t\t\t \tmCirclePaint.setColor(Color.BLUE);\n\t\t\t\t canv.drawText(mLines.get(i).name,mLines.get(i).textCoordsX-5,mLines.get(i).textCoordsY+3,mCirclePaint);\n\t\t\t\t mCirclePaint.setColor(Color.BLACK);\n\t\t\t\t \n\t\t\t\t mCirclePaint.setTextSize(12);\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \t\n\t\t \t\t}\n\t\t \t\telse{\n\t\t \t\t\tcanv.drawLine(\n\t\t \t \t\t\tmLines.get(mLines.size()-1).startX, \n\t\t \t \t\t\tmLines.get(mLines.size()-1).startY,\n\t\t \t \t\t\tmLines.get(mLines.size()-1).endX, \n\t\t \t \t\t\tmLines.get(mLines.size()-1).endY, \n\t\t \t \t\t\tmCirclePaint);\n\t\t \t\t}\n\t \t\t}\n\t \t\t\n\t \t\t\n\t \t\n\t \t\n\t \n\t \t\n \t}\n \telse if(mode == 1 || mode ==0){\n \t\tfor(int i=0;i<mLines.size();i++){\n\t \tmCirclePaint.setColor(Color.BLACK);\n\t \tmCirclePaint.setStrokeWidth(1);\n\t \tint points[] = this.getPoints(\n\t \t\t\tmLines.get(i).circleStart.centerX,\n\t \t\t\tmLines.get(i).circleStart.centerY,\n\t \t\t\tmLines.get(i).circleEnd.centerX, \n\t \t\t\tmLines.get(i).circleEnd.centerY);\n\t \t\n\t \tcanv.drawLine(\n\t \t\t\tpoints[0],points[1],points[2],points[3], \n\t \t\t\tmCirclePaint);\n\t \t\n\t \tmCirclePaint.setTextSize(20);\n\t \t\n\n\t \t\n\t \tcanv.drawCircle(points[2], points[3], 4, mCirclePaint);\n\t \tmLines.get(i).textCoordsX = (points[0]+points[2])/2;\n\t \tmLines.get(i).textCoordsY = (points[1]+points[3])/2;\n\t \tmCirclePaint.setColor(Color.BLUE);\n\t canv.drawText(mLines.get(i).name,mLines.get(i).textCoordsX-5,mLines.get(i).textCoordsY+3,mCirclePaint);\n\t mCirclePaint.setColor(Color.BLACK);\n\t \n\t mCirclePaint.setTextSize(12);\n\t }\t\n \t}\n }\n \n }",
"SimpleCircle() {\n\t\tradius=1;\n\t}",
"public Circle(double r)\n {\n setRad(r);\n\n }",
"private void initPaint() {\n mPaint = new Paint();\n mPaint.setAntiAlias(true);\n mStrokeWidth = 2.0f;\n mPaint.setStyle(Paint.Style.STROKE);// Hollow effect\n mPaint.setColor(mRippleColor);\n mPaint.setStrokeWidth(mStrokeWidth);// set the line width\n }",
"public void draw() {\n for (Point2D p: mPoints) {\n StdDraw.filledCircle(p.x(), p.y(), 0.002);\n }\n }",
"public Circle(double radius){ // 2 constructor\n this.radius = radius;\n this.color = DEFAULT_COLOR;\n }",
"public Paint(){\n triangles = new ArrayList<>();\n rectangles = new ArrayList<>();\n circles = new ArrayList<>();\n }",
"public Circle(){\n\t\t\n\t\tradius = 1.0;\n\t\tcolor =\"Red\";\n\t}",
"private void initBazier() {\n final float xPoint[] = new float[]{0, 200, 400, 600, 900};\n final float yPoint[] = new float[]{0, 800, 600, 1000, 200};\n \n Path path = mBazier;\n \n \n for (int i = 0; i < 1000; i++) {\n float progress = i / (float) 1000;\n float x = calculateBazierPoint(progress, xPoint);\n float y = calculateBazierPoint(progress, yPoint);\n //使用连接的方式 当xy变化足够小时,链接成的就是一条平滑的曲线\n path.lineTo(x, y);\n //刷新\n postInvalidate();\n try {\n Thread.sleep(50);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n \n }",
"public Circle() {\n this( 1.0 ); \n }",
"private void drawCircle(Canvas canvas, float progress, boolean isInHotseatOrHideseat){\n int circleBackColor = 0x3fffffff;//25% alpha of Color.WHITE\n int circleFrontColor = 0xffffffff;//Color.WHITE\n int point[] = getAppIconCenter(isInHotseatOrHideseat);\n int centerX = point[0];\n int centerY = point[1];\n int roundHeadRadius = DOWNLOAD_ARC_WIDTH / 2;\n float sweep = Math.min(360, 360 * progress / 100);\n canvas.save();\n RectF rect = new RectF(centerX - DOWNLOAD_ARC_DRAW_R,\n centerY - DOWNLOAD_ARC_DRAW_R,\n centerX + DOWNLOAD_ARC_DRAW_R,\n centerY + DOWNLOAD_ARC_DRAW_R);\n drawHoloSector(canvas, rect, 0, 360, circleBackColor);\n if ( progress != PROGRESS_NOT_DOWNLOAD ) {\n drawHoloSector(canvas, rect, 270, sweep, circleFrontColor);\n drawRoundHead(canvas, centerX, centerY, 270, roundHeadRadius, circleFrontColor);\n drawRoundHead(canvas, centerX, centerY, 270 + sweep, roundHeadRadius, circleFrontColor);\n }\n canvas.restore();\n }",
"public void init() {\n\t\tBitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.sb_thumb);\n\t\tLinearGradient colorGradient = new LinearGradient(0.f, 0.f, this.getMeasuredWidth() - bitmap.getWidth(), 0.f, new int[] { 0xFF000000,\n\t\t\t\t0xFF0000FF, 0xFF00FF00, 0xFF00FFFF, 0xFFFF0000, 0xFFFF00FF, 0xFFFFFF00, 0xFFFFFFFF }, null, Shader.TileMode.CLAMP);\n\t\tShapeDrawable shape = new ShapeDrawable(new RectShape(mContext));\n\t\tshape.getPaint().setShader(colorGradient);\n\t\tthis.setProgressDrawable(shape);\n\t\tthis.setMax(256 * 7 - 1);\n\t}",
"SimpleCircle() {\n\t\tradius = 1;\n\t}",
"public synchronized void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n if (Constants.l) {\n this.f = Color.parseColor(\"#f63d03\");\n } else {\n this.f = Color.parseColor(\"#ffffff\");\n }\n int width = getWidth() / 2;\n int height = getHeight() / 2;\n int i = width < height ? width : height;\n float f = this.g / 2.0f;\n this.c.setColor(this.e);\n this.c.setDither(true);\n this.c.setFlags(1);\n this.c.setAntiAlias(true);\n this.c.setStrokeWidth(this.g / 2.0f);\n this.c.setStyle(Style.STROKE);\n canvas.drawCircle((float) width, (float) height, ((float) i) - f, this.c);\n this.c.setColor(this.f);\n this.d.top = ((float) (height - i)) + f;\n this.d.bottom = ((float) (height + i)) - f;\n this.d.left = ((float) (width - i)) + f;\n this.d.right = ((float) (width + i)) - f;\n canvas.drawArc(this.d, -90.0f, getRateOfProgress() * 360.0f, false, this.c);\n canvas.save();\n }",
"private void ini_Progressbar()\r\n\t{\r\n\r\n\t\tfloat ref = UiSizes.that.getWindowHeight() / 13;\r\n\t\tCB_RectF CB_LogoRec = new CB_RectF(this.getHalfWidth() - (ref * 2.5f), this.getHeight() - ((ref * 5) / 4.11f) - ref, ref * 5,\r\n\t\t\t\t(ref * 5) / 4.11f);\r\n\r\n\t\t// CB_Logo = new Image(CB_LogoRec, \"CB_Logo\");\r\n\t\t// CB_Logo.setDrawable(new SpriteDrawable(atlas.createSprite(\"cachebox-logo\")));\r\n\t\t// this.addChild(CB_Logo);\r\n\r\n\t\tString VersionString = Global.getVersionString();\r\n\t\tTextBounds bounds = Fonts.getNormal().getMultiLineBounds(VersionString + Global.br + Global.br + Global.splashMsg);\r\n\t\tdescTextView = new Label(0, CB_LogoRec.getY() - ref - bounds.height, this.getWidth(), bounds.height + 10, \"DescLabel\");\r\n\t\t// HAlignment.CENTER funktioniert (hier) (noch) nicht, es kommt rechtsbündig raus\r\n\t\tdescTextView.setWrappedText(VersionString + Global.br + Global.br + Global.splashMsg);\r\n\t\tdescTextView.setHAlignment(HAlignment.CENTER);\r\n\t\tthis.addChild(descTextView);\r\n\r\n\t\tDrawable ProgressBack = new NinePatchDrawable(atlas.createPatch(\"btn-normal\"));\r\n\t\tDrawable ProgressFill = new NinePatchDrawable(atlas.createPatch(\"progress\"));\r\n\r\n\t\tfloat ProgressHeight = Math.max(ProgressBack.getBottomHeight() + ProgressBack.getTopHeight(), ref / 1.5f);\r\n\r\n\t\tprogress = new ProgressBar(new CB_RectF(0, 0, this.getWidth(), ProgressHeight), \"Splash.ProgressBar\");\r\n\r\n\t\tprogress.setBackground(ProgressBack);\r\n\t\tprogress.setProgressFill(ProgressFill);\r\n\t\tthis.addChild(progress);\r\n\r\n\t\tfloat logoCalcRef = ref * 1.5f;\r\n\r\n\t\tCB_RectF rec_Mapsforge_Logo = new CB_RectF(200, 50, logoCalcRef, logoCalcRef / 1.142f);\r\n\t\tCB_RectF rec_FX2_Logo = new CB_RectF(rec_Mapsforge_Logo);\r\n\t\tfloat w = logoCalcRef * 2.892655367231638f;\r\n\t\tCB_RectF rec_LibGdx_Logo = new CB_RectF(this.getHalfWidth() - (w / 2), 50, w, w);\r\n\r\n\t\trec_FX2_Logo.setX(400);\r\n\r\n\t\tLasifant = new LasifantAnimation(rec_LibGdx_Logo, \"LibGdx_Logo\");\r\n\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-1\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-2\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-3\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-4\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-5\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-6\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-7\"));\r\n\t\tLasifant.addLastFrame(atlas.createSprite(\"logo-8\"));\r\n\r\n\t\tLasifant.play();\r\n\r\n\t\tthis.addChild(Lasifant);\r\n\r\n\t}",
"public Circle() {\n this(0, 0, 1);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n \n setContentView(R.layout.progressbar);\n rectangleProgressBar=(ProgressBar)findViewById(R.id.rectangleprobar);\n CircleProgressBar=(ProgressBar)findViewById(R.id.circleProgressBar);\n mButton=(Button)findViewById(R.id.probutton);\n \n rectangleProgressBar.setIndeterminate(false); \n CircleProgressBar.setIndeterminate(false); \n \n mButton.setOnClickListener(new Button.OnClickListener()\n {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t rectangleProgressBar.setVisibility(View.VISIBLE); \n\t\t\t\t CircleProgressBar.setVisibility(View.VISIBLE); \n\t \n\t rectangleProgressBar.setMax(100); \n\t rectangleProgressBar.setProgress(0); \n\t CircleProgressBar.setProgress(0); \n\t \n\t //创建一个线程,每秒步长为增加,到100%时停止 \n\t Thread mThread = new Thread(new Runnable() { \n\t \n\t\t\t\t\t\tpublic void run() { \n\t \n\t for(int i=0 ; i < 20; i++){ \n\t try{ \n\t \tcount = (i + 1) * 5 ; \n\t Thread.sleep(1000); \n\t if(i == 19){ \n\t Message msg = new Message(); \n\t msg.what = STOP; \n\t mHandler.sendMessage(msg); \n\t break; \n\t }else{ \n\t Message msg = new Message(); \n\t msg.what = NEXT; \n\t mHandler.sendMessage(msg); \n\t } \n\t }catch (Exception e) { \n\t e.printStackTrace(); \n\t } \n\t } \n\t \n\t } \n\t }); \n\t mThread.start(); \n\t \n\t }});\n \n }",
"private void newCircle()\n {\n setMinimumSize(null);\n\n //Generate a new circle\n panel.generateNewCircle();\n\n //Calculate the circle properties and setup the text area with their values\n generateTextArea();\n\n //Repack the frame to fit everything perfectly\n pack();\n\n setMinimumSize(getSize());\n }",
"private void progressMode() {\n\t\t// lazily build the layout\n\t\tif (progressLayout == null) {\n\t\t\tprogressLayout = new DefaultVerticalLayout(true, true);\n\n\t\t\tprogressBar = new ProgressBar();\n\t\t\tprogressBar.setHeight(\"20px\");\n\t\t\tprogressLayout.add(progressBar);\n\n\t\t\tstatusLabel = new Text(\"\");\n\t\t\tprogressLayout.add(statusLabel);\n\t\t}\n\t\tprogressBar.setValue(0.0f);\n\t\tstatusLabel.setText(\"\");\n\n\t\tremoveAll();\n\t\tadd(progressLayout);\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tpdia = new ProgressDialog(mContext);\n\t\t\tpdia.setMessage(\"Loading Circles...\");\n\t\t\tpdia.show();\n\t\t\tsuper.onPreExecute();\n\t\t}",
"public String _setcirclecolor(int _nonvaluecolor,int _innercolor) throws Exception{\n_mcirclenonvaluecolor = _nonvaluecolor;\n //BA.debugLineNum = 61;BA.debugLine=\"mCircleFillColor = InnerColor\";\n_mcirclefillcolor = _innercolor;\n //BA.debugLineNum = 62;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 63;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public DrawingPanel(Color color, Color backColor)\r\n {\r\n\r\n /**********************************************************\r\n To be completed\r\n**********************************************************/\r\n\t currentColor = color;\r\n\t this.setBackground(backColor);\r\n\t currentX = 0;\r\n\t currentY = 0;\r\n\t moveX = 3;\r\n\t moveY = 3;\r\n\t diameter = 5;\r\n\t delay = 20;\r\n\t dotList = new ArrayList();\r\n\t MoveListener task = new MoveListener();\r\n\t timer = new Timer(delay, task);\r\n\t timer.start();\r\n }",
"public CircleComponent()\n {\n circles = new ArrayList<>();\n circleCounter = 0;\n\n }",
"private void setPenRadius() {\n\t}",
"public void initialize() {\n redCircle.setCenterX(100);\n redCircle.setCenterY(60);\n\n blueCircle.setCenterX(300);\n blueCircle.setCenterY(60);\n\n checkOverlap();\n\n }",
"private void drawTrack(Canvas canvas){\n if(trackEnabled){\n progressPaint.setShader(null);\n progressPaint.setColor(mTrackColor);\n if(fillEnabled) {\n progressPaint.setStyle(Paint.Style.FILL);\n initTrack(canvas, true);\n }else {\n progressPaint.setStyle(Paint.Style.STROKE);\n initTrack(canvas, false);\n\n }\n }\n }",
"public DrawingView(final Activity activity, Paint paint) {\n super(activity);\n this.mContext =activity;\n this.mPath = new Path();\n this.mBitmapPaint = new Paint(Paint.DITHER_FLAG);\n this.mLinePaint = paint;\n this.mCirclePath = new Path();\n }",
"public Circle(){}",
"public Circle(double r) {\n radius = r;\n color = \"red\";\n }",
"private void addCircle() {\n\t\tdouble r = getRadius();\n\t\tadd(new GOval(getWidth() / 2.0 - r, getHeight() / 2.0 - r, 2 * r, 2 * r));\n\t}",
"private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }",
"public void init() {\n\t\t\n\t\tmarkerCircle.setFilled(true);\n\t\t\n\t\tstartButton = new JButton(\"Start\"); \n\t\tadd(startButton, EAST);\n\t\t\n\t\tstopButton = new JButton(\"Stop\");\n\t\tadd(stopButton, EAST);\n\t\t\n\t\tflipDirection = new JButton(\"Change rotation\");\n\t\tadd(flipDirection, EAST);\n\t\t\n\t\tdoneWithFigure = new JButton(\"Next Figure\");\n\t\tadd(doneWithFigure, SOUTH);\n\t\t\n\t\tremoveLast = new JButton(\"Remove Figure\");\n\t\tadd(removeLast, SOUTH);\n\t\t\n\t\tclear = new JButton(\"Clear\");\n\t\tadd(clear, SOUTH);\n\t\t\n\t\tadd(new JLabel(\"Speed\"), EAST);\n\t\tspeedSlider = new JSlider(MIN_BREAK, MAX_BREAK, TIME_FACTOR);\n\t\tspeedSlider.addChangeListener(this);\n\t\tadd(speedSlider, EAST);\n\t\t\n\t\tadd(new JLabel(\"Red\"), EAST);\n\t\tredSlider = new JSlider(MIN_RGB, MAX_RGB, MIN_RGB);\n\t\tredSlider.addChangeListener(this);\n\t\tadd(redSlider, EAST);\n\t\t\n\t\tadd(new JLabel(\"Green\"), EAST);\n\t\tgreenSlider = new JSlider(MIN_RGB, MAX_RGB, MIN_RGB);\n\t\tgreenSlider.addChangeListener(this);\n\t\tadd(greenSlider, EAST);\n\t\t\n\t\tadd(new JLabel(\"Blue\"), EAST);\n\t\tblueSlider = new JSlider(MIN_RGB, MAX_RGB, MIN_RGB);\n\t\tblueSlider.addChangeListener(this);\n\t\tadd(blueSlider, EAST);\n\t\t\n\t\tJLabel spacer = new JLabel(\"\");\n\t\tadd(spacer, EAST);\n\t\t\n\t\tcolorBox = new GRect(0,0,COLOR_BOX_SIZE,COLOR_BOX_SIZE);\n\t\tcolorBox.setFilled(true);\n\t\tadd(colorBox);\n\t\t\n\t\tcenter = new JButton(\"Center Figure\");\n\t\tadd(center, EAST);\n\t\t\n\t\tliftPen = new JButton(\"Toggle Pen\");\n\t\tadd(liftPen, EAST);\n\t\t\n\t\tmakeItCool = new JButton(\"Make it Cool\");\n\t\tadd(makeItCool, SOUTH);\n\t\t\n\t\t\n\t\taddMouseListeners();\n\t\taddActionListeners();\n\t}",
"private void drawSelectedDot(Canvas canvas, float progress) {\n mPaint.setColor(\n getTransitionAdjustedColor(\n ColorUtils.blendARGB(mSelectedColor, mUnselectedColor, progress / 2)));\n float radius = MathUtils.lerp(mSelectedRadius, mUnselectedRadius, progress / 2);\n canvas.drawCircle(radius, 0, radius, mPaint);\n canvas.translate(radius * 2, 0);\n }",
"private void initPaint()\n {\n this.bubblePathPaint = new Paint();\n bubblePathPaint.setStyle(Paint.Style.FILL);\n bubblePathPaint.setColor(bubbleColor);\n// bubblePathPaint.setShadowLayer(shadowRadius, shadowOffsetX, shadowOffsetY, shadowColor);\n\n // Setup Paint for stroking the path.\n this.bubblePathOutlinePaint = new Paint();\n bubblePathOutlinePaint.setStyle(Paint.Style.STROKE);\n bubblePathOutlinePaint.setColor(bubbleOutlineColor);\n bubblePathOutlinePaint.setStrokeWidth(2.0f);\n }",
"public PXRadialGradient() {\n center = new PointF();\n }",
"public Circle(double r) {\n radius = r;\n color = \"red\";\n }",
"public Circle(){\r\n\t \t// System.out.println(\"Default constructor dipanggil.\");\r\n\t \tjejari = 1;\r\n\t \tx = 5;\r\n\t \tbilObjekWujud++;\r\n\t }",
"public Circle(double radius){\n\t\tradius =this.radius;\n\t\tcolor =\"Red\";\n\t}",
"private void setUp()\n {\n path = new Path();\n drawPaint = new Paint();\n brushSize = getResources().getInteger(R.integer.medium_size);\n lastBrushSize = brushSize;\n //initialize paint color\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n //initialize canvas background\n canvasPaint = new Paint(Paint.DITHER_FLAG);\n }",
"public void draw(){\n if(isVisible) {\n double diameter = calcularLado(area);\n double side = 2*diameter;\n Canvas circle = Canvas.canvas;\n circle.draw(this, color, \n new Ellipse2D.Double(xPosition, yPosition, \n (int)diameter, side));\n }\n }",
"@Override\n public void run() {\n drawBack(holder);\n drawClock();\n// drawCircle();\n }",
"private void drawDataPoint(Graphics g, int radius, int x, int y)\r\n/* 123: */ {\r\n/* 124: 99 */ g.fillOval(x - radius, y - radius, 2 * radius, 2 * radius);\r\n/* 125: */ }",
"public static void circle_progressbar(double percentage, double x_coordinate, double y_coordinate) \n {\n if(x_coordinate>100 || y_coordinate>100 || percentage >100 || percentage < 0) \n {\n System.out.println(\"Invalid Input\");\n }\n \n else {\n if(percentage == 0)\n System.out.println(\"BLUE\");\n \n else \n {\n double angle_percentage = Math.toDegrees(Math.atan2(x_coordinate - 50, y_coordinate - 50));\n if (angle_percentage < 0)\n angle_percentage+= 360;\n \n double bar_percentage = percentage*3.6;\n \n double dist_from_center= Math.pow((x_coordinate - 50),2) + Math.pow((x_coordinate - 50),2);\n //A point can be red only if it is inside of the circle\n if(angle_percentage <= bar_percentage && dist_from_center < 2500)\n {\n System.out.println(\"RED\");\n } \n \n else\n {\n System.out.println(\"BLUE\");\n }\n \n //Calculate the x-y coordinate to angle\n //then calculate that angle is what percentage of the circle\n //then if the given percentage >= angle percentage - RED\n //if the given percentage < angle percentage - BLUE\n } \n }\n }",
"private void setupDrawing(){\n brushSize = 1;\n lastBrushSize = brushSize;\n drawPath = new Path();\n drawPaint = new Paint();\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n canvasPaint = new Paint(Paint.DITHER_FLAG);\n }",
"@Override\r\n public void run() {\n chart = new PieChart();\r\n chart.setWidth(\"100px\");\r\n chart.setHeight(\"100px\");\r\n fp.add(chart);\r\n draw();\r\n }",
"public void begin() {\n int startSleep = 1000;\n int start1 = 50;\n int start2 = 120;\n int start3 = 350;\n \n\n // The canvas variable is inherited. We'll talk about this later\n // in the class. For now, whenever the API asks for a canvas\n // as a parameter, use myCanvas\n DrawingCanvas myCanvas = canvas; \n\n \n //Example thread creation to draw a circle \n Thread t1 = new DrawArc(start1, start1, canvas);\n catchSleep(startSleep); //make the primary thread sleep\n Thread t2 = new DrawArc1(start2, start2, canvas);\n catchSleep(startSleep); //make the primary thread sleep\n Thread t3 = new DrawArc2(0, 0, canvas);\n catchSleep(startSleep); //make the primary thread sleep\n Thread t4 = new DrawOval1(0, 0, canvas);\n catchSleep(startSleep); //make the primary thread sleep\n Thread t5 = new Bubbles(start1, start1, canvas);\n catchSleep(startSleep); //make the primary thread sleep\n t1.start();\n t2.start();\n t3.start();\n t4.start();\n t5.start();\n \n }",
"public void start() {\r\n\t\tif (animationFigure instanceof TrainFigure) {\r\n\t\t\t((TrainFigure) animationFigure).setBusyColor(org.eclipse.draw2d.ColorConstants.red);\r\n\t\t}\r\n\t\tcounter = 1;\r\n\t\t//notify Listeners\r\n\t\tanimationFigure.notifyAnimationListener(new AnimationStartedEvent(animationFigure, AnimationStartedEvent.BUSY_STARTED));\r\n\t\tthis.stopped=false;\r\n\t\tmap.getDisplay().asyncExec(this);\r\n\t}",
"public Searching6() {\r\n try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}\r\n catch (Exception e) {}\r\n initComponents();\r\n progBar = new JProgressBar(0, 100);\r\n jPanel2.add(progBar);\r\n progBar.setBounds(70, 10, 280, 20);\r\n new Thread(new thread1()).start();\r\n\r\n /*for (int i=0; i<=100; i++){ //Progressively increment variable i\r\n progBar.setValue(i); //Set value\r\n progBar.repaint();\r\n }*/\r\n }",
"private void init() {\n\n // Set up the paint for the pie slices\n mPiePaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mPiePaint.setStyle(Paint.Style.FILL_AND_STROKE);\n mPiePaint.setStrokeWidth(mLinesWidth);\n mPiePaint.setColor(mSegmentsColor);\n\n // Set up the paint for the lines\n mLinesPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mLinesPaint.setShadowLayer(mShadowRadius, 0, 0, Color.BLACK);\n mLinesPaint.setStyle(Paint.Style.STROKE);\n mLinesPaint.setColor(mLinesColor);\n mLinesPaint.setStrokeWidth(mLinesWidth);\n\n // Add a child view to draw the pie. Putting this in a child view\n // makes it possible to draw it on a separate hardware layer that rotates\n // independently\n mPieView = new PieView(getContext());\n addView(mPieView);\n mPieView.rotateTo(mPieRotation);\n\n // Set up an animator to animate the PieRotation property. This is used to\n // correct the pie's orientation after the user lets go of it.\n if (Build.VERSION.SDK_INT >= 11) {\n mAutoCenterAnimator = ObjectAnimator.ofInt(PieMenuView.this, \"PieRotation\", 0);\n }\n\n\n // Create a Scroller to handle the fling gesture.\n mScroller = new Scroller(getContext(), null, true);\n\n // The scroller doesn't have any built-in animation functions--it just supplies\n // values when we ask it to. So we have to have a way to call it every frame\n // until the fling ends. This code (ab)uses a ValueAnimator object to generate\n // a callback on every animation frame. We don't use the animated value at all.\n if (Build.VERSION.SDK_INT >= 11) {\n mScrollAnimator = ValueAnimator.ofFloat(0, 1);\n mScrollAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\n tickScrollAnimation();\n }\n });\n }\n\n // Create a gesture detector to handle onTouch messages\n mDetector = new GestureDetector(PieMenuView.this.getContext(), new GestureListener());\n\n // Turn off long press--this control doesn't use it, and if long press is enabled,\n // you can't scroll for a bit, pause, then scroll some more (the pause is interpreted\n // as a long press, apparently)\n mDetector.setIsLongpressEnabled(false);\n\n // In edit mode it's nice to have some demo data, so add that here.\n if (this.isInEditMode()) {\n addItem(R.mipmap.ic_launcher);\n addItem(R.mipmap.ic_launcher);\n addItem(R.mipmap.ic_launcher);\n }\n }",
"void startProgress();",
"private void init(final Context ct) {\n mBitmap = BitmapFactory.decodeResource(ct.getResources(), R.drawable.bg);\n\n mCirclePaint = new Paint();\n\n mCirclePaint.setColor(Color.YELLOW);\n mCirclePaint.setStrokeWidth(40);\n mCirclePaint.setStyle(Paint.Style.FILL);\n mCirclePaint.setFlags(Paint.ANTI_ALIAS_FLAG);\n \n }",
"private void doCircle()\n\t{\n\t\tubisenseData = new UbisenseMockupData();\n\t\tDecimalFormat df = new DecimalFormat(\"#0,00\");\n\n\t\telapsedTime = 0;\n\t\t\n\t\tubisenseData.setTagID(Helper.DEFAULT_TAG_ID);\n\t\tubisenseData.setUnit(Helper.UBISENSE_UNIT);\n\t\tubisenseData.setOntology(Helper.LP_ONTOLOGY_URL);\n\t\tubisenseData.setVersion(Helper.UBISENSE_VERSION);\n\t\tubisenseData.setId(\"\");\n\t\tubisenseData.setSendTime(sendTime);\n\n\t\tlong millis = startDate.getMillis();\n\t\tmillis += offset.toStandardDuration().getMillis();\n//\t\tmillis += parentOffset.toStandardDuration().getMillis();\n\t\t\n\t\t//Radianten des Winkels berechnen\n\t\tdouble radiant = Math.toRadians(arc);\n\t\t\n\t\t// Distanz d berechnen, die auf dem Kreis zurückgelegt werden soll\n\t\tdouble d = Math.PI * radius * (arc / 180);\n\t\t\n\t\t// Zeit t [s] berechnen, die für die Distanz d unter gegebener Geschwindigkeit benötigt wird.\n\t\tdouble t = d / toolSpeed;\n\t\tdouble steps = Math.ceil(t) +1;\n\n\t\t//Startkoordinaten berechnen\n\t\tint startX, startY;\n\t\tstartX = x1;\n\t\tstartY = y1 + radius;\n\t\t\n\t\twhile(steps > 0 && !terminate)\n\t\t{\n\t\t\tdouble x,y, currentTime=0, currentArc = 0;\n\t\t\tif (t != 0)\n\t\t\tcurrentTime = elapsedTime / t;\n\n\t\t\tcurrentArc = radiant * currentTime;\n\t\t\t\n\t\t\tx = (startX - x1) * Math.cos(currentArc) - (startY - y1) * Math.sin(currentArc) + x1;\n\t\t\ty = (startX - x1) * Math.sin(currentArc) + (startY - y1) * Math.cos(currentArc) + y1;\n\n\t\t\tubisenseData.setPosition(new Point3D(\tDouble.parseDouble(df.format(x)),\n\t\t\t \tDouble.parseDouble(df.format(y)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t1.6));\n\t\t\tubisenseData.setId(String.valueOf(Helper.getRandomInt()));\n\t\t\tubisenseData.setTime(millis + (long) (elapsedTime*SLEEP_INTERVAL));\n\t\t\t\n\t\t\tEntryEvent event = new EntryEvent(this);\n\t\t\tnotifyListeners(event);\n\t\t\telapsedTime++;\n\t\t\tif (elapsedTime > t)\n\t\t\t\telapsedTime = t;\n\t\t\t\n\t\t\tsteps--;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (speed > 0)\n\t\t\t\t\tThread.sleep(SLEEP_INTERVAL/speed);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void main (String[] args) {\n LinkedList<Double> yvalues = new LinkedList();\n Grapher grapher = new Grapher(StdDraw.BLACK, 50, 5000);\n\n double T = Double.parseDouble(args[0]);\n int rez = Integer.parseInt(args[1]);\n double base_radius = 1400;\n double base_speed = Math.PI / 64;\n \n //demos:\n Circle test = Circle.squareWave(base_radius, base_speed, rez);\n\n\n /*\n a = new Circle(base_radius, Math.PI / 64, 0, null);\n b = new Circle(base_radius / 3, 3 * base_speed, 0, a);\n c = new Circle(base_radius / 5, 5 * base_speed, 0, b);\n d = new Circle(base_radius / 7, 7 * base_speed, 0, c);\n e = new Circle(base_radius / 9, 9 * base_speed, 0, d);\n f = new Circle(base_radius / 11, 11 * base_speed, 0, e);\n \n /*\n a = new Circle(base_radius, base_speed, 0, null);\n b = new Circle(base_radius / 2, -2 * base_speed, 0, a);\n c = new Circle(base_radius / 3, 3 * base_speed, 0, b);\n d = new Circle(base_radius / 4, -4 * base_speed, 0, c);\n f = d;\n */\n \n\n //Standard Drawing section` 1\n StdDraw.enableDoubleBuffering();\n StdDraw.setCanvasSize(1400, 700);\n StdDraw.setXscale(-3000 , 11000);\n StdDraw.setYscale(-3500, 3500);\n \n\n Double time = 0.0;\n while (time < T) {\n if (yvalues.size() >= 199) {\n yvalues.removeLast();\n }\n yvalues.addFirst(test.end[1]);\n grapher.graph(yvalues, yvalues.size() - 1);\n test.takestep();\n test.draw();\n test.draw_line();\n //System.out.println(f.end[0] + \" \" + f.end[1]);\n time++;\n StdDraw.show();\n StdDraw.pause(20);\n StdDraw.clear();\n }\n }",
"@Override\r\n\tpublic void draw() {\n\t\tSystem.out.println(\"Circle Drawn\");\r\n\t}",
"public IterativeCoordinateDemo() {\n super(true, GeodesicDisplays.R2_ONLY, LogWeightings.list());\n // ---\n spinnerTotal.setList(Arrays.asList(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 50, 100));\n spinnerTotal.setValue(2);\n // spinnerTotal.addSpinnerListener(this::config);\n spinnerTotal.addToComponentReduced(timerFrame.jToolBar, new Dimension(50, 28), \"total\");\n // ---\n ManifoldDisplay geodesicDisplay = R2Display.INSTANCE;\n setGeodesicDisplay(geodesicDisplay);\n setBitype(Bitype.LEVERAGES1);\n actionPerformed(geodesicDisplay);\n addSpinnerListener(this);\n timerFrame.geometricComponent.addRenderInterfaceBackground(AxesRender.INSTANCE);\n }",
"public Circle(){\n }",
"public CircleViewer()\n {\n drawing = new CirclePanel();\n\n JFrame frame = new JFrame();\n frame.setTitle(\"Circle\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(WIDTH, HEIGHT);\n frame.add(drawing);\n frame.setVisible(true);\n }",
"public void setCircleProgressColor(int color) {\r\n\t\tmCircleProgressColor = color;\r\n\t\tmCircleProgressPaint.setColor(mCircleProgressColor);\r\n\t\tinvalidate();\r\n\t}",
"public LED(int x, int y, int radius, int color, Graphics g)\n {\n // variablen instanzieren\n g2d = (Graphics2D) g;\n \n //LED instanzieren\n g.setColor(new Color(color));\n g.fillOval(x, y, radius, radius);\n }",
"public void drawStepsVisualization(){\n\n visualization = new ProgressBar(context,null,android.R.attr.progressBarStyleHorizontal);\n visualization.setMax(numberOfSteps);\n visualization.setProgress(startProgressAt);\n visualization.getProgressDrawable().setColorFilter(Color.GRAY, PorterDuff.Mode.SRC_IN);\n\n this.addView(visualization);\n\n }",
"public Circle(double r) {\n this.r = r;\n this.center = new Point(0,0);\n }",
"public Circle(double r) {\n this.r = r;\n }",
"protected void onDraw(Canvas canvas) {\r\n\r\n\r\n super.onDraw(canvas);\r\n Paint myPaint = new Paint();\r\n\r\n myPaint.setColor(Color.rgb(0, 0, 0));\r\n myPaint.setStrokeWidth(1);\r\n\r\n Paint myPaint2 = new Paint();\r\n myPaint2.setColor(Color.rgb(0, 0, 255));\r\n myPaint2.setStrokeWidth(1);\r\n\r\n canvas.drawOval(this.oval, myPaint2);\r\n canvas.drawCircle(this.x , this.y , this.radius, myPaint);\r\n\r\n }",
"public Circle(int x, int y, int r, Color c) {\n super(x-r,y-r);\n color = c;\n name = \"Circle\";\n width = 2*r;\n height = 2*r;\n radius = r;\n }",
"@Override\n\tpublic void init() {\n\t\tcolorSpeed = new GenericKnob(0.05f, scale(50), \"Color rotate speed\");\n\t\tbassBounce = new GenericKnob(0.7f, scale(50), \"Bass Bounce\");\n\t\trequestUserControl(colorSpeed);\n\t\trequestUserControl(bassBounce);\n\t\t\n\t\t// Set up a nice jazzy gradient!\n\t\tColor purple = new Color(255, 0, 128);\n\t\tColor nightBlue = new Color(0, 14, 122);\n\t\tgradient = new RGBGradientCompoundLinear(new Color[]{Color.BLUE, purple, nightBlue, Color.BLACK, Color.BLUE}, new double[]{0.0, 0.25, 0.5, 0.75, 1.0});\n\t\t\n\t\t\n\t}",
"public void Draw(Graphics g)\n/* */ {\n/* 55 */ g.setColor(this.m_color);\n/* */ \n/* 57 */ Point prevPt = new Point(0, 0);Point currPt = new Point(0, 0);\n/* */ \n/* 59 */ for (double t = 0.0D; t < 1.01D; t += this.m_tValue) {\n/* 60 */ ptFromTVal(t, currPt);\n/* */ \n/* 62 */ if (t == 0.0D) {\n/* 63 */ prevPt.x = currPt.x;\n/* 64 */ prevPt.y = currPt.y;\n/* */ }\n/* */ \n/* 67 */ g.drawLine(prevPt.x, prevPt.y, currPt.x, currPt.y);\n/* */ \n/* 69 */ if (this.m_showTPoints) {\n/* 70 */ g.fillOval(currPt.x - this.PT_RADIUS, currPt.y - this.PT_RADIUS, this.PT_DIAMETER, this.PT_DIAMETER);\n/* */ }\n/* */ \n/* 73 */ prevPt.x = currPt.x;\n/* 74 */ prevPt.y = currPt.y;\n/* */ }\n/* */ }",
"public FilledCircleState1(JVDraw context) {\n\t\tsuper(context);\n\t}",
"private void init() {\n\n this.paint.setStyle(Paint.Style.FILL);\n this.mBorder.setStyle(Paint.Style.STROKE);\n this.mBorder.setColor(Color.GRAY);\n this.mBorder.setStrokeWidth(BORDER_STROKE);\n\n }",
"public Circle(double radio) {\n\n super(\"circle\");\n this.radio=radio;\n }",
"public Circle(double r)\r\n\t{\r\n\t\tradius=r;\r\n\t}",
"public void draw() {\n\t\tp.pushStyle();\n\t\t{\n\t\t\tp.rectMode(PConstants.CORNER);\n\t\t\tp.fill(360, 0, 70, 180);\n\t\t\tp.rect(60f, 50f, p.width - 110f, p.height * 2f * 0.33f - 50f);\n\t\t\tp.rect(60f, p.height * 2f * 0.33f + 50f, p.width - 110f, p.height * 0.33f - 130f);\n\t\t}\n\t\tp.popStyle();\n\n\t\tlineChart.draw(40f, 40f, p.width - 80f, p.height * 2f * 0.33f - 30f);\n\t\tlineChart2.draw(40f, p.height * 2f * 0.33f + 45f, p.width - 80f, p.height * 0.33f - 110f);\n\t\t//p.line(x1, y1, x2, y2);\n\n\t}",
"private void drawCircle(GraphicsContext gc, double x, double y) {\r\n GraphicsContext gc1 = myCanvas.getGraphicsContext2D();\r\n gc1.setFill(randomColor());\r\n gc1.fillOval(x - 20, y - 20, 40, 40);\r\n }",
"@Override\n\tpublic void paintComponent(Graphics g){\n\t\tsuper.paintComponent(g);\n\t\tanimateFace((int)circle.x, (int)circle.y, (int)circle2.x, (int)circle2.y);\n\t\tdrawFace(g);\n\t}",
"public void drawCircle(Graphics g, int x, int y, int rad) {\n if (n == 5) {\n g.fillOval(x+25, y+25, rad, rad);\n }else if (n==6) {\n g.fillOval(x+18, y+18, rad, rad);\n }else {\n g.fillOval(x+14, y+14, rad, rad);\n }\n }",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"public Circle(SelectedColor color) {\n super(Name.Circle, color);\n\n Log.i(\"Circle\",\"Created a \" + color + \" Circle\");\n //Need getcolor() to pick random\n //Maybe keep all colors random at create time, then when we add them to data struc\n //we change one of the colors depending on \"correct shape\"\n }",
"public Circle(int x, int y) {\n\t \n\tSystem.out.println(\"Circel constructor called.\"); \n \n\tthis.X=x;\n\tthis.Y=y;\n}",
"public int getCircleProgressColor() {\r\n\t\treturn mCircleProgressColor;\r\n\t}"
] |
[
"0.69545275",
"0.65728354",
"0.6561339",
"0.6555484",
"0.64372915",
"0.63642585",
"0.6316243",
"0.630137",
"0.628489",
"0.62739444",
"0.62737083",
"0.6252322",
"0.6220512",
"0.6205243",
"0.62028086",
"0.61951643",
"0.61924034",
"0.6169767",
"0.61612433",
"0.6117058",
"0.61038285",
"0.6095876",
"0.60917825",
"0.6079206",
"0.6058525",
"0.604214",
"0.6034786",
"0.6022237",
"0.60125566",
"0.6006812",
"0.6003628",
"0.5999963",
"0.59804827",
"0.59757084",
"0.5969446",
"0.5965468",
"0.5958685",
"0.59389645",
"0.59367937",
"0.5927219",
"0.5924174",
"0.59232384",
"0.5921231",
"0.59196687",
"0.5915103",
"0.59084547",
"0.5907776",
"0.58953404",
"0.5875885",
"0.5863942",
"0.58633417",
"0.58550274",
"0.58479893",
"0.58315676",
"0.5821164",
"0.58106714",
"0.5799294",
"0.57816815",
"0.5780994",
"0.5780228",
"0.5775311",
"0.5764681",
"0.57639766",
"0.57589203",
"0.57437456",
"0.571855",
"0.57133615",
"0.57069683",
"0.56862026",
"0.5683584",
"0.5668391",
"0.56661224",
"0.5666062",
"0.565447",
"0.5652278",
"0.564849",
"0.56401867",
"0.56392944",
"0.5634381",
"0.5632021",
"0.5622786",
"0.56169844",
"0.5598883",
"0.55938816",
"0.55769885",
"0.55748826",
"0.5559474",
"0.5559469",
"0.5557928",
"0.55570996",
"0.5552176",
"0.5548839",
"0.55481964",
"0.5538383",
"0.55320096",
"0.55296713",
"0.55245703",
"0.55223507",
"0.5519289",
"0.55188465"
] |
0.70370185
|
0
|
the interface to help get the value of progress moving
|
public interface CircleProgressUpdateListener{
void onCircleProgressStart(View view);
void onCircleProgressUpdate(View view, float progress);
void onCircleProgressFinished(View view);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getProgress();",
"@FloatRange(from = 0, to = 1) float getProgress();",
"public Double getProgress() {\r\n\treturn progress;\r\n}",
"int getProgress(int index);",
"int getProgress(int index);",
"int getProgress(int index);",
"public int getProgress(){\n return -1;\n }",
"double progress(double val)\n\t{\n\t\treturn val * linkDirection;\n\t}",
"public Double getProgressPercent();",
"public interface ProgressEvent\r\n {\r\n \tpublic void progressEvent(double value, double total);\r\n }",
"public float getProgress() {\r\n if (start == end) {\r\n return 0.0f;\r\n } else {\r\n return Math.min(1.0f, (pos - start) / (float)(end - start));\r\n }\r\n }",
"public void onProgress(int pos);",
"public int progress() {\n return _progress;\n }",
"public DoubleExpression getProgress()\n {\n return progress;\n }",
"public interface ProgressListener\n{\n\t/**\n\t * Set the progress level to a new value, which must be between 0.0f and 1.0f\n\t * (including both of these values).\n\t * You should not call this method with a value lower than any value you've set\n\t * before.\n\t * However, this is not checked.\n\t * @param progress the degree of progress as a value between 0.0f and 1.0f\n\t * @throws IllegalArgumentException if the float argument is not in the mentioned interval\n\t */\n\tvoid setProgress(float progress);\n\n\t/**\n\t * Sets a new progress level.\n\t * If an operation consists of totalItems steps, which are numbered from 0 to\n\t * totalItems - 1, this method can be called after the completion of each step.\n\t * <p>\n\t * Example: if there are three steps and the first one is done, the parameters\n\t * must be 0 and 3, which will indicated 33% completion.\n\t * Parameters 1 and 3 mean 66%, 2 and 3 100%.\n\t * If you use 3 and 3, an IllegalArgumentException will be thrown.\n\t * <p>\n\t * Computes <code>(float)(zeroBasedIndex + 1) / (float)totalItems</code> and calls\n\t * {@link #setProgress(float)} with that value.\n\t *\n\t * @param zeroBasedIndex the index of the step that was just completed\n\t * @param totalItems the number of steps in this operation\n\t * @throws IllegalArgumentException if the parameters don't match the above criteria\n\t */\n\tvoid setProgress(int zeroBasedIndex, int totalItems);\n}",
"void progress(int pUnitsCompleted);",
"public void progressMade();",
"public float getProgress() {\n // Depends on the total number of tuples\n return 0;\n }",
"public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }",
"public float getProgress() throws IOException {\n if (end == start) {\n return 0.0f;\n } else {\n return Math.min(1.0f, (in.getPosition() - start) / (float)(end - start));\n }\n }",
"public Long getProgressDone();",
"public int getProgress() {\n return Math.round(mProgress);\n }",
"public float getProgressDelta() {\n return mProgressDelta;\n }",
"public float getProgressDelta() {\n return mProgressDelta;\n }",
"@Override\n\tpublic int estimateCurrentProgress() {\n\t\treturn counter.getCurrent();\n\t}",
"public int getProgress() {\n\t\treturn mProgress;\n\t}",
"@Override\n public float getProgress() throws IOException {\n return in.getProgress();\n }",
"public String getProgress() {\n return this.progress;\n }",
"protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}",
"public int getProgress() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return -1;\n \n int num = (int)((System.currentTimeMillis()-startTime)*100/d);\n if(num>=100) num=99;\n return num;\n }",
"void onProgress(float progress);",
"static public interface ProgressListener {\n /**\n * Deve retornar um valor entre 0 e 100 informando o percentual do progresso\n * alcançado.\n * @return Deve retornar um valor entre 0 e 100 informando o percentual do \n * progresso alcançado.\n */\n public byte onProgress();\n }",
"public final long getCurrentProgress() {\n /*\n r9 = this;\n int r0 = r9.getState()\n r1 = 1\n r2 = 0\n if (r0 == r1) goto L_0x0012\n r1 = 2\n if (r0 == r1) goto L_0x0019\n r1 = 3\n if (r0 == r1) goto L_0x0014\n r1 = 4\n if (r0 == r1) goto L_0x0014\n L_0x0012:\n r0 = r2\n goto L_0x0032\n L_0x0014:\n long r0 = r9.getTargetProgress()\n goto L_0x0032\n L_0x0019:\n java.lang.String r0 = \"current_value\"\n long r0 = r9.getLong(r0)\n java.lang.String r4 = \"quest_state\"\n long r4 = r9.getLong(r4)\n r6 = 6\n int r8 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))\n if (r8 == 0) goto L_0x0032\n java.lang.String r4 = \"initial_value\"\n long r4 = r9.getLong(r4)\n long r0 = r0 - r4\n L_0x0032:\n java.lang.String r4 = \"MilestoneRef\"\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 >= 0) goto L_0x003e\n java.lang.String r0 = \"Current progress should never be negative\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n r0 = r2\n L_0x003e:\n long r2 = r9.getTargetProgress()\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 <= 0) goto L_0x004f\n java.lang.String r0 = \"Current progress should never exceed target progress\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n long r0 = r9.getTargetProgress()\n L_0x004f:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.games.quest.zzb.getCurrentProgress():long\");\n }",
"private void procUpdatePosition(int position) {\n //log_d(\"procUpdatePosition: \" + position);\n\n float ratio = 0;\n if( mDuration > 0 ) {\n ratio = (float)position / (float)mDuration;\n }\n\n int progress = (int)(MAX_PROGRESS * ratio);\n setSeekbarProgress(progress);\n\n}",
"public interface solveProgress {\n\n public void updateProgress(SeekBar seekBar);\n}",
"public Progress progress() {\n return _progress;\n }",
"@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic float getProgress() throws IOException, InterruptedException {\n\t\treturn 0;\n\t}",
"public float getProgress() throws IOException {\r\n\t\tif (start == totalend) {\r\n\t\t\treturn 0.0f;\r\n\t\t} else {\r\n\t\t\treturn Math.min(1.0f, ((getFilePosition() - start) + finishLen) / (float) totalend);\r\n\t\t}\r\n\t}",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public void onProgressUpdate(int numRouleau,String prochain);",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"public int getProgress(int index) {\n return progress_.get(index);\n }",
"String getProgressString();",
"public Long getProgressTotalToDo();",
"public float getProgress() {\r\n\t\treturn ((float) dDownloaded / dFileSize);\r\n\t}",
"public interface ResultProgressHandle {\n \n /**\n * Set the current position and total number of steps. Note it is\n * inadvisable to be holding any locks when calling this method, as it\n * may immediately update the GUI using \n * <code>EventQueue.invokeAndWait()</code>.\n * \n * @param currentStep the current step in the progress of computing the\n * result.\n * @param totalSteps the total number of steps. Must be greater than\n * or equal to currentStep.\n */\n public abstract void setProgress (int currentStep, int totalSteps);\n \n /** \n * Set the current position and total number of steps, and description \n * of what the computation is doing. Note it is\n * inadvisable to be holding any locks when calling this method, as it\n * may immediately update the GUI using \n * <code>EventQueue.invokeAndWait()</code>. \n * @param description Text to describe what is being done, which can\n * be displayed in the UI.\n * @param currentStep the current step in the progress of computing the\n * result.\n * @param totalSteps the total number of steps. Must be greater than\n * or equal to currentStep.\n */\n public abstract void setProgress (String description, int currentStep, int totalSteps);\n \n /**\n * Set the status as \"busy\" - a rotating icon will be displayed instead\n * of a percent complete progress bar.\n * \n * Note it is inadvisable to be holding any locks when calling this method, as it\n * may immediately update the GUI using \n * <code>EventQueue.invokeAndWait()</code>. \n * @param description Text to describe what is being done, which can\n * be displayed in the UI.\n */\n public abstract void setBusy (String description);\n \n /**\n * Call this method when the computation is complete, and pass in the \n * final result of the computation. The method doing the computation\n * (<code>DeferredWizardResult.start()</code> or something it \n * called) should exit immediately after calling this method. If the\n * <code>failed()</code> method is called after this method has been\n * called, a runtime exception may be thrown.\n * @param result the Object which was computed, if any.\n */ \n public abstract void finished(Object result);\n /**\n * Call this method if computation fails. The message may be some text\n * describing what went wrong, or null if no description.\n * @param message The text to display to the user. The method \n * doing the computation (<code>DeferredWizardResult.start()</code> or something it \n * called). If the <code>finished()</code> method is called after this\n * method has been called, a runtime exception may be thrown.\n * should exit immediately after calling this method.\n * It is A description of what went wrong, or null.\n * @param canNavigateBack whether or not the Prev button should be \n * enabled.\n */ \n public abstract void failed (String message, boolean canNavigateBack);\n \n /**\n * Add the component to show for the progress display to the instructions panel. \n */\n public abstract void addProgressComponents (Container panel);\n \n /**\n * Returns true if the computation is still running, i.e., if neither finished or failed have been called.\n *\n * @return true if there is no result yet.\n */\n public boolean isRunning();\n}",
"public abstract void setProgress (int currentStep, int totalSteps);",
"int getMove1Value();",
"@Override public double getProgress(java.lang.CharSequence uuid) throws android.os.RemoteException\n{\nandroid.os.Parcel _data = android.os.Parcel.obtain();\nandroid.os.Parcel _reply = android.os.Parcel.obtain();\ndouble _result;\ntry {\n_data.writeInterfaceToken(DESCRIPTOR);\nif ((uuid!=null)) {\n_data.writeInt(1);\nandroid.text.TextUtils.writeToParcel(uuid, _data, 0);\n}\nelse {\n_data.writeInt(0);\n}\nmRemote.transact(Stub.TRANSACTION_getProgress, _data, _reply, 0);\n_reply.readException();\n_result = _reply.readDouble();\n}\nfinally {\n_reply.recycle();\n_data.recycle();\n}\nreturn _result;\n}",
"@Override protected void onProgressUpdate(Integer... vals) {\n updateProgressBar(vals[0].intValue());\n }",
"public interface OnProgressChangeListener {\n void onProgressChange(float smoothProgress, float targetProgress);\n }",
"public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }",
"public float getProgress() throws IOException {\n return currentRow / (endRow - header);\n }",
"void startProgress();",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"String progressMessage();",
"public abstract void onProgress(short percentage, long downloadedSoFar);",
"@Override\n\t\tpublic float getProgress() throws IOException {\n\t\t\treturn 0;\n\t\t}",
"public int getProgress() {\n\t\treturn activeQuest.getThreshold() - getRemaining();\n\t}",
"public double getProgress(java.lang.CharSequence uuid) throws android.os.RemoteException;",
"public GameState getGameProgress() {\r\n return gameProgress;\r\n }",
"public float getProgress(float ticks)\n {\n if (ticks > 1.0F)\n {\n ticks = 1.0F;\n }\n\n return this.lastProgress + (this.progress - this.lastProgress) * ticks;\n }",
"public interface IComputationProgress {\n\n\t\n\tpublic void _setAlgoExecution(IAlgoExecution exec);\n\n\tpublic IAlgoExecution getAlgoExecution();\n\n\t/**\n\t * \tThe timestamp of the end of the computation, or null \n\t * if not finished\n\t */\n\tpublic Long getTimestampEnd();\n\t\n\t/**\n\t * The timestamp of the beginning of the computation,\n\t * or null if not started\n\t * @return\n\t */\n\tpublic Long getTimestampStart();\n\t \n\tpublic UniqueTimestamp getTimestampCreation();\n\n\t/**\n\t * Returns the duration of the task in milliseconds,\n\t * or null if not available (either not started or not ended)\n\t * @return\n\t */\n\tpublic Long getDurationMs();\n\t\n\t/**\n\t * Returns the count of threads used for computation\n\t * @return\n\t */\n\tpublic int getThreadUsed();\n\t\n\t/**\n\t * Returns true if the progress can be monitored (like 1%, 2%...100%)\n\t * @return\n\t */\n\tpublic boolean hasProgress();\n\t\n\t/**\n\t * Returns the progress of the computation as a percentage;\n\t * Returns null if not progress known.\n\t * @return\n\t */\n\tpublic Double getProgressPercent();\n\t\n\t/**\n\t * Returns the total iterations to be run;\n\t * not that this number could evolve during the computation !\n\t * @return\n\t */\n\tpublic Long getProgressTotalToDo();\n\t\n\t/**\n\t * Returns the total iterations made;\n\t * always less than getProgressTotalToDo()\n\t * @return\n\t */\n\tpublic Long getProgressDone();\n\t\n\t/**\n\t * Returns the algo which actually computes everything.\n\t * @return\n\t */\n\tpublic IAlgo getAlgo();\n\t\n\tpublic void setProgressTotal(Long total);\n\t\n\tpublic void setProgressMade(Long total);\n\t\n\tpublic void setProgressTotal(Integer total);\n\t\n\tpublic void setProgressMade(Integer total);\n\t\n\tpublic void incProgressMade(Long inc);\n\t\n\tpublic void incProgressMade(Integer inc);\n\t\n\tpublic void incProgressMade();\n\t\n\tpublic ComputationState getComputationState();\n\t\n\tpublic void setComputationState(ComputationState state);\n\t\n\tpublic void addListener(IComputationProgressSimpleListener listener);\n\tpublic void removeListener(IComputationProgressSimpleListener listener);\n\t\n\tpublic void addDetailedListener(IComputationProgressDetailedListener listener);\n\tpublic void removeDetailedListener(IComputationProgressDetailedListener listener);\n\t\n\t\n\t/**\n\t * Defines a current activity\n\t * @param name\n\t */\n\tpublic void setCurrentTaskName(String name);\n\t\n\n\tpublic String getCurrentTaskName();\n\t\n\tpublic void clean();\n}",
"public int getStateProgress() {\n return theStateProgress;\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.Progress getProgress() {\n return progress_ == null ? com.clarifai.grpc.api.Progress.getDefaultInstance() : progress_;\n }",
"private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }",
"public ResultStatus getExecutionProgressStatus();",
"int getMove2Value();",
"@Override\n\tpublic void progress(int arg0) {\n\t\tm_progress = arg0 / 10;\n\t\t//Main.log(TAG, \"progress : \" + m_progress + \"%\");\n\t}",
"void onProgress(long bytesTransferred);",
"void setProgress(float progress);",
"protected abstract void mo3469a(ProgressBar progressBar);",
"@Override\n\tpublic void onProgressUpdate() {\n\n\t}",
"@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}",
"void showProgress();",
"public void setProgress(int value);",
"public DoubleBinding progressProperty() {\n return progress;\n }",
"public interface Progress {\n\n\t/**\n\t * @return the task name, may be <code>null</code>\n\t */\n\tpublic String getTaskName();\n\n\t/**\n\t * @return the name of the current subtask, may be <code>null</code>\n\t */\n\tpublic String getSubTask();\n\n\t/**\n\t * @return if the progress is indeterminate\n\t */\n\tpublic boolean isIndeterminate();\n\n\t/**\n\t * @return the already worked work units, should be ignored if\n\t * {@link #isIndeterminate()} is <code>true</code>\n\t */\n\tpublic int getWorked();\n\n\t/**\n\t * @return the total work units, should be ignored if\n\t * {@link #isIndeterminate()} is <code>true</code>\n\t */\n\tpublic int getTotalWork();\n\n\t/**\n\t * @return if the job/task is canceled\n\t */\n\tpublic boolean isCanceled();\n\n\t/**\n\t * Cancel the job/task. Behavior on cancel depends on the implementation of\n\t * job/task.\n\t */\n\tpublic void cancel();\n\n}",
"@Override\n protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"public interface OnProgressListener {\n void onProgress(int progress);\n}",
"int getProgressCount();",
"int getProgressCount();",
"int getProgressCount();",
"java.util.List<java.lang.Integer> getProgressList();",
"java.util.List<java.lang.Integer> getProgressList();",
"java.util.List<java.lang.Integer> getProgressList();",
"@Override\n\tprotected void onProgressUpdate(Integer... values) {\n\t}",
"@java.lang.Override\n public com.clarifai.grpc.api.ProgressOrBuilder getProgressOrBuilder() {\n return getProgress();\n }",
"@Override\n public double getValue() {\n return currentLoad;\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"public void increment() { this.progressBar.setValue(++this.progressValue); }",
"@Override\n public void update(final Progress progress) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n progressBar.setValue(progress.getIntPercentage());\n progressField.setText(roundToSingleDigit(progress.getPercentage()) + \"%\");\n }\n });\n }",
"boolean requestProgress(double progress, ObjectIdentifier oid, PropertyIdentifier pid, UnsignedInteger pin,\n Encodable value);",
"@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }"
] |
[
"0.7809229",
"0.7339623",
"0.7287397",
"0.72453606",
"0.72453606",
"0.72453606",
"0.7196739",
"0.71023387",
"0.7093457",
"0.7064715",
"0.70618606",
"0.70302063",
"0.7003985",
"0.6998165",
"0.69895536",
"0.6970203",
"0.69038916",
"0.6902803",
"0.6861007",
"0.68564236",
"0.68543327",
"0.6849568",
"0.6825558",
"0.6825558",
"0.6819775",
"0.6797847",
"0.67462707",
"0.6745112",
"0.67210245",
"0.6717679",
"0.6716132",
"0.6712591",
"0.66831696",
"0.66814435",
"0.6660046",
"0.663665",
"0.65797186",
"0.65797186",
"0.65450215",
"0.6521036",
"0.6521036",
"0.6521036",
"0.6504899",
"0.6495493",
"0.6495493",
"0.6495493",
"0.64821476",
"0.6465316",
"0.6461716",
"0.64576024",
"0.6448858",
"0.6435117",
"0.642892",
"0.6416147",
"0.6415807",
"0.6404113",
"0.64031476",
"0.64024955",
"0.64004225",
"0.6388751",
"0.6383892",
"0.63799906",
"0.63795125",
"0.6365937",
"0.63639486",
"0.63545626",
"0.6352684",
"0.6328969",
"0.6325479",
"0.63198394",
"0.6311882",
"0.6303536",
"0.62640756",
"0.62619203",
"0.6258241",
"0.6254957",
"0.6225484",
"0.621636",
"0.6206655",
"0.62065035",
"0.6203328",
"0.6203",
"0.61999524",
"0.6190159",
"0.6190159",
"0.61884946",
"0.6184624",
"0.6184624",
"0.6184624",
"0.6179876",
"0.6179876",
"0.6179876",
"0.6171729",
"0.61708546",
"0.6158553",
"0.6145403",
"0.6145403",
"0.6144003",
"0.6138301",
"0.61187315",
"0.6117515"
] |
0.0
|
-1
|
set the progress update listener for progress view
|
public void setProgressViewUpdateListener(CircleProgressUpdateListener listener){
this.updateListener = listener;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}",
"protected void onProgressUpdate(String... progress) {\n\t\t\t\t\t\t// Set progress percentage\n\t\t\t\t\t\tprgDialog.setProgress(Integer.parseInt(progress[0]));\n\t\t\t\t\t}",
"public void addProgressListener(ProgressListener pl);",
"void onProgress(float progress);",
"protected void onProgressUpdate(Integer... progress) {\n\t\t}",
"public void setUpdateProgressListener(UpdateProgressListener listener) {\n UpdateService.this.setUpdateProgressListener(listener);\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(int progress) {\n\n\t\t\t}",
"@Override\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tloadingView.setProgress(values[0]);\n\t\t}",
"public void addProgressListener(ProgressListener pol);",
"protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n\tpublic void onProgressUpdate() {\n\n\t}",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n if (mProgressDialog != null) {\n mProgressDialog.setProgress(progress[0]);\n }\n }",
"@Override protected void onProgressUpdate(Integer... vals) {\n updateProgressBar(vals[0].intValue());\n }",
"@Override\n public void onProgressUpdate(Integer... progress)\n {\n _dialog.setProgress(progress[0]);\n }",
"public void onProgress(int pos);",
"@Override\r\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"void setProgress(float progress);",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progressBar.setProgress(values[0]);\n }",
"@Override\n public void update(final Progress progress) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n progressBar.setValue(progress.getIntPercentage());\n progressField.setText(roundToSingleDigit(progress.getPercentage()) + \"%\");\n }\n });\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n ProgressBar pbFileIO = (ProgressBar)findViewById(R.id.pbFileIO);\n pbFileIO.setProgress(progress[0]);\n }",
"protected void onProgressUpdate(Integer... progress){\n\t Utils.logThreadSignature(this.tag);\n\t this.reportThreadSignature();\n\n\t //will be called multiple times\n\t //triggered by onPostExecute\n\t Integer i = progress[0];\n\t r.reportBack(tag, \"Progress:\" + i.toString());\n\t pd.setProgress(i);\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n\n // Do things like update the progress bar\n }",
"public void onProgressChanged(WebView view, int progress) {\n\t\t\t\tWeb.this.setProgress(progress * 100);\n\t\t\t}",
"void onShowProgress();",
"public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }",
"public void updateProgress(int progress) {\n\t\tif (getView() != null) {\n\t\t\tProgressBar listProgress = (ProgressBar) getView().findViewById(\n\t\t\t\t\tR.id.severity_list_progress);\n\t\t\tlistProgress.setProgress(progress);\n\t\t}\n\t}",
"public void setProgress(float progress) {\n currentProgress = progress;\n callback.onPercentChanged(progress);\n for (StateOfViews it : mappedViews) {\n it.startV.setX(it.origDimens.x + (it.endV.getX() - it.origDimens.x) * progress);\n it.startV.setY(it.origDimens.y + (it.endV.getY() - it.origDimens.y) * progress);\n it.startV.getLayoutParams().width = (int) (it.origDimens.width + ((it.endV.getWidth() - it.origDimens.width) * progress));\n it.startV.getLayoutParams().height = (int) (it.origDimens.height + ((it.endV.getHeight() - it.origDimens.height) * progress));\n it.startV.requestLayout();\n }\n }",
"void setProgress(int progress);",
"void setProgress(int progress);",
"private void updateProgress(int progress) {\n if (myHost != null && progress != previousProgress) {\n myHost.updateProgress(progress);\n }\n previousProgress = progress;\n }",
"protected void onProgressUpdate(String fileName, Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n imageProvider.setUploading_status((float) progress[0]);\n // updating progress bar value\n if(progressBar != null) {\n if(progress[0] >= 100 && imageProvider.getUploaded()) {\n progressBar.setVisibility(View.INVISIBLE);\n }\n progressBar.setProgress(progress[0]);\n }\n if(progress[0] >= 100 && haze!= null && imageProvider.getUploaded()){\n haze.setAlpha(0f);\n }\n if(progress[0] >= 100 && refreshImageButton!=null && !imageProvider.getUploaded()){\n refreshImageButton.setVisibility(View.INVISIBLE);\n }\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n protected void onProgressUpdate(Integer... values) {\n super.onProgressUpdate(values);\n\n progressBar.setProgress(values[0].intValue());\n\n }",
"private void updateRunnable() {\n updateSeekBar = new Runnable() {\n @Override\n public void run() {\n playerSeekBar.setProgress(mediaPlayer.getCurrentPosition());\n seekBarHandler.postDelayed(this, 500);\n }\n };\n }",
"public interface OnProgressChangeListener {\n void onProgressChange(float smoothProgress, float targetProgress);\n }",
"public void onProgressUpdate(int numRouleau,String prochain);",
"public void run() {\n\t\t\t\t\tmHandler.post(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tprogressbar.setProgress(Integer\r\n\t\t\t\t\t\t\t\t\t.parseInt(tvsp.progress));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t}",
"public static interface ProgressListener {\n\n\t\tpublic void onProgress(float progress);\n\n\t}",
"@Override\n protected void onProgressUpdate(Integer... values) {\n progress.setVisibility(View.VISIBLE);\n progress.setProgress(values[0]);\n super.onProgressUpdate(values);\n }",
"@Override\n public void onProgress(long downloaded, long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }",
"public static void updateProgressBar() {\r\n mHandler.postDelayed(mUpdateTime, 100);\r\n }",
"private void updateProgress(int progress) {\n if (myHost != null) {\n myHost.updateProgress(progress);\n } else {\n System.out.println(\"Progress: \" + progress + \"%\");\n }\n }",
"private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}",
"@Override\n\tprotected void onProgressUpdate(Integer... values) {\n\t\tint len = progressBar.getProgress() + values[0];\n\t\tprogressBar.setProgress(len);\n\t\tString str = progressBar.getProgress() * 100 / progressBar.getMax()\n\t\t\t\t+ \"%\";\n\t\ttv.setText(\"下载完成\" + str);\n\t\tsuper.onProgressUpdate(values);\n\t}",
"@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t}",
"@Override\n public void onProgress(long downloaded,\n long total) {\n int progress = (int) (downloaded / total * 100);\n bar.setProgress(progress);\n }",
"private void setSeekbarListener(){\n mTempSeekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n if(progress<=100 && progress>=0){\n // change display temp based on seekbar progress and update the view\n display_temp = Tools.roundToHalf((32-9)*progress/100.0+9);\n Log.v(TAG, \"onProgressChanged: temp:\"+display_temp+\"seekbar progress=\"+progress);\n updateControlView();\n // update the mercury of the thermometer\n ClipDrawable mMercuryClip = (ClipDrawable) mMercuryImg.getDrawable();\n mMercuryClip.setLevel(progress*100);\n }\n }\n });\n }",
"@Override\n protected void onProgressUpdate(String... progress) {\n }",
"public void updateProgress() {\r\n\t\tfireTableDataChanged();\r\n\t}",
"public abstract void onProgress(short percentage, long downloadedSoFar);",
"public interface OnProgressListener {\n void onProgress(int progress);\n}",
"@Override\r\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tsuper.onProgressUpdate(values);\r\n\t\t\tsetProgress(values[0]);\r\n\t\t\t\r\n\r\n\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar skb, int prog, boolean fromUser) {\n\t\t\t\tMySurfaceView.redVal = prog;\n\t\t\t}",
"public void setProgress(int progress) {\n \t\t\tsynchronized (this) {\n \t\t\t\tm_progress = progress;\n \t\t\t\tthis.notify();\n \t\t\t}\n \t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekArc seekArc, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tprog = progress;\n\t\t\t}",
"@Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n }",
"void setProgress(@FloatRange(from = 0, to = 1) float progress);",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }",
"public synchronized void addProgressListener (ProgressListener lsnr) {\n if (listeners == null) {\n listeners = new java.util.Vector();\n }\n listeners.addElement(lsnr);\n }",
"@Override\n\t protected void onProgressUpdate(Void... values) {\n\t }",
"@Override\n\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\tboolean fromUser) {\n\t\t\tcustomPercent = progress / 100.0;\n\t\t\tupdateCustom();\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void updateProgress(int arg0) {\n\t\t System.out.println(\"arg0.progress=\" + arg0);\r\n\t\tmHandler.obtainMessage(100, arg0, arg0).sendToTarget();\r\n\t}",
"public void setProgress(int value);",
"public void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\t}",
"public interface ProgressListener\n{\n\t/**\n\t * Set the progress level to a new value, which must be between 0.0f and 1.0f\n\t * (including both of these values).\n\t * You should not call this method with a value lower than any value you've set\n\t * before.\n\t * However, this is not checked.\n\t * @param progress the degree of progress as a value between 0.0f and 1.0f\n\t * @throws IllegalArgumentException if the float argument is not in the mentioned interval\n\t */\n\tvoid setProgress(float progress);\n\n\t/**\n\t * Sets a new progress level.\n\t * If an operation consists of totalItems steps, which are numbered from 0 to\n\t * totalItems - 1, this method can be called after the completion of each step.\n\t * <p>\n\t * Example: if there are three steps and the first one is done, the parameters\n\t * must be 0 and 3, which will indicated 33% completion.\n\t * Parameters 1 and 3 mean 66%, 2 and 3 100%.\n\t * If you use 3 and 3, an IllegalArgumentException will be thrown.\n\t * <p>\n\t * Computes <code>(float)(zeroBasedIndex + 1) / (float)totalItems</code> and calls\n\t * {@link #setProgress(float)} with that value.\n\t *\n\t * @param zeroBasedIndex the index of the step that was just completed\n\t * @param totalItems the number of steps in this operation\n\t * @throws IllegalArgumentException if the parameters don't match the above criteria\n\t */\n\tvoid setProgress(int zeroBasedIndex, int totalItems);\n}",
"public void seekBarListener() {\n seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n int progressChangedValue = 0;\n\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n progressChangedValue = progress;\n }\n\n public void onStartTrackingTouch(SeekBar seekBar) {\n // TODO Auto-generated method stub\n }\n\n public void onStopTrackingTouch(SeekBar seekBar) {\n progressTextView.setText(\"Your current progress is \" + progressChangedValue);\n Toast.makeText(MainActivity.this, \"Seek bar progress is :\" + progressChangedValue,\n Toast.LENGTH_SHORT).show();\n }\n });\n }",
"private void primarySeekBarProgressUpdater() {\n seekBarProgress.setProgress((int) (((float) mediaPlayer.getCurrentPosition() / mediaFileLengthInMilliseconds) * 100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n if (mediaPlayer.isPlaying()) {\n Runnable notification = new Runnable() {\n public void run() {\n primarySeekBarProgressUpdater();\n }\n };\n handler.postDelayed(notification, 1000);\n }\n }",
"@Override\n public void onProgressUpdate(String imageUri, View view,\n int current, int total) {\n }",
"@Override\n public void onScroll(float scrollProgressPercent) {\n }",
"public void onProgressUpdate(Integer ... value){\n pb.setVisibility(View.VISIBLE);\n pb.setProgress(value[0]);\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n //Shows the ProgressDialog and sets the progress/message shown\n progressDialog.show();\n progressDialog.setTitle(\"Uploading\");\n progressDialog.setProgress(progress[0]);\n progressDialog.setMessage(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n protected void onProgressUpdate(String... progress) {\n }",
"@Override\r\n protected void onProgressUpdate(Void... values) {\n \tsuper.onProgressUpdate(values);\r\n }",
"public void setProgress(int progress) {\r\n\t\tif (mProgress != progress) {\r\n\t\t\tmProgress = progress;\r\n\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, progress, false);\r\n\t\t\t}\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}",
"@Override\n public void onProgressChanged(SeekBar bar, int progress, boolean fromuser) {\n mProgress = progress;\n mSeekBarFromUser = fromuser;\n }",
"public void changed(ProgressEvent event) {\n\t\t\t}",
"public void setProgress(int progress) {\n\n this.percent = progress;\n percentdraw = 0;\n start = true;\n anim();\n invalidate();\n }",
"@Override\n protected void onProgressUpdate(Long... progress)\n {\n\n if (mActivity != null)\n {\n mActivity.onProgressUpdate(progress[0], progress[1]);\n\n //if (wait)\n //{\n // waitFor(mPrefPauseTime);\n // playNextSong();\n //}\n }\n }",
"@Override\r\n protected void onProgressUpdate(Void... values) {\n super.onProgressUpdate(values);\r\n }",
"void onProgress(Context context , int progressLevel , int warningLevel);",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n loadingText.setText(loadingHints[random.nextInt(loadingHints.length)]);\n // [... Обновите индикатор хода выполнения, уведомления или другой\n // элемент пользовательского интерфейса ...]\n }",
"@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }",
"public void action (ProgressListener progressListener) throws Exception;",
"@Override\n protected void onProgressUpdate(Integer... values) {\n barratime.setProgress(values[0]);\n }",
"@Override\n\t\t/*\n\t\t * UI线程执行\n\t\t */\n\t\tprotected void onProgressUpdate(Integer... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\t\t\t// 取出发布进度的值\n\t\t\tint value = values[0];\n\t\t\t// 设置给Button\n\t\t\tbtn.setText(\"\" + value);\n\t\t\tpb.setProgress(value);\n\t\t}",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }",
"public void setProgressListener(GeoGitPy4JProgressListener listener) {\n this.listener = listener;\n }",
"public void onDownloadProgress(int current, int total);",
"private void primarySeekBarProgressUpdater() {\n \tseekBarProgress.setProgress((int)(((float)mediaPlayer.getCurrentPosition()/mediaFileLengthInMilliseconds)*100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n\t\tif (mediaPlayer.isPlaying()) {\n\t\t\tRunnable notification = new Runnable() {\n\t\t public void run() {\n\t\t \tprimarySeekBarProgressUpdater();\n\t\t\t\t}\n\t\t };\n\t\t handler.postDelayed(notification,1000);\n \t}\n }",
"public interface OnProgressChangedListener {\n void onProgressChanged(RoundSeekBar roundSeekBar, float progress);\n\n void onStartTrackingTouch(RoundSeekBar roundSeekBar);\n\n void onStopTrackingTouch(RoundSeekBar roundSeekBar);\n}",
"@Override\r\n\tprotected void onProgressUpdate(Void... values) {\n\t\tsuper.onProgressUpdate(values);\r\n\r\n\t}"
] |
[
"0.7757388",
"0.7752908",
"0.7588364",
"0.7559661",
"0.754948",
"0.75030136",
"0.7489375",
"0.7463644",
"0.7446489",
"0.74063194",
"0.7388406",
"0.7346431",
"0.7337578",
"0.73256665",
"0.72598946",
"0.72405756",
"0.72387815",
"0.7230165",
"0.7227658",
"0.7190232",
"0.7151981",
"0.7151981",
"0.7129448",
"0.7129229",
"0.7129229",
"0.71187645",
"0.7110804",
"0.7100602",
"0.70903695",
"0.7040504",
"0.7039258",
"0.6999006",
"0.69822556",
"0.69813645",
"0.69448704",
"0.69448704",
"0.6910408",
"0.69079053",
"0.68990874",
"0.6898742",
"0.6865481",
"0.6857913",
"0.68572295",
"0.6850953",
"0.6842908",
"0.6841259",
"0.6840815",
"0.68178296",
"0.6816244",
"0.68015915",
"0.67919713",
"0.67797136",
"0.6776144",
"0.67748296",
"0.677152",
"0.6767874",
"0.6751025",
"0.674695",
"0.6740071",
"0.67374223",
"0.6727432",
"0.6721087",
"0.6719906",
"0.6710893",
"0.67024845",
"0.66995186",
"0.669777",
"0.6688567",
"0.66762215",
"0.6673204",
"0.66692746",
"0.6654853",
"0.6647836",
"0.6636779",
"0.6619184",
"0.6607435",
"0.65997434",
"0.65991735",
"0.6591865",
"0.6590712",
"0.65902126",
"0.6589779",
"0.658693",
"0.658352",
"0.6578233",
"0.6576935",
"0.6567212",
"0.65668553",
"0.65559566",
"0.65509546",
"0.65449375",
"0.6542333",
"0.6534881",
"0.6533014",
"0.6527195",
"0.6523579",
"0.6522069",
"0.6504646",
"0.64964116",
"0.649468"
] |
0.80382514
|
0
|
Reichweite, Standard "beliebig weit"
|
public abstract String getText();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"void zmniejszBieg();",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"private void wechsleRaum(Befehl befehl)\n {\n if(!befehl.hatZweitesWort()) {\n \t// Gibt es kein zweites Wort, wissen wir nicht, wohin...\n System.out.println(\"Wohin m�chten Sie gehen?\");\n return;\n }else if(spieler.getAktuellerZustand().toString().equals(\"Bewegungsunf�hig\")) {\n \tSystem.out.println(\"Sie sind bewegungsunf�hig und m�ssen sich heilen bevor sie weiter k�nnen\");\n \treturn;\n }\n\n String richtung = befehl.gibZweitesWort();\n\n // Wir versuchen den Raum zu verlassen.\n Raum naechsterRaum = spieler.getAktuellerRaum().getAusgang(richtung);\n\n if (naechsterRaum == null) {\n System.out.println(\"Dort ist keine T�r!\");\n }\n else {\n \tif(naechsterRaum.getClass().getName().equals(\"Level.Teleporter\")) {\n \t\tspieler.setAktuellerRaum(landkarte.getZufaelligenRaum());\n \t\tSystem.out.println(\"Du wurdest Teleportiert\");\n \t}else {\n \t\t spieler.setAktuellerRaum(naechsterRaum);\n \t}\n\n \trauminfoAusgeben();\n }\n }",
"public void trenneVerbindung();",
"Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);",
"public void erzaehlWas() {\n // Das Gleiche was jedes Tier sagt.\n super.erzaehlWas();\n\n // Zusaetzliche Aussage des Affen\n System.out.println(\"Affen sind einfach die besten Tiere.\");\n }",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"public int bewerten(String spieler){\n\t\treihenPruefen pruefen = new reihenPruefen();\n\t\tString gegner;\n\t\t\n\t\tif(spieler.equals(\"o\")){\n\t\t\tgegner = \"x\";\n\t\t}else{\n\t\t\tgegner = \"o\";\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, spieler)){\n\t\t\treturn 4;\n\t\t}\n\t\t\n\t\tif (pruefen.viererReihe(spielfeld, gegner)){\n\t\t\treturn -4;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, spieler)){\n\t\t\treturn 3;\n\t\t}\n\t\t\n\t\tif (pruefen.dreierReihe(spielfeld, gegner)){\n\t\t\treturn -3;\n\t\t}\n\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, spieler)){\n\t\t\treturn 2;\n\t\t}\n\t\t\t\n\t\tif (pruefen.zweierReihe(spielfeld, gegner)){\n\t\t\treturn -2;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}",
"private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}",
"public void test2(){\r\n\t\tZug zug1 = st.zugErstellen(2, 2, \"Zug 1\");\r\n\t\tst.fahren();\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}",
"public String elegir();",
"public abstract String getBeschreibung();",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"double defendre();",
"@Override\n\tpublic void rotiereNachRechts() {\n\n\t}",
"public void wuerfeln() {\n if (istGefängnis) {\n setIstGefängnis(false);\n if (aktuellesFeldName instanceof GefängnisFeld && !(aktuellesFeldName instanceof NurZuBesuchFeld)) {\n GefängnisFeld g = (GefängnisFeld) aktuellesFeldName;\n g.gefaengnisAktion(this);\n \n return;\n }\n\n } else {\n String[] worte = {\"Eins\", \"Zwei\", \"Drei\", \"Vier\", \"Fünf\", \"Sechs\", \"Sieben\", \"Acht\", \"Neun\", \"Zehn\", \"Elf\", \"Zwölf\"};\n\n wuerfelZahl = getRandomInteger(12, 1);\n\n this.aktuellesFeld = this.aktuellesFeld + wuerfelZahl + 1;\n if (this.aktuellesFeld >= 40) {\n setAktuellesFeld(0);\n\n }\n\n System.out.println(worte[wuerfelZahl] + \" gewürfelt\");\n\n aktuellesFeldName = spielfigurSetzen(this.aktuellesFeld);\n System.out.println(\"Du befindest dich auf Feld-Nr: \" + (this.aktuellesFeld));\n boolean check = false;\n for (Spielfelder s : felderInBesitz) {\n if (aktuellesFeldName.equals(s)) {\n check = true;\n }\n }\n\n if (!check) {\n aktuellesFeldName.spielfeldAktion(this, aktuellesFeldName);\n } else {\n System.out.println(\"Das Feld: \" + aktuellesFeldName.getFeldname() + \"(Nr: \" + aktuellesFeldName.getFeldnummer() + \")gehört dir!\");\n if (aktuellesFeldName instanceof Straße) {\n Straße strasse = (Straße) aktuellesFeldName;\n System.out.println(\"Farbe: \" + strasse.getFarbe());\n try {\n strasse.hausBauen(this, strasse);\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }\n }\n }",
"public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}",
"public void test4(){\r\n\t\tZug zug0 = st.zugErstellen(0, 3, \"Zug 0\");\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(21).setStellung(true);\r\n\t\td.getWeiche(17).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\td.getSignal(18).setStellung(true);\r\n\t\td.getWeiche(39).setStellung(false);\r\n\t\tst.blockFahren();\r\n\t\tst.fahren();\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public String annulerRv(){\n\t\t// Traitement ici ... \n\t\treturn AFFICHER;\n\t}",
"public int wuerfeln() {\n\t\tletzterWurf = Wuerfel.werfen();\n\t\thatBereitsGewuerfelt = true;\n\t\treturn (letzterWurf);\n\t}",
"protected abstract void a(bru parambru);",
"Bicho evolucionar(int bicho);",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public void loescheEintrag() {\n\t\tzahl = 0;\n\t\tistEbenenStart = false;\n\t}",
"void Vorrücken()\n {\n }",
"public String limpiar()\r\n/* 509: */ {\r\n/* 510:529 */ return null;\r\n/* 511: */ }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\n public void perish() {\n \n }",
"public String gibZustand(){\n String out = anzahl+QwirkleServer.SEP;\n String aktiv = \"\";\n int[] punkte = new int[anzahl];\n String[] spielerSteine = new String[anzahl];\n String spielfeldString = \"\";\n\n //sammle Daten\n int count = 0;\n while (count<anzahl){\n Spieler spieler = this.spielerRing.getContent();\n if (spieler.istAktiv()) aktiv = spieler.gibIndex()+\"\";\n punkte[spieler.gibIndex()] = spieler.gibPunkteStand();\n spielerSteine[spieler.gibIndex()]=spieler.gibSteineString();\n this.spielerRing.next();\n count++;\n }\n\n if (spielEnde) aktiv = \"-1\";\n\n out += beutel.gibAnzahl()+QwirkleServer.SEP;\n out += aktiv;\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+punkte[i];\n\n for (int i = 0; i < anzahl; i++)\n out+=QwirkleServer.SEP+spielerSteine[i];\n\n\n spielfeld.toFirst();\n while(spielfeld.hasAccess()) {\n Stein stein = spielfeld.getContent();\n out += QwirkleServer.SEP + stein.toString();\n spielfeld.next();\n }\n\n return out;\n }",
"public Rechnung ladeRechnung() throws IOException, ClassNotFoundException {\n \n Rechnung rechnung = liesRechnung(ois);\n \n return rechnung;\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public abstract boolean teReproduces();",
"Binarbre<E> equilibre();",
"public void sendeSpielfeld();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void yürü() {\n\n\t}",
"java.lang.String getBunho();",
"java.lang.String getBunho();",
"public int liczbaelnastosie() {\n\t\treturn 0;\n\t}",
"public void redibujarAlgoformers() {\n\t\t\n\t}",
"@Override\n\tpublic void recreo() {\n\n\t}",
"public void onderbreek(){\n \n }",
"public RuimteFiguur() {\n kleur = \"zwart\";\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract boolean zzbek();",
"public IRecepteur quiEstAuDessus();",
"private void poetries() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic boolean istBerechtigt() {\n\t\treturn true;\n\t}",
"int getMindestvertragslaufzeit();",
"public abstract String mo9239aw();",
"@Override\n\tprotected void interr() {\n\t}",
"public void smell() {\n\t\t\n\t}",
"private NodoBin<T> rDerecha(NodoBin<T> r) {\n NodoBin<T> x = r.getIzq();\n r.setIzq(x.getDer());\n x.setDer(r);\n return x;\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n\tpublic void verteidigen(Lebewesen lebewesen) {\n\t}",
"@Override\n protected void getExras() {\n }",
"public void kaufen(BesitzrechtFeld feld) {\n try {\n System.out.println(\"Dein aktueller Kontostand beträgt: \" + getKontostand());\n System.out.println(\"Die kosten für: \" + feld.getFeldname() + \" (\" + feld.getFarbe() + \") betragen :\" + feld.getGrundstueckswert());\n System.out.println(\"Möchtest du kaufen? (ja/nein)\");\n String eingabe = br.readLine();\n if (eingabe.trim().toLowerCase().equals(\"status\")) {\n eingabe = meinStatus();\n\n }\n if (eingabe.trim().toLowerCase().equals(\"ja\")) {\n if (einzahlen(feld.getGrundstueckswert())) {\n feld.setGekauft(true);\n feld.setSpieler(this);\n felderInBesitz.add(feld);\n switch (feld.getFarbe()) {\n case \"braun\":\n braun.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + braun.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (braun.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(braun);\n break;\n }\n break;\n case \"hellblau\":\n hellblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + hellblau.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (hellblau.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(hellblau);\n break;\n }\n break;\n case \"pink\":\n pink.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + pink.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (pink.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(pink);\n break;\n }\n break;\n case \"orange\":\n orange.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + orange.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (orange.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(orange);\n break;\n }\n break;\n case \"rot\":\n rot.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + rot.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (rot.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(rot);\n break;\n }\n break;\n case \"gelb\":\n gelb.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + gelb.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (gelb.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(gelb);\n break;\n }\n break;\n case \"grün\":\n grün.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + grün.size() + \" von 3 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (grün.size() == 3) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(grün);\n break;\n }\n break;\n case \"dunkelblau\":\n dunkelblau.add((Straße) feld);\n System.out.println(\"Du hast die Straße: \" + feld.getFeldname() + \"(\" + feld.getFarbe() + \") gekauft!\");\n System.out.println(\"Du hast \" + dunkelblau.size() + \" von 2 Feldern (\" + feld.getFarbe() + \") in deinem Besitz\");\n if (dunkelblau.size() == 2) {\n Straße s = (Straße) feld;\n s.hausBauen(this, feld);\n s.mieteÄndernStraße(dunkelblau);\n break;\n }\n break;\n case \"bahnhof\":\n bahnhoefe.add((Bahnhof) feld);\n System.out.println(\"Du hast den Bahnhof: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + bahnhoefe.size() + \" von 4 Bahnhöfen in deinem Besitz\");\n Bahnhof b = (Bahnhof) feld;\n b.mieteÄndernBahnhof(bahnhoefe);\n\n break;\n case \"werk\":\n werke.add(feld);\n System.out.println(\"Du hast das Werk: \" + feld.getFeldname() + \" gekauft!\");\n System.out.println(\"Du hast \" + werke.size() + \" von 2 Werken in deinem Besitz\");\n break;\n default:\n System.out.println(\"Feld konnte keiner Farbe/Kategorie zugeordnet werden\");\n\n }\n\n }\n System.out.println(\"Dein neuer Kontostand beträgt: \" + getKontostand());\n }\n } catch (IOException ex) {\n Logger.getLogger(Spieler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void remplirPrestaraireData() {\n\t}",
"@Override\n\tpublic void transmetDonnee() {\n\n\t}",
"private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }",
"@Override\n\tpublic void aktualisiern(int drehzahl) {\n\t\tif(drehzahl >6321)\n\t\t{\n\t\t\tSystem.out.println(\"Drehzahl zu groß!! Drehzahl:\"+drehzahl);\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Drehzahl im richtigen Bereich. Drehzahl:\"+drehzahl);\n\t\t}\n\t\t\n\t}",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"@Override\n\tpublic boolean livre() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract String dohvatiKontakt();",
"@Override\n\tprotected String wavRegleJeu() {\n\t\treturn null;\n\t}",
"public abstract int zzbej();",
"public static void bi() {\n\t}",
"@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"public void sendeSpielerWeg(String spieler);",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"public Rechnung warenkorbKaufen(Person p) throws AccessRestrictedException, InvalidAmountException{\r\n\t\tif(istKunde(p)){\r\n\t\t\r\n\t\t\t//Warenkorb des Benutzers abfragen\r\n\t\t\tWarenkorb wk = kv.gibWarenkorbVonKunde(p);\r\n\t\t\t\r\n\t\t\t//Bestand der Artikel im Warenkorb reduzieren und Gesamtpreis errechnen\r\n\t\t\tint gesamt = 0;\r\n\t\t\tMap<Artikel,Integer> inhalt = wk.getArtikel();\r\n\t\t\tfor(Map.Entry<Artikel, Integer> ent : inhalt.entrySet()){\r\n\t\t\t\ttry{\r\n\t\t\t\t\tav.erhoeheBestand(ent.getKey().getArtikelnummer(), -1 * ent.getValue());\r\n\t\t\t\t\t//Ereignis erstellen\r\n\t\t\t\t\tev.ereignisErstellen(p, Typ.KAUF, ent.getKey(), (int) ent.getValue());\r\n\t\t\t\t} catch (ArticleNonexistantException anne){\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tgesamt += (ent.getValue() * ent.getKey().getPreis());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Warenkorb für Rechnung erzeugen\r\n\t\t\tWarenkorb temp = new Warenkorb();\r\n\t\t\ttemp.setArtikel(wk.getArtikel());\r\n\t\t\t\r\n\t\t\t//Rechnung erzeugen\r\n\t\t\tRechnung re = rv.rechnungErzeugen((Kunde) p, new Date(), temp, gesamt);\r\n\t\t\t\r\n\t\t\t//Warenkorb von Kunde leeren\r\n\t\t\twv.leereWarenkorb(wk);\r\n\t\t\t\r\n\t\t\t//Rechnungsobjekt an C/GUI zurückgeben\r\n\t\t\treturn re;\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tthrow new AccessRestrictedException(p, \"\\\"Warenkorb bezahlen\\\"\");\r\n\t\t}\r\n\t}",
"public int AmbosHijosR() { //Hecho por mi\n return AmbosHijosR(raiz);\n }",
"public int recuperar() {\r\n\t if (raiz == null)\r\n\t return -99999;\r\n\t ;\r\n\t int x = raiz.dato;\r\n\t raiz = raiz.sig;\r\n\t return x;\r\n\t }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"private void berechneNeuenWert () {\r\n try {\r\n double ergebnis = 0d;\r\n for (JTextComponent wert : this.wertOperator.keySet()) {\r\n if (this.ignoriereWhitespaceEingabefelder && wert.getText().trim().length() == 0) {\r\n continue;\r\n }\r\n final char operator = this.wertOperator.get(wert);\r\n final double operand = Double.parseDouble(wert.getDocument().getText(0, wert.getDocument().getLength()).trim());\r\n switch (operator) {\r\n case '*':\r\n ergebnis *= operand;\r\n break;\r\n case '/':\r\n ergebnis /= operand;\r\n break;\r\n case '-':\r\n ergebnis -= operand;\r\n break;\r\n case '+':\r\n ergebnis += operand;\r\n break;\r\n case '=':\r\n ergebnis = operand;\r\n break;\r\n }\r\n }\r\n String text = Double.toString(ergebnis);\r\n if (this.anzahlDerNachkommastellen <= 0 && text.indexOf('.') != -1) {\r\n text = text.substring(0,text.indexOf('.'));\r\n }\r\n else {\r\n // Kommastellen hinzufügen\r\n if (text.indexOf('.') == -1) {\r\n text += '.';\r\n }\r\n // ggf. mit Nullen hinten auffüllen\r\n while (text.indexOf('.') + anzahlDerNachkommastellen > text.length() -1) {\r\n text += '0';\r\n }\r\n // Abschneiden zuviel vorhandener Stellen\r\n if (text.length() - 1 > text.indexOf('.') +anzahlDerNachkommastellen) {\r\n text = text.substring(0,text.indexOf('.')+anzahlDerNachkommastellen+1);\r\n }\r\n }\r\n this.setText(text);\r\n }\r\n catch (final Exception berechnungsProblem) {\r\n this.setText(this.zeigeFehlerAn ? \"#WERT!\" : \"\");\r\n }\r\n }",
"public void trykkPaa() throws TrykketPaaBombe {\n // Ingenting skal skje dersom en av disse er true;\n if (brettTapt || trykketPaa || flagget) {\n return;\n }\n\n // Om ruten er en bombe taper man brettet\n if (bombe) {\n trykketPaa = true;\n setText(\"x\");\n setBackground(new Background(new BackgroundFill(Color.RED, CornerRadii.EMPTY, Insets.EMPTY)));\n throw new TrykketPaaBombe();\n }\n // Om ruten har null naboer skal et stoerre omraade aapnes\n else if (bombeNaboer == 0) {\n Lenkeliste<Rute> besokt = new Lenkeliste<Rute>();\n Lenkeliste<Rute> aapneDisse = new Lenkeliste<Rute>();\n aapneDisse.leggTil(this);\n // Rekursiv metode som fyller aapneDisse med riktige ruter\n finnAapentOmraade(besokt, aapneDisse);\n for (Rute r : aapneDisse) {\n r.aapne();\n }\n } else {\n aapne();\n }\n }",
"abstract void uminus();",
"public void macheZugRueckgaengig(int spalte, int zeile, String spieler){\n\t\t\n\t\tif(spielfeld[spalte][zeile].equals(spieler)){\n\t\t\tspielfeld[spalte][zeile] = \"_\";\n\t\t}\n\t\t\t\n\t}",
"boolean getRedact();",
"boolean getRedact();",
"void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }",
"public IRecepteur quiEstEnDessous();",
"abstract int pregnancy();",
"private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }",
"public abstract String mo118046b();",
"public boolean erEnBombe() {\n return bombe;\n }"
] |
[
"0.66258126",
"0.64984465",
"0.6242032",
"0.6213782",
"0.6192699",
"0.61349905",
"0.61338264",
"0.60684204",
"0.60547715",
"0.59812325",
"0.5953594",
"0.5949449",
"0.5941291",
"0.5940268",
"0.5940268",
"0.59192085",
"0.5893291",
"0.58721894",
"0.58686924",
"0.5839594",
"0.58258474",
"0.5812799",
"0.58045816",
"0.5800348",
"0.5788585",
"0.5768638",
"0.5764528",
"0.574342",
"0.57419807",
"0.5735318",
"0.5727005",
"0.5711",
"0.56863177",
"0.56585306",
"0.5656819",
"0.5648172",
"0.564716",
"0.56412864",
"0.56312543",
"0.56187",
"0.56112665",
"0.5608144",
"0.56070155",
"0.5586646",
"0.55749375",
"0.55744743",
"0.5572121",
"0.5569623",
"0.5565501",
"0.5565501",
"0.5554565",
"0.5551612",
"0.55499387",
"0.5541315",
"0.55378264",
"0.5531482",
"0.5528887",
"0.55264753",
"0.5517593",
"0.5512229",
"0.55113137",
"0.5507799",
"0.55077034",
"0.5506441",
"0.5489041",
"0.5487851",
"0.54762816",
"0.5463164",
"0.5460783",
"0.5459785",
"0.54526216",
"0.5448284",
"0.54459393",
"0.5444052",
"0.54396564",
"0.5437763",
"0.54361695",
"0.5428982",
"0.54280895",
"0.54265004",
"0.5406164",
"0.53974515",
"0.53904945",
"0.5389499",
"0.53883576",
"0.5376744",
"0.5374811",
"0.53743804",
"0.5370173",
"0.53570956",
"0.5352608",
"0.5351882",
"0.535011",
"0.5349122",
"0.5349122",
"0.5348096",
"0.534374",
"0.5339142",
"0.5338908",
"0.53348476",
"0.53326285"
] |
0.0
|
-1
|
Bewege die Figur zu einer neuen Position. Es wird dabei nicht geprueft, ob eine Figur geschlagen wird.
|
public void moveToDestination(Move move) {
x = move.getToX();
y = move.getToY();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic int getPosition() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getPos() {\n\t\treturn 0;\n\t}",
"public void frogReposition() {\n\t\tsetY(FrogPositionY);\n\t\tsetX(FrogPositionX);\t\t\n\t\t}",
"Object getPosition();",
"Position getPosition();",
"Position getPosition();",
"@Override\n public int getPosition() {\n return position;\n }",
"private void ActualizaPosicionesFondos() {\n xFondo-=10; //Es el cursor de la posición\n xFondoBase-=10; //Aqui se puede implementar metodo de modificacion de velocidad de fondo.\n xFondoApoyo-=10;\n if (xFondo == -texturaFondoBase.getWidth()){\n xFondoBase = xFondoApoyo+texturaFondoApoyo.getWidth();\n cambiosFondo++;\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())) {\n xFondoApoyo = xFondoBase+texturaFondoBase.getWidth();\n cambiosFondo++;\n }\n }",
"private void position(){\n\t\tpositionX=x;//coordonnees(dans la minimap) de la case ou on a clicke ou la fourmiliere(au debut).\n\t\tpositionY=y;\n\t\tboolean posX=false,posY=false;//Ces boolean me servent a savoir s'il a eu des changements sur les coordonnees.\n\t\tif(positionY-zoom/2<=0 ){//si ordonnee negative,ca veut dire qu'on est sorti de la minimap.\n\t\t\tpositionY=0;//pour pas etre hors du tableau on met l'ordonnee a 0\n\t\t\tposY=true;//et on indique qu'on a change les ordonnees.\n\t\t\t\t}\n\t\tif(positionX-zoom/2<=0){//si abscisse negative\n\t\t\tpositionX=0;\n\t\t\tposX=true;//on indique qu'on a change les abscisses.\n\t\t}\n\t\tif(positionY+zoom>=(finY-debutY)+1){//si ordonnee plus grand que la taille de la minimap.\n\t\t\tpositionY=heightCase*(finY-debutY)-zoom*heightCase;//on met donc ordonnees a la fin de la minimap (heightCase*(finY-debutY)) et on enleve la place(px) prise par le zoom. \n\t\t\tposY=true;//et on indique qu'on a change les ordonnees.\n\t\t}\n\t\tif(positionX+zoom>=(finX-debutX)+1){//si abscisse plus grand que la taille de la minimap.\n\t\t\tpositionX=widthCase*(finX-debutX)-zoom*widthCase;\n\t\t\tposX=true;\n\t\t}\n\t\tif(!posX) {//si on a pas change les abscisses\n\t\t\t\tpositionX=widthCase*positionX-zoom*widthCase/2;//pour trouver l'abscisse en px en multiplie positionX par la taille d'une case puis on enleve la place(px) prise par le zoom\n\t\t\t}\n\t\tif(!posY)//si on a pas change les ordonnees.\n\t\t\tpositionY=heightCase*positionY-zoom*heightCase/2;\n\t\t}",
"Tile getPosition();",
"@Override\n\tpublic void updatePosition() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic Vector getPosition() {\n\t\t\t\treturn new Vector(-2709.487, -4281.02, 3861.564); //-4409.0, 2102.0, -4651.0);\n\t\t\t}",
"void positionToStart () {\n currentRow = 0 - currentPiece.getOffset();\n currentColumn = board.columns / 2 - currentPiece.width / 2;\n }",
"@Override\n public Position getPosition() {\n return Position.UNKNOWN;\n }",
"@Override\n public void recalculatePositions() { \n \n }",
"public void setPosicion(){\n ejeX = 0;\n ejeY = 0;\n }",
"int getPosition();",
"@Override\n\tpublic Position getPosition() {\n\t\treturn null;\n\t}",
"public int getX() { return position.x; }",
"public int getPosition(){\n return -1;\n }",
"private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }",
"RealLocalizable getPosition();",
"public void mueveBala() {\n switch (direccion) {\n case NORTE:\n posY -= velocidadBala;\n break;\n case SUR:\n posY += velocidadBala;\n break;\n case ESTE:\n posX += velocidadBala;\n break;\n case OESTE:\n posX -= velocidadBala;\n break;\n }\n actualizaHitbox();\n }",
"public PointF get_position() { return _position; }",
"public int getPosition();",
"public void setPosition(){\r\n currentPosition = 0; \r\n }",
"public Position position();",
"@Override\n public Position getPosition() {\n return position;\n }",
"Position getOldPosition();",
"public abstract Position getPosition();",
"@Override\n public Position getPosition() {\n return new Position(this.x, this.y);\n }",
"public float getPositionX() {return this.position.getX();}",
"public void resetPosition()\n {\n resetPosition(false);\n }",
"public int getPos();",
"public int getPos();",
"public void swim() {\r\n\t\tif(super.getPosition()[0] == Ocean.getInstance().getWidth()-71){\r\n\t\t\tinvX = true;\r\n\t\t} else if(super.getPosition()[0] == 0){\r\n\t\t\tinvX = false;\r\n\t\t}\r\n\t\tif(super.getPosition()[1] == Ocean.getInstance().getDepth()-71){\r\n\t\t\tinvY = true;\r\n\t\t} else if(super.getPosition()[1] == 0){\r\n\t\t\tinvY = false;\r\n\t\t}\r\n\t\tif(invX){\r\n\t\t\tsuper.getPosition()[0]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[0]+=1;\r\n\t\t}\r\n\t\tif(invY){\r\n\t\t\tsuper.getPosition()[1]-=1;\r\n\t\t} else {\r\n\t\t\tsuper.getPosition()[1]+=1;\r\n\t\t}\r\n\t}",
"private void truncatePosition()\r\n {\n setTranslateX(getTranslateX() - Constants.inchesToPixels(getXInches() % 0.25));\r\n setTranslateY(getTranslateY() + Constants.inchesToPixels(getFlippedYInches() % 0.25));\r\n }",
"private void positionMinimap(){\n\t\tif(debutX<0)//si mon debutX est negatif(ca veut dire que je suis sorti de mon terrain (ter))\n\t\t\tdebutX=0;\n\t\tif(debutX>ter.length)//si debutX est plus grand que la taille de mon terrain(ter).\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY<0)\n\t\t\tdebutY=0;\n\t\tif(debutY>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\tif(debutX+100>ter.length)\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY+100>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\t//cette fonction est appelee uniquement si le terrain est strictement Superieur a 100\n\t\t// Donc je sais que ma fin se situe 100 cases apres.\n\t\tfinX=debutX+100;\n\t\tfinY=debutY+100;\n\t}",
"public Position getPosition();",
"public Position getPosition();",
"public Position getPosition();",
"@Override\n\tpublic void posModify() {\n\t\t\n\t}",
"@Override\n\tpublic void posModify() {\n\t\t\n\t}",
"public Coordinate getPosition();",
"private int Parent(int position) {\r\n\t\treturn position/2;\r\n\t}",
"public void change_dragon_pos(int i) {\n\t\tif (dragoes[i].isAlive()) {\n\t\t\tif (labirinto.getLab()[dragoes[i].getX_coord()][dragoes[i].getY_coord()] == 'E') {\n\t\t\t\tlabirinto.setLabCell(dragoes[i].getX_coord(), dragoes[i].getY_coord(), 'F');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (dragoes[i].getStatus() == 1)\n\t\t\t\t\tlabirinto.setLabCell(dragoes[i].getX_coord(), dragoes[i].getY_coord(), 'd');\n\t\t\t\telse\n\t\t\t\t\tlabirinto.setLabCell(dragoes[i].getX_coord(), dragoes[i].getY_coord(), 'D');\n\t\t\t}\n\t\t}\n\t\t/*else {\n\t\t\tif (labirinto.getLab()[dragoes[i].getX_coord()][dragoes[i].getY_coord()] == 'd' || \n\t\t\t\t\tlabirinto.getLab()[dragoes[i].getX_coord()][dragoes[i].getY_coord()] == 'D')\n\t\t\t\tlabirinto.setLabCell(dragoes[i].getX_coord(), dragoes[i].getY_coord(), ' ');\n\t\t}*/\n\t}",
"public int stapelPosition(Farbe farbe);",
"@Override\n\t/**\n\t * returns the position of the class\n\t * \n\t * @return position\n\t */\n\tpublic int getPosition() {\n\t\treturn position;\n\t}",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }",
"@Override\n public int getCurrentPosition() {\n return 0;\n }",
"Position getNewPosition();",
"@Override\n public long getPosition() {\n return startPosition + super.getPosition();\n }",
"public Position<Edge<E>> getPosition() { return pos; }",
"public int getX(){ return xPosition; }",
"@Override\n public void setPosition(float x, float y) {\n }",
"void positionCleared();",
"@Override\n public double getLocationX() {\n return myMovable.getLocationX();\n }",
"Position()\n\t{\n\t\tsetFile('\\u0000');\n\t\tsetRank(0);\n\t}",
"@Override\n\tpublic Position getPosition() \n\t{\n\t\treturn currentPosition;\n\t}",
"public SubCell position() {\r\n return position;\r\n }",
"public long getPos()\n\t{\n\t\treturn -1;\n\t}",
"public void setInitialPosition()\n {\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.a2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.b2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.c2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.d2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.e2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.f2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.g2);\n putGenericPiece(GenericPiece.PAWN, Colour.WHITE, Square.h2);\n //Se colocan los peones negros en la séptima fila\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.a7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.b7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.c7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.d7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.e7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.f7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.g7);\n putGenericPiece(GenericPiece.PAWN, Colour.BLACK, Square.h7);\n //Se colocan las torres blancas en a1 y h1\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.a1);\n putGenericPiece(GenericPiece.ROOK,Colour.WHITE,Square.h1);\n //Se colocan las torres negras en a8 y h9\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.a8);\n putGenericPiece(GenericPiece.ROOK,Colour.BLACK,Square.h8);\n //Se colocan los caballos blancos en b1 y g1\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.b1);\n putGenericPiece(GenericPiece.KNIGHT,Colour.WHITE,Square.g1);\n //Se colocan los caballos negros en b8 y g8\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.b8);\n putGenericPiece(GenericPiece.KNIGHT,Colour.BLACK,Square.g8);\n //Se colocan los alfiles blancos en c1 y f1\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.c1);\n putGenericPiece(GenericPiece.BISHOP,Colour.WHITE,Square.f1);\n //Se colocan los alfiles negros en c8 y f8\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.c8);\n putGenericPiece(GenericPiece.BISHOP,Colour.BLACK,Square.f8);\n //Se coloca la dama blanca en d1\n putGenericPiece(GenericPiece.QUEEN,Colour.WHITE,Square.d1);\n //Se coloca la dama negra en d8\n putGenericPiece(GenericPiece.QUEEN,Colour.BLACK,Square.d8);\n //Se coloca el rey blanco en e1\n putGenericPiece(GenericPiece.KING,Colour.WHITE,Square.e1);\n //Se coloca el rey negro en e8\n putGenericPiece(GenericPiece.KING,Colour.BLACK,Square.e8);\n \n //Se permiten los enroques para ambos jugadores\n setCastlingShort(Colour.WHITE,true);\n setCastlingShort(Colour.BLACK,true);\n setCastlingLong(Colour.WHITE,true);\n setCastlingLong(Colour.BLACK,true);\n \n //Se da el turno a las blancas\n setTurn(Colour.WHITE);\n \n gamePositionsHash.clear();\n gamePositionsHash.put(zobristKey.getKey(), 1);\n }",
"@Override\n public int getTargetPosition() {\n return 0;\n }",
"public Pos getPos()\r\n\t{\r\n\t\treturn position;\r\n\t}",
"public int getPositionColumn(){return this.positionColumn;}",
"public Position gibPosition()\n {\n return position;\n }",
"void loopy() {\n if (position.y < -50) {\n position.y = Constants.height + 50;\n } else\n if (position.y > Constants.height + 50) {\n position.y = -50;\n }\n if (position.x< -50) {\n position.x = Constants.width +50;\n } else if (position.x > Constants.width + 50) {\n position.x = -50;\n }\n }",
"public final int getPos() { return i; }",
"Square getCurrentPosition();",
"public int getPos()\n {\n return pos;\n }",
"Point getPosition();",
"Point getPosition();",
"public int getFirstPos ()\r\n {\r\n return glyph.getBounds().y;\r\n }",
"Integer getBPos();",
"public float getPosition(){\n\t\treturn (float)cFrame + interpol;\n\t}",
"public int getPos()\n {\n return pos;\n }",
"public int getOriginalPos() {\n return originalPos;\n }",
"@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}",
"public abstract int positionBonus();",
"public Position choisirUnePosition() throws AnnulerException,\n\t\t\tPositionInvalideException;",
"public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }",
"private void moverFondo() {\n ActualizaPosicionesFondos();\n noAleatorio = MathUtils.random(1, 5); // crea los numeros para cambiar los mapas de manera aleatoria\n if (xFondo == -texturaFondoBase.getWidth()){\n //Cambio de fondo base\n texturaFondoBase= mapaAleatorio(noAleatorio);\n modificacionFondoBase= true; //Avisa que ya se modifico los fondos de inicio.\n }\n if (xFondo == -(texturaFondoApoyo.getWidth()+texturaFondoBase.getWidth())){\n //Cambio fondo de apoyo\n texturaFondoApoyo= mapaAleatorio(noAleatorio);\n xFondo= 0; //al pasar el segundo fondo regresa el puntero al primer fondo.\n modificacionFondoBase= true; //Avisa que ya se modifico los fondos de inicio.\n }\n }",
"public void originalSpace() {\n\t\tpos.x = 65;\n\t\tpos.y = p.height/2 + 100;\n\t\t\n\t}",
"public int PositionGet();",
"public void pos1 () throws InterruptedException {\n pos = 1;\n mainFlop.setPosition(0.7);\n subFlop.setPosition(0.35);\n Thread.sleep(400);\n }",
"@Override\n public double getLocationZ() {\n return myMovable.getLocationZ();\n }",
"private void BajarPieza1posicion() {\n for (int i = 0; i < 4; ++i) {\r\n int x = posicionX + piezaActual.x(i);\r\n int y = posicionY - piezaActual.y(i);\r\n piezas[(y * anchoTablero) + x] = piezaActual.getPieza();\r\n }\r\n\r\n BorrarLineas();\r\n\r\n if (!finalizoQuitarFilas) {\r\n nuevaPieza();\r\n }\r\n }",
"@Override\n\tpublic int getPositionOrder() {\n\t\treturn _dmGTShipPosition.getPositionOrder();\n\t}",
"public void setPosition(Position<Edge<E>> p) { pos = p; }",
"public void wrap(){\n\t\tif(this.y_location >=99){\n\t\t\tthis.y_location = this.y_location%99;\n\t\t}\n\t\telse if(this.y_location <=0){\n\t\t\tthis.y_location = 99 - (this.y_location%99);\n\t\t}\n\t\tif(this.x_location >= 99){\n\t\t\tthis.x_location = this.x_location%99;\n\t\t}\n\t\telse if(this.x_location <=0){\n\t\t\tthis.x_location = 99-(this.x_location%99);\n\t\t}\n\t}",
"public Integer getPosition();",
"@Override\n public Optional<Position> getPosition() {\n return this.pos;\n }",
"public long getPosition();",
"private Position findeNahrung(Position position)\n {\n List<Position> nachbarPositionen = \n feld.nachbarpositionen(position);\n Iterator<Position> iter = nachbarPositionen.iterator();\n while(iter.hasNext()) {\n Position pos = iter.next();\n Object tier = feld.gibObjektAn(pos);\n if(tier instanceof Hase) {\n Hase hase = (Hase) tier;\n if(hase.istLebendig()) { \n hase.sterben();\n futterLevel = HASEN_NAEHRWERT;\n return pos;\n }\n }\n }\n return null;\n }",
"@Override\n public double getPosition()\n {\n final String funcName = \"getPosition\";\n double pos = getMotorPosition() - zeroPosition;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", pos);\n }\n\n return pos;\n }",
"public FaithMarker(int position) {\r\n this.position = position;\r\n }",
"public float getPosX(){return px;}",
"public void refreshPosition() {\n\n this.setTransform(getTransform());\n }",
"private void bubbleUp(int pos) {\n // FILL IN\n // You should use the isBigger, parent, and swapup methods.\n }",
"public void change_escudo_pos() {\n\t\tif (!escudo.isCaught())\n\t\t\tlabirinto.lab[escudo.getX_coord()][escudo.getY_coord()] = 'O';\n\t}",
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}"
] |
[
"0.7147901",
"0.6734383",
"0.66310215",
"0.6604324",
"0.6564423",
"0.6564423",
"0.65462637",
"0.6516471",
"0.6510935",
"0.6452966",
"0.6419147",
"0.6407337",
"0.6407107",
"0.64002895",
"0.6375659",
"0.63694644",
"0.63605225",
"0.6356509",
"0.6348636",
"0.6343492",
"0.6340289",
"0.6295846",
"0.6252096",
"0.62489825",
"0.62357986",
"0.61776686",
"0.61760134",
"0.6174145",
"0.6167177",
"0.60939395",
"0.6090007",
"0.6062143",
"0.60615754",
"0.6059929",
"0.6059929",
"0.6059233",
"0.6023866",
"0.60037124",
"0.6002534",
"0.6002534",
"0.6002534",
"0.6001122",
"0.6001122",
"0.5996199",
"0.59739524",
"0.59730554",
"0.5970121",
"0.5966064",
"0.5959976",
"0.59566176",
"0.5955129",
"0.59539324",
"0.59530747",
"0.59470636",
"0.594695",
"0.59322613",
"0.59248817",
"0.5916243",
"0.59093845",
"0.59083736",
"0.5902773",
"0.5902097",
"0.5893178",
"0.5889527",
"0.5888386",
"0.5888087",
"0.5885136",
"0.5884223",
"0.5883828",
"0.58638895",
"0.58633035",
"0.58633035",
"0.58614856",
"0.5856481",
"0.5854298",
"0.584148",
"0.5833629",
"0.5827722",
"0.58242255",
"0.58233553",
"0.58196557",
"0.58072513",
"0.5802393",
"0.58020633",
"0.5791876",
"0.579142",
"0.5784142",
"0.5782861",
"0.5777347",
"0.5770058",
"0.576395",
"0.5762085",
"0.57553905",
"0.5754956",
"0.5754395",
"0.57455635",
"0.5745142",
"0.5727592",
"0.57234454",
"0.57231516",
"0.57217044"
] |
0.0
|
-1
|
Erzeuge alle Zuege: bewege die Figur in alle Richtungen Ein Zug ist unmoeglich, wenn das Zielfeld Rand oder eine eigene Figur ist. Eine gegnerische Figur wird geschlagen, aber es geht dann nicht weiter in diese Richtung
|
public List<Move> getMoves(ChessBoard chessBoard) {
List<Move> moves = new ArrayList<>();
for (Direction direction : directions) {
for (int n = 1; n <= maxRange ; n++) {
Move move = new Move(x, y, direction, n);
if (chessBoard.allows(move)) {
if (move.isTake(chessBoard)) {
TakeMove takeMove = new TakeMove(x, y, direction, n);
takeMove.setPiece(this);
Piece pieceAtDestination = chessBoard.pieceAtField(move.getToX(), move.getToY());
takeMove.setTaken(pieceAtDestination);
moves.add(takeMove);
break;
} else {
move.setPiece(this);
moves.add(move);
}
} else {
break;
}
}
}
return moves;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void random() {\n\n\t}",
"Randomizer getRandomizer();",
"public void maakNieuweDoolhof()\n {\n /*hzs: hoek zonder schat\n hms: hoek met schat\n r: recht stuk\n t: T-kruispunt met schat*/\n //vaste aantallen vakjes\n int hzs = 10, hms = 6, r = 11, t = 6;\n List<String> schatten = sch.getSchatten();\n List<String> tSchatten = schatten.subList(12, 18);\n Collections.shuffle(tSchatten);\n List<String> hSchatten = schatten.subList(18, 24);\n Collections.shuffle(hSchatten);\n\n int hKaartTeller = 0, tKaartTeller = 0;\n\n //losse vakken random invullen\n //oneven rijen\n for (int h = 0; h <= 6; h += 2)\n {\n for (int i = 1; i <= 5; i += 2)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[h][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[h][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[h][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n\n //even rijen\n for (int j = 1; j <= 5; j += 2)\n {\n for (int i = 0; i <= 6; i++)\n {\n int kaart = (int) (1 + (Math.random() * 4));\n switch (kaart)\n {\n case 1:\n if (hzs > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, false);\n hzs--;\n } else\n {\n i--;\n }\n break;\n case 2:\n if (hms > 0)\n {\n this.gangkaarten[j][i] = new HoekKaart((int) Math.floor(Math.random() * 4) + 1, hSchatten.get(hKaartTeller), false);\n hms--;\n hKaartTeller++;\n } else\n {\n i--;\n }\n break;\n case 3:\n if (r > 0)\n {\n this.gangkaarten[j][i] = new RechtKaart((int) Math.floor(Math.random() * 4) + 1, false);\n r--;\n } else\n {\n i--;\n }\n break;\n case 4:\n if (t > 0)\n {\n this.gangkaarten[j][i] = new TKaart((int) Math.floor(Math.random() * 4) + 1, tSchatten.get(tKaartTeller), false);\n t--;\n tKaartTeller++;\n } else\n {\n i--;\n }\n break;\n\n }\n }\n }\n }",
"private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}",
"private Random rand()\n\t{\n\t\treturn new Random();\n\t}",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"public abstract void randomize();",
"public void randomDestino(){\n\t\tRandom aleatorio = new Random();\n\t\tint numero = aleatorio.nextInt(2);\n\t\tif (numero == 0)\n\t\t\tsetGiro(90);\n\t\telse \n\t\t\tsetGiro(270);\n\t}",
"private Integer randomBilirrubina(){\n\t\t\tint Min = 0, Max = 14;\n\t\t\treturn Min + (int)(Math.random() * ((Max - Min) + 1));\n\t\t}",
"public void kast() {\n\t\t// vaelg en tilfaeldig side\n\t\tdouble tilfaeldigtTal = Math.random();\n\t\tvaerdi = (int) (tilfaeldigtTal * 6 + 1);\n\t}",
"public static int randomNext() { return 0; }",
"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 }",
"protected Random get_rand_value()\n {\n return rand;\n }",
"private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }",
"Boolean getRandomize();",
"void randomize() {\r\n\t\trandomize(1, this.length());\r\n\t}",
"private double getRandom() {\n return 2*Math.random() - 1;\n }",
"public static void miedo(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n aleatorio = (numeroAleatorio.nextInt(10-5+1)+5);\n \n if(oro>aleatorio){//condicion de finalizar battalla y sus acciones\n oroPerdido= (nivel*2)+aleatorio;\n oro= oro-oroPerdido;\n System.out.println(\"Huiste de la batalla!!!\");\n\t\t System.out.println(\"oro perdido:\"+oroPerdido);\n opcionMiedo=1; //finalizando battalla por huida del jugador \n }\n else{\n System.out.println(\"No pudes huir de la batalla\");\n } \n }",
"public void premesaj() {\r\n Collections.shuffle(kup);\r\n }",
"public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}",
"@Override\n\tpublic boolean isRandomizable() {\n\t\treturn false;\n\t}",
"static Tour rndTour() {\r\n\t\tTour tr = Tour.sequence();\r\n\t\ttr.randomize();\r\n\t\ttr.distance = tr.distance();\r\n\t\treturn tr;\r\n\t}",
"static final int fast_rand()\n\t{\n\t\tRz = 36969 * (Rz & 65535) + (Rz >>> 16);// ((Rz >>> 16) & 65535);\n\t\tRw = 18000 * (Rw & 65535) + (Rw >>> 16);// ((Rw >>> 16) & 65535);\n\t\treturn (Rz << 16) + Rw;\n\t}",
"public void randomize() {\r\n\t\tif(randomizzatoreVariazione > 0.5)\r\n\t\t\tandamentoCurva.setVariazione(\r\n\t\t\t\t\tandamentoCurva.getVariazione() * randomizzatoreVariazione\r\n\t\t\t\t\t+ andamentoCurva.getMIN_VARIAZIONE()\r\n\t\t\t\t\t+ Math.random() * (andamentoCurva.getMAX_VARIAZIONE() - andamentoCurva.getMIN_VARIAZIONE())\r\n\t\t\t);\r\n\t\telse if(randomizzatoreVariazione < 0.5)\r\n\t\t\tandamentoCurva.setVariazione(\r\n\t\t\t\t\tandamentoCurva.getVariazione()\r\n\t\t\t\t\t- andamentoCurva.getMIN_VARIAZIONE()\r\n\t\t\t\t\t+ Math.random() * (andamentoCurva.getMAX_VARIAZIONE() - andamentoCurva.getMIN_VARIAZIONE() * randomizzatoreVariazione)\r\n\t\t\t);\r\n\t}",
"public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}",
"public void genererchemin() {\r\n\t\tRandom hauteur1 = new Random();\r\n\t\tRandom longueur2 = new Random();\r\n\t\tRandom choix = new Random();\r\n\t\tArrayList chemin = new ArrayList();\r\n\t\tSystem.out.println(this.getHauteur());\r\n\t\tSystem.out.println(this.getLargeur());\r\n\t\tint milieu = getLargeur() / 2;\r\n\t\t//System.out.println(milieu);\r\n\t\tCoordonnees c = new Coordonnees(milieu, hauteur1.nextInt(\r\n\t\t\t\tgetLargeur()));\r\n\t\tchemin.add(c);\r\n\t\tchemin.add(new Coordonnees(0, 0));\r\n\t\tchemin.add(new Coordonnees(getLargeur() - 1, getHauteur() - 1));\r\n\t\tCoordonnees droite = new Coordonnees(milieu + 1, c.getHauteur());\r\n\t\tchemin.add(droite);\r\n\t\tCoordonnees gauche = new Coordonnees(milieu - 1, c.getHauteur());\r\n\t\tchemin.add(gauche);\r\n\t\tCoordonnees base1 = new Coordonnees(0, 0);\r\n\t\tCoordonnees base2 =new Coordonnees(getLargeur() - 1, getHauteur() - 1);\r\n\r\n\t\twhile (!gauche.equals(base1)) {\r\n\t\t\tif (gauche.getLargeur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(0, gauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else if (gauche.getHauteur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, 0);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, \r\n\t\t\t\t\t\tgauche.getHauteur());\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur(), \r\n\t\t\t\t\t\tgauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!droite.equals(base2)) {\r\n\t\t\tif (droite.getLargeur() == (this.largeur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\r\n\t\t\t} else if (droite.getHauteur() == (this.hauteur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t\t//System.out.println(\"fais chier\");\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t} else {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t}\r\n\t\t}\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Quel est le pourcentage d'obstacle souhaite :\");\r\n\t\tint pourcentage = sc.nextInt();\r\n\t\tint ctp = getHauteur() * getLargeur() * pourcentage / 100;\r\n\t\twhile(ctp >0){\r\n\t\t\tCoordonnees obstacle = new Coordonnees(longueur2.nextInt(getLargeur()), \r\n\t\t\t\t\thauteur1.nextInt(getHauteur()));\r\n\t\t\t//System.out.println(!chemin.contains(obstacle));\r\n\t\t\tif (!chemin.contains(obstacle)) {\r\n\t\t\t\tthis.plateau[obstacle.getHauteur()][obstacle.getLargeur()] = new Obstacle(\r\n\t\t\t\t\t\tobstacle.getHauteur(), obstacle.getLargeur());\r\n\t\t\t\tctp--;\r\n\t\t\t} else {\r\n\t\t\t\t//System.out.println(obstacle + \"est sur le chemin\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic Double generarGenRandom(int longitud) {\n\t\treturn null;\n\t}",
"private int randomWeight()\n {\n return dice.nextInt(1000000);\n }",
"@Override\n public Integer pee() {\n return (int) (random() * 8);\n }",
"public RNGRandomImpl() {\n\t\tsetRand(new Random());\n\t}",
"public int generarDE(){\n int ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.35){ts=1;}\n else if(rnd<=0.75){ts=2;}\n else {ts=3;}\n \n return ts;\n }",
"public final int arvoSarakkeenAihe() {\r\n while (true) {\r\n int aihe = super.getRandom()\r\n .nextInt(super.aiheetPerusmuoto().length);\r\n if (aihe != this.riviMuuttujaAihe) {\r\n return aihe;\r\n }\r\n }\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}",
"private void generarNombre() {\r\n\t\tthis.nombre = NOMBRES[(int) (Math.random() * NOMBRES.length)];\r\n\t}",
"public static void randomInit(int r) { }",
"public interface RandomSeed {\n\n\t/**\n\t * @return Uma semente randomica entre 0 e 1 inclusive.\n\t */\n\tpublic double getSeed();\n}",
"private String getRandomSeed() {\n long newSeed = 0;\n Random randBoolean = new Random(randomSeed);\n for (int i = 0; i < 48; i++) {\n if (randBoolean.nextBoolean()) {\n newSeed += 1 << i;\n }\n }\n if (newSeed < 0) {\n newSeed = Math.abs(newSeed);\n }\n\n String s = \"\";\n if (newSeed == 0) {\n s += \"0\";\n } else {\n while (newSeed != 0) {\n long num = (newSeed & (0xF));\n if (num < 10) {\n s = num + s;\n } else {\n s = ((char) (num + 55)) + s;\n }\n newSeed = newSeed >> 4;\n }\n }\n return s;\n }",
"@Override\n public int orinar() {\n\n return (int) (Math.random() * 400) + 400;\n }",
"public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }",
"public void generateR(){\n\t\t\tdo{\n\t\t\t\tr = new BigInteger(80, new Random());\n\t\t\t}while(!(q.gcd(r).equals(BigInteger.ONE)&&r.compareTo(q)<0&&r.compareTo(BigInteger.ONE)>=0));\n\t}",
"public static Ally getRandomRep () {\n return republican[(int) (Math.random() * republican.length)];\n }",
"public void shuffle() {\n Collections.shuffle(this.plateau);\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}",
"@Override\n public void run() {\n if (random.nextInt(10) == 0)\n addPowerUp(random.nextInt(256));\n }",
"private PRNG() {\n java.util.Random r = new java.util.Random();\n seed = r.nextInt();\n mersenne = new MersenneTwister(seed);\n }",
"public int performDuel(){\n Random rand = new Random();\n int intRand;\n intRand = rand(6);\n while(this.engine.getGameInformation().cards[intRand][intRand] == 0 ){\n intRand = rand(6);\n }\n return intRand;\n }",
"public int eDmg(){\r\n eDmg = rand.nextInt(13);\r\n return eDmg;\r\n }",
"@Override\r\n\tpublic String rollString() {\r\n\t\treturn \"\"+Randomizer.getRandomNumber(possibleValues);\r\n\t}",
"@Override\n public void run() {\n n =r.nextInt(6)+1;\n rollDieFace(n);\n }",
"public final int arvoRivinAihe() {\r\n return super.getRandom().nextInt(super.aiheetPerusmuoto().length);\r\n }",
"private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }",
"public float generarTE(){\n float ts;\n float rnd=(float)Math.random();\n \n if(rnd<=0.20){ts=1;}\n else if(rnd<=0.50){ts=2;}\n else if(rnd<=0.85){ts=3;}\n else {ts=4;}\n \n return ts;\n }",
"public int getDie1Rand()\n {\n // Set a value for the die1Rand field and return this field as a value.\n // When method called, overwrite the default value for die1Rand\n // \tand insert a new value; value in variable die1 will be the new value for die1Rand.\n\n // Return the number showing on the first die.\n return die1Rand;\n }",
"public void Diceroll()\n\t{\n\t\tdice1 = rand.nextInt(6)+1;\n\t\tdice2 = rand.nextInt(6)+1;\n\t\ttotal = dice1+dice2;\n\t}",
"public void angreifen(Lebewesen lebewesen) {\n\t\tdouble zahl = Math.random(); //generiert eine Zahl (double) zwischen 0 und 1\r\n\t\tif(zahl < 0.9d){ //leichtverletzen\r\n\t\t\tlebewesen.leichtVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}else if(zahl < 0.98d){ //schwer verletzen\r\n\t\t\tlebewesen.starkVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}else{ //direkt töten\r\n\t\t\tlebewesen.toetlichVerletzen();\r\n\t\t\t//System.out.println(\"Monster: \"+ this.aktuellerZustand);\r\n\t\t}\r\n\t}",
"private void generarAno() {\r\n\t\tthis.ano = ANOS[(int) (Math.random() * ANOS.length)];\r\n\t}",
"private void crearGen(int id){\n Random random = new Random();\n int longitud = random.nextInt(6) + 5;\n\n random = null;\n\n Gen gen = new Gen(id, longitud);\n agregarGen(gen);\n }",
"public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}",
"public void shuffle() {\n\t\tCollections.shuffle(Arrays.asList(reel));\n\t}",
"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 }",
"public int generarNombreAleatori() {\n\t\tRandom random = new Random();\n\t\treturn random.nextInt((9) - 1) + 1;\n\t}",
"public abstract boolean isRandom();",
"private int Rand_Move() {\n\t\tRandom r = new Random();\n\t\tint move = NO_MOVE;\n\t\tdo{\n\t\t\tmove = r.nextInt(9);\n\t\t}while(square_empty[move] == false);\n\t\treturn move;\n\t}",
"public Random getRandom() {\n\t\treturn (rand);\n\t}",
"public void roll() {\n\t\tthis.faceValue = (int)(NUM_SIDES*Math.random()) + 1;\n\t}",
"public int rollResult(){\r\n return rand.nextInt(6) + 1;\r\n }",
"public Rng() {\n\t\tr = new Random();\n\t}",
"public Element setToRandom() {\n this.value = Math.abs(ThreadSecureRandom.get().nextLong()) % field.order;\n\n return mod();\n }",
"private String getRandomName(){\n return rndString.nextString();\n }",
"@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}",
"private static String getRandString() {\r\n return DigestUtils.md5Hex(UUID.randomUUID().toString());\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 }",
"private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }",
"protected static void asignarRandom (Sansano jugador){\n int i, rand;\n Carta carta;\n for (Cards cartas : Cards.values()) {\n switch (cartas) {\n case MATE:\n rand = ThreadLocalRandom.current().nextInt(0, jugador.getMazoSize()+1);\n carta = new Curso(cartas.getNombre(), cartas.getDescripcion(), cartas.getPuntos(), cartas.getDef());\n jugador.addCard(carta, rand);\n break;\n case FIS:\n for (i = 0; i < 4; i++) {\n rand = ThreadLocalRandom.current().nextInt(0, jugador.getMazoSize()+1);\n carta = new Curso(cartas.getNombre(), cartas.getDescripcion(), cartas.getPuntos(), cartas.getDef());\n jugador.addCard(carta, rand);\n }\n break;\n case LP:\n for (i = 0; i < 2; i++) {\n rand = ThreadLocalRandom.current().nextInt(0, jugador.getMazoSize()+1);\n carta = new Curso(cartas.getNombre(), cartas.getDescripcion(), cartas.getPuntos(), cartas.getDef());\n jugador.addCard(carta, rand);\n }\n break;\n case PROGRA:\n for (i = 0; i < 6; i++) {\n rand = ThreadLocalRandom.current().nextInt(0, jugador.getMazoSize()+1);\n carta = new Curso(cartas.getNombre(), cartas.getDescripcion(), cartas.getPuntos(), cartas.getDef());\n jugador.addCard(carta, rand);\n }\n break;\n case ED:\n for (i = 0; i < 3; i++) {\n rand = ThreadLocalRandom.current().nextInt(0, jugador.getMazoSize()+1);\n carta = new Curso(cartas.getNombre(), cartas.getDescripcion(), cartas.getPuntos(), cartas.getDef());\n jugador.addCard(carta, rand);\n }\n break;\n case EDD:\n for (i = 0; i < 4; i++) {\n rand = ThreadLocalRandom.current().nextInt(0, jugador.getMazoSize());\n carta = new Curso(cartas.getNombre(), cartas.getDescripcion(), cartas.getPuntos(), cartas.getDef());\n jugador.addCard(carta, rand);\n }\n break;\n case BAH:\n case MA:\n case CIF:\n case MR:\n rand = ThreadLocalRandom.current().nextInt(0, jugador.getMazoSize()+1);\n carta = new Profesor(cartas.getNombre(), cartas.getDescripcion(), cartas.getPuntos());\n jugador.addCard(carta, rand);\n break;\n case CERR:\n case INTER:\n case FONDA:\n case WEEK:\n case FREE:\n case OMBLIGO:\n rand = ThreadLocalRandom.current().nextInt(0, jugador.getMazoSize()+1);\n carta = new Carrete(cartas.getNombre(), cartas.getDescripcion(), cartas.getPuntos());\n jugador.addCard(carta, rand);\n }\n }\n }",
"public Enigma(){ \r\n randNumber = new Random(); \r\n }",
"public Dice() {\n this.random = new Random();\n this.faces = 6;\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 }",
"String getSeed();",
"@Override\n public long generateNewTimeToNextContract() {\n return new Random().nextInt(5);\n }",
"public int zugBerechnen(int gegnerZug){\n\t\t\n\t\tsetzeGegnerStein(gegnerZug);\n\t\t\n\t\tif(gegnerZug == -1){\n\t\t\thatAngefangen = eigenerStein;\n\t\t\tsetzeEigenenStein(3);\n\t\t\treturn 3;\n\t\t}\n\t\t\n\t\tkeineZuegeMehr();\n\t\t\n\t\tint spalte = (int)(Math.random()*6);\n\t\t\n\t\tfor(int i=0; i < moeglicheZuege.length; i++){\n\t\t\tspalte = (i+spalte)%7;\n\t\t\tif(siegMuster(spalte, moeglicheZuege[spalte]) && moeglicheZuege[spalte] < 6){\n\t\t\t\tsetzeEigenenStein(spalte);\n\t\t\t\treturn spalte;\n\t\t\t}\n\t\t}\n/*\t\n\t\tfor(int i=0; i < moeglicheZuege.length; i++){\n\t\t\tspalte = (i+spalte)%7;\n\t\t\tif(gegnerSiegMuster(spalte, moeglicheZuege[spalte]) && moeglicheZuege[spalte] < 6){\n\t\t\t\tsetzeEigenenStein(spalte);\n\t\t\t\treturn spalte;\n\t\t\t}\n\t\t}\n*/\t\t\n\t\tfor(int i = 0; i < moeglicheZuege.length; i++){\n\t\t\tspalte = (i+spalte)%7;\n\t\t\tif(moeglicheZuege[spalte] < 6){\n\t\t\t\tsetzeEigenenStein(spalte);\n\t\t\t\treturn spalte;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn -1; //Kein Spielzug mehr moeglich\n\t}",
"long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}",
"public void shuffle();",
"public void genNewGame() {\n Random rand = new Random();\n int num = 0;\n\n int[] row = new int[9];\n\n for (int i = 0; i < 9; i++) {\n while (isInRow(row, num)) {\n num = rand.nextInt(9) + 1;\n }\n row[i] = num;\n }\n\n setRow(board, row, 0);\n shiftRow(row, 3);\n setRow(board, row, 1);\n shiftRow(row, 3);\n setRow(board, row, 2);\n\n shiftRow(row, 1);\n setRow(board, row, 3);\n shiftRow(row, 3);\n setRow(board, row, 4);\n shiftRow(row, 3);\n setRow(board, row, 5);\n\n shiftRow(row, 1);\n setRow(board, row, 6);\n shiftRow(row, 3);\n setRow(board, row, 7);\n shiftRow(row, 3);\n setRow(board, row, 8);\n\n }",
"public int aleatorioSeis(){\n\t\t\n\t\treturn (int)(Math.random() * 6) + 1;\n\t}",
"public void generete() {\n int minQuantFig = 1,\r\n maxQuantFig = 10,\r\n minNum = 1,\r\n maxNum = 100,\r\n minColor = 0,\r\n maxColor = (int)colors.length - 1,\r\n\r\n // Initialize figures property for random calculations\r\n randomColor = 0,\r\n randomFigure = 0,\r\n\r\n // Squere property\r\n randomSideLength = 0,\r\n\r\n // Circle property\r\n randomRadius = 0,\r\n \r\n // IsoscelesRightTriangle property \r\n randomHypotenus = 0,\r\n \r\n // Trapizoid properties\r\n randomBaseA = 0,\r\n randomBaseB = 0,\r\n randomAltitude = 0;\r\n\r\n // Generate random number to set figueres's quantaty\r\n setFigureQuantaty( generateWholoeNumInRange(minQuantFig, maxQuantFig) );\r\n\r\n for( int i = 0; i < getFigureQuantaty(); i++ ) {\r\n\r\n // Convert double random value to int and close it in range from 1 to number of elements in array\r\n randomFigure = (int)( Math.random() * figures.length );\r\n \r\n randomColor = generateWholoeNumInRange( minColor, maxColor ); // Get random color's index from colors array\r\n\r\n // Create new figure depending on randomFigure \r\n switch (figures[randomFigure]) {\r\n\r\n case \"Circle\":\r\n\r\n randomRadius = generateWholoeNumInRange( minNum, maxNum ); // Get random value of circle's radius;\r\n\r\n Circle newCircle = new Circle( colors[randomColor], randomRadius ); // Initialize Circle with random parameters\r\n\r\n newCircle.drawFigure();\r\n \r\n break;\r\n\r\n case \"Squere\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n Squere newSquere = new Squere( colors[randomColor], randomSideLength ); // Initialize Circle with random parameters\r\n\r\n newSquere.drawFigure();\r\n\r\n break;\r\n\r\n case \"Triangle\":\r\n\r\n randomSideLength = generateWholoeNumInRange( minNum, maxNum ); // Get random value of side length;\r\n\r\n randomHypotenus = generateWholoeNumInRange( minNum, maxNum ); // Get random value of hypotenus;\r\n\r\n IsoscelesRightTriangle newTriangle = new IsoscelesRightTriangle( colors[randomColor], randomSideLength, randomHypotenus ); // Initialize Circle with random parameters\r\n\r\n newTriangle.drawFigure();\r\n\r\n break;\r\n\r\n case \"Trapezoid\":\r\n\r\n randomBaseA = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side A;\r\n\r\n randomBaseB = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's side B;\r\n\r\n randomAltitude = generateWholoeNumInRange( minNum, maxNum ); // Get random value of trapizoid's altitude;\r\n\r\n Trapezoid newTrapezoid = new Trapezoid( colors[randomColor], randomBaseA, randomBaseB, randomAltitude ); // Create new Trapezoid with random parameters\r\n\r\n newTrapezoid.drawFigure();\r\n\r\n break;\r\n\r\n };\r\n };\r\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\n public int attack() {\n return new Random().nextInt(5);\n }",
"private static void roll()\n {\n rand = (int)(((Math.random())*6)+1); // dice roll #1\n rand2 = (int)(((Math.random())*6)+1);// dice roll #2\n }",
"void saveRandom();",
"@Override\n public boolean run() {\n return new Random().nextBoolean();\n }",
"public static double randomNum(Random g)\n\t{\n\t\treturn -5+g.nextDouble()*10;\n\t}",
"void shuffle();",
"void shuffle();",
"public BaileyCrandall() {\n\tsetSeed(System.currentTimeMillis());\n }",
"public String getRandomCharecter(){\n\n\tif (!dataprepared){\n\t prepareData();\n\t}\n\t\n\tAssert.pre(table!=null,\"data must be prepared\");\n\n\treturn (String)table.get(r.nextInt(total));\n\n\t\n }",
"private int rand(int lower, int upper) {\n return lower + (int)(Math.random() * ((upper - lower) + 1));\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 }",
"public float randomize() {\n return nextFloat(this.min, this.max);\n }",
"public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}",
"public void testRand()\n throws IOException, FileNotFoundException\n {\n compareValues(PATH + \"randtable.txt\", PATH + \"RandPair.txt\", FACTORY);\n }",
"public void roll()\r\n\t{\r\n\t\tthis.value = rnd.nextInt(6) + 1;\r\n\t}"
] |
[
"0.68419844",
"0.683099",
"0.6764076",
"0.6706507",
"0.6604898",
"0.6538483",
"0.653001",
"0.6520541",
"0.6486529",
"0.6396869",
"0.6371497",
"0.63517255",
"0.63489765",
"0.63407755",
"0.62813497",
"0.6213188",
"0.6185431",
"0.6179925",
"0.6173997",
"0.6167418",
"0.6162478",
"0.6154008",
"0.6130083",
"0.6124861",
"0.61138856",
"0.61123705",
"0.60995567",
"0.608368",
"0.6080774",
"0.60680026",
"0.6064513",
"0.6056498",
"0.60391426",
"0.6033743",
"0.59903777",
"0.5988448",
"0.5980266",
"0.59788346",
"0.5967556",
"0.59657806",
"0.59615326",
"0.5959232",
"0.5954402",
"0.5945927",
"0.5939612",
"0.59154415",
"0.5880913",
"0.5870611",
"0.5870525",
"0.58675396",
"0.58583516",
"0.58525497",
"0.58509463",
"0.5841173",
"0.58407795",
"0.58193594",
"0.58080435",
"0.5804167",
"0.5803517",
"0.5803025",
"0.5795083",
"0.5791447",
"0.5791073",
"0.5789978",
"0.57824355",
"0.5775291",
"0.57741505",
"0.57737327",
"0.5773003",
"0.57468325",
"0.5744298",
"0.5742717",
"0.5736899",
"0.57283014",
"0.57273775",
"0.5710291",
"0.5707817",
"0.57063043",
"0.5703576",
"0.57006586",
"0.569511",
"0.56939703",
"0.5691589",
"0.5689821",
"0.5670247",
"0.56696546",
"0.5668833",
"0.5668301",
"0.56587756",
"0.5651238",
"0.56497836",
"0.56495374",
"0.56495374",
"0.5648983",
"0.56450653",
"0.56447124",
"0.5644648",
"0.5639818",
"0.56313807",
"0.5631092",
"0.56286156"
] |
0.0
|
-1
|
Used to add buttons
|
@Override
public void postInit(){
super.postInit();
this.buttonList.add(this.readDescription = new GuiButton(6, this.width - 110, 2, 100, 20, "World Description"));
this.readDescription.enabled = false;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void createButtons() {\n\n addRow = new JButton(\"Add row\");\n add(addRow);\n\n deleteRow = new JButton(\"Delete row\");\n add(deleteRow);\n }",
"private void createButton(){\n addButton();\n addStartButton();\n }",
"void addButton_actionPerformed(ActionEvent e) {\n addButton();\n }",
"private void setAddButtonUI() {\n addButton = new JButton(\"Add\");\n addButton.setForeground(new Color(247, 37, 133));\n addButton.addActionListener(this);\n addButton.setContentAreaFilled(false);\n addButton.setFocusPainted(false);\n addButton.setFont(new Font(\"Nunito\", Font.PLAIN, 14));\n addButton.setAlignmentX(Component.CENTER_ALIGNMENT);\n }",
"public void createButtons() {\n\t\tescapeBackground = new GRect(200, 150, 300, 400);\n\t\tescapeBackground.setFilled(true);\n\t\tescapeBackground.setColor(Color.gray);\n\n\t\tbutton1 = new GButton(\"Return to Game\", 250, 175, 200, 50, Color.cyan);\n\t\tbutton3 = new GButton(\"Exit Level\", 250, 330, 200, 50, Color.cyan);\n\t\tbutton4 = new GButton(\"Return to Menu\", 250, 475, 200, 50, Color.cyan);\n\n\t\tescapeButtons.add(button1);\n\t\tescapeButtons.add(button3);\n\t\tescapeButtons.add(button4);\n\n\t}",
"private void createButtonsPanel() {\r\n Composite buttonsPanel = new Composite(this, SWT.NONE);\r\n buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\r\n buttonsPanel.setLayout(new GridLayout(4, true));\r\n\r\n getButtonFromAction(buttonsPanel, \"New\", new NewAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Save\", new SaveAction());\r\n getButtonFromAction(buttonsPanel, \"Delete\", new DeleteAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Cancel\", new CancelAction());\r\n }",
"private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}",
"@Override\n\tprotected void initAddButton() {\n addBtn = addButton(\"newBtn\", TwlLocalisationKeys.ADD_BEAT_TYPE_TOOLTIP, new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tnew AddEditBeatTypePanel(true, null, BeatTypesList.this).run(); // adding\n\t\t\t\t}\n\t }); \t\t\n\t}",
"@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }",
"private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}",
"@Override\n\tprotected void createCompButtons() {\n\t\tbuildCompButtons();\n\t}",
"public void createButtons() {\n\t\tbutton1 = new JButton(\"Button1\");\n\t\tbutton2 = new JButton(\"Button2\");\n\t\tbutton3 = new JButton(\"Button3\");\n\t\tbutton4 = new JButton(\"Button4\");\n\t\tbutton5 = new JButton(\"Button5\");\n\t}",
"public void addKeys() {\n\t\tbtnDot = new JButton(\".\");\n\t\tbtnDot.setBounds(42, 120, 40, 40);\n\t\tthis.add(btnDot); //Handle case\n\t\t\n\t\tbtn0 = new JButton(\"0\");\n\t\tbtn0.setBounds(81, 120, 40, 40);\n\t\tthis.add(btn0);\n\t\tnumberButtonList = new ArrayList<JButton>(10);\n\t\tnumberButtonList.add(btn0);\n\t\t\n\t\tbtnC = new JButton(\"C\");\n\t\tbtnC.setBounds(120, 120, 40, 40);\n\t\tthis.add(btnC);\n\t\t\n\t\tbtnStar = new JButton(\"*\");\n\t\tbtnStar.setBounds(159, 120, 40, 40);\n\t\tthis.add(btnStar);\n\t\toperationButtonList = new ArrayList<JButton>(10);\n\t\toperationButtonList.add(btnStar);\n\t\t\n\t\tbtnPi = new JButton(\"π\");\n\t\tbtnPi.setBounds(198, 120, 40, 40);\n\t\tthis.add(btnPi);\n\t\t//numberButtonList.add(btnPi); //Special case\n\t\tvalueButtons.add(btnPi);\n\t\t\n\t\tbtnLn = new JButton(\"ln\");\n\t\tbtnLn.setBounds(237, 120, 40, 40);\n\t\tthis.add(btnLn);\n\t\tresultOperations.add(btnLn);\n\t\t\n\t\t//Row 2\n\t\t\n\t\tbtn3 = new JButton(\"3\");\n\t\tbtn3.setBounds(42, 80, 40, 40);\n\t\tthis.add(btn3);\n\t\tnumberButtonList.add(btn3);\n\t\t\n\t\tbtn2 = new JButton(\"2\");\n\t\tbtn2.setBounds(81, 80, 40, 40);\n\t\tthis.add(btn2);\n\t\tnumberButtonList.add(btn2);\n\t\t\n\t\tbtn1 = new JButton(\"1\");\n\t\tbtn1.setBounds(120, 80, 40, 40);\n\t\tthis.add(btn1);\n\t\tnumberButtonList.add(btn1);\n\t\t\n\t\tbtnDivide = new JButton(\"/\");\n\t\tbtnDivide.setBounds(159, 80, 40, 40);\n\t\tthis.add(btnDivide);\n\t\toperationButtonList.add(btnDivide);\n\t\t\n\t\tbtnE = new JButton(\"e\");\n\t\tbtnE.setBounds(198, 80, 40, 40);\n\t\tthis.add(btnE);\n\t\tvalueButtons.add(btnE);\n\t\t//numberButtonList.add(btnE); //Special case\n\t\t\n\t\tbtnTan = new JButton(\"tan\");\n\t\tbtnTan.setBounds(237, 80, 40, 40);\n\t\tthis.add(btnTan);\n\t\tresultOperations.add(btnTan);\n\t\t\n\t\t//Row 3\n\t\t\n\t\tbtn6 = new JButton(\"6\");\n\t\tbtn6.setBounds(42, 40, 40, 40);\n\t\tthis.add(btn6);\n\t\tnumberButtonList.add(btn6);\n\t\t\n\t\tbtn5 = new JButton(\"5\");\n\t\tbtn5.setBounds(81, 40, 40, 40);\n\t\tthis.add(btn5);\n\t\tnumberButtonList.add(btn5);\n\t\t\n\t\tbtn4 = new JButton(\"4\");\n\t\tbtn4.setBounds(120, 40, 40, 40);\n\t\tthis.add(btn4);\n\t\tnumberButtonList.add(btn4);\n\t\t\n\t\tbtnMinus = new JButton(\"-\");\n\t\tbtnMinus.setBounds(159, 40, 40, 40);\n\t\tthis.add(btnMinus);\n\t\toperationButtonList.add(btnMinus);\n\t\t\n\t\tbtnSqRt = new JButton(\"√\");\n\t\tbtnSqRt.setBounds(198, 40, 40, 40);\n\t\tthis.add(btnSqRt);\n\t\tresultOperations.add(btnSqRt);\n\t\t\n\t\tbtnCos = new JButton(\"cos\");\n\t\tbtnCos.setBounds(237, 40, 40, 40);\n\t\tthis.add(btnCos);\n\t\tresultOperations.add(btnCos);\n\t\t\n\t\t//Row 4\n\t\t\n\t\tbtn9 = new JButton(\"9\");\n\t\tbtn9.setBounds(42, 0, 40, 40);\n\t\tthis.add(btn9);\n\t\tnumberButtonList.add(btn9);\n\t\t\n\t\tbtn8 = new JButton(\"8\");\n\t\tbtn8.setBounds(81, 0, 40, 40);\n\t\tthis.add(btn8);\n\t\tnumberButtonList.add(btn8);\n\t\t\n\t\tbtn7 = new JButton(\"7\");\n\t\tbtn7.setBounds(120, 0, 40, 40);\n\t\tthis.add(btn7);\n\t\tnumberButtonList.add(btn7);\n\t\t\n\t\tbtnPlus = new JButton(\"+\");\n\t\tbtnPlus.setBounds(159, 0, 40, 40);\n\t\tthis.add(btnPlus);\n\t\toperationButtonList.add(btnPlus);\n\t\t\n\t\tbtnPower = new JButton(\"^\");\n\t\tbtnPower.setBounds(198, 0, 40, 40);\n\t\tthis.add(btnPower);\n\t\toperationButtonList.add(btnPower);\n\t\t\n\t\tbtnSin = new JButton(\"sin\");\n\t\tbtnSin.setBounds(237, 0, 40, 40);\n\t\tthis.add(btnSin);\n\t\tresultOperations.add(btnSin);\n\t}",
"private void addButtons() {\r\n\t\troot.getChildren().add(button); // creating the Easy button \r\n\t\tb1 = new Button(\"Easy\");\r\n\t\tb1.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Easy\";\r\n\t\t\t}\r\n\t\t});\r\n\t\troot.getChildren().add(b1); // creating the Normal button\r\n\t\tb2 = new Button(\"Normal\");\r\n\t\tb2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Normal\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb2.setLayoutX(50);\r\n\t\troot.getChildren().add(b2); // creating the Hard button\r\n\t\tb3 = new Button(\"Hard\");\r\n\t\tb3.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Hard\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb3.setLayoutX(115);\r\n\t\troot.getChildren().add(b3);\r\n\t}",
"@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }",
"private void addButton()\n {\n JButton button = new JButton();\n button.setSize(200, 30);\n button.setName(\"login\");\n button.setAction(new CreateUserAction());\n add(button);\n button.setText(\"Login\");\n }",
"private void addViewBody() {\n\t\tJButton medicosButton = new JButton(\"Médicos\");\n\t\tmedicosButton.addActionListener((ActionEvent e) -> {\n\t\t\tRouter.getInstance().goToView(new MedicosView());\n\t\t});\n\t\tthis.add(medicosButton);\n\n\t\tJButton clientesButton = new JButton(\"Clientes\");\n\t\tclientesButton.addActionListener((ActionEvent e) -> {\n\t\t\tRouter.getInstance().goToView(new ClientesView());\n\t\t});\n\t\tthis.add(clientesButton);\n\n\t\tJButton novaConsultaButton = new JButton(\"Nova Consulta\");\n\t\tnovaConsultaButton.addActionListener((ActionEvent e) -> {\n\t\t\tRouter.getInstance().goToView(new CadastroConsultaView());\n\t\t});\n\t\tthis.add(novaConsultaButton);\n\n\t\tJButton novoTesteButton = new JButton(\"Novo Teste [EM BREVE]\");\n\t\tnovoTesteButton.setEnabled(false);\n\t\tthis.add(novoTesteButton);\n\t}",
"private JPanel createButtons()\r\n\t{\r\n\t\tJPanel buttons = new JPanel();\r\n\t\tbuttons.setLayout(new FlowLayout(FlowLayout.TRAILING));\r\n\r\n\r\n\t\tButton save = new Button(PrimeMain1.texts.getString(\"save\"));\r\n\t\tsave.addActionListener(this);\r\n\t\tsave.setActionCommand(\"save\");\r\n\r\n\t\tButton cancel = new Button(PrimeMain1.texts.getString(\"cancel\"));\r\n\t\tcancel.addActionListener(this);\r\n\t\tcancel.setActionCommand(\"cancel\");\r\n\r\n\r\n\t\tbuttons.add(save);\r\n\t\tbuttons.add(cancel);\r\n\r\n\t\treturn buttons;\r\n\t}",
"@Override\n public final void initButtons(int x, int y, int addy){\n \n String data = s_datapath;\n addButton(data + \"SM_NeuesSpiel\" + s_typ, x, y, 1);\n addButton(data + \"OM_SpielSpeichern\" + s_typ, x, y + addy, 2);\n addButton(data + \"SM_SpielLaden\" + s_typ, x, y + addy * 2, 3);\n //addButton(data,x, y + addy*3, 4);\n addButton(data + \"Menu_Element_Blank\" + s_typ, x,/*715*/ y + addy * 4, 5);\n addButton(data + \"SM_SpielBeenden\" + s_typ, x,/*845*/ y + addy * 5, 6);\n }",
"private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }",
"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}",
"@SuppressWarnings(\"unchecked\")\n\tprivate void addSingleplayerMultiplayerButtons() {\n\t\tthis.buttonList.add(new GuiButton(1, 4, 3, 60, 20, I18n.format(\"menu.singleplayer\", new Object[0])));\n\t\tthis.buttonList.add(new GuiButton(2, 70, 3, 50, 20, I18n.format(\"menu.multiplayer\", new Object[0])));\n\t\tthis.buttonList.add(new GuiButton(14, 126, 3, 60, 20, \"§bResilient§r\"));\n\n\t}",
"private JPanel createAddAndRemoveButtons() {\n JPanel panel = new JPanel(new FlowLayout(FlowLayout.LEADING));\n panel.add(createAddResourceButton());\n panel.add(createRemoveResourceButton());\n\n return panel;\n }",
"protected JButton createAddButton() {\n JButton butAdd = new JButton();\n butAdd.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/add.jpg\")));\n butAdd.setToolTipText(\"Add a new item\");\n butAdd.addActionListener(new AddItemListener());\n return butAdd;\n }",
"private void setupButtons() {\n\t\tsetupCreateCourse();\n\t\tsetupRemoveCourse();\n\t\tsetupCreateOffering();\n\t\tsetupRemoveOffering();\n\t\tsetupAddPreReq();\n\t\tsetupRemovePreReq();\n\t\tsetupBack();\n\t}",
"public void addControls() {\n }",
"public void initializeButtons() {\n\t\tif(null!=itemPanel)\n\t\t\tremove(itemPanel);\n\t\t\n\t\titemPanel = new JPanel();\n\t\titemPanel.setLayout(new FlowLayout());\n\t\tList<Item> allItems = itemDao.readAll();\n\t\t\n\t\t//Sort list of items based on item code.\n\t\tCollections.sort(allItems, new Comparator<Item>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Item o1, Item o2) {\n\t\t\t\tCharacter c1 = o1.getCode();\n\t\t\t\tCharacter c2 = o2.getCode();\n\t\t\t\treturn c1.compareTo(c2);\n\t\t\t}\n\t\t});\n\t\t\n\t\tfor(final Item item : allItems){\n\t\t\tJButton addButton = new JButton(item.getName());\n\t\t\tDeal deal = item.getDeal();\n\t\t\tString dealName = deal == null ? \"\" : \"<br>\" + deal.getName();\n\t\t\t//Set tool tip as description and deal if available\n\t\t\taddButton.setToolTipText(\"<html>\"+item.getDescription()+\"<br>Price: $\"+item.getPrice()\n\t\t\t\t\t+ dealName+\"</html>\");\n\t\t\t//Add item to cart when pressed, also update cartLabel.\n\t\t\taddButton.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tcart.addItem(item.getCode());\n\t\t\t\t\tcartLabel.setText(cart.size()+ \" items in your cart\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t//addButton.setBounds(10, frameHeight, 75, 20);\n\t\t\taddButton.setSize(new Dimension(75, 20));\n\t\t\titemPanel.add(addButton);\n\t\t}\n\t\t\n\t\titemPanel.setBounds(10, 30, 280, 150);\n\t\tadd(itemPanel);\n\t\tMain.getFrame().setVisible(true);;\n\t}",
"private void createComponentForButtons(Composite section)\n {\n createRowForNewStyleButton(section);\n createRowForNewRegexButton(section);\n createRowForNewColumnButton(section);\n createRowForDeleteButton(section);\n createRowForDeleteAllButton(section);\n }",
"private void buttonInit() {\n panel.add(createButton);\n panel.add(editButton);\n panel.add(changeButton);\n createButton.addActionListener(this);\n editButton.addActionListener(this);\n changeButton.addActionListener(this);\n submitNewUser.addActionListener(this);\n editAccTypeBtn.addActionListener(this);\n changePassBtn.addActionListener(this);\n }",
"void createButtons(Container cp) {\r\n JPanel pn4 = new JPanel(); // create a panel\r\n pn4.setLayout(new FlowLayout(FlowLayout.LEFT)); // set the layout\r\n for (int i=0; i<strClEx.length; i++) {\r\n // repeat for the number of the buttons\r\n bt[i] = new JButton(strClEx[i]); // create a button\r\n bt[i].addActionListener(this); // add the action listener to the button\r\n pn4.add(bt[i]); // add the button to the panel\r\n }\r\n cp.add(pn4); // add the panel to the container\r\n }",
"private void addControls() {\n\t\tAjaxButton button = new AjaxButton(\"submitButton\", ResourceUtils.getModel(\"button.save\")) {\n\t\t\t@Override\n protected void onSubmit(AjaxRequestTarget target, Form<?> form) {\n onSubmitAction(strWrapper, target, form);\n target.add(form);\n }\n\n\t\t\t@Override\n\t\t\tprotected void onError(AjaxRequestTarget target, Form<?> form) {\n\t\t\t\tsuper.onError(target, form);\n\t\t\t\ttarget.add(form);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onConfigure() {\n\t\t\t\tsuper.onConfigure();\n\t\t\t\tthis.setVisible(true);\n\t\t\t}\n\t\t};\n\t\tform.add(button);\n\n\t\tbutton = new AjaxButton(\"cancelButton\", ResourceUtils.getModel(\"button.cancel\")) {\n\t\t\t@Override\n\t\t\tprotected void onSubmit(AjaxRequestTarget target, Form<?> form) {\n\t\t\t\tonCancelAction(strWrapper, target, form);\n\t\t\t\tform.clearInput();\n\t\t\t\ttarget.add(form);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onConfigure() {\n\t\t\t\tsuper.onConfigure();\n\t\t\t\tthis.setVisible(true);\n\t\t\t}\n\t\t};\n\t\tbutton.setDefaultFormProcessing(false);\n\t\tform.add(button);\n\n\t}",
"private void setupAddToReviewButton() {\n\t\tImageIcon addreview_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"addtoreview.png\");\n\t\tJButton add_to_review = new JButton(\"\", addreview_button_image);\n\t\tadd_to_review.setBounds(374, 598, 177, 100);\n\t\tadd_to_review.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\twords_to_add_to_review.add(words_to_spell.get(current_word_number));\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tadd_to_review.addMouseListener(new VoxMouseAdapter(add_to_review,null));\n\t\tadd(add_to_review);\n\t}",
"private void createButton(int i){\n\t\tint x = 10, y = 120, width = 100, height = 20;\n\t\tint temp = 0;\n\t\t\n\t\tbuttons.add(new JButton(\"New Student\"));\n\t\tbuttons.get(i).addActionListener(this);\n\t\t\n\t\tfor (int a = 0; a<i; a++){\n\t\t\tx += 110;\n\t\t\ttemp++;\n\t\t\tif(temp >= Integer.parseInt(askColumns.getText())){\n\t\t\t\ty += 140;\n\t\t\t\tx = 10;\n\t\t\t\ttemp = 0;\n\t\t\t}\n\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t\tbuttons.get(i).setBounds(x, y, width, height);\n\t\tthis.add(buttons.get(i));\t\n\t\tbuttons.get(i).revalidate();\n\t\tbuttons.get(i).repaint();\n\t\t\n\t}",
"private void addButtons(JPanel contentPanel, GridBagConstraints c) {\n JPanel buttonPanel = new JPanel();\n buttonPanel.setLayout(new GridBagLayout());\n GridBagConstraints gbc = new GridBagConstraints();\n\n JButton addButton = new JButton(buttonText);\n addButton.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 16));\n addButton.addActionListener(new AddListener());\n buttonPanel.add(addButton, gbc);\n\n gbc.gridx = 1;\n gbc.insets = new Insets(0, 20, 0, 0);\n JButton cancelButton = new JButton(\"Cancel\");\n cancelButton.addActionListener(new CancelListener());\n cancelButton.setFont(new Font(QuizAppUtilities.UI_FONT, Font.PLAIN, 16));\n buttonPanel.add(cancelButton, gbc);\n\n c.gridy = 6;\n contentPanel.add(buttonPanel, c);\n }",
"private void initButtons() {\n HBox buttons = new HBox(50);\n yes = new Button(\"Yes!\");\n no = new Button(\"No!\");\n buttons.getChildren().addAll(yes,no);\n buttons.setAlignment(Pos.CENTER);\n root.getChildren().addAll(buttons);\n }",
"public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}",
"public void manageInputPointCreation(){\n Button addInputButton = new Button();\n addInputButton.setId(\"addInputListButton\");\n\n addInputButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n try {\n Map<String, IYamlDomain> newMap = new HashMap<String, IYamlDomain>();\n newMap.put(Integer.toString(_addCounter), _class.newInstance());\n _abstractUiNode.getChilds().get(0).addInputData(newMap);\n _addCounter ++;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n _abstractUiNode.getChildren().add(addInputButton);\n addInputButton.setVisible(true);\n StackPane.setAlignment(addInputButton, Pos.BOTTOM_LEFT);\n\n }",
"private void createBottomActionButtons() {\n Composite actionControlComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n actionControlComp.setLayout(gl);\n actionControlComp.setLayoutData(gd);\n\n Button okBtn = new Button(actionControlComp, SWT.PUSH);\n okBtn.setText(\" OK \");\n okBtn.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n if (verifySelection()) {\n close();\n }\n }\n });\n\n Button cancelBtn = new Button(actionControlComp, SWT.PUSH);\n cancelBtn.setText(\" Cancel \");\n cancelBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n close();\n }\n });\n }",
"public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void addComponents() {\n LOOGER.info(\"Get add Components Entry\");\n // Adding loadButton to first row.\n this.add(loadButton);\n\n // Adding fillButton to first row.\n this.add(fillButton);\n\n // Adding deleteButton to first row.\n this.add(deleteButton);\n LOOGER.info(\"add Components exit\");\n }",
"private void addButtonsToPanel() {\n\t\tselectionPanel.add(rock, BorderLayout.WEST);\n\t\tselectionPanel.add(paper, BorderLayout.CENTER);\n\t\tselectionPanel.add(scissors, BorderLayout.EAST);\n\n\t\t// Adds a border with given text\n\t\tselectionPanel.setBorder(BorderFactory\n\t\t\t\t.createTitledBorder(\"Choose wisely. . .\"));\n\t}",
"@Override\r\n\tprotected void createButtonsForButtonBar(Composite parent) {\r\n\t\tcreateButton(parent, IDialogConstants.OK_ID, Messages.BTN_ADD,\r\n\t\t\t\ttrue);\r\n\t\tcreateButton(parent, IDialogConstants.CANCEL_ID,\r\n\t\t\t\tMessages.BTN_FINISH, false);\r\n\t\tinitDataBindings();\r\n\t}",
"void addButtonsToTable(){\n detailButtons = new Vector<JButton>();\n stornoButtons = new Vector<JButton>();\n for (int i=0; i<data.size(); i++){\n detailButtons.add(new JButton(\"+\"));\n detailButtons.get(i).addActionListener(this);\n myTable.setValueAt( detailButtons.get(i), i, 0 );\n stornoButtons.add(null);\n if (!stornoStatuses.get(i)) { // exclude already canceled bookings\n stornoButtons.set(i, new JButton(\"Storno\"));\n stornoButtons.get(i).addActionListener(this);\n myTable.setValueAt( stornoButtons.get(i), i, overviewLabels.size()-1 );\n }\n }\n }",
"private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }",
"private void initCreateDeckBtn() {\n createBtn = new Button((editWidth - 310) / 2, 400, \"CREATE NEW DECK\", MasterGUI.green, titleField.getWidth(), titleField.getHeight());\n createBtn.setFont(MasterGUI.poppinsFont);\n createBtn.setForeground(MasterGUI.white);\n createBtn.setContentAreaFilled(true);\n createBtn.setFocusPainted(false);\n ActionListener createAction = new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n createDeckFromInput();\n user.updateDeckList();\n repaintDeckCards();\n HomeView.repaintHomeView();\n }\n };\n createBtn.addActionListener(e -> {\n MainGUI.confirmDialog(createAction, \"Create new Deck?\");\n });\n editPanel.add(createBtn);\n }",
"private void createUIComponents() {\n bt1 = new JButton(\"Hola\");\n }",
"@Override\n\tprotected void buildButton() {\n\t\t\n\t}",
"public void createGameButtons() {\n \tcreateGameButton(myResources.getString(\"startcommand\"), 1, GAME_BUTTON_XLOCATION, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"stopcommand\"), 0, GAME_BUTTON_XLOCATION * 3, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"speedup\"), SPEED_INCREASE, GAME_BUTTON_XLOCATION*5, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"slowdown\"), 1/SPEED_INCREASE, GAME_BUTTON_XLOCATION*7, GAME_BUTTON_YLOCATION);\n }",
"protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}",
"private void buttonInitiation() {\n submit = new JButton(\"Submit\");\n submit.setBounds(105, 250, 90, 25);\n this.add(submit);\n goBack = new JButton(\"Return to Main Menu\");\n goBack.setBounds(205, 250, 200, 25);\n this.add(goBack);\n }",
"private void createAddButton(final Composite parent, final FunctionParameter fp, boolean addEnabled) {\n \t\t// create add button -> left\n\t\tfinal Button addButton = new Button(parent, SWT.PUSH);\n\t\taddButtons.put(fp, addButton);\n \t\taddButton.setLayoutData(new GridData(SWT.BEGINNING, SWT.BEGINNING, true, false, 2, 1));\n \t\taddButton.setText(\"Add parameter value\");\n \t\taddButton.setEnabled(addEnabled);\n \n \t\t// create selection listeners\n \t\taddButton.addSelectionListener(new SelectionAdapter() {\n \t\t\t@Override\n \t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t\t\t\t// add text field\n \t\t\t\tList<Pair<Text, Button>> texts = inputFields.get(fp);\n \t\t\t\tboolean removeButtonsDisabled = texts.size() == fp.getMinOccurrence();\n \t\t\t\tPair<Text, Button> added = createField(addButton.getParent(), fp, null);\n \t\t\t\tadded.getFirst().moveAbove(addButton);\n \t\t\t\tadded.getSecond().moveAbove(addButton);\n \t\t\t\t\n \t\t\t\t// update add button\n \t\t\t\tif (texts.size() == fp.getMaxOccurrence())\n \t\t\t\t\taddButton.setEnabled(false);\n \n \t\t\t\t// need to enable all remove buttons or only the new one?\n \t\t\t\tif (removeButtonsDisabled)\n \t\t\t\t\tfor (Pair<Text, Button> pair : texts)\n \t\t\t\t\t\tpair.getSecond().setEnabled(true);\n \t\t\t\telse\n \t\t\t\t\tadded.getSecond().setEnabled(true);\n \n \t\t\t\t// do layout\n \t\t\t\t((Composite) getControl()).layout();\n \t\t\t\t// run validator to update ControlDecoration and updateState\n \t\t\t\tadded.getFirst().setText(\"\");\n \t\t\t\t// pack to make wizard larger if necessary\n \t\t\t\tgetWizard().getShell().pack();\n \t\t\t}\n \t\t});\n \t}",
"@Override\n\tprotected void createCompButtons() {\n\t\tbtnExcelReport = new Button(getCompButtons(), SWT.NONE);\n\t\tbtnExcelReport.setText(\"Excel Report\");\n\t\tbtnExcelReport.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tbtnExcelReport\n\t\t.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(\n\t\t\t\t\torg.eclipse.swt.events.SelectionEvent e) {\n\t\t\t\tcmdExcelReportWidgetSelected();\n\t\t\t}\n\t\t});\n\t}",
"private void generateButtonPanel() {\n buttonsPanel = new JPanel();\n playPauseButton = addButton(\"Play/Pause\");\n restartButton = addButton(\"Restart\");\n speedUpButton = addButton(\"Speed Up\");\n slowDownButton = addButton(\"Slow Down\");\n loopbackButton = addButton(\"Loopback\");\n keyCommandsButton = addButton(\"Key Commands\");\n textViewButton = addButton(\"Animation Text\");\n\n addShapeButton = addButton(\"Add Shape\");\n removeShapeButton = addButton(\"Remove Shape\");\n addKeyframeButton = addButton(\"Add Keyframe\");\n removeKeyframeButton = addButton(\"Remove Keyframe\");\n editKeyframeButton = addButton(\"Edit Keyframe\");\n clearAnimationButton = addButton(\"Clear Animation\");\n clearShapeButton = addButton(\"Clear Shape\");\n buttonsPanel.setLayout(new FlowLayout());\n\n mainPanel.add(buttonsPanel);\n }",
"private void addButtonsToButtonPanel() {\n // The button to change the login accounts password\n changePasswordButton = new JButton(\"Change Password\");\n changePasswordButton.setPreferredSize(new Dimension(150, 45));\n changePasswordButton.addActionListener(this);\n changePasswordButton.setToolTipText(\"<html> Click this button to change the login accounts <b> password</b>. </html>\");\n changePasswordButton.setIcon(new ImageIcon(\"images/icons/bullet_edit.png\"));\n \n // Adds the change login accounts password to the button panel\n buttonPanel.add(changePasswordButton);\n \n \n // The button to change the login accounts security question and answer\n changeSecurityQ = new JButton(\"Change Security Question & Answer\");\n changeSecurityQ.setPreferredSize(new Dimension(250, 45));\n changeSecurityQ.addActionListener(this);\n changeSecurityQ.setToolTipText(\"<html> Click this button to change the login accounts <b> security question & answer</b>. </html>\");\n changeSecurityQ.setIcon(new ImageIcon(\"images/icons/bullet_edit.png\"));\n \n // Adds the change login accounts security question and answer to the button panel\n buttonPanel.add(changeSecurityQ);\n \n \n // The button to change the login accounts security question and answer\n cancelButton = new JButton(\"Cancel editting\");\n cancelButton.setPreferredSize(new Dimension(150, 45));\n cancelButton.addActionListener(this);\n cancelButton.setToolTipText(\"<html> Click this button to <b> cancel</b> the editing of the login account. </html>\");\n cancelButton.setIcon(new ImageIcon(\"images/icons/cancel.png\"));\n \n // Adds the change login accounts security question and answer to the button panel\n buttonPanel.add(cancelButton);\n \n // Updates the UI of the button panel\n buttonPanel.updateUI();\n }",
"private void addBtnMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_addBtnMousePressed\n addBtn.setBackground(Color.decode(\"#1e5837\"));\n }",
"private void configureButtons() {\n\n backToMenu = new JButton(\"Menu\");\n if(isWatching){\n backToMenu.setBounds(575, 270, 100, 50);\n }\n else{\n backToMenu.setBounds(30, 800, 100, 50);\n }\n backToMenu.setFont(new Font(\"Broadway\", Font.PLAIN, 20));\n backToMenu.setBackground(Color.RED);\n backToMenu.setFocusable(false);\n backToMenu.addActionListener(this);\n add(backToMenu);\n }",
"@Override\r\n\tprotected void createButtonsForButtonBar(Composite parent) {\n\t\tcreateButton(parent, IDialogConstants.OK_ID, \"Add\",\r\n\t\t\t\ttrue);\r\n\t\tcreateButton(parent, IDialogConstants.CANCEL_ID,\r\n\t\t\t\tIDialogConstants.CANCEL_LABEL, false);\r\n\t}",
"private void initButton() {\r\n\t\tthis.panelButton = new JPanel();\r\n\t\tthis.panelButton.setLayout(new BoxLayout(this.panelButton,\r\n\t\t\t\tBoxLayout.LINE_AXIS));\r\n\t\tthis.modifyButton = new JButton(\"Modify\");\r\n\t\tthis.buttonSize(this.modifyButton);\r\n\t\tthis.deleteButton = new JButton(\"Delete\");\r\n\t\tthis.buttonSize(this.deleteButton);\r\n\t\tthis.cancelButton = new JButton(\"Cancel\");\r\n\t\tthis.buttonSize(this.cancelButton);\r\n\r\n\t\tthis.modifyButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.deleteButton.addActionListener(this.editWeaponControl);\r\n\t\tthis.cancelButton.addActionListener(this.editWeaponControl);\r\n\r\n\t\tthis.panelButton.add(this.modifyButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.deleteButton);\r\n\t\tthis.panelButton.add(Box.createRigidArea(new Dimension(15, 0)));\r\n\t\tthis.panelButton.add(this.cancelButton);\r\n\t}",
"private JComponent buildButtons() {\n Panel panel = new Panel();\n panel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n JButton button = Buttons.create(\"Create\").onClick((ev) -> {\n try {\n group.setName(name.getText());\n group.clearUsers();\n list.getSelectedValuesList().forEach((item) -> {\n group.addUser(item);\n });\n if (group.getName().isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Name is required\");\n return;\n }\n if (!group.hasUsers()) {\n JOptionPane.showMessageDialog(null, \"Users are required\");\n return;\n }\n if (group.getId() == 0) {\n GroupRepository.get().save(group);\n } else {\n GroupRepository.get().update(group);\n }\n SwingUtilities.getWindowAncestor(this).dispose();\n } catch (RepositoryException ex) {\n JOptionPane.showMessageDialog(null, ex.getMessage());\n }\n });\n button.setIcon(IconFactory.get().create(\"fa:check\"));\n panel.add(button);\n return panel;\n }",
"private void addDemoButtons(int p_73972_1_, int p_73972_2_)\r\n\t{\r\n\t\tthis.buttonList.add(new GuiButton(11, this.width / 2 - 100, p_73972_1_, I18n.format(\"menu.playdemo\")));\r\n\t\tthis.buttonResetDemo = this.addButton(new GuiButton(12, this.width / 2 - 100, p_73972_1_ + p_73972_2_ * 1, I18n.format(\"menu.resetdemo\")));\r\n\t\tISaveFormat isaveformat = this.mc.getSaveLoader();\r\n\t\tWorldInfo worldinfo = isaveformat.getWorldInfo(\"Demo_World\");\r\n\r\n\t\tif (worldinfo == null)\r\n\t\t{\r\n\t\t\tthis.buttonResetDemo.enabled = false;\r\n\t\t}\r\n\t}",
"private JButton addButton(String name) {\n JButton button = new JButton(name);\n button.setActionCommand(name);\n buttonsPanel.add(button);\n return button;\n }",
"private void generateButtons(){\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t//Button button = new Button(coordX, coordY);\n\t\t//buttons.put(0, button);\n\t}",
"protected void createButtons(Panel panel) {\n panel.add(new Filler(24,20));\n\n Choice drawingChoice = new Choice();\n drawingChoice.addItem(fgUntitled);\n\n\t String param = getParameter(\"DRAWINGS\");\n\t if (param == null)\n\t param = \"\";\n \tStringTokenizer st = new StringTokenizer(param);\n while (st.hasMoreTokens())\n drawingChoice.addItem(st.nextToken());\n // offer choice only if more than one\n if (drawingChoice.getItemCount() > 1)\n panel.add(drawingChoice);\n else\n panel.add(new Label(fgUntitled));\n\n\t\tdrawingChoice.addItemListener(\n\t\t new ItemListener() {\n\t\t public void itemStateChanged(ItemEvent e) {\n\t\t if (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t loadDrawing((String)e.getItem());\n\t\t }\n\t\t }\n\t\t }\n\t\t);\n\n panel.add(new Filler(6,20));\n\n Button button;\n button = new CommandButton(new DeleteCommand(\"Delete\", fView));\n panel.add(button);\n\n button = new CommandButton(new DuplicateCommand(\"Duplicate\", fView));\n panel.add(button);\n\n button = new CommandButton(new GroupCommand(\"Group\", fView));\n panel.add(button);\n\n button = new CommandButton(new UngroupCommand(\"Ungroup\", fView));\n panel.add(button);\n\n button = new Button(\"Help\");\n\t\tbutton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n\t\t showHelp();\n\t\t }\n\t\t }\n\t\t);\n panel.add(button);\n\n fUpdateButton = new Button(\"Simple Update\");\n\t\tfUpdateButton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n if (fSimpleUpdate)\n setBufferedDisplayUpdate();\n else\n setSimpleDisplayUpdate();\n\t\t }\n\t\t }\n\t\t);\n\n // panel.add(fUpdateButton); // not shown currently\n }",
"public void createOrderBtn(){\n createOrderBtn = new Button(\"Create order\");\n createOrderBtn.setLayoutX(305);\n createOrderBtn.setLayoutY(710);\n createOrderBtn.setPrefWidth(480);\n createOrderBtn.setPrefHeight(50);\n createOrderBtn.setStyle(\"-fx-background-color: #34ffb9\");\n createOrderBtn.setFont(new Font(18));\n createOrderBtn.setOnAction(event -> createOrderInDB());\n\n root.getChildren().addAll(createOrderBtn);\n }",
"public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.getFont());\n addMouseListener(this);\n setVisible(true);\n }",
"private void setButtonPanelComponents(){\n\t\tJPanel buttonPane = new JPanel();\n\t\tbuttonPane.setPreferredSize(new Dimension(-1,32));\n\t\tbuttonPane.setBackground(Constant.DIALOG_BOX_COLOR_BG);\n\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\n\t\t\n\t\tsaveButton = Utilities.getInstance().initializeNewButton(\n\t\t\t-1, -1, -1, -1,\n\t\t\tImages.getInstance().saveBtnDialogImg,\n\t\t\tImages.getInstance().saveBtnDialogImgHover\n\t\t);\n\t\tbuttonPane.add(saveButton);\n\t\n\n\t\n\t}",
"private void createButtonsForPanel(JPanel queueButtonPanel) {\n JButton playbutton = new JButton(\"Play\");\n JButton addsongbutton = new JButton(\"Add song\");\n playButtonActionListener(playbutton);\n addSongButtonActionListener(addsongbutton);\n queueButtonPanel.add(playbutton);\n queueButtonPanel.add(addsongbutton);\n }",
"public void addClickables() {\n\t\tclickable.add(button1.getBounds());\n\t\tbehaviors.put(clickable.get(0), () -> hideEscapeScreen());\n\t\tclickable.add(button3.getBounds());\n\t\tbehaviors.put(clickable.get(1), () -> Driver.getInstance().switchToScreen(new FFWorldMap()));\n\t\tclickable.add(button4.getBounds());\n\t\tbehaviors.put(clickable.get(2), () -> Driver.getInstance().switchToScreen(new FFMainMenu()));\n\t}",
"private void setButtons()\n\t{\n\t\tstartSim = new JButton(\"Start Sim\");\n\t\tstartSim.addActionListener(this);\n\t\tpauseSim = new JButton(\"Pause Sim\");\n\t\tpauseSim.addActionListener(this);\n\t\taddEat = new JButton(\"Add Eatery\");\n\t\taddEat.addActionListener(this);\n\t\tsubEat = new JButton(\"Subtract Eatery\");\n\t\tsubEat.addActionListener(this);\n\t\taddCash = new JButton(\"Add Cashier\");\n\t\taddCash.addActionListener(this);\n\t\tsubCash = new JButton(\"Subtract Cashier\");\n\t\tsubCash.addActionListener(this);\n\t}",
"private JButton getJButtonInto() {\r\n\t\tif (jButtonInto == null) {\r\n\t\t\tjButtonInto = new JButton();\r\n\t\t\tjButtonInto.setMargin(new Insets(2, 5, 2, 5));\r\n\t\t\tjButtonInto.setText(\"数据入库\");\r\n\t\t\tjButtonInto.setBounds(new Rectangle(512, 517, 70, 23));\r\n\t\t\tjButtonInto.addMouseListener(new MouseAdapter() {\r\n\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\r\n\t\t\t\t\tDataIntoGui.this.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonInto;\r\n\t}",
"public void addButton()\n\t{\n\t\tdriver.findElement(By.xpath(\"//input[@name='Insert']\")).click();\n\t}",
"private void setupButtons() {\n final ButtonGroup btngrp = new ButtonGroup();\n\n for (final AbstractAction actn : myToolActions) {\n final JToggleButton btn = new JToggleButton(actn);\n btn.addActionListener(actn);\n btngrp.add(btn);\n add(btn);\n }\n\n btngrp.clearSelection();\n btngrp.getElements().nextElement().setSelected(true);\n\n }",
"private void addControlButton(Component comp) {\r\n\t\tif (comp instanceof JButton){\r\n\t\t\tJButton b = (JButton)comp;\r\n\t\t\tb.setSize(BUTTON_WIDTH,BUTTON_HEIGHT);\r\n\t\t\tb.setLocation(LEFT_BUTTON_PADDING, TOP_BUTTON_PADDING + (BUTTON_HEIGHT+BUTTON_PADDING) * numButtons);\r\n\t\t\tnumButtons++;\r\n\t\t}\r\n\t\telse\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t}",
"public void addButtons(){\n\t\t//play button\n\t\tplayButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tplayButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGamePlay play = new GamePlay(1,null);\n\t\t\t\ttimer = new Timer(1000/60, play);\n\t\t\t\ttimer.start();\n\t\t\t\tviewFrame(false);\n\t\t\t}\n\t\t});\n\n\t\t//logout button\n\t\tlogoutButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tlogoutButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tDrawLogin loginMenu = DrawLogin.getInstance();\n\t\t\t\tloginMenu.viewFrame(true);\n\t\t\t\tviewFrame(false);\n\t\t\t}\n\t\t});\n\n\t\t//load button\n\t\tloadButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tleaderButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tmodifyButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tselectButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tloadButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString result = null;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFile[] files;\n\t\t\t\t\t//Show user's loaded games\n\t\t\t\t\tList<String> results = new ArrayList<String>();\n\t\t\t\t\tif((new File(\"save/\" + Login.getUser().getUsername()).exists())){\n\t\t\t\t\t\tfiles = new File(\"save/\" + Login.getUser().getUsername()).listFiles();\n\n\t\t\t\t\t\t//If this pathname does not denote a directory, then listFiles() returns null. \n\n\t\t\t\t\t\tfor (File file : files) {\n\t\t\t\t\t\t\tif (file.isFile()) {\n\t\t\t\t\t\t\t\tresults.add(file.getName());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tresults.add(\" \");\n\t\t\t\t\t}\n\t\t\t\t\tif (EventQueue.isDispatchThread()) {\n\t\t\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\t\t\tpanel.add(new JLabel(\"Please make a selection:\"));\n\t\t\t\t\t\tDefaultComboBoxModel model = new DefaultComboBoxModel();\n\t\t\t\t\t\tfor (String temp : results) {\n\t\t\t\t\t\t\tmodel.addElement(temp);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tJComboBox comboBox = new JComboBox(model);\n\t\t\t\t\t\tpanel.add(comboBox);\n\n\t\t\t\t\t\tint iResult = JOptionPane.showConfirmDialog(null, panel, \"Flavor\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\tswitch (iResult) {\n\t\t\t\t\t\tcase JOptionPane.OK_OPTION:\n\t\t\t\t\t\t\tresult = (String) comboBox.getSelectedItem();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif((new File(\"save/\" + Login.getUser().getUsername()).exists())){\n\t\t\t\t\t\tFileInputStream fileIn = new FileInputStream(\"save/\" + Login.getUser().getUsername() + \"/\" + result);\n\t\t\t\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\t\t\t\tgame = (Map) in.readObject();\n\t\t\t\t\t\tin.close();\n\t\t\t\t\t\tfileIn.close();\n\t\t\t\t\t}\n\t\t\t\t}catch(IOException i)\n\t\t\t\t{\n\t\t\t\t\ti.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}catch(ClassNotFoundException c)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"map class not found\");\n\t\t\t\t\tc.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"Load Game\");\n\t\t\t\tviewFrame(false);\n\t\t\t\tGamePlay play = new GamePlay(0, game);\n\t\t\t\ttimer = new Timer(1000/60, play);\n\t\t\t\ttimer.start();\n\t\t\t\tviewFrame(false);\n\t\t\t}\n\t\t});\n\n\n\t\t//modify button\n\t\tmodifyButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tmodifyButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tModifyAccount md = new ModifyAccount();\n\t\t\t\tviewFrame(false);\n\t\t\t}\n\t\t});\n\n\t\t//leaderboard button\n\t\tleaderButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tleaderButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//Display leaderboard\n\t\t\t\ttry {\n\t\t\t\t\tLeaderboard lb = new Leaderboard();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t}\n\t\t\t\tviewFrame(false);\n\t\t\t\tSystem.out.println(\"View Leaderboards\");\n\t\t\t}\n\t\t});\n\n\t\tselectButton.addKeyListener(new KeyListener() {\n\n\t\t\t@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tint value = e.getKeyCode();\n\t\t\t\tif (value == KeyEvent.VK_DOWN){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value == KeyEvent.VK_LEFT ){\n\t\t\t\t\tloadButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if(value ==KeyEvent.VK_UP){\n\t\t\t\t\tlogoutButton.requestFocus();\n\t\t\t\t}\n\t\t\t\telse if( value == KeyEvent.VK_RIGHT){\n\t\t\t\t\tplayButton.requestFocus();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tselectButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tviewFrame(false);\n\t\t\t\ttry {\n\t\t\t\t\tls = new LevelSelect();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void addButton(final FrameContainer<?> source) {\n final JToggleButton button = new JToggleButton(source.toString(),\n IconManager.getIconManager().getIcon(source.getIcon()));\n button.addActionListener(this);\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setMinimumSize(new Dimension(0,buttonHeight));\n button.setMargin(new Insets(0, 0, 0, 0));\n buttons.put(source, button);\n }",
"private JButton createAddResourceButton() {\n\n JButton addBtn = new JButton(\"Add\");\n addBtn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n try {\n\n List<Resource> resourcesList = controller.getResoucesList();\n\n for (Resource resource : controller.getDemonstration().getResourcesList()) {\n resourcesList.remove(resource);\n }\n\n if (resourcesList.isEmpty()) {\n throw new IllegalArgumentException();\n }\n\n DialogSelectable dialogoNewResource = new DialogSelectable(CreateDemonstrationUI.this, resourcesList, \"Select Resource from list:\");\n Resource selectedResource = (Resource) dialogoNewResource.getSelectedItem();\n if (selectedResource == null) {\n throw new NullPointerException();\n }\n\n if (controller.addResource(selectedResource)) {\n updateResourcesList();\n String successMessage = \"Resource added successfully!\";\n String successTitle = \"Resource added.\";\n\n JOptionPane.showMessageDialog(rootPane, successMessage, successTitle, JOptionPane.INFORMATION_MESSAGE);\n }\n } catch (NullPointerException ex) {\n\n } catch (IllegalArgumentException ex) {\n\n String warningMessage = \"There is no more resources to add\";\n String warningTitle = \"No more resources in system\";\n\n JOptionPane.showMessageDialog(rootPane, warningMessage, warningTitle, JOptionPane.WARNING_MESSAGE);\n\n } catch (Exception ex) {\n\n String warningMessage = \"Something wen't wrong please try again.\";\n String warningTitle = \"ERROR 404\";\n\n JOptionPane.showMessageDialog(rootPane, warningMessage, warningTitle, JOptionPane.WARNING_MESSAGE);\n }\n\n }\n });\n return addBtn;\n }",
"public AddRandomList() {\n setTitleText(\"Add new random List\");\n\n addButton.setText(\"Add\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addButtonActionPerformed(evt);\n }\n });\n addButton(addButton);\n }",
"private void doButtons()\n {\n if (scopes.size()>1) addButtons();\n else hideButtons();\n }",
"private void iterateOverButtons(){\n int columnRows = 4;\n integerButtons = new Button[MAX_BUTTONS];\n for (int i = 0; i < integerButtons.length; ++i) {\n integerButtons[i] = new Button(buttonText[i]);\n integerButtons[i].setId(\"buttons\");\n integerButtons[i].setPrefSize(60, 80);\n gridPane.add(integerButtons[i], i % columnRows , i / columnRows);\n }\n }",
"private void createButtons() {\n Button helpSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -5797923866320649518L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateToHelp();\n }\n });\n\n// Button skillSettingsButton = new Button(\"\",\n// new Button.ClickListener() {\n// private static final long serialVersionUID = 7147554466396214893L;\n//\n// @Override\n// public void buttonClick(ClickEvent event) {\n// settingsPresenter.navigateToSkills();\n// }\n// });\n// skillSettingsButton.addStyleName(\"icon-cog\");\n\n Button medicSettingsButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = 7147554466396214893L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateToMedic();\n }\n });\n\n\n Button logoutButton = new Button(\"\",\n new Button.ClickListener() {\n private static final long serialVersionUID = -1096188732209266611L;\n\n @Override\n public void buttonClick(ClickEvent event) {\n settingsPresenter.navigateBack();\n }\n });\n logoutButton.addStyleName(\"default\");\n\n // Adding and aligning the 3 Buttons.\n //Setting a Description for the buttons which is displayed when flying over the button\n super.verticalNavigation.addComponent(helpSettingsButton);\n super.verticalNavigation.setComponentAlignment(helpSettingsButton, Alignment.MIDDLE_CENTER);\n helpSettingsButton.setDescription(\"Set the Help options for the Patient\");\n helpSettingsButton.setIcon(new ThemeResource(\"img/contacgg.png\"), BUTTON_HELP_SETTINGS);\n helpSettingsButton.setWidth(BUTTON_WIDTH);\n helpSettingsButton.setHeight(BUTTON_HEIGHT);\n\n super.verticalNavigation.addComponent(medicSettingsButton);\n super.verticalNavigation.setComponentAlignment(medicSettingsButton, Alignment.MIDDLE_CENTER);\n medicSettingsButton.setDescription(\"Set the Medication options for the Patient\");\n medicSettingsButton.setIcon(new ThemeResource(\"img/medicine-icon-cog.png\"),BUTTON_MEDIC_SETTINGS);\n medicSettingsButton.setWidth(BUTTON_WIDTH);\n medicSettingsButton.setHeight(BUTTON_HEIGHT);\n\n// addComponent(skillSettingsButton);\n// setComponentAlignment(skillSettingsButton, Alignment.MIDDLE_CENTER);\n// skillSettingsButton.setDescription(\"Set the Skill options for the Patient\");\n// skillSettingsButton.setIcon(new ThemeResource(\"img/skill2-icon-cog.png\"), BUTTON_SKILL_SETTINGS);\n// skillSettingsButton.setWidth(BUTTON_WIDTH);\n// skillSettingsButton.setHeight(BUTTON_HEIGHT);\n\n logoutButton.setWidth(BUTTON_WIDTH);\n super.verticalNavigation.addComponent(logoutButton);\n super.verticalNavigation.setComponentAlignment(logoutButton, Alignment.MIDDLE_CENTER);\n logoutButton.setDescription(\"You will be logged out\");\n logoutButton.setIcon(new ThemeResource(\"img/logout.png\"), BUTTON_LOGOUT);\n logoutButton.setWidth(BUTTON_WIDTH);\n logoutButton.setHeight(BUTTON_HEIGHT);\n\n }",
"private void newOrderbutton(String txt) {\n Button btn = new Button(txt);\n newBtnStyle(btn);\n\n boolean containsbtn = false;\n btn.setId(txt);\n for (Node node : activeOrders.getChildren()) {\n String button = ((Button) node).getText();\n if (txt.equals(button))\n containsbtn = true;\n\n }\n if (!containsbtn) {\n activeOrders.getChildren().add(btn);\n\n changeActive(btn);\n } else {\n //Alert clerc about the amount to pay back.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Nyt bord\");\n alert.setHeaderText(\"Bord: \" + txt + \" eksistere allerede\");\n alert.showAndWait();\n }\n }",
"private void makeButtonPanel()\n {\n \n this.buttonPanel.setLayout(new GridLayout(10, 2, 30, 10));\n \n \n this.buttonPanel.add(this.fLabel);\n this.fName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.fName);\n\n this.buttonPanel.add(this.lLabel);\n this.lName.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.lName);\n\n this.buttonPanel.add(this.idLabel);\n this.iD.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.iD);\n\n this.buttonPanel.add(this.courseLabel);\n this.course.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.course);\n\n this.buttonPanel.add(this.instructorLabel);\n this.instructor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.instructor);\n\n this.buttonPanel.add(this.tutorLabel);\n this.tutor.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.tutor);\n \n this.buttonPanel.add(this.commentsLable);\n this.comments.setColumns(COL_WIDTH);\n this.buttonPanel.add(this.comments);\n //Removed for appointment tabel\n //this.buttonPanel.add(this.appointmentLable);\n //this.buttonPanel.add(this.appointment);\n this.buttonPanel.add(this.sessionLenLabel);\n this.sessionLength.setColumns(COL_WIDTH);\n this.sessionLength.setText(\"30\");\n this.buttonPanel.add(this.sessionLength);\n\n this.ADD_BUTTON.addActionListener(new AddButtonListener());\n //buttonPanel.add(ADD_BUTTON);\n \n \n this.addSessionPlaceHolder.add(this.buttonPanel);\n }",
"private void createOKButtons() {\n okAddButton = addOKButton(\"Add Shape\");\n okRemoveButton = addOKButton(\"Remove Shape\");\n okAddKeyframeButton = addOKButton(\"Add Keyframe\");\n okAddKeyframeTimeButton = addOKButton(\"Add Keyframe Time\");\n okRemoveKeyframeButton = addOKButton(\"Remove Keyframe\");\n okRemoveKeyframeTimeButton = addOKButton(\"Remove Keyframe Time\");\n okEditKeyframeButton = addOKButton(\"Edit Keyframe\");\n okEditKeyframeTimeButton = addOKButton(\"Edit Keyframe Time\");\n okEditKeyframeFinalButton = addOKButton(\"Edit Keyframe Final\");\n okClearShapeButton = addOKButton(\"Clear Shape\");\n }",
"private void setUpAddBookButton()\n {\n setComponentAlignment(addBookButton, Alignment.BOTTOM_LEFT);\n addBookButton.setCaption(\"Add\");\n addBookButton.addClickListener(new Button.ClickListener() {\n public void buttonClick(Button.ClickEvent event)\n {\n Object id = bookTable.getValue();\n int book_id = (int)bookTable.getContainerProperty(id,\"id\").getValue();\n basket.add(allBooksBean.getIdByIndex(book_id-1));\n //basket.add(allBooks.get(book_id-1));\n errorLabel.setCaption(\"Successfully added book to Basket\");\n }\n });\n }",
"void addButton_actionPerformed(ActionEvent e) {\n doAdd();\n }",
"@Test\n\tpublic void addButtons_2Test() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showcover &&\n\t\t\t\t!Configuration.reorderplaylist && \n\t\t\t\t!Configuration.queuetrack &&\n\t\t\t\tConfiguration.clearplaylist ) {\n\t\t\tstart();\n\t\t\t\n\t\t\tgui.addButtons();\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\tJButton button =null;\n\t\t\t\n\t\t\tfor (int i = 0; i < g.getContentPane().getComponentCount(); i++) {\n\t\t\t\tif(g.getContentPane().getComponent(i).getName()!= null && g.getContentPane().getComponent(i).getName().equals(\"clearList\")) {\n\t\t\t\t\tbutton = (JButton) g.getContentPane().getComponent(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tassertTrue(button.getBounds().getX() == 361);\n\t\t\tassertTrue(button.getBounds().getY() == 324);\n\t\t\tassertTrue(button.getBounds().getWidth() == 111);\n\t\t\tassertTrue(button.getBounds().getHeight() == 23);\n\t\t\tassertTrue(button.getActionListeners()!= null);\n\t\t\t\n\t\t\t}\n\t}",
"public void clickAddButton() {\n\t\tfilePicker.fileManButton(locAddButton);\n\t}",
"private void createAdditionalButtonControls(Composite parent) {\r\n\t\tComposite btnComposite = new Composite(parent, SWT.NONE);\r\n\t\tbtnComposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tButton selAllBtn = new Button(btnComposite, SWT.PUSH);\r\n\t\tselAllBtn.setText(Messages.TOPOLOGY_BTN_SELECT_ALL_TXT);\r\n\t\tselAllBtn.addSelectionListener(new SelectionListener() {\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedUnitsList.setAllChecked(true);\r\n\t\t\t\tupdateSelectedItemsProperty();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton deselAllBtn = new Button(btnComposite, SWT.PUSH);\r\n\t\tdeselAllBtn.setText(Messages.TOPOLOGY_BTN_DESELECT_ALL_TXT);\r\n\t\tdeselAllBtn.addSelectionListener(new SelectionListener() {\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedUnitsList.setAllChecked(false);\r\n\t\t\t\tupdateSelectedItemsProperty();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private void addComponents(Container pane) {\n // Reset pane\n pane.removeAll();\n\n GridLayout mainLayout = new GridLayout(4,3);\n JPanel mainPanel = new JPanel();\n mainPanel.setLayout(mainLayout);\n\n // Setting up button sizes\n JButton b = new JButton(\"Filler button\");\n Dimension buttonSize = b.getPreferredSize();\n Dimension preferredSize = new Dimension(\n (int)(buttonSize.getWidth() * 7.5) + newGUI.maxGap,\n (int)(buttonSize.getHeight() * 3.5) + newGUI.maxGap * 2);\n mainPanel.setPreferredSize(preferredSize);\n\n // Add the main panel buttons\n mainPanel.add(commands);\n mainPanel.add(availableCommands);\n mainPanel.add(new JLabel());\n mainPanel.add(enterButton);\n\n pane.add(mainPanel, BorderLayout.NORTH);\n pane.add(new JSeparator(), BorderLayout.CENTER);\n }",
"protected void drawButtons() {\n\t\tint spaceX = 50;\n\t\tint spaceY = 500;\t\n\t\t\n\t\tint aux = 1;\n\t\tfor(int i = 65; i < 91; i++) {\n\n\t\t\tLetterButton button = new LetterButton((char) i, (25 + spaceX ) * aux, spaceY);\n\t\t\taux++;\n\t\t\tif(aux == 14) {\n\t\t\t\tspaceY += 25 + 50;\n\t\t\t\taux = 1;\n\t\t\t}\n\t\t\tthis.add(button);\n\t\t}\n\t\t\n\t}",
"private void createbuttons(){\n newPatient = (Button) findViewById(R.id.newButton);\n newPatient.setOnClickListener(buttonClick);\n\n registeredPatient = (Button) findViewById(R.id.registeredButton);\n registeredPatient.setOnClickListener(buttonClick);\n\n viewManagement = (Button) findViewById(R.id.viewStaffActivitiesButton);\n viewManagement.setOnClickListener(buttonClick);\n }",
"private void buttonInit(){\n for(int i=0; i < 3; i++){\n choice[i] = new JButton();\n\n }\n choice[0].setText(\"10x10 / 8 bombs\");\n choice[0].setBackground(new Color(86, 160, 189));\n\n\n choice[0].addActionListener(l-> makeGamePanel(10, 8));\n\n choice[1].setText(\"15x15 / 30 bombs\");\n choice[1].setBackground(new Color(238, 160, 160));\n\n\n choice[1].addActionListener(l-> makeGamePanel(15,30));\n\n choice[2].setText(\"24x24 / 70 bombs\");\n choice[2].setBackground(new Color(253, 230, 122));\n choice[2].setFont(new Font(Font.MONOSPACED, Font.BOLD, 30));\n choice[2].setForeground(new Color(45, 68, 73));\n\n choice[2].addActionListener(l-> makeGamePanel(24,70));\n\n this.add(choice[0], BorderLayout.LINE_START); this.add(choice[1], BorderLayout.LINE_END); this.add(choice[2], BorderLayout.CENTER);\n }",
"protected void createButtonsForButtonBar(Composite parent) {\n\t\tcreateButton(parent, IDialogConstants.OK_ID, \" 设 置 \",\n\t\t\t\ttrue);//IDialogConstants.CANCEL_LABEL\n\t\tcreateButton(parent, IDialogConstants.CANCEL_ID,\n\t\t\t\t\" 取 消 \", false);//IDialogConstants.CANCEL_LABEL\n\t}",
"public void createInstructionButton() {\n \tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tshowInstructions();}\n };\n \tcreateGenericButton(2, 0, myResources.getString(\"guide\"), eventHandler);\n }",
"@Test\n\tpublic void addButtonsTest() throws Exception {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showcover &&\n\t\t\t\tConfiguration.reorderplaylist && \n\t\t\t\t!Configuration.queuetrack \n\t\t\t\t) {\n\t\t\tstart();\n\t\t\t\n\t\t\tgui.addButtons();\n\t\t\tJFrame g = (JFrame) MemberModifier.field(Application.class, \"frmAsd\").get(gui);\n\t\t\tJButton button =null;\n\t\t\tJButton button2 =null;\n\t\t\t\n\t\t\tfor (int i = 0; i < g.getContentPane().getComponentCount(); i++) {\n\t\t\t\tif(g.getContentPane().getComponent(i).getName()!= null && g.getContentPane().getComponent(i).getName().equals(\"trackUp\")) {\n\t\t\t\t\tbutton = (JButton) g.getContentPane().getComponent(i);\n\t\t\t\t}\n\t\t\t\telse if(g.getContentPane().getComponent(i).getName()!= null && g.getContentPane().getComponent(i).getName().equals(\"trackDown\")) {\n\t\t\t\t\tbutton2 = (JButton) g.getContentPane().getComponent(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tassertTrue(button.getBounds().getX() == 506);\n\t\t\tassertTrue(button.getBounds().getY() == 327);\n\t\t\tassertTrue(button.getBounds().getWidth() == 120);\n\t\t\tassertTrue(button.getBounds().getHeight() == 25);\n\t\t\tassertTrue(button.getActionListeners()!= null);\n\t\t\t\n\t\t\tassertTrue(button2.getBounds().getX() == 506);\n\t\t\tassertTrue(button2.getBounds().getY() == 360);\n\t\t\tassertTrue(button2.getBounds().getWidth() == 120);\n\t\t\tassertTrue(button2.getBounds().getHeight() == 25);\n\t\t\tassertTrue(button2.getActionListeners()!= null);\n\t\t}\n\t}",
"public void registerButtons()\n\t{\n\t\tplot.addActionListener(new ButtonListener());\n\t\tin.addActionListener(new ButtonListener(1));\n\t\tout.addActionListener(new ButtonListener(2));\n\t\t\n\t}",
"private void addChangeSecurityQuestionFormButtons() {\n // Removes all buttons currently on the button panel and updates the UI\n buttonPanel.removeAll();\n buttonPanel.updateUI();\n \n // The button to update the new security question & answer of the login account\n updateChangeSecurityQButton = new JButton(\"Update New Security Question & Answer\");\n updateChangeSecurityQButton.setPreferredSize(new Dimension(290, 45));\n updateChangeSecurityQButton.addActionListener(this);\n updateChangeSecurityQButton.setToolTipText(\"<html> Click this button to update the login account with their <b>new security question & answer</b>. </html>\");\n updateChangeSecurityQButton.setIcon(new ImageIcon(\"images/icons/accept.png\"));\n \n // Adds the update change login accounts security question & answer to the button panel\n buttonPanel.add(updateChangeSecurityQButton);\n \n \n // The button to cancel the updating/changing of the login accounts security question & answer\n cancelChangeSecurityQButton = new JButton(\"Cancel\");\n cancelChangeSecurityQButton.setPreferredSize(new Dimension(150, 45));\n cancelChangeSecurityQButton.addActionListener(this);\n cancelChangeSecurityQButton.setToolTipText(\"<html> Click this button to <b> cancel</b> the updating of the login accounts new security question & answer. </html>\");\n cancelChangeSecurityQButton.setIcon(new ImageIcon(\"images/icons/cancel.png\"));\n \n // Adds the button to cancel the updating/changing of the login accounts security question & answer to the button panel\n buttonPanel.add(cancelChangeSecurityQButton);\n \n // Updates the button panels ui with the new buttons\n buttonPanel.updateUI();\n }",
"private void createButton() throws SlickException {\n int width = 25*getGameContainer().getWidth()/100;\n int height = 10*getGameContainer().getHeight()/100;\n\n Image login = new Image(getReaderXmlFile().read(\"buttonLogin\")).getScaledCopy(width, height);\n Coordinate posLogin = new Coordinate((getGameContainer().getWidth() - login.getWidth())/2,55*getGameContainer().getHeight()/100);\n loginButton = new Button(getGameContainer(), login, posLogin, IDStates.MENU_STATE, this);\n\n Image account = new Image(getReaderXmlFile().read(\"buttonAccount\")).getScaledCopy(width, height);\n Coordinate posAccount = new Coordinate((getGameContainer().getWidth() - account.getWidth())/2,70*getGameContainer().getHeight()/100);\n accountButton = new Button(getGameContainer(), account, posAccount, IDStates.MENU_STATE, this);\n }",
"public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }",
"private void createButtons() {\n\tTexture startGameTex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_start.png\"));\n\tTexture plane_p1_tex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_player1.png\"));\n\tTexture plane_p2_tex = new Texture(\n\t\tGdx.files.internal(\"assets/data/menu/menu_player2.png\"));\n\n\tplayButton = new Button(\"\", font, 0, 0, new TextureRegion(startGameTex,\n\t\t0, 0, 161, 20), new TextureRegion(startGameTex, 0, 0, 161, 20),\n\t\tnew ScreenSwitchHandler(Screen.GAME));\n\tplaneButton_p1 = new Button(\"\", font, 0, 0, new TextureRegion(\n\t\tplane_p1_tex, 0, 0, 161, 20), new TextureRegion(plane_p1_tex,\n\t\t0, 0, 161, 20), new ScreenSwitchHandler(Screen.PLANE_P1));\n\tplaneButton_p2 = new Button(\"\", font, 0, 0, new TextureRegion(\n\t\tplane_p2_tex, 0, 0, 161, 20), new TextureRegion(plane_p2_tex,\n\t\t0, 0, 161, 20), new ScreenSwitchHandler(Screen.PLANE_P2));\n\toptionsButton = new Button(\"Options\", font, new ScreenSwitchHandler(\n\t\tScreen.OPTIONS));\n\texitButton = new Button(\"Exit\", font, new ButtonHandler() {\n\t @Override\n\t public void onClick() {\n\t\tGdx.app.exit();\n\t }\n\n\t @Override\n\t public void onRelease() {\n\t\t// TODO Auto-generated method stub\n\n\t }\n\t});\n }",
"protected void createButtonsForButtonBar(Composite parent) {\n\t\tcreateButton(barComp, BUTTON_ADD_ID, Messages.btnAddParameter, true);\n\t\tcreateButton(barComp, BUTTON_EDIT_ID, Messages.btnEditParameter, true);\n\t\tcreateButton(barComp, BUTTON_DROP_ID, Messages.btnDropParameter, true);\n\t\tcreateButton(barComp, BUTTON_UP_ID, Messages.btnUpParameter, true);\n\t\tcreateButton(barComp, BUTTON_DOWN_ID, Messages.btnDownParameter, true);\n\t\tcreateButton(parent, IDialogConstants.OK_ID, com.cubrid.common.ui.common.Messages.btnOK, true);\n\n\t\tgetButton(BUTTON_EDIT_ID).setEnabled(false);\n\t\tgetButton(BUTTON_UP_ID).setEnabled(false);\n\t\tgetButton(BUTTON_DOWN_ID).setEnabled(false);\n\t\tgetButton(BUTTON_DROP_ID).setEnabled(false);\n\t\tcreateButton(parent, IDialogConstants.CANCEL_ID, com.cubrid.common.ui.common.Messages.btnCancel, false);\n\t}"
] |
[
"0.79920316",
"0.7883009",
"0.78094184",
"0.77607304",
"0.75993854",
"0.7599159",
"0.75852174",
"0.7567179",
"0.7559692",
"0.7497391",
"0.7420638",
"0.74126416",
"0.74122757",
"0.7403356",
"0.73490655",
"0.7332754",
"0.729999",
"0.7292529",
"0.7221559",
"0.721125",
"0.71924454",
"0.7186851",
"0.7183706",
"0.71727175",
"0.7162648",
"0.7147166",
"0.71370286",
"0.7127832",
"0.710662",
"0.7106469",
"0.7105314",
"0.71042305",
"0.7085053",
"0.7081167",
"0.7077963",
"0.7065119",
"0.7053843",
"0.7035675",
"0.70300835",
"0.7002958",
"0.7001402",
"0.6992273",
"0.6987341",
"0.6986787",
"0.69691235",
"0.69685435",
"0.69652045",
"0.69580495",
"0.6956321",
"0.6953019",
"0.6952189",
"0.69476634",
"0.6932291",
"0.6924871",
"0.6924742",
"0.69204617",
"0.6918172",
"0.6915882",
"0.6914226",
"0.6909571",
"0.6907726",
"0.69036496",
"0.6902849",
"0.68940634",
"0.6880776",
"0.6877909",
"0.6871119",
"0.686251",
"0.6860087",
"0.6859841",
"0.6854883",
"0.6853871",
"0.685365",
"0.68444645",
"0.68391323",
"0.6827324",
"0.6823467",
"0.6806996",
"0.6805084",
"0.68010867",
"0.6797032",
"0.6796204",
"0.6792183",
"0.6786079",
"0.67832464",
"0.67721736",
"0.67701524",
"0.67662144",
"0.67597884",
"0.67569816",
"0.67548174",
"0.6751252",
"0.67471427",
"0.67419755",
"0.6737859",
"0.67345136",
"0.67343247",
"0.67333937",
"0.6727885",
"0.67258155",
"0.67254853"
] |
0.0
|
-1
|
List copyPersons = new ArrayList(personsOrig); make sure we make a deep copy of original collection then sort it NOTE the "target" collection of copy has to be equal or greater size than "src" of copy
|
public List<Person> copyPersons() {
List<Person> copyPersons = new ArrayList<Person>(personsOrig.size()); // NOTE this is still an empty List with initial capacity of personsOrig size
// unfortunately there isn't a clone or factory method in Collections. So have to create "target" collection with some garbage
Person p;
for (int i = 0; i < personsOrig.size(); i++) {
p = new Person("", 0);
copyPersons.add(p);
}
Collections.copy(copyPersons, personsOrig);
System.out.println("persons copy:" + copyPersons);
Collections.sort(copyPersons);
System.out.println("Sorted copy:" + copyPersons);
System.out.println("Original persons:" + personsOrig);
return copyPersons;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic int compare(Person p1, Person p2) { //because this class implements Comparator \n\t\treturn p1.id-p2.id;\n\t}",
"public void triCollection(){\r\n Collections.sort(collection);\r\n }",
"public ArrayList<Person> builtinSortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t// use java's built-in sort\n\tArrays.sort(arr);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated3 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n\tarr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated3.add(arr[k]);\n\t}\n\treturn unduplicated3;\n }",
"private static <T> void cloneCollection(Collection<T> originalCollection, Collection<T> clonedCollection, PropertyFilter propertyFilter) {\n\t\tJpaCloner jpaCloner = new JpaCloner(propertyFilter);\n\t\tSet<Object> exploredEntities = new HashSet<Object>();\n\t\tfor (T root : originalCollection) {\n\t\t\tclonedCollection.add(clone(root, jpaCloner, exploredEntities));\n\t\t}\n\t}",
"private static int[] sort(int[] original) {\n //int[] copy = Arrays.copyOfRange(original,0,original.length);\n int[] copy = original.clone();\n Arrays.sort(copy);\n return copy;\n }",
"ArrayList deepCopyShapeList(List aShapeList){\n ArrayList newList = new ArrayList();\r\n\r\n if (aShapeList.size() > 0) {\r\n Iterator iter = aShapeList.iterator();\r\n\r\n while (iter.hasNext())\r\n newList.add(((TShape)iter.next()).copy());\r\n }\r\n return\r\n newList;\r\n}",
"public static void main(String[] args) {\n\n Person person1 = new Person(\"Tom Brady\");\n Person person2 = new Person(\"David Letterman\");\n\n List<Person> personList = new ArrayList<Person>();\n personList.add(person1);\n personList.add(person2);\n\n // Sorting\n // Collections.sort(personList, new PersonComparer());\n // Collections.sort(personList, (o1, o2) -> o1.getName().compareTo(o2.getName()));\n personList.sort((o1, o2) -> o1.getName().compareTo(o2.getName()));\n\n // Print out the people!\n for (Person p : personList)\n {\n System.out.println(p.getName());\n }\n\n }",
"@Override\r\n public NumericObjectArrayList makeDeepCopy() {\r\n NumericObjectArrayList list = new NumericObjectArrayList();\r\n for (int i = 0; i < this.getCount(); i++) {\r\n try {\r\n list.insert(i, this.getValueAt(i));\r\n } catch (IndexRangeException ex) {\r\n //Shouldn't happen\r\n }\r\n }\r\n return list;\r\n }",
"public ArrayList<Person> quicksortDeduplication(){\n\t//copy data from list to array arr\n\tPerson[] arr = new Person[this.lst.size()];\n\tfor(int i=0; i< lst.size();i++){\n\t arr[i] = this.lst.get(i);\n\t}\n\t//sort array => see QuickSort class\n\tQuickSort.sort(arr,0,arr.length-1);\n\t//create list to store singular data\n\tArrayList<Person> unduplicated2 = new ArrayList<>();\n\t//compare successive elements of array to find duplicates\n\tint limit =0;\n\tif (arr.length ==0 || arr.length==1) limit =arr.length;\n\tint j=0;\n\t//store only singular data in the beginning of the array\n\tfor (int i = 0; i < arr.length-1; i++) \n if (arr[i].compareTo( arr[i+1]) != 0) \n arr[j++] = arr[i]; \n\t// add last element to array\n arr[j++] = arr[arr.length-1];\n\t//record last index of singular element\n\tlimit =j;\n\t//copy elements up to the singularity index to the list\n\tfor(int k=0; k< limit; k++){\n\t unduplicated2.add(arr[k]);\n\t}\n\treturn unduplicated2;\n }",
"List<GElement> getCopiesOfSelection(List selectedObjects) {\n\t\tList<GElement> toCopy = new ArrayList<GElement>();\n\t\tfor (Iterator it = selectedObjects.iterator(); it.hasNext();) {\n\t\t\tObject o = it.next();\n\t\t\tif(o instanceof GElementEditPart){\n\t\t\t\ttoCopy.add(((GElementEditPart)o).getCastedModel());\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\n\t\tMap<GElement, GElement> orig2Copy = new HashMap<GElement, GElement>();\n\t\tList<GElement> copied = new ArrayList<GElement>();\n\t\tfor (GElement el: toCopy){\n\t\t\tGElement copy = el.getCopy();\n\t\t\tcopied.add(copy);\n\t\t\torig2Copy.put(el, copy);\n\t\t}\n\t\t\n\t\tfor (GElement el: toCopy){\n\t\t\tList<Connection> srces = el.getSrcConnections();\n\t\t\tfor (Connection c: srces){\n\t\t\t\tif(toCopy.contains(c.getTarget())){\n\t\t\t\t\tnew Connection(orig2Copy.get(c.getSource()),orig2Copy.get(c.getTarget()) );\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn copied;\n\t}",
"private Object[] deepCopy()\n {\n Object[] newList = new Object[size];\n\n int newListPosition = 0;\n for (int i =0; i < size; i++)\n {\n if (list[i] != null)\n {\n newList[newListPosition++] = list[i];\n }\n }\n\n return newList;\n }",
"public static List<Person> checkSortLists(List<Person> people){\r\n TreeMap tm = new TreeMap();\r\n for (Person person: people) {\r\n if(person.getAge()>18){\r\n System.out.println(\"checking beyond\");\r\n return null;\r\n }\r\n tm.put(person.getNo(),person);\r\n }\r\n if(people.size()!=tm.size()){\r\n System.out.println(\"checking redundant\");\r\n return null;\r\n }\r\n List<Person> sortPeople = new ArrayList(tm.values());\r\n return sortPeople;\r\n }",
"public Heap12 (Heap12<E> toCopy)\n {\n arrayList = new ArrayList<E>(toCopy.getCap());\n isMax = toCopy.getIsMax();\n size = toCopy.size();\n cap = toCopy.getCap();\n ArrayList<E> copyList = toCopy.getAL();\n for(int i = 0; i < copyList.size(); i++)\n {\n arrayList.add(copyList.get(i));\n }\n }",
"private static <T> void cloneCollection(Collection<T> originalCollection, Collection<T> clonedCollection, PropertyFilter propertyFilter, String... patterns) {\n\t\tJpaCloner jpaCloner = new JpaCloner(propertyFilter);\n\t\tfor (T root : originalCollection) {\n\t\t\tclonedCollection.add(clone(root, jpaCloner, patterns));\n\t\t}\n\t}",
"public static void oldTest1()\r\n\t{\n\t\tArrayList personlist = new ArrayList();\r\n\t\tpersonlist.add(new Person(\"one\"));\r\n\t\tpersonlist.add(new Person(\"two\"));\r\n\t\tpersonlist.add(new Person(\"three\"));\r\n\t\tpersonlist.add(new Worker(\"oneA\", \"job1\"));\r\n\t\tpersonlist.add(new Worker(\"oneA\", \"job2\"));\r\n\t\tPrintCollection1(personlist);\r\n\t\tPrintCollection(personlist);\r\n\t}",
"public List<Replacement> getSortedReplacementsCopy() {\n return new ArrayList<>(getSortedReplacements());\n }",
"private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}",
"Vector<NewsArticle> insertionSort(Vector<NewsArticle> articles) {\n int i, j;\n int size = articles.size();\n NewsArticle sortedList[] = new NewsArticle[articles.size()];\n\n articles.copyInto(sortedList);\n NewsArticle temp;\n\n for (i = 1; i < size; i++) {\n temp = sortedList[i];\n\n j = i;\n while ((j > 0) && (sortedList[j - 1].getScore(filterType) < temp.getScore(filterType))) {\n sortedList[j] = sortedList[j - 1];\n j = j - 1;\n }\n sortedList[j] = temp;\n }\n Vector<NewsArticle> outList = new Vector<NewsArticle>();\n\n for (i = 0; i < size; i++) {\n temp = sortedList[i];\n outList.addElement(temp);\n }\n return outList;\n }",
"@Test\n\tpublic void testCopy2() {\n\n\t\tint[] arr = { 1, 2, 3, 7, 8 }; // this list\n\t\tSLLSet listObj2 = new SLLSet(arr);\n\t\tSLLSet copied = listObj2.copy();\n\t\tcopied.add(-1);\n\t\tString expectedObj2 = \"1, 2, 3, 7, 8\";\n\t\tString expectedCopied = \"-1, 1, 2, 3, 7, 8\";\n\t\tint expectedObj2Size = 5;\n\t\tint expectedCopiedSize = 6;\n\n\t\tassertEquals(expectedObj2Size, listObj2.getSize());\n\t\tassertEquals(expectedObj2, listObj2.toString());\n\n\t\tassertEquals(expectedCopiedSize, copied.getSize());\n\t\tassertEquals(expectedCopied, copied.toString());\n\n\t}",
"public static void main(String[] args) {\n\n\n\n\n ArrayList<String> names = new ArrayList<>();\n names.add(\"Tima\");\n names.add(\"Eldiar\");\n names.add(\"Beksultan\");\n names.add(\"Ilias\");\n names.add(\"Nurkan\");\n names.add(\"Alisher\");\n names.add(\"Tima\");\n String name = \"Tima\";\n int count = 0;\n\n for (String firstName : names) {\n if (firstName.equals(name)) {\n count++;\n }\n }\n System.out.println(count);\n\n String[] ar=names.toArray(new String[0]);\n\n\n\n System.out.println(names.get(0));\n System.out.println(\"============\");\n\n ArrayList<String> copy = (ArrayList) names.clone();\n\n Collections.sort(copy);\n for (String copies : copy) {\n System.out.println(copies);\n\n }\n System.out.println(\"=============\");\n System.out.println(\"removing all the duplicates from the Arraylist\");\n Set<String> unique = new HashSet<>();\n for (String removingDuplicates : copy) {\n unique.add(removingDuplicates);\n\n }\n\n for (String uniq:unique){\n System.out.println(uniq);\n }\n\n Set<String> sorted=new TreeSet<>();\n for (String sorting:unique){\n sorted.add(sorting);\n }\n System.out.println(\"=============\");\n for (String alreadySorted:sorted){\n System.out.println(alreadySorted);\n }\n\n }",
"private static void copy(List<? super Number> dest, List<? extends Number> src) {\n for (int i = 0; i < src.size(); i++) {\n dest.set(i, src.get(i));\n //dest.add(src.get(i));\n }\n }",
"public ArrayList<Person> allPairsDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tfor (int i=0;i<this.lst.size();i++){\n\t int dup =0;\n\t //compare each element to elements after it in the list\n\t for(int j=i+1; j< this.lst.size();j++){\n\t\tif (lst.get(i).compareTo(lst.get(j)) == 0 ) dup++;\n\t }\n\t if (dup == 0) unduplicated.add(lst.get(i));\n\t}\n\treturn unduplicated;\n }",
"public static void main(String[] args) {\n Set<String> list = new TreeSet<>();\n list.add(\"Song\");\n list.add(\"Album\");\n list.add(\"Artist\");\n list.add(\"Year\");\n list.add(\"Genre\");\n list.add(\"Song\");\n list.add(\"Song\");\n\n System.out.println();\n for(String x : list){\n System.out.println(x);\n }\n\n //NO REPITTED VALUES AND ASCENDED ORDER WHIT COMPARABLE, HASHCODE AND EQUALS\n Set<Persona> list2 = new TreeSet<>();\n list2.add(new Persona(1, \"Rayman\"));\n list2.add(new Persona(2, \"Castlevania\"));\n list2.add(new Persona(3, \"Silent Hill\"));\n list2.add(new Persona(4, \"Silent Hill\"));\n list2.add(new Persona(1, \"Rayman\"));\n\n System.out.println();\n for(Persona x : list2){\n System.out.println(x.getId() + \" - \" + x.getName());\n }\n }",
"private Set<Staff> getClonedEquivalent(Set<Staff> originalStaff, Map<Long, Staff> oldIdToNewStaff) {\n\tSet<Staff> clonedStaffSet = new HashSet<Staff>();\n\tfor (Staff originalStf : originalStaff) {\n\t Staff newStaff = oldIdToNewStaff.get(originalStf.getId());\n\t if (newStaff == null) {\n\t\tcontinue;\n\t }\n\t clonedStaffSet.add(newStaff);\n\t}\n\treturn clonedStaffSet;\n }",
"public static ArrayList<PersonDate> sort(ArrayList<PersonDate> arr)\n { \n for (int i = 0; i < arr.size() - 1; i++)\n {\n int index = i;\n for (int j = i + 1; j < arr.size(); j++)\n if (arr.get(j).compareTo(arr.get(index))>0) \n index = j;\n \n PersonDate smallerNumber = arr.get(index); \n arr.set(index,arr.get(i));\n arr.set(i,smallerNumber);\n }\n return arr;\n }",
"public static void main(String[] args) {\n TreeSet<Person> personsByName=new TreeSet<>(new NameComparator());\n personsByName.add(new Person(\"Popescu\", 27));\n personsByName.add(new Person(\"Ionescu\", 32));\n personsByName.add(new Person(\"Andrei\", 18));\n\n for (Person p:personsByName){\n System.out.println(\"nume: \"+p.getName()+\", varsta:\"+p.getAge());\n }\n\n //creating a TreeSet with persons sorted by age\n TreeSet<Person> personsByAge=new TreeSet<>(new AgeComparator());\n personsByAge.addAll(personsByName);\n\n for (Person p:personsByAge){\n System.out.println(\"nume: \"+p.getName()+\", varsta:\"+p.getAge());\n }\n\n //creating an HashMap with persons and hobbies\n HashMap<Person, List<Hobby>> personHobbies=new HashMap<>();\n\n Adress a1=new Adress(\"Lacul Morii\", \"Bucuresti\", \"Romania\");\n Adress a2=new Adress(\"Tineretului\", \"Bucuresti\", \"Romania\");\n Adress a3=new Adress(\"Bois de Vincennes\", \"Paris\", \"France\");\n Adress a4=new Adress(\"Via Capella\", \"Nocelle\", \"Italy\");\n\n List<Adress> adressesForHobby1=new ArrayList<>();\n adressesForHobby1.add(a1);\n adressesForHobby1.add(a2);\n adressesForHobby1.add(a4);\n\n List<Adress> adressesForHobby2=new ArrayList<>();\n adressesForHobby2.add(a3);\n adressesForHobby2.add(a4);\n\n Hobby hobby1=new Hobby(\"running\", 4, adressesForHobby1);\n Hobby hobby2=new Hobby(\"cycling\", 3, adressesForHobby2);\n\n List<Hobby> hobbies=new ArrayList<>();\n hobbies.add(hobby1);\n hobbies.add(hobby2);\n\n Person person=new Person(\"Popescu\", 27);\n personHobbies.put(person, hobbies);\n for (Hobby h: personHobbies.get(person)){\n for (Adress adr: h.getAdresses()){\n System.out.println(h.getName()+\" \"+adr.getCountry());\n }\n }\n\n\n\n\n\n }",
"@Override\r\n\tpublic void sort() {\r\n\t\tint minpos;\r\n\t\tfor (int i = 0; i < elements.length-1; i++) {\r\n\t\t\tminpos=AuxMethods.minPos(elements, i);\r\n\t\t\telements=AuxMethods.swapElements(elements, i, minpos);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"private void sort(){\r\n\t\tCollections.sort(people,new PeopleComparator(columnSelect.getSelectedIndex(),(String)sortOrder.getSelectedItem()));\r\n\t\tpersonTableModel.fireTableDataChanged();\r\n\t}",
"public void sort() {\n\t\tArrays.sort(contactList, 0, contactCounter);\n\t}",
"@SuppressWarnings(\"All\")\n public <T> void copy(MyList<? super T> to, MyList<? extends T> from) {\n\n System.out.println(\"from size \" + from.size);\n for (int i = 0; i < from.getSize(); i++) {\n to.add(from.getByIndex(i));\n }\n }",
"@Override\n\tpublic void copyReferences() {\n\t\tlateCopies = new LinkedHashMap<>();\n\n\t\tsuper.copyReferences();\n\n\t\tputAll(lateCopies);\n\t\tlateCopies = null;\n\t}",
"public void sort() {\n documents.sort();\n }",
"public int sortPersonList(){\r\n\t\tPerson temp;\r\n\t\tint max = 0;\r\n\t\t\r\n\t\t//Sort the tours for each person.\r\n\t\tfor(int i = 0; i < personList.size(); i++){\r\n\t\t\tpersonList.get(i).sortTours();\r\n\t\t}\r\n\t\t\r\n\t\tif(personList.size() > 0){\r\n\t\t\tmax = personList.get(0).toursThisMonth;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 1; i < personList.size(); i++){\r\n\t\t\tif(personList.get(i).toursThisMonth > max){\r\n\t\t\t\tmax = personList.get(i).toursThisMonth;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int j = i; j > 0; j--){\r\n\t\t\t\tint comparison = personList.get(j).name.toLowerCase().compareTo(personList.get(j-1).name.toLowerCase());\r\n\t\t\t\tif(comparison <= 0){\r\n\t\t\t\t\t//Swap.\r\n\t\t\t\t\ttemp = personList.get(j);\r\n\t\t\t\t\tpersonList.set(j, personList.get(j - 1));\r\n\t\t\t\t\tpersonList.set(j - 1, temp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn max;\r\n\t}",
"public void sortElements(){\n\t\tgetInput();\n\t\tPeople[] all = countAndSort(people, 0, people.length-1);\n\t\t//PrintArray(all);\n\t\tSystem.out.println(InversionCount);\n\t}",
"public static void main(String... args) {\n\n Person p1 = new Person(\"Mike\", 25);\n Person p2 = new Person(\"John\", 33);\n Person p3 = new Person(\"Slavek\", 48);\n Person p4 = new Person(\"Pawel\", 15);\n Person p5 = new Person(\"MJerry\", 66);\n Person p6 = new Person(\"White\", 35);\n\n List<Person>list = new ArrayList<>(Arrays.asList(p1,p2,p3,p4,p5,p6));\n\n list.forEach(System.out::println);\n list.removeIf(ps->ps.getAge()<25);\n System.out.println(\"after removal\");\n list.forEach(System.out::println);\n System.out.println(\"Trasformation\");\n list.replaceAll(p->new Person(p.getName().toUpperCase(),p.getAge()-5));\n System.out.println(\"After replacement\");\n list.forEach(System.out::println);\n list.sort((s1,s2)->s1.getAge()-s2.getAge());\n System.out.println(\"after sorting\");\n list.forEach(System.out::println);\n list.sort((s1,s2)->s1.getAge()-s2.getAge());\n list.sort(Comparator.comparing(Person::getAge));\n list.sort(Comparator.comparing(Person::getName).reversed());\n\n List<String >sd = Arrays.asList(\"okkok\");\n sd.stream().map(value-> {\n char ss = value.toUpperCase().charAt(0);\n return ss;\n }\n );\n sd.forEach(System.out::println);\n\n\n\n\n }",
"public StringList createSorted() {\n StringList list = this.duplicate();\n list.sort();\n return list;\n }",
"public static void main(String[] args) {\n\n List<String> animals = new ArrayList <String>();\n\n animals.add(\"Elephatn\");\n animals.add(\"snake\");\n animals.add(\"Lion\");\n animals.add(\"Mongoose\");\n animals.add(\"Cat\");\n\n\n\n// Collections.sort(animals, new StringLengthComparator());\n// Collections.sort(animals, new AlphabeticalComparator());\n Collections.sort(animals, new ReverseAlphabeticalComparator());\n for(String animal:animals){\n System.out.println(animal);\n }\n\n//////////////Sorting Numbers ///////////\n List<Integer> numbers = new ArrayList <Integer>();\n\n numbers.add(54);\n numbers.add(1);\n numbers.add(36);\n numbers.add(73);\n numbers.add(9);\n\n Collections.sort(numbers, new Comparator <Integer>() {\n @Override\n public int compare(Integer num1, Integer num2) {\n return num1.compareTo(num2);\n }\n });\n\n for(Integer number: numbers){\n System.out.println(number);\n }\n\n\n///////////////Sorting Arbitrary objects////////\n\n\n List<Person> people = new ArrayList <Person>();\n\n people.add(new Person(1,\"Joe\"));\n people.add(new Person(5,\"Harry\"));\n people.add(new Person(2,\"Hermoine\"));\n people.add(new Person(4,\"Muffet\"));\n\n// Sort in order of ID\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n if(p1.getId()>p2.getId()){\n return 1;\n }else if(p1.getId()<p2.getId()){\n return -1;\n }\n return 0;\n\n }\n });\n\n\n // Sort in order of Name\n Collections.sort(people, new Comparator <Person>() {\n @Override\n public int compare(Person p1, Person p2) {\n\n return p1.getName().compareTo(p2.getName());\n\n\n }\n });\n\n for(Person person: people){\n System.out.println(person);\n\n }\n\n }",
"public void sort() {\r\n int k = start;\r\n for (int i = 0; i < size - 1; i++) {\r\n int p = (k + 1) % cir.length;\r\n for (int j = i + 1; j < size; j++) {\r\n if ((int) cir[p] < (int) cir[k % cir.length]) {\r\n Object temp = cir[k];\r\n cir[k] = cir[p];\r\n cir[p] = temp;\r\n }\r\n p = (p + 1) % cir.length;\r\n }\r\n k = (k + 1) % cir.length;\r\n }\r\n }",
"public ArrayList<Person> hashDoubleDeduplication(){\n\tArrayList<Person> unduplicated1 = new ArrayList<>();\n\tDoubleHashMap<String, Person> map = new DoubleHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t // and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\t//The following lines of codes were commented after usage in the first part of the assignment:\n\t//System.out.println (\"Average number of probes: \"+ average/insertCount );\n\t//System.out.println(\"Max number of probes: \"+ max);\n\t//System.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n\tIterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated1.add(suspect);\n\t}\n\treturn unduplicated1;\n }",
"public ArrayList<Person> hashLinearDeduplication(){\n\tArrayList<Person> unduplicated = new ArrayList<>();\n\tProbeHashMap<String, Person> map = new ProbeHashMap(SIZE);\n\t//The probe count is adapted to the implementation of the maps\n\t// and use of public instance variable probes() \n\tdouble average=0.0;\n\tint max = 0;\n\tint insertCount =0;\n\tfor(int i=0; i< this.lst.size(); i++){\n\t map.put(lst.get(i).getRef(),lst.get(i));\n\t //count insertions:\n\t insertCount++;\n\t //increment sum of probes:\n\t average += map.probes;\n\t //compute max # of probes:\n\t if ( map.probes >= max) max = map.probes;\n\t}\n\tSystem.out.println (\"Average number of probes: \"+ average/insertCount );\n\tSystem.out.println(\"Max number of probes: \"+ max);\n\tSystem.out.println(\"Load-factor: \"+ (double)map.size()/SIZE );\n\t//initialize iterator to collect singular suspects from the map:\n Iterator<Person> coll = map.values().iterator();\n\twhile(coll.hasNext()){\n\t Person suspect = coll.next();\n\t unduplicated.add(suspect);\n\t}\n\treturn unduplicated;\n }",
"public static void main(String args[]) {\n LinkedList<Integer> ll = new LinkedList<Integer>();\r\n ll.add(new Integer(-8));\r\n ll.add(new Integer(20));\r\n ll.add(new Integer(-20));\r\n ll.add(new Integer(8));\r\n\r\n // Create a reverse order comparator\r\n Comparator<Integer> r = Collections.reverseOrder();\r\n // Sort list by using the comparator\r\n Collections.sort(ll, r);\r\n // Get iterator\r\n Iterator<Integer> li = ll.iterator();\r\n System.out.print(\"List sorted in reverse: \");\r\n while (li.hasNext()) {\r\n System.out.print(li.next() + \" \");\r\n }\r\n System.out.println(\"\\nList sorted in reverse: \" + ll);\r\n System.out.println();\r\n Collections.shuffle(ll);\r\n // display randomized list\r\n li = ll.iterator();\r\n System.out.print(\"List shuffled: \");\r\n while (li.hasNext()) {\r\n System.out.print(li.next() + \" \");\r\n }\r\n System.out.println(\"\\nList shuffled: \" + ll);\r\n System.out.println();\r\n System.out.println(\"Minimum: \" + Collections.min(ll));\r\n System.out.println(\"Maximum: \" + Collections.max(ll));\r\n\r\n LinkedList<Integer> cll = new LinkedList<Integer>();\r\n for (int i = 0; i < 4; i++) {\r\n cll.add(0);\r\n }\r\n Collections.copy(cll, ll);\r\n System.out.println(\"Collections.copy: \" + cll);\r\n Collections.fill(cll, new Integer(1));\r\n System.out.println(\"Collections.fill: \" + cll);\r\n Vector<Double> v = new Vector<Double>();\r\n v.addElement(1.0);\r\n v.add(2.0);\r\n ArrayList<Double> al = Collections.list(v.elements());\r\n System.out.println(\"list: \" + al);\r\n System.out.println(\"nCopies: \" + Collections.nCopies(3, Boolean.TRUE));\r\n Collections.reverse(al);\r\n System.out.println(\"reverse: \" + al);\r\n al.add(3.0);\r\n Collections.sort(al);\r\n System.out.println(\"sort: \" + al);\r\n Collections.rotate(al, 1);\r\n System.out.println(\"rotate 1: \" + al);\r\n Collections.rotate(al, -2);\r\n System.out.println(\"rotate -2: \" + al);\r\n Collections.swap(al, 0, 2);\r\n System.out.println(\"swap: \" + al);\r\n al.add(2.0);\r\n al.add(2.0);\r\n ArrayList<Double> sub = new ArrayList<>();\r\n sub.add(2.0);\r\n System.out.println(\"list: \" + al);\r\n System.out.println(\"sublist: \" + sub);\r\n System.out.println(\"lastIndexOfSubList: \" + Collections.lastIndexOfSubList(al, sub));\r\n System.out.println(\"indexOfSubList: \" + Collections.indexOfSubList(al, sub));\r\n\r\n Set<ArrayList<Double>> nl = Collections.singleton(al);\r\n System.out.println(\"singleton:\" + nl);\r\n System.out.println(\"EMPTY_LIST: \" + Collections.EMPTY_LIST);\r\n System.out.println(\"EMPTY_MAP: \" + Collections.EMPTY_MAP);\r\n System.out.println(\"EMPTY_SET: \" + Collections.EMPTY_SET);\r\n\r\n // create arraylist\r\n ArrayList<String> arlst = new ArrayList<String>();\r\n\r\n // populate the list\r\n arlst.add(\"TP\");\r\n arlst.add(\"PROVIDES\");\r\n arlst.add(\"QUALITY\");\r\n arlst.add(\"TUTORIALS\");\r\n\r\n // search the list for key 'QUALITY'\r\n int index = Collections.binarySearch(arlst, \"QUALITY\");\r\n\r\n System.out.println(\"'QUALITY' is available at index: \" + index);\r\n }",
"public List <Person> sortZip(List <Person> listOfPerson)\n\t{\n\t\tfor(int i = 0; i < listOfPerson.size(); i++)\n\t\t{\n\t\t\tfor(int j = i+1; j < listOfPerson.size(); j++)\n\t\t\t{\n\t\t\t\tif(listOfPerson.get(i).getZip() > listOfPerson.get(j).getZip())\n\t\t\t\t{\n\t\t\t\t\tPerson temp;\n\t\t\t\t\ttemp = listOfPerson.get(i);\n\t\t\t\t\tlistOfPerson.set(i, listOfPerson.get(j));\n\t\t\t\t\tlistOfPerson.set(j, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn listOfPerson;\n\t}",
"@Override\n public void sort() {\n\n List<Doctor> unsortedDocs = this.doctors;\n\n Collections.sort(unsortedDocs, new Comparator<Doctor>() {\n @Override\n public int compare(Doctor a, Doctor b) {\n //Compare first name for doctors and re-arrange list\n return a.getFirstName().compareTo(b.getFirstName());\n }\n });\n \n this.doctors = unsortedDocs;\n\n }",
"@Override\n public void copyProperties(Object dest, Object orig)\n throws IllegalAccessException, InvocationTargetException {\n try {\n // if we have an object in our list, that means we hit some sort of recursion, stop\n // here.\n if (lookingAt.stream().anyMatch(o -> o == dest)) {\n return; // recursion detected\n }\n lookingAt.add(dest);\n super.copyProperties(dest, orig);\n } finally {\n lookingAt.remove(dest);\n }\n }",
"@Override\r\n public void sort(final IRepository<T> repository,\r\n final Comparator<T> comparator) {\r\n int personLength = 0;\r\n for (T iPerson : repository.toList()) {\r\n if (iPerson != null) {\r\n ++personLength;\r\n }\r\n }\r\n for (int i = 1; i < personLength; i++) {\r\n T current = repository.get(i);\r\n int j = i - 1;\r\n while(j >= 0 && comparator.compare(repository.get(j), current) > 0) {\r\n repository.set(j + 1, repository.get(j));\r\n j--;\r\n }\r\n repository.set(j + 1, current);\r\n }\r\n }",
"public void sortObjectList(){\n\t\tint counter = gameObjectsList.size() - 1;\n\t\tif (gameObjectsList == null || gameObjectsList.size() == 0){\n\t\t\treturn;\n\t\t}\n\t\tquicksort(0, counter);\n\t}",
"Prototype makeCopy();",
"public static void main(String[] args) throws FileNotFoundException, IOException {\n BufferedReader br = new BufferedReader(new FileReader(\"D:\\\\name-sorter\\\\unsorted-names-list.txt\"));\n \n // Step 5: Create an ArrayList to hold the Person objects.\n ArrayList<Person> listPersonNames = new ArrayList<Person>();\n \n // Step 6 : Read every person record from input text file. For each person record, \n // create one person object and add that person object into listPersonNames.\n String line = br.readLine();\n \n while(line != null){\n String[] names = line.split(\" \");\n\n String givenNames = \"\";\n for(int a=0; a < names.length-1; a++){\n givenNames += names[a];\n givenNames += \" \";\n }\n \n String lastName = names[names.length-1];\n \n listPersonNames.add(new Person(givenNames, lastName));\n \n line = br.readLine();\n }\n \n // Step 7 : Sort the ArrayList listPersonNames using Collections.sort() method by passing \n // NamesCompare object to sort the text file.\n Collections.sort(listPersonNames, new NamesCompare());\n \n // Step 8 : Create BufferedWriter object to write the records into output text file.\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"D:\\\\name-sorter\\\\sorted-names-list.txt\"));\n \n // Step 9 : Write each listPersonNames into output text file.\n for (Person person : listPersonNames){\n writer.write(person.givenNames);\n writer.write(\" \"+person.lastName);\n writer.newLine();\n \n System.out.println(person.givenNames+\" \"+person.lastName);\n }\n \n // Step 10 : Close the resources.\n br.close();\n writer.close();\n }",
"public static InventoryItem[] getSortedInventoryList(){\n InventoryItem[] originalInventoryList = \r\n VikingQuest.getCurrentGame().getItems();\r\n // Clone (make a copy) origionalList\r\n InventoryItem[] inventoryList = originalInventoryList.clone();\r\n \r\n // Using a BubbleSort to sort the list of inventoryList by name\r\n Item tempInventoryItem;\r\n for (int i=0; i<inventoryList.length-1; i++){\r\n for (int j=0; j<inventoryList.length-1-i; j++){\r\n if (inventoryList[j].getType().\r\n compareToIgnoreCase(inventoryList[j + 1].getType()) > 0){\r\n tempItem = inventoryList[j];\r\n inventoryList[j] = inventoryList[j+1];\r\n inventoryList[j+1] = tempItem;\r\n }\r\n }\r\n }\r\n return inventoryList; \r\n }",
"private ArrayList<Concert> cloneConcertList(){\n ArrayList<Concert> tempConcertList = new ArrayList<Concert>();\n tempConcertList.addAll(concertList);\n return tempConcertList;\n }",
"public void sort() {\r\n Collections.sort(this.list, this);\r\n }",
"public static ArrayList<String> copy(ArrayList<String> original) {\n\t\tArrayList<String> copy = new ArrayList<String>();\r\n\t\tfor (int i = 0; i < original.size(); i++) {\r\n\t\t\tcopy.add(original.get(i));\r\n\t\t}\r\n\t\treturn copy;\r\n\t}",
"public static void main(String[] args) {\n\t\tList<String> animal = new ArrayList<String>();\n\n\t\tanimal.add(\"Cat\");\n\t\tanimal.add(\"Mouse\");\n\t\tanimal.add(\"Lion\");\n\t\tanimal.add(\"Zeebra\");\n\t\tanimal.add(\"Bear\");\n\t\tanimal.add(\"Deer\");\n\n\t\t// Collections.sort(animal,new StringLengthComparator());\n\n\t\tCollections.sort(animal, new ReverseAlphabeticalComparator());\n\t\tfor (String animal1 : animal) {\n\n\t\t\tSystem.out.println(animal1);\n\t\t}\n\n\t\t/////////////////////////////// Sorting Numbers ////////////////////////////////\n\t\tList<Integer> numbers = new ArrayList<Integer>();\n\n\t\tnumbers.add(5);\n\t\tnumbers.add(31);\n\t\tnumbers.add(16);\n\t\tnumbers.add(605);\n\t\tnumbers.add(15);\n\n\t\tCollections.sort(numbers, new Comparator<Integer>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Integer num1, Integer num2) {\n\n\t\t\t\treturn -num1.compareTo(num2);\n\t\t\t}\n\n\t\t});\n\n\t\tfor (Integer num1 : numbers) {\n\n\t\t\tSystem.out.println(num1);\n\t\t}\n\t\t///////////////////////////// Sorting Arbitrary Objects ////////////////////////////\n\n\t\tList<Person> people = new ArrayList<Person>();\n\n\t\tpeople.add(new Person(3, \"Ajeer\"));\n\t\tpeople.add(new Person(1, \"Sudeer\"));\n\t\tpeople.add(new Person(2, \"Sureash\"));\n\t\tpeople.add(new Person(4, \"Sam\"));\n\t\t\n\t\t// Sort in Order of ID\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\tif (p1.getId() > p2.getId()) {\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\telse if (p1.getId()< p2.getId()) {\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\t// Sort In Order of NAME....\n\t\tCollections.sort(people, new Comparator<Person>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Person p1, Person p2) {\n\t\t\t\n\t\t\t\treturn p1.getName().compareTo(p2.getName());\n\t\t\t}\n\t\t});\n\t\tfor (Person person1 : people) {\n\n\t\t\tSystem.out.println(person1);\n\t\t}\n\t}",
"public void sort() {\n\t\t\tCollections.sort(population, new SolutionComparator());\n\t\t}",
"@Override\n public void sort() {\n for (int i = 0; i < size; i++) {\n for (int j = i + 1; j < size; j++) {\n if (((Comparable) data[i]).compareTo(data[j]) > 0) {\n E c = data[i];\n data[i] = data[j];\n data[j] = c;\n\n }\n }\n }\n }",
"private void sort() {\n ObservableList<Node> workingCollection = FXCollections.observableArrayList(\n this.getChildren()\n );\n\n Collections.sort(workingCollection, new Comparator<Node>() {\n @Override\n public int compare(Node o1, Node o2) {\n CardView c1 = (CardView) o1;\n CardView c2 = (CardView) o2;\n return c1.getCard().compareTo(c2.getCard());\n }\n });\n\n this.getChildren().setAll(workingCollection);\n }",
"private void sortMedApts(List<MedicationAppointment> medApts2) {\n \t}",
"private void sortEntities(){\n for (int i = 1; i < sorted.size; i++) {\n for(int j = i ; j > 0 ; j--){\n \tEntity e1 = sorted.get(j);\n \tEntity e2 = sorted.get(j-1);\n if(getRL(e1) < getRL(e2)){\n sorted.set(j, e2);\n sorted.set(j-1, e1);\n }\n }\n }\n }",
"public static void main(String[] args) {\n\t\tclass Person {\n\t\t\tprivate String nome;\n\n\t\t\tpublic Person(String nome) {\n\t\t\t\tthis.nome = nome;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn nome;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean equals(Object obj) {\n\t\t\t\tSystem.out.println(\"Equals\");\n\t\t\t\tPerson person = (Person) obj;\n\t\t\t\treturn this.nome.equals(person.nome) ? true : false;\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int hashCode() {\n\t\t\t\tSystem.out.println(\"Hashcode!\");\n\t\t\t\treturn nome.charAt(0);\n\t\t\t}\n\t\t}\n\t\tSet<String> setComHashSet = new HashSet<>();\n\t\tsetComHashSet.add(\"Nicholas\");\n\t\tsetComHashSet.add(\"Cabral\");\n\t\tsetComHashSet.add(\"Barbosa\");\n\t\tSystem.out.println(\"I dont care about order! I care about performance to add() \" + setComHashSet);\n\t\tSet<String> setTreeSet = new TreeSet<>(Set.copyOf(setComHashSet));\n\t\tSystem.out.println(\"I care about order, however I dont care about performance to add() \" + setTreeSet);\n\t\tSystem.out.println();\n\t\tSet<Person> setPerson = new HashSet<>();\n\t\tPerson person = new Person(\"Nicholas\");\n\t\tPerson person2 = new Person(\"Nicholas2\");\n\t\tsetPerson.add(person);\n\t\tsetPerson.add(person2);\n\t\tSystem.out.println(setPerson);\n\t\tString[] arr = { \"Nihcolas\" };\n\t\tList<String> lista = Arrays.asList(arr);\n\n\t\tA a = new A();\n\t\tSetCollection b = (SetCollection) a;\n\t\tSystem.out.println(a == b);\n\t}",
"@Test\n public void whenListOfUserContainsofFiveUsersThenSortByAge() {\n\n SortUser sort = new SortUser();\n\n User din = new User(\"Din\", 23);\n User sam = new User(\"Sam\", 15);\n User john = new User(\"John\", 31);\n User sara = new User(\"Sara\", 25);\n User greg = new User(\"Greg\", 28);\n\n List<User> users = new LinkedList<>();\n\n users.add(din);\n users.add(sam);\n users.add(john);\n users.add(sara);\n users.add(greg);\n\n Set<User> expectedSet = new TreeSet<>();\n\n expectedSet.add(sam);\n expectedSet.add(din);\n expectedSet.add(sara);\n expectedSet.add(greg);\n expectedSet.add(john);\n\n Set<User> actualSet = sort.sort(users);\n\n assertThat(actualSet, is(expectedSet));\n\n }",
"protected void sort() {\n\n\t\tCollections.sort(this.myRRList);\n\t}",
"private List<Criterion> _sortCriterionList()\n {\n Collections.sort(_criterionList, _groupNameComparator);\n Collections.sort(_criterionList, _fieldOrderComparator);\n for(int count = 0 ; count < _criterionList.size() ; count++)\n {\n ((DemoAttributeCriterion)_criterionList.get(count)).setOrderDirty(false);\n }\n return _criterionList;\n }",
"private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }",
"@Override\n public Matching stableMarriageGaleShapley_residentoptimal(Matching marriage) {\n\n int m = marriage.getHospitalCount();\n int n = marriage.getResidentCount();\n\n ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference();\n ArrayList<ArrayList<Integer>> resident_preference = marriage.getResidentPreference();\n ArrayList<Integer> hospitalSlots = marriage.getHospitalSlots();\n ArrayList<Integer> residentMatching = new ArrayList<Integer>();\n arrlistInit(residentMatching, n, -1, false); //O(n)\n\n /*At first the resident can propose to all his list.\n Each time a proposal is made the hospital is removed from the list*/\n\n /*Trying to create a copy of the arraylist elements not copy of references*/\n ArrayList<ArrayList<Integer>> hospitalsToProposeTo = new ArrayList<ArrayList<Integer>>();\n for (int i = 0; i < n; i++) //O(n)\n hospitalsToProposeTo.add(new ArrayList<Integer>(resident_preference.get(i)));\n\n\n /*list of residents that still can propose(free and hasn't proposed to every hospital)*/\n ArrayList<Integer> proposing = new ArrayList<Integer>();\n arrlistInit(proposing, n, 0, true); //O(n)\n\n\n /*Keep track of each hospital matched residents*/\n ArrayList<ArrayList<Integer>> hospitalResidents = new ArrayList<ArrayList<Integer>>(0);\n for (int i = 0; i < m; i++)\n hospitalResidents.add(new ArrayList<Integer>(0)); //O(m)\n\n /*Array list that holds the value of the lowest matched resident rank in each hospital\n * so each time a resident propose to a full hospital, the resident is swapped with the least ranked rmatched resident */\n ArrayList<Integer> lowestMatchedResidentRank = new ArrayList<Integer>();\n arrlistInit(lowestMatchedResidentRank, m, -1, false); //O(m)\n\n /*we enter the loop as long as some residents aren't done proposing to all hospitals yet O(mn*maximum no of spots)*/\n while (!proposing.isEmpty()) {\n\n /*Get the head of the proposing list*/\n for (int residentIndex = 0; residentIndex < proposing.size(); residentIndex++) {\n int resident = proposing.get(0);\n int hospital = 0;\n int hospitalIndex;\n /*Get the first hospital in the resident list which he hasn't proposed to yet, breaks if he can't no longer propose if matched*/\n for (hospitalIndex = 0; hospitalIndex < hospitalsToProposeTo.get(resident).size() && proposing.contains(resident); hospitalIndex++) {\n hospital = hospitalsToProposeTo.get(resident).get(0);\n int residentRank = hospital_preference.get(hospital).indexOf(resident);\n\n /*hospital is full, loop through the matched residents and see if anyone can be kicked out*/\n if (hospitalResidents.get(hospital).size() == hospitalSlots.get(hospital)) {\n\n if (residentRank < lowestMatchedResidentRank.get(hospital)) {\n /*1.Replace in hospitalResidents\n * 2.Add/remove in resident-matching\n * 3.Remove resident from the proposing list\n * 4.Check if matched resident still has hospitals to propose to (if yes, add to proposing)\n */\n int lowestMatchedResident = hospital_preference.get(hospital).get(lowestMatchedResidentRank.get(hospital));\n\n hospitalResidents.get(hospital).set(hospitalResidents.get(hospital).indexOf(lowestMatchedResident), resident);\n residentMatching.set(lowestMatchedResident, -1);\n residentMatching.set(resident, hospital);\n proposing.remove(proposing.indexOf(resident));\n if (!hospitalsToProposeTo.get(lowestMatchedResident).isEmpty()) {\n proposing.add(lowestMatchedResident);\n }\n\n /*set the lowest rank\n * TODO make it O(1)*/\n int min = 0;\n for (int i = 0; i < hospitalResidents.get(hospital).size(); i++) {\n int tempRank = hospital_preference.get(hospital).indexOf(hospitalResidents.get(hospital).get(i));\n if (tempRank > min)\n min = tempRank;\n }\n lowestMatchedResidentRank.set(hospital, min);\n\n }\n }\n\n /*If there is available spot*/\n else {\n /*1.Add in hospitalResidents\n * 2.Add in resident-matching\n * 3.Set the lowest ranked resident\n * 4.Remove resident from proposing list\n */\n\n /*Update the lowest rank*/\n if (residentRank > lowestMatchedResidentRank.get(hospital))\n lowestMatchedResidentRank.set(hospital, residentRank);\n\n hospitalResidents.get(hospital).add(resident);\n residentMatching.set(resident, hospital);\n proposing.remove(proposing.indexOf(resident));\n }\n\n /*1. Remove hospital from resident's hospitalsToProposeTo\n *2. If resident is matched or proposed to every possible hospital, remove resident from proposing list\n */\n\n hospitalsToProposeTo.get(resident).remove(hospitalsToProposeTo.get(resident).indexOf(hospital));\n if (hospitalsToProposeTo.get(resident).size() == 0 && proposing.contains(resident))\n proposing.remove(proposing.indexOf(resident));\n }\n }\n }\n\n marriage.setResidentMatching(residentMatching);\n return marriage;\n\n }",
"void copy(DependencyRelations deps){\n if (deps == null)\n throw new IllegalArgumentException(\"the source is null.\");\n\n size_ = deps.size_;\n for(int i = 0; i < size_ ; i++){\n if (nodes_[i] == null)\n nodes_[i] = new Node();\n nodes_[i].copy(deps.nodes_[i]);\n }\n }",
"ObservableList<Person> getFilteredPersonList();",
"@Override\n\tpublic NamedList<T> clone() {\n\t\tArrayList<Object> newList = new ArrayList<Object>(nvPairs.size());\n\t\tnewList.addAll(nvPairs);\n\t\treturn new NamedList<T>(newList);\n\t}",
"public static void main(String[] args) {\n int age = 30;\n int [] numbers = {2,3,4,6,1};\n int [] oldWayNumbers = new int[5];\n\n Arrays.sort(numbers);\n\n Date now = new Date();\n Point cords = new Point(1,1);\n Point cordCopy = cords;\n cords.x = 2;\n System.out.println(now);\n System.out.println(Arrays.toString(numbers));\n System.out.println(\"Hello World \" + age);\n System.out.println(cordCopy);\n }",
"private int[][] copy(int[][] original) {\n int [][] newChild = new int[original.length][];\n for(int i = 0; i < original.length; i++)\n newChild[i] = Arrays.copyOf(original[i],original.length);\n return newChild;\n }",
"@Override\n\t\t\tpublic int compare(Person o1, Person o2) {\n\t\t\t\treturn o1.getAge().compareTo(o2.getAge());\n\t\t\t}",
"private void sortByLastName() {\n //selection sort\n for (int i = 0; i < size - 1; i++) {\n int alphaSmallerIndex = i;\n for (int j = i + 1; j < size; j++)\n if (accounts[j].getHolder().getLastNameFirstName().compareTo(accounts[alphaSmallerIndex].getHolder().getLastNameFirstName()) < 0) {\n alphaSmallerIndex = j;\n }\n Account acc = accounts[alphaSmallerIndex];\n accounts[alphaSmallerIndex] = accounts[i];\n accounts[i] = acc;\n }\n }",
"@Test\n public void getPersonsListTest() {\n \tHelloWorldImpl hello=new HelloWorldImpl();\n \tPersonList personInputList=new PersonList();\n \tList<PersonRequest> pl=new ArrayList<PersonRequest>();\n \tPersonRequest pr1=new PersonRequest();\n \tpr1.setName(\"Satish\");\n \tpr1.setSurname(\"Namdeo\");\n \tpr1.setLocation(\"Servicesource\");\n \tPersonRequest pr2=new PersonRequest();\n \tpr2.setName(\"Rahul\");\n \tpr2.setSurname(\"Jain\");\n \tpr2.setLocation(\"Bigdata\");\n \tpl.add(pr1);\n \tpl.add(pr2);\n \tpersonInputList.setPersonList(pl);\n \tPersonList actualResult=hello.getPersonsList(personInputList);\n \t//check for result is not empty.\n \tassertNotNull(\"Result is not null\",actualResult);\n \t\n \tPersonRequest pr3=new PersonRequest();\n \tpr1.setName(\"Sakhshi\");\n \tpr1.setSurname(\"Jain\");\n \tpr1.setLocation(\"Servicesource\");\n \tpl.add(pr3);\n \t\n \t//check for equality\n \tPersonRequest[] actualResultArray = actualResult.getPersonList().toArray(new PersonRequest[actualResult.getPersonList().size()]);\n \tPersonRequest[] expectedArray = pl.toArray(new PersonRequest[pl.size()]);\n \tassertArrayEquals(\"list elements are not equal\",expectedArray, actualResultArray);\n \t//System.out.println(\"personsListDisplayTest result : \"+result.getPersonList().size());\n }",
"private PerfectMergeSort() {}",
"private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }",
"public static void main(String[] args) {\n\t\tList l1=new ArrayList();\n\t\tl1.add(0, \"Gyan\");\n\t\tl1.add(1, \"Ranjan\");\n\t\tl1.add(2, \"Mahapatra\");\n\t\tSystem.out.println(l1);\n\t\tl1.add(2,\"xyz\");\n\t\tSystem.out.println(l1 + \" \" +l1.get(2));\nint a[]=new int[8];\nfor(int i=0;i<8;i++){\n\ta[i]=i;\n}\n//for(int j:a)\n//\tSystem.out.println(j);\nList l2=new ArrayList();\nl2.add(\"Sonit\");\nl2.add(\"Dora\");\nl2.add(\"Sourav\");\n/*System.out.println(l2);\nl2.remove(1);*/\nSystem.out.println(l2);\nSet s=new HashSet();\ns.add(\"seta\");\ns.add(\"setc\");\ns.add(\"setb\");\nSystem.out.println(s);\nCollections.sort((List) s);\nSystem.out.println(s);\n\nSet s1=new TreeSet(s);\nSystem.out.println(s1.size());\nSystem.out.println(\"Gyan\");\n\t}",
"public static void copy(java.util.List arg0, java.util.List arg1)\n { return; }",
"private Shop deepCopy() {\n BookShop obj = null;\n try {\n obj = (BookShop) super.clone();\n List<Book> books = new ArrayList<>();\n Iterator<Book> iterator = this.getBooks().iterator();\n while(iterator.hasNext()){\n\n books.add((Book) iterator.next().clone());\n }\n obj.setBooks(books);\n } catch (CloneNotSupportedException exc) {\n exc.printStackTrace();\n }\n return obj;\n }",
"private Collection<Record> sortRecords(Collection<Record> records) {\n\t\tList<Record> sortedRecords = new ArrayList<>(records);\n\t\tCollections.sort(sortedRecords, new Comparator<Record>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Record rec1, Record rec2) {\n\t\t\t\treturn rec1.getPerson().getSurname().compareTo(rec2.getPerson().getSurname());\n\t\t\t}\n\t\t});\n\t\t\n\t\t Collection<Record> sortedCollection = sortedRecords;\n\t\t return sortedCollection;\n\t}",
"@Test\n public void whenListOfUsersWithDifferentNamesAndAgesThenSortHashSortsUsersByHashcode() {\n\n SortUser sort = new SortUser();\n\n List<User> test = new LinkedList<>();\n\n User basil = new User(\"Basil\", 27);\n User alex = new User(\"Alex\", 31);\n User sam = new User(\"Sam\", 33);\n\n test.add(basil);\n test.add(alex);\n test.add(sam);\n\n List<User> expected = new LinkedList<>();\n\n expected.add(sam);\n expected.add(alex);\n expected.add(basil);\n\n List<User> actual = sort.sortHash(test);\n\n assertThat(actual, is(expected));\n\n }",
"public static void main (String args []) throws Exception {\n\n\n ArrayList<Person> people = new ArrayList<Person>();\n Person youngestPerson = getYoungestPerson(people);\n Person oldestPerson = getOldestPerson(people);\n ArrayList<Person> sortedByAgeList = getSortedListByAge(people);\n ArrayList<Person> sortedByNameList = getSortedListByName(people, false);\n\n\n /*\n For the below to work where you can see what you've done, you must have\n done the section 1 recap portion where you override the toString() method of the\n Person class!\n */\n\n for(Person p : sortedByAgeList) {\n System.out.println(p);\n }\n\n for(Person p : sortedByNameList) {\n System.out.println(p);\n }\n }",
"void sort();",
"void sort();",
"public void copy(DataRequest original){\n\t\t//potential problems with object sharing\n\t\tfilters = \toriginal.get_filters();\n\t\tsort_by = \toriginal.get_sort_by();\n\t\tcount = \toriginal.get_count();\n\t\tstart = \toriginal.get_start();\n\t\tsource = \toriginal.get_source();\n\t\tfieldset =\toriginal.get_fieldset();\n\t\trelation = \toriginal.get_relation();\n\t}",
"private long[] getClonedEquivalent(long[] originalStaffIds, Map<Long, Staff> oldIdToNewStaff) {\n\tSet<Long> clonedStaffSet = new HashSet<Long>();\n\tfor (long originalId : originalStaffIds) {\n\t Staff stf = oldIdToNewStaff.get(originalId);\n\t if (stf != null) {\n\t\tclonedStaffSet.add(stf.getId());\n\t }\n\t}\n\treturn Longs.toArray(clonedStaffSet);\n }",
"public static void main(String[] args) {\n\t\tArrayList<Integer> al=new ArrayList<Integer>();\n\t\tfor(int i=10;i<20;i++)\n\t\t{\n\t\t\tal.add(i);\n\t\t\tif(i==15)\n\t\t\t{\n\t\t\t\tfor(int j=101;j<107;j++)\n\t\t\t\t{\n\t\t\t\t\tal.add(j);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint a=al.size();\n\t\tSystem.out.println(al);\n\t\tSystem.out.println(a);\n\t\tInteger arr[]=new Integer[a];\n\t\tint j=0;\n\t\tfor(Integer i:al)\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\tarr[j]=i;\n\t\t\tj++;\n\t\t}\n\t\tfor(int i=0;i<a;i++)\n\t\t{\n\t\t\tSystem.out.println(arr[i]);\n\t\t}\n\t\tSystem.out.println(Arrays.binarySearch(arr, 14));\n\t\tInteger[] q=Arrays.copyOfRange(arr, 4, 9);\n\t\tSystem.out.println(\"copy of range method\");\n\t\tfor(Integer co:q)\n\t\t{\n\t\t\tSystem.out.println(co);\n\t\t}\n\t\tSystem.out.println(Arrays.equals(arr, q));\n\t\tSystem.out.println(Arrays.deepHashCode(arr));\n\t\tSystem.out.println(Arrays.hashCode(arr));\n\t\tArrays.parallelSort(arr);\n\t\tfor(int i=0;i<a;i++)\n\t\t{\n\t\t\tSystem.out.println(arr[i]);\n\t\t}\n\t\tSystem.out.println(Arrays.spliterator(arr));\n\t}",
"private <T> void assertDeduped(List<T> array, Comparator<T> cmp, int expectedLength) {\n List<List<T>> types = List.of(new ArrayList<T>(array), new LinkedList<>(array));\n for (List<T> clone : types) {\n // dedup the list\n CollectionUtils.sortAndDedup(clone, cmp);\n // verify unique elements\n for (int i = 0; i < clone.size() - 1; ++i) {\n assertNotEquals(cmp.compare(clone.get(i), clone.get(i + 1)), 0);\n }\n assertEquals(expectedLength, clone.size());\n }\n }",
"@Override\r\n /**\r\n * *\r\n *Primero revisa si los apellidos con iguales, en el caso de que sean iguales\r\n *entra al if y compara por nombres, de lo contrario nunca entra al if y \r\n * compara normalmente por apellido\r\n * \r\n */ \r\n public void ordenarPersonas (){\r\n Comparator<Persona> comparacionPersona= (Persona persona1,Persona persona2)->{\r\n \r\n if(persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos())==0){\r\n return persona1.getNombres().compareToIgnoreCase(persona2.getNombres());}\r\n return persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos());\r\n }; \r\n\r\n listaPersona.sort(comparacionPersona);\r\n }",
"private List<Obs> getOriginalObsList(Patient patient, ObsService obsService){\n\t\tList<Obs> originalObsList = new ArrayList<Obs>();\n\t\ttry{\n\t\t\toriginalObsList =\tobsService.getObservationsByPerson(patient);\n\t\t}\n\t\tcatch(APIException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn originalObsList;\n\t}",
"public void sort(){\n ArrayList<Card> sortedCards = new ArrayList<Card>();\n ArrayList<Card> reds = new ArrayList<Card>();\n ArrayList<Card> yellows = new ArrayList<Card>();\n ArrayList<Card> greens = new ArrayList<Card>();\n ArrayList<Card> blues = new ArrayList<Card>();\n ArrayList<Card> specials = new ArrayList<Card>();\n for(int i = 0; i < cards.size(); i++){\n if(cards.get(i).getColor() == RED){\n reds.add(cards.get(i));\n }else if(cards.get(i).getColor() == YELLOW){\n yellows.add(cards.get(i));\n }else if(cards.get(i).getColor() == GREEN){\n greens.add(cards.get(i));\n }else if(cards.get(i).getColor() == BLUE){\n blues.add(cards.get(i));\n }else if(cards.get(i).getColor() == ALL){\n specials.add(cards.get(i));\n }\n }\n cards = new ArrayList<Card>();\n for(Card c: reds){\n sortedCards.add(c);\n }\n for(Card c: yellows){\n sortedCards.add(c);\n }\n for(Card c: greens){\n sortedCards.add(c);\n }\n for(Card c: blues){\n sortedCards.add(c);\n }\n for(Card c: specials){\n sortedCards.add(c);\n }\n for(Card c: sortedCards){\n cards.add(c);\n }\n }",
"@Override\n\tpublic int compare(TreeSetPerson o1, TreeSetPerson o2) {\n\t\treturn o1.pname.compareTo(o2.pname);\n\t}",
"@SuppressWarnings(\"unused\")\n\tvoid example17() {\n\t\t\n\t\t// make a list of 10,000 numbers\n\t\t\n\t\tIndexedDataSource<Float32Member> original =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.FLT.construct(), 10000);\n\n\t\t// make a list that is a subset of the previous list (numbers from locations 1,000 - 2,999)\n\t\t\n\t\tIndexedDataSource<Float32Member> trimmed = new TrimmedDataSource<>(original, 1000, 2000);\n\t\t\n\t\t// then create a new memory copy of those 2000 numbers\n\t\t\n\t\tIndexedDataSource<Float32Member> theCopy = DeepCopy.compute(G.FLT, trimmed);\n\t}",
"public void listSort() {\n\t\tCollections.sort(cd);\n\t}",
"public SongSublist(ArrayList<SongEntry> orig)\n {\n duration = 0;\n originalObjects = orig;\n subs = new ArrayList<SongEntry>();\n }",
"public static void main(String[] args) {\n\n\n ArrayList<Integer> list = new ArrayList<>(Arrays.asList(1,7,8,4,5,6,3,2));\n\n //Collections.sort(list)\n Collections.sort(list);\n System.out.println(list); // [1, 2, 3, 4, 5, 6, 7, 8]\n\n //Collections.max(list) returns int value\n int max=Collections.max(list);\n System.out.println(max); //8\n\n //Collections.min(list) returns int value\n int min=Collections.min(list);\n System.out.println(min); //1\n\n System.out.println(\"========\");\n ArrayList<Integer> numbers = new ArrayList<>( Arrays.asList(1,1,2,3,4,4));\n //MAX\n int max1=Collections.max(numbers); // 4\n //numbers.removeAll(max1); // ERROR ! parameter has to be collection >> Arrays.asList(max1)\n numbers.removeAll(Arrays.asList(max1)); // 4,4 have been removed!\n\n int secindmax=Collections.max(numbers); // max has been updated as secondmax\n System.out.println(secindmax); // 3\n\n //MIN\n ArrayList<Integer> list2 = new ArrayList<>(Arrays.asList(1,1,2,3,4,5,6,7,8));\n int min2=Collections.min(list2);\n System.out.println(min2); // 1,1\n list2.removeAll(Arrays.asList(min2)); // min numbers removed\n int secondmin=Collections.min(list2); // second min initialised\n System.out.println(secondmin); // 2\n\n //Collections.swap(listName, index1 , index2); >> objects in index1 & index2 swaps\n ArrayList<Integer> list3 = new ArrayList<>(Arrays.asList(1,2,3,4,5,6,7,8));\n System.out.println(list3); // [1, 2, 3, 4, 5, 6, 7, 8]\n Collections.swap(list3,2,list3.size()-1);\n System.out.println(list3); // [1, 2, 8, 4, 5, 6, 7, 3] // 3 & 8 swapped\n System.out.println(\"=============\");\n\n //Collections.replaceAll(listName, oldValue, newValue);\n ArrayList<String> names = new ArrayList<>();\n names.addAll(Arrays.asList(\"Omer\", \"Omer\", \"Mary\", \"Sha\", \"Fatih\", \"Omer\"));\n System.out.println(names); // [Omer, Omer, Mary, Sha, Fatih, Omer]\n Collections.replaceAll(names, \"Omer\",\"Filiz\"); //case sensitive\n System.out.println(names); // [Filiz, Filiz, Mary, Sha, Fatih, Filiz]\n\n // Collections.frequency(listName,object);\n int count=Collections.frequency(names,\"Filiz\"); // 3\n System.out.println(count);\n\n // Predicate<Integer> name= X->X<5;\n Predicate<Integer> lessthan5= X -> X<5;\n ArrayList<Integer>num = new ArrayList<>(Arrays.asList(0,1,2,2,5,7,12,10,23,35));\n System.out.println(num); // [0, 1, 2, 2, 5, 7, 12, 10, 23, 35]\n\n //listName.removeIf(Predicate);\n num.removeIf(lessthan5);\n System.out.println(num); // [5, 7, 12, 10, 23, 35]\n\n\n\n\n\n\n\n\n\n\n\n }",
"private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }",
"@Test\n public void testContactModification() throws IOException {\n Contacts before = app.db().contacts();\n // next() return sly4ainyi element, not last, not first\n NameFirstMiddle modifiedContact = before.iterator().next();\n //int index = before.size() -1;\n NameFirstMiddle contact = new NameFirstMiddle().\n withId(modifiedContact.getId()).\n withFirstname(properties.getProperty(\"web.contactModifiedFirstName\")).\n withLastname(properties.getProperty(\"web.contactModifiedLastName\")).\n withEmail1(properties.getProperty(\"web.contactEmail1\")).\n withEmail2(properties.getProperty(\"web.contactEmail2\")).\n withEmail3(properties.getProperty(\"web.contactEmail3\")).\n withFullAddress(properties.getProperty(\"web.contactAddress1\")).\n withHomePhone(properties.getProperty(\"web.contactHomeTel\")).\n withWorkPhone(properties.getProperty(\"web.contactWorkTel\")).\n withMobilePhone(properties.getProperty(\"web.contactMobileTel\"));\n\n app.contact().modify(contact);\n Contacts after = app.db().contacts();\n assertEquals(after.size(),before.size() );\n assertThat(after, equalTo(\n before.without(modifiedContact).withAdded(contact)));\n verifyContactListInUi();\n //-no needs after assertThat:before.remove(modifiedContact);\n //-no needs after assertThat:before.add(contact);\n // ne-uporjado4en - massiv\n // uporjado4en - spisok\n // spicok -> mnogestvoб BUT HashSet contains only unique names aND remove duplicates names\n //-no needs after assertThat:assertEquals(new HashSet<Object>(before),new HashSet<Object>(after));\n //anonimous function: sort by Id - our choice\n // no need after modifiedContact\n //Comparator<? super NameFirstMiddle> byId = (g1, g2) -> Integer.compare(g1.getId(),g2.getId());\n //before.sort(byId);\n //after.sort(byId);\n //-no needs after assertThat:assertEquals(before,after);\n }",
"public void step4(){\n\n Collections.sort(names,(a,b)->b.compareTo(a));\n\n\n System.out.println(\"names sorted are :\"+names);\n }",
"public static void sortList(ArrayList<Patient> newOrder){\r\n \t\tlistModel.clear();\r\n \t\tPatientView.setSortedArray(newOrder);\r\n \t\tfor (Patient p : newOrder) {\r\n \t\t\tlistModel.addElement(p.getFirstName());\r\n \t\t}\r\n \t}",
"public void sort(){\n ListNode t, x, b = new ListNode(null, null);\n while (firstNode != null){\n t = firstNode; firstNode = firstNode.nextNode;\n for (x = b; x.nextNode != null; x = x.nextNode) //b is the first node of the new sorted list\n if (cmp.compare(x.nextNode.data, t.data) > 0) break;\n t.nextNode = x.nextNode; x.nextNode = t;\n if (t.nextNode==null) lastNode = t;\n }\n firstNode = b.nextNode;\n }",
"public void testSortedList() {\r\n List<InfoNode> sortedList = MapUtils.sortByDistance(exampleList, node3.getTitle());\r\n assertTrue(sortedList.size() == 2);\r\n assertTrue(sortedList.get(0) == node2);\r\n assertTrue(sortedList.get(1) == node1);\r\n assertTrue(sortedList.contains(node1));\r\n assertTrue(sortedList.contains(node2));\r\n assertFalse(sortedList.contains(node3));\r\n\r\n sortedList = MapUtils.sortByDistance(exampleList, node1.getTitle());\r\n assertTrue(sortedList.size() == 2);\r\n assertTrue(sortedList.get(0) == node2);\r\n assertTrue(sortedList.get(1) == node3);\r\n assertFalse(sortedList.contains(node1));\r\n assertTrue(sortedList.contains(node2));\r\n assertTrue(sortedList.contains(node3));\r\n\r\n sortedList = MapUtils.sortByDistance(exampleList, \" \");\r\n assertTrue(sortedList.equals(exampleList));\r\n }"
] |
[
"0.60336804",
"0.601611",
"0.59689724",
"0.59362227",
"0.5908062",
"0.58017445",
"0.57402784",
"0.5690137",
"0.56595135",
"0.5644615",
"0.5644072",
"0.56409675",
"0.56101257",
"0.55608463",
"0.5542204",
"0.5540546",
"0.55207634",
"0.54682696",
"0.54622823",
"0.54572797",
"0.54515976",
"0.5437909",
"0.5431405",
"0.5425449",
"0.5422521",
"0.54183716",
"0.54030585",
"0.53856033",
"0.53638405",
"0.5358158",
"0.53426796",
"0.5337771",
"0.5334085",
"0.53271407",
"0.53232664",
"0.53166586",
"0.5314841",
"0.5278034",
"0.5277107",
"0.5275579",
"0.52673334",
"0.5258037",
"0.5238159",
"0.52369124",
"0.5232377",
"0.5231425",
"0.5226607",
"0.5218404",
"0.52135324",
"0.520186",
"0.5174702",
"0.51693326",
"0.5155577",
"0.51539725",
"0.51507944",
"0.5143527",
"0.5136195",
"0.51358247",
"0.5123982",
"0.5117669",
"0.5113566",
"0.50984174",
"0.50920236",
"0.50919926",
"0.5091297",
"0.50897235",
"0.50850695",
"0.50837696",
"0.50637543",
"0.5062629",
"0.50613576",
"0.5058667",
"0.5054386",
"0.50529337",
"0.5045038",
"0.5045012",
"0.5044243",
"0.5043999",
"0.5043769",
"0.5034533",
"0.50306135",
"0.50306135",
"0.50302076",
"0.50229216",
"0.5018684",
"0.5013056",
"0.5003338",
"0.5002657",
"0.5000143",
"0.49997395",
"0.4992801",
"0.49926248",
"0.49906462",
"0.49809018",
"0.49727222",
"0.49707964",
"0.4964103",
"0.49620816",
"0.49601343",
"0.49487418"
] |
0.8036582
|
0
|
TODO Autogenerated method stub
|
@Override
public void insert(CustVO custVO) {
Connection con = null;
PreparedStatement pstmt = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(INSERT_STMT);
pstmt.setString(1, custVO.getCust_acc());
pstmt.setString(2, custVO.getCust_pwd());
pstmt.setString(3, custVO.getCust_name());
pstmt.setString(4, custVO.getCust_sex());
pstmt.setString(5, custVO.getCust_tel());
pstmt.setString(6, custVO.getCust_addr());
pstmt.setString(7, custVO.getCust_pid());
pstmt.setString(8, custVO.getCust_mail());
pstmt.setDate(9, custVO.getCust_brd());
pstmt.setDate(10, custVO.getCust_reg());
pstmt.setBytes(11, custVO.getCust_pic());
pstmt.setString(12, custVO.getCust_status());
pstmt.setString(13, custVO.getCust_niname());
System.out.println("HUHUHUHUH");
pstmt.executeUpdate();
} catch (SQLException se) {
System.out.println("HUHUHUHUH"+se.toString());
throw new RuntimeException("A database error occured." + se.getMessage());
} finally {
if (pstmt != null) {
try {
pstmt.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (con != null) {
try {
con.close();
} catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void update(CustVO custVO) {
Connection con = null;
PreparedStatement pstmt = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(UPDATE);
pstmt.setString(1, custVO.getCust_acc());
pstmt.setString(2, custVO.getCust_pwd());
pstmt.setString(3, custVO.getCust_name());
pstmt.setString(4, custVO.getCust_sex());
pstmt.setString(5, custVO.getCust_tel());
pstmt.setString(6, custVO.getCust_addr());
pstmt.setString(7, custVO.getCust_pid());
pstmt.setString(8, custVO.getCust_mail());
pstmt.setDate(9, custVO.getCust_brd());
pstmt.setDate(10, custVO.getCust_reg());
pstmt.setBytes(11, custVO.getCust_pic());
pstmt.setString(12, custVO.getCust_status());
pstmt.setString(13, custVO.getCust_niname());
pstmt.setString(14, custVO.getCust_ID());
pstmt.executeUpdate();
} catch (SQLException se) {
throw new RuntimeException("A database error occured." + se.getMessage());
} finally {
if (pstmt != null) {
try {
pstmt.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (con != null) {
try {
con.close();
} catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public void delete(String cust_ID) {
Connection con = null;
PreparedStatement pstmt = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(DELETE);
pstmt.setString(1, cust_ID);
pstmt.executeUpdate();
} catch (SQLException se) {
throw new RuntimeException("A database error occured." + se.getMessage());
} finally {
if (pstmt != null) {
try {
pstmt.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (con != null) {
try {
con.close();
} catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public CustVO findByPrimaryKey(String cust_ID) {
CustVO custVO = null;
Connection con = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(GET_ONE_STMT);
pstmt.setString(1, cust_ID);
rs = pstmt.executeQuery();
while (rs.next()) {
custVO = new CustVO();
custVO.setCust_ID(rs.getString("CUST_ID"));
custVO.setCust_acc(rs.getString("CUST_ACC"));
custVO.setCust_pwd(rs.getString("CUST_PWD"));
custVO.setCust_name(rs.getString("CUST_NAME"));
custVO.setCust_sex(rs.getString("CUST_SEX"));
custVO.setCust_tel(rs.getString("CUST_TEL"));
custVO.setCust_addr(rs.getString("CUST_ADDR"));
custVO.setCust_pid(rs.getString("CUST_PID"));
custVO.setCust_mail(rs.getString("CUST_MAIL"));
custVO.setCust_brd(rs.getDate("CUST_BRD"));
custVO.setCust_reg(rs.getDate("CUST_REG"));
custVO.setCust_pic(rs.getBytes("CUST_PIC"));
custVO.setCust_status(rs.getString("CUST_STATUS"));
custVO.setCust_niname(rs.getString("CUST_NINAME"));
}
} catch (SQLException se) {
throw new RuntimeException("A database error occured. " + se.getMessage());
} finally {
if (rs != null) {
try {
rs.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (pstmt != null) {
try {
pstmt.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (con != null) {
try {
con.close();
} catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
return custVO;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public List<CustVO> getAll() {
List<CustVO> list = new ArrayList<CustVO>();
CustVO custVO = null;
Connection con = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
con = ds.getConnection();
pstmt = con.prepareStatement(GET_ALL_STMT);
rs = pstmt.executeQuery();
while (rs.next()) {
custVO = new CustVO();
custVO.setCust_ID(rs.getString("CUST_ID"));
custVO.setCust_acc(rs.getString("CUST_ACC"));
custVO.setCust_pwd(rs.getString("CUST_PWD"));
custVO.setCust_name(rs.getString("CUST_NAME"));
custVO.setCust_sex(rs.getString("CUST_SEX"));
custVO.setCust_tel(rs.getString("CUST_TEL"));
custVO.setCust_addr(rs.getString("CUST_ADDR"));
custVO.setCust_pid(rs.getString("CUST_PID"));
custVO.setCust_mail(rs.getString("CUST_MAIL"));
custVO.setCust_brd(rs.getDate("CUST_BRD"));
custVO.setCust_reg(rs.getDate("CUST_REG"));
custVO.setCust_pic(rs.getBytes("CUST_PIC"));
custVO.setCust_status(rs.getString("CUST_STATUS"));
custVO.setCust_niname(rs.getString("CUST_NINAME"));
}
} catch (SQLException se) {
throw new RuntimeException("A database error occured. " + se.getMessage());
} finally {
if (rs != null) {
try {
rs.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (pstmt != null) {
try {
pstmt.close();
} catch (SQLException se) {
se.printStackTrace(System.err);
}
}
if (con != null) {
try {
con.close();
} catch (Exception e) {
e.printStackTrace(System.err);
}
}
}
return list;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] |
[
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] |
0.0
|
-1
|
The main method of the program where the execution takes place. Contains the creation of objects of the classes NumericalQuestion, BooleanQuestion, MultipleChoiseQuestion, Exam and Marker.
|
public static void main(String[] args) {
// Creation of the constructor nqMarkScheme with parameters 198 and 6 of the class NumericalQuestion.
NumericalQuestion nqMarkScheme = new NumericalQuestion(198, 6);
// Creation of the constructor bqMarkScheme with parameters true and 1 of the class BooleanQuestion.
BooleanQuestion bqMarkScheme = new BooleanQuestion(true, 1);
// Creation of the constructor mcpMarkScheme with parameters false, false, false and 3 of the class MultipleChoiceQuestion.
MultipleChoiceQuestion mcpMarkScheme = new MultipleChoiceQuestion(false, false, false, 3);
// Creation of the constructor markScheme with parameters nqMarkScheme, bqMarkScheme and mcpMarkScheme of the class Exam.
Exam markScheme = new Exam(nqMarkScheme, bqMarkScheme, mcpMarkScheme);
// Creation of the constructor nqAttempt with parameters 196 and 0 of the class NumericalQuestion.
NumericalQuestion nqAttempt = new NumericalQuestion(196, 0);
// Creation of the constructor bqAttempt with parameters true and 0 of the class BooleanQuestion.
BooleanQuestion bqAttempt = new BooleanQuestion(true, 0);
// Creation of the constructor mcpAttempt with parameters false, false, false and 0 of the class MultipleChoiceQuestion.
MultipleChoiceQuestion mcpAttempt = new MultipleChoiceQuestion(false, false, false, 0);
// Creation of the constructor examAttempt with parameters nqAttempt, bqAttept and mcpAttempt of the class Exam.
Exam examAttempt = new Exam(nqAttempt, bqAttempt, mcpAttempt);
// Creation of the object examMarker of the class Marker.
Marker examMarker = new Marker();
// Calling the method markAttempt using the object examMarker and passing examAttempt and markScheme as parameters.
examMarker.markAttempt(examAttempt, markScheme);
// Declaration and calculation of the variable mark, by adding together the mark of each of the three questions.
int mark = examAttempt.getTotalMark();
// Outputs the marks that the student has taken, out of the maximum available marks of the first question.
System.out.println("Question1: " + examMarker.getQuestion1Mark() + " out of " + nqMarkScheme.getMark());
// Outputs the marks that the student has taken, out of the maximum available marks of the second question.
System.out.println("Question2: " + examMarker.getQuestion2Mark() + " out of " + bqMarkScheme.getMark());
// Outputs the marks that the student has taken, out of the maximum available marks of the third question.
System.out.println("Question3: " + examMarker.getQuestion3Mark() + " out of " + mcpMarkScheme.getMark());
// Output the total marks the student has taken.
System.out.println("Total Mark awarded: " + mark);
// Calculates and prints the classification of the student based on their total mark.
System.out.println("Classification: " + examMarker.convertMarksToClassification(mark, 9, 7, 6));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main(){\n \n \n String question = \"There are 10 types of people in this world, those who understand binary and those who don't.\";\n String answer = \"true\";\n \n Question tfQuest = new Question (question, answer);\n tfQuest.getAnswer();\n \n }",
"public static void main(String[] args) \r\n\t{\n\t\tnew Questions(10);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tQuestion11 obj=new Question11();\n\t\tSystem.out.println(obj.practiceOne());\n\n\t}",
"public static void main(String[] args) {\n Template robert = new ConcreteAnswer(\"Robert\");\r\n robert.question();\r\n }",
"public static void main(String[] args) {\n Student student = new Student();\n Teacher teacher = new Teacher(student);\n\n teacher.askQuestion(\"1 + 1 = ?\");\n }",
"public static void main(String[] args) throws IOException {\n// new Homework01();\n new Homework02();\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Testing basic functions...\");\n\t\tQuiz q = new QuizImpl(1, \"Test quiz\");\n\t\tSystem.out.println(\"Quiz ID: \" + q.getId());\n\t\tSystem.out.println(\"Quiz name: \" + q.getTitle());\n\t\tSystem.out.println(\"Adding questions...\");\n\t\tq.addQuestions();\n\t\tSystem.out.println(\"Printing questions...\");\n\t\tq.printQuestions();\n\t}",
"public static void main(final String[] args) {\n // instantiate this Quiz\n Quiz q = new Quiz();\n // code to read the test cases input file\n Scanner s = new Scanner(System.in);\n // check if there is one more line to process\n while (s.hasNext()) {\n // read the line\n String line = s.nextLine();\n // split the line using space\n String[] tokens = line.split(\" \");\n // based on the list operation\n // invoke the\n // corresponding method\n switch (tokens[0]) {\n case \"LOAD_QUESTIONS\":\n System.out.println(\"|----------------|\");\n System.out.println(\"| Load Questions |\");\n System.out.println(\n \"|----------------|\");\n loadQuestions(s, q,\n Integer.parseInt(tokens[1]));\n break;\n case \"START_QUIZ\":\n System.out.println(\"|------------|\");\n System.out.println(\"| Start Quiz |\");\n System.out.println(\"|------------|\");\n startQuiz(s, q, Integer.parseInt(tokens[1]));\n break;\n case \"SCORE_REPORT\":\n System.out.println(\"|--------------|\");\n System.out.println(\"| Score Report |\");\n System.out.println(\"|--------------|\");\n displayScore(q);\n break;\n default:\n break;\n }\n }\n }",
"public static void main(String[] args){\r\n String[] prompts = {\"Do you want to take a survey?\",\r\n \"Do you like yes or no questions?\",\r\n \"Will you continue answering these?\",\r\n \"Are you some kind of robot?\",\r\n \"Do you have special powers?\",\r\n \"Do you use them for good or for awesome?\",\r\n \"Will you use them on me?\"};\r\n int i;\r\n for (i = 0; i <= QUESTIONS && yesNoQuestion(prompts[i]); i++); \r\n if (i < 3) System.out.println(\"You are lame.\");\r\n else System.out.println(\"You are mildly cool.\");\r\n if (i >= 4) System.out.println(\"Actually, you're a cool robot.\");\r\n if (i >= 5) System.out.println(\"...with cool powers.\");\r\n if (i >= 6) System.out.println(\"Please use your powers on me!\");\r\n if (i >= 7) System.out.println(\"Ooh, that feels good.\");\r\n }",
"public static void main(String[] args) {\n Course introProgramming = new IntroToProgrammingCourse(\"Intro to Programming\", \"330\", 2);\n Course introJava = new IntroJavaCourse(\"Intro to Java Programming\", \"331\", 3, \"Intro to Programming\");\n AdvancedJavaCourse advancedJava = new AdvancedJavaCourse(\"Advanced Java Programming\", \"332\", 4, \"Intro to Java Programming\");\n System.out.println(introProgramming.printCourse());\n System.out.println(introJava.printCourse());\n System.out.println(advancedJava.printCourse());\n }",
"public static void main(String[] args) {\n System.out.println(\"*****************************Assignment 1 ********************************\");\n Assignment1 assignment1 = new Assignment1();\n assignment1.dataTypesMethod();\n int variable5 = Assignment1.variableAssignmentMethod(6);\n System.out.println(\"Value of int variable5 in mainMethod is: \" + variable5);\n Assignment1.characterAssignment();\n\n // Assignment2 dated Oct 7 2020\n System.out.println(\"*****************************Assignment 2 Part 1********************************\");\n Assignment2 assignment2 = new Assignment2();\n assignment2.arithmeticOperators(5, 7);\n assignment2.incrementOperators(3);\n System.out.println(\"*****************************Assignment 2 Part 2********************************\");\n assignment2.table(2);\n\n // Assignment dated Oct 9 2020\n System.out.println(\"*****************************Assignment 3********************************\");\n Assignment3 assignment3 = new Assignment3();\n assignment3.arithmeticLogicalOperators(3, 4, 6);\n assignment3.bitwiseOperators();\n\n }",
"public static void main(String[] args){\n //The driver of the methods created above\n //first display homeowork header\n homeworkHeader();\n //calls driver method\n System.out.println(\"Calling driver method:\");\n driver(true);//runs choice driver\n //when prompted for a choice input 9 to see test driver\n System.out.println(\"End calling of driver method\");\n \n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello World\");\n\t\tSystem.out.println(\"Please choose a number between 1 and 5\");\n\t\tAskQuestion qa = new AskQuestion();\n\t\tint number = qa.scanInt();\n\t\tif(number < 1){\n\t\t\tSystem.out.println(\"Your chosen number is too small...\");\n\t\t}\n\t\telse if(number > 5){\n\t\t\tSystem.out.println(\"Your chosen number is too big...\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Wow, you are very good at following instructions!\");\n\t\t}\n\t}",
"public static void main()\n\t{\n\t}",
"public static void main(String[] args) {\n// new Problem_10().print();\n Problem_10.print();\n }",
"public static void main(String[] args) throws IOException {\n\n\n QuizModel quiz = new QuizModel();\n QuizView quizView = new QuizView();\n QuizController quizMasterController = new QuizController(quiz,quizView);\n //quizMasterController.viewMessage();\n //quizMasterController.getQuiz();\n //quizView.loginPage();\n quiz.generateQuestion();\n\n quiz.uploadFiles();\n QuizRepository quizRepository1 = new QuizRepository();\n quizRepository1.getQuizFile();\n }",
"public static void main(String[] args) throws SQLException {\n\t\tQuestionPaper qp1= new QuestionPaper();\n\t\t//\tSystem.out.println(\"Questions in database\"); \n\t\t//\tqp1.readDatabase();\n\t\t//\tSystem.out.println(\"********************************************************\");\n\t\t\t\t\n\t\tArrayList<String> questionSet1 = new ArrayList<String>(1);\n\t \tquestionSet1= qp1.getQuestionPaper(10);\n\t \tSystem.out.println(\"QuestionSet1\");\n\t System.out.println(questionSet1);\n\t System.out.println(\"********************************************************\");\n\t QuestionPaper qp2= new QuestionPaper();\n\t\tArrayList<ArrayList<String>> questionSet2 = new ArrayList<ArrayList<String>>(2);\n\t\tquestionSet2 = qp2.getQuestionSet(20,2);\n\t\tSystem.out.println(\"QuestionSet2\");\n\t\tfor (ArrayList<String> s:questionSet2) {\n\t\t\tSystem.out.println(s);}\n\t\tSystem.out.println(\"********************************************************\");\n\t QuestionPaper qp3= new QuestionPaper();\n\t ArrayList<ArrayList<String>> questionSet3 = new ArrayList<ArrayList<String>>(3);\n\t\tquestionSet3 = qp3.getQuestionSet(30,3);\n\t\tSystem.out.println(\"QuestionSet3\");\n\t\tfor (ArrayList<String> s:questionSet3) {\n \t \t System.out.println(s);\n\t }\n\t\n\t}",
"public static void main(String[] args) {\n\t\tnew Challenge09();\r\n\t}",
"public static void main(String[] args) {// we can create psvm method but cannot create objects in abstract class\n\t\tSchool.bonus();// as bonus method is static we can print it without create class name so we can use\n\t\t\t\t\t\t// with classname.mthdname hence it is accepted in abstract class\n\t\tSystem.out.println(\"i am from main method\");// we can write anything in main mthd it prints automatically without\n\t\t\t\t\t\t\t\t\t\t\t\t\t// creating obj\n\t}",
"public static void main(String[] arg) {\n Quiz myQuiz = new Quiz();\n }",
"public static void main(String[] args) {\n\t\t\t\t\tCAI5 app = new CAI5();\n\t\t\t app.quiz();\n\t\t\t\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tAbstractexample c =new Abstractexample();\r\n\t\tc.run();\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tnew TeacherExam();\r\n\t}",
"public static void main(String[] args) {\n\t\tQuestEx3.main(null);\r\n\t\tDefaultClassEx1.main(null);\r\n\t\t\r\n\t\t/* DefaultClassEx2는 다른 패키지에 있는 클래스인데 접근제한자가 default이 \r\n\t\t * 사용할 수 없기 때문에 에러 발생\r\n\t\t * DefaultClassEx2.main(null);\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t\t//객체만들기\r\n\t\t//Point p1; // ;으로 끝나면 객체 선언만 = 이러한 객체 쓸 겁니다.\r\n\t\tPoint p1 = new Point(); //Point()=생성자 =>new를 통해서 Point()생성\r\n\t\tp1.x1 = 10;\r\n\t\t// p1.x2 = 10; = 에러, Point클래스의 x2는 private이기 때문에 다른 클래스에서 사용 불가(나만 사용 가능) \r\n\t\tp1 = new Point(1,2);\r\n//\t\tp1 = new Point(3,4,5); 3개짜리 생성자를 만들지 않아서 실행ㄴ\r\n//\t\tp1 = new Point(1);\r\n\r\n\t}",
"public static void main() {\n \n }",
"public static void main(String[] args) {\n QAEngineer qaEngineer = new QAEngineer(\"John\", 120000, \"Some Company\", 10000);\n System.out.println(\n \"Name: \" + qaEngineer.getName() +\n \"\\nSalary: \" + qaEngineer.getSalary() +\n \"\\nCompany name: \" + qaEngineer.getCompany() +\n \"\\nSign In bonus: \" + qaEngineer.getSignInBonus()\n );\n }",
"public static void main (String[] args){\n\n System.out.println(\"*************************\");\n System.out.println(\"* CSCI 4450 Homework 3 *\");\n System.out.println(\"* Miles Ring *\");\n System.out.println(\"* *\");\n System.out.println(\"* 1. Question 2 *\");\n System.out.println(\"* 2. Question 3 *\");\n System.out.println(\"* 3. Exit *\");\n System.out.println(\"*************************\");\n\n Scanner in = new Scanner(System.in);\n\n int choice;\n while(true) {\n choice = in.nextInt();\n if(choice == 1) {\n csci4450assign3Q2 Q2 = new csci4450assign3Q2();\n break;\n }\n else if(choice == 2) {\n csci4450assign3Q3 Q3 = new csci4450assign3Q3();\n break;\n }\n else if(choice == 3){\n System.exit(0);\n }\n }\n\n\n }",
"public static void main(String[] args) {\n\t\tExam a = new Exam(); //객체 인스턴트 생성\n\t\n\t\ta.Ex1(); \t\t\t\t//부모클래스의 메소드를 활용\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\tAllMethods obj=new AllMethods();\n\t\tint large=obj.findLargest(300,500);\n\t\tSystem.out.println(large);\n\t\tboolean cond =obj.isOdd(large);\n\t\tSystem.out.println(cond);\n\t\t/*call method weekdayname\n\t\t * if(tuesday,wednesday,thusday)\n\t\t * it should print--I am learning java\n\t\t * \n\t\t */\n\t\tString Day=obj.weekDayName(6);\n\t\tif(Day.equals(\"Tuesday\")||Day.equals(\"Wednesday\")||Day.equals(\"Thusday\")||Day.equals(\"Saturday\")||Day.equals(\"Sunday\"))\n\t\t{\n\t\t\tSystem.out.println(\"We are learning Java\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"We are staying at home\");\n\t\t}\n\t\tTask obj1=new Task();\n\tint num=\tobj1.primeOrNotPrime(4);\n\tSystem.out.println(num);\n\tString email=obj1.email(\"John\", \"Mary\" ,\"@gmail.com\");\n\tSystem.out.println(email);\n\tchar grade=obj1.getGrade(95)\t;\n\tSystem.out.println(grade);\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tquestion2();\n\t//\tq2\n\t\t\n\t}",
"public static void main(String args[]) {\n\t\tCollection<Point> data = TestDataPoints.dataFromURL(\"http://www.hep.ucl.ac.uk/undergrad/3459/data/module6/module6-data.txt\");\r\n\t\t\r\n\t\t// Two new objects to be passed to the bestTheory method\r\n\t\tGoodnessOfFitCalculator gofc = new ChiSquared();\r\n\t\tArrayList<Theory> theory = new ArrayList<Theory>();\r\n\t\t\r\n\t\t// Adding each theory to a collection to be tested out\r\n\t\tSystem.out.println(\"There are three theories that will best tested:\");\r\n\t\ttheory.add(new PowerLawTheory(2));\r\n\t\tSystem.out.println(\"\\t\"+new PowerLawTheory(2));\r\n\t\ttheory.add(new PowerLawTheory(2.05));\r\n\t\tSystem.out.println(\"\\t\"+new PowerLawTheory(2));\r\n\t\ttheory.add(new QuadraticTheory(1,10,0));\r\n\t\tSystem.out.println(\"\\t\"+new QuadraticTheory(1,10,0)+\"\\n\");\r\n\t\t\r\n\t\t// Test all the theories and print out the best one to the user\r\n\t\tSystem.out.println(\"The best theory that fits the data input is: \"+bestTheory(data, theory, gofc));\r\n\t}",
"public static void main(String[] args) {\n\t\tint score = 0;\n\t\t// 2. Ask the user a question\n\t\tString input = JOptionPane.showInputDialog(null, \"What is a?: 2a-18=-4a:\");\n\t\t// 3. Use an if statement to check if their answer is correct\n\t\tif (input.equals(\"3\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You are correct, good job!\");\n\n\t\t\tscore++;\n\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"You are incorrect, sorry. But don't worry, every mistake is a learning experience!\");\n\t\t}\n\t\t// 4. if the user's answer was correct, add one to their score\n\n\t\t// 5. Create more questions by repeating steps 1, 2, and 3 below.\n\t\tString answer = JOptionPane.showInputDialog(null, \"Which side of the Roman Empire fell? A: Eastern B: Western\");\n\t\tif (answer.equals(\"B\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Congrants, you got it correct!\");\n\t\t\tscore++;\n\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Sorry, but wrong answer. Nice try though!\");\n\t\t}\n\t\tJOptionPane.showMessageDialog(null,\"You have now completed the quiz, good job!\");\n\t\t// 6. After all the questions have been asked, print the user's score\n\t\tSystem.out.println(score);\n\t}",
"public static void main(String[] args) {\n\t\tScanner k = new Scanner(System.in);\r\n\t\t\r\n\t\t//instantiate Course grades class\r\n\t\tCourseGrades c1 = new CourseGrades();\r\n\t\t\r\n\t\t//instantiate all classes for the test values\r\n\t\tGradedActivity g1 = new GradedActivity();\r\n\t\tPassFailExam p1 = new PassFailExam(50, 12, 75.0);\r\n\t\tEssay e1 = new Essay();\r\n\t\tFinalExam f1 = new FinalExam(50, 13);\r\n\t\t\r\n\t\t//setting the values that are set by using setters\r\n\t\te1.setScore(84);\r\n\t\tg1.setScore(88);\r\n\t\t\r\n\t\tc1.setLab(g1);\r\n\t\tc1.setPassFailExam(p1);\r\n\t\tc1.setEssay(e1);\r\n\t\tc1.setFinalExam(f1);\r\n\t\t\r\n\t\t//display output be calling the toString\r\n\t\tSystem.out.println(c1);\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tint score = 0;\n\t\t// 2. Ask the user a question\n\t\tString q1 = JOptionPane.showInputDialog(\"what is the square root of nine ?\");\n\t\tif (q1.equals(\"three\") || q1.equals(\"3\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"you got it right!!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"sorry you were wrong\");\n\t\t}\n\t\tString q2 = JOptionPane.showInputDialog(\"12 x 12\");\n\t\tif (q2.equals(\"144\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"you got it right!!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"sorry you were wrong\");\n\t\t}\n\t\tString q3 = JOptionPane.showInputDialog(\"what is 1+2+3+4+5+6+7+8+9+10 ?\");\n\t\tif (q3.equals(\"55\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"you got it right!!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"sorry you were wrong\");\n\t\t}\n\t\tString q4 = JOptionPane.showInputDialog(\"what is the strongest substance on earth ?\");\n\t\tif (q4.equals(\"diamond\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"you got it right!!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"sorry you were wrong\");\n\t\t}\n\t\t// 3. Use an if statement to check if their answer is correct\n\n\t\t// 4. if the user's answer is correct\n\n\t\t// -- add one to their score\n\n\t\t// 5. Create more questions by repeating steps 1, 2, and 3 below.\n\n\t\t// 6. After all the questions have been asked, print the user's score\n\t\tJOptionPane.showMessageDialog(null, \"you got \" + score + \" out of 4, great job!\");\n\t}",
"public static void main(String[] args) {\n\t\tquestion3();\n\n\t}",
"public static void main(String[] args){\n \n Scanner input=new Scanner(System.in);\n String modality,decision;\n short length=0;\n Questions thisSession=new Questions();\n System.out.println(\"\\nWelcome. This program is your personal teacher.\\nEach time you need to study for any subject, your teacher will help you.\"\n +\"\\nTo start you need to create your question set.\");\n thisSession.createQuestions(input);\n\n do{ \n modality=changeModality(input);\n switch(modality){\n \n case \"1\":\n System.out.println(\"Flaschard initializing...\");\n System.out.println(\"\\nWelcome to Flashcards!\" );\n learnWithFlaschcards(input, modality, thisSession);\n break;\n case \"2\":\n System.out.println(\"Number mania initializing...\"+\n \"\\nWelcome to Number Mania!\");\n numberManiaDifficulty(input);\n break;\n case \"3\":\n System.out.println(\"Russian roulette initializing...\"+\n \"\\nWelcome to Russian Roulette!\");\n russianRoulette(input, thisSession);\n break;\n case \"4\":\n System.out.println(\"Hangman Initializing...\"+\n \"\\nWelcome to Hangman!\");\n hangMan(input, thisSession);\n break;\n case \"5\":\n System.out.println(\"Rock, Paper, Scissor Initializing...\"+\n \"\\nWelcome to R.P.S!\");\n rPS(input, thisSession);\n break;\n case \"6\":\n thisSession.createQuestions(input);\n break;\n case \"exit\":\n System.out.println(\"Closing all current processes...\\n\"+\n \"Closing scanner...\");\n input.close();\n System.exit(400);\n break;\n default:\n System.out.println(\"Ingrese una opcion valida\");\n input.next();\n }\n }while (modality!=\"exit\");\n \n }",
"static void main(String[] args) {\n\n\n PrimeSequence primeSequence = new PrimeSequence();\n System.out.println(\"Primesequence.next: \" + primeSequence.next());\n System.out.println(\"Primesequence.next: \" + primeSequence.next());\n System.out.println(\"Primesequence.next: \" + primeSequence.next());\n\n\n SquareSequence squareSentence = new SquareSequence();\n System.out.println(\"Squaresentence.next: \" + squareSentence.next());\n System.out.println(\"Squaresentence.next: \" + squareSentence.next());\n System.out.println(\"Squaresentence.next: \" + squareSentence.next());\n }",
"public static void main(String[] args) {\n practice_1_5 p =new practice_1_5();\n // p.quickfindArr();\n // p.quickunionArr();\n p.weightedquickunionArr();\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t// Set up Scanner object\n\t\tScanner keyboard = new Scanner(System.in);\n\t\t\n\t\t// Print welcome message\n\t\tSystem.out.println(\"Welcome to JGRAM.\");\n\t\t\n\t\t// Loop until the user indicates they wish to exit\n\t\tboolean keepGoing = true;\n\t\twhile (keepGoing) {\n\t\t\n\t\t\t// Post1 Task and secret prompt\n\t\t\tSystem.out.println(\"\\n---------------------------------[ INPUT ]--\"\n\t\t\t\t\t+ \"-----------------------------------\\n\");\n\t\t\tString task = prompt(TASK_SELECTION, keyboard);\n\t\t\t\n\t\t\t// Post3 Task execution\n\t\t\tswitch (task) {\n\t\t\t\t\n\t\t\t\t// New Document\n\t\t\t\tcase \"1\":\n\t\t\t\t\tTask newDocTask = new NewDocumentTask(keyboard);\n\t\t\t\t\tnewDocTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Evaluation\n\t\t\t\tcase \"2\":\n\t\t\t\t\tString evalSecret = prompt(GET_SECRET, keyboard);\n\t\t\t\t\tSystem.out.println(SECRET_REMINDER);\n\t\t\t\t\tTask evalTask = new EvaluationTask(evalSecret, keyboard);\n\t\t\t\t\tevalTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Tamper\n\t\t\t\tcase \"3\":\n\t\t\t\t\tString tamperSecret = prompt(GET_SECRET, keyboard);\n\t\t\t\t\tSystem.out.println(SECRET_REMINDER);\n\t\t\t\t\tTask tamperTask = new TamperTask(tamperSecret, keyboard);\n\t\t\t\t\ttamperTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t// Report\n\t\t\t\tcase \"4\":\n\t\t\t\t\tTask assignmentReportTask = new AssignmentReportTask(keyboard);\n\t\t\t\t\tassignmentReportTask.performTask();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t// Help\n\t\t\t\tcase \"5\":\n\t\t\t\t\thelp();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Exit\n\t\t\t\tcase \"6\":\n\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t// Invalid selection\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Invalid selection. Please try again.\");\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t} // End switch\n\t\t\t\t\t\n\t\t\t\n\t\t} // End while\n\t\t\n\t\tkeyboard.close();\n\t\tSystem.out.println(\"Goodbye...\");\n\t}",
"public static void main(String[] args) {\n\t\tPerson person = new Person();\r\n\t\tperson.setName(\"Jon Snow\");\r\n\t\tperson.setAddress(\"Castle Black, 82\");\r\n\t\tperson.setEmail(\"[email protected]\");\r\n\t\tperson.setPhone(061666666);\r\n\t\tSystem.out.println(person);\r\n\r\n\t\t// creating a instance of Staff\r\n\t\tStaff staff = new Staff();\r\n\t\tSystem.out.println();\r\n\t\tstaff.setName(\"Ned Stark\");\r\n\t\tstaff.setTitle(\"King of North\");\r\n\t\tSystem.out.println(staff);\r\n\r\n\t\t// creating a instance of Faculty\r\n\t\tFaculty faculty = new Faculty();\r\n\t\tSystem.out.println();\r\n\t\tfaculty.setName(\"Zdravko\");\r\n\t\tfaculty.setOfficeHours(40);\r\n\t\tfaculty.setRank(\"Profesor\");\r\n\t\tSystem.out.println(faculty);\r\n\r\n\t\t// creating a instance og Employee\r\n\t\tEmployee employee = new Employee();\r\n\t\tSystem.out.println();\r\n\t\temployee.setName(\"Nedim\");\r\n\t\temployee.setOffice(\"Post Office\");\r\n\t\temployee.setSalary(2000);\r\n\t\tSystem.out.println(employee);\r\n\r\n\t\t// creating a instance of Student\r\n\t\tStudent student = new Student();\r\n\t\tSystem.out.println();\r\n\t\tstudent.setName(\"Ljubisa\");\r\n\t\tstudent.setStatus(2);\r\n\t\tSystem.out.println(student);\r\n\t}",
"public static void main(String[]args){\n\t\tQuestions.q33();\n\t}",
"public static void main(String[] args)\n {\n QuestionBank newQuiz = new QuestionBank();\n newQuiz.setQuestions();\n ArrayList<FunctionData> quizQuestions = newQuiz.getQuestions();\n\n System.out.println(\"!-Welcome to Jungian Cognitive Function Test 2017-! \\n\" +\n \"DIRECTIONS: For each question, input a number 1 - 5, where: \");\n System.out.println(\"1: This is not me at all / I cannot relate!\");\n System.out.println(\"2: This is a little like me / I can relate a little bit!\");\n System.out.println(\"3: This is somewhat me / I can relate somewhat!\");\n System.out.println(\"4: This is like me a lot / I can relate a lot!\");\n System.out.println(\"5: This is basically me IRL / I can relate A LOT!\\n\");\n\n // For each question from the bank, ask user and get their input\n //TODO: Check that user input is always an integer between 1 and 5\n Scanner reader = new Scanner(System.in);\n for(int i = 0; i < quizQuestions.size(); i++)\n {\n System.out.println(quizQuestions.get(i).question);\n int userScore = reader.nextInt();\n while(userScore < 1 || userScore > 5)\n {\n System.out.println(\"You can't read, lol. Input must be an integer between 1 and 5.\");\n userScore = reader.nextInt();\n }\n quizQuestions.get(i).score = userScore;\n }\n System.out.println(\"\\n\");\n\n // Sum up function answers and print them out to user\n newQuiz.setFunctionCount();\n newQuiz.printFunctionCount();\n\n // Pass the functions with associated counts to TypeWriter instance\n // which will calculate the type and print info related to it\n TypeWriter thisType = new TypeWriter(newQuiz.getFunctionCount());\n thisType.findDomAndAux();\n thisType.printType();\n }",
"public static void main(String[] args) {\n\t\tRandom rand = new Random();\n\t\tScanner scan = new Scanner(System.in);\n\t\tint randNum;\n\t\tString userGuess;\n\t\tString outcome;\n\t\tString goAgain;\n\t\tboolean goAgainValid=false;\n\t\tboolean quit=false;\n\t\t\n\t\ttry {\n\t\t\t// declaring the questions and answers\n\t\t\tString[] jokeQuestions = { \"Largest planet ? \", \"Worse song ever ? \", \"Capital of Peru?\", \"Roman god of War ?\" };\n\t\t\tString[] jokeAnswers = { \"Jupiter\", \"Baby\", \"Lima\", \"Mars\" };\n\t\n\t\t\tSystem.out.println(\"General knowledge quiz...\");\n\t\t\n\t\t\tdo {\n\t\t\t\t// generate random number (between 0-3)\n\t\t\t\trandNum = rand.nextInt(4);\n\t\t\t\t\n\t\t\t\t// user given random question\n\t\t\t\tSystem.out.println(\"\\nQ: \"+jokeQuestions[randNum]);\n\t\t\t\t// user responds\n\t\t\t\tSystem.out.printf(\"A: \");\n\t\t\t\tuserGuess = scan.next();\n\t\t\t\t// user answer checked against correct answer\n\t\t\t\tif (userGuess.equalsIgnoreCase(jokeAnswers[randNum])) {\n\t\t\t\t\t// correct\n\t\t\t\t\toutcome = \"Well done, your answer was correct!\";\n\t\t\t\t} else {\n\t\t\t\t\t// wrong\n\t\t\t\t\toutcome = \"Sorry, your answer was incorrect\";\n\t\t\t\t}\n\t\t\t\t// user is notified of outcome\n\t\t\t\tSystem.out.println(\"\\n\"+outcome);\n\t\t\t\t// user is prompted to continue or quit (loop until they give a valid response\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"Would you like another question? (Y or N)\");\n\t\t\t\t\tgoAgain = scan.next();\n\t\t\t\t\tif (goAgain.equalsIgnoreCase(\"y\")) {\n\t\t\t\t\t\t// repeat\n\t\t\t\t\t\tgoAgainValid=true;\n\t\t\t\t\t} else if (goAgain.equalsIgnoreCase(\"n\")) {\n\t\t\t\t\t\t// quit\n\t\t\t\t\t\tgoAgainValid=true;\n\t\t\t\t\t\tquit=true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// choose again\n\t\t\t\t\t\tSystem.out.println(\"That was an invlaid response, please respond with Y or N\");\n\t\t\t\t\t}\n\t\t\t\t} while (!goAgainValid);\n\t\t\t} while (!quit);\n\t\t} catch (Exception exception) {\n\t\t\tSystem.out.println(\"The quiz master has had a problem...\");\n\t\t} finally {\n\t\t\tSystem.out.println(\"Thanks for playing!\");\n\t\t\tscan.close();\n\t\t}\n\t}",
"public static void main() {\n }",
"public static void main( String[] args )\n {\n Person bob = new Person( \"Coach Bob\", 27, \"M\" );\n System.out.println( bob );\n\n Student lynne = new Student( \"Lynne Brooke\", 16, \"F\", \"HS95129\", 3.5 );\n System.out.println( lynne );\n\n Teacher mrJava = new Teacher( \"Duke Java\", 34, \"M\",\n \"Computer Science\", 50000 );\n System.out.println( mrJava );\n\n CollegeStudent ima = new CollegeStudent( \"Ima Frosh\", 18, \"F\",\n \"UCB123\", 4.0, 1, \"English\" );\n System.out.println( ima );\n }",
"public static void main(String[] args) {\n\t\tGeneralPractitioner gp1 = new GeneralPractitioner(\"Stefan\", 32);\n\t\tSurgron s1 = new Surgron(\"Ivana\", 38);\n\t\tgp1.doMedicine();\n\t\tgp1.makeHouseCalls();\n\t\ts1.doMedicine();\n\t\ts1.performSurgery();\n\n\t}",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tStudent diwas= new Student();\n\t\t//Putting data\n\t\tdiwas.name=\"Diwas 123\";\n\t\tdiwas.id= 1;\n\t\tdiwas.address=\"US\";\n\t\tdiwas.yearOfStudy=2;\n\t\t\n\t\tdiwas.printDetails();\n\t\tdiwas.studies();\n\t\tdiwas.giveExams();\n\t\t\n\t\t\n\t\tSystem.out.println( \"=======\");\n\t\tStudent mohhamad= new Student();\n\t\tmohhamad.name=\"Mohhamad 123\";\n\t\tmohhamad.id=2;\n\t\tmohhamad.address=\"US\";\n\t\tmohhamad.yearOfStudy=3;\n\t\t\n\t\tmohhamad.printDetails();\n\t\tmohhamad.studies();\n\t\tmohhamad.giveExams();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n test5q37 t5q37 = new test5q37();\n\n //System.out.println(\"...\");\n //InitClass obj = new InitClass;\n t5q37.InitClass(5);\n \n }",
"public static void main(String[] args) {\n\n Student alex = new Student(\"Alex\", \"Kane\", 21);\n alex.setCourse(\"Math\");\n System.out.println(alex);\n\n Student mary = new Student(\"Mary\", \"Jane\", 19);\n mary.setCourse(\"Art\");\n System.out.println(mary);\n\n /* Initialize a few teachers. Set values for wage and total hours worked. Print their first name,\n last name, age and salary that each of them earns.\n */\n Teacher john = new Teacher(\"John\", \"Tob\", 45);\n john.setDepartment(\"Computer science\");\n john.setWage(20);\n john.setTotalHoursWorked(120);\n System.out.println(john);\n\n Teacher lizy = new Teacher(\"Lizy\", \"Simpson\", 45);\n lizy.setDepartment(\"Philosophy\");\n lizy.setWage(34);\n lizy.setTotalHoursWorked(12);\n System.out.println(lizy);\n\n }",
"public static void main(String[] args) {\n\t\tQ q = new Q();\r\n\t\tnew Producer(q);\r\n\t\tnew Customer(q);\r\n\t}",
"public static void main(String[] args)\r\n\t{\r\n\t\tBook b1 = new Book(\"Simple Book\"); // instantiation of Book class. b1.\r\n\t\tScience s1 = new Science(\"Hello Physics!\", \"ScienceWorld\"); // instantiation of Science class. s1.\r\n\t\tHistory h1 = new History(\"What Is history?\", \"E.H.Carr\"); // instantiation of History class. h1\r\n\t\tHistory h2 = new History(\"The South Korea\", \"Judis\");// instantiation of History class. h2\r\n\t\t\r\n\t\tb1.showthebook(); // call to the showthebook method in the book class. b1\r\n \t\ts1.showthebook(); // call to the showthebook method in the Science class. s1\r\n\t\th1.showthebook(); // call to the showthebook method in the History class. h1\r\n\t\th2.showthebook(); // call to the showthebook method in the History class. h2\r\n\t}",
"public static void main(String[] args) {\n\n ArrayClone();\n //ArrayToString();\n //ArrayReverse();\n\n //ForToForeach();\n //SaveOurRAM();\n\n //Homework_Example_1();\n //Homework_Example_2();\n }",
"public static void main(){\n\t}",
"public static void main(String[] args) {\n\n createClass(); //ctrl+click\n printTrainers();\n printStudents();\n printGroup();\n printstudentAlfabetically();\n getNumberOfStudentsFromGroup_classicMethod();\n getAllMaxNumberOfStudentsFromGroup_classicMethod(groups);\n displayGroupWithMaxNumOfStudent_FunctionalMethod();\n displayGroupWithMinNumOfStudent_FunctionalMethod();\n studentsYoungerThan(25);\n displayStudentsYoungerThan(25);\n System.out.println(displayStudentsYoungerThan1(25));\n System.out.println(displayStudentsYoungerThan2(23));\n studentsGroupedByTrainer_WithGroups();\n\n studentsGroupedByTrainer_WithMAp(); //Functioneaza daca nu fac modificari in grupuri\n\n //-----------------------------------\n\n displayStudentsWithPreviousJavaKnowledge();\n displayStudentsWithPreviousJavaKnowledge1();\n\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge();\n\n\n removeStudentsYoungerThanFromGroups(25);\n\n printStudentsAlphabeticallyByFirstName();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge4();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge2();\n dispGroupWithMaxNumOfStudentsWithNOJavaKnowledge3();\n System.out.println(\"Triple : \" + tripleNumberOfStudentsFromMaxGroup(getAllMaxNumberOfStudentsFromGroup_classicMethod(groups)));\n System.out.println(\"cuvantul cu dimensiunea cea mai mare este : \" + getLongestString(\"Diana\", \"Liviu\", \"Leah\"));//VARARGS: nputem scrie si fara paramatrii dar nu ne afiseaza nimic\n }",
"public static void main(String[] args) {\n Part2_2 part2_2 = new Part2_2();\n part2_2.testHowMany();\n Part2_3 part_23 = new Part2_3();\n part_23.testHowManyGenes();\n Part3_1 part3_1 = new Part3_1();\n part3_1.testCgRatio();\n }",
"public static void main(String args[]) {\n\n\t\tFlowers example = new Flowers();\n\t\t\n\t\texample.model();\n\n\t\tif (example.search())\n\t\t\tSystem.out.println(\"Solution(s) found\");\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\n //1.5 Call the above instance method into the Main method and Run the programme.\n\n Program1 obj = new Program1();\n obj.m1();\n\n\n }",
"public static void main(String[] args){\n\t\treadMenu();\n\t\t//However, Greet cannot be called like that, we have to access it \n\t\t//through an object of the Methods class\n\t\t//Like the below\n\n\t\tMethods newObject = new();\n\t\tnewObject.Greet(\"David\");\n\t\t//It prints to the screen \"Hello David\"\n\n\t\t//Call the Multiply and Add methods..\n\t\tnewObject.Multiply(25, 4);\n\t\t//You should get 100 printed as result of 25 x 4\n\n\t\t//Add method....\n\t\tnewObject.Add(129, 150);\n\n\t\tpublic void Greet(){\n\t\t\tSystem.out.println(\"Hello! Welcome to Subaru.\");\n\t\t}\n\t\t//To call this method...\n\t\tGreet();\n\n\n\t\t//Let's demonstrate our Method overloading herre\n\t\t//using the same newObject created from our Methods Class...\n\n\t\tnewObject.Multiply(2,3,4); // prints 24\n\n\t\tnewObject.Add(12,34,55) // prints the result of adding the 3 numbers\n\n\t\t//If the user supplies floating point / decimal numbers..\n\t\tnewObject.Multiply(2.5, 10.5);\n\t\t//Add\n\t\tnewObject.Add(123.4949, 23333.3838);\n\n\t\t//By this Polymorphic manipulation, we have made our program \n\t\t//smarter in identifying various user-supplied inputs...\n\n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tScanner console = new Scanner(System.in); // create the console\r\n\t\tint roomNum = 0;\r\n\t\twhile (roomNum <= 0) {\r\n\t\t\tSystem.out.print(\"How many exam rooms will there be in this simulation? \"); // ask the user for the number of rooms\r\n\t\t\troomNum = console.nextInt();\r\n\t\t}\r\n\t\tPriorityQueue roomQueue = new PriorityQueue<>(); // make a queue for the available exam rooms\r\n\t\tfor (int i=0; i<roomNum; i+=1) {\r\n\t\t\tExamRoom room = new ExamRoom(); // create a room\r\n\t\t\troom.setIdent(i+1); // assign the room an identified\r\n\t\t\troomQueue.insert(room); // populate the queue with the rooms\r\n\t\t}\r\n\t\tint modeSelector = 3;\r\n\t\twhile (modeSelector != 1 && modeSelector != 2) {\r\n\t\t\tSystem.out.print(\"What kind of simulation? 1 for random, 2 for preset: \"); // ask the user what mode to run the sim in\r\n\t\t\tmodeSelector = console.nextInt();\r\n\t\t}\r\n\t\tint totalTimeHours = 0;\r\n\t\twhile (totalTimeHours <= 0) {\r\n\t\t\tSystem.out.print(\"For how many hours should the simulation run? \"); // ask the user for a number of hours\r\n\t\t\ttotalTimeHours = console.nextInt();\r\n\t\t}\r\n\t\tint totalTimeMinutes = totalTimeHours*60; // turn the hours into minutes\r\n\t\tif (modeSelector == 1) { // if uses selects random mode, call the appropriate method\r\n\t\t\trandomSim(roomQueue, totalTimeMinutes, roomNum);\r\n\t\t}\r\n\t\telse { // if uses selects test mode call the appropriate method\r\n\t\t\ttestSim(roomQueue, totalTimeMinutes, roomNum);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tString[] stereotypeBooks = {\"Critique of the Critique of Pure Reason\", \"Token Work of Fiction to Show I Can Write\", \n\t\t\t\t\"Deconstructing Everything I Find\", \"The Metaphysics of Dasein or Some Other Word I Made Up\", \n\t\t\t\t\"I Understand Existence More Than All Y'all Fools\"};\n\t\tSA0 stereotype = new SA0(\"Immanuel Locke\", 79, \"Male\", 1724, 5, 5, \"Germany\", \"Metaphysics\", stereotypeBooks);\n\t\tSystem.out.println(stereotype.defendSelf());\n\t\tSystem.out.println(stereotype.getSummary()); \n\t\t\n\t\tString[] nietzscheBooks = {\"Thus Spake Zarathustra\", \"Beyond Good and Evil\", \"The Antichrist\", \n\t\t\t\t\"Human, All Too Human\", \"The Gay Science\"};\n\t\tSA0 nietzsche = new SA0(\"Friedrich Nietzsche\", 55, \"Male\", 1844, 4, 8, \"Germany\", \"Metaphysics\", nietzscheBooks);\n\t\tSystem.out.println(nietzsche.defendSelf());\n\t\tSystem.out.println(nietzsche.getSummary()); \n\t}",
"public static void main(String []args) {\n\t\tMinion minion1 = new Minion();\n\t\tMinion minion2 = new Minion();\n\t\tMinion minion3 = new Minion();\n\t\t\n\t\t//Giving names to the minion objects\n\t\tminion1.setName(\"Kevin\");\n\t\tminion2.setName(\"Bob\");\n\t\tminion3.setName(\"Stuart\");\n\t\t\n\t\t//Giving number of eyes to each of the minion objects\n\t\tminion1.setEye(2);\n\t\tminion2.setEye(2);\n\t\tminion3.setEye(1);\n\t\t\n\t\t//Giving a String to catchPhrase for each minion object\n\t\tminion1.setCatchPhrase(\"BANANA!\");\n\t\tminion2.setCatchPhrase(\"BABOI!\");\n\t\tminion3.setCatchPhrase(\"SA LA KA!\");\n\t\t\n\t\t//Printing out minion objects' information\n\t\tSystem.out.println(\"The first minion is called \" + minion1.getName() + \", and he has \" + minion1.getEye() + \" eyes.\");\n\t\tSystem.out.println(\"The second minion is called \" + minion2.getName() + \", and he has \" + minion2.getEye() + \" eyes.\");\n\t\tSystem.out.println(\"The third minion is called \" + minion3.getName() + \", and he has \" + minion3.getEye() + \" eye.\\n\");\n\t\t\n\t\t//calling method sayCatchPhrase to print out each minion and what their catch-phrase is\n\t\tminion1.sayCatchPhrase();\n\t\tminion2.sayCatchPhrase();\n\t\tminion3.sayCatchPhrase();\n\t\t\t}",
"public static void main(String[] args) {\n\t\tdemointer d=new Exm1();\r\n\t\t//demointer d1=new Exm2();\r\n\t\t//Exm1 a=new Exm1();\r\n\t\tExample1 ex=new Example1();\r\n\t\tex.demo(d);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tint[][] a;\n\t\tint[][] b;\n\t\tint[][] q;\n\t\tint[][] answer;\n\t\ta=CreateArray();\n\t\tb=Copy(a);\n\t\tDisplayArray(a);\n\t\tSystem.out.println();\n\t\tq=Question(a);\n\t\tDisplayArray(q);\n\t\tanswer=Input();\n\t\tCheck(b,answer);\n\t}",
"public static void main(String[] args) {\n // call directly since we are in same class\n //sayHelloWorld7Times();\n // alternatively call using class name\n MethodPractice.sayHelloWorld7Times();\n\n // you can call static method of other class\n // using className.methodName(...)\n MethodIntro.sayHello();\n calculateMathProblem();\n\n }",
"public static void main(String[] args) {\n\t\tPerson p1 = new Person(\"홍길동\", \"1234-5678\");\r\n\t\tp1.eat();\r\n\t\t\r\n\t\tStudent s1 = new Student(\"이순신\",\"1234-5678\",\"전사공학자\");\r\n\t\ts1.eat();\r\n\t\ts1.study();\r\n\t\t\r\n\t\tTeacher t1 = new Teacher(\"강감찬\",\"5555-6666\",\"Java\");\r\n\t\tt1.eat();\r\n\t\tt1.teach();\r\n\t}",
"public static void main(String[] args) {\n \n /**\n * Creates scanner object.\n */\n Scanner scan = new Scanner(System.in);\n \n /**\n * Prompts for first input.\n */\n System.out.println(\"Enter your first number\");\n \n /**\n * Reads and stores user's first input.\n */\n double input1 = scan.nextDouble();\n \n /**\n * Prompts for user's second input.\n */\n System.out.println(\"Enter your second number\");\n \n /**\n * Reads and stores user's second input.\n */\n double input2 = scan.nextDouble();\n \n /**\n * Prints sum of inputs.\n */\n System.out.println(\"The sum of your numbers is: \" \n + (input1 + input2));\n \n /**\n * Prints difference of inputs.\n */\n System.out.println(\"The difference of your numbers is: \" \n + (input1 - input2));\n \n /**\n * Prints quotient of inputs.\n */\n System.out.println(\"The quotient of your numbers is: \" \n + (input1 / input2));\n \n /**\n * Prints product of inputs.\n */\n System.out.println(\"The product of your number is: \" \n + (input1 * input2));\n \n /**\n * Indicates that the program ran correctly.\n */\n System.out.println(\"Question three was called and ran sucessfully.\");\n \n /**\n * Closes Scanner.\n */\n scan.close();\n }",
"public static void main(String[] args) {\n\t\tSchool obj=new School();\r\n\t\tobj.english();\r\n\t\tobj.maths();\r\n\t\tobj.physics();\r\n\t\tobj.science();\r\n\t\tobj.social();\r\n\t\t\r\n\t}",
"public static void main(String[] args) \r\n {\r\n // TODO: Read the input from the user and call produceAnswer with an equation\r\n \tScanner in = new Scanner(System.in);\r\n \tString problem = in.nextLine();\r\n \tin.close();\r\n \tSystem.out.printf(\"Result: %s\" , produceAnswer(problem));\r\n }",
"public static void main(String[] args) {\n\t\tSentence sentence = new Sentence(\"Walter walked wearily while wondering where Wally was\");\n\t\t\n\t\t// Test out Sentence methods\n\t\tWord firstWord = sentence.getFirst();\n\t\tString firstWordString = firstWord.toString();\n\t\tSystem.out.println(\"The first word in the sentence is \\\"\" + firstWordString + \"\\\".\");\n\t\t\n\t\tWord lastWord = sentence.getLast();\n\t\tString lastWordString = lastWord.toString();\n\t\tSystem.out.println(\"The last word in the sentence is \\\"\" + lastWordString + \"\\\".\");\n\t\t\n\t\tSystem.out.println(\"The words in the sentence are \" + sentence.getSequence() + \".\");\n\t\t\n\t\t// Create new Word object\n\t\tWord word = new Word(0, \"Walter\");\n\t\t\n\t\t// Test out Word methods\n\t\tSystem.out.println(\"The first character of the word is \\\"\" + word.getFirst() + \"\\\".\");\n\t\tSystem.out.println(\"The last character of the word is \\\"\" + word.getLast() + \"\\\".\");\n\t\tSystem.out.println(\"The characters in the word are \" + word.getSequence() + \".\");\n\t\tSystem.out.println(\"The position of the character in the word is \" + word.getPosition() + \".\");\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Test Combat: \" + new Day15().problemA(COMBAT));\r\n\t\tSystem.out.println(\"Test Combat2: \" + new Day15().problemA(COMBAT2));\r\n\t\tSystem.out.println(\"Test Combat3: \" + new Day15().problemA(COMBAT3));\r\n\t\tSystem.out.println(\"Test Combat4: \" + new Day15().problemA(COMBAT4));\r\n\t\tSystem.out.println(\"Test Combat5: \" + new Day15().problemA(COMBAT5));\r\n\t\tSystem.out.println(\"Test Combat6: \" + new Day15().problemA(COMBAT6));\r\n\t\tSystem.out.println(\"A: \" + new Day15().problemA(LINES));\r\n\t\t\r\n\t\tSystem.out.println(\"B: \" + new Day15().problemB(LINES));\r\n\t}",
"private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }",
"public static void main(String[] args) {\n homework ();\n }",
"public static void main()\n {\n\n Magazine magazine1 = new Magazine (\"David Publishing\", \"Mega Magazine\", 30, \"Maria Craig\", \"22/06/2014\");\n\n System.out.println();\n magazine1.getEditor();\n magazine1.getDate();\n magazine1.getPublisher();\n magazine1.getPublicationTitle();\n magazine1.getPrice();\n // Display a blank line\n System.out.println();\n\n \n // Create an instance of Book\n \n Book Book1 = new Book (\"Beckem and windsor\", \"Remember\", 100, 2451, \"Sue bright\");\n\n Book1.getPageNumber();\n Book1.getAuthor();\n Book1.getPublisher();\n Book1.getPublicationTitle();\n Book1.getPrice(); \n }",
"public static void main(String[] args) {\n Last_coding_exercises.task17();\n\n\n }",
"public Main() {\n \n \n }",
"public void main(){\n }",
"public static void main(String[] args) {\n\t\t\n\t\tCustomerHelper customerhelp = new CustomerHelper();\n\t\tCustomer customer1 = new Customer( \"Scott\", \"Stevens\", \"7480 SW 19th St\", \"Ankeny\", \"IA\", \"50023\" ,\"5159751111\");\n\t\tcustomerhelp.insertCustomer(customer1);\n\t\t\n\t\tPetHelper pethelp = new PetHelper();\n\t\tPet pet1 = new Pet(\"Jim\", 40.0, 'Y', customer1);\n\t\tpethelp.insertPet(pet1);\n\t\t\n\t\tServicesHelper serviceshelp = new ServicesHelper();\n\t\tServices services1 = new Services(\"basic\");\n\t\t//serviceshelp.insertServices(services1);\n\t\t\n\t\tAppointmentHelper appointmenthelp = new AppointmentHelper();\n\t\t//Appointment appointment1 = new Appointment(LocalDate.of(2018, 4, 11), customer1, pet1, services1, LocalTime.of(12, 30));\n\t\t//appointmenthelp.insertAppointment(appointment1);\n\t\t\n\t}",
"public static void main(String[] args) {\r\n\r\n Clase1 n;\r\n int z = 3;\r\n int y = 7;\r\n n = new Clase1();\r\n System.out.println(\"buenas\");\r\n System.out.println(\"adio\");\r\n //primer mensaje\r\n //segundo mensaje\r\n }",
"public static void main(String[] args) {\n\t\tResults smith;\r\n\t\tsmith = new Results();\r\n\t\tsmith.Physics = 100;\r\n\t\tsmith.Chemistry = 50;\r\n\t\tsmith.Mathematics = 100;\r\n\t\tsmith.ShowResults();\r\n\t}",
"public static void main(String[] args) {\n Student a = new Student();\n a.inputInfo();\n a.showInfo();\n a.hocBong();\n\n }",
"public static void main(String[] args) {\n\t\tPhone p2 = new Telephone();\n\t\tPhone p3 = new SmartPhone();\n\t\t\n\t\tp2.turnOn();\n\t\t//p2.autoAnswering();\n\t\t\n\t\t\n\t\tp3.turnOn();\n\t\t//p3.internetSearch();\n\t\t\n\t\t//p2변수의 값을 이용하여 autoAnswering 실행\n\t\t//p3변수의 값을 이용하여 internetSearch 실행\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSmartPhone p4 = new SmartPhone();\n\t\tp4.internetSearch();\n\t\t\n\t\tTelephone t1 = (Telephone)p2;\n\t\tSmartPhone s1 = (SmartPhone)p3;\n\t\t\n\t\tt1.autoAnswering();\n\t\ts1.internetSearch();\n\t\t\n\t\tSystem.out.println(\"----------------------------\");\n\t\t((Telephone) p2).autoAnswering();\n\t\t((SmartPhone)p3).internetSearch();\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tLanguage l = new AnimalScript(\"QR\", \"Dan Le\", 1920, 1080);\r\n\t\tQR gN = new QR(l);\r\n\t\tgN.setProperties();\r\n\t\tgN.printSourceCode();\r\n\t\tint n= 4;\r\n\t\tgN.start(getDefaultMatrix(),n,null,null);\r\n\t\tSystem.out.println(l);\r\n\t}",
"public static void main(String argv[])\n {\n\t\tX3DObject exampleObject = new HelloWorldProgramOutput().getX3dModel();\n\t\t\n\t\texampleObject.handleArguments(argv);\n\t\tSystem.out.print(\"HelloWorldProgramOutput self-validation test results: \");\n\t\tString validationResults = exampleObject.validationReport();\n\t\tSystem.out.println(validationResults);\n\t}",
"public static void main( String[] args )\n {\n new Frame();\n new Program7();\n }",
"public static void main(String[] args) throws IOException {\n Module2Exercises lesson = new Module2Exercises();\n lesson.runExercises();\n }",
"public static void main(String[] args) {\n new Program();\n }",
"public static void main(String[] args) {\n\t\tFive obj=new Five();\n\t\tobj.batchalloedment();\n\t\tobj.display();\n\t\tobj.idcardgeneration();\n\t\tobj.registartion();\n\t}",
"public static void main(String[] args) {\n\r\n\t\tWord word = new Word(\"Look,\");\r\n\t\tWord word2 = new Word(\" I was \");\r\n\t\tWord word3 = new Word(\"gonna go \");\r\n\t\tWord word4 = new Word(\"easy on\");\r\n\t\tWord word5 = new Word(\" you and \");\r\n\r\n\t\tSentence sent = new Sentence();\r\n\r\n\t\tsent.add(word);\r\n\t\tsent.add(word2);\r\n\t\tsent.add(word3);\r\n\t\tsent.add(word4);\r\n\t\tsent.add(word5);\r\n\r\n\t\tSystem.out.println(\"--------------\");\r\n\r\n\t\tText text = new Text(sent.sh());\r\n//\t\t\r\n//\t\ttext.headline(\"dfgsdsd\");\r\n//\t\t\r\n//\t\ttext.add(\"efwefw\");\r\n//\t\t\r\n//\t\tSystem.out.println(text.displayAll());\r\n\r\n\t\tLogic lg = new Logic(text.getText());\r\n\r\n\t\tlg.headline(\"fdsfdf\");\r\n\t\tlg.add(\"sfasfas\");\r\n\r\n\t\tSystem.out.println(lg.displayAll());\r\n\r\n\t}",
"public static void main(String args[]) {\n//\t (new PleaseInput()).start();\n\t (new randomNum()).start();\n\t }",
"public static void main(String[] args) {\n\t\t\r\n\t\tExForMath mathobj = new ExForMath();\r\n\t\t\r\n\t\tScanner userinput=new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to Java Calculator\");\r\n\t\tSystem.out.println(\"==========================\");\r\n\t\tSystem.out.println(\"Enter first number:\");\r\n\t\t\r\n\t\tint num1=userinput.nextInt();\r\n\t\t\r\n\t\tSystem.out.println(\"Enter second number:\");\r\n\t\t\r\n\t\tint num2=userinput.nextInt();\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the operation that you want to use(+,-,x,/):\");\r\n\t\t\r\n\t\tString operation = userinput.next();\r\n\t\t\r\n\t\tif (operation.equals(\"+\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The answer is \" +mathobj.add(num1, num2));\r\n\t\t}\t\r\n\t\t\r\n\t\tif (operation.equals(\"-\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The answer is \" +mathobj.subtract(num1, num2));\r\n\t\t}\r\n\t\t\r\n\t\tif (operation.equals(\"x\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The answer is \" +mathobj.multiply(num1, num2));\r\n\t\t}\r\n\t\t\r\n\t\tif (operation.equals(\"/\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The answer is \" +mathobj.divide(num1, num2));\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args)throws IOException {\r\n\t\t\r\n\t\tExampleDemo Demo=new ExampleDemo();//taking an object\r\n\t\r\n\t\tDemo.display();\r\n\t\t\r\n\t//here it is accepting the object class \r\n\t}",
"public static void main(String[] args) {\n\t\tAbstractFactory tarrifFactory = FactoryProducer.getFactory(\"Tarrif\");\n\t\tAbstractFactory operatorFactory = FactoryProducer.getFactory(\"Operator\");\n\t\tTarrif tarrif = tarrifFactory.getMobileTarrif(\"Smart familly\");\n\t\tSystem.out.println(tarrif.toString());\n\t\tMobileOperator operator = operatorFactory.getMobileOperator(\"Life\");\n\t\tSystem.out.println(operator.toString());\n\n\t}",
"public static void main(String[] args) {\n Addition onion = new Addition(\"Onion\", 1.5);\n Addition potato = new Addition(\"Potato\", 1.5);\n Addition lettuce = new Addition(\"Lettuce\", 0.5);\n Addition ketchup = new Addition(\"Ketchup\", 0.5);\n Addition chips = new Addition(\"Ketchup\", 1.5);\n Addition drink = new Addition(\"Ketchup\", 1.5);\n\n System.out.println(\"---------------Basic------------------\");\n Basic basic = new Basic(\"Basic\", \"Sesame\", \"Beaf\", 12.00,\n onion, potato, lettuce);\n System.out.println(basic.getName() + \" with \" + basic.getBreadRoll() + \" - Total \" + basic.getTotalPrice() + \"\\n\" +\n \" Base Price \" + basic.getBasePrice() + \"$\\n\" + basic.getAdditions() + \"Additions Total \" +\n basic.getAdditionsPrice());\n\n System.out.println(\"---------------Deluxe------------------\");\n Deluxe deluxe = new Deluxe(\"Deluxe\", \"Sumac\", \"Fish\", 8.5);\n System.out.println(deluxe.getName() + \" with \" + deluxe.getBreadRoll() + \"- Total \" + deluxe.getTotalPrice() + \"\\n\" +\n \" Base Price \" + deluxe.getBasePrice() + \"$\\n\" + deluxe.getAdditions()+ \"Additions Total \" +\n deluxe.getAdditionsPrice());\n\n System.out.println(\"---------------Healthy------------------\");\n Healthy healthy = new Healthy(\"Healthy\", \"Chicken\", 10.0, lettuce, onion);\n System.out.println(healthy.getName() + \" with \" + healthy.getBreadRoll() + \"- Total \" + healthy.getTotalPrice() + \"\\n\" +\n \" Base Price \" + healthy.getBasePrice() + \"$\\n\" + healthy.getAdditions()+ \"Additions Total \" +\n healthy.getAdditionsPrice());\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// Give all details of first employee\n\t\tSystem.out.println(\"Give the information about first employee\");\n\t\tSystem.out.println(\"Name of first employee\");\n\n\t\t// Take name of first employee from user\n\t\tString name1 = sc.next();\n\n\t\tSystem.out.println(\"Department id of first employee\");\n\n\t\t// Take department id of first employee from user\n\t\tString id1 = sc.next();\n\n\t\tSystem.out.println(\"Salary of first employee\");\n\n\t\t// Take salary of first employee from user\n\t\tint salary1 = sc.nextInt();\n\n\t\t// Provide details of first employee\n\t\tEmployeeQ7 e1 = new EmployeeQ7(name1, id1, salary1);\n\n\t\t// Give all details of second employee\n\t\tSystem.out.println(\"Give the information about second employee\");\n\t\tSystem.out.println(\"Name of second employee\");\n\n\t\t// Take name of second employee from user\n\t\tString name2 = sc.next();\n\n\t\tSystem.out.println(\"Department id of second employee\");\n\n\t\t// Take department id of second employee from user\n\t\tString id2 = sc.next();\n\n\t\tSystem.out.println(\"salary of second employee\");\n\n\t\t// Take salary of second employee from user\n\t\tint salary2 = sc.nextInt();\n\n\t\t// Provide details of second employee\n\t\tEmployeeQ7 e2 = new EmployeeQ7(name2, id2, salary2);\n\n\t\t// Call compareEmployeeSalary method and provide details of both\n\t\t// employee\n\t\tcompareEmployeeSalary(e1, e2);\n\n\t}",
"public static void main(String[] args) {\n SeqRepeat sr = new SeqRepeat();\n sr.ClearRepeats();\n \n // Check 2nd task (Parameters in DistribRepeat class)\n DistribRepeat dr = new DistribRepeat();\n dr.ClearRepeats();\n \n \n // Check 3rd task (Parameters in Tree class)\n Tree tree = new Tree();\n tree.print();\n tree.printHeight();\n tree.draw();\n }",
"public static void main(String[] args) {\n\t\tList<String> femaleFirstNames = CSVReader.getFemaleFirstNames();\r\n\t\tList<String> maleFirstNames = CSVReader.getMaleFirstNames();\r\n\t\tList<String> lastNames = CSVReader.getLastNames();\r\n\r\n\t\t// Instantiating a NameService object\r\n\t\tNameService ns = new NameService(maleFirstNames, femaleFirstNames, lastNames);\r\n\r\n\t\tList<Person> persons = new ArrayList<>();\r\n\t\t// Creating 500 random persons and adding them to a list\r\n\t\tfor (int i = 0; i < 500; i++) {\r\n\t\t\tpersons.add(ns.getNewRandomPerson());\r\n\t\t}\r\n\r\n\t\tLab theLab = new Lab(persons);\r\n\r\n\t\t// Run your exercises here\r\n\t\tboolean running = true;\r\n\t\twhile (running) {\r\n\t\t\tSystem.out.println(\"\\nRun witch one?(1-11)(0-Quit)\");\r\n\t\t\tswitch (getIntFromLimit(11, 0)) {\r\n\t\t\tcase 1:\r\n\t\t\t\ttheLab.exercise1();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\ttheLab.exercise2();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\ttheLab.exercise3();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\ttheLab.exercise4();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\ttheLab.exercise5();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6:\r\n\t\t\t\ttheLab.exercise6();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 7:\r\n\t\t\t\ttheLab.exercise7();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 8:\r\n\t\t\t\ttheLab.exercise8();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 9:\r\n\t\t\t\ttheLab.exercise9();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 10:\r\n\t\t\t\ttheLab.exercise10();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 11:\r\n\t\t\t\ttheLab.exercise11();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 0:\r\n\t\t\tdefault:\r\n\t\t\t\trunning = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Goodbye!\");\r\n\t\t\r\n\t}",
"public static void main (String [] args) \r\n {\n \tWorker bob = new Worker (\"Bob\", 10000);\r\n \t\r\n \t//Create a programmer object.\r\n \tProgrammer hlavaty = new Programmer (\"Cindy\", 50000, \"Java\");\r\n \t\t\r\n \t//Create a manager object.\r\n \tManager omar = new Manager (\"Omar\", 55000);\r\n \t\r\n \tbob.work();\r\n \thlavaty.work();\r\n \tomar.work();\r\n \t\r\n \tSystem.out.println (hlavaty.getLang());\r\n \t\r\n \tbob.raiseSalary (1000);\r\n \t\r\n \tSystem.out.println (bob.toString());\r\n \t\r\n \tSystem.out.println (hlavaty.progLang);\r\n \t\r\n \thlavaty.raiseSalary (20000);\r\n \t\r\n \tomar.raiseSalary (10);\r\n \t\r\n \tSystem.out.println (hlavaty.toString());\r\n \t\r\n \tSystem.out.println (omar.toString());\r\n }",
"public Main() {\r\n\t}",
"public static void main(String[] args) {\n Q16 obj = new Q16();\n obj.main(null);\n }",
"public static void main(String[] args) {\n\t\tMagicCalculator magic = new MagicCalculator();\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Pick a number\");\n\t\tint number = Integer.parseInt(input.nextLine());\n\t\tSystem.out.println(\"Pick another number\");\n\t\tint number2 = Integer.parseInt(input.nextLine());\n\t\tinput.close();\n\t\t\n\t\t//Uses classes inherited from parent class Calculator\n\t\tmagic.Add(number, number2);\n\t\tmagic.Subtract(number, number2);\n\t\tmagic.Multiplication(number, number2);\n\t\tmagic.Division(number, number2);\n\t\t\n\t\tmagic.SquareRoot(number);\n\t\tmagic.SquareRoot(number2);\n\t\t\n\t\t//Uses its own classes\n\t\tmagic.FindSine(number, number2);\n\t\tmagic.FindCosine(number, number2);\n\t\tmagic.FindTangent(number, number2);\n\t\t\n\t\tmagic.FindFactorial(number);\n\t\t//magic.FindFactorial(number2);\n\t\t\n\t\t\n\t}"
] |
[
"0.78981817",
"0.76060915",
"0.73627406",
"0.71485806",
"0.71470344",
"0.7119921",
"0.6949311",
"0.67995435",
"0.6774204",
"0.6761438",
"0.6710403",
"0.6678542",
"0.6662429",
"0.6645657",
"0.66378784",
"0.66337514",
"0.66243064",
"0.6618124",
"0.6599645",
"0.65765965",
"0.6573829",
"0.65436584",
"0.6512248",
"0.6489871",
"0.6488762",
"0.64885974",
"0.6486961",
"0.6459138",
"0.6443669",
"0.64314365",
"0.6428729",
"0.64269984",
"0.64195997",
"0.64183533",
"0.64167076",
"0.63999104",
"0.6387031",
"0.6384607",
"0.63692695",
"0.6365926",
"0.63585955",
"0.63573885",
"0.6353296",
"0.635276",
"0.6348844",
"0.6347724",
"0.6335334",
"0.63202757",
"0.63071555",
"0.6307077",
"0.6306959",
"0.63027817",
"0.6291904",
"0.6274763",
"0.62646544",
"0.6238584",
"0.6229826",
"0.62267214",
"0.622662",
"0.6224686",
"0.619605",
"0.61875623",
"0.6187531",
"0.61853635",
"0.61853504",
"0.61823446",
"0.6180242",
"0.617669",
"0.61761",
"0.6172769",
"0.61727",
"0.6166118",
"0.61659884",
"0.61632013",
"0.6160642",
"0.61489743",
"0.6140458",
"0.61374825",
"0.61205953",
"0.6118802",
"0.6112914",
"0.6110064",
"0.61055326",
"0.61049765",
"0.6096849",
"0.60938007",
"0.6092202",
"0.60905826",
"0.6083147",
"0.6083038",
"0.6082182",
"0.6081897",
"0.6077855",
"0.60777456",
"0.60731816",
"0.60721916",
"0.6067633",
"0.60551953",
"0.6055127",
"0.6054729"
] |
0.78392905
|
1
|
TODO Autogenerated method stub
|
public static void main(String[] args) {
int[] test1 = {1};
int[] test2 = {0, 10};
int[] test3 = {1,3,6};
SolutionSmallestRange1 solutionSmallestRange1 = new SolutionSmallestRange1();
System.out.println(solutionSmallestRange1.smallestRangeI(test1, 0));
System.out.println(solutionSmallestRange1.smallestRangeI(test2, 2));
System.out.println(solutionSmallestRange1.smallestRangeI(test3, 3));
}
|
{
"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
|
Define k the number of edges per node. Default value is 10
|
public final void setK(final int k) {
if (k <= 0) {
throw new IllegalArgumentException("k must be > 0");
}
this.k = k;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getNumberOfEdges();",
"int getNumberOfEdges();",
"public int sizeAboveDepth(int k) {\n\t\t// TODO\n\t\t return sizeAboveDepth(root, k , 0);\n\t }",
"public int numEdges();",
"public void setK(int k) {\n this.k = k;\n }",
"private static int getNumTotalEdges(){\r\n\t\t//return getMutMap().keySet().size();\r\n\t\treturn numCols+1;\r\n\t}",
"public int getNumEdges();",
"private int numEdges()\r\n\t{\r\n\t return eSet.size();\r\n\t}",
"public int sizeAtDepth(int k) {\n\t\t// TODO\n\t\treturn sizeAtDepth(root, k, 0);\n\t }",
"public NearestNeighbourhood(final int k) {\n\t\tsuper();\n\t\tthis.k = k;\n\t}",
"@Override\n\tpublic int edgeSize() {\n\t\treturn numOfEdges;\n\t}",
"public MyCircularDeque(int k) {\n this.size = k;\n }",
"int getEdgeCount();",
"public static void count(Nodelink node, int k){ 1->4->3->2->5->2, x = 3\n //\n\n Nodelink after_head = new Nodelink(0);\n Nodelink after = after_head;\n\n Nodelink before_head = new Nodelink(0);\n Nodelink before = before_head;\n\n\n while(node != null){\n\n if (node.data >= 3)\n {\n after.next = node;\n after = after.next;\n }\n else\n {\n before.next = node;\n before = before.next;\n\n }\n\n node = node.next;\n\n\n\n }\n after.next = null;\n\n before.next = after_head.next;\n\n foo(before_head.next);\n\n }",
"@Override\n\tpublic int graphSize() {\n\t\treturn edges.size();\n\t}",
"@Override\n public int edgeSize() {\n return this.numOfEdges;\n }",
"public static int kthLargest(Node node, int k){\n return 0;\n }",
"public void setNumberOfVisitedNodes(int numberOfVisitedNodes) {\n NumberOfVisitedNodes = numberOfVisitedNodes;\n }",
"int getNodesCount();",
"int getNodesCount();",
"public int getNumEdges()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\treturn numEdges;\n\t}",
"public static ArrayList<HashSet<Integer>> clustersFromEdges(ArrayList<ImageSegmentNode> nodes,\n ArrayList<ImageSegmentEdge> edges,\n int k) {\n boolean[] inCluster = new boolean[nodes.size()];\n Arrays.fill(inCluster, false);\n\n ArrayList<HashSet<Integer>> clusters = Stream.generate(HashSet<Integer>::new)\n .limit(k)\n .collect(Collectors.toCollection(ArrayList::new));\n\n\n @SuppressWarnings(\"unchecked\")\n ArrayList<ImageSegmentEdge> edgeList = (ArrayList<ImageSegmentEdge>) edges.clone();\n\n int i = 0;\n for (int j = 0; j < nodes.size(); j++) {\n boolean incrementI = false;\n ArrayList<Integer> queue = new ArrayList<>();\n\n if (!inCluster[j]) {\n queue.add(j);\n incrementI = true;\n }\n\n while (!queue.isEmpty()) {\n int node = queue.remove(0);\n\n if (!inCluster[node]) {\n clusters.get(i).add(node);\n inCluster[node] = true;\n\n for (ImageSegmentEdge edgeTwo : edgeList) {\n if (edgeTwo.getA() == node && !inCluster[edgeTwo.getB()]) {\n queue.add(edgeTwo.getB());\n } else if (edgeTwo.getB() == node && !inCluster[edgeTwo.getA()]) {\n queue.add(edgeTwo.getA());\n }\n }\n }\n }\n if (incrementI) {\n i++;\n }\n }\n return clusters;\n }",
"public int getNumEdges(){\n return numEdges;\n }",
"public NumberOfNodesBasedConfig(int numberOfNodes) {\n this.numberOfNodes = numberOfNodes;\n }",
"static void all_sub_groups_of_size_k(int num_of_nodes,\r\n int k, long numOfGroups,\r\n LinkedList<Integer>[] groups)\r\n {\r\n //create array of all the nodes\r\n int arr[] = new int[num_of_nodes];\r\n for (int i = 0; i < num_of_nodes; i++){\r\n arr[i] = i;\r\n }\r\n\r\n int data[] = new int[k]; // temporary array which will hold the subgroup\r\n\r\n currNumOfGroups = 0;\r\n // Print all combination using temprary\r\n // array 'data[]'\r\n getAllGroupsOfSizeK(arr, num_of_nodes, k, 0, data, 0,\r\n numOfGroups, groups);\r\n }",
"public BasicKPartiteGraph(String name, int K) {\n\t\tsuper(name);\n\n\t\tthis.K = K;\n\t\tpartitionMap = new HashMap<NodeType,PartitionType>();\n\t}",
"public int nodeCount(){\r\n\t\treturn size;\r\n\t}",
"public static ArrayList<ImageSegmentEdge> singleLinkCluster(ArrayList<ImageSegmentEdge> edges,\n int nodes, int k) {\n Collections.sort(edges);\n int[] nodeIndexes = IntStream.range(0, nodes).toArray();\n UnionFind uf = new UnionFind(nodeIndexes);\n\n return edges.stream()\n .filter(edge -> uf.union(edge.getA(), edge.getB()))\n .limit(nodes - k)\n .collect(Collectors.toCollection(ArrayList::new));\n }",
"public Node ceil(K k){\n int ceiRank = rank(k);\n// Node res = select(ceiRank);\n// if(res.e.equals(e))\n// ceiRank = ceiRank+1;\n return select(ceiRank);\n }",
"public long getEdgeCount() { return edgeCount; }",
"@Override\n public int nodeSize() {\n return this.nodes.size();\n }",
"public void PrintKNeighbours() {\n\t\t\n\t\tLinkSample ptr = k_closest;\n\t\twhile(ptr != null) {\n\t\t\tSystem.out.print(ptr.dim_weight+\" \");\n\t\t\tptr = ptr.next_ptr;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\");\n\t}",
"static int printCount(Node root, int k) {\n\t\tHashMap<Integer, Integer> p = new HashMap<>();\n\n\t\t// Function call\n\t\tk_paths(root, k, p, 0);\n\n\t\t// Return the required answer\n\t\treturn res;\n\t}",
"public Graph(int numberOfVertices){\r\n this.numberOfVertices = numberOfVertices;\r\n this.adjacencyList = new TreeMap<>();\r\n }",
"private void increaseSize(int num) {\n int increasedSize = _edges.size() + num;\n for (int i = 0; i < _edges.size(); i++) {\n for (int j = 0; j < num; j++) {\n _edges.get(i).add(new Edge(_idIncr));\n _idIncr += 1;\n }\n }\n for (int k = 0; k < num; k += 1) {\n _edges.add(new ArrayList<Edge>());\n for (int z = 0; z < increasedSize; z++) {\n _edges.get(increasedSize - num + k).add(new Edge(_idIncr));\n _idIncr += 1;\n }\n }\n }",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"private static native long createGraphSegmentation_0(double sigma, float k, int min_size);",
"public int totalNumNodes () { throw new RuntimeException(); }",
"int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"@Override\n public int nodeCount() {\n return graphNodes.size();\n }",
"@Override\n\tpublic long numEdges() {\n\t\treturn numEdges;\n\t}",
"public int size()\n {\n return numEdges;\n }",
"public int nodeSize()\n{\n\treturn getNodes().size();\n}",
"@Override\n public int edgeCount() {\n int count = 0;\n\n for(MyNode n : graphNodes.values()){\n count += n.inDegree();\n }\n\n return count;\n }",
"public int getNetSize() {\n return graph.size();\n }",
"private void buildEdgeTable(int k, int numEachPod) {\n\t\tfor (int p = 0; p < k; p++) { // There are k pod in fat-tree topology\n\t\t\tint offset = numEachPod * p;\n\t\t\tfor (int e = 0; e < k / 2; e++) {\n\t\t\t\tint edgeSwitch = offset + k * k / 4 + e; // edgeSwitch denotes id of edge switches\n \n\t\t\t\t// create suffix table\n\t\t\t\tHashMap<Integer, Integer> suffixTable = new HashMap<>();\n\t\t\t\tfor (int suffix = 2; suffix <= k / 2 + 1; suffix++) {\n\t\t\t\t\t// add suffix 0.0.0.suffix/8 and port (e + suffix - 2) % (k / 2) for each edge switch\n\t\t\t\t\tint agg = offset + k * k / 4 + (e + suffix - 2) % (k / 2) + (k / 2);\n\t\t\t\t\tsuffixTable.put(suffix, agg);\n\t\t\t\t}\n\t\t\t\tsuffixTables.put(edgeSwitch, suffixTable);\n\t\t\t}\n\t\t}\n\t}",
"private long nodesLength(Edge[] E) {\n\t\tlong nodesLength = 0;\n\t\tfor (Edge e:E ) {\n\t\t\tif (e.getTo() > nodesLength) nodesLength = e.getTo();\n\t\t\tif (e.getFrom() > nodesLength) nodesLength = e.getFrom();\n\t\t}\n\t\tnodesLength++;\t\n\t\treturn nodesLength;\t\t\n\t}",
"public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }",
"public int getNumEdges() {\n return num_edges;\n }",
"public int getNumberOfNodesEvaluated();",
"public void printKDistantIter(Node root, int k) {\r\n if(root == null) {\r\n return;\r\n }\r\n\r\n Queue<Node> queue = new LinkedList<>();\r\n queue.add(root);\r\n while(!queue.isEmpty() && k != 0) {\r\n k--;\r\n int nodeCount = queue.size();\r\n while(nodeCount > 0) {\r\n Node top = queue.poll();\r\n\r\n if(top.left != null) {\r\n queue.add(top.left);\r\n }\r\n\r\n if(top.right != null) {\r\n queue.add(top.right);\r\n }\r\n nodeCount--;\r\n }\r\n }\r\n\r\n while(!queue.isEmpty()) {\r\n Node node = queue.poll();\r\n System.out.println(node.data);\r\n }\r\n }",
"KStack(int k, int n) {\n\t\t\t// initialize n and k and allocate memory for all arrays\n\t\t\tthis.k = k;\n\t\t\tthis.n = n;\n\t\t\tarr = new int[n];\n\t\t\ttop = new int[k];\n\t\t\tnext = new int[n];\n\n\t\t\t// initialize all stacks as empty\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\ttop[i] = -1;\n\t\t\t}\n\n\t\t\tfree = 0; // next free spot available - intially 0\n\n\t\t\tfor (int i = 0; i < n - 1; i++) {\n\t\t\t\tnext[i] = i + 1;\n\t\t\t}\n\t\t\tnext[n - 1] = -1;\n\t\t}",
"public int getKthNodeFromEnd(int k){\n // [10 -> 20 -> 30 -> 40 -> 50]\n // k = 1(50) dist = 0;\n // k = 2(40) dist = 1\n\n if(isEmpty()) throw new IllegalStateException();\n\n int distance = k - 1;\n var pointerOne = first;\n var pointerSecond = first;\n\n for(int i = 0; i < distance; i++){\n if(pointerSecond.next != null)\n pointerSecond = pointerSecond.next;\n else\n throw new IllegalArgumentException();\n }\n\n while(pointerSecond.next != null){\n pointerOne = pointerOne.next;\n pointerSecond = pointerSecond.next;\n }\n\n return pointerOne.value;\n }",
"int getNumberOfVertexes();",
"public int getKernelSize();",
"static int displayN(Node node)\r\n {\r\n return node.neighbors.size();\r\n }",
"int NoOfNodes() {\r\n return noOfNodes;\r\n }",
"public int kernelSize();",
"public int numEdges() {\r\n\t\treturn edges;\r\n\t}",
"private int kthChild(int i, int k){\n return d * i + k;\n }",
"int numEdges() {\n\t\treturn num_edges;\n\t}",
"private void testK5() {\n final PGraph bmSubgraph = testSubgraphBuilder(new BoyerMyrvoldPlanarSubgraphBuilder(),\n createK5(), 1);\n // checks if the implementation of BoyerMyrvold approach generates correct planar subgraphs.\n final PGraph lrSubgraph = testSubgraphBuilder(new LRPlanarSubgraphBuilder(), createK5(), 1);\n\n testEdgeInserter(bmSubgraph, 1);\n\n testEdgeInserter(lrSubgraph, 1);\n }",
"int getNodeCount();",
"int getNodeCount();",
"@Override\n\tpublic int nodeSize() {\n\t\treturn this.Nodes.size();\n\t}",
"int totalNumberOfNodes();",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public int edgeCount() {\n\treturn edgeList.size();\n }",
"public int getEdgeCount() {\n return edge_.size();\n }",
"public MyCircularDeque(int k) {\n elements = new int[k];\n capacitySize = k;\n }",
"@Override\r\n\tpublic int runn(int k) {\n\t\treturn 0;\r\n\t}",
"public Node() {\n neighbors = new ArrayList<>();\n sizeOfSubtree = 0;\n containedPaths = new long[k];\n startingPaths = new long[k];\n }",
"public void setNumNodes(int numNodes) {\n if (numNodes < 4) {\n throw new IllegalArgumentException(\"Number of nodes must be >= 4.\");\n }\n\n this.numNodes = numNodes;\n this.maxEdges = numNodes - 1;\n this.numIterations = 6 * numNodes * numNodes;\n this.parentMatrix = null;\n this.childMatrix = null;\n }",
"private int kthChild(int i, int k)\n {\n return d*i + k;\n }",
"public int getEdgeCount()\n\t{\n\t\treturn edgeCount;\n\t}",
"public MyCircularQueue(int k) {\n nums = new int[k + 1];\n n = k + 1;\n head = 0;\n rear = 0;\n }",
"private int createEdges() {\n\t\t// Use random numbers to generate random number of edges for each vertex\n\t\tint avgNumEdgesPerVertex = this.desiredTotalEdges / this.vertices.size();\n\t\tint countSuccessfulEdges = 0;\n\t\t// In order to determine the number of edges to create for each vertex\n\t\t// get a random number between 0 and 2 times the avgNumEdgesPerVertex\n\t\t// then add neighbors (edges are represented by the number of neighbors each\n\t\t// vertex has)\n\t\tfor (int i = 0; i < this.vertices.size(); i++) {\n\t\t\tfor (int j = 0; j <= (this.randomGen(avgNumEdgesPerVertex * 50) + 1); j++) {\n\t\t\t\t// select a random vertex from this.vertices (vertex list) and add as neighbor\n\t\t\t\t// ensure we don't add a vertex as a neighbor of itself\n\t\t\t\tint neighbor = this.randomGen(this.vertices.size());\n\t\t\t\tif (neighbor != i)\n\t\t\t\t\tif (this.vertices.get(i).addNeighbor(this.vertices.get(neighbor))) {\n\t\t\t\t\t\tthis.vertices.get(neighbor).addNeighbor(this.vertices.get(i));\n\t\t\t\t\t\tcountSuccessfulEdges++;\n\t\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn countSuccessfulEdges;\n\t}",
"public void pruneK(Integer k) {\n\n Integer sum = (Integer)root.element;\n if (largestPath(root.left, sum) >= k) {\n pruneRecur(root.left, sum, k);\n } else {\n root.left = null;\n }\n if (largestPath(root.right, sum) >= k) {\n pruneRecur(root.right, sum, k);\n } else {\n root.right = null;\n }\n }",
"public kNNNode(double[] data){\n this.data = data;\n this.id = count;\n count += 1;\n }",
"public Map<String,List<Integer>> createN_TSpecificTrainingSet(int k){\r\n\t\tMap<String,List<Integer>> n_tSpecificTrainingIndices=new HashMap<>();\r\n\t\tfor(int n=0;n<this.N;n++) {\r\n\t\t\tfor(int t=0;t<this.T;t++) {\r\n\t\t\t\tString key=Integer.toString(n)+\"_\"+Integer.toString(t);\r\n\t\t\t\tn_tSpecificTrainingIndices.put(key, FarthestPointSampler.pickKFurthestPoint(this.fullDistanceMatrixMap.get(key), k));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn n_tSpecificTrainingIndices;\r\n\t}",
"int getClusteringKeyCount();",
"@Override\n\tpublic void run() {\n\t\tMap<Integer, Integer> roots = new TreeMap<Integer, Integer>();\n\t\t\n\t\tEdge[] edges = new Edge[this.edges.length];\n\t\tint n, weight, relevantEdges, root, lowerBound = 0;\n\t\n\t\t// Sort edges by weight.\n\t\tquickSort(0, this.edges.length - 1);\n\t\n\t\t// Compute initial lower bound (best k - 1 edges).\n\t\t// Choosing the cheapest k - 1 edges is not very intelligent. There is no guarantee\n\t\t// that this subset of edges even induces a subgraph over the initial graph.\n\t\t// TODO: Find a better initial lower bound.\n\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\tlowerBound += this.edges[i].weight;\n\t\t}\n\t\n\t\t// Iterate over all nodes in the graph and run Prim's algorithm\n\t\t// until k - 1 edges are fixed.\n\t\t// As all induced subgraphs have k nodes and are connected according to Prim, they\n\t\t// are candidate solutions and thus submitted.\n\t\tfor (root = 0; root < taken.length; root++) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\n\t\t\ttaken[root] = true;\n\t\t\tn = 0;\n\t\t\tweight = 0;\n\t\t\trelevantEdges = this.edges.length;\n\n\t\t\twhile (n < solution.length) { \n\t\t\t\tfor (int i = 0; i < relevantEdges; i++) {\n\t\t\t\t\t// XOR to check if connected and no circle.\n\t\t\t\t\tif (taken[edges[i].node1] ^ taken[edges[i].node2]) {\n\t\t\t\t\t\ttaken[taken[edges[i].node1] ? edges[i].node2 : edges[i].node1] = true;\n\t\t\t\t\t\tsolution[n++] = edges[i];\n\t\t\t\t\t\tweight += edges[i].weight;\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Check for circle.\n\t\t\t\t\telse if (taken[edges[i].node1]) {\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Sum up what we've just collected and submit this\n\t\t\t// solution to the framework.\n\t\t\tHashSet<Edge> set = new HashSet<Edge>(solution.length);\n\t\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\t\tset.add(solution[i]);\n\t\t\t}\n\t\t\tsetSolution(weight, set);\n\t\t\troots.put(weight, root);\n\t\t}\n\n\t\t// Now for the real business, let's do some Branch-and-Bound. Roots of \"k Prim Spanning Trees\"\n\t\t// are enumerated by weight to increase our chances to obtain the kMST earlier.\n\t\tfor (int item : roots.values()) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\t\t\ttaken[item] = true;\n\t\t\tbranchAndBound(edges, solution.length, 0, lowerBound);\n\t\t}\n\t}",
"public GRASPPacker(Graph g, int k) throws ParallelException {\r\n _g = g;\r\n\t\t_k = k;\r\n\t\tif (_k==2) _g.makeNNbors();\r\n setup();\r\n }",
"@Override\n public int size() {\n return this.numNodes;\n }",
"public Node(final int K, final boolean root) {\r\n this.k = new Object[K-1];\r\n this.v = null;\r\n this.kcount = K-1;\r\n if (root) {\r\n this.c = new AtomicReferenceArray<Node>(K);\r\n this.c.set(0, new Node<E,V>(K, false));\r\n for (int i=1;i<K;i++) {\r\n this.c.set(i, new Node<E,V>());\r\n }\r\n } else {\r\n this.c = new AtomicReferenceArray<Node>(K);\r\n for (int i=0;i<K;i++) { // empty leaves -- prevent deletion of this\r\n this.c.set(i, new Node<E,V>());\r\n }\r\n }\r\n }",
"public static List<List<Integer>> gen_size_k_candidate(Map<List<Integer>, Float> oldCandidate, Integer k){\n\n List<List<Integer>> sizeKPlusCandidate = new ArrayList<>();\n\n // size 2 candidate\n if( k <= 1){\n List<Integer> size1Candidate = new ArrayList<>();\n for (List<Integer> size1: oldCandidate.keySet()){\n size1Candidate.addAll(size1);\n }\n // sort\n Collections.sort(size1Candidate);\n // Generate\n sizeKPlusCandidate = CombinationGenerator.findsort(size1Candidate, 2);\n\n }else {\n List<List<Integer>> oldList = new ArrayList<>();\n oldList.addAll(oldCandidate.keySet());\n\n for(int iOld = 0; iOld < oldList.size()-1; iOld ++){\n for(int jOld =iOld+1; jOld < oldList.size(); jOld++){\n // check k element of feature is the same\n List<Integer> formerList = new ArrayList<>();\n List<Integer> laterList = new ArrayList<>();\n\n for (int fl=0; fl < k-1; fl++){\n formerList.add(oldList.get(iOld).get(fl));\n laterList.add(oldList.get(jOld).get(fl));\n }\n\n if (formerList.equals(laterList)){\n\n HashSet<Integer> tempCandidate = new HashSet<>();\n\n tempCandidate.addAll(oldList.get(iOld));\n tempCandidate.addAll(oldList.get(jOld));\n\n List<Integer> tempCandidateList = new ArrayList<>();\n tempCandidateList.addAll(tempCandidate);\n\n Collections.sort(tempCandidateList);\n // Prunning\n List<List<Integer>> prunningCandidate = CombinationGenerator.findsort(tempCandidateList, k);\n\n int flag = 0;\n for(List<Integer> checkPrun: prunningCandidate){\n if(oldCandidate.containsKey(checkPrun)){\n flag++;\n }\n }\n if (flag == k+1){\n sizeKPlusCandidate.add(tempCandidateList);\n }\n }\n }\n }\n }\n return sizeKPlusCandidate;\n }",
"public int kthFromEnd(int k) {\r\n\r\n if (head == null) {\r\n return 0;\r\n }\r\n Node lead = head;\r\n while (k >= 0) {\r\n lead = lead.next;\r\n k--;\r\n }\r\n Node tail = head;\r\n while (lead != null) {\r\n lead = lead.next;\r\n tail = tail.next;\r\n }\r\n int i = tail.data;\r\n return i;\r\n }",
"protected void sink(int k) {\n\n while (2*k <= N) {\n int j = 2*k;\n\n if (j < N && less(j, j+1)) j++;\n if (!less(k, j)) break;\n exchange(k, j);\n k = j;\n }\n }",
"public LinkedListNode kth(LinkedListNode head, int k){\n\t\tif(head==null) return null;\n\t\t\n\t\tNode p1=head;\n\t\tNdde p2=head;\n\t\t\n\t\tfor(int i=0;i<k;i++){\n\t\t\tif(p2==null) return null;\n\t\t\tp2=p2.next\n\t\t}\n\t\t\n\t\tif(p2==null) return null;\n\t\t\n\t\twhile(p2.next!=null){\n\t\t\tp2=p2.next;\n\t\t\tp1=p1.next;\n\t\t}\n\t\treturn p1;\n\t}",
"int getPartitionLagsCount();",
"public static void graph(int n){\n distance = new int[n];\n for(int i=0;i<n;i++)\n distance[i]= Integer.MAX_VALUE ;\n\n adj = new HashMap<>();\n for(int i=0;i<n;i++){\n List<Edge> obj = new ArrayList<>();\n adj.put(i,obj);\n }\n }",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"double getEdgeWeight();",
"private void setListOfEdges(int numberOfVertex) {\n this.edges = new LinkedList[numberOfVertex];\n }",
"public int getNumEdges() {\n\t\treturn edges.size();\n\t}",
"Graph(int n){\r\n numberOfVertices = n;\r\n adjacentVertices = new LinkedList[numberOfVertices];\r\n for (int i = 0; i < numberOfVertices; i++){\r\n adjacentVertices[i] = new LinkedList<>();\r\n }\r\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public int numberOfNodes() {\n return numberOfNodes(root);\n }"
] |
[
"0.6346982",
"0.63394463",
"0.62901527",
"0.614555",
"0.6112451",
"0.6039652",
"0.60064805",
"0.5941596",
"0.5901663",
"0.58996886",
"0.5887579",
"0.5833311",
"0.58246046",
"0.581192",
"0.57904875",
"0.57704467",
"0.57411546",
"0.5710906",
"0.5708855",
"0.56725895",
"0.56725895",
"0.5671207",
"0.56650174",
"0.5660158",
"0.5651237",
"0.5628933",
"0.56208134",
"0.56048095",
"0.5584671",
"0.55815184",
"0.5561235",
"0.55503815",
"0.5546214",
"0.55313754",
"0.552284",
"0.5516316",
"0.5507831",
"0.55070823",
"0.5495205",
"0.5474011",
"0.5462782",
"0.54555166",
"0.54404855",
"0.54401386",
"0.543576",
"0.5428235",
"0.542279",
"0.54084396",
"0.540279",
"0.5373533",
"0.5369796",
"0.5363059",
"0.53630245",
"0.5362715",
"0.536066",
"0.5350779",
"0.5348257",
"0.5339109",
"0.5336633",
"0.5322233",
"0.5315986",
"0.53082883",
"0.5290307",
"0.5288528",
"0.5282915",
"0.5282915",
"0.5277918",
"0.5277844",
"0.5276926",
"0.5272581",
"0.52583176",
"0.52543175",
"0.52541643",
"0.5249724",
"0.5248652",
"0.52421904",
"0.523521",
"0.5230947",
"0.5230628",
"0.5224405",
"0.52170235",
"0.52110845",
"0.52088857",
"0.5205473",
"0.5184122",
"0.5179865",
"0.5174227",
"0.51729083",
"0.5157847",
"0.51506823",
"0.51481986",
"0.5135314",
"0.51344836",
"0.51330227",
"0.513113",
"0.5127815",
"0.51111317",
"0.5110282",
"0.5108994",
"0.5105231"
] |
0.5598843
|
28
|
Build the approximate graph, then use bruteforce to build the exact graph and compare the results.
|
public final void test(final List<T> nodes) {
Graph<T> approximate_graph = computeGraph(nodes);
// Use Brute force to build the exact graph
Brute brute = new Brute();
brute.setK(k);
brute.setSimilarity(similarity);
Graph<T> exact_graph = brute.computeGraph(nodes);
int correct = 0;
for (T node : nodes) {
correct += approximate_graph.getNeighbors(node)
.countCommons(exact_graph.getNeighbors(node));
}
System.out.println(
"Computed similarities: " + this.getComputedSimilarities());
double speedup_ratio
= (double) (nodes.size() * (nodes.size() - 1) / 2)
/ this.getComputedSimilarities();
System.out.println("Speedup ratio: " + speedup_ratio);
double correct_ratio = (double) correct / (nodes.size() * k);
System.out.println("Correct edges: " + correct
+ " (" + correct_ratio * 100 + "%)");
System.out.println("Quality-equivalent speedup: "
+ speedup_ratio * correct_ratio);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main(String[] args) {\n /* *************** */\n /* * QUESTION 7 * */\n /* *************** */\n /* *************** */\n\n for(double p=0; p<1; p+=0.1){\n for(double q=0; q<1; q+=0.1){\n int res_1 = 0;\n int res_2 = 0;\n for(int i=0; i<100; i++){\n Graph graph_1 = new Graph();\n graph_1.generate_full_symmetric(p, q, 100);\n //graph_2.setVertices(new ArrayList<>(graph_1.getVertices()));\n Graph graph_2 = (Graph) deepCopy(graph_1);\n res_1+=graph_1.resolve_heuristic_v1().size();\n res_2+=graph_2.resolve_heuristic_v2();\n }\n res_1/=100;\n System.out.format(\"V1 - f( %.1f ; %.1f) = %s \\n\", p, q, res_1);\n res_2/=100;\n System.out.format(\"V2 - f( %.1f ; %.1f) = %s \\n\", p, q, res_2);\n }\n }\n\n }",
"public static void main (String[] args){\n\n Graph test = new Graph(30,\"/main/graphs/test30\");\n Graph test2 = new Graph(5,\"/main/graphs/graph5\");\n Graph g1 = new Graph(30,\"/main/graphs/graph30\");\n Graph g2 = new Graph(50,\"/main/graphs/graph50\");\n Graph g3 = new Graph(55,\"/main/graphs/graph55\");\n Graph g4 = new Graph(60,\"/main/graphs/graph60\");\n Graph g5 = new Graph(65,\"/main/graphs/graph65\");\n Graph g6 = new Graph(70,\"/main/graphs/graph70\");\n Graph g7 = new Graph(75,\"/main/graphs/graph75\");\n Graph g8 = new Graph(80,\"/main/graphs/graph80\");\n Graph g9 = new Graph(85,\"/main/graphs/graph85\");\n Graph g10 = new Graph(90,\"/main/graphs/graph90\");\n Graph g11= new Graph(100,\"/main/graphs/graph100\");\n Graph g12= new Graph(200,\"/main/graphs/graph200\");\n Graph g13= new Graph(200,\"/main/graphs/graph200_2\");\n\n Algo algo = new Algo(test);\n System.out.println(\"Graphe test : \" + algo.runNtimes((int) (10*Math.pow(2,30/2))));\n\n algo = new Algo(g1);\n System.out.println(\"Graphe a 30 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,30/2))));\n\n algo = new Algo(g2);\n System.out.println(\"Graphe a 50 sommets : \" +algo.runNtimes((int) (10*Math.pow(2,50/2))));\n\n algo = new Algo(g3);\n System.out.println(\"Graphe a 55 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,55/2))));\n\n algo = new Algo(g4);\n System.out.println(\"Graphe a 60 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,60/2))));\n\n algo = new Algo(g5);\n System.out.println(\"Graphe a 65 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,65/2))));\n\n algo = new Algo(g6);\n System.out.println(\"Graphe a 70 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,70/2))));\n\n algo = new Algo(g7);\n System.out.println(\"Graphe a 75 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,75/2))));\n\n algo = new Algo(g8);\n System.out.println(\"Graphe a 80 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,80/2))));\n\n algo = new Algo(g9);\n System.out.println(\"Graphe a 85 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,85/2))));\n\n algo = new Algo(g10);\n System.out.println(\"Graphe a 90 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,90/2))));\n\n algo = new Algo(g11);\n System.out.println(\"Graphe a 100 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,100/2))));\n\n algo = new Algo(g12);\n System.out.println(\"Graphe a 200 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,200/2))));\n\n algo = new Algo(g13);\n System.out.println(\"Graphe a 200 sommets : \" + algo.runNtimes((int) (10*Math.pow(2,200/2))));\n\n }",
"@Override\n\tpublic void run() {\n\t\tMap<Integer, Integer> roots = new TreeMap<Integer, Integer>();\n\t\t\n\t\tEdge[] edges = new Edge[this.edges.length];\n\t\tint n, weight, relevantEdges, root, lowerBound = 0;\n\t\n\t\t// Sort edges by weight.\n\t\tquickSort(0, this.edges.length - 1);\n\t\n\t\t// Compute initial lower bound (best k - 1 edges).\n\t\t// Choosing the cheapest k - 1 edges is not very intelligent. There is no guarantee\n\t\t// that this subset of edges even induces a subgraph over the initial graph.\n\t\t// TODO: Find a better initial lower bound.\n\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\tlowerBound += this.edges[i].weight;\n\t\t}\n\t\n\t\t// Iterate over all nodes in the graph and run Prim's algorithm\n\t\t// until k - 1 edges are fixed.\n\t\t// As all induced subgraphs have k nodes and are connected according to Prim, they\n\t\t// are candidate solutions and thus submitted.\n\t\tfor (root = 0; root < taken.length; root++) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\n\t\t\ttaken[root] = true;\n\t\t\tn = 0;\n\t\t\tweight = 0;\n\t\t\trelevantEdges = this.edges.length;\n\n\t\t\twhile (n < solution.length) { \n\t\t\t\tfor (int i = 0; i < relevantEdges; i++) {\n\t\t\t\t\t// XOR to check if connected and no circle.\n\t\t\t\t\tif (taken[edges[i].node1] ^ taken[edges[i].node2]) {\n\t\t\t\t\t\ttaken[taken[edges[i].node1] ? edges[i].node2 : edges[i].node1] = true;\n\t\t\t\t\t\tsolution[n++] = edges[i];\n\t\t\t\t\t\tweight += edges[i].weight;\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Check for circle.\n\t\t\t\t\telse if (taken[edges[i].node1]) {\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Sum up what we've just collected and submit this\n\t\t\t// solution to the framework.\n\t\t\tHashSet<Edge> set = new HashSet<Edge>(solution.length);\n\t\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\t\tset.add(solution[i]);\n\t\t\t}\n\t\t\tsetSolution(weight, set);\n\t\t\troots.put(weight, root);\n\t\t}\n\n\t\t// Now for the real business, let's do some Branch-and-Bound. Roots of \"k Prim Spanning Trees\"\n\t\t// are enumerated by weight to increase our chances to obtain the kMST earlier.\n\t\tfor (int item : roots.values()) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\t\t\ttaken[item] = true;\n\t\t\tbranchAndBound(edges, solution.length, 0, lowerBound);\n\t\t}\n\t}",
"private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }",
"public void solve() {\n// BruteForceSolver bfs = new BruteForceSolver(pointList);\n// bfs.solve(); // prints the best polygon, its area, and time needed\n// System.out.println(\"-------------\");\n\n// StarshapedSolver ss = new StarshapedSolver(pointList);\n// foundPolygons = ss.solve();\n// System.out.println(\"-------------\");\n\n// RandomAddPointHeuristic ra = new RandomAddPointHeuristic(pointList);\n// foundPolygons = ra.solve(750);\n// System.out.println(\"-------------\");\n\n// GreedyAddPointHeuristic ga = new GreedyAddPointHeuristic(pointList,false);\n// foundPolygons = ga.solve(750);\n// System.out.println(\"-------------\");\n\n// long time = 4000;\n// GreedyAddPointHeuristic gaInit = new GreedyAddPointHeuristic(pointList,false);\n// Polygon2D initSolution = gaInit.solve(time*1/4).get(0);\n// System.out.println(initSolution.area);\n// System.out.println(initSolution);\n//\n// SimulatedAnnealing sa = new SimulatedAnnealing(pointList,initSolution,3);\n// foundPolygons.addAll(sa.solve(time-gaInit.timeInit,2,0.005,0.95));\n// System.out.println(sa.maxPolygon);\n// System.out.println(\"-------------\");\n\n// foundPolygons.addAll(findMultiplePolygonsStarshaped(8,0.6));\n\n }",
"public static void runTest() {\n Graph mnfld = new Graph();\n float destTank = 7f;\n\n // Adding Tanks\n mnfld.addPipe( new Node( 0f, 5.0f ) );\n mnfld.addPipe( new Node( 1f, 5.0f ) );\n mnfld.addPipe( new Node( 7f, 5.0f ) );\n\n // Adding Pipes\n mnfld.addPipe( new Node( 2f, 22f, 100f ) );\n mnfld.addPipe( new Node( 3f, 33f, 150f ) );\n mnfld.addPipe( new Node( 4f, 44f, 200f ) );\n mnfld.addPipe( new Node( 5f, 55f, 250f ) );\n mnfld.addPipe( new Node( 6f, 66f, 300f ) );\n mnfld.addPipe( new Node( 8f, 88f, 200f ) );\n mnfld.addPipe( new Node( 9f, 99f, 150f ) );\n mnfld.addPipe( new Node( 10f, 1010f, 150f ) );\n mnfld.addPipe( new Node( 20f, 2020f, 150f ) );\n\n // Inserting Edges to the graph\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 3f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 22f ), mnfld.getPipe( 4f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 7f ), 500f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 55f ), mnfld.getPipe( 6f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 7f ), 100f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 8f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 88f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 9f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 99f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 1010f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1010f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 20f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 2020f ), mnfld.getPipe( 3f ), 1f ) );\n\n // -- Running Dijkstra & Finding shortest Paths -- //\n// Dijkstra.findPaths( mnfld, 10, \"0.0\", destTank );\n//\n// mnfld.restoreDroppedConnections();\n//\n// System.out.println( \"\\n\\n\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( 0f ) );\n Dijkstra.mergePaths( mnfld, 1f, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n\n }",
"@Test\r\n\tpublic void test_Big_Graph() {\n\t\tweighted_graph g = new WGraph_DS();\r\n\t\tint size = 1000*1000;\r\n\t\tint ten=1;\r\n\t\tfor (int i = 0; i <size; i++) {\r\n\t\t\tg.addNode(i);\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i <size; i++) {\r\n\t\t\tint dest=i;\r\n\t\t\tg.connect(size-2, i, 0.23); \r\n\r\n\t\t\tif(i<size-1){\r\n\t\t\t\tg.connect(i,++dest,0.78);\r\n\t\t\t}\r\n\t\t\tif(i%2==0&&i<size-2) {\r\n\t\t\t\tg.connect(i,2+dest,0.94);\r\n\t\t\t}\t\r\n\r\n\t\t\tif(ten==i&&(i%2==0)) {\r\n\t\t\t\tfor (int j =0 ; j <size; j++) {\r\n\t\t\t\t\tg.connect(ten, j,0.56);\r\n\t\t\t\t\tg.connect(ten-2, j, 0.4);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\tten=ten*10;\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\r\n\r\n\t\tweighted_graph_algorithms algo = new WGraph_Algo();\r\n\t\talgo.init(g);\r\n\t\tassertTrue(algo.isConnected());\r\n\t\tassertEquals(algo.shortestPathDist(0, 999998),0.23);\r\n\t\tassertEquals(algo.shortestPathDist(0, 8),0.46);\r\n\t\tint expected2 []= {6,999998,8};\r\n\t\tint actual2 [] = new int [3];\r\n\t\tint i=0;\r\n\t\tfor(node_info n :algo.shortestPath(6, 8)) {\r\n\t\t\tactual2[i++]=n.getKey();\r\n\t\t}\r\n\t\tassertArrayEquals(expected2,actual2);\r\n\r\n\t}",
"@Test(timeout = 5000)\n public void graphTest_runtime() {\n int v=1000*50, e=v*6;\n graph g = graph_creator(v,e,1);\n // while(true) {;}\n }",
"@Test\n public void testShortestPathEstacoes() {\n completeMap = new Graph(false);\n incompleteMap = new Graph(false);\n\n completeMap.insertVertex(porto);\n Company.getParkRegistry().getParkMap().put(porto, portoL);\n completeMap.insertVertex(braga);\n Company.getParkRegistry().getParkMap().put(braga, bragaL);\n completeMap.insertVertex(vila);\n Company.getParkRegistry().getParkMap().put(vila, vilaL);\n completeMap.insertVertex(aveiro);\n Company.getParkRegistry().getParkMap().put(aveiro, aveiroL);\n completeMap.insertVertex(coimbra);\n Company.getParkRegistry().getParkMap().put(coimbra, coimbraL);\n completeMap.insertVertex(leiria);\n Company.getParkRegistry().getParkMap().put(leiria, leiriaL);\n\n completeMap.insertVertex(viseu);\n Company.getParkRegistry().getParkMap().put(viseu, viseuL);\n completeMap.insertVertex(guarda);\n Company.getParkRegistry().getParkMap().put(guarda, guardaL);\n completeMap.insertVertex(castelo);\n Company.getParkRegistry().getParkMap().put(castelo, casteloL);\n completeMap.insertVertex(lisboa);\n Company.getParkRegistry().getParkMap().put(lisboa, lisboaL);\n completeMap.insertVertex(faro);\n Company.getParkRegistry().getParkMap().put(faro, faroL);\n\n completeMap.insertEdge(porto, aveiro, c, 75);\n completeMap.insertEdge(porto, braga, c2, 60);\n completeMap.insertEdge(porto, vila, c3, 100);\n completeMap.insertEdge(viseu, guarda, c4, 75);\n completeMap.insertEdge(guarda, castelo, c5, 100);\n completeMap.insertEdge(aveiro, coimbra, c6, 60);\n completeMap.insertEdge(coimbra, lisboa, c7, 200);\n completeMap.insertEdge(coimbra, leiria, c8, 80);\n completeMap.insertEdge(aveiro, leiria, c9, 120);\n completeMap.insertEdge(leiria, lisboa, c10, 150);\n\n completeMap.insertEdge(aveiro, viseu, c11, 85);\n completeMap.insertEdge(leiria, castelo, c12, 170);\n completeMap.insertEdge(lisboa, faro, c13, 280);\n\n incompleteMap = completeMap.clone();\n\n incompleteMap.removeEdge(aveiro, viseu);\n incompleteMap.removeEdge(leiria, castelo);\n incompleteMap.removeEdge(lisboa, faro);\n\n System.out.println(\"Test of shortest path\");\n\n LinkedList<String> shortPath = new LinkedList<>();\n double lenpath = 0;\n\n Company.getParkRegistry().setGraph(completeMap);\n lenpath = GraphAlgorithms.shortestPathEnergySpent(completeMap, porto, l, shortPath);\n assertTrue(\"Length path should be 0 if vertex does not exist\", lenpath == 0);\n\n Company.getParkRegistry().setGraph(incompleteMap);\n lenpath = GraphAlgorithms.shortestPathEnergySpent(incompleteMap, porto, faro, shortPath);\n assertTrue(\"Length path should be 0 if there is no path\", lenpath == 0);\n\n Company.getParkRegistry().setGraph(completeMap);\n lenpath = GraphAlgorithms.shortestPath(completeMap, porto, porto, shortPath);\n assertTrue(\"Number of nodes should be 1 if source and vertex are the same\", lenpath == 0);\n\n Company.getParkRegistry().setGraph(incompleteMap);\n lenpath = GraphAlgorithms.shortestPath(incompleteMap, porto, lisboa, shortPath);\n assertTrue(\"Path between Porto and Lisboa should be 335 Km\", lenpath == 335);\n\n Iterator<String> it = shortPath.iterator();\n assertTrue(\"First in path should be Porto\", it.next().equals(porto));\n assertTrue(\"then Aveiro\", it.next().equals(aveiro));\n assertTrue(\"then Coimbra\", it.next().equals(coimbra));\n assertTrue(\"then Lisboa\", it.next().equals(lisboa));\n completeMap.insertEdge(porto, lisboa, c, 10);\n\n Company.getParkRegistry().setGraph(incompleteMap);\n lenpath = GraphAlgorithms.shortestPathEnergySpent(incompleteMap, braga, leiria, shortPath);\n assertEquals(\"Path between Braga and Leiria should be close to 152.89\", lenpath, 152, 1);\n\n it = shortPath.iterator();\n\n assertTrue(\"First in path should be Braga\", it.next().equals(braga));\n assertTrue(\"then Porto\", it.next().equals(porto));\n assertTrue(\"then Aveiro\", it.next().equals(aveiro));\n assertTrue(\"then Coimbra\", it.next().equals(coimbra));\n assertTrue(\"then Leiria\", it.next().equals(leiria));\n\n shortPath.clear();\n Company.getParkRegistry().setGraph(completeMap);\n lenpath = GraphAlgorithms.shortestPathEnergySpent(completeMap, porto, castelo, shortPath);\n assertEquals(\"Path between Porto and Castelo Branco should be close to 202.86\", lenpath, 202, 1);\n assertTrue(\"N. cities between Porto and Castelo Branco should be 5 \", shortPath.size() == 5);\n\n it = shortPath.iterator();\n\n assertTrue(\"First in path should be Porto\", it.next().equals(porto));\n assertTrue(\"then Aveiro\", it.next().equals(aveiro));\n assertTrue(\"then Viseu\", it.next().equals(viseu));\n assertTrue(\"then Viseu\", it.next().equals(guarda));\n assertTrue(\"then Castelo Branco\", it.next().equals(castelo));\n\n //Changing Edge: aveiro-viseu with Edge: leiria-C.Branco \n //should change shortest path between porto and castelo Branco\n completeMap.removeEdge(aveiro, viseu);\n completeMap.insertEdge(leiria, castelo, c12, 170);\n shortPath.clear();\n\n Company.getParkRegistry().setGraph(completeMap);\n lenpath = GraphAlgorithms.shortestPath(completeMap, porto, castelo, shortPath);\n assertTrue(\"Path between Porto and Castelo Branco should now be 330 Km\", lenpath == 330);\n assertTrue(\"Path between Porto and Castelo Branco should be 4 cities\", shortPath.size() == 4);\n\n }",
"public Graph calculateEnforcedGraph(Vector2 robotTarget) {\n\n Graph g = this.clone();\n // Clear enforce values of all states.\n for (State s : g.states) {\n s.enforceValue = -1;\n }\n\n List<State> targetStates = g.findStatesForRobotPosition(robotTarget);\n System.out.println(robotTarget);\n\n // Set enforce value to 0 for targetstates.\n for (State s : targetStates)\n s.enforceValue = 0;\n\n // Go from here and calculate more enforce values for 1-acceptance\n Queue<State> calcStack = new LinkedBlockingQueue<>(targetStates);\n\n while (!calcStack.isEmpty()) {\n State enfI = calcStack.poll();\n //if (enfI.equals(initialState)) continue;\n\n List<Transition> transitionsTo = g.getTransitionsTo(enfI);\n for (Transition t : transitionsTo) {\n State enfIP1 = t.from;\n if (enfIP1.isRobotState) {\n // At least one transition is enough for this\n if (enfIP1.enforceValue == -1) {\n enfIP1.enforceValue = enfI.enforceValue + 1;\n calcStack.add(enfIP1);\n }\n } else {\n List<Transition> fromTransitions = g.getTransitionsFrom(enfIP1);\n // All transitions from this eumel have to lead into a lower value enforce.\n int enforceValue = enfI.enforceValue + 1;\n boolean enforceable = true;\n for (Transition trans : fromTransitions) {\n if (trans.to.enforceValue == -1 || trans.to.enforceValue >= enforceValue)\n enforceable = false;\n }\n\n if (enforceable && enfIP1.enforceValue == -1) {\n enfIP1.enforceValue = enforceValue;\n calcStack.add(enfIP1);\n }\n }\n }\n }\n\n\n // Now let's calculate Enforce+\n boolean statesChanged = true;\n while (statesChanged) {\n statesChanged = false;\n\n for (State s : g.states.stream().filter(s -> s.enforceValue == -1).collect(Collectors.toList())) {\n // Find the states from which we can enforce a step to Enforce in 1\n if (s.isRobotState) {\n // We need at least one Transitions which leads into enforce. We will then choose the lowest of it.\n List<Transition> transitions = g.getTransitionsFrom(s);\n Optional<Transition> cheapestTransition = transitions.stream().filter(t -> t.to.enforceValue != -1).min(Comparator.comparingInt(o -> o.to.enforceValue));\n if (cheapestTransition.isPresent()) {\n // We found a way into enforce. We can now set an enforce value on this!\n System.out.println(\"Renf+\");\n statesChanged = true;\n s.enforceValue = cheapestTransition.get().to.enforceValue + 1;\n }\n } else {\n // All the transitions coming from this have to lead into enforce. Let's check.\n List<Transition> transitions = g.getTransitionsFrom(s);\n boolean leadsToEnforce = transitions.stream().noneMatch(t -> t.to.enforceValue == -1);\n if (leadsToEnforce) {\n\n Optional<Integer> newEnforce = transitions.stream().map((transition) -> transition.to.enforceValue).max(Comparator.comparingInt(o -> o));\n if(newEnforce.isPresent()) {\n s.enforceValue = newEnforce.get() + 1;\n System.out.println(\"Cenf+\");\n statesChanged = true;\n }\n }\n }\n }\n\n }\n\n // Eliminate Transitions for Buechi-Acceptance\n\n /*List<State> unreachableStates = new ArrayList<>();\n\n // Remove all states with an enforce value of -1, as the cannot be reached\n Iterator<State> it = g.states.iterator();\n while (it.hasNext()) {\n State s = it.next();\n if (s.enforceValue == -1) {\n it.remove();\n unreachableStates.add(s);\n }\n }\n\n g.transitions.removeIf(t -> unreachableStates.contains(t.from) || unreachableStates.contains(t.to));*/\n\n return g;\n }",
"public static void main(String[] args) throws Exception {\n\t\tlong startTime, stopTime;\n\t\tdouble t_searchCache, t_storeCache;\n//\t\tMap<SmallGraph, SmallGraph> cache = new HashMap<SmallGraph, SmallGraph>(); // the cache\n\t\t// the index on the ploytrees stored in the cache\n\t\tMap<Set<Pair<Integer,Integer>>, Set<SmallGraph>> cacheIndex = new HashMap<Set<Pair<Integer,Integer>>, Set<SmallGraph>>();\n\t\tMap<SmallGraph, Pair<Integer, SmallGraph>> polytree2query = new HashMap<SmallGraph, Pair<Integer, SmallGraph>>();\n\n\t\t// reading the original data graph\n\t\tGraph originalDataGraph = new Graph(args[0]);\n\t\tif(args.length == 6)\toriginalDataGraph.buildParentIndex(args[5]);\n\n\t\t// reading all popular data graphs\n\t\tFile dirG = new File(args[1]);\n\t\tif(!dirG.isDirectory())\n\t\t\tthrow new Exception(\"The specified path for the candidate data graphs is not a valid directory\");\n\t\tFile[] graphFiles = dirG.listFiles();\n\t\tint nPopularGraphs = graphFiles.length;\n\t\tGraph[] graphs = new Graph[nPopularGraphs];\n\t\tfor(int i=0; i < nPopularGraphs; i++)\n\t\t\tgraphs[i] = new Graph(graphFiles[i].getAbsolutePath());\n\t\t\n\t\t// statistical result file\n\t\tFile file = new File(args[2]);\n\t\t// if file does not exists, then create it\n\t\tif (!file.exists()) file.createNewFile();\n\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\t\t\t\n\t\tBufferedWriter bw = new BufferedWriter(fw);\t\n\n\t\tbw.write(\"queryNo\\t querySize\\t degree\\t sourceNo\\t isPolytree\\t nHitCandidates\\t t_searchCache\\t isHit\\t hitQueryNo\\t hitQuerySize\\t t_storeCache\\n\");\n\t\tStringBuilder fileContents = new StringBuilder();\n\t\t\n\t\tint nSourceOptions = nPopularGraphs + 1; // number of sources for creating query\n\t\tRandom randSource = new Random();\n\t\tint[] querySizes = {20,22,24,26,28,30,32,34,36,38}; // different available sizes for queries\n\t\tRandom randQuerySize = new Random();\n//\t\tRandom randDegree = new Random();\n\t\tRandom randCenter = new Random();\n\t\t\t\t\n\t\tint requestedQueries = Integer.parseInt(args[4]);\n\t\tfor(int queryNo=0; queryNo < requestedQueries; queryNo++) { // main loop\n\t\t\tSystem.out.print(\"Processing Q\" + queryNo + \":\\t\");\n\t\t\tSmallGraph q;\n\t\t\tint querySize = 25;\n\t\t\tint degree = 5;\n\t\t\tint sourceNo = randSource.nextInt(nSourceOptions);\n\t\t\t// q is created\n\t\t\tif(sourceNo == nSourceOptions - 1) { // from the original data graph\n\t\t\t\tboolean notFound = true;\n\t\t\t\tSmallGraph sg = null;\n\t\t\t\twhile(notFound) {\n\t\t\t\t\tquerySize = querySizes[randQuerySize.nextInt(querySizes.length)];\n\t\t\t\t\t//degree = randDegree.nextInt(querySize/DEGREE_RATIO);\n\t\t\t\t\tdegree = (int)Math.sqrt(querySize);\n\t\t\t\t\tint center = randCenter.nextInt(originalDataGraph.getNumVertices());\n\t\t\t\t\tsg = GraphUtils.subGraphBFS(originalDataGraph, center, degree, querySize);\n\t\t\t\t\tif(sg.getNumVertices() == querySize)\n\t\t\t\t\t\tnotFound = false;\n\t\t\t\t}\n\t\t\t\tq = QueryGenerator.arrangeID(sg);\n\t\t\t} else {\t// from popular data graphs\n\t\t\t\tGraph dataGraph = graphs[sourceNo];\n\t\t\t\tboolean notFound = true;\n\t\t\t\tSmallGraph sg = null;\n\t\t\t\twhile(notFound) {\n\t\t\t\t\tquerySize = querySizes[randQuerySize.nextInt(querySizes.length)];\n\t\t\t\t\tdegree = (int)Math.sqrt(querySize);\n\t\t\t\t\tif(degree == 0) continue;\n\t\t\t\t\tint center = randCenter.nextInt(dataGraph.getNumVertices());\n\t\t\t\t\tsg = GraphUtils.subGraphBFS(dataGraph, center, degree, querySize);\n\t\t\t\t\tif(sg.getNumVertices() == querySize)\n\t\t\t\t\t\tnotFound = false;\n\t\t\t\t}\n\t\t\t\tq = QueryGenerator.arrangeID(sg);\n\t\t\t} //if-else\n\t\t\t\n\t\t\tfileContents.append(queryNo + \"\\t\" + q.getNumVertices() + \"\\t\" + degree + \"\\t\" + sourceNo + \"\\t\");\n\t\t\tSystem.out.print(\"N\" + q.getNumVertices() + \"D\" + degree + \"S\" + sourceNo + \",\\t\");\n\t\t\t\n\t\t\tint queryStatus = q.isPolytree();\n\t\t\tswitch (queryStatus) {\n\t\t\t\tcase -1: System.out.println(\"The query Graph is disconnected\");\n\t\t\t\t\tfileContents.append(\"-1\\t 0\\t 0\\t 0\\t -1\\t 0\\t\");\n\t\t\t\t\tcontinue;\n\t\t\t\tcase 0: System.out.print(\"! polytree, \");\n\t\t\t\t\tfileContents.append(\"0\\t\");\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1: System.out.print(\"a polytree, \");\n\t\t\t\t\tfileContents.append(\"1\\t\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: System.out.println(\"Undefined status of the query graph\");\n\t\t\t\t\tfileContents.append(\"2\\t 0\\t 0\\t 0\\t -1\\t 0\\t\");\n\t\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// searching in the cache\n\t\t\tPair<Integer, SmallGraph> hitPair = null;\n\t\t\tstartTime = System.nanoTime();\n\t\t\tboolean notInCache = true;\n\t\t\tSet<SmallGraph> candidateMatchSet = CacheUtils.getCandidateMatchSet(q, cacheIndex);\n\t\t\tint nHitCandidates = candidateMatchSet.size();\n\t\t\tSystem.out.print(\"nHitCandidates=\" + nHitCandidates + \", \");\n\t\t\tfileContents.append(nHitCandidates + \"\\t\");\n\t\t\t\n\t\t\tfor(SmallGraph candidate : candidateMatchSet) {\n\t\t\t\tif(CacheUtils.isDualCoverMatch(q, candidate)) {\n\t\t\t\t\tnotInCache = false;\n\t\t\t\t\tSystem.out.print(\"Hit the cache!, \");\n\n\t\t\t\t\thitPair = polytree2query.get(candidate);\n\t\t\t\t\t// use the cache content to answer the query\n//\t\t\t\t\tlong bTime = System.currentTimeMillis();\n//\t\t\t\t\tSmallGraph inducedSubgraph = cache.get(candidate);\n//\t\t\t\t\tSet<Ball> tightResults_cache = TightSimulation.getTightSimulation(inducedSubgraph, queryGraph);\n//\t\t\t\t\ttightResults_cache = TightSimulation.filterMatchGraphs(tightResults_cache);\n//\t\t\t\t\tlong fTime = System.currentTimeMillis();\n//\t\t\t\t\tSystem.out.println(\"The time for tight simulation from cache: \" + (fTime - bTime) + \" ms\");\n\t\t\t\t\tbreak; // the first match would be enough \n\t\t\t\t} //if\n\t\t\t} //for\n\t\t\tstopTime = System.nanoTime();\n\t\t\tt_searchCache = (double)(stopTime - startTime) / 1000000;\n\t\t\tSystem.out.print(\"search: \" + t_searchCache + \", \");\n\t\t\tfileContents.append(t_searchCache + \"\\t\");\n\t\t\t\n\t\t\tif(! notInCache) { // found in the cache\n\t\t\t\t// hit query\n\t\t\t\tfileContents.append(\"1\\t\");\n\t\t\t\tint hitQueryNo = hitPair.getValue0();\n\t\t\t\tSmallGraph hitQuery = hitPair.getValue1();\n\t\t\t\thitQuery.print2File(args[3] + \"/Q\" + hitQueryNo + \"_N\" + hitQuery.getNumVertices() + \".txt\");\n\t\t\t\tfileContents.append(hitQueryNo + \"\\t\" + hitQuery.getNumVertices() + \"\\t\");\n\t\t\t}\n\n\t\t\tstartTime = System.nanoTime();\n\t\t\tif(notInCache) { // Not found in the cache\n\t\t\t\tSystem.out.print(\"Not the cache!, \");\n\t\t\t\tfileContents.append(\"0\\t\");\n\t\t\t\tfileContents.append(\"-1\\t-1\\t\");\n//\t\t\t\tlong bTime = System.currentTimeMillis();\n//\t\t\t\tSet<Ball> tightResults_cache = TightSimulation.getTightSimulation(dataGraph, queryGraph);\n//\t\t\t\ttightResults_cache = TightSimulation.filterMatchGraphs(tightResults_cache);\n//\t\t\t\tlong fTime = System.currentTimeMillis();\n//\t\t\t\tSystem.out.println(\"The time for tight simulation without cache: \" + (fTime - bTime) + \" ms\");\n\t\t\t\t// store in the cache\n\t\t\t\t// The polytree of the queryGraph is created\n\t\t\t\tint center = q.getSelectedCenter();\n\t\t\t\tSmallGraph polytree = GraphUtils.getPolytree(q, center);\n\t\t\t\t// The dualSimSet of the polytree is found\n\t\t\t\t// The induced subgraph of the dualSimSet is found\n\t\t\t\t// The <polytree, inducedSubgraph> is stored in the cache\n//\t\t\t\tcache.put(polytree, inducedSubgraph);\n\t\t\t\tSet<Pair<Integer, Integer>> sig = polytree.getSignature(); \n\t\t\t\tif (cacheIndex.get(sig) == null) {\n\t\t\t\t\tSet<SmallGraph> pltSet = new HashSet<SmallGraph>();\n\t\t\t\t\tpltSet.add(polytree);\n\t\t\t\t\tcacheIndex.put(sig, pltSet);\n\t\t\t\t} else\n\t\t\t\t\tcacheIndex.get(sig).add(polytree);\n\t\t\t\t\n\t\t\t\tpolytree2query.put(polytree, new Pair<Integer, SmallGraph>(queryNo, q)); // save the queries filling the cache\n\t\t\t} //if\n\t\t\tstopTime = System.nanoTime();\n\t\t\tt_storeCache = (double)(stopTime - startTime) / 1000000;\n\t\t\tSystem.out.println(\"store: \" + t_storeCache);\n\t\t\tfileContents.append(t_storeCache + \"\\n\");\t\t\t\n\t\t\t\n\t\t\tbw.write(fileContents.toString());\n\t\t\tfileContents.delete(0, fileContents.length());\n\t\t} //for\n\t\t\n\t\tbw.close();\n\t\t\n\t\tSystem.out.println(\"Number of signatures stored: \" + cacheIndex.size());\n\t\tSystem.out.println(\"Number of polytrees stored: \" + polytree2query.size());\n\t\tint maxSet = 0;\n\t\tfor(Set<SmallGraph> pt : cacheIndex.values()) {\n\t\t\tint theSize = pt.size();\n\t\t\tif(theSize > maxSet)\n\t\t\t\tmaxSet = theSize;\n\t\t} //for\n\t\tSystem.out.println(\"The maximum number of stored polytrees with the same signature: \" + maxSet);\n\t}",
"public static void main(String[] args) {\n generateAndSaveExampleGraph();\n\n\n /*\n * select graph for prepairing and handling by algorhytm\n * determine graph source from config.xml:\n * config case = ?\n * 1 - from matrix\n * 2 - from edges list\n * 3 - from xml\n * */\n //read configCase\n Integer configCase = 0;\n try {\n configCase = (Integer) XMLSerializer.read( \"config.xml\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n //determine case\n EuclidDirectedGraph graph = null;\n switch (configCase){\n case 1:\n graph = getGraphFromMatrix();\n break;\n case 2:\n graph = getGraphFromEdgesList();\n break;\n case 3:\n graph = getGraphFromXML();\n break;\n default:\n return;\n\n }\n //find all sources and sinks\n ArrayList<BoundsGraphVertex> sources = new ArrayList<>();\n ArrayList<BoundsGraphVertex> sinks = new ArrayList<>();\n //get all sources and sinks\n for (Map.Entry<BoundsGraphVertex, Map<BoundsGraphVertex, Double>> vertexEntry : graph.getMap().entrySet()) {\n //if there are no edges from vertex then its sink\n if (vertexEntry.getValue().isEmpty()) {\n sinks.add(vertexEntry.getKey());\n } else {\n //mark all vertexes which have incoming edges\n for (BoundsGraphVertex dest : vertexEntry.getValue().keySet()) {\n dest.setMarked(true);\n }\n }\n }\n //all unmarked vertexes are sources\n for (BoundsGraphVertex vertex : graph) {\n if (!vertex.isMarked()) sources.add(vertex);\n }\n\n /*\n * First algorithm: for each source-sink pair get path using euclid heuristics\n * */\n List<BoundsGraphVertex> minPath = null;\n Double minLength = Double.MAX_VALUE;\n for (BoundsGraphVertex source :\n sources) {\n for (BoundsGraphVertex sink :\n sinks) {\n //need use path storage list because algorhytm returns only double val of length.\n //path will be saved in this storage.\n List<BoundsGraphVertex> pathStorage = new ArrayList<>();\n //do algo\n Double length = Algorithms.shortestEuclidDijkstraFibonacciPathWithHeuristics(graph, source, sink, pathStorage, minLength);\n //check min\n if (minLength > length) {\n minLength = length;\n minPath = pathStorage;\n }\n\n }\n }\n\n /*\n * Second algorithm: for each source get better sink\n * */\n minPath = null;\n minLength = Double.MAX_VALUE;\n for (BoundsGraphVertex source :\n sources) {\n //need use path storage list because algorhytm returns only double val of length.\n //path will be saved in this storage.\n List<BoundsGraphVertex> pathStorage = new ArrayList<>();\n //do algo\n Double length = Algorithms.shortestEuclidDijkstraFibonacciPathToManySinks(graph, source, sinks, pathStorage, minLength);\n //check min\n if (minLength > length) {\n minLength = length;\n minPath = pathStorage;\n }\n }\n try {\n XMLSerializer.write(minPath, \"output.xml\", false);\n XMLSerializer.write(minLength, \"output.xml\", true);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }",
"@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}",
"private void testBuildGraph() {\n\t\t// All test graphs have a node 8 with children [9, 10]\n\t\tSet<Node> expectedChildren = new HashSet<>();\n\t\texpectedChildren.add(new Node(9));\n\t\texpectedChildren.add(new Node(10));\n\n\t\tStudySetGraph disconnectedGraphWithoutCycle = new StudySetGraph(Edges.disconnectedGraphWithoutCycle);\n\t\tNode node = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph disconnectedGraphWithCycle = new StudySetGraph(Edges.disconnectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t\t\n\t\tStudySetGraph connectedGraphWithCycle = new StudySetGraph(Edges.connectedGraphWithCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\n\t\tStudySetGraph connectedGraphWithoutCycle = new StudySetGraph(Edges.connectedGraphWithoutCycle);\n\t\tnode = disconnectedGraphWithoutCycle.getNode(8);\n\t\tassert node != null;\n\t\tassert node.getChildren().equals(expectedChildren);\n\t}",
"@Test\n\tpublic void testGA() {\n\t\tGenetic ga = new Genetic(100, 500, 10, SelectionType.TOURNAMENT , 0.6, 0.1);\n\t\tOptimumSolution os = ga.run();\n\t\tSystem.out.println(os.getSolution());\n\t}",
"private void computeSat(){\n addVertexVisitConstraint();\n //add clause for each vertex must be visited only once/ all vertices must be on path\n addVertexPositionConstraint();\n //add clause for every edge in graph to satisfy constraint of vertices not belonging to edge not part of successive positions\n addVertexNonEdgeConstraint();\n }",
"public static void main(String[] args) {\n\n Graph myGraph = new Graph();\n myGraph.addNode(\"8\");\n myGraph.addNode(\"1\");\n myGraph.addNode(\"2\");\n myGraph.addNode(\"9\");\n myGraph.addNode(\"7\");\n myGraph.addNode(\"5\");\n myGraph.addEdge(\"8\" , \"1\" , 50);\n myGraph.addEdge(\"5\" , \"1\" , 70);\n myGraph.addEdge(\"7\" , \"5\", 20);\n myGraph.addEdge(\"8\" , \"9\", 100);\n myGraph.addEdge(\"8\" , \"2\", 40);\n String[] trip = {\"8\" , \"1\" , \"5\"};\n String[] trip2 = {\"8\" , \"5\"};\n String[] trip3 = {\"8\" , \"1\" , \"5\" , \"7\" , \"5\" , \"1\" , \"8\" , \"9\"};\n String[] trip4 = {\"8\" , \"9\" , \"5\" };\n String[] trip5 = {\"8\"};\n String[] trip6 = {\"8\" , \"2\"};\n// System.out.println(myGraph);\n// System.out.println(myGraph.getNodes());\n// System.out.println(myGraph.getNeighbors(\"8\"));\n// System.out.println(myGraph.getNeighbors(\"7\"));\n// System.out.println(myGraph.getNeighbors(\"5\"));\n// System.out.println(myGraph.size());\n// System.out.println(myGraph.breadthFirst(\"8\"));\n// System.out.println(myGraph.weightList);\n// System.out.println(myGraph.breadthFirst(\"7\"));\n// System.out.println(myGraph.breadthFirst(\"5\"));\n// System.out.println(myGraph.businessTrip(\"8\",trip));\n// System.out.println(myGraph.businessTrip(\"8\",trip2));\n// System.out.println(myGraph.businessTrip(\"8\",trip3));\n// System.out.println(myGraph.businessTrip(\"8\",trip4));\n// System.out.println(myGraph.businessTrip(\"8\",trip5));\n// System.out.println(myGraph.businessTrip(\"8\",trip6));\n System.out.println(myGraph.depthFirst(\"8\"));\n }",
"@Test\n public void testApproximation() {\n int N = 100;\n Mesh mesh = new Mesh(equation.t0, equation.tN, N);\n Noise noise = new Noise(mesh, 10);\n\n // We will use SDG method to approximate with a polynomial degree of p = 4.\n int p = 4;\n SDG sdg = new SDG();\n ApproxGlobal approxGlobal = sdg.Solve(equation, noise, mesh, p);\n\n // For every element, we check that the approximation at the endpoint is within 10e-10\n // of the analytical solution.\n for(int i = 0; i < approxGlobal.localApproximations.length; i++){\n ApproxLocal local = approxGlobal.localApproximations[i];\n\n double totalNoise = noise.sumUntil(i);\n double t = mesh.elements[i].upperEndpoint;\n\n double expected = this.equation.exactSolution(t, totalNoise);\n double actual = local.terminal();\n\n assertEquals(expected, actual, 10e-10);\n }\n }",
"public static void main(String[] args) {\n Graph graph = new Graph();\n graph.addEdge(0, 1);\n graph.addEdge(0, 4);\n\n graph.addEdge(1,0);\n graph.addEdge(1,5);\n graph.addEdge(1,2);\n graph.addEdge(2,1);\n graph.addEdge(2,6);\n graph.addEdge(2,3);\n\n graph.addEdge(3,2);\n graph.addEdge(3,7);\n\n graph.addEdge(7,3);\n graph.addEdge(7,6);\n graph.addEdge(7,11);\n\n graph.addEdge(5,1);\n graph.addEdge(5,9);\n graph.addEdge(5,6);\n graph.addEdge(5,4);\n\n graph.addEdge(9,8);\n graph.addEdge(9,5);\n graph.addEdge(9,13);\n graph.addEdge(9,10);\n\n graph.addEdge(13,17);\n graph.addEdge(13,14);\n graph.addEdge(13,9);\n graph.addEdge(13,12);\n\n graph.addEdge(4,0);\n graph.addEdge(4,5);\n graph.addEdge(4,8);\n graph.addEdge(8,4);\n graph.addEdge(8,12);\n graph.addEdge(8,9);\n graph.addEdge(12,8);\n graph.addEdge(12,16);\n graph.addEdge(12,13);\n graph.addEdge(16,12);\n graph.addEdge(16,17);\n graph.addEdge(17,13);\n graph.addEdge(17,16);\n graph.addEdge(17,18);\n\n graph.addEdge(18,17);\n graph.addEdge(18,14);\n graph.addEdge(18,19);\n\n graph.addEdge(19,18);\n graph.addEdge(19,15);\n LinkedList<Integer> visited = new LinkedList();\n List<ArrayList<Integer>> paths = new ArrayList<ArrayList<Integer>>();\n int currentNode = START;\n visited.add(START);\n new searchEasy().findAllPaths(graph, visited, paths, currentNode);\n for(ArrayList<Integer> path : paths){\n for (Integer node : path) {\n System.out.print(node);\n System.out.print(\" \");\n }\n System.out.println();\n }\n }",
"public static void main(String[] args) {\n System.out.println(\"Running graphTest ...\");\n graphTest();\n\n // Then run 100 randomlyAddUntilReachable() tests and print the individual and average results\n int numTests = 100;\n int[] results = new int[numTests];\n for (int i = 0; i < numTests; i++)\n results[i] = randomlyAddUntilReachable();\n System.out.print(\"Test results: \");\n for (int i = 0; i < numTests; i++)\n System.out.print(results[i] + \" \");\n System.out.println();\n int total = 0;\n for (int i = 0; i < numTests; i++)\n total += results[i];\n System.out.println(\"Average: \" + total / (double) numTests);\n\n }",
"@Test\n public void testBuildGraph_FactorArr_booleanArrArr() {\n\n char[][] adjacency = new char[][]{\n {0, 0, 0, 0, 0, 0, 0, 1, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 1, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 1, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 1, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 1, 0, 0, 0},\n {1, 0, 0, 0, 0, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 1, 0, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 1, 0, 0, 0, 0},\n {0, 0, 0, 0, 0, 0, 0, 0, 1, 0},\n };\n\n CostFunction[][] factors = new CostFunction[][]{\n {factory.buildCostFunction( new Variable[]{v[0],v[7]}, 0 )},\n {},\n {factory.buildCostFunction( new Variable[]{v[1],v[2]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[2],v[3]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[3],v[4]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[1],v[3],v[4]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[1],v[5]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[2],v[6]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[1],v[6],v[7]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[6]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[3],v[7]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[4],v[8]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[5],v[8]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[8]}, 0 )},\n {factory.buildCostFunction( new Variable[]{v[2],v[5],v[9]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[5],v[6],v[9]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[4],v[7],v[9]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[8],v[9]}, 0 )},\n };\n\n GdlFactory gf = new GdlFactory();\n UPGraph result = JunctionTreeAlgo.buildGraph(gf, factors, adjacency);\n //System.out.println(result);\n }",
"public static void other() {\n // This is how to generate test data for the grid. (Use the VisibilityGraph algorithm to generate optimal path lengths)\n// ArrayList<Point> points = ReachableNodes.computeReachable(gridGraph, 5, 5);\n// System.out.println(points.size());\n//\n// generateRandomTestDataAndPrint(gridGraph);\n\n //This is how to conduct a running time / path length test for tha algorithm:\n// TestResult test1 = testAlgorithm(gridGraph, sx, sy, ex, ey, 1, 1);\n// System.out.println(test1);\n// TestResult test2 = testAlgorithm(gridGraph, sx, sy, ex, ey, 30, 25);\n// System.out.println(test2);\n }",
"public List<Graph> search() {\n\n long start = System.currentTimeMillis();\n TetradLogger.getInstance().log(\"info\", \"Starting ION Search.\");\n logGraphs(\"\\nInitial Pags: \", this.input);\n TetradLogger.getInstance().log(\"info\", \"Transfering local information.\");\n long steps = System.currentTimeMillis();\n\n /*\n * Step 1 - Create the empty graph\n */\n List<Node> varNodes = new ArrayList<>();\n for (String varName : variables) {\n varNodes.add(new GraphNode(varName));\n }\n Graph graph = new EdgeListGraph(varNodes);\n\n /*\n * Step 2 - Transfer local information from the PAGs (adjacencies\n * and edge orientations)\n */\n // transfers edges from each graph and finds definite noncolliders\n transferLocal(graph);\n // adds edges for variables never jointly measured\n for (NodePair pair : nonIntersection(graph)) {\n graph.addEdge(new Edge(pair.getFirst(), pair.getSecond(), Endpoint.CIRCLE, Endpoint.CIRCLE));\n }\n TetradLogger.getInstance().log(\"info\", \"Steps 1-2: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n System.out.println(\"step2\");\n System.out.println(graph);\n\n /*\n * Step 3\n *\n * Branch and prune step that blocks problematic undirectedPaths, possibly d-connecting undirectedPaths\n */\n steps = System.currentTimeMillis();\n Queue<Graph> searchPags = new LinkedList<>();\n // place graph constructed in step 2 into the queue\n searchPags.offer(graph);\n // get d-separations and d-connections\n List<Set<IonIndependenceFacts>> sepAndAssoc = findSepAndAssoc(graph);\n this.separations = sepAndAssoc.get(0);\n this.associations = sepAndAssoc.get(1);\n Map<Collection<Node>, List<PossibleDConnectingPath>> paths;\n// Queue<Graph> step3PagsSet = new LinkedList<Graph>();\n HashSet<Graph> step3PagsSet = new HashSet<>();\n Set<Graph> reject = new HashSet<>();\n // if no d-separations, nothing left to search\n if (separations.isEmpty()) {\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(graph);\n step3PagsSet.add(graph);\n }\n // sets length to iterate once if search over path lengths not enabled, otherwise set to 2\n int numNodes = graph.getNumNodes();\n int pl = numNodes - 1;\n if (pathLengthSearch) {\n pl = 2;\n }\n // iterates over path length, then adjacencies\n for (int l = pl; l < numNodes; l++) {\n if (pathLengthSearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path lengths: \" + l + \" of \" + (numNodes - 1));\n }\n int seps = separations.size();\n int currentSep = 1;\n int numAdjacencies = separations.size();\n for (IonIndependenceFacts fact : separations) {\n if (adjacencySearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path nonadjacencies: \" + currentSep + \" of \" + numAdjacencies);\n }\n seps--;\n // uses two queues to keep up with which PAGs are being iterated and which have been\n // accepted to be iterated over in the next iteration of the above for loop\n searchPags.addAll(step3PagsSet);\n recGraphs.add(searchPags.size());\n step3PagsSet.clear();\n while (!searchPags.isEmpty()) {\n System.out.println(\"ION Step 3 size: \" + searchPags.size());\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n // deques first PAG from searchPags\n Graph pag = searchPags.poll();\n // Part 3.a - finds possibly d-connecting undirectedPaths between each pair of nodes\n // known to be d-separated\n List<PossibleDConnectingPath> dConnections = new ArrayList<>();\n // checks to see if looping over adjacencies\n if (adjacencySearch) {\n for (Collection<Node> conditions : fact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, fact.getX(), fact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, fact.getX(), fact.getY(), conditions));\n }\n }\n } else {\n for (IonIndependenceFacts allfact : separations) {\n for (Collection<Node> conditions : allfact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, allfact.getX(), allfact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, allfact.getX(), allfact.getY(), conditions));\n }\n }\n }\n }\n // accept PAG go to next PAG if no possibly d-connecting undirectedPaths\n if (dConnections.isEmpty()) {\n// doFinalOrientation(pag);\n// Graph p = screenForKnowledge(pag);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(pag);\n continue;\n }\n // maps conditioning sets to list of possibly d-connecting undirectedPaths\n paths = new HashMap<>();\n for (PossibleDConnectingPath path : dConnections) {\n List<PossibleDConnectingPath> p = paths.get(path.getConditions());\n if (p == null) {\n p = new LinkedList<>();\n }\n p.add(path);\n paths.put(path.getConditions(), p);\n }\n // Part 3.b - finds minimal graphical changes to block possibly d-connecting undirectedPaths\n List<Set<GraphChange>> possibleChanges = new ArrayList<>();\n for (Set<GraphChange> changes : findChanges(paths)) {\n Set<GraphChange> newChanges = new HashSet<>();\n for (GraphChange gc : changes) {\n boolean okay = true;\n for (Triple collider : gc.getColliders()) {\n\n if (pag.isUnderlineTriple(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n\n }\n if (!okay) {\n continue;\n }\n for (Triple collider : gc.getNoncolliders()) {\n if (pag.isDefCollider(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n }\n if (okay) {\n newChanges.add(gc);\n }\n }\n if (!newChanges.isEmpty()) {\n possibleChanges.add(newChanges);\n } else {\n possibleChanges.clear();\n break;\n }\n }\n float starthitset = System.currentTimeMillis();\n Collection<GraphChange> hittingSets = IonHittingSet.findHittingSet(possibleChanges);\n recHitTimes.add((System.currentTimeMillis() - starthitset) / 1000.);\n // Part 3.c - checks the newly constructed graphs from 3.b and rejects those that\n // cycles or produce independencies known not to occur from the input PAGs or\n // include undirectedPaths from definite nonancestors\n for (GraphChange gc : hittingSets) {\n boolean badhittingset = false;\n for (Edge edge : gc.getRemoves()) {\n Node node1 = edge.getNode1();\n Node node2 = edge.getNode2();\n Set<Triple> triples = new HashSet<>();\n triples.addAll(gc.getColliders());\n triples.addAll(gc.getNoncolliders());\n if (triples.size() != (gc.getColliders().size() + gc.getNoncolliders().size())) {\n badhittingset = true;\n break;\n }\n for (Triple triple : triples) {\n if (node1.equals(triple.getY())) {\n if (node2.equals(triple.getX()) ||\n node2.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n if (node2.equals(triple.getY())) {\n if (node1.equals(triple.getX()) ||\n node1.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n }\n if (badhittingset) {\n break;\n }\n for (NodePair pair : gc.getOrients()) {\n if ((node1.equals(pair.getFirst()) && node2.equals(pair.getSecond())) ||\n (node2.equals(pair.getFirst()) && node1.equals(pair.getSecond()))) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (!badhittingset) {\n for (NodePair pair : gc.getOrients()) {\n for (Triple triple : gc.getNoncolliders()) {\n if (pair.getSecond().equals(triple.getY())) {\n if (pair.getFirst().equals(triple.getX()) &&\n pag.getEndpoint(triple.getZ(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n\n }\n if (pair.getFirst().equals(triple.getZ()) &&\n pag.getEndpoint(triple.getX(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n }\n if (badhittingset) {\n continue;\n }\n Graph changed = gc.applyTo(pag);\n // if graph change has already been rejected move on to next graph\n if (reject.contains(changed)) {\n continue;\n }\n // if graph change has already been accepted move on to next graph\n if (step3PagsSet.contains(changed)) {\n continue;\n }\n // reject if null, predicts false independencies or has cycle\n if (predictsFalseIndependence(associations, changed)\n || changed.existsDirectedCycle()) {\n reject.add(changed);\n }\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(changed);\n // now add graph to queue\n\n// Graph p = screenForKnowledge(changed);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(changed);\n }\n }\n // exits loop if not looping over adjacencies\n if (!adjacencySearch) {\n break;\n }\n }\n }\n TetradLogger.getInstance().log(\"info\", \"Step 3: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n Queue<Graph> step3Pags = new LinkedList<>(step3PagsSet);\n\n /*\n * Step 4\n *\n * Finds redundant undirectedPaths and uses this information to expand the list\n * of possible graphs\n */\n steps = System.currentTimeMillis();\n Map<Edge, Boolean> necEdges;\n Set<Graph> outputPags = new HashSet<>();\n\n while (!step3Pags.isEmpty()) {\n Graph pag = step3Pags.poll();\n necEdges = new HashMap<>();\n // Step 4.a - if x and y are known to be unconditionally associated and there is\n // exactly one trek between them, mark each edge on that trek as necessary and\n // make the tiples on the trek definite noncolliders\n // initially mark each edge as not necessary\n for (Edge edge : pag.getEdges()) {\n necEdges.put(edge, false);\n }\n // look for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n List<List<Node>> treks = treks(pag, fact.x, fact.y);\n if (treks.size() == 1) {\n List<Node> trek = treks.get(0);\n List<Triple> triples = new ArrayList<>();\n for (int i = 1; i < trek.size(); i++) {\n // marks each edge in trek as necessary\n necEdges.put(pag.getEdge(trek.get(i - 1), trek.get(i)), true);\n if (i == 1) {\n continue;\n }\n // makes each triple a noncollider\n pag.addUnderlineTriple(trek.get(i - 2), trek.get(i - 1), trek.get(i));\n }\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // Part 4.b - branches by generating graphs for every combination of removing\n // redundant undirectedPaths\n boolean elimTreks;\n // checks to see if removing redundant undirectedPaths eliminates every trek between\n // two variables known to be nconditionally assoicated\n List<Graph> possRemovePags = possRemove(pag, necEdges);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n for (Graph newPag : possRemovePags) {\n elimTreks = false;\n // looks for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n if (treks(newPag, fact.x, fact.y).isEmpty()) {\n elimTreks = true;\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // add new PAG to output unless a necessary trek has been eliminated\n if (!elimTreks) {\n outputPags.add(newPag);\n }\n }\n }\n outputPags = removeMoreSpecific(outputPags);\n// outputPags = applyKnowledge(outputPags);\n\n TetradLogger.getInstance().log(\"info\", \"Step 4: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n\n /*\n * Step 5\n *\n * Generate the Markov equivalence classes for graphs and accept only\n * those that do not predict false d-separations\n */\n steps = System.currentTimeMillis();\n Set<Graph> outputSet = new HashSet<>();\n for (Graph pag : outputPags) {\n Set<Triple> unshieldedPossibleColliders = new HashSet<>();\n for (Triple triple : getPossibleTriples(pag)) {\n if (!pag.isAdjacentTo(triple.getX(), triple.getZ())) {\n unshieldedPossibleColliders.add(triple);\n }\n }\n\n PowerSet<Triple> pset = new PowerSet<>(unshieldedPossibleColliders);\n for (Set<Triple> set : pset) {\n Graph newGraph = new EdgeListGraph(pag);\n for (Triple triple : set) {\n newGraph.setEndpoint(triple.getX(), triple.getY(), Endpoint.ARROW);\n newGraph.setEndpoint(triple.getZ(), triple.getY(), Endpoint.ARROW);\n }\n doFinalOrientation(newGraph);\n }\n for (Graph outputPag : finalResult) {\n if (!predictsFalseIndependence(associations, outputPag)) {\n Set<Triple> underlineTriples = new HashSet<>(outputPag.getUnderLines());\n for (Triple triple : underlineTriples) {\n outputPag.removeUnderlineTriple(triple.getX(), triple.getY(), triple.getZ());\n }\n outputSet.add(outputPag);\n }\n }\n }\n\n// outputSet = applyKnowledge(outputSet);\n outputSet = checkPaths(outputSet);\n\n output.addAll(outputSet);\n TetradLogger.getInstance().log(\"info\", \"Step 5: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n runtime = ((System.currentTimeMillis() - start) / 1000.);\n logGraphs(\"\\nReturning output (\" + output.size() + \" Graphs):\", output);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n return output;\n }",
"private Map<Integer, Integer> fillInSolutionObject(Graph graph, HashSet<Integer> finalEntities, double[][] allCloseness) {\n Map<Integer, Integer> graphMapping = new HashMap<Integer, Integer>();\n for (int mentionNodeId : bestMentionDegrees.keySet()) {\n GraphNode mentionNode = graph.getNode(mentionNodeId);\n Mention mention = (Mention) mentionNode.getNodeData();\n\n ResultMention rm = new ResultMention(mention.getMention(), mention.getCharOffset(), mention.getCharLength());\n\n int mentionOutdegree = graph.getNodeOutdegree(mentionNodeId);\n if (mentionOutdegree == 0) {\n solution.put(rm, ResultEntity.getResultEntityAsList(ResultEntity.getNoMatchingEntity()));\n graphMapping.put(mentionNodeId, -1);\n } else {\n TIntDoubleHashMap successorsMap = mentionNode.getSuccessors();\n TIntDoubleIterator successorsIterator = successorsMap.iterator();\n for (int i = successorsMap.size(); i-- > 0; ) {\n successorsIterator.advance();\n\n int entityNodeId = successorsIterator.key();\n double mentionEntitySimilarity = successorsIterator.value();\n if (finalEntities.contains(entityNodeId)) {\n double confidence = mentionEntitySimilarity;\n double averageCloseness = 0.0;\n\n for (int otherMention : bestMentionDegrees.keySet()) {\n if (otherMention == mentionNodeId || allCloseness[entityNodeId][otherMention] == Double.NEGATIVE_INFINITY) {\n continue;\n }\n averageCloseness += allCloseness[entityNodeId][otherMention];\n }\n\n int numOtherMentions = bestMentionDegrees.keySet().size() - 1;\n if (numOtherMentions > 0) {\n averageCloseness = averageCloseness / numOtherMentions;\n }\n confidence += averageCloseness;\n\n GraphNode entityNode = graph.getNode(entityNodeId);\n int entityInternalId = (int) entityNode.getNodeData();\n Entity entity = allEntities_.getEntityById(entityInternalId);\n List<ResultEntity> res = new ArrayList<ResultEntity>(1);\n res.add(new ResultEntity(entity, confidence));\n\n graphMapping.put(mentionNodeId, entityNodeId);\n solution.put(rm, res);\n }\n }\n }\n }\n return graphMapping;\n }",
"private void setGraphParameters()\r\n\t{\r\n\r\n\t\tlogger.info(\"Setting graph parameters.\");\r\n\t\tlogger.info(\"Treating the graph as undirected.\");\r\n\r\n\t\t// Diameter is the maximum of all shortest path lengths\r\n\t\t// Average shortest path length is (as the name says) the average of the\r\n\t\t// shortest path length between all node pairs\r\n\r\n\t\tdouble maxPathLength = 0.0;\r\n\t\tdouble shortestPathLengthSum = 0.0;\r\n\t\tdouble degreeSum = 0.0;\r\n\t\tdouble clusterCoefficientSum = 0.0;\r\n\r\n\t\t// iterate over all node pairs\r\n\t\tCollection<Entity> nodes = undirectedGraph.getVertices();\r\n\r\n\t\t// a hashset of the nodes which have been the start node of the\r\n\t\t// computation process\r\n\t\t// for such nodes all path lengths have been already computed\r\n\t\tSet<Entity> wasSource = new HashSet<Entity>();\r\n\r\n\t\tint progress = 0;\r\n\t\tfor (Entity node : nodes) {\r\n\r\n\t\t\tprogress++;\r\n\t\t\tLoggingUtils.printProgressInfo(progress, nodes.size(), 100,\r\n\t\t\t\t\tLoggingUtils.ProgressInfoMode.TEXT,\r\n\t\t\t\t\t\"Getting graph parameters\");\r\n\r\n\t\t\tint nodeDegree = getDegree(node);\r\n\t\t\t// degreeSum += nodeDegree;\r\n\r\n\t\t\t// logger.info(\"Updating degree distribution.\");\r\n\t\t\t// updateDegreeDistribution(nodeDegree);\r\n\r\n\t\t\t// cluster coefficient C_v of a node v is the fraction of the\r\n\t\t\t// connections that exist between the\r\n\t\t\t// neighbor nodes (k_v) of this node and all allowable connections\r\n\t\t\t// between the neighbors (k_v(k_v -1)/2)\r\n\t\t\t// for degrees 0 or 1 there is no cluster coefficient, as there can\r\n\t\t\t// be no connections between neighbors\r\n\t\t\tif (nodeDegree > 1) {\r\n\t\t\t\tdouble numberOfNeighborConnections = getNumberOfNeighborConnections(node);\r\n\t\t\t\tclusterCoefficientSum += (numberOfNeighborConnections / (nodeDegree * (nodeDegree - 1)));\r\n\t\t\t}\r\n\r\n\t\t\t// Returns the new shortestPathLengthSum and the new maxPathLength.\r\n\t\t\t// They are returned as an double array for performance reasons.\r\n\t\t\t// I do not want to create an object, as this function is called\r\n\t\t\t// *very* often\r\n\t\t\t// logger.info(\"Computing shortest path lengths.\");\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(node,\r\n\t\t\t\t\tshortestPathLengthSum, maxPathLength, wasSource);\r\n\t\t\tshortestPathLengthSum = returnValues[0];\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\r\n\t\t\t// save the info that the node was already used as the source of\r\n\t\t\t// path computation\r\n\t\t\twasSource.add(node);\r\n\t\t}\r\n\r\n\t\tif (nodes.size() > 1) {\r\n\t\t\tthis.averageShortestPathLength = shortestPathLengthSum\r\n\t\t\t\t\t/ (nodes.size() * (nodes.size() - 1) / 2);\r\n\t\t\t// sum of path lengths / (number of node pairs)\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.averageShortestPathLength = 0; // there is only one node\r\n\t\t}\r\n\t\tthis.diameter = maxPathLength;\r\n\t\tthis.averageDegree = degreeSum / nodes.size();\r\n\t\tthis.clusterCoefficient = clusterCoefficientSum / nodes.size();\r\n\t}",
"@Test\n public void testGetGraph_File_STRICT() throws Exception {\n System.out.println(\"getGraph with a well formed file in parameter and \"\n + \"with the strict building method\");\n\n String filePath = \"testfiles/WellFormedFileJUnit.txt\";\n Graph graph = factory.getGraph(new File(filePath), GraphBuildingMethod.STRICT);\n\n Graph expResult = new Graph();\n Node barbara = new Node(\"barbara\");\n Node carol = new Node(\"carol\");\n Node elizabeth = new Node(\"elizabeth\");\n Node anna = new Node(\"anna\");\n\n Link friend1 = new Link(\"friend\", barbara, carol);\n friend1.addAttribute(\"since\", \"1999\");\n barbara.addLink(friend1);\n carol.addLink(friend1);\n Link friend2 = new Link(\"friend\", barbara, elizabeth);\n friend2.addAttribute(\"since\", \"1999\");\n List<String> values2 = new ArrayList<>();\n values2.add(\"books\");\n values2.add(\"movies\");\n values2.add(\"tweets\");\n friend2.addAttribute(\"share\", values2);\n barbara.addLink(friend2);\n elizabeth.addLink(friend2);\n Link friend3 = new Link(\"friend\", barbara, anna);\n friend3.addAttribute(\"since\", \"2011\");\n barbara.addLink(friend3);\n anna.addLink(friend3);\n\n expResult.addNode(barbara);\n expResult.addNode(elizabeth);\n expResult.addNode(carol);\n expResult.addNode(anna);\n\n System.out.println(\"*************************\");\n System.out.println(expResult);\n System.out.println(\"--------------------------\");\n System.out.println(graph);\n System.out.println(\"***************************\");\n\n assertEquals(expResult, graph);\n }",
"Long[] searchSolution(int timeLimit, Graph g);",
"public static void main(String[] args) {\n String fileName = \"data1.txt\";\n \n \n //Load the data from the dataset file\n dataSet = getDataSet(fileName);\n \n //Setting up the output file\n String outputFileName = \"\";\n if (fileName.indexOf(\".\") > 0) {\n outputFileName = fileName.substring(0, fileName.lastIndexOf(\".\"));\n }\n \n createFile(outputFileName+\".csv\");\n \n //log the time the algorithm started\n long startTime = System.currentTimeMillis();\n \n //Placeholder of the fittest individual\n fittestIndividual = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n fittestIndividual.generateRulebase(); \n \n //Setup the mating pool\n matingPool = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n \n //used to run the GA multiple times without doing it manually\n //set to 1 because we want to run the GA once\n for (int a = 0; a < 1; a++) {\n currentBest = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n currentBest.generateRulebase();\n\n //Generate a population\n generatePopulation();\n\n //Initial calculation of the fitness\n calculateFitness(population);\n\n for (int i = 0; i < GENERATION; i++) {\n average = 0; //reset the average\n currentBestArray[i] = currentBest.getFitness();\n \n tournamentSelect(population);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Perfrom crossover on the mating pool\n crossover(matingPool);\n\n //Mutation\n mutation(matingPool);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Evaluate the current population\n for (Individual individual : matingPool) {\n if (individual.getFitness() > currentBest.getFitness()) {\n currentBest = new Individual(individual);\n }\n average = average + individual.getFitness();\n }\n \n\n //Replace the population with the new generation\n for (int j = 0; j < POP_SIZE; j++) {\n population[j] = new Individual(matingPool[j]);\n }\n \n averageArray[i] = average / POP_SIZE;\n }\n \n //Check whether the current best is fitter than the global fittest individual\n if (currentBest.fitness > fittestIndividual.fitness) {\n fittestIndividual = new Individual(currentBest);\n //copy the fittest individuals performance\n fittestArray = Arrays.copyOf(currentBestArray, currentBestArray.length);\n }\n }\n\n System.out.println(\"Best fitness generated for the dataset: \" + fittestIndividual.fitness);\n \n //output the rules\n printRules(fittestIndividual.getRulebase());\n \n //Save the performance data into the output file\n for (int i = 0; i < fittestArray.length; i++) {\n addToFile(i, fittestArray[i], averageArray[i]);\n }\n \n //close the file\n close();\n \n //Evaluate the fitness agaisnt the dataset\n calculateFitness(fittestIndividual);\n double accuracyPercentage = ((double) 100 / dataSet.size()) * fittestIndividual.fitness;\n System.out.format(\"%.2f%% accuracy on the datase set.\\n\", accuracyPercentage);\n \n //Log the duration it took\n long duration = System.currentTimeMillis() - startTime;\n System.out.println(\"Completed in \" + String.format(\"%02d min, %02d.%02d sec\",\n TimeUnit.MILLISECONDS.toMinutes(duration),\n TimeUnit.MILLISECONDS.toSeconds(duration)\n - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)),\n TimeUnit.MILLISECONDS.toMillis(duration) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(duration))\n ));\n }",
"public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }",
"@Test\n public void finiteUTurnCosts() {\n int right0 = graph.edge(0, 1).setDistance(10).set(speedEnc, 10, 10).getEdge();\n graph.edge(1, 2).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(2, 3).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(3, 4).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(4, 5).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(5, 2).setDistance(1000).set(speedEnc, 10, 10);\n int left6 = graph.edge(1, 6).setDistance(10).set(speedEnc, 10, 10).getEdge();\n int left0 = graph.edge(0, 7).setDistance(10).set(speedEnc, 10, 10).getEdge();\n graph.edge(7, 8).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(8, 9).setDistance(10).set(speedEnc, 10, 10);\n int right6 = graph.edge(9, 6).setDistance(10).set(speedEnc, 10, 10).getEdge();\n\n // enforce p-turn (using the loop in clockwise direction)\n setRestriction(0, 1, 6);\n setRestriction(5, 4, 3);\n\n assertPath(calcPath(0, 6, right0, left6), 107.0, 1070, 107000, nodes(0, 1, 2, 3, 4, 5, 2, 1, 6));\n // if the u-turn cost is finite it depends on its value if we rather do the p-turn or do an immediate u-turn at node 2\n assertPath(calcPath(0, 6, right0, left6, createWeighting(5000)), 107.0, 1070, 107000, nodes(0, 1, 2, 3, 4, 5, 2, 1, 6));\n assertPath(calcPath(0, 6, right0, left6, createWeighting(40)), 44, 40, 44000, nodes(0, 1, 2, 1, 6));\n\n assertPath(calcPath(0, 6, left0, right6), 4, 40, 4000, nodes(0, 7, 8, 9, 6));\n assertPath(calcPath(0, 6, left0, left6), 111, 1110, 111000, nodes(0, 7, 8, 9, 6, 1, 2, 3, 4, 5, 2, 1, 6));\n // if the u-turn cost is finite we do a u-turn at node 1 (not at node 7 at the beginning!)\n assertPath(calcPath(0, 6, left0, left6, createWeighting(40)), 46.0, 60, 46000, nodes(0, 7, 8, 9, 6, 1, 6));\n }",
"@Override\n public void evaluate(Solution solution) throws JMException {\n\n int[] tour = new int[numberOfNodes + 1];\n int firstCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[0];\n int lastCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[numberOfNodes - 1];\n\n double fitness1_td = 0.0;\n\n // Calculate fitness 1 - total distance\n for (int i = 0; i < numberOfNodes - 1; i++) {\n int x = ((Permutation) solution.getDecisionVariables()[0]).vector_[i];\n int y = ((Permutation) solution.getDecisionVariables()[0]).vector_[i+1];\n\n tour[i] = x;\n tour[i+1] = y;\n\n fitness1_td += calDistances(x, y);\n }\n // generate tour with same start city and end city\n tour[numberOfNodes] = tour[0];\n\n fitness1_td += calDistances(firstCity, lastCity);\n\n\n // Correctness check: does the tour start and end in the same city\n if(tour[0] != tour[tour.length - 1]) {\n System.err.println(\"ERROR: The last city must be the same as the first city\");\n System.exit(1);\n }\n\n /*for (int i = 0; i < tour.length; i++) {\n System.out.print(tour[i] + \" \");\n }*/\n //System.out.println(\"\\n\" + tour.length);\n\n // Calculate fitness 2 - objective value of a given tour\n ArrayInt z = (ArrayInt) solution.getDecisionVariables()[1];\n //System.out.println(z.getLength());\n\n double fitness2_ob;\n double wc = 0.0;\n double ft = 0.0;\n double fp = 0.0;\n\n //the following is used for a different interpretation of \"packingPlan\"\n int itemsPerCity = z.getLength() / (tour.length - 2);\n //System.out.println(itemsPerCity);\n\n for (int i = 0; i < tour.length - 1; i++) {\n\n int currentCityTEMP = tour[i];\n // what's the current city? --> but the items start at city 2 in the TTP file, so I have to take another 1 off!\n int currentCity = currentCityTEMP - 1;\n\n if (i > 0) {\n\n if (currentCity == -1) {\n // No items in city 1\n wc += 0.0;\n fp += 0.0;\n\n } else {\n\n for (int itemNumber = 0; itemNumber < itemsPerCity; itemNumber++) {\n\n int indexOfPackingPlan = (i-1) * itemsPerCity + itemNumber;\n // what is the next item's index in items-array?\n int itemIndex = currentCity + itemNumber * (numberOfNodes - 1);\n //System.out.println(\"i: \" + i);\n\n if (z.getValue(indexOfPackingPlan) == 1) {\n // pack item\n //System.out.println(itemIndex);\n int currentWC = items[itemIndex][2];\n wc += currentWC;\n\n int currentFP = items[itemIndex][1];\n fp += currentFP;\n }\n }\n\n }\n\n int h = (i+1) % (tour.length-1); //h: next tour city index\n //System.out.println(\"h: \" + h);\n long distance = calDistances(i, h);\n // compute the adjusted (effective) distance\n ft += (distance / (1 - wc * (maxSpeed - minSpeed) / capacityOfKnapsack));\n }\n }\n\n wendUsed = wc;\n wend = capacityOfKnapsack - wc;\n fitness2_ob = fp - ft * rentingRatio;\n\n solution.setObjective(0, fitness1_td);\n solution.setObjective(1, -fitness2_ob); // Convert from maximum objective value to minimum objective value\n }",
"private static Population getBestPossibleParettoOfAGS(){\n int numberOfRounds = 10;\n Population allFrontsMembers = new Population();\n\n NSGAII nsgaii = new NSGAII();\n SPEA2 spea2 = new SPEA2();\n AEMMT aemmt = new AEMMT();\n AEMMD aemmd = new AEMMD();\n MOEAD moead = new MOEAD();\n\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n progressBar = new ProgressBar((double) numberOfRounds);\n\n for (int i = 0; i < numberOfRounds; i++) {\n\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n\n System.out.println(\"NSGAII\");\n nsgaii.runAlgorithm(problem);\n allFrontsMembers.population.addAll(nsgaii.paretto.membersAtThisFront);\n\n System.out.println(\"SPEA2\");\n spea2.runAlgorithm(problem);\n allFrontsMembers.population.addAll(spea2.paretto.membersAtThisFront);\n\n //moead.runAlgorithm(problem);\n //allFrontsMembers.population.addAll( moead.pareto.membersAtThisFront);\n\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n System.out.println(\"AEMMT\");\n aemmt.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmt.paretto.membersAtThisFront);\n\n System.out.println(\"AEMMD\");\n aemmd.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmd.paretto.membersAtThisFront);\n\n progressBar.addJobDone();\n\n allFrontsMembers.fastNonDominatedSort();\n Problem.removeSimilar(allFrontsMembers.fronts.allFronts.get(0),problem);\n allFrontsMembers.population = allFrontsMembers.fronts.allFronts.get(0).membersAtThisFront;\n }\n\n problem.printResolutionMessage();\n //Printer.printBinaryMembers(allFrontsMembers);\n System.out.println(\"ALL FRONTS SIZE: \"+allFrontsMembers.population.size());\n\n return allFrontsMembers;\n }",
"public void test4_b_parametric() { // Schedule found: (m + 1)i + j + (-m - 2)\n\t\t/* RelTrafo1: (i, j) - (i, j - 1) = (0, 1)\n\t\t * RelTrafo2: (i, j) - (i - 1, j + m) = (1, -m)\n\t\t * (m + 1) - m + (-m - 2) = -m - 1\n\t\t *//*\n\t\tGDGraph gdGraph = new GDGraph();\n\t\tGDGVertex gdVertex = gdGraph.addVertex();\n\t\tGDGEdge gdEdge1 = gdGraph.addEdge(gdVertex, gdVertex);\n\t\tGDGEdge gdEdge2 = gdGraph.addEdge(gdVertex, gdVertex);\n\n\t\tgdEdge1.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i, j - 1) \n\t\t\t\t{ 1, 0, 0, 0},\n\t\t\t\t{ 0, 1, 0, -1},\n\t\t\t\t{ 0, 0, 0, 1}\n });\n\t\tgdEdge1.producedDomain = convertIntTableToPIPDRational(new int[][]{ // (0..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, 0, 0},\n\t\t\t\t{ 0, 1, 0, -1}\n\t\t}, new int[][]{\n\t\t\t\t{ 1, 0}\n\t\t});\n\n\t\tgdEdge2.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i - 1, j + m) \n\t\t\t\t{ 1, 0, 0, -1},\n\t\t\t\t{ 0, 1, 1, 0},\n\t\t\t\t{ 0, 0, 0, 1}\n });\t\t\n\t\tgdEdge2.producedDomain = convertIntTableToPIPDRational(new int[][]{ // (1..+inf, 0..+inf)\n\t\t\t\t{ 1, 0, 0, -1},\n\t\t\t\t{ 0, 1, 0, 0}\n\t\t}, new int[][]{\n\t\t\t\t{ 1, 0}\n\t\t});\n\n\t\tgdVertex.computationDomain = convertIntTableToPIPDRational(new int[][]{ // (1..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, 0, -1},\n\t\t\t\t{ 0, 1, 0, -1}\n\t\t}, new int[][]{\n\t\t\t\t{ 1, 0}\n\t\t});\n\t\t\n\t\tgdGraph.calculateFeautrierSchedule(true, true);\n\t\n\t\tgdGraph.<Rational>codeGeneration(Rational.ZERO, Rational.ONE);\n\t*/}",
"public void testReachability() throws Exception{\n\t\tfor (int i=0; i<input.size(); i++){\n\t\t\tString fileInput=input.get(i);\n\n\t\t\tTBoxReasoner reasoner = TBoxReasonerImpl.create(OWLAPI3TranslatorUtility.loadOntologyFromFile(fileInput));\n\t\t\t//\t\tDAGImpl dag2= InputOWL.createDAG(fileOutput);\n\n\t\t\t//transform in a named graph\n\t\t\tTestTBoxReasonerImpl_OnNamedDAG dag2= new TestTBoxReasonerImpl_OnNamedDAG(reasoner);\n\t\t\tTestTBoxReasonerImpl_Named dag1 = new TestTBoxReasonerImpl_Named(reasoner);\n\t\t\tlog.debug(\"Input number {}\", i+1 );\n\t\t\tlog.info(\"First dag {}\", dag1);\n\t\t\tlog.info(\"Second dag {}\", dag2);\n\t\t\t\n\t\t\tassertTrue(testDescendants(dag1.getClassDAG(), dag2.getClassDAG()));\n\t\t\tassertTrue(testDescendants(dag1.getObjectPropertyDAG(), dag2.getObjectPropertyDAG()));\n\t\t\tassertTrue(testAncestors(dag1.getClassDAG(),dag2.getClassDAG()));\n\t\t\tassertTrue(testAncestors(dag1.getObjectPropertyDAG(),dag2.getObjectPropertyDAG()));\n\t\t\tassertTrue(checkforNamedVertexesOnly(dag2, reasoner));\n\t\t\tassertTrue(testDescendants(dag2.getClassDAG(), dag1.getClassDAG()));\n\t\t\tassertTrue(testDescendants(dag2.getObjectPropertyDAG(), dag1.getObjectPropertyDAG()));\n\t\t\tassertTrue(testAncestors(dag2.getClassDAG(), dag1.getClassDAG()));\n\t\t\tassertTrue(testAncestors(dag2.getObjectPropertyDAG(), dag1.getObjectPropertyDAG()));\n\t\t}\n\t}",
"private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }",
"private void compute() {\n InputReader sc = null;\n try {\n sc = new InputReader(new FileInputStream(new File(\"./resources/worldtour\")));\n } catch (FileNotFoundException ex) {\n throw new IllegalArgumentException(ex);\n }\n\n //Build Graph\n Graph G = new Graph(sc);\n adj = new int[G.totalVertices + 1][G.totalVertices + 1];\n\n //Run BFS from each vertex and fill adjacency matrix\n for (int v = 1; v <= G.totalVertices; v++) {\n Bfs bfs = new Bfs(G, v, adj);\n }\n\n //printAdjMatrix();\n // Find the farthest 3 cities to each city\n City[][] threeFurthestTo = new City[G.totalVertices + 1][4];\n // Find the farthest 3 cities from each city\n City[][] threeFurthestFrom = new City[G.totalVertices + 1][4];\n\n for (int i = 1; i <= G.totalVertices; i++) {\n City[] source = new City[G.totalVertices + 1];\n int sourceIdx = 1;\n City[] dest = new City[G.totalVertices + 1];\n int destIdx = 1;\n for (int j = 1; j <= G.totalVertices; j++) {\n if (adj[j][i] > 0) {\n source[sourceIdx] = new City(j, adj[j][i]);\n sourceIdx++;\n }\n if (adj[i][j] > 0) {\n dest[destIdx] = new City(j, adj[i][j]);\n destIdx++;\n }\n }\n Arrays.sort(source, 1, sourceIdx);\n threeFurthestTo[i][1] = source[1];\n threeFurthestTo[i][2] = source[2];\n threeFurthestTo[i][3] = source[3];\n Arrays.sort(dest, 1, destIdx);\n threeFurthestFrom[i][1] = dest[1];\n threeFurthestFrom[i][2] = dest[2];\n threeFurthestFrom[i][3] = dest[3];\n }\n\n //printMax3To(threeFurthestTo);\n //printMax3From(threeFurthestFrom);\n //For every path a -> x -> y -> b find the largest path\n int max = 0;\n int[] result = new int[4];\n for (int x = 1; x <= G.totalVertices; x++) {\n for (int y = 1; y <= G.totalVertices; y++) {\n if (adj[x][y] > 0) {\n for (int a = 1; a < 4; a++) {\n City start = threeFurthestTo[x][a];\n if (start != null) {\n for (int b = 1; b < 4; b++) {\n City end = threeFurthestFrom[y][b];\n if (end != null) {\n int startCityId = start.cityId;\n int endCityId = end.cityId;\n if (isDistinctCity(startCityId, x, y, endCityId)) {\n int sum = adj[startCityId][x] + adj[x][y] + adj[y][endCityId];\n if (sum > max) {\n result[0] = startCityId;\n result[1] = x;\n result[2] = y;\n result[3] = endCityId;\n max = sum;\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n for (int x : result) {\n System.out.print(x + \" \");\n }\n }",
"Graph testGraph();",
"public void run(int runIndex, String fullPath) throws ClassNotFoundException, IOException, JMException {\n long seed = (long) 100;//can be randomly seeded.\n RandomGenerator RG = new RandomGenerator(seed);\n\n MetricsUtilPlus utils_ = new MetricsUtilPlus();\n Properties config = new Properties();\n\n String configFile = \"HF_Config_Benchmark/RealProblemSetting.txt\";\n String algorithms[] = {\"NSGAII\", \"SPEA2\", \"IBEA\", \"mIBEA\", \"GDE3\"};\n\n try {\n config.load(new FileInputStream(configFile));\n } catch (IOException e) {\n e.printStackTrace();\n System.err.println(\"Failed to load configuration file!\");\n System.exit(-1);\n }\n\n int totalEval = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n int decisionPoints = Integer.parseInt(config.getProperty(\"DecisionPoints\"));//50 iterations\n\n int arcSize = Integer.parseInt(config.getProperty(\"ArchiveSize\"));\n populationSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n arcSize=100;\n populationSize=100;\n totalEval=250*100;\n totalEval=1000*100;\n \n //arcSize=30;\n //populationSize=30;\n //totalEval=30*50;\n\n //int populationSize = popSize;\n int fixedSolutionEvl = (int) (totalEval / decisionPoints);\n \n System.out.println(\"CF; decision=\"+decisionPoints+\";fixed=\"+fixedSolutionEvl+\";total=\"+totalEval);\n\n MetricsUtil util = new MetricsUtil();\n\n int maxEvals = Integer.parseInt(config.getProperty(\"MaxEvaluations\"));\n\n String SolutionType = config.getProperty(\"SolutionType\");\n int popSize = Integer.parseInt(config.getProperty(\"PopulationSize\"));\n \n popSize=100;\n //popSize=30;\n\n Problem[] problemInstances = new Problem[problemCreator.getQtdProblem()];\n int[] numberOfVar = new int[problemCreator.getQtdProblem()];\n double[] mutationProb = new double[problemCreator.getQtdProblem()];\n Operator[] mutations = new Operator[problemCreator.getQtdProblem()];\n\n //reference point for hypervolume calculation\n /*HyperVolumeMinimizationProblem hyp = new HyperVolumeMinimizationProblem();*/\n /*double[] truePFhypervolume = new double[problemCreator.getQtdProblem()];*/\n for (int problemIndex = 0; problemIndex < problemCreator.getQtdProblem(); problemIndex++) {\n\n problemInstances[problemIndex] = problemCreator.getProblemInstance(problemIndex);\n numberOfVar[problemIndex] = problemInstances[problemIndex].getNumberOfVariables();\n mutationProb[problemIndex] = (Double) 1.0 / numberOfVar[problemIndex];\n HashMap parameters = new HashMap();\n parameters.put(\"probability\", mutationProb[problemIndex]);\n double mutationDistributionIndex = Double.parseDouble(config.getProperty(\"MutationDistributionIndex\"));\n parameters.put(\"distributionIndex\", mutationDistributionIndex);\n String mutationType = config.getProperty(\"MutationType\");\n mutations[problemIndex] = new PolynomialMutation(mutationProb[problemIndex], mutationDistributionIndex);\n }\n\n LLHInterface[] algorithm = new LLHInterface[problemCreator.getQtdProblem()];\n\n System.out.println(\"Run \" + runIndex + \"....\");\n\n choiceFunction CF = new choiceFunction();\n\n for (int instanceIndex = 6; instanceIndex < problemInstances.length; instanceIndex++) {\n numberOfObj=problemInstances[instanceIndex].getNumberOfObjectives();\n reference = new double[numberOfObj];\n Arrays.fill(reference,1.0);\n minimumValues = new double[numberOfObj];\n maximumValues = new double[numberOfObj];\n\n for (int i = 0; i < numberOfObj; i++) {\n reference[i] = 1.0;\n }\n\n int remainEval = totalEval;\n List<S> inputPop = null;\n ArrayList<Integer> heuristicList = new ArrayList<Integer>();\n\n int chosenHeuristic = -1;\n\n QualityIndicators quality = new QualityIndicators();\n double[][] algorithmEffortArray = new double[algorithms.length][2];\n double[][] ROIArray = new double[algorithms.length][2];\n double[][] hyperVolumeArray = new double[algorithms.length][2];\n double[][] uniformDistributionArray = new double[algorithms.length][2];\n\n // for the purpose of computing hypervolume.\n initialiseExtremeValues();\n\n long[] elapsedTime = new long[algorithms.length];\n long[] lastInvokeTime = new long[algorithms.length];\n long[] executionTimeArray = new long[algorithms.length];\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = 0;\n }\n\n //initialise population for each instance which is used for each algorithm\n List<S> initialPopulation = ProblemCreator.generateInitialPopulation(problemInstances[instanceIndex], popSize);\n \n List[] resultSolutions = new List[algorithms.length];\n List[] inputSolutions = new List[algorithms.length];\n\n for (int i = 0; i < algorithms.length; i++) {\n inputSolutions[i] = new ArrayList(popSize);\n // at the beginning, all inputsolutions are set as the initialPopulation\n inputSolutions[i] = initialPopulation;\n resultSolutions[i] = new ArrayList(popSize);\n }\n LLHInterface eachAlgorithm = null;\n AlgorithmCreator ac = new AlgorithmCreator(problemInstances[instanceIndex]);\n System.out.println(problemInstances[instanceIndex].getName() + \" \" + problemInstances[instanceIndex].getNumberOfObjectives() + \" \" + problemInstances[instanceIndex].getNumberOfVariables());\n ac.setMaxEvaluationsAndPopulation(totalEval, populationSize);\n //Initialise the choice function matrix and get the initial algorithm\n for (int algorithmIndex = 0; algorithmIndex < algorithms.length; algorithmIndex++) {\n //initialise last invoke time (the start time of calling this algorithm) of each algorithm;\n heuristicList.add(algorithmIndex);\n lastInvokeTime[algorithmIndex] = System.currentTimeMillis();\n\n eachAlgorithm=ac.create(algorithmIndex, remainEval);\n\n long startTime = System.currentTimeMillis();\n\n try {\n resultSolutions[algorithmIndex] = eachAlgorithm.execute(/*initialPopulation*/inputSolutions[algorithmIndex], fixedSolutionEvl);\n } catch (Exception e) {\n e.printStackTrace();\n }\n //record the execution time of each algorithm\n long executionTime = System.currentTimeMillis() - startTime;\n executionTimeArray[algorithmIndex] = executionTime;\n\n remainEval -= fixedSolutionEvl;\n\n //iteration += 2;\n inputSolutions[algorithmIndex] = resultSolutions[algorithmIndex];\n //After executed the algorithm, compute the elapsed time. The end time of called this algorithm\n\n }// end algorithmIndex, executing each algorithm for initialisation the choice function matrix\n\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n // find worst points and best points for all the three populations\n for (int i = 0; i < algorithms.length; i++) {\n updateExtremeValues(resultSolutions[i]);\n }\n\n for (int i = 0; i < algorithms.length; i++) {\n algorithmEffortArray[i][0] = i;\n algorithmEffortArray[i][1] = quality.getAlgorithmEffort(executionTimeArray[i], fixedSolutionEvl);\n\n ROIArray[i][0] = i;\n ROIArray[i][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[i]);\n\n hyperVolumeArray[i][0] = i;\n\n hyperVolumeArray[i][1] = computeScaledHypervolume(resultSolutions[i]);\n //hyperVolumeArray[i][1] = quality.getHyperVolume(resultSolutions[i],realReference);\n\n uniformDistributionArray[i][0] = i;\n uniformDistributionArray[i][1] = quality.getUniformDistribution(resultSolutions[i]);\n\n }\n\n int numberOfMeasures = 4;\n int alpha = 30;//alpha =100;//if turbine number is 30\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //the result population of the chosen heuristic is served as the input population\n inputPop = resultSolutions[chosenHeuristic];\n\n while (remainEval > 0) {\n algorithm[instanceIndex]=ac.create(chosenHeuristic, remainEval);\n\n long beginTime = System.currentTimeMillis();\n //execute the chosen algorithm\n heuristicList.add(chosenHeuristic);\n if (fixedSolutionEvl > remainEval) {\n fixedSolutionEvl = remainEval;\n }\n //warranty size. necessary for small pop\n Random rsn=new SecureRandom();\n while(inputPop.size() < populationSize){\n inputPop.add(inputPop.get(rsn.nextInt(inputPop.size())));\n }\n resultSolutions[chosenHeuristic] = algorithm[instanceIndex].execute(inputPop, fixedSolutionEvl);\n inputPop = resultSolutions[chosenHeuristic];\n \n remainEval -= fixedSolutionEvl;\n\n // update executionTimeArray\n executionTimeArray[chosenHeuristic] = System.currentTimeMillis() - beginTime;\n //update elapsed time of since the heuristic was last called.\n for (int i = 0; i < algorithms.length; i++) {\n elapsedTime[i] = System.currentTimeMillis() - lastInvokeTime[i];\n }\n\n algorithmEffortArray[chosenHeuristic][1] = quality.getAlgorithmEffort(executionTimeArray[chosenHeuristic], fixedSolutionEvl);\n\n ROIArray[chosenHeuristic][1] = quality.getRatioOfNonDominatedIndividuals(resultSolutions[chosenHeuristic]);\n\n updateExtremeValues(resultSolutions[chosenHeuristic]);\n hyperVolumeArray[chosenHeuristic][1] = computeScaledHypervolume(resultSolutions[chosenHeuristic]);\n //hyperVolumeArray[chosenHeuristic][1] = quality.getHyperVolume(resultSolutions[chosenHeuristic],realReference);\n\n uniformDistributionArray[chosenHeuristic][1] = quality.getUniformDistribution(resultSolutions[chosenHeuristic]);\n\n chosenHeuristic = CF.getMaxChoiceFunction(algorithmEffortArray, 0, ROIArray, 1, hyperVolumeArray, 1,\n uniformDistributionArray, 1, numberOfMeasures, alpha, elapsedTime);\n //start time of the chosen heuristic\n lastInvokeTime[chosenHeuristic] = System.currentTimeMillis();\n\n //heuristicList.add(chosenHeuristic);\t\t\n }//end while(remainEvl >0)\n \n String arrayListPath = fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"_ChosenHeuristic.txt\";\n utils_.printArrayListInteger(heuristicList, arrayListPath);\n List<S> obtainedSolutionSet = SolutionListUtils.getNondominatedSolutions(inputPop);\n new SolutionListOutput(obtainedSolutionSet)\n .setSeparator(\"\\t\")\n .setFunFileOutputContext(new DefaultFileOutputContext(fullPath+\"/\"+problemCreator.getProblemClass() + (instanceIndex + 1) + \"CF_FinalParetoFront\"\n + runIndex + \".txt\"))\n .print();\n //print out true front's hypervolume\n\n }//end each problem instance\n\n System.out.println(\"Finished\");\n\n }",
"@Test\n public void testSimplify2() {\n ControlFlowGraph graph = new ControlFlowGraph();\n\n ControlFlowNode branch1 = new ControlFlowNode(null, graph, BRANCH);\n ControlFlowNode branch2 = new ControlFlowNode(null, graph, BRANCH);\n ControlFlowNode node1 = new ControlFlowNode(null, graph, STATEMENT);\n ControlFlowNode node2 = new ControlFlowNode(null, graph, STATEMENT);\n ControlFlowNode fictitious = new ControlFlowNode(null, graph, CONVERGE);\n ControlFlowNode fictitious2 = new ControlFlowNode(null, graph, CONVERGE);\n\n\n\n graph.addEdge(branch1, branch2);\n graph.addEdge(branch1, fictitious);\n graph.addEdge(branch2, node1);\n graph.addEdge(branch2, fictitious);\n graph.addEdge(node1, fictitious);\n graph.addEdge(fictitious, fictitious2);\n graph.addEdge(fictitious2, node2);\n\n graph.simplifyConvergenceNodes();\n\n assertTrue(graph.containsEdge(branch1, node2));\n assertTrue(graph.containsEdge(branch2, node2));\n assertTrue(graph.containsEdge(node1, node2));\n assertFalse(graph.containsVertex(fictitious));\n assertFalse(graph.containsVertex(fictitious2));\n }",
"@Test\n public void testGetGraph_File_WITH_UPDATE() throws Exception {\n System.out.println(\"getGraph with a malformed file in parameter and \"\n + \"with the \\\"with update\\\" building method\");\n\n String filePath = \"testfiles/MalFormedFileJUnit.txt\";\n Graph graph = factory.getGraph(new File(filePath), GraphBuildingMethod.WITH_UPDATE);\n\n Graph expResult = new Graph();\n Node barbara = new Node(\"barbara\");\n Node carol = new Node(\"carol\");\n Node dawn = new Node(\"dawn\");\n Node simon = new Node(\"simon\");\n\n Link friend1 = new Link(\"friend\", barbara, carol);\n friend1.addAttribute(\"since\", \"2001\");\n barbara.addLink(friend1);\n carol.addLink(friend1);\n Link friend2 = new Link(\"friend\", carol, dawn);\n friend2.addAttribute(\"since\", \"2007\");\n friend2.addAttribute(\"share\", \"movies\");\n carol.addLink(friend2);\n dawn.addLink(friend2);\n Link friend3 = new Link(\"friend\", simon, barbara);\n friend3.addAttribute(\"since\", \"2003\");\n List<String> values3 = new ArrayList<>();\n values3.add(\"movies\");\n values3.add(\"books\");\n values3.add(\"tweets\");\n friend3.addAttribute(\"share\", values3);\n simon.addLink(friend3);\n barbara.addLink(friend3);\n\n expResult.addNode(barbara);\n expResult.addNode(carol);\n expResult.addNode(dawn);\n expResult.addNode(simon);\n\n System.out.println(\"*************************\");\n System.out.println(expResult);\n System.out.println(\"--------------------------\");\n System.out.println(graph);\n System.out.println(\"***************************\");\n\n assertEquals(expResult, graph);\n }",
"private final void constructGraph() {\n losScanner = new LineOfSightScannerDouble(graph);\n queue = new int[11];\n\n queueSize = 0;\n\n // STEP 1: Construct SVG (Strict Visibility Graph)\n \n // Initialise SVG Vertices\n xPositions = new int[11];\n yPositions = new int[11];\n nNodes = 0;\n addNodes();\n \n // Now xPositions and yPositions should be correctly initialised.\n // We then initialise the rest of the node data.\n originalSize = nNodes;\n maxSize = nNodes + 2;\n xPositions = Arrays.copyOf(xPositions, maxSize);\n yPositions = Arrays.copyOf(yPositions, maxSize);\n hasEdgeToGoal = new boolean[maxSize];\n nOutgoingEdgess = new int[maxSize];\n outgoingEdgess = new int[maxSize][];\n outgoingEdgeIndexess = new int[maxSize][];\n outgoingEdgeOppositeIndexess = new int[maxSize][];\n outgoingEdgeIsMarkeds = new boolean[maxSize][];\n for (int i=0;i<maxSize;++i) {\n nOutgoingEdgess[i] = 0;\n outgoingEdgess[i] = new int[11];\n outgoingEdgeIndexess[i] = new int[11];\n outgoingEdgeOppositeIndexess[i] = new int[11];\n outgoingEdgeIsMarkeds[i] = new boolean[11];\n }\n\n // Initialise SVG Edges + edgeWeights\n edgeWeights = new float[11];\n nEdges = 0;\n addAllEdges();\n\n \n // Now all the edges, indexes and weights should be correctly initialise.\n // Now we initialise the rest of the edge data.\n originalNEdges = nEdges;\n int maxPossibleNEdges = nEdges + nNodes*2;\n edgeWeights = Arrays.copyOf(edgeWeights, maxPossibleNEdges);\n edgeLevels = new int[maxPossibleNEdges];\n Arrays.fill(edgeLevels, LEVEL_W);\n isMarked = new boolean[maxPossibleNEdges];\n //Arrays.fill(isMarked, false); // default initialises to false anyway.\n \n \n // Reserve space in level w edge and marked edge arrays.\n nLevelWNeighbourss = new int[maxSize];\n levelWEdgeOutgoingIndexess = new int[maxSize][];\n nMarkedEdgess = new int[maxSize];\n outgoingMarkedEdgeIndexess = new int[maxSize][];\n for (int i=0;i<nNodes;++i) {\n levelWEdgeOutgoingIndexess[i] = new int[nOutgoingEdgess[i]];\n outgoingMarkedEdgeIndexess[i] = new int[nOutgoingEdgess[i]];\n }\n for (int i=nNodes;i<maxSize;++i) {\n levelWEdgeOutgoingIndexess[i] = new int[11];\n outgoingMarkedEdgeIndexess[i] = new int[11];\n }\n\n \n // STEP 2: Label edge levels in SVG.\n computeAllEdgeLevelsFast();\n addLevelWEdgesToLevelWEdgesArray();\n\n nSkipEdgess = new int[maxSize];\n outgoingSkipEdgess = new int[maxSize][];\n outgoingSkipEdgeNextNodess = new int[maxSize][];\n outgoingSkipEdgeNextNodeEdgeIndexess = new int[maxSize][];\n outgoingSkipEdgeWeightss = new float[maxSize][]; \n\n // STEP 3: Initialise the skip-edges & Group together Level-W edges using isMarkedIndex.\n setupSkipEdges();\n \n pruneParallelSkipEdges();\n }",
"private ExtList makeGraph(ExtList criteria, Object process, ExtList tuples, int aeth, ExtList result) {\n//\t\tSystem.out.println(\"propa\"+System.getProperty(\"java.library.path\"));\n\t\tLog.out(\"criteria \" + criteria);\n\t\tLog.out(\"process \" + process);\n\t\tLog.out(\"tuples \" + tuples);\n\t\tLog.out(\"aeth \" + aeth);\n\t\tLog.out(\"result \" + result);\n\t\t\n\t\tExtList buffer = new ExtList();\n\t\tExtList tuples_buffer = new ExtList();\n\t\tExtList tmp = new ExtList();\n\n\t\tExtList x;\n\t\tExtList y;\n\t\tboolean flag = true;\n\n\t\tString target_x;\n\t\tString target_y;\n\t\tString aeth_type = \"\";\n\n\n\n\t\tRengine engine;\n\n\t\tresult.clear();\n\n\t\tif (!Preprocessor.isR()) {\n\t\t\tengine = new Rengine(new String[]{\"--vanilla\"}, false, null);\n\t\t\tnew Preprocessor().setR();\n\n\t\t} else {\n\t\t\tengine = Rengine.getMainEngine();\n\t\t}\n\t\tengine.eval(\"setwd(\\\"\" + GlobalEnv.getOutputDirPath() + \"\\\")\");\n//\t\tengine.eval(\".libPaths(\\\"\" + path + \"/lib/site-library\\\")\");\n//\t\tengine.eval(\".libPaths(\\\"/Users/otawa/Documents/workspace/NewSSQL/lib/site-library\\\")\");\n//\t\tengine.eval(\".libPaths(\\\"/usr/local/lib/R/4.0/site-library\\\")\");\t\t\t//TODO_old -> おそらく無しでOK\n\t\tengine.eval(\"library(tidyverse)\");\n\t\tengine.eval(\"library(plotly)\");\n\t\tengine.eval(\"Sys.setlocale(\\\"LC_CTYPE\\\", \\\"ja_JP.UTF-8\\\")\");\n\n\t\ttarget_x = process.toString().split(\" \")[0];\n\t\ttarget_y = process.toString().split(\" \")[1];\n\t\tLog.info(\"process: \" + process.toString());\n\t\twhile (tuples.size() > 0) {\n\n\t\t\t/* find tuples with the same criteria */\n\n\t\t\tx = (ExtList)(tuples.get(0));\n\t\t\t//System.out.println(x+\" \"+x.size()+\" \"+tuples.size());\n//\t\t\tif (x.size()<2) {\n//\t\t\t\tbreak;\n//\t\t\t}\n\t\t\tfor (int i = 1; i < tuples.size(); i++) {\n\t\t\t\ty = (ExtList)(tuples.get(i));\n\t\t\t\t//Log.out(\"criteria: \" + criteria);\n\t\t\t\t//Log.out(\"criteria_size: \" + criteria.size());\n\t\t\t\t//Log.out(\"break x: \" + x + \" size: \" + x.size() + \" tuples.size\" + tuples.size());\n\t\t\t\t//Log.out(\"break y: \" + y + \" size: \" + y.size() + \" tuples.size\" + tuples.size());\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < criteria.size(); k++) {\n\t\t\t\t\t\n\t\t\t\t\tif (!(x.get(Integer.parseInt(criteria.get(k).toString())).equals\n\t\t\t\t\t (y.get(Integer.parseInt(criteria.get(k).toString()))))) {\n\t\t\t\t\t\tflag = false;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (flag) {\n\t\t\t\t\tbuffer.add(y);\n\t\t\t\t\ttuples.remove(i--);\n\t\t\t\t} else {\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tbuffer.add(x);\n//\t\t\tSystem.out.println(\"buffer:\"+buffer);\n\t\t\ttuples.remove(0);\n\n\n\t\t\tList<String> buffer_x = new ArrayList<String>();\n\t\t\tList<String> buffer_y = new ArrayList<String>();\n\t\t\tList<String> buffer_aeth = new ArrayList<String>();\n\n\t\t\tfor (int i = 0; i < buffer.size(); i++) {\n\t\t\t\t//Log.out(\"2.break i: \" + i + \" target_x: \" + target_x);\n\t\t\t\t//Log.out(\"2.break i: \" + i + \" target_y: \" + target_y);\n\t\t\t\t//Log.out(\"2.break size of buffer \" + buffer.size());\n\t\t\t\tbuffer_x.add(buffer.getExtListString(i, Integer.parseInt(target_x)));\n\t\t\t\tbuffer_y.add(buffer.getExtListString(i, Integer.parseInt(target_y)));\n\t\t\t\tif (aeth > 0)\n\t\t\t\t\tbuffer_aeth.add(buffer.getExtListString(i, aeth));\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tint result_x[] = new int[buffer_x.size()];\n\t\t\t\tfor (int i = 0; i < buffer_x.size(); i++) {\n\t\t\t\t\tresult_x[i] = Integer.parseInt(buffer_x.get(i));\n\t\t\t\t\tLog.out(\"result_x(int): \" + result_x);\n\t\t\t\t}\n\t\t\t\tengine.assign(\"result_x\", result_x);\n\t\t\t} catch(NumberFormatException e) {\n\t\t\t\ttry {\n\t\t\t\t\tdouble result_x[] = new double[buffer_x.size()];\n\t\t\t\t\tfor (int i = 0; i < buffer_x.size(); i++) {\n\t\t\t\t\t\tresult_x[i] = Double.parseDouble(buffer_x.get(i));\n\t\t\t\t\t\tLog.out(\"result_x(double): \" + result_x);\n\t\t\t\t\t}\n\t\t\t\t\tengine.assign(\"result_x\", result_x);\n\t\t\t\t} catch (NumberFormatException e1) {\n\t\t\t\t\tString result_x[] = new String[buffer_x.size()];\n\t\t\t\t\t\n\t\t\t\t\tfor (int i = 0; i < buffer_x.size(); i++) {\n\t\t\t\t\t\tresult_x[i] = buffer_x.get(i);\n\t\t\t\t\t}\n\t\t\t\t\t//Log.out(\"result_x(string): \" + Arrays.toString(result_x));\n\t\t\t\t\t//added by li to check date\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSimpleDateFormat sdFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\tfor (int i = 0; i < buffer_x.size(); i++) {\n\t\t\t\t\t\t\tresult_x[i] = buffer_x.get(i);\n\t\t\t\t\t\t\tDate date = sdFormat.parse(result_x[i]);\n\t\t\t\t\t\t\tLog.out(\"Is Date :\" + date);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tengine.assign(\"result_x\", result_x);\n\t\t\t\t\t\t//added by li\n\t\t\t\t\t\tengine.eval(\"result_x <- as.Date(result_x)\");\n\t\t\t\t\t} catch(ParseException e2) {\n\t\t\t\t\t\t//Log.out(\"Result_x is not a date.\");\n\t\t\t\t\t\tengine.assign(\"result_x\", result_x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tint result_y[] = new int[buffer_y.size()];\n\t\t\t\tfor (int i = 0; i < buffer_y.size(); i++) {\n\t\t\t\t\tresult_y[i] = Integer.parseInt(buffer_y.get(i));\n\t\t\t\t}\n\t\t\t\tengine.assign(\"result_y\", result_y);\n\t\t\t\t//Log.out(\"result_y: \" + result_y);\n\t\t\t} catch(NumberFormatException e) {\n\t\t\t\ttry {\n\t\t\t\t\tdouble result_y[] = new double[buffer_y.size()];\n\t\t\t\t\tfor (int i = 0; i < buffer_y.size(); i++) {\n\t\t\t\t\t\tresult_y[i] = Double.parseDouble(buffer_y.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tengine.assign(\"result_y\", result_y);\n\t\t\t\t\t\n\t\t\t\t} catch (NumberFormatException e1) {\n\t\t\t\t\tString result_y[] = new String[buffer_y.size()];\n\t\t\t\t\tfor (int i = 0; i < buffer_y.size(); i++) {\n\t\t\t\t\t\tresult_y[i] = buffer_y.get(i);\n\t\t\t\t\t}\n\t\t\t\t\t//added by li to check date\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSimpleDateFormat sdFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\tfor (int i = 0; i < buffer_x.size(); i++) {\n\t\t\t\t\t\t\tresult_y[i] = buffer_x.get(i);\n\t\t\t\t\t\t\tDate date = sdFormat.parse(result_y[i]);\n\t\t\t\t\t\t\tLog.out(\"Is Date :\" + date);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tengine.assign(\"result_y\", result_y);\n\t\t\t\t\t\t//added by li\n\t\t\t\t\t\tengine.eval(\"result_y <- as.Date(result_y)\");\n\t\t\t\t\t} catch(ParseException e2) {\n\t\t\t\t\t\tLog.out(\"Error!Result_y is not a date.\");\n\t\t\t\t\t\tengine.assign(\"result_y\", result_y);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (aeth > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tint result_aeth[] = new int[buffer_aeth.size()];\n\t\t\t\t\tfor (int i = 0; i < buffer_aeth.size(); i++) {\n\t\t\t\t\t\tresult_aeth[i] = Integer.parseInt(buffer_aeth.get(i));\n\t\t\t\t\t}\n\t\t\t\t\tengine.assign(\"result_aeth\", result_aeth);\n\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdouble result_aeth[] = new double[buffer_aeth.size()];\n\t\t\t\t\t\tfor (int i = 0; i < buffer_aeth.size(); i++) {\n\t\t\t\t\t\t\tresult_aeth[i] = Double.parseDouble(buffer_aeth.get(i));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tengine.assign(\"result_aeth\", result_aeth);\n\t\t\t\t\t} catch (NumberFormatException e1) {\n\t\t\t\t\t\tString result_aeth[] = new String[buffer_aeth.size()];\n\t\t\t\t\t\tfor (int i = 0; i < buffer_aeth.size(); i++) {\n\t\t\t\t\t\t\tresult_aeth[i] = buffer_aeth.get(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tengine.assign(\"result_aeth\", result_aeth);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString r_html_filename = GlobalEnv.getfilename3()+\"_graph\";\n\t\t\ttry {\n\t\t\t\tr_html_filename += \"_\" + buffer.getExtListString(0, Integer.parseInt(criteria.getExtListString(0)));\n\t\t\t\tfor (int i = 1; i < criteria.size(); i++) {\n\t\t\t\t\tr_html_filename += \"_\" + buffer.getExtListString(0, Integer.parseInt(criteria.getExtListString(i)));\n\t\t\t\t}\n\t\t\t} catch (Exception e) { }\n\n\n//\t\t\tSystem.out.println(process);\n\t\t\tint n = process.toString().split(\":\").length;\n\n\n\n\t\t\tif (aeth > 0) {\n\t\t\t\tengine.eval(\"frame <- data.frame(X=result_x, Y=result_y, AETH=result_aeth)\");\n\t\t\t\tfor (int i = 1; i < n; i++) {\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"color\") && !process.toString().split(\":\")[i].contains(\"\\\"\") ) {\n\t\t\t\t\t\taeth_type = process.toString().split(\":\")[i].substring(0, process.toString().split(\":\")[i].indexOf(\"=\") + 1);\n\t\t\t\t\t}\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"fill\") && !process.toString().split(\":\")[i].contains(\"\\\"\") ) {\n\t\t\t\t\t\taeth_type = process.toString().split(\":\")[i].substring(0, process.toString().split(\":\")[i].indexOf(\"=\") + 1);\n\t\t\t\t\t}\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"size\") && !process.toString().split(\":\")[i].contains(\"\\\"\") ) {\n\t\t\t\t\t\taeth_type = process.toString().split(\":\")[i].substring(0, process.toString().split(\":\")[i].indexOf(\"=\") + 1);\n\t\t\t\t\t}\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"group\") && !process.toString().split(\":\")[i].contains(\"\\\"\") ) {\n\t\t\t\t\t\taeth_type = process.toString().split(\":\")[i].substring(0, process.toString().split(\":\")[i].indexOf(\"=\") + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tengine.eval(\"graph <- ggplot(data = frame, aes(x = X, y = Y, \" + aeth_type +\"AETH))\");\n\t\t\t\t//engine.eval(\"graph <- ggplot(subset(data = frame, !is.na(x,y)), aes(x = X, y = Y, \" + aeth_type +\"AETH))\");\n\t\t\t} else {\n\t\t\t\tengine.eval(\"frame <- data.frame(X=result_x, Y=result_y)\");\n\t\t\t\t//engine.eval(\"frame <- subset(data.frame(X=result_x, Y=result_y), !is.na(x,y))\");\n\t\t\t\tengine.eval(\"graph <- ggplot(data = frame, aes(x = X, y = Y))\");\n\t\t\t\t//engine.eval(\"graph <- ggplot(data = subset(frame, !is.na(X), !is.na(Y)), aes(x = X, y = Y))\");\n\t\t\t}\n\n\t\t\tfor (int i = 1; i < n; i++) {\n\t\t\t\tif((process.toString().split(\":\")[i].contains(\"color\") ||\n\t\t\t\t\tprocess.toString().split(\":\")[i].contains(\"fill\") ||\n\t\t\t\t\tprocess.toString().split(\":\")[i].contains(\"size\") ||\n\t\t\t\t\tprocess.toString().split(\":\")[i].contains(\"group\") ||\n\t\t\t\t\tprocess.toString().split(\":\")[i].contains(\"width\") ||\n\t\t\t\t\tprocess.toString().split(\":\")[i].contains(\"height\"))\n\t\t\t\t\t&& !process.toString().split(\":\")[i].contains(\"\\\"\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (process.toString().split(\":\")[i].contains(\"geom_bar\") ) {\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"=\")) {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_bar(stat = 'identity', \" + process.toString().split(\":\")[i].split(\"\\\"\")[1] + \")\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_bar(stat = 'identity')\");\n\t\t\t\t\t}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (process.toString().split(\":\")[i].contains(\"=\")) {\n\t\t\t\t\tengine.eval(\" graph <- graph + \" + process.toString().split(\":\")[i].split(\"=\")[0] + \"(\" + process.toString().split(\":\")[i].split(\"\\\"\")[1] + \")\");\n\t\t\t\t} else {\n\t\t\t\t\tengine.eval(\" graph <- graph + \" + process.toString().split(\":\")[i] + \"()\");\n\t\t\t\t}\n\n\n\n\t\t\t/*\tif (process.toString().split(\":\")[i].contains(\"geom_point\") ) {\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"=\")) {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_point(\" + process.toString().split(\":\")[i].split(\"\\\"\")[1] + \")\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_point()\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (process.toString().split(\":\")[i].contains(\"geom_line\") ) {\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"=\")) {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_line(\" + process.toString().split(\":\")[i].split(\"\\\"\")[1] + \")\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_line()\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (process.toString().split(\":\")[i].contains(\"geom_smooth\") ) {\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"=\")) {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_smooth(\" + process.toString().split(\":\")[i].split(\"\\\"\")[1] + \")\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_smooth()\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (process.toString().split(\":\")[i].contains(\"geom_bar\") ) {\n\t\t\t\t\tif (process.toString().split(\":\")[i].contains(\"=\")) {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_bar(stat = 'identity', \" + process.toString().split(\":\")[i].split(\"\\\"\")[1] + \")\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tengine.eval(\" graph <- graph + geom_bar(stat = 'identity')\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (process.toString().split(\":\")[i].contains(\"coord_flip\") ) {\n\t\t\t\t\tengine.eval(\" graph <- graph + coord_flip()\");\n\t\t\t\t}\n\n\t\t\t\tif (process.toString().split(\":\")[i].contains(\"coord_polar\") ) {\n\t\t\t\t\tengine.eval(\" graph <- graph + coord_polar()\");\n\t\t\t\t}\n\n\t\t\t\tif (process.toString().split(\":\")[i].contains(\"labs\") ) {\n\t\t\t\t\tengine.eval(\" graph <- graph + labs(\" + process.toString().split(\":\")[i].split(\"\\\"\")[1] + \")\");\n\t\t\t\t}\n\n////\t\t\t\tif (process.toString().split(\" \")[i].contains(\"errorbar\") ) {\n////\t\t\t\t\tengine.eval(\" graph <- graph + geom_errorbar()\");\n//\t\t\t\t} */\n\t\t\t}\n\n\t\t\tengine.eval(\"graph <- ggplotly(graph)\");\n\t\t\tLog.out(\"r: r_html_filename = \"+r_html_filename + \"_\" + count + \".html\");\n\t\t\t//engine.eval(\"htmlwidgets::saveWidget(as_widget(graph), \\\"\" + r_html_filename + \"_\" + count + \".html\\\")\");\n\t\t\tengine.eval(\"htmlwidgets::saveWidget(as_widget(graph), \\\"\" + r_html_filename + \"_\" + count + \".html\\\", selfcontained=FALSE)\");\n\t engine.end();\n\n//\t tmp = buffer.getExtList(0);\n//\t tmp.set(Integer.parseInt(target_x), \"ggplot\" + name + \".html\");\n//\t tmp.set(Integer.parseInt(target_y), name);\n//\t tuples_buffer.add(tmp);\n\n\t for (int i = 0; i < buffer.size(); i++) {\n\t \t\tbuffer.getExtList(i).set(Integer.parseInt(target_x), \"ggplot\" + r_html_filename + \"_\" + count + \".html\");\n\t \t\t//buffer.getExtList(i).set(Integer.parseInt(target_y), r_html_filename);\n\t \t\tbuffer.getExtList(i).set(Integer.parseInt(target_y), \"\");\n//\t \t\tSystem.out.println(buffer.getExtListString(i, Integer.parseInt(target_x)));\n//\t \t\tSystem.out.println(buffer.getExtListString(i, Integer.parseInt(target_y)));\n\t }\n//\t buffer.getExtList(0).set(Integer.parseInt(target_x), \"ggplot\" + name + \".html\");\n//\t buffer.getExtList(0).set(Integer.parseInt(target_y), name);\n\t tuples_buffer.addAll(buffer);\n\n\t result.add(buffer.getExtList(0));\n\t\t\tbuffer.clear();\n\n//\t\t\tcount++;\n//\t\t\tSystem.out.println(count);\n\n\t\t}\n\t\tcount++;\n\t\treturn tuples_buffer;\n\n\t}",
"public void solve() {\n /** To solve the traveling salesman problem:\n * Set up the graph, choose a starting node, then call the recursive backtracking method and pass it the starting node.\n */\n\n // We need to pass a starting node to recursive backtracking method\n Node startNode = null;\n\n // Grab a node, any node...\n for( Node n : graph.nodes() ) {\n startNode = n;\n break;\n }\n\n // Visit the first node\n startNode.visit();\n\n // Add first node to the route\n this.route[0] = startNode;\n\n // Pass the number of choices made\n int nchoices = 1;\n\n // Recursive backtracking\n explore(startNode, nchoices );\n\n\n }",
"public FixedGraph(int numOfVertices, int b, int seed) {\r\n super(numOfVertices);\r\n int adjVertex;\r\n double x = 0;\r\n int[] numOfEdges = new int[numOfVertices];\r\n Vector<Integer> graphVector = new Vector<Integer>();\r\n connectivity = b;\r\n\r\n\r\n Random random = new Random(seed);\r\n graphSeed = seed;\r\n\r\n for (int v = 0; v < numOfVertices; v++) {\r\n graphVector.add(new Integer(v));\r\n }\r\n\r\n for (int i = 0; i < numOfVertices; i++) {\r\n\r\n while ((numOfEdges[i] < b) && (graphVector.isEmpty() == false)) {\r\n x = random.nextDouble();\r\n do {\r\n adjVertex = (int) (x * numOfVertices);\r\n\r\n } while (adjVertex >= numOfVertices);\r\n\r\n\r\n if ((i == adjVertex) || (numOfEdges[adjVertex] >= b)) {\r\n if (numOfEdges[adjVertex] >= b) {\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n if (adjVertex == compInt) {\r\n graphVector.removeElementAt(v);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n\r\n }\r\n\r\n }\r\n if ((i != adjVertex) && (adjVertex < numOfVertices) && (numOfEdges[adjVertex] < b) && (super.isAdjacent(i, adjVertex) == false) && (numOfEdges[i] < b)) {\r\n super.addEdge(i, adjVertex);\r\n if (super.isAdjacent(i, adjVertex)) {\r\n numOfEdges[i] = numOfEdges[i] + 1;\r\n numOfEdges[adjVertex] = numOfEdges[adjVertex] + 1;\r\n }\r\n System.out.print(\"*\");\r\n\r\n }\r\n\r\n if (numOfEdges[i] >= b) {\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n if (i == compInt) {\r\n graphVector.removeElementAt(v);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n break;\r\n }\r\n if (graphVector.size() < b) {\r\n //boolean deadlock = false;\r\n System.out.println(\"Graph size= \" + graphVector.size());\r\n\r\n for (int v = 0; v < graphVector.size(); v++) {\r\n\r\n int compInt = ((Integer) graphVector.elementAt(v)).intValue();\r\n //System.out.println(\"i:= \" + i + \" and compInt:= \" + compInt);\r\n if (super.isAdjacent(i, compInt) || (i == compInt)) {\r\n //System.out.println(\"\" + i + \" adjacent to \" + compInt + \" \" + super.isAdjacent(i, compInt));\r\n // deadlock = false;\r\n } else {\r\n if ((numOfEdges[compInt] < b) && (numOfEdges[i] < b) && (i != compInt)) {\r\n super.addEdge(i, compInt);\r\n numOfEdges[i] = numOfEdges[i] + 1;\r\n numOfEdges[compInt] = numOfEdges[compInt] + 1;\r\n if (numOfEdges[i] >= b) {\r\n for (int w = 0; w < graphVector.size(); w++) {\r\n\r\n int compW = ((Integer) graphVector.elementAt(w)).intValue();\r\n if (i == compW) {\r\n graphVector.removeElementAt(w);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n break;\r\n }\r\n if (numOfEdges[compInt] >= b) {\r\n for (int w = 0; w < graphVector.size(); w++) {\r\n\r\n int compW = ((Integer) graphVector.elementAt(w)).intValue();\r\n if (compInt == compW) {\r\n graphVector.removeElementAt(w);\r\n }\r\n if (graphVector.isEmpty() == true) {\r\n System.out.println(\"Graph Vector Empty\");\r\n }\r\n }\r\n\r\n }\r\n // deadlock = true;\r\n }\r\n }\r\n }\r\n break;\r\n }\r\n }\r\n\r\n System.out.println();\r\n }\r\n\r\n }",
"public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }",
"@Test\n public void test1() {\n System.out.println(\"A* Test i1\"); \n \n Solver solver = new Solver(new TileWorld(\"i1.png\"), SearchStrategy.A_STAR);\n AlgorithmResults expResult = new AlgorithmResults(580, 967);\n AlgorithmResults result = solver.solve();\n \n print(result, expResult);\n \n assertEquals(\"BestPathCost does not match!\", expResult.getBestPathCost(), result.getBestPathCost());\n }",
"public void test4_c() {/*\n\t\tGDGraph gdGraph = new GDGraph();\n\t\tGDGVertex gdVertex = gdGraph.addVertex();\n\t\tGDGEdge gdEdge1 = gdGraph.addEdge(gdVertex, gdVertex);\n\t\tGDGEdge gdEdge2 = gdGraph.addEdge(gdVertex, gdVertex);\n\n\t\tgdEdge1.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i, j - 1) \n\t\t\t\t{ 1, 0, 0},\n\t\t\t\t{ 0, 1, -1},\n\t\t\t\t{ 0, 0, 1}\n });\n\t\tgdEdge1.producedDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (0..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, 0},\n\t\t\t\t{ 0, 1, -1}\n\t\t});\n\n\t\tgdEdge2.dataDependence = convertIntTableToAffineTrafoRational(new int[][]{ // (i - 1, j + 7) \n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, 7},\n\t\t\t\t{ 0, 0, 1}\n });\n\t\tgdEdge2.producedDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (1..+inf, 0..+inf)\n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, 0}\n\t\t});\n\n\t\tgdVertex.computationDomain = convertIntTableToPIPDRational(2, 0, new int[][]{ // (1..+inf, 1..+inf)\n\t\t\t\t{ 1, 0, -1},\n\t\t\t\t{ 0, 1, -1}\n\t\t});\n\t\t\n\t\tgdGraph.calculateFeautrierSchedule(false);\n\t\n\t\tgdGraph.<Rational>codeGeneration(Rational.ZERO, Rational.ONE);\n\t*/}",
"@Test\n public void testDistantPoints() {\n // OK with 1000 visited nodes:\n MapMatching mapMatching = new MapMatching(hopper, algoOptions);\n List<GPXEntry> inputGPXEntries = createRandomGPXEntries(\n new GHPoint(51.23, 12.18),\n new GHPoint(51.45, 12.59));\n MatchResult mr = mapMatching.doWork(inputGPXEntries);\n\n assertEquals(57650, mr.getMatchLength(), 1);\n assertEquals(2747796, mr.getMatchMillis(), 1);\n\n // not OK when we only allow a small number of visited nodes:\n AlgorithmOptions opts = AlgorithmOptions.start(algoOptions).maxVisitedNodes(1).build();\n mapMatching = new MapMatching(hopper, opts);\n try {\n mr = mapMatching.doWork(inputGPXEntries);\n fail(\"Expected sequence to be broken due to maxVisitedNodes being too small\");\n } catch (RuntimeException e) {\n assertTrue(e.getMessage().startsWith(\"Sequence is broken for submitted track\"));\n }\n }",
"private static Set<Integer> approxVertexCover(Set<Pair<Integer>> edges, Set<Integer> nodes, Set<Integer> currCover){\r\n\t\t/*\r\n\t\t * 1. Sort mutation groups by size.\r\n\t\t * 2. Find largest mutation (that hasn't been removed).\r\n\t\t * -> Find all edges with this group.\r\n\t\t * -> Store connecting nodes in currCover\r\n\t\t * -> Remove the node's connecting edges and corresponding nodes\r\n\t\t * 3. Repeat 2 until no edges left \r\n\t\t */\r\n\t\t//Initialize edges and nodes\r\n\t\tSet<Pair<Integer>> allEdges = new HashSet<Pair<Integer>>(edges);\r\n\t\tSet<Integer> allNodes = new HashSet<Integer>(nodes);\r\n\t\t\r\n\t\tint numEdgesInTree = getNumTotalEdges();\r\n\t\tint totalMut = (int) getTotalMutations();\r\n\t\t/**\r\n\t\t * Taken out for time testing\r\n\t\t */\r\n//\t\tSystem.out.println(\"Total Mutations: \" + totalMut);\r\n\t\tint conflictThreshold = getConflictThreshold(totalMut, numEdgesInTree);\r\n\t\t//System.out.println(\"Conflict Threshold: \" + conflictThreshold);\r\n\t\t//while there are still conflicting edges\r\n\t\twhile (!allEdges.isEmpty()){\r\n\t\t\t//find largest node\r\n\t\t\tint maxNode = -1;\r\n\t\t\tdouble maxMutRate = 0.0;\r\n\t\t\tfor (Integer node: allNodes){\r\n\t\t\t\tdouble currMutRate = rowToMutRateMap.get(node+1);\r\n\t\t\t\tif (currMutRate > maxMutRate){\r\n\t\t\t\t\tmaxMutRate = currMutRate;\r\n\t\t\t\t\tmaxNode = node;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/* recalculate threshold */\r\n\t\t\tif (maxNode == 113){\r\n\t\t\t}\r\n\t\t\tconflictThreshold = getConflictThreshold(totalMut, numEdgesInTree);\r\n\t\t\t/**\r\n\t\t\t * Taken out for time testing\r\n\t\t\t */\r\n//\t\t\tSystem.out.println(\"Conflict Threshold: \" + conflictThreshold);\r\n\t\t\t/*\r\n\t\t\t * if the highest mut rate is less than\r\n\t\t\t * conflictThreshold, no more nodes\r\n\t\t\t * can be added to maximal independent set,\r\n\t\t\t * meaning remaining nodes should be put\r\n\t\t\t * in vertex cover\r\n\t\t\t */\r\n\t\t\tif (maxMutRate < conflictThreshold) {\r\n\t\t\t\tcurrCover.addAll(allNodes);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//remove largest node\r\n\t\t\tallNodes.remove(maxNode);\r\n\t\t\tnumEdgesInTree++;\r\n\t\t\t//find all nodes which conflict with largest\r\n\t\t\tfor (Pair<Integer> edge: allEdges){\r\n\t\t\t\tif (edge.getFirst().equals(maxNode)){\r\n\t\t\t\t\tint conflictNode = edge.getSecond().intValue();\r\n\t\t\t\t\tcurrCover.add(conflictNode);\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t} else if (edge.getSecond().equals(maxNode)){\r\n\t\t\t\t\tint conflictNode = edge.getFirst().intValue();\r\n\t\t\t\t\tcurrCover.add(conflictNode);\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//System.out.println(\"Edges left after initial trimming: \" + allEdges.toString());\r\n\t\t\t//Remove these nodes\r\n\t\t\tallNodes.removeAll(currCover);\r\n\t\t\t//System.out.println(\"Remaining Nodes: \" + allNodes.toString());\r\n\t\t\t//Remove any edges \r\n\t\t\tSet<Pair<Integer>> edgesToRemove = new HashSet<Pair<Integer>>();\r\n\t\t\tfor (Pair<Integer> edge: allEdges){\r\n\t\t\t\tint first = edge.getFirst().intValue();\r\n\t\t\t\tint second = edge.getSecond().intValue();\r\n\t\t\t\tif (currCover.contains(first) || currCover.contains(second)){\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t\tedgesToRemove.add(edge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tallEdges.removeAll(edgesToRemove);\r\n\t\t\t//System.out.println(\"Edges left after final cuts: \" + allEdges.toString());\r\n\t\t}\r\n\t\treturn currCover;\r\n\t}",
"@Override\n \tpublic Solution solve() {\n \t\tfor (int i = 0; i < n; i++) {\n \t\t\tnest[i] = generator.getSolution();\n \t\t}\n \n \t\tfor (int t = 0; t < maxGeneration; t++) { // While (t<MaxGeneration) or\n \t\t\t\t\t\t\t\t\t\t\t\t\t// (stop criterion)\n \t\t\t// Get a cuckoo randomly (say, i) and replace its solution by\n \t\t\t// performing random operations;\n \t\t\tint i = r.nextInt(n);\n \t\t\tSolution randomNest = nest[i];\n \t\t\t//FIXME: randomNest = solutionModifier.modify(nest[i]);\n \n \t\t\t// Evaluate its quality/fitness\n \t\t\tint fi = randomNest.f();\n \n \t\t\t// Choose a nest among n (say, j) randomly;\n \t\t\tint j = r.nextInt(n);\n \t\t\tint fj = f[j];\n \n \t\t\tif (fi > fj) {\n \t\t\t\tnest[i] = randomNest;\n \t\t\t\tf[i] = fi;\n \t\t\t}\n \n \t\t\tsort();\n \t\t\t// A fraction (pa) of the worse nests are abandoned and new ones are built;\n\t\t\tfor(i = n-toAbandon; i<n; i++) {\n \t\t\t\tnest[i] = generator.getSolution();\n \t\t\t}\n \t\t\t\n \t\t\t// Rank the solutions/nests and find the current best;\n \t\t\tsort();\n \t\t}\n \n \t\treturn nest[0];\n \t}",
"public static void gbpusdDEbest(String dir) {\n \n /**\n * Settings of the evolutionary algorithm - Differential Evolution\n */\n \n Algorithm de;\n int dimension = dim; //Length of an individual - when using functions in GFS with maximum number of required arguments max_arg = 2, 2/3 are designated for program, 1/3 for constant values - for 60 it is 40 and 20\n int NP = 75; //Size of the population - number of competitive solutions\n int generations = gen; //Stopping criterion - number of generations in evolution\n int MAXFES = generations * NP; //Number of fitness function evaluations\n double f = 0.5, cr = 0.8; //Scaling factor f and crossover rate cr\n AP.util.random.Random generator = new AP.util.random.UniformRandom(); //Random number generator\n \n /**\n * Symbolic regression part\n * \n * Settings of the dataset which is regressed\n * Example: Sextic problem\n */\n \n // 50 points from range <-1, 1>, another type of data providing is possible\n double[][] dataset_points = dataset;\n ArrayList<AP_object> GFS = new ArrayList<>();\n GFS.add(new AP_Plus()); //Addition\n GFS.add(new AP_Sub()); //Subtraction\n GFS.add(new AP_Multiply()); //Mulitplication\n GFS.add(new AP_Div()); //Divison\n GFS.add(new AP_Abs());\n GFS.add(new AP_Cos());\n GFS.add(new AP_Cubic());\n GFS.add(new AP_Exp());\n GFS.add(new AP_Ln());\n GFS.add(new AP_Log10());\n GFS.add(new AP_Mod());\n GFS.add(new AP_Quad());\n GFS.add(new AP_Sin());\n GFS.add(new AP_Sigmoid());\n GFS.add(new AP_Sqrt());\n GFS.add(new AP_Tan());\n GFS.add(new AP_aTOb());\n GFS.add(new AP_x1()); //Independent variable x1\n// GFS.add(new AP_Const_static()); //Constant object - value is evolved in the extension of the individuals\n //More functions and terminals for GFS can be found or added to model.ap.objects\n \n double const_min = -10; //Minimum value of constants\n double const_max = 10; //Maximum value of constants\n \n APtf tf = new APdataset(dataset_points, GFS, const_min, const_max); //Dataset constructor\n\n /**\n * Additional variables\n */\n \n int runs = run_count; //Number of runs of the regression\n \n double min; //Helping variable for best individual in terms of fitness function value\n double[] bestArray = new double[runs]; //Array for statistics\n int i, best; //Additional helping variables\n\n /**\n * Runs of the algorithm with statistical analysis\n */\n for (int k = 0; k < runs; k++) {\n\n best = 0;\n i = 0;\n min = Double.MAX_VALUE;\n \n de = new AP_DEbest(dimension, NP, MAXFES, tf, generator, f, cr, null);\n\n de.run();\n\n PrintWriter writer;\n\n try {\n writer = new PrintWriter(dir + tf.name() + \"-DEbest\" + k + \".txt\", \"UTF-8\");\n\n writer.print(\"{\");\n \n for (int ii = 0; ii < ((AP_DEbest)de).getBestHistory().size(); ii++) {\n\n writer.print(String.format(Locale.US, \"%.10f\", ((AP_DEbest)de).getBestHistory().get(ii).fitness));\n\n if (ii != ((AP_DEbest)de).getBestHistory().size() - 1) {\n writer.print(\",\");\n }\n\n }\n\n writer.print(\"}\");\n\n writer.close();\n\n } catch (FileNotFoundException | UnsupportedEncodingException ex) {\n Logger.getLogger(AP_LSHADE.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n bestArray[k] = de.getBest().fitness - tf.optimum();\n\n /**\n * AP best result value and equation.\n */\n\n System.out.println(\"=================================\");\n System.out.println(\"Best obtained fitness function value: \\n\" + (de.getBest().fitness - tf.optimum()));\n System.out.println(\"Equation: \\n\" + ((AP_Individual) de.getBest()).equation);\n System.out.println(\"Vector: \\n\" + Arrays.toString(((AP_Individual) de.getBest()).vector));\n System.out.println(\"=================================\");\n \n for(AP_Individual ind : ((AP_DEbest)de).getBestHistory()){\n i++;\n if(ind.fitness < min){\n min = ind.fitness;\n best = i;\n }\n if(ind.fitness == 0){\n System.out.println(\"Solution found in \" + i + \" CFE\");\n break;\n }\n }\n System.out.println(\"Best solution found in \" + best + \" CFE\");\n \n System.out.println(\"\\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\n\");\n \n \n }\n\n System.out.println(\"=================================\");\n System.out.println(\"Min: \" + DoubleStream.of(bestArray).min().getAsDouble());\n System.out.println(\"Max: \" + DoubleStream.of(bestArray).max().getAsDouble());\n System.out.println(\"Mean: \" + new Mean().evaluate(bestArray));\n System.out.println(\"Median: \" + new Median().evaluate(bestArray));\n System.out.println(\"Std. Dev.: \" + new StandardDeviation().evaluate(bestArray));\n System.out.println(\"=================================\");\n \n }",
"public void buildGraph(){\n\t}",
"private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\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 }",
"protected synchronized void initGraph() throws Throwable {\r\n\t\tif (!initialized) {\r\n\t\t\tinitialized = true;\r\n\t\t\tif (rootGenerator instanceof MultipleRootGenerator) {\r\n\t\t\t\tCollection<Node<T, V>> roots = ((MultipleRootGenerator<T>) rootGenerator).getRoots().stream().map(n -> newNode(null, n)).collect(Collectors.toList());\r\n\t\t\t\tfor (Node<T, V> root : roots) {\r\n\t\t\t\t\tlabelNode(root);\r\n\t\t\t\t\topen.add(root);\r\n\t\t\t\t\tlogger.info(\"Labeled root with {}\", root.getInternalLabel());\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tNode<T, V> root = newNode(null, ((SingleRootGenerator<T>) rootGenerator).getRoot());\r\n\t\t\t\tlabelNode(root);\r\n\t\t\t\topen.add(root);\r\n\t\t\t}\r\n\r\n\t\t\t// check if the equals method is explicitly implemented.\r\n\t\t\t// Method [] methods = open.peek().getPoint().getClass().getDeclaredMethods();\r\n\t\t\t// boolean containsEquals = false;\r\n\t\t\t// for(Method m : methods)\r\n\t\t\t// if(m.getName() == \"equals\") {\r\n\t\t\t// containsEquals = true;\r\n\t\t\t// break;\r\n\t\t\t// }\r\n\t\t\t//\r\n\t\t\t// if(!containsEquals)\r\n\t\t\t// this.parentDiscarding = ParentDiscarding.NONE;\r\n\t\t}\r\n\t}",
"public void runAlgorithm(){\n for(int i = 0; i < graph.length;i++){\n for(int j = 0; j < graph[0].length; j++){\n TC[i][j] = graph[i][j];\n }\n }\n \n //main algo\n for(int k = 0; k < graph.length; k++ ){\n for(int i = 0; i < graph.length; i++)\n for(int j = 0; j < graph[0].length; j++){\n if( i != k && j != k){\n TC[i][j] = TC[i][j] | (TC[i][k] & TC[k][j]);\n }\n }\n }\n \n printTC();\n }",
"@Override\n public void postRound() {\n super.postRound();\n Integer res = 0;\n if(this.algorithm_choosed!=-1){\n switch(this.algorithm_choosed) {\n case 1:\n if((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.first_Algorithm){\n this.first_Algorithm = true;\n Tools.appendToOutput(\"Algorithm1 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm1 find this size of max matching \"+res+\"\\n\");\n }\n break;\n case 2:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.second_Algorithm) {\n this.second_Algorithm = true;\n Tools.appendToOutput(\"Algorithm2 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm2 find this size of max matching \"+res+\"\\n\");\n }\n break;\n case 3:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.third_Algorithm) {\n this.third_Algorithm = true;\n Tools.appendToOutput(\"Algorithm3 converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm3 find this size of max matching \"+res+\"\\n\");\n this.tempFourth = res;\n }\n break;\n case 4:\n if(!this.fourth_algorithm && (res=this.checkingIfAllNodesHasFinished())!=-1) {\n Integer c = 0;\n this.fourth_algorithm = true;\n Tools.appendToOutput(\"Maximal converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Maximal matching size is = \"+res+\"\\n\");\n //log.logln(\"Try to find the optimum!!!\");\n for (Iterator<Node> it = Tools.getNodeList().iterator(); it.hasNext();) {\n MS4Node node = (MS4Node) it.next();\n if(node.isMarried()){\n c+=1;\n }\n node.setFindTheOptimum();\n node.end_flag = false;\n }\n this.printTheMarriages();\n //log.logln(\"Total number of nodes married = \"+c);\n this.tempFourth = res;\n }\n if(this.fourth_algorithm && (res=this.checkingIfAllNodesHasFinished())!=-1 && !this.approximazion_alg){\n Tools.appendToOutput(\"RES ---->\"+res+\"\\n\");\n for(Iterator<Node> it = Tools.getNodeList().iterator();it.hasNext();){\n MS4Node node = (MS4Node)it.next();\n if(node.isSecondMatchDone()){\n //Tools.appendToOutput(\"**NODE with a success in MATCH SECOND ==\"+node.ID+\" \\n\");\n node.setColorToEdgeAndNodes(Color.BLACK, Tools.getNodeByID(node.pointingNode));\n Tools.getNodeByID(node.pointingNode).setColor(node.defaultColor);\n node.setColorToEdgeAndNodes(Color.MAGENTA, Tools.getNodeByID(node.getP_v()));\n ((MS4Node)Tools.getNodeByID(node.getP_v())).isMarried = true;\n MS4Node married = (MS4Node)Tools.getNodeByID(node.getPointingNode());\n married.setColorToEdgeAndNodes(Color.MAGENTA,Tools.getNodeByID(married.getP_v()));\n ((MS4Node)Tools.getNodeByID(married.getP_v())).isMarried = true;\n }\n }\n Integer newRes = checkingIfAllNodesHasFinished();\n Tools.appendToOutput(\"Approx algorithm converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"New Maximal matching size is = \"+newRes+\" so improved by \"+(newRes-tempFourth)+\"\\n\");\n //log.logln(\"--------------------APPROX RESULT-----------------------------\");\n Integer count = 0;\n for(Iterator<Node> it = Tools.getNodeList().iterator();it.hasNext();){\n MS4Node node = (MS4Node)it.next();\n if(node.isMarried()) {\n count++;\n }\n }\n this.printTheMarriages();\n //log.logln(\"----------------NUMBER OF MARRIED : \"+count+\"-----------------------------\");\n this.approximazion_alg = true;\n break;\n }\n case 5:\n if ((res=this.checkingIfAllNodesHasFinished())!=-1 && !this.fifth_algorithm) {\n this.fifth_algorithm = true;\n Tools.appendToOutput(\"Algorithm3_probabilistic converge in '\" + Tools.getGlobalTime() + \"'Steps'\\n\");\n Tools.appendToOutput(\"Algorithm3_probabilistic find this size of max matching \" + res + \"\\n\");\n }\n\n }\n }\n }",
"@Test\r\n public void graphTest(){\r\n DirectedGraph test= new DirectedGraph();\r\n\r\n //create shops and add to nodes list\r\n Shop one=new Shop(1,new Location(10,10));\r\n Shop two =new Shop(2,new Location(20,20));\r\n Shop three=new Shop(3,new Location(30,30));\r\n Shop four=new Shop(4,new Location(40,40));\r\n assertEquals(test.addNode(one),true);\r\n assertEquals(test.addNode(two),true);\r\n assertEquals(test.addNode(three),true);\r\n assertEquals(test.addNode(four),true);\r\n\r\n //try to add a duplicate\r\n assertEquals(test.addNode(new Shop(1,new Location(10,10))),false);\r\n\r\n //add edge\r\n assertEquals(test.addEdge(one,two,5),true);\r\n assertEquals(test.addEdge(one,three,2),true);\r\n assertEquals(test.addEdge(two,three,6),true);\r\n assertEquals(test.addEdge(four,two,8),true);\r\n\r\n //obtain a facility from the graph\r\n assertEquals(test.getFacility(one),one);\r\n\r\n //try to obtain a non-existent facility \r\n assertEquals(test.getFacility(new Shop(12,new Location(50,50))),null);\r\n\r\n //test closest neighbor \r\n assertEquals(test.returnClosestNeighbor(one),three);\r\n assertEquals(test.returnClosestNeighbor(two),one);\r\n }",
"@Test\n public void directedRouting() {\n EdgeIteratorState rightNorth, rightSouth, leftSouth, leftNorth;\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(3, 4).setDistance(3).set(speedEnc, 10, 10);\n rightNorth = graph.edge(4, 10).setDistance(1).set(speedEnc, 10, 10);\n rightSouth = graph.edge(10, 5).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(5, 6).setDistance(2).set(speedEnc, 10, 10);\n graph.edge(6, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(2, 7).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(7, 8).setDistance(9).set(speedEnc, 10, 10);\n leftSouth = graph.edge(8, 9).setDistance(1).set(speedEnc, 10, 10);\n leftNorth = graph.edge(9, 0).setDistance(1).set(speedEnc, 10, 10);\n\n // make paths fully deterministic by applying some turn costs at junction node 2\n setTurnCost(7, 2, 3, 1);\n setTurnCost(7, 2, 6, 3);\n setTurnCost(1, 2, 3, 5);\n setTurnCost(1, 2, 6, 7);\n setTurnCost(1, 2, 7, 9);\n\n final double unitEdgeWeight = 0.1;\n assertPath(calcPath(9, 9, leftNorth.getEdge(), leftSouth.getEdge()),\n 23 * unitEdgeWeight + 5, 23, (long) ((23 * unitEdgeWeight + 5) * 1000),\n nodes(9, 0, 1, 2, 3, 4, 10, 5, 6, 2, 7, 8, 9));\n assertPath(calcPath(9, 9, leftSouth.getEdge(), leftNorth.getEdge()),\n 14 * unitEdgeWeight, 14, (long) ((14 * unitEdgeWeight) * 1000),\n nodes(9, 8, 7, 2, 1, 0, 9));\n assertPath(calcPath(9, 10, leftSouth.getEdge(), rightSouth.getEdge()),\n 15 * unitEdgeWeight + 3, 15, (long) ((15 * unitEdgeWeight + 3) * 1000),\n nodes(9, 8, 7, 2, 6, 5, 10));\n assertPath(calcPath(9, 10, leftSouth.getEdge(), rightNorth.getEdge()),\n 16 * unitEdgeWeight + 1, 16, (long) ((16 * unitEdgeWeight + 1) * 1000),\n nodes(9, 8, 7, 2, 3, 4, 10));\n }",
"@Test\n\tpublic void testCellularAutomaton() {\n\t\t//Test update() function\n\t\t//Expect result\n\t\t//result1 = new int[][] {{auto.NONE, auto.PREDATOR, auto.PREDATOR},{auto.PREDATOR, auto.PREDATOR, auto.PREDATOR},{auto.PREY, auto.PREY, auto.PREY}};\n\t\t\n\t\t//use update() function\n\t\t//auto.update(autoGrid, auto.PREY, auto.PREDATOR, auto.preyProb);\n\t\t//result2 = auto.getGrid();\n\t\t\n\t\t//Compare each elements...\n\t\t/*for (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tassertTrue(result1[i][j]==result2[i][j]);\n\t\t\t}\n\t\t}*/\n\t\t\n\t\t\n\t\t/**\n\t\t * Test step() function\n\t\t */\n\t\t//Expect result\n\t\tresult3 = new int[][] {{auto.NONE, auto.PREDATOR, auto.PREY},{auto.PREDATOR, auto.PREDATOR, auto.PREDATOR},{auto.PREY, auto.PREY, auto.PREY}};\n\t\t\n\t\t//set grid as the preset autoGrid\n\t\tauto.setGrid(autoGrid);\n\t\tauto.step();\n\t\t\n\t\t//get the real actual result\n\t\tresult4 = auto.getGrid();\n\t\t\n\t\t//Compare each elements...\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tassertTrue(result3[i][j]==result4[i][j]);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint[][] edges = {{0,1},{1,2},{1,3},{4,5}};\n\t\tGraph graph = createAdjacencyList(edges, true);\n\t\tSystem.out.println(\"Number of connected graphs(Adjacency List) unDirected : \"+getNumberOfConnectedComponents(graph));\n\t\tSystem.out.println(\"Number of connected graphs(Adjacency List) Directed: \"+getNumberOfConnectedComponents(createAdjacencyList(edges, false)));\n\t\t\n\t\t//Shortest Distance & path\n\t\tint[][] edgesW = {{0,1,1},{1,2,4},{2,3,1},{0,3,3},{0,4,1},{4,3,1}};\n\t\tgraph = createAdjacencyList(edgesW, true);\n\t\tSystem.out.println(\"Shortest distance : \"+ getShortestDistance(graph, 0, 3));\n\t\t\n\t\t//Graph represented in Adjacency Matrix\n\t\tint[][] adjacencyMatrix = {{0,1,0,0,1,0},{1,0,1,1,0,0},{0,1,0,1,0,0},{0,1,0,0,0,0},{0,0,0,0,0,0},{0,0,0,0,0,0}};\n\t\t\n\t\t// Connected components or Friends circle\n\t\tSystem.out.println(\"Number of connected graphs(Adjacency Matrix) unDirected Recursive: \"+getNumberOfConnectedComponents(adjacencyMatrix));\n\t\tSystem.out.println(\"Number of connected graphs(Adjacency Matrix) unDirected Iterative: \"+getNumberOfConnectedComponents(adjacencyMatrix));\n\n\t\tSystem.out.println(\"Shortest distance : \"+ getShortestDistance(adjacencyMatrix, 0, 3));\n\t\t\n\t\t// Number of Islands\n\t\tint[][] islandGrid = {{1,1,0,1},{0,1,0,0},{0,0,1,1},{0,1,1,0}};\n\t\tSystem.out.println(\"Number of islands Recursive: \"+ getNumberOfIslands(islandGrid));\n\t\t// re-initialize\n\t\tint[][] islandGridIterative = {{1,1,0,0},{0,1,0,0},{0,0,1,1},{0,1,1,0}};\n\t\tSystem.out.println(\"Number of islands Iterative: \"+ getNumberOfIslandsIterative(islandGridIterative));\n\n\n\t}",
"@Test\n public void differentLinearGraphsTest() throws Exception {\n EventNode[] g1Nodes = getChainTraceGraphNodesInOrder(new String[] {\n \"a\", \"b\", \"c\", \"d\" });\n\n EventNode[] g2Nodes = getChainTraceGraphNodesInOrder(new String[] {\n \"a\", \"b\", \"c\", \"e\" });\n\n // ///////////////////\n // g1 and g2 are k-equivalent at first three nodes for k=1,2,3\n // respectively, but no further. Subsumption follows the same pattern.\n\n // \"INITIAL\" not at root:\n testKEqual(g1Nodes[0], g2Nodes[0], 1);\n testKEqual(g1Nodes[0], g2Nodes[0], 2);\n testKEqual(g1Nodes[0], g2Nodes[0], 3);\n testKEqual(g1Nodes[0], g2Nodes[0], 4);\n testNotKEqual(g1Nodes[0], g2Nodes[0], 5);\n testNotKEqual(g1Nodes[0], g2Nodes[0], 6);\n\n // \"a\" node at root:\n testKEqual(g1Nodes[1], g2Nodes[1], 1);\n testKEqual(g1Nodes[1], g2Nodes[1], 2);\n testKEqual(g1Nodes[1], g2Nodes[1], 3);\n testNotKEqual(g1Nodes[1], g2Nodes[1], 4);\n testNotKEqual(g1Nodes[1], g2Nodes[1], 5);\n\n // \"b\" node at root:\n testKEqual(g1Nodes[2], g2Nodes[2], 1);\n testKEqual(g1Nodes[2], g2Nodes[2], 2);\n testNotKEqual(g1Nodes[2], g2Nodes[2], 3);\n\n // \"c\" node at root:\n testKEqual(g1Nodes[3], g2Nodes[3], 1);\n testNotKEqual(g1Nodes[3], g2Nodes[3], 2);\n\n // \"d\" and \"e\" nodes at root:\n testNotKEqual(g1Nodes[4], g2Nodes[4], 1);\n }",
"public static void liveDemo() {\n Scanner in = new Scanner( System.in );\n float srcTank1, srcTank2, destTank;\n int alternetPaths;\n Graph mnfld = new Graph();\n boolean runSearch = true;\n\n //might need to limit query results, too large maybe?\n //newnodes = JDBC.graphInformation(); //returns arraylist of nodes\n //mnfld.setPipes(newnodes); //set nodes to the manifold\n //JDBC.insertConnections(mnfld);\n\n//\t\t /*\n//\t\t\tfor (int i = 0; i < newnodes.length(); i++) { //length might be wrong\n//\t\t\t\t//need to look for way to add edges by looking for neighbor nodes i think\n//\t\t\t\t//loop through nodes and create Edges\n//\t\t\t\t//might need new query\n//\t\t\t\tnewedges.addEdge(node1,node2,cost);\n//\t\t\t}\n//\n//\t\t\tmnfld.setConnections(newedges);\n//\n//\t\t\tup to this point, graph should be global to Dijkstra and unused.\n//\t\t\tloop until user leaves page\n//\t\t\tget input from user for tanks to transfer\n//\t\t\tfind shortest path between both tanks\n//\t\t\tend loop\n//\t\t\tthis will change depending how html works so not spending any time now on it\n//\t\t*/\n //shortestPath.runTest();\n\n shortestPath.loadGraph( mnfld );\n while (runSearch) {\n // Gets user input\n System.out.print( \"First Source Tank: \" );\n srcTank1 = in.nextFloat();\n System.out.print( \"Second Source Tank: \" );\n srcTank2 = in.nextFloat();\n System.out.print( \"Destination Tank: \" );\n destTank = in.nextFloat();\n System.out.print( \"Desired Number of Alternate Paths: \" );\n alternetPaths = in.nextInt();\n\n // Prints outputs\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"True shortest with alt paths\" );\n Dijkstra.findAltPaths( mnfld, alternetPaths, srcTank1, destTank );\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering used connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), true );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Lineup Considering only open connections\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ), false );\n mnfld.getPipe( destTank ).printLine();\n mnfld.restoreDroppedConnections();\n\n Dijkstra.resetCosts( mnfld );\n System.out.println( \"Merge Lineup\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( srcTank1 ) );\n System.out.println( \"\\t Original Lineup: \" );\n mnfld.getPipe( destTank ).printLine();\n System.out.println( \"\\t Merged Lineup: \" );\n Dijkstra.mergePaths( mnfld, srcTank2, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n System.out.print( \"\\nRun another search [1:Yes, 0:No] :: \" );\n if (in.nextInt() == 0) runSearch = false;\n else System.out.println( \"\\n\\n\\n\" );\n }\n\n\n }",
"@Test\n public void getLocallyExecutableNodes() {\n final String LOCUS_KEY = \"locus\";\n final String EARTH_KEY = \"earth\";\n final String MOON_KEY = \"moon\";\n final String SKY_LABS_KEY = \"sky-labs\";\n AnalysisGraph graph =\n new AnalysisGraph() {\n /*\n ------------------\n | CPU |\n | | |\n | \\|/ |\n | EARTH |\n |-------|---------|\n | |\n | |\n | |\n | |\n -------|---------- |\n | \\|/ | |\n | MOON | |\n | | |\n |-----------------| |\n \\ |\n \\ |\n \\ |\n \\ |\n \\ |\n \\ |\n |------\\--|--------|\n | cpu \\ | |\n | \\ \\| |\n | \\/ \\/ | Skylabs consumes the locally generated metric\n | skylabs | CPU and also the metrics from remote nodes moon\n |------------------| and earth.\n\n In this graph:\n IntentFlow:\n - Moon -> Earth\n - SkyLabs -> Earth\n - SkyLabs -> Moon\n DataFlow:\n - Earth -> Moon\n - Earth -> SkyLabs\n - Moon -> Skylabs\n The following code tests this.\n */\n\n @Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }\n };\n\n RcaConf earthConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, EARTH_KEY);\n }\n };\n }\n };\n\n RcaConf moonConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, MOON_KEY);\n }\n };\n }\n };\n\n RcaConf skyLabsConf =\n new RcaConf() {\n @Override\n public Map<String, String> getTagMap() {\n return new HashMap<String, String>() {\n {\n this.put(LOCUS_KEY, SKY_LABS_KEY);\n }\n };\n }\n };\n\n class WireHopperDerived extends WireHopper {\n DataMsg dataMsg;\n List<IntentMsg> intentMsgs;\n int intextIdx = 0;\n\n private WireHopperDerived(IntentMsg intentMsg, DataMsg dataMsg) {\n this(Collections.singletonList(intentMsg), dataMsg);\n }\n\n private WireHopperDerived(List<IntentMsg> intentMsg, DataMsg dataMsg) {\n super(null, null, null, null, null, new AppContext());\n this.intentMsgs = intentMsg;\n this.dataMsg = dataMsg;\n }\n\n @Override\n public void sendData(DataMsg msg) {\n assertEquals(msg.getSourceGraphNode(), this.dataMsg.getSourceGraphNode());\n AssertHelper.compareLists(msg.getDestinationGraphNodes(), this.dataMsg.getDestinationGraphNodes());\n }\n\n @Override\n public void sendIntent(IntentMsg intentMsg) {\n assertEquals(\n intentMsg.getRequesterGraphNode(), this.intentMsgs.get(intextIdx).getRequesterGraphNode());\n assertEquals(\n intentMsg.getDestinationGraphNode(), this.intentMsgs.get(intextIdx).getDestinationGraphNode());\n intextIdx++;\n }\n }\n\n List<ConnectedComponent> connectedComponents = RcaUtil.getAnalysisGraphComponents(graph);\n\n class RCASchedulerTaskMock extends RCASchedulerTask {\n private RCASchedulerTaskMock(RcaConf conf, WireHopper wireHopper) {\n super(\n 100,\n Executors.newFixedThreadPool(2),\n connectedComponents,\n null,\n null,\n conf,\n wireHopper,\n new AppContext());\n }\n }\n\n RCASchedulerTaskMock earthTask =\n new RCASchedulerTaskMock(\n earthConf,\n new WireHopperDerived(\n Collections.emptyList(),\n new DataMsg(\n EARTH_KEY,\n new ArrayList<String>() {\n {\n add(MOON_KEY);\n add(SKY_LABS_KEY);\n }\n },\n null)));\n\n RCASchedulerTaskMock moonTask =\n new RCASchedulerTaskMock(\n moonConf,\n new WireHopperDerived(\n new IntentMsg(MOON_KEY, EARTH_KEY, null),\n new DataMsg(\n MOON_KEY,\n new ArrayList<String>() {\n {\n add(SKY_LABS_KEY);\n }\n },\n null)));\n RCASchedulerTaskMock skyLabsTask =\n new RCASchedulerTaskMock(\n skyLabsConf,\n new WireHopperDerived(\n new ArrayList<IntentMsg>() {\n {\n add(new IntentMsg(SKY_LABS_KEY, EARTH_KEY, null));\n add(new IntentMsg(SKY_LABS_KEY, MOON_KEY, null));\n }\n },\n null));\n\n earthTask.run();\n\n moonTask.run();\n\n skyLabsTask.run();\n }",
"public static void main(String[] args) throws IOException {\n\n // read in graph\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt(), m = scanner.nextInt();\n ArrayList<Integer>[] graph = new ArrayList[n];\n for (int i = 0; i < n; i++)\n graph[i] = new ArrayList<>();\n\n for (int i = 0; i < m; i++) {\n scanner.nextLine();\n int u = scanner.nextInt() - 1, v = scanner.nextInt() - 1; // convert to 0 based index\n graph[u].add(v);\n graph[v].add(u);\n }\n\n int[] dist = new int[n];\n Arrays.fill(dist, -1);\n // partition the vertices in each of the components of the graph\n for (int u = 0; u < n; u++) {\n if (dist[u] == -1) {\n // bfs\n Queue<Integer> queue = new LinkedList<>();\n queue.add(u);\n dist[u] = 0;\n while (!queue.isEmpty()) {\n int w = queue.poll();\n for (int v : graph[w]) {\n if (dist[v] == -1) { // unvisited\n dist[v] = (dist[w] + 1) % 2;\n queue.add(v);\n } else if (dist[w] == dist[v]) { // visited and form a odd cycle\n System.out.println(-1);\n return;\n } // otherwise the dist will not change\n }\n }\n }\n\n }\n\n BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(System.out));\n // vertices with the same dist are in the same group\n List<Integer>[] groups = new ArrayList[2];\n groups[0] = new ArrayList<>();\n groups[1] = new ArrayList<>();\n for (int u = 0; u < n; u++) {\n groups[dist[u]].add(u + 1);\n }\n for (List<Integer> g: groups) {\n writer.write(String.valueOf(g.size()));\n writer.newLine();\n for (int u: g) {\n writer.write(String.valueOf(u));\n writer.write(' ');\n }\n writer.newLine();\n }\n\n writer.close();\n\n\n }",
"@Test\n public void testSimplify() {\n ControlFlowGraph graph = new ControlFlowGraph();\n\n ControlFlowNode branch1 = new ControlFlowNode(null, graph, BRANCH);\n ControlFlowNode branch2 = new ControlFlowNode(null, graph, BRANCH);\n ControlFlowNode node1 = new ControlFlowNode(null, graph, STATEMENT);\n ControlFlowNode node2 = new ControlFlowNode(null, graph, STATEMENT);\n ControlFlowNode fictitious = new ControlFlowNode(null, graph, CONVERGE);\n\n graph.addEdge(branch1, branch2);\n graph.addEdge(branch1, fictitious);\n graph.addEdge(branch2, node1);\n graph.addEdge(branch2, fictitious);\n graph.addEdge(node1, fictitious);\n graph.addEdge(fictitious, node2);\n\n graph.simplifyConvergenceNodes();\n\n assertTrue(graph.containsEdge(branch1, node2));\n assertTrue(graph.containsEdge(branch2, node2));\n assertTrue(graph.containsEdge(node1, node2));\n assertFalse(graph.containsVertex(fictitious));\n }",
"@Test\n public void testBuildGraph_FactorArr() {\n // And now factors\n CostFunction[] factors = new CostFunction[]{\n factory.buildCostFunction( new Variable[]{v[0],v[1]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[1]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[1]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[2]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[2]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[3]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[0],v[4]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[1],v[2]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[1],v[3]}, 0 ),\n factory.buildCostFunction( new Variable[]{v[3],v[4]}, 0 ),\n };\n\n MCS mcs = new MCS(Arrays.asList(factors));\n UPFactory f = new GdlFactory();\n UPGraph result = JunctionTreeAlgo.buildGraph(f, mcs.getFactorDistribution(), mcs.getAdjacency());\n System.out.println(result);\n }",
"public PollutedVarsPointsToAnalysis(DirectedGraph<Unit> graph) {\n super(graph);\n emptyMap = new HashMap<>();\n initialMap = new HashMap<>();\n\n }",
"public static void main(String[] args) throws IOException {\n File file = new File(\"tinyGex2.txt\");\n Scanner sc = new Scanner(file);\n Graph graph = new Graph(sc.nextInt());\n int temp = sc.nextInt();\n\n for(int i = 0; i < temp; i++){\n graph.addEdge(sc.nextInt(), sc.nextInt());\n }\n\n sc.close();\n\n //here is my test client for this portion of the homework. The implementation is super simple. I did have to add a 'contains' method to Sedgwick's Bag class. Found that a bit odd, but oh well.\n System.out.println(graph.hasEdge(10, 3));\n System.out.println(graph.hasEdge(11, 1));\n System.out.println(graph.hasEdge(9, 11));\n System.out.println();\n\n /*\n * HW6\n * 4.2.4\n *\n */\n\n file = new File(\"tinyDGex2.txt\");\n sc = new Scanner(file);\n Digraph digraph = new Digraph(sc.nextInt());\n temp = sc.nextInt();\n\n for(int i = 0; i < temp; i++){\n digraph.addEdge(sc.nextInt(), sc.nextInt());\n }\n\n sc.close();\n\n //Really nothing different here. Modded the test client to make sure it was seeing that the paths only went one way. 10 and 3 are connected in both directions; 11 and 8 are not.\n System.out.println(digraph.hasEdge(10, 3));\n System.out.println(digraph.hasEdge(3, 10));\n System.out.println(digraph.hasEdge(11, 8));\n System.out.println(digraph.hasEdge(8, 11));\n System.out.println();\n\n\n /*\n * HW6\n * 4.4.3\n * Note: Since you didn't specify which graph we should use for input, I used the edge-weighted DAG on page 658 as input\n */\n\n file = new File(\"tinyEWDAG.txt\");\n sc = new Scanner(file);\n EdgeWeightedDigraph ewd = new EdgeWeightedDigraph(sc);\n sc.close();\n\n //I wanted to output the list back into the input form. It's not in the same order, but it has the same values\n //saves to 'output.txt' in the root folder if you want to look at the output\n FileWriter fw = new FileWriter(\"output.txt\");\n fw.write(ewd.toString());\n fw.close();\n\n System.out.println(ewd.edgeWeight(4, 0));\n System.out.println(ewd.edgeWeight(2, 3));\n System.out.println(ewd.edgeWeight(6, 2));\n System.out.println(ewd.edgeWeight(5, 4));\n }",
"@Test\n\tpublic void testOptimization() throws Exception {\n\t\tfor(int i = 0; i < 20000000; i++) {\n\t\t\tint _300s = (int) (Math.random() * 100);\n\t\t\tint _100s = (int) (Math.random() * 100);\n\t\t\tint _50s = (int) (Math.random() * 100);\n\t\t\tint misses = (int) (Math.random() * 100);\n\t\t\t\n\t\t\tdouble acc = OsuApiScore.getAccuracy(_300s, _100s, _50s, misses);\n\t\t\t\n\t\t\tAccuracyDistribution accuracyDistribution = AccuracyDistribution.closest(\n\t\t\t\t\t_300s + _100s + _50s + misses, misses,\n\t\t\t\t\tacc);\n\t\t\t\n\t\t\tdouble rec = OsuApiScore.getAccuracy(accuracyDistribution.getX300(),\n\t\t\t\t\taccuracyDistribution.getX100(), accuracyDistribution.getX50(),\n\t\t\t\t\taccuracyDistribution.getMiss());\n\t\t\t\n\t\t\tassertEquals(acc, rec, 0d);\n\t\t}\n\t}",
"@Test\n @Order(1)\n void algorithms() {\n \n Combination initialComb = new Combination();\n for (int i = 0; i < assignementProblem.getAssignmentData().getLength(); i++) {\n initialComb.add((long) i + 1);\n }\n assignementProblem.setInCombination(initialComb);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n }",
"public final void initialCompute() {\n\n\t\t// Create and initialize the prover\n\t\tProver p = UtilFactory.getPrototype().newProver();\n\t\tProverSettings proverSettings = ProverSettings.get();\n\t\tif (\"OpenGeoProver\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tif (\"Wu\".equalsIgnoreCase(proverSettings.proverMethod)) {\n\t\t\t\tp.setProverEngine(ProverEngine.OPENGEOPROVER_WU);\n\t\t\t} else if (\"Area\".equalsIgnoreCase(proverSettings.proverMethod)) {\n\t\t\t\tp.setProverEngine(ProverEngine.OPENGEOPROVER_AREA);\n\t\t\t}\n\t\t} else if (\"Botana\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tp.setProverEngine(ProverEngine.BOTANAS_PROVER);\n\t\t} else if (\"Recio\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tp.setProverEngine(ProverEngine.RECIOS_PROVER);\n\t\t} else if (\"PureSymbolic\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tp.setProverEngine(ProverEngine.PURE_SYMBOLIC_PROVER);\n\t\t} else if (\"Auto\".equalsIgnoreCase(proverSettings.proverEngine)) {\n\t\t\tp.setProverEngine(ProverEngine.AUTO);\n\t\t}\n\t\tp.setTimeout(proverSettings.proverTimeout);\n\t\tp.setConstruction(cons);\n\t\tp.setStatement(root);\n\t\t// Compute extra NDG's:\n\t\tp.setReturnExtraNDGs(true);\n\n\t\t// Adding benchmarking:\n\t\tdouble startTime = UtilFactory.getPrototype().getMillisecondTime();\n\t\tp.compute(); // the computation of the proof\n\t\tint elapsedTime = (int) (UtilFactory.getPrototype().getMillisecondTime()\n\t\t\t\t- startTime);\n\t\t/*\n\t\t * Don't remove this. It is needed for automated testing. (String match\n\t\t * is assumed.)\n\t\t */\n\t\tLog.debug(\"Benchmarking: \" + elapsedTime + \" ms\");\n\n\t\tProofResult proofresult = p.getProofResult();\n\t\tExtendedBoolean result = p.getYesNoAnswer();\n\n\t\tLog.debug(\"STATEMENT IS \" + proofresult + \" (yes/no: \" + result + \")\");\n\n\t\tif (proofresult == ProofResult.PROCESSING) {\n\t\t\tlist.setUndefined();\n\t\t\treturn;\n\t\t}\n\n\t\tlist.setDefined(true);\n\t\tlist.clear();\n\n\t\tif (!ExtendedBoolean.UNKNOWN.equals(result)) {\n\t\t\tBoolean unreadable = false;\n\n\t\t\tif (proofresult == ProofResult.TRUE_NDG_UNREADABLE || proofresult == ProofResult.TRUE_ON_COMPONENTS) {\n\t\t\t\tunreadable = true;\n\t\t\t}\n\n\t\t\tGeoBoolean answer = new GeoBoolean(cons);\n\t\t\tanswer.setValue(result.boolVal());\n\t\t\tlist.add(answer);\n\t\t\tif (result.boolVal()) {\n\t\t\t\tHashSet<NDGCondition> ndgresult = p.getNDGConditions();\n\t\t\t\tGeoList ndgConditionsList = new GeoList(cons);\n\t\t\t\tndgConditionsList.clear();\n\t\t\t\tndgConditionsList.setDrawAsComboBox(true);\n\t\t\t\tIterator<NDGCondition> it = ndgresult.iterator();\n\t\t\t\tTreeSet<GeoText> sortedSet = new TreeSet<>(\n\t\t\t\t\t\tGeoText.getComparator());\n\n\t\t\t\t// Collecting the set of NDG conditions.\n\t\t\t\t// The OGP data collector may left some unreadable conditions\n\t\t\t\t// so we make sure if the condition is readable.\n\t\t\t\twhile (!unreadable && it.hasNext()) {\n\t\t\t\t\tGeoText ndgConditionText = new GeoText(cons);\n\t\t\t\t\tNDGCondition ndgc = it.next();\n\t\t\t\t\t// Do not print unnecessary conditions:\n\t\t\t\t\tif (ndgc.getReadability() > 0) {\n\t\t\t\t\t\tndgc.rewrite(cons);\n\t\t\t\t\t\tStringBuilder s = null;\n\n\t\t\t\t\t\tif (relTool) {\n\t\t\t\t\t\t\tRelationNumerical rn = new RelationNumerical(kernel);\n\t\t\t\t\t\t\tString cond = ndgc.getCondition();\n\t\t\t\t\t\t\tif (\"AreParallel\".equals(cond)) {\n\t\t\t\t\t\t\t\t// non-parallism in 2D means intersecting\n\t\t\t\t\t\t\t\t// FIXME: this is not true for 3D\n\t\t\t\t\t\t\t\ts = sb(rn.intersectString(\n\t\t\t\t\t\t\t\t\t\tndgc.getGeos()[0], ndgc.getGeos()[1],\n\t\t\t\t\t\t\t\t\t\ttrue, getLoc()));\n\t\t\t\t\t\t\t} else if (\"AreCollinear\".equals(cond)) {\n\t\t\t\t\t\t\t\ts = sb(rn\n\t\t\t\t\t\t\t\t\t\t.triangleNonDegenerateString(\n\t\t\t\t\t\t\t\t\t\t\t\t(GeoPoint) ndgc.getGeos()[0],\n\t\t\t\t\t\t\t\t\t\t\t\t(GeoPoint) ndgc.getGeos()[1],\n\t\t\t\t\t\t\t\t\t\t\t\t(GeoPoint) ndgc.getGeos()[2],\n\t\t\t\t\t\t\t\t\t\t\t\tgetLoc()));\n\t\t\t\t\t\t\t} else if (\"AreEqual\".equals(cond)) {\n\t\t\t\t\t\t\t\ts = sb(rn.equalityString(\n\t\t\t\t\t\t\t\t\t\tndgc.getGeos()[0], ndgc.getGeos()[1],\n\t\t\t\t\t\t\t\t\t\tfalse, getLoc()));\n\t\t\t\t\t\t\t} else if (\"ArePerpendicular\".equals(cond)) {\n\t\t\t\t\t\t\t\ts = sb(rn.perpendicularString(\n\t\t\t\t\t\t\t\t\t\t(GeoLine) ndgc.getGeos()[0],\n\t\t\t\t\t\t\t\t\t\t(GeoLine) ndgc.getGeos()[1], false,\n\t\t\t\t\t\t\t\t\t\tgetLoc()));\n\t\t\t\t\t\t\t} else if (\"AreCongruent\".equals(cond)) {\n\t\t\t\t\t\t\t\ts = sb(rn.congruentSegmentString(\n\t\t\t\t\t\t\t\t\t\tndgc.getGeos()[0], ndgc.getGeos()[1],\n\t\t\t\t\t\t\t\t\t\tfalse, getLoc()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (s == null || !relTool) {\n\t\t\t\t\t\t\tGeoElement[] geos = ndgc.getGeos();\n\t\t\t\t\t\t\tif (geos == null) { // formula with quantities\n\t\t\t\t\t\t\t\ts = sb(ndgc.getCondition());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ts = sb(getLoc()\n\t\t\t\t\t\t\t\t\t\t.getCommand(ndgc.getCondition()));\n\t\t\t\t\t\t\t\ts.append(\"[\");\n\t\t\t\t\t\t\t\tfor (int i = 0; i < ndgc\n\t\t\t\t\t\t\t\t\t\t.getGeos().length; ++i) {\n\t\t\t\t\t\t\t\t\tif (i > 0) {\n\t\t\t\t\t\t\t\t\t\ts.append(',');\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\t * There can be a case when the underlying\n\t\t\t\t\t\t\t\t\t * prover sends such objects which cannot be\n\t\t\t\t\t\t\t\t\t * understood by GeoGebra. In this case we\n\t\t\t\t\t\t\t\t\t * use the \"Objects\" word. In this case we\n\t\t\t\t\t\t\t\t\t * normally return ProveResult.UNKNOWN to\n\t\t\t\t\t\t\t\t\t * not confuse the student, but for sure, we\n\t\t\t\t\t\t\t\t\t * still do the check here as well.\n\t\t\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\t\t\tGeoElement geo = ndgc.getGeos()[i];\n\t\t\t\t\t\t\t\t\tif (geo != null) {\n\t\t\t\t\t\t\t\t\t\ts.append(ndgc.getGeos()[i]\n\t\t\t\t\t\t\t\t\t\t\t\t.getLabelSimple());\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\ts.append(Unicode.ELLIPSIS);\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\ts.append(\"]\");\n\t\t\t\t\t\t\t\tif (relTool) {\n\t\t\t\t\t\t\t\t\ts.insert(0, getLoc().getMenu(\"not\") + \" \");\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\n\t\t\t\t\t\tndgConditionText.setTextString(s.toString());\n\t\t\t\t\t\tndgConditionText.setLabelVisible(false);\n\t\t\t\t\t\tndgConditionText.setEuclidianVisible(false);\n\t\t\t\t\t\tsortedSet.add(ndgConditionText);\n\t\t\t\t\t}\n\t\t\t\t\t// For alphabetically ordering, we need a sorted set here:\n\t\t\t\t}\n\t\t\t\t// Copy the sorted list into the output:\n\t\t\t\tIterator<GeoText> it2 = sortedSet.iterator();\n\t\t\t\twhile (it2.hasNext()) {\n\t\t\t\t\tndgConditionsList.add(it2.next());\n\t\t\t\t}\n\n\t\t\t\tif (unreadable) {\n\t\t\t\t\tGeoText ndgConditionText = new GeoText(cons);\n\t\t\t\t\tString cond = Unicode.ELLIPSIS + \"\";\n\t\t\t\t\tndgConditionText.setTextString(cond);\n\t\t\t\t\tndgConditionText.setLabelVisible(false);\n\t\t\t\t\tndgConditionText.setEuclidianVisible(false);\n\t\t\t\t\tsortedSet.add(ndgConditionText);\n\t\t\t\t\tndgConditionsList.add(ndgConditionText);\n\t\t\t\t}\n\n\t\t\t\t// Put this list to the final output (if non-empty):\n\t\t\t\tif (ndgConditionsList.size() > 0) {\n\t\t\t\t\tlist.add(ndgConditionsList);\n\t\t\t\t}\n\n\t\t\t\tif (proofresult == ProofResult.TRUE_ON_COMPONENTS) {\n\t\t\t\t\tGeoText classification = new GeoText(cons);\n\t\t\t\t\tString c = \"c\";\n\t\t\t\t\tclassification.setTextString(c);\n\t\t\t\t\tclassification.setLabelVisible(false);\n\t\t\t\t\tclassification.setEuclidianVisible(false);\n\t\t\t\t\tlist.add(classification);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Don't remove this. It is needed for testing the web platform. (String\n\t\t * match is assumed.)\n\t\t */\n\t\tLog.debug(\"OUTPUT for ProveDetails: \" + list);\n\n\t}",
"@Test\n public void cyclicalGraphs1Test() throws Exception {\n // NOTE: we can't use the parser to create a circular graph because\n // vector clocks are partially ordered and do not admit cycles. So we\n // have to create circular graphs manually.\n ChainsTraceGraph g1 = new ChainsTraceGraph();\n List<EventNode> g1Nodes = addNodesToGraph(g1, new String[] { \"a\", \"a\",\n \"a\" });\n // Create a loop in g1, with 3 nodes\n g1Nodes.get(0).addTransition(g1Nodes.get(1), Event.defTimeRelationStr);\n g1Nodes.get(1).addTransition(g1Nodes.get(2), Event.defTimeRelationStr);\n g1Nodes.get(2).addTransition(g1Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g1, 0);\n\n ChainsTraceGraph g2 = new ChainsTraceGraph();\n List<EventNode> g2Nodes = addNodesToGraph(g2, new String[] { \"a\", \"a\" });\n // Create a loop in g2, with 2 nodes\n g2Nodes.get(0).addTransition(g2Nodes.get(1), Event.defTimeRelationStr);\n g2Nodes.get(1).addTransition(g2Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g2, 1);\n\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 1);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 2);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 3);\n testKEqual(g1Nodes.get(0), g2Nodes.get(0), 4);\n\n ChainsTraceGraph g3 = new ChainsTraceGraph();\n List<EventNode> g3Nodes = addNodesToGraph(g2, new String[] { \"a\" });\n // Create a loop in g3, from a to itself\n g3Nodes.get(0).addTransition(g3Nodes.get(0), Event.defTimeRelationStr);\n exportTestGraph(g3, 2);\n\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 1);\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 2);\n testKEqual(g3Nodes.get(0), g2Nodes.get(0), 3);\n\n ChainsTraceGraph g4 = new ChainsTraceGraph();\n List<EventNode> g4Nodes = addNodesToGraph(g2, new String[] { \"a\" });\n exportTestGraph(g4, 2);\n\n testKEqual(g4Nodes.get(0), g2Nodes.get(0), 1);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 2);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 3);\n testNotKEqual(g4Nodes.get(0), g2Nodes.get(0), 4);\n }",
"public static void prePare() throws ParseException, IOException {\n\t\t// 1. data base\n\t\tString dbName = home + \"DBFile_Raw\";\n\t\tIGraphDatabase gDB = new GraphDatabase_OnDisk(dbName,\n\t\t\t\tMyFactory.getSmilesParser());\n\t\t// 2. Generate training queries: [normal distribution mean 100, variance\n\t\t// 50]\n\t\tString trainQuery = home + \"trainQuery\";\n\t\tGaussianGenerator gen = new GaussianGenerator(6, 2);\n\t\tfloat totalCount = 10000;\n\t\tint trainSize = (int) (totalCount * 0.8);\n\t\tGraph[] gs = new Graph[trainSize];\n\t\tfor (int i = 0; i < trainSize; i++) {\n\t\t\tint count = (int) (gen.getNext());\n\t\t\tif (count < 10) {\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tgs[i] = MergeGraph.mergeGraphs(gDB, count);\n\t\t}\n\t\tRandomChoseDBGraph.saveGDB(gs, MyFactory.getUnCanDFS(), trainQuery);\n\t\t// 3. Generate test queries\n\t\tString testQuery = home + \"testQuery\";\n\t\tint testSize = (int) (totalCount * 0.2);\n\t\tgs = new Graph[testSize];\n\t\tfor (int i = 0; i < testSize; i++) {\n\t\t\tint count = (int) (gen.getNext());\n\t\t\tif (count < 10) {\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tgs[i] = MergeGraph.mergeGraphs(gDB, count);\n\t\t}\n\t\tRandomChoseDBGraph.saveGDB(gs, MyFactory.getUnCanDFS(), testQuery);\n\t}",
"public void TestMe(MyGraph testGraph) {\n System.out.println(\"SearchTree Test:\");\n Instance testInstance = new Instance(testGraph, 20);\n System.out.println(solve(testInstance));\n removeSingletons(testGraph);\n System.out.println(testGraph.nodes);\n System.out.println(testGraph.adjacency);\n }",
"private void initFromGraph() {\n CHPreparationGraph prepareGraph;\n if (chConfig.getTraversalMode().isEdgeBased()) {\n TurnCostStorage turnCostStorage = graph.getTurnCostStorage();\n if (turnCostStorage == null) {\n throw new IllegalArgumentException(\"For edge-based CH you need a turn cost storage\");\n }\n logger.info(\"Creating CH prepare graph, {}\", getMemInfo());\n CHPreparationGraph.TurnCostFunction turnCostFunction = CHPreparationGraph.buildTurnCostFunctionFromTurnCostStorage(graph, chConfig.getWeighting());\n prepareGraph = CHPreparationGraph.edgeBased(graph.getNodes(), graph.getEdges(), turnCostFunction);\n nodeContractor = new EdgeBasedNodeContractor(prepareGraph, chBuilder, pMap);\n } else {\n logger.info(\"Creating CH prepare graph, {}\", getMemInfo());\n prepareGraph = CHPreparationGraph.nodeBased(graph.getNodes(), graph.getEdges());\n nodeContractor = new NodeBasedNodeContractor(prepareGraph, chBuilder, pMap);\n }\n maxLevel = nodes;\n // we need a memory-efficient priority queue with an efficient update method\n // TreeMap is not memory-efficient and PriorityQueue does not support an efficient update method\n // (and is not memory efficient either)\n sortedNodes = new MinHeapWithUpdate(prepareGraph.getNodes());\n logger.info(\"Building CH prepare graph, {}\", getMemInfo());\n StopWatch sw = new StopWatch().start();\n CHPreparationGraph.buildFromGraph(prepareGraph, graph, chConfig.getWeighting());\n logger.info(\"Finished building CH prepare graph, took: {}s, {}\", sw.stop().getSeconds(), getMemInfo());\n nodeContractor.initFromGraph();\n }",
"private static void BicingsimulatedAnnealingSearch(int num, int n_est, int nbicis, int nfurgo, int d1, int cas, String Cas, String H, String D, int s) {\n\n\n try {\n\n double MedT = 0;\n //double MedN = 0;\n //double MedB = 0;\n int iteraciones = 100;\n Estado Bicing = new Estado(n_est,nbicis,nfurgo,d1,s,1);\n Bicing.setList_cdesp(iteraciones);\n long StartTime = System.nanoTime();\n Problem problem = new Problem(Bicing, new sucesoresA(), new isGoal(), new Heuristic_Function());\n SimulatedAnnealingSearch search = new SimulatedAnnealingSearch(iteraciones, 1000, 125, 0.00001D);\n SearchAgent agent = new SearchAgent(problem, search);\n List L = search.getPathStates();\n Properties properties = agent.getInstrumentation();\n long EndTime = System.nanoTime();\n Estado E = (Estado) search.getGoalState();\n long time = ((EndTime - StartTime) / 1000000);\n MedT += time;\n //MedB += E.getganancia();\n // MedN += Integer.parseInt(properties.getProperty((String)properties.keySet().iterator().next()));\n // MedB /= num;\n // MedN /= num;\n // MedT /= num;\n //MedB = (Math.round(MedB*100.0)/100.0);\n Writer output;\n output = new BufferedWriter(new FileWriter(\"Estadisticas_\" + Cas + \"_D\" + D + \"_H\" + H + \"S.txt\", true));\n double [] vec = E.getearnings();\n for (int i = 0 ; i < iteraciones; ++i) {\n String S = \"\" + vec[i];\n S = S + '\\n';\n output.append(S);\n }\n output.close();\n\n /*for (int i = 0; i < E.getN_furgo(); ++i) {\n System.out.println(\"Recorrido por furgoneta \" + i + \" \" + E.getIFurgo(i).getLong_t());\n }*/\n //printEstado(E);\n //System.out.println();\n //System.out.println(E.getganancia());\n //printActions(agent.getActions());\n //printInstrumentation(agent.getInstrumentation());\n } catch (Exception var4) {\n var4.printStackTrace();\n }\n\n }",
"private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\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\tprotected void computeWithoutTime() {\n\t\tinitShortestPaths();\n\n\t\t// Then we sort for each node v the list of terminals by the distance from v\n\t\tsortedRequiredVertices = new HashMap<Integer, TreeSet<Integer>>();\n\t\tsortRequiredVertices();\n\t\t\n\t\t// Copy of the terminals\n\t\tHashSet<Integer> req = new HashSet<Integer>(\n\t\t\t\tinstance.getRequiredVertices());\n\n\t\t// Union of all the solutions returned by the subalgorithm CH2\n\t\tHashSet<Arc> currentSol = new HashSet<Arc>();\n\n\t\t// Until all terminals are reached\n\t\twhile (req.size() > 0) {\n\n\t\t\t// We apply CH2 to reach some of the non reached terminals\n\t\t\tCouple<HashSet<Arc>, HashSet<Integer>> tree = applyCH2(req);\n\n\t\t\t// tree.first the tree returned by CH2\n\t\t\t// tree.second is the terminals of that tree\n\n\t\t\tcurrentSol.addAll(tree.first);\n\t\t\tfor (Arc a : tree.first)\n\t\t\t\tcosts.put(a, 0); // Set the cost of the arc to 0, as this arc is already used in the solution, it does not cost anything to use it again.\n\t\t\treq.removeAll(tree.second);\n\t\t}\n\n\t\t// Compute the returned solution and its cost.\n\t\tarborescence = new HashSet<Arc>();\n\t\tint c = 0;\n\t\tfor (Arc a : currentSol) {\n\t\t\tList<Arc> l = shortestPaths.get(a);\n\t\t\tif (a.getInput().equals(a.getOutput()))\n\t\t\t\tl = new ArrayList<Arc>();\n\t\t\tfor (Arc b : l) {\n\t\t\t\tarborescence.add(b);\n\t\t\t\tc += instance.getCost(b);\n\t\t\t}\n\t\t}\n\t\tcost = c;\n\t}",
"public void generateGraph() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tgraph = new boolean[map.size()][map.size()];\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject cloned = map.get(i).duplicate();\r\n\t\t\tArrayList<Location> locs = sc.traceLinearMotion(i,sc.getMaxVelocity(),cloned.getGoal());\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(j != i) {\r\n\t\t\t\t\tfor(int k = 0; k < locs.size(); k++) {\r\n\t\t\t\t\t\tcloned.setLocation(locs.get(k));\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 2)) {\r\n\t\t\t\t\t\t\tgraph[i][j] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 0)) {\r\n\t\t\t\t\t\t\tgraph[j][i] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n public void identicalLinearGraphsTest() throws Exception {\n // Create two a->b->c->d graphs\n String events[] = new String[] { \"a\", \"b\", \"c\", \"d\" };\n EventNode[] g1Nodes = getChainTraceGraphNodesInOrder(events);\n EventNode[] g2Nodes = getChainTraceGraphNodesInOrder(events);\n\n // Check that g1 and g2 are equivalent for all k at every corresponding\n // node, regardless of subsumption.\n\n // NOTE: both graphs have an additional INITIAL and TERMINAL nodes, thus\n // the +2 in the loop condition.\n EventNode e1, e2;\n for (int i = 0; i < (events.length + 2); i++) {\n e1 = g1Nodes[i];\n e2 = g2Nodes[i];\n for (int k = 1; k < 6; k++) {\n testKEqual(e1, e2, k);\n testKEqual(e1, e1, k);\n }\n }\n }",
"@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void compareAStarLimitedOpen(List<Position> places, int start, int end, int step) {\n if (end < start) {\n int tmp = end;\n end = start;\n start = tmp;\n }\n Node startNode = graph.findClosest(places.get(0), false);\n Node endNode = graph.findClosest(places.get((1)), false);\n System.out.println(\"==================================================\");\n System.out.println(\"Benchmark A-Star with weighted h\");\n System.out.println(\"From \" + start + \" to \" + end + \" steps \" + step);\n System.out.println(distance.calcDist(startNode, endNode));\n System.out.println(\"==================================================\");\n System.out.println();\n\n AStarResult compareResult;\n try {\n compareResult = AStarAlgorithm.search(graph, startNode, endNode, \"Compare\", 1, 0);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return;\n }\n\n //\n int curr;\n for (curr = start; curr <= end; curr += step) {\n Path path = new Path(\"\");\n AStarResult result;\n try {\n result = AStarAlgorithm.search(graph, startNode, endNode, \"Compare \" + curr, 1, curr);\n path.addSegment(result.getPath());\n FileWriter fstream = new FileWriter(curr + \".gpx\");\n BufferedWriter out = new BufferedWriter(fstream);\n String gpx = GPXBuilder.build(path.getGeoLineString(true), path.getName());\n out.write(gpx);\n out.close();\n fstream.close();\n System.out.println(\"Result for w=\" + curr);\n System.out.println(\"Expanded Nodes: \" + result.getExpandedNodesCount() + \" (\" + (result.getExpandedNodesCount() - compareResult.getExpandedNodesCount()) + \")\");\n System.out.println(\"Path Length: \" + result.getPath().getLength() + \" (\" + (result.getPath().getLength() - compareResult.getPath().getLength()) + \")\");\n System.out.println(\"SortTime: \" + result.getSorttime() + \" (\" + (result.getSorttime() - compareResult.getSorttime()) + \")\");\n System.out.println(\"Runtime: \" + result.getRuntime() + \" (\" + (result.getRuntime() - compareResult.getRuntime()) + \")\");\n System.out.println();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }\n }",
"@Test\n\tpublic void testDAG() {\n\t\tDirectedGraph<Integer, DirectedEdge<Integer>> directedGraph = new DirectedGraph<Integer, DirectedEdge<Integer>>();\n\t\tdirectedGraph.addNode(1);\n\t\tdirectedGraph.addNode(2);\n\t\tdirectedGraph.addNode(3);\n\t\tdirectedGraph.addNode(4);\n\t\tdirectedGraph.addNode(5);\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(1, 2));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(1, 3));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(2, 3));\n\t\tdirectedGraph.addDirectedEdge(new DirectedEdge<Integer>(4, 5));\n\t\t\n\t\t// tested method calls\n\t\tSet<Integer> reachableNodesFrom1 = service.getReachableNodes(directedGraph, 1);\n\t\tSet<Integer> reachableNodesFrom2 = service.getReachableNodes(directedGraph, 2);\n\t\tSet<Integer> reachableNodesFrom3 = service.getReachableNodes(directedGraph, 3);\n\t\tSet<Integer> reachableNodesFrom4 = service.getReachableNodes(directedGraph, 4);\n\t\tSet<Integer> reachableNodesFrom5 = service.getReachableNodes(directedGraph, 5);\n\t\t\n\t\t// assertions\n\t\tassertEquals(ImmutableSet.of(2, 3), reachableNodesFrom1);\n\t\tassertEquals(ImmutableSet.of(3), reachableNodesFrom2);\n\t\tassertEquals(ImmutableSet.of(), reachableNodesFrom3);\n\t\tassertEquals(ImmutableSet.of(5), reachableNodesFrom4);\n\t\tassertEquals(ImmutableSet.of(), reachableNodesFrom5);\n\t}",
"public void constructGraph() {\n graph = new double[array.length][array.length];\n for (int i = 0; i < graph.length; i++) {\n Crime c1 = array[i];\n for (int j = 0; j < graph.length; j++) {\n Crime c2 = array[j];\n graph[i][j] = ((c1.getX() - c2.getX()) * (c1.getX() - c2.getX()) +\n (c1.getY() - c2.getY()) * (c1.getY() - c2.getY()));\n }\n }\n }",
"public void runAlgorithm( AdjacencyListGraph<Point2D.Double, Double> g )\n\t{\n\t\tfor ( Vertex v : g.vertices() )\n\t\t{\n\t\t\tv.put ( VERTEX_STATUS, FREE );\n\t\t}\n\n\n\t\t// initialize all the edges of the graph as being FREE (not in the matching)\n\t\tfor ( Edge e : g.edges() )\n\t\t{\n\t\t\te.put ( EDGE_STATUS, FREE ); \n\t\t}\n\n\t\tdepthFirstSearch(g);\n\n\t\tfor(Vertex v : g.vertices())\n\t\t{\n\t\t\tif (v.get(VERTEX_STATUS) == FREE)\n\t\t\t{\n\t\t\t\tfor ( Edge e : g.incidentEdges(v) )\n\t\t\t\t{\n\t\t\t\t\tVertex w = g.opposite(v, e);\n\t\t\t\t\tif(v.get(VERTEX_STATUS) == FREE && w.get(VERTEX_STATUS) == FREE)\n\t\t\t\t\t{\n\t\t\t\t\t\te.put(EDGE_STATUS, MATCHED);\n\t\t\t\t\t\tv.put(VERTEX_STATUS, MATCHED);\n\t\t\t\t\t\tw.put(VERTEX_STATUS, MATCHED);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void blockArea() {\n EdgeIteratorState edge1 = graph.edge(0, 1).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(10).set(speedEnc, 10, 10);\n EdgeIteratorState edge2 = graph.edge(2, 3).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(0, 4).setDistance(100).set(speedEnc, 10, 10);\n graph.edge(4, 5).setDistance(100).set(speedEnc, 10, 10);\n graph.edge(5, 6).setDistance(100).set(speedEnc, 10, 10);\n graph.edge(6, 3).setDistance(100).set(speedEnc, 10, 10);\n\n // usually we would take the direct route\n assertPath(calcPath(0, 3, ANY_EDGE, ANY_EDGE), 3, 30, 3000, nodes(0, 1, 2, 3));\n\n // with forced edges we might have to go around\n assertPath(calcPath(0, 3, 3, ANY_EDGE), 40, 400, 40000, nodes(0, 4, 5, 6, 3));\n assertPath(calcPath(0, 3, ANY_EDGE, 6), 40, 400, 40000, nodes(0, 4, 5, 6, 3));\n\n // with avoided edges we also have to take a longer route\n assertPath(calcPath(0, 3, ANY_EDGE, ANY_EDGE, createAvoidEdgeWeighting(edge1)), 40, 400, 40000, nodes(0, 4, 5, 6, 3));\n assertPath(calcPath(0, 3, ANY_EDGE, ANY_EDGE, createAvoidEdgeWeighting(edge2)), 40, 400, 40000, nodes(0, 4, 5, 6, 3));\n\n // enforcing forbidden start/target edges still does not allow using them\n assertNotFound(calcPath(0, 3, edge1.getEdge(), edge2.getEdge(), createAvoidEdgeWeighting(edge1)));\n assertNotFound(calcPath(0, 3, edge1.getEdge(), edge2.getEdge(), createAvoidEdgeWeighting(edge2)));\n\n // .. even when the nodes are just next to each other\n assertNotFound(calcPath(0, 1, edge1.getEdge(), ANY_EDGE, createAvoidEdgeWeighting(edge1)));\n assertNotFound(calcPath(0, 1, ANY_EDGE, edge2.getEdge(), createAvoidEdgeWeighting(edge2)));\n }",
"@Test\n public void testMST3() {\n Vertex v1 = new Vertex(1, \"A\");\n Vertex v2 = new Vertex(2, \"B\");\n Vertex v3 = new Vertex(3, \"C\");\n Vertex v4 = new Vertex(4, \"D\");\n Vertex v5 = new Vertex(5, \"E\");\n Vertex v6 = new Vertex(6, \"F\");\n\n Edge<Vertex> e1 = new Edge<>(v1, v2, 1);\n Edge<Vertex> e2 = new Edge<>(v1, v3, 1);\n Edge<Vertex> e3 = new Edge<>(v3, v4, 1);\n Edge<Vertex> e4 = new Edge<>(v3, v5, 1);\n Edge<Vertex> e5 = new Edge<>(v3, v6, 1);\n Edge<Vertex> e6 = new Edge<>(v2, v4, 10);\n Edge<Vertex> e7 = new Edge<>(v1, v5, 10);\n Edge<Vertex> e8 = new Edge<>(v1, v5, 10);\n Edge<Vertex> e9 = new Edge<>(v5, v6, 10);\n\n\n Graph<Vertex, Edge<Vertex>> g = new Graph<>();\n g.addVertex(v1);\n g.addVertex(v2);\n g.addVertex(v3);\n g.addVertex(v4);\n g.addVertex(v5);\n g.addVertex(v6);\n g.addEdge(e1);\n g.addEdge(e2);\n g.addEdge(e3);\n g.addEdge(e4);\n g.addEdge(e5);\n g.addEdge(e6);\n g.addEdge(e7);\n g.addEdge(e8);\n g.addEdge(e9);\n\n List<Edge> expectedMST = new ArrayList<>();\n expectedMST.add(e1);\n expectedMST.add(e2);\n expectedMST.add(e3);\n expectedMST.add(e4);\n expectedMST.add(e5);\n\n List<Edge<Vertex>> actualMST = g.minimumSpanningTree();\n\n for (int i = 0; i < actualMST.size(); i++) {\n assertTrue(expectedMST.contains(actualMST.get(i)));\n }\n\n for (int i = 0; i < expectedMST.size(); i++) {\n assertTrue(actualMST.contains(expectedMST.get(i)));\n }\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\n }",
"public void constructGraph(){\r\n\t\tmyGraph = new Graph();\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tmyGraph.addVertex(allSpots[i]);\r\n\t\t}\r\n\r\n\t\tfor(int i =0;i<=35;i++) {\r\n\t\t\tint th = i;\r\n\t\t\twhile(th%6!=0) {\r\n\t\t\t\tth--;\r\n\t\t\t}\r\n\t\t\tfor(int h=th;h<=th+5;h++) {\r\n\t\t\t\tif(h!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[h])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[h]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tint tv=i;\r\n\t\t\twhile(tv-6>0) {\r\n\t\t\t\ttv=tv-6;\r\n\t\t\t}\r\n\t\t\tfor(int v=tv;v<36; v=v+6) {\r\n\t\t\t\tif(v!=i) {\r\n\t\t\t\t\tif(allSpots[i].equals(allSpots[v])) {\t\t\r\n\t\t\t\t\t\tmyGraph.addEdge(allSpots[i], allSpots[v]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t//Add verticies that store the Spot objects\r\n\t\t//Add edges to connect spots that share a property along an orthogonal direction\r\n\r\n\t\t//This is the ONLY time it is ok to iterate the array.\r\n\t\t\r\n\t\t//myGraph.addVert(...);\r\n\t\t//myGraph.addEdge(...);\r\n\t}",
"public SolutionSet execute() throws JMetalException, ClassNotFoundException, IOException {\n initialization();\n createInitialSwarm() ;\n evaluateSwarm();\n initializeLeaders() ;\n initializeParticlesMemory() ;\n updateLeadersDensityEstimator() ;\n\n while (!stoppingCondition()) {\n computeSpeed(iterations_, maxIterations_);\n computeNewPositions();\n perturbation();\n evaluateSwarm();\n updateLeaders() ;\n updateParticleMemory() ;\n updateLeadersDensityEstimator() ;\n iterations_++ ;\n }\n\n tearDown() ;\n return paretoFrontApproximation() ;\n }",
"public static void main(String[] args) {\n int[] example1 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 2, 4, 6, 8, 10, 12, 14, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};\n int target1 = 59;\n int[] example2 = {2, 4, 6, 8, 10, 12, 14, 16, 18, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};\n int target2 = 59;\n int[] example3 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 2, 4, 6, 8, 10, 12, 14, 16, 18};\n int target3 = 34;\n\n int[] result1;\n int[] result2;\n int[] result3;\n\n // 1.Brute Force\n System.out.println(\"Brute Force start\");\n long startBF = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Brute Force result1 \", result1);\n println(\"Brute Force result2 \", result2);\n println(\"Brute Force result3 \", result3);\n System.out.println(\"Brute Force costs: \" + (System.currentTimeMillis() - startBF));\n\n // 2.Two Pass Hash Table\n System.out.println(\"Two Pass Hash Table start\");\n long startTP = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Two Pass Hash Table start result1 \", result1);\n println(\"Two Pass Hash Table start result2 \", result2);\n println(\"Two Pass Hash Table start result3 \", result3);\n System.out.println(\"Two Pass Hash Table costs: \" + (System.currentTimeMillis() - startTP));\n\n // 3.One Pass Hash Table\n System.out.println(\"One Pass Hash Table start\");\n long startOP = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Two Pass Hash Table start result1 \", result1);\n println(\"Two Pass Hash Table start result2 \", result2);\n println(\"Two Pass Hash Table start result3 \", result3);\n System.out.println(\"Two Pass Hash Table costs: \" + (System.currentTimeMillis() - startOP));\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) {\n System.out.println(\"..............Testing Balanced Tree..............\");\n {\n BST bst = BST.createBST();\n printPreety(bst.root);\n\n System.out.println(\"Testing Balanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(bst.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing Balanced Tree Better way: \" + isBalanced_Better(bst.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing Balanced Tree Using Memoization: \" + isBalanced_Memoization(bst.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n //System.out.println(\"Wrong algorithm:\" + isTreeAlmostBalanced(bst.root));\n }\n System.out.println();\n\n countWithBruteForce = 0;\n countWithBetterWay = 0;\n countWithMemoization = 0;\n\n System.out.println(\"..............Testing UnBalanced Tree..............\");\n {\n BST unBalancedBst = BST.createUnBalancedBST();\n printPreety(unBalancedBst.root);\n\n System.out.println(\"Testing UnBalanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(unBalancedBst.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing UnBalanced Tree Better way: \" + isBalanced_Better(unBalancedBst.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing UnBalanced Tree Using Memoization: \" + isBalanced_Memoization(unBalancedBst.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n //System.out.println(\"Wrong algorithm:\" + isTreeAlmostBalanced(unBalancedBst.root));\n }\n System.out.println();\n\n countWithBruteForce = 0;\n countWithBetterWay = 0;\n countWithMemoization = 0;\n\n System.out.println(\"..............Testing Another UnBalanced Tree..............\");\n {\n BST anotherUnbalanced = BST.createAnotherUnBalancedBST();\n printPreety(anotherUnbalanced.root);\n\n System.out.println(\"Testing another UnBalanced Tree Using Brute Force Approach: \" + isBalanced_BruteForce(anotherUnbalanced.root) + \", number of subtrees traversed: \" + countWithBruteForce);\n System.out.println(\"Testing another UnBalanced Tree Better way: \" + isBalanced_Better(anotherUnbalanced.root) + \", number of subtrees traversed: \" + countWithBetterWay);\n System.out.println(\"Testing another UnBalanced Tree Using Memoization: \" + isBalanced_Memoization(anotherUnbalanced.root, new HashMap<>()) + \", number of subtrees traversed: \" + countWithMemoization);\n }\n\n }",
"@Test\n public void testAdaptivePruningWithAdjacentBadEdges() {\n final int goodMultiplicity = 1000;\n final int variantMultiplicity = 50;\n final int badMultiplicity = 5;\n\n final SeqVertex source = new SeqVertex(\"source\");\n final SeqVertex sink = new SeqVertex(\"sink\");\n final SeqVertex A = new SeqVertex(\"A\");\n final SeqVertex B = new SeqVertex(\"B\");\n final SeqVertex C = new SeqVertex(\"C\");\n final SeqVertex D = new SeqVertex(\"D\");\n final SeqVertex E = new SeqVertex(\"E\");\n\n\n for (boolean variantPresent : new boolean[] {false, true}) {\n final SeqGraph graph = new SeqGraph(20);\n\n graph.addVertices(source, A, B, C, D, sink);\n graph.addEdges(() -> new BaseEdge(true, goodMultiplicity), source, A, B, C, sink);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), A, D, C);\n graph.addEdges(() -> new BaseEdge(false, badMultiplicity), D, B);\n\n if (variantPresent) {\n graph.addVertices(E);\n graph.addEdges(() -> new BaseEdge(false, variantMultiplicity), A, E, C);\n }\n\n final ChainPruner<SeqVertex, BaseEdge> pruner = new AdaptiveChainPruner<>(0.01, 2.0,\n ReadThreadingAssemblerArgumentCollection.DEFAULT_PRUNING_SEEDING_LOG_ODDS_THRESHOLD, 50);\n pruner.pruneLowWeightChains(graph);\n\n Assert.assertFalse(graph.containsVertex(D));\n if (variantPresent) {\n Assert.assertTrue(graph.containsVertex(E));\n }\n }\n }",
"private static void generateRandomTestDataAndPrint(GridGraph gridGraph) {\n AlgoFunction algo = AnyAnglePathfinding.setDefaultAlgoFunction();\n ArrayList<Point> points = ReachableNodes.computeReachable(gridGraph, 5, 5);\n \n LinkedList<Integer> startX = new LinkedList<>();\n LinkedList<Integer> startY = new LinkedList<>();\n LinkedList<Integer> endX = new LinkedList<>();\n LinkedList<Integer> endY = new LinkedList<>();\n LinkedList<Double> length = new LinkedList<>();\n \n int size = points.size();\n System.out.println(\"Points: \" + size);\n \n for (int i=0; i<100; i++) {\n Random random = new Random();\n int first = random.nextInt(size);\n int last = random.nextInt(size-1);\n if (last == first) last = size-1; // prevent first and last from being the same\n \n Point s = points.get(first);\n Point f = points.get(last);\n int[][] path = Utility.generatePath(algo, gridGraph, s.x, s.y, f.x, f.y);\n if (path.length >= 2) {\n double len = Utility.computePathLength(gridGraph, path);\n startX.offer(s.x);\n startY.offer(s.y);\n endX.offer(f.x);\n endY.offer(f.y);\n length.offer(len);\n }\n if (i%10 == 0) System.out.println(\"Computed: \" + i);\n }\n System.out.println(startX);\n System.out.println(startY);\n System.out.println(endX);\n System.out.println(endY);\n System.out.println(length);\n }",
"public void testaGraph() {\n\t\tEstacaoDAO a = new EstacaoDAO();\n\t\ta.carregarEstacoes();\n\t\tLinha b = new Linha(\"a\");\n\t\tb.loadAllStations(a);\n\t\tb.shortestPath(a,\"Curado\",\"Recife\");\n\t}",
"public abstract Multigraph buildMatchedGraph();",
"private void test() {\r\n \ttry {\r\n\t\t\ttestWriter.write(\"Testing started...\");\r\n\t\t\r\n\t\t\tpredictions = new HashMap<>();\r\n \trightAnswers = new HashMap<>();\r\n\r\n\r\n \t// Get results and check them\r\n \tEvaluation eval = new Evaluation(numLabels);\r\n \tfinalTestIterator.reset();\r\n\r\n \tint metaDataCounter = 0;\r\n \tint addrCounter = 0;\r\n\r\n \twhile(finalTestIterator.hasNext()) {\r\n \t// If iterator has next dataset\r\n \tfinalTestData = finalTestIterator.next();\r\n \t// Get meta-data from this dataset\r\n\r\n \t@SuppressWarnings(\"rawtypes\")\r\n \tList<?> exampleMetaData = finalTestData.getExampleMetaData();\r\n \tIterator<?> exampleMetaDataIterator = exampleMetaData.iterator();\r\n \ttestWriter.write(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n \tSystem.out.println(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n\r\n \t// Normalize data\r\n \tnormalizer.fit(finalTestData);\r\n\r\n \t// Count processed images\r\n \tnumProcessed = (metaDataCounter + 1) * batchSizeTesting;\r\n \tloaded.setText(\"Loaded and processed: \" + numProcessed + \" pictures\");\r\n\r\n \tINDArray features = finalTestData.getFeatures();\r\n \tINDArray labels = finalTestData.getLabels();\r\n \tSystem.out.println(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \t// Get right answers of NN for every input object\r\n \tint[][] rightLabels = labels.toIntMatrix();\r\n \tfor (int i = 0; i < rightLabels.length; i++) {\r\n \tRecordMetaDataURI metaDataUri = (RecordMetaDataURI) exampleMetaDataIterator.next();\r\n \t// Print address of image\r\n \tSystem.out.println(metaDataUri.getLocation());\r\n \tfor (int j = 0; j < rightLabels[i].length; j++) {\r\n \tif(rightLabels[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=right class label\r\n \trightAnswers.put(metaDataUri.getLocation(), j);\r\n \tthis.addresses.add(metaDataUri.getLocation());\r\n \t}\r\n \t}\r\n \t}\r\n \tSystem.out.println(\"\\nRight answers:\");\r\n \ttestWriter.write(\"\\nRight answers:\");\r\n \t// Print right answers\r\n \tfor(Map.Entry<String, Integer> answer : predictions.entrySet()){\r\n \t\ttestWriter.write(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \tSystem.out.printf(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \t}\r\n\r\n \t// Evaluate on the test data\r\n \tINDArray predicted = vgg16Transfer.outputSingle(features);\r\n \tint predFoundCounter = 0;\r\n \tSystem.out.println(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \t// Get predictions of NN for every input object\r\n \tint[][] labelsPredicted = predicted.toIntMatrix();\r\n \tfor (int i = 0; i < labelsPredicted.length; i++) {\r\n \tfor (int j = 0; j < labelsPredicted[i].length; j++) {\r\n \tpredFoundCounter++;\r\n \tif(labelsPredicted[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=predicted class label\r\n \tpredFoundCounter = 0;\r\n \tthis.predictions.put(this.addresses.get(addrCounter), j);\r\n \t}\r\n \telse {\r\n \tif (predFoundCounter == 3) {\r\n \t// To fix bug when searching positive predictions\r\n \tthis.predictions.put(this.addresses.get(addrCounter), 2);\r\n \t}\r\n \t}\r\n \t}\r\n \taddrCounter++;\r\n \t}\r\n \tSystem.out.println(\"\\nPredicted:\");\r\n \ttestWriter.write(\"\\nPredicted:\");\r\n \t// Print predictions\r\n \tfor(Map.Entry<String, Integer> pred : rightAnswers.entrySet()){\r\n \tSystem.out.printf(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString());\r\n \ttestWriter.write(String.format(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString()));\r\n \t}\r\n \tmetaDataCounter++;\r\n\r\n \teval.eval(labels, predicted);\r\n \t}\r\n\r\n \tSystem.out.println(\"\\n\\n Cheack loaded model on test data...\");\r\n \tSystem.out.println(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \tSystem.out.println(eval.stats());\r\n \tSystem.out.println(eval.confusionToString());\r\n \ttestWriter.write(\"\\n\\n Cheack loaded model on test data...\");\r\n \ttestWriter.write(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \ttestWriter.write(eval.stats());\r\n \ttestWriter.write(eval.confusionToString());\r\n\r\n \t// Save test rates\r\n \tthis.f1_score = eval.f1();\r\n \tthis.recall_score = eval.recall();\r\n \tthis.accuracy_score = eval.accuracy();\r\n \tthis.precision_score = eval.precision();\r\n \tthis.falseNegativeRate_score = eval.falseNegativeRate();\r\n \tthis.falsePositiveRate_score = eval.falsePositiveRate();\r\n\r\n \tthis.f1.setText(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \tthis.recall.setText(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \tthis.accuracy.setText(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \tthis.precision.setText(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \tthis.falseNegativeRate.setText(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \tthis.falsePositiveRate.setText(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n \r\n \ttestWriter.write(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \ttestWriter.write(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \ttestWriter.write(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \ttestWriter.write(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \ttestWriter.write(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \ttestWriter.write(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n\r\n \tshowBarChart();\r\n \t} catch (IOException e) {\r\n \t\tSystem.err.println(\"Error while writing to log file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public void runGenerational() {\n\n\t\tSystem.out.println(\"Runing pure generational demo.\");\n\t\tFunction<BitSet, Double> knapsackFitnessFunction = new KnapsackFitness(capacity, parseElements());\n\t\tSpace<BitSet> space = new BitSetSpace(weights.length);\n\n\t\tGeneticSelector<BitSet, Double> rouletteSelector = new RouletteGeneticSelector<>(POP_SIZE);\n\t\tGeneticCrossover<BitSet, Double> crossover = new BinaryCrossover<>(0.9);\n\t\tGeneticOperator<BitSet, Double> geneticOperator = new CustomGeneticOperator<>(crossover);\n\t\tGeneticReplacement<BitSet, Double> replacement = new GenerationalReplacement<>();\n\t\tTracer.add(Population.class);\n\t\tTracer.start();\n\n\t\tSearch<BitSet, Double> search = new GeneticAlgorithm<>(POP_SIZE, NUM_ITER, rouletteSelector, geneticOperator,\n\t\t\t\treplacement);\n\t\tOptimizationProblem<BitSet, Double> problem = new OptimizationProblem<>(space, knapsackFitnessFunction,\n\t\t\t\tComparator.reverseOrder());\n\t\tSolution<BitSet, Double> foundSolution = search.solve(problem);\n\n\t\tSystem.out.println(String.format(\"Best found solution: %f, bitset: %s\",\n\t\t\t\tknapsackFitnessFunction.calculate(foundSolution.getSolution()), foundSolution.getSolution()));\n\n\t\tBitSet optimalBitSet = parseOptimalBitSet();\n\t\tSystem.out.println(String.format(\"Optimal solution: %f, bitset: %s\",\n\t\t\t\tknapsackFitnessFunction.calculate(optimalBitSet), optimalBitSet));\n\t\tKnapsackMetric metric = new KnapsackMetric();\n\t\tmetric.putDataOfBestInFile(1);\n\t}"
] |
[
"0.6384945",
"0.63714695",
"0.6130149",
"0.6126256",
"0.5897581",
"0.5795493",
"0.5773547",
"0.5721201",
"0.57183903",
"0.5715834",
"0.5707762",
"0.5690264",
"0.5647685",
"0.55959314",
"0.55946994",
"0.55053914",
"0.54953647",
"0.5487336",
"0.54602957",
"0.5458586",
"0.5457236",
"0.5437749",
"0.5434406",
"0.54183304",
"0.54032606",
"0.5402383",
"0.5393327",
"0.5364784",
"0.536391",
"0.5335365",
"0.53153557",
"0.52938",
"0.528151",
"0.5277163",
"0.52731997",
"0.52654713",
"0.526208",
"0.5253692",
"0.5250613",
"0.5244556",
"0.52391356",
"0.5237134",
"0.52109826",
"0.5198455",
"0.5195388",
"0.5179113",
"0.5154083",
"0.5153248",
"0.5147842",
"0.5140869",
"0.5135002",
"0.5133889",
"0.5118471",
"0.5113875",
"0.5112676",
"0.5112476",
"0.51099294",
"0.51076686",
"0.5100812",
"0.51007015",
"0.50957024",
"0.5092124",
"0.5076494",
"0.507289",
"0.5070584",
"0.50703764",
"0.50665474",
"0.5046925",
"0.50461006",
"0.5034687",
"0.503323",
"0.5029211",
"0.5028862",
"0.5021224",
"0.50205153",
"0.50203884",
"0.5017235",
"0.50169116",
"0.49983874",
"0.49973127",
"0.4993783",
"0.4990016",
"0.49897155",
"0.49885157",
"0.49872488",
"0.4983857",
"0.49827063",
"0.4978602",
"0.497828",
"0.4975356",
"0.49737793",
"0.49641833",
"0.49637857",
"0.49629357",
"0.49622202",
"0.495258",
"0.4952462",
"0.49485233",
"0.49484712",
"0.49465197"
] |
0.57896197
|
6
|
never invoke any methods on null value
|
public static void main(String[] args) {
Integer i=null;
int j=i;
System.out.println(i);
System.out.println(j);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void flagNull() {\n\t\t\n\t}",
"@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}",
"@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}",
"@Override\n\tprotected Object doGetValue(Object source) {\n\t\treturn null;\n\t}",
"boolean getCalledOnNullInput();",
"@Override\r\n\tpublic void visit(NullExpression nullExpression) {\n\r\n\t}",
"public boolean canProcessNull() {\n return false;\n }",
"@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}",
"public void nullstill();",
"@Override\n public Value<Void> evaluate(ValueReferenceResolver valueRefResolver) {\n return null;\n }",
"@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}",
"default T handleNull() {\n throw new UnsupportedOperationException();\n }",
"@Override\n public void setNull() {\n\n }",
"@Override\n public boolean getCalledOnNullInput() {\n return calledOnNullInput_;\n }",
"@Override\n public boolean getCalledOnNullInput() {\n return calledOnNullInput_;\n }",
"@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}",
"public class_1562 method_207() {\r\n return null;\r\n }",
"Object setValue(Object value) throws NullPointerException;",
"protected abstract Object convertNonNull(Object o);",
"public void testTransformWithNullCaller() throws Exception {\n try {\n instance.transform(element, document, null);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"@Nullable\n public\n Object\n foo () {\n return null;\n }",
"public boolean anyNull () ;",
"public boolean mo5366c() {\n throw null;\n }",
"boolean getActiveNull();",
"public Unsafe method_4123() {\n return null;\n }",
"public TestCase notNull( Object obj );",
"private static void checkNull(Object value, String name) throws LateDeliverablesProcessingException {\r\n if (value == null) {\r\n throw new LateDeliverablesProcessingException(\"The \" + name + \" should not be null.\");\r\n }\r\n }",
"public void visitACONST_NULL(ACONST_NULL o){\n\t\t// Nothing needs to be done here.\n\t}",
"private void checkNull(T x) throws NullPointerException\n\t{\n\t\tif (x == null)\n\t\t{\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}",
"public String method_211() {\r\n return null;\r\n }",
"public void doNothing(){\n\t}",
"public void mo5385r() {\n throw null;\n }",
"public static void doNothing(){\n\t}",
"@Override\n\tpublic Object getValue() {\n\t\treturn null;\n\t}",
"@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : SAMLCorrelationRule.NONE_NULL_ARGUMENTS_NAME) {\n\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(noneNullArgument);\n\n assertThrows(GeneralException.class, () -> testRule.execute(testRuleContext));\n verify(testRule).internalValidation(eq(testRuleContext));\n verify(testRule, never()).internalExecute(eq(testRuleContext), any());\n }\n }",
"private NullSafe()\n {\n super();\n }",
"boolean checkNull();",
"@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\n protected void runHandler() {\n checkContainsAny(MSG_ILLEGAL_CLASS_LEVEL_ANNOTATION,\n NullnessAnnotation.CHECK_FOR_NULL, NullnessAnnotation.CHECK_RETURN_VALUE,\n NullnessAnnotation.NONNULL, NullnessAnnotation.NULLABLE);\n checkContainsAll(MSG_CONTRADICTING_CLASS_LEVEL_ANNOTATIONS,\n NullnessAnnotation.PARAMETERS_ARE_NONNULL_BY_DEFAULT,\n NullnessAnnotation.PARAMETERS_ARE_NULLABLE_BY_DEFAULT);\n }",
"public TestCase isNull( Object obj );",
"T getNullValue();",
"public boolean is_pure_nil() {return true;}",
"@Test\n\tpublic void testNull() throws Exception {\n\t\ttestWith(null);\n\t}",
"@Test\n public void testCheckNullWithLogging() {\n Helper.checkNullWithLogging(\"obj\", \"obj\", \"method\", LogManager.getLog());\n }",
"public Object call() throws Exception{\n return null;\n }",
"@Test\n\tvoid testCheckNull1() {\n\t\tassertFalse(DataChecker.checkNull(new Integer(42)));\n\t}",
"@Test\n void nullProblem() {\n var x = (Void) null;\n var z = (String) null;\n System.out.println(x + \", \" + z);\n }",
"public void testTransformWithNullElement() throws Exception {\n try {\n instance.transform(null, document, caller);\n fail(\"IllegalArgumentException is excepted[\" + suhClassName + \"].\");\n } catch (IllegalArgumentException iae) {\n // pass\n }\n }",
"public FnNull(){\n\t}",
"public void testChangePropertyHandler_null() {\n try {\n new ChangePropertyHandler(null);\n fail(\"IllegalArgumentException should be thrown.\");\n } catch (IllegalArgumentException iae) {\n // Success\n }\n\n }",
"static public void assertNull(Object object) {\n assertNull(null, object);\n }",
"private void checkNoGettersSetters() {\n if (getters != null || setters != null)\n throw new AnalysisException(\"Unexpected getter/setter value!\");\n }",
"@Override\r\n\tpublic Value interpret() {\n\t\treturn null;\r\n\t}",
"private void assertNullHandling(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLMessageArgument)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((Object)null));\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertFalse(msgArg.equals((UMLSymbol)null));\r\n\t}",
"@Override\n public String visit(VoidType n, Object arg) {\n return null;\n }",
"private Optional() {\r\n\t\tthis.value = null;\r\n\t}",
"@Test\n public void test26() throws Throwable {\n Complex complex0 = new Complex(0.5, 0.5);\n try { \n complex0.divide((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"public int mo5328a(View view) {\n throw null;\n }",
"@OfMethod(\"wasNull()\")\n public void testWasNull() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.wasNull();\n fail(\"Allowed was null after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"public T casePropertyCallOnSelfExpCS(PropertyCallOnSelfExpCS object) {\r\n return null;\r\n }",
"@Test\n public void test27() throws Throwable {\n Complex complex0 = new Complex(0.9999997615814209, 0.9999997615814209);\n try { \n complex0.multiply((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicOrUnknown();\n return (flags & NULL) != 0;\n }",
"public String mo5145a() {\n throw null;\n }",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"public V call() throws Exception {\n\t\treturn null;\n\t}",
"void setNilValue();",
"private void throwIfNullValue(final V value) {\n if (value == null) {\n throw new IllegalArgumentException(\"null values are not supported\");\n }\n }",
"private void m32174b(Context context, T t) {\n if (t != null) {\n mo36027a(context, t);\n return;\n }\n throw new NullPointerException();\n }",
"@Test\n public void testCheckNullForInjectedValue() {\n Helper.checkNullForInjectedValue(\"obj\", \"obj\");\n }",
"@Test\n public void test24() throws Throwable {\n Complex complex0 = new Complex((-0.5), (-0.5));\n try { \n complex0.add((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"@Override\n public String visit(ThisExpr n, Object arg) {\n return null;\n }",
"private V isertNullKey(K key, V value) {\n return value;\n }",
"default V getOrThrow() {\n return getOrThrow(\"null\");\n }",
"@MaybeNull\n Object invoke(Object[] argument) throws Throwable;",
"@Override\n public String visit(MethodReferenceExpr n, Object arg) {\n return null;\n }",
"@Override\n\tpublic Object visitType(Type type) {\n\t\treturn null;\n\t}",
"public scala.Function1 foo() { return null; }",
"@Override\n\t\t\tpublic Integer call() throws Exception {\n\t\t\t\treturn null;\n\t\t\t}",
"public boolean isNonNull() {\n return true;\n }",
"@Test\n\tvoid testCheckNull3() {\n\t\tassertTrue(DataChecker.checkNull((Object)null));\n\t}",
"Object NullMove ();",
"@Override\n public Object getValue(String key) {\n return null;\n }",
"public void testNormalPutNullValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkPutNullValues(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"public int mo5353b(View view) {\n throw null;\n }",
"public boolean mo5383p() {\n throw null;\n }",
"@Override\r\n\tpublic Response invoke() {\n\t\treturn null;\r\n\t}",
"private static void assertObjectInGetInternalStateIsNotNull(Object object) {\n if (object == null) {\n throw new IllegalArgumentException(\"The object containing the field cannot be null\");\n }\n }",
"boolean isNullOmittable();",
"@Override\n\tpublic Object visitLiteral(Literal literal) {\n\t\treturn null;\n\t}",
"public None()\n {\n \n }",
"@Override\n\tpublic Object visit(SimpleNode node, Object data) {\n\t\treturn null;\n\t}",
"public int mo5362c(View view) {\n throw null;\n }",
"@Test\n public void testCheckNull() {\n Helper.checkNull(\"non-null\", \"non-null name\");\n }",
"@Override\n public String visit(BinaryExpr n, Object arg) {\n return null;\n }",
"public void c(@Nullable ij ☃) {\r\n/* 167 */ this.f = ☃;\r\n/* */ }\r\n/* */ \r\n/* */ public void a(boolean ☃) {\r\n/* 171 */ this.e = ☃;\r\n/* */ }",
"@Test\n void nullTest() {\n assertNull(sFloat1.toScrabbleInt());\n assertNull(sFloat1.and(sFloat2));\n assertNull(sFloat1.or(sFloat2));\n assertNull(sFloat1.toScrabbleBool());\n assertNull(sFloat1.toScrabbleBinary());\n assertNull(sFloat1.addToString(new ScrabbleString(\"Hello World\")));\n }",
"@Override\n\tpublic Void visit(Either either) throws RuntimeException {\n\t\treturn null;\n\t}",
"@Override\n public String visit(UnknownType n, Object arg) {\n return null;\n }",
"@Test\n\tpublic void takingNullWayTest()\n\t{\n\t\ttry\n\t\t{\n\t\t\tOsmXmlToSQLiteDatabaseConverter converter = new OsmXmlToSQLiteDatabaseConverter(new MapObjectsIdFinderFake());\n\t\t\tconverter.takeWay(null);\n\t\t\tfail();\n\t\t}\n\t\tcatch (IllegalArgumentException ex)\n\t\t{\n\t\t\t// ok\n\t\t}\n\t}",
"@Test(expected = IllegalArgumentException.class)\r\n public void testDetectWithNullData() throws Exception {\r\n instance.detect(null);\r\n }"
] |
[
"0.71058166",
"0.6845389",
"0.6817606",
"0.67542034",
"0.6743229",
"0.6692779",
"0.66268283",
"0.66221476",
"0.6605997",
"0.66007936",
"0.65946716",
"0.65785164",
"0.6543408",
"0.6476562",
"0.64548147",
"0.64387375",
"0.63829005",
"0.63541424",
"0.6351012",
"0.63093907",
"0.63006204",
"0.6289987",
"0.62763",
"0.6259646",
"0.62508744",
"0.62321156",
"0.6228708",
"0.62116563",
"0.62075233",
"0.6198808",
"0.61837965",
"0.61610734",
"0.61530983",
"0.61074287",
"0.60963875",
"0.60951614",
"0.6084081",
"0.60544777",
"0.60347414",
"0.6001402",
"0.60011464",
"0.5999751",
"0.5990229",
"0.5989151",
"0.5972501",
"0.5971538",
"0.5948422",
"0.59232825",
"0.5911164",
"0.5906907",
"0.58984137",
"0.58923507",
"0.58869547",
"0.5866237",
"0.5865116",
"0.58586186",
"0.58346057",
"0.5828845",
"0.58264756",
"0.5822343",
"0.58207715",
"0.580389",
"0.57998484",
"0.5793843",
"0.57929814",
"0.57929814",
"0.5792494",
"0.578963",
"0.5779096",
"0.57692945",
"0.5758486",
"0.57577455",
"0.5756398",
"0.5756129",
"0.5752307",
"0.5744573",
"0.57424927",
"0.57412446",
"0.57341087",
"0.57260597",
"0.5720341",
"0.57201827",
"0.5717805",
"0.5717001",
"0.5715678",
"0.5710362",
"0.57092214",
"0.5709011",
"0.5705506",
"0.570247",
"0.5702035",
"0.57018006",
"0.56918806",
"0.5676532",
"0.567213",
"0.5666399",
"0.56657237",
"0.56654984",
"0.5663892",
"0.56633997",
"0.56567514"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
public static void main(String[] args) throws InterruptedException {
WebDriver driver = new FirefoxDriver();
System.out.println("Class Program 31- july -2017, Demostrating ActionClass Use");
System.out.println("Open Amazon website");
driver.get("https://www.amazon.com//");
//Declare an Action Class object and pass WebDriver object
Actions act = new Actions(driver);
//take mouse cursor on Departments dropdown
act.moveToElement(driver.findElement(By.xpath("//span[text()='Departments']"))).perform();
//take mouse cursor on Amazon music inside Departments
act.moveToElement(driver.findElement(By.xpath("//span[text()='Amazon Music']"))).perform();
//Click on Prime Music inside Departments
driver.findElement(By.xpath("//span[text()='Prime Music']")).click();
//Wait for 4 seconds for page to Load
Thread.sleep(4000);
//Click on TryPrime
driver.findElement(By.xpath("//a[@id='a-autoid-0-announce']/span")).click();
//Wait for 2 seconds for page to Load
Thread.sleep(2000);
//Store Title
String actTitle = driver.getTitle();
//Check for Sign-In Page
if(actTitle.equals("Amazon Sign In")){
System.out.println("Amazon Prime Signup page verified : Test Case PASS");
}
else{
System.out.println("Amazon Prime Signup page not verified : Test Case FAIL");
}
//Close WebBrowser
driver.quit();
}
|
{
"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
|
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
|
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
buttonGroup1 = new javax.swing.ButtonGroup();
jScrollPane1 = new javax.swing.JScrollPane();
jPanel1 = new javax.swing.JPanel();
jPanel4 = new javax.swing.JPanel();
jScrollPane2 = new javax.swing.JScrollPane();
tabla_consumicion = new javax.swing.JTable();
btn_agregar_detalle = new javax.swing.JButton();
btn_quitar = new javax.swing.JButton();
jLabel19 = new javax.swing.JLabel();
combo_habitacion = new javax.swing.JComboBox<>();
btn_habitacion = new javax.swing.JButton();
btn_editar = new javax.swing.JButton();
btn_limpiar = new javax.swing.JButton();
jLabel21 = new javax.swing.JLabel();
combo_producto = new javax.swing.JComboBox<>();
btn_producto = new javax.swing.JButton();
combo_empleado = new javax.swing.JComboBox<>();
btn_empleado = new javax.swing.JButton();
jLabel20 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
btn_actualizar = new javax.swing.JButton();
btn_cancelar = new javax.swing.JButton();
btn_agregar = new javax.swing.JButton();
btn_aceptar = new javax.swing.JButton();
jButton1 = new javax.swing.JButton();
jLabel3 = new javax.swing.JLabel();
jPanel1.setBackground(new java.awt.Color(255, 255, 255));
jPanel1.setPreferredSize(new java.awt.Dimension(950, 580));
jPanel4.setBackground(new java.awt.Color(255, 255, 255));
jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
tabla_consumicion.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null},
{null, null, null, null, null, null, null}
},
new String [] {
"Codigo", "habitacion", "codigo", "producto", "precio", "codigo", "empleado"
}
) {
boolean[] canEdit = new boolean [] {
false, false, false, false, false, false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
tabla_consumicion.addMouseListener(new java.awt.event.MouseAdapter() {
public void mousePressed(java.awt.event.MouseEvent evt) {
tabla_consumicionMousePressed(evt);
}
});
tabla_consumicion.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
tabla_consumicionKeyPressed(evt);
}
public void keyReleased(java.awt.event.KeyEvent evt) {
tabla_consumicionKeyReleased(evt);
}
});
jScrollPane2.setViewportView(tabla_consumicion);
btn_agregar_detalle.setBackground(new java.awt.Color(255, 255, 255));
btn_agregar_detalle.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/mas2.png"))); // NOI18N
btn_agregar_detalle.setText("Agregar");
btn_agregar_detalle.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_agregar_detalleActionPerformed(evt);
}
});
btn_quitar.setBackground(new java.awt.Color(255, 255, 255));
btn_quitar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/menos.png"))); // NOI18N
btn_quitar.setText("Quitar");
btn_quitar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_quitarActionPerformed(evt);
}
});
jLabel19.setText("Habitacion :");
combo_habitacion.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
combo_habitacion.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
combo_habitacionFocusGained(evt);
}
});
combo_habitacion.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
}
public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
combo_habitacionPopupMenuWillBecomeInvisible(evt);
}
public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
}
});
combo_habitacion.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
combo_habitacionActionPerformed(evt);
}
});
combo_habitacion.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
combo_habitacionKeyPressed(evt);
}
});
btn_habitacion.setBackground(new java.awt.Color(255, 255, 255));
btn_habitacion.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/buscar3.png"))); // NOI18N
btn_habitacion.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_habitacionActionPerformed(evt);
}
});
btn_editar.setBackground(new java.awt.Color(255, 255, 255));
btn_editar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/edit1.png"))); // NOI18N
btn_editar.setText("Editar");
btn_editar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_editarActionPerformed(evt);
}
});
btn_limpiar.setBackground(new java.awt.Color(255, 255, 255));
btn_limpiar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/delete2.png"))); // NOI18N
btn_limpiar.setText("Limpiar");
btn_limpiar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_limpiarActionPerformed(evt);
}
});
jLabel21.setText("Producto :");
combo_producto.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
combo_producto.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
combo_productoFocusGained(evt);
}
});
combo_producto.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
}
public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
combo_productoPopupMenuWillBecomeInvisible(evt);
}
public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
}
});
combo_producto.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
combo_productoActionPerformed(evt);
}
});
combo_producto.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
combo_productoKeyPressed(evt);
}
});
btn_producto.setBackground(new java.awt.Color(255, 255, 255));
btn_producto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/buscar3.png"))); // NOI18N
btn_producto.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_productoActionPerformed(evt);
}
});
combo_empleado.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
combo_empleado.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
combo_empleadoFocusGained(evt);
}
});
combo_empleado.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
}
public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
combo_empleadoPopupMenuWillBecomeInvisible(evt);
}
public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
}
});
combo_empleado.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
combo_empleadoActionPerformed(evt);
}
});
combo_empleado.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
combo_empleadoKeyPressed(evt);
}
});
btn_empleado.setBackground(new java.awt.Color(255, 255, 255));
btn_empleado.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/buscar3.png"))); // NOI18N
btn_empleado.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_empleadoActionPerformed(evt);
}
});
jLabel20.setText("Empleado :");
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 711, Short.MAX_VALUE)
.addGroup(jPanel4Layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel20)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(combo_empleado, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(btn_empleado, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel19)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(combo_habitacion, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(btn_habitacion, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(36, 36, 36)
.addComponent(jLabel21)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(combo_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(btn_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btn_agregar_detalle)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btn_quitar)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btn_editar)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(btn_limpiar)
.addGap(0, 0, Short.MAX_VALUE))
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
.addGap(27, 27, 27)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(btn_habitacion, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(btn_producto, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel19)
.addComponent(combo_habitacion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel21)
.addComponent(combo_producto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(27, 27, 27)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(btn_empleado, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(5, 5, 5)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel20)
.addComponent(combo_empleado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addGap(29, 29, 29)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(btn_quitar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(btn_agregar_detalle, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(btn_editar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(btn_limpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel2.setBackground(new java.awt.Color(255, 255, 255));
btn_actualizar.setBackground(new java.awt.Color(255, 255, 255));
btn_actualizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/repetir.png"))); // NOI18N
btn_actualizar.setText("Deshacer");
btn_actualizar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_actualizarActionPerformed(evt);
}
});
btn_cancelar.setBackground(new java.awt.Color(255, 255, 255));
btn_cancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/cancelar.png"))); // NOI18N
btn_cancelar.setText("Cancelar");
btn_cancelar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_cancelarActionPerformed(evt);
}
});
btn_agregar.setBackground(new java.awt.Color(255, 255, 255));
btn_agregar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/agregar.png"))); // NOI18N
btn_agregar.setText("Agregar");
btn_agregar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_agregarActionPerformed(evt);
}
});
btn_aceptar.setBackground(new java.awt.Color(255, 255, 255));
btn_aceptar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/aprobar.png"))); // NOI18N
btn_aceptar.setText("Aceptar");
btn_aceptar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btn_aceptarActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(btn_aceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(22, 22, 22)
.addComponent(btn_actualizar)
.addGap(22, 22, 22)
.addComponent(btn_cancelar)
.addGap(22, 22, 22)
.addComponent(btn_agregar)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(btn_actualizar, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addComponent(btn_cancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
.addComponent(btn_agregar, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
.addComponent(btn_aceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(26, Short.MAX_VALUE))
);
jButton1.setBackground(new java.awt.Color(255, 255, 255));
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/iconos_formularios/atras.png"))); // NOI18N
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 20)); // NOI18N
jLabel3.setForeground(new java.awt.Color(8, 175, 178));
jLabel3.setText("Consumicion");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel3)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jButton1)
.addGap(0, 0, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()
.addGap(109, 109, 109)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addGap(108, 108, 108))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jButton1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel3)
.addGap(8, 8, 8)
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(10, 10, 10)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(0, 0, 0))
);
jScrollPane1.setViewportView(jPanel1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 934, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 786, Short.MAX_VALUE)
);
pack();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] |
[
"0.7321233",
"0.72922724",
"0.72922724",
"0.72922724",
"0.7287021",
"0.7250113",
"0.7214902",
"0.7209478",
"0.71973455",
"0.71915394",
"0.71855843",
"0.71602577",
"0.7149222",
"0.70949143",
"0.70813066",
"0.70579875",
"0.6988272",
"0.6978623",
"0.6956488",
"0.6954857",
"0.69464177",
"0.6943629",
"0.69367987",
"0.6933018",
"0.6929331",
"0.69254756",
"0.6925112",
"0.6913102",
"0.69126385",
"0.6894097",
"0.6893964",
"0.68917936",
"0.6891495",
"0.68895847",
"0.68845505",
"0.688321",
"0.6882532",
"0.6878455",
"0.68770224",
"0.68752515",
"0.6872487",
"0.6861657",
"0.6857395",
"0.68569964",
"0.6856607",
"0.68555",
"0.6854448",
"0.6854003",
"0.6854003",
"0.68440473",
"0.6838224",
"0.6837637",
"0.6829588",
"0.6829244",
"0.68277496",
"0.68251204",
"0.68236995",
"0.68180907",
"0.6817601",
"0.681135",
"0.680981",
"0.680977",
"0.68097097",
"0.6807759",
"0.6803703",
"0.6795666",
"0.67947936",
"0.6793619",
"0.6790796",
"0.67902565",
"0.67899716",
"0.67888206",
"0.67829174",
"0.67670804",
"0.6766693",
"0.67661726",
"0.6757112",
"0.67564726",
"0.67534983",
"0.6751943",
"0.67434925",
"0.6739915",
"0.6737868",
"0.6737343",
"0.673493",
"0.6728943",
"0.67285377",
"0.672136",
"0.6716568",
"0.671613",
"0.67153496",
"0.67092025",
"0.67079633",
"0.6704689",
"0.67022705",
"0.6701755",
"0.6700168",
"0.66992295",
"0.669491",
"0.6692837",
"0.6690047"
] |
0.0
|
-1
|
End of variables declaration//GENEND:variables
|
private void combo() {
cargaCombo(combo_habitacion, "SELECT hh.descripcion\n" +
"FROM huespedes h\n" +
"LEFT JOIN estadia_huespedes eh ON eh.huespedes_id = h.id\n" +
"LEFT JOIN estadia_habitaciones ehh ON eh.id_estadia = ehh.id_estadia\n" +
"LEFT JOIN estadia e ON e.id = ehh.id_estadia \n" +
"LEFT JOIN habitaciones hh ON hh.id = ehh.id_habitacion\n" +
"WHERE eh.huespedes_id = "+idd+" AND e.estado ='A'\n" +
"ORDER BY descripcion\n" +
"","hh.descripcion");
cargaCombo(combo_empleado, "SELECT CONCAT(p.nombre, ' ',p.apellido) FROM persona p\n" +
"RIGHT JOIN empleado e ON e.persona_id = p.id", "empleado");
cargaCombo(combo_producto, "SELECT producto FROM productos order by producto", "producto");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"public void mo21779D() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"public void mo21780E() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\n }",
"public void m23075a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"public void func_70295_k_() {}",
"void mo57277b();",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void mo56167c() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"private void yy() {\n\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"protected void initVars() {}",
"protected void mo6255a() {\n }"
] |
[
"0.63617",
"0.6280625",
"0.61909467",
"0.6095729",
"0.6092663",
"0.607037",
"0.60523474",
"0.605212",
"0.6002499",
"0.59878224",
"0.5970378",
"0.59679425",
"0.5967425",
"0.5965642",
"0.596177",
"0.5942055",
"0.5908757",
"0.589693",
"0.589137",
"0.5882839",
"0.58795726",
"0.58542675",
"0.5850878",
"0.58504444",
"0.5841756",
"0.5839311",
"0.5834832",
"0.5821372",
"0.580889",
"0.5802595",
"0.5793358",
"0.5786154",
"0.5784295",
"0.5784031",
"0.57823145",
"0.5774607",
"0.5760889",
"0.57576865",
"0.574549",
"0.5742612",
"0.573284",
"0.57327205",
"0.57327205",
"0.57327205",
"0.57327205",
"0.57327205",
"0.57327205",
"0.57327205",
"0.5729986",
"0.57238674",
"0.5722988",
"0.5718144",
"0.5704055",
"0.56985307",
"0.56980056",
"0.56893533",
"0.5688039",
"0.5687071",
"0.56737286",
"0.5659433",
"0.56510425",
"0.5645038",
"0.564365",
"0.5642898",
"0.5641512",
"0.56405234",
"0.562868",
"0.56283444",
"0.56271064",
"0.5621948",
"0.5618186",
"0.56120354",
"0.5611326",
"0.5610841",
"0.5604668",
"0.5602491",
"0.56024784",
"0.5600282",
"0.559161",
"0.55856514",
"0.55762357",
"0.5570551",
"0.5569697",
"0.55596817",
"0.5552693",
"0.55520314",
"0.55489874",
"0.55482525",
"0.554708",
"0.55467427",
"0.55457246",
"0.5544302",
"0.5542325",
"0.55405486",
"0.5538116",
"0.5535594",
"0.55260235",
"0.5523616",
"0.5516166",
"0.550274",
"0.5501853"
] |
0.0
|
-1
|
make an api request
|
public static String makeRequest(String apiRequest) throws IOException {
//execute the api request
HttpClient client = HttpClientBuilder.create().build();
HttpGet request = new HttpGet(apiRequest);
HttpResponse response = client.execute(request);
//create a buffered reader for reading the response
BufferedReader rd = new BufferedReader
(new InputStreamReader(
response.getEntity().getContent()));
//create a stringbuilder to make the api response into a single string
StringBuilder apiResponse = new StringBuilder();
String temp;
//loop throught the api response
while ((temp = rd.readLine()) != null) {
//if line of text exists add it to the output string
apiResponse.append(temp);
}
//debug print the api response
Debug.debug("api response was: \n" + apiResponse.toString());
return apiResponse.toString().replace("1h", "one").replace("3h", "three");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private Response makeRequest(String url) throws IOException, IllegalStateException {\n // Make the request\n Request req = new Request.Builder()\n .url(url)\n .addHeader(\"token\", NOAA.KEY)\n .build();\n Response res = client.newCall(req).execute();\n return res;\n }",
"private ObjectNode makeRequest(final String api) {\n ObjectNode req = JSON.objectNode();\n req.put(\"api\", api);\n return req;\n }",
"public void getRequest_withBasicAuth() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n }",
"void request(RequestParams params);",
"String getEEapi(String url, Map<String, String> params, int expectedStatus);",
"API createAPI();",
"private static Response callAPI(VERB verb, String url, Workflow mo) throws Exception {\n\n Response result;\n Entity<Workflow> wfEntity = Entity.entity(mo, MediaType.APPLICATION_JSON_TYPE);\n switch (verb) {\n case POST:\n result = RequestSender.sendPOSTRequest(getAPIURL() + url, wfEntity);\n break;\n case GET:\n result = RequestSender.sendGETRequest(getAPIURL() + url);\n break;\n case PUT:\n result = RequestSender.sendPUTRequest(getAPIURL() + url, wfEntity);\n break;\n case DELETE:\n result = RequestSender.sendDELETERequest(getAPIURL() + url);\n break;\n default:\n throw new Exception(\"Bad VERB\");\n }\n\n return result;\n }",
"public static CloseableHttpResponse callAPI(HttpRequestBase httpRequest, String token)\r\n\t throws Exception {\r\n\t final StringBuilder stringBuilder = new StringBuilder();\r\n\t final String methodName = \"/callAPI\";\r\n\t \r\n\t LOGGER.info(\"Entering \"\r\n\t + stringBuilder.delete(0, stringBuilder.length())\r\n\t .append(CLASSNAME).append(methodName).toString());\r\n\t CloseableHttpResponse response = null;\r\n\t try {\r\n\t httpRequest.addHeader(OktaConstantUtils.CONTENT_TYPE,\r\n\t OktaConstantUtils.APPL_JSON);\r\n\t httpRequest.addHeader(OktaConstantUtils.AUTHORIZATION, token);\r\n\t httpRequest.addHeader(OktaConstantUtils.CHARSET, OktaConstantUtils.UTF);\r\n\t response = client.execute(httpRequest);\r\n\t LOGGER.info(\"Exiting \"\r\n\t\t\t\t\t+ stringBuilder.delete(0, stringBuilder.length()).append(CLASSNAME)\r\n\t\t\t\t\t.append(methodName).toString());\r\n\t return response;\r\n\t } \r\n\t \r\n\t catch (Exception genExp) {\r\n\t \tLOGGER.error(\"Exception \"\r\n\t \t\t + stringBuilder.delete(0, stringBuilder.length())\r\n\t \t\t .append(CLASSNAME).append(genExp.getMessage()).toString());\r\n\t \tthrow genExp;\r\n\t } \r\n\t }",
"HttpApiResponse run(HttpApiRequest request, ThingifierApiConfig config);",
"private static HttpResponse callAPI(final String url, final String apiName,\n\t final Map<String, String> auth,\n\t final Map<String, Object> headers,\n\t final RestMethod.TYPE methodType,\n\t final Map<String, String> queryParam,\n\t final Map<String, String> formData,\n\t final String payload) {\n\t\tif (retryCounter < 3) {\n\t\t\tHttpResponse response = null;\n\t\t\ttry {\n\n\t\t\t\tHttpClient client;\n\n\t\t\t\tURIBuilder uriBuilder = new URIBuilder(url + apiName);\n\n\t\t\t\tif (auth != null && !auth.isEmpty()) {\n\t\t\t\t\tString header = \"Basic \";\n\t\t\t\t\tString headerValue = auth.get(\"username\") + \":\" + auth.get(\"password\");\n\t\t\t\t\tString encodedHeaderValue = Base64.encodeBase64String(headerValue.getBytes());\n\t\t\t\t\tString headerBasic = header + encodedHeaderValue;\n\n\t\t\t\t\tHeader authHeader = new BasicHeader(\"Authorization\", headerBasic);\n\t\t\t\t\tArrayList<Header> headerArrayList = new ArrayList<>();\n\t\t\t\t\theaderArrayList.add(authHeader);\n\n\t\t\t\t\tif (headers != null) {\n\t\t\t\t\t\t/*Iterating the header map*/\n\t\t\t\t\t\tfor (Map.Entry<String, Object> headersMapEntry : headers.entrySet()) {\n\t\t\t\t\t\t\t/*Building the headers for the resource*/\n\t\t\t\t\t\t\tauthHeader = new BasicHeader(headersMapEntry.getKey(), headersMapEntry.getValue().toString());\n\t\t\t\t\t\t\theaderArrayList.add(authHeader);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tclient = HttpClients.custom().setDefaultHeaders(headerArrayList).build();\n\t\t\t\t} else {\n\t\t\t\t\tArrayList headerArrayList = new ArrayList<>();\n\t\t\t\t\tif (headers != null) {\n\t\t\t\t\t\t/*Iterating the header map*/\n\n\t\t\t\t\t\tfor (String key : headers.keySet()) {\n\t\t\t\t\t\t\t/*Building the headers for the resource*/\n\t\t\t\t\t\t\tHeader authHeader = new BasicHeader(key, headers.get(key).toString());\n\t\t\t\t\t\t\theaderArrayList.add(authHeader);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tclient = HttpClients.custom().setDefaultHeaders(headerArrayList).build();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclient = HttpClients.custom().setDefaultHeaders(new ArrayList<>()).build();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/*Checking whether the query param is not null for get methods*/\n\t\t\t\tif (queryParam != null) {\n\t\t\t\t\t/*Assigning the url, api path and query parameter*/\n\t\t\t\t\tif (null != queryParam && !queryParam.isEmpty()) {\n\t\t\t\t\t\tfor (String key : queryParam.keySet()) {\n\t\t\t\t\t\t\turiBuilder.setParameter(key, queryParam.get(key));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tswitch (methodType) {\n\t\t\t\t\tcase GET:\n\t\t\t\t\t\tHttpGet getRequest = new HttpGet(uriBuilder.build());\n\t\t\t\t\t\tresponse = client.execute(getRequest);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase POST:\n\t\t\t\t\t\tHttpPost postRequest = new HttpPost(uriBuilder.build());\n\n\t\t\t\t\t\tif (formData != null) {\n\t\t\t\t\t\t\tMultipartEntityBuilder builder = MultipartEntityBuilder.create();\n\t\t\t\t\t\t\tbuilder.setMode(HttpMultipartMode.BROWSER_COMPATIBLE);\n\t\t\t\t\t\t\tfor (String key : formData.keySet()) {\n\t\t\t\t\t\t\t\tStringBody stringBody1 = new StringBody(formData.get(key), ContentType.MULTIPART_FORM_DATA);\n\t\t\t\t\t\t\t\tbuilder.addPart(key, stringBody1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tHttpEntity entity = builder.build();\n\t\t\t\t\t\t\tpostRequest.setEntity(entity);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tStringEntity input = new StringEntity(payload);\n\t\t\t\t\t\t\tinput.setContentType(MediaType.APPLICATION_JSON);\n\t\t\t\t\t\t\tpostRequest.setEntity(input);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tresponse = client.execute(postRequest);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PUT:\n\t\t\t\t\t\tHttpPut putRequest = new HttpPut(uriBuilder.build());\n\t\t\t\t\t\tStringEntity inputEntity = new StringEntity(payload);\n\t\t\t\t\t\tinputEntity.setContentType(MediaType.APPLICATION_JSON);\n\t\t\t\t\t\tputRequest.setEntity(inputEntity);\n\t\t\t\t\t\tresponse = client.execute(putRequest);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DELETE:\n\t\t\t\t\t\tHttpDelete deleteRequest = new HttpDelete(uriBuilder.build());\n\t\t\t\t\t\tresponse = client.execute(deleteRequest);\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}\n\n\t\t\t\t/*Checking whether the response code is not 200*/\n\t\t\t\tif (response != null && response.getStatusLine().getStatusCode() != 200) {\n\t\t\t\t\tif (response.getStatusLine().getStatusCode() != 201) {\n\t\t\t\t\t\tSystem.out.println(\"Failed : HTTP error code : \" + response.getStatusLine().getStatusCode());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tretryCounter = 0;\n\t\t\t\treturn response;\n\t\t\t} catch (Exception error) {\n\t\t\t\terror.printStackTrace();\n\t\t\t\tlogger.error(\"The exception occurred is in this method is : \" + error);\n\t\t\t\treturn response;\n\t\t\t}\n\t\t} else {\n\t\t\tlogger.error(\"The exception occurred \");\n\t\t\tretryCounter = 0;\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n protected String doInBackground(Void... params) {\n if(myApiService == null) {\n MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(), new AndroidJsonFactory(), null)\n // Local testing url (emulator is 10.0.2.2 or use local machine ip)\n // .setRootUrl(\"http://10.0.2.2:8080/_ah/api/\")\n .setRootUrl(\"https://androidjokes-155120.appspot.com/_ah/api/\");\n\n myApiService = builder.build();\n }\n\n // Grab a joke\n try {\n return myApiService.getJoke().execute().getData();\n } catch (IOException e) {\n return e.getMessage();\n }\n }",
"@Test\n\t \n\t public void getApi() {\n\t\t \n\t\t Response getIt=get(\"https://reqres.in/api/users?page=2\");\n\t\t getIt.prettyPrint();\n\t\t System.out.println(getIt.getStatusCode());\n\t\t System.out.println(getIt.getTime());\n\t\t \n\t\t //to validate\n\t\t int validGstatus=getIt.getStatusCode();\n\t\t Assert.assertEquals(validGstatus,200);\n\t\t \n\t }",
"private ObjectNode makeRequest(final String api, final JsiiObjectRef objRef) {\n ObjectNode req = makeRequest(api);\n req.set(\"objref\", objRef.toJson());\n return req;\n }",
"public void sendHttp() {\n String url = \"https://openwhisk.ng.bluemix.net/api/v1/namespaces/1tamir198_tamirSpace/actions/testing_trigger\";\n //api key that i got from blumix EndPoins\n String apiKey = \"530f095a-675e-4e1c-afe0-4b421201e894:0HriiSRoYWohJ4LGOjc5sGAhHvAka1gwASMlhRN8kA5eHgNu8ouogt8BbmXtX21N\";\n try {\n //JSONObject jsonObject = new JSONObject().put(\"openwhisk.ng.bluemix.net\" ,\"c1165fd1-f4cf-4a62-8c64-67bf20733413:hdVl64YRzbHBK0n2SkBB928cy2DUO5XB3yDbuXhQ1uHq8Ir0dOEwT0L0bqMeWTTX\");\n String res = (new HttpRequest(url)).prepare(HttpRequest.Method.POST).withData(apiKey).sendAndReadString();\n //String res = new HttpRequest(url).prepare(HttpRequest.Method.POST).withData(jsonObject.toString()).sendAndReadString();\n System.out.println( res + \"***********\");\n\n } catch ( IOException exception) {\n exception.printStackTrace();\n System.out.println(exception + \" some some some\");\n System.out.println(\"catched error from response ***********\");\n }\n }",
"private void sendGenericApiRequest(String apiUrl, String apiKey, String username, String url, SuccessCallback callback) {\n try {\n \n //create http client and post data\n final CloseableHttpClient httpclient = HttpClients.createDefault();\n final HttpPost httpPost = new HttpPost(apiUrl);\n final List<NameValuePair> postData = new ArrayList<NameValuePair>();\n postData.add(new BasicNameValuePair(\"api_token\", apiKey));\n if (username != null) {\n postData.add(new BasicNameValuePair(\"username\", username));\n }\n if (url != null) {\n postData.add(new BasicNameValuePair(\"link\", url));\n }\n \n //set the post data\n httpPost.setEntity(new UrlEncodedFormEntity(postData));\n \n //receive the response\n final CloseableHttpResponse response = httpclient.execute(httpPost);\n final InputStream is = response.getEntity().getContent();\n final String json = IOUtils.toString(is, \"UTF-8\");\n EntityUtils.consume(response.getEntity());\n response.close();\n \n //parse the json and call the callback\n final String result = parseJsonResult(json);\n if(result.equalsIgnoreCase(\"ok\")) {\n informCallback(callback, true);\n } else {\n callback.setError(result);\n informCallback(callback, false);\n }\n \n } catch (IOException ex) {\n Logger.getLogger(YoCommunicator.class.getName()).log(Level.SEVERE, null, ex);\n callback.setError(\"IOException\");\n informCallback(callback, false);\n }\n }",
"private void callAPI() {\n\n Log.d(TAG, \"Starting volley request to API\");\n\n RequestQueue queue = Volley.newRequestQueue(this);\n JSONObject parameters = new JSONObject();\n\n try {\n parameters.put(\"key\", \"value\");\n } catch (Exception e) {\n Log.d(TAG, \"Failed to put parameters: \" + e.toString());\n }\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, Constants.API_URL,\n parameters,new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n /* Successfully called API */\n Log.d(TAG, \"Response: \" + response);\n try {\n ((TextView) findViewById(R.id.welcome)).setText(\"Welcome, \"\n + response.getString(\"name\"));\n Toast.makeText(getBaseContext(), \"Response: \" + response.get(\"name\"), Toast.LENGTH_SHORT)\n .show();\n } catch (JSONException e) {\n Log.d(TAG, \"JSONEXception Error: \" + e.toString());\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error: \" + error.toString());\n }\n }) {\n @Override\n public Map<String, String> getHeaders() throws AuthFailureError {\n Map<String, String> headers = new HashMap<>();\n Log.d(TAG, \"Token: \" + authResult.getAccessToken().toString());\n headers.put(\"Authorization\", \"Bearer \" + authResult.getAccessToken());\n return headers;\n }\n };\n\n queue.add(request);\n }",
"static void apiSample() {\n ApiClient client = new ApiClient(API_KEY, API_SECRET);\n // get symbol list:\n print(client.getSymbols());\n // get accounts:\n List<Account> accounts = client.getAccounts();\n print(accounts);\n if (!accounts.isEmpty()) {\n // find account id:\n Account account = accounts.get(0);\n long accountId = account.id;\n // create order:\n CreateOrderRequest createOrderReq = new CreateOrderRequest();\n createOrderReq.accountId = String.valueOf(accountId);\n createOrderReq.amount = \"0.02\";\n createOrderReq.price = \"1100.99\";\n createOrderReq.symbol = \"ethcny\";\n createOrderReq.type = CreateOrderRequest.OrderType.BUY_LIMIT;\n Long orderId = client.createOrder(createOrderReq);\n print(orderId);\n // place order:\n String r = client.placeOrder(orderId);\n print(r);\n }\n }",
"public void makeRequest(String baseUrl) throws URISyntaxException {\r\n\r\n RequestSpecBuilder builder = new RequestSpecBuilder();\r\n builder.setBaseUri(baseUrl);\r\n builder.setContentType(ContentType.JSON);\r\n RequestSpecification requestSpec = builder.build();\r\n RequestSpecification request = RestAssured.given().spec(requestSpec);\r\n response = request.get(new URI(baseUrl));\r\n String response_content = response.getBody().asString();\r\n Operations.setContent(response_content);\r\n\r\n }",
"public String getAPI()\n {\n ResponseEntity<String> person;\n\n /*\n\t\t * Headers for the response type if we want to return JSON response then we\n\t\t * require to add.\n */\n HttpHeaders headers = new HttpHeaders();\n\n /*\n\t\t * Adding of the response header with application/json type\n */\n headers.add(\"Accept\", \"application/json\");\n\n /*\n\t\t * Creation of the Entity object for the adding the headers into request.\n */\n entity = new HttpEntity<>(headers);\n\n /*\n\t\t * Creation of REST TEMPLET object for the executing of the REST calls.\n */\n restTemplate = new RestTemplate();\n\n /*\n\t\t * Adding the basic type of authentication on the REST TEMPLETE.\n */\n restTemplate.getInterceptors()\n .add(new BasicAuthorizationInterceptor(\"Administrator\", \"Oneeight@admin18\"));\n\n /*\n\t\t * Execution of the REST call with basic authentication and JSON response type\n */\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/login?username=Administrator&password=Oneeight@admin18\", HttpMethod.POST, entity, String.class);\n System.out.println(\"\"+person.toString());\n //headers.add(\"Cookie\", \"JSESSIONID=0FC37952D64B545C46969EFEC0E4FD12\");\n headers.add(\"Cookie\", person.getHeaders().getFirst(HttpHeaders.SET_COOKIE));\n entity = new HttpEntity<>(headers);\n person = restTemplate.exchange(\"http://52.172.222.197:8080/versa/analytics/v1.0.0/data/provider/tenants/OneEight/features/SDWAN/?qt=summary&start-date=1daysAgo&end-date=today&q=linkusage(site)&metrics=volume-rx&metrics=volume-tx&metrics=volume-rx&metrics=volume-tx&metrics=bandwidth&ds=aggregate&count=10\", HttpMethod.GET, entity, String.class);\n\n /*\n\t\t * Returning the response body with string format that easily readable.\n */\n return person.getBody();\n }",
"public interface RequestAPI {\n @GET(\"group\")\n Call<ListWeatherDTO> getDataWeather(@Query(\"id\") String id,\n @Query(\"appid\") String appId);\n\n @GET(\"weather\")\n Call<WeatherDTO> getDataByLocation(@Query(\"lat\") double lat,\n @Query(\"lon\") double lon,\n @Query(\"appid\") String appId);\n}",
"private HttpResponse executeHttpGet(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpGet httprequest = new HttpGet(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}",
"Request _request(String operation);",
"public void getResultsFromApi() {\n// if (! isGooglePlayServicesAvailable()) {\n// acquireGooglePlayServices();\n// } else if (mCredential.getSelectedAccountName() == null) {\n// chooseAccount();\n// } else if (! isDeviceOnline()) {\n//// mOutputText.setText(\"No network connection available.\");\n// } else {\n MakeRequestTask req = new MakeRequestTask(mCredential);\n AsyncTaskCompat.executeParallel(req);\n// }\n }",
"public Apis getApi() {\n //logging requests and responses in verbose\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n OkHttpClient client = new OkHttpClient.Builder().addInterceptor(interceptor).build();\n //build retrofit object\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(\"http://srishti-systems.info/projects/ForteBank/api/\")\n .addConverterFactory(GsonConverterFactory.create())\n .client(client).build();\n\n //connect api class with this builder\n\n Apis apis = retrofit.create(Apis.class);\n return apis;\n }",
"public interface APIInterface {\n @GET(\"/data/price\")\n Call<Object> compareCurrency(@Query(\"fsym\")String fsym, @Query(\"tsyms\") String tsyms);\n @GET(\"/api/data/coinlist/\")\n Call<CurrencyResource> CoinsList();\n}",
"public void sendYo (String username){\n try {\n URL obj = new URL(\"http://api.justyo.co/yo/\");\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n con.setRequestMethod(\"POST\");\n String urlParameters = \"api_token=9831429c-5e02-4175-b0d1-c5cbe958e09a&username=\" + username;\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(urlParameters);\n wr.flush();\n wr.close();\n int responseCode = con.getResponseCode();\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n }\n catch(Exception e){\n System.out.println(\"Error\");\n }\n }",
"private void getResultsFromApi() {\r\n if (!isGooglePlayServicesAvailable()) {\r\n acquireGooglePlayServices();\r\n } else if (mCredential.getSelectedAccountName() == null) {\r\n chooseAccount();\r\n } else if (!isDeviceOnline()) {\r\n Toast.makeText(getActivity(), \"No network connection available.\", Toast.LENGTH_LONG).show();\r\n } else {\r\n new MakeRequestTask(mCredential).execute();\r\n }\r\n }",
"public void createRequest(final String query, JsonHttpResponseHandler handler) {\n try {\n String url = getApiUrl(\"\");\n client.get(url + URLEncoder.encode(query, \"utf-8\"), handler);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }",
"public void getRequest_withHeader_QueryParms() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request query parameters are :-\");\n String[] queryParameters = {\"grant_type\"};\n setQueryParameters(queryParameters);\n String[] headerParameters = {\"content-type\"};\n setHeaderParameters(headerParameters);\n }",
"public void postRequest() {\n apiUtil = new APIUtil();\n // As this is an API call , we are not setting up any base url but defining the individual calls\n apiUtil.setBaseURI(configurationReader.get(\"BaseURL\"));\n //This is used to validate the get call protected with basic authentication mechanism\n basicAuthValidation();\n scenario.write(\"Request body parameters are :-\");\n SamplePOJO samplePOJO = new SamplePOJO();\n samplePOJO.setFirstName(scenarioContext.getContext(\"firstName\"));\n samplePOJO.setLastName(scenarioContext.getContext(\"lastName\"));\n\n ObjectMapper objectMapper = new ObjectMapper();\n try {\n apiUtil.setRequestBody(objectMapper.writeValueAsString(samplePOJO));\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n }",
"private void getResultsFromApi() {\n if (! isGooglePlayServicesAvailable()) {\n acquireGooglePlayServices();\n } else if (mCredential.getSelectedAccountName() == null) {\n chooseAccount();\n } else if (! isDeviceOnline()) {\n\n Toast.makeText(getApplicationContext(), \"No Network Connection\",\n Toast.LENGTH_SHORT).show();\n mOutputText.setText(\"No network connection available.\");\n } else {\n new MakeRequestTask(mCredential).execute();\n }\n }",
"@GET(\"planetary/apod\")\n Call<APOD> getApod(\n @Query(\"date\") String date,\n @Query(\"api_key\") String API_KEY\n );",
"@Override\n\tpublic WebApiRequest getRequest() {\n\t\tString category = \"\";\n\t\tString destination = \"\";\n\t\tJSONObject para = new JSONObject();\n\t\tif (taskFlag == GET_BALANCE_DETAIL_FLAG) {\n\t\t\tcategory = CATEGORY_NAME;\n\t\t\tdestination = GET_BALANCE_Detail;\n\t\t\ttry {\n\t\t\t\tpara.put(\"ID\", getIntent().getIntExtra(\"BalanceID\", 0));\n\t\t\t\tpara.put(\"CardType\", getIntent().getIntExtra(\"CardType\", 1));\n\t\t\t\tpara.put(\"ChangeType\", getIntent().getIntExtra(\"ChangeType\", 0));\n\t\t\t} catch (JSONException 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\tWebApiHttpHead header = mApp.createNeededCheckingWebConnectHead(category, destination, para.toString());\n\t\tWebApiRequest request = new WebApiRequest(category, destination,para.toString(), header);\n\t\treturn request;\n\t}",
"public interface API {\n @GET(\"api/v1.5/tr.json/translate\")\n Call<Resp> Translate(@QueryMap Map<String, String> parameters);\n\n}",
"@Test\n void testGetRequest() {\n String OAUTH_BASE = \"https://api-sandbox.rabobank.nl/openapi/sandbox/oauth2\";\n raboUtilUnderTest.get(OAUTH_BASE, \"/token\", \"payload\");\n\n // Verify the results\n verify(webClient).get(anyString(),any());\n }",
"public static HttpResponse<JsonNode> sendRequest(String path, Map params) {\n String apiUrl = ConfigReader.getPropValues().getProperty(\"transit.url\");\n String apiKey = ConfigReader.getPropValues().getProperty(\"transit.key\");\n String jsonExtension = \".json\";\n HttpResponse<JsonNode> response = null;\n\n try {\n String fullPath = apiUrl + path;\n response = Unirest.get(fullPath + jsonExtension)\n .queryString(params)\n .queryString(\"api-key\", apiKey).asJson();\n BotLogger.info(LOG, \"Sent request: \" + fullPath);\n BotLogger.info(LOG, \"Params: \" + params);\n } catch (UnirestException e) {\n e.printStackTrace();\n }\n return response;\n\n }",
"public interface Api {\n @GET(\"topher/2017/May/59121517_baking/baking.json\")\n Call<List<Recipe>> getRecipes();\n}",
"private static String get_request(String uri, boolean isChecking, String token) throws IOException {\r\n URL url = new URL(uri);\r\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\r\n connection.setRequestProperty(\"Content-Type\", \"application/json\");\r\n connection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36 Edg/88.0.705.74\");\r\n if (isChecking) {\r\n connection.setRequestProperty(\"Authorization\", token);\r\n }\r\n connection.setRequestMethod(\"GET\");\r\n InputStream responseStream = connection.getInputStream();\r\n if (debug) {\r\n System.out.println(\"GET - \"+connection.getResponseCode());\r\n }\r\n try (Scanner scanner = new Scanner(responseStream)) {\r\n String responseBody = scanner.useDelimiter(\"\\\\A\").next();\r\n if (debug) {\r\n System.out.println(responseBody);\r\n }\r\n return responseBody;\r\n } catch (Exception e) {\r\n return \"ERROR\";\r\n }\r\n }",
"public String request(String method, String url, String data) {\n HttpURLConnection connection = null;\n try {\n if ((method.compareTo(\"GET\") == 0) && (data != null) && (!data.isEmpty())) {\n if (url.contains(\"?\"))\n url = url.concat(\"&\");\n else\n url = url.concat(\"?\");\n url = url.concat(data);\n }\n // Create connection\n URL requestUrl = new URL(url);\n connection = (HttpURLConnection) requestUrl.openConnection();\n connection.setRequestProperty(\"Veridu-Client\", this.key);\n if ((this.storage.getSessionToken() != null) && (!this.storage.getSessionToken().isEmpty()))\n connection.setRequestProperty(\"Veridu-Session\", this.storage.getSessionToken());\n connection.setRequestMethod(method);\n connection.setConnectTimeout(10000);\n connection.setReadTimeout(10000);\n connection.setUseCaches(false);\n connection.setDoOutput(true);\n // Send request\n if ((method.compareTo(\"GET\") != 0) && (data != null) && (!data.isEmpty())) {\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n connection.setRequestProperty(\"Content-Length\", Integer.toString(data.getBytes().length));\n connection.setDoInput(true);\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(data);\n wr.flush();\n wr.close();\n }\n\n // Get Response\n this.lastCode = connection.getResponseCode();\n InputStream is;\n if (this.lastCode >= 400)\n is = connection.getErrorStream();\n else\n is = connection.getInputStream();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n String line;\n StringBuilder response = new StringBuilder();\n while ((line = rd.readLine()) != null) {\n response.append(line);\n response.append('\\r');\n }\n rd.close();\n return response.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (connection != null)\n connection.disconnect();\n }\n return null;\n }",
"public interface HttpService {\n//banner/query?type=1\n // public static final String BASE_URL=\"http://112.124.22.238:8081/course_api/\";\n @GET(\"banner/query\")\n Call<List<HeaderBean>> getHeaderData(@Query(\"type\") String type);\n @GET(\"campaign/recommend\")\n Call<List<RecommendBean>> getRecommendData();\n}",
"public interface Api {\n\n// root url after add multiple servlets\n\n String BASE_URL = \"https://simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Modelclass>> getmodelclass();\n\n\n\n}",
"public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }",
"public void request(@NonNull WikiSite wiki, @NonNull Callback cb) {\n cb.success(Compilation.getMockInfoForTesting()); // returning mock info for dev/testing\n\n /*cancel();\n Retrofit retrofit = RetrofitFactory.newInstance(getEndpoint(wiki), wiki);\n Service service = retrofit.create(Service.class);\n call = request(service);\n call.enqueue(new CallbackAdapter(cb));*/\n }",
"public interface ApiInterface {\n\n\n @Headers({\"Content-Type: application/json\",})\n @POST(\"transport/public/registrations\")\n Call<Void> Register(@Body User user);\n\n\n //loginProcess\n @GET(\"user\")\n @Headers({\"Content-Type: application/json\"})\n Call<cUser> postWithFormParams();\n\n\n //userMe\n @GET(\"transport/user/me\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> UserMe();\n\n\n\n //drivers\n @GET(\"transport/drivers\")\n @Headers({\"Content-Type: application/json\"})\n Call<JsonObject> drivers(\n @Query(\"latitud\") double latitud,\n @Query(\"longitud\") double longitud);\n\n\n}",
"public interface RequestAPI {\n public void signIn(String login, String password) throws RequestException, WrongParameterException;\n\n public void signUp(String login, String password) throws RequestException, WrongParameterException;\n\n public void addFriend(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public void deleteFriend(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public void deleteFriendRequest(String name) throws RequestException, WrongParameterException, UnauthorizedException;\n\n public Account getMyAccountInfo() throws RequestException, UnauthorizedException;\n\n public String getToken();\n\n public String getHost();\n}",
"public interface LooksoftMainApi {\n @GET(\"main\")\n Call<Data> loadData();\n}",
"R request();",
"public interface TravelApiService {\n @GET(\"api/users/{userCode}/travels\")\n Call<List<Travel>> getTravel(@Path(value = \"userCode\") String userCode);\n\n @POST(\"api/users/{userCode}/travels\")\n Call<PostTravelGsonResponce> postTravel(@Path(value = \"userCode\") String userCode, @Field(\"travel_date\") String travelDate, @Field(\"latitude\") Double latitude, @Field(\"longitude\") Double longitude, @Field(\"area_name\") String areaName, @Field(\"contry_name\") String countryName, @Field(\"token\") String token);\n}",
"public interface RequestService {\n //http://gank.io/api/data/Android/10/1\n /*@GET(\"api/data/Android/10/1\")\n Call<ResponseBody> getAndroidInfo();*/\n @GET(\"api/data/Android/10/1\")\n Call<GankBean> getAndroidInfo();\n @GET(\"api/data/Android/10/{page}\")\n Call<GankBean> getAndroidInfo(@Path(\"page\") int page);\n @GET(\"api/data/query?cityname=深圳\")\n Call<ResponseBody> getWeather(@Query(\"key\") String key,@Query(\"area\") String area);\n @GET(\"group/{id}/users\")\n Call<List<User2>> groupList(@Field(\"id\") int groupId, @QueryMap Map<String,String> options);\n @GET\n Call<GankBean> getAndroid2Info(@Url String url);\n\n}",
"private String gatewayRequest(String url) {\n final ProgressDialog pDialog = new ProgressDialog(mCtx);\n pDialog.setMessage(\"Loading...\");\n pDialog.show();\n\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,\n url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n manageResponse(response);\n //manageResponse(getDevicesMoke());\n\n pDialog.hide();\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error: \" + error.getMessage());\n // hide the progress dialog\n pDialog.hide();\n }\n });\n HttpHandler.getInstance(mCtx).addToRequestQueue(jsonObjReq);\n return \"\";\n\n }",
"void startAPICall() {\n String url = \"https://www.googleapis.com/civicinfo/v2/representatives?address=\"\n + getParsedAddress(address)\n + \"&key=\" + apiKey;\n final android.content.Context context = getApplicationContext();\n final Toast toast = Toast.makeText(context,\n \"Retrieving data . . .\",\n Toast.LENGTH_SHORT);\n toast.show();\n try {\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(\n Request.Method.GET,\n url,\n null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(final JSONObject response) {\n Log.d(TAG, response.toString());\n setJsonInformation(response.toString());\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(final VolleyError error) {\n Log.w(TAG, error.toString());\n }\n });\n requestQueue.add(jsonObjectRequest);\n } catch (Exception e) {\n Toast toast2 = Toast.makeText(context,\n \"Failed.\",\n Toast.LENGTH_SHORT);\n toast2.show();\n e.printStackTrace();\n }\n }",
"public static Response doGetRequest(String url, String token, String app_type) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n try {\n Request request = new Request.Builder()\n .url(url).addHeader(\"cache-control\", \"no-cache\").\n addHeader(\"Authorization\", token).addHeader(\"app_type\", app_type).\n addHeader(\"access_token\", RestTags.PUBLIC_KEY)\n .build();\n Response response = client.newCall(request).execute();\n Log.e(\"RESPONSE:\", response.body() + \"Code:\" + response.code() + \"Message:\" + response.message());\n return response;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }",
"private void StringRequest_POST() {\n\t\tString POST = \"http://api.juheapi.com/japi/toh?\";\n\t\trequest = new StringRequest(Method.POST, POST, new Listener<String>() {\n\n\t\t\t@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}, new ErrorListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(MainActivity.this, arg0.toString(), Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t}){@Override\n\t\tprotected Map<String, String> getParams() throws AuthFailureError {\n\t\t\tHashMap< String , String> map = new HashMap<String,String>();\n\t\t\tmap.put(\"key\", \"7bc8ff86168092de65576a6166bfc47b\");\n\t\t\tmap.put(\"v\", \"1.0\");\n\t\t\tmap.put(\"month\", \"11\");\n\t\t\tmap.put(\"day\", \"1\");\n\t\t\treturn map;\n\t\t}};\n\t\trequest.addMarker(\"StringRequest_GET\");\n\t\tMyApplication.getHttpRequestQueue().add(request);\n\t}",
"public void apicall(String str) {\n URL url = null;\n try {\n url = new URL(str);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n\n if (conn.getResponseCode() != HTTP_ERROR) {\n throw new RuntimeException(\"Failed: HTTP error code: \" + conn.getResponseCode());\n }\n\n BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream(), \"UTF-8\"));\n data = \"\";\n String buffer;\n while ((buffer = br.readLine()) != null) {\n data += buffer;\n }\n conn.disconnect();\n br.close();\n } catch (MalformedURLException e) {\n System.out.println(\"Malformed URL\");\n } catch (IOException e) {\n System.out.println(\"Cannot open url\");\n }\n }",
"@GET(\"movie/{id}\")\n Call<PersonagemResponse> getMovieDetails(@Path(\"id\") int id, @Query(\"api_key\") String apiKey);",
"public interface apiService {\n\n\n\n String base_url= \"http://192.168.43.154:8081/\";\n\n @GET(\"getprofile\")\n Call<Employee> getProfilehero(@Query(\"racf\") String id,@Query(\"password\") String pass);\n\n @GET(\"getpeopleonleave\")\n Call<Datesss> getdetailsondate(@Query(\"date\") String d);\n\n @GET(\"authentication\")\n Call<Auth> getAuth(@Query(\"racf\") String d,@Query(\"password\") String dd);\n\n @GET(\"getleavedates\")\n Call<leaves> getleavedates(@Query(\"racf\") String d);\n\n @GET(\"getwfhdates\")\n Call<WorkFromHome> getwfhdates(@Query(\"racf\") String dd);\n\n @GET(\"updateno\")\n Call<Auth> updating(@Query(\"racf\") String d,@Query(\"contacts\") String dd,@Query(\"contactnames\") String ddd);\n\n @GET(\"updateworkfromhome\")\n Call<Auth> updatingwfh(@Query(\"racf\") String d,@Query(\"dates\") String dd,@Query(\"reasons\") String ddd);\n\n @GET(\"updateonleave\")\n Call<Auth> updatingleave(@Query(\"racf\") String d,@Query(\"date\") String dd,@Query(\"reason\") String ddd);\n\n\n}",
"public String issueGetRequest(String query) {\n URL url;\n String result = \"\";\n\n return \"valid\";\n /**\n * Todo: When server API is up and running uncomment this.\n *\n * try { url = new URL(server + \"?\" + query); BufferedReader br = new\n * BufferedReader(new InputStreamReader(url.openStream())); String\n * strTemp = \"\";\n * \n * while (null != (strTemp = br.readLine())) { result = strTemp; }\n * \n * } catch (Exception e) { e.printStackTrace(); }\n * \n * return result;\n */\n }",
"public interface Api {\n\n @GET(\"index\")\n Call<String> getSimple();\n\n @GET(\"getxml\")\n Call<String> getXml(@Query(\"code\") int code);\n\n @FormUrlEncoded\n @POST(\"postme\")\n Call<String> postSimple(@Field(\"from\") String foo);\n\n @Headers({\"Content-Type: application/xml\", \"Accept: application/json\"})\n @POST(\"postxml\")\n Call<String> postXml(@Body RequestBody aRequestBody);\n\n\n}",
"@Test\n public void httpEasyRequest() throws HttpResponseException, IOException {\n Logger logger = (Logger) LoggerFactory.getILoggerFactory().getLogger(Logger.ROOT_LOGGER_NAME);\n logger.setLevel(Level.ALL);\n \n HttpEasy.withDefaults().proxyConfiguration(ProxyConfiguration.AUTOMATIC);\n\n JsonReader json = HttpEasy.request()\n .baseUrl(\"http://httpbin.org\")\n .header(\"hello\", \"world\")\n .path(\"get\")\n .queryParam(\"name\", \"fred\")\n .logRequestDetails()\n .get()\n .getJsonReader();\n\n assertThat(json.getAsString(\"url\"), is(\"http://httpbin.org/get?name=fred\"));\n\n }",
"private String apiCall(String method, String pair, String param,\n\t\t\tboolean auth) {\n\t\tmethod = method + \"/\";\n\n\t\t// if pair exists, add slash after it\n\t\tif (pair != \"\") {\n\t\t\tpair = pair + \"/\";\n\t\t}\n\n\t\treturn this.post((\"https://www.cex.io/api/\" + method + pair), param,\n\t\t\t\tauth);\n\t}",
"public static Response doGetRequest(String url) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n try {\n Request request = new Request.Builder()\n .url(url).addHeader(\"Content-Type\", \"text/plain\")\n .build();\n Response response = client.newCall(request).execute();\n return response;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public interface ApiService {\n @GET(\"questcms/floorplan\")\n Call<List<FloorPlan>> listFloorPlan();\n}",
"@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }",
"public interface Api {\n\n// String BASE_URL_REMOTE = \"http://192.168.0.11/videoworld/v1/\"; //远程服务器的\n\n String BASE_URL_REMOTE = \"http://www.luocaca.cn/VideoWorld/v1/\"; //远程服务器的\n// String BASE_URL_REMOTE = \"http://115.159.196.175/VideoWorld/v1/\"; //远程服务器的\n\n// String BASE_URL = \"http://v.juhe.cn/weather/\";\n\n\n @GET(\"citys\")\n Observable<AllCity> getAllCity(@Query(\"key\") String key);\n\n\n /**\n * http://localhost:8089/hello/book/add?name=大傻1&book_id=222&number=222&detail=详细信息\n *\n * @param book_id\n * @param number\n * @param detail\n * @param name\n * @return\n */\n\n @GET(\"book/add\")\n Observable<ApiResult> requestAdd(@Query(\"book_id\") String book_id,\n @Query(\"number\") String number,\n @Query(\"detail\") String detail,\n @Query(\"name\") String name,\n @Query(\"url\") String url\n );\n\n\n @GET(\"book/allbook\")\n Observable<ApiResult<List<Book>>> requestBookList();\n\n @GET(\"book/del/{bookId}\")\n Observable<ApiResult> requestDelete(@Path(\"bookId\") String bookId);\n\n @GET\n Observable<ObjectResponse> requestGetMovies(@Url String baseUrl, @Query(\"url\") String url);\n\n @GET\n Observable<ObjectResponse> requestAddMovies(@Url String baseUrl, @Query(\"url\") String url, @Query(\"list\") String list);\n\n //http://api.nlkmlk.com:81/love/user/1711111\n @GET\n Observable<Result> requestVip(@Url String baseUrl );\n\n\n}",
"@GET\n Call<Post> getByDirectUrlRequest(@Url String url);",
"public api() {}",
"public interface RestApi {\n\n @GET(\"/ride.asp\")\n Call<List<Model>> getData (@Query(\"userid\") int userId,\n @Query(\"from_name\") String fromName,\n @Query(\"from_lat\") double lat,\n @Query(\"from_lng\") double lng,\n @Query(\"to_name\") String toName,\n @Query(\"to_lat\") double toLat,\n @Query(\"to_lng\") double toLng,\n @Query(\"time\") long time);\n}",
"static String request(String requestMethod, String input, String endURL)\n {\n StringBuilder result;\n result = new StringBuilder();\n try\n {\n String targetURL = firstURL + endURL;\n URL ServiceURL = new URL(targetURL);\n HttpURLConnection httpConnection = (HttpURLConnection) ServiceURL.openConnection();\n httpConnection.setRequestMethod(requestMethod);\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n httpConnection.setDoOutput(true);\n\n switch (requestMethod) {\n case \"POST\":\n\n httpConnection.setDoInput(true);\n OutputStream outputStream = httpConnection.getOutputStream();\n outputStream.write(input.getBytes());\n outputStream.flush();\n\n result = new StringBuilder(\"1\");\n break;\n case \"GET\":\n\n BufferedReader responseBuffer = new BufferedReader(new InputStreamReader((httpConnection.getInputStream())));\n String tmp;\n while ((tmp = responseBuffer.readLine()) != null) {\n result.append(tmp);\n }\n break;\n }\n\n if (httpConnection.getResponseCode() != 200)\n throw new RuntimeException(\"HTTP GET Request Failed with Error code : \" + httpConnection.getResponseCode());\n\n httpConnection.disconnect();\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return result.toString();\n }",
"public interface API {\n\n// String BASE_URL = \"https://www.apiopen.top/\";\n String BASE_URL = \"http://gc.ditu.aliyun.com/\";\n\n\n @GET\n Observable<Response<ResponseBody>> doGet(@Url String Url);\n\n @FormUrlEncoded\n @POST\n Observable<Response<ResponseBody>> doPost(@Url String Url, @FieldMap HashMap<String, String> map);\n\n @Streaming\n @GET\n Observable<Response<ResponseBody>> doDownload(@Url String Url);\n}",
"@Test\n\tpublic void latest_Client() throws ClientProtocolException, IOException\n {\n CloseableHttpClient httpclinet2=HttpClientBuilder.create().build();\n \n // 2 Url purpose\n HttpGet httpget= new HttpGet(\"https://reqres.in\");\n \n // 3 Add Header\n\t httpget.addHeader(\"Authorization\",\"Bearer_ HGHKHGKHGKGKHGHGHJGKHGK\");\n\t \n\t /*********4 execute the API and store response************/ \n\t CloseableHttpResponse response= httpclinet2.execute(httpget);\n\t \n\t // Read the status code\n\t int i= response.getStatusLine().getStatusCode();\n\t System.out.println(i);\n\t Assert.assertEquals(200, i);\n\t \n\t //Print the response and store the response in string, here you cannot directly store the response and print.\n\t HttpEntity entity= response.getEntity();\n\t String data=EntityUtils.toString(entity);\n\t System.out.println(data);\n\t \n\t //GetJson value using Rest Assured Jsonpath value\n\t JsonPath json=new JsonPath(data);\n\t String dataapi=json.getString(\"Meta_.id\");\n\t System.out.println(dataapi);\n\t \n\t //working on Jway API alternative of jpath to retrieve the value.\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n }",
"private String post(String addr, String param, boolean auth) {\n\t\tboolean sent = false;\n\t\tString response = \"\";\n\n\t\twhile (!sent) {\n\t\t\tsent = true;\n\t\t\tURLConnection connection = null;\n\t\t\tDataOutputStream output = null;\n\t\t\tBufferedReader input = null;\n\t\t\tString charset = \"UTF-8\";\n\n\t\t\ttry {\n\t\t\t\tconnection = new URL(addr).openConnection();\n\t\t\t\tconnection.setRequestProperty(\"User-Agent\", \"Cex.io Java API\");\n\t\t\t\tconnection.setRequestProperty(\"Content-Type\",\n\t\t\t\t\t\t\"application/x-www-form-urlencoded\");\n\t\t\t\tconnection.setRequestProperty(\"Accept-Charset\", charset);\n\t\t\t\tconnection.setRequestProperty(\"Charset\", charset);\n\n\t\t\t\tif (auth) {\n\t\t\t\t\t// generate post variables and catch errors\n\t\t\t\t\tString tSig = this.signature();\n\t\t\t\t\tString tNon = String.valueOf(this.nonce);\n\n\t\t\t\t\tconnection.setDoOutput(true);\n\t\t\t\t\toutput = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t\tString content = \"key=\"\n\t\t\t\t\t\t\t+ URLEncoder.encode(this.apiKey, charset)\n\t\t\t\t\t\t\t+ \"&signature=\" + URLEncoder.encode(tSig, charset)\n\t\t\t\t\t\t\t+ \"&nonce=\" + URLEncoder.encode(tNon, charset);\n\n\t\t\t\t\tif (param.contains(\",\")) {\n\t\t\t\t\t\tString[] temp = param.split(\",\");\n\n\t\t\t\t\t\tfor (int a = 0; a < temp.length; a += 2) {\n\t\t\t\t\t\t\tcontent += \"&\" + temp[a] + \"=\" + temp[a + 1] + \"&\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcontent = content.substring(0, content.length() - 1);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.writeBytes(content);\n\t\t\t\t\toutput.flush();\n\t\t\t\t\toutput.close();\n\t\t\t\t}\n\n\t\t\t\tString temp = \"\";\n\t\t\t\tinput = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\n\t\t\t\twhile ((temp = input.readLine()) != null) {\n\t\t\t\t\tresponse += temp;\n\t\t\t\t}\n\n\t\t\t\tinput.close();\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\tsent = false;\n\t\t\t\te.printStackTrace();\n\n\t\t\t\t// This will happen if cloudflare is active/api is down.\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(10000);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn response;\n\t}",
"public static void main(String[] args) {\n\t\tRestApiClient apiClient = new RestApiClient();\n\t\t\n\t\t// do get request\n\t\tInvocation getMessage = apiClient.prepareRequestForGetMessage(\"2\");\n\t\tResponse response = getMessage.invoke();\n\t\tMessage message = response.readEntity(Message.class);\n\t\tSystem.out.println(message.getMessage());\n\t\t\n\t\t// do get request by year receiving a generic type of list\n\t\tgetMessage = apiClient.prepareRequestForGetMessageByYear(2018);\n\t\tresponse = getMessage.invoke();\n\t\tList<Message> list = response.readEntity(new GenericType<List<Message>>() { });\n\t\tlist.forEach((msg) -> System.out.println(msg.getMessage()));\n\t\t\n\t\t// do post request\n\t\tInvocation postMessage = apiClient.prepareRequestForPostMessage(\n\t\t\t\tnew Message(\"msg created in client\", \"whoknows2\"));\n\t\tResponse postResponse = postMessage.invoke();\t\t\n\t\tif (postResponse.getStatus() != Status.CREATED.getStatusCode()) {\n\t\t\tSystem.out.println(\"Error!\");\n\t\t}\n\t\tMessage createdMessage = postResponse.readEntity(Message.class);\n\t\tSystem.out.println(createdMessage.getMessage());\n\t}",
"public interface ApiService {\n\n @GET(\"/api/v1/rates/daily/\")\n Call<List<ExchangeRate>> getTodayExchangeRates();\n\n}",
"public interface Service {\n\n\n @GET(\"/3/search/movie\")\n Call<Lista> getSearch(@Query(\"api_key\") String apiKey, @Query(\"query\") String queryString);\n\n}",
"public interface RuangguruApiClient {\n\n // TODO: 3/3/17 change this as desired request\n\n @GET(\"/login\")\n Call<LoginResponse> loginRequest(@Path(\"username\") String username\n , @Path(\"password\") String password);\n}",
"String getRequest(String url);",
"public interface WayMapAPI {\n @GET(\"maps/api/directions/json?\")\n Call<WayPoints> getWayFromCoordinate(@Query(\"origin\")String from, @Query(\"destination\") String to, @Query(\"key\") String api_key);\n\n\n}",
"public interface APIClient {\n\n\t// regular expression to parse the action name\n\tPattern actionNamePattern = Pattern.compile(\"violet\\\\.([\\\\w]+)\\\\.([\\\\w]+)\");\n\n\t/**\n\t * The simplest type of call when only one parameter is needed Works only if\n\t * Action type is GET (no side effects)\n\t * \n\t * @param actionName\n\t * @param inMainParamValue\n\t * @return the POJO response\n\t * @throws APIException\n\t */\n\tObject executeMethodCall(String actionName, String inMainParamValue) throws APIException;\n\n\t/**\n\t * A more sophisticated call when multiple structured parameters must be\n\t * passed\n\t * \n\t * @param actionName\n\t * @param inParam\n\t * @return the POJO response\n\t * @throws APIException\n\t */\n\tObject executeMethodCall(ActionType actionType, String actionName, Map<String, Object> inParams) throws APIException;\n\n}",
"public interface Api {\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"anslogsave\")\n Call<ResponseBody> anslogsave(@Body RequestBody anslog);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotlogsave\")\n Call<ResponseBody> robotlogsave(@Body RequestBody robotlogsave);\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"robotstatsave\")\n Call<ResponseBody> robotstatsave(@Body RequestBody robotstatsave);\n\n @FormUrlEncoded\n @POST(\"borr\")\n Call<String> borr(@Field(\"title\")String title,\n @Field(\"inflag\")int inflag);\n @FormUrlEncoded\n @POST(\"guide\")\n Call<String> guide(@Field(\"title\")String title);\n @FormUrlEncoded\n @POST(\"\")\n Call<String> baidu();\n\n @Headers({\"Content-Type: application/json\",\"Accept: application/json\"})\n @POST(\"data\")\n Call<ResponseBody> upCewen(@Body RequestBody upCewen);\n\n @GET(\"doc_list?\")\n Call<String> search(@Query(\"search_txt\")String search);\n}",
"private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000);\n urlConnection.setConnectTimeout(15000);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the Guardian JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }",
"private String gatewayRequestCmd(String url) {\n final ProgressDialog pDialog = new ProgressDialog(mCtx);\n pDialog.setMessage(\"Sending...\");\n pDialog.show();\n\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,\n url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n Log.d(TAG, \"Response\");\n Log.d(TAG, response.toString());\n pDialog.hide();\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error: \" + error.getMessage());\n // hide the progress dialog\n pDialog.hide();\n }\n });\n HttpHandler.getInstance(mCtx).addToRequestQueue(jsonObjReq);\n return \"\";\n\n }",
"public interface ApiService {\n @GET(\"get_currency_rates.php\")\n Call<List<Currency>> getRates();\n}",
"public void httpclient(String url){\n\t\t\r\n\t\t\r\n\t\tString httpUrl =BASIC_URL+url;\r\n\t\t\r\n\t\tSystem.out.println(httpUrl);\r\n\t\t\r\n\t\tHttpGet method =new HttpGet(httpUrl);\r\n\t\t\r\n\t\tmethod.setHeader(\"Content-Type\",\"application/json\");\r\n\t\tmethod.setHeader(\"charset\",\"UTF-8\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tCloseableHttpResponse res =client.execute(method,context);\r\n\r\n\t\t AuthState targetAuthState = context.getTargetAuthState();\r\n\t\t System.out.println(\"Target auth state: \" + targetAuthState.getState());\r\n\t\t System.out.println(\"Target auth scheme: \" + targetAuthState.getAuthScheme());\r\n\t\t System.out.println(\"Target auth credentials: \" + targetAuthState.getCredentials());\r\n\t\t\t\r\n\t\t HttpEntity ent =res.getEntity();\r\n\t\t \r\n\t\t if (ent != null) { \r\n System.out.println(\"Response content length: \" + ent.getContentLength()); \r\n System.out.println(ent+\"3214242423\");\r\n \r\n System.out.println(EntityUtils.toString(ent));\r\n } \r\n\t\t \r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public interface HeroesApi {\n String BASE_URL = \"https://www.simplifiedcoding.net/demos/\";\n\n @GET(\"marvel\")\n Call<List<Hero>> getAll();\n}",
"public interface API {\n\n //Penyakit\n @GET(\"penyakitall/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @GET(\"penyakit/{page}/{count_page}\")\n Call<DiseaseResponse>\n getDiseaseListByLokasi(@Path(\"page\") String page, @Path(\"count_page\") String count_page, @Query(\"id_desa\") String id_desa);\n\n @POST(\"penyakit\")\n Call<DiseasePostResponse>\n postDisease(@Body DiseaseBody diseaseBody);\n @DELETE(\"penyakit\")\n Call<DeletePenyakitResponse> deletePenyakit(@Query(\"Id_penyakit\") String id_penyakit);\n\n @PUT(\"penyakit\")\n Call<PutPenyakitResponse> editPenyakit(@Query(\"Id_penyakit\") String id_penyakit,\n @Body PutPenyakitBody putPenyakitBody);\n\n @GET(\"tipepenyakit/{page}/{count_page}\")\n Call<TipePenyakitResponse>\n getTipePenyakitList(@Path(\"page\") String page, @Path(\"count_page\") String count_page);\n\n @POST(\"multimedia\")\n Call<MultimediaPostResponse>\n postMultimedia(@Body MultimediaBody multimediaBody);\n}",
"public interface DataKPU {\n @GET(\"open/v1/api.php?cmd=wilayah_browse&\")\n Call<RWilayah> wilayah_browse(@Query(\"wilayah_id\") String idWil);\n}",
"public interface ApiService {\n\n @GET(\"products.json\")\n Call<Product> loadProduct();\n\n}",
"WebClientServiceRequest serviceRequest();",
"String postRequest(String url);",
"protected Response createInsertingrequest(String urlFA,JSONObject jsonObject,HttpBasicAuthFilter auth,String type){\n ClientConfig config = new ClientConfig();\n Client client = ClientBuilder.newClient(config);\n WebTarget target;\n target = client.target(getBaseURI(urlFA));\n //Response plainAnswer =null; \n target.register(auth);\n \n Invocation.Builder invocationBuilder =target.request(MediaType.APPLICATION_JSON);\n MultivaluedHashMap<String,Object> mm=new MultivaluedHashMap<String,Object>();\n mm.add(\"content-type\", MediaType.APPLICATION_JSON);\n mm.add(\"Accept\", \"application/json\");\n mm.add(\"charsets\", \"utf-8\");\n invocationBuilder.headers(mm);\n //preliminary operation of request creation ended\n Response plainAnswer=null;\n switch(type){\n case \"post\":\n {\n plainAnswer=invocationBuilder\n .post(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON_TYPE));\n break;\n }\n case \"put\":\n {\n plainAnswer =invocationBuilder\n .put(Entity.entity(jsonObject.toString(), MediaType.APPLICATION_JSON));\n break;\n }\n }\n return plainAnswer;\n }",
"public static ApiRequest createRequests() {\n Retrofit retrofit = builder.client(client)\n .build();\n return retrofit.create(ApiRequest.class);\n }",
"@Test(enabled=true)\npublic void getRequest() {\n\t\tString url = \"https://reqres.in/api/users?page=2\";\n\t\t\n\t\t//create an object of response class\n\t\t\n\t\t//Restassured will send get request to the url and store response in response object\n\t\tResponse response = RestAssured.get(url);\n\t\t\n\t\t//We have to put assertion in response code and response data\n\t\tAssert.assertEquals(response.getStatusCode(), 200 , \"Response code Mismatch\");\n\t\t\n\t\tint total_pages = response.jsonPath().get(\"total_pages\");\n\t\tAssert.assertEquals(total_pages, 2 , \"Total Pages value Mismatch\");\n \n}",
"@Test\n public void doRequestURL() throws IOException, NoSuchAlgorithmException, KeyManagementException {\n doRequest(\"https://login.cloud.huawei.com/oauth2/v2/token\");\n\n\n //doRequestWithOutHttps(\"https://124.74.46.118:7012/business/service\");\n //doRequestWithOutHttpsPool(\"https://124.74.46.118:7012/business/service\");\n }",
"@Test\r\n\tpublic void doGetWithParams() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tURIBuilder uriBuilder = new URIBuilder(\"http://www.google.com/search\");\r\n\t\turiBuilder.addParameter(\"query\", \"Bingyang Wei\");\r\n\t\tHttpGet get = new HttpGet(uriBuilder.build());\r\n\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}",
"public interface TvApi {\n\n /*\n 获取电视节目表\n */\n @POST(\"getProgram\")\n Call<TvShowData> getProgram(@Query(\"code\") String code, @Query(\"date\") String date, @Query(\"key\") String key);\n\n /*\n 获取频道类型列表\n */\n @POST(\"getCategory\")\n Call<TvTypeData> getCategory(@Query(\"key\") String key);\n\n /*\n\n */\n @POST(\"getChannel\")\n Call<TvChannelData> getChannel(@Query(\"pId\") String pId, @Query(\"key\") String key);\n}",
"public static void main(String... args) {\n\n OAuthRequest oathReq = new OAuthRequest();\n Gson gson = new Gson();\n String hostname = get(\"ne.url.hostname\");\n String urlOAuth2 = hostname + get(\"ne.url.auth\");\n\n try {\n // 3. Set the generated Client ID, Secret generated in https://developer.equinix.com (Your App).\n // 4. Set the grant type to \"password' or 'client_credentials' if you want API Gateway to generate the Access token.\n oathReq.clientId(get(\"ne.client.access.client.id\"));\n oathReq.clientSecret(get(\"ne.client.access.client.secret\"));\n oathReq.grantType(get(\"ne.client.access.client.granttype\"));\n oathReq.userName(get(\"ne.client.access.client.username\"));\n String password = new String(Base64.getDecoder().decode(get(\"ne.client.access.client.base64.password\")), \"UTF-8\");\n oathReq.userPassword(password);\n\n HttpResponse<String> response = Unirest.post(urlOAuth2)\n .header(\"Content-Type\", get(\"ne.client.http.body.contenttype\"))\n .body(gson.toJson(oathReq)).asString();\n OAuthResponse oauthResponse = gson.fromJson(response.getBody(), OAuthResponse.class);\n\n\n System.out.println(\"OAuth2 Access Token: \" + oauthResponse.getAccessToken());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public API() {}",
"private void makeRestGetRequest(String url, OnJSONResponseCallback callback) {\n CheckItemsActivity context = this;\n RestClient.get(url, context.username, context.password, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n callback.onJSONResponse(true, response);\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n callback.onJSONResponse(false, errorResponse);\n }\n });\n }",
"Client getClient();"
] |
[
"0.69253755",
"0.6772976",
"0.66161644",
"0.64030683",
"0.63925886",
"0.63330936",
"0.6237599",
"0.6230593",
"0.62123466",
"0.62099403",
"0.61769015",
"0.6161573",
"0.61152565",
"0.60956776",
"0.6048497",
"0.6040978",
"0.6033174",
"0.5993223",
"0.5971365",
"0.5961145",
"0.5958932",
"0.5958161",
"0.5932992",
"0.5917545",
"0.59160906",
"0.5892123",
"0.58794576",
"0.5869151",
"0.5856165",
"0.5854525",
"0.5848169",
"0.58390105",
"0.5835319",
"0.5823921",
"0.5820206",
"0.5806466",
"0.57988787",
"0.5791393",
"0.57840073",
"0.57752746",
"0.57705283",
"0.57675135",
"0.57586837",
"0.5754536",
"0.5748335",
"0.5748249",
"0.5746885",
"0.57309794",
"0.57219684",
"0.57091266",
"0.57051295",
"0.5703803",
"0.56976044",
"0.5697046",
"0.5694697",
"0.5686858",
"0.5682882",
"0.56824714",
"0.5676275",
"0.5671029",
"0.5663553",
"0.5662174",
"0.56619614",
"0.56616086",
"0.5661209",
"0.56535894",
"0.56495404",
"0.5646406",
"0.5641287",
"0.5639669",
"0.56204486",
"0.5617866",
"0.5612108",
"0.5611314",
"0.56070876",
"0.5606522",
"0.5601439",
"0.559673",
"0.55966514",
"0.55952406",
"0.5590811",
"0.5589277",
"0.5588283",
"0.5586706",
"0.5574378",
"0.5562995",
"0.5562767",
"0.5557814",
"0.5557338",
"0.5556526",
"0.5556238",
"0.55530304",
"0.5551217",
"0.55507404",
"0.55493003",
"0.5546698",
"0.55466723",
"0.55446404",
"0.5542471",
"0.5537172"
] |
0.55666614
|
85
|
check for invalid characters
|
public static String cleanRequest(String city){
if(hasSpecialCharacters(city)){
//if it has special characters return invalid
return "invalid";
}
//return the un-altered version if no special characters
return city;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void validCharachter() throws DisallowedCharachter {\n if (!test.equals(\"X\") && !test.equals(\"O\")) {\n throw (new DisallowedCharachter());\n }\n }",
"private String validateChar(String text) {\n char[] validChars = new char[text.length()];\n int validCount = 0;\n for (int i = 0; i < text.length(); i++) {\n char c = text.charAt(i);\n boolean valid = (c >= 0x20 && c <= 0xd7ff) || (c >= 0xe000 && c <= 0xfffd);\n if (valid) {\n validChars[validCount++] = c;\n } else {\n if (c == 10) // LineBreak\n {\n validChars[validCount++] = c;\n }\n }\n }\n return new String(validChars, 0, validCount);\n }",
"private boolean hasValidCharacters(final String exp)\n {\n for(int i=0; i<exp.length(); i++)\n {\n /*\n If the character is not a part of an operand, an\n operator, or a space, then expression is invalid\n */\n if(!isNumPart(i,exp)\n && !isOperator(exp.charAt(i))\n && exp.charAt(i) != ' ')\n return false; //Invalid character detected\n }\n return true; //All characters are valid\n }",
"static boolean containsInvalidCharacters(String topic) {\n Matcher matcher = INVALID_CHARS_PATTERN.matcher(topic);\n return matcher.find();\n }",
"private boolean hasInvalidCharacter(final String taxId) {\n char aChar;\n for (int i = 0; i < EXPECTED_LEN; i++) {\n aChar = taxId.charAt(i);\n if (!(aChar >= '0' && aChar <= '9' || aChar >= 'A' && aChar <= 'Z')) {\n return true;\n }\n }\n return false;\n }",
"private boolean isNonCharacter(int c) {\n return (c & 0xFFFE) == 0xFFFE;\n }",
"private boolean isValid(char input) {\n if (this.isLetter(input) || this.isDigit(input) || this.isOperator(input)\n || this.isIgnored(input)) {\n return true;\n } else return false;\n }",
"private boolean isValid() {\n return Character.isLetter(c);\n }",
"private boolean isOK(char ch) {\n if(String.valueOf(ch).matches(\"[<|\\\\[|\\\\-|\\\\||&|a-z|!]\")){\n return true;\n }\n return false;\n }",
"public static boolean containsInvalidCharacterInLogin(String login) {\n\t\tString regex = \"[|\\\"&*=+'@#$\\\\%\\\\/?{}?:;<>,\\u00C0\\u00C1\\u00C2\\u00C3\\u00C4\\u00C5\\u00C6\\u00C7\\u00C8\\u00C9\\u00CA\\u00CB\\u00CC\\u00CD\\u00CE\\u00CF\\u00D0\\u00D1\\u00D2\\u00D3\\u00D4\\u00D5\\u00D6\\u00D8\\u0152\\u00DE\\u00D9\\u00DA\\u00DB\\u00DC\\u00DD\\u0178\\u00E0\\u00E1\\u00E2\\u00E3\\u00E4\\u00E5\\u00E6\\u00E7\\u00E8\\u00E9\\u00EA\\u00EB\\u00EC\\u00ED\\u00EE\\u00EF\\u00F0\\u00F1\\u00F2\\u00F3\\u00F4\\u00F5\\u00F6\\u00F8\\u0153\\u00DF\\u00FE\\u00F9\\u00FA\\u00FB\\u00FC\\u00FD\\u00FF]\";\n\t\tPattern p = Pattern.compile(regex);\n\t\tMatcher m = p.matcher(login);\n\t\treturn m.find();\n\t}",
"private static boolean checkChar(char c) {\n\t\tif (Character.isDigit(c)) {\n\t\t\treturn true;\n\t\t} else if (Character.isLetter(c)) {\n\t\t\tif (Character.toUpperCase(c) >= 'A' && Character.toUpperCase(c) <= 'F') {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean checkInvalid0(String x) {\n String kiTuDacBiet = \"0123456789fwjz~`!@#$%^&*()-_=+[{}]|;:'<>?/\";\n for (int i = 0; i < x.length(); i++) {\n if (kiTuDacBiet.contains(String.valueOf(x.charAt(i)))) {\n return true;\n }\n }\n return false;\n }",
"@Test\n\tpublic void caseNameWithSpecialChar() {\n\t\tString caseName = \"le@d\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}",
"private boolean areCharsValid(final char[] chars) {\n boolean isValid = true;\n int counter = 0;\n\n while (isValid && counter < chars.length) {\n char current = chars[counter];\n if (Character.isDigit(current) || isLowerCaseLetter(current)) {\n counter++;\n } else {\n isValid = false;\n }\n }\n\n return isValid;\n }",
"public boolean isValidChar(char c) {\n\t\tif (Character.isIdentifierIgnorable(c))\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn renderer.getFont().canDisplay(c);\r\n\t}",
"private boolean checkForWrongInput(){\n if(this.studentCode.getText().isEmpty())\n return true;\n //Check for length\n if(this.studentCode.getText().length() != 3)\n return true;\n //Check for invalid characters\n for(char c: this.studentCode.getText().toCharArray())\n if(!Character.isDigit(c))\n return true;\n\n return false;\n }",
"private boolean isValid(char c) {\n if (c == 'A' || c == 'T' || c == 'G' || c == 'C' || c == 'N'\n || c == 'a' || c == 't' || c == 'g' || c == 'c') {\n return true;\n }\n return false;\n }",
"boolean hasChar();",
"private boolean containsValidCharacters(String inputString)\r\n {\r\n boolean validityFlag = true;\r\n int inputStringLength = inputString.trim().length();\r\n for (int i = 0 ; i < inputStringLength ; i++)\r\n {\r\n char digit = inputString.charAt(i);\r\n if (!((digit >= 'A' && digit <= 'Z') || (digit >= 'a' && digit <= 'z') || (digit >= '0' && digit <= '9')))\r\n {\r\n validityFlag = false;\r\n break;\r\n }\r\n }\r\n return validityFlag;\r\n }",
"private boolean isChar(char c){\n\t\tif(Character.isISOControl(c))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public static boolean checkValid(String text)\r\n {\n if (text.length() == 0)\r\n {\r\n return false;\r\n }\r\n // should only have characters 0, 1, +, -.\r\n int counter = 0; // will count occurrences of + and - characters\r\n for (int i = 0; i < text.length(); i++)\r\n {\r\n char c = text.charAt(i);\r\n if (\"01+-\".indexOf(c) < 0)\r\n {\r\n return false;\r\n } \r\n if (\"+-\".indexOf(c) >= 0)\r\n {\r\n counter++;\r\n }\r\n }\r\n \r\n // should only have one occurrence of a + or - character\r\n if (counter != 1)\r\n {\r\n return false;\r\n }\r\n \r\n // the operator (+ or - character) should not be at the beginning\r\n // or end of the string\r\n char start = text.charAt(0);\r\n char end = text.charAt(text.length() - 1);\r\n if (\"01\".indexOf(start) < 0)\r\n {\r\n return false;\r\n }\r\n if (\"01\".indexOf(end) < 0)\r\n {\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"@Test\r\n public void testInvalidEncodings() {\r\n assertThatInputIsInvalid(\"NIX\");\r\n assertThatInputIsInvalid(\"UTF-9\");\r\n assertThatInputIsInvalid(\"ISO-8859-42\");\r\n }",
"@Test\n public void containsIllegalCharacters() {\n assertTrue(Deadline.containsIllegalCharacters(INVALID_DEADLINE_ILLEGAL_CHAR_DAY.toString()));\n\n // Deadline contains illegal character in Month -> true\n assertTrue(Deadline.containsIllegalCharacters(INVALID_DEADLINE_ILLEGAL_CHAR_MONTH.toString()));\n\n // Deadline contains illegal character in Year -> true\n assertTrue(Deadline.containsIllegalCharacters(INVALID_DEADLINE_ILLEGAL_CHAR_YEAR.toString()));\n\n // No illegal character -> false\n assertFalse(Deadline.containsIllegalCharacters(VALID_1ST_JAN_2018.toString()));\n assertFalse(Deadline.containsIllegalCharacters(VALID_1ST_JAN_WITHOUT_YEAR.toString()));\n }",
"private boolean checkNameChar(String name) {\n\t\tString patternStr = \"[a-zA-Z]+\";\n\t\tPattern pattern = Pattern.compile(patternStr);\n\t\tMatcher matcher = pattern.matcher(name);\n\t\tboolean matchFound = matcher.matches();\n\t\treturn matchFound;\n\t}",
"private boolean validate(String s)\r\n\t{\r\n\t\tint i=0;\r\n\t\tchar[] s1=s.toLowerCase().toCharArray();\r\n\t\twhile(i<s1.length)\r\n\t\t{\r\n\t\t\tif(s1[i]=='*' || s1[i]=='?')\r\n\t\t\t\tbreak;\r\n\t\t\tif(s1[i]<'a' || s1[i]>'z') return false;\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private boolean validWord(String word) {\n\t\tPattern p = Pattern.compile(\"[!@#$%&*()_+=|<>?{}\\\\[\\\\]~,;:/§.£/{}¨\\\"]\");\n\t\tMatcher m = p.matcher(word);\n\t\treturn !m.find();\n\t}",
"private boolean requiresLettersOrSymbols() {\n return mPasswordMinLetters + mPasswordMinUpperCase\n + mPasswordMinLowerCase + mPasswordMinSymbols + mPasswordMinNonLetter > 0;\n }",
"public boolean checkInvalid2(String x) {\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i)))) {\n count++;\n }\n }\n return count == x.length();\n\n }",
"private static boolean isBadInput(String s) {\n\t\tString[] split = s.split(\"\\\\s+\");\n\t\tif (split.length != 3) {\n\t\t\tSystem.err.printf(\"Unknow length: %d\\n\", split.length);\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\tInteger.parseInt(split[0]);\n\t\t\tInteger.parseInt(split[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.err.printf(\"Input numbers only.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif (split[1].length() != 1) {\n\t\t\tSystem.err.printf(\"Operator should be one character.\\n\");\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private static boolean nameIsValid(String name) {\n if (name.length() < 4 || name.length() > 11)\n return false;\n\n for (int i = 0; i < name.length(); i++) {\n int charIndex = name.charAt(i);\n\n // Each character can only be a letter or number\n if (charIndex < 48 || (charIndex > 57 && charIndex < 65) || (charIndex > 90 && charIndex < 97) || charIndex > 122)\n return false;\n }\n\n return true;\n }",
"public static boolean ValidString(String s)\n\t{\n\t\tchar[] sChar = s.toCharArray();\n\t\tfor(int i = 0; i < sChar.length; i++)\n\t\t{\n\t\t\tint sInt = (int)sChar[i];\n\t\t\tif(sInt < 48 || sInt > 122)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 57 && sInt < 65)\n\t\t\t\treturn false;\n\t\t\tif(sInt > 90 && sInt < 97)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isUnreservedCharacter(char p_char) {\n return (p_char <= '~' && (fgLookupTable[p_char] & MASK_UNRESERVED_MASK) != 0);\n }",
"@Test\n\tpublic void caseNameWithWrongLength() {\n\t\tString caseName = \"le\";\n\t\ttry {\n\t\t\tCaseManagerValidator.isCharAllowed(caseName);\n\t\t\tfail();\n\t\t} catch (ValidationException e) {\n\t\t}\n\t}",
"public boolean checkInvalid7(String x) {\n if (x.length() > 3) {\n for (int i = 0; i < x.length() - 2; i++) {\n if (consonants.contains(String.valueOf(x.charAt(i)))\n && (consonants.contains(String.valueOf(x.charAt(i + 1))))\n && consonants.contains(String.valueOf(x.charAt(i + 2)))\n && ((x.charAt(i) != 'n') || x.charAt(i + 1) !=\n 'g' || x.charAt(i + 2) != 'h')) {\n return true;\n }\n }\n }\n return false;\n }",
"public boolean isChar(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif (((int) c > 64 && (int) c < 90) || ((int) c > 96 && (int) c < 123))\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean lettersCheck(String name) {\r\n\t\treturn name.matches(\"^[\\\\p{L} .'-]+$\");\r\n\t}",
"private boolean isValidString(String str){\r\n\t\tString allowedChars=\"! \\\" # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\\\ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~\";\r\n\t\tfor(int i=0;i<str.split(\"\").length;i++){\r\n\t\t\tif(allowedChars.indexOf(str.split(\"\")[i]) == -1){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean checkInvalid6(String x) {\n String phuAmDau = \"qsdklxvb\";\n for (int i = 1; i < x.length(); i++) {\n if (phuAmDau.contains(String.valueOf(x.charAt(i)))) {\n return true;\n }\n }\n return false;\n }",
"public boolean isSpecialCharacter(String enteredCmd) {\n Pattern regex = Pattern.compile(\"[%@#€]+\");\n Matcher m = regex.matcher(enteredCmd);\n return m.matches();\n }",
"public static boolean checkAllCharsUsingRegex(String input) {\n if (input.length() < 26) {\n return false;\n }\n //Even a single character is missing, return false\n String regex = \"(?i)(?=.*a)(?=.*b)(?=.*c)(?=.*d)(?=.*e)(?=.*f)\"\n + \"(?=.*g)(?=.*h)(?=.*i)(?=.*j)(?=.*k)(?=.*l)(?=.*m)(?=.*n)\"\n + \"(?=.*o)(?=.*p)(?=.*q)(?=.*r)(?=.*s)(?=.*t)(?=.*u)(?=.*v)\"\n + \"(?=.*w)(?=.*x)(?=.*y)(?=.*z).*\";\n\n if (input.matches(regex)) {\n return true;\n }\n return false;\n }",
"public boolean checkFormat(String username){\n\n ArrayList<Character> charList = new ArrayList<Character>();\n Collections.addAll(charList, '!', '$', '#', '@');\n\n //Check for special Character\n boolean containsSpecial = false;\n for(Character character: charList) {\n if (username.contains(Character.toString(character))) {\n containsSpecial = true;\n }\n }\n //Check for Letters\n int numberCharacters = 0;\n if(containsSpecial){\n for(int i=0; i<username.length();i++){\n String symbol = String.valueOf(username.charAt(i));\n\n //REGEX pattern Check\n Pattern pattern = Pattern.compile(\"[A-z]\");\n Matcher matcher = pattern.matcher(symbol);\n\n if(matcher.matches()){\n numberCharacters++;\n System.out.println(\"Match: \" + numberCharacters);\n }\n }\n }\n\n if(numberCharacters>2){\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean checkForChar(String str) {\n\t\tif (str.contains(\"a\") || str.contains(\"A\") || str.contains(\"e\") || str.contains(\"E\")) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// TO DO\n\n\t\treturn false;\n\t}",
"public synchronized boolean validate(Object data) {\n if (!(data instanceof String)) {\n return false;\n }\n\n String dataString = (String) data;\n dataString = dataString.replaceAll(\"\\\\s\", \"\").replaceAll(\"-\", \"\");\n if (dataString.length() != 6) {\n return false;\n }\n\n for (Character c : dataString.substring(0, 2).toCharArray()) {\n if (!Character.isLetter(c)) {\n return false;\n }\n }\n for (Character c : dataString.substring(3, 5).toCharArray()) {\n if (!Character.isDigit(c)) {\n return false;\n }\n }\n return true;\n }",
"private boolean validDefinition(String definition) {\n\t\tPattern p = Pattern.compile(\"[@#$%&*_+=|<>{}\\\\[\\\\]~¨§£{}]\");\n\t\tMatcher m = p.matcher(definition);\n\t\treturn !m.find();\n\t}",
"private boolean isAllChars(String fieldVal){\r\n // Get rid of all whitespace from the given string\r\n String val = fieldVal.replaceAll(\"\\\\s\", \"\").trim();\r\n // Check each character in the string to determine if it is a digit or not\r\n for (int i=0; i < val.length(); i++){\r\n // if we find a digit return false\r\n if (Character.isDigit(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n // if we get here then all characters in the string are letters\r\n return true;\r\n }",
"void checkCharacterSet(String value) throws TdtTranslationException {\r\n\t\tif (!charSetRegex.matcher(value).matches()) {\r\n\t\t\tthrow new TdtTranslationException(\r\n\t\t\t\t\t\"Invalid charakter in value field \" + getId());\r\n\t\t}\r\n\t}",
"protected void baseCharacterCheck(final char c, final String parameter)\n throws IllegalArgumentException {\n if (Character.isISOControl(c) || !Character.isValidCodePoint(c)) {\n throw new IllegalArgumentException(\"Contains illegal character 0x\" +\n Integer.toHexString(c) + \": \" + parameter);\n }\n }",
"private boolean containsOnlyASCII(String input) {\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (input.charAt(i) > 127) {\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 hasSpecialChar(String password) throws NoSpecialCharacterException\r\n {\r\n Pattern pattern = Pattern.compile(\"[a-zA-Z0-9]*\");\r\n Matcher matcher = pattern.matcher(password);\r\n if (matcher.matches())\r\n throw new NoSpecialCharacterException();\r\n return true;\r\n }",
"public static boolean hasSpecialAndLetters(String characters ){\n \n Pattern letter = Pattern.compile(\"[a-zA-z]\"); \n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n Matcher hasLetter = letter.matcher(characters); \n Matcher hasSpecial = special.matcher(characters);\n\n // return hasLetter.find() && hasDigit.find() && hasSpecial.find();\n return (hasSpecial.find()==true || hasLetter.find()==true); \n \n }",
"@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }",
"private static boolean m66068b(String str) {\n for (int i = 0; i < str.length(); i++) {\n char charAt = str.charAt(i);\n if (charAt <= 31 || charAt >= 127 || \" #%/:?@[\\\\]\".indexOf(charAt) != -1) {\n return true;\n }\n }\n return false;\n }",
"private boolean isFileNameValid(char[] chars) {\n\n\t\tfor(char Char : chars) {\n\t\t\tif (!Character.isDigit(Char) && !Character.isLetter(Char) && Char != '-' && Char != '_') {\n\t\t\t\tloadingGif.setImage(null);\n\n\t\t\t\tAlert invalidName = new Alert(Alert.AlertType.ERROR);\n\t\t\t\tinvalidName.setTitle(\"Invalid Audio File Name\");\n\t\t\t\tinvalidName.setHeaderText(\"You cannot save an audio file with the character '\" + Char + \"' in its name!\");\n\t\t\t\tinvalidName.setContentText(\"Kindly enter a different name.\");\n\t\t\t\tinvalidName.showAndWait();\t\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"boolean hasHasCharacter();",
"@Test\r\n\tpublic void testCheckCharacter() throws ConfuserException {\r\n\t\t// Check to make sure unknowns work by checking against basic ASCII\r\n\t\tfor (char ndx = 0x021; ndx < 0x007E; ndx++) {\r\n\t\t\tassertEquals(Confuser.CharacterType.Unknown, Confuser.checkCharacter(String.valueOf(ndx)));\r\n\t\t}\r\n\t\t// Check to make sure Hiragana pass\r\n\t\tfor (char ndx = 0x3041; ndx < 0x3096; ndx++) {\r\n\t\t\tassertEquals(Confuser.CharacterType.Hiragana, Confuser.checkCharacter(String.valueOf(ndx)));\r\n\t\t}\r\n\t\t// Check to make sure the katakana pass\r\n\t\tfor (char ndx = 0x30A1; ndx < 0x30FC; ndx++) {\r\n\t\t\tassertEquals(Confuser.CharacterType.Katakana, Confuser.checkCharacter(String.valueOf(ndx)));\r\n\t\t}\r\n\t\t// Check to make sure the kanji pass, note that we are checking the \r\n\t\t// full CJK range so this includes kanji that are not used in Japanese\r\n\t\tfor (char ndx = 0x4E00; ndx < 0x9FAF; ndx++) {\r\n\t\t\tassertEquals(Confuser.CharacterType.Kanji, Confuser.checkCharacter(String.valueOf(ndx)));\r\n\t\t}\r\n\t}",
"public final boolean isValidCharMap(String charMap) {\n return charMap.matches(\"^[dlume]*$\");\n }",
"boolean ifLegalSign(char ch) {\n\t\tchar[] illegal = { '/', '\\\\', ':', '*', '?', '\"', '<', '>', '|' };\n\t\tfor (char i : illegal) {\n\t\t\tif (ch == i) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"static boolean isValidWord(String word){\n\t\tword = word.toLowerCase();\n\t\tchar check;\n\t\tfor(int i=0; i<word.length(); i++){\n\t\t\tcheck = word.charAt(i);\n\t\t\tif((check<97 || check>122)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean checkSpecialChars(String password) {\n return password.matches(\".*[()#$?!%/@].*\");\n //why does this not work? return password.matches(\"[()#$?!%/@]+\");\n }",
"public boolean isAscii()\n { \n for (int i=0; i<val.length(); ++i)\n { \n int c = val.charAt(i);\n if (c > 0x7f) return false;\n }\n return true;\n }",
"boolean checkChar(String s1, String s2);",
"boolean checkName (String name){\r\n \r\n // Use for loop to check each character\r\n for (int i = 0; i < name.length(); i++) {\r\n // If character is below 'A' in Unicode table then return false\r\n if (name.charAt(i) < 65 && name.charAt(i) != 32 && name.charAt(i) != 10){\r\n return false;\r\n }\r\n // Else if character is between 'Z' and 'a' in unicode table,\r\n // then return false\r\n else if (name.charAt(i) > 90 && name.charAt(i) < 97){\r\n return false;\r\n }\r\n else if (name.charAt(i) > 122)\r\n return false;\r\n }\r\n return true;\r\n }",
"public static boolean hasSpecial(String characters ){\n \n // Pattern letter = Pattern.compile(\"[a-zA-z]\"); \n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n // Matcher hasLetter = letter.matcher(characters); \n Matcher hasSpecial = special.matcher(characters);\n\n // return hasLetter.find() && hasDigit.find() && hasSpecial.find();\n return (hasSpecial.find()); \n \n }",
"public static boolean checkchar(String sentence){\n for (int i =0; i < sentence.length(); i++){ //just compare for the whole length \n if (Character.isLetter(sentence.charAt(i))==false){ //if it is not a letter\n return false; //return false\n }\n return true; //otherwise return true\n }\n return true;\n}",
"boolean checkchars(String str,String validchars, boolean casesensitive) {\n\n // If not case sensitive then convert both value and valid\n // characters to upper case\n if (casesensitive) {\n str.toUpperCase();\n validchars.toUpperCase();\n }\n\n // Go through each character in value until either end or hit an invalid char\n int charposn=0;\n while ((charposn<str.length())&&(validchars.indexOf(str.charAt(charposn))!=-1)) {\n charposn++;\n }\n\n // Check if stop was due to end of input string or invalid char and set return code\n // accordingly\n if (charposn==str.length())\n return(true);\n else\n return(false);\n }",
"private static void testBadChars() throws IOException {\n\t// say what output is expected\n\tSystem.err.println(\"\\nTEST BAD CHARS: BAD CHARS ON LINES 1-5\");\n\n\t// open input file\n\tFileReader inFile = null;\n\ttry {\n\t inFile = new FileReader(\"inBadChars\");\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inBadChars not found.\");\n\t System.exit(-1);\n\t}\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\tif (token.sym != sym.EOF) {\n\t System.err.println(\"ERROR TESTING BAD CHARS: not at EOF\");\n\t}\n }",
"public static boolean isUsernameValid(String username) {\n if (username.length() > 50) { \n return false;\n } else { \n char c;\n int count = 1; \n for (int i = 0; i < username.length(); i++) {\n c = username.charAt(i);\n if (!Character.isLetterOrDigit(c)) { \n return false;\n }\n // If the character is a space\n else if (c == ' '){ \n return false;\n }\n else if (Character.isDigit(c)) {\n count++;\n if (count > 6) { \n return false;\n } \n }\n }\n }\n return true;\n }",
"public static boolean checkAllAlphabets(String input) {\n if (input.length() < 26) {\n return false;\n }\n\n //Even a single character is missing, return false\n for (char ch = 'A'; ch <= 'Z'; ch++) {\n if (input.indexOf(ch) < 0 && input.indexOf((char) (ch + 32)) < 0) {\n return false;\n }\n }\n return true;\n }",
"public boolean isValidForString(String str, char charCode, int position);",
"public static boolean check(String s)\n {\n if (s.length() < 0 || s.length() > 10)\n {\n return true;\n }\n for (int i = 0 ; i < s.length(); i++)\n {\n if ((s.charAt(i) < 'a' || s.charAt(i) > 'z') && \n (s.charAt(i) < 'A' || s.charAt(i) > 'Z') && \n (s.charAt(i) < '0' || s.charAt(i) > '9'))\n {\n return true;\n }\n }\n return false;\n }",
"public static boolean hasSpecialAndDigits(String characters ){\n \n Pattern digit = Pattern.compile(\"[0-9]\");\n Pattern special = Pattern.compile (\"[//!@#$%&*()_+=|<>?{}\\\\[\\\\]~-]\");\n \n Matcher hasDigit = digit.matcher(characters);\n Matcher hasSpecial = special.matcher(characters);\n \n \n return (hasDigit.find()==true || hasSpecial.find()==true); \n \n }",
"public static Boolean validateInput(String input) {\n\t\tString xInput = input.substring(0,1);\n\n\t\n\n\t\t\n\t\tboolean xIsLetter = Character.isLetter(xInput.charAt(0));\n\n\t\tif((!input.isEmpty()) || (!xIsLetter)) {\n\t\n\t\t\treturn false;\n\t\t} else {\n\n\t\t\treturn true; \n\t\t\t}\n\t\t}",
"private static boolean isValidWord(String s) {\r\n\t\tString valid = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-'\";\r\n\t\tfor (int i = 0; i < s.length(); i++) {\r\n\t\t\tif (valid.indexOf(s.charAt(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\r\n\t}",
"public boolean nameValidation(String name) {\n\t char[] chars = name.toCharArray();\n\t int tempNum = 0;\n\t for (char c : chars) {\n\t tempNum += 1;\n\t \tif(!Character.isLetter(c)) {\n\t return false;\n\t }\n\t }\n\t if (tempNum == 0)\n\t \treturn false;\n\n\t return true;\n\t}",
"public boolean checkInput(String input){\n\t\t//make sure only input 0-9\n\t\tif(input.length() != 1){\n\t\t\treturn false;\n\t\t}\n\t\tchar c = input.charAt(0);\n\t\tif(!Character.isDigit(c)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean isValidCI(String text){\n Boolean validation = true;\n int lenght = text.length();\n char lastCharacter = text.charAt(lenght-1);\n if(Character.isDigit(lastCharacter) || Character.isAlphabetic(lastCharacter)){\n for(int i=0;i<lenght-1;i++){\n char ch = text.charAt(i);\n if(!Character.isDigit(ch)){\n validation = false;\n break;\n }\n }\n }\n else{\n validation = false;\n }\n if(isOnlySpaces(text)){\n validation = false;\n }\n return validation;\n }",
"private boolean isLegalNumChar(char c) {\n return c == '-'\n || c == '+'\n || (c >= '0' && c <= '9')\n || c == 'e'\n || c == 'E'\n || c == '.';\n }",
"private\n static\n boolean\n isHexChar( char ch )\n {\n return ( ch >= '0' && ch <= '9' ) ||\n ( ch >= 'a' && ch <= 'f' ) ||\n ( ch >= 'A' && ch <= 'F' );\n }",
"private static boolean isAlpha(char p_char) {\n return ((p_char >= 'a' && p_char <= 'z') || (p_char >= 'A' && p_char <= 'Z' ));\n }",
"public static boolean validatenum(String str) {\n\t\tchar[] s=str.toCharArray();\n\t\tfor(int i=0;i<str.length();i++) {\n\t\t\tchar temp=s[i];\n\t\t\ts[i]=temp; \n\t\t}\n\t\tchar ch;\n\t\tboolean capital=false;\n\t\tboolean lower=false;\n\t\tboolean num=false;\n\t\tboolean spc=false;\n\t\tfor(int i=0; i<s.length; i++) {\n\t\t\tch=s[i];\n\t\t\tif(s.length>9) {\n\t\t\t\tif(Character.isDigit(ch)) {\n\t\t\t\t\tSystem.out.println(\"digit char: \"+ch);\n\t\t\t\t\tnum=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isUpperCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"upper char: \"+ch);\n\t\t\t\t\tcapital=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"lower char: \"+ch);\n\t\t\t\t\tlower=true;\n\t\t\t\t}\n\t\t\t\telse if((int)ch==(int)'$'|| (int)ch==(int)'#') {\n\t\t\t\t\tSystem.out.println(\"special char: \"+ch);\n\t\t\t\t\tspc=true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Extra :\"+ch);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tif(num && spc && lower && capital) {\n\t\t\tSystem.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\t\treturn true;\n\t\t}\n\t\t//System.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\treturn false;\n\t}",
"private static boolean isReservedCharacter(char p_char) {\n return (p_char <= ']' && (fgLookupTable[p_char] & RESERVED_CHARACTERS) != 0);\n }",
"public static boolean isValidInput(String str) {\n if (str != null && str.matches(\"^[a-zA-Z0-9_]*$\")){\n return true;\n }\n\n return false;\n }",
"public final char[] validChars() {\n\t\t\treturn VALID_ALPHABET;\n\t\t}",
"boolean isError() {\n if (firstChar == '5' || firstChar == '4') {\n return true;\n }\n\n return false;\n }",
"private boolean hasSpecialCharacters(String s) {\r\n\t\t\tif (s != s.replaceAll(\"([^A-Za-z0-9.,!?~`'\\\"% _-]+)\", \"\")) return true;\r\n\t\t\treturn false;\r\n\t}",
"public static boolean isNameValid(String name) {\r\n return name.matches(\"^[a-zA-Z ]+$\");\r\n }",
"@Test\n void checkIsFalseForStringWithoutNumbers() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a\"));\n assertFalse(IsNumeric.check(\"ö\"));\n assertFalse(IsNumeric.check(\"\"));\n assertFalse(IsNumeric.check(\"´´´\"));\n assertFalse(IsNumeric.check(\"lgk\"));\n assertFalse(IsNumeric.check(\"lL y\"));\n assertFalse(IsNumeric.check(\" \"));\n assertFalse(IsNumeric.check(\"h* \"));\n assertFalse(IsNumeric.check(\"/+\"));\n assertFalse(IsNumeric.check(\"-\"));\n assertFalse(IsNumeric.check(\"+\"));\n assertFalse(IsNumeric.check(\"d\"));\n assertFalse(IsNumeric.check(\"ariel\"));\n assertFalse(IsNumeric.check(\"#€%/!\"));\n }",
"public static boolean isAscii(char ch) {\n/* 403 */ return (ch < '');\n/* */ }",
"public boolean checkInvalid4(String x) {\n int temp = x.length();\n for (int i = 0; i < x.length(); i++) {\n if (consonants.contains(String.valueOf(x.charAt(i))))\n temp--;\n }\n return temp > 3;\n }",
"@BeforeEach\n\tvoid setUpInvalidRE(){\n\t\tinvalidRE= new String[lengthInvalid];\n\t\t// (ab\n\t\tinvalidRE[0] = \"(ab\";\n\t\t// ab)\n\t\tinvalidRE[1] = \"ab)\";\n\t\t// *\n\t\tinvalidRE[2] = \"*\";\n\t\t// ?\n\t\tinvalidRE[3] = \"?\";\n\t\t// +\n\t\tinvalidRE[4] = \"+\";\n\t\t// a | b | +c\n\t\tinvalidRE[5] = \"a | b | +c\";\n\t\t// a | b | *c\n\t\tinvalidRE[6] = \"a | b | *c\";\n\t\t// a | b | ?c\n\t\tinvalidRE[7] = \"a | b | ?c\";\n\t\t// a | b | | c\n\t\tinvalidRE[8] = \"a | b | | c\";\n\t\t// uneven parenthesis\n\t\tinvalidRE[9] = \"(a(b(c(d)*)+)*\";\n\t\t// a | b |\n\t\tinvalidRE[10] = \"a | b | \";\n\t\t// invalid symbols\n\t\tinvalidRE[11] = \"a | b | $ | -\";\n\t\t// (*)\n\t\tinvalidRE[12] = \"(*)\";\n\t\t// (|a)\n\t\tinvalidRE[13] = \"(|a)\";\n\t\t// (.b)\n\t\tinvalidRE[14] = \"(.b)\";\n\t}",
"private boolean isAlpha(char toCheck) {\n return (toCheck >= 'a' && toCheck <= 'z') ||\n (toCheck >= 'A' && toCheck <= 'Z') ||\n toCheck == '_';\n }",
"private static final boolean isValidXMLChar(int c)\r\n\t {\r\n\t\t \r\n\t\t switch (c)\r\n\t\t {\r\n\t\t case 0x9:\r\n\t\t case 0xa: // line feed, '\\n'\r\n\t\t case 0xd: // carriage return, '\\r'\r\n\t\t return true;\r\n\r\n\t\t default:\r\n\t\t break;\r\n\t\t }\r\n\t\t if(c >= 0x20 && c <= 0xd7ff ) {\r\n\t\t\t \r\n\t\t }\r\n\t\t else if (c > 0xe000 && c <= 0xfffd) {\r\n\t\t\t \r\n\t\t }\r\n\t\t else if( c > 0x10000 && c <= 0x10ffff) {\r\n\t\t\t \r\n\t\t }\r\n\t\t else {\r\n\t\t\t return false;\r\n\t\t }\r\n\t\t return true;\r\n\t \r\n\t }",
"@Test\n\tpublic void TestR1NonIntegerParseableChars() {\n\t\tString invalid_solution = \"a74132865635897241812645793126489357598713624743526189259378416467251938381964572\";\n\t\tassertEquals(-1, sv.verify(invalid_solution));\n\t}",
"private boolean isValidBarcode(String barcode) {\n if (barcode.length() != isbnBarcodeLength) {\n return false;\n }\n final char[] barcodeChars = barcode.toCharArray();\n for (char i : barcodeChars) {\n if (i < isbnBarcodeValidStart || i > isbnBarcodeValidEnd) {\n return false;\n }\n }\n return true;\n }",
"public static boolean passwordCharOrDig ( String password){\n for (int i = 0; i < password.length(); i++){\n if (!Character.isLetterOrDigit(password.charAt(i))){\n return false;\n }\n\n }\n return true;\n }",
"@Test void testHexCharLiteralOutsideRangeFails() {\n final String sql = \"^_unicode'cg'^XCF\";\n final String expected = \"Unknown character set 'unicode'\";\n expr(sql).fails(expected);\n }",
"public static boolean hasSpecialCharacters(String s) {\n if (s == null || s.trim().isEmpty()) {\n //if the string is empty return true\n return true;\n }\n //create a pattern that checks for characters which are not alphanumeric and are not a dot, dash, or comma\n Pattern p = Pattern.compile(\"[^A-Za-z0-9. ,]^-\");\n Matcher m = p.matcher(s);\n // boolean b = m.matches();\n boolean b = m.find();\n if (b){\n //return true, there is special characters\n return true;\n } else {\n //return false, there is no special characters\n return false;\n }\n }",
"private boolean isValidName(String name)\n {\n String reg = \"^[a-zA-Z]+$\";\n return name.matches(reg);\n }",
"protected boolean isValidPattern(String pattern) {\n \t\t\tfor (int i= 0; i < pattern.length(); i++) {\n \t\t\t\tchar ch= pattern.charAt(i);\n \t\t\t\tif (!(ch == 9 || ch == 10 || ch == 13 || ch >= 32))\n \t\t\t\t\treturn false;\n \t\t\t}\n \t\t\treturn true;\n \t\t}",
"private boolean ifAlphabetOnly(String str){\n return str.chars().allMatch(Character :: isLetter);\n }",
"private void validExpresion(){\n\t\tString valores =\"+/*-^sinbqrcotah.\";\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint tam = fun.length-1;\n\t\tif(tam > 0){\n\t\t\tif(valores.indexOf(fun[tam]) != -1){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t\t}\n\t\t}\n\n\t\tif(this.getText().equals(\"+\") || this.getText().equals(\"-\") || this.getText().equals(\".\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\n\t\telse if(this.getText().equals(\"s\") || this.getText().equals(\"c\") || this.getText().equals(\"t\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\n\t\telse if(this.getText().equals(\"(\") || this.getText().equals(\"a\") || this.getText().equals(\"i\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\t}"
] |
[
"0.7458106",
"0.7427399",
"0.7342413",
"0.7237748",
"0.7107141",
"0.7074534",
"0.7030751",
"0.69968665",
"0.69863945",
"0.6923186",
"0.69113904",
"0.6880537",
"0.68754965",
"0.681918",
"0.68070626",
"0.68030566",
"0.679092",
"0.6745443",
"0.6740731",
"0.6734732",
"0.6723753",
"0.6717297",
"0.6712323",
"0.66877675",
"0.66755676",
"0.6670433",
"0.66630375",
"0.6644969",
"0.6638085",
"0.66362333",
"0.66271275",
"0.6622703",
"0.66142285",
"0.6612418",
"0.66062325",
"0.66056496",
"0.65998733",
"0.65994936",
"0.6596389",
"0.6584148",
"0.6573066",
"0.6570152",
"0.6565428",
"0.6556557",
"0.6554429",
"0.6531998",
"0.6525765",
"0.6520009",
"0.6515563",
"0.6515206",
"0.6499328",
"0.64925295",
"0.64696467",
"0.6468347",
"0.6460121",
"0.64387405",
"0.64376515",
"0.6434154",
"0.6424134",
"0.6410275",
"0.6409229",
"0.639736",
"0.639016",
"0.63814545",
"0.6353908",
"0.63483804",
"0.6346898",
"0.6323924",
"0.6303877",
"0.63024765",
"0.628577",
"0.6280609",
"0.627147",
"0.6264681",
"0.62614775",
"0.6246836",
"0.62327224",
"0.62229955",
"0.6219273",
"0.6207004",
"0.62031776",
"0.62026006",
"0.6201789",
"0.6200495",
"0.619491",
"0.61904335",
"0.618938",
"0.6188852",
"0.61856514",
"0.61840284",
"0.6167711",
"0.61654186",
"0.61647856",
"0.6164508",
"0.61546147",
"0.6150445",
"0.6145836",
"0.6141124",
"0.6139509",
"0.61389554",
"0.6137268"
] |
0.0
|
-1
|
check for empty string
|
public static boolean hasSpecialCharacters(String s) {
if (s == null || s.trim().isEmpty()) {
//if the string is empty return true
return true;
}
//create a pattern that checks for characters which are not alphanumeric and are not a dot, dash, or comma
Pattern p = Pattern.compile("[^A-Za-z0-9. ,]^-");
Matcher m = p.matcher(s);
// boolean b = m.matches();
boolean b = m.find();
if (b){
//return true, there is special characters
return true;
} else {
//return false, there is no special characters
return false;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}",
"private static boolean isEmpty(String str) {\n return str == null || str.trim().isEmpty();\n }",
"private boolean isEmpty(String str) {\n return (str == null) || (str.equals(\"\"));\n }",
"private boolean checkForEmpty(String str){\r\n\t\tString sourceStr = str;\r\n\t\tif(StringUtils.isBlank(sourceStr)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean canMatchEmptyString() {\n return false;\n }",
"protected boolean isEmpty(String s) {\n return s == null || s.trim().isEmpty();\n }",
"protected boolean notEmpty(String s) {\n return s != null && s.length() != 0;\n }",
"private final static boolean isEmpty(String field) {\n return field == null || field.trim().length() == 0;\n }",
"private static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }",
"@Test\n\tpublic void nonEmptyString() {\n\t\tString s = \" H \";\n\t\tassertFalse(\"Non empty string\", StringUtil.isEmpty(s));\n\t}",
"private static final boolean isEmpty(String s) {\n return s == null || s.trim().length() < 1;\n }",
"abstract boolean canMatchEmptyString();",
"private boolean isEmpty(String s) {\n return s == null || \"\".equals(s);\n }",
"private static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0) {\n return true;\n } else {\n return false;\n }\n }",
"public static boolean isEmptyOrNull(String content){\n if(content == null){\n return true;\n }else return content.trim().equals(\"\");\n }",
"protected boolean isEmpty(String text) {\r\n if (text == null) {\r\n return true;\r\n }\r\n\r\n if (text.trim().length() == 0) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public static boolean isEmptyOrNullString (final String in) {\n\t\treturn StringUtils.EMPTY_STRING.equals(in);\n\t}",
"static boolean isNullOrEmpty(String str){\n if(str == null){\n return true;\n }\n if(str.isEmpty()){\n return true;\n }\n if(str.length() == 0){\n return true;\n }\n if(str.equalsIgnoreCase(\" \")){\n return true;\n }\n return false;\n }",
"private final boolean emptyVal(String val) {\n return ((val == null) || (val.length() == 0));\n }",
"private static boolean isBlank(CharSequence str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\n return false;\n }\n }\n return true;\n }",
"private boolean isEmpty(String string) {\n\t\treturn string == null || string.isEmpty();\n\t}",
"public static boolean isNullOrEmpty(String content){\n return (content !=null && !content.trim().isEmpty() ? false :true);\n }",
"public static boolean isEmpty(String value)\n {\n return (isNull(value)) || value.trim().length() == 0;\n }",
"public static boolean isEmpty(String value)\n {\n return (isNull(value)) || value.trim().length() == 0;\n }",
"public static boolean checkEmptiness(String str) {\r\n return str != null && !str.trim().equals(\"\");\r\n }",
"public static boolean isBlankOrNullString(String s){\n return s == null || s.isEmpty() || s.equalsIgnoreCase(\"\");\n }",
"private static boolean hasString(String value) {\n if (!value.trim().equals(\"\") && value.length() > 0) {\n return true;\n }\n\n return false;\n\n }",
"private static boolean isBlank(String str)\r\n/* 254: */ {\r\n/* 255: */ int length;\r\n/* 256:300 */ if ((str == null) || ((length = str.length()) == 0)) {\r\n/* 257:301 */ return true;\r\n/* 258: */ }\r\n/* 259: */ int length;\r\n/* 260:302 */ for (int i = length - 1; i >= 0; i--) {\r\n/* 261:303 */ if (!Character.isWhitespace(str.charAt(i))) {\r\n/* 262:304 */ return false;\r\n/* 263: */ }\r\n/* 264: */ }\r\n/* 265:306 */ return true;\r\n/* 266: */ }",
"public static boolean isBlank(String text) {\n return text == null || isBlank(text.toCharArray());\n }",
"public static boolean isEmpty(String text) {\n return text == null || text.isEmpty();\n }",
"private boolean hasValue (String s) { return s != null && s.length() != 0; }",
"static boolean isNullOrEmpty(String string) {\n return string == null || string.isEmpty();\n }",
"public boolean isNotEmpty(String input){\r\n if(input == null) return false;\r\n if(input.isEmpty()) return false;\r\n return true;\r\n }",
"public static boolean isEmpty(String input) {\n if (input == null || input.isEmpty() || (\"\").equals(input.trim()))\n return true;\n return false;\n }",
"public static boolean isEmpty(String value) {\n return (value == null || value.trim().equals(\"\"));\n }",
"protected boolean checkEmpty(String line) {\n return line == null || line.isBlank();\n }",
"public static boolean isEmpty(String value) {\n return ((value == null) || (value.trim().length() == 0));\n }",
"public static boolean isEmptyString(String text) {\n return (text == null || text.trim().length() == 0);\n }",
"public static boolean isEmpty(String value) {\r\n\t\treturn value == null || value.length() < 1;\r\n\t}",
"public static boolean isEmpty(String s) {\n return s == null || s.isEmpty();\n }",
"public static boolean isNotEmpty(String text) {\r\n\t\treturn (!(text == null || text.isEmpty() || text.length() == 0 || text.equals(\"\")));\r\n\t}",
"public static boolean isBlank(String str)\n {\n if( str == null || str.length() == 0 )\n return true;\n return false;\n }",
"public static final boolean isEmpty(String strSource){\n return strSource==null ||strSource.equals(\"\")|| strSource.trim().length()==0; \n }",
"public static boolean isEmpty(String string) {\n\treturn null == string || string.trim().isEmpty();\n }",
"private boolean isAnyEmpty(){\n //get everything\n return (fname.getText().toString().trim().length() == 0)\n || (lname.getText().toString().trim().length() == 0)\n || (email.getText().toString().trim().length() == 0)\n || (password.getText().toString().trim().length() == 0);\n }",
"public static boolean isEmpty( String input )\n {\n if ( input == null || \"\".equals( input ) )\n return true;\n\n for ( int i = 0; i < input.length(); i++ )\n {\n char c = input.charAt( i );\n if ( c != ' ' && c != '\\t' && c != '\\r' && c != '\\n' )\n {\n return false;\n }\n }\n return true;\n }",
"public static boolean isEmptyString(String s) {\n return (s==null || s.equals(\"\"));\n }",
"public static boolean isEmpty(CharSequence str) {\r\n\t\tif (str == null || str.length() == 0) return true;\r\n\t\telse return false;\r\n\t}",
"public static boolean isEmpty(String aString)\r\n {\r\n return aString==null || aString.trim().length()==0;\r\n }",
"public static boolean isEmpty(CharSequence str) {\r\n if (str == null || str.length() == 0)\r\n return true;\r\n else\r\n return false;\r\n }",
"public boolean isEmpty() {\n\t\tString v = getValue();\n\t\treturn v == null || v.isEmpty();\n\t}",
"public static boolean isEmpty(String str) {\n return StringUtils.isEmpty(str);\n }",
"protected boolean isEmpty(Object obj) {\r\n return (obj == null || obj instanceof String\r\n && ((String) obj).trim().length() == 0);\r\n }",
"public static boolean isEmpty(String s) {\n return s == null || s.length() == 0;\n }",
"public boolean isEmpty( String string ){\n if( string == null || string.trim().length() == 0 ){\n return true;\n }\n return false;\n }",
"public static boolean IsNullOrEmpty(String text) {\n\t\treturn text == null || text.length() == 0;\n\t}",
"public static boolean isEmpty(String str) {\r\n return str == null || str.length() == 0;\r\n }",
"public static boolean isEmpty(CharSequence str) {\n return str == null || str.length() == 0;\n }",
"@Test\n\tpublic void zeroLength() {\n\t\tString s = \"\";\n\t\tassertTrue(\"Zero length string\", StringUtil.isEmpty(s));\n\t}",
"public static boolean isNullOrEmpty(String strIn)\r\n {\r\n return (strIn == null || strIn.equals(\"\"));\r\n }",
"public static boolean isNullOrEmpty(String text) {\n if (text == null || text.equals(\"\")) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean isNullOrEmpty(String str){\n \treturn str!=null && !str.isEmpty() ? false : true;\n }",
"static boolean containsNoData(String str) {\n return \"\".equals(str) || \"-\".equals(str);\n }",
"public static boolean isEmpty(String s) {\r\n return (s == null) || (s.length() == 0);\r\n }",
"public static Boolean IsStringNullOrEmpty(String value) {\n\t\treturn value == null || value == \"\" || value.length() == 0;\n\t}",
"public static boolean isStringEmpty(String str) {\r\n return (str == null) || \"\".equals(str.trim());\r\n }",
"private Boolean isFieldEmpty(EditText field) {\n return field.getText().toString().trim().equals(\"\");\n }",
"public static boolean isEmpty(final String value) {\n\t\treturn value == null || value.trim().length() == 0 || \"null\".endsWith(value);\n\t}",
"public static boolean isEmpty(@Nullable final String text) {\n return text == null || text.trim().length() == 0;\n }",
"public static boolean isEmpty(String s) {\n\t\treturn s != null && s.length() == 0;\n\t}",
"public static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0 || \"null\".equals(str))\n return true;\n else\n return false;\n }",
"private boolean isComboBoxEmpty(String entry){\n return entry == null || entry.isBlank();\n }",
"public static boolean stringNullOrEmpty ( String string ) {\r\n if ( string == null ) return true;\r\n if ( string.isEmpty() ) return true;\r\n return false;\r\n }",
"public static boolean isEmpty(final CharSequence string)\n\t{\n\t\treturn string == null || string.length() == 0 || string.toString().trim().equals(\"\");\n\t}",
"public static boolean checkNullOrEmptyString(String inputString) {\n\t\treturn inputString == null || inputString.trim().isEmpty();\n\t}",
"public static boolean isBlank(String str) {\n\t\tboolean flag = false;\n\t\tif (str == null || \"\".equals(str.trim())) {\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}",
"public static boolean isEmpty(CharSequence str) {\n\t\treturn (str == null || str.toString().trim().length() == 0);\n\t}",
"public static boolean isEmpty(String s)\r\n {\r\n return (s == null || s.length() == 0 || s.trim().length() == 0);\r\n }",
"public static boolean isEmpty(String string) {\n return string.length() == 0;\n }",
"static boolean isBlank(Token t) {\n return t.getText().isBlank(); // trim().length() == 0\n }",
"public static boolean isBlank(String str) {\r\n int strLen;\r\n if (str == null || (strLen = str.length()) == 0) {\r\n return true;\r\n }\r\n for (int i = 0; i < strLen; i++) {\r\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public static boolean isBlank(String str) {\n int strLen;\n if (str != null && (strLen = str.length()) != 0) {\n for (int i = 0; i < strLen; ++i) {\n if (!Character.isWhitespace(str.charAt(i))) {\n return false;\n }\n }\n return true;\n } else {\n return true;\n }\n }",
"public static boolean isBlank(String str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((!Character.isWhitespace(str.charAt(i)))) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }",
"public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }",
"public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }",
"public static boolean isNotNull(String txt){\n return txt!=null && txt.trim().length()>0 ? true: false;\n }",
"public static boolean isStringFullEmpty(String string) {\n\t\treturn !string.isBlank() && !string.isEmpty();\n\t}",
"public static boolean isBlank(String value) {\r\n return ((value == null) || (value.trim().length() == 0));\r\n }",
"public boolean isEmpty() {\n return (this.text == null);\n }",
"public abstract boolean isBlank() throws Exception;",
"public boolean isEmpty() {\n return strings.isEmpty();\n }",
"public static boolean isNotNull(String txt){\n\t\treturn txt!=null && txt.trim().length()>0 ? true: false;\n\t}",
"public static boolean isBlank(String value) {\n return value == null || value.trim().length() == 0;\n }",
"public static boolean isBlank(String value) {\n return value == null || value.trim().length() == 0;\n }",
"public static boolean isNotEmpty(String text) {\n return !isEmpty(text);\n }",
"public static boolean isBlank(String str) {\n return StringUtils.isBlank(str);\n }",
"private boolean haveEmptyField() {\n return getTextID(FIRST_NAME).isEmpty() ||\n getTextID(LAST_NAME).isEmpty() ||\n getTextID(ADDRESS).isEmpty();\n }",
"public static boolean isNotEmpty(String value) {\n\t\treturn value != null && !value.trim().isEmpty();\n\t}",
"public static boolean isNotEmpty(String str) {\n\treturn null != str && !str.trim().isEmpty();\n }",
"public static final boolean isBlank(final String string) {\n return Objects.isNull(string) || string.isEmpty();\n }"
] |
[
"0.8070274",
"0.79894465",
"0.79840004",
"0.7969921",
"0.7884312",
"0.78631955",
"0.7855884",
"0.7834666",
"0.7832823",
"0.78298867",
"0.7809499",
"0.78032976",
"0.77959085",
"0.77930737",
"0.77850795",
"0.77830714",
"0.776449",
"0.77423567",
"0.76815283",
"0.7666423",
"0.7661201",
"0.76174533",
"0.7610875",
"0.7610875",
"0.75991714",
"0.75918734",
"0.758339",
"0.7571512",
"0.7560112",
"0.755283",
"0.7547653",
"0.750901",
"0.7507053",
"0.7485787",
"0.74852514",
"0.74754757",
"0.7440558",
"0.7437572",
"0.7437538",
"0.74289525",
"0.74154586",
"0.74150527",
"0.74117154",
"0.74103975",
"0.7410164",
"0.7385224",
"0.7382141",
"0.7380985",
"0.7373994",
"0.7370479",
"0.7356132",
"0.73450387",
"0.73374903",
"0.7316641",
"0.7316099",
"0.73152614",
"0.73135054",
"0.7309907",
"0.7305152",
"0.7300414",
"0.7298618",
"0.72671473",
"0.7265566",
"0.72624075",
"0.7255588",
"0.7255043",
"0.7252976",
"0.7250685",
"0.7244489",
"0.72314346",
"0.72174406",
"0.7208302",
"0.7205249",
"0.7191411",
"0.7189124",
"0.7186205",
"0.7183772",
"0.71821916",
"0.717723",
"0.7174054",
"0.717405",
"0.71649235",
"0.71624833",
"0.7160301",
"0.7160301",
"0.7160301",
"0.7155457",
"0.7131491",
"0.71310693",
"0.7130255",
"0.7112537",
"0.71103865",
"0.70829165",
"0.70714736",
"0.70714736",
"0.706541",
"0.70544",
"0.70536596",
"0.70510644",
"0.704951",
"0.7041849"
] |
0.0
|
-1
|
/ Read client properties from the file.
|
private void init(String propFilePath) {
properties = new Properties();
try {
properties.load(new FileInputStream(new File(propFilePath)));
} catch (FileNotFoundException e1) {
logger.error("External properties file not found!", e1);
System.exit(1);
} catch (IOException e2) {
logger.error("Error while reading External properties file!", e2);
System.exit(1);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected Properties loadClientProperties(String filename) throws Exception {\n InputStream is = null;\n try {\n Properties props = new Properties();\n\n // Open the properties file specified by the user.\n File f = new File(filename);\n if (f.exists()) {\n is = new FileInputStream(f);\n } else {\n throw new FileNotFoundException(\"Properties file '\" + filename + \"' not found.\");\n }\n\n // Load the properties.\n props.load(is);\n is.close();\n\n return props;\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }",
"private static void readCitProperties(String fileName) {\n/* */ try {\n/* 91 */ ResourceLocation e = new ResourceLocation(fileName);\n/* 92 */ InputStream in = Config.getResourceStream(e);\n/* */ \n/* 94 */ if (in == null) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 99 */ Config.dbg(\"CustomItems: Loading \" + fileName);\n/* 100 */ Properties props = new Properties();\n/* 101 */ props.load(in);\n/* 102 */ in.close();\n/* 103 */ useGlint = Config.parseBoolean(props.getProperty(\"useGlint\"), true);\n/* */ }\n/* 105 */ catch (FileNotFoundException var4) {\n/* */ \n/* */ return;\n/* */ }\n/* 109 */ catch (IOException var5) {\n/* */ \n/* 111 */ var5.printStackTrace();\n/* */ } \n/* */ }",
"public void loadProperties(){\n\n\ttry{\n\t prop.load(file);\n // get the property value and print it out\n host = prop.getProperty(\"host\");\n\t port = prop.getProperty(\"port\");\n\t sslmode = prop.getProperty(\"sslmode\");\n\t source = prop.getProperty(\"source\");\n dbname = prop.getProperty(\"dbname\");\n help_url_prefix = prop.getProperty(\"base.help.url\");\n password = prop.getProperty(\"password\");\n\t user = prop.getProperty(\"user\");\t \n\t temp_dir = new File(System.getProperty(\"java.io.tmpdir\")).toString();\n\t working_dir = new File(System.getProperty(\"user.dir\")).toString();\n\t file.close();\n\t}catch(IOException ioe){\n\t\t\n\t} \n\t \n }",
"static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"public static Properties readProperties(String filePath){\n try {\n FileInputStream fileInputStream= new FileInputStream(filePath);\n properties=new Properties();\n properties.load(fileInputStream);\n fileInputStream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return properties;\n }",
"public static Properties parsePropertiesFile(File propertiesFile) {\n\t\tProperties clientProperties = new Properties();\n\t\tFileInputStream in;\n\t\ttry {\n\t\t\tin = new FileInputStream(propertiesFile);\n\t\t\tclientProperties.load(in);\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn clientProperties;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn clientProperties;\n\t\t}\n\t\treturn clientProperties;\n\t}",
"File getPropertiesFile();",
"public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}",
"static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}",
"public ReadProperties(String filename) {\n\n\t\ttry {\n\t\t\tInputStream in = new FileInputStream(filename);\n\n\t\t\tprop = new Properties();\n\n\t\t\tprop.load(in);\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}",
"@Override\n public Map<String, String> readProperty(String fileName) {\n Map<String, String> result = new HashMap<>();\n Properties prop = new Properties();\n InputStream input;\n try {\n input = FullPropertyReader.class.getClassLoader().getResourceAsStream(fileName);\n prop.load(input);\n Set<String> strings = prop.stringPropertyNames();\n for (String string : strings) {\n result.put(string, prop.getProperty(string));\n }\n } catch (IOException e) {\n throw new PropertyReaderException(\"Trouble in FullPropertyReader\", e);\n }\n return result;\n }",
"private Properties readProperties() throws IOException {\n\t\tProperties props = new Properties();\n\t\t\n\t\tFileInputStream in = new FileInputStream(\"Config.properties\");\n\t\tprops.load(in);\n\t\tin.close();\n\t\treturn props;\n\t}",
"public static Properties loadProperties(String filePath)\n {\n \tProperties listProperties = new Properties();\n\t\t//System.out.println(filePath);\n\n\t\tFileInputStream file = null;\n\t\ttry \n\t\t{\n\t\t\tfile = new FileInputStream(filePath);\n\t\t\t\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry \n\t\t{\n\t\t\t listProperties.load(file);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn listProperties;\n }",
"public DataInputClientProperties(String propertiesFilename) throws IOException {\n if (propertiesFilename == null) {\n initializeProperties();\n }\n else {\n initializeProperties(propertiesFilename);\n }\n }",
"public Map<String, Object> getProperties() throws ClientException;",
"public ConfigFileReader(){\r\n\t\tBufferedReader reader;\r\n\t\ttry {\r\n\t\t\treader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\tproperties = new Properties();\r\n\t\t\ttry {\r\n\t\t\t\tproperties.load(reader);\r\n\t\t\t\treader.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}catch(FileNotFoundException ex) {\r\n\t\t\tSystem.out.println(\"Configuration.properties not found at \"+propertyFilePath);\r\n\t\t}\r\n\t}",
"private boolean readFileProperties()\n {\n boolean propertiesServidorCorrecto = false;\n boolean propertiesClienteCorrecto = true;\n try\n {\n InputStream fis = null;\n Properties properties = null;\n File archivo = null;\n // LEE PROPERTIES DEL SERVIDOR\n fis = \n this.getClass().getResourceAsStream(\"/PtoVentaServ.properties\");\n //25.01.2008 ERIOS Se lee la ruta del parametro\n if( fis == null)\n {\n log.info(\"No leyo archivo\");\n //archivo = new File(\"AdmCentralServ.properties\");\n archivo = new File(prop1);\n fis = new FileInputStream(archivo);\n log.info(\"\" + archivo);\n }\n if (fis != null)\n {\n properties = new Properties();\n properties.load(fis);\n FarmaVariables.vCodGrupoCia = \n properties.getProperty(\"CodigoGrupoCompania\");\n //log.debug(\"FarmaVariables.vCodGrupoCia=\" + FarmaVariables.vCodGrupoCia);\n FarmaVariables.vCodCia = properties.getProperty(\"CodigoCompania\");\n FarmaVariables.vCodLocal = properties.getProperty(\"CodigoLocal\");\n //log.debug(\"FarmaVariables.vCodLocal=\" + FarmaVariables.vCodLocal);\n FarmaVariables.vImprReporte = \n properties.getProperty(\"ImpresoraReporte\");\n //log.debug(\"FarmaVariables.vImprReporte=\" + FarmaVariables.vImprReporte);\n FarmaVariables.vIPBD = properties.getProperty(\"IpServidor\");\n /**\n * Se comento para cargarlos junto con la clave\n * @author dubilluz\n * @since 13.10.2007\n */\n /*\n FarmaVariables.vSID = properties.getProperty(\"SID\");\n //log.debug(\"FarmaVariables.vSID=\" + FarmaVariables.vSID);\n if(FarmaVariables.vSID == null)\n FarmaVariables.vSID = ConstantsPtoVenta.SID;\n\n //FarmaVariables.vUsuarioBD = FarmaEncripta.desencripta(properties.getProperty(\"UsuarioBD\"));\n FarmaVariables.vUsuarioBD = properties.getProperty(\"UsuarioBD\");\n //log.debug(\"FarmaVariables.vUsuarioBD=\" + FarmaVariables.vUsuarioBD);\n if(FarmaVariables.vUsuarioBD == null)\n FarmaVariables.vUsuarioBD = ConstantsPtoVenta.USUARIO_BD;\n */\n log.info(\"cargo properties servidor ptoventa\");\n\n propertiesServidorCorrecto = true;\n }\n else\n {\n FarmaUtility.showMessage(myparent, \n \"Archivo de Configuracion del Servidor no Encontrado.\\nPóngase en contacto con el área de sistemas.\", \n null);\n log.info(\"NO cargo properties servidor ptoventa\");\n propertiesServidorCorrecto = false;\n }\n if (propertiesServidorCorrecto && propertiesClienteCorrecto)\n return true;\n else\n return false;\n }\n catch (FileNotFoundException fnfException)\n {\n log.error(\"\",fnfException);\n FarmaUtility.showMessage(myparent, \n \"Archivo de Configuracion del Servidor no Encontrado.\\nPóngase en contacto con el área de sistemas.\", \n null);\n }\n catch (IOException ioException)\n {\n log.error(\"\",ioException);\n FarmaUtility.showMessage(myparent, \n \"Error al leer archivo de Configuracion.\\nPóngase en contacto con el área de sistemas.\", \n null);\n }\n myparent.dispose();\n return false;\n }",
"private void initializeProperties(String propertiesFilename) throws IOException {\n this.properties = new Properties();\n\n // Set defaults for 'standard' operation.\n // properties.setProperty(FILENAME_KEY, clientHome + \"/bmo-data.tsv\");\n properties.setProperty(BMO_URI_KEY,\n \"http://www.buildingmanageronline.com/members/mbdev_export.php/download.txt\");\n\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(propertiesFilename);\n properties.load(stream);\n System.out.println(\"Loading data input client properties from: \" + propertiesFilename);\n }\n catch (IOException e) {\n System.out.println(propertiesFilename\n + \" not found. Using default data input client properties.\");\n throw e;\n }\n finally {\n if (stream != null) {\n stream.close();\n }\n }\n trimProperties(properties);\n }",
"@Override\n public Properties loadProperties(String filename) {\n return testProperties;\n }",
"private static Properties getProperties(final String filename) throws IOException, FileNotFoundException {\r\n \r\n final Properties result = new Properties();\r\n final InputStream propertiesStream = getInputStream(filename);\r\n result.load(propertiesStream);\r\n return result;\r\n }",
"public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }",
"private void GetRequiredProperties() {\r\n\r\n\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\t\r\n try {\r\n \r\n File file = new File(fileToRead);\r\n \r\n if (file.exists()) {\r\n logger.info(\"Config file exists\");\r\n } else {\r\n logger.error(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: Config file not found\");\r\n }\r\n \r\n prop.load(new FileInputStream(file));\r\n\r\n } catch (Exception e) {\r\n\r\n logger.error(\"Exception :: GetRequiredProperties :: \" + e.getMessage(), e);\r\n\r\n throw new RuntimeException(\"Exception :: GetRequiredProperties :: \" + e.getMessage());\r\n }\r\n\r\n\t sifUrl = prop.getProperty(\"MDM_SIF_URL\");\r\n\t orsId = prop.getProperty(\"MDM_ORS_ID\");\r\n\t username = prop.getProperty(\"MDM_USER_NAME\");\r\n\t password = prop.getProperty(\"MDM_PASSWORD\");\r\n\t \r\n\t logger.info(\"SIF URL ::\" + sifUrl);\r\n\t logger.info(\"ORS ID ::\" + orsId );\r\n\t logger.info(\"User Id ::\" + username);\r\n\t logger.info(\"Password ::\" + password);\r\n\t \r\n\t\r\n\t}",
"protected void readProperties() {\n\t\tproperties = new HashMap<>();\n\t\tproperties.put(MQTT_PROP_CLIENT_ID, id);\n\t\tproperties.put(MQTT_PROP_BROKER_URL, brokerUrl);\n\t\tproperties.put(MQTT_PROP_KEEP_ALIVE, 30);\n\t\tproperties.put(MQTT_PROP_CONNECTION_TIMEOUT, 30);\n\t\tproperties.put(MQTT_PROP_CLEAN_SESSION, true);\n\t\tproperties.put(MQTT_PROP_USERNAME, user);\n\t\tproperties.put(MQTT_PROP_PASSWORD, password.toCharArray());\n\t\tproperties.put(MQTT_PROP_MQTT_VERSION, MqttConnectOptions.MQTT_VERSION_3_1_1);\n\t}",
"private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }",
"public static void readClientfile(String filepath) throws FileNotFoundException {\r\n Scanner sc = new Scanner(new FileInputStream(filepath));\r\n String [] clientData;\r\n Client client;\r\n while (sc.hasNextLine()) {\r\n clientData = sc.nextLine().split(\",\");\r\n // csv file: LastName, FirstName, Address, Email, Card#, Expire Date\r\n // client object parameter: lastname, firstname, address,Email card, expire date.\r\n client = new Client(clientData[0], clientData[1], clientData[2], clientData[3], \r\n clientData[4], clientData[5]);\r\n addClient(client);\r\n }\r\n sc.close();\r\n }",
"private Properties loadProperties(String fileName){\r\n\t\t\r\n\t\tProperties prop = new Properties();\r\n\t\tInputStream input = null;\r\n\r\n\t\ttry {\r\n\r\n\t\t\tinput = new FileInputStream(fileName);\r\n\t\t\tprop.load(input);\r\n\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (input != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn prop;\t \r\n\t}",
"private static Properties readPropertiesFile(String fileName) throws IOException\n {\n LOG.log(Level.FINE, \"Searching for {0} file...\", fileName);\n try (final InputStream stream = SmartProperties.class.getClassLoader().getResourceAsStream(fileName))\n {\n Properties properties = new Properties();\n properties.load(stream);\n LOG.log(Level.FINE, \"{0} loaded successfully\", fileName);\n return properties;\n }\n }",
"private Properties loadPropertiesFile(String file) {\n\t\tFileInputStream fis = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(file);\n\t\t\tif (fis != null) {\n\t\t\t\tProperties props = new Properties();\n\t\t\t\tprops.load(fis);\n\t\t\t\treturn props;\n\t\t\t}\n\t\t\tSystem.err.println(\"Cannot load \" + file\n\t\t\t\t\t+ \" , file input stream object is null\");\n\t\t} catch (java.io.IOException ioe) {\n\t\t\tSystem.err.println(\"Cannot load \" + file + \", error reading file\");\n\t\t}\n\t\treturn null;\n\t}",
"public ConfigFileReader(){\r\n\t\t \r\n\t\t BufferedReader reader;\r\n\t\t try {\r\n\t\t\t reader = new BufferedReader(new FileReader(propertyFilePath));\r\n\t\t\t properties = new Properties();\r\n\t\t\t try {\r\n\t\t\t\t properties.load(reader);\r\n\t\t\t\t reader.close();\r\n\t\t\t } catch (IOException e) {\r\n\t\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t throw new RuntimeException(\"configuration.properties not found at \" + propertyFilePath);\r\n\t \t } \r\n\t }",
"private static void readFileOnClient(FileStore.Client client) throws SystemException, TException {\n String fileName = \"sample.txt\";\n NodeID nodeId = client.findSucc(getSHA(fileName));\n TTransport transport = new TSocket(nodeId.getIp(), nodeId.getPort());\n transport.open();\n\n TProtocol protocol = new TBinaryProtocol(transport);\n FileStore.Client readFileClient = new FileStore.Client(protocol);\n\n RFile rFile = readFileClient.readFile(fileName);\n System.out.println(\"Filename - \" + rFile.getMeta().getFilename());\n System.out.println(\"Version Number - \" + rFile.getMeta().getVersion());\n System.out.println(\"Content - \" + rFile.getContent());\n transport.close();\n }",
"public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void parseClientConfigFile(){\n\n boolean isClientFile = false; //states if the config-file is a clients file\n String line = \"\";\n\n try{\n buffReader = new BufferedReader(new FileReader (new File(logFileName) ));\n\n while( buffReader.ready()) {\n line = buffReader.readLine().trim();\n //check to see if <client> tag exists\n if (line.startsWith(\"<client>\")){\n isClientFile = true;\n }\n \n if (isClientFile){\n if (line.startsWith(\"<name>\")){\n this.name = line.substring(6, line.length()-7);\n } else if (line.startsWith(\"<key>\")){\n this.key = line.substring(5, line.length()-6);\n } else if (line.startsWith(\"<serverip>\")){\n this.serverIpString = line.substring(10, line.length()-11);\n } else if (line.startsWith(\"<serverport>\")){\n this.serverPort = Integer.valueOf(line.substring(12, line.length()-13));\n } else if (line.startsWith(\"<clientListenPort>\")){\n clientListenPort = Integer.valueOf(line.substring(18, line.length()-19));\n }\n else\n continue;\n } else\n initializeNA();\n }\n\n } catch (FileNotFoundException fnfEx){\n ClientInterface.getjTextArea1().append(\"Could not FIND client's Configuration File.\");\n initializeNA();\n } catch (IOException ioEx){\n ClientInterface.getjTextArea1().append(\"Could not OPEN client's Configuration File.\");\n initializeNA();\n }\n }",
"public static Properties readPropertiesFile(String path) {\n\n\t\tProperties propFile = new Properties();\n\t\ttry {\n\t\t\tpropFile.load(new FileInputStream(path));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error Reading Properties File\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn propFile;\n\t}",
"public Properties loadPropertiesFromFile(String path) {\n\n\t\ttry {\n\t\t\tInputStream fileInputStream = PropertyUtil.class\n\t\t\t\t\t.getResourceAsStream(path);\n\t\t\tproperties.load(fileInputStream);\n\t\t\tfileInputStream.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn properties;\n\t}",
"public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }",
"@BeforeSuite\n\tpublic void propertiesFileReader(){\n\t\tif(prop == null){\t\t\t\n\t\t\tprop = new Properties();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"qa\")){ prop.load(new\n\t\t\t\t * FileInputStream(qaProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"stage\")){ prop.load(new\n\t\t\t\t * FileInputStream(stagProperty)); }else\n\t\t\t\t * if(strEnvironment.equalsIgnoreCase(\"prod\")){ prop.load(new\n\t\t\t\t * FileInputStream(prodProperty)); }\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"qa\")) \n\t\t\t\t\tFileUtils.copyFile(new File(qaProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"stage\"))\n\t\t\t\t\tFileUtils.copyFile(new File(stagProperty), new File(defaultProperty));\n\t\t\t\tif(strEnvironment.equalsIgnoreCase(\"prod\"))\n\t\t\t\t\tFileUtils.copyFile(new File(prodProperty), new File(defaultProperty));\n\t\t\t\t\n\t\t\t\tprop.load(new FileInputStream(defaultProperty));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"user + pass [\"+prop.getProperty(\"username\")+\"===\"+prop.getProperty(\"password\"));\n\t\t\t\t\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"@Test\r\n\t\tpublic static void Properties() \r\n\r\n\t\t{\r\n\t\t\ttry{\r\n\t\t\t\tprop = new Properties();\r\n\t\t\t\tfile = new File(\"C:\\\\Users\\\\vardhan\\\\eclipse-workspace\\\\com.makemytrip\\\\prop.properties\");\r\n\t\t\t\tfilereader = new FileReader(file);\r\n\t\t\t\tprop.load(filereader);\r\n\t\t\t\t\r\n\t\t\t }\r\n\t\t\r\n\t\t\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}",
"private void loadProperties(){\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"private Properties loadProperties(String propertyFile) {\n\t\toAuthProperties = new Properties();\n\t\ttry {\n\t\t\toAuthProperties.load(App.class.getResourceAsStream(propertyFile));\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Unable to read \" + propertyFile\n\t\t\t\t\t+ \" configuration. Make sure you have a properly formatted \" + propertyFile + \" file.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn oAuthProperties;\n\t}",
"public String accessLocationPropFile(){\n\t\tProperties prop = new Properties();\n\t\tString loc=\"\";\n\t\ttry {\n\t\t\t//load a properties file\n\t\t\tprop.load(new FileInputStream(\"C:/Users/SARA/Desktop/OpenMRS/de/DeIdentifiedPatientDataExportModule/api/src/main/resources/config1.properties\"));\n\t\t\tInteger a = getRandomBetween(1, 3);\n\t\t\tloc = prop.getProperty(a.toString());\n\n\t\t} catch (IOException ex) {\n\t\t\tlog.error(\"IOException in accessing Location File\", ex);\n\t\t}\n\t\treturn loc;\n\t}",
"PropertiesImpl(BytesClientImpl client) {\n this.service =\n RestProxy.create(PropertiesService.class, client.getHttpPipeline(), client.getSerializerAdapter());\n this.client = client;\n }",
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"public static Properties file2Properties(File file) {\r\n Properties props = new Properties();\r\n FileInputStream stream = null;\r\n InputStreamReader streamReader = null;\r\n\r\n\r\n try {\r\n stream = new FileInputStream(file);\r\n streamReader = new InputStreamReader(stream, charSet);\r\n props.load(streamReader);\r\n } catch (IOException ex) {\r\n Logger.getLogger(RunProcessor.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return props;\r\n }",
"public static Properties loadProperties(String path) throws IOException {\n BufferedReader br = IOTools.asReader(path);\n Properties prop = new Properties();\n prop.load(br);\n br.close();\n return prop;\n }",
"public ConfigProperties read(File fFile) throws GUIReaderException { \n if ( fFile == null || fFile.getName().trim().equalsIgnoreCase(\"\") ) /*no filename for input */\n {\n throw new GUIReaderException\n (\"No input filename specified\",GUIReaderException.EXCEPTION_NO_FILENAME);\n }\n else /* start reading from config file */\n {\n try{ \n URL url = fFile.toURI().toURL();\n \n Map global = new HashMap(); \n Map pm = loader(url, global);\n ConfigProperties cp = new ConfigProperties ();\n cp.setGlobal(global);\n cp.setProperty(pm);\n return cp;\n \n }catch(IOException e){\n throw new GUIReaderException(\"IO Exception during read\",GUIReaderException.EXCEPTION_IO);\n }\n }\n }",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"private void loadPropertiesFromFile(String propertiesFileName) {\t\t\n\t\tif ( (propertiesFileName != null) && !(propertiesFileName.isEmpty()) ) {\n\t\t\tpropertiesFileName = config_file_name;\n\t \t\ttry {\n\t \t\t\t// FileInputStream lFis = new FileInputStream(config_file_name);\n\t \t\t\t// FileInputStream lFis = getServletContext().getResourceAsStream(config_file_name);\n\t \t\t\tInputStream lFis = Thread.currentThread().getContextClassLoader().getResourceAsStream(\"config.properties\");\n\t \t\t\tif (lFis != null) {\n\t\t \t\t\tProperties lConnectionProps = new Properties();\n\t\t \t\t\tlConnectionProps.load(lFis);\n\t\t \t\t\tlFis.close();\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using configuration file \" + config_file_name);\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceNname\") != null) ssosvc_name = lConnectionProps.getProperty(\"SsoServiceNname\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceLabel\") != null) ssosvc_label = lConnectionProps.getProperty(\"SsoServiceLabel\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServicePlan\") != null) ssosvc_plan = lConnectionProps.getProperty(\"SsoServicePlan\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_clientId = lConnectionProps.getProperty(\"SsoServiceCredential_clientId\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_secret = lConnectionProps.getProperty(\"SsoServiceCredential_secret\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_serverSupportedScope = lConnectionProps.getProperty(\"SsoServiceCredential_serverSupportedScope\");\n\t\t\tlLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, found Scopes = \" + ssosvc_cred_serverSupportedScope + \" for service name = \" + ssosvc_name);\t\n\t\t\t Pattern seperators = Pattern.compile(\".*\\\\[ *(.*) *\\\\].*\");\n\t\t\t if (seperators != null) {\n\t\t\t \tMatcher scopeMatcher = seperators.matcher(ssosvc_cred_serverSupportedScope);\n\t\t\t\t scopeMatcher.find();\n\t\t\t\t ssosvc_cred_serverSupportedScope = scopeMatcher.group(1); // only get the first occurrence\n\t\t\t\t lLogger.info(DEBUG_PREFIX + \"CONFIG FILE parsing, retrieved first Scope = \" + ssosvc_cred_serverSupportedScope);\n\t\t\t }\n\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_issuerIdentifier = lConnectionProps.getProperty(\"SsoServiceCredential_issuerIdentifier\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_tokenEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_tokenEndpointUrl\");\n\t\t \t\t\tif ( lConnectionProps.getProperty(\"SsoServiceCredential\") != null) ssosvc_cred_authorizationEndpointUrl = lConnectionProps.getProperty(\"SsoServiceCredential_authorizationEndpointUrl\");\n\t\n\t\t \t\t\tlLogger.info(DEBUG_PREFIX + \"Using config for SSO Service with name \" + ssosvc_name);\n\t \t\t\t} else {\n\t \t\t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file not found! Using default settings.\");\n\t \t\t\t}\n\n\t \t\t} catch (FileNotFoundException e) {\n\t \t\t\tlLogger.severe(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t} catch (IOException e) {\n\t \t\t\tlLogger.severe(\"SF-DEBUG: Configuration file = \" + config_file_name + \" not readable! Using default settings.\");\n\t \t\t\te.printStackTrace();\n\t \t\t}\n\t \t} else {\n\t \t\tlLogger.info(DEBUG_PREFIX + \"Configuration file = \" + config_file_name + \" not found! Using default settings.\");\n\t \t}\n\t}",
"public File getPropertiesFile() {\n return propertiesFile;\n }",
"public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}",
"private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public File getPropertyFile() { return propertyFile; }",
"void readProperties(java.util.Properties p) {\n }",
"private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }",
"public static Properties loadProperties(String file) throws Exception {\n Properties props = new Properties();\n props.load(new FileInputStream(file));\n\n return props;\n }",
"public void readProperties() {\r\n File directory = new File(OptionItems.XML_DEFINITION_PATH);\r\n if (directory.exists()) {\r\n propertyParserXML.readPropertyDefinition(configData.getPropertyList());\r\n propertyParserXML.processPropertyDependency();\r\n }\r\n Log.info(\"info.progress_control.load_property_description\");\r\n }",
"public void loadProperties() throws IOException\n\t{\n\t\tFile src = new File(\"D://Selenium Stuff//Selenium Workspace//OpenCartL2_28112017//ObjectRepo.properties\");\n\t\tFileInputStream fis = new FileInputStream(src);\n\t\tpro = new Properties();\n\t\tpro.load(fis);\n\t}",
"public ArrayList<Property> getProperties() {\r\n\t\ttry {\r\n\t\t\tproperties.clear();\r\n\t\t\tFileInputStream fis = new FileInputStream(PROPERTY_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \t\r\n \tProperty obj = null;\r\n \twhile ((obj=(Property)ois.readObject())!=null) {\r\n \t\tproperties.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn properties;\r\n\t}",
"public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }",
"void setPropertiesFile(File file);",
"private void loadPropertyFile(InputStream stream) throws IOException{\n\t\tproperties = new Properties();\n\t\tproperties.load(stream);\n\t}",
"public DBCredentials() {\n try {\n // Get the inputStream\n InputStream inputStream = this.getClass().getClassLoader()\n .getResourceAsStream(file);\n\n Properties properties = new Properties();\n\n // load the inputStream using the Properties\n properties.load(inputStream);\n // get the value of the property\n this.dbUser = properties.getProperty(\"Username\");\n this.dbPassword = properties.getProperty(\"Password\");\n this.dbUrl = properties.getProperty(\"DataBase\");\n\n } catch (IOException e) {\n System.out.println(\"IOException\");\n e.printStackTrace();\n }\n }",
"protected static Properties loadFileAsProperty(File file) throws FileNotFoundException, IOException {\r\n\t\tProperties result = new Properties();\r\n\t\tresult.load(new FileReader(file));\r\n\t\treturn result;\r\n\t}",
"public Properties readParameters(String filename) {\n\t// Läser in parametrar för simuleringen\n\t// Metoden kan läsa från terminalfönster, dialogrutor\n\t// eller från en parameterfil. Det sista alternativet\n\t// är att föredra vid uttestning av programmet eftersom\n\t// man inte då behöver mata in värdena vid varje körning.\n // Standardklassen Properties är användbar för detta.\n\n Properties p = new Properties();\n try {\n p.load(new FileInputStream(filename));\n } catch (IOException e) {\n System.out.println(e);\n }\n return p;\n }",
"public static void loadProperties(String filename) {\n\n if (filename.equals(\"\")) {\n return;\n }\n propfilename = userhome + FS + filename;\n File f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n } else {\n propfilename = userhome + FS + \"Properties\" + FS + filename;\n f = new File(propfilename);\n if (f.exists()) {\n //loadProperties(propfilename);\n }\n }\n\n try {\n try (FileInputStream i = new FileInputStream(propfilename)) {\n prop.load(i);\n //prtProperties();\n }\n } catch (FileNotFoundException e) {\n System.out.println(\" ** Properties file not found=\" + propfilename + \" userhome=\" + userhome + \" \" + System.getProperty(\"user.home\"));\n saveProperties();\n } catch (IOException e) {\n System.out.println(\"IOException reading properties file=\" + propfilename);\n System.exit(1);\n }\n }",
"private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }",
"private void loadProperties() {\n try (InputStream in = getClass().getClassLoader().getResourceAsStream(PATH_TO_PROPERTIES)) {\n this.prs.load(in);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }",
"public HashMap<String, String> readPropertyFile(String propertyFilePath) throws Exception {\n File propertyFile = null;\n InputStream inputStream = null;\n Properties properties = null;\n HashMap<String, String> propertyMap = new HashMap<String, String>();\n try {\n\n //creating file object\n propertyFile = new File(propertyFilePath);\n\n //check if property file exists on hard drive\n if (propertyFile.exists()) {\n inputStream = new FileInputStream(propertyFile);\n // check if the file exists in web environment or relative to class path\n } else {\n inputStream = getClass().getClassLoader().getResourceAsStream(propertyFilePath);\n }\n\n if (inputStream == null) {\n throw new Exception(\"FILE NOT FOUND : inputStream = null : \" + propertyFilePath);\n }\n\n properties = new Properties();\n properties.load(inputStream);\n Enumeration enuKeys = properties.keys();\n while (enuKeys.hasMoreElements()) {\n\n String key = (String) enuKeys.nextElement();\n String value = properties.getProperty(key);\n\n //System.out.print(\"key = \"+key + \" : value = \"+value);\n propertyMap.put(key, value);\n }\n if (propertyMap == null) {\n throw new Exception(\"readPropertyFile : propertyMap = null\");\n }\n\n return propertyMap;\n } catch (Exception e) {\n throw new Exception(\"readPropertyFile : \" + e.toString());\n } finally {\n try {\n inputStream.close();\n } catch (Exception e) {\n }\n try {\n properties = null;\n } catch (Exception e) {\n }\n }\n }",
"public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }",
"private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }",
"public static void main(String[] args) throws IOException {\n File f=new File(\"D:\\\\selenium\\\\filehandlingtest\\\\file\\\\Test.properties\");\n FileInputStream fis=new FileInputStream(f);\n Properties prop=new Properties();\n prop.load(fis);\n System.out.println (prop.getProperty(\"domain\"));\n \n Enumeration e= prop.keys();\n\n while (e.hasMoreElements()){\n \tString key = (String) e.nextElement();\n \tSystem.out.println(key+\"----\"+prop.get(key));\n \t\n }\n\t}",
"private static ConfigImpl loadProperties(Path path) throws IOException {\n final ConfigImpl ret;\n try (FileInputStream stream = new FileInputStream(path.toFile())) {\n try (InputStreamReader reader = new InputStreamReader(stream, UTF_8)) {\n ret = loadProperties(reader);\n }\n }\n return ret;\n }",
"protected void readProperties() throws RepositoryException {\n try {\n log.debug(\"Reading meta file: \" + this.metaFile);\n this.properties = new HashMap();\n BufferedReader reader = new BufferedReader(new FileReader(this.metaFile));\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n String name;\n String typeName;\n String value;\n try {\n name = line.substring(0, line.indexOf(\"<\")).trim();\n typeName = line.substring(line.indexOf(\"<\")+1, line.indexOf(\">\")).trim();\n value = line.substring(line.indexOf(\":\")+1).trim();\n } catch (StringIndexOutOfBoundsException e) {\n throw new RepositoryException(\"Error while parsing meta file: \" + this.metaFile \n + \" at line \" + line);\n }\n Property property = new DefaultProperty(name, PropertyType.getType(typeName), this);\n property.setValueFromString(value);\n this.properties.put(name, property);\n }\n reader.close();\n } catch (IOException e) {\n throw new RepositoryException(\"Error while reading meta file: \" + metaFile + \": \" \n + e.getMessage());\n }\n }",
"public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }",
"private static void read(Client client,String user,String filename) throws SystemException, TException {\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\t\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\t// predIP = \"127.0.0.1\";\n\t\tint predPort = succNode.port;\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tchord_auto_generated.FileStore.Client client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Reading file location : \" + predPort + \" File :\"+filename+\"Owner : \"+user);\n\t\t\tRFile rFile = new RFile();\n\t\t\trFile = client1.readFile(filename, user);\n\t\t\tSystem.out.println(rFile.getContent());\n\t\t\tSystem.out.println(rFile.getMeta().getVersion());\n\t\t\tSystem.out.println(rFile.getMeta().getContentHash());\n\t\t\tSystem.out.println(\"Reading file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public ReadConfig() \n\t{\n\t\tFile scr = new File(\"./Configuration/config.properties\"); //property file\n\n\t\tFileInputStream fis;\n\t\ttry {\n\t\t\tfis = new FileInputStream(scr); // READ the DATA (read mode)\n\t\t\tpro = new Properties(); // pro object\n\t\t\tpro.load(fis); // Load method -load at the \n\n\t\t} catch (final Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"Except is \" + e.getMessage());\n\t\t} \n\t}",
"public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }",
"public static Properties loadProperties(@NonNull File file) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(file);\n Properties properties = new Properties();\n properties.load(fileInputStream);\n return properties;\n }",
"public abstract Properties getProperties();",
"void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}",
"void load() {\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(propertyFile);\n\t\t\tfinal Properties newProperties = new Properties();\n\t\t\tnewProperties.load(fis);\n\t\t\ttimeLastRead = propertyFile.lastModified();\n\t\t\tproperties = newProperties;\n\t\t\tfis.close();\n\t\t} catch (final Exception e) {\n\t\t\tlogger.info(\"Property file \" + propertyFile + \" \" + e.getMessage());\n\t\t}\n\t}",
"public static Properties readPropertyFile(String fileName) {\n\t\tProperties properties = new Properties();\n\t\tFileInputStream in = null;\n\t\ttry {\n\t\t\tin = new FileInputStream(fileName);\n\t\t\tproperties.load(in);\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"cannot read property file \" + fileName);\n\t\t\tSystem.exit(-1);\n\t\t} finally {\n\t\t\tif (in != null) {\n\t\t\t\ttry {\n\t\t\t\t\tin.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLOG.error(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn properties;\n\t}",
"private void readFromFile(){\n\t\t\n\t\ttry {\n\t\t\tFile file=new File(\"controller.txt\");\n\t\t\tFileInputStream fin;\n\t\t\tfin = new FileInputStream(file);\n\t\t\tDataInputStream din=new DataInputStream(fin);\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(din));\n\t\t\t\n\t\t\tfor(int i=0; i<2; i++){\n\t\t\t\tif(i==0)\n\t\t\t\t\tcodedUserName=br.readLine();\n\t\t\t\telse \n\t\t\t\t\tcodedPassword=br.readLine();\n\t\t\t}\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public DataInputClientProperties() throws IOException {\n this(null);\n }",
"public static Properties loadProperties(@NonNull String path) throws IOException {\n File file = loadFile(path);\n if(file == null){ throw new IOException(\"没有找到文件\"); }\n return ReaderUtils.loadProperties(file);\n }",
"private void loadProperties() {\n\t\t\n\t\tString fldr = env.getProperty(\"response.folder\");\n\t\tthis.repo.setRootFolder( new File(fldr));;\n\t\t\n\t\tint nthConfigItem = 1;\n\t\twhile(true) {\n\t\t\tString seq = (\"\"+nthConfigItem++).trim();\n\t\t\t\n\t\t\tString xpathPropName = \"request.\" + seq + \".xpath\";\n\t\t\tString responseTextFilePropName = \"request.\" + seq + \".response.file\";\n\t\t\tString xpath = env.getProperty(xpathPropName);\n\t\t\tString responseTextFileName = env.getProperty(responseTextFilePropName);\n\t\t\tif (xpath!=null && !\"\".equals(xpath.trim())\n\t\t\t\t&& responseTextFileName!=null & !\"\".equals(responseTextFileName.trim())\t) {\n\t\t\t\t\n\t\t\t\trepo.addFile(xpath, responseTextFileName);\n\t\t\t\tController.logAlways(\"Loading config item [\" + seq + \"] xpath: [\" + rpad(xpath, 60) + \"] data file: [\" + rpad(responseTextFileName,25) + \"]\" );\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tController.logAlways(\"End of littleMock initialization. No more properties from application.properties will be loaded because either [\" + xpathPropName + \"] or [\" + responseTextFilePropName + \"] was not found in application.properties.\");\n\t\t\t\t//parameters in application.properties must be\n\t\t\t\t//in sequential order, starting at 1.\n\t\t\t\t//When we discover the first missing one, stop looking for more.\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\thumanReadableConfig = PlaybackRepository.SINGLETON.humanReadable();\n\t}",
"public abstract String getPropertyFile();",
"public static void loadPropertyFile() throws IOException {\n\t\tPropertyFileReader.property = new Properties();\n\t\tPropertyFileReader.targetPlatform = System.getProperty(\"targetPlatform\");\n\t\tPropertyFileReader.targetDevice = System.getProperty(\"targetDevice\");\n\n\t\t// Load the property file based on platform and device\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"android\")) {\n\t\t\tfinal File file = new File(String.valueOf(System.getProperty(\"user.dir\"))\n\t\t\t\t\t+ \"\\\\src\\\\main\\\\resources\\\\testdata\\\\\" + PropertyFileReader.targetPlatform + \"\\\\\"\n\t\t\t\t\t+ PropertyFileReader.targetDevice + \"\\\\capabilities.properties\");\n\t\t\tPropertyFileReader.filereader = new FileReader(file);\n\t\t\tPropertyFileReader.property.load(PropertyFileReader.filereader);\n\t\t}\n\n\t\tif (PropertyFileReader.targetPlatform.equalsIgnoreCase(\"iOS\")) {\n\t\t\t// To do in case of iOS\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException\r\n\t{\n\t\tFileInputStream fis=new FileInputStream(\"D:\\\\QSpiders_2019\\\\html\\\\config.properties.txt\");\r\n\t\t//Create an object of Properties class since getproperty() is a non-static method\r\n\t\tProperties prop=new Properties();\r\n\t\t//load the file into Properties class\r\n\t\tprop.load(fis);\r\n\t\t//read the data from Properties file using Key\r\n\t\tString URL =prop.getProperty(\"url\");\r\n\t\tSystem.out.println(URL);\r\n\t\tSystem.out.println(prop.getProperty(\"username\"));\r\n\t\tSystem.out.println(prop.getProperty(\"password\"));\r\n\t\tSystem.out.println(prop.getProperty(\"browser\"));\r\n\r\n\t}",
"public final Properties readPropertiesFromFile(final String fileName)\n {\n\n if (!StringUtils.isEmpty(fileName))\n {\n return PropertyLoader.loadProperties(fileName);\n } else\n {\n return null;\n } // end if..else\n\n }",
"void loadProperties(final String fileName){\n mProperties = new Properties();\n try {\n InputStreamReader stream = new InputStreamReader(CoreLib.getAppContext().getResources().\n getAssets().open(fileName));\n mProperties.load(stream);\n }catch (IOException e){\n throw new Error(\"Make sure you have both properties file(\" + fileName + \")present under assets\");\n }\n }",
"private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }",
"public String readProperty(String property, String sFilePath) throws Exception {\n try {\n return readPropertyFile(sFilePath).get(property);\n } catch (Exception e) {\n throw new Exception(\"readProperty : \" + e.toString());\n }\n }",
"public Properties loadProps(String propFile) {\n Properties props = new Properties();\n BufferedReader f;\n try {\n f = new BufferedReader(new FileReader(propFile));\n } catch (FileNotFoundException e) {\n return null;\n }\n try {\n props.load(f);\n } catch (IOException e) {\n System.err.println(\"IO EXception in loadProps in EvalModels class\");\n }\n System.out.println(props.toString());\n return props;\n }",
"public String getPropertyFile() {\n return propertyFile;\n }",
"public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\n }"
] |
[
"0.7844136",
"0.68254924",
"0.6793821",
"0.6609526",
"0.6537679",
"0.65151244",
"0.645719",
"0.63887125",
"0.63795507",
"0.6370521",
"0.6343466",
"0.6311852",
"0.62949574",
"0.6291433",
"0.6283996",
"0.62171525",
"0.6209582",
"0.6205065",
"0.61888707",
"0.61826855",
"0.6170106",
"0.6152503",
"0.61452216",
"0.6139908",
"0.61201733",
"0.6112456",
"0.61096287",
"0.61052483",
"0.6103595",
"0.6101158",
"0.60973316",
"0.6094303",
"0.6088596",
"0.60228664",
"0.6018169",
"0.6016736",
"0.60094726",
"0.6005506",
"0.59990394",
"0.59753585",
"0.59708935",
"0.59684616",
"0.5955313",
"0.593869",
"0.59357864",
"0.59225637",
"0.59197134",
"0.5918902",
"0.590423",
"0.59030575",
"0.58963126",
"0.58827746",
"0.58680904",
"0.58670783",
"0.58537203",
"0.5847145",
"0.5846763",
"0.58413535",
"0.58210844",
"0.5819949",
"0.5818196",
"0.58175313",
"0.58163846",
"0.5815297",
"0.581115",
"0.580268",
"0.58017415",
"0.5795843",
"0.5784755",
"0.57825524",
"0.57818335",
"0.5778643",
"0.57733506",
"0.5756207",
"0.574322",
"0.573662",
"0.57349616",
"0.57257485",
"0.571186",
"0.5705863",
"0.5690638",
"0.5685494",
"0.56774825",
"0.5662539",
"0.56616884",
"0.565664",
"0.56564754",
"0.56484145",
"0.5639307",
"0.5635291",
"0.562173",
"0.56207377",
"0.5614032",
"0.56128126",
"0.56126845",
"0.56119287",
"0.56045324",
"0.56029046",
"0.55835205",
"0.558316"
] |
0.56805074
|
82
|
argumenti su niz parametara na osnovu kojih se vrsi evaluacija
|
public static void main(String[] args) {
new ClientExternal(args).start();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"java.lang.String getParameterValue();",
"boolean hasParameterValue();",
"public void param(int direccionValorParam, int numeroParam){\n String valorParam = \"\";\n //traduce casos de direccionamiento indirecto\n direccionValorParam = traduceDirIndirecto(direccionValorParam);\n // obtener la direccion de la variable parametrizada en el procedimiento llamado\n int dirParamRegistro = this.directorioProcedimientos.\n obtenerProcedimientoPorId(this.pilaEras.peek().\n getIdentificadorProcedimiento()).getDireccionParametros().get(numeroParam);\n\n if (ManejadorMemoria.isGlobal(direccionValorParam)){\n // obtener el valor del parametro enviado\n valorParam = this.registroGlobal.getValor(direccionValorParam);\n\n } else if (ManejadorMemoria.isConstante(direccionValorParam)){\n // REVISAR QUE NO SEA UN PARAMETRO POR REFERENCIA\n if (this.directorioProcedimientos.\n obtenerProcedimientoPorId(this.pilaEras.peek().\n getIdentificadorProcedimiento()).getIndicadorPorReferencia().get(numeroParam)){\n // ERROR\n throw new IllegalArgumentException();\n }\n // obtener el valor del parametro enviado\n valorParam = this.directorioProcedimientos.getConstantes().get(direccionValorParam).getValorConstante();\n\n } else { // VARIABLE LOCAL\n // obtener el valor del parametro enviado\n valorParam = this.pilaRegistros.peek().getValor(direccionValorParam);\n }\n // asignar el valor del parametro a su variable correspondiente\n this.pilaEras.peek().guardaValor(dirParamRegistro, valorParam);\n }",
"private void validateInputParameters(){\n\n }",
"@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}",
"@Test\n public void execute_nameParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"name\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"ElLe\", \"name\", true, false, Arrays.asList(ELLE));\n //Single keyword, case sensitive, person found.\n execute_parameterPredicate_test(0, \"ElLe\", \"name\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(3, \"Kurz Elle Kunz\", \"name\", true, false, Arrays.asList(CARL, ELLE, FIONA));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"kurz Elle kunz\", \"name\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, multiple people found\n execute_parameterPredicate_test(2, \"kurz Elle Kunz\", \"name\", false, false, Arrays.asList(ELLE, FIONA));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"Kurz Elle kunz\", \"name\", false, true, Collections.emptyList());\n }",
"@Test\n public void execute_nricParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"nric\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"s1234567A\", \"nric\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"s1234567A\", \"nric\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"S1234567a S5234569A\", \"nric\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"S1234567a S5234569A\", \"nric\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"S1234567a S5234569A\", \"nric\", false, true, Collections.emptyList());\n }",
"static public void verificaParametros()\r\n \r\n {\r\n SynthesizerModeDesc synthesizerModeDescTemp = (SynthesizerModeDesc)synthesizer.getEngineModeDesc();\r\n System.out.println(\"Nome do engine utilizado: \"+synthesizerModeDescTemp.getEngineName());\r\n System.out.println(\"Nome do modo de funcionamento utilizado: \"+synthesizerModeDescTemp.getModeName());\r\n \tSystem.out.println(\"Nome da localidade utilizada: \"+synthesizerModeDescTemp.getLocale().toString());\r\n \t\t//verifica a flag de controle\r\n if(synthesizerModeDescTemp.getRunning()!=null)\r\n if(synthesizerModeDescTemp.getRunning().booleanValue())\r\n System.out.println(\"Engine rodando.\");\r\n else\r\n System.out.println(\"Engine parado.\");\r\n else\r\n System.out.println(\"A flag de controle não foi setada e tem valor nulo.\");\r\n \t\t//mostra as vozes suportadas\r\n Voice[] VoiceTemp = synthesizerModeDescTemp.getVoices();\r\n for(int i=0;i<VoiceTemp.length;i++)\r\n {\r\n System.out.println(\"Voz numero \"+(i+1)+\" : \"+VoiceTemp[i].getName());\r\n }\r\n }",
"public void setParameters(Map<String, String> param) {\n\n // check the occurrence of required parameters\n if(!(param.containsKey(\"Indri:mu\") && param.containsKey(\"Indri:lambda\"))){\n throw new IllegalArgumentException\n (\"Required parameters for IndriExpansion model were missing from the parameter file.\");\n }\n\n this.mu = Double.parseDouble(param.get(\"Indri:mu\"));\n if(this.mu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:mu\") + \", mu is a real number >= 0\");\n\n this.lambda = Double.parseDouble(param.get(\"Indri:lambda\"));\n if(this.lambda < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"Indri:lambda\") + \", lambda is a real number between 0.0 and 1.0\");\n\n if((param.containsKey(\"fb\") && param.get(\"fb\").equals(\"true\"))) {\n this.fb = \"true\";\n\n this.fbDocs = Integer.parseInt(param.get(\"fbDocs\"));\n if (this.fbDocs <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbDocs\") + \", fbDocs is an integer > 0\");\n\n this.fbTerms = Integer.parseInt(param.get(\"fbTerms\"));\n if (this.fbTerms <= 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbTerms\") + \", fbTerms is an integer > 0\");\n\n this.fbMu = Integer.parseInt(param.get(\"fbMu\"));\n if (this.fbMu < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbMu\") + \", fbMu is an integer >= 0\");\n\n this.fbOrigWeight = Double.parseDouble(param.get(\"fbOrigWeight\"));\n if (this.fbOrigWeight < 0) throw new IllegalArgumentException\n (\"Illegal argument: \" + param.get(\"fbOrigWeight\") + \", fbOrigWeight is a real number between 0.0 and 1.0\");\n\n if (param.containsKey(\"fbInitialRankingFile\") && param.get(\"fbInitialRankingFile\") != \"\") {\n this.fbInitialRankingFile = param.get(\"fbInitialRankingFile\");\n try{\n this.initialRanking = readRanking();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n }\n\n if (param.containsKey(\"fbExpansionQueryFile\") && param.get(\"fbExpansionQueryFile\") != \"\")\n this.fbExpansionQueryFile = param.get(\"fbExpansionQueryFile\");\n }\n }",
"@Test (dataProvider= \"My data provider\")\r\n\tpublic void TestCalcParamitarized(String in1,String Op, String in2,String Expec){ //.... 1- Parameterized test method -Define method input parameters-\r\n\t\tCalc(in1, Op, in2);\r\n\t\tassertResult(Expec);\t\t\r\n\t}",
"abstract int estimationParameter1();",
"private void checkParams() throws InvalidParamException{\r\n String error = svm.svm_check_parameter(this.problem, this.param);\r\n if(error != null){\r\n throw new InvalidParamException(\"Invalid parameter setting!\" + error);\r\n }\r\n }",
"private static void variosParametros(String nombre, int ... numeros){\n System.out.println(\"nombre = \" + nombre);\n imprimirNumeros(numeros);\n }",
"public Tipo visitParameter(DECAFParser.ParameterContext ctx){\r\n\t\tVarDec var =new VarDec(ctx.ID().getText(),tablaSimbolos.searchTipo(ctx.parameterType().getText()),0,position);\r\n\t\tfirmaA.addParam(var);\r\n\t\taddComment(\"paramname: \"+var.getNombre()+\"-position: \"+position);\r\n\t\tposition+=var.getByteSize();\r\n\t\treturn tablaSimbolos.correct();\r\n\t}",
"public String visit(ExpressionList n, Object argu) \n\t{\n\t\tString _ret=null;\n\t\tMap<String, String> parameter = parameters.get(0);\n\t\t\n\t\t\n\t\tString e0 = n.f0.accept(this, argu);\n\t\tif (parameter.containsValue(e0) \n\t\t\t\t&& ((parameters.size() <= 1) \n\t\t\t\t|| n.f1.accept(this, parameters.subList(1, parameters.size()-1)) != null))\n\t\t{\n\t\t\t_ret = e0;\n\t\t}\n\t\t\n\t return _ret;\n\t}",
"private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }",
"public void checkParameters() {\n }",
"private static boolean isParamSettable(String parameter)\n {\n if (parameter.equalsIgnoreCase(\"vdhe\") ||\n parameter.equalsIgnoreCase(\"vspe\") ||\n parameter.equalsIgnoreCase(\"dvle\") ||\n parameter.equalsIgnoreCase(\"dvme\") ||\n parameter.equalsIgnoreCase(\"ngon\") ||\n parameter.equalsIgnoreCase(\"ieon\") ||\n parameter.equalsIgnoreCase(\"deon\") ||\n parameter.equalsIgnoreCase(\"geon\") ||\n parameter.equalsIgnoreCase(\"dhsb\") ||\n parameter.equalsIgnoreCase(\"dhrg\") ||\n parameter.equalsIgnoreCase(\"dssb\") ||\n parameter.equalsIgnoreCase(\"dssa\") ||\n parameter.equalsIgnoreCase(\"dssf\") ||\n parameter.equalsIgnoreCase(\"dvla\") ||\n parameter.equalsIgnoreCase(\"iebt\") ||\n parameter.equalsIgnoreCase(\"iea\") ||\n parameter.equalsIgnoreCase(\"dea\") ||\n parameter.equalsIgnoreCase(\"ded\") ||\n parameter.equalsIgnoreCase(\"gebg\") ||\n parameter.equalsIgnoreCase(\"aoon\") ||\n parameter.equalsIgnoreCase(\"plb\") ||\n parameter.equalsIgnoreCase(\"plmd\") ||\n parameter.equalsIgnoreCase(\"vmon\") ||\n parameter.equalsIgnoreCase(\"vmb\") ||\n parameter.equalsIgnoreCase(\"dvli\") ||\n parameter.equalsIgnoreCase(\"dvlo\") ||\n parameter.equalsIgnoreCase(\"dvmc\") ||\n parameter.equalsIgnoreCase(\"ienb\") ||\n parameter.equalsIgnoreCase(\"iebf\") ||\n parameter.equalsIgnoreCase(\"genb\") ||\n parameter.equalsIgnoreCase(\"gebf\") ||\n parameter.equalsIgnoreCase(\"aonb\") ||\n parameter.equalsIgnoreCase(\"aobf\") ||\n parameter.equalsIgnoreCase(\"aobg\") ||\n parameter.equalsIgnoreCase(\"arnb\") ||\n parameter.equalsIgnoreCase(\"arbf\") ||\n parameter.equalsIgnoreCase(\"aocc\") ||\n parameter.equalsIgnoreCase(\"arbi\") ||\n parameter.equalsIgnoreCase(\"arbl\") ||\n parameter.equalsIgnoreCase(\"arbh\") ||\n parameter.equalsIgnoreCase(\"arod\") ||\n parameter.equalsIgnoreCase(\"artp\") )\n return true;\n else\n return false;\n }",
"protected void validatePedidoDetalle(biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[] param){\n \n if ((param != null) && (param.length < 1)){\n throw new java.lang.RuntimeException();\n }\n \n }",
"@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }",
"public abstract double evaluer(SolutionPartielle s);",
"@Test\n public void execute_emailParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"email\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(1, \"ALICE\", \"email\", true, false, Arrays.asList(ALICE));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"ALICE\", \"email\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"ALiCe anna\", \"email\", true, false, Arrays.asList(ALICE, GEORGE));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"ALiCe anna\", \"email\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(1, \"ALiCe anna\", \"email\", false, false, Arrays.asList(GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"ALiCe anna\", \"email\", false, true, Collections.emptyList());\n }",
"public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Parametres\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Param();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"protected void validatePreamp(int[] param) {\n }",
"public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}",
"@Test\r\n \tpublic void testParameters() {\n \t\tParameters params = (Parameters) filter.getParameters();\r\n \t\t\t\t\t\t\r\n \t\tassertEquals(params.unescapeSource, true);\r\n \t\tassertEquals(params.trimLeading, true);\r\n \t\tassertEquals(params.trimTrailing, true);\r\n \t\tassertEquals(params.preserveWS, true);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\tassertEquals(\t\t\t\t\r\n \t\t\t\t\"#v1\\ncount.i=2\\nrule0=%(([-0+#]?)[-0+#]?)((\\\\d\\\\$)?)(([\\\\d\\\\*]*)(\\\\.[\\\\d\\\\*]*)?)[dioxXucsfeEgGpn]\\n\" +\r\n \t\t\t\t\"rule1=(\\\\\\\\r\\\\\\\\n)|\\\\\\\\a|\\\\\\\\b|\\\\\\\\f|\\\\\\\\n|\\\\\\\\r|\\\\\\\\t|\\\\\\\\v\\nsample=\\nuseAllRulesWhenTesting.b=false\", \r\n \t\t\t\tparams.codeFinderRules);\r\n \t\t\t\t\t\t\t\t\t\r\n \t\t// Check if defaults are set\r\n \t\tparams = new Parameters();\r\n \t\tfilter.setParameters(params);\r\n \t\t\r\n \t\tparams.columnNamesLineNum = 1;\r\n \t\tparams.valuesStartLineNum = 1;\r\n \t\tparams.detectColumnsMode = 1;\r\n \t\tparams.numColumns = 1;\r\n \t\tparams.sendHeaderMode = 1;\r\n \t\tparams.trimMode = 1;\r\n \t\tparams.fieldDelimiter = \"1\";\r\n \t\tparams.textQualifier = \"1\";\r\n \t\tparams.sourceIdColumns = \"1\";\r\n \t\tparams.sourceColumns = \"1\";\r\n \t\tparams.targetColumns = \"1\";\r\n \t\tparams.commentColumns = \"1\";\r\n \t\tparams.preserveWS = true;\r\n \t\tparams.useCodeFinder = true;\r\n \t\t\r\n \t\tparams = getParameters();\r\n \t\t\r\n \t\tassertEquals(params.fieldDelimiter, \"1\");\r\n \t\tassertEquals(params.columnNamesLineNum, 1);\r\n \t\tassertEquals(params.numColumns, 1);\r\n \t\tassertEquals(params.sendHeaderMode, 1);\r\n \t\tassertEquals(params.textQualifier, \"1\");\r\n \t\tassertEquals(params.trimMode, 1);\r\n \t\tassertEquals(params.valuesStartLineNum, 1);\r\n \t\tassertEquals(params.preserveWS, true);\r\n \t\tassertEquals(params.useCodeFinder, true);\r\n \t\t\r\n \t\t// Load filter parameters from a file, check if params have changed\r\n //\t\tURL paramsUrl = TableFilterTest.class.getResource(\"/test_params1.txt\");\r\n //\t\tassertNotNull(paramsUrl); \r\n \t\t\r\n \r\n \t\ttry {\r\n \t\tString st = \"file:\" + getFullFileName(\"test_params1.txt\");\r\n \t\tparams.load(new URI(st), false);\r\n \t} catch (URISyntaxException e) {\r\n \t}\r\n \r\n \t\t\r\n \t\tassertEquals(\"2\", params.fieldDelimiter);\r\n \t\tassertEquals(params.columnNamesLineNum, 2);\r\n \t\tassertEquals(params.numColumns, 2);\r\n \t\tassertEquals(params.sendHeaderMode, 2);\r\n \t\tassertEquals(\"2\", params.textQualifier);\r\n \t\tassertEquals(params.trimMode, 2);\r\n \t\tassertEquals(params.valuesStartLineNum, 2);\r\n \t\tassertEquals(params.preserveWS, false);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\t\r\n \t\t// Save filter parameters to a file, load and check if params have changed\r\n \t\tURL paramsUrl = TableFilterTest.class.getResource(\"/test_params2.txt\");\r\n \t\tassertNotNull(paramsUrl);\r\n \t\t\r\n \t\tparams.save(paramsUrl.getPath());\r\n \t\t\r\n \t\t// Change params before loading them\r\n \t\tparams = (Parameters) filter.getParameters();\r\n \t\tparams.fieldDelimiter = \"3\";\r\n \t\tparams.columnNamesLineNum = 3;\r\n \t\tparams.numColumns = 3;\r\n \t\tparams.sendHeaderMode = 3;\r\n \t\tparams.textQualifier = \"3\";\r\n \t\tparams.trimMode = 3;\r\n \t\tparams.valuesStartLineNum = 3;\r\n \t\tparams.preserveWS = true;\r\n \t\tparams.useCodeFinder = true;\r\n \t\t\r\n \t\tparams.load(Util.toURI(paramsUrl.getPath()), false);\r\n \t\t\r\n \t\tassertEquals(params.fieldDelimiter, \"2\");\r\n \t\tassertEquals(params.columnNamesLineNum, 2);\r\n \t\tassertEquals(params.numColumns, 2);\r\n \t\tassertEquals(params.sendHeaderMode, 2);\r\n \t\tassertEquals(params.textQualifier, \"2\");\r\n \t\tassertEquals(params.trimMode, 2);\r\n \t\tassertEquals(params.valuesStartLineNum, 2);\r\n \t\tassertEquals(params.preserveWS, false);\r\n \t\tassertEquals(params.useCodeFinder, false);\r\n \t\t\r\n \t\t// Check if parameters type is controlled\r\n \t\t\r\n \t\tfilter.setParameters(new net.sf.okapi.filters.plaintext.base.Parameters());\r\n \t\tInputStream input = TableFilterTest.class.getResourceAsStream(\"/csv_test1.txt\");\r\n \t\ttry {\r\n \t\t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t\tfail(\"OkapiBadFilterParametersException should've been trown\");\r\n \t\t}\r\n \t\tcatch (OkapiBadFilterParametersException e) {\r\n \t\t}\r\n \t\t\r\n \t\tfilter.close();\r\n \t\r\n \t\tfilter.setParameters(new net.sf.okapi.filters.table.csv.Parameters());\r\n \t\tinput = TableFilterTest.class.getResourceAsStream(\"/csv_test1.txt\");\r\n \t\ttry {\r\n \t\t\tfilter.open(new RawDocument(input, \"UTF-8\", locEN));\r\n \t\t}\r\n \t\tcatch (OkapiBadFilterParametersException e) {\r\n \t\t\tfail(\"OkapiBadFilterParametersException should NOT have been trown\");\r\n \t\t}\r\n \t\t\tfilter.close();\r\n \t}",
"public static void main(String[] args) {\n\t\t\n\t\tScanner s = new Scanner(System.in);\n\t\tSystem.out.println(\"Unesi 1. broj: \");\n\t\tint a = s.nextInt();\n\t\tSystem.out.println(\"Unesi 2. broj: \");\n\t\tint b = s.nextInt();\n\t\tSystem.out.println(\"Unesi 3. broj: \");\n\t\tint c = s.nextInt();\n\t\tSystem.out.println(\"Proizvod unetih brojeva je: \" + proizvod(a,b,c));\n\t\t\n\t\t\t\n\t\ts.close();\n\n\t}",
"public String visit(ExpressionRest n, Object argu) \n\t{\n\t\tString _ret=null;\n\t\tMap<String, String> parameter = parameters.get(0);\n\t\t\n\t\t\n\t\tString e0 = n.f1.accept(this, argu);\n\t\tif (parameter.containsValue(e0) \n\t\t\t\t&& ((parameters.size() <= 1) \n\t\t\t\t|| n.f1.accept(this, parameters.subList(1, parameters.size()-1)) != null))\n\t\t{\n\t\t\t_ret = e0;\n\t\t}\n\t return _ret;\n\t}",
"@Test\n public void execute_addressParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"addr\", true, false, Collections.emptyList());\n //Single keyword, ignore case, people found.\n execute_parameterPredicate_test(3, \"ave\", \"addr\", true, false, Arrays.asList(ALICE, BENSON, ELLE));\n //Single keyword, case sensitive, people found.\n execute_parameterPredicate_test(2, \"Ave\", \"addr\", false, false, Arrays.asList(ALICE, BENSON));\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(2, \"jurong Clementi\", \"addr\", true, false, Arrays.asList(ALICE, BENSON));\n //Multiple keywords, ignore case, and condition, no one found\n execute_parameterPredicate_test(0, \"jurong Clementi\", \"addr\", true, true, Collections.emptyList());\n //Multiple keywords, case sensitive, or condition, multiple people found\n execute_parameterPredicate_test(1, \"jurong Clementi\", \"addr\", false, false, Arrays.asList(BENSON));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"jurong Clementi\", \"addr\", false, true, Collections.emptyList());\n }",
"@Override\n\tprotected void validateParameterValues() {\n\t\t\n\t}",
"public double getParam(String s) {\n switch(s) {\n case \"mu\":\n return this.mu;\n case \"lambda\":\n return this.lambda;\n case \"fbDocs\":\n return this.fbDocs;\n case \"fbTerms\":\n return this.fbTerms;\n case \"fbMu\":\n return this.fbMu;\n case \"fbOrigWeight\":\n return this.fbOrigWeight;\n default:\n throw new IllegalArgumentException\n (\"Illegal argument: IndriExpansion doesn't have argument \" + s);\n }\n }",
"public int exec(GerenciadorPerifericos gerenciadorPerifericos, ParametroMacroOperacao param){\n\r\n\t\tBigDecimal quantidadeNecessaria = (BigDecimal)gerenciadorPerifericos.getCmos().ler(CMOS.QUANTIDADE_ITEM_NECESSARIO_PARA_SEPARACAO);\r\n\t\t\r\n\t\tTelaAVInicial tela = (TelaAVInicial) ServiceLocator.getInstancia().getTela(ConstantesTela.TELA_AV_INICIAL);\r\n\t\ttela.setCampoQuantidade(\"\");\r\n\t\ttela.setCampoDesconto(\"\");\r\n\t\tgerenciadorPerifericos.atualizaTela(tela);\r\n\r\n\t\tProduto produto = (Produto)gerenciadorPerifericos.getCmos().ler(CMOS.PRODUTO_ATUAL);\r\n\r\n\t\tBigDecimal quantidade = BigDecimal.ZERO;\r\n\t\t\r\n\t\tif (produto.getTipo().getId().equals(TipoProduto.UNIDADE_VARIAVEL)) {\r\n\t\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, quantidadeNecessaria);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tEntradaDisplay entrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\twhile (entrada.getTeclaFinalizadora() == Tecla.CODIGO_ENTER) {\r\n\t\t\t\t\tquantidade = new BigDecimal(entrada.getDado());\r\n\t\t\t\t\tif (quantidade.doubleValue() == BigDecimal.ZERO.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Invalida [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\t\t} else if (quantidadeNecessaria.doubleValue() < quantidade.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Superior [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (AppException e) {\r\n\t\t\t\treturn ALTERNATIVA_2;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, BigDecimal.ONE);\r\n\t\t\r\n\t\r\n\t\treturn ALTERNATIVA_1;\r\n\t}",
"public double getParameterValue (Assignment input) ;",
"protected int checkParam(Object o, String name)\n {\n if (o == null) {\n System.err.println(format(\"Parameter %s is not set\", name));\n return 1;\n }\n return 0;\n }",
"public void setValues(RutaParams params){\n this.costo = params.costo;\n this.tiempoVuelo = params.tiempoVuelo;\n this.piloto =encriptar(params.piloto);\n }",
"@TestProperties(name=\"test equal sign parameters for test\")\n\tpublic void testParametersWithEquals() throws Exception {\n\t\tjsystem.launch();\n//\t\tScenarioUtils.createAndCleanScenario(jsystem, ScenariosManager.getInstance().getCurrentScenario().getScenarioName());\n\t\tScenarioUtils.createAndCleanScenario(jsystem, jsystem.getCurrentScenario());\n\t\tjsystem.addTest(\"testWithInclueParametersNewLine\", \"ParamaetersHandlingSection\", true);\n\t\tjsystem.setTestParameter(1, \"General\", \"Str8\", \"x=2=3=4, v b n eee=,\", false);\n\t\tjsystem.play();\n\t\tjsystem.waitForRunEnd();\n\t\tjsystem.checkNumberOfTestsPass(1);\n\t\tString propValue = \n\t\t\tgetRunProperties().getProperty(\"testWithInclueParametersNewLine_str8\");\n\t\tassertEquals(\"x=2=3=4, v b n eee=,\", propValue);\n\t}",
"@Test\n public void execute_phoneParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"phone\", true, false, Collections.emptyList());\n //Multiple keywords, or condition, multiple people found\n execute_parameterPredicate_test(3, \"94351253 9482427 9482442\", \"phone\",\n true, false, Arrays.asList(ALICE, FIONA, GEORGE));\n //Multiple keywords, and condition, multiple people found\n execute_parameterPredicate_test(0, \"94351253 9482427 9482442\", \"phone\",\n true, true, Collections.emptyList());\n }",
"public static void main(String[] args) {\n\n String valor1;\n String valor2;\n\n valor1 = args[1];\n valor2 = args[2];\n\n System.out.println(\"La calificación de \" + args[0] + \" : \" + args[1] + \" , nota deseada \" + args[2] + \" \"+Main.veredicto(valor1, valor2)+\"\");\n }",
"private void nuskaitymas() {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Iveskite zodi\");\n zodis = sc.nextLine();\n patikrinimas(zodis);\n }",
"public void sum(){ //np param\n System.out.println(\"SUM method with no params\");\n\n }",
"public String getParameter(String name) throws IllegalArgumentException {\n\t if ( LogWriter.needsLogging(LogWriter.TRACE_DEBUG))\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"getParameter() \" \n\t\t+ name);\n Via via=(Via)sipHeader;\n \n if (name == null) throw new\n IllegalArgumentException(\"JAIN-EXCEPTION: null argument\");\n return via.getParameter(name);\n }",
"public void ee_parameter(Double ee_parameter) {\n }",
"public static void main(String[] args) {\n\t\tif(args[1].equalsIgnoreCase(\"R\")){\n\t\t\thacerConVector(args[0],Double.parseDouble(args[2]),Double.parseDouble(args[3]));\n\t\t}\n\t\t//Hacer busqueda por pares\n\t\tif(args[1].equalsIgnoreCase(\"P\")){\n\t\t\thacerConLista(args[0],args[2],Double.parseDouble(args[3]));\n\t\t}\n\n\t}",
"public ParamShoppingCartTest(int precio1, int precio2) {\n \n this.precio1 = precio1;\n this.precio2 = precio2; \n }",
"@Test\n\tpublic void probandoParametrosDevuelta() {\n\n\t\tString outFolder = ArbolFileSources.userFolder + \"/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_2_dm_finanzas/entregable/historia/\";\n\t\ttry {\n\n\t\t\t// String[] seed = { \"101723\", \"208403\", \"663552\", \"826668\",\n\t\t\t// \"980641\" };\n\t\t\t// Integer[] maximaProfundidadList = { 6,7 };\n\t\t\t// Integer[] minParentSizeList = {300, 400, 500 };\n\t\t\t// // cuenta que va a ser el porcentaje variable del current padre\n\t\t\t// Integer[] minChildSizeList = { 65,70,90 };\n\n\t\t\t// String[] seed = { \"101723\", \"208403\", \"663552\", \"826668\",\n\t\t\t// \"980641\" };\n\t\t\t// Integer[] maximaProfundidadList = { 6,7 };\n\t\t\t// Integer[] minParentSizeList = {300, 400 };\n\t\t\t// // cuenta que va a ser el porcentaje variable del current padre\n\t\t\t// Integer[] minChildSizeList = { 65,70 };\n\n\t\t\tString[] seed = { \"101723\", \"208403\", \"663552\", \"826668\", \"980641\" };\n\t\t\tInteger[] maximaProfundidadList = { 7 };\n\t\t\tInteger[] minParentSizeList = { 300, 350, 400 };\n\t\t\t// cuenta que va a ser el porcentaje variable del current padre\n\t\t\tInteger[] minChildSizeList = { 65, 70 };\n\n\t\t\t// para cada semilla correr los arboles\n\n\t\t\tString resultSyntax = ArbolesSQLEjecutador.generaSyntaxSpssIterativoVarsYHisto(outFolder, maximaProfundidadList, minParentSizeList, minChildSizeList, seed);\n\t\t\tString timeStampFolder = UtilidadesGenerales.getTimeStamp(null, null);\n\t\t\tUtilidadesGenerales.writeToFile(resultSyntax, \"UTF-8\", outFolder + timeStampFolder + \"_syntax.txt\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail(e.getMessage());\n\t\t}\n\t}",
"@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }",
"public void setMotivoRechazo(biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo param){\n \n this.localMotivoRechazo=param;\n \n\n }",
"protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }",
"public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Fen_Param\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnew FEN_Param();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}",
"public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\tExParValue v = ExParValue.runtimeParameterValue(\"\\\"\"\r\n\t\t\t\t+ textField.getText() + \"\\\"\");\r\n\t\tif (v != null) {\r\n\t\t\texParValue.set(v);\r\n\t\t\tcontroller.parameterSet(exParName);\r\n\t\t\t// System.out.println(\"SingleParEntryPanel.actionPerformed() \" +\r\n\t\t\t// exParName + \"=\" + v);\r\n\t\t}\r\n\t}",
"public aqo(World paramaqu, Entity paramwv, double paramDouble1, double paramDouble2, double paramDouble3, float paramFloat, boolean paramBoolean1, boolean paramBoolean2)\r\n/* 37: */ {\r\n/* 38: 53 */ this.d = paramaqu;\r\n/* 39: 54 */ this.h = paramwv;\r\n/* 40: 55 */ this.i = paramFloat;\r\n/* 41: 56 */ this.e = paramDouble1;\r\n/* 42: 57 */ this.f = paramDouble2;\r\n/* 43: 58 */ this.g = paramDouble3;\r\n/* 44: 59 */ this.a = paramBoolean1;\r\n/* 45: 60 */ this.b = paramBoolean2;\r\n/* 46: */ }",
"public void testgetParameter() throws Exception {\n\r\n\t}",
"public static void main(String[] args) {\nScanner unos = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.print(\"Molimo unesite koordinate x i y odvojene razmakom: \");\r\n\t\tdouble x2 = unos.nextDouble(); // koordinata x unešena od korisnika\r\n\t\tdouble y2 = unos.nextDouble(); // koordinata y unešena od korisnika\r\n\t\tunos.close();\r\n\t\t\r\n\t\tdouble x1 = 0; // Centar kruga koordinata x\r\n\t\tdouble y1 = 0; // centar kruga koordinata y\r\n\t\t\r\n\t\tdouble razdaljina =Math.pow( Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2),0.5);\r\n\t\t\r\n\t\tif (razdaljina <= 10)\r\n\t\t\tSystem.out.println(\"Tačka JE unutar kruga\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Tačka NIJE unutar kruga\");\r\n\t}",
"private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }",
"Nary<ExecutableParameter> parameters();",
"public static void main(String[] args) {\n\t\t\tAutobiographicalN a = new AutobiographicalN();\n\t\t\ta.Ab_or_not(1210);\n\t\t\ta.Ab_or_not(12300);\n\t\t\ta.Ab_or_not(21200);\n\t}",
"public static void main(String[] args) {\n\n Scanner oku =new Scanner(System.in);\n System.out.println(\"Vize notunuzu giriniz=\");\n int vizeNotu = oku.nextInt();\n\n System.out.println(\"Final notunuzu giriniz=\");\n int finalNotu =oku.nextInt();\n\n double ort =vizeNotu *0.4 +finalNotu * 0.6;\n\n System.out.println(\"ort>=60\" +ort);\n if (ort >=60) {\n System.out.println(\"Gectiniz\");\n System.out.println(\"Tebrikler\");\n }\n else\n {\n System.out.println(\"Kaldiniz\");\n }\n\n }",
"public Final_parametre() {\r\n\t}",
"public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }",
"public void setParametr(double p) {\n parametr = p; // додано 26.12.2011\n timeServ = parametr; // 20.11.2012\n\n }",
"public String getParameterFromY();",
"public static void main(String[] args) {\n\n\t\tLocale.setDefault(Locale.US);\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\taprovacao c;\n\t\t\n\t\tc = new aprovacao();\n\t\t\n\t\tSystem.out.println(\"Entrada: \");\n\t\tc.nome = sc.nextLine();\n\t\tc.nota1 = sc.nextDouble();\n\t\tc.nota2 = sc.nextDouble();\n\t\tc.nota3 = sc.nextDouble();\n\t\t\n\t\tSystem.out.printf(\"NOTA FINAL %.2f\", c.notaFinal());\n\t\tSystem.out.println();\n\t\tif(c.notaFinal() < 60)\n\t\t{\n\t\t\tSystem.out.printf(\"FAILED\\nMISSING %.2f PONTOS\" ,c.aprovadoReprovado());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"APROVADO\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tsc.close();\n\t}",
"@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"public void exp1() throws Exception {\n String exp = \"E1\";\n//\n// testNoExpansion(exp, \"RankedBoolean\");\n\n // pass the parameter file to main\n String[] args = new String[1];\n String[] slist = new String[]{\"param-E1-RankedBoolean.txt\"};\n //\"param-E1-Indri-NoRef.txt\" \"param-E1-Indri-YRef.txt\",\"param-Exp1-Indri-false-1000-0.4.txt\", \"param-Exp1-Indri-false-1000-0.7.txt\",\"param-Exp1-Indri-false-2500-0.4.txt\", \"param-Exp1-Indri-false-2500-0.7.txt\",\n for (String paramFilePath: slist) {\n args[0] = \"hw3/param/\" + paramFilePath;\n QryEval.main(args);\n }\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Unesite brzinu aviona: \");\n\t\tdouble v = input.nextDouble();\n\n\t\tSystem.out.println(\"Unesite ubrzanje aviona:\");\n\t\tdouble a = input.nextDouble();\n\n\t\tSystem.out.println(\"Minimalna duzina piste potrebna za uzletanje je: \" + v * v / (2 * a));\n\n\t\tinput.close();\n\t}",
"public static void main(String[] args) {\n Scanner meuLeitor = new Scanner(System.in);\n int n = Integer.parseInt(meuLeitor.nextLine());\n int i = Integer.parseInt(meuLeitor.nextLine());\n\n raizQuadrada(n, i);\n\n }",
"public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}",
"public static void main(String[] args) {\r\n\t\tint[] niz1 = {15, 20, 56, 12, 13}; \r\n\t\tint[] niz2 = {-3, -2, -1, -4}; \r\n\t\tSystem.out.println(\"Da li je suma niza i dalje veca: \" ); \r\n\t\tporedjenje(niz1, niz2);\r\n\t\t\r\n\t}",
"public static void main(String[] args){\n\t\tdouble rint, rext, x, y;\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tdo{\n\t\t\tSystem.out.print(\"Rayon intérieur : \");\n\t\t\trint = sc.nextDouble();\n\t\t\tSystem.out.print(\"Rayon extérieur : \");\n\t\t\trext = sc.nextDouble();\n\t\t}while(rint>rext); //Si rint <= rext on continue sinon redemander les valeurs\n\t\t\n\t\t/* Abscisse et ordonnée du point à tester */\n\t\tSystem.out.print(\"Abscisse du point : \");\n\t\tx = sc.nextDouble();\n\t\tSystem.out.print(\"Ordonnée du point : \");\n\t\ty = sc.nextDouble();\n\n\t\t/* Calcul pour savoir si le point est dans la couronne */\n\t\tif((Math.hypot(x, y) >= rint) && (Math.hypot(x, y) <= rext)){ //Le point est dans la couronne\n\t\t\tSystem.out.println(\"Le point est dans la couronne !\");\n\t\t} else { // Le point n'est pas dans la couronne\n\t\t\tSystem.out.println(\"Raté le point n'est pas dans la couronne !\");\n\t\t}\n\t}",
"private String checkParameters (HttpServletRequest request)\r\n\t{\r\n\t\tString ret = \"ok\";\r\n\t\tString paramName = null;\r\n\t\tString occNo = null;\r\n\t\tString encoding = null;\r\n\t\tString reqInd = null;\r\n\t\tString expression = \"^[-+]?[0-9]*\";\r\n\t\tPattern pattern = Pattern.compile(expression);\r\n\t\tMatcher matcher = null;\r\n\t\t\r\n\t\tfor (int i = 0; true; i++) {\r\n\t\t\tparamName = request.getParameter(\"paramName\" + i);\r\n\t\t\tif(paramName == null || paramName.equalsIgnoreCase(\"\")){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\toccNo = request.getParameter(\"paramOccNo\" + i);\r\n\t\t\t\r\n\t\t\t// WI 22224\r\n\t\t\tif(occNo != null){\r\n\t\t\t\tmatcher = pattern.matcher(occNo);\r\n\t\t\t}\r\n\t\t\tif(occNo!=null && !occNo.equalsIgnoreCase(\"\") && !matcher.matches()){ \r\n\t\t\t\tret = \"The Parameter Occurence Number should be integer.\"; \r\n\t\t\t\tbreak;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\tencoding = request.getParameter(\"paramEncoding\" + i);\r\n\t\t\tif(encoding!=null && !encoding.equalsIgnoreCase(\"\") && !encoding.equalsIgnoreCase(Phrase.XML_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.ZIP_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.BASE64_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.ENCRYPT_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.DIGEST_TYPE)\r\n\t\t\t\t&& !encoding.equalsIgnoreCase(Phrase.NONE_TYPE)\r\n\t\t\t){\r\n\t\t\t\tret = \"The Parameter Encoding should be: \" \r\n\t\t\t\t\t+ Phrase.XML_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.ZIP_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.BASE64_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.ENCRYPT_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.DIGEST_TYPE + \",\"\r\n\t\t\t\t\t+ Phrase.NONE_TYPE + \".\"\r\n\t\t\t\t\t; \r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\treqInd = request.getParameter(\"paramReqInd\" + i);\r\n\t\t\tif(reqInd!=null && !reqInd.equalsIgnoreCase(\"\") && !reqInd.equalsIgnoreCase(\"true\")\r\n\t\t\t\t&& !reqInd.equalsIgnoreCase(\"false\")\r\n\t\t\t){\r\n\t\t\t\tret = \"The Parameter Required Indicator should be: true or false.\"; \r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t\r\n\t}",
"Parameter getParameter();",
"public void Metodo1(String valor1){\r\n\r\n }",
"@Test\n public void execute_dateOfBirthParameter() throws ParseException {\n //No user input\n execute_parameterPredicate_test(0, \" \", \"dob\", true, false, Collections.emptyList());\n //Single keyword, ignore case, person found.\n execute_parameterPredicate_test(5, \"december\", \"dob\",\n true, false, Arrays.asList(ALICE, BENSON, CARL, DANIEL, FIONA));\n //Single keyword, case sensitive, no one found.\n execute_parameterPredicate_test(0, \"december\", \"dob\", false, false, Collections.emptyList());\n //Multiple keywords, ignore case, or condition, multiple people found\n execute_parameterPredicate_test(4, \"june 11\", \"dob\",\n true, false, Arrays.asList(ALICE, CARL, ELLE, GEORGE));\n //Multiple keywords, ignore case, and condition, one person found\n execute_parameterPredicate_test(1, \"june 11\", \"dob\",\n true, true, Arrays.asList(ELLE));\n //Multiple keywords, case sensitive, or condition, one person found\n execute_parameterPredicate_test(4, \"june 11\", \"dob\",\n false, false, Arrays.asList(ALICE, CARL, ELLE, GEORGE));\n //Multiple keywords, case sensitive, and condition, no one found\n execute_parameterPredicate_test(0, \"june 11\", \"dob\",\n false, true, Collections.emptyList());\n }",
"public static void main(String[] args) {\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Quantos quilômetros o carro percorre por litro?\");\n\t\tdouble km = in.nextDouble();\n\t\tSystem.out.println(\"Quantos litros tem no carro atualmente?\");\n\t\tint litros = in.nextInt();\n\t\tSystem.out.println(\"Qual distância (em Km) você deseja percorrer?\");\n\t\tdouble distancia = in.nextDouble();\n\t\t\n\t\tdouble necessario = distancia/km;\n\t\t\n\t\tif(litros < necessario) {\n\t\t\tSystem.out.printf(\"Você precisa abastecer %.1f litros\", necessario-litros);\n\t\t}else {\n\t\t\tSystem.out.println(\"Você não precisa abastecer\");\n\t\t}\n\t}",
"public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }",
"public void setMontoCatalogoEstimado(double param){\n \n this.localMontoCatalogoEstimado=param;\n \n\n }",
"String toParameter();",
"private void validateParameter(){\n\t\tif(hrNum > upperBound){\n\t\t\thrNum = upperBound;\n\t\t}\n\t\telse if(hrNum < lowerBound){\n\t\t\thrNum = lowerBound;\n\t\t}\n\t}",
"private void execute_parameterPredicate_test(int expectedNum, String userInput, String parameter,\n boolean isIgnoreCase, boolean isAnd,\n List<Person> expectedList) throws ParseException {\n String expectedMessage = String.format(MESSAGE_PERSONS_LISTED_OVERVIEW, expectedNum);\n ContainsKeywordsPredicate predicate = preparePatientPredicate(userInput, parameter, isIgnoreCase, isAnd);\n PatientFindCommand command = new PatientFindCommand(predicate);\n expectedModel.updateFilteredPersonList(predicate);\n assertCommandSuccess(command, model, commandHistory, expectedMessage, expectedModel);\n assertEquals(expectedList, model.getFilteredPersonList());\n }",
"public static void main(String[] args) {\n\t\tScanner reader = new Scanner(System.in);\r\n\t\tSystem.out.println(\"determine o Maior Valor\");\r\n\t\tEstatistica estatistica = new Estatistica(reader.nextInt());\r\n\t\tSystem.out.println(\"somatorio dos numeros entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.somatorio(estatistica.maiorValor));\r\n\t\tSystem.out.println(\"media entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.media(estatistica.maiorValor));\r\n\t\tSystem.out.println(\"variancia entre zero e maior valor = \"\r\n\t\t\t\t+ estatistica.variancia(estatistica.maiorValor));\r\n\t\testatistica.paresImpares(estatistica.maiorValor);\r\n\t}",
"public Edificio() {\n leer = new Scanner(System.in);\n int pisoActual = 0;\n System.out.println(\"Dime el piso actual\");\n pisoActual = leer.nextInt();\n PisoActual(pisoActual);\n }",
"public static void main(String[] args) {\r\n \r\n\r\n cetak_nama(); // akses prosedur\r\n\r\n System.out.println(cetak_nama1()); // mencetak nilai fungsi\r\n\r\n cetak_nama2(\"Aprianto\"); // akses prosedur dengan parameter nama\r\n\r\n System.out.println(cetak_nama3(\"Aprianto\")); // mencetak nilai fungsi dengan parameter nama\r\n\r\n cetak_data(\"Aprianto\", 20); // akses prosedur dengan 2 parameter. parameter yang disediakan harus sama dengan yang di deklarasi\r\n \r\n System.out.println(jumlah_uang(1000, 2000, \"Aprianto\"));\r\n }",
"public static void main(String[] args) {\n\t\t\t\n\t\t\t//utworzenie zmiennych okno1 i okno2 i ich zainicjowanie\n\t\t\tOkno okno1 = new Okno();\n\t\t\tOkno okno2 = new Okno(1800,1800,3);\n\t\t\t\n\t\t\t//wywołanie metody \"otwórz\"\n\t\t\tokno1.otworz();\n\t\t\tokno2.otworz(0);\n\t\t\tokno2.otworz(2);\n\t\t\t\n\t\t\t//wywołanie metody \"wypisz stan\"\n\t\t\tokno1.wypiszStan();\n\t\t\tokno2.wypiszStan();\n\t\t\t\n\t\t\t//wywołanie metod \"zamknij\" oraz metody ustawiającej długosc okna\n\t\t\tokno1.zamknij();\n\t\t\tokno2.setDlugosc(2100);\n\t\t\tokno2.zamknij(0);\n\t\t\t\n\t\t\t//utworzenie i zainicjowanie zmiennej\n\t\t\tKlamka kl = new Klamka();\n\t\t\tkl.setCzyKluczyk(true);\n\t\t\t\n\t\t\t//metody dostepowe i zwracajace \n\t\t\tokno2.getSkrzydla()[1].setKlamka(kl);\n\t\t\tokno2.getSkrzydla()[2].setKlamka(null);\n\t\t\t\n\t\t\t//wywołanie metody \"wypisz stan\"\n\t\t\tokno1.wypiszStan();\n\t\t\tokno2.wypiszStan();\n\t\t\t\n\t\t}",
"public static void main(String[] args) {\n\t\tfloat precio;\n\t\t String mes;\n\t\t Scanner leer=new Scanner(System.in);\n\t\t System.out.println(\"Dime el precio\");\n\t\t precio=leer.nextFloat();\n\t\t System.out.println(\"Dime el mes que estamos\");\n\t\t mes=leer.next();\n\t\t \n\t\t if (mes.equalsIgnoreCase(\"octubre\")) {\n\t\t\t System.out.println(\"El precio es \"+(precio-(precio*0.15)));\n\t\t\t\n\t\t}else {\n\t\t\tSystem.out.println(\"El precio es \" + precio + \"euros\");\n\t\t}\n\t\t\n\t\t \n\t}",
"public void testParams() {\n String line = \"-Xmx256m org.milos.Main arg1\";\n assertEquals(\"-Xmx256m\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"org.milos.Main\", RunJarPanel.splitMainClass(line));\n assertEquals(\"arg1\", RunJarPanel.splitParams(line));\n \n line = \"-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath ${packageClassName}\";\n assertEquals(\"-Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n \n line = \"-classpath %classpath ${packageClassName} %classpath ${packageClassName}\";\n assertEquals(\"-classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n \n line = \"Main arg1 arg2.xsjs.xjsj.MainParam\";\n assertEquals(\"\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"Main\", RunJarPanel.splitMainClass(line));\n assertEquals(\"arg1 arg2.xsjs.xjsj.MainParam\", RunJarPanel.splitParams(line));\n \n //non trimmed line\n line = \" -classpath %classpath ${packageClassName} %classpath ${packageClassName} \";\n assertEquals(\"-classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n\n //param with quotes and spaces..\n line = \"-Dparam1=\\\"one two three\\\" -classpath %classpath ${packageClassName} %classpath ${packageClassName} \";\n assertEquals(\"-Dparam1=\\\"one two three\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"${packageClassName}\", RunJarPanel.splitMainClass(line));\n assertEquals(\"%classpath ${packageClassName}\", RunJarPanel.splitParams(line));\n line = \"-D\\\"foo bar=baz quux\\\" -classpath %classpath my.App\";\n assertEquals(\"-D\\\"foo bar=baz quux\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"my.App\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n line = \"\\\"-Dfoo bar=baz quux\\\" -classpath %classpath my.App\"; // #199411\n assertEquals(\"\\\"-Dfoo bar=baz quux\\\" -classpath %classpath\", RunJarPanel.splitJVMParams(line));\n assertEquals(\"my.App\", RunJarPanel.splitMainClass(line));\n assertEquals(\"\", RunJarPanel.splitParams(line));\n }",
"public static void main(String[] args) {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n String url = \"\";\n try {\n url = r.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n String paramsString = url.substring(url.indexOf(\"?\") + 1);\n String[] paramsPairs = paramsString.split(\"&\");\n for (String pair : paramsPairs) {\n System.out.print(pair.split(\"=\")[0] + \" \");\n }\n for (String pair : paramsPairs) {\n String[] p = pair.split(\"=\");\n if (\"obj\".equals(p[0])) {\n try {\n alert(Double.parseDouble(p[1]));\n } catch (Exception e) {\n alert(p[1]);\n }\n }\n }\n }",
"@Override\n\tpublic boolean evaluarPropuesta(Oferta o) {\n\t\treturn false;\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Unesite koordinatu prve tacke x1: \");\r\n\t\tdouble x1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu prve tacke y1: \");\r\n\t\tdouble y1=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu druge tacke x2: \");\r\n\t\tdouble x2=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu druge tacke y2: \");\r\n\t\tdouble y2=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu trece tacke x3: \");\r\n\t\tdouble x3=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu trece tacke y3: \");\r\n\t\tdouble y3=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu cetvrte tacke x4: \");\r\n\t\tdouble x4=provjera();\r\n\t\t\r\n\t\tSystem.out.println(\"Unesite koordinatu cetvrte tacke x4: \");\r\n\t\tdouble y4=provjera();\r\n\t\t\r\n\t\t//kreiranje objekata\r\n\t\tLinearEquation linear= LinearEquation.getIntersectingPoint(x1, y1, x2, y2, x3, y3, x4, y4);\r\n\t\t\r\n\t\t//ispis rezultata\r\n\t\tif(linear.isSolvable()){\r\n\t\t\tSystem.out.print(\"Presjek dvije prave je u tacki sa koordinatama x=\" + linear.getX()+ \" i y=\" + linear.getY());\r\n\t\t}else{\r\n\t\t\tSystem.out.print(\"Prave su paralelne!!!\");\r\n\t\t}\r\n\t\t\r\n\t\tunos.close();\r\n\t}",
"@Override\n\tpublic List<CarPostionVo> searchAsksByParameter(CarPostionVo carPostionVo) {\n\t\treturn null;\n\t}",
"@Test\n public void verifyParametersInput() {\n // act\n book.setISBN(isbn);\n book.setAuthors(array);\n book.setPublisher(publisher);\n // verify\n verify(book).setISBN(isbn);\n verify(book).setAuthors(array);\n verify(book).setPublisher(publisher);\n }",
"public boolean test_entry() {\n\t\tboolean t = false;\n\t\tdouble val = Double.parseDouble(numericfield.getText());\n\n\t\tif (val == opt) {\n\t\t\tt = true;\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Vous avez trouvé le bon parametre pour ce remede\");\n\t\t}\n\t\t// case init > opt ---> on doit diminuer la valeur !!!!\n\t\tif (init > opt) {\n\t\t\tif (init > val && val > opt)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Vous allez dans le bon sens , continuez\");\n\t\t\tif (init > val && opt > val)\n\t\t\t\tJOptionPane\n\t\t\t\t\t\t.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\" Vous avez raté le parametre optimale et vous allez dans le mauvais sens\");\n\t\t\tif (val > init)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\" Vous allez dans le mauvais sens\");\n\t\t}\n\n\t\t// case init < opt ---> on doit augmenter la valeur !!!!\n\t\tif (init < opt) {\n\t\t\tif (init < val && val < opt)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Vous allez dans le bon sens , continuez\");\n\t\t\tif (init < val && opt < val)\n\t\t\t\tJOptionPane\n\t\t\t\t\t\t.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\" Vous avez raté le parametre optimale et vous allez dans le mauvais sens\");\n\t\t\tif (val < init)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\" Vous allez dans le mauvais sens\");\n\t\t}\n\t\treturn t;\n\t}",
"public static void main(String args[] ) throws Exception {\n\n \n Scanner s = new Scanner(System.in);\n System.out.print(\"enter exprestion : \");\n String expr=s.nextLine(); \n \n \n \n\n }",
"public static void main(String[] args) {\n\n\t\tdouble poluprecnik = 1.25;\n\t\t\n\t\tdouble V = (4 / 3) * poluprecnik * poluprecnik * poluprecnik * Math.PI;\n\t\t\n\t\tdouble tolerancija = 6.014 * 0.05 / 100;\n\t\t\n\t\tif(V <= 6.014 - tolerancija && V <= 6.014 + tolerancija){\n\t\t\tSystem.out.println(\"Lopta je dobrog kvaliteta\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Lopta nije dobrog kvaliteta\");\t\t\t\n\t\t}\t\t\n\n\t}",
"protected abstract boolean isValidParameter(String parameter);",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\t\tSystem.out.print(\"Masukkan nilai k : \");\n int k = scan.nextInt();\n System.out.print(\"Masukkan nilai l : \"); //jml\n int l = scan.nextInt();\n System.out.print(\"Masukkan nilai m : \"); //nxn\n int m = scan.nextInt();\n \n Soal07 data = new Soal07();\n data.buatSegitiga(k,l,m);\n data.cetak();\n\n\t}",
"private static void invCheck(String condition, HashMap<String, Object> params, HashMap<String, Object> fields) throws ContractException {\n Bindings bind = engine.createBindings(); //A binding is used to link java and javascript.\n\n bind.putAll(params); //This adds the hashmaps of parameters to the engine.\n bind.putAll(fields); //This adds the fields.\n\n engine.setBindings(bind, ScriptContext.ENGINE_SCOPE); //This binds all the parameters to the engine.\n\n testSimpleAssertion(condition, \"Invariant condition\"); //This tests the script.\n }",
"public PokretniEntitet(double brzina, double ugao, double x, double y,\n int vitalnost) {\n //da li da prosledim parametre za super() konstruktor?\n //u tekstu ne pise da trazim i ostale parametre\n super(x,y,vitalnost);\n this.brzina = brzina;\n this.ugao = ugao;\n }",
"PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }",
"private static String getRequiredParam(String param, Properties properties,\r\n String[] arguments) throws IllegalArgumentException\r\n {\r\n String value = properties.getProperty(param);\r\n if (value == null)\r\n {\r\n if ((arguments != null) && (arguments.length > 0))\r\n {\r\n value = arguments[0].trim();\r\n }\r\n else\r\n {\r\n throw new IllegalArgumentException(\"'\" + param + \"' is a required \"\r\n + \"initialization parameter. Aborting.\");\r\n }\r\n }\r\n return value;\r\n }"
] |
[
"0.5995892",
"0.5932792",
"0.5915641",
"0.5915042",
"0.5818616",
"0.5780248",
"0.5758429",
"0.570165",
"0.56411386",
"0.55626",
"0.5530963",
"0.55078244",
"0.54760253",
"0.5455317",
"0.5454462",
"0.5454146",
"0.5449636",
"0.5442462",
"0.5424665",
"0.5424337",
"0.54212457",
"0.54173964",
"0.5384134",
"0.53772116",
"0.5360686",
"0.5331217",
"0.5329432",
"0.53280735",
"0.5326113",
"0.53212273",
"0.53168124",
"0.53163373",
"0.53127366",
"0.5305246",
"0.530317",
"0.52977586",
"0.5293456",
"0.52910066",
"0.5278498",
"0.52749246",
"0.527284",
"0.52691394",
"0.5259866",
"0.5258573",
"0.5252744",
"0.525164",
"0.523874",
"0.5217405",
"0.521558",
"0.5212198",
"0.5210179",
"0.5209701",
"0.5208181",
"0.52080584",
"0.5203358",
"0.52011466",
"0.5194794",
"0.51895237",
"0.5183967",
"0.51817715",
"0.5177884",
"0.5177295",
"0.517388",
"0.51718545",
"0.5162864",
"0.51535684",
"0.5148473",
"0.5145672",
"0.5139986",
"0.512674",
"0.5118555",
"0.51157516",
"0.5111874",
"0.51094913",
"0.5107632",
"0.51048046",
"0.5099609",
"0.509313",
"0.5091187",
"0.50865626",
"0.50813645",
"0.5079301",
"0.50771224",
"0.50764316",
"0.50753635",
"0.50740945",
"0.5071978",
"0.50669324",
"0.50657094",
"0.50639725",
"0.5049424",
"0.50473917",
"0.50467587",
"0.5046208",
"0.5045738",
"0.5041224",
"0.50352174",
"0.503372",
"0.50321263",
"0.5031808",
"0.50313985"
] |
0.0
|
-1
|
DatabaseReference myRef; DatabaseReference rootRef, demoRef;
|
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View root = inflater.inflate(R.layout.login_fragment, container, false);
edtEmail = root.findViewById(R.id.edtEmail);
edtPassword = root.findViewById(R.id.edtPassword);
btnLogin = root.findViewById(R.id.btnLogin);
//mDatabaseReference = mDatabase.getReference();
btnLogin.setOnClickListener(v -> {
getLogin();
// startActivity(new Intent(getActivity(), AfterLoginActivity.class));
});
/* //database reference pointing to root of database
rootRef = FirebaseDatabase.getInstance().getReference();
//database reference pointing to demo node
demoRef = rootRef.child("Testing");
*/
/*
btnLogin.setOnClickListener(v -> {
Log.d(TAG, "onCreateView: "+">>>>>>>>>"+demoRef);
String value = edtEmail.getText().toString();
demoRef.child("value").setValue(value);
//demoRef.push().setValue(value);
Toast.makeText(getActivity(), value, Toast.LENGTH_SHORT).show();
*/
/*if (isInternetConnected(getActivity())) {
if (Validation()) {
getLogin();
} else {
Toast.makeText(getActivity(), error_msg, Toast.LENGTH_SHORT).show();
}
} else {
Toast.makeText(getActivity(), getResources().getString(R.string.oops_connect_your_internet), Toast.LENGTH_SHORT).show();
}*//*
*/
/* // Write a message to the database
FirebaseDatabase database = FirebaseDatabase.getInstance();
Log.d(TAG, "onCreateView: " + "database-------" + database.toString());
DatabaseReference myRef = database.getReference("message");
myRef.setValue("Welcome to first application");
*//*
//startActivity(new Intent(getActivity(), AfterLoginActivity.class));
});
*/
return root;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void iniciarBaseDeDatos(){\n db_reference = FirebaseDatabase.getInstance().getReference();\n\n }",
"static DatabaseReference getDBRef() {\n return mDBRef;\n }",
"private void iniciarFirebase(){\n FirebaseApp.initializeApp(getApplicationContext());\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatabase.getReference();\n }",
"public static DatabaseReference getBase() {\n return FirebaseDatabase.getInstance().getReference();\n }",
"private void initFirebase() {\n FirebaseApp.initializeApp(this);\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatabase.getReference();\n storageReference = FirebaseStorage.getInstance().getReference();\n }",
"private void initFirebase() {\n database = FirebaseDatabase.getInstance();\n user = FirebaseAuth.getInstance().getCurrentUser();\n dRef = database.getReference(\"Trails\");\n }",
"public static DatabaseReference get_database_reference(String node) {\n DatabaseReference myRef = FirebaseDatabase.getInstance().getReference(node);\n return myRef;\n }",
"public static DatabaseReference getFirebaseDatabase() {\n if (referenciaFirebase == null) {\n referenciaFirebase = FirebaseDatabase.getInstance().getReference();\n }\n return referenciaFirebase;\n }",
"public static DatabaseReference getFirebaseDatabase(){\n\n if (firebase == null){\n firebase = FirebaseDatabase.getInstance().getReference();\n }\n return firebase;\n }",
"public static DatabaseReference getFirebaseDataBase(){\n if(firebase==null){\n firebase = FirebaseDatabase.getInstance().getReference();\n }\n return firebase;\n }",
"@Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n }",
"@Test\n public void useReferencesToStoreDataToOtherObjects() {\n flushTestUsers();\n eddard.setChildren(Arrays.asList(jon, robb, sansa, arya, bran, rickon));\n repository.save(eddard);\n assertThat(repository.findById(eddard.getId())).hasValueSatisfying(it -> {\n assertThat(it.getChildren()).contains(jon, robb, sansa, arya, bran, rickon);\n });\n repository.deleteAll(Arrays.asList(robb, jon));\n assertThat(repository.findById(eddard.getId())).hasValueSatisfying(it -> {\n assertThat(it.getChildren()).contains(sansa, arya, bran, rickon);\n assertThat(it.getChildren()).doesNotContain(robb, jon);\n });\n }",
"public DatabaseReference open() {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n myPokemonDbRef = database.getReference(PokemonDataTag);\n return myPokemonDbRef;\n }",
"public void updateDatabaseRefBackwards() {\n // we want to do this twice, since we go from children attribute to folder\n // and then folder to actual parent dir\n myRef = myRef.getParent().getParent();\n }",
"public DatabaseReference getRef(String type) {\n return db.getReference(type);\n }",
"private DataManager() {\n ref = FirebaseStorage.getInstance().getReference();\n }",
"public void setReference(Reference ref)\n {\n this.ref = ref;\n }",
"public static void createExampleOrders(DatabaseReference myRef) {\n for (int i = 1; i <= 3; i++) {\r\n myRef.child(\"example\" + i).child(\"status\").setValue(\"ACTIVE\");\r\n myRef.child(\"example\" + i).child(\"food\").setValue(\"Example Order \" + i);\r\n myRef.child(\"example\" + i).child(\"table\").setValue(i);\r\n myRef.child(\"example\" + i).child(\"timestamp\").setValue(\"0000000000000\");\r\n }\r\n }",
"public String getReference();",
"public String getReference();",
"private void setupFirebase() {\r\n mFirebaseDatabase = FirebaseDatabase.getInstance();\r\n mFirebaseDatabaseReference = mFirebaseDatabase.getReference().child(Constants.ROOM_DATABASE_REFERENCE);\r\n mQuery = mFirebaseDatabaseReference.orderByChild(Constants.ROOM_INT_REFERENCE).startAt(Utils.convertHallStart(mHallStart)).endAt(Utils.convertHallEnd(mHallEnd));\r\n }",
"private void initFirebase() {\n //инициализируем наше приложение для Firebase согласно параметрам в google-services.json\n // (google-services.json - файл, с настройками для firebase, кот. мы получили во время регистрации)\n FirebaseApp.initializeApp(this);\n //получаем точку входа для базы данных\n database = FirebaseDatabase.getInstance();\n myRef = database.getReference();\n\n }",
"String getReference();",
"String getReference();",
"public ReferenceHelper getReferenceHelper();",
"ReferenceEmbed createReferenceEmbed();",
"public String getReference() {\n return reference;\n }",
"public abstract void setupReferences() throws SQLException;",
"LocalReference createLocalReference();",
"Object getRefid();",
"public void setReference(String reference);",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public String getReference() {\n return reference;\n }",
"public RecipeDatabase() {\n\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference AllRecipeRef = database.getReference(\"allRecipes\");\n DatabaseReference newRecipeRef = AllRecipeRef.push();\n newRecipeRef.setValue(new Recipe(\"Pizza\", 1.0, \"gn_logo\", \"Italian\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Sushi Rolls\", 2.0, \"mkp_logo\", \"Japanese\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Crepe\", 3.5, \"mt_logo\", \"French\", \"5\", \"instr\", \"ingredients\"));\n AllRecipeRef.push().setValue(new Recipe(\"Baked Salmon\", 0, \"pb_logo\", \"American\", \"5\", \"1. prep ingredients\\n2.cook food\\n3.eat your food\", \"ingredients1 ingredient 2 ingredient3\"));\n }",
"void setReference(String reference);",
"public void ref() {\n\n\t}",
"private void setupFirebase(){\n FirebaseAuth firebaseAuth = FirebaseAuth.getInstance();\n FirebaseUser user = firebaseAuth.getCurrentUser();\n\n FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();\n if (user!=null){\n databaseReference = firebaseDatabase.getReference(\"Users\").child(user.getUid()).child(\"teacher\");\n }\n }",
"public AndroidInterfaceClass(){\n database = FirebaseDatabase.getInstance(\"https://brainstorming-1fa06-default-rtdb.europe-west1.firebasedatabase.app/\");\n }",
"public void addReference() {\r\n mReferenced = true;\r\n }",
"private void Reader(View view){\n DatabaseReference ref = mainRef.child(\"management\").child(\"staff\");\n\n // Reading The Reference\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull @NotNull DataSnapshot snapshot) {\n for (DataSnapshot d1 : snapshot.getChildren()){\n //\n String id = \"\";\n String username = \"\";\n String password = \"\";\n String name = \"\";\n String phone = \"\";\n String address = \"\";\n String position = \"\";\n String salary = \"\";\n String email = \"\";\n int lvl = 99;\n //\n for (DataSnapshot d2 : d1.getChildren()){\n if (d2.getKey().equals(\"id\")){ id = d2.getValue().toString();}\n if (d2.getKey().equals(\"username\")){ username = d2.getValue().toString();}\n if (d2.getKey().equals(\"password\")){ password = d2.getValue().toString();}\n if (d2.getKey().equals(\"name\")){ name = d2.getValue().toString();}\n if (d2.getKey().equals(\"phone\")){ phone = d2.getValue().toString();}\n if (d2.getKey().equals(\"address\")){ address = d2.getValue().toString();}\n if (d2.getKey().equals(\"position\")){ position = d2.getValue().toString();}\n if (d2.getKey().equals(\"salary\")){ salary = d2.getValue().toString();}\n if (d2.getKey().equals(\"email\")){ email = d2.getValue().toString();}\n if (d2.getKey().equals(\"lvl\")){ lvl = Integer.parseInt(d2.getValue().toString());}\n }\n //\n Staff tempMem = new Staff(\"\"+id, \"\"+username, \"\"+password, \"\"+name, \"\"+phone,\"\"+address,\"\"+position\n ,\"\"+salary,\"\"+email, lvl);\n //\n tempMem.setStaRef(d1.getRef());\n AddMember(tempMem);\n }\n setRecyclerView(view);\n }\n\n @Override\n public void onCancelled(@NonNull @NotNull DatabaseError error) { }});\n }",
"@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n mFirebaseDatabase = FirebaseDatabase.getInstance();\r\n mFirebaseDatabaseReference = mFirebaseDatabase.getReference().child(\"room\");\r\n super.onCreate(savedInstanceState);\r\n }",
"TestDocument getDocument(DocumentReference reference);",
"public static DataSnapshot get_dataSnapshot(DatabaseReference databaseReference) {\n\n ValueEventListener listener = new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n mDataSnapshot = dataSnapshot;\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n };\n\n databaseReference.addListenerForSingleValueEvent(listener);\n return mDataSnapshot;\n }",
"public final String getReference() {\n return reference;\n }",
"ReferenceProperty createReferenceProperty();",
"public void updateDatabaseRefForward(String child) {\n // move reference to the file, and then to the children attribute\n myRef = myRef.child(child).child(\"children\");\n }",
"public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }",
"public Reference() {\n super();\n }",
"public String getReferenceId() {\n return refid;\n }",
"public interface ReferenceHolder {\n\n /**\n * Sets the text.\n *\n * @param text the new text\n */\n void setText(String text);\n\n /**\n * Gets the current text.\n *\n * @return Returns the text.\n */\n String getText();\n\n /**\n * Gets the current {@link Diagram}.\n *\n * @return Returns the diagram.\n */\n Diagram getDiagram();\n\n /**\n * Sets the reference {@link Diagram}.\n *\n * @param reference the new reference\n */\n void setReference(Diagram reference);\n\n /**\n * Gets the reference {@link Diagram}.\n *\n * @return Returns the reference.\n */\n Diagram getReference();\n\n /**\n * Adds a {@link PropertyChangeListener}.\n *\n * @param listener the listener to add\n */\n void addPropertyChangeListener(PropertyChangeListener listener);\n\n}",
"java.lang.String getRef();",
"public String getRef() {\n return ref;\n }",
"public SoftReference getReference ()\r\n {\r\n return _reference;\r\n }",
"void setRef(int index, Ref value) throws SQLException;",
"ReferenceRealization createReferenceRealization();",
"public IDatatype getReference() { \n\t\treturn myReference;\n\t}",
"public void setRootRef(Reference rootRef) {\n this.rootRef = rootRef;\n }",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int i, long id) {\n switch (i){\r\n case 0:\r\n myRef = database.getReference(\"Proteins\");\r\n nutritionTitle.setText(\"Protein Sources\");\r\n\r\n /*\r\n myRef.setValue(\"<b>Protein Options / Serving Size</b>\" + \"<br/></br/><br/>\" +\r\n \"<b>Eggs:</b> 6 egg whites (you can boil them or cook them in a pan using non stick spray like PAM. Season with salt and pepper or a little hot sauce to taste)<br/><br/>\" +\r\n \"<b>Low Fat Cottage Cheese:</b> 1 cup <br/><br/>\" +\r\n \"<b>Chick Breast:</b> 1 breast (grill, bake, or pan fry with non-stick spray. Okay to season but DO NOT use marinades because they are full of salt)<br/><br/>\" +\r\n \"<b>Lean Beef:</b> 6 oz (Ground Beef 93% lean, Eye of Round cut in to small portions and grilled, baked, fried -or- London Broil grilled or baked then cut into portions)<br/><br/>\" +\r\n \"<b>Pork:</b> 6 oz (Pork Chops lean with fat cut off edge before cooking -or- Pork Tenderloin <br/><br/>\" +\r\n \"<b>Fish:</b> 6 oz (any fish is acceptable)<br/><br/>\" +\r\n \"<b>Protein Powder Mixed with Water:</b> 1 scoop (around 25g of protein per serving)<br/><br/>\" +\r\n \"<b>Deli Meat:</b> Turkey 4 oz. (ask for the low sodium) <br/><br/>\");\r\n\r\n\r\n\r\n textContent = \"<b>Protein Options / Serving Size</b>\" + \"<br/></br/><br/>\" +\r\n \"<b>Eggs:</b> 6 egg whites (you can boil them or cook them in a pan using non stick spray like PAM. Season with salt and pepper or a little hot sauce to taste)<br/><br/>\" +\r\n \"<b>Low Fat Cottage Cheese:</b> 1 cup <br/><br/>\" +\r\n \"<b>Chick Breast:</b> 1 breast (grill, bake, or pan fry with non-stick spray. Okay to season but DO NOT use marinades because they are full of salt)<br/><br/>\" +\r\n \"<b>Lean Beef:</b> 6 oz (Ground Beef 93% lean, Eye of Round cut in to small portions and grilled, baked, fried -or- London Broil grilled or baked then cut into portions)<br/><br/>\" +\r\n \"<b>Pork:</b> 6 oz (Pork Chops lean with fat cut off edge before cooking -or- Pork Tenderloin <br/><br/>\" +\r\n \"<b>Fish:</b> 6 oz (any fish is acceptable)<br/><br/>\" +\r\n \"<b>Protein Powder Mixed with Water:</b> 1 scoop (around 25g of protein per serving)<br/><br/>\" +\r\n \"<b>Deli Meat:</b> Turkey 4 oz. (ask for the low sodium) <br/><br/>\";\r\n contentDesc.setText(Html.fromHtml(textContent));\r\n */\r\n\r\n break;\r\n case 1:\r\n myRef = database.getReference(\"Carbohydrates\");\r\n nutritionTitle.setText(\"Carbohydrate Sources\");\r\n\r\n /*\r\n myRef.setValue(\"<b>Carbohydrate Options / Serving Size</b>\" + \"<br/></br/><br/>\" +\r\n \"<b>Oatmeal:</b> 3/4 cup (make with water and season with artificial sweetener such as Stevia, Splenda, Equal, Sweet n Low, or cinnamon. After cooking, I add a scoop of protein powder to create a chocolate protein oatmeal which is awesome.)<br/><br/>\" +\r\n \"<b>High Fiber Cereal:</b> 1 cup with 1/2 cup skim milk<br/><br/>\" +\r\n \"<b>Sweet Potato:</b> medium size (microwave wrapped in a paper towel for 5 to 6 minutes on high) <br/><br/>\" +\r\n \"<b>Brown Rice:</b> 1 cup <br/><br/>\" +\r\n \"<b>Quinoa:</b> 1 cup (actually a seed that is very similar in texture and consistency to couscous. Season with salt & pepper which is quite good)<br/><br/>\" +\r\n \"<b>Wheat Berries:</b> 1 cup (incredible grain found in bulk at grocers such as Whole Foods) <br/><br/>\" +\r\n \"<b>Whole Grain Bread:</b> 2 slices <br/><br/>\" +\r\n \"<b>Low Carbohydrate or Whole Wheat Tortilla:</b> 1 <br/><br/>\" +\r\n \"<b>Beans:</b> 1/2 can (pinto, garbanzo, or red kidney and look for the low sodium option if buying canned beans)<br/><br/>\");\r\n\r\n\r\n\r\n textContent = \"<b>Carbohydrate Options / Serving Size</b>\" + \"<br/></br/><br/>\" +\r\n \"<b>Oatmeal:</b> 3/4 cup (make with water and season with artificial sweetener such as Stevia, Splenda, Equal, Sweet n Low, or cinnamon. After cooking, I add a scoop of protein powder to create a chocolate protein oatmeal which is awesome.)<br/><br/>\" +\r\n \"<b>High Fiber Cereal:</b> 1 cup with 1/2 cup skim milk<br/><br/>\" +\r\n \"<b>Sweet Potato:</b> medium size (microwave wrapped in a paper towel for 5 to 6 minutes on high) <br/><br/>\" +\r\n \"<b>Brown Rice:</b> 1 cup <br/><br/>\" +\r\n \"<b>Quinoa:</b> 1 cup (actually a seed that is very similar in texture and consistency to couscous. Season with salt & pepper which is quite good)<br/><br/>\" +\r\n \"<b>Wheat Berries:</b> 1 cup (incredible grain found in bulk at grocers such as Whole Foods) <br/><br/>\" +\r\n \"<b>Whole Grain Bread:</b> 2 slices <br/><br/>\" +\r\n \"<b>Low Carbohydrate or Whole Wheat Tortilla:</b> 1 <br/><br/>\" +\r\n \"<b>Beans:</b> 1/2 can (pinto, garbanzo, or red kidney and look for the low sodium option if buying canned beans)<br/><br/>\";\r\n contentDesc.setText(Html.fromHtml(textContent));\r\n */\r\n break;\r\n\r\n case 2:\r\n myRef = database.getReference(\"Fats\");\r\n nutritionTitle.setText(\"Fat Sources\");\r\n /*\r\n myRef.setValue(\"<b>Fat Options</b> <b>/</b> <b>Serving Size</b>\" + \"<br/></br/><br/>\" +\r\n \"<b>Olive Oil </b> <b>/</b> <b>Flaxseed Oil:</b> Great source of fat. Great to add to dishes.<br/><br/>\" +\r\n \"<b>Fish Oil:</b> Staple source of healthy fats.<br/><br/>\" +\r\n \"<b>Almond Butter</b><b>/</b><b>Cashew Butter:</b> Derived from the nuts but a good source of fat.<br/><br/>\" +\r\n \"<b>Almonds:</b> Great source of fat and small amount of protein.<br/><br/>\" +\r\n \"<b>Pecans:</b> Great source of fat and small amount of protein.<br/><br/>\" +\r\n \"<b>Walnuts:</b> Great source of fat and small amount of protein.<br/><br/>\" +\r\n \"<b>Cashews:</b> Great source of fat and small amount of protein.<br/><br/>\" +\r\n \"<b>Natural Peanut Butter:</b> Not processed. Great source of fat and some protein. Love adding this to my shakes during the day.<br/><br/>\" +\r\n \"<b>Avocados:</b> Healthy fat source. Love it in my sushi.\");\r\n\r\n\r\n textContent = \"<b>Fat Options</b> <b>/</b> <b>Serving Size</b>\" + \"<br/></br/><br/>\" +\r\n \"<b>Olive Oil </b> <b>/</b> <b>Flaxseed Oil:</b> Great source of fat. Great to add to dishes.<br/><br/>\" +\r\n \"<b>Fish Oil:</b> Staple source of healthy fats.<br/><br/>\" +\r\n \"<b>Almond Butter</b><b>/</b><b>Cashew Butter:</b> Derived from the nuts but a good source of fat.<br/><br/>\" +\r\n \"<b>Almonds:</b> Great source of fat and small amount of protein.<br/><br/>\" +\r\n \"<b>Pecans:</b> Great source of fat and small amount of protein.<br/><br/>\" +\r\n \"<b>Walnuts:</b> Great source of fat and small amount of protein.<br/><br/>\" +\r\n \"<b>Cashews:</b> Great source of fat and small amount of protein.<br/><br/>\" +\r\n \"<b>Natural Peanut Butter:</b> Not processed. Great source of fat and some protein. Love adding this to my shakes during the day.<br/><br/>\" +\r\n \"<b>Avocados:</b> Healthy fat source. Love it in my sushi.\";\r\n contentDesc.setText(Html.fromHtml(textContent));\r\n */\r\n\r\n break;\r\n case 3:\r\n myRef = database.getReference(\"FruitsAndVeggies\");\r\n nutritionTitle.setText(\"Fruits & Vegetables\");\r\n /*\r\n myRef.setValue(\"<b>Vegetables</b>\" + \"<br/><br/><br/>\" +\r\n \"General rule is that if it is *green* you may consume as much as desired- seriously as much as you want.<br/><br/>\" +\r\n \"Salads are a great option; however, use a vinegar dressing as opposed to high calorie dressings.<br/><br/> \" +\r\n \"Seasoned Rice Wine Vinegar is a personal favorite which can be found in the vinegar section of the grocery store.<br/><br/>\" +\r\n \"<b>Broccoli:</b> as much as you want (great steamed with a little salt, pepper and a squeeze of lemon)<br/><br/>\" +\r\n \"<b>Yellow Squash:</b> as much as you want<br/><br/>\" +\r\n \"<b>Zucchini:</b> as much as you want<br/><br/>\" +\r\n \"<b>Green Pepper:</b> as much as you want<br/><br/>\" +\r\n \"<b>Celery:</b> as much as you want<br/><br/>\" +\r\n \"<b>Cucumber:</b> as much as you want<br/><br/>\" +\r\n \"<b>Spinach:</b> as much as you want<br/><br/>\" +\r\n \"<b>Lettuce (any kind):</b> as much as you want<br/><br/>\" +\r\n \"<b>Green Beans:</b> as much as you want (if canned, purchase the \\\"<i>No Sodium Added<i/>\\\" option)<br/><br/>\" +\r\n \"<b>Asparagus:</b> as much as you want<br/><br/>\" +\r\n \"<b>Radishes:</b> as much as you want<br/><br/>\" +\r\n \"<b>Mushrooms:</b> as much as you want<br/><br/>\" +\r\n \"<b>Carrots:</b></b> 2 medium size (note this root contains more sugar than most green vegetables) <br/><br/><br/>\" +\r\n \"<b>Fruits</b><br/><br/><br/>\" +\r\n \"<b>Orange:</b> 1<br/><br/>\" +\r\n \"<b>Apple:</b> 1<br/><br/>\" +\r\n \"<b>Grapefruit:</b> 1<br/><br/>\" +\r\n \"<b>Peach:</b> 1<br/><br/>\" +\r\n \"<b>Nectarine:</b> 1<br/><br/>\" +\r\n \"<b>Pear:</b> 1<br/><br/>\" +\r\n \"<b>Kiwi:</b> 2<br/><br/>\" +\r\n \"<b>Tangerine</b>: 2\");\r\n\r\n\r\n\r\n textContent = \"<b>Vegetables</b>\" + \"<br/><br/><br/>\" +\r\n \"General rule is that if it is *green* you may consume as much as desired- seriously as much as you want.<br/><br/>\" +\r\n \"Salads are a great option; however, use a vinegar dressing as opposed to high calorie dressings.<br/><br/> \" +\r\n \"Seasoned Rice Wine Vinegar is a personal favorite which can be found in the vinegar section of the grocery store.<br/><br/>\" +\r\n \"<b>Broccoli:</b> as much as you want (great steamed with a little salt, pepper and a squeeze of lemon)<br/><br/>\" +\r\n \"<b>Yellow Squash:</b> as much as you want<br/><br/>\" +\r\n \"<b>Zucchini:</b> as much as you want<br/><br/>\" +\r\n \"<b>Green Pepper:</b> as much as you want<br/><br/>\" +\r\n \"<b>Celery:</b> as much as you want<br/><br/>\" +\r\n \"<b>Cucumber:</b> as much as you want<br/><br/>\" +\r\n \"<b>Spinach:</b> as much as you want<br/><br/>\" +\r\n \"<b>Lettuce (any kind):</b> as much as you want<br/><br/>\" +\r\n \"<b>Green Beans:</b> as much as you want (if canned, purchase the \\\"<i>No Sodium Added<i/>\\\" option)<br/><br/>\" +\r\n \"<b>Asparagus:</b> as much as you want<br/><br/>\" +\r\n \"<b>Radishes:</b> as much as you want<br/><br/>\" +\r\n \"<b>Mushrooms:</b> as much as you want<br/><br/>\" +\r\n \"<b>Carrots:</b></b> 2 medium size (note this root contains more sugar than most green vegetables) <br/><br/><br/>\" +\r\n \"<b>Fruits</b><br/><br/><br/>\" +\r\n \"<b>Orange:</b> 1<br/><br/>\" +\r\n \"<b>Apple:</b> 1<br/><br/>\" +\r\n \"<b>Grapefruit:</b> 1<br/><br/>\" +\r\n \"<b>Peach:</b> 1<br/><br/>\" +\r\n \"<b>Nectarine:</b> 1<br/><br/>\" +\r\n \"<b>Pear:</b> 1<br/><br/>\" +\r\n \"<b>Kiwi:</b> 2<br/><br/>\" +\r\n \"<b>Tangerine</b>: 2\";\r\n contentDesc.setText(Html.fromHtml(textContent));\r\n */\r\n break;\r\n }\r\n\r\n // Read from the database\r\n myRef.addValueEventListener(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(DataSnapshot dataSnapshot) {\r\n // This method is called once with the initial value and again\r\n // whenever data at this location is updated.\r\n String value = dataSnapshot.getValue(String.class);\r\n contentDesc.setText(Html.fromHtml(value));\r\n\r\n Log.d(TAG, \"Value is: \" + value);\r\n }\r\n\r\n @Override\r\n public void onCancelled(DatabaseError error) {\r\n // Failed to read value\r\n Log.w(TAG, \"Failed to read value.\", error.toException());\r\n }\r\n });\r\n\r\n }",
"public String getReferenceId();",
"private void initializeInstanceVariables(){\n\n //Initialize Firebase variables\n firebaseAuth = FirebaseAuth.getInstance();\n currentUser = FirebaseAuth.getInstance().getCurrentUser();\n myDatabase = FirebaseDatabase.getInstance().getReference(firebaseAuth.getUid());\n\n //Initialize input variables\n newContactPhoneNumber = findViewById(R.id.addcontact_phonenumber);\n finishButton = findViewById(R.id.addcontact_finishbttn);\n backButton = findViewById(R.id.addContactScreenBackBttn);\n newContactFirstName = ((EditText) findViewById(R.id.addcontact_firstname));\n newContactLastName = ((EditText) findViewById(R.id.addcontact_lastname));\n newContactEmailAddress = ((EditText) findViewById(R.id.addcontact_email));\n }",
"Table getReferences();",
"public void basicReadWrite() {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef = database.getReference(\"message\");\n\n myRef.setValue(\"Hello, World!\");\n // [END write_message]\n\n // [START read_message]\n // Read from the database\n myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // This method is called once with the initial value and again\n // whenever data at this location is updated.\n String value = dataSnapshot.getValue(String.class);\n Log.d(TAG, \"Value is: \" + value);\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }\n });\n // [END read_message]\n }",
"public void basicReadWrite() {\n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference myRef = database.getReference(\"message\");\n\n myRef.setValue(\"Hello, World!\");\n // [END write_message]\n\n // [START read_message]\n // Read from the database\n myRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n // This method is called once with the initial value and again\n // whenever data at this location is updated.\n String value = dataSnapshot.getValue(String.class);\n Log.d(TAG, \"Value is: \" + value);\n }\n\n @Override\n public void onCancelled(DatabaseError error) {\n // Failed to read value\n Log.w(TAG, \"Failed to read value.\", error.toException());\n }\n });\n // [END read_message]\n }",
"private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }",
"public void setReference(String reference) {\n this.reference = reference;\n }",
"public void setReference(String reference) {\n this.reference = reference;\n }",
"public interface SchemaReference extends NameUuidReference<SchemaReference> {\n\n\t/**\n\t * Return the version of the referenced schema.\n\t * \n\t * @return\n\t */\n\tString getVersion();\n\n\t/**\n\t * Set the version of the referenced schema.\n\t * \n\t * @param version\n\t * @return Fluent API\n\t */\n\tSchemaReference setVersion(String version);\n\n\t/**\n\t * Get the uuid of the schema version\n\t * @return\n\t */\n\tString getVersionUuid();\n\n\t/**\n\t * Set the uuid of the schema version\n\t * @param uuid\n\t * @return\n\t */\n\tSchemaReference setVersionUuid(String uuid);\n}",
"private void initDatabase(){\n\n mChildEventListener=new ChildEventListener() {\n @Override\n public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n\n }\n\n @Override\n public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n\n }\n\n @Override\n public void onChildRemoved(@NonNull DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n };\n androidDatabase.addChildEventListener(mChildEventListener);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_storage);\n\n // [START storage_field_initialization]\n FirebaseStorage storage = FirebaseStorage.getInstance();\n // [END storage_field_initialization]\n\n includesForCreateReference();\n }",
"public abstract void queryReferences(CoreEditorTableModel model) throws SQLException;",
"@Override\r\n\tpublic Ref getRef() {\n\t\treturn ref;\r\n\t}",
"@Test\n public void noteRef() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n builder.write(\"CrossReference: \");\n\n FieldNoteRef field = (FieldNoteRef)builder.insertField(FieldType.FIELD_NOTE_REF, false); // <--- don't update field\n field.setBookmarkName(\"CrossRefBookmark\");\n field.setInsertHyperlink(true);\n field.setInsertReferenceMark(true);\n field.setInsertRelativePosition(false);\n builder.writeln();\n\n builder.startBookmark(\"CrossRefBookmark\");\n builder.write(\"Hello world!\");\n builder.insertFootnote(FootnoteType.FOOTNOTE, \"Cross referenced footnote.\");\n builder.endBookmark(\"CrossRefBookmark\");\n builder.writeln();\n\n doc.updateFields();\n\n // This field works only in older versions of Microsoft Word.\n doc.save(getArtifactsDir() + \"Field.NOTEREF.doc\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.NOTEREF.doc\");\n field = (FieldNoteRef)doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_NOTE_REF, \" NOTEREF CrossRefBookmark \\\\h \\\\f\", \"1\", field);\n TestUtil.verifyFootnote(FootnoteType.FOOTNOTE, true, null, \"Cross referenced footnote.\",\n (Footnote)doc.getChild(NodeType.FOOTNOTE, 0, true));\n }",
"public Reference getRootRef() {\n return this.rootRef;\n }",
"public Node getReference() {\n return this.reference;\n }",
"public void entityReference(String name);",
"public void softReference()\n {\n \t //====NOTE=====>>> RSN how SoftReference is created\n SoftReference<ReferenceExample> ex = new SoftReference<ReferenceExample>(new ReferenceExample(\"SoftRef\"));\n //====NOTE=====>>> RSN SUPER IMP : Note how to get hold of real object, by get() method\n System.out.println(\"Soft refrence :: \" + ex.get().getOrigin());\n \n int counter=0;\n while(counter<5)\n {\n counter++;\n System.gc();\n }\n \n System.out.println(\"SoftReference still Valid after 5 GC:\" + ex.get().getStatus() + \"Orig=\" + ex.get().getOrigin());\n }",
"public Builder setTvdbRef(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n tvdbRef_ = value;\n onChanged();\n return this;\n }",
"Collection<Feature> getReference();",
"private void retrieveData(){\n databaseReference.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n Teacher teacher = dataSnapshot.getValue(Teacher.class);\n\n if (teacher==null){\n saveData();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n toast(getString(R.string.retrieve_failed));\n }\n });\n }",
"private FirebaseDAO() {}",
"public void setReferenceId(String refid) {\n this.refid = refid;\n }",
"public java.lang.String getReference() {\n return reference;\n }",
"Variable getRefers();",
"@Test\n public void testInsertWithReference() throws Exception {\n String sql = \"INSERT INTO m.g (a) VALUES (?)\";\n Node fileNode = sequenceSql(sql, TSQL_INSERT);\n\n Node insertNode = verify(fileNode, Insert.ID, Insert.ID);\n Node gsNode = verify(insertNode, TargetedCommand.GROUP_REF_NAME, GroupSymbol.ID);\n verifyProperty(gsNode, Symbol.NAME_PROP_NAME, \"m.g\");\n verifyElementSymbol(insertNode, Insert.VARIABLES_REF_NAME, \"a\");\n Node refNode = verify(insertNode, Insert.VALUES_REF_NAME, Reference.ID);\n verifyProperty(refNode, Reference.INDEX_PROP_NAME, 0);\n verifyProperty(refNode, Reference.POSITIONAL_PROP_NAME, true);\n\n verifySql(sql, fileNode);\n }",
"@Ignore //DKH\n @Test\n public void testMakePersistentRecursesThroughReferenceFields() {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.wcc_stories, container, false);\n\n //FirebaseDatabase mDatabase = Common.currentDatabase;\n\n FirebaseFirestore mDatabase = Common.currentDatabase;\n\n FirebaseAuth mAuth = Common.currentAuth;\n final FirebaseUser mUser = Common.currentFirebaseUser;\n\n //DatabaseReference mReference = mDatabase.getReference().child(getString(R.string.weekly_challenge_db_name)).child(\"posts\");\n CollectionReference mReference = mDatabase.collection(getString(R.string.weekly_challenge_db_name)+\"_1\")\n .document(\"posts\").collection(\"posts\");\n\n //DatabaseReference mCommentReference = mDatabase.getReference().child(getString(R.string.weekly_challenge_db_name))\n // .child(\"post-comments\");\n CollectionReference mCommentReference = mDatabase.collection(getString(R.string.weekly_challenge_db_name)+\"_1\")\n .document(\"post-comments\").collection(\"post-comments\");\n\n //DatabaseReference mUserReference = mDatabase.getReference().child(\"users\");\n CollectionReference mUserReference = mDatabase.collection(\"users_1\");\n\n /* mAuth.addAuthStateListener(new FirebaseAuth.AuthStateListener() {\n @Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n if (mUser != null) {\n Common.currentUser = new User(mUser.getUid(), mUser.getDisplayName(), mUser.getEmail(), mUser.getPhotoUrl().toString(), mUser.getPhotoUrl());\n }\n }\n });*/\n\n //Query query = mDatabase.getReference().child(getString(R.string.weekly_challenge_db_name)).child(\"posts\");\n CollectionReference query = mDatabase.collection(getString(R.string.weekly_challenge_db_name)+\"_1\")\n .document(\"posts\").collection(\"posts\");\n\n Common.currentReference = mReference;\n Common.currentQuery = query;\n Common.currentUserReference = mUserReference;\n Common.currentCommentReference = mCommentReference;\n\n return view;\n }",
"public void leerDB(){\n sqlDB = bdHelper.getReadableDatabase();\n\n }",
"public INamedReference<IEntity> getEntityRef();",
"public void setRefId (int refId)\n {\n this.refId = refId;\n }",
"public static FirebaseDatabase getDatabase() {\n //Start Work here\n if (mFirebaseDatabase != null) {\n mFirebaseDatabase = FirebaseDatabase.getInstance();\n } else if (mFirebaseDatabase == null) {\n mFirebaseDatabase = FirebaseDatabase.getInstance();\n// mFirebaseDatabase.setPersistenceEnabled(true);\n }\n return mFirebaseDatabase;\n }",
"boolean referencesSingleColumnPrimaryKey();",
"public long getRefId() {\n return refId;\n }",
"B documentReference(String documentReference);",
"ReferenceLink createReferenceLink();",
"@Override\n public void onClick(View starView) {\n DatabaseReference globalPostRef = BaseActivity.mDatabase.getReference(ref).child(postRef.getKey());\n //DatabaseReference userPostRef = mDatabase.child(\"user-posts\").child(model.uid).child(postRef.getKey());\n // Run two transactions\n onStarClicked(globalPostRef);\n //onStarClicked(userPostRef);\n }",
"private void addMember(String firstName, String lastName, String emailId) {\n Log.e(\"AddMember\", \"Fn \" + firstName + \", Ln \" + lastName + \"eid \" + emailId);\n\n\n// myRef.setValue(\"Hello, World!\");\n String key = myRef.push().getKey();\n Log.e(\"AddMember\", \"key \" + key);\n\n CoreMember member = new CoreMember(firstName, lastName, emailId);\n myRef.child(key).setValue(member, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(DatabaseError databaseError, DatabaseReference databaseReference) {\n if (databaseError != null) {\n System.out.println(\"Data could not be saved \" + databaseError.getMessage());\n } else {\n System.out.println(\"Data saved successfully.\" + databaseReference.toString());\n memberKey = databaseReference.getKey();\n hideInputForm(true);\n\n }\n }\n });\n }",
"PropertyReference createPropertyReference();",
"boolean hasRef();",
"public Task<DocumentReference> makePayment(PaymentTable paymentTable){\n return firebaseFirestore.collection(\"Payment\").add(paymentTable);\n }",
"@Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n final String uid1=documentSnapshot.getString(\"uid\");\n // final DocumentReference borrowed=db.collection(uid1).document();\n final DocumentReference borrowed = db.collection(\"Users\").document(\"Items\").collection(uid1).document();\n final Map<String, Object> note = new HashMap<>();\n note.put(\"docuID\",nbid);\n\n\n Number countreq1 = (Long) documentSnapshot.get(\"reqcount\");\n final int reqcount = countreq1.intValue();\n final DocumentReference nbref1 = db.collection(\"Notebook\").document(nbid);\n nbref1.get()\n .addOnSuccessListener(new OnSuccessListener<DocumentSnapshot>() {\n @Override\n public void onSuccess(DocumentSnapshot documentSnapshot) {\n final String nameitem = documentSnapshot.getString(\"item_name\");\n Number countavail1 = (Long) documentSnapshot.get(\"count\");\n int countavail=countavail1.intValue();\n final int remaining_item = countavail-reqcount;\n if (reqcount<=countavail){\n nbref1.update(\"count\",remaining_item);\n\n note.put(\"item_name\", nameitem);\n note.put(\"mycount\", reqcount);\n\n\n borrowed.set(note)\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n // Toast.makeText(MainActivity.this, \"Note saved\", Toast.LENGTH_SHORT).show();\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n //Toast.makeText(MainActivity.this, \"Error!\", Toast.LENGTH_SHORT).show();\n //Log.d(TAG, e.toString());\n //Log.d(TAG, \"onFailure: \");\n }\n });\n\n\n DocumentReference adminlogs = db.collection(\"AdminLogs1\").document();\n Map<String, Object> note1 = new HashMap<>();\n note1.put(\"item_name\", nameitem);\n note1.put(\"countitem\", reqcount);\n note1.put(\"username\",\"Admin \"+username);\n note1.put(\"status\",\"Request Accepted\");\n\n note1.put(\"uid\",uid1);\n note1.put(\"timestamp\", FieldValue.serverTimestamp());\n adminlogs.set(note1);\n\n DocumentReference userlogs = db.collection(\"Users\").document(\"Items\").collection(\"Logs \"+uid1).document();\n Map<String, Object> note11 = new HashMap<>();\n note11.put(\"item_name\", nameitem);\n note11.put(\"countitem\", reqcount);\n note11.put(\"username\",username);\n note11.put(\"status\",\"Accepted\");\n\n note11.put(\"uid\",uid1);\n note11.put(\"timestamp\", FieldValue.serverTimestamp());\n userlogs.set(note11);\n\n if (getView() != null)\n Snackbar.make(getView(), String.format(\"Request accepted for'%d' number of Item '%s'\", reqcount, nameitem), BaseTransientBottomBar.LENGTH_LONG).show();\n\n rqref.delete();\n }\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n\n }\n });\n\n\n }"
] |
[
"0.6740673",
"0.6183358",
"0.6161169",
"0.6061042",
"0.59957564",
"0.59283",
"0.59233934",
"0.5910226",
"0.5877377",
"0.58430755",
"0.57416487",
"0.5739318",
"0.56796783",
"0.56776243",
"0.56511015",
"0.56506115",
"0.5585221",
"0.5563041",
"0.55233866",
"0.55233866",
"0.5498923",
"0.54950017",
"0.54564726",
"0.54564726",
"0.53899544",
"0.5371944",
"0.5369423",
"0.53561145",
"0.53085923",
"0.5303667",
"0.52882004",
"0.52695554",
"0.52695554",
"0.52695554",
"0.5258336",
"0.52566224",
"0.5247923",
"0.52430207",
"0.52300787",
"0.52257395",
"0.5217133",
"0.52146924",
"0.51825935",
"0.51751125",
"0.5160407",
"0.5158361",
"0.5136794",
"0.513346",
"0.5119015",
"0.51101774",
"0.51072204",
"0.5103908",
"0.51024336",
"0.5102184",
"0.5094884",
"0.509149",
"0.50909275",
"0.50908345",
"0.508781",
"0.5054458",
"0.50504035",
"0.5042612",
"0.50356615",
"0.50356615",
"0.5027107",
"0.5026142",
"0.5026142",
"0.5022858",
"0.50220436",
"0.5018733",
"0.5016472",
"0.5015302",
"0.50018966",
"0.49965972",
"0.49928755",
"0.49703866",
"0.49610218",
"0.49550965",
"0.49531955",
"0.4952582",
"0.4947006",
"0.49364284",
"0.4935466",
"0.49298742",
"0.49231666",
"0.49206844",
"0.49072072",
"0.4905303",
"0.49050725",
"0.489738",
"0.48963165",
"0.4878807",
"0.48761216",
"0.4870926",
"0.48683596",
"0.4863265",
"0.48627365",
"0.48581472",
"0.485595",
"0.48487097",
"0.48486668"
] |
0.0
|
-1
|
Main method to be called by JVM.
|
public static void main(final String[] args) {
// Parrot instance assigned to type of FlightBirds
FlightBirds parrot = new Parrot();
parrot.setLatitude(200);
parrot.setLongitude(300);
parrot.setAltitude(100);
// Parrot location
System.out.println("Parrot Location is : " + parrot.getLocation());
// Pengwin instance assigned to type of NonFlightBirds
NonFlightBirds penguin = new Penguin();
penguin.setLatitude(100);
penguin.setLongitude(200);
// pengwin location
System.out.println("Pengwin Location is : " + penguin.getLocation());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main() {\n }",
"public static void main(){\n\t}",
"public static void main()\n\t{\n\t}",
"public static void main(String[] args) {}",
"public static void main(String[] args) {}",
"public static void main(String... args) {\n doMain().run();\n }",
"public static void main() {\n \n }",
"public static void main(String[] args) {\n //launch it\n launch();\n }",
"public static void main (String []args){\n }",
"static void main(String[] args) {\n }",
"static void main(String[] args)\n {\n }",
"public static void main(String[] args) {\n new Main();\n }",
"public static void main(String[] args) {\n new Main().run();\n }",
"public static void main(String[] args) {\n\t launch(args);\n\t }",
"public static void main(String[] args) {\n\t launch(args);\n\t }",
"public static void main(String args[]) {}",
"public static void main(String args[]) {}",
"public static void main(String args[]) {}",
"public static void main(String[] args) { }",
"public static void main(String[] args) {\t}",
"static public void main(String[] args) {\n\t}",
"public static void main(String []args){\n }",
"public static void main(String []args){\n }",
"public static void main(String[] args) {\n new Main();\r\n }",
"public static void main(String[] args) {\r\n\t launch(args); \r\n \r\n}",
"public static void main(String[] args) {\n \n\n }",
"public static void main(String[] args) {\n\t \t\n\t \t\n\t }",
"public static void main(String[] args) // every Java program starts with a main method or function\r\n\t{\n\t}",
"public static void main(String []args){\n\n }",
"public static void main (String[] args) {\n launch(args);\n }",
"public static void main(String[]args) {\n\t}",
"public static void main (String[]args) throws IOException {\n }",
"public static void main(String[] args) {\r\n// Use for unit testing\r\n }",
"public static void main(String[] args) {\r\n \r\n }",
"public static void main(String[] args) {\r\n \r\n }",
"public static void main(String[] args) {\n launch(args);\r\n \r\n }",
"public static void main(String[] args) {\r\n\t launch(args);\r\n\t}",
"public static void main(String[] args) {\n launch(args);\r\n }",
"public static void main(String[] args) {\n launch(args);\r\n }",
"public static void main(String[] args) {\n launch(args);\r\n }",
"public static void main(String[] args) {\n // TODO code application logic here\n // some testing? or actually we can't run it standalone??\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\n new Main().doMain(args);\n }",
"public void main(){\n }",
"public static void main (String[] args) {\r\n\t\t \r\n\t\t}",
"public static void main (String[] args) {\n }",
"public static void main(String[] args)\n {\n launch(args);\n }",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args)\r\n {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n \n \n \n\t}",
"public static void main (String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n \n }",
"public static void main(String[] args)\r\n {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}",
"public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}",
"public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}",
"public static void main(String[] args) {\r\n\t\tlaunch(args);\r\n\t}",
"public static void main(String[] args)\n {\n launch(args);\n }",
"public static void main(String[] args)\n {\n launch(args);\n }",
"public static void main(String[] args)\n {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n\t\tlaunch(args);\r\n\t}",
"public static void main(String[] args) {\n\t\tlaunch(args);\r\n\t}",
"public static void main(String[] args) {\n launch(args); \n }",
"public static void main(String[] args) {\n launch(args);\n\n }",
"public static void main (String[] args) {\n\n }",
"public static void main(String[] args) {\n \r\n\t}",
"public static void main(String[] args) {\n\t\tnew Main();\n\t}",
"public static void main(String[] args) {\n\t\tnew Main();\n\t}",
"public static void main(String[] args) {\n\t\tnew Main();\n\t}",
"public static void main(String[] args) {\n\t\tnew Main();\n\t}",
"public static void main(String[] args) {\n\t\tnew Main();\n\t}",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n launch(args);\r\n }",
"public static void main(String[] args)\r\n {\r\n launch(args);\r\n }",
"public static void main(String[] args) {\r\n }",
"public static void main(String[] args) {\r\n }",
"public static void main(String[]args) {\n\t\n\t\t\n\n}",
"public static void main(String[] args) {\n\t\t\n\t\tnew Main();\n\t\t\n\t}",
"public static void main (String args[]) {\n\t\t\n }",
"public static void main(String[] args){\n\t\t\n\t\t\n \t}",
"public static void main(String[] args) {\n\t \t\n\t \t\n\t}",
"public static void main(String[] args) { }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n launch(args);\n }"
] |
[
"0.78129935",
"0.7735534",
"0.7733047",
"0.76717585",
"0.76717585",
"0.7641845",
"0.76329505",
"0.75892913",
"0.7529418",
"0.75196505",
"0.75125396",
"0.74868447",
"0.7471849",
"0.74648845",
"0.74648845",
"0.7419521",
"0.7419521",
"0.7419521",
"0.7416484",
"0.74116224",
"0.73930526",
"0.73920816",
"0.73920816",
"0.73874986",
"0.7371218",
"0.7366785",
"0.7358088",
"0.7349441",
"0.7345769",
"0.7343215",
"0.73366034",
"0.7336075",
"0.73281205",
"0.7327972",
"0.7327972",
"0.7322642",
"0.73218703",
"0.7313391",
"0.7313391",
"0.7313391",
"0.73108864",
"0.7303262",
"0.73012733",
"0.729965",
"0.7293886",
"0.729343",
"0.7292744",
"0.7277884",
"0.727704",
"0.72765255",
"0.72765255",
"0.72765255",
"0.72765255",
"0.72765255",
"0.7272473",
"0.7268763",
"0.7264017",
"0.72631073",
"0.7262653",
"0.7262653",
"0.7262653",
"0.7262653",
"0.72624695",
"0.72624695",
"0.72624695",
"0.725562",
"0.725562",
"0.725562",
"0.725562",
"0.725562",
"0.725562",
"0.7247294",
"0.7247294",
"0.72468966",
"0.72462845",
"0.7245088",
"0.72426945",
"0.72416955",
"0.72416955",
"0.72416955",
"0.72416955",
"0.72416955",
"0.7241124",
"0.7241124",
"0.7241124",
"0.7241124",
"0.7241124",
"0.7241124",
"0.7241124",
"0.7235852",
"0.7234029",
"0.7234029",
"0.7230761",
"0.72291464",
"0.72276056",
"0.7226854",
"0.72201145",
"0.72188455",
"0.721884",
"0.721884",
"0.721884"
] |
0.0
|
-1
|
Please do not use. Items are produced by a JSONiq query via the Rumble API.
|
protected Item() {
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@GET\r\n\t@Path(\"/all\")\r\n\t@Produces(\"application/json\")\r\n\tpublic JsonArray getAllItems(){\r\n\t\t \tConnection database = DBConnecter.getConnection();\r\n\t\t Statement stat = null;\r\n\t\t ResultSet rs = null;\r\n\t\t\ttry {\r\n\t\t\t\tstat = database.createStatement();\r\n\t\t\t\tString sqlQueryString = \"select * from item;\";\r\n\t\t\t\trs = stat.executeQuery(sqlQueryString);\r\n\t\t\t\tstat.executeQuery(sqlQueryString);\r\n\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\tItem itemNew = new Item(\r\n\t\t \t\trs.getInt(idTagString),\r\n\t\t \t\trs.getInt(binNumString),\r\n\t\t \t\trs.getString(departmentString),\r\n\t\t \t\trs.getString(descriptionString),\r\n\t\t \t\trs.getFloat(replacementCostString),\r\n\t\t \t\trs.getFloat(priceString),\r\n\t\t \t\trs.getString(dimensionsString),\r\n\t\t \t\trs.getInt(lengthString),\r\n\t\t \t\trs.getFloat(weightString),\r\n\t\t \t\trs.getString(modelNumberString),\r\n\t\t \t\trs.getInt(purchaseDateString),\r\n\t\t \t\trs.getInt(warrantyEndDateString),\r\n\t\t \t\trs.getString(categoryString)\r\n\t\t \t\t);\r\n\t\t items.add(itemNew);\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally{\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t\tstat.close();\r\n\t\t\t\t\tdatabase.close();\r\n\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t \r\n\t\t\t}\r\n\t\t\treturn getListAsJson(items);\r\n\t}",
"com.rpg.framework.database.Protocol.Item getItems(int index);",
"private void readItems() {\n }",
"java.util.List<com.rpg.framework.database.Protocol.Item> \n getItemsList();",
"@Override\r\n public void handleMessage(Message inputMessage){\n Log.i(\"graphqlgetall\", \"made it to the callback\");\r\n List<ListBuyableItemsQuery.Item> items = response.data().listBuyableItems().items();\r\n buyableItems.clear();\r\n for(ListBuyableItemsQuery.Item item : items){\r\n buyableItems.add(new BuyableItem(item));\r\n }\r\n recyclerView.getAdapter().notifyDataSetChanged();\r\n\r\n\r\n }",
"@Override // see item.java\n\tpublic void useItem() {\n\n\t}",
"List<Item> getItems(IDAOSession session);",
"public Item[] getItems()\n {\n return items;\n }",
"Items(){\n}",
"public DesktopClient printItemList() {\n String uri = \"http://localhost:8080/api/items\";\n RestTemplate restTemplate = new RestTemplate();\n ResponseEntity<Item[]> result = restTemplate.getForEntity(uri, Item[].class);\n Item[] items = result.getBody();\n List<Item> itemList = new ArrayList<>();\n if (items != null) {\n itemList.addAll(Arrays.asList(items));\n\n for (Item item :\n itemList) {\n System.out.println(item.toString());\n }\n } else {\n System.out.println(\"Didn't get items.\");\n }\n\n return this;\n }",
"public UserItem getUserItemByIds(UserItem ui);",
"void syncItem() {\n\t\t\n\t\t\n\t\tHashMap<String, String> hm = new HashMap<String, String>();\n\t\thm.put(\"id\", \"2\");\n\t\thm.put(\"name\", \"食品\");\n\t\thm.put(\"test\", \"测试\");\n\t\t\n\t\tList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();\n\t\tlist.add(hm);\n\t\tString xml = getSyncXML(\"item\", list);\n\t\tSystem.out.println(xml);\n\t\tsendXMLToServer4Sync(xml);\n\t}",
"@Override\n public void takeOrder(List<Item> restItem, int constID) {\n\n }",
"public static List<Item> getItems() {\n\n HttpRequest request = HttpRequest.newBuilder().GET().uri(URI.create(\"http://localhost:8080/item/all\")).setHeader(\"Cookie\", Authenticator.SESSION_COOKIE).build();\n HttpResponse<String> response = null;\n try {\n response = client.send(request, HttpResponse.BodyHandlers.ofString());\n } catch (Exception e) {\n e.printStackTrace();\n //return \"Communication with server failed\";\n }\n if (response.statusCode() != 200) {\n System.out.println(\"Status: \" + response.statusCode());\n }\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.registerModule(new JavaTimeModule());\n List<Item> items = null;\n // TODO handle exception\n try {\n items = mapper.readValue(response.body(), new TypeReference<List<Item>>(){});\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return items;\n }",
"public List<Item> getAllItemsAvailable();",
"@RequestMapping(value = \"/items\", method = RequestMethod.GET)\n public ItemResponse getAllReceipts() {\n\n List items = itemsDBService.getItems();\n List itemNew = new ArrayList();\n for (Object i : items) {\n ItemEntity ie = (ItemEntity) i;\n itemNew.add(Item.builder().itemNumber(ie.getItemNumber())\n .itemUnitCount(ie.getItemUnitCount())\n .itemName(ie.getItemName())\n .itemPrice(ie.getItemPrice())\n .itemUnitPrice(ie.getItemUnitPrice())\n .itemCategory(ie.getItemCategory())\n .itemDiscount(ie.getItemDiscount())\n .itemWarantyEndDate(ie.getItemWarantyEndDate())\n .itemTypeCode(ie.getItemTypeCode())\n .build()\n );\n }\n return ItemResponse.builder().items(itemNew).build();\n }",
"public Item getItem() { \n return myItem;\n }",
"@Test\n public void getAllItem() {\n Item item1 = new Item();\n item1.setName(\"Drill\");\n item1.setDescription(\"Power Tool\");\n item1.setDaily_rate(new BigDecimal(\"24.99\"));\n item1 = service.saveItem(item1);\n\n // Add an Item to the mock database using the Item API method (item2)\n Item item2 = new Item();\n item2.setName(\"Screwdriver\");\n item2.setDescription(\"Hand Tool\");\n item2.setDaily_rate(new BigDecimal(\"4.99\"));\n item2 = service.saveItem(item2);\n\n // Add all the Item's in the mock database to a list of Items using the Item API method\n List<Item> itemList = service.findAllItems();\n\n // Test the getAllItem() API method\n TestCase.assertEquals(2, itemList.size());\n TestCase.assertEquals(item1, itemList.get(0));\n TestCase.assertEquals(item2, itemList.get(1));\n }",
"public static void items(){\n\t\ttry{\n\t\t\tConnection conn = DriverManager.getConnection(url,username,password);\n\t\t\tStatement query = conn.createStatement();\n\t\t\tResultSet re = query.executeQuery(\"select * from item\");\n\t\t\tString spc = \" \";\n\t\t\twhile (re.next()){\n\t\t\t\tSystem.out.println(re.getInt(\"itemid\")+spc+re.getString(\"title\")+spc+re.getDouble(\"price\"));\n\t\t\t}\n\t\t}catch(Exception ecx){\n\t\t\tecx.printStackTrace();\n\t\t}\n\t}",
"public interface Item {\n \n /**\n * Returns the name of the item\n * @return \n */\n public String getName();\n \n /**\n * Returns the price of the item\n * @return \n */\n public double getPrice();\n \n /**\n * Returns the # of the items\n * @return \n */\n public int getQuantity();\n /**\n * Returns the item type\n * @return ItemCategory\n */\n public ItemCategory getCategory();\n}",
"public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }",
"public void setItems(String items)\n {\n _items = items;\n }",
"private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }",
"Items(){\r\n\t\tname=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//Parts to the vaccine[1-3]\r\n\t\t\t\t\"Mysterious Vial\", \"Piece of alien meteorite\",\"Alien X\",\r\n\t\t\t\t//Keys[4-6]\r\n\t\t\t\t\"Mysterious Key\",\"Office Key\",\"Captian's Key\",\r\n\t\t\t\t//suit[7,8]\r\n\t\t\t\t\"Hazmat Suit\",\"Gas Mask\",\r\n\t\t\t\t//vials[9-11]\r\n\t\t\t\t\"Blue Vial\",\"Pink Vial\", \"Gold Vial\",\r\n\t\t\t\t//other[12,13]\r\n\t\t\t\t\"X Files\", \"Demon's Bane Flower\",\"Reinforced Armor\"\r\n\t\t};\r\n\t\tdescription=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//vaccine parts[2-4]\r\n\t\t\t\t\"A special vial coated with a mysterious substance\",\r\n\t\t\t\t\"Part of an alien meteorite that the crew excavated\",\r\n\t\t\t\t\"A powerful allergen that instantly kills one’s immune system and their whole well-being, mutating them into something inhuman\",\r\n\t\t\t\t//keys\r\n\t\t\t\t\"A metal key that must open a door\",\r\n\t\t\t\t\"Looks like a normal key\",\r\n\t\t\t\t\"A metal key used to unlock something\",\r\n\t\t\t\t//Suit\r\n\t\t\t\t\"A full-body suit designed to keep harmful toxins away from the wearer. The face mask is missing, however\",\r\n\t\t\t\t\"A mask that goes over the wearer’s head and filters out all harmful substances in the air\",\r\n\t\t\t\t//Vials\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows light blue\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows bright pink\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows golden yellow\",\r\n\t\t\t\t//other\r\n\t\t\t\t\"Recorded documentation of all experiments and research done while in space. Most importantly it contains reports on events leading up to the virus spreading throughout the ship\",\r\n\t\t\t\t\"A beautiful flower that seems to survive unattached to the ground, the veins running through its petals give a faint glow as a heavenly scent fills the room\",\r\n\t\t\t\t\"A set of fine leather armor with metal plates reinforcing vulnerable areas\"\r\n\t\t};\r\n\t}",
"@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}",
"static void addItems(int needed) {\r\n List<ConnectionReqs> reqsList = new ArrayList<>();\r\n reqsList.add(AuctionServer.reqs);\r\n Socket dBSocket = null;\r\n while(needed > 0) {\r\n Item item = null;\r\n Random random = new Random();\r\n int randInt = random.nextInt(200);\r\n DBMessage dBMessage = null;\r\n try {\r\n dBSocket = new Socket(\"localHost\", 6002);\r\n dBOut = new ObjectOutputStream(dBSocket.getOutputStream());\r\n dBOut.flush();\r\n dBIn = new ObjectInputStream(dBSocket.getInputStream());\r\n dBMessage = new DBMessage.Builder()\r\n .command(DBMessage.Command.GET)\r\n .table(DBMessage.Table.ITEM)\r\n .accountId(randInt)\r\n .build();\r\n dBOut.writeObject(dBMessage);\r\n System.out.println(\"listening...\");\r\n DBMessage response = (DBMessage) dBIn.readObject();\r\n item = (Item) response.getPayload();\r\n System.out.println(item.toString());\r\n } catch (IOException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if(!auctionHistory.contains(item)) {\r\n System.out.println(dBMessage.toString());\r\n auctionList.add(item);\r\n auctionHistory.add(item);\r\n needed--;\r\n }\r\n }\r\n }",
"public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }",
"@SuppressWarnings(\"unused\")\n public Item item(final QueryContext qc) throws QueryException, IOException {\n return super.item(qc, null);\n }",
"@Test\r\n\tpublic void itemRetTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItems(SELLER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllForUser(SELLER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for seller id \" + SELLER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItemsInOrder(ORDER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) {\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotNull(tempSet[i].getId());\r\n\t\t\t\tassertNotSame(tempSet[i].getId(), 0);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}",
"public Item getItemById(Integer itemId);",
"java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> \n getItemList();",
"public Item getItems() {\n return items;\n }",
"private void queryItems() {\n int preferredPageSize = 10;\n CosmosQueryRequestOptions queryOptions = new CosmosQueryRequestOptions();\n //queryOptions.setEnableCrossPartitionQuery(true); //No longer necessary in SDK v4\n // Set populate query metrics to get metrics around query executions\n queryOptions.setQueryMetricsEnabled(true);\n\n CosmosPagedIterable<Family> familiesPagedIterable = container.queryItems(\n \"SELECT * FROM Family WHERE Family.lastName IN ('Andersen', 'Wakefield', 'Johnson')\", queryOptions, Family.class);\n\n familiesPagedIterable.iterableByPage(preferredPageSize).forEach(cosmosItemPropertiesFeedResponse -> {\n logger.info(\"Got a page of query result with \" +\n cosmosItemPropertiesFeedResponse.getResults().size() + \" items(s)\"\n + \" and request charge of \" + cosmosItemPropertiesFeedResponse.getRequestCharge());\n\n logger.info(\"Item Ids \" + cosmosItemPropertiesFeedResponse\n .getResults()\n .stream()\n .map(Family::getId)\n .collect(Collectors.toList()));\n });\n // </QueryItems>\n }",
"List<QueueItem> mo739i() throws RemoteException;",
"@Override\n public void setItemsResponse(Context context) {\n // Load string from the given all.json file.\n String jsonString = JSONUtils.loadJSONFromAsset(context, DATA_FILE_NAME);\n\n try {\n // Create JSONObject of the response.\n JSONObject jsonObject = new JSONObject(jsonString);\n\n // Retrieve \"result\" and \"data\" from the response.\n String result = jsonObject.getString(\"result\");\n\n JSONArray dataArray = jsonObject.getJSONArray(\"data\");\n List<Item> dataList = new ArrayList<>();\n\n for (int i = 0; i < dataArray.length(); ++i) {\n JSONObject object = dataArray.getJSONObject(i);\n Item item = new Item(\n object.getString(\"id\"),\n object.getString(\"name\"),\n object.getLong(\"num_likes\"),\n object.getLong(\"num_comments\"),\n object.getLong(\"price\"),\n object.getString(\"photo\"),\n object.getString(\"status\")\n );\n dataList.add(item);\n }\n\n // Instantiate the response object with the \"result\" and \"data\".\n mItemsResponse = new Response(result, dataList);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public void receiveStoryItems(String socialType, int feedType, List<StoryItemUnit> items, boolean isResponseByRefresh, boolean isFirstTimeUpdate) throws RemoteException {\n\r\n }",
"private static List<Item> getItems() {\n\t\treturn items;\n\t}",
"public interface Item {\n}",
"io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);",
"public void addItems(ResultItem rItem) {\r\n\t\titems.add(rItem);\r\n\t}",
"private void additems() {\n MaVolleyRequest.getInstance(getApplicationContext()).GetMethodRequest(getLink(), null, new VolleyRequestOnResultListener() {\n @Override\n public void onSucces(String result) {\n Log.d(\"qwerty\", getLink());\n ResearchResultBeanz item = (new Gson()).fromJson((new Gson()).fromJson(result, JsonObject.class).getAsJsonObject(\"data\"), ResearchResultBeanz.class);\n if (adapter == null) {\n adapter = new GridViewAdapter2(ImageGridViewActivity.this, Utils.fromArrayToList(item.items));\n gridView.setAdapter(adapter);\n } else {\n adapter.appendData (Utils.fromArrayToList(item.items));\n }\n flag_loading = false;\n }\n @Override\n public void onFailure(String error) {\n makeToast(\"Loading failure\");\n flag_loading = false;\n }\n });\n }",
"@Override\r\n\tpublic void onMaterialItem(HttpRequest request, MaterialItem item) {\n\r\n\t}",
"public void queryAllBuyableItems(){\r\n awsAppSyncClient.query(ListBuyableItemsQuery.builder().build())\r\n .responseFetcher(AppSyncResponseFetchers.CACHE_AND_NETWORK)\r\n .enqueue(getAllBuyableItemsCallback);\r\n }",
"public List<Item> getItemList();",
"public com.rpg.framework.database.Protocol.Item.Builder addItemsBuilder() {\n return getItemsFieldBuilder().addBuilder(\n com.rpg.framework.database.Protocol.Item.getDefaultInstance());\n }",
"java.lang.String getQueryItems(int index);",
"@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(\"Item{\");\n sb.append(\"id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", listId=\").append(listId);\n sb.append(\", positionIndex=\").append(positionIndex);\n sb.append(\", title='\").append(title).append('\\'');\n sb.append(\", body='\").append(body).append('\\'');\n sb.append('}');\n return sb.toString();\n }",
"public Object get(String itemName);",
"public String getAllItems(String name){\n return \"\";\n }",
"@RequestMapping(method=RequestMethod.GET, value = \"/item\", produces = \"application/json\")\n public List<Item> getItems()\n {\n return this.itemRepository.getItems();\n }",
"private void grabItem(String item)//Made by Justin\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n player.inventoryAdd(itemFound, currentRoom);\n }\n }",
"public interface ItemSuitClient {\n\n public Response<List<ItemDTO>> querySuitsByItem(ItemQTO itemQTO,Long userId,String appkey);\n\n public Response<List<ItemDTO>> querySuit(ItemQTO itemQTO,Long userId,String appKey);\n\n public Response<ItemDTO> getSuit(Long sellerId,Long itemId,String appKey);\n\n public Response<Long> addRItemSuit(List<RItemSuitDTO> rItemSuitDTOList,String appKey);\n\n public Response<Long> addItemSuit(ItemDTO itemDTO,List<RItemSuitDTO> rItemSuitDTOList,String appKey);\n\n public Response<Long> disableSuit(Long sellerId,Long itemId,String appKey);\n\n public Response<ItemSuitDTO> getSuitExtraInfo(Long sellerId,Long itemId,String appKey);\n\n public Response<List<ItemSuitDTO>> queryItemSuitDiscount(ItemSuitQTO itemSuitQTO,String appKey);\n}",
"@GET\n @Path(\"itemlist\")\n @Produces(MediaType.TEXT_PLAIN)\n public String getItemList(@QueryParam(\"jsonpcallback\") String jsonpcallback) {\n return jsonpcallback + \"(\" + is.getAllItems().toJSONString() + \")\";\n }",
"@Override\n protected void executeLowLevelRequest() {\n doPutItem();\n }",
"public java.util.List<com.rpg.framework.database.Protocol.Item> getItemsList() {\n return items_;\n }",
"@Override\r\n\tpublic void receiveItems(Stanza stanza, String node, List<String> items) {\n\t\t\r\n\t}",
"private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }",
"@Override\n\tprotected DataTypes getDataType() {\n\t\treturn DataTypes.ITEM;\n\t}",
"com.rpg.framework.database.Protocol.ItemOrBuilder getItemsOrBuilder(\n int index);",
"public void invokeViewItem(String itemToSearch){\n AsyncHttpClient client = new AsyncHttpClient();\n client.setBasicAuth(globalUsername, globalPassword);\n client.get(\"http://\" + globalURL + \"/Auction_Server/items/\"+itemToSearch, new AsyncHttpResponseHandler() { // deleted params\n\n @Override\n public void onSuccess(int i, Header[] headers, byte[] bytes)\n {\n try {\n String response = new String(bytes, \"UTF-8\");\n JSONObject obj = new JSONObject(response);\n String itemId = obj.get(\"item_id\").toString();\n String itemName = obj.get(\"item_name\").toString();\n String itemCategory = obj.get(\"item_category\").toString();\n String itemDescription = obj.get(\"item_desc\").toString();\n String itemStartPrice = obj.get(\"item_start_price\").toString();\n String itemLastBidPrice = obj.get(\"item_latest_bid_price\").toString();\n String itemPictureString = \"\";\n if (!obj.isNull(\"item_picture\")) { // displaying the picture from string to byte[] to bitmap and display\n itemPictureString = obj.get(\"item_picture\").toString();\n byte[] itemPictureBytes = new BASE64Decoder().decodeBuffer(itemPictureString);\n Bitmap itemPictureBitmap = BitmapFactory.decodeByteArray(itemPictureBytes, 0, itemPictureBytes.length);\n ImageView showItemPicture = (ImageView) findViewById(R.id.viewItemImageViewId);\n showItemPicture.setImageBitmap(itemPictureBitmap);\n }\n TextView fillUserInfo = (TextView) findViewById(R.id.viewItemInfoTextViewId);\n fillUserInfo.setText(\"Item Name: \" + obj.get(\"item_name\") + \"\\nItem Description: \" + obj.get(\"item_desc\") +\n \"\\nCategory: \" + obj.get(\"item_category\") + \"\\nCurrent Bid: \" + obj.get(\"item_latest_bid_price\") +\n \"\\nStarting price: \" + obj.get(\"item_start_price\") + \"\\nNumber of Bids: \" + obj.get(\"item_num_bids\") +\n \"\\nLatest bid username: \" + obj.get(\"item_latest_bid_username\") + \"\\nLast Bid Time: \" + obj.get(\"item_latest_bid_time\").toString().substring(0,16));\n } catch (Exception e) {\n Toast.makeText(getApplicationContext(), \"Error Occured [Server's JSON response might be invalid]!\", Toast.LENGTH_LONG).show();\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int i, Header[] headers, byte[] bytes, Throwable throwable)\n {\n String response = \"\";\n try {\n response = new String(bytes, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n Toast.makeText(getApplicationContext(), response, Toast.LENGTH_LONG).show();\n }\n\n });\n }",
"private void inspectItem(String item)//Made by Lexi\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n System.out.println(\"The item is: \" + itemFound.getTitle());\n System.out.println(\"Description of the item: \" + itemFound.getDescription());\n System.out.println(\"Item Weight: \" + itemFound.getWeight());\n System.out.println(\"Room item was found in: \" + itemFound.getLocation().getTitle());\n }\n }",
"ArrayList<IItem> getItems(Position position);",
"private Item initItem() {\n String name = inputName.getText().toString();\n int quantityToBuy = -1;\n if (!inputQuantityToBuy.getText().toString().equals(\"\"))\n quantityToBuy = Integer.parseInt(inputQuantityToBuy.getText().toString());\n String units = inputUnits.getText().toString();\n double price = 0;\n if (!inputPrice.getText().toString().equals(\"\"))\n price = Double.parseDouble(inputPrice.getText().toString());\n int calories = 0;\n if (!inputCalories.getText().toString().equals(\"\"))\n calories = Integer.parseInt(inputCalories.getText().toString());\n ArrayList<String> allergies = allergyActions.getAllergies();\n return new Item(name, 0, units, quantityToBuy, 0, allergies, calories, price);\n }",
"public String getItems(String name){\n return \"\";\n }",
"protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}",
"@GET\r\n\tpublic JsonObject getItem(@QueryParam(\"id\") int id){\r\n\t\tConnection database = DBConnecter.getConnection();\r\n\t Statement stat = null;\r\n\t ResultSet rs = null;\r\n\t System.out.print(id);\r\n\t\ttry {\r\n\t\t\tItem item = null;\r\n\t\t\tstat = database.createStatement();\r\n\t\t\tString sqlQueryString = \"select * from item where idTag='\" + id+ \"';\";\r\n\t\t\trs = stat.executeQuery(sqlQueryString);\r\n\t\t\tstat.executeQuery(sqlQueryString);\r\n\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\titem = new Item(\r\n\t \t\trs.getInt(idTagString),\r\n\t \t\trs.getInt(binNumString),\r\n\t \t\trs.getString(departmentString),\r\n\t \t\trs.getString(descriptionString),\r\n\t \t\trs.getFloat(replacementCostString),\r\n\t \t\trs.getFloat(priceString),\r\n\t \t\trs.getString(dimensionsString),\r\n\t \t\trs.getInt(lengthString),\r\n\t \t\trs.getFloat(weightString),\r\n\t\t\t \trs.getString(modelNumberString),\r\n\t\t\t \trs.getInt(purchaseDateString),\r\n\t\t\t \trs.getInt(warrantyEndDateString),\r\n\t\t\t \trs.getString(categoryString)\r\n\t \t\t);\r\n\t\t\t}\r\n\t\t\tif(item != null)\r\n\t\t\t\treturn item.toJSON();\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}finally{\r\n\t\t\ttry {\r\n\t\t\t\trs.close();\r\n\t\t\t\tstat.close();\r\n\t\t\t\tdatabase.close();\r\n\t\t\t} catch (SQLException 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\t \r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public interface PIMItem {\n\n public static final int ATTR_NONE = 0;\n public static final int BINARY = 0;\n public static final int BOOLEAN = 1;\n public static final int DATE = 2;\n public static final int EXTENDED_ATTRIBUTE_MIN_VALUE = 0x1000000;\n public static final int EXTENDED_FIELD_MIN_VALUE = 0x1000000;\n public static final int INT = 3;\n public static final int STRING = 4;\n public static final int STRING_ARRAY = 5;\n\n public abstract PIMList getPIMList();\n\n public abstract void commit() throws PIMException;\n\n public abstract boolean isModified();\n\n public abstract int[] getFields();\n\n public abstract byte[] getBinary(int i, int j);\n\n public abstract void addBinary(int i, int j, byte abyte0[], int k, int l);\n\n public abstract void setBinary(int i, int j, int k, byte abyte0[], int l, int i1);\n\n public abstract long getDate(int i, int j);\n\n public abstract void addDate(int i, int j, long l);\n\n public abstract void setDate(int i, int j, int k, long l);\n\n public abstract int getInt(int i, int j);\n\n public abstract void addInt(int i, int j, int k);\n\n public abstract void setInt(int i, int j, int k, int l);\n\n public abstract String getString(int i, int j);\n\n public abstract void addString(int i, int j, String s);\n\n public abstract void setString(int i, int j, int k, String s);\n\n public abstract boolean getBoolean(int i, int j);\n\n public abstract void addBoolean(int i, int j, boolean flag);\n\n public abstract void setBoolean(int i, int j, int k, boolean flag);\n\n public abstract String[] getStringArray(int i, int j);\n\n public abstract void addStringArray(int i, int j, String as[]);\n\n public abstract void setStringArray(int i, int j, int k, String as[]);\n\n public abstract int countValues(int i);\n\n public abstract void removeValue(int i, int j);\n\n public abstract int getAttributes(int i, int j);\n\n public abstract void addToCategory(String s) throws PIMException;\n\n public abstract void removeFromCategory(String s);\n\n public abstract String[] getCategories();\n\n public abstract int maxCategories();\n}",
"private Item getNewItem(String gtin) throws IOException {\n\n\t\tlog.info(\"Getting Item with Barcode: \" + gtin);\n\t\tGson gson = new Gson();\n\t\tURL url = new URL(\"https://api.outpan.com/v2/products/\" + gtin + \"?apikey=e13a9fb0bda8684d72bc3dba1b16ae1e\");\n\n\t\tStringBuilder temp = new StringBuilder();\n\t\tScanner scanner = new Scanner(url.openStream());\n\n\t\twhile (scanner.hasNext()) {\n\t\t\ttemp.append(scanner.nextLine());\n\t\t}\n\t\tscanner.close();\n\n\t\tItem item = new Item(gson.fromJson(temp.toString(), Item.class));\n\t\t\n\t\tif (item.name != null) {\n\t\t\treturn item;\n\t\t} else {\n\t\t\tthrow new NoNameForProductException();\n\t\t}\n\t}",
"public List<Item> parseItemHierJSON(String response) {\n\n\t\tJSONObject jsonObj = new JSONObject(response.trim());\n\t\tJSONObject responseJsonObj = jsonObj.getJSONObject(\"response\");\n\t\tJSONObject outputJSON = new JSONObject();\n\t\tJSONObject ancestorOutputJSON = null, parentOutputJson = null, childOutputJSON = null, actionOutputJSON = null, parentJSON = null;\n\t\tItem itemObj = null;\n\t\tList<Item> itemsList = new ArrayList();\n\n\t\ttry {\n\t\t\tfor (Iterator keys = responseJsonObj.keys(); keys.hasNext();) {\n\t\t\t\t// getting the action\n\t\t\t\tString action = (String) keys.next();\n\n\t\t\t\tJSONObject actionJSON = (JSONObject) responseJsonObj\n\t\t\t\t\t\t.getJSONObject(action);\n\n\t\t\t\t// getting the parent\n\t\t\t\tfor (Iterator parents = actionJSON.keys(); parents.hasNext();) {\n\n\t\t\t\t\tString parentId = (String) parents.next();\n\t\t\t\t\tparentJSON = actionJSON.getJSONObject(parentId);\n\n\t\t\t\t\tJSONObject ancestorJSON = parentJSON\n\t\t\t\t\t\t\t.getJSONObject(\"ANCESTORS\");\n\t\t\t\t\tancestorOutputJSON = new JSONObject();\n\t\t\t\t\tchildOutputJSON = new JSONObject();\n\t\t\t\t\tfor (Iterator childKey = ancestorJSON.keys(); childKey\n\t\t\t\t\t\t\t.hasNext();) {\n\t\t\t\t\t\tString childKeyValue = (String) childKey.next();\n\t\t\t\t\t\tJSONObject thisObj = ancestorJSON\n\t\t\t\t\t\t\t\t.getJSONObject(childKeyValue);\n\t\t\t\t\t\titemObj = new Item();\n\t\t\t\t\t\titemObj.setParentId(parentId);\n\n\t\t\t\t\t\titemObj.setItemName(childKeyValue);\n\t\t\t\t\t\titemObj.setStatusLevel(thisObj\n\t\t\t\t\t\t\t\t.getString(\"status_level\"));\n\t\t\t\t\t\titemObj.setStatusMessage(thisObj\n\t\t\t\t\t\t\t\t.getString(\"status_message\"));\n\t\t\t\t\t\titemObj.setItemType(thisObj.getString(\"itemType\"));\n\n\t\t\t\t\t\titemsList.add(itemObj);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// }\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(\"exception parseItemHierJSON\" + ex.getMessage());\n\t\t\treturn null;\n\t\t} finally {\n\n\t\t}\n\n\t\treturn itemsList;\n\n\t}",
"public List<Item> getItems(){\n\t\treturn data;\n\t}",
"@Test\n public void getItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Copy the Item added to the mock database using the Item API method\n Item itemCopy = service.findItem(item.getItem_id());\n\n // Test the getItem() API method\n verify(itemDao, times(1)).getItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n }",
"@Override\n\t\tpublic Item read(JsonReader in) throws IOException {\n\t\t\tthrow new UnsupportedOperationException(\"Not implemented\");\n\t\t}",
"public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }",
"@Test\n public void listSingleItemTest() {\n List<Item> items = itemSrv.getAllItems();\n Assert.assertNotNull(\"List of items is null\", items);\n\n Assert.assertEquals(\"Wrong initial size of the list, should be 0\", 0, items.size());\n\n final Item item1 = new Item(\"item1\", \"item1 description\");\n Assert.assertEquals(\"Item adding failure\", ErrCode.ADD_SUCCESS, itemSrv.addItem(item1));\n items = itemSrv.getAllItems();\n\n Assert.assertEquals(\"Total item count should be 1\", 1, items.size());\n Assert.assertNotNull(\"Item retrieved is null\", items.get(0));\n }",
"public void setItems(Item items) {\n this.items = items;\n }",
"private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"@Override\n public int getItemType() {\n return ITEM_TYPE;\n }",
"public int getITEM() {\r\n return item;\r\n }",
"public ArrayList<String> readItem();",
"@Override\n\tpublic List<item> findAll() {\n\t\treturn donkyClientFeign.lista().stream().map(p -> new item(p,1)).collect(Collectors.toList());\n\t}",
"public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}",
"private void parseItems(List<FlickrPhoto> items, JSONObject jsonBody) throws IOException, JSONException {\n Gson gson = new Gson(); // got gson parsing\n JSONObject photosJsonObject =jsonBody.getJSONObject(\"photos\");\n JSONArray photosJsonArray =photosJsonObject.getJSONArray(\"photo\");\n\n for (int i = 0; i< photosJsonArray.length(); i++){\n JSONObject photoJsonObject = photosJsonArray.getJSONObject(i);\n FlickrPhoto item = gson.fromJson(photoJsonObject.toString(), FlickrPhoto.class);\n int index = item.getDescription().indexOf(getTravelTrackerSignaturePrefixStringWithNL());\n if (index < 0 ) {\n index = item.getDescription().indexOf(getTravelTrackerSignaturePrefixString());\n }\n if (index >= 0 ) {\n item.setDescription(item.getDescription().substring(0, index));\n }\n items.add(item);\n }\n }",
"Item update(Item item);",
"InventoryItem getInventoryItem();",
"public abstract void addItem(AbstractItemAPI item);",
"public interface ItemsMapper {\n List<Items> findItemsByName(QueryVo queryVo);\n Items findItemsById(Integer id);\n // 提交商品修改信息\n void updateItems(Items items);\n}",
"public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}",
"@Override\n\tpublic List<ItemBoundary> getAllItems(String userSpace, String userEmail) {\n\t\treturn items.values().stream().map(itemEntityConverter::toBoundary).collect(Collectors.toList());\n\t}",
"void onItemStored(EntityId storedItem);",
"private IItem getJSonStreamAsItem() {\n final IItem item = JSonItemReader.parseItem(getInputStream(), api.getItemDefinition());\n\n ValidatorEngine.validate(item, false);\n\n return item;\n }",
"public List<Items> getItem(String[] itm){\r\n\r\n Log.d(\"ITEM\", \"ITEM :\" +itm[0]);\r\n List<Items> items = new ArrayList<>();\r\n\r\n String myQuery = \"\";\r\n\r\n if(itm[0].contains(\"Fresh Mushrroms\")){\r\n\r\n myQuery = \t\"SELECT * FROM item WHERE fooditems LIKE '%mushr%'\";\r\n }\r\n\r\n else if(itm[0].contains(\"Garlic\")){\r\n Log.d(\"ITEM\", \"Hello\");\r\n myQuery = \t\"SELECT * FROM item WHERE fooditems LIKE '%Garlic%'\";\r\n }\r\n\r\n else\r\n myQuery = \t\"SELECT * FROM item WHERE instr(fooditems,\" + \"'\"+ itm[0]+ \"'\" + \")> 0\";\r\n\r\n Cursor cursor = mDatabase.rawQuery(myQuery, null);\r\n\r\n DBCursorWrapper wrapper = new DBCursorWrapper(cursor);\r\n\r\n try {\r\n wrapper.moveToFirst();\r\n while(wrapper.isAfterLast() == false) {\r\n Items item = wrapper.getItems();\r\n items.add(item);\r\n wrapper.moveToNext();\r\n }\r\n }\r\n finally {\r\n cursor.close();\r\n wrapper.close();\r\n }\r\n\r\n return items;\r\n\r\n }",
"void queryParseForItems() {\n\t\t// Query Parse for items and parse into arraylist\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"newItem\");\n\t\tquery.findInBackground(new FindCallback<ParseObject>() {\n\t\t\tpublic void done(List<ParseObject> newItemList, ParseException e) {\n\t\t\t\tif (e == null) {\n\t\t\t\t\tLog.i(TAG, \"Retrieved \" + newItemList.size() + \" items\");\n\t\t\t\t\t//Log.i(TAG, newItemList.toString());\n\t\t\t\t\t//Split list into seperate Parse Objects\n\t\t\t\t\tfor (ParseObject eachItem : newItemList) { \n\t\t\t\t\t\t\n\t\t\t\t\t\tString itemName = eachItem.getString(\"Name\"); \n\t\t\t\t\t\tlong itemNumber = eachItem.getLong(\"Number\");\n\t\t\t\t\t\tString itemNumberString = \"\" + itemNumber;\n\t\t\t\t\t\tString itemID = eachItem.getObjectId().toString();\n\t\t\t\t\t\tHashMap<String, String> objectMap = new HashMap<String, String>();\n\t\t\t\t\t\tobjectMap.put(\"itemName\", itemName);\n\t\t\t\t\t\tobjectMap.put(\"itemNumber\", itemNumberString);\n\t\t\t\t\t\tobjectMap.put(\"itemID\", itemID); \n\t\t\t\t\t\n\t\t\t\t\t\tparseArrayList.add(objectMap); \n\t\t\t\t\t\t//Log.i(TAG, \"Name: \" + itemName + \", Number: \" + itemNumber + \" ID: \" + itemID);\n\t\t\t\t\t} \n\t\t\t\t\t//Log.i(TAG, parseArrayList.toString());\n\t\t\t\t\tlistAdapter = new SimpleAdapter(\n\t\t\t\t\t\t\tMainActivity.this, parseArrayList,\n\t\t\t\t\t\t\tR.layout.listview_row, new String[] { \"itemName\",\n\t\t\t\t\t\t\t\t\t\"itemNumber\" }, new int[] { R.id.nameTextView,\n\t\t\t\t\t\t\t\t\tR.id.numberTextView });\n\t\t\t\t\titemListView.setAdapter(listAdapter);\n\t\t\t\t} else { \n\t\t\t\t\tLog.e(TAG, \"Error: \" + e.getMessage().toString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Add no contacts notice if there aren't any contacts for the user\n\t\t\t\tTextView noItemsNotice = (TextView) findViewById(R.id.noItemsNotice);\n\t\t\t\tif (parseArrayList.size() == 0) {\n\t\t\t\t\tnoItemsNotice.setText(\"No contacts have been added. Please select the plus button to add a contact.\");\n\t\t\t\t} else {\n\t\t\t\t\tnoItemsNotice.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public List<Item> retrieveAllItems() throws VendingMachinePersistenceException {\n loadItemFile();\n List<Item> itemList = new ArrayList<>();\n for (Item currentItem: itemMap.values()) {\n itemList.add(currentItem);\n }\n\n return itemList;\n }",
"public List<PlayerItem> getAllPlayerItemById(Player player);",
"public List<ItemDTO> getItems()\n\t{\t\n\t\tList<ItemDTO> itemsList = new ArrayList<>();\n\t\tfor (ItemData item : items) \n\t\t\titemsList.add(new ItemDTO(item.idItem,item.description,item.price,item.VAT,item.quantitySold));\t\n\t\treturn itemsList;\n\t}",
"private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}",
"public com.rpg.framework.database.Protocol.Item getItems(int index) {\n if (itemsBuilder_ == null) {\n return items_.get(index);\n } else {\n return itemsBuilder_.getMessage(index);\n }\n }",
"public InventoryItem(){\r\n this.itemName = \"TBD\";\r\n this.sku = 0;\r\n this.price = 0.0;\r\n this.quantity = 0;\r\n nItems++;\r\n }",
"public int getItemID()\n {\n return itemID;\n }",
"public void setItem(Item item) {\n this.item = item;\n }",
"public interface Item {\n\n String getName();\n\n String getDescription();\n\n int getSkill(SkillType skillType);\n\n String getSkillDescr();\n}"
] |
[
"0.6508028",
"0.64538264",
"0.64131254",
"0.6281199",
"0.6181642",
"0.6119201",
"0.6075702",
"0.60601395",
"0.6028149",
"0.6007426",
"0.6002833",
"0.5998153",
"0.59932745",
"0.59703577",
"0.5960301",
"0.5933917",
"0.59326494",
"0.5929882",
"0.5905622",
"0.5889357",
"0.58680344",
"0.58589774",
"0.58559227",
"0.5821431",
"0.582128",
"0.5805175",
"0.5786616",
"0.57747424",
"0.57741237",
"0.5761802",
"0.57600194",
"0.5755854",
"0.5752737",
"0.57516676",
"0.5743966",
"0.5734912",
"0.5732099",
"0.5718488",
"0.57184565",
"0.57095397",
"0.56870073",
"0.56711876",
"0.56686115",
"0.5638861",
"0.5633576",
"0.56310767",
"0.56276184",
"0.5626114",
"0.561652",
"0.5595374",
"0.55937016",
"0.55855507",
"0.55817264",
"0.55806506",
"0.55689776",
"0.55671823",
"0.55659974",
"0.55594075",
"0.5557574",
"0.55544025",
"0.5553361",
"0.5534115",
"0.5531793",
"0.5527564",
"0.55239886",
"0.55196255",
"0.5516693",
"0.5507129",
"0.5495198",
"0.5493855",
"0.54934794",
"0.5484108",
"0.5480954",
"0.5460072",
"0.5456839",
"0.54549706",
"0.5453526",
"0.5450532",
"0.54495376",
"0.5449307",
"0.5449219",
"0.54458684",
"0.54427516",
"0.54407924",
"0.54390305",
"0.5438099",
"0.54328835",
"0.5427795",
"0.54182756",
"0.5408716",
"0.5405002",
"0.54024845",
"0.5402077",
"0.53980124",
"0.5396223",
"0.53946155",
"0.5394601",
"0.5391555",
"0.53905314",
"0.53851837",
"0.5381948"
] |
0.0
|
-1
|
Tests whether the item is a number (integer, decimal or double).
|
public boolean isNumeric() {
return this.isInteger() || this.isDecimal() || this.isDouble();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract boolean isNumeric();",
"private boolean isNumber(Object o) {\n\t\tif(o instanceof String) return isNumber((String) o);\n\t\telse if(o instanceof Double) return true;\n\t\telse return false;\n\t}",
"public static boolean checkIfNumeric(Object toBeChecked)\r\n\t{\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble((String) toBeChecked);\r\n\t\t\treturn true;\r\n\t\t} catch (ClassCastException e) {\r\n\t\t\treturn true;\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}",
"public boolean isNumeric() {\n\t\tif (this instanceof Integer) {\n\t\t\treturn true;\n\t\t} else if (this instanceof Array) {\n\t\t\treturn ((Array) this).getElementType().isNumeric();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isNumber(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException IOError) {\n return false;\n } // catch\n return true;\n }",
"public static boolean isNumeric(Object number) {\n\t\treturn isNumericClass(number.getClass());\n\t}",
"public boolean isNumberValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_NUMBER);\n }",
"public static boolean IsNumber(double par_Number) {\n return true;\n }",
"private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}",
"public static boolean numeric(Type p) {\n\t\tif (p == Type.Char || p == Type.Int || p == Type.Float) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }",
"private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}",
"public static boolean isAllowedNumberType(Field field)\n\t{\n\t\treturn isAllowedNumberType(field.getType());\n\t}",
"private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }",
"protected boolean isNumber(String s)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDouble.parseDouble(s);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static boolean IsNumber(int par_Numer) {\n return true;\n }",
"public boolean isNumber(String in) \n\t{\n\t\ttry \n\t\t{\n\t\t\tInteger.parseInt(in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }",
"public boolean isNumber(String key)\n {\n return getDouble(key, Double.MAX_VALUE) != Double.MAX_VALUE;\n }",
"private boolean isNumber(String number){\n\t\ttry{\r\n\t\t\tFloat.parseFloat(number);\r\n\t\t}catch(Exception e){\r\n\t\t\treturn false;// if the user input is not number it throws flase\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isNumber(String text) {\n try {\n Double.parseDouble(text);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"boolean hasNumber();",
"@Test\n\tpublic void testNumberType() throws Exception {\n\t\tassertThat(0, is(0));\n\t}",
"private boolean isNumber(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumber(String val)\n {\n\t if(val == null || val.trim().isEmpty())\n\t {\n\t\t return false;\n\t }\n\t else\n\t {\n\t\t Pattern patternForNumber = Pattern.compile(\"^[+-]?(([0-9]+\\\\.?[0-9]+)|[0-9]+)\");\n\t\t return patternForNumber.matcher(val).matches();\n\t }\n }",
"public static boolean isNumberType(byte t) {\n switch (t) {\n case INTEGER: return true ;\n case LONG: return true ;\n case FLOAT: return true ;\n case DOUBLE: return true ;\n case BIGINTEGER: return true ;\n case BIGDECIMAL: return true ;\n default: return false ;\n }\n }",
"@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"public static boolean isNumberRatio(Object val) throws BaseException\n {\n \tif(val instanceof Number && (NumberUtil.toDouble(val) >= 0 && NumberUtil.toDouble(val) <= 100))\n \t{\n \t return true;\n \t}\n \treturn false;\n }",
"private static boolean isNumber( char i ) {\n\t\tif ( Character.isDigit(i) ) return true; \n\t\tthrow new IllegalArgumentException(\"The weight of the route should be a number, now it's '\"+ i +\"'\");\n\t}",
"public static void testOfDoubleNumberIsInteger(){\n\t\tSystem.out.println(\"please enter a double number: \");\n\t\tScanner scann=new Scanner(System.in);\n\t\tdouble x=scann.nextDouble();\n\t\tif(x%1==0)\n\t\t\tSystem.out.println(\"The number you have enterd it's not a double \");\n\t\telse\n\t\t\tSystem.out.println(\"The number you have entered it's double\");\n\t}",
"public boolean isNumeric() {\n\t\treturn numeric;\n\t}",
"public boolean isInteger();",
"public static boolean isNumber(String token) {\n boolean toret = true;\n\n try {\n Double.parseDouble(token);\n }\n catch(Exception e)\n {\n toret = false;\n }\n\n return toret;\n }",
"private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }",
"private static boolean isNumeric(String str) { \n\t\ttry { \n\t\t\tDouble.parseDouble(str); \n\t\t} \n\t\tcatch(NumberFormatException nfe) { \n\t\t\treturn false; \n\t\t} \n\t\treturn true; \n\t}",
"private boolean isNumber(final String number) {\n try {\n Integer.parseInt(number);\n return true;\n } catch (Exception e) {\n LOGGER.error(\"Not a number \" + number, e);\n return false;\n }\n }",
"public boolean testForNumber() throws IOException {\n int token = fTokenizer.nextToken();\n\tfTokenizer.pushBack();\n return (token == StreamTokenizer.TT_NUMBER);\n }",
"public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }",
"public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}",
"private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isnumber(char c) {\n\t\tif (c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9') {\n\t\t\treturn true;// return true if that char is number\n\t\t}\n\t\telse { //else return false\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean isNumeric(String str) {\n try {\n Double.parseDouble(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }",
"public boolean checkNumber() {\n\t\treturn true;\n\t}",
"public boolean isNumber(String str) {\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n\t}",
"boolean isNumeric() {\r\n\t\treturn isNumeric;\r\n\t}",
"protected boolean isNumeric(final String id) {\n\t\tfinal NumberFormat formatter = NumberFormat.getInstance();\n\t\tfinal ParsePosition pos = new ParsePosition(0);\n\t\tformatter.parse(id, pos);\n\t\treturn id.length() == pos.getIndex();\n\t}",
"public static boolean IsNumber(String par_Number) {\n\n java.util.regex.Pattern p = java.util.regex.Pattern.compile(\"^\\\\-?\\\\d*.?\\\\d+$\");\n java.util.regex.Matcher m = p.matcher(par_Number);\n\n return m.matches() || IsInteger(par_Number);\n }",
"public boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"private static boolean isNumeric(String str)\n\t{\n\t\ttry\n\t\t{\n\t\t\tdouble d = Double.parseDouble(str);\n\t\t}\n\t\tcatch (NumberFormatException nfe)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public boolean isNumeric(String str){\r\n\t Pattern pattern = Pattern.compile(\"[0-9]*\");\r\n\t return pattern.matcher(str).matches(); \r\n\t}",
"public static boolean isNumeric(String num) {\n\t\ttry {\n\t\t\tdouble d = Double.parseDouble(num);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumeric(String value) {\n // Procedimiento para monitorear e informar sobre la excepcion\n try {\n //Se realiza asignacion de dato numerico\n Float.parseFloat(value);\n return true;\n\n }\n //Mostrar mensaje de error\n catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null,Constantes.TXT_Msg_Error,\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n\n return false;\n\n }\n\n }",
"public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r\n\t\t\r\n\t\treturn true; \r\n\t}",
"public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }",
"public boolean isNumber(String sIn)\r\n {\r\n int parseNumber = -1;\r\n \r\n try{\r\n parseNumber = Integer.parseInt(sIn);\r\n }catch(Exception e){\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"private static boolean checkIfIsDouble(String num) {\n try {\n Double.parseDouble(num);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"public static boolean isNumber(String input) {\n boolean hasDecimal = false;\n for (int i = 0; i < input.length(); i++) {\n char test = input.charAt(i);\n if (test == '-' && i == 0)\n continue; // Allow negative indicator.\n\n if (test == '.') {\n if (!hasDecimal) {\n hasDecimal = true;\n continue;\n } else {\n return false; // Multiple decimal = invalid number.\n }\n }\n\n if (!Character.isDigit(test))\n return false; // Character isn't a digit, so it can't be a number.\n }\n\n return true;\n }",
"public boolean isNum(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif ((int) c > 47 && (int) c < 58)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isNumeric(String input) {\n\t\ttry {\n\t\t\tInteger.parseInt(input);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\t// string is not numeric\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isInteger() {\n try {\n Integer.parseInt(txt.getText());\n return true;\n } catch (Exception e) {\n return error(\"El valor debe ser un numero entero!\");\n }\n }",
"public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public default boolean hasNumber() {\n\t\treturn false;\n\t}",
"public void handleNumbers() {\n // TODO handle \"one\", \"two\", \"three\", etc.\n }",
"private boolean isNumerico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n Integer d = Integer.parseInt(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean isNumeric(String str) {\n try {\n Integer d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"boolean isNumber(Formula pTt);",
"boolean isInt(TextField input);",
"public static boolean isNumberPositive(Object val) throws BaseException\n{\n\tif(val instanceof Number && NumberUtil.toDouble(val) > 0 )\n\t{\n\t return true;\n\t}\n\treturn false;\n}",
"public boolean areNumeric(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }//if exactly one is an alias, get it's underlying type \n// else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) \n//\t\t\t\t|| !(typeone instanceof AliasType) && typetwo instanceof AliasType ) {\n//\ttypeone = removeAlias(typeone);\n//\ttypetwo = removeAlias(typetwo);\n//}\n \t\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }",
"private boolean isValidNumber(String quantity) {\n\t\ttry{\n\t\t\tint value=Integer.parseInt(quantity);\n\t\t\treturn value>0? true: false;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isNumeric(String strNum) {\r\n if (strNum == null) {\r\n return true;\r\n }\r\n try {\r\n Integer.parseInt(strNum);\r\n } catch (NumberFormatException nfe) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public static void checkNumber(List<Token> token) {\r\n\t\tfor (Token tk : token) {\r\n\t\t\tif (tk.getName().matches(\"^\\\\d+$\")) {\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.NUMBER));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean isInteger(String element) {\r\n try {\r\n Integer.valueOf(element);\r\n } catch (NumberFormatException e) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public JsonParser.NumberType numberType() {\n // most types non-numeric, so:\n return null;\n }",
"public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }",
"public static boolean isNumericInternational(String str)\n {\n try\n {\n double d = Double.parseDouble(str);\n }\n catch(NumberFormatException nfe)\n {\n return false;\n }\n return true;\n }",
"public static boolean isDigits(String value) {\n return value.matches(\"[0-9]+\");\n }",
"public static boolean isNumber(char n) {\r\n\t\treturn (n >= '0' && n <= '9');\r\n\t}",
"public static boolean isNumericString(String value) {\n\t try {\n\t\t if (Double.parseDouble(value) > 0) {\n\t\t return true;\n\t\t }\n\t } catch (NumberFormatException nfe) {\n\t return false;\n\t }\n\t return false;\n\t}",
"public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }",
"public static boolean IsNumber(long par_Number) {\n return true;\n }",
"public static boolean isNumericRegex(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }",
"@Override\n public abstract JsonParser.NumberType numberType();",
"private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"private void handleNumber() {\n while (isDigit(peek())) {\n advance();\n }\n\n // Look for decimals; Will be allowing extension calls like 140.abs() so make sure it's a numerical decimal\n if (peek() == '.' && isDigit(peekFurther(1))) {\n\n // Consume the decimal\n advance();\n\n // Consume the digits following the decimal\n while (isDigit(peek())) {\n advance();\n }\n }\n\n addToken(NUMBER, Double.parseDouble(source.substring(start, current)));\n }",
"public static boolean isNumber(String str){\n return str != null && numberPattern.matcher(str).matches();\n }",
"public boolean isInt() {\n return this.data instanceof Integer;\n }",
"private boolean isFieldNumeric( String fsComponent, String fsField )\n {\n try\n {\n VSMetaQuery loVsmq =\n AMSDataObject.constructMetaQueryFromMetaInfoTable( fsComponent, getSession() ) ;\n\n VSMetaColumn loColumn = loVsmq.getMetaColumn( fsField ) ;\n\n /*\n * Versata returns true if the data type is Yes/No\n * In that case we return false\n */\n if ( loColumn.getColumnType() == DataConst.BIT )\n {\n return false ;\n } /* end if ( loColumn.getColumnType() == DataConst.BIT ) */\n else\n {\n return loColumn.isNumberType() ;\n } /* end else */\n } /* end try */\n catch ( Exception loEx )\n {\n return false ;\n } /* end catch */\n }",
"private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }",
"public static boolean isNumeric(char c)\n\t{\n\t\tif (c >= '0' && c <= '9')\n\t\t\treturn true;\n\t\telse if (c == '.')\n\t\t\treturn true;\n\t\telse if (c == '-')\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}"
] |
[
"0.7089525",
"0.6887847",
"0.6839781",
"0.68282443",
"0.6805865",
"0.6779739",
"0.67441714",
"0.67026573",
"0.66474074",
"0.6592061",
"0.6404613",
"0.63948876",
"0.63806826",
"0.63651884",
"0.63094544",
"0.62973064",
"0.62890166",
"0.6280473",
"0.6280013",
"0.62680787",
"0.6264778",
"0.6246495",
"0.6224547",
"0.6220181",
"0.6215861",
"0.6207473",
"0.6204522",
"0.6200112",
"0.6194954",
"0.6189806",
"0.61601585",
"0.61455697",
"0.6138847",
"0.6123058",
"0.61212736",
"0.61172825",
"0.61167425",
"0.6113937",
"0.6071139",
"0.6069157",
"0.60173535",
"0.6016427",
"0.60090756",
"0.60065085",
"0.59927714",
"0.59865993",
"0.598457",
"0.59811914",
"0.59784454",
"0.5972937",
"0.59624124",
"0.59593177",
"0.5948399",
"0.59468865",
"0.59394306",
"0.5939046",
"0.5936919",
"0.5933486",
"0.59226406",
"0.5920739",
"0.59078467",
"0.590517",
"0.58673763",
"0.58541775",
"0.58522546",
"0.5848084",
"0.5845632",
"0.58086187",
"0.58016694",
"0.57996607",
"0.5789068",
"0.57782805",
"0.5771992",
"0.57676667",
"0.57591903",
"0.57562846",
"0.57501966",
"0.57428116",
"0.5715698",
"0.5708907",
"0.5708776",
"0.56995195",
"0.5696454",
"0.5695343",
"0.5666465",
"0.56531155",
"0.5647381",
"0.5646799",
"0.5636453",
"0.5630297",
"0.56283337",
"0.56256896",
"0.5624186",
"0.56234086",
"0.56231856",
"0.56203794",
"0.56028426",
"0.5600071",
"0.5586502",
"0.55839914"
] |
0.7067635
|
1
|
Casts the item to a double value.
|
public double castToDoubleValue() {
throw new IteratorFlowException("Cannot call castToDouble on non numeric");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"public Double getAsDouble(String itemName, Double defaultValue);",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default double asDouble() {\n \n return notSupportedCast(BasicTypeID.DOUBLE);\n }",
"Double getDoubleValue();",
"public double doubleValue() {\n return (double) value;\n }",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}",
"public abstract Double toDouble(T t);",
"public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }",
"public double doubleValue() {\n if (originalValue instanceof Double) {\n return (Double) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).doubleValue();\n } else if (originalValue instanceof String) {\n try {\n return Double.parseDouble((String) originalValue);\n } catch (NumberFormatException e) {\n throw new CellValueCastException(e);\n }\n } else {\n throw new CellValueCastException();\n }\n }",
"public double doubleValue() {\r\n return (double) intValue();\r\n }",
"public double doubleValue() {\n return (double) m_value;\n }",
"public Double toDouble() {\n\t\treturn this.getValue().doubleValue();\n\t}",
"@Override\n public Double value(TypeOfValue value);",
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public double getDouble(int pos) {\n return Tuples.toDouble(getObject(pos));\n }",
"double getDouble(String key) throws KeyValueStoreException;",
"public Double getDouble(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).doubleValue();\n }",
"private double convertDouble()\n\t{\n\t\tString val = tokens[10];\n\t\tdouble value = 0.0;\n\t\ttry {\n\t\t\tvalue = Double.parseDouble(tokens[10]);\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\tSystem.err.print(\"\");\n\t\t}\n\t\treturn value;\n\t}",
"public double getDouble(String key) {\n\t\treturn Double.parseDouble(get(key));\n\t}",
"public double doubleValue() {\n\t\treturn mDouble;\n\t}",
"public double getDoubleValue() {\n\t\treturn value;\r\n\t}",
"@Override\n public Class getValueType() {\n return Double.class;\n }",
"public Double getDouble(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tDouble result = PrimitiveDataTypeConvertor.toDouble(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Double\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public double getDoubleValue() {\n if (getValueIndex() <= 0)\n return 0D;\n return ((DoubleEntry) getPool().getEntry(getValueIndex())).getValue();\n }",
"public Double getDouble(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.DOUBLE)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Double.class);\n\t\treturn (Double)value.value;\n\t}",
"public double toDouble() {\n return this.toDoubleArray()[0];\n }",
"public double getDouble(String key)\n {\n return getDouble(key, 0);\n }",
"public double doubleValue(final int i) {\n if (!isInteger(i)) {\n return Float.intBitsToFloat((int) values[i]);\n }\n throw new ClassCastException(\"value #\" + i + \" is not a float in \" + this);\n }",
"public Double getDoubleAttribute();",
"Double getValue();",
"public abstract double readAsDbl(int offset);",
"public static double getDoubleProperty(String key) {\r\n\t\treturn getDoubleProperty(key, 0);\r\n\t}",
"public double getConvertedValue() {\n return value;\n }",
"public static double getDouble(Key key) {\n return getDouble(key, 0);\n }",
"public double getDouble();",
"public static Double toDouble(Object value) {\n if (value instanceof Integer)\n return (double)(int)(Integer)value;\n else if (value instanceof Long)\n return (double)(long)(Long)value;\n else if (value instanceof Double)\n return (Double)value;\n else if (value == null)\n return null;\n else\n throw new RuntimeException(\"Can't convert [\" + value + \"] to Double\");\n }",
"private double convertToDbl(Object a) {\n double result = 0;\n\n //If the object is a Character...\n if(a instanceof Character){\n char x = (Character)a;\n result = (double)(x - '0'); // -'0' as it will convert the ascii number (e.g 4 is 52 in ascii) to the standard number\n }\n\n //If it is a Double...\n else if(a instanceof Double){\n result = (Double)a;\n }\n\n return result;\n }",
"public double doubleValue() {\n return this.value;\n }",
"public\n double getProperty_double(String key)\n {\n if (key == null)\n return 0.0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0.0;\n\n double ret_double = 0.0;\n try\n {\n Double workdouble = new Double(val);\n ret_double = workdouble.doubleValue();\n }\n catch(NumberFormatException e)\n {\n ret_double = 0.0;\n }\n\n return ret_double;\n }",
"private double getDoubleAttribute(Element element, String attributeName)\n {\n try\n {\n return Double.parseDouble(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"private double getDoubleValue(Element element, String tagName)\n {\n try\n {\n return Double.parseDouble(getValue(element,tagName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"public double fieldValuetoDouble() {\n return Double.parseDouble(this.TF_Field_Value); // This just might throw and Exception. \n }",
"public double toDouble(String stringItem) {\n Float floatItem = (float) 0.0;\n try {\n floatItem = Float.valueOf(stringItem);\n } // try\n catch (NumberFormatException ioError) {\n System.out.print(\"Error converting \" + stringItem);\n System.out.print(\" to a floating point number::\");\n System.out.println(\" Termio.ToDouble method.\");\n } // catch\n return floatItem.doubleValue();\n }",
"double getDoubleValue2();",
"@Override\n public Double getDoubleValue()\n {\n return aggVal;\n }",
"@Override\r\n\tpublic double getDouble(int pos) {\n\t\treturn buffer.getDouble(pos);\r\n\t}",
"public static double getDouble(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Double.parseDouble(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as a double.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public Double getDouble(JSONValue val , String key){\r\n\t\tif ( val==null||key==null || key.length()==0)\r\n\t\t\treturn null ; \r\n\t\tJSONObject obj=val.isObject() ; \r\n\t\tif ( obj==null )\r\n\t\t\treturn null ; \r\n\t\tif (!obj.containsKey(key))\r\n\t\t\treturn null; \r\n\t\tJSONValue actualVal = obj.get(key);\r\n\t\tif ( actualVal.isNull() !=null)\r\n\t\t\treturn null ; \r\n\t\tif ( actualVal.isNumber() !=null)\r\n\t\t\treturn actualVal.isNumber().doubleValue();\r\n\t\treturn null ; \r\n\t}",
"@Test\n\tpublic void test_TCM__double_getDoubleValue() {\n\t\tAttribute attr = new Attribute(\"test\", \"11111111111111\");\n\t\ttry {\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == 11111111111111d );\n\n\t\t\tattr.setValue(\"0\");\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == 0 );\n\n\t\t\tattr.setValue(Double.toString(java.lang.Double.MAX_VALUE));\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == java.lang.Double.MAX_VALUE);\n\n\t\t\tattr.setValue(Double.toString(java.lang.Double.MIN_VALUE));\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == java.lang.Double.MIN_VALUE);\n\n\t\t} catch (DataConversionException e) {\n\t\t\tfail(\"couldn't convert boolean value\");\n\t\t}\n\n\t\ttry {\n\t\t\tattr.setValue(\"foo\");\n\t\t\tfail(\"incorrectly returned double from non double value\" + attr.getDoubleValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\n\t}",
"public double getValue()\r\n\t{\r\n\t\treturn (double) value;\r\n\t}",
"public Double getDouble(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).doubleValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null) {\n return Double.parseDouble(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }",
"@Deprecated\r\n @Override\r\n public double toDouble(Double value) {\r\n return checkNotNull(value, \"Value must not be null.\");\r\n }",
"public abstract T fromDouble(Double d);",
"protected final Double getDouble(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getDouble(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"public double getAsDouble(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return ((long[])data)[index];\n case TIFFTag.TIFF_FLOAT:\n return ((float[])data)[index];\n case TIFFTag.TIFF_DOUBLE:\n return ((double[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (double)ivalue[0]/ivalue[1];\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (double)lvalue[0]/lvalue[1];\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }",
"private double getDoubleAttribute(Element element, String tagName, String attributeName)\n {\n try\n {\n return Double.parseDouble(getAttribute(element,tagName,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"public Double getDouble(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Double) extGet(key);\n\t}",
"public List<Double> getAsDoubleList(String itemName, List<Double> defaultValue);",
"public double value()\n\t{\n\t\treturn _dblValue;\n\t}",
"@Override\r\n public double doubleValue() {\r\n return this.m_current;\r\n }",
"public double getDouble(int columnIndex) throws SQLException\n {\n return m_rs.getDouble(columnIndex);\n }",
"public double getDouble(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getDouble\", columnIndex);\n return get(columnIndex).getDouble();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n\tpublic void setValue(final Attribute att, final double value) {\n\n\t}",
"public double value(){\n\t return (double) this.f;\n }",
"public abstract double getasDouble(int tuple, int val);",
"@Deprecated\r\n @Override\r\n public Double fromDouble(double value) {\r\n return value;\r\n }",
"public static double getDouble() throws Exception {\n return getDouble(null);\n }",
"public double doubleValue();",
"public abstract Double getDataValue();",
"public abstract void writeAsDbl(int offset, double d);",
"void setDouble(String key, double val);",
"public double getDoubleValue() {\n\t\treturn Double.parseDouble(userInput);\n\t}",
"public static Double getDouble(TextView view) {\n Double result;\n if (!isEmpty(view)) {\n try {\n result = Double.parseDouble(getString(view));\n } catch (Exception e) {\n result = null;\n }\n } else {\n result = null;\n }\n return result;\n }",
"public Double getDouble(double defaultVal) {\n return get(ContentType.DoubleType, defaultVal);\n }",
"public double evaluateAsDouble();",
"public BigDecimal castToDecimalValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }",
"double getDouble(String key, double defaultValue);",
"public abstract double read_double();",
"public Double D(String key) throws AgentBuilderRuntimeException {\n\t\treturn getDouble(key);\n\t}",
"double getDouble(String key) {\n double value = 0.0;\n try {\n value = mConfigurations.getDouble(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving double from JSONObject. @ \" + key);\n }\n return value;\n }",
"public static double getDoubleValue(Node node, String attrName, double defaultValue) {\r\n String value = getValue(node, attrName, null);\r\n\r\n if (value == null)\r\n return defaultValue;\r\n\r\n try {\r\n return Double.valueOf(value);\r\n } catch (NumberFormatException e) {\r\n return defaultValue;\r\n }\r\n }",
"public static double leerDouble() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public Double getDouble(String propertyName) {\n if (this.has(propertyName) && !this.propertyBag.isNull(propertyName)) {\n return new Double(this.propertyBag.getDouble(propertyName));\n } else {\n return null;\n }\n }",
"public double toDouble() {\n/* */ try {\n/* 813 */ return Double.valueOf(this.m_str).doubleValue();\n/* */ }\n/* 815 */ catch (NumberFormatException nfe) {\n/* */ \n/* 817 */ return Double.NaN;\n/* */ } \n/* */ }",
"public DoubleValue(double value) {\n this.value = value;\n }",
"public double getDouble(String name) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1D;\n }",
"public static double readDouble() {\n return Double.parseDouble(readString());\n }",
"@java.lang.Override\n public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }",
"double getDoubleValue3();",
"public MyDouble(double val) {\n this.setValue(val);\n }",
"public double getDouble(int index)\r\n/* 203: */ {\r\n/* 204:220 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 205:221 */ return super.getDouble(index);\r\n/* 206: */ }",
"double getDoubleValue1();",
"public abstract double getValue();",
"public double d(String key) throws AgentBuilderRuntimeException {\n\t\treturn getDouble(key).doubleValue();\n\t}",
"public boolean isDouble() {\n return this.data instanceof Double;\n }",
"private static Double getDoubleProperty(String key) {\n String value = PROPERTIES.getProperty(key);\n // if the key is not found, Properties will return null and we should return a default value\n if (value == null) {\n return 0.0;\n }\n return Double.parseDouble(value);\n }",
"public Double getDouble(String key, Double defaultValue);",
"public void setDoubleValue(double v)\n {\n this.setValue(String.valueOf(v));\n }"
] |
[
"0.7885966",
"0.7626753",
"0.73200345",
"0.7200356",
"0.71335614",
"0.69572717",
"0.69467497",
"0.69387144",
"0.69074446",
"0.6897423",
"0.6897254",
"0.686127",
"0.68369013",
"0.68349457",
"0.6809514",
"0.68077683",
"0.6802725",
"0.67761105",
"0.67402166",
"0.6738915",
"0.6732536",
"0.67109245",
"0.66597944",
"0.66516054",
"0.6649145",
"0.6646813",
"0.6632827",
"0.66236985",
"0.66200596",
"0.6607039",
"0.6593794",
"0.6579376",
"0.6553289",
"0.6535972",
"0.65354174",
"0.653411",
"0.65330005",
"0.652904",
"0.6519452",
"0.6507064",
"0.65042347",
"0.65018165",
"0.6500965",
"0.64989",
"0.6424695",
"0.64037836",
"0.63349813",
"0.6306414",
"0.63056314",
"0.6299535",
"0.6294788",
"0.6292971",
"0.62890846",
"0.62881845",
"0.628738",
"0.627564",
"0.6273491",
"0.6270404",
"0.6269748",
"0.62683994",
"0.6241976",
"0.6241847",
"0.62340766",
"0.6231884",
"0.6226852",
"0.6223367",
"0.62117934",
"0.6202968",
"0.6196841",
"0.6189156",
"0.6187125",
"0.6162704",
"0.6157166",
"0.6154773",
"0.6154498",
"0.6153205",
"0.61504096",
"0.6148066",
"0.614774",
"0.6136678",
"0.61353135",
"0.6125233",
"0.612326",
"0.6112874",
"0.6093289",
"0.60897833",
"0.60862666",
"0.60850465",
"0.6080273",
"0.6078735",
"0.6076192",
"0.6072773",
"0.6029658",
"0.6026548",
"0.6014762",
"0.6004416",
"0.5999956",
"0.5998011",
"0.5997481",
"0.5983401"
] |
0.7438965
|
2
|
Casts the item to a decimal value.
|
public BigDecimal castToDecimalValue() {
throw new IteratorFlowException("Cannot call castToDouble on non numeric");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public BigDecimal getDecimalValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a big decimal.\");\n }",
"public Decimal toDecimalForm() {\n return amount.movePoint(-2);\n }",
"private static BigDecimal arrayNodeItemAsDecimal(ArrayNode arrayNode, int index) {\n if (arrayNode == null) {\n return null;\n }\n JsonNode itemNode = arrayNode.get(index);\n if (itemNode == null) {\n return null;\n }\n return new BigDecimal(itemNode.asText());\n }",
"Money getItemValue();",
"public Double getAsDouble(String itemName, Double defaultValue);",
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"public AmountType getItemPrice() {\n\t return this.itemPrice;\n\t}",
"public float getAsFloat(){\n return (new Float(getAsCents()) / 100);\n }",
"public org.xmlsoap.schemas.soap.encoding.Decimal getDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.xmlsoap.schemas.soap.encoding.Decimal target = null;\r\n target = (org.xmlsoap.schemas.soap.encoding.Decimal)get_store().find_element_user(DECIMAL$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public java.math.BigDecimal getITEM_AMOUNT() {\r\n return ITEM_AMOUNT;\r\n }",
"protected Double getItemPrice() {\n return itemPrice;\n }",
"protected String getFormattedItemPrice() {\n return formattedItemPrice;\n }",
"public double getItemPrice(){\n\t\t\t String priceStr;\n\t\t\t double price;\n\t\t\t String elemVal = driver.findElement(productPrice).getText();\n\t Reporter.log(\"==========Item Price is \" + elemVal + \"=======\", true);\n\t priceStr = elemVal.substring(1, elemVal.length());\n\t //return double as it is a price\n\t price = Double.parseDouble(priceStr);\n\t return price;\n\t }",
"public ArrowBuf getDecimal(int columnIndex) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"BigDecimal getValue();",
"private double getDoubleFromDECIMAL(int column) {\n return Decimal.getDouble(dataBuffer_,\n columnDataPosition_[column - 1],\n getColumnPrecision(column - 1),\n getColumnScale(column - 1));\n }",
"public double getConvertedValue() {\n return value;\n }",
"public java.math.BigDecimal getBigDecimal(String attr) {\n return (java.math.BigDecimal) super.get(attr);\n }",
"public BigDecimal getPriceActual();",
"public float getItemPrice()\n\t{\n\t\treturn itemPrice;\n\t}",
"public SimpleIntegerProperty decimalsProperty() {\n return this.converter.decimalsProperty();\n }",
"public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }",
"private final BigDecimal get_DECIMAL(int column) {\n return Decimal.getBigDecimal(dataBuffer_,\n columnDataPosition_[column - 1],\n getColumnPrecision(column - 1),\n getColumnScale(column - 1));\n }",
"BigDecimal getPrice();",
"public ArrowBuf getDecimal(String columnName) {\n DecimalVector vector = (DecimalVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public double castToDoubleValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }",
"public String addDecimal();",
"public BigDecimal getDecimalObj(int columnIndex) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n return vector.getObject(rowNumber);\n }",
"private static BigDecimal nextNodeAsDecimal(Iterator<JsonNode> iterator) {\n if (iterator == null || !iterator.hasNext()) {\n return null;\n }\n return new BigDecimal(iterator.next().textValue());\n }",
"public static double getDecimal() throws ValorInvalidoException {\n double number;\n try {\n number=Double.parseDouble(getString());\n }catch(NumberFormatException e) {\n throw new ValorInvalidoException();\n }\n return number;\n }",
"public BigDecimal getBigDecimalAttribute();",
"public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }",
"public Number getPriceVal() {\n return (Number)getAttributeInternal(PRICEVAL);\n }",
"public void setPrice(float itemPrice) \n {\n price = itemPrice;\n }",
"public String getUnitAmountDecimal() {\n return this.unitAmountDecimal;\n }",
"@Override\n\tpublic double getItemPrice(String itemCode) {\n\n\t\treturn 100.00;\n\t}",
"public abstract DecimalDt getValueElement();",
"public BigDecimal getItemPrice(Item item) {\n\t\tif (item instanceof BarcodedItem) {\n\t\t\tBarcodedItem barcodedItem = (BarcodedItem) item;\n\t\t\tBarcode code = barcodedItem.getBarcode();\n\n\t\t\tBarcodedProduct product;\n\t\t\t// look up the price in the database\n\t\t\ttry {\n\t\t\t\tproduct = productDatabase.getProductByBarcode(code);\n\t\t\t} catch (NonexistentBarcodeException e) {\n\t\t\t\tthrow new ControlSoftwareException(\"a purchased BarcodedItem does not exist\");\n\t\t\t}\n\t\t\treturn product.getPrice().setScale(2, BigDecimal.ROUND_HALF_DOWN);\n\t\t} else if (item instanceof PLUCodedItem) {\n\t\t\tPLUCodedItem pluItem = (PLUCodedItem) item;\n\t\t\tPriceLookupCode code = pluItem.getPLUCode();\n\t\t\tPLUCodedProduct pluProduct;\n\t\t\tBigDecimal itemWeight;\n\t\t\ttry {\n\t\t\t\tpluProduct = productDatabase.getProductByPLUCode(code);\n\t\t\t} catch (NonexistentPLUCodeException e) {\n\t\t\t\tthrow new ControlSoftwareException(\"a purchased PLUCodedItem does not exist\");\n\t\t\t}\n\t\t\titemWeight = BigDecimal.valueOf(pluItem.getWeight());\n\t\t\treturn pluProduct.getPrice().multiply(itemWeight).setScale(2, BigDecimal.ROUND_HALF_DOWN);\n\t\t} else if (!(item instanceof BagItem)) {\n\t\t\t// if the item is a bag, it is the customer's bag and doesn't\n\t\t\t// cost anything\n\t\t\tthrow new ControlSoftwareException(\"Couldn't find price of item.\");\n\t\t}\n\t\treturn new BigDecimal(\"0.00\");\n\t}",
"public int getFieldDecimal()\n\t{\n\t\treturn fieldDecimal;\n\t}",
"@Override\n public float getAmount() {\n return Float.parseFloat(inputAmount.getText());\n }",
"public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}",
"public BigDecimal getConvertedProductQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedProductQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public double getDiscountedPrice(double itemPrice);",
"public void getDecimal(String columnName, NullableDecimalHolder holder) {\n DecimalVector vector = (DecimalVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"BigDecimal getAmount();",
"public int getDecimalDigits() { return 1; }",
"public int getDecimalDigits() { return 1; }",
"public BigDecimal getInvalidDecimal() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getInvalidDecimal();\n ServiceResponse<BigDecimal> response = getInvalidDecimalDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"public Double toDouble() {\n\t\treturn this.getValue().doubleValue();\n\t}",
"public BigDecimal getConvertedSplitQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedSplitQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public double getPriceForItem(Item i)\n\t{\n\t\tdouble price = 0.0;\n\t\tprice = strDAO.getPriceForStorenameAndItem(name, i);\n\t\treturn price;\t\t\t\n\t}",
"public Double getNormalizedAmount()\n {\n if (_units == null)\n return getAmount();\n\n if (_units.isCompatible(_normalizingUnits))\n return _units.convertAmount(getAmount(), _normalizingUnits);\n else\n return getAmount();\n }",
"public int getPrice()\r\n\t{\r\n\t\treturn theItem.getPrice();\r\n\t}",
"private void processNumericValues(ReportConcept entry, ConceptLabel lbl) {\n\t\tif (isNumber(entry.getConceptClass()) && !entry.getConceptEntry().hasNumericValue()) {\n\t\t\tentry.setNumericValue(TextHelper.parseDecimalValue(lbl.getText()));\n\t\t}\n\t}",
"public void getDecimal(int columnIndex, NullableDecimalHolder holder) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"@Override\r\n\tpublic Double precio() {\n\t\treturn this.combo.precio() + 50;\r\n\t}",
"public BigDecimal getConvertedShrinkQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedShrinkQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"BigDecimal getDirtyPrice();",
"public BigDecimal getPriceEntered();",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"public BigDecimal getDecimalObj(String columnName) {\n DecimalVector vector = (DecimalVector) table.getVector(columnName);\n return vector.getObject(rowNumber);\n }",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"public BigDecimal getAMOUNT() {\r\n return AMOUNT;\r\n }",
"public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }",
"private double convertToDbl(Object a) {\n double result = 0;\n\n //If the object is a Character...\n if(a instanceof Character){\n char x = (Character)a;\n result = (double)(x - '0'); // -'0' as it will convert the ascii number (e.g 4 is 52 in ascii) to the standard number\n }\n\n //If it is a Double...\n else if(a instanceof Double){\n result = (Double)a;\n }\n\n return result;\n }",
"float getAmount();",
"public double doubleValue() {\r\n return (double) intValue();\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public java.math.BigDecimal getDecimal() {\n return localDecimal;\n }",
"public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }",
"public TerminalRule getDECIMALRule() {\r\n\t\treturn gaXbase.getDECIMALRule();\r\n\t}",
"public void setDecimals(int decimals) {\n this.converter.decimalsProperty().set(decimals);\n }",
"BigDecimal getTax();",
"public Float getPrice() {\r\n return price;\r\n }",
"public static double ensureDecimal(String rawValue, int place) {\r\n\t\tString returnValue = \"\";\r\n\t\tif (rawValue.indexOf(\".\") == -1) {\r\n\t\t\treturnValue = rawValue.substring(0, (place - 1)) + \".\"\r\n\t\t\t\t\t+ rawValue.substring(place - 1);\r\n\t\t\t// System.out.println(returnValue);\r\n\t\t\treturn (Double.parseDouble(returnValue));\r\n\t\t} else\r\n\t\t\treturn Double.parseDouble(rawValue);\r\n\t}",
"public double getNewPrice(CartObject item, ShoppingCartViewHolder holder) {\n double price = item.getmPrice();\n double newPrice;\n int qty = helper.getQuantityFromTable(item);\n int position = holder.getAdapterPosition();\n if (qty > 0) {\n if (qty == 1) {\n return price;\n }\n newPrice = price*qty;\n newPrice = Math.floor(newPrice * 100) / 100;\n // total += helper.getQuantityFromTable(item) * item.getmPrice();\n return newPrice;\n\n } else {\n removeByPosition(position);\n Toast.makeText(mContext, \"Adios, \" + item.getmName() + \"!\", Toast.LENGTH_SHORT).show();\n Log.d(KEY, \"quantity hit 0, removed \" + item.getmName());\n // total += helper.getQuantityFromTable(item) * item.getmPrice();\n return 0;\n }\n\n }",
"public BigDecimal getOrderItemProice() {\n return orderItemProice;\n }",
"public double value(){\n\t return (double) this.f;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public BigDecimal getPrice() {\n return price;\n }",
"public Boolean getAllowDecimals() {\r\n return this.allowDecimals = getInstanceOf(Boolean.class, this.allowDecimals);\r\n }",
"BigDecimal getAverageBuyPrice();",
"public int castToIntegerValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }",
"public DecimalStyle getDecimalStyle() {\n return decimalStyle;\n }",
"public Float getPrice() {\n return price;\n }",
"public double getAveragePricePerItem() {\n\n\t\treturn avgPricePerItem;\n\t}",
"public int toDecimal() {\n\t\tint length = data.length;\n\t\tint decimal = 0;\n\t\tfor(int i = 0;i < length;i++) {\n\t\t\tint index = length - 1 - i;\n\t\t\tint power = (int)Math.pow(2, index);\n\t\t\tdecimal = decimal + data[i] * power;\n\t\t}\n\t\treturn decimal;\n\t}",
"public BigDecimal getPriceStd();",
"@Test\n\tpublic void testSingleSetOnlyDecimal()\n\t{\n\t\tcreateSingleValueSet(1.1);\n\t\tKeyedValues actual = DataUtilities.getCumulativePercentages(m_values);\n\t\t\n\t\tassertEquals(\"Cumulative percentage of a single decimal value should be 100%.\",\n\t\t\t\t1.0, actual.getValue(0).doubleValue(), 0.0000001);\n\t}",
"public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}",
"public double valueAt(int position, String x_value) {\n double x;\n double ram;\n double value = collection.get(position).getValue(0);\n\n for (int i = 0; i < x_value.length(); i++) {\n if (x_value.charAt(i) == ',')\n x_value = x_value.substring(0, i) + \".\" + x_value.substring(i + 1);\n }\n\n try {\n x = Double.parseDouble(x_value);\n } catch (NumberFormatException e) {\n return value;\n }\n\n if (collection.get(position).getLength() > 1) {\n value += collection.get(position).getValue(1) * x;\n\n for (int i = 2; i < collection.get(position).getLength(); i++) {\n ram = x;\n for (int j = 1; j < i; j++) {\n ram *= x;\n }\n ram *= collection.get(position).getValue(i);\n value += ram;\n }\n }\n\n return value;\n }",
"@Override\n\tpublic int compareTo(@NonNull Item o) {\n\t\treturn Math.round(this.price - o.price);\n\t}",
"public BigDecimal getTaxAmtPriceStd();",
"BigDecimal getDiscount();",
"public float getSellingPrice () {\n return (float) 0.0;\n }",
"public static float getValueFloat()\n {\n return Util.valueFloat;\n }"
] |
[
"0.6654998",
"0.65204567",
"0.6351446",
"0.6113787",
"0.5870395",
"0.5842035",
"0.5836703",
"0.5832001",
"0.57388294",
"0.57374656",
"0.5713654",
"0.56733394",
"0.5671765",
"0.5668618",
"0.5642436",
"0.55879754",
"0.55830115",
"0.5579104",
"0.55702925",
"0.55348015",
"0.55224615",
"0.5508901",
"0.54980665",
"0.54931855",
"0.5491665",
"0.53739506",
"0.536744",
"0.5363221",
"0.53487587",
"0.53412575",
"0.53360236",
"0.5321984",
"0.531828",
"0.5313503",
"0.52980536",
"0.52929443",
"0.5268447",
"0.5257026",
"0.52284086",
"0.5220557",
"0.5219833",
"0.5207115",
"0.52056944",
"0.5205083",
"0.51996785",
"0.5193728",
"0.5193728",
"0.51876354",
"0.51813227",
"0.51810926",
"0.5176979",
"0.51684624",
"0.5168065",
"0.51484066",
"0.5141234",
"0.5136285",
"0.512182",
"0.5112958",
"0.51111853",
"0.5106729",
"0.5105419",
"0.51012814",
"0.5095952",
"0.50942814",
"0.50898486",
"0.50888485",
"0.5083927",
"0.50627995",
"0.50627995",
"0.5062787",
"0.5060013",
"0.50574636",
"0.50562674",
"0.50541407",
"0.50468206",
"0.5045856",
"0.5043927",
"0.5040754",
"0.5039531",
"0.5033752",
"0.5033752",
"0.5033752",
"0.5033752",
"0.5033752",
"0.5033448",
"0.5032253",
"0.5030175",
"0.5028132",
"0.5027739",
"0.5024223",
"0.50234824",
"0.50224936",
"0.50200814",
"0.5017726",
"0.5008178",
"0.50076103",
"0.5001893",
"0.49992663",
"0.49974397",
"0.49969238"
] |
0.7149804
|
0
|
Casts the item to an integer value.
|
public int castToIntegerValue() {
throw new IteratorFlowException("Cannot call castToDouble on non numeric");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getIntegerValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an integer.\");\n }",
"public int getItemIntValue(){\n return itemIntValue;\n }",
"public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default int asInt() {\n \n return notSupportedCast(BasicTypeID.INT);\n }",
"public Integer getAsInteger(String itemName, Integer defaultValue);",
"public int getIntValue() {\n return (int)getValue();\n }",
"public Integer toInteger() {\n\t\treturn this.getValue().intValue();\n\t}",
"public int toInt()\n\t{\n\t\treturn (int) toLong();\n\t}",
"public int toInteger(String stringItem) {\n Integer integerItem = 0;\n try {\n integerItem = Integer.valueOf(stringItem);\n } // try\n catch (NumberFormatException ioError) {\n System.out.print(\"Error converting \" + stringItem);\n System.out.print(\" to an integer number::\");\n System.out.println(\" Termio.ToInteger method.\");\n } // catch\n return integerItem;\n }",
"public int toInt(String entity) { return ent_2_i.get(entity); }",
"@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }",
"public int getIntValue(){\n\t\treturn value.intValue();\n\t}",
"public int intValue() {\n if (originalValue instanceof Integer) {\n return (Integer) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).intValue();\n } else if (originalValue instanceof String) {\n final String originalString = (String) this.originalValue;\n\n try {\n return Integer.parseInt(originalString);\n } catch (NumberFormatException e1) {\n try {\n return (int) Double.parseDouble(originalString);\n } catch (NumberFormatException e2) {\n // it will be more reasonable to throw an exception which\n // indicates that the conversion to int has failed\n e1.addSuppressed(e2);\n throw new CellValueCastException(e1);\n }\n }\n } else {\n throw new CellValueCastException();\n }\n }",
"Integer getValue();",
"Integer getValue();",
"IntegerValue getValueObject();",
"public static interface ToInteger<T> {\n /**\n * What integer should we use for sorting purposes for\n * the given item?\n */\n int v(T item);\n }",
"public int intValue(Map<Prop, Object> map) {\n assert type == Integer.class;\n Object o = map.get(this);\n return this.<Integer>typeValue(o);\n }",
"public int toInt() {\n return this.toIntArray()[0];\n }",
"@Override\n public int getIntValue()\n {\n return value;\n }",
"public int getValueAsIntegerValue() throws DataFieldException {\n\t\ttry {\n\t\t\treturn Integer.parseInt(this.value);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tthrow new DataFieldException(\n\t\t\t\t\t\"Couldn't parse value into an integer. Value: \"\n\t\t\t\t\t+ this.value, nfe);\n\t\t}\n\t}",
"public static int getValueInt()\n {\n return Util.valueInt;\n }",
"public int intValue()\n\t\t{\n\t\t\treturn (int) doubleValue();\n\t\t}",
"public static Integer toInteger(Object value) {\n if (value instanceof Integer)\n return (Integer)value;\n else if (value instanceof Long)\n return (int)(long)(Long)value;\n else if (value instanceof Double)\n return (int)(double)(Double)value;\n else if (value == null)\n return null;\n else\n throw new RuntimeException(\"Can't convert [\" + value + \"] to Integer\");\n }",
"@Override\n public int intValue(int numId) {\n return 0;\n }",
"public int getInteger(int pos) {\n return Tuples.toInteger(getObject(pos));\n }",
"public int intValue() {\n return value;\n }",
"public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}",
"public Integer getInt(K key) throws ClassCastException;",
"public int intValue() {\n return m_value;\n }",
"public Value(int i) {\n integer = i;\n itemClass = Integer.class;\n type = DataType.INT;\n }",
"int applyAsInt(T value);",
"public static int getValueForItem(int item) {\n\t\t\tfor (Tiara tiara : values()) {\n\t\t\t\tif (tiara.getItem() == item)\n\t\t\t\t\treturn tiara.getValue();\n\t\t\t}\n\t\t\treturn -1;\n\t\t}",
"public Integer getValue();",
"public int intValue( )\n {\n return value;\n }",
"public void setITEM(int value) {\r\n this.item = value;\r\n }",
"public int getIntValue() {\n return intValue_;\n }",
"int getIntValue();",
"public long UnSigndCatster(Object item){\n long x = Integer.toUnsignedLong((int)item);\n //String s = item.toString();\n //long x = Integer.parseUnsignedInt(s);\n return x;\n }",
"public Integer getInt(String attr) {\n return (Integer) super.get(attr);\n }",
"public int getIntValue(){\n return value;\n }",
"public int intValue() {\r\n return _value;\r\n }",
"public int getIntValue() {\n return intValue_;\n }",
"public int intValue();",
"@Override\n\tpublic Integer evaluate() {\n\t\treturn Integer.parseInt(this.getValue());\n\t}",
"private void valueOfInt(Instruction o, Type value){\n\t\tif (! value.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'value' is not of type int but of type \"+value+\".\");\n\t}",
"public void handleIntValue(int type, int val) {\n\t\t\n\t}",
"public Integer getInteger() {\r\n\t\ttype(ConfigurationItemType.INTEGER);\r\n\t\treturn integerValue;\r\n\t}",
"public int getIntegerValue() {\r\n\t\t\treturn val;\r\n\t\t}",
"public int get_int_value()\n\t{\n\t\treturn this.int_value;\n\t}",
"public int intVal() {\r\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\r\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\r\n\t\t}",
"private Integer convertSpinnerValueToInt(Object spinnerValue){\n String spinnerAsString = (String) spinnerValue;\n return Integer.parseInt(spinnerAsString);\n }",
"public int intValue() {\n\t\treturn (int) mDouble;\n\t}",
"int intValue();",
"public static Integer castInt(Object o) {\n\t\tif (o instanceof Number) {\n\t\t\treturn ((Number) o).intValue();\n\t\t}\n\n\t\treturn null;\n\t}",
"public int getIntValue()\n {\n return value;\n }",
"public int getIntValue()\n {\n return value;\n }",
"public Integer getInteger(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).intValue();\n }",
"public Integer getIntegerAttribute();",
"public static ImageItem createItem(CustomInteger tile) {\n\t\treturn new IntegerValueItem(tile);\r\n\t}",
"public static int toInt(Object holder, Object index) {\n\n\t\t// RubyArray and index id?\n\t\tif (holder instanceof RubyArray && index instanceof Integer) {\n\t\t\t// get vars\n\t\t\tRubyArray ary = (RubyArray) holder;\n\t\t\tint id = (Integer) index;\n\n\t\t\treturn Integer.valueOf(((Long) ary.get(id)).toString());\n\t\t}\n\n\t\treturn Integer.valueOf(getObj(holder, index).toString());\n\t}",
"public int cast()\n\t{\n\t\tif(value == -1)\n\t\t\tvalue = 1 + ((int) (Math.random() * sides));\n\t\t\n\t\treturn value;\n\t}",
"public int getInt()\n {\n return intValue;\n }",
"public int getInt()\n {\n return intValue;\n }",
"public final int intValue() {\n /*\n r2 = this;\n java.lang.String r0 = r2.f4032 // Catch:{ NumberFormatException -> 0x0007 }\n int r0 = java.lang.Integer.parseInt(r0) // Catch:{ NumberFormatException -> 0x0007 }\n return r0\n L_0x0007:\n java.lang.String r0 = r2.f4032 // Catch:{ NumberFormatException -> 0x000f }\n long r0 = java.lang.Long.parseLong(r0) // Catch:{ NumberFormatException -> 0x000f }\n int r1 = (int) r0\n return r1\n L_0x000f:\n java.math.BigDecimal r0 = new java.math.BigDecimal\n java.lang.String r1 = r2.f4032\n r0.<init>(r1)\n int r0 = r0.intValue()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: o.C0442.intValue():int\");\n }",
"public int getInt(){\n return new BigInteger(this.value).intValue();\n }",
"public static int toInt(IRubyObject irb) {\n\t\treturn Integer.valueOf(irb.toString());\n\t}",
"public final int getInt()\n {\n return intValue;\n }",
"@Override\r\n\tpublic Object visitIntLitExpression(IntLitExpression intLitExpression,\r\n\t\t\tObject arg) throws Exception {\r\n\t\tintLitExpression.setType(intType);\r\n\t\treturn intType;\r\n\t}",
"public Integer getIntValue() {\n\t\treturn this.intValue;\r\n\t}",
"public int getValue() {\n return intValue;\n }",
"public int getValue() {\n return intValue;\n }",
"Item convertToItem(Object value) throws XQException;",
"public int getAsInt(String key) {\n return getAsInt(key, 0);\n }",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"@Override\r\n\tpublic int getInt(int arg) {\n\t\treturn 0;\r\n\t}",
"public int getM_Inventory_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Inventory_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"@Override\n public int getValue() {\n return Integer.parseInt(gValue.getText());\n }",
"public int toInt(){\n\t\tString s = txt().trim();\n\t\tint i;\n\t\ttry{\n\t\t\ti = Integer.parseInt(s);\n\t\t}catch(NumberFormatException exp){\n\t\t\texp.printStackTrace();\n\t\t\treturn 0;\n\t\t}\n\t\treturn i;\t\n\t}",
"public int getValue();",
"public int getValue();",
"@Override\n\tpublic Integer getValue() {\n\t\treturn value;\n\t}",
"@Override\n\tpublic Integer getValue() {\n\t\treturn value;\n\t}",
"public Item evaluateItem(XPathContext context) throws XPathException {\n Item item = operand.evaluateItem(context);\n if (item==null) return null;\n return ((AtomicValue)item).convert(requiredPrimitiveType, context);\n }",
"public int getITEM() {\r\n return item;\r\n }",
"public Item convertToItem(Object value, XQItemType type) throws XQException;",
"public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}",
"@Override\r\n public Integer getValue() {\n return (Integer) this.spinner.getValue();\r\n }",
"public static int stringToInt(Object val) {\n String intStr = String.valueOf(val);\n return Integer.parseInt(intStr);\n }",
"@Override\n\tpublic String getValue() {\n\t\treturn integerLiteral;\n\t}",
"org.apache.xmlbeans.XmlInt xgetValue();",
"public int xint() {\n\t\treturn (int) x;\n\t}",
"public final int getValue() {\n return mValue;\n }",
"public int getIdAsInt(String key) {\n Object obj = ids.get(key);\n if (obj == null) {\n return 0;\n }\n if (obj instanceof Integer) {\n return (Integer) obj;\n }\n\n if (obj instanceof String) {\n try {\n return Integer.parseInt((String) obj);\n }\n catch (Exception e) {\n LOGGER.trace(\"could not parse int: {}\", e.getMessage());\n }\n }\n\n return 0;\n }",
"BigInteger getInteger() {\n\n\t\t\tif (this.type != DerParser.INTEGER) {\n\t\t\t\tthrow new IllegalStateException(String.format(\"Invalid DER: object (%d) is not integer.\", this.type));\n\t\t\t}\n\n\t\t\treturn new BigInteger(this.value);\n\t\t}",
"IntValue createIntValue();",
"IntValue createIntValue();",
"public int getAsInt(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return (int)((long[])data)[index];\n case TIFFTag.TIFF_FLOAT:\n return (int)((float[])data)[index];\n case TIFFTag.TIFF_DOUBLE:\n return (int)((double[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (int)((double)ivalue[0]/ivalue[1]);\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (int)((double)lvalue[0]/lvalue[1]);\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return (int)Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }",
"public abstract int getValue();"
] |
[
"0.7217097",
"0.6725212",
"0.67230016",
"0.6620013",
"0.653428",
"0.64781684",
"0.64675385",
"0.63833153",
"0.63824105",
"0.63774806",
"0.63280106",
"0.63228595",
"0.63040435",
"0.62921494",
"0.62921494",
"0.62918746",
"0.62571293",
"0.6188054",
"0.61787087",
"0.6157082",
"0.6147058",
"0.6127216",
"0.6114279",
"0.6109058",
"0.60700554",
"0.6041808",
"0.60310763",
"0.60295504",
"0.5998247",
"0.59854156",
"0.5970881",
"0.59702164",
"0.5969758",
"0.59404236",
"0.59372216",
"0.59365606",
"0.59224886",
"0.59151816",
"0.5903778",
"0.5903158",
"0.5900488",
"0.58887404",
"0.5886863",
"0.58661157",
"0.5838944",
"0.58187324",
"0.58145934",
"0.58079106",
"0.5794359",
"0.57883215",
"0.5780281",
"0.57790637",
"0.5775318",
"0.5773756",
"0.5770701",
"0.57560176",
"0.57560176",
"0.5753816",
"0.57497984",
"0.57191914",
"0.57159144",
"0.5712531",
"0.571233",
"0.571233",
"0.5710819",
"0.57106006",
"0.5702046",
"0.5694087",
"0.56866264",
"0.56832254",
"0.56700253",
"0.56700253",
"0.566863",
"0.5656468",
"0.5646663",
"0.5646663",
"0.56436676",
"0.56318784",
"0.5628715",
"0.56284046",
"0.5623887",
"0.5623887",
"0.55988973",
"0.55988973",
"0.5597185",
"0.55971843",
"0.559595",
"0.5595391",
"0.55940825",
"0.5589978",
"0.55724555",
"0.55640495",
"0.5562895",
"0.55517626",
"0.55486387",
"0.55380994",
"0.5529807",
"0.5529807",
"0.5526251",
"0.55261844"
] |
0.66971064
|
3
|
Returns the effective boolean value of the item, if atomic.
|
public abstract boolean getEffectiveBooleanValue();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Boolean getIsEffective() {\n return isEffective;\n }",
"public boolean getBooleanValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a boolean.\");\n }",
"public boolean getValue() {\n\t\treturn _checked;\n\t}",
"public Boolean getValue() {\n\t\treturn b;\n\t}",
"public boolean getValue();",
"public boolean isAtomic() {\n return false;\n }",
"public boolean getValue() {\r\n\t\treturn this.value;\r\n\t}",
"public Boolean getValue() {\n return value;\n }",
"boolean getValue();",
"@Override\n\tpublic boolean isAtomic() {\n\t\treturn true;\n\t}",
"boolean getBoolValue();",
"boolean getBoolValue();",
"public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }",
"com.google.protobuf.BoolValue getPersistent();",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean value() {\n return this.value;\n }",
"public Boolean value() {\n return this.value;\n }",
"public Boolean value() {\n return this.value;\n }",
"abstract public boolean getAsBoolean();",
"public Boolean getSoft() {\n return soft;\n }",
"public java.lang.Boolean value() {\n return value;\n }",
"public boolean booleanValue() {\n if (originalValue instanceof Boolean) {\n return (Boolean) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).intValue() != 0;\n } else {\n throw new CellValueCastException();\n }\n }",
"public int getTrueValue()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start getTrueValue Method ***************/\n\n // Return true value\n return trueValue;\n\n }",
"@Override\n public boolean getItemActive() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.ITEM_ACTIVE_);\n return ((Boolean)retnValue).booleanValue ();\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public boolean effectiveBooleanValue() {\r\n return value.length() > 0;\r\n }",
"@Override\n public boolean getAsBoolean() {\n return this.persistenceCheck.getAsBoolean();\n }",
"protected Boolean geBoolValue() {\n return boolValue;\n }",
"public boolean effectiveBooleanValue(XPathContext context) throws XPathException {\n ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy());\n if (type == AnyItemType.getInstance()) {\n return super.effectiveBooleanValue(context);\n } else {\n return argument[0].effectiveBooleanValue(context);\n }\n }",
"public Integer getIsUseful() {\n return isUseful;\n }",
"public boolean isNonAtomic() {\n return nonAtomic;\n }",
"public boolean isEffective() {\n return !this.isBroken() && !this.isExisted() && this.getId() < 0;\n }",
"@Accessor(qualifier = \"active\", type = Accessor.Type.GETTER)\n\tpublic Boolean getActive()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ACTIVE);\n\t}",
"public boolean getInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(INTERNAL$4, 0);\n if (target == null)\n {\n return false;\n }\n return target.getBooleanValue();\n }\n }",
"public Byte getIsActive() {\n return isActive;\n }",
"public org.hl7.fhir.Boolean getActual()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Boolean target = null;\n target = (org.hl7.fhir.Boolean)get_store().find_element_user(ACTUAL$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public Boolean getBooleanAttribute();",
"public Boolean getBooleanValue() {\n return this.booleanValue;\n }",
"@SuppressWarnings(\"restriction\")\n\tpublic boolean getNewValue() {\n\t\treturn invokeWithoutInvocationException(boolean.class, \"getNewValue\");\n\t}",
"public Boolean getBoolean() {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\treturn booleanValue;\r\n\t}",
"public RubyBoolean getTrue() {\n return trueObject;\n }",
"public Integer getIsActive() {\n return isActive;\n }",
"public boolean getBoolean();",
"public boolean isMutable() {\n return mutable;\n }",
"public boolean get(boolean a) {\n\t\treturn a;\r\n\t}",
"boolean isMutable();",
"boolean get();",
"boolean getBoolean();",
"boolean getBoolean();",
"public abstract Boolean isImportant();",
"public boolean getStatusAsBoolean() {\n return isQuarantined;\n }",
"public String getBooleanTrueValue() {\n\t\treturn ( _sBooleanTrueValue != null ? _sBooleanTrueValue : \"\" );\n\t}",
"public Boolean getActive()\r\n/* */ {\r\n/* 200 */ return this.active;\r\n/* */ }",
"public boolean getFlag() {\r\n\t\treturn (value.getInt() != 0);\r\n\t}",
"public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }",
"public Boolean booleanValue() {\n\t\tif (this.getLiteralValue() instanceof Boolean) {\n\t\t\treturn (Boolean) this.getLiteralValue();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"public Boolean getABoolean()\n {\n return aBoolean;\n }",
"public static boolean getBooleanTrue() {\n boolean returnValue = false;\n return returnValue;\n }",
"@VTID(39)\n boolean getRequireManualUpdate();",
"public Boolean getIsActiveAsBoolean() {\n if (this.isActive == null) {\n return null;\n } else if (this.isActive.toLowerCase().equals(\"true\")) {\n return true;\n } else {\n return false;\n }\n }",
"public EBooleanElements getEBooleanAccess() {\n\t\treturn pEBoolean;\n\t}",
"public boolean getEditableActualCosts()\r\n {\r\n return (m_editableActualCosts);\r\n }",
"public byte getIsApplied() {\r\n\t\treturn isApplied;\r\n\t}",
"@Override\n\tpublic boolean getSingle() {\n\t\treturn force_single;\n\t}",
"Boolean getFixedSettlement();",
"public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"public boolean isThisThingOn(){\r\n return isActive;\r\n }",
"public boolean getSpreadActualCost()\r\n {\r\n return (m_spreadActualCost);\r\n }",
"public org.apache.xmlbeans.XmlBoolean xgetEffdatedOnly()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(EFFDATEDONLY$20);\r\n }\r\n return target;\r\n }\r\n }",
"public int isActive() {\n return isActive;\n }",
"public boolean getBoolean(int index)\r\n/* 131: */ {\r\n/* 132:148 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 133:149 */ return super.getBoolean(index);\r\n/* 134: */ }",
"public Boolean getIsActive() {\r\n return isActive;\r\n }",
"public boolean get_boolean() {\n return local_boolean;\n }",
"@SuppressWarnings(\"restriction\")\n\tpublic boolean getOldValue() {\n\t\treturn invokeWithoutInvocationException(boolean.class, \"getOldValue\");\n\t}",
"public Boolean getIsActive() {\n return isActive;\n }",
"public Boolean getIsActive() {\n return isActive;\n }",
"public boolean getEffdatedOnly()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(EFFDATEDONLY$20);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }",
"public EBooleanElements getEBooleanAccess() {\n\t\treturn (pEBoolean != null) ? pEBoolean : (pEBoolean = new EBooleanElements());\n\t}",
"public Boolean getActiveFlag() {\n\t\treturn activeFlag;\n\t}",
"public Boolean getIsExclusive() {\n return this.IsExclusive;\n }",
"public boolean isPermanent(){\n return this.isPermanent;\n }",
"HasValue<Boolean> getIsActive();",
"public Boolean getActive() {\n return this.active;\n }",
"public Boolean getActive() {\n return this.active;\n }",
"BooleanProperty getOn();",
"public Value restrictToBool() {\n checkNotPolymorphicOrUnknown();\n if (isMaybeAnyBool())\n return theBoolAny;\n else if (isMaybeTrueButNotFalse())\n return theBoolTrue;\n else if (isMaybeFalseButNotTrue())\n return theBoolFalse;\n else\n return theNone;\n }",
"boolean getBoolean(String key) throws KeyValueStoreException;",
"org.apache.xmlbeans.XmlBoolean xgetQuick();",
"public boolean readBoolean() {\n return (((readLong() & 1) == 1) ? true : false);\n }",
"boolean getIsChecked();",
"public Boolean isActive() {\n return this.active;\n }",
"boolean getIsExclusive();",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"public Boolean getActive() {\n\t\treturn this.Active;\n\t}",
"public boolean getIsActive()\n\t{\n\t\treturn isActive;\n\t}",
"public void setAtomic(boolean atomic) {\n this.atomic = atomic;\n\n // If this element is atomic then we must check the cost.\n if (atomic) {\n setMustCheckCost(true);\n }\n }"
] |
[
"0.66307503",
"0.649173",
"0.63597125",
"0.63355356",
"0.63291246",
"0.62585175",
"0.624331",
"0.6194555",
"0.6179452",
"0.6143286",
"0.61140937",
"0.61140937",
"0.60997105",
"0.60573447",
"0.6053561",
"0.6053561",
"0.6053561",
"0.6040391",
"0.6040391",
"0.6040391",
"0.602628",
"0.5991425",
"0.5946334",
"0.59235066",
"0.59176373",
"0.59128535",
"0.59114766",
"0.5900519",
"0.5879405",
"0.58558697",
"0.5847863",
"0.58456635",
"0.58393514",
"0.58212894",
"0.58186185",
"0.5816834",
"0.5805228",
"0.5800728",
"0.5730376",
"0.572127",
"0.57020694",
"0.56803775",
"0.566841",
"0.5665379",
"0.56622905",
"0.5652522",
"0.56449014",
"0.56345814",
"0.5632968",
"0.56313115",
"0.5611201",
"0.5611201",
"0.560094",
"0.5593897",
"0.5572037",
"0.55597496",
"0.5555716",
"0.5553031",
"0.5551558",
"0.55434674",
"0.5537002",
"0.5518737",
"0.5513761",
"0.55043805",
"0.54857016",
"0.54828715",
"0.5474313",
"0.5469084",
"0.5466764",
"0.5458312",
"0.54581666",
"0.54580307",
"0.54553044",
"0.5452353",
"0.54467535",
"0.5445785",
"0.542164",
"0.5418744",
"0.5417203",
"0.5417203",
"0.5414665",
"0.54142016",
"0.5410475",
"0.5409337",
"0.5405927",
"0.539149",
"0.539146",
"0.539146",
"0.53830916",
"0.53767955",
"0.53764343",
"0.53681827",
"0.53676736",
"0.5365073",
"0.53615093",
"0.53608215",
"0.53560126",
"0.53559554",
"0.5354242",
"0.5353389"
] |
0.72062355
|
0
|
Function that compares 2 items. Nonatomics can't be compared. Items have to be of the same type or one them has to be null.
|
public int compareTo(Item other) {
if (other.isNull()) {
return 1;
}
return this.serialize().compareTo(other.serialize());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected abstract void compareItem(Item expected, Item actual);",
"private static <F> /*@ pure @*/ boolean elem_equals(F item1,\n F item2) {\n return (item1 != null && item1.equals(item2))\n\t || (item1 == null && item2 == null);\n }",
"@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }",
"@Override\n public int compare(InventoryItem item1, InventoryItem item2) {\n //if items being compared have the same weight, the one with the higher ID will be considered bigger\n if (item1.getWeight() == item2.getWeight()) {\n return (Long.compare(item1.getID(), item2.getID()));\n } else if (item1.getWeight() > item2.getWeight()) {\n return 1;\n } else {\n return -1;\n }\n }",
"protected abstract int doCompare(Object o1, Object o2);",
"@Override\r\n\tpublic int compare(AbstractItemAPI item1, AbstractItemAPI item2) {\n\t\treturn (int) (item2.getPrice() - item1.getPrice());\r\n\t}",
"int compare(T o1, T o2);",
"@Override public int compare(Item a, Item b) {\n\t\t return a.get_id().compareTo(b.get_id());\n\t}",
"boolean compare(Object targetOne, Object targetTwo);",
"@Override\n public boolean isSame(Item other) {\n return this.equals(other);\n }",
"private boolean compare(ValueType first, ValueType second) {\r\n // TODO\r\n return false;\r\n }",
"public void testObjCompare()\n {\n assertEquals( Comparator.EQUAL, Util.objCompare(null,null) );\n assertEquals( Comparator.LESS, Util.objCompare(new Integer(10), new Integer(20)) );\n assertEquals( Comparator.GREATER, Util.objCompare(new Integer(25), new Integer(20)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(null,new Integer(1)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(new Integer(1),null) );\n }",
"@Override\r\n\tpublic int compare(AbstractItemAPI item1, AbstractItemAPI item2) {\n\t\treturn item1.getName().compareToIgnoreCase(item2.getName());\r\n\t}",
"public int compare(Item item1, Item item2) {\n\t\t\t\treturn item2.name.compareTo(item1.name)<0\n\t\t\t\t\t\t?0:-1;\n\t\t\t}",
"@Override\n public int compare(Item i1,Item i2){\n return i2.mark.compareTo(i1.mark);\n\n // return i1.mark.compareTo(i2,mark);\n //This is the ascending version of the same.\n }",
"@Override\r\n\tpublic int compareTo(Item another) {\n\t\treturn this.toString().compareTo(another.toString());\r\n\t}",
"protected boolean areItemsTheSame(T old, T news) {\n if (old == null)\n return news == null;\n return old.sameItems(news);\n }",
"public int compare(Item o1, Item o2) {\n\t\t\treturn o1.getNume().compareTo(o2.getNume());\n\t\t}",
"public Item compareItem(\n Item other,\n ComparisonExpression.ComparisonOperator comparisonOperator,\n ExceptionMetadata metadata\n ) {\n // Subclasses should override this method to perform additional typechecks,\n // and then invoke it on super.\n switch (comparisonOperator) {\n case VC_EQ:\n case GC_EQ: {\n int comparison = this.compareTo(other);\n return ItemFactory.getInstance().createBooleanItem(comparison == 0);\n }\n case VC_NE:\n case GC_NE: {\n int comparison = this.compareTo(other);\n return ItemFactory.getInstance().createBooleanItem(comparison != 0);\n }\n case VC_LT:\n case GC_LT: {\n int comparison = this.compareTo(other);\n return ItemFactory.getInstance().createBooleanItem(comparison < 0);\n }\n case VC_LE:\n case GC_LE: {\n int comparison = this.compareTo(other);\n return ItemFactory.getInstance().createBooleanItem(comparison <= 0);\n }\n case VC_GT:\n case GC_GT: {\n int comparison = this.compareTo(other);\n return ItemFactory.getInstance().createBooleanItem(comparison > 0);\n }\n case VC_GE:\n case GC_GE: {\n int comparison = this.compareTo(other);\n return ItemFactory.getInstance().createBooleanItem(comparison >= 0);\n }\n }\n throw new IteratorFlowException(\"Unrecognized operator found\", metadata);\n }",
"public abstract void compare();",
"public boolean canMerge(Item other);",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof RegistrationItems)) {\n return false;\n }\n RegistrationItems that = (RegistrationItems) other;\n Object myRegItemUid = this.getRegItemUid();\n Object yourRegItemUid = that.getRegItemUid();\n if (myRegItemUid==null ? yourRegItemUid!=null : !myRegItemUid.equals(yourRegItemUid)) {\n return false;\n }\n return true;\n }",
"private Comparison checkEquality(SimpleNode node1, SimpleNode node2) {\n // Compare the classes.\n Comparison comparison = compareClasses(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the values.\n comparison = compareValues(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the images.\n comparison = compareImages(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the children.\n return compareChildren(node1, node2);\n }",
"int compare(T t1, T t2);",
"private boolean isSameFoodItem(FoodItem item, FoodItem other) {\n // return equality of:\n return item.getName().equals(other.getName()) && // names\n item.getCatalogueNumber() == other.getCatalogueNumber() && // catalogue numbers\n item.getExpiryDate().equals(other.getExpiryDate()) && // expiry dates\n item.getProductionDate().equals(other.getProductionDate()); // production dates\n }",
"private final int compare( AnyType item, RedBlackNode<AnyType> t )\n {\n if( t == header )\n return 1;\n else\n return item.compareTo( t.element ); \n }",
"@Override\n @ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.COMPARE)\n default int compareTo(@NotNull IData other) {\n \n return notSupportedOperator(OperatorType.COMPARE);\n }",
"public abstract int compare(final T l1, final T l2);",
"public default Apple compare(Apple a1,Apple a2){\n\n if (a1.getSize()>a2.getSize()) {\n return a1;\n }else {\n return a2;\n }\n\n\n\n\n\n\n }",
"public int compare(Itemset o1, Itemset o2) {\n long time1 = o1.getTimestamp();\n long time2 = o2.getTimestamp();\n if (time1 < time2) {\n return -1;\n }\n return 1;\n }",
"public int compareTo(Item other)\r\n\t{\r\n\t\treturn partNumber - other.partNumber;\r\n\t}",
"public int compare(Object Object1, Object Object2)\n\t{\n\t\treturn CompareRecipes((IRecipe)Object1, (IRecipe)Object2);\n\t}",
"private int compare(T item, RedBlackNode t) {\n if (t == header) {\n return 1;\n } else\n return item.compareTo(t.element);\n }",
"@Override\n public int compare(PostItem lhs, PostItem rhs) {\n int o1 = lhs.getOrder();\n int o2 = rhs.getOrder();\n return (o1>o2? -1 : (o1==o2 ? 0 : 1));\n }",
"public static int inconsistentCompare(MimeType o1, MimeType o2) {\n if ((o1 == null) && (o2 == null)) {\n return 0;\n }\n if (o1 == null) {\n return 1;\n }\n if (o2 == null) {\n return -1;\n }\n int wilchCharComparison = compareByWildCardCount(o1, o2);\n if (wilchCharComparison == 0) {\n float q1 = getQ(o1);\n float q2 = getQ(o2);\n if (q1 == q2) {\n return fallBackCompare(o1, o2);\n }\n if (q1 > q2) {\n return -1;\n } else {\n return 1;\n }\n } else {\n return wilchCharComparison;\n }\n }",
"@Override\r\n\tpublic boolean equals(Object ob){\n\t\tItem itemob=(Item)ob;\t//transfer object type to Item type\r\n\t\tif(this.UID==itemob.UID && this.TITLE==itemob.TITLE && this.NOOFCOPIES==itemob.NOOFCOPIES) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public int compare(T element1, T element2) {\n\t\t\n\t\tint result = 0;\n\t\t\n\t\ttry{\n\t\t\tComparable<T> element = (Comparable<T>) element2;\n\t\t\tresult = element.compareTo(element1);\n\t\t}catch(ClassCastException ex){\n\t\t\tex.getStackTrace();\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public static <T extends Comparable<T>> int compare(T a, T b) {\n if (a == b) {\n return 0;\n }\n if (a == null) {\n return 1;\n }\n if (b == null) {\n return -1;\n }\n \n return a.compareTo(b);\n }",
"@Test\n public void testCompareTo_2() {\n LOGGER.info(\"testCompareTo_2\");\n final AtomString atomString1 = new AtomString();\n final AtomString atomString2 = new AtomString(\"Hej\");\n final int actual = atomString1.compareTo(atomString2);\n final int expected = -3;\n assertEquals(expected, actual);\n }",
"@Test\n void twoEntryAreSame(){\n ToDo t1 = new ToDo(\"1\");\n t1.setInhalt(\"Inhalt\");\n ToDo t2 = new ToDo(\"1\");\n t2.setInhalt(\"Inhalt\");\n ToDoList list = new ToDoList();\n list.add(t1);\n list.add(t2);\n\n assertEquals(0, list.get(0).compareTo(list.get(1)));\n }",
"@Override\n public int compareTo(Item o) {\n return name.compareTo(o.getName());\n }",
"protected abstract boolean isEqual(E entryA, E entryB);",
"public abstract boolean doEquivalent(T t, T t2);",
"@Override public int compare(final IdentifiedObject o1, final IdentifiedObject o2) {\n Collection<Identifier> a1 = o1.getIdentifiers();\n Collection<Identifier> a2 = o2.getIdentifiers();\n if (a1 == null) a1 = Collections.emptySet();\n if (a2 == null) a2 = Collections.emptySet();\n final Iterator<Identifier> i1 = a1.iterator();\n final Iterator<Identifier> i2 = a2.iterator();\n boolean n1, n2;\n while ((n1 = i1.hasNext()) & (n2 = i2.hasNext())) { // NOSONAR: Really '&', not '&&'\n final int c = IdentifiedObjects.doCompare(i1.next().getCode(), i2.next().getCode());\n if (c != 0) {\n return c;\n }\n }\n if (n1) return +1;\n if (n2) return -1;\n return 0;\n }",
"@Test\n public void testCompareTo_1() {\n LOGGER.info(\"testCompareTo_1\");\n final AtomString atomString1 = new AtomString();\n final AtomString atomString2 = new AtomString();\n final int actual = atomString1.compareTo(atomString2);\n final int expected = 0;\n assertEquals(expected, actual);\n }",
"@Test\n void twoEntryAreNotSame(){\n ToDo t1 = new ToDo(\"1\");\n t1.setInhalt(\"Inhalt\");\n ToDo t2 = new ToDo(\"2\");\n t2.setInhalt(\"Inhalt\");\n ToDoList list = new ToDoList();\n list.add(t1);\n list.add(t2);\n\n assertEquals(-1, list.get(0).compareTo(list.get(1)));\n }",
"protected int compareForNulls(Object o1, Object o2) {\r\n if(o1 == null && o2 == null) return 0;\r\n if(o1 == null) {\r\n if(nullIsGreater) return 1;\r\n else return -1;\r\n }\r\n else if(o2 == null) {\r\n if(nullIsGreater) return -1;\r\n else return 1;\r\n }\r\n else {\r\n return 0; // both are non-null;\r\n }\r\n }",
"public boolean compareElements(Object element1, Object element2, AbstractSession session) {\n if (element1.getClass() != element2.getClass()) {\n return false;\n }\n return this.getObjectBuilder(element1, session).compareObjects(element1, element2, session);\n }",
"public void testEquals() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n }",
"public static int compare(Object input1, Object input2) {\n\t\tif (input1.getClass().equals(Integer.class) && input2.getClass().equals(Integer.class)) {\n\t\t\treturn compareInt((Integer) input1, (Integer) input2);\n\n\t\t\t// if object is string\n\t\t} else if (input1.getClass().equals(String.class) && input2.getClass().equals(String.class)) {\n\t\t\treturn compareString((String) input1, (String) input2);\n\n\t\t\t// if object is date\n\t\t} else if (input1.getClass().equals(Date.class) && input2.getClass().equals(Date.class)) {\n\t\t\treturn compareDate((Date) input1, (Date) input2);\n\n\t\t\t// if object is big decimal\n\t\t} else if (input1.getClass().equals(BigDecimal.class) && input2.getClass().equals(BigDecimal.class)) {\n\t\t\treturn compareBigDecimal((BigDecimal) input1, (BigDecimal) input2);\n\t\t\t\n\t\t} else {\n\t\t\tSystem.err.println(\"no object match\");\n\t\t\treturn 0;\n\t\t}\n\n\t}",
"@Override\r\n\tpublic void comparo(Persona p1, Persona p2) {\n\t\t\r\n\t}",
"public abstract int compareMembers(T m1, T m2);",
"@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n }",
"public int compareTo(KeyedItem<T> other)\n {\n if (other instanceof KeyedItem)\n return key.compareTo(other.getKey());\n else {\n System.out.println(\"Invalid Comaprison\");\n return 0;\n }\n }",
"public interface Comparator<Item>{\n\tpublic int compare(Item a, Item b);\n}",
"public static int compare(Object o1, Object o2) {\n\n byte dt1 = findType(o1);\n byte dt2 = findType(o2);\n return compare(o1, o2, dt1, dt2);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Item)) {\n return false;\n }\n Item other = (Item) object;\n if ((this.itemid == null && other.itemid != null) || (this.itemid != null && !this.itemid.equals(other.itemid))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean areContentsTheSame(@NonNull Note oldItem, @NonNull Note newItem) {\n return oldItem.getTitle().equals(newItem.getTitle()) &&\n oldItem.getDescription().equals(newItem.getDescription()) &&\n oldItem.getPriority() == newItem.getPriority();\n }",
"private static <E extends Comparable<? super E>, V> boolean equal(final E nonnull, final E other) {\r\n if (other == null) return false;\r\n return nonnull.compareTo(other) == 0;\r\n }",
"@Override\n public int compare(Object mMailPersonItem1, Object mMailPersonItem2) {\n Conversation tem1 = (Conversation) mMailPersonItem1;\n Conversation tem2 = (Conversation) mMailPersonItem2;\n String[] array = new String[2];\n int cr = 0;\n int a = tem2.mPriority - tem1.mPriority;\n if (a != 0) {\n cr = (a > 0) ? 2 : -1;\n } else {\n //按薪水降序排列\n array[0] = ((Conversation) mMailPersonItem1).mTime;\n array[1] = ((Conversation) mMailPersonItem2).mTime;\n if (array[0].equals(array[1])) {\n cr = 0;\n }\n Arrays.sort(array);\n if (array[0].equals(((Conversation) mMailPersonItem1).mTime)) {\n cr = -2;\n } else if (array[0].equals(((Conversation) mMailPersonItem2).mTime)) {\n cr = 1;\n }\n }\n return cr;\n }",
"public static int compare(Object obj1, Object obj2) throws UnsupportedException{\n\t\tint result = EQUAL;\n\t\tboolean isResultSet = false;\n\t\tif(obj1 == null && obj2!= null){\n\t\t\tif(obj2 instanceof String){\n\t\t\t\tobj1 = EMPTY;\n\t\t\t} else {\n\t\t\t\tisResultSet = true;\n\t\t\t\tresult = LESS;\n\t\t\t}\n\t\t} else if(obj1!=null && obj2== null){\n\t\t\tif(obj1 instanceof String){\n\t\t\t\tobj2 = EMPTY;\n\t\t\t} else {\n\t\t\t\tisResultSet = true;\n\t\t\t\tresult = GREATER;\n\t\t\t}\n\t\t}\n\t\tif(isResultSet){\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t//Check that 2 objects are the same class\n\t\tif(obj1.getClass() != obj2.getClass()){\n\t\t\tthrow new ClassCastException(\"Objects to compare are not the same class\");\n\t\t}\n\t\t\n\t\tif(obj1 instanceof String){\n\t\t\tresult = ((String)obj1).compareTo((String)obj2);\n\t\t} else if(obj1 instanceof DateUtil){\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}else if(obj1 instanceof BigDecimal){\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}else{\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}\n\t\treturn result;\n\t}",
"@Test\n public void aminoCompareTest2() {\n //these list are already sorted\n AminoAcidLL first = AminoAcidLL.createFromRNASequence(c);\n AminoAcidLL second = AminoAcidLL.createFromRNASequence(c);\n int expected = 0;\n assertEquals(expected, first.aminoAcidCompare(second));\n }",
"@Override\r\n\tpublic int compareTo(Mano m2)\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tint r=0;\r\n\t\t\r\n\t\tif(tipo.getValor()\t\t<\tm2.tipo.getValor()) r = -1;\r\n\t\telse if(tipo.getValor()\t>\tm2.tipo.getValor()) r = 1;\r\n\t\t\t\t\r\n\t\telse if(tipo.getValor()\t==\tm2.tipo.getValor())\r\n\t\t{\r\n\t\t\tint i=0;\r\n\t\t\t\r\n\t\t\twhile(r==0 && i< cartas.size() )\r\n\t\t\t{\r\n\t\t\t\tr = cartas.get(i).compareTo(m2.cartas.get(i));\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn r;\r\n\t\t\r\n\t}",
"private static <E extends Comparable<? super E>, V> boolean lessEqual(final E nonnull, final E other) {\r\n if (other == null) return true;\r\n return nonnull.compareTo(other) <= 0;\r\n }",
"protected abstract boolean equalityTest(Object key, Object key2);",
"private Comparison compareValues(SimpleNode first, SimpleNode second) {\n return Objects.equals(first.jjtGetValue(), second.jjtGetValue()) ? Comparison.IS_EQUAL\n : Comparison.notEqual(\"Node values differ: \" + first.jjtGetValue() + \" vs \" + second.jjtGetValue());\n }",
"public int compareTo(items o) {\n\t\treturn this.c > o.c ? 1 : (this.c < o.c ? -1 : 0);\r\n\t}",
"public abstract <S> int visitItemIterator(\n Iterator<S> it1, Iterator<S> it2, CompareToAccept<S> compareToAccept);",
"static <T> boolean argEquals(T a1,boolean a2, T b1,boolean b2) {\n return\n Null.equals(a1, b1) && //\n a2==b2; //\n }",
"@Test\n\tpublic void equalsAndHashcode() {\n\t\tCollisionItemAdapter<Body, BodyFixture> item1 = new CollisionItemAdapter<Body, BodyFixture>();\n\t\tCollisionItemAdapter<Body, BodyFixture> item2 = new CollisionItemAdapter<Body, BodyFixture>();\n\t\t\n\t\tBody b1 = new Body();\n\t\tBody b2 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\tBodyFixture b2f1 = b2.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\titem1.set(b1, b1f1);\n\t\titem2.set(b1, b1f1);\n\t\t\n\t\tTestCase.assertTrue(item1.equals(item2));\n\t\tTestCase.assertEquals(item1.hashCode(), item2.hashCode());\n\t\t\n\t\titem2.set(b2, b2f1);\n\t\tTestCase.assertFalse(item1.equals(item2));\n\t\t\n\t\titem2.set(b1, b2f1);\n\t\tTestCase.assertFalse(item1.equals(item2));\n\t}",
"void compareDataStructures();",
"public static int Compare(Object elem1, Object elem2)\n\t{\n\t\tint p1;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p2;\n\t\tint p2;\n\t\tp1 = (int) elem1;\n\t\tp2 = (int) elem2;\n\t\treturn (p2) - p1;\n\t}",
"@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\tAppEntry entry1 = (AppEntry) arg0;\n\t\t\tAppEntry entry2 = (AppEntry) arg1;\n\t\t\tlong result = entry1.getSize() - entry2.getSize();\n\t\t\tif (result > 0) {\n\t\t\t\treturn -1;\n\t\t\t} else if (result == 0) {\n\t\t\t\treturn 0;\n\t\t\t} else if (result < 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"public boolean compareTo(T t);",
"@Override\n\tpublic int compareTo(Item i) {\n\t\t\n\t\tif (i == null)\n\t\t\treturn -1;\n\t\t\n\t\treturn this.getName().compareTo(i.getName());\n\t}",
"@Override\n\tpublic int compareTo(@NonNull Item o) {\n\t\treturn Math.round(this.price - o.price);\n\t}",
"@Override\n\t\t\t\t\t\tpublic int compare(SearchItem lhs, SearchItem rhs) {\n\t\t\t\t\t\t\tString first = lhs.get_text().toString();\n\t\t\t\t\t\t\tString sec = rhs.get_text().toString();\n\n\t\t\t\t\t\t\tint i1 = first.indexOf(constraint.toString());\n\t\t\t\t\t\t\tint i2 = sec.indexOf(constraint.toString());\n\n\t\t\t\t\t\t\treturn (i1 < i2) ? -1 : (i1 == i2) ? 0 : 1;\n\t\t\t\t\t\t}",
"private int compare(T a, T b) {\r\n\t\tint r = -1;\r\n\t\tif (a instanceof Comparable) {\r\n\t\t\tr = ((Comparable) a).compareTo(b);\r\n\t\t}\r\n\t\treturn r;\r\n\t}",
"public int compareTo(Object coffee1, Object coffee2){\r\n\r\n System.out.println(\"compareTo being called on \" + coffee1 + \" and \" + coffee2);\r\n\r\n if (coffee1.price - coffee2.price < 0){\r\n return -1;\r\n }\r\n else if (coffee1.price == coffee2.price){\r\n if (length(coffee1.company) < length(coffee2.company)){\r\n return -1\r\n }\r\n else if (coffee1.company == coffee2.company){\r\n if (length(coffee1.color)) < length(coffee2.color){\r\n return -1\r\n }\r\n else if (coffee1.color == coffee2.color){\r\n return 0\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1;\r\n }\r\n}",
"public static Object gt(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) > 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) > 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in gt\");\n\t}",
"@Override\n public int compare(Todo td1, Todo td2) {\n\n // if td1 is null, then it should come after td2\n if (td1.getDueDate() == null && td2.getDueDate()!= null) {\n return GREATER;\n }\n // if td2 is null, then it should come after td1\n if (td1.getDueDate() != null && td2.getDueDate() == null) {\n return LESS;\n }\n // if both null, they are equal\n if (td1.getDueDate() == null && td2.getDueDate() == null) {\n return EQUAL;\n }\n // else, make into date object\n String td1Due = td1.getDueDate();\n String td2Due = td2.getDueDate();\n String[] td1DateRes = td1Due.split(\"/\");\n String[] td2DateRes = td2Due.split(\"/\");\n\n // Not caring about invalid formatting yet here\n // if both not null ,we create a date object, and let it compare themselves\n Date td1Date = new Date(td1DateRes[MONTH_INDEX],td1DateRes[DAY_INDEX],td1DateRes[YEAR_INDEX]);\n Date td2Date = new Date(td2DateRes[MONTH_INDEX],td2DateRes[DAY_INDEX],td2DateRes[YEAR_INDEX]);\n\n return td1Date.compareTo(td2Date);\n }",
"int compareTo(Object obj);",
"public static boolean isSameItemWithNBT(@Nullable ItemStack itemStack1, @Nullable ItemStack itemStack2) {\n return itemStack1 != null && itemStack2 != null && itemStack1.isItemEqual(itemStack2) &&\n ItemStack.areItemStackTagsEqual(itemStack1, itemStack2);\n }",
"public int compare(Object o1, Object o2) {\n/* 25 */ Alphabet a1 = (Alphabet)o1;\n/* 26 */ Alphabet a2 = (Alphabet)o2;\n/* */ \n/* 28 */ return a2.order - a1.order;\n/* */ }",
"private Boolean equalWebItemImages(WebItemImage webItemImageOne, WebItemImage webItemImageTwo) {\n\t\tif (webItemImageOne==null && webItemImageTwo==null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif (webItemImageOne==null || webItemImageTwo==null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (webItemImageOne.getSourceURL() == webItemImageTwo.getSourceURL()) {\r\n\t\t\treturn true;\r\n\t\t } else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\n public boolean equals(Object other) {\n if (this == other) {\n return true;\n }\n if (other == null || getClass() != other.getClass()) {\n return false;\n }\n StockItem<?> stockItem = (StockItem<?>) other;\n return product.equals(stockItem.product);\n }",
"int compareTo(Object o);",
"@Test\n\tpublic void equalsNullItemType() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setId(LONG_ZERO);\n\t\tboolean equals = key1.equals(key2);\n\t\tAssert.assertFalse(equals);\n\t}",
"@Override\n public int compare(Tuple2<String, Long> o1, Tuple2<String, Long> o2) {\n return -(o1.f1.compareTo(o2.f1));\n }",
"@Override\n public int compare(Object arg0, Object arg1) {\n int a = arg0.hashCode();\n int b = arg1.hashCode();\n int accum;\n if (a == b) {\n accum = 0;\n } else if (a > b) {\n accum = 1;\n } else {\n accum = -1;\n }\n return accum;\n }",
"@Test\n public void equal() {\n assertTrue(commandItem.equals(commandItemCopy));\n assertTrue(commandItem.isSameCommand(commandItemCopy));\n //not commanditem return false\n assertFalse(commandItem.equals(commandWord));\n }",
"public int compareTo(Object other) { return 404;}",
"@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}",
"@Override\n\t\tpublic int compare(Object a, Object b) {\n\t\t\tif(hm.get(a)>hm.get(b))\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t}",
"public Boolean areEqualItems(ItemStack playerItem, ItemStack shopItem){\n\t\tdebugOut(\"Comparing two item stacks\");\n\t\tif(playerItem == null || shopItem == null){\n\t\t\tdebugOut(\"At least one item is null -- returning false\");\n\t\t\treturn false;\n\t\t}else {\n\t\t\tdebugOut(\"Items are not null. Continuing...\");\n\t\t}\n\t\tdebugOut(\"Getting material: playerItem\");\n\t\tMaterial playerItemMaterial = playerItem.getType();\n\t\tMaterial shopItemMaterial = shopItem.getType();\n\t\tif(playerItemMaterial.equals(shopItemMaterial) ){\n\t\t\tdebugOut(\"Item types are the same\");\n\t\t\tif(playerItem.getItemMeta().getDisplayName() == shopItem.getItemMeta().getDisplayName() ){\n\t\t\t\tdebugOut(\"Display names are the same\");\n\t\t\t\tString shopEnchants = enchantmentsToString(shopItem);\n\t\t\t\tif(compareStringEnchantments(playerItem, shopEnchants)){\n\t\t\t\t\tdebugOut(\"Enchantments for the two items are the same -- Item matches\");\n\t\t\t\t\treturn true;\n\t\t\t\t}else {\n\t\t\t\t\tdebugOut(\"Enchantments are not the same -- Item doesn't match\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tdebugOut(\"Display names are different\");\n\t\t\t}\n\t\t}else {\n\t\t\tdebugOut(\"Item types are different\");\n\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\tAppEntry entry1 = (AppEntry) arg0;\n\t\t\tAppEntry entry2 = (AppEntry) arg1;\n\t\t\tlong result = entry1.mApkFile.lastModified()\n\t\t\t\t\t- entry2.mApkFile.lastModified();\n\t\t\tif (result > 0) {\n\t\t\t\treturn -1;\n\t\t\t} else if (result == 0) {\n\t\t\t\treturn 0;\n\t\t\t} else if (result < 0) {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}",
"private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }",
"private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }",
"@Override //function was implemented as abstract in super class\n public boolean Equals(Instruction toCompare){\n if(toCompare == null)\n return false;\n Extra temp = (Extra) toCompare; //downcast for valid comparison\n if(this.Price != temp.Price || this.Allergens != temp.Allergens || !this.Notes.equals(temp.Notes) || this.Density != temp.Density || !this.Topping.equals(temp.Topping) || this.Vegetarian != Vegetarian)\n return false;\n return true;\n }",
"@Override\n public boolean areItemsTheSame(@NonNull Note oldItem, @NonNull Note newItem) {\n // Two Note item are same if there ID are same - uniquely identify each entry\n return oldItem.getId() == newItem.getId();\n }"
] |
[
"0.7475927",
"0.6563217",
"0.6552061",
"0.64530444",
"0.63234407",
"0.6264376",
"0.6151876",
"0.6144794",
"0.6135883",
"0.6126582",
"0.6098877",
"0.6076299",
"0.60645866",
"0.60525525",
"0.60344756",
"0.59896797",
"0.59885776",
"0.5987459",
"0.59705555",
"0.59398305",
"0.5875724",
"0.5855924",
"0.5855177",
"0.58380413",
"0.58065826",
"0.57330817",
"0.57250756",
"0.5715862",
"0.57140857",
"0.5699656",
"0.5697781",
"0.5648646",
"0.5646177",
"0.56385463",
"0.5634735",
"0.56022453",
"0.55949193",
"0.5593109",
"0.55732036",
"0.55420786",
"0.5537906",
"0.55342263",
"0.5523252",
"0.5496484",
"0.54840714",
"0.5482554",
"0.5471043",
"0.5460585",
"0.54596347",
"0.54528654",
"0.54383093",
"0.54343796",
"0.5421446",
"0.54193866",
"0.54168475",
"0.5414291",
"0.54069084",
"0.53977066",
"0.5395228",
"0.5394792",
"0.53877187",
"0.5384224",
"0.5383233",
"0.5383202",
"0.53828233",
"0.5380542",
"0.5367114",
"0.5365285",
"0.5363432",
"0.5360029",
"0.53506184",
"0.534643",
"0.53392154",
"0.5336662",
"0.5314121",
"0.5304987",
"0.52984995",
"0.5297513",
"0.52892053",
"0.5282574",
"0.5269874",
"0.526901",
"0.52678144",
"0.52676135",
"0.52666867",
"0.52616113",
"0.52598757",
"0.5252949",
"0.52527773",
"0.5249799",
"0.52447057",
"0.5242986",
"0.52413297",
"0.52327967",
"0.5231066",
"0.5229782",
"0.5229361",
"0.5210387",
"0.5205062",
"0.5199014"
] |
0.6233388
|
6
|
Function that compare two items according to the operator defined for the comparison.
|
public Item compareItem(
Item other,
ComparisonExpression.ComparisonOperator comparisonOperator,
ExceptionMetadata metadata
) {
// Subclasses should override this method to perform additional typechecks,
// and then invoke it on super.
switch (comparisonOperator) {
case VC_EQ:
case GC_EQ: {
int comparison = this.compareTo(other);
return ItemFactory.getInstance().createBooleanItem(comparison == 0);
}
case VC_NE:
case GC_NE: {
int comparison = this.compareTo(other);
return ItemFactory.getInstance().createBooleanItem(comparison != 0);
}
case VC_LT:
case GC_LT: {
int comparison = this.compareTo(other);
return ItemFactory.getInstance().createBooleanItem(comparison < 0);
}
case VC_LE:
case GC_LE: {
int comparison = this.compareTo(other);
return ItemFactory.getInstance().createBooleanItem(comparison <= 0);
}
case VC_GT:
case GC_GT: {
int comparison = this.compareTo(other);
return ItemFactory.getInstance().createBooleanItem(comparison > 0);
}
case VC_GE:
case GC_GE: {
int comparison = this.compareTo(other);
return ItemFactory.getInstance().createBooleanItem(comparison >= 0);
}
}
throw new IteratorFlowException("Unrecognized operator found", metadata);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected abstract void compareItem(Item expected, Item actual);",
"private Expr comparison() {\n Expr expr = addition();\n\n while(match(GREATER, GREATER_EQUAL, LESS, LESS_EQUAL)) { // These variable length arguments are real convenient\n Token operator = previous();\n Expr right = addition();\n expr = new Expr.Binary(expr, operator, right);\n }\n\n return expr;\n }",
"boolean compare(Object targetOne, Object targetTwo);",
"protected abstract int doCompare(Object o1, Object o2);",
"@Override\n public int compare(InventoryItem item1, InventoryItem item2) {\n //if items being compared have the same weight, the one with the higher ID will be considered bigger\n if (item1.getWeight() == item2.getWeight()) {\n return (Long.compare(item1.getID(), item2.getID()));\n } else if (item1.getWeight() > item2.getWeight()) {\n return 1;\n } else {\n return -1;\n }\n }",
"Comparison createComparison();",
"Comparison createComparison();",
"@Override\r\n\tpublic int compare(AbstractItemAPI item1, AbstractItemAPI item2) {\n\t\treturn (int) (item2.getPrice() - item1.getPrice());\r\n\t}",
"@Test\n public void compareFunctionalSmaller() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p2, p1);\n \n assertEquals(1, a);\n }",
"@Override\n public int compare(Item i1,Item i2){\n return i2.mark.compareTo(i1.mark);\n\n // return i1.mark.compareTo(i2,mark);\n //This is the ascending version of the same.\n }",
"public abstract void compare();",
"public static boolean compareNumerics(Parser parser, ResultValue resOp1, ResultValue resOp2, String operator)\r\n {\r\n \tdouble val1 = Numeric.getDoubleValue(resOp1.value);\r\n \tdouble val2 = Numeric.getDoubleValue(resOp2.value);\r\n \t\r\n \t\r\n \t\r\n \tswitch(operator)\r\n \t{\r\n \t\tcase \">=\" :\r\n \t\t\tif(val1 >= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse \r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \">\" :\r\n \t\t\tif(val1 > val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<=\" :\r\n \t\t\tif(val1 <= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<\" :\r\n \t\t\tif(val1 < val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"!=\" :\r\n \t\t\tif(val1 != val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"==\" :\r\n \t\t\tif(val1 == val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tdefault :\r\n \t\t\tSystem.out.println(\"Error in compare Numerics, \" + operator + \" is not valid\");\r\n \t\t\treturn false;\r\n \t\t\r\n \t\t\t\r\n \t\t\r\n \t}\r\n }",
"int compare(T o1, T o2);",
"public void testObjCompare()\n {\n assertEquals( Comparator.EQUAL, Util.objCompare(null,null) );\n assertEquals( Comparator.LESS, Util.objCompare(new Integer(10), new Integer(20)) );\n assertEquals( Comparator.GREATER, Util.objCompare(new Integer(25), new Integer(20)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(null,new Integer(1)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(new Integer(1),null) );\n }",
"@Override\n\t\t\t\t\t\tpublic int compare(SearchItem lhs, SearchItem rhs) {\n\t\t\t\t\t\t\tString first = lhs.get_text().toString();\n\t\t\t\t\t\t\tString sec = rhs.get_text().toString();\n\n\t\t\t\t\t\t\tint i1 = first.indexOf(constraint.toString());\n\t\t\t\t\t\t\tint i2 = sec.indexOf(constraint.toString());\n\n\t\t\t\t\t\t\treturn (i1 < i2) ? -1 : (i1 == i2) ? 0 : 1;\n\t\t\t\t\t\t}",
"@Override\n public int compare(PostItem lhs, PostItem rhs) {\n int o1 = lhs.getOrder();\n int o2 = rhs.getOrder();\n return (o1>o2? -1 : (o1==o2 ? 0 : 1));\n }",
"List<Object> lessThanOrEqualsTo(Object value);",
"@Test \n public void compareFunctionalEquals() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p1);\n \n assertEquals(0, a);\n }",
"@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }",
"static BiPredicate<SibillaValue,SibillaValue> getRelationOperator(String op) {\n if (op.equals(\"<\")) { return (x,y) -> x.doubleOf()<y.doubleOf(); }\n if (op.equals(\"<=\")) { return (x,y) -> x.doubleOf()<=y.doubleOf(); }\n if (op.equals(\"==\")) { return (x,y) -> x.doubleOf()==y.doubleOf(); }\n if (op.equals(\"!=\")) { return (x,y) -> !x.equals(y); }\n if (op.equals(\">\")) { return (x,y) -> x.doubleOf()>y.doubleOf(); }\n if (op.equals(\">=\")) { return (x,y) -> x.doubleOf()>=y.doubleOf(); }\n return (x,y) -> false;\n }",
"@Override public int compare(Item a, Item b) {\n\t\t return a.get_id().compareTo(b.get_id());\n\t}",
"private boolean compare(ValueType first, ValueType second) {\r\n // TODO\r\n return false;\r\n }",
"@Override\n @ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.COMPARE)\n default int compareTo(@NotNull IData other) {\n \n return notSupportedOperator(OperatorType.COMPARE);\n }",
"private void compare(K key, String comparator, List<V> val, LeafNode node) {\r\n if (comparator.contentEquals(\">=\")) {\r\n // to check every value in the leafnode\r\n for (V value : node.values) {\r\n int index = node.values.indexOf(value);\r\n if (key.compareTo(node.keys.get(index)) == 0 ) {\r\n val.add(value);\r\n } else if (key.compareTo(node.keys.get(index)) < 0){\r\n val.add(value);\r\n }\r\n }\r\n\r\n } else if (comparator.contentEquals(\"==\")) {\r\n for (V value : node.values) {\r\n int index = node.values.indexOf(value);\r\n if (key.compareTo(node.keys.get(index)) == 0) {\r\n val.add(value);\r\n }\r\n }\r\n\r\n } else if (comparator.contentEquals(\"<=\")) {\r\n for (V value : node.values) {\r\n int index = node.values.indexOf(value);\r\n if (key.compareTo(node.keys.get(index)) == 0 || key.compareTo(node.keys.get(index)) > 0) {\r\n val.add(value);\r\n }\r\n }\r\n\r\n }\r\n }",
"public default Apple compare(Apple a1,Apple a2){\n\n if (a1.getSize()>a2.getSize()) {\n return a1;\n }else {\n return a2;\n }\n\n\n\n\n\n\n }",
"int compare(T t1, T t2);",
"public Comparison compare(int left, int right) {\n int result = EQUAL;\n if (left < right) {\n result = LESS;\n } else if (left > right) {\n result = GREATER;\n }\n return checkResult(result);\n }",
"public int compare(Key<Double, Double> a, Key<Double, Double> b){\n\t\t\tif (a.getFirst() < b.getFirst()){\n\t\t\t\treturn -1;\n\t\t\t} else if (a.getFirst() == b.getFirst()){\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}",
"static int compar(int d1,int m1, int y1,int d2,int m2, int y2 )\n{\n if(y1>y2)\n return 1;\n if(y1<y2)\n return -1;\n \n if(m1>m2)\n return 1;\n if(m1<m2)\n return -1;\n \n if(d1>d2)\n return 1;\n if(d1<d2)\n return -1;\n \n \n \n return 0;\n \n \n}",
"List<Object> greaterThanOrEqualsTo(Object value);",
"private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }",
"@Override\n public JsonNode visit(Comparator op, JsonNode input) {\n JsonNode lhsNode = op.getLhsExpr().accept(this, input);\n JsonNode rhsNode = op.getRhsExpr().accept(this, input);\n\n if (op.matches(lhsNode, rhsNode)) {\n return BooleanNode.TRUE;\n }\n return BooleanNode.FALSE;\n }",
"@Override\r\n\tpublic int compareTo(Item another) {\n\t\treturn this.toString().compareTo(another.toString());\r\n\t}",
"Object findOperatorNeedCheck();",
"public int compare(int a, int b) {\n //System.err.println(\"compare \" + a + \" with \" + b);\n return comparer.compare((NodeInfo)sequence.itemAt(a),\n (NodeInfo)sequence.itemAt(b));\n }",
"@Test public void testCompareTo() {\r\n new LinkedHashMap<Entry<String, ComparisonResult>, Entry<Word, Word>>() {\r\n private static final long serialVersionUID = -114525477689441361L; {\r\n put(new SimpleEntry<>(\"test(Test)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w1, w2));\r\n put(new SimpleEntry<>(\"Test(test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w2, w1));\r\n put(new SimpleEntry<>(\"Test(Te/t)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w2, w5));\r\n put(new SimpleEntry<>(\"Te/t(Test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w5, w2));\r\n put(new SimpleEntry<>(\"Text(Te/t)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w7, w5));\r\n put(new SimpleEntry<>(\"Te/t(Text)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w5, w7));\r\n put(new SimpleEntry<>(\"testing(test'ing)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w3, w4));\r\n put(new SimpleEntry<>(\"test'ing(testing)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w4, w3));\r\n put(new SimpleEntry<>(\"test(testing)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w1, w3));\r\n put(new SimpleEntry<>(\"testing(test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w3, w1));\r\n put(new SimpleEntry<>(\"test(test)\", ComparisonResult.EQUAL_TO), new SimpleEntry<>(w1, w6));\r\n }}.forEach((k, v) -> {\r\n assertTrue(String.format(\"%1$s should be %2$s\", k.getKey(), k.getValue().toString()),\r\n v.getKey().compareTo(v.getValue()) == k.getValue());\r\n });\r\n }",
"public int compareTo(Item other)\r\n\t{\r\n\t\treturn partNumber - other.partNumber;\r\n\t}",
"public int compare(List<Integer> a, List<Integer> b) {\n return Integer.compare(b.get(1), a.get(1));\n }",
"Quantity getComparisonValue();",
"@Override\n\tpublic int compareTo(@NonNull Item o) {\n\t\treturn Math.round(this.price - o.price);\n\t}",
"@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n }",
"public abstract int compare(final T l1, final T l2);",
"private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }",
"@Override\n public int compare(Query e1, Query e2) {\n if (e1.getFreq() < e2.getFreq() ||\n (e1.getFreq() == e2.getFreq() && e1.getText().compareTo(e2.getText()) > 0))\n return this.LESS;\n else if (e1.getFreq() > e2.getFreq() ||\n (e1.getFreq() == e2.getFreq() && e1.getText().compareTo(e2.getText()) < 0))\n return this.GREATER;\n return this.EQUAL;\n }",
"public static int compare(Object obj1, Object obj2) throws UnsupportedException{\n\t\tint result = EQUAL;\n\t\tboolean isResultSet = false;\n\t\tif(obj1 == null && obj2!= null){\n\t\t\tif(obj2 instanceof String){\n\t\t\t\tobj1 = EMPTY;\n\t\t\t} else {\n\t\t\t\tisResultSet = true;\n\t\t\t\tresult = LESS;\n\t\t\t}\n\t\t} else if(obj1!=null && obj2== null){\n\t\t\tif(obj1 instanceof String){\n\t\t\t\tobj2 = EMPTY;\n\t\t\t} else {\n\t\t\t\tisResultSet = true;\n\t\t\t\tresult = GREATER;\n\t\t\t}\n\t\t}\n\t\tif(isResultSet){\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t//Check that 2 objects are the same class\n\t\tif(obj1.getClass() != obj2.getClass()){\n\t\t\tthrow new ClassCastException(\"Objects to compare are not the same class\");\n\t\t}\n\t\t\n\t\tif(obj1 instanceof String){\n\t\t\tresult = ((String)obj1).compareTo((String)obj2);\n\t\t} else if(obj1 instanceof DateUtil){\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}else if(obj1 instanceof BigDecimal){\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}else{\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}\n\t\treturn result;\n\t}",
"public int compareTo(Item other) {\n if (other.isNull()) {\n return 1;\n }\n return this.serialize().compareTo(other.serialize());\n }",
"@Override\n public int compare(Integer a, Integer b) {\n if (base.get(a) >= base.get(b)) {\n return 1;\n } else {\n return -1;\n } // returning 0 would merge keys\n }",
"@Override\r\n\t\t\tpublic int compare(Integer a, Integer b) {\n\t\t\t\treturn -1 * a.compareTo(b);\r\n\t\t\t}",
"@Override\n\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\tFloatWritable key1 = (FloatWritable) a;\n\t\tFloatWritable key2 = (FloatWritable) b;\n\n\t\t// Implemet sorting in descending order\n\t//\tint result = key1.get() < key2.get() ? 1 : key1.get() == key2.get() ? 0 : -1;\n\t\treturn -1 * key1.compareTo(key2);\n\t}",
"@Test\n public void testCompare() {\n AantalGastenComparator instance = new AantalGastenComparator();\n int expResult;\n int result;\n \n //test 1\n Accommodatie a1 = new Accommodatie(\"je moeder\", 30.00, 2, 1);\n Accommodatie a2 = new Accommodatie(\"je vader\", 40.00, 3, 1);\n expResult = -1;\n result = instance.compare(a1, a2);\n assertEquals(expResult, result);\n \n \n //test 2\n Accommodatie a3 = new Accommodatie(\"je moeder2\", 30.00, 2, 1);\n Accommodatie a4 = new Accommodatie(\"je vader2\", 40.00, 2, 1);\n expResult = 0;\n result = instance.compare(a3, a4);\n assertEquals(expResult, result);\n \n \n //test 3\n Accommodatie a5 = new Accommodatie(\"je moeder3\", 30.00, 3, 1);\n Accommodatie a6 = new Accommodatie(\"je vader3\", 40.00, 2, 1);\n expResult = 1;\n result = instance.compare(a5, a6);\n assertEquals(expResult, result);\n }",
"@Override\n public int compare(T a, T b) {\n for (Comparator<T> comparator : comparators) {\n int cmp = comparator.compare(a, b);\n\n if (cmp != 0) {\n return cmp;\n }\n }\n return 0;\n }",
"@SuppressWarnings(\"rawtypes\")\r\n\t@Override\r\n\tpublic int compare(WritableComparable a, WritableComparable b)\r\n\t{\n\t\tText left = (Text)a;\r\n\t\tText right = (Text)b;\r\n\t\t\r\n\t\tText realLeft = new Text(left.toString().split(\"-,-\")[1]);\r\n\t\tText realRight = new Text(right.toString().split(\"-,-\")[1]);\r\n\t\t\t\t\r\n\t\tint result = tc.compare(realLeft, realRight);\r\n\t\t\t\t\r\n\t\treturn result;\r\n\t}",
"public int compare(Itemset o1, Itemset o2) {\n long time1 = o1.getTimestamp();\n long time2 = o2.getTimestamp();\n if (time1 < time2) {\n return -1;\n }\n return 1;\n }",
"public interface Comparator<Item>{\n\tpublic int compare(Item a, Item b);\n}",
"@Override public int compare(final IdentifiedObject o1, final IdentifiedObject o2) {\n Collection<Identifier> a1 = o1.getIdentifiers();\n Collection<Identifier> a2 = o2.getIdentifiers();\n if (a1 == null) a1 = Collections.emptySet();\n if (a2 == null) a2 = Collections.emptySet();\n final Iterator<Identifier> i1 = a1.iterator();\n final Iterator<Identifier> i2 = a2.iterator();\n boolean n1, n2;\n while ((n1 = i1.hasNext()) & (n2 = i2.hasNext())) { // NOSONAR: Really '&', not '&&'\n final int c = IdentifiedObjects.doCompare(i1.next().getCode(), i2.next().getCode());\n if (c != 0) {\n return c;\n }\n }\n if (n1) return +1;\n if (n2) return -1;\n return 0;\n }",
"public int compare(Item o1, Item o2) {\n\t\t\treturn o1.getNume().compareTo(o2.getNume());\n\t\t}",
"public boolean Mayor(Object obj1, Object obj2){\n return (Double.parseDouble(obj1.toString()) > Double.parseDouble(obj2.toString()));\n }",
"@Override\r\n\tpublic int compare(AbstractItemAPI item1, AbstractItemAPI item2) {\n\t\treturn item1.getName().compareToIgnoreCase(item2.getName());\r\n\t}",
"@Test\r\n public void testCompare() {\r\n\r\n double[] r1;\r\n double[] r2;\r\n Comparator<double[]> instance = new DoubleArrayComparator();\r\n \r\n r1 = new double[]{1,2,3};\r\n r2 = new double[]{1,2,3}; \r\n assertEquals(0, instance.compare(r1, r2));\r\n\r\n r1 = new double[]{1,2,3};\r\n r2 = new double[]{1,3,2}; \r\n assertEquals(-1, instance.compare(r1, r2));\r\n \r\n r1 = new double[]{1,3,3};\r\n r2 = new double[]{1,3,2}; \r\n assertEquals(1, instance.compare(r1, r2));\r\n \r\n }",
"private boolean comps(int a, int b){\n\t\tthis.comparisons.add(new Integer[]{a, b});\n\t\treturn true;\n\t}",
"public int compare(Item item1, Item item2) {\n\t\t\t\treturn item2.name.compareTo(item1.name)<0\n\t\t\t\t\t\t?0:-1;\n\t\t\t}",
"private Comparison compareValues(SimpleNode first, SimpleNode second) {\n return Objects.equals(first.jjtGetValue(), second.jjtGetValue()) ? Comparison.IS_EQUAL\n : Comparison.notEqual(\"Node values differ: \" + first.jjtGetValue() + \" vs \" + second.jjtGetValue());\n }",
"public Comparison compare(boolean left, boolean right) {\n return checkResult((left == right) ? EQUAL : (left ? GREATER : LESS));\n }",
"public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][] { new double[] { 1, 1 },\n\t\tnew double[] { 1, 2 }, new double[] { 1, 1 - small / 10 },\n\t\tnew double[] { 1, 1 + small / 10 },\n\n\t\tnew double[] { 0, 1 }, new double[] { 0, 0 },\n\t\tnew double[] { 0, -1 }, new double[] { 0, small / 100 },\n\t\tnew double[] { 2100000001.0001, 2100000001.0003 }, };\n\n\t// Output: less, equals\n\tboolean[][] output = new boolean[][] { new boolean[] { false, true },\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true },\n\n\t\tnew boolean[] { true, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, false }, new boolean[] { false, true },\n\t\tnew boolean[] { false, true }, };\n\n\tfor (int i = 0; i < input.length; ++i) {\n\t boolean l = StandardFloatingPointComparator.getDouble().less(\n\t\t input[i][0], input[i][1]);\n\t boolean e = StandardFloatingPointComparator.getDouble().equals(\n\t\t input[i][0], input[i][1]);\n\n\t boolean ne = StandardFloatingPointComparator.getDouble().notEquals(\n\t\t input[i][0], input[i][1]);\n\t boolean le = StandardFloatingPointComparator.getDouble()\n\t\t .lessOrEquals(input[i][0], input[i][1]);\n\t boolean g = StandardFloatingPointComparator.getDouble().greater(\n\t\t input[i][0], input[i][1]);\n\t boolean ge = StandardFloatingPointComparator.getDouble()\n\t\t .greaterOrEquals(input[i][0], input[i][1]);\n\n\t boolean less = output[i][0];\n\t boolean equals = output[i][1];\n\n\t boolean notEquals = !equals;\n\t boolean lessOrEquals = less || equals;\n\t boolean greater = !lessOrEquals;\n\t boolean greaterOrEquals = !less;\n\n\t assertFalse(l != less);\n\t assertFalse(g != greater);\n\t assertFalse(e != equals);\n\t assertFalse(ne != notEquals);\n\t assertFalse(le != lessOrEquals);\n\t assertFalse(ge != greaterOrEquals);\n\t}\n }",
"public int compare(Valuable a, Valuable b) {\n\t\tif(a.getCurrency().equalsIgnoreCase(b.getCurrency())){\n\t\t\tif(a.getValue() - b.getValue() > 0) {\n\t\t\t\treturn +1;\n\t\t\t}\n\t\t\tif(a.getValue() - b.getValue() < 0) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\treturn 0;\n\t\t}\n\t\treturn a.getCurrency().compareToIgnoreCase(b.getCurrency());\n\t}",
"private boolean less(Comparable a, Comparable b) {\n return a.compareTo(b) < 0;\n }",
"public static int cmp(Object a, Object b)\n\t{\n\t\tint c = (int)a;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *d = (int *)b;\n\t\tint d = (int)b;\n\t\treturn c - d;\n\t}",
"public Comparison compare(long left, long right) {\n int result = EQUAL;\n if (left < right) {\n result = LESS;\n } else if (left > right) {\n result = GREATER;\n }\n return checkResult(result);\n }",
"public interface Strategy {\n\n //判断两个数据元素是否相等\n boolean equal(Object obj1, Object obj2);\n\n /**\n * 比较两个数据元素的大小\n * 如果obj1 < obj2 返回-1\n * 如果obj1 = obj2 返回0\n * 35\n * 如果obj1 > obj2 返回1\n */\n int compare(Object obj1, Object obj2);\n\n}",
"public void testEquals() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n }",
"protected abstract boolean equalityTest(Object key, Object key2);",
"@Override\n public int compareTo(BinaryOperator operator) {\n return this.priority.compareTo(((AbstractBinaryOperator)operator).priority);\n }",
"@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }",
"public abstract <S> int visitItemIterator(\n Iterator<S> it1, Iterator<S> it2, CompareToAccept<S> compareToAccept);",
"public static int Compare(Object elem1, Object elem2)\n\t{\n\t\tint p1;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p2;\n\t\tint p2;\n\t\tp1 = (int) elem1;\n\t\tp2 = (int) elem2;\n\t\treturn (p2) - p1;\n\t}",
"public interface Comparator {\n default int compare(Object a, Object b) {\n FeatureExpr ctx = Contexts.model_java_util_Comparator_compare;\n V<?> compareResult = compare__Ljava_lang_Object_Ljava_lang_Object__I(V.one(ctx, a), V.one(ctx, b), ctx);\n V<?> selected = compareResult.select(ctx);\n assert selected.getOne() instanceof java.lang.Integer : \"compare returns non-Integer\";\n return ((java.lang.Integer) selected.getOne());\n }\n V<?> compare__Ljava_lang_Object_Ljava_lang_Object__I(V a, V b, FeatureExpr fe);\n}",
"public boolean compare(Predicate.Op op, Field val) {\n\n IntField iVal = (IntField) val;\n\n switch (op) {\n case EQUALS:\n return value == iVal.value;\n case NOT_EQUALS:\n return value != iVal.value;\n case GREATER_THAN:\n return value > iVal.value;\n case GREATER_THAN_OR_EQ:\n return value >= iVal.value;\n case LESS_THAN:\n return value < iVal.value;\n case LESS_THAN_OR_EQ:\n return value <= iVal.value;\n case LIKE:\n return value == iVal.value;\n }\n\n return false;\n }",
"private int Compare(ResultsClass lhs, ResultsClass rhs) {\n if (lhs.bodyPart > rhs.bodyPart) {\n return 1;\n } else if (lhs.bodyPart > rhs.bodyPart) {\n return -1;\n } else {\n return 0;\n }\n }",
"public int compareTo(items o) {\n\t\treturn this.c > o.c ? 1 : (this.c < o.c ? -1 : 0);\r\n\t}",
"public Comparison compare(float left, float right) {\n return checkResult(Float.compare(left, right));\n }",
"public Comparison compare(double left, double right) {\n return checkResult(Double.compare(left, right));\n }",
"public final void rule__OpCompare__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1885:1: ( ( '>=' ) | ( '<=' ) | ( '>' ) | ( '<' ) )\n int alt6=4;\n switch ( input.LA(1) ) {\n case 17:\n {\n alt6=1;\n }\n break;\n case 18:\n {\n alt6=2;\n }\n break;\n case 19:\n {\n alt6=3;\n }\n break;\n case 20:\n {\n alt6=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 6, 0, input);\n\n throw nvae;\n }\n\n switch (alt6) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1886:1: ( '>=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1886:1: ( '>=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1887:1: '>='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); \n }\n match(input,17,FOLLOW_17_in_rule__OpCompare__Alternatives3973); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpCompareAccess().getGreaterThanSignEqualsSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1894:6: ( '<=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1894:6: ( '<=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1895:1: '<='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpCompareAccess().getLessThanSignEqualsSignKeyword_1()); \n }\n match(input,18,FOLLOW_18_in_rule__OpCompare__Alternatives3993); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpCompareAccess().getLessThanSignEqualsSignKeyword_1()); \n }\n\n }\n\n\n }\n break;\n case 3 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1902:6: ( '>' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1902:6: ( '>' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1903:1: '>'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); \n }\n match(input,19,FOLLOW_19_in_rule__OpCompare__Alternatives4013); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpCompareAccess().getGreaterThanSignKeyword_2()); \n }\n\n }\n\n\n }\n break;\n case 4 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1910:6: ( '<' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1910:6: ( '<' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1911:1: '<'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); \n }\n match(input,20,FOLLOW_20_in_rule__OpCompare__Alternatives4033); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpCompareAccess().getLessThanSignKeyword_3()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public int compare(ArrayList<Object> obj1, ArrayList<Object> obj2) {\n if (obj1.get(0).equals(obj2.get(0))) {\n return (int) Math.ceil((Double) obj1.get(1) - (Double) obj2.get(1));\n }\n // higher BV first\n return (int) Math.ceil((Double) obj2.get(0) - (Double) obj1.get(0));\n }",
"@Override\n public int compare(Object arg0, Object arg1) {\n int a = arg0.hashCode();\n int b = arg1.hashCode();\n int accum;\n if (a == b) {\n accum = 0;\n } else if (a > b) {\n accum = 1;\n } else {\n accum = -1;\n }\n return accum;\n }",
"@Override\n public int compare(Tuple2<String, Long> o1, Tuple2<String, Long> o2) {\n return -(o1.f1.compareTo(o2.f1));\n }",
"@Override\n public int compare(CostVector o1, CostVector o2) {\n int i = 0;\n while (i < o1.getCosts().length && o1.getCosts()[i] == o2.getCosts()[i]) {\n i++;\n }\n if (i != o1.getCosts().length) {\n return o1.getCosts()[i] > o2.getCosts()[i] ? 1 : -1;\n } else {\n return 0;\n }\n }",
"@Override\n\tpublic Object visit(ASTEquality node, Object data)\n\t{\n\t\treturn visitOperatorNode(node, data);\n\t}",
"protected abstract Comparison getInstance();",
"java.lang.String getOperator();",
"public int compare(ListNode o1, ListNode o2) {\n return o1.val-o2.val;\n }",
"@Override\n public InterpreterValue smaller_equals(InterpreterValue v) {\n\n // If the given value is a IntegerValue then check if the value is smaller than\n // or equal to the own value and return a BooleanValue\n if(v instanceof IntegerValue) return BooleanValue.from(getValue() <= ((IntegerValue) v).getValue());\n\n // If the given value is a DoubleValue then check if the value is smaller than\n // or equal to the own value and return a BooleanValue\n if(v instanceof DoubleValue) return BooleanValue.from(getValue() <= ((DoubleValue) v).getValue());\n\n // In other case just throw an error\n throw new Error(\"Operator '<=' is not defined for type integer and \" + v.getName());\n\n }",
"public boolean compare(int i, int j);",
"private int compare(T a, T b) {\r\n\t\tint r = -1;\r\n\t\tif (a instanceof Comparable) {\r\n\t\t\tr = ((Comparable) a).compareTo(b);\r\n\t\t}\r\n\t\treturn r;\r\n\t}",
"@Override\n\tpublic int compare(Assignment a1, Assignment a2) {\n\t\tif (a1.weight > a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight > a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight < a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight < a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight == a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight == a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight < a2.weight) return 1;\n\t\tif (a1.weight > a2.weight) return -1;\n\t\treturn 0;\n\t}",
"@Override\n\t\tpublic int compare(Object a, Object b) {\n\t\t\tif(hm.get(a)>hm.get(b))\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\t\tSystem.out.println(\"comparision occur\");\n\t\t\tif (a instanceof IntPair && b instanceof IntPair) {\n\t\t\t\treturn ((IntPair) a).id.compareTo(((IntPair) b).id);\n\t\t\t}\n\t\t\treturn super.compare(a, b);\n\t\t}",
"public int compare(Person a, Person b){\n int aWeight = (int)a.getWeight();\n int bWeight = (int)b.getWeight();\n return aWeight - bWeight;\n }",
"public static Object gt(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) > 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) > 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in gt\");\n\t}",
"@Override\n\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\tIntPaire o1 = (IntPaire) a;\n\t\tIntPaire o2 = (IntPaire) b;\n\t\tif(!o1.getFirstKey().equals(o2.getFirstKey())){\n\t\t\treturn o1.getFirstKey().compareTo(o2.getFirstKey());\n\t\t}else{\n\t\t\treturn o1.getSecondKey() - o2.getSecondKey();\n\t\t}\n\t}",
"@Override\n\tpublic int compare(Object o1, Object o2) {\n\t\tint a1=((TestBig)o1).a;\n\t\tint a2=((TestBig)o2).a;\n\t\tif(a1<a2)\n\t\t\treturn 1;\n\t\treturn -1;\n\t}"
] |
[
"0.69079524",
"0.63857514",
"0.629438",
"0.62926",
"0.6185235",
"0.6178103",
"0.6178103",
"0.61687386",
"0.60852754",
"0.59400725",
"0.59383225",
"0.5928022",
"0.5923313",
"0.5910251",
"0.58801514",
"0.5874487",
"0.58733565",
"0.5848431",
"0.5842923",
"0.5822667",
"0.58111167",
"0.580362",
"0.58017206",
"0.5729909",
"0.5725538",
"0.5724474",
"0.57157266",
"0.5668442",
"0.5667035",
"0.56411",
"0.5622173",
"0.5617655",
"0.561675",
"0.5583858",
"0.5554797",
"0.555388",
"0.55523264",
"0.555156",
"0.55431545",
"0.5541429",
"0.55366874",
"0.5532058",
"0.55273837",
"0.5525769",
"0.5516122",
"0.55087984",
"0.55065304",
"0.5505062",
"0.54963255",
"0.5484113",
"0.548252",
"0.5474482",
"0.5454198",
"0.5445612",
"0.54286873",
"0.54180515",
"0.5416295",
"0.54070103",
"0.5391244",
"0.5387707",
"0.53773457",
"0.5375648",
"0.53715783",
"0.53674597",
"0.5350485",
"0.5340932",
"0.5336242",
"0.53304344",
"0.5328274",
"0.5320122",
"0.5317476",
"0.5314623",
"0.5312189",
"0.5311412",
"0.5311377",
"0.5304643",
"0.5296981",
"0.5295447",
"0.52945256",
"0.5289597",
"0.52867955",
"0.5279928",
"0.52762806",
"0.5271264",
"0.5266816",
"0.5264182",
"0.52630585",
"0.5260335",
"0.5258825",
"0.5257319",
"0.52564484",
"0.52541703",
"0.5253579",
"0.5247621",
"0.5244567",
"0.5244296",
"0.5241656",
"0.522295",
"0.52183896",
"0.5216493"
] |
0.7124435
|
0
|
Returns the members of the item if it is an array.
|
public List<Item> getItems() {
throw new OurBadException("Item '" + this.serialize() + "' is not an array.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public T[] items();",
"public String[] getArray(){\n return (String[])this.items.toArray();\n }",
"public Object[] getItems()\n {\n return items.toArray();\n }",
"public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }",
"@SuppressWarnings(\"unchecked\")\n\tpublic T[] asArray() {\n\t\t// have to use explicit cast because we cannot use the alternative signature of toArray(T[]), as you cannot instantiate an array of a\n\t\t// type parameter (not even an empty array)\n\t\treturn (T[]) this.itemList.toArray();\n\t}",
"default <A> A getItemsAs( Class<A> arrayTypeClass ) {\n return DataConverter.get().convert( getRawItems(), arrayTypeClass );\n }",
"public com.scene7.www.ipsapi.xsd._2016_01_14_beta.AssetArray getMemberArray() {\n return this.localMemberArray;\n }",
"Item[] getMembers() throws AccessManagementException;",
"public boolean isArray();",
"Object[] getChildArray();",
"public Item[] getItems()\n {\n return items;\n }",
"public List getArraySpecifiers() {\n \tif (member == null)\n \t\treturn null;\n return member.getArraySpecifiers();\n }",
"public Item[] getItem() {\r\n return localItem;\r\n }",
"public Item[] getItems() {\n return items.toArray(new Item[0]);\n }",
"public Object[] getElements() {\r\n\t\treturn data.toArray();\r\n\t}",
"public String[] getArrayValue();",
"ArrayMixedObject getArray() {\n\t\treturn array;\n\t}",
"public Object getArray() {\n\t\treturn array;\n\t}",
"public static boolean isArray_amtype() {\n return false;\n }",
"public boolean isArrayType()\n/* */ {\n/* 138 */ return true;\n/* */ }",
"public boolean isArray() {\n\t\treturn _array;\n\t}",
"public org.hl7.fhir.ResourceReference[] getMemberArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MEMBER$14, targetList);\n org.hl7.fhir.ResourceReference[] result = new org.hl7.fhir.ResourceReference[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public Item[] toItemArray()\r\n {\r\n Item[] a = new Item[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Item) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"void visitArrayField(FieldAttributes f, Type typeOfF, Object obj);",
"@Override\n public T[] toArray() {\n T[] result = (T[])new Object[numItems];\n for(int i = 0; i < numItems; i++)\n result[i] = arr[i];\n return result;\n }",
"protected Object[] getArray(){\r\n\t \treturn array;\r\n\t }",
"protected String[] arrayParser(String item){\n return item.replaceAll(\"\\\\{|\\\\}|\\\\[|\\\\]|(\\\\d+\\\":)|\\\"|\\\\\\\\\", \"\").split(\",\");\n }",
"public static boolean isArray_infos_type() {\n return false;\n }",
"@SuppressWarnings( {\"unchecked\"})\n\t\t\tString[] getStuff() { \n\t\t\t\treturn (String[]) getSeveral().toArray(new String[getSeveral().size()]);\n\t\t\t}",
"public BasicAttributesGrammarAccess.ArrayValueElements getArrayValueAccess() {\n\t\treturn gaBasicAttributes.getArrayValueAccess();\n\t}",
"public nc.vo.crd.acc.feeaccr.feeaccrbvo.FeeAccrBVO[] getFeeAccrBVOItemArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(FEEACCRBVOITEM$2, targetList);\n nc.vo.crd.acc.feeaccr.feeaccrbvo.FeeAccrBVO[] result = new nc.vo.crd.acc.feeaccr.feeaccrbvo.FeeAccrBVO[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"@SuppressWarnings (\"rawtypes\") public java.util.List getItems(){\n return this.items;\n }",
"ISourceType[] getMemberTypes();",
"public java.lang.String[] getMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n java.lang.String[] result = new java.lang.String[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getStringValue();\n return result;\n }\n }",
"public Object getValueArray(int offset, int length);",
"private Object[] elements() {\n return elements.toArray();\n }",
"public boolean isArray(){\n\t\treturn false;\n\t}",
"public Expression getArray()\n {\n return getExpression();\n }",
"@Nonnull\n public AnyType getArrayType() {\n return arrayType;\n }",
"private Object[] getSamplePropertiesAsArray()\n {\n return (swp.get(0)).getPropertyTypes().toArray();\n\n }",
"@Override\n @SuppressWarnings(\"rawtypes\")\n public Object[] getElements(Object inputElement) {\n if (inputElement instanceof Object[]) {\n return (Object[])inputElement;\n }\n if (inputElement instanceof Collection) {\n return ((Collection)inputElement).toArray();\n }\n return new Object[0];\n }",
"public org.apache.xmlbeans.XmlString[] xgetMappingFieldsArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(MAPPINGFIELDS$28, targetList);\n org.apache.xmlbeans.XmlString[] result = new org.apache.xmlbeans.XmlString[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public boolean isArray() {\n return false;\n }",
"public boolean isArray() {\n return false;\n }",
"public ArrayOfItem getItem() {\r\n return localItem;\r\n }",
"public static boolean isArray_infos_metadata() {\n return true;\n }",
"public Collection members() {\n return this.<Collection>get(\"members\");\n }",
"public String[] getItemNames();",
"public List<Item> getValues() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }",
"@Override\n public Object[] toArray() {\n Object[] result = new Object[currentSize];\n System.arraycopy(container, 0, result, 0, currentSize);\n return result;\n }",
"public ArrayList<String[]> getArr() {\r\n\t\treturn arr;\r\n\t}",
"public static boolean isArray_dataType() {\n return false;\n }",
"@Override\n public boolean isArray() {\n return false;\n }",
"public static boolean isArray_data() {\n return true;\n }",
"public Object[] getElements(Object element) {\n\t\t\treturn ((ArrayList) element).toArray();\r\n\t\t}",
"public Object[] getValues();",
"public SubMenuItem[] getArray() {\n return this.toArray(new SubMenuItem[this.size()]);\n }",
"protected int getNumArrayMembers()\n {\n return numArrayMembers;\n }",
"public com.walgreens.rxit.ch.cda.StrucDocSub[] getSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(SUB$2, targetList);\n com.walgreens.rxit.ch.cda.StrucDocSub[] result = new com.walgreens.rxit.ch.cda.StrucDocSub[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public List<ReturnItem> getItems() {\n return (List<ReturnItem>) get(\"items\");\n }",
"public java.util.List<java.util.Map<String, AttributeValue>> getItems() {\n return items;\n }",
"@JSProperty(\"items\")\n @Nullable\n Any[] getItems();",
"public PurchaseItem[] getPurchaseListAsArray()\r\n\t{\r\n\t\treturn m_purechaseList.toArray(new PurchaseItem[0]);\r\n\t}",
"default boolean isArray() {\n return false;\n }",
"ArrayList<String> returnArray() {\n\t\treturn stringArray; // Return just the array and not the Set object\n\t}",
"public java.util.List<java.util.Map<String,AttributeValue>> getItems() {\n \n return items;\n }",
"public void testGetArray() {\n System.out.println(\"getArray\"); // NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n PropertyValue arrayPropertyValue = PropertyValue.createValue(primitveDescritor, type, DesignComponentTest.PROPERTY1_VALUE_STRING); // NOI18N\n List<PropertyValue> array = new ArrayList();\n \n array.add(arrayPropertyValue);\n \n PropertyValue result = PropertyValue.createArray(type,array);\n \n type = type.getArrayType();\n assertEquals(type,result.getType());\n assertNotNull(result.getArray());\n }",
"public class_689[] method_3955() {\r\n return this.field_3403;\r\n }",
"public abstract boolean isArrayParams();",
"Object[] getValues();",
"Object[] getValues();",
"public static void arrayListSubtypeTest()\r\n\t{\r\n\t\tArrayList<Person> persons = new ArrayList<Person>();\r\n\t persons.add(new Person(\"twoa\"));\r\n\t persons.add(new Person(\"threea\"));\r\n\t PrintCollection(persons);\r\n\t // PrintCollection1(persons);\r\n\t PrintCollection2(persons);\r\n\t}",
"public Object[] toArray() {\n Object[] tmp = new Object[this.container.length];\n System.arraycopy(this.container, 0, tmp, 0, tmp.length);\n return tmp;\n }",
"public List<Item> getItems(){\n\t\treturn data;\n\t}",
"public static boolean isArray_group() {\n return false;\n }",
"public Field[][] getFieldArray() {\r\n\t\treturn fieldArray;\r\n\t}",
"public List<Annotation> getMembers();",
"@Test\n public void testToArray_GenericType() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n\n Integer[] expResult = { 1, 2, 3, 4, 5, 6 };\n Integer[] result = instance.toArray(new Integer[] {});\n assertArrayEquals(expResult, result);\n }",
"public final Object[] getArray() {\n return array;\n }",
"public double[] getAsArray() {\n return position.getAsArray();\n }",
"@Override\r\n public boolean isArray() throws Exception\r\n {\n return false;\r\n }",
"protected String[] getExtraInfo(String[] item, int colLength, int itemsWanted){\n String[][] data = new String[item.length][colLength];\n String[] extras = new String[item.length];\n String dataString = \"\";\n\n //getting all the data back except grade names\n for(int i = 0; i < itemsWanted; i++) {\n data[i] = arrayParser(item[i+1]);\n }\n\n //Store all data for 1 assignment together\n for(int i = 0; i < colLength; i++) {\n for(int j = 0; j < itemsWanted; j++) {\n dataString += data[j][i] + \"%\";\n }\n extras[i] = dataString;\n dataString = \"\";\n }\n\n return extras;\n }",
"public Object[] getElements(Object arg0) {\n\t\t\t\tRoomFactory roomFactory=(RoomFactory)arg0;\r\n\t\t\t\treturn roomFactory.getRoomList().toArray();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic Object[] toArray() {\n\t\tObject[] result = copyArray(elements, size);\n\n\t\treturn result;\n\t}",
"@Override\n public R visitArrayType(ArrayTypeNode n, P p) {\n return visitNode(n, p);\n }",
"public O[] toArray()\r\n {\r\n\r\n @SuppressWarnings(\"unchecked\")\r\n O[] a = (O[]) new Object[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"@Test\r\n\tpublic void testToArray() {\r\n\t\tObject[] sample = list.toArray();\r\n\t\tAssert.assertEquals(15, sample.length);\r\n\t\tfor (int i = 0; i < sample.length; i++) {\r\n\t\t\tAssert.assertNotNull(sample[i]);\r\n\t\t}\r\n\t}",
"public static Items[] listAllItems() {\r\n List<Items> items = dao().listAllItems();\r\n return items.toArray(new Items[items.size()]);\r\n }",
"@SuppressWarnings(\"rawtypes\")\n\t@Test\n\tpublic void retrieveArrays() {\n\t\tObjectSet result = db.queryByExample(new double[] { 0.6, 0.4 });\n\t\tlistResult(result);\n\n\t\t// Important note QBE does not work well with arrays\n\t\tassertEquals(0, result.size());\n\n\t}",
"protected abstract Object[] getData();",
"public java.lang.Object[] getArbolesAsArray()\r\n {\r\n return (arboles == null) ? null : arboles.toArray();\r\n }",
"@Override\n public Object[] toArray() {\n Object[] result = new Object[size];\n int i = 0;\n for (E e : this) {\n result[i++] = e;\n }\n return result;\n }",
"HRESULT SafeArrayGetVartype(SAFEARRAY psa, VARTYPEByReference pvt);",
"public Item getItems() {\n return items;\n }",
"public int[] getInnerArray() {\n\t\treturn data;\n\t}",
"public String[] toStringArray()\r\n {\r\n String[] a = new String[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (String) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"public String[] getItemNames() {\n String[] names = new String[this.size()];\n for (int i = 0; i < names.length; i++) {\n names[i] = this.get(i).getItemName();\n }\n return names;\n }",
"public java.lang.Object[] getPresentationAsArray();",
"@Override\r\n\tpublic Object[] getElements(Object inputElement) {\n\t\treturn ((List) inputElement).toArray();\r\n\t}",
"public nl.webservices.www.soap.GCRItem[] getItems() {\n return items;\n }"
] |
[
"0.63006836",
"0.6265776",
"0.6101396",
"0.6067174",
"0.60353416",
"0.57250255",
"0.57003254",
"0.5685102",
"0.56510025",
"0.55971676",
"0.5579277",
"0.5563912",
"0.5556903",
"0.55409557",
"0.54953134",
"0.54926646",
"0.5491153",
"0.54846334",
"0.5443742",
"0.5431874",
"0.54308814",
"0.5420432",
"0.5409044",
"0.54033136",
"0.54009783",
"0.5378995",
"0.5372794",
"0.5356675",
"0.5279596",
"0.52694553",
"0.52644485",
"0.52609867",
"0.5253595",
"0.5251693",
"0.5234051",
"0.5222583",
"0.51904094",
"0.518",
"0.51748604",
"0.51587266",
"0.5153919",
"0.515072",
"0.514012",
"0.514012",
"0.5130596",
"0.5109082",
"0.50989246",
"0.50739664",
"0.50615215",
"0.50596786",
"0.5058227",
"0.50538725",
"0.50530624",
"0.50511175",
"0.5040286",
"0.5035401",
"0.50164527",
"0.50117725",
"0.49960494",
"0.4990395",
"0.49891672",
"0.49888697",
"0.4982963",
"0.49716207",
"0.4969002",
"0.4962842",
"0.4962023",
"0.4959776",
"0.4947233",
"0.49419245",
"0.49419245",
"0.49398643",
"0.49324262",
"0.4932074",
"0.49291345",
"0.49189198",
"0.49143055",
"0.49113932",
"0.4909489",
"0.49083665",
"0.49051785",
"0.49047202",
"0.49023086",
"0.4900559",
"0.48982772",
"0.4895396",
"0.48888075",
"0.48828462",
"0.4881319",
"0.4881274",
"0.48756555",
"0.48726392",
"0.48673826",
"0.48661023",
"0.48650178",
"0.48634842",
"0.48586777",
"0.48579067",
"0.48494646",
"0.48480606"
] |
0.63360804
|
0
|
Returns the member of the item at the specified position if it is an array.
|
public Item getItemAt(int position) {
throw new OurBadException("Item '" + this.serialize() + "' is not an array.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Object getArrayElement(int index);",
"Object getArrayElement(int index);",
"@Override\n public T get(int idx) {\n //if item is within the bounds of the array list, it is returned others null is returned\n if (idx >= 0 && idx<=size){\n return arr[idx+1];\n } else {\n return null;\n }\n\n }",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn array.get(position);\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\t\tpublic U get(int idx){\r\n\t \tif ((idx < 0)|| (idx > numElems-1))\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//Uses cast to take U object out of generic-less array\r\n\t \treturn (U) array[idx];\r\n\t }",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn message.array.get(position);\n\t\t}",
"@Override\n public T get(int position) {\n if (!validate(position)) {\n throw new ArrayIndexOutOfBoundsException(\"Bad position!\");\n }\n return (T) this.values[position];\n }",
"public Object elementAt(int index);",
"public Object[] elementAt(int index);",
"public Object get(int index) {\n\tif(index > arr.length) return null;\n\treturn arr[index];\n}",
"@Override\n public T get(int index) {\n return (T) array[index];\n }",
"@Override\n public E get(final int index) {\n return array[index];\n }",
"public abstract Object get(int pos) throws IndexOutOfBoundsException;",
"@Override\n public T get(int index) {\n if (index < 0 || index >= size) {\n return null;\n }\n int position = index + plusOne(nextFirst);\n if (position >= array.length) {\n position -= array.length;\n return array[position];\n } else {\n return array[position];\n }\n }",
"public AnyType get(AnyType key) {\n \tif (contains(key)) {\n \t\tint currentPos = findPos( key );\n \t\t\treturn ((array[currentPos] != null) ? array[currentPos].value : null); \n \t}\n \telse {\n \t\treturn null;\n \t}\n }",
"public T get(int pos);",
"public Object getItem(int position) {\n\t\treturn mNamesArray[position % 12];\n\t}",
"public Type get(int index);",
"public int get(int index) {\n return array[index];\n }",
"public U getFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls get\r\n\t \treturn get(0);\r\n\t }",
"public Object getItem(int position) {\n\t\ttry {\n\t\t\treturn jsonArray.getJSONObject(position);\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"@Nullable\n public T getItem(@IntRange(from = 0) int position) {\n if (position < mData.size())\n return mData.get(position);\n else\n return null;\n }",
"T get(int position);",
"Object getElementAt(int index);",
"public int elementAt(int position) {\n\tif (position >= 0 && position < length() ) {\n\t if (position == 0) return datum;\n\t else return next.elementAt(position - 1);\n\t}\n\telse throw new RuntimeException(\"precondition violated\");\n }",
"public Object get(int index);",
"public Object get(int index);",
"@Override\n @SuppressWarnings(\"unchecked\")\n public T get(int index)\n {\n return (T) array[index];\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate T access(Object partOfArayDim, int position, T setValue, boolean update, int... indices) {\n\t\tif (partOfArayDim == null) {\n\t\t\tthrow new NullPointerException(\"array part is null\");\n\t\t} else if(partOfArayDim.getClass().isArray() == false) {\n\t\t\tthrow new IllegalArgumentException(\"object is not an array: \"+partOfArayDim);\n\t\t} else if(indices.length != size.length) {\n\t\t\tthrow new IllegalArgumentException(\"indices length for wrong dimension: \"+indices.length);\n\t\t}\n\t\tint index = -1;\n\t\ttry {\n\t\t\tindex = indices[position];\n\t\t\tif (position == indices.length-1) {\n\t\t\t\tif (update) {\n\t\t\t\t\tArray.set(partOfArayDim, index, setValue);\n\t\t\t\t}\n\t\t\t\tObject result = Array.get(partOfArayDim, index);\n\t\t\t\treturn (result == null) ? null : (T) result;\n\t\t\t}\n\t\t\tObject element = Array.get(partOfArayDim, index);\n\t\t\treturn access(element, position+1, setValue, update, indices);\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\tthrow new IndexOutOfBoundsException(\"index is out of bounds: \"+index);\n\t\t}\n\t}",
"public int getDigit(int position) {\r\n return array[position];\r\n }",
"public Object getValue()\n {\n Object[] a = (Object[]) getArray().getValue();\n int i = ((Number) getIndex().getValue()).intValue();\n\n return a[i];\n }",
"public String get(int position)\n\t{\n\t\treturn data[position];\n\t}",
"public Object get(int index) {\n\t\tif(index <= arr.length-1) return arr[index];\n\t\treturn null;\n\t}",
"public TypeHere get(int i) {\n return items[i];\n }",
"@Override\n\tpublic E get(int i) {\n\t\tif (i < 0 || i >= this.numberOfElements) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse {\n\t\t\treturn this.arrayList[i];\n\t\t}\n\t}",
"public T get(int position) {\n if (this.getSize() > 0) {\n return buffer[position];\n }\n return null;\n }",
"public int getElementAtIndex(int index){\r\n return mArray[index];\r\n }",
"private int getArrayValue(int position)\n {\n if(currentHash == 1)\n return array1[position];\n else\n return array2[position];\n }",
"public E get(int idx) {\n assert idx >= 0;\n \n if(v == array[idx]){\n\t\tv = array[idx];\n\t}\n\t\n\tif(array[idx] == null){\n\t\tv = null;\n\t}\n\treturn v;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic T get(int pos){\n\t\tif(pos >= 0 && pos < currentsize ){\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\n\t\treturn (T) data[pos];\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\n\t\tif (position < arrDepartment.size()) {\n\t\t\treturn arrDepartment.get(position);\n\t\t} else {\n\t\t\treturn arraySYS_User.get(arrDepartment.size() - position);\n\t\t}\n\t}",
"default V get() {\n V item = orElseNull();\n if ( item == null )\n throw new IllegalArgumentException(\"No item at the targeted position!\");\n return item;\n }",
"public T get(int pos) {\n if (pos > nrOfElements) {\n throw new IllegalArgumentException(\"Position out of range\");\n }\n\n // Get the first element\n if (pos == 1 || pos == 0) {\n return this.first.getData();\n }\n\n Node walker = this.first;\n for (int i = 0; i < pos - 1; i++) {\n walker = walker.next;\n }\n\n return walker.getData();\n }",
"Object get(int index);",
"Object get(int index);",
"public Object getObject(int pos) {\n return elements.get(pos);\n }",
"public T get(int position)\n {\n if (position >= size || position < 0)\n {\n throw new IndexOutOfBoundsException(\"Item is out of bounds of the list\");\n }\n\n return (T) list[position];\n }",
"@Override\n\tpublic UserImage getItem(int position)\n\t{\n\t\treturn arrayList.get(position);\n\t}",
"public XSSimpleType getMember(final int idx) {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: ddiv \n // 1: ldiv \n // 2: laload \n // 3: drem \n // 4: lneg \n // 5: fdiv \n // 6: laload \n // 7: ishl \n // 8: ldiv \n // 9: idiv \n // 10: laload \n // 11: ishl \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- -------------------------------------------\n // 0 12 0 this Lcom/sun/xml/xsom/impl/UnionSimpleTypeImpl;\n // 0 12 1 idx I\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }",
"public native String getItem(Number index);",
"@Override\n public E get(int i) throws IndexOutOfBoundsException {\n checkRange(i);\n\n if (size == 1) {\n return (E) storage;\n } else if (size <= 5) {\n return ((E[]) storage)[i];\n } else {\n return ((ArrayList<E>) storage).get(i);\n }\n }",
"default V item( int i ) { return getDataAt( indexOfIndex( i ) ); }",
"public Object getItem(int position) {\n\t\treturn data.get(position);\r\n\t}",
"public int get(int i) {\n\t\tassert i < size();\n\t\treturn arr[i];\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn arrItems.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn str[position];\n\t}",
"@Override\n // worst-case complexity: O(1), it's basically just an array access\n public T get(int index) {\n if (index < size && index >= 0)\n return arr[index];\n // else throw an exception\n throw new IndexOutOfBoundsException();\n }",
"public Object getValue(int index);",
"public synchronized E get(int index) {\n return this.array.get(index);\n }",
"@Override\n public Object getChild(int groupPos, int childPos) {\n return item.get(groupPos).elements.get(childPos);\n }",
"public Object getItem(int position) {\n\t\t\treturn gnombre[position];\n\t\t}",
"@Override\n\tpublic Object getChild(int sectionPosition, int childPosition) {\n\t\treturn sections.get(sectionPosition).getArrayChildren().get(childPosition);\n\t}",
"E get(int i) {\r\n @SuppressWarnings(\"unchecked\")\r\n final E e = (E)arr[i];\r\n return e;\r\n }",
"public TitleDTO getItem(int position) {\n\t\t\treturn arrTitle.get(position);\n\t\t}",
"public TitleDTO getItem(int position) {\n\t\t\treturn arrTitle.get(position);\n\t\t}",
"public T at(final int position) {\n return Query.at(iterable, position);\n }",
"public T returnItem(int i) {\n return a[i];\n }",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"public double get(Double[] ipos);",
"public T get(int index){ return this.isUpgraded ? this.linkArray.get(index) : this.nativeArray.get(index); }",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn grpcallinginfo.getUserCallingGrpsMemberInfo(position);\n\t\t}",
"int getItem(int index);",
"public long getElem(int index) {\r\n return a[index];\r\n }",
"default <A> A getItemsAs( Class<A> arrayTypeClass ) {\n return DataConverter.get().convert( getRawItems(), arrayTypeClass );\n }",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public E getElement(int position){\r\n\t\t// Position is larger than the current size.\r\n\t\tif(checkPosition(position)){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn getDoubleNodeAt(position).element;\r\n\t}",
"@Override\n\t\t\tpublic int getItemType(int realPosition) {\n\n\t\t\t\treturn realPosition % 5;\n\t\t\t}",
"public ChildType getChildAt( int index );",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn mImageString[position];\n\t}",
"@Override\n\tpublic T get(int index) {\n\t\tif (index >= 0 && index < size) {\n\t\t\treturn data[index];\n\t\t}\n\t\treturn null;\n\t}",
"public E get(int idx, E b) {\n assert idx >= 0;\n\n if(v == array[idx]){\n\t\treturn v;\n\t}\n\t\n\tif(array[idx] == null){\n\t\treturn b;\n\t}\n\treturn b;\n }",
"String getMemberOf();",
"@Override\n public T getItem(final int position) {\n return isCursorAdapter() ? getItemCursor(position): getItemArray(position);\n }",
"public int getElement(int index){\n if(index <0 || index >= array.length){\n throw new RuntimeException(\"Array index out of bound\");\n }\n return array[index];\n }",
"@Override\n\tpublic T get(int indice) {\n\t\tif (indice >= 0 && indice < tamanho) {\n\t\t\treturn elementosDaLista[indice];\n\t\t}\n\t\treturn null;\n\t}",
"public Item get(int i);",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn result.get(position);\n\t}",
"public int getElement(int index) {\r\n\t\t//Defensive\r\n\t\tif (index < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index less than zero\");\r\n\t\t}\r\n\t\tif (index >= getLength()) {\r\n\t\t\tthrow new IllegalArgumentException(\"Index out of upper bound\");\r\n\t\t}\r\n\t\tif (getLength() <= 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"The array does not yet exist\");\r\n\t\t}\r\n\t\t\r\n\t\treturn getNodeAt(index).value;\r\n\t}",
"@Override\n\tpublic E get(int idx) {\n\t\tE element = null;\n\t\tif (idx < 0 || idx >= size)\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\telement = list[idx];\n\t\treturn element;\n\t}",
"public Object getValueArray(int offset, int length);",
"public T get(int index) throws IndexOutOfBoundsException {\n checkException(index);\n return arr[index];\n }",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn mData.get(position);\r\n\t}",
"@Override\n public T get(int index) {\n return indexCheck(index) ? (T) data[index] : null;\n }",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn data.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn data.get(position);\n\t}"
] |
[
"0.6767934",
"0.6767934",
"0.60109526",
"0.5953543",
"0.58883786",
"0.5735684",
"0.5730739",
"0.5598892",
"0.55774134",
"0.5546945",
"0.5521971",
"0.55104065",
"0.549517",
"0.5489246",
"0.5432666",
"0.5425802",
"0.5402669",
"0.53609025",
"0.5337789",
"0.53263175",
"0.52831036",
"0.52812517",
"0.5274599",
"0.5270702",
"0.52689976",
"0.524865",
"0.524865",
"0.52347463",
"0.5232604",
"0.52286214",
"0.52245885",
"0.52217484",
"0.5220882",
"0.5210102",
"0.52100605",
"0.52007854",
"0.5172015",
"0.5156625",
"0.51506126",
"0.5139052",
"0.5137817",
"0.5134461",
"0.51267755",
"0.512599",
"0.512599",
"0.5122784",
"0.51134574",
"0.51018614",
"0.50931394",
"0.5091155",
"0.5090953",
"0.50845355",
"0.5074749",
"0.50706196",
"0.5068636",
"0.506374",
"0.505968",
"0.5049693",
"0.5045171",
"0.5036767",
"0.5033324",
"0.502348",
"0.5020509",
"0.49877456",
"0.49877456",
"0.49860087",
"0.4971902",
"0.4964283",
"0.4964283",
"0.4964283",
"0.49603015",
"0.4959505",
"0.49580917",
"0.49454173",
"0.4943964",
"0.49436933",
"0.49384502",
"0.49384502",
"0.49384502",
"0.49384502",
"0.49248815",
"0.4923076",
"0.4921942",
"0.49146828",
"0.4912261",
"0.4911732",
"0.4896276",
"0.48935008",
"0.4891829",
"0.48898497",
"0.48870024",
"0.48832533",
"0.48823893",
"0.488145",
"0.48803854",
"0.48759887",
"0.48750654",
"0.48730665",
"0.48658153",
"0.48658153"
] |
0.60756016
|
2
|
Appends an item, if it is an array.
|
public void putItem(Item item) {
throw new OurBadException("Item '" + this.serialize() + "' is not an array.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }",
"public void append(Object item);",
"private String[] addItemToArray(String item, String[] myArray) {\n if (!ApiFunctions.isEmpty(item)) {\n if (ApiFunctions.isEmpty(myArray)) {\n return myArray = new String[] { item };\n }\n else {\n String[] temp = new String[myArray.length + 1];\n System.arraycopy(myArray, 0, temp, 0, myArray.length);\n temp[temp.length - 1] = item;\n return temp;\n }\n }\n else {\n return null;\n }\n }",
"@Override\n\tpublic boolean add(E item) {\n\t\tif (this.numberOfElements == this.size) {\n\t\t\tE[] newArrayList = (E[]) new Object[this.size * 2];\n\t\t\tint i = 0;\n\t\t\twhile (i < this.size) {\n\t\t\t\tnewArrayList[i] = this.arrayList[i];\n\t\t\t\ti += 1;\n\t\t\t}\n\t\t\tthis.arrayList = newArrayList;\n\t\t\tthis.size = this.size * 2;\n\t\t}\n\t\tthis.arrayList[this.numberOfElements] = item;\n\t\tthis.numberOfElements += 1;\n\t\treturn true;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(T item){\n\t\t\n\n\t\tif(currentsize == data.length-1){\n\t\t\tgrow();\n\t\t}\n\n\t\t\n\t\tdata[currentsize] = item;\n\t\tcurrentsize++;\n\n\n\t}",
"@Override\n public boolean add(T item) {\n // if the last spot in the array is unoccupied, item is simply added to the first empty spot\n if (arr[arr.length-1]!=null) {\n arr[size + 1] = item;\n size++;\n }\n // if array is full, number of spots is doubled and item is added\n if (arr[arr.length-1]== null){\n grow();\n arr[size+1] = item;\n size++;\n }\n return true;\n }",
"@Override\n public void addLast(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n } else {\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n }\n size += 1;\n }",
"@Override\n\tpublic boolean add(T insertItem) {\n\t\t// TODO Just add the item to the array\n\t\tif (isFull()) {\n\t\t\treturn false;\n\t\t}\n\t\tdata[size++] = insertItem;\n\t\treturn true;\n\t}",
"@Override\n // worst-case complexity: O(n), since it might need to resize itself\n // amortised average-case complexity: O(1), since resizing happens too\n // too infrequent to affect the actual complexity\n public void add(T item) {\n if (size >= arr.length)\n arr = resize(arr, EXPAND_FACTOR);\n // we add the item to the end and then increment the size\n arr[size++] = item;\n }",
"@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }",
"public void addToEnd(T obj) {\r\n \t\t// Check obj is not null\r\n \t\tif(obj == null) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// Check if items is full\r\n \t\tif(numItems == items.length) {\r\n \t\t\tdoubleArrayLength();\r\n \t\t}\r\n \t\titems[numItems++] = obj;\r\n \t}",
"@Override\n public boolean add(T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i];\n }\n newArray[size] = object;\n this.size++;\n this.array = newArray;\n return true;\n }",
"@Override\n public void add(Object item)\n {\n if (size == list.length)\n {\n Object [] itemInListCurrently = deepCopy();\n list = new Object[size * 2];\n\n System.arraycopy(itemInListCurrently, 0, list, 0, size);\n }\n\n list[size++] = item;\n }",
"public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}",
"@Override\n public void add(T t) {\n checkIfArrayFull();\n\n arrayList[elementsInArray] = t;\n elementsInArray++;\n }",
"public void addLast(T item) {\n if (size == 0) {\n array[rear] = item;\n size++;\n return;\n }\n\n this.checkReSizeUp();\n rear++;\n this.updatePointer();\n array[rear] = item;\n size++;\n }",
"public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}",
"void append(E[] elements);",
"public E push(E item) {\n try {\n stackImpl.push(item);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Array is full. Switching to unbound implementation\");\n StackImplementationIF<E> stackImplTemp = new ListStack<E>();\n for (Enumeration en = new ImplIterator<E>(this); en.hasMoreElements();) {\n E c = (E) en.nextElement();\n stackImplTemp.push(c);\n }\n stackImpl = stackImplTemp;\n stackImpl.push(item);\n }\n return item;\n }",
"public void add( Comparable newVal ) {\n \t//if _data is full, expand the array\n \tif (_size == _data.length){\n\t \texpand();\n \t}\n \t\n\tset(_lastPos + 1, newVal);\n \t//increases _lastPos and _size\n \t_lastPos++;\n \t_size++;\n }",
"@SuppressWarnings(\"rawtypes\")\n void addToArray(Pair<ArrayList<Object>> arr, Pair add)\n {\n arr.parsed.add(add.parsed);\n arr.unparsed = arr.unparsed.substring(0, arr.unparsed.length() - 1);\n if (arr.unparsed.length() > 1)\n arr.unparsed += \",\";\n arr.unparsed += add.unparsed + \"]\";\n }",
"public ReturnObject add(Object item) {\n ReturnObjectImpl rtn = new ReturnObjectImpl();\n if (item == null) {\n rtn.setError(ErrorMessage.INVALID_ARGUMENT);\n } else {\n rtn.setObj(item);\n extendArray();\n AL[size()-1] = item;\n }\n return rtn;\n }",
"public boolean add(Object[] obj) {\n\t\treturn false;\n\t}",
"public native String appendItem(String newItem);",
"@SuppressWarnings(\"unchecked\")\n public void arrayAddValue(LinkedList<String> keyList, Object array, Object value) throws IOException {\n if (value instanceof JSONParseEngine.ByteBuffer) {\n value = value.toString();\n }\n ((ArrayList) array).add(value);\n }",
"public void add(Item item) {\n for (int i = 0; i < items.length; i++) {\n if (items[i] == null) {\n items[i] = item;\n break;\n }\n }\n }",
"public void enqueue(Item item){\n if (item == null){ throw new NullPointerException(\"Cannot add a null item\"); }\n\n // fill the nulls\n if(itemCount < array.length) {\n for(int i=0;i<array.length;i++) {\n if(array[i] == null) {\n array[i] = item;\n break;\n }\n }\n }\n // resize when too big\n if(itemCount == array.length){\n resize(2*itemCount);\n array[itemCount] = item;\n }\n itemCount++; // Item added!!\n }",
"@JRubyMethod(name = \"push\", rest = true)\n public RubyArray push_m(IRubyObject[] items) {\n for (int i = 0; i < items.length; i++) {\n append(items[i]);\n }\n \n return this;\n }",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray.add(arg0);\n\t\t\t}",
"@Override\n\tpublic boolean add(Object e)\n\t{\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\tmyArray[size] = e;\n\t\tsize++;\n\t\treturn false;\n\t}",
"public void add( Object value )\n\t{\n\t\tint n = size();\n\t\tif (addIndex >= n)\n\t\t{\n\t\t\tif (n == 0)\n\t\t\t\tn = 8;\n\t\t\telse\n\t\t\t\tn *= 2;\n\t\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), n );\n\t\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\t\tarray = narray;\n\t\t}\n\t\tArray.set( array, addIndex++, value );\n\t}",
"public boolean add( Object newVal )\n {\n\t//first expand if necessary\n\tif ( _size >= _data.length )\n\t expand();\n\n\t_data[_size] = newVal;\n\t_size++;\n\n\treturn true;\n }",
"public void push(Item s) {\n\t\tif (N == arr.length)\n\t\t\tresize (arr.length*2);\t\n\t\tarr[N++] = s;\n\t}",
"public void append(T element);",
"public void append(T element);",
"public synchronized void add(E value) {\n this.array.add(value);\n }",
"public void append(Item item) {\n Node newNode = new Node();\n newNode.item = item;\n Node lastNode = findNode(size);\n newNode.next = head;\n lastNode.next = newNode;\n size++;\n }",
"void append(E[] elements, int off, int len);",
"void addToEnd(Object[] by);",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"public boolean add(Type item);",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}",
"@Override\n\t\t\tpublic void apply(Document arg0) {\n\t\t\t\tarray_bp.add(arg0);\n\t\t\t}",
"public void appendToRoot( Item item ) {\r\n\t\tadd(item);\r\n//\t\tthis.lastAddedItem = item;\r\n\t}",
"@Override\n public boolean add(int index, T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < index; i++) {\n newArray[i] = array[i];\n\n }\n newArray[index] = object;\n for (int i = index + 1; i < array.length; i++) {\n newArray[i] = array[i - 1];\n }\n this.size++;\n this.array = newArray;\n return true;\n }",
"@Override\r\n\tpublic void addItem(AbstractItemAPI item) {\n\t\titems.add(item);\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(AnyType x) {\n\n\t\t// if the array is full, double its capacity\n\t\tif (currentSize == array.length) {\n\n\t\t\tAnyType[] tempArray = (AnyType[]) new Object[array.length * 2];\n\n\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\ttempArray[i] = array[i];\n\t\t\t}\n\t\t\tarray = tempArray;\n\t\t}\n\n\t\t// If the heap is empty, add the item to the first spot\n\t\tif (currentSize == 0) {\n\t\t\tarray[0] = x;\n\t\t\tcurrentSize++;\n\t\t\treturn;\n\t\t}\n\n\t\t// add the new item to the next available node in the tree, so that\n\t\t// complete tree structure is maintained\n\t\tarray[currentSize] = x;\n\n\t\t// update size\n\t\tcurrentSize++;\n\n\t\t// percolate the new item up the levels of the tree until heap order is restored\n\t\tpercolateUp(currentSize - 1);\n\n\t}",
"void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}",
"public ByteArrayImplementation append(ByteArrayImplementation a) {\n byte[] result = new byte[data.length + a.getData().length];\n System.arraycopy(data, 0, result, 0, data.length);\n System.arraycopy(a, 0, result, data.length, a.getData().length);\n return new ByteArrayImplementation(result);\n }",
"private void append(byte[] array, int off, int len) throws IOException {\n if(buffer == null) {\n buffer = allocator.allocate(limit);\n }\n buffer.append(array, off, len);\n }",
"public void addItem(SalesOrderItem... entity) {\r\n if (toItem == null) {\r\n toItem = Lists.newArrayList();\r\n }\r\n toItem.addAll(Lists.newArrayList(entity));\r\n }",
"public void add(int Item) {\n\t\t\tif (nowLength < MAXSIZE) {\n\t\t\t\tray[nowLength] = Item;\n\t\t\t\tnowLength++;\n\t\t\t}\n\t}",
"public void addItemToList(String[] item) {\n \t\n \tcurrentTaskItems.add(item);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(int pos, T item){\n\n\t\tif(pos > data.length){\n\t\t\tcurrentsize = currentsize*2;\n\t\t}\n\n\t\n\t\tfor(int i = currentsize; i > pos; i--){\n\t\t\tdata[i] = data[i-1];\n\t\t}\n\t\tdata[pos]= item;\n\t\tcurrentsize++;\n\t}",
"@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeight();\n items[curArrayIndex++] = item;\n }\n else {\n System.out.println(item.getDetails() + \" - Overweighted. This item cannot be added!\");\n }\n if (item.isFragile()) {\n setLabel(\"Fragile - Handle with Care\");\n }\n\n }",
"public void addToArray(JsonElement element){\n values.add(element);\n }",
"@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }",
"@Override\n public void enqueue(E e) {\n array.addLast(e);\n }",
"public boolean add(T value) {\n if (size == arr.length) {\n final int newSize = arr.length * 3 / 2 + 1;\n T[] newArr = (T[]) new Object[newSize];\n System.arraycopy(arr, 0, newArr, 0, arr.length);\n this.arr = newArr;\n }\n arr[size++] = value;\n return true;\n }",
"public boolean addNewItem(VendItem item) {\n if (itemCount < maxItems) {\n stock[itemCount] = item;\n itemCount++;\n return true;\n } else {\n return false;\n }\n }",
"public void enqueue(T item) {\r\n\r\n\t\t++item_count;\r\n\t\tif(item_count==arr.length)\r\n\t\t\tdoubleArray();\r\n\t\tarr[++back%arr.length]=item;\r\n\t}",
"public void addLast(Item item) {\r\n if (item == null) {\r\n throw new NullPointerException();\r\n }\r\n if (lastCursor == items.length) {\r\n resize(2 * items.length);\r\n }\r\n items[lastCursor++] = item;\r\n }",
"public void add(byte[] arrby) {\n ByteBuffer byteBuffer;\n ByteBuffer byteBuffer2 = byteBuffer = Blob.this.getByteBuffer();\n synchronized (byteBuffer2) {\n byteBuffer.position(Blob.this.getByteBufferPosition() + this.offset() + this.mCurrentDataSize);\n byteBuffer.put(arrby);\n this.mCurrentDataSize += arrby.length;\n return;\n }\n }",
"void add(byte[] element);",
"@Override\n public void addFirst(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextFirst] = item;\n nextFirst = minusOne(nextFirst);\n } else {\n array[nextFirst] = item;\n nextFirst = minusOne(nextFirst);\n }\n size += 1;\n }",
"public void addItem(Collectable item){\n \tif (!(item instanceof Token)) {\n \t\titems.add(item);\n \t}\n }",
"@Override\r\n\tpublic void enqueue(Item item) {\r\n\t\tif (item == null)\r\n\t\t\tthrow new NullPointerException(\"You cannot put a 'null' element inside the queue\");\r\n\t\tif (count == arr.length)\r\n\t\t\tresize(arr.length * 2);\r\n\t\tarr[count++] = item;\r\n\t}",
"void push(Object item);",
"public void Add(int[] item) {\n Add(item.length * 4);\n\n\n for (int i = 0; i < item.length; i++) {\n AddInt(item[i]);\n }\n mLenght += Integer.SIZE / 8 * item.length;\n mBackOffset = mLenght;\n }",
"public void addItem(Item toAdd) {\n\t\tthis.items.add(toAdd);\n\t}",
"public void push(T val){ if(this.isUpgraded) this.linkArray.push(val); else this.nativeArray.add(val); }",
"@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }",
"public void addAll(Object[] toAdd) {\r\n\t\tAssert.isNotNull(toAdd);\r\n\t\tdata.addAll(Arrays.asList(toAdd));\r\n\r\n\t\tfireAdd(toAdd);\r\n\t}",
"public void add(E a)\n {\n if (size == data.length) { // if the list is at capacity...\n // create a new, larger array\n E[] newData = (E[])(new Object[2*data.length]);\n \n // copy over all of the old elements\n for (int i = 0; i < size; i++)\n newData[i] = data[i];\n \n // redirect the old data reference\n data = newData;\n }\n\n // insert the new element\n data[size] = a;\n size++;\n }",
"public boolean add (E item)\n {\n add(size, item); // calling public method add\n return true;\n }",
"@SuppressWarnings(\"all\")\n protected static boolean writeArrayType(Output out, Object arrType) {\n log.trace(\"writeArrayType\");\n if (arrType instanceof Collection) {\n out.writeArray((Collection<Object>) arrType);\n } else if (arrType instanceof Iterator) {\n writeIterator(out, (Iterator<Object>) arrType);\n } else if (arrType.getClass().isArray() && arrType.getClass().getComponentType().isPrimitive()) {\n out.writeArray(arrType);\n } else if (arrType instanceof Object[]) {\n out.writeArray((Object[]) arrType);\n } else {\n return false;\n }\n return true;\n }",
"public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }",
"public void add(E value){\n if (maxIndex != array.length-1){\n array[++maxIndex] = value;\n }else {\n Object[] tmpArray = new Object[array.length+ capacity];\n for (int i = 0; i < array.length; i++) {\n tmpArray[i] = array[i];\n }\n array = tmpArray;\n array[++maxIndex] = value;\n }\n }",
"public void addItem(Item param) {\r\n if (localItem == null) {\r\n localItem = new Item[] { };\r\n }\r\n\r\n //update the setting tracker\r\n localItemTracker = true;\r\n\r\n java.util.List list = org.apache.axis2.databinding.utils.ConverterUtil.toList(localItem);\r\n list.add(param);\r\n this.localItem = (Item[]) list.toArray(new Item[list.size()]);\r\n }",
"public void add(int index, Object item)\n {\n items[index] = item;\n numItems++;\n }",
"private SignatureDTO[] add(SignatureDTO[] array, SignatureDTO element) {\n Class type = (array != null ? array.getClass() : (element != null ? element.getClass() : SignatureDTO.class));\n SignatureDTO[] newArray = (SignatureDTO[]) copyArrayGrow1(array, type);\n newArray[newArray.length - 1] = element;\n return newArray;\n }",
"@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }",
"public void addAll(T[] arr);",
"public void addFirst(Object item) {\r\n\t\tdata.add(0, item);\r\n\t}",
"public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }",
"public boolean offer(Object item) {\r\n\r\n\t\tdata.add(item);\r\n\t\t// no size restriction so it should always be true\r\n\t\treturn true;\r\n\t}",
"public void addLast(T item) {\n if (isFull()) {\n resize(capacity * 2);\n }\n items[nextLast] = item;\n nextLast = plusOne(nextLast);\n size += 1;\n }",
"public void addItem(Object obj) {\n items.add(obj);\n }",
"public void enqueue(Item item)\r\n {\r\n if (item == null) throw new NullPointerException(\"Null item\");\r\n if (n == a.length) resize(2 * a.length); // double the size of array if necessary\r\n a[n++] = item;\r\n }",
"public void add(String key, JsonValue value, boolean asArray) {\n if (asArray) {\n toArray(key);\n }\n\n // 2. If value is an array, then for each element v in value, use add value\n // recursively to add v to key in entry.\n if (JsonUtils.isArray(value)) {\n value.asJsonArray().forEach(v -> add(key, v, asArray));\n\n // 3.\n } else {\n\n final Object original = map.get(key);\n\n // 3.1\n if (original != null) {\n\n if (original instanceof JsonValue) {\n\n if (JsonUtils.isArray((JsonValue)original)) {\n map.put(key, Json.createArrayBuilder(((JsonValue)original).asJsonArray()).add(value));\n\n } else {\n map.put(key, Json.createArrayBuilder().add((JsonValue)original).add(value));\n }\n\n } else if (original instanceof JsonArrayBuilder) {\n ((JsonArrayBuilder)original).add(value);\n\n } else if (original instanceof JsonMapBuilder) {\n map.put(key, Json.createArrayBuilder().add(((JsonMapBuilder)original).build()));\n\n } else {\n throw new IllegalStateException();\n }\n\n // 3.2\n } else {\n map.put(key, value);\n }\n }\n }",
"public int add(T newData) {\n\t\tint newLength = 1;\n\t\t// If there is more data to add then available space in the array\n\t\tif(newLength > (array.length - length)) {\n\t\t\t// Double the array size\n\t\t\texpandArray(array.length);\n\t\t}\n\n\t\t// If the new data will wrapping around, add the new data and wrap around to fit\n\t\tif((index + length) < array.length && newLength > (array.length - (index + length))) {\n\t\t\t// The number of elements available up to the end of the array before needing to wrap around\n\t\t\tint tailLength = array.length - (index + length);\n\t\t\t// Copy data up to the end of the array\n\t\t\tif(tailLength > 0) {\n\t\t\t\tarray[index+length] = newData;\n\t\t\t}\n\t\t\t// Copy rest of data 'wrapped around' to the beginning of the array\n\t\t\telse {\n\t\t\t\tarray[0] = newData;\n\t\t\t}\n\t\t}\n\t\t// Else if the data fits without wrapping around, add the new data\n\t\telse {\n\t\t\tarray[(index + length) % array.length] = newData;\n\t\t}\n\t\t// Adjust the length\n\t\tlength = length + newLength;\n\t\t// Return the number of elements successfully added\n\t\treturn newLength;\n\t}",
"public void enqueue(Item item) {\n if (item == null)\n throw new NullPointerException();\n\n // Check if whole array has been filled up, and act accordingly\n if (values.length == elements)\n resize((int) (elements * GROWTH_FACTOR));\n\n // Add element into values array\n values[elements++] = item;\n }",
"public void add(T element) {\n if (size + 1 >= capacity) {\n if (capacity == 0) capacity = 1;\n else capacity *= 2; // double the array size\n T[] tempArrayList = (T[]) new Object[capacity];\n for (int i = 0; i < size; i++) tempArrayList[i] = genericArrayList[i];\n genericArrayList = tempArrayList; // genericArray has extra null at the end\n }\n genericArrayList[size++] = element;\n }",
"@SuppressWarnings(\"unchecked\")\n\t\tpublic JSONArray AddToArray(JSONObject obj){\n\t\t\tthis.allFriends.add(obj);\n\t\t\treturn allFriends;\n\t\t}"
] |
[
"0.78910166",
"0.68784183",
"0.6404151",
"0.64033985",
"0.6325832",
"0.62817955",
"0.6203158",
"0.61197174",
"0.6110009",
"0.6074108",
"0.6071992",
"0.59823346",
"0.5971799",
"0.59644115",
"0.59457374",
"0.5928003",
"0.59211296",
"0.5885351",
"0.5877028",
"0.58426267",
"0.5776759",
"0.576514",
"0.57628655",
"0.5755516",
"0.5751389",
"0.57495683",
"0.5744596",
"0.5625854",
"0.5612623",
"0.5612623",
"0.5612623",
"0.5612623",
"0.5612623",
"0.5612623",
"0.56085694",
"0.55951846",
"0.55936354",
"0.55745083",
"0.5574372",
"0.5574372",
"0.5564107",
"0.5540923",
"0.54982185",
"0.5477486",
"0.54250205",
"0.54242015",
"0.5423629",
"0.5423629",
"0.5423629",
"0.54231864",
"0.5421457",
"0.54201376",
"0.5398929",
"0.5395465",
"0.5381116",
"0.5375789",
"0.5359199",
"0.53572744",
"0.53474504",
"0.53473043",
"0.534595",
"0.5342834",
"0.5337484",
"0.53285867",
"0.5327408",
"0.5318859",
"0.5303625",
"0.53030163",
"0.5288491",
"0.5271351",
"0.5262194",
"0.5260996",
"0.52502096",
"0.5249082",
"0.5247539",
"0.5247477",
"0.52413815",
"0.52397263",
"0.5235189",
"0.523242",
"0.522986",
"0.52232826",
"0.5222486",
"0.521173",
"0.52112913",
"0.5211069",
"0.52086025",
"0.52069557",
"0.52062964",
"0.52004516",
"0.5190651",
"0.518637",
"0.51861614",
"0.5179577",
"0.517584",
"0.5170615",
"0.51685727",
"0.5155037",
"0.5152359",
"0.51432073"
] |
0.5758325
|
23
|
Returns the keys of the item, if it is an object item.
|
public List<String> getKeys() {
throw new OurBadException(" Item '" + this.serialize() + "' is not an object.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Enumeration<Object> keys ();",
"public Iterable<K> keys();",
"public Iterable<Key> keys();",
"public Iterable<Key> keys();",
"public List<K> keys();",
"public Iterator<K> keys();",
"public Iterator<K> keys();",
"public List<String> keysAsString() {\n\t\treturn iter.getItems().stream().map(e -> new String(e)).collect(toList());\n\t}",
"public ArrayList<String> keyList(JSONObject obj){\n ArrayList<String> list = new ArrayList<String>();\n\n\n for(Iterator<String> s = obj.keySet().iterator(); s.hasNext();){\n list.add(s.next().toString());\n }\n return list;\n }",
"@Override\n List<String> keys();",
"public Iterator<Key> keys() ;",
"List<String> getKeys();",
"public Iterable<String> keys() { return keysWithPrefix(\"\"); }",
"public ListVS<T> getKeys() {\n return this.keys.getElements();\n }",
"public Iterable<String> getPropertyKeys();",
"public Enumeration getKeys() {\r\n PropertiesHolder propertiesHolder = this.getMergedProperties(Locale.getDefault());\r\n return propertiesHolder.getProperties().keys();\r\n }",
"public Enumeration getKeys() throws AspException\n {\n return Contents.keys();\n }",
"public List<String> getAllObjectsKey()\n {\n List<String> keyNameList = new ArrayList<String>();\n try\n {\n ObjectListing ol = s3.listObjects(bucketName);\n List<S3ObjectSummary> objects = ol.getObjectSummaries();\n for (S3ObjectSummary os : objects)\n {\n keyNameList.add(os.getKey());\n }\n }\n catch (AmazonS3Exception e)\n {\n logger.error(e.getMessage());\n }\n return keyNameList;\n\n }",
"public Iterable<String> keys()\r\n { return keysWithPrefix(\"\"); }",
"public List<K> getItems() {\n\t\t\treturn items;\n\t\t}",
"public ArrayList getKeys() {\r\n return this.keys;\r\n }",
"public String[] listObjectNames();",
"@Override\n\tpublic Iterable<K> keys() {\n\t\treturn null;\n\t}",
"public Enumeration getKeys() {\n // Not yet implemented -sorta\n return m_sql_bundle.getKeys();\n }",
"public String[] getKeys() {\n\t\treturn _keys;\n\t}",
"public String getKeys() {\r\n return keys;\r\n }",
"@Override\n public Collection<? extends Object> getKeys() {\n return yamlMap.keySet();\n }",
"public final Enumeration getKeys() {\n/* 130 */ return getBundle().getKeys();\n/* */ }",
"public native IterableIterator<K> keys();",
"public Set<String> getKeys() {\n\t\t\treturn properties.keySet();\n\t\t}",
"StringList keys();",
"public K[] getKeys() {\n return keys.clone();\n }",
"public List<String> keys()\n {\n return new ArrayList<String>(keys);\n }",
"public Map<Integer, Item> getAllItems() {\n\t\treturn hashOperations.entries(KEY);\n\t}",
"public Iterable<K> keys() {\n Queue<K> q = new Queue<>();\n inOrder(root, q);\n return q;\n }",
"Integer[] getKeys();",
"public String getItemObjectType() {\r\n\t\treturn itemObjectType;\r\n\t}",
"public Enumeration getKeys() throws AspException\n {\n return Contents.getKeys();\n }",
"public Enumeration getKeys() throws AspException\n {\n return Contents.getKeys();\n }",
"public List<K> keys()\r\n\t{\r\n\t\tList<K> keys = new ArrayList<K>();\r\n\t\t\r\n\t\tfor(Entry element : data)\r\n\t\t{\r\n\t\t\tkeys.add(element.key);\r\n\t\t}\r\n\t\t\r\n\t\t//keys.sort(new keyComparator()); //not necessarily needed since I know my BST iterator\r\n\t\t\t\t\t\t\t\t\t\t //iterates through in an inOrder fashion.\r\n\t\t\r\n\t\treturn keys;\r\n\t}",
"public List<KeyInner> keys() {\n return this.keys;\n }",
"public List getEntityKeys() {\n return resultKeys;\n }",
"public List<String> getKeys(){\n return Collections.unmodifiableList(keys);\n }",
"public Iterable<Key> Keys()\n\t{\n\t\tQueue<Key> q=new Queue<>();\n\t\tInorder(root,q);\n\t\treturn q;\n\t}",
"public abstract List<String> getAllKeys();",
"public K[] keys(){\n\t\tK[] output = (K[]) new Object[howMany];\n\t\tint j = 0;\n\t\tfor (int i = 0; keys.length > i; i++)\n\t\t\tif (keys[i] != null){\n\t\t\t\toutput[j] = keys[i];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\treturn output;\n\t}",
"public String[] getKeys(){\n int paddingCount = 1;\n List<String> result = new ArrayList<String>();\n String lastKey = null;\n for (Property x : this.getProperties()) {\n String newKey = new String(x.getKey());\n if (lastKey != null && lastKey.equalsIgnoreCase(newKey)){\n newKey = newKey + \"_\" + paddingCount++;\n }\n result.add(newKey);\n lastKey = newKey;\n }\n return result.toArray(new String[]{});\n }",
"public List<NeonKey> getKeys();",
"public Collection getKeys() throws CacheException {\n return cache.getKeys();\n }",
"public Set<String> getKeys() {\n return Collections.unmodifiableSet(data.keySet());\n }",
"public ArrayList<Integer> getKeys() {\r\n return keys;\r\n }",
"public abstract Enumeration keys();",
"public ImmutableSet<Key<?>> getSessionKeys() {\n return ((SessionKeyExposingObjectify) ofy()).getSessionKeys();\n }",
"public String[] getKeys() {\n Set keySet;\n if( defaultValues != null ) {\n keySet = defaultValues.keySet();\n } else {\n keySet = values.keySet();\n }\n return ( String[] )keySet.toArray( new String[ keySet.size() ] );\n }",
"public Set<String> keysOfMap() {\n Map<String, String> tempMap = createSimpleMap(\"Elevensies\",\"Grapes\");\n\t\tSet<String> keys = hashMap.keySet();\n\t\treturn tempMap.keySet();\n\t}",
"String[] getPropertyKeys();",
"public KeySet getKeys();",
"Set<K> keys();",
"public IIterator getKeys()\r\n {\r\n return new VectorIterator(m_keys);\r\n }",
"public Collection<TapKey> findAllKeys();",
"public Map<String, Schema> getItems() {\n\t\treturn items;\n\t}",
"public Vector keys() {\n Vector<K> temp = new Vector<>(3);\n for (int i=0;i<this.count;i++) {\n DictionaryPair p = list.get(i);//(DictionaryPair) data.get(i);\n temp.addLast(p.getKey());\n }\n return temp;\n }",
"public Iterable<Object> getObjects(String key);",
"@Override\n\tpublic Enumeration<String> getKeys() {\n\t\treturn null;\n\t}",
"@Override\r\n\t\t\t\t\t\tpublic Enumeration<String> getKeys() {\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}",
"public TreeMap<Item, Integer> getItems() {\r\n\t\treturn items;\r\n\t}",
"public String[] listObjectNames(String path);",
"public List keys() {\n // assign the attributes to the Collection back to the parent\n ArrayList keys = new ArrayList();\n\n keys.add(leagueId);\n\n return (keys);\n }",
"Set<String> getKeys();",
"public List<Item> getValues() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }",
"public Iterable<Key> keys() {\n Queue<Key> queue = new Queue<Key>();\n for (Node temp = first; temp != null; temp = temp.next)\n queue.enqueue(temp.key);\n return queue;\n }",
"public List<String> getKeys()\n\t{\n\t\treturn new ArrayList<>(pairs.keySet());\n\t}",
"public String[] getItemNames() {\n String[] names = new String[this.size()];\n for (int i = 0; i < names.length; i++) {\n names[i] = this.get(i).getItemName();\n }\n return names;\n }",
"public static Enumeration<String> getKeys() {\n\t\tif (rb == null) {\n\t\t\treinit();\n\t\t}\n\n\t\treturn rb.getKeys();\n\t}",
"public Iterable<K> keys()\n {\n return new Iterable<K>()\n {\n public Iterator<K> iterator()\n {\n return ChainedHashTable.this.keysIterator();\n } // iterator()\n }; // new Iterable<K>\n }",
"public String getItemNames() {\n return itemNames;\n }",
"@Override\n\tpublic String getObjectKey() {\n\t\treturn OBJECT_KEY;\n\t}",
"@Override public IndexKey[] getNodeKeys() {\n return listOfKeys.toArray(new IndexKey[listOfKeys.size()]);\n }",
"java.util.List<com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key> getKeyList();",
"public Lo<K> keys() { return this.entries.map(kvp -> kvp.left); }",
"@Override\n public List<K> keys() {\n List<K> keys = new AList<>();\n for(int i =0; i < capacity; i++){\n Entry n = (Entry) table[i];\n if(n != null && !n.isRemoved())\n keys.add(n.getKey());\n }\n assert keys.size() == size;\n return keys;\n }",
"public String getItemKey() {\n return itemKey;\n }",
"public Set<ILocator> getItemIdentifiers() {\r\n\t\treturn getIdentities(Key.ITEM_IDENTIFIER);\r\n\t}",
"public Set<String> getKeyList() throws IOException {\n if (dataCollector.getCollectorType().equals(DataCollector.COLLECTOR_TYPE_LIST)) {\n return dataCollector.getResult().getComparatorList().keySet();\n } else {\n throw new IOException(\"only allowed for \" + DataCollector.COLLECTOR_TYPE_LIST);\n }\n }",
"public KeyPeg[] getKeys() {\n return this.keys;\n }",
"public Set<String> keySet() {\r\n return keys.keySet();\r\n }",
"public Object[] getItems()\n {\n return items.toArray();\n }",
"public java.util.List<java.util.Map<String, AttributeValue>> getItems() {\n return items;\n }",
"public String[] getItemNames();",
"public String[] getEntityKeys() {\r\n\t\tif (null == entityKeys) {\r\n\t\t\tentityKeys = EngineTools.getInstanceKeys(entityURI);\r\n\t\t}\r\n\t\treturn entityKeys;\r\n\t}",
"public Set<Property> getPropertyKeys() {\n return nodeProperties != null ? nodeProperties.keySet() : Collections.<Property>emptySet();\n }",
"public UnsortedList<Integer> listOfKeys() {\n\t\tUnsortedList<Integer> list \n\t\t= new UnsortedList<Integer>(new IntegerComparator());\n\t\treturn listOfKeys(list);\n\t}",
"@ZenCodeType.Method\n @ZenCodeType.Getter(\"keys\")\n default Set<String> getKeys() {\n \n return doesNot(\"is not indexable by keys\");\n }",
"@Override\n\t\t\tpublic Set<String> getKeys() {\n\t\t\t\treturn null;\n\t\t\t}",
"public String getObjectKey()\n {\n return objectKey;\n }",
"public String getObjectKey()\n {\n return objectKey;\n }",
"public Field[] getKeyFields();",
"@Override\n\tpublic Collection<Key> keys() {\n\t\tCollection<Key> c = new ArrayList<Key>();\n\t\tif (!isEmpty()) {\n\t\t\tFork<Key, Value> f = (Fork<Key,Value>) bst;\n\t\t\tEntry<Key, Value> e = new Entry<>(f.getKey().get(), f.getValue().get());\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tEntry<Key, Value>[] a = (Entry<Key, Value>[]) Array.newInstance(e.getClass(), size());\n\t\t\tbst.saveInOrder(a);\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\tc.add(a[i].getKey());\n\t\t\t}\n\t\t}\n\t\treturn c;\n\t}",
"public String[] getUsedPropertyKeys() {\n\t\treturn new String[] { IDevice.OFFSET, IDevice.FACTOR, IDevice.REDUCTION };\n\t}",
"public Enumeration getKeys() throws AspException\n {\n return cookieValues.keys();\n }"
] |
[
"0.6437546",
"0.62547714",
"0.6089794",
"0.6089794",
"0.6056634",
"0.6036067",
"0.6036067",
"0.6032351",
"0.59461176",
"0.5886594",
"0.58637536",
"0.5814941",
"0.5786105",
"0.5747356",
"0.57383275",
"0.5729025",
"0.56459945",
"0.5643278",
"0.56283474",
"0.5585088",
"0.55820024",
"0.55697525",
"0.5557831",
"0.55536073",
"0.5547997",
"0.5539382",
"0.55357677",
"0.5535314",
"0.5499721",
"0.5492498",
"0.54843783",
"0.5473881",
"0.54527456",
"0.54517406",
"0.54494196",
"0.54482806",
"0.5445419",
"0.54141766",
"0.54141766",
"0.54060113",
"0.53896207",
"0.5387623",
"0.5386714",
"0.53691477",
"0.5360978",
"0.5359846",
"0.5341467",
"0.5325815",
"0.53158575",
"0.5309975",
"0.5298781",
"0.5298731",
"0.52933365",
"0.52869326",
"0.5285018",
"0.52810544",
"0.5278861",
"0.5272225",
"0.52689207",
"0.525663",
"0.52299947",
"0.5222212",
"0.5215411",
"0.52114576",
"0.5206311",
"0.5204651",
"0.5197865",
"0.51868874",
"0.5186727",
"0.517955",
"0.51741946",
"0.5173617",
"0.5167893",
"0.51644105",
"0.5157149",
"0.51413715",
"0.51403683",
"0.51372796",
"0.51345956",
"0.5133186",
"0.51323825",
"0.51294845",
"0.51248384",
"0.5100386",
"0.509577",
"0.5089471",
"0.5088771",
"0.5077665",
"0.5076384",
"0.5072113",
"0.5067922",
"0.50678414",
"0.50668496",
"0.5066608",
"0.506657",
"0.506657",
"0.50547767",
"0.5053442",
"0.50475216",
"0.50465435"
] |
0.7586038
|
0
|
Returns the values of the item, if it is an object item.
|
public List<Item> getValues() {
throw new OurBadException(" Item '" + this.serialize() + "' is not an object.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Object[] getItems()\n {\n return items.toArray();\n }",
"@Override\n public T getItemVO() {\n return this.itemVO;\n }",
"public java.util.List<java.util.Map<String, AttributeValue>> getItems() {\n return items;\n }",
"public java.util.List<java.util.Map<String,AttributeValue>> getItems() {\n \n return items;\n }",
"public List<Item> getItems() {\n throw new OurBadException(\"Item '\" + this.serialize() + \"' is not an array.\");\n }",
"@SuppressWarnings (\"rawtypes\") public java.util.List getItems(){\n return this.items;\n }",
"public List<Object> getValues();",
"public abstract Object getValue(Object itemInstance) throws\n InvocationTargetException, IllegalAccessException;",
"public String getItemObjectType() {\r\n\t\treturn itemObjectType;\r\n\t}",
"public List<Item> getItems(){\n\t\treturn data;\n\t}",
"public Item getData()\r\n\t{\r\n\t\treturn theItem;\r\n\t}",
"public Object getValue() {\n\t\treturn object;\n\t}",
"public List<ReturnItem> getItems() {\n return (List<ReturnItem>) get(\"items\");\n }",
"public T getItem() {\n return item;\n }",
"public Item getItems() {\n return items;\n }",
"public T getItem() {\r\n return item;\r\n }",
"public List<String> getKeys() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an object.\");\n }",
"public Item[] getItems() {\n/* 3068 */ if (this.vitems != null) {\n/* 3069 */ return this.vitems.getAllItemsAsArray();\n/* */ }\n/* 3071 */ return emptyItems;\n/* */ }",
"public T[] items();",
"public Item[] getItems()\n {\n return items;\n }",
"public T getItem() {\n\t\treturn item;\n\t}",
"public T getItem() {\n\t\treturn item;\n\t}",
"public InputStream getItemAsInputStream() {\r\n\t\treturn item;\r\n\t}",
"java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> \n getItemList();",
"@Override\n public Set<T> getItems() {\n return items;\n }",
"public static ContentValues toContentValues(Object item) {\n final TypeAdapter adapter = getAdapter(item.getClass());\n return adapter.asContentValues(item);\n }",
"Object[] getValues();",
"Object[] getValues();",
"public GenericItemType getData() {\n return this.data;\n }",
"public Object[] getValues();",
"public java.util.List<io.opencannabis.schema.commerce.OrderItem.Item> getItemList() {\n return item_;\n }",
"public Objects getObject(String itemName)\n {\n return items.get(itemName);\n }",
"@Override\r\n\t\tpublic List<Item> getItems() {\n\t\t\treturn null;\r\n\t\t}",
"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> getItems() {\n return SerDes.unmirrorList(getElement().getItems(), getItemClass());\n }",
"public Item[] getItem() {\r\n return localItem;\r\n }",
"public Item[] getItems() {\n return items.toArray(new Item[0]);\n }",
"java.util.List<com.rpg.framework.database.Protocol.Item> \n getItemsList();",
"Object getValueFrom();",
"protected abstract Object[] getValues(T t);",
"public List<Item> getItems() {\n return items;\n }",
"public List<Item> getItems() {\n return items;\n }",
"public List<K> getItems() {\n\t\t\treturn items;\n\t\t}",
"@Override\n public T getValue(T object) {\n return object;\n }",
"public Object get(String itemName);",
"public List<T> items() {\n return items;\n }",
"public Collection<Object> values()\n {\n return data.values();\n }",
"public Item getItem() { \n return myItem;\n }",
"private static List<Item> getItems() {\n\t\treturn items;\n\t}",
"public Object getDataItem() {\n return this.dataItem;\n }",
"public List<Item> getItemList();",
"public Object[] getValues() {\n return this.values;\n }",
"@Override\n public Object getItem(int arg0) {\n return FilteredObjects.get(arg0);\n }",
"public Item getItem ()\n\t{\n\t\treturn item;\n\t}",
"public Object objectValue();",
"public java.util.List<? extends io.opencannabis.schema.commerce.OrderItem.ItemOrBuilder> \n getItemOrBuilderList() {\n return item_;\n }",
"public java.util.List<java.lang.Integer>\n getItemList() {\n return item_;\n }",
"public String getItemValue() {\n return itemValue;\n }",
"public Item[] toItemArray()\r\n {\r\n Item[] a = new Item[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = (Item) vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }",
"public CPRIMITIVEALTERNATIVES getItem()\n {\n return item;\n }",
"public java.util.List<com.rpg.framework.database.Protocol.Item> getItemsList() {\n return items_;\n }",
"Item convertToItem(Object value) throws XQException;",
"@Override\n\tprotected DataTypes getDataType() {\n\t\treturn DataTypes.ITEM;\n\t}",
"public nl.webservices.www.soap.GCRItem[] getItems() {\n return items;\n }",
"public List<BaseObject> getAllItems() {\n ArrayList<BaseObject> list = new ArrayList<BaseObject>(ufos);\n list.add(ship);\n list.addAll(bombs);\n list.addAll(rockets);\n return list;\n }",
"@JsonIgnore\n List<T> getValues();",
"@Override\r\n\tpublic Object getItem(int arg0) {\n\t\treturn data.get(arg0);\r\n\t}",
"public List<Item> getItems() {\n\t\treturn this.items;\n\t}",
"HCollection values();",
"List<PricedItem> getItems() {\n return Collections.unmodifiableList(items);\n }",
"public Item getItem() {\n\t\treturn this.item;\n\t}",
"public Item getItem() {\n\t\treturn this.item;\n\t}",
"public List<IDataSetItem> getItems() {\n return items;\n }",
"public Item getItem() {\n\t\treturn item;\n\t}",
"public java.util.List<java.lang.Integer>\n getItemList() {\n return ((bitField0_ & 0x00000001) != 0) ?\n java.util.Collections.unmodifiableList(item_) : item_;\n }",
"@Override\n\tpublic Results getItem(int position) {\n\t\treturn objects.get(position);\n\t}",
"public ArrayOfItem getItem() {\r\n return localItem;\r\n }",
"public Item getItem() {\n return item;\n }",
"public Object getItem(int arg0) {\n\t\t\treturn data.get(arg0);\n\t\t}",
"public BoxItem.Info getItem() {\n return this.item;\n }",
"public Item getItem() {\r\n\t\treturn this.item;\r\n\t}",
"public Map<String, Schema> getItems() {\n\t\treturn items;\n\t}",
"private Object createObjectFromAttValue(final AttImpl item) {\n \n \t\tif (item.getType().equals(STRING_TYPE)) {\n \t\t\treturn item.getValue();\n \t\t} else if (item.getType().equals(INT_TYPE)) {\n \t\t\treturn new Integer(item.getValue());\n \t\t} else if (item.getType().equals(FLOAT_TYPE)) {\n \t\t\treturn new Double(item.getValue());\n \t\t} else if (item.getType().equals(BOOLEAN_TYPE)) {\n \t\t\treturn new Boolean(item.getValue());\n \t\t}\n \n \t\t// outta here\n \t\treturn null;\n \t}",
"public Item getItem() {\n return item;\n }",
"public UserItem getUserItem() {\n return userItem;\n }",
"@Override\n List<Value> values();",
"public List<Item> listItems() {\n return this.items;\n }",
"@Nonnull\n public <T extends Serializable> List<T> getValues() {\n final T[] ary = values();\n return Arrays.asList(ary);\n }",
"public ItemInfoDTO getItemInfo() {\n return itemInfo;\n }",
"public ArrayList<Item> getItems()\n {\n return items;\n }",
"public Iterable<V> values();",
"protected List<View> getItems() {\n return items;\n }",
"public ArrayList<Collectable> getItems(){\n return items;\n }",
"public List<ItemStack> getItems()\n {\n return items;\n }",
"public ItemType getItem() {\n\t return this.item;\n\t}",
"public ItemType getItem() {\n\t return this.item;\n\t}",
"public List<ItemDTO> getItems()\n\t{\t\n\t\tList<ItemDTO> itemsList = new ArrayList<>();\n\t\tfor (ItemData item : items) \n\t\t\titemsList.add(new ItemDTO(item.idItem,item.description,item.price,item.VAT,item.quantitySold));\t\n\t\treturn itemsList;\n\t}",
"java.util.List<? extends io.opencannabis.schema.commerce.OrderItem.ItemOrBuilder> \n getItemOrBuilderList();",
"ICpItem getCpItem();",
"public List<T> getItems() {\n if (items == null) {\n items = this.ejbFacade.findAll();\n }\n return items;\n }"
] |
[
"0.6565431",
"0.6409555",
"0.62683296",
"0.61487854",
"0.6088126",
"0.60467",
"0.6009595",
"0.5961343",
"0.5928528",
"0.59176105",
"0.59056425",
"0.58987427",
"0.5882479",
"0.5882377",
"0.5868515",
"0.58410937",
"0.58378685",
"0.5836327",
"0.5823924",
"0.58223647",
"0.58007336",
"0.58007336",
"0.5782606",
"0.5771833",
"0.5771111",
"0.5752356",
"0.5732329",
"0.5732329",
"0.57029855",
"0.56973773",
"0.56680775",
"0.5656917",
"0.56539655",
"0.56442434",
"0.56225073",
"0.5615634",
"0.5614833",
"0.5584878",
"0.5573318",
"0.55728483",
"0.5572846",
"0.5572846",
"0.55599654",
"0.55584437",
"0.55515707",
"0.55491453",
"0.554292",
"0.5542916",
"0.55168825",
"0.5494841",
"0.54928887",
"0.54860073",
"0.54754806",
"0.5473772",
"0.54590446",
"0.54562086",
"0.5453853",
"0.5449307",
"0.54473245",
"0.5446692",
"0.5446065",
"0.5434821",
"0.54063755",
"0.5403223",
"0.53902745",
"0.53881013",
"0.5384762",
"0.537011",
"0.5364698",
"0.53616524",
"0.5361113",
"0.5361113",
"0.53494024",
"0.53383404",
"0.5336433",
"0.53350633",
"0.5327984",
"0.5327636",
"0.53214854",
"0.53210264",
"0.5317626",
"0.5316772",
"0.53147167",
"0.53147143",
"0.5308709",
"0.5307465",
"0.5305811",
"0.5304378",
"0.5286897",
"0.5285244",
"0.52834827",
"0.52829015",
"0.5282264",
"0.5274958",
"0.52638966",
"0.52638966",
"0.5260839",
"0.5253227",
"0.52531403",
"0.52479887"
] |
0.78237194
|
0
|
Returns the value associated with a specific key, if it is an object item.
|
public Item getItemByKey(String key) {
throw new OurBadException(" Item '" + this.serialize() + "' is not an object.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Object get(String key);",
"public Object getObject(String key);",
"Object get(String key);",
"Object get(String key);",
"V get(Object key);",
"Object get(Object key);",
"ISObject get(String key);",
"public Value get(Key key);",
"public Object get(String key) {\r\n\t\treturn objectMap.get(key);\r\n\t}",
"public V getValue(Object key) {\n\t\treturn super.get(key);\n\t}",
"public Object get(String key) {\n return objectMap.get(key);\n }",
"public V getValue(K key);",
"public V getValue(K key);",
"public Object getItem(String key);",
"public CompoundValue getValue(Object key);",
"public Value get(Key key) ;",
"public Object get(Object oKey)\n {\n Map.Entry entry = getEntry(oKey);\n return (entry == null ? null : entry.getValue());\n }",
"public Object get(String key) {\n \t\treturn this.get(null, key);\n \t}",
"public <K> Object getSpecific(K key, String valueKey);",
"public V get(K key) {\n if (null == key) {\n throw new IllegalStateException(\"Null value for key is \" +\n \"unsupported!\");\n }\n\n V result = null;\n\n Node<Pair<K, V>> node = findItem(key);\n\n if (node != null) {\n result = node.getData().value;\n }\n\n return result;\n\n }",
"public V get(K key);",
"public Object get(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null)\n\t\t\treturn null;\n\t\treturn value.value;\n\t}",
"V get(final K key);",
"public T get(K key);",
"protected abstract Object _get(String key);",
"public Object get(Object key){\n\t\tNode tempNode = _locate(key);\r\n\t\tif(tempNode != null){\r\n\t\t\treturn tempNode._value;\r\n\t\t}else{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"String getValue(String type, String key);",
"public Object getObject(final String key)\r\n {\r\n return helperObjects.get(key);\r\n }",
"public Object getValue(String key)\n {\n if (otherDetails == null)\n {\n return null;\n }\n else\n {\n return otherDetails.get(key);\n }\n }",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"V get(K key);",
"public String getProperty(Object obj, String key);",
"@Override\n\tpublic V get(Object key) {\n\t\treturn map.get(key);\n\t}",
"public V get(K key) {\r\n\t\t\tif (key == null) {\r\n\t\t\t\tthrow new NullPointerException();\r\n\t\t\t} else if (find(key) == null) {\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\treturn find(key).value;\r\n\t\t\t}\r\n\t\t}",
"Object getValueFrom();",
"public V get(K key) {\n V value = null;\n\n if (key != null) {\n int index = indexFor(key);\n if (container[index] != null) {\n value = (V) container[index].value;\n }\n }\n return value;\n }",
"public V get(String key);",
"public V get(Object key) { return _map.get(key); }",
"<T> T getValue(DataKey<T> key);",
"@Override\n public T get(Object key) {\n return get(key, null);\n }",
"public abstract V get(K key);",
"public Object get(String key){ \r\n\t\treturn this.context.getValue(key);\r\n\t}",
"public Object get(Object key) {\n byte[] byteKey = keySerde.toBytes(key);\n byte[] result = null;\n try {\n result = db.get(byteKey);\n } catch (RocksDBException e) {\n log.error(\"can not get the value for key: \" + key);\n }\n\n if (result == null) {\n log.info(key + \" does not exist in the rocksDb\");\n return null;\n } else {\n return valueSerde.fromBytes(result);\n }\n }",
"@Override\r\n\tpublic Object getObject(Object key) {\n\t\treturn null;\r\n\t}",
"public V get(K key) {\n CacheableObject cObj;\n\n synchronized(theLock) {\n cObj = valueMap.get(key);\n }\n\n return cObj == null ? null : cObj.cachedObject;\n }",
"public V value(K key) {\n for(MapEntry<K, V> t : this) {\n if (t == null) continue;\n if (t.key().equals(key)) return t.value();\n }\n\n return null;\n }",
"public QxType getValue( final String key ) {\n return getValue( key, null );\n }",
"protected abstract V get(K key);",
"public T get(Object key)\n\t{\n\t\tif(root == null || key == null)\n\t\t\treturn null;\n\t\tif(!(key instanceof CharSequence))\n\t\t\treturn null;\n\t\treturn root.get((CharSequence)key,0);\n\t}",
"public V getValue(K key)\n {\n V result = null;\n int keyIndex = locateIndex(key);\n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n result = dictionary[keyIndex].getValue();\n return result;\n }",
"public V getValue(K key) {\n int i = findPosition(key);\n if (i==DsConst.NOT_FOUND) {\n return null;\n }\n DictionaryPair p = list.get(i);\n return p.getValue();\n }",
"public abstract Object getValue(Object itemInstance) throws\n InvocationTargetException, IllegalAccessException;",
"public V get(K key)\r\n\t{\r\n\t\tEntry retrieve = data.get(new Entry(key, null));\r\n\t\t\r\n\t\tif(retrieve != null)\r\n\t\t{\r\n\t\t\treturn retrieve.value;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String get(Object key) {\r\n\t\tif (key == null) return null;\r\n\t\treturn getProperty(key.toString());\r\n\t}",
"Object getProperty(String key);",
"private DataValue getValueForKey(String key) {\n DataValue value = valueMap.get(key);\n if (value == null) {\n return DataValue.NO_VALUE;\n } else {\n return value;\n }\n }",
"public Object get(String itemName);",
"public T getValue(String key) {\r\n\t\tNode node = getNode(root, key, 0);\r\n\t\treturn node == null ? null : node.value;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public V get(Object key)\n {\n V value = delegate.get(key);\n if(value == null && factory != null)\n {\n value = factory.getValue((K)key);\n if(value != null)\n {\n delegate.put((K)key, value);\n }\n }\n return value;\n }",
"public E get(String key) {\r\n Integer index = keys.get(key);\r\n if (index == null || index >= items.size()) {\r\n return null;\r\n }\r\n return items.get(index);\r\n }",
"@Override\n public T getValue(T object) {\n return object;\n }",
"protected final Object get(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.get(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"public <T> T get(TypedKey<T> key)\n\t{\n\t\tObject value = map.get(Objects.requireNonNull(key));\n\t\treturn (value == null) ? key.getDefaultValue() : key.cast(value);\n\t}",
"public Object get(short key) {\n\t\tIterator iter = iterator();\n\t\tEntry e = null;\n\t\tfor (; iter.hasNext(); e=(Entry)iter.next())\n\t\t\tif (e.getKey()==key)\n\t\t\t\treturn e.getObject();\n\t\treturn null;\n\t}",
"public Object lookup(String key){\n ListNode<String,Object> temp = getNode(key);\n if(temp != null)\n return temp.value;\n else\n return null;\n }",
"public Object get(Object key) {\n CacheEntry entry = (CacheEntry)_hash.get(key);\n if (entry != null) {\n touchEntry(entry);\n return entry.getValue();\n } else {\n return null;\n }\n }",
"public Object getQuiet(String key);",
"@Override\n public V get(K key){\n CacheObject<K, V> cacheObject = this.cache.get(key);\n\n if (cacheObject != null){\n return cacheObject.getObject();\n }\n\n return null;\n }",
"Object get(Object key) throws NullPointerException;",
"StoragePrimitive get(String key);",
"V getEntry(K key);",
"public V get(K key) {\n if (key == null) {\n MyEntry<K, V> entry = null;\n try {\n entry = bucket[0];\n if (entry != null) {\n return entry.getValue();\n }\n } catch (NullPointerException e) {\n }\n } else {\n // other keys\n MyEntry<K, V> entry = null;\n int location = hashFunction(key.hashCode());\n entry = bucket[location];\n if (entry != null && entry.getKey() == key) {\n return entry.getValue();\n }\n }\n return null;\n }",
"public Object get(Object key) {\n IEntry e = map.get(key);\n if (e == null) {\n return null;\n }\n if (currentMode == Scope.APPLICATION) {\n if (e.scope == Scope.APPLICATION) {\n return e.obj;\n } else {\n return null;\n }\n } else {\n return e.obj;\n }\n }",
"public Object get(Object key) {\n\t\tint index = key.hashCode() % SLOTS;\n\t\t// check if key is already present in that slot/bucket.\n\t\tfor(Pair p:table[index]) {\n\t\t\tif(key.equals(p.key))\n\t\t\t\treturn p.value;\n\t\t}\n\t\t// if not found, return null\n\t\treturn null;\n\t}",
"public V get(Object k) {\n\t\treturn values[findKeyIndex(k)];\n\t}",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"Object getValue();",
"@Override\r\n public V get(Object key) {\r\n return get(key,table);\r\n }",
"public Value get(Value key) {\n\t\treturn storage.get(key);\n\t}",
"public abstract T get(String key);",
"T get(String key);",
"public PDFObject get (String key)\n {\n PDFObject value = getUnresolved (key);\n return value == null ? null : value.resolve ();\n }",
"public Object get(String key) {\n \n \t\tJSONObject json = null;\n \t\ttry {\n \t\t\tjson = new JSONObject( content );\n \t\t\treturn json.get( key );\n \n \t\t}\n \t\tcatch ( JSONException ex ) {\n \t\t\tlog.error( ex );\n \t\t\treturn null;\n \t\t}\n \t}",
"public V searchValue (K key) {\n\t\tfor (Map.Entry<K, V> entry : this.entrySet()) {\n\t\t\tif (entry.getKey() == key) {\n\t\t\t\treturn entry.getValue();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public V getValue(K key)\r\n\t{\r\n\t\tint slot = findSlot(key, false);\r\n\t\t\r\n\t\tif (slot < 0) \r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tMapEntry<K, V> e = table[slot];\r\n\t\treturn e.getValue();\r\n\t}",
"public String getKey(Object obj) {\n\t\tString result = null;\n\t\ttry {\n\t\t\tint pos = this.keyValue.indexOfValue(obj);\n\t\t\tif (pos >= 0) {\n\t\t\t\treturn this.keyValue.getKeyByIndex(pos);\n\t\t\t}\n\t\t} catch (ConcurrentModificationException e) {\n\t\t}\n\t\treturn result;\n\t}",
"public AnyType get(AnyType key) {\n \tif (contains(key)) {\n \t\tint currentPos = findPos( key );\n \t\t\treturn ((array[currentPos] != null) ? array[currentPos].value : null); \n \t}\n \telse {\n \t\treturn null;\n \t}\n }",
"private void get(String key){\n KeyValueObj obj = this.handler.getObj(key);\n if (obj == null){\n System.out.println(\"[User] value with key \" + key + \" was not found\");\n return;\n }\n System.out.println(obj.toString());\n }",
"String get(Integer key);",
"public V get(K key) {\n int index = findIndex(key);\n if (keys[index] == null)\n return null;\n else\n return values[index];\n }"
] |
[
"0.69844157",
"0.6980583",
"0.69787914",
"0.69787914",
"0.69760513",
"0.6945174",
"0.6879728",
"0.68724495",
"0.6822187",
"0.68083715",
"0.6784184",
"0.6704158",
"0.6704158",
"0.66848916",
"0.66844434",
"0.6640239",
"0.65289927",
"0.6498113",
"0.6463877",
"0.6448793",
"0.6430113",
"0.6426733",
"0.63833755",
"0.6370673",
"0.6361536",
"0.6339607",
"0.6331868",
"0.6317254",
"0.62931067",
"0.6284604",
"0.6284604",
"0.6284604",
"0.6284604",
"0.6284604",
"0.6284604",
"0.6284604",
"0.62813926",
"0.6277646",
"0.6256733",
"0.6255903",
"0.6252196",
"0.6210521",
"0.61963624",
"0.61835057",
"0.61632943",
"0.6162234",
"0.6152508",
"0.61494905",
"0.6111004",
"0.6099324",
"0.6075267",
"0.6053549",
"0.6019993",
"0.601938",
"0.6009027",
"0.6001062",
"0.5983092",
"0.5981322",
"0.59649515",
"0.59584504",
"0.59571815",
"0.5946882",
"0.59385955",
"0.5936477",
"0.5934963",
"0.5928841",
"0.5917166",
"0.59100133",
"0.5901322",
"0.5892944",
"0.5883213",
"0.58770996",
"0.58661306",
"0.58542985",
"0.5850319",
"0.58481824",
"0.584657",
"0.5845614",
"0.58397704",
"0.58319646",
"0.58314836",
"0.58314836",
"0.58314836",
"0.58314836",
"0.58314836",
"0.58314836",
"0.58314836",
"0.5830334",
"0.58299524",
"0.5826782",
"0.5825493",
"0.5808679",
"0.580009",
"0.5797633",
"0.57963055",
"0.5795006",
"0.57885534",
"0.5777498",
"0.5775748",
"0.5775185"
] |
0.6556424
|
16
|
Adds a value pair, if it is an array item.
|
public void append(Item value) {
throw new OurBadException(" Item '" + this.serialize() + "' is not an array.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@SuppressWarnings(\"unchecked\")\n public void arrayAddValue(LinkedList<String> keyList, Object array, Object value) throws IOException {\n if (value instanceof JSONParseEngine.ByteBuffer) {\n value = value.toString();\n }\n ((ArrayList) array).add(value);\n }",
"public void add( Object value )\n\t{\n\t\tint n = size();\n\t\tif (addIndex >= n)\n\t\t{\n\t\t\tif (n == 0)\n\t\t\t\tn = 8;\n\t\t\telse\n\t\t\t\tn *= 2;\n\t\t\tObject narray = Array.newInstance( array.getClass().getComponentType(), n );\n\t\t\tSystem.arraycopy( array, 0, narray, 0, addIndex );\n\t\t\tarray = narray;\n\t\t}\n\t\tArray.set( array, addIndex++, value );\n\t}",
"public void add(String key, JsonValue value, boolean asArray) {\n if (asArray) {\n toArray(key);\n }\n\n // 2. If value is an array, then for each element v in value, use add value\n // recursively to add v to key in entry.\n if (JsonUtils.isArray(value)) {\n value.asJsonArray().forEach(v -> add(key, v, asArray));\n\n // 3.\n } else {\n\n final Object original = map.get(key);\n\n // 3.1\n if (original != null) {\n\n if (original instanceof JsonValue) {\n\n if (JsonUtils.isArray((JsonValue)original)) {\n map.put(key, Json.createArrayBuilder(((JsonValue)original).asJsonArray()).add(value));\n\n } else {\n map.put(key, Json.createArrayBuilder().add((JsonValue)original).add(value));\n }\n\n } else if (original instanceof JsonArrayBuilder) {\n ((JsonArrayBuilder)original).add(value);\n\n } else if (original instanceof JsonMapBuilder) {\n map.put(key, Json.createArrayBuilder().add(((JsonMapBuilder)original).build()));\n\n } else {\n throw new IllegalStateException();\n }\n\n // 3.2\n } else {\n map.put(key, value);\n }\n }\n }",
"public synchronized void add(E value) {\n this.array.add(value);\n }",
"public void add(Object value) {\n\n\t}",
"public boolean add(T value) {\n if (size == arr.length) {\n final int newSize = arr.length * 3 / 2 + 1;\n T[] newArr = (T[]) new Object[newSize];\n System.arraycopy(arr, 0, newArr, 0, arr.length);\n this.arr = newArr;\n }\n arr[size++] = value;\n return true;\n }",
"@Override\n\tpublic void add(Object value) {\n\t\tinsert(value, size);\n\t}",
"public boolean add(String token, Object value)\n {\n // look up the token\n String type = _meta.get(token);\n if (type == null) {\n return false;\n }\n\n Object oldVal = _result.get(token);\n\n if (DoubleListArg.equals(type)) {\n if (!(value instanceof String[])) {\n return false;\n }\n List<String[]> valueList = (List<String[]>)oldVal;\n if (valueList == null) {\n valueList = new ArrayList<String[]>(1);\n _result.put(token, valueList);\n }\n valueList.add((String[])value);\n }\n else if (StringArg.equals(type) || oldVal != null) {\n if (!(value instanceof String)) {\n return false;\n }\n _result.put(token, value);\n }\n else if (ListArg.equals(type)) {\n if (!(value instanceof String)) {\n return false;\n }\n List<String> valueList = (List<String>)oldVal;\n if (valueList == null) {\n valueList = new ArrayList<String>(1);\n _result.put(token, valueList);\n }\n valueList.add((String)value);\n }\n else if (IntegerArg.equals(type) || oldVal != null) {\n if (!(value instanceof Integer)) {\n return false;\n }\n _result.put(token, value);\n }\n else if (FlagArgFalse.equals(type) || FlagArgTrue.equals(type)) {\n if (!(value instanceof Boolean)) {\n return false;\n }\n _result.put(token, value);\n }\n\n return true;\n }",
"public boolean add(Object[] obj) {\n\t\treturn false;\n\t}",
"public void add(Object value) {\n\t\tif(JSONType.typeOf(value) == null) throw new JSONException(\"Invalid value type\");\n\t\tthis.values.add(value);\n\t}",
"public void put(String key, JsonArray value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"@SuppressWarnings(\"rawtypes\")\n void addToArray(Pair<ArrayList<Object>> arr, Pair add)\n {\n arr.parsed.add(add.parsed);\n arr.unparsed = arr.unparsed.substring(0, arr.unparsed.length() - 1);\n if (arr.unparsed.length() > 1)\n arr.unparsed += \",\";\n arr.unparsed += add.unparsed + \"]\";\n }",
"public void add(E value){\n if (maxIndex != array.length-1){\n array[++maxIndex] = value;\n }else {\n Object[] tmpArray = new Object[array.length+ capacity];\n for (int i = 0; i < array.length; i++) {\n tmpArray[i] = array[i];\n }\n array = tmpArray;\n array[++maxIndex] = value;\n }\n }",
"public void add(final Object value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tif (this.size == this.capacity) {\n\t\t\treallocate();\n\t\t}\n\t\telements[size] = value;\n\t\tsize++;\n\t}",
"@Override\n public void add(T t) {\n checkIfArrayFull();\n\n arrayList[elementsInArray] = t;\n elementsInArray++;\n }",
"PropertyArray put(Object value) {\n PropertyObject.testValidity(value);\n this.myArrayList.add(value);\n return this;\n }",
"public void addToArray(JsonElement element){\n values.add(element);\n }",
"public void addValue(Object value)\n\t{\n\t\tif (!values.contains(value))\n\t\t{\n\t\t\tvalues.add(value + \"\");\n\t\t}\n\t}",
"public void add(String value) {\n\t\t// if consistent\n\t\tif (value != null) {\n\t\t\t// checks if contains separator\n\t\t\tif (value.contains(Constants.LINE_SEPARATOR)) {\n\t\t\t\t// splits the string by separator\n\t\t\t\t// and adds to object as array\n\t\t\t\tarray.push(ArrayString.fromOrEmpty(value.split(Constants.LINE_SEPARATOR)));\n\t\t\t} else {\n\t\t\t\t// pushes to JS array\n\t\t\t\tarray.push(value);\n\t\t\t}\n\t\t}\n\t}",
"public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }",
"public void add( Comparable newVal ) {\n \t//if _data is full, expand the array\n \tif (_size == _data.length){\n\t \texpand();\n \t}\n \t\n\tset(_lastPos + 1, newVal);\n \t//increases _lastPos and _size\n \t_lastPos++;\n \t_size++;\n }",
"ArrayValue createArrayValue();",
"public JSONArray put(Object value) {\n\t\tthis.add(value);\n\t\treturn this;\n\t}",
"@Override\n public boolean add(T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < array.length; i++) {\n newArray[i] = array[i];\n }\n newArray[size] = object;\n this.size++;\n this.array = newArray;\n return true;\n }",
"public final Object add(final String key, final String value)\n\t{\n\t\tcheckMutability();\n\t\tfinal Object o = get(key);\n\t\tif (o == null)\n\t\t{\n\t\t\treturn put(key, value);\n\t\t}\n\t\telse if (o.getClass().isArray())\n\t\t{\n\t\t\tint length = Array.getLength(o);\n\t\t\tString destArray[] = new String[length + 1];\n\t\t\tfor (int i = 0; i < length; i++)\n\t\t\t{\n\t\t\t\tfinal Object arrayValue = Array.get(o, i);\n\t\t\t\tif (arrayValue != null)\n\t\t\t\t{\n\t\t\t\t\tdestArray[i] = arrayValue.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\tdestArray[length] = value;\n\n\t\t\treturn put(key, destArray);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn put(key, new String[] { o.toString(), value });\n\t\t}\n\t}",
"public void push(T val){ if(this.isUpgraded) this.linkArray.push(val); else this.nativeArray.add(val); }",
"@Override\n public void add(K key, V value) {\n if(containsKey(key)){\n List<V> v = getValues(key);\n if(v.contains(value)){return;}\n }\n internalGetValue(key).add(value);\n }",
"@Override\n\tpublic boolean add(E item) {\n\t\tif (this.numberOfElements == this.size) {\n\t\t\tE[] newArrayList = (E[]) new Object[this.size * 2];\n\t\t\tint i = 0;\n\t\t\twhile (i < this.size) {\n\t\t\t\tnewArrayList[i] = this.arrayList[i];\n\t\t\t\ti += 1;\n\t\t\t}\n\t\t\tthis.arrayList = newArrayList;\n\t\t\tthis.size = this.size * 2;\n\t\t}\n\t\tthis.arrayList[this.numberOfElements] = item;\n\t\tthis.numberOfElements += 1;\n\t\treturn true;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(T value) {\n\t\t// Append an element to the end of the storage.\n\t\t// Double the capacity if no space available.\n\t\t// Amortized O(1)\n\n\t\tif (size == capacity()) {\n\t\t\tT newData[] = (T[]) new Object[2 * capacity()];\n\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tnewData[i] = data[i];\n\t\t\t}\n\t\t\tdata = newData;\n\t\t}\n\n\t\tdata[size] = value;\n\t\tsize++;\n\t}",
"public void add(T value) {\n extend();\n this.list[size]=value;\n this.size++;\n }",
"public void add(String... values) {\n\t\t// checks if is a valid array\n\t\tif (ArrayUtil.isNotEmpty(values)) {\n\t\t\t// creates new JS array and push it\n\t\t\tarray.push(ArrayString.fromOrEmpty(values));\n\t\t}\n\t}",
"public V add(K key, V value);",
"public void addValue(Row value)\n\t{\n\t\tallValues.add(value);\n\t}",
"@Override\n public boolean add(E value) {\n if (this.values.length == this.index) {\n this.grow();\n }\n this.modCount++;\n this.values[index++] = value;\n return true;\n }",
"public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }",
"static boolean attribute_arg_value_array_item(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"attribute_arg_value_array_item\")) return false;\n boolean r;\n r = attribute_arg_value_scalar(b, l + 1);\n if (!r) r = attribute_arg_value_array(b, l + 1);\n return r;\n }",
"public int addValue(Object[] array) {\n int val = hashCode();\n for (Object obj : array) {\n val = addValue(obj);\n }\n return val;\n }",
"@Override\n public void add(E value) {\n if (value == null) {\n throw new NullPointerException();\n }\n if (size == capacity) {\n resize();\n }\n array[size] = value;\n siftUp(size);\n size++;\n\n\n }",
"public void add(String key,String value){\n int index=hash(key);\n if (arr[index] == null)\n {\n arr[index] = new Llist();\n }\n arr[index].add(key, value);\n\n\n }",
"public void addValues(String[] values) {\n this.values.addAll(Arrays.asList(values));\n }",
"public static native void AddArray(long lpjFbxArrayVector2, Long pOther);",
"@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }",
"public boolean add(Double value) {\n\t\tarr = Arrays.copyOf(arr, arr.length + 1);\n\t\tarr[arr.length - 1] = value;\n\t\treturn true;\n\t}",
"public boolean add( Object newVal )\n {\n\t//first expand if necessary\n\tif ( _size >= _data.length )\n\t expand();\n\n\t_data[_size] = newVal;\n\t_size++;\n\n\treturn true;\n }",
"@Override\r\n\tpublic void addValueAtIndex(final IScope scope, final Object index, final T value) {}",
"public void add(T val){\n myCustomStack[numElements] = val; // myCustomStack[0] = new value, using numElements as index of next open space\n numElements++; //increase numElements by one each time a value is added to the stack, numElements will always be one more than number of elements in stack\n resize(); //call resize to check if array needs resizing\n }",
"public void add(int toBeAdded) {\n\t\tif (this.myCount==this.myValues.length){\n\t\t\tSystem.err.println(\"No more space in array\");\n\t\t\tSystem.exit(1);\n\t\t}\n \tthis.myValues[this.myCount] = toBeAdded;\n this.myCount++;\n }",
"public void add(int value) {\n\t \tensureCapacity(size+ 1);\n\t \telementData[size] = value;\n\t \tsize++;\n\t }",
"void add(KeyType key, ValueType value);",
"public void push(Object value) {\n\t\tthis.add(value);\n\t}",
"@Override\n public void push(Integer value) {\n ar[pos++] = value; \n }",
"void add(byte[] element);",
"@Override\n\tpublic boolean add(Object e)\n\t{\n\t\tif (size == myArray.length)\n\t\t\tresizeUp();\n\t\tmyArray[size] = e;\n\t\tsize++;\n\t\treturn false;\n\t}",
"public void addValue(OOTreeIter ootiTemp,String... apples)\r\n\t{\n\t\tthis.append(ootiTemp); //指针下移\r\n\t\tfor(int i = 0 ; i < apples.length; i++)\r\n\t\t{\r\n\t\t\tif(i < column) //如果赋了太多的值 则无效\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tthis.setValue(ootiTemp, i, apples[i]); //添加数据,这是一个重载的方法\r\n\t\t\t}else\r\n\t\t\t{\r\n\t\t\t\tbreak; //否则退出\r\n\t\t\t}\r\n\t\t}\r\n//\t\tootiTemp.free();\r\n\t}",
"public void addValues(String variable, int value, String unit, String metaType, boolean update)\n\t{\n\t\t// Convert single number into array, to store as dataset\n\t\tint[] values = new int[1];\n\t\tvalues[0] = value;\n\t\taddValues(variable, values, unit, metaType, update);\n\t}",
"public boolean add(K key, V value);",
"@Override\n public boolean add(T item) {\n // if the last spot in the array is unoccupied, item is simply added to the first empty spot\n if (arr[arr.length-1]!=null) {\n arr[size + 1] = item;\n size++;\n }\n // if array is full, number of spots is doubled and item is added\n if (arr[arr.length-1]== null){\n grow();\n arr[size+1] = item;\n size++;\n }\n return true;\n }",
"@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }",
"@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }",
"public void addNVPair(final String key, final String value,\n final AppLoggingNVPairs appLoggingNVPairs)\n {\n // check key and value are not null\n if (key != null && key.length() > 0 && value != null && value.length() > 0) {\n\n // Add the pair passed in. Check the type and call the corresponding\n // AppLoggingNVPairs function\n appLoggingNVPairs.addPair(key, value);\n\n }\n\n }",
"@Override\n\tpublic boolean add(T element) {\n\t\titemProbs_.put(element, 1d);\n\t\telementArray_ = null;\n\t\tklSize_ = 0;\n\t\treturn true;\n\t}",
"public int addValue(int[] array) {\n int val = hashCode();\n for (int i : array) {\n val = addValue(i);\n }\n return val;\n }",
"public void add(int index, T value) throws IndexOutOfBoundsException {\n checkException(index);\n if (size == arr.length) {\n final int newSize = arr.length * 3 / 2 + 1;\n T[] newArr = (T[]) new Object[newSize];\n System.arraycopy(arr, 0, newArr, 0, size);\n this.arr = newArr;\n }\n System.arraycopy(arr, index, arr, index + 1, size - index);\n arr[index] = value;\n size++;\n }",
"@Override\n public boolean add(T value) {\n if (!this.validate(this.cursor)) {\n this.ensureCapacity();\n }\n this.values[this.cursor++] = value;\n return this.values[this.cursor - 1].equals(value);\n }",
"public void Add(int[] item) {\n Add(item.length * 4);\n\n\n for (int i = 0; i < item.length; i++) {\n AddInt(item[i]);\n }\n mLenght += Integer.SIZE / 8 * item.length;\n mBackOffset = mLenght;\n }",
"public void addAll(T[] arr);",
"public void addData(Key key, Value value) {\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\t//if no data or should be placed first\r\n\t\t\tif (data.size() == 0 || data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\telse {\r\n\t\t\t\t//find insert position\r\n\t\t\t\twhile (data.hasNext()) {\r\n\t\t\t\t\tif (data.next().getKey().compareTo(key) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//if before last\r\n\t\t\t\tif (data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t\t//if after last\r\n\t\t\t\telse\r\n\t\t\t\t\tdata.add(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t}\r\n\t\t}",
"private String[] addItemToArray(String item, String[] myArray) {\n if (!ApiFunctions.isEmpty(item)) {\n if (ApiFunctions.isEmpty(myArray)) {\n return myArray = new String[] { item };\n }\n else {\n String[] temp = new String[myArray.length + 1];\n System.arraycopy(myArray, 0, temp, 0, myArray.length);\n temp[temp.length - 1] = item;\n return temp;\n }\n }\n else {\n return null;\n }\n }",
"public void addPoint(double[] point);",
"@Override\n public boolean add(int index, T object) {\n T[] newArray;\n if (array[array.length - 1] != null) {\n newArray = (T[]) new Object[array.length * 2];\n } else {\n newArray = (T[]) new Object[array.length];\n }\n for (int i = 0; i < index; i++) {\n newArray[i] = array[i];\n\n }\n newArray[index] = object;\n for (int i = index + 1; i < array.length; i++) {\n newArray[i] = array[i - 1];\n }\n this.size++;\n this.array = newArray;\n return true;\n }",
"@Override\n // worst-case complexity: O(n), since it might need to resize itself\n // amortised average-case complexity: O(1), since resizing happens too\n // too infrequent to affect the actual complexity\n public void add(T item) {\n if (size >= arr.length)\n arr = resize(arr, EXPAND_FACTOR);\n // we add the item to the end and then increment the size\n arr[size++] = item;\n }",
"public void add(String name, T val) {\n\t\tnvPairs.add(name);\n\t\tnvPairs.add(val);\n\t}",
"@Test(expected = PathMismatchException.class)\n public void testArrayAddUniqueInArrayWithNonPrimitives() {\n JsonObject root = JsonObject.create().put(\"array\", JsonArray.create().add(JsonArray.empty()));\n ctx.bucket().upsert(JsonDocument.create(key, root));\n\n //not a primitive only array => MISMATCH\n DocumentFragment<String> fragment = DocumentFragment.create(key, \"array\", \"arrayInsert\");\n DocumentFragment<String> result = ctx.bucket().addUniqueIn(fragment, false, PersistTo.NONE, ReplicateTo.NONE);\n }",
"public HPTNode<K, V> append(V value) {\n if (values == null) {\n values = new ArrayList<>(2);\n }\n values.add(value);\n return this;\n }",
"void add(K key, V value);",
"@SuppressWarnings(\"unchecked\")\n\tpublic void add(T item){\n\t\t\n\n\t\tif(currentsize == data.length-1){\n\t\t\tgrow();\n\t\t}\n\n\t\t\n\t\tdata[currentsize] = item;\n\t\tcurrentsize++;\n\n\n\t}",
"public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }",
"public boolean add(T val) {\n Integer idx = hmap.get(val);\n if (idx == null) {\n int i = list.size();\n list.add(val);\n idx = new Integer(i);\n hmap.put(val, idx);\n return true;\n }\n return false;\n }",
"public static void plusScalar(double[] array, double value)\r\n\t{\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = array[i] + value;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic V add(V val) {\n\t\ttry {\n\t\t\tif (value instanceof Integer && val instanceof Integer) {\n\t\t\t\tint temp = (int) value + (int) val;\n\t\t\t\treturn (V) ((Object) temp);\n\t\t\t} else if (value instanceof Double && val instanceof Double) {\n\t\t\t\tdouble temp = (double) value + (double) val;\n\t\t\t\tif (Double.isNaN(temp)) {\n\t\t\t\t\ttemp = 0;\n\t\t\t\t\tif (!Double.isNaN((double) value))\n\t\t\t\t\t\ttemp += (double) value;\n\t\t\t\t\telse if (!Double.isNaN((double) val))\n\t\t\t\t\t\ttemp += (double) val;\n\t\t\t\t}\n\t\t\t\treturn (V) ((Object) temp);\n\t\t\t} else if (value instanceof String && val instanceof String) {\n\t\t\t\tString temp = (String) value + (String) val;\n\t\t\t\treturn (V) (temp);\n\t\t\t} else if (value instanceof Accumulator\n\t\t\t\t\t&& val instanceof Accumulator) {\n\t\t\t\tAccumulator temp = ((Accumulator) value)\n\t\t\t\t\t\t.merge((Accumulator) val);\n\t\t\t\treturn (V) (temp);\n\t\t\t}\n\t\t} catch (ClassCastException e) {\n\t\t}\n\t\treturn null;\n\t}",
"public void add(String value);",
"private SignatureDTO[] add(SignatureDTO[] array, SignatureDTO element) {\n Class type = (array != null ? array.getClass() : (element != null ? element.getClass() : SignatureDTO.class));\n SignatureDTO[] newArray = (SignatureDTO[]) copyArrayGrow1(array, type);\n newArray[newArray.length - 1] = element;\n return newArray;\n }",
"boolean add(Object key, Object value);",
"@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }",
"public void add( Comparable newVal )\n {\n for( int p = 0; p < _data.size(); p++ ) {\n if ( newVal.compareTo( _data.get(p) ) < 0 ) {\n //newVal < oal[p]\n _data.add( p, newVal );\n return; //Q:why not break?\n }\n }\n _data.add( newVal ); //newVal > every item in oal, so add to end\n }",
"private void addValueToStatMap(HashMap<String, ArrayList<Double>> map, String key, Double value) {\r\n if (!map.containsKey(key)) {\r\n map.put(key, new ArrayList<Double>());\r\n }\r\n map.get(key).add(value);\r\n }",
"public <T> void addValue(EObject container, EStructuralFeature structuralFeature, T value) {\n\t\t//Insert at index null appends items.\n\t\tinsertValue(container, structuralFeature, value, null);\n\t}",
"public void addValue(String value) {\n synchronized (values) {\n values.add(value);\n }\n }",
"public int addValue(byte[] array) {\n int val = hashCode();\n for (byte i : array) {\n val = addValue(i);\n }\n return val;\n }",
"public int add(String key, E value) {\r\n int index = items.size();\r\n keys.put(key, index);\r\n items.add(value);\r\n return index;\r\n }",
"public void alternateAdd(E value) {\n\t\talternateAdd(value, overallRoot);\n\t}",
"public void addValue() {\n addValue(1);\n }",
"private void addInt(int value) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Adding int index at \" + intCount + \" value \" + value);\n }\n ensureIntArrayCapacity(intCount + 1);\n intArray[intCount] = value;\n intCount += 1;\n }",
"public void add(Comparable value) {\n add((Object) value);\n }",
"public void insert(ValueType element) {\r\n // TODO\r\n }",
"protected void addChild(DataNode value) {\n m_values.add(value);\n if (isCollection()) {\n \n // make this a complex collection if the added child is something more than a simple value\n if (value.getSchemaComponent() != getSchemaComponent() &&\n value.isInterior() || value.isCollection()) {\n m_complexCollection = true;\n }\n }\n }",
"@SuppressWarnings(value=\"unchecked\")\n public void put(int field$, java.lang.Object value$) {\n switch (field$) {\n case 0: TokenTransactionArray = (java.util.List<com.networknt.taiji.token.TokenTransaction>)value$; break;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }",
"public boolean add(String value){\n\t//add to the correct spot.\n\t//you may still use super.add(index,value)\n\tif (size() == getData().length) {\n\t resize();\n\t}\n\t//index = findIndex(value);\n\tint index = findIndexBinary(value);\n\tsuper.add(index,value);\n\treturn true;\n }",
"Property addValue(PropertyValue<?, ?> value);",
"@Override\n public boolean put(int key, int firstValue, int secondValue) {\n int position = key << 1;\n array.addEntry(firstValue, position);\n array.addEntry(secondValue, position + 1);\n numStoredKeysCounter.incr();\n return false;\n }"
] |
[
"0.6920207",
"0.6593565",
"0.645546",
"0.64173484",
"0.61677027",
"0.6032092",
"0.59722245",
"0.5924096",
"0.59172636",
"0.58474547",
"0.5812919",
"0.5789446",
"0.5745052",
"0.57252043",
"0.5715228",
"0.57104224",
"0.5709824",
"0.5696179",
"0.5685395",
"0.56755835",
"0.56704444",
"0.56509155",
"0.56413347",
"0.5639929",
"0.5627474",
"0.560952",
"0.5568725",
"0.5555035",
"0.55402607",
"0.55221254",
"0.55179983",
"0.5501402",
"0.5489424",
"0.54867923",
"0.547962",
"0.54696435",
"0.5443558",
"0.54417163",
"0.54159886",
"0.54112715",
"0.54036486",
"0.5388944",
"0.53856593",
"0.5365837",
"0.5365133",
"0.53528064",
"0.53522813",
"0.5327348",
"0.53253496",
"0.5323359",
"0.5322847",
"0.5305265",
"0.53006214",
"0.52909976",
"0.5282007",
"0.5263999",
"0.5260863",
"0.526069",
"0.5254695",
"0.5246776",
"0.5246394",
"0.52333397",
"0.52260995",
"0.5218242",
"0.5216003",
"0.52107507",
"0.5204568",
"0.51942486",
"0.5193056",
"0.51928604",
"0.518463",
"0.5170573",
"0.5170308",
"0.5168096",
"0.51584226",
"0.514993",
"0.5147469",
"0.514153",
"0.5127689",
"0.5124863",
"0.51087457",
"0.5105537",
"0.5097007",
"0.50896966",
"0.50747126",
"0.50674564",
"0.5067424",
"0.5064724",
"0.5061489",
"0.5060017",
"0.50528455",
"0.5047985",
"0.50438476",
"0.50330377",
"0.5032016",
"0.50304866",
"0.5027003",
"0.5026878",
"0.5012787",
"0.50124794"
] |
0.6792384
|
1
|
Adds a keyvalue pair, if it is an object item.
|
public void putItemByKey(String key, Item value) {
throw new OurBadException(" Item '" + this.serialize() + "' is not an object.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean add(Object key, Object value);",
"public Object putItem (String key, Object item);",
"public void add(Object value) {\n\n\t}",
"void add(K key, V value);",
"public boolean add(K key, V value);",
"public V add(K key, V value);",
"@Override\r\n\tpublic void putObject(Object key, Object value) {\n\t\t\r\n\t}",
"@SuppressWarnings(\"rawtypes\")\n void\n addToObject(Pair<HashMap<String, Object>> obj, Pair<String> key, Pair add)\n {\n if (!obj.parsed.containsKey(key.parsed))\n {\n obj.parsed.put(key.parsed, add.parsed);\n obj.unparsed = obj.unparsed.substring(0, obj.unparsed.length() - 1);\n if (obj.unparsed.length() > 1)\n obj.unparsed += \",\";\n obj.unparsed += (key.unparsed + \":\" + add.unparsed + \"}\");\n } // if\n }",
"void addEntry(K key, V value);",
"public void add(Object value) {\n\t\tif(JSONType.typeOf(value) == null) throw new JSONException(\"Invalid value type\");\n\t\tthis.values.add(value);\n\t}",
"void add(KeyType key, ValueType value);",
"public void addItem(Object obj) {\n items.add(obj);\n }",
"public boolean put( KEY key, OBJECT object );",
"public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }",
"void putValue(String key, Object data);",
"boolean add(Object object) ;",
"@SuppressWarnings(\"unchecked\")\n public void objectAddValue(LinkedList<String> keyList, Object obj, String str, Object value) throws IOException {\n if (value instanceof JSONParseEngine.ByteBuffer) {\n value = value.toString();\n }\n ((HashMap) obj).put(str, value);\n }",
"public void insert(KeyedItem o){\r\n\t\tinsert(this,o);\r\n\t}",
"void put(String key, Object value);",
"@Override\n public void putValue(String key, Object value) {\n\n }",
"public void addItem(JSONObject obj) {\n coordinates.put(obj);\n }",
"void put(String key, Object obj);",
"public void insert(KeyedItem newItem);",
"public void addItem(Item item) {\n\t\thashOperations.put(KEY, item.getId(), item);\n\t\t//valueOperations.set(KEY + item.getId(), item);\n\t}",
"public abstract void addParameter(String key, Object value);",
"public void add(String key, Object value) {\n Object oldValue = null;\n if (value instanceof String) {\n editor.putString(key, (String) value);\n oldValue = get(key, \"\");\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n oldValue = get(key, false);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n oldValue = get(key, -1);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n oldValue = get(key, -1l);\n } else {\n if (value != null)\n Log.e(TAG, \"Value not inserted, Type \" + value.getClass() + \" not supported\");\n else\n Log.e(TAG, \"Cannot insert null values in sharedprefs\");\n }\n editor.apply();\n\n //notifying the observers\n notifyObservers(key, oldValue, value);\n }",
"public void addField(String key, Object value) {\n\t\tput(key, value);\n\t}",
"void addEntry(String key, Object value) {\n this.storageInputMap.put(key, value);\n }",
"@Override\n\tpublic void add(Object value) {\n\t\tinsert(value, size);\n\t}",
"public void add(String key, JsonValue value, boolean asArray) {\n if (asArray) {\n toArray(key);\n }\n\n // 2. If value is an array, then for each element v in value, use add value\n // recursively to add v to key in entry.\n if (JsonUtils.isArray(value)) {\n value.asJsonArray().forEach(v -> add(key, v, asArray));\n\n // 3.\n } else {\n\n final Object original = map.get(key);\n\n // 3.1\n if (original != null) {\n\n if (original instanceof JsonValue) {\n\n if (JsonUtils.isArray((JsonValue)original)) {\n map.put(key, Json.createArrayBuilder(((JsonValue)original).asJsonArray()).add(value));\n\n } else {\n map.put(key, Json.createArrayBuilder().add((JsonValue)original).add(value));\n }\n\n } else if (original instanceof JsonArrayBuilder) {\n ((JsonArrayBuilder)original).add(value);\n\n } else if (original instanceof JsonMapBuilder) {\n map.put(key, Json.createArrayBuilder().add(((JsonMapBuilder)original).build()));\n\n } else {\n throw new IllegalStateException();\n }\n\n // 3.2\n } else {\n map.put(key, value);\n }\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public boolean insert(String key, Object value) {\n if (key == null) {\n LOGGER.warning(\"Tried to use a null key on insert()\");\n return false;\n }\n\n // actual insert\n mJSONObject.put(key, value);\n\n return true;\n }",
"public final Object add(final String key, final String value)\n\t{\n\t\tcheckMutability();\n\t\tfinal Object o = get(key);\n\t\tif (o == null)\n\t\t{\n\t\t\treturn put(key, value);\n\t\t}\n\t\telse if (o.getClass().isArray())\n\t\t{\n\t\t\tint length = Array.getLength(o);\n\t\t\tString destArray[] = new String[length + 1];\n\t\t\tfor (int i = 0; i < length; i++)\n\t\t\t{\n\t\t\t\tfinal Object arrayValue = Array.get(o, i);\n\t\t\t\tif (arrayValue != null)\n\t\t\t\t{\n\t\t\t\t\tdestArray[i] = arrayValue.toString();\n\t\t\t\t}\n\t\t\t}\n\t\t\tdestArray[length] = value;\n\n\t\t\treturn put(key, destArray);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn put(key, new String[] { o.toString(), value });\n\t\t}\n\t}",
"public void add(Object o);",
"void add(Item item);",
"Object put(Object key, Object value);",
"public void addParameter(String key, Object value) {\n try {\n jsonParam.put(key, value);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }",
"@Override\r\n\tpublic void add(Object object) {\n\t\t\r\n\t}",
"public void addParam(String key, Object value) {\n getParams().put(key, value);\n }",
"void add(T item);",
"@Override\n public void add(K key, V value) {\n if(containsKey(key)){\n List<V> v = getValues(key);\n if(v.contains(value)){return;}\n }\n internalGetValue(key).add(value);\n }",
"@Override\r\n\tpublic void addKeyValuePair(String key, String value) {\r\n\t\t\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \") || value == null || value.equals(\" \")) {\r\n System.out.println(\"Key cannot be Empty\");\r\n return;\r\n }\r\n // create new Node to be inserted\r\n Node newNode = new Node(new Data(key, value));\r\n // call recursive function traverse from root to correct Position to add newNode\r\n this.root = insertRecursively(this.root, newNode);\r\n return;\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public void put(final T object) {\n data.add(object);\n }",
"@Override\n <T> void add(T object);",
"void add(String key);",
"@Override\n\tpublic boolean add(Object obj) {\n\t\treturn util.add(obj);\n\t}",
"public boolean add(Type item);",
"public int add(String key, E value) {\r\n int index = items.size();\r\n keys.put(key, index);\r\n items.add(value);\r\n return index;\r\n }",
"public void add(E item);",
"void add(E item);",
"void add(E item);",
"void add(E item);",
"@Override\n\tpublic JSONObject add(JSONObject obj) {\n\t\treturn null;\n\t}",
"boolean add(Object obj);",
"boolean add(Object obj);",
"public void addObject(Objects object)\n {\n items.put(object.getItemName(), object);\n }",
"public void addOtherInfo(String key, Object value) {\n this.otherInfo.put(key, value);\n }",
"@NonNull\n\t\tBuilder addProperty(@NonNull String key, Object value);",
"@Override\n\tpublic void add(Object o) {\n\t}",
"public void put(String key, T value);",
"public Value put(Key key, Value thing) ;",
"public void add(String nome, Object obj);",
"public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }",
"public boolean add( String key, T value )\r\n {\r\n HashMap<String,T> top = tables.peekFirst();\r\n T result = top.get( key );\r\n top.put( key, value );\r\n return result==null;\r\n }",
"public void attach(Object key, Object value);",
"@Override\n\tpublic V add(K key, V value) {\n\t\tV result = null;\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(currentNode != null && key.equals(currentNode.getKey())){\n\t\t\tresult = (V) currentNode.getValue();\n\t\t\tcurrentNode.setValue(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode newNode = new Node(key, value);\n\t\t\tif(currentNode == null){\n\t\t\t\tnewNode.setNextNode(firstNode);\n\t\t\t\tfirstNode = newNode;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfirstNode.setNextNode(newNode);\n\t\t\t}\n\t\tnumberOfEntries++;\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public void addProperty(String key, String value);",
"public V add(K key, V value)\n { \n checkInitialization();\n if ((key == null) || (value == null))\n throw new IllegalArgumentException();\n else\n { \n V result = null; \n int keyIndex = locateIndex(key); \n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n {\n // Key found; return and replace entry's value\n result = dictionary[keyIndex].getValue(); // Get old value\n dictionary[keyIndex].setValue(value); // Replace value \n }\n else // Key not found; add new entry to dictionary\n { \n makeRoom(keyIndex);\n dictionary[keyIndex] = new Entry(key, value);\n numberOfEntries++;\n ensureCapacity(); // Ensure enough room for next add\n } // end if \n return result;\n } // end if\n }",
"public void put(String key, Object value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}",
"public void add(Key key, Value value) {\n\n\t\tif (2 * this.size > this.capacity) {\n\t\t\tresize(2 * this.capacity);\n\t\t}\n\n\t\t// Add this item to the hash table in the expected location.\n\n\t\tint index = locate(key);\n\t\tthis.keys[index] = key;\n\t\tthis.values[index] = value;\n\t\tthis.size++;\n\t}",
"public String addItemByKey(String key, String value) throws DictionaryException {\n\t\tSystem.out.println(\"Going to add value : \" + value + \" for Key : \" + key);\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\t// Check if key exists and add the item\n\t\t\tif (dictMap.containsKey(key)) {\n\t\t\t\tList<String> membersList = dictMap.get(key);\n\t\t\t\tif (membersList.contains(value)) {\n\t\t\t\t\t//Already existing value\n\t\t\t\t\tthrow new DictionaryException(ExceptionConstant.ADD_ERROR);\n\t\t\t\t} else {\n\t\t\t\t\tmembersList.add(value);\n\t\t\t\t\tdictMap.put(key, membersList);\n\t\t\t\t\tdictionary.setMultiValueDict(dictMap);\n\t\t\t\t}\n\t\t\t\t// Code for a fresh key and value insert\n\t\t\t} else {\n\t\t\t\tList<String> valueList = new ArrayList<>();\n\t\t\t\tvalueList.add(value);\n\t\t\t\tdictMap.put(key, valueList);\n\t\t\t}\n\t\t\t// First time entry of items in map\n\t\t} else {\n\t\t\tList<String> valueList = new ArrayList<>();\n\t\t\tvalueList.add(value);\n\t\t\tdictMap.put(key, valueList);\n\n\t\t}\n\t\treturn ApplicationMessage.ADD_SUCCESS_MSG;\n\t}",
"public void addKeyValue(String apiName, Object value)\n\t{\n\t\t this.keyValues.put(apiName, value);\n\n\t\t this.keyModified.put(apiName, 1);\n\n\t}",
"public void addToValueAtKey(String aKey, String aValue) {\n if (cars.containsKey(aKey)) {\n cars.get(aKey).add(aValue);\n }\n }",
"private void put(String aKey, Object aValue) {\n\t\tmData.put(aKey, getValue(aValue));\n\t}",
"Property addValue(PropertyValue<?, ?> value);",
"void addItem(DataRecord record);",
"public void add(Comparable value) {\n add((Object) value);\n }",
"public void add (T obj);",
"public ReturnObject add(Object item) {\n ReturnObjectImpl rtn = new ReturnObjectImpl();\n if (item == null) {\n rtn.setError(ErrorMessage.INVALID_ARGUMENT);\n } else {\n rtn.setObj(item);\n extendArray();\n AL[size()-1] = item;\n }\n return rtn;\n }",
"public Object put(short key, Object obj) {\n\t\tObject result = get(key);\n\t\ttheList.add(new Entry(key, obj));\n\t\treturn result;\n\t}",
"void add(ObjectType object)\n throws GuacamoleException;",
"public void addData(Key key, Value value) {\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\t//if no data or should be placed first\r\n\t\t\tif (data.size() == 0 || data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\telse {\r\n\t\t\t\t//find insert position\r\n\t\t\t\twhile (data.hasNext()) {\r\n\t\t\t\t\tif (data.next().getKey().compareTo(key) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//if before last\r\n\t\t\t\tif (data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t\t//if after last\r\n\t\t\t\telse\r\n\t\t\t\t\tdata.add(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t}\r\n\t\t}",
"public void addProperty(String key,\n Object value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, value.toString());\n }",
"public void add(String k, String v) throws RemoteException, Error;",
"Object insert(String key, Object param);",
"public boolean add(Object element);",
"public abstract void addItem(AbstractItemAPI item);",
"public void addItem(Collectable item){\n \tif (!(item instanceof Token)) {\n \t\titems.add(item);\n \t}\n }",
"public void add(Object object) {\n\t\tif (nextItem == null) {\n\t\t\tnextItem = new Item(object, index + 1);\n\t\t} else {\n\t\t\tnextItem.add(object);\n\t\t}\n\t}",
"@Override\n\tpublic V add(K key, V value) {\n\t\tcheckNullKey(key);\n\t\tcheckNullValue(value);\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\treturn cache.put(key, value);\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}",
"public abstract V put(K key, V value);",
"public void addElement(Object obj);",
"public boolean add(Object value)\r\n {\r\n if (contains(value))\r\n return false;\r\n root = add(root, value);\r\n return true;\r\n }",
"public void push(Object value) {\n\t\tthis.add(value);\n\t}",
"public void addValue(Object value)\n\t{\n\t\tif (!values.contains(value))\n\t\t{\n\t\t\tvalues.add(value + \"\");\n\t\t}\n\t}",
"public boolean add(T newEntry);",
"void Add(Object obj );",
"public void addKeyValue (String key, String value){\r\n\t\tcodebook.put(key, value);\r\n\t}",
"void put(String name, Object value);",
"protected abstract void put(K key, V value);",
"public synchronized void addObject(E obj) {\n\t\twrappedSet.add((E) obj);\n\t}"
] |
[
"0.74202013",
"0.7025787",
"0.6782261",
"0.6781186",
"0.6778154",
"0.6774132",
"0.66939116",
"0.66735226",
"0.6623995",
"0.6560387",
"0.6509537",
"0.64197534",
"0.6381368",
"0.6373986",
"0.6334655",
"0.62933296",
"0.6267119",
"0.6259674",
"0.6226963",
"0.6207282",
"0.6183781",
"0.6151484",
"0.6136199",
"0.61180955",
"0.611474",
"0.6089125",
"0.6077647",
"0.6077629",
"0.60754895",
"0.60744417",
"0.6057979",
"0.6049705",
"0.604432",
"0.6036753",
"0.6035377",
"0.60323447",
"0.6031914",
"0.60275465",
"0.59884244",
"0.59699076",
"0.5959213",
"0.59338886",
"0.592149",
"0.59141964",
"0.59051424",
"0.58986056",
"0.58949846",
"0.58921534",
"0.58825064",
"0.58825064",
"0.58825064",
"0.5879359",
"0.58732325",
"0.58732325",
"0.58691204",
"0.5843968",
"0.5832261",
"0.58322436",
"0.58004135",
"0.5793826",
"0.5793019",
"0.5792273",
"0.57708526",
"0.5748732",
"0.57486504",
"0.5746723",
"0.57421625",
"0.57313913",
"0.57104754",
"0.5710334",
"0.5704503",
"0.56592107",
"0.5649257",
"0.564878",
"0.56386995",
"0.5617994",
"0.56160843",
"0.56135905",
"0.5609073",
"0.55970806",
"0.5593838",
"0.5591308",
"0.55907494",
"0.5587408",
"0.55821633",
"0.55799675",
"0.5578396",
"0.55748516",
"0.5574373",
"0.5573099",
"0.556732",
"0.55613995",
"0.55513",
"0.5550086",
"0.5537461",
"0.5535701",
"0.5529023",
"0.55252826",
"0.552121",
"0.5520622"
] |
0.6711035
|
6
|
Returns the size of the item, if it is an array item.
|
public int getSize() {
throw new OurBadException(" Item '" + this.serialize() + "' is not an array.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int size() {\n\t\treturn array.length();\n\t}",
"public int size() {\n //encapsulate\n int size = this.array.length;\n return size;\n }",
"public int arraySize();",
"public int getSize() {\r\n return array.length;\r\n }",
"int size() {\n\t\treturn array.length;\n\t}",
"int size()\n\t{\n\t\t//If array is null then return -1\n\t\tif(inputArray == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\t//If the array is not null then return the length of the array\n\t\treturn inputArray.length;\n\t}",
"public static int arrayLength(final Object array) {\r\n if (GWT.isProdMode()) {\r\n return jsniLength(array);\r\n } else {\r\n return Array.getLength(array);\r\n }\r\n }",
"public int size()\n\t{\n\t\treturn arraySize;\n\t}",
"@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}",
"@Override\n public int size() {\n return array.length;\n }",
"public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }",
"public int size()\r\n {\r\n return nItems;\r\n }",
"public int length() {\n\n\t\treturn numItems;\n\n\t}",
"@Override\n public int getSize() {\n return this.numItems;\n }",
"public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}",
"public int size() {\n return nItems;\n }",
"public int size() {\n return numItems;\n }",
"@Override\n public synchronized int getSize() {\n return mArray.size();\n }",
"public int size() {\n \treturn numItems;\n }",
"@Nonnegative\n public int getSize()\n {\n return items.size();\n }",
"public int length() {\n return numberOfItems;\n }",
"public int size() {\n\t\tif (baos == null || baos.toByteArray() == null) return 0;\n\t\telse return baos.toByteArray().length;\n\t}",
"@Override\n\tpublic int size() {\n\t\treturn numItems;// numItems represents size\n\t}",
"int getArrayLength();",
"int getArrayLength();",
"public int sizeOfSimpleTypeArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SIMPLETYPE$0);\n }\n }",
"public int sizeOfSubArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SUB$2);\n }\n }",
"public int size() {\r\n return items.size();\r\n }",
"public int size() {\r\n return items.size();\r\n }",
"public int size() {\n return a.length;\n }",
"long arrayLength();",
"public int size() {\n return items.size();\n }",
"public int size(){\n return numItems;\n }",
"@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}",
"@Override\n public int getSize() {\n return numItems;\n }",
"public abstract int sizeOf(byte[] array, int offset, int length);",
"public int get_size();",
"public int get_size();",
"protected final Integer getJSONArraySize(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getJSONArray(key).length();\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"public long getItemCount() {\n\t\treturn this.getSize(data);\n\t}",
"public int sizeOfVolumeArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(VOLUME$4);\r\n }\r\n }",
"int sizeOfObjectDefinitionArray();",
"public int size(){\n int size = 0;\n for(LinkedList<E> item : this.data){\n size += item.size();\n }\n return size;\n }",
"public int getSize() {\n synchronized (itemsList) {\n return itemsList.size();\n }\n }",
"public int getLength(){\r\n\t \treturn arraySize;\r\n\t }",
"public int sizeOfTypekeyArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TYPEKEY$16);\r\n }\r\n }",
"UINT SafeArrayGetElemsize(SAFEARRAY psa);",
"public int sizeOfMemberArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MEMBER$14);\n }\n }",
"public int size()\n \t{\n \t\treturn getLength();\n \t}",
"public int arrayCount()\n\t{\n\t\treturn _arrayCount;\n\t}",
"public static int length(Object value) {\n\t\tif (isList(value)) {\n\t\t\treturn Array.getLength(value);\n\t\t}\n\t\treturn 0;\n\t}",
"public int size()\n\t{\n\t\treturn _data.size();\n\t}",
"public int size()\r\n\t{\r\n\t\treturn data.size();\r\n\t}",
"public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }",
"@Override\n public int getSize() {\n return items.size();\n }",
"public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}",
"@Override\n\tpublic int size() {\n\t\treturn this.numberOfElements;\n\t}",
"public int size()\n\t{\n\t\treturn data.length;\n\t}",
"public int size() {\n // DO NOT MODIFY!\n return size;\n }",
"public int size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}",
"@Test\r\n public void ArraySizeTest() {\r\n System.out.println(\"arraySize\");\r\n String[] string = {\"1\",\"2\",\"3\"};\r\n\r\n int expResult = 3;\r\n int result = instance.arraySize(string);\r\n assertEquals(expResult, result);\r\n }",
"int sizeOfDescriptionArray();",
"public int size() {\n\t\treturn data.length;\n\t}",
"public int sizeOfAxisArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(AXIS$1);\n }\n }",
"public int getTrueSize() {\n int len = ArrayFuncs.computeSize(dataArray);\n return len;\n }",
"public int sizeOfContentArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(CONTENT$0);\n }\n }",
"public int size(){ return itemCount;}",
"public int sizeOfValueArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(VALUE$0);\n }\n }",
"public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}",
"public int size() {\n return doSize();\n }",
"public int size(){\n return items.size();\n }",
"public int sizeOfBrArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BR$6);\n }\n }",
"public int sizeOfSupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(SUP$4);\n }\n }",
"public int size() {\r\n int temp = 0;\r\n for (int i = 0; i < elem.length; i++) {\r\n if (elem[i] != null) {\r\n temp++;\r\n }\r\n }\r\n return temp;\r\n }",
"int sizeOfRelatedArray();",
"int sizeOfBridgeElementArray();",
"@Override\n public int size() {\n return (totalSize - offset);\n }",
"public int size() {\n return getSize(0);\n }",
"public int size() {\n return AL.length;\n }",
"public int getSize() {\n\t\treturn numElements;\n\t}",
"public int size()\r\n {\r\n return size;\r\n }",
"public int size()\r\n {\r\n return size;\r\n }",
"public int size()\r\n {\r\n return size;\r\n }",
"public int getSize() {\r\n return list.getItemCount();\r\n }",
"@Override\n public int size() {\n return this.size; // Returns value in size field\n }",
"public int size() {\n return data.length;\n }",
"protected int getArraySize(){\r\n\t \treturn numElems;\r\n\t \t//return arraySize;\r\n\t }",
"public int size() {\r\n\t\treturn this.size;\r\n\t}",
"public int size() {\r\n\t\treturn this.size;\r\n\t}",
"public int size() {\r\n\t\treturn this.size;\r\n\t}",
"public int size() {\n return this.container.length;\n }",
"public int size () {\r\n return this.size;\r\n }",
"public int size() {\n return data.size();\n }",
"public int getSize() {\n return v.size();\n }",
"public int size() {\r\n \r\n return size;\r\n }",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}"
] |
[
"0.7389582",
"0.73715574",
"0.72768563",
"0.72690076",
"0.7130046",
"0.71123356",
"0.705136",
"0.70058495",
"0.70049715",
"0.6973946",
"0.69591874",
"0.68946826",
"0.68810225",
"0.687662",
"0.6872785",
"0.68470824",
"0.6841662",
"0.6840205",
"0.6807896",
"0.6795427",
"0.6760778",
"0.6746613",
"0.67453206",
"0.67053425",
"0.67053425",
"0.66935414",
"0.6682468",
"0.66656935",
"0.66656935",
"0.6657965",
"0.66568124",
"0.6656008",
"0.6646017",
"0.663941",
"0.6631664",
"0.6617794",
"0.6615977",
"0.6615977",
"0.6610355",
"0.66060877",
"0.6591863",
"0.65876216",
"0.65475315",
"0.65366584",
"0.65315264",
"0.65279454",
"0.6526298",
"0.6524594",
"0.65111643",
"0.65093464",
"0.64915276",
"0.6450805",
"0.6450372",
"0.6442264",
"0.64361846",
"0.6431913",
"0.6430851",
"0.6412648",
"0.64024043",
"0.6389076",
"0.6383336",
"0.6380697",
"0.63789207",
"0.6372166",
"0.637051",
"0.63667494",
"0.63643205",
"0.6357994",
"0.6351399",
"0.6346076",
"0.6344125",
"0.6331116",
"0.63306147",
"0.63293934",
"0.6326948",
"0.63228434",
"0.63207185",
"0.6319277",
"0.6318575",
"0.6309869",
"0.630971",
"0.630971",
"0.630971",
"0.6306476",
"0.6302166",
"0.6296707",
"0.62930006",
"0.629172",
"0.629172",
"0.629172",
"0.62907404",
"0.6288913",
"0.62853366",
"0.6285052",
"0.62837976",
"0.6278409",
"0.6278409",
"0.6278409",
"0.6278409",
"0.6278409"
] |
0.7846967
|
0
|
Returns the string value of the item, if it is a atomic item of type string.
|
public String getStringValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not a string.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"java.lang.String getStringValue();",
"java.lang.String getStringValue();",
"public String getString() {\r\n\t\ttype(ConfigurationItemType.STRING);\r\n\t\treturn stringValue;\r\n\t}",
"@Override\n\tpublic String getString() {\n\t\treturn value;\n\t}",
"String getStringValue();",
"String getStringValue();",
"String getValueAsString();",
"public static String getValue(Item item, QName qname) {\n StringAttribute ta = (StringAttribute) item.getAttribute(qname);\n if (ta == null) {\n return null;\n }\n else {\n return ta.getValue();\n }\n }",
"public String getStringValue()\n {\n return this.getValue();\n }",
"public java.lang.String getStr()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STR$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public String getStringValue();",
"public String getStringValue() {\n if (getValueIndex() <= 0)\n return null;\n return ((StringEntry) getPool().getEntry(getValueIndex())).\n getStringEntry().getValue();\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getString() {\r\n\t\tString s = value.getString();\r\n\t\t// System.out.println(\"Getting string of: \" + s);\r\n\t\tif (s == null)\r\n\t\t\treturn (s);\r\n\t\treturn (substitution(s));\r\n\t}",
"public final String getPrimitiveStringValue() {\r\n return (String) (value = value.toString());\r\n }",
"public String getString(T value);",
"public static String getItemValue(String item_string, String item_name)\n {\n StringTokenizer st = new StringTokenizer(item_string, Character.toString(RECORD_SEPARATOR));\n\n item_name += FIELD_SEPARATOR;\n while (st.hasMoreTokens())\n {\n String str = st.nextToken();\n if (str.startsWith(item_name))\n {\n return str.substring(item_name.length());\n }\n }\n return \"\";\n }",
"public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n if (typeCase_ == 5) {\n type_ = b;\n }\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getItemValue() {\n return itemValue;\n }",
"public String getStringValue() {\n\t\treturn rawValue;\n\t}",
"public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n }\n }",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"java.lang.String getValue();",
"public String getAsString() {\n\t\treturn new String(this.getAsBytes());\n\t}",
"public String getString(String key) {\n Object value = get(key);\n return ((value instanceof String) ? (String)value : \"\");\n }",
"public String getText(T anItem) { return anItem.toString(); }",
"@java.lang.Override\n public java.lang.String getStringValue() {\n java.lang.Object ref = \"\";\n if (typeCase_ == 5) {\n ref = type_;\n }\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (typeCase_ == 5) {\n type_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"static String isItem(RexCall call) {\n if (call.getOperator() != SqlStdOperatorTable.ITEM) {\n return null;\n }\n final RexNode op0 = call.operands.get(0);\n final RexNode op1 = call.operands.get(1);\n if (op0 instanceof RexInputRef\n && ((RexInputRef) op0).getIndex() == 0\n && op1 instanceof RexLiteral\n && ((RexLiteral) op1).getValue2() instanceof String) {\n return (String) ((RexLiteral) op1).getValue2();\n }\n return null;\n }",
"public String getAsString(String itemName, String defaultValue);",
"public String getString(final int index) {\n Object returnable = this.get(index);\n if (returnable instanceof Boolean) {\n returnable = returnable.toString();\n } else if (returnable instanceof Number) {\n returnable = returnable.toString();\n }\n return (String) returnable;\n }",
"org.hl7.fhir.String getValueString();",
"public String getValue() {\n return String.valueOf(value);\n }",
"public java.lang.String getStringValue() {\n java.lang.Object ref = stringValue_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n stringValue_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getStringValue() {\n java.lang.Object ref = stringValue_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n stringValue_ = s;\n }\n return s;\n }\n }",
"public StringItem getStringItem() {\n if (stringItem == null) {//GEN-END:|39-getter|0|39-preInit\n // write pre-init user code here\n stringItem = new StringItem(\"D\\u00E9placement du v\\u00E9hicule\", \"Appuyez sur OK lorsque le v\\u00E9hicule a retrouv\\u00E9 sa place\");//GEN-LINE:|39-getter|1|39-postInit\n // write post-init user code here\n }//GEN-BEGIN:|39-getter|2|\n return stringItem;\n }",
"public String getStrVal() {\n\t\treturn strVals[0];\n\t}",
"public java.lang.String getValue() {\n return value;\n }",
"public String getStr(String attr) {\n return (String) super.get(attr);\n }",
"public String getValueAsString() {\n return value == null ? StringUtils.EMPTY : value.toString();\n }",
"public String getString() {\n return string;\n }",
"public String getString() {\n return string;\n }",
"public String getString(String name) {\n Enumeration enumer = STRINGS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectStringItem item = (SimpleMessageObjectStringItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return \"-1\";\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n value_ = s;\n }\n return s;\n }\n }",
"@Override\n public StringType asString() {\n return TypeFactory.getStringType(this.getValue());\n }",
"public org.apache.xmlbeans.XmlString xgetStr()\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_element_user(STR$0, 0);\r\n return target;\r\n }\r\n }",
"public String getItemsString()\n {\n String vReturnString = \"you got : \"+this.aItemsList.getItemString();\n return vReturnString;\n }",
"public java.lang.String getValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(VALUE$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getValue(String s) {\n return s;\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getValue( )\n {\n return _strValue;\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public java.lang.String getString() {\r\n return localString;\r\n }",
"String getString(String key) throws KeyValueStoreException;",
"public String getString();",
"String getString();",
"String getString();",
"String getString();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String value();",
"String value();",
"public String getValue()\n {\n return mValue;\n }",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\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 value_ = s;\n return s;\n }\n }",
"public String getValue() { return value; }",
"public String getItem() {\r\n\t\treturn item;\r\n\t}",
"public String value() {\n return value;\n }",
"public String getValue() {\n Object ref = value_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n value_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public java.lang.String getString() {\n return localString;\n }",
"public com.google.protobuf.ByteString\n getStringValueBytes() {\n java.lang.Object ref = stringValue_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n stringValue_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String\ngetValueString();",
"public BuiltInAtomicType getPrimitiveType() {\r\n return BuiltInAtomicType.STRING;\r\n }",
"public String getValue() {\n\t\tString value;\n\t\ttry {\n\t\t\tvalue = this.getString(\"value\");\n\t\t} catch (Exception e) {\n\t\t\tvalue = null;\n\t\t}\n\t\treturn value;\n\t}",
"public java.lang.String getValue() {\n java.lang.Object ref = value_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n value_ = s;\n return s;\n }\n }",
"public String getValue () { return value; }",
"public static String stringType(Obj type) {\n\t\tString str = ObjStr.get(type);\n\t\t\treturn str != null ? str : \"\";\n\t}",
"public String getValue() {\r\n\t\t\treturn mValue;\r\n\t\t}",
"public String getStringValue() {\n if (value == null) return null;\n PropertyEditor propertyEditor = PropertyEditors.getEditor(clazz);\n propertyEditor.setValue(value);\n return propertyEditor.getAsText();\n }",
"public String getItemText() {\n\t\treturn this.itemText;\n\t}",
"public String getValue() {\r\n\t\treturn value;\r\n\t}",
"com.google.protobuf.ByteString\n getStringValueBytes();",
"com.google.protobuf.ByteString\n getStringValueBytes();",
"public String getValue()\n {\n return value;\n }",
"public String value()\n {\n return value;\n }",
"public String getValue() {\r\n return value;\r\n }",
"public String getValue() {\r\n return value;\r\n }"
] |
[
"0.64667445",
"0.64667445",
"0.64666206",
"0.61901647",
"0.616987",
"0.616987",
"0.6067531",
"0.60650325",
"0.6046002",
"0.6043861",
"0.6014504",
"0.5998994",
"0.591503",
"0.5901469",
"0.58972955",
"0.5884286",
"0.5878657",
"0.5875386",
"0.58654314",
"0.58495784",
"0.5842155",
"0.5841089",
"0.5841089",
"0.5841089",
"0.5841089",
"0.5841089",
"0.5841089",
"0.57936364",
"0.57669795",
"0.57374614",
"0.5733011",
"0.5732478",
"0.57297987",
"0.5725992",
"0.5676839",
"0.5651503",
"0.56441146",
"0.5635658",
"0.56285715",
"0.56107527",
"0.5609243",
"0.55823225",
"0.55718035",
"0.55647564",
"0.55647564",
"0.5563167",
"0.5529005",
"0.5526862",
"0.55149305",
"0.5512473",
"0.55104065",
"0.5506856",
"0.5497484",
"0.5495771",
"0.54559016",
"0.54412764",
"0.5438246",
"0.54363334",
"0.5434782",
"0.5434706",
"0.542842",
"0.54211134",
"0.54211134",
"0.54211134",
"0.5416143",
"0.5416143",
"0.5416143",
"0.5416143",
"0.5416143",
"0.5416143",
"0.5416143",
"0.5416143",
"0.5416143",
"0.5416143",
"0.5407204",
"0.5407204",
"0.5405369",
"0.5403569",
"0.53984636",
"0.53917557",
"0.53909653",
"0.5389537",
"0.5384543",
"0.53720134",
"0.5369612",
"0.53574514",
"0.5356211",
"0.5354845",
"0.5350006",
"0.534728",
"0.5345239",
"0.53402394",
"0.53399044",
"0.5338642",
"0.5337823",
"0.5337823",
"0.5336835",
"0.53289545",
"0.53248394",
"0.53248394"
] |
0.7016381
|
0
|
Returns the boolean value of the item, if it is a atomic item of type boolean.
|
public boolean getBooleanValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not a boolean.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"boolean getBoolValue();",
"boolean getBoolValue();",
"public Boolean getBoolean() {\r\n\t\ttype(ConfigurationItemType.BOOLEAN);\r\n\t\treturn booleanValue;\r\n\t}",
"abstract public boolean getAsBoolean();",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"public Boolean getValue() {\n return value;\n }",
"public Boolean getBooleanValue() {\n return this.booleanValue;\n }",
"public Boolean booleanValue() {\n\t\tif (this.getLiteralValue() instanceof Boolean) {\n\t\t\treturn (Boolean) this.getLiteralValue();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public Boolean getValue() {\n\t\treturn b;\n\t}",
"public java.lang.Boolean value() {\n return value;\n }",
"public boolean getBoolean();",
"@Override\n public boolean getAsBoolean() {\n return this.persistenceCheck.getAsBoolean();\n }",
"boolean getBoolean();",
"boolean getBoolean();",
"public boolean getValue();",
"public Boolean asBoolean();",
"public Boolean getIsActiveAsBoolean() {\n if (this.isActive == null) {\n return null;\n } else if (this.isActive.toLowerCase().equals(\"true\")) {\n return true;\n } else {\n return false;\n }\n }",
"public boolean booleanValue() {\n if (originalValue instanceof Boolean) {\n return (Boolean) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).intValue() != 0;\n } else {\n throw new CellValueCastException();\n }\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getBoolean(final int index) {\n Object returnable = this.get(index);\n if (returnable instanceof String) {\n returnable = Boolean.valueOf((String) returnable);\n }\n return (Boolean) returnable;\n }",
"public Boolean value() {\n return this.value;\n }",
"public Boolean value() {\n return this.value;\n }",
"public Boolean value() {\n return this.value;\n }",
"public Boolean getABoolean()\n {\n return aBoolean;\n }",
"boolean getValue();",
"public RubyBoolean getTrue() {\n return trueObject;\n }",
"public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }",
"com.google.protobuf.BoolValue getPersistent();",
"public boolean isBool() {\n return bool;\n }",
"boolean getBoolean(String key) throws KeyValueStoreException;",
"public boolean getValue() {\r\n\t\treturn this.value;\r\n\t}",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"public boolean getValue() {\n\t\treturn _checked;\n\t}",
"@JsProperty boolean getChecked();",
"public Boolean getBooleanAttribute();",
"public String getBooleanTrueValue() {\n\t\treturn ( _sBooleanTrueValue != null ? _sBooleanTrueValue : \"\" );\n\t}",
"public boolean getBoolean(String key) {\n Object value = get(key);\n return ((value instanceof Boolean) ? (Boolean)value : false);\n }",
"public boolean getBoolean(String key) {\n return Boolean.valueOf(UnsafeUtils.cast(get(key)));\n }",
"boolean hasBoolValue();",
"public boolean readBoolean() {\n return (((readLong() & 1) == 1) ? true : false);\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }",
"public static boolean getBooleanTrue() {\n boolean returnValue = false;\n return returnValue;\n }",
"public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }",
"protected Boolean geBoolValue() {\n return boolValue;\n }",
"public boolean isBoolean();",
"public abstract boolean read_boolean();",
"boolean getIsChecked();",
"public boolean isBoolean() {\n return this.data instanceof Boolean;\n }",
"public String getType() {\r\n\t\treturn \"boolean\";\r\n\t}",
"public Boolean getBoolean(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.BOOLEAN)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Boolean.class);\n\t\treturn (Boolean)value.value;\n\t}",
"@Nullable\r\n public Boolean getBoolean(String key) {\r\n return getTyped(key, Boolean.class, null);\r\n }",
"public Boolean getBoolean(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tBoolean result = PrimitiveDataTypeConvertor.toBoolean(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"boolean\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"HasValue<Boolean> getIsActive();",
"public boolean getBoolean(String key)\n {\n return getBoolean(key, false);\n }",
"public boolean getBoolean(String key) {\n boolean value = false;\n try {\n value = mConfigurations.getBoolean(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving boolean from JSONObject; trying as 1/0 int\");\n return getInt(key) == 1;\n }\n return value;\n }",
"public boolean getMyBool() {\n return myBool;\n }",
"public boolean booleanValue(Map<Prop, Object> map) {\n assert type == Boolean.class;\n Object o = map.get(this);\n return this.<Boolean>typeValue(o);\n }",
"public boolean getBoolean(final String key) {\n String s = removeByteOrderMark(get(key));\n if (s == null) return false;\n s = s.toLowerCase(Locale.ROOT);\n return s.equals(\"true\") || s.equals(\"on\") || s.equals(\"1\");\n }",
"public boolean getBoolean(){\r\n try{return kd.getJSONObject(ug).getBoolean(udn);}\r\n catch(JSONException e){return false;}\r\n }",
"public boolean getBoolean(String key) {\n\t\tif (internal.getProperty(key) != null)\n\t\t\treturn internal.getProperty(key).equals(\"true\");\n\t\telse if (getDefault(key) != null)\n\t\t\treturn (Boolean) getDefault(key);\n\t\telse\n\t\t\treturn false;\n\t}",
"boolean getBoolean(int index) throws PropertyException {\n Object object = this.get(index);\n if (object.equals(Boolean.FALSE)\n || (object instanceof String && ((String) object).equalsIgnoreCase(\"false\"))) {\n return false;\n } else if (object.equals(Boolean.TRUE)\n || (object instanceof String && ((String) object).equalsIgnoreCase(\"true\"))) {\n return true;\n }\n throw new PropertyException(\"JSONArray[\" + index + \"] is not a boolean.\");\n }",
"public boolean get(boolean a) {\n\t\treturn a;\r\n\t}",
"public Value restrictToBool() {\n checkNotPolymorphicOrUnknown();\n if (isMaybeAnyBool())\n return theBoolAny;\n else if (isMaybeTrueButNotFalse())\n return theBoolTrue;\n else if (isMaybeFalseButNotTrue())\n return theBoolFalse;\n else\n return theNone;\n }",
"public Boolean getBoolean(boolean defaultVal) {\n return get(ContentType.BooleanType, defaultVal);\n }",
"public String toString() { return this.booleanValue; }",
"public boolean getBooleanProperty(String key) {\n\t\treturn Boolean.parseBoolean(this.getProperty(key));\n\t}",
"public boolean get_boolean() {\n return local_boolean;\n }",
"public boolean isBoolean() {\n return false;\n }",
"boolean readBoolean();",
"public Boolean getCheckBox() {\n return (Boolean) getAttributeInternal(CHECKBOX);\n }",
"org.apache.xmlbeans.XmlBoolean xgetIsManaged();",
"org.apache.xmlbeans.XmlBoolean xgetQuick();",
"public static final boolean getBoolean(String key) {\n\t\tString token = getString(key);\n\t\tif (token == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (token.equalsIgnoreCase(\"true\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public EBooleanElements getEBooleanAccess() {\n\t\treturn pEBoolean;\n\t}",
"protected final Boolean getBoolean(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getBoolean(key);\n }\n } catch (JSONException e) {\n }\n return Boolean.FALSE;\n }",
"public boolean getBoolProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return false;\n }\n Object value = session.getAttribute(name);\n return \"true\".equals(value) || Boolean.TRUE.equals(value);\n }",
"public static boolean getBoolProperty(String key) {\r\n\t\treturn getBoolProperty(key, false);\r\n\t}",
"public abstract boolean getEffectiveBooleanValue();",
"org.apache.xmlbeans.XmlBoolean xgetString();",
"public boolean getBoolean(String name)\r\n {\r\n if( \"true\".equals(getString(name)) )\r\n return true;\r\n else\r\n return false;\r\n }",
"public boolean getFlag() {\r\n\t\treturn (value.getInt() != 0);\r\n\t}",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"public static Value makeBool(boolean b) {\n if (b)\n return theBoolTrue;\n else\n return theBoolFalse;\n }",
"boolean hasBool();",
"public boolean getStatusAsBoolean() {\n return isQuarantined;\n }",
"public Object bool(String value) {\r\n if (value == null) return null;\r\n return isOracle() ? Integer.valueOf((isTrue(value) ? 1 : 0)) :\r\n Boolean.valueOf(isTrue(value));\r\n }",
"private boolean get_BOOLEAN(int column) {\n // @AGG force Little Endian\n // @AGG In DB2 BOOLEAN columns appear to be encoded as two bytes\n if (metadata.isZos())\n return dataBuffer_.getShort(columnDataPosition_[column - 1]) != 0;\n else\n return dataBuffer_.getShortLE(columnDataPosition_[column - 1]) != 0;\n// if ( SignedBinary.getByte( dataBuffer_, columnDataPosition_[column - 1] ) == 0 )\n// { return false; }\n// else { return true; }\n }",
"public static boolean getBoolean(String key) throws UnknownID, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString value = get(key);\n\t\treturn Boolean.parseBoolean(value);\n\t}",
"public boolean getBoolean(int row, int column) {\n return columns[column].getBoolean(row);\n }",
"boolean booleanOf();",
"public static final BooleanConstantTrue getTrue()\n {\n return new BooleanConstant.BooleanConstantTrue();\n }",
"@Override\n public boolean getBoolean() throws SQLException {\n if (isNull()) return BOOLEAN_NULL_VALUE;\n\n final String trimmedValue = getString().trim();\n return trimmedValue.equalsIgnoreCase(LONG_TRUE) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE_2) ||\n trimmedValue.equalsIgnoreCase(SHORT_TRUE_3);\n }",
"public Boolean getBoolean(String key, Boolean defaultValue);",
"public static boolean extractBooleanValue(Value value) {\r\n\t\treturn value instanceof BooleanValue?((BooleanValue)value).value:false;\r\n\t}",
"private boolean getBooleanValue(Element element, String tagName)\n {\n String value = getValue(element,tagName).trim();\n try\n {\n return Integer.parseInt(value) != 0;\n }\n catch (NumberFormatException exception)\n {\n return value.equalsIgnoreCase(\"true\")\n || value.equalsIgnoreCase(\"on\")\n || value.equalsIgnoreCase(\"yes\");\n }\n }"
] |
[
"0.735368",
"0.735368",
"0.7315596",
"0.72558725",
"0.71213657",
"0.71133554",
"0.708439",
"0.6922372",
"0.6901212",
"0.6877229",
"0.6864045",
"0.6832134",
"0.6753103",
"0.6710053",
"0.6709826",
"0.66825527",
"0.66825527",
"0.6668174",
"0.66569465",
"0.66496205",
"0.6645254",
"0.65900964",
"0.65900964",
"0.65900964",
"0.6587397",
"0.65860486",
"0.65860486",
"0.65860486",
"0.6569301",
"0.6566633",
"0.6565244",
"0.6556753",
"0.6556212",
"0.6533804",
"0.65261364",
"0.65171784",
"0.6506595",
"0.6482633",
"0.6435143",
"0.64255035",
"0.64206344",
"0.64201695",
"0.641722",
"0.6410509",
"0.63861734",
"0.63697225",
"0.63690156",
"0.6357702",
"0.6347319",
"0.633536",
"0.63244116",
"0.63026714",
"0.6284667",
"0.628122",
"0.62217385",
"0.6215947",
"0.6164179",
"0.6145765",
"0.61297923",
"0.6117301",
"0.61056256",
"0.61027575",
"0.61025465",
"0.6077355",
"0.607139",
"0.6051818",
"0.60278153",
"0.6012319",
"0.60115886",
"0.59933686",
"0.5962203",
"0.59556603",
"0.5951636",
"0.5948907",
"0.59333485",
"0.5932579",
"0.59275854",
"0.59243876",
"0.5919067",
"0.5913819",
"0.59097725",
"0.5906313",
"0.5899765",
"0.5895736",
"0.5892126",
"0.58825505",
"0.58778965",
"0.586824",
"0.585084",
"0.584851",
"0.5843489",
"0.58380777",
"0.5825285",
"0.5821986",
"0.5821232",
"0.5819933",
"0.5811551",
"0.5808766",
"0.5805413",
"0.57992435"
] |
0.75652045
|
0
|
Returns the double value of the item, if it is a atomic item of type double.
|
public double getDoubleValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not a double.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public Double getAsDouble(String itemName, Double defaultValue);",
"public double doubleValue() {\n\t\treturn mDouble;\n\t}",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"Double getDoubleValue();",
"public double getDoubleValue() {\n if (getValueIndex() <= 0)\n return 0D;\n return ((DoubleEntry) getPool().getEntry(getValueIndex())).getValue();\n }",
"public double doubleValue() {\r\n return (double) intValue();\r\n }",
"public double doubleValue() {\n return (double) value;\n }",
"double getDouble(String key) throws KeyValueStoreException;",
"public double doubleValue() {\n return (double) m_value;\n }",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"public double getDouble(String key)\n {\n return getDouble(key, 0);\n }",
"public double getDouble(int pos) {\n return Tuples.toDouble(getObject(pos));\n }",
"public double doubleValue() {\n return this.value;\n }",
"public double getDoubleValue() {\n\t\treturn value;\r\n\t}",
"public static double getDouble(Key key) {\n return getDouble(key, 0);\n }",
"public double getDouble();",
"Double getValue();",
"public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}",
"public double getDouble(String key) {\n\t\treturn Double.parseDouble(get(key));\n\t}",
"public Double getDouble(String key) throws JsonException {\r\n\t\tObject object = get(key);\r\n\t\tDouble result = PrimitiveDataTypeConvertor.toDouble(object);\r\n\t\tif (result == null) {\r\n\t\t\tthrow PrimitiveDataTypeConvertor.exceptionType(key, object, \"Double\");\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }",
"@Override\r\n public double doubleValue() {\r\n return this.m_current;\r\n }",
"public Double getDouble(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).doubleValue();\n }",
"public Double getDoubleAttribute();",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default double asDouble() {\n \n return notSupportedCast(BasicTypeID.DOUBLE);\n }",
"double getDouble(String key) {\n double value = 0.0;\n try {\n value = mConfigurations.getDouble(key);\n } catch (JSONException e) {\n sLogger.error(\"Error retrieving double from JSONObject. @ \" + key);\n }\n return value;\n }",
"public double value()\n\t{\n\t\treturn _dblValue;\n\t}",
"public static double getDouble() throws Exception {\n return getDouble(null);\n }",
"public Double getDouble(String key)\n\t{\n\t\tverifyParseState();\n\t\t\n\t\tValue value = values.get(key);\n\t\tif(value == null || value.value == null)\n\t\t\treturn null;\n\t\tif(value.type != ValueType.DOUBLE)\n\t\t\tthrow new JsonTypeException(value.value.getClass(), Double.class);\n\t\treturn (Double)value.value;\n\t}",
"public static double getDoubleProperty(String key) {\r\n\t\treturn getDoubleProperty(key, 0);\r\n\t}",
"public double doubleValue() {\n if (originalValue instanceof Double) {\n return (Double) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).doubleValue();\n } else if (originalValue instanceof String) {\n try {\n return Double.parseDouble((String) originalValue);\n } catch (NumberFormatException e) {\n throw new CellValueCastException(e);\n }\n } else {\n throw new CellValueCastException();\n }\n }",
"@Override\r\n\tpublic double getDouble(int pos) {\n\t\treturn buffer.getDouble(pos);\r\n\t}",
"public Double toDouble() {\n\t\treturn this.getValue().doubleValue();\n\t}",
"public double getDouble(int columnIndex) throws SQLException\n {\n return m_rs.getDouble(columnIndex);\n }",
"public Double getDouble(String key) throws AgentBuilderRuntimeException {\n\t\tif (!extContainsKey(key))\n\t\t\tthrow new AgentBuilderRuntimeException(\n\t\t\t\t\t\"Dictionary does not contain key \\\"\" + key + \"\\\"\");\n\t\treturn (Double) extGet(key);\n\t}",
"public double toDouble() {\n return this.toDoubleArray()[0];\n }",
"private double getDoubleValue(Element element, String tagName)\n {\n try\n {\n return Double.parseDouble(getValue(element,tagName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"public double getValue()\r\n\t{\r\n\t\treturn (double) value;\r\n\t}",
"protected final Double getDouble(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getDouble(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"public double getDouble(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"getDouble\", columnIndex);\n return get(columnIndex).getDouble();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public double castToDoubleValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }",
"public\n double getProperty_double(String key)\n {\n if (key == null)\n return 0.0;\n\n String val = getProperty(key);\n\n if (val == null)\n return 0.0;\n\n double ret_double = 0.0;\n try\n {\n Double workdouble = new Double(val);\n ret_double = workdouble.doubleValue();\n }\n catch(NumberFormatException e)\n {\n ret_double = 0.0;\n }\n\n return ret_double;\n }",
"public double getDouble(String name) {\n Enumeration enumer = DOUBLES.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectDoubleItem item = (SimpleMessageObjectDoubleItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return -1D;\n }",
"public double get_double() {\n return local_double;\n }",
"double getDouble(String key, double defaultValue);",
"double getDoubleValue2();",
"public boolean isDouble() {\n return this.data instanceof Double;\n }",
"public double getDoubleValue() {\n\t\treturn (this.numerator/1.0)/this.denominator;\n\t}",
"public boolean isDouble();",
"@Test\n\tpublic void test_TCM__double_getDoubleValue() {\n\t\tAttribute attr = new Attribute(\"test\", \"11111111111111\");\n\t\ttry {\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == 11111111111111d );\n\n\t\t\tattr.setValue(\"0\");\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == 0 );\n\n\t\t\tattr.setValue(Double.toString(java.lang.Double.MAX_VALUE));\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == java.lang.Double.MAX_VALUE);\n\n\t\t\tattr.setValue(Double.toString(java.lang.Double.MIN_VALUE));\n\t\t\tassertTrue(\"incorrect double value\", attr.getDoubleValue() == java.lang.Double.MIN_VALUE);\n\n\t\t} catch (DataConversionException e) {\n\t\t\tfail(\"couldn't convert boolean value\");\n\t\t}\n\n\t\ttry {\n\t\t\tattr.setValue(\"foo\");\n\t\t\tfail(\"incorrectly returned double from non double value\" + attr.getDoubleValue());\n\n\t\t} catch (DataConversionException e) {\n\t\t\t// Do nothing\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Unexpected exception \" + e.getClass());\n\t\t}\n\n\t}",
"public double doubleValue();",
"public double unpackDouble() {\n return buffer.getDouble();\n }",
"public boolean isDouble() {\n return false;\n }",
"private double getDoubleAttribute(Element element, String attributeName)\n {\n try\n {\n return Double.parseDouble(getAttribute(element,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"private final double get_DOUBLE(int column) {\n if (metadata.isZos()) {\n byte[] bytes = new byte[8];\n dataBuffer_.getBytes(columnDataPosition_[column - 1], bytes);\n return FloatingPoint.getDouble_hex(bytes, 0);\n //return dataBuffer_.getDouble(columnDataPosition_[column - 1]);\n } else {\n return dataBuffer_.getDoubleLE(columnDataPosition_[column - 1]);\n// return FloatingPoint.getDouble(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }\n }",
"public double doubleValue()\n\t\t{\n\t\t\t// Converts BigIntegers to doubles and then divides \n\t\t\treturn (numerator.doubleValue()*1)/denominator.doubleValue();\n\t\t}",
"public static double readDouble() {\n return Double.parseDouble(readString());\n }",
"public Double getDouble(double defaultVal) {\n return get(ContentType.DoubleType, defaultVal);\n }",
"public double getAsDouble(int index) {\n switch (type) {\n case TIFFTag.TIFF_BYTE: case TIFFTag.TIFF_UNDEFINED:\n return ((byte[])data)[index] & 0xff;\n case TIFFTag.TIFF_SBYTE:\n return ((byte[])data)[index];\n case TIFFTag.TIFF_SHORT:\n return ((char[])data)[index] & 0xffff;\n case TIFFTag.TIFF_SSHORT:\n return ((short[])data)[index];\n case TIFFTag.TIFF_SLONG:\n return ((int[])data)[index];\n case TIFFTag.TIFF_LONG: case TIFFTag.TIFF_IFD_POINTER:\n return ((long[])data)[index];\n case TIFFTag.TIFF_FLOAT:\n return ((float[])data)[index];\n case TIFFTag.TIFF_DOUBLE:\n return ((double[])data)[index];\n case TIFFTag.TIFF_SRATIONAL:\n int[] ivalue = getAsSRational(index);\n return (double)ivalue[0]/ivalue[1];\n case TIFFTag.TIFF_RATIONAL:\n long[] lvalue = getAsRational(index);\n return (double)lvalue[0]/lvalue[1];\n case TIFFTag.TIFF_ASCII:\n String s = ((String[])data)[index];\n return Double.parseDouble(s);\n default:\n throw new ClassCastException();\n }\n }",
"@Override\n public Class getValueType() {\n return Double.class;\n }",
"public double getFieldAsDouble(int tag) {\n return getFieldAsDouble(tag, 0);\n }",
"public double getValue() {\n\t\treturn m_dValue;\n\t}",
"double getDoubleValue3();",
"public abstract double getasDouble(int tuple, int val);",
"public abstract double read_double();",
"public static double getDouble(String key) throws UnknownID, ArgumentNotValid {\n\t\tString value = get(key);\n\t\ttry {\n\t\t\treturn Double.parseDouble(value);\n\t\t} catch (NumberFormatException e) {\n\t\t\tString msg = \"Invalid setting. Value '\" + value + \"' for key '\" + key\n\t\t\t\t\t+ \"' could not be parsed as a double.\";\n\t\t\tthrow new ArgumentNotValid(msg, e);\n\t\t}\n\t}",
"public Double getValue() {\n return value;\n }",
"public Double getValue() {\n return value;\n }",
"double readDouble()\n throws IOException {\n return Double.longBitsToDouble( readLong() );\n }",
"public double getDouble(int index)\r\n/* 203: */ {\r\n/* 204:220 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 205:221 */ return super.getDouble(index);\r\n/* 206: */ }",
"public double getValue();",
"public double getDouble(@NonNull String name) {\n return getDouble(name, /* defaultValue */ 0.0);\n }",
"public Double getDouble(JSONValue val , String key){\r\n\t\tif ( val==null||key==null || key.length()==0)\r\n\t\t\treturn null ; \r\n\t\tJSONObject obj=val.isObject() ; \r\n\t\tif ( obj==null )\r\n\t\t\treturn null ; \r\n\t\tif (!obj.containsKey(key))\r\n\t\t\treturn null; \r\n\t\tJSONValue actualVal = obj.get(key);\r\n\t\tif ( actualVal.isNull() !=null)\r\n\t\t\treturn null ; \r\n\t\tif ( actualVal.isNumber() !=null)\r\n\t\t\treturn actualVal.isNumber().doubleValue();\r\n\t\treturn null ; \r\n\t}",
"public double fieldValuetoDouble() {\n return Double.parseDouble(this.TF_Field_Value); // This just might throw and Exception. \n }",
"double getDoubleValue1();",
"public Double getDouble(String name) {\n Object o = get(name);\n if (o instanceof Number) {\n return ((Number)o).doubleValue();\n }\n\n if (o != null) {\n try {\n String string = o.toString();\n if (string != null) {\n return Double.parseDouble(string);\n }\n }\n catch (NumberFormatException e) {}\n }\n return null;\n }",
"public double readDouble() throws IOException {\n int token = fTokenizer.nextToken();\n if (token == StreamTokenizer.TT_NUMBER)\n return fTokenizer.nval;\n\n String msg = \"Double expected in line: \" + fTokenizer.lineno();\n throw new IOException(msg);\n }",
"public Double getDouble(String key, Double defaultValue);",
"public static double leerDouble() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"private double getDoubleAttribute(Element element, String tagName, String attributeName)\n {\n try\n {\n return Double.parseDouble(getAttribute(element,tagName,attributeName));\n }\n catch (NumberFormatException exception)\n {\n return 0.0;\n }\n }",
"double getBasedOnValue();",
"public double getValue() {\n return this._value;\n }",
"@java.lang.Override\n public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }",
"public Double D(String key) throws AgentBuilderRuntimeException {\n\t\treturn getDouble(key);\n\t}",
"public double getValue() {\n\t\treturn(value);\n\t}",
"public double getDoubleValue() {\n\t\treturn Double.parseDouble(userInput);\n\t}",
"public double getValue() {\r\n\t\treturn value;\r\n\t}",
"public double evaluateAsDouble();",
"public abstract Double getDataValue();",
"private double readDouble() throws IOException {\n\t\treturn (isBigEndian ? ioReadDouble() : Double.longBitsToDouble(readLELong()));\n\t}",
"public double getDoubleValue1() {\n return doubleValue1_;\n }",
"public double getDouble(int row, int column) {\n return columns[column].getDouble(row);\n }",
"@Override\n public Double value(TypeOfValue value);",
"public double getValue() {\n return value_;\n }",
"public abstract double getValue();",
"@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}",
"public double getDoubleValue1() {\n return doubleValue1_;\n }",
"public double doubleValue(final int i) {\n if (!isInteger(i)) {\n return Float.intBitsToFloat((int) values[i]);\n }\n throw new ClassCastException(\"value #\" + i + \" is not a float in \" + this);\n }",
"double getValue();"
] |
[
"0.7446545",
"0.7431287",
"0.7405447",
"0.73595995",
"0.7351445",
"0.7305362",
"0.7234056",
"0.72339034",
"0.71920455",
"0.71817064",
"0.71573126",
"0.7153489",
"0.71355164",
"0.7105889",
"0.7080113",
"0.7074876",
"0.6979134",
"0.69516313",
"0.6929768",
"0.6892578",
"0.68483424",
"0.6843235",
"0.6835144",
"0.68009055",
"0.6794153",
"0.6785306",
"0.6781285",
"0.67803705",
"0.6754211",
"0.6747393",
"0.6745137",
"0.67438334",
"0.67299706",
"0.6727768",
"0.67093194",
"0.6701545",
"0.6701349",
"0.6685297",
"0.66838485",
"0.66582423",
"0.66533303",
"0.66500616",
"0.6649816",
"0.6636346",
"0.663289",
"0.6602003",
"0.6593607",
"0.6583667",
"0.6543265",
"0.65343714",
"0.65146315",
"0.6507588",
"0.647749",
"0.64555895",
"0.64517266",
"0.6441051",
"0.6427739",
"0.6424821",
"0.64155835",
"0.6414803",
"0.6402556",
"0.64019907",
"0.6398912",
"0.6398669",
"0.63846153",
"0.63807046",
"0.6370757",
"0.63463765",
"0.63463765",
"0.6331377",
"0.6322178",
"0.6318597",
"0.63181704",
"0.6316158",
"0.63093156",
"0.6305011",
"0.63031787",
"0.6296747",
"0.6296156",
"0.6292922",
"0.6290384",
"0.6285181",
"0.62709653",
"0.62701875",
"0.6268616",
"0.6266636",
"0.6264694",
"0.62632304",
"0.625957",
"0.6259429",
"0.6245609",
"0.6236795",
"0.6235272",
"0.62314236",
"0.6223571",
"0.622285",
"0.6220616",
"0.6218798",
"0.6211511",
"0.6210461"
] |
0.7992479
|
0
|
Returns the integer value of the item, if it is a atomic item of type integer.
|
public int getIntegerValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not an integer.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getInt() {\r\n\t\treturn (value.getInt());\r\n\t}",
"public int getIntValue() {\n return (int)getValue();\n }",
"public int getIntValue(){\n\t\treturn value.intValue();\n\t}",
"public Integer getInteger() {\r\n\t\ttype(ConfigurationItemType.INTEGER);\r\n\t\treturn integerValue;\r\n\t}",
"Integer getValue();",
"Integer getValue();",
"public int get_int_value()\n\t{\n\t\treturn this.int_value;\n\t}",
"public int getItemIntValue(){\n return itemIntValue;\n }",
"public int intValue() {\n return value;\n }",
"public int intValue() {\n return m_value;\n }",
"public final int getInt()\n {\n return intValue;\n }",
"public static int getValueInt()\n {\n return Util.valueInt;\n }",
"public int getIntValue() {\n return intValue_;\n }",
"public int getInt(){\n return new BigInteger(this.value).intValue();\n }",
"public int getIntValue() {\n return intValue_;\n }",
"public Integer getIntValue() {\n\t\treturn this.intValue;\r\n\t}",
"public int getInt() {\n return integer;\n }",
"public int intValue( )\n {\n return value;\n }",
"public int intValue() {\r\n return _value;\r\n }",
"public int getInt()\n {\n return intValue;\n }",
"public int getInt()\n {\n return intValue;\n }",
"@Override\r\n public int intValue() {\r\n return (int) this.m_current;\r\n }",
"public Integer getValue();",
"int getIntValue();",
"IntegerValue getValueObject();",
"public int getIntegerValue() {\r\n\t\t\treturn val;\r\n\t\t}",
"public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }",
"public int intVal(){\n\n if(currentTokenType == TYPE.INT_CONST){\n\n return Integer.parseInt(currentToken);\n }else {\n throw new IllegalStateException(\"Current token is not an integer constant!\");\n }\n }",
"BigInteger getInteger() {\n\n\t\t\tif (this.type != DerParser.INTEGER) {\n\t\t\t\tthrow new IllegalStateException(String.format(\"Invalid DER: object (%d) is not integer.\", this.type));\n\t\t\t}\n\n\t\t\treturn new BigInteger(this.value);\n\t\t}",
"public int intValue()\n\t\t{\n\t\t\treturn (int) doubleValue();\n\t\t}",
"public static int getValueForItem(int item) {\n\t\t\tfor (Tiara tiara : values()) {\n\t\t\t\tif (tiara.getItem() == item)\n\t\t\t\t\treturn tiara.getValue();\n\t\t\t}\n\t\t\treturn -1;\n\t\t}",
"public int getInteger(int pos) {\n return Tuples.toInteger(getObject(pos));\n }",
"public Integer getAsInteger(String itemName, Integer defaultValue);",
"private int getInt() {\n intBuffer.rewind();\n archive.read(intBuffer);\n intBuffer.flip();\n return intBuffer.getInt();\n }",
"protected synchronized int getIntegerValue(String tag) {\n int returnInt = 0;\n if (actualProperties != null) {\n returnInt = Integer.decode(actualProperties.getProperty(tag, \"0\"));\n }\n return returnInt;\n }",
"public int intValue();",
"public int getValue() {\n return intValue;\n }",
"public int getValue() {\n return intValue;\n }",
"public int getIntValue() {\n if (getValueIndex() <= 0)\n return 0;\n return ((IntEntry) getPool().getEntry(getValueIndex())).getValue();\n }",
"public Integer toInteger() {\n\t\treturn this.getValue().intValue();\n\t}",
"org.apache.xmlbeans.XmlInt xgetValue();",
"@Override\n public int getIntValue()\n {\n return value;\n }",
"public Integer getInt(K key) throws ClassCastException;",
"public final int intValue() {\n /*\n r2 = this;\n java.lang.String r0 = r2.f4032 // Catch:{ NumberFormatException -> 0x0007 }\n int r0 = java.lang.Integer.parseInt(r0) // Catch:{ NumberFormatException -> 0x0007 }\n return r0\n L_0x0007:\n java.lang.String r0 = r2.f4032 // Catch:{ NumberFormatException -> 0x000f }\n long r0 = java.lang.Long.parseLong(r0) // Catch:{ NumberFormatException -> 0x000f }\n int r1 = (int) r0\n return r1\n L_0x000f:\n java.math.BigDecimal r0 = new java.math.BigDecimal\n java.lang.String r1 = r2.f4032\n r0.<init>(r1)\n int r0 = r0.intValue()\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: o.C0442.intValue():int\");\n }",
"public int intValue(Map<Prop, Object> map) {\n assert type == Integer.class;\n Object o = map.get(this);\n return this.<Integer>typeValue(o);\n }",
"public int getIntValue(){\n return value;\n }",
"public int getIntValue()\n {\n return value;\n }",
"public int getIntValue()\n {\n return value;\n }",
"int intValue();",
"public Integer getInt(String attr) {\n return (Integer) super.get(attr);\n }",
"public int intValue() {\n\t\treturn getSection().intValue();\n\t}",
"public int intVal() {\r\n\t\t\tassert kind == Kind.INTEGER_LITERAL;\r\n\t\t\treturn Integer.valueOf(String.copyValueOf(chars, pos, length));\r\n\t\t}",
"public int getValue ()\r\n\t{\r\n\t\treturn (m_value);\r\n\t}",
"public int getValue() {\n\t\t// Precondition -- The value is a non-negative integer.\n\t\tassert(value >= 0);\n\t\t\n\t\treturn value;\n\t}",
"public int getAsInt(String key) {\n return getAsInt(key, 0);\n }",
"public BigInteger getInteger() throws IOException {\n if ( type != DerParser.INTEGER ) {\n throw new IOException(\n BaseMessages.getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERObjectIsNotAnInteger\" ) );\n }\n\n return new BigInteger( value );\n }",
"protected final int get_INTEGER(int column) {\n // @AGG had to get integer as Little Endian\n if (metadata.isZos())\n return dataBuffer_.getInt(columnDataPosition_[column - 1]);\n else\n return dataBuffer_.getIntLE(columnDataPosition_[column - 1]);\n// return SignedBinary.getInt(dataBuffer_,\n// columnDataPosition_[column - 1]);\n }",
"public int intValue() {\n if (originalValue instanceof Integer) {\n return (Integer) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).intValue();\n } else if (originalValue instanceof String) {\n final String originalString = (String) this.originalValue;\n\n try {\n return Integer.parseInt(originalString);\n } catch (NumberFormatException e1) {\n try {\n return (int) Double.parseDouble(originalString);\n } catch (NumberFormatException e2) {\n // it will be more reasonable to throw an exception which\n // indicates that the conversion to int has failed\n e1.addSuppressed(e2);\n throw new CellValueCastException(e1);\n }\n }\n } else {\n throw new CellValueCastException();\n }\n }",
"public int getIntegerValue()\n {\n// if (val != Math.round(val))\n// System.err.println(\"IntegerYoVariable: returning a different value than what it used to be.\");\n return val;\n }",
"public int getValueAsIntegerValue() throws DataFieldException {\n\t\ttry {\n\t\t\treturn Integer.parseInt(this.value);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\tthrow new DataFieldException(\n\t\t\t\t\t\"Couldn't parse value into an integer. Value: \"\n\t\t\t\t\t+ this.value, nfe);\n\t\t}\n\t}",
"public boolean isInt() {\n return this.data instanceof Integer;\n }",
"public final int getValue() {\n return mValue;\n }",
"public int getValue()\n\t{\n\t\treturn bitHolder.getValue();\n\t}",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default int asInt() {\n \n return notSupportedCast(BasicTypeID.INT);\n }",
"public Integer getInteger(final int index) {\n Object returnable = this.get(index);\n if (returnable == null) {\n return null;\n }\n if (returnable instanceof String) {\n /* A String can be used to construct a BigDecimal. */\n returnable = new BigDecimal((String) returnable);\n }\n return ((Number) returnable).intValue();\n }",
"public Integer getIntegerAttribute();",
"public int getInt(String key) {\n Object value = get(key);\n return ((value instanceof Long) ? ((Long)value).intValue() : 0);\n }",
"public int xint() {\n\t\treturn (int) x;\n\t}",
"public int getValue() {\n return m_value;\n }",
"private int getEntryFieldInt(int item, OFFSET offset) {\n switch (offset) {\n case KEY_LENGTH:\n // return two low bytes of the key length index int\n return (entries[item + offset.value] & KEY_LENGTH_MASK);\n case KEY_BLOCK:\n // offset must be OFFSET_KEY_BLOCK, return 2 high bytes of the int inside key length\n // right-shift force, fill empty with zeroes\n return (entries[item + offset.value] >>> KEY_BLOCK_SHIFT);\n case VALUE_LENGTH:\n return (entries[item + offset.value] & VALUE_LENGTH_MASK);\n case VALUE_BLOCK:\n return (entries[item + offset.value] >>> VALUE_BLOCK_SHIFT);\n default:\n return entries[item + offset.value];\n }\n }",
"@Override\n\tpublic Integer getValue() {\n\t\treturn value;\n\t}",
"@Override\n\tpublic Integer getValue() {\n\t\treturn value;\n\t}",
"public Integer getValue() {\n return _value ;\n }",
"public int intValue() {\n\t\treturn (int) mDouble;\n\t}",
"public Integer getItemNo() {\n\t\treturn itemNo;\n\t}",
"@Override\n\tpublic Type getType() {\n\t\treturn Type.INT_TYPE;\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\r\n\t\treturn value;\r\n\t}",
"public static int getInt(Integer value)\r\n\t{\r\n\t\treturn getInt(value, 0);\r\n\t}",
"@Override\r\n\tpublic int getInt(int arg) {\n\t\treturn 0;\r\n\t}",
"public Item evaluateItem(XPathContext context) throws XPathException {\n Item item = operand.evaluateItem(context);\n if (item==null) return null;\n return ((AtomicValue)item).convert(requiredPrimitiveType, context);\n }",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn value;\n\t}",
"public int getValue() {\n\t\treturn mValue;\n\t}",
"public int getValue()\n {\n return mi_value;\n }",
"public int getValue()\n {\n return mi_value;\n }",
"public int value() {\r\n\t\treturn value;\r\n\t}",
"public int getValue() {\n return value_;\n }",
"public Integer getIntegerData(String key) {\n return pref.getInt(key, 0);\n }",
"public int getITEM() {\r\n return item;\r\n }",
"public int getM_Inventory_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Inventory_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public int getValue() {\n return mValue;\n }"
] |
[
"0.68029594",
"0.6741476",
"0.67385405",
"0.66688037",
"0.6617235",
"0.6617235",
"0.65043706",
"0.6503698",
"0.64889777",
"0.6476846",
"0.6465643",
"0.6442278",
"0.64283144",
"0.6420368",
"0.64172965",
"0.6407625",
"0.63925105",
"0.6369247",
"0.6335734",
"0.6289822",
"0.6289822",
"0.6262251",
"0.62315434",
"0.6230061",
"0.6217184",
"0.62031597",
"0.61923575",
"0.6165762",
"0.61655366",
"0.6159804",
"0.61553067",
"0.61469436",
"0.6144336",
"0.61264336",
"0.6111709",
"0.60986584",
"0.6088093",
"0.6088093",
"0.60866284",
"0.6084771",
"0.60516787",
"0.6031471",
"0.6007659",
"0.59892",
"0.5988844",
"0.5975447",
"0.5950443",
"0.5950443",
"0.5949513",
"0.5936448",
"0.5932563",
"0.59275687",
"0.5899997",
"0.589329",
"0.58919746",
"0.58679384",
"0.5855548",
"0.58434516",
"0.5835054",
"0.5832901",
"0.58305925",
"0.5813342",
"0.58120775",
"0.58028215",
"0.57994616",
"0.5797215",
"0.5784889",
"0.57660437",
"0.5763785",
"0.57552123",
"0.5749146",
"0.5749146",
"0.57478136",
"0.57466525",
"0.57436466",
"0.5739283",
"0.5738138",
"0.5738138",
"0.5738138",
"0.5738138",
"0.5738138",
"0.5738138",
"0.5738138",
"0.5738138",
"0.5721026",
"0.57199454",
"0.57116735",
"0.5708359",
"0.5708359",
"0.5708359",
"0.5708359",
"0.5708138",
"0.5707207",
"0.5707207",
"0.57044804",
"0.5698982",
"0.5697785",
"0.5697774",
"0.5692939",
"0.56879234"
] |
0.7336385
|
0
|
Returns the decimal value of the item, if it is a atomic item of type decimal.
|
public BigDecimal getDecimalValue() {
throw new OurBadException(" Item '" + this.serialize() + "' is not a big decimal.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Money getItemValue();",
"BigDecimal getValue();",
"public Decimal toDecimalForm() {\n return amount.movePoint(-2);\n }",
"public org.xmlsoap.schemas.soap.encoding.Decimal getDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.xmlsoap.schemas.soap.encoding.Decimal target = null;\r\n target = (org.xmlsoap.schemas.soap.encoding.Decimal)get_store().find_element_user(DECIMAL$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public BigDecimal castToDecimalValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }",
"public java.math.BigDecimal getITEM_AMOUNT() {\r\n return ITEM_AMOUNT;\r\n }",
"private static BigDecimal arrayNodeItemAsDecimal(ArrayNode arrayNode, int index) {\n if (arrayNode == null) {\n return null;\n }\n JsonNode itemNode = arrayNode.get(index);\n if (itemNode == null) {\n return null;\n }\n return new BigDecimal(itemNode.asText());\n }",
"public AmountType getItemPrice() {\n\t return this.itemPrice;\n\t}",
"public ArrowBuf getDecimal(int columnIndex) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }",
"public int getFieldDecimal()\n\t{\n\t\treturn fieldDecimal;\n\t}",
"public ArrowBuf getDecimal(String columnName) {\n DecimalVector vector = (DecimalVector) table.getVector(columnName);\n return vector.get(rowNumber);\n }",
"public BigDecimal getInvalidDecimal() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getInvalidDecimal();\n ServiceResponse<BigDecimal> response = getInvalidDecimalDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"public BigDecimal getPriceActual();",
"public String getUnitAmountDecimal() {\n return this.unitAmountDecimal;\n }",
"private final BigDecimal get_DECIMAL(int column) {\n return Decimal.getBigDecimal(dataBuffer_,\n columnDataPosition_[column - 1],\n getColumnPrecision(column - 1),\n getColumnScale(column - 1));\n }",
"BigDecimal getAmount();",
"public java.math.BigDecimal getDecimal() {\n return localDecimal;\n }",
"public BigDecimal getDecimalObj(int columnIndex) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n return vector.getObject(rowNumber);\n }",
"public java.math.BigDecimal getBigDecimal(String attr) {\n return (java.math.BigDecimal) super.get(attr);\n }",
"BigDecimal getPrice();",
"public int getDecimalDigits() { return 1; }",
"public int getDecimalDigits() { return 1; }",
"int getMoneyValue();",
"int getMoneyValue();",
"public Number getPriceVal() {\n return (Number)getAttributeInternal(PRICEVAL);\n }",
"public void getDecimal(String columnName, NullableDecimalHolder holder) {\n DecimalVector vector = (DecimalVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"public boolean isDecimal() {\n return false;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public BigDecimal getPrice() {\n return (BigDecimal)getAttributeInternal(PRICE);\n }",
"public BigDecimal getBigDecimalAttribute();",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"public int getMoneyValue() {\n return moneyValue_;\n }",
"BigDecimal getDirtyPrice();",
"public BigDecimal getPriceEntered();",
"public DecimalFormat getMoney() {\r\n\t\treturn money;\r\n\t}",
"public MMDecimal getDepositAmount() {\r\n return this.depositAmount;\r\n }",
"public BigDecimal getOrderItemProice() {\n return orderItemProice;\n }",
"public BigDecimal getMoney() {\r\n return money;\r\n }",
"public BigDecimal getMoney() {\r\n return money;\r\n }",
"public BigDecimal getMoney() {\r\n return money;\r\n }",
"public void getDecimal(int columnIndex, NullableDecimalHolder holder) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}",
"public float getItemPrice()\n\t{\n\t\treturn itemPrice;\n\t}",
"public BigDecimal getConvertedSplitQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedSplitQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public Integer getOrderItemAmount() {\n return orderItemAmount;\n }",
"protected String getFormattedItemPrice() {\n return formattedItemPrice;\n }",
"public BigDecimal getMoney() {\n return money;\n }",
"public BigDecimal getMoney() {\n return money;\n }",
"public BigDecimal getMoney() {\n return money;\n }",
"public BigDecimal getPriceStd();",
"public int getPrice()\r\n\t{\r\n\t\treturn theItem.getPrice();\r\n\t}",
"public BigDecimal getTaxAmtPriceStd();",
"public BigDecimal getPayAmt();",
"protected Double getItemPrice() {\n return itemPrice;\n }",
"public BigDecimal getDecimalObj(String columnName) {\n DecimalVector vector = (DecimalVector) table.getVector(columnName);\n return vector.getObject(rowNumber);\n }",
"public org.apache.xmlbeans.XmlDecimal xgetMinValueDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDecimal target = null;\r\n target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(MINVALUEDECIMAL$0, 0);\r\n return target;\r\n }\r\n }",
"public Boolean getAllowDecimals() {\r\n return this.allowDecimals = getInstanceOf(Boolean.class, this.allowDecimals);\r\n }",
"public BigDecimal getPriceStdEntered();",
"private static BigDecimal nextNodeAsDecimal(Iterator<JsonNode> iterator) {\n if (iterator == null || !iterator.hasNext()) {\n return null;\n }\n return new BigDecimal(iterator.next().textValue());\n }",
"public BigDecimal getBigDecimalPositiveDecimal() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getBigDecimalPositiveDecimal();\n ServiceResponse<BigDecimal> response = getBigDecimalPositiveDecimalDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"private double getDoubleFromDECIMAL(int column) {\n return Decimal.getDouble(dataBuffer_,\n columnDataPosition_[column - 1],\n getColumnPrecision(column - 1),\n getColumnScale(column - 1));\n }",
"public BigDecimal getConvertedProductQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedProductQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public BigDecimal getAMOUNT() {\r\n return AMOUNT;\r\n }",
"public float getItemPriceInvoice()\n\t{\n\t\treturn itemPriceInvoice;\n\t}",
"public java.math.BigDecimal getMinValueDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINVALUEDECIMAL$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigDecimalValue();\r\n }\r\n }",
"@Test\n\tpublic void testSingleSetOnlyDecimal()\n\t{\n\t\tcreateSingleValueSet(1.1);\n\t\tKeyedValues actual = DataUtilities.getCumulativePercentages(m_values);\n\t\t\n\t\tassertEquals(\"Cumulative percentage of a single decimal value should be 100%.\",\n\t\t\t\t1.0, actual.getValue(0).doubleValue(), 0.0000001);\n\t}",
"public static double getDecimal() throws ValorInvalidoException {\n double number;\n try {\n number=Double.parseDouble(getString());\n }catch(NumberFormatException e) {\n throw new ValorInvalidoException();\n }\n return number;\n }",
"public float getItemPriceIBAN()\n\t{\n\t\treturn itemPriceIBAN;\n\t}",
"DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();",
"public double getPricePerItem()\r\n {\r\n return pricePerItem;\r\n }",
"public double getMoney() {\n\t\treturn totalMoney;\n\t}",
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"public Double getBigDoublePositiveDecimal() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getBigDoublePositiveDecimal();\n ServiceResponse<Double> response = getBigDoublePositiveDecimalDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"public BigDecimal getConvertedShrinkQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedShrinkQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public Number getPrice() {\n return (Number)getAttributeInternal(PRICE);\n }",
"public BigDecimal getPriceLastInv();",
"public Integer getMoney() {\r\n return money;\r\n }",
"public double getItemPrice(){\n\t\t\t String priceStr;\n\t\t\t double price;\n\t\t\t String elemVal = driver.findElement(productPrice).getText();\n\t Reporter.log(\"==========Item Price is \" + elemVal + \"=======\", true);\n\t priceStr = elemVal.substring(1, elemVal.length());\n\t //return double as it is a price\n\t price = Double.parseDouble(priceStr);\n\t return price;\n\t }",
"public double getMoney() {\n return money_;\n }",
"public BigDecimal getItemPrice(Item item) {\n\t\tif (item instanceof BarcodedItem) {\n\t\t\tBarcodedItem barcodedItem = (BarcodedItem) item;\n\t\t\tBarcode code = barcodedItem.getBarcode();\n\n\t\t\tBarcodedProduct product;\n\t\t\t// look up the price in the database\n\t\t\ttry {\n\t\t\t\tproduct = productDatabase.getProductByBarcode(code);\n\t\t\t} catch (NonexistentBarcodeException e) {\n\t\t\t\tthrow new ControlSoftwareException(\"a purchased BarcodedItem does not exist\");\n\t\t\t}\n\t\t\treturn product.getPrice().setScale(2, BigDecimal.ROUND_HALF_DOWN);\n\t\t} else if (item instanceof PLUCodedItem) {\n\t\t\tPLUCodedItem pluItem = (PLUCodedItem) item;\n\t\t\tPriceLookupCode code = pluItem.getPLUCode();\n\t\t\tPLUCodedProduct pluProduct;\n\t\t\tBigDecimal itemWeight;\n\t\t\ttry {\n\t\t\t\tpluProduct = productDatabase.getProductByPLUCode(code);\n\t\t\t} catch (NonexistentPLUCodeException e) {\n\t\t\t\tthrow new ControlSoftwareException(\"a purchased PLUCodedItem does not exist\");\n\t\t\t}\n\t\t\titemWeight = BigDecimal.valueOf(pluItem.getWeight());\n\t\t\treturn pluProduct.getPrice().multiply(itemWeight).setScale(2, BigDecimal.ROUND_HALF_DOWN);\n\t\t} else if (!(item instanceof BagItem)) {\n\t\t\t// if the item is a bag, it is the customer's bag and doesn't\n\t\t\t// cost anything\n\t\t\tthrow new ControlSoftwareException(\"Couldn't find price of item.\");\n\t\t}\n\t\treturn new BigDecimal(\"0.00\");\n\t}",
"public double getMoney() {\n return money_;\n }",
"double getMoney();",
"public Integer getMoney() {\n return money;\n }",
"public java.math.BigDecimal getQty() throws java.rmi.RemoteException;",
"public BigDecimal getAmount() \r\n {\t\r\n \treturn amount;\t\r\n }",
"public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }",
"public BigDecimal getAmount() {\r\n return amount;\r\n }",
"public float getAsFloat(){\n return (new Float(getAsCents()) / 100);\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public BigDecimal getPrice() {\r\n return price;\r\n }",
"public double getMoney() {\n return this.money;\n }",
"public BigDecimal getQtyEntered();",
"public BigDecimal getAmount() {\n return this.amount;\n }",
"public SimpleIntegerProperty decimalsProperty() {\n return this.converter.decimalsProperty();\n }",
"public String addDecimal();",
"public Double getMoney() {\n return money;\n }",
"public BigDecimal getM_price() {\n return m_price;\n }",
"public BigDecimal getAmount() {\n return this.amount;\n }",
"public BigDecimal getPrice() {\n return price;\n }"
] |
[
"0.6798969",
"0.6232517",
"0.62186795",
"0.6191305",
"0.6149413",
"0.61480266",
"0.6136739",
"0.6072978",
"0.60693043",
"0.5995043",
"0.58869374",
"0.5879359",
"0.58554256",
"0.58404416",
"0.5814598",
"0.57634646",
"0.572081",
"0.57092357",
"0.5664671",
"0.56571084",
"0.56301564",
"0.56301564",
"0.56290066",
"0.56290066",
"0.5616418",
"0.5601817",
"0.55984914",
"0.5595002",
"0.5595002",
"0.5586719",
"0.5579637",
"0.5562386",
"0.5562386",
"0.5561407",
"0.5557641",
"0.55501044",
"0.55394095",
"0.5537425",
"0.55244076",
"0.55244076",
"0.55244076",
"0.55206233",
"0.55205315",
"0.5515957",
"0.5501908",
"0.5489805",
"0.5488481",
"0.548434",
"0.548434",
"0.548434",
"0.54711455",
"0.5468192",
"0.5463827",
"0.54613835",
"0.5461105",
"0.5460439",
"0.5456136",
"0.54376704",
"0.5433163",
"0.54206985",
"0.5414154",
"0.54056704",
"0.5395774",
"0.5394967",
"0.5391969",
"0.5387708",
"0.53677034",
"0.53670734",
"0.53584635",
"0.53581035",
"0.5357456",
"0.5350331",
"0.53458536",
"0.53441125",
"0.5333874",
"0.5329187",
"0.5328885",
"0.52975553",
"0.5294529",
"0.5285883",
"0.52834475",
"0.5282051",
"0.52793694",
"0.52792126",
"0.52741945",
"0.5269689",
"0.52696884",
"0.52694166",
"0.5266472",
"0.5266069",
"0.5266069",
"0.52614164",
"0.5259447",
"0.5258397",
"0.52569926",
"0.52555346",
"0.5251408",
"0.52495825",
"0.5241065",
"0.5238889"
] |
0.7058276
|
0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.