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: a | public final boolean mo34575a() {
return this.f16545b == 2;
} | {
"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 mo34573a(PresageSdkInitCallback presageSdkInitCallback) {
if (mo34576b()) {
presageSdkInitCallback.onSdkInitialized();
} else if (mo34575a()) {
this.f16547d.add(presageSdkInitCallback);
} else if (m20452e()) {
presageSdkInitCallback.onSdkNotInitialized();
} else if (mo34577c()) {
presageSdkInitCallback.onSdkInitFailed();
}
} | {
"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 |
/ access modifiers changed from: private / renamed from: a | public final void m20436a(Context context, C6502h hVar) {
if (!m20448c(context)) {
Context applicationContext = context.getApplicationContext();
String i = hVar.mo35513i();
if (!C6514hl.m21416a((Object) i, (Object) "")) {
TommedAuvergne.CamembertauCalvados camembertauCalvados = this.f16550g;
C6514hl.m21414a((Object) applicationContext, "appContext");
camembertauCalvados.mo34711a(applicationContext).m20730b(false);
MoelleuxduRevard.m20486a(applicationContext);
m20437a(applicationContext, i, hVar);
return;
}
IllegalStateException illegalStateException = new IllegalStateException("There is no api key. Please call PresageSdk.init(context, apiKey) before trying to load or display an ad");
Log.e("Presage", "Init Error", illegalStateException);
throw illegalStateException;
}
throw new IllegalStateException("The app is not in main application process");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\n\tpublic void a() {\n\t\t\n\t}",
"protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }",
"public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }",
"public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }",
"public void a() {\r\n }",
"public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public void a() {\n ((a) this.a).a();\n }",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"public void a() {\n }",
"public void a() {\n }",
"public b[] a() {\n/* 95 */ return this.a;\n/* */ }",
"public String i() {\n/* 44 */ return this.a.toString();\n/* */ }",
"public static void a() {\n\n }",
"public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }",
"public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"public void b() {\r\n }",
"@Override\n public void b() {\n }",
"public void mo38117a() {\n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }",
"public void m23075a() {\n }",
"public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"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 void b() {\n }",
"public void b() {\n }",
"public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }",
"public static a c() {\n }",
"public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }",
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"void m1864a() {\r\n }",
"public static aa a() {\n }",
"public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }",
"interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }",
"@Override\n\tpublic void b() {\n\n\t}",
"public interface a {\n void a();\n\n void a(al alVar);\n\n void b(al alVar);\n\n void c(al alVar);\n }",
"public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }",
"public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }",
"interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }",
"public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }",
"public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }",
"public void a(MinecraftKey var0) {\n/* 98 */ this.a = var0;\n/* */ }",
"interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }",
"public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }",
"private stendhal() {\n\t}",
"public interface a {\n }",
"public void mo12930a() {\n }",
"public abstract Object mo1771a();",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"public void mo2740a() {\n }",
"public boolean a()\r\n/* 598: */ {\r\n/* 599:597 */ return this.k;\r\n/* 600: */ }",
"public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }",
"public void mo4359a() {\n }",
"public void mo9848a() {\n }",
"interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }",
"public interface a {\n void a();\n }",
"public interface a {\n void a();\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }",
"public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }",
"public abstract void m15813a();",
"public abstract String a();",
"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 final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"public void mo6944a() {\n }",
"public interface C0069a {\n void a();\n }",
"public void mo21825b() {\n }",
"public abstract Object mo26777y();",
"public vx i()\r\n/* 185: */ {\r\n/* 186:212 */ return vx.a;\r\n/* 187: */ }",
"public void mo1531a() {\n }",
"public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }",
"public void mo44053a() {\n }",
"protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }",
"public void mo115188a() {\n }",
"@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }",
"public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}",
"public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\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 static String a(int c) {\n/* 89 */ return b.a(c);\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 AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"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 C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }",
"public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }",
"public abstract void mo53562a(C18796a c18796a);",
"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 final /* synthetic */ Object a() {\r\n return c.a(this.a, b.d());\r\n }",
"private final void i() {\n }",
"public void mo23813b() {\n }",
"public interface a {\n void a(Throwable th);\n\n void a(byte[] bArr, long j);\n\n void d();\n\n void e();\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/* */ }"
] | [
"0.74791193",
"0.7183595",
"0.706427",
"0.69989604",
"0.69537586",
"0.68506294",
"0.6671992",
"0.6662657",
"0.6653048",
"0.66148585",
"0.66131645",
"0.6557727",
"0.6512991",
"0.6500032",
"0.6500032",
"0.6463079",
"0.63729537",
"0.63633233",
"0.63582325",
"0.63552934",
"0.6350412",
"0.6316702",
"0.6301415",
"0.6290001",
"0.62658566",
"0.626024",
"0.626024",
"0.6245529",
"0.6244256",
"0.6220732",
"0.62096405",
"0.62089294",
"0.6200751",
"0.6200751",
"0.6187002",
"0.6186805",
"0.61722505",
"0.61709666",
"0.61555755",
"0.6148689",
"0.61441696",
"0.61316484",
"0.6112826",
"0.61091596",
"0.6107705",
"0.6107542",
"0.60989684",
"0.60970277",
"0.60947275",
"0.6083331",
"0.60661453",
"0.60632044",
"0.605531",
"0.60471445",
"0.6040253",
"0.6039191",
"0.6033651",
"0.6028442",
"0.6028186",
"0.6018173",
"0.6017759",
"0.60139954",
"0.601184",
"0.6008888",
"0.6008888",
"0.6007434",
"0.6000072",
"0.5985646",
"0.59844637",
"0.598121",
"0.5978671",
"0.59759766",
"0.5975381",
"0.59740955",
"0.59702086",
"0.5965436",
"0.5957528",
"0.5947789",
"0.59370655",
"0.5934526",
"0.5932472",
"0.59213656",
"0.59196395",
"0.5917659",
"0.5904406",
"0.58943105",
"0.5885929",
"0.58800924",
"0.5878158",
"0.5872444",
"0.58701164",
"0.58681417",
"0.5867474",
"0.58633286",
"0.58627105",
"0.5862022",
"0.5861065",
"0.58608365",
"0.5859595",
"0.5858785",
"0.58554506"
] | 0.0 | -1 |
/ renamed from: a | private static void m20437a(Context context, String str, C6502h hVar) {
C6556j a = C6565k.m21538a(context);
if (a != null) {
try {
CrashReport.register(context, new SdkInfo(m20449d(), str, hVar.mo35503c()), new CrashConfig(a.mo35594o(), context.getPackageName()));
} catch (Throwable unused) {
}
}
} | {
"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 |
/ compiled from: MainSplashContract | public interface i {
void D(String str);
void H();
void L(String str);
void b0(Response response);
void c(List<DomainExpired> list);
void h(Map<String, List<ExtendedMail>> map);
void p(ApiError apiError);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface SplashContract {\n\n void showSplashImage();\n\n void isLogin();\n\n}",
"interface SplashContract {\n\n interface View{\n void changeToMainScreen(Intent intent);\n void showLoader();\n void hideLoader();\n }\n\n interface Presenter{\n void start();\n void showMainScreen();\n }\n\n}",
"@Override\n public void showSplash() {\n }",
"public interface SplashContract {\n interface View extends IView {\n RxPermissions getRxPermissions();\n\n void setSplashBackground(Splash splash);\n }\n\n interface Model extends IModel {\n Observable<Images> getSplashBackground(String format, int idx, int n);\n }\n}",
"public interface OnCompleteSplash {\n void onCorrectSplash(Intent intent);\n void onCancelledSplash();\n}",
"public interface SplashViewInteractor {\n // 首页动画\n Animation animateBackgroundImage();\n\n // 初始化内容\n SplashEntity initializeSplashInfo();\n\n // 获取城市列表\n List<CityInfoEntity> getCityInfo();\n\n // 检查是否第一次登录\n boolean checkIsFirstUse();\n}",
"public interface SplashModel {\n void getSplashImage(String url, SplashImageFinishCallback callback);\n}",
"public interface SplashInteractor extends Interactor {\n}",
"Icon getSplashImage();",
"public interface CliSplashScreen extends CliPlugin\n{\n /**\n * This method is called when the Shell is ready to display the SplashScreen.\n * @param ctx \n */\n public void render(CliContext ctx);\n}",
"public interface SplashView {\n\n void goToMain();\n void gotoLogin();\n\n}",
"public interface SplashView {\n void showAlert();\n void openMain();\n}",
"public interface SplashContract {\n\n interface View extends BaseView<Presenter> {\n void showGirl(String girlUrl);\n\n void showGirl();\n }\n\n interface Presenter extends BasePresenter {\n\n }\n\n}",
"void inject(SplashActivity activity);",
"public interface SplashView {\n View getSplashView();\n}",
"public interface SplashScreenView extends iBaseView {\n void onLoadLanguageSuccess(JSONObject json);\n\n void onLoadFailure(AppError appError);\n\n void onGetUserInfoSuccess(UserInfo userInfo);\n\n void onFailure(AppError appError);\n}",
"private void setupSplash() {\n \t\tthis.splashInfoContainer = (LinearLayout) this.findViewById( R.id.edit_gpsfilter_area_splash );\n \n \t\tTextView textView = (TextView) this.splashInfoContainer.findViewById( R.id.edit_gpsfilter_area_splash_text );\n \t\ttextView.setText( Html.fromHtml( this.getString( R.string.edit_gpsfilter_area_splash_text ) ) );\n \n \t\t// Define fade out animation.\n \t\tthis.splashFadeOut = new AlphaAnimation( 1.00f, 0.00f );\n \t\tthis.splashFadeOut.setDuration( SPLASH_FADE_DELAY );\n \t\tthis.splashFadeOut.setAnimationListener( new AnimationListener() {\n \t\t\tpublic void onAnimationStart( Animation animation ) {\n \t\t\t}\n \n \t\t\tpublic void onAnimationRepeat( Animation animation ) {\n \t\t\t}\n \n \t\t\tpublic void onAnimationEnd( Animation animation ) {\n \t\t\t\tsplashInfoContainer.setVisibility( View.GONE );\n \t\t\t}\n \t\t} );\n \n \t\t// Don't show if not new and we got polygon.\n \t\tif ( !this.isConsideredFresh() ) {\n \t\t\tthis.splashInfoContainer.setVisibility( View.GONE );\n \t\t}\n \t}",
"public static Texture getSplash(){\n //set a linear filter to clean image\n splash.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n //return image\n return splash;\n }",
"public interface SplashActivityPresenter extends Presenter<SplashActivityView> {\n\n void getFirstAppPicList(Context mContext);\n\n}",
"@Override \r\n public void onCreate(Bundle icicle) { \r\n super.onCreate(icicle);\r\n \r\n getWindow().setFormat(PixelFormat.RGBA_8888);\r\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_DITHER);\r\n setContentView(R.layout.splash_activity);\r\n \r\n //Display the current version number \r\n PackageManager pm = getPackageManager(); \r\n try {\r\n \tPackageInfo pi = pm.getPackageInfo(\"org.mems\", 0);\r\n TextView versionNumber = (TextView) findViewById(R.id.versionNumber); \r\n versionNumber.setText(\"Version \" + pi.versionName); \r\n } catch (NameNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n new Handler().postDelayed(new Runnable() {\r\n public void run() { \r\n \tIntent mainIntent = new Intent(SplashActivity.this, MainActivity.class); \r\n \tSplashActivity.this.startActivity(mainIntent); \r\n \tSplashActivity.this.finish(); \r\n } \r\n }, 2000); //2000 for release \r\n }",
"private void createSplash(ArticleElement ae) {\n\t\tint splashWidth = 427;\n\t\tint splashHeight = 120;\n\t\tint width = ae.getDataParamWidth();\n\t\tint height = ae.getDataParamHeight();\n\t\tif (ae.getDataParamShowMenuBar()) {\n\t\t\t// The menubar has extra height:\n\t\t\theight += 31;\n\t\t}\n\t\tif (ae.getDataParamShowToolBar()) {\n\t\t\t// The toolbar has extra height:\n\t\t\theight += 57;\n\t\t}\n\t\tboolean showLogo = ((width >= splashWidth) && (height >= splashHeight));\n\t\tsplash = new SplashDialog(showLogo);\n\t\t\n\t\tif (width > 0 && height > 0) {\n\t\t\tsetWidth(width + \"px\");\n\t\t\tsetDataParamWidth(ae.getDataParamWidth());\n\t\t\tsetDataParamHeight(ae.getDataParamHeight());\n\t\t\tsetHeight(height + \"px\");\n\t\t\tsplash.addStyleName(\"splash\");\n\t\t\tsplash.getElement().getStyle()\n\t\t\t .setTop((height / 2) - (splashHeight / 2), Unit.PX);\n\t\t\tsplash.getElement().getStyle()\n\t\t\t .setLeft((width / 2) - (splashWidth / 2), Unit.PX);\n\n\t\t}\n\t\taddStyleName(\"jsloaded\");\n\t\tadd(splash);\n\t}",
"public interface MainConst extends NetUrl_Const {\n\t/**\n\t * 当为true时为商业模式,此时异常不抛出,日志不打印。关闭所有开发痕迹。\n\t */\n\tpublic final static boolean DEVS_BUSINESS_MODEL = false;\n\n\t/**\n\t * true时打印日志。<br/>\n\t * false不打印日志。\n\t */\n\tpublic final static boolean DEVS_PRINT_LOG = true;\n\t/**\n\t * true时抛出异常\n\t */\n\tpublic final static boolean DEVS_THROW_ALL_EXCEPTION = true;\n\n\t/**\n\t * app_token\n\t */\n\tpublic final static String APP_APP_TOKEN = \"readyGo1408.app_token@bj-china\";\n\t/**\n\t * MD5加密盐\n\t */\n\tpublic final static String APP_MD5_TOKEN = \"readyGo1408.md5@bj-china\";\n\t/**\n\t * 硬件平台,安卓平台\n\t */\n\tpublic final static String APP_PLATFORM = \"2\";\n}",
"public interface IMainActivityContract {\n\n interface View extends BaseContract.BaseView {\n }\n\n interface Presenter extends BaseContract.BasePresenter<View> {\n void isBackApp();\n }\n}",
"private void showSplash() {\n \t\tthis.splashInfoContainer.setVisibility( View.VISIBLE );\n \t}",
"public interface MainActivityContract {\n interface Presenter extends BasePresenter {\n void loadStyleList();\n }\n\n interface View extends BaseView<Presenter> {\n void showSuccess();\n\n void showFailed();\n }\n}",
"private StoneContract() {\n }",
"public interface MainContract {\n interface View {\n // notify the view that a request is about to start. Useful for giving user a feedback like displaying a progress bar.\n void onFetchDataStarted();\n // notify the view that no more data will be returned.\n void onFetchDataCompleted();\n // return the requested data as its parameter, in the model type we have defined above.\n void onFetchDataSuccess(CharactersResponseModel charactersResponseModel);\n // an error has occurred during the request. Could be a connection failure, for example.\n void onFetchDataError(Throwable e);\n }\n\n interface Presenter {\n // will tell the presenter to start fetching data.\n void loadData();\n // notify the presenter that its view has become active. This can be used to trigger the API request.\n void subscribe();\n // notify the presenter that its view has become inactive. This can be used to cancel any previous request that hasn't returned yet.\n void unsubscribe();\n // notify the presenter that its view instance is about to be destroyed. In this tutorial the view will instantiate the presenter and they will maintain a reference to each other by private properties, so we should clear this reference on the presenter when the view is going through the onDestroy lifecycle otherwise this will lead to memory leaks.\n void onDestroy();\n\n }\n}",
"public interface MainContract {\n\t\n\tinterface View extends BaseView<Presenter> {\n\t\tvoid setCurrentLocation(Location location);\n\t\tvoid handleCurrentLocationError(Exception e);\n\t\tvoid updateSlider(List<User> users);\n\t\tvoid setUsers(List<User> mUsers);\n\t}\n\t\n\tinterface Presenter extends BasePresenter<View> {\n\t\tvoid initLocationSettingsRequest();\n\t\tvoid startLocationUpdates();\n\t\tvoid getUsers();\n\t}\n}",
"private ProjectContract() {\n }",
"public interface SplashScreenInterface {\n \n void goMenu();\n\n}",
"public interface SplashView {\n //跳转到引导页面\n void jumpToGuide();\n\n //跳转到登录页面\n void jumpToLogin();\n\n //跳转到主页面\n void jumpToMain();\n}",
"static void renderSplashFrame(Graphics2D g) {\n\t\tfinal String version = \"Release: 2.1.1 - release date: 2022-07-31\";\r\n\t\tg.setComposite(AlphaComposite.Clear);\r\n\t\tg.fillRect(120, 140, 200, 40);\r\n\t\tg.setPaintMode();\r\n\t\tg.setColor(Color.BLACK);\r\n\t\tg.drawString(\"Loading \" + version + \"...\", 120, 350);\r\n\t}",
"public Splash() {\n initComponents();\n }",
"public Splash() {\n initComponents();\n }",
"public interface MainActivityContract {\n interface View extends BaseView{\n\n\n void getLocationNow(android.view.View view);\n void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults);\n void locationObtained(boolean isObtained);\n void locationEnabled(boolean isEnabled);\n void showerror(String s);\n\n\n }\n interface Presenter extends BasePresenter<View>{\n\n void attachView(MainActivityContract.View view);\n void checkLocationActive(Activity activity);\n void init(Activity activity);\n void getContext(Context context);\n void getLocation(String lattitude, String longitude);\n void getLocationByAddress(String a, String b, String c, String d, String e);\n void getLocationByGeo(String a, String b, String c, String d, String e);\n void DettachedView();\n }\n\n}",
"void setSplashContentView() {\n// verifyUser = PreferenceHelper.isVerifyMail(getContext());\n // user is logged in app and is active.\n view.setSplashViewLayout(R.layout.activity_splash);\n\n }",
"Bundle mo741k() throws RemoteException;",
"public interface MainContract {\n\n interface Presenter {\n void onViewReady();\n\n void loadVenues();\n\n void setView(View view);\n\n void setService(ApiService apiService);\n }\n\n interface View {\n void dismissAnimations();\n\n void showError(boolean isConnectionError);\n\n void updateList(List<Venue> venues);\n }\n}",
"private byte[] getDeploymentJarBytesForContract(Contract contract) {\n byte[] jarBytes = null;\n switch (contract) {\n case AION_BUFFER_PERF:\n jarBytes = classesToJarBytes(\n AionBufferPerfContract.class,\n AionBuffer.class);\n // Verify that this size doesn't unexpectedly change.\n Assert.assertEquals(7_764L, jarBytes.length);\n break;\n case BASIC_PERF:\n jarBytes = classesToJarBytes(\n BasicPerfContract.class,\n AionList.class,\n AionMap.class,\n AionSet.class);\n // Verify that this size doesn't unexpectedly change.\n Assert.assertEquals(28_732L, jarBytes.length);\n break;\n case POC_EXCHANGE:\n jarBytes = classesToJarBytes(\n ExchangeController.class,\n Exchange.class,\n ExchangeTransaction.class,\n ByteArrayHelpers.class,\n ERC20Token.class,\n AionList.class,\n AionSet.class,\n AionMap.class);\n // Verify that this size doesn't unexpectedly change.\n Assert.assertEquals(32_571L, jarBytes.length);\n break;\n case ERC20:\n byte[] clinitArgs = ABIUtil.encodeMethodArguments(\"\", \"Pepe\".toCharArray(), \"PEPE\".toCharArray(), 8);\n jarBytes = classesToJarBytesWithClinitArgs(\n clinitArgs,\n CoinController.class,\n ERC20Token.class,\n AionList.class,\n AionSet.class,\n AionMap.class);\n // Verify that this size doesn't unexpectedly change.\n Assert.assertEquals(28_012L, jarBytes.length);\n break;\n case BASIC_APP:\n jarBytes = classesToJarBytes(\n BasicAppTestTarget.class,\n AionMap.class,\n AionSet.class,\n AionList.class);\n // Verify that this size doesn't unexpectedly change.\n Assert.assertEquals(26_106L, jarBytes.length);\n break;\n case TRS:\n jarBytes = classesToJarBytes(\n TRS.class,\n AionMap.class);\n // Verify that this size doesn't unexpectedly change.\n Assert.assertEquals(16_091L, jarBytes.length);\n break;\n default: throw new AssertionError(\"This should never be reached.\");\n }\n\n return jarBytes;\n }",
"interface HomeContract {\n interface View extends AvatarView {\n void setCurrency(String currency);\n\n void setUsername(String username);\n\n void setSteps(String stepString);\n\n void displayMessage(String message);\n\n void navigateToShop();\n\n void navigateToGraphs();\n\n void navigateToLoginScreen();\n\n void navigateToFriendsScreen();\n\n void showMessage(String s);\n\n void disableSession();\n\n void enableSession();\n\n void navigateToProfile();\n }\n\n interface Presenter extends BasePresenter<HomeContract.View> {\n void loadAvatar();\n\n void accessShop();\n\n void accessLoginScreen();\n\n void accessGraphs();\n\n void onViewAttached(HomeContract.View view);\n\n void onViewDetached();\n\n void accessFriends();\n\n void logout();\n\n void login();\n\n void endSession();\n\n void startSession();\n\n void accessProfile();\n }\n\n interface Model {\n\n }\n}",
"@Override\n public void run() {\n Intent mainIntent = new Intent(StartSplash.this, SplashActivity.class);\n StartSplash.this.startActivity(mainIntent);\n StartSplash.this.finish();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.splash);\n\n }",
"@Override\n public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }",
"public interface LoginContract {\n\n interface View {\n\n void showProgress();\n\n void hideProgress();\n\n void showErrorAuth(String errorMassage);\n\n void showSuccessAuth();\n\n void setFromSharedPref(String email,String password,boolean isChecked);\n\n void showErrorEmptyField();\n\n void showErrorUnvalidField();\n\n void openMainActivity();\n\n void openRegisterActivity();\n\n }\n\n interface Presenter {\n\n void attachView(View view);\n\n void detachView();\n\n void OnClickRegisterButton();\n\n void loginUser(String email,String password, boolean isCheked);\n\n void onClickLoginButton(String email,String password,boolean isChecked);\n\n void saveToSharedPref(String email,String password,boolean isChecked);\n\n void viewIsReady();\n\n void onSuccessLogin();\n\n void onFailedLogin(String errorMessage);\n\n void setFromSharedPref(String email,String password,boolean isChecked);\n }\n}",
"interface MainContract {\n interface View extends BaseView<Presenter> {\n void updateDynamicLinkLong(String link);\n\n void updateDynamicLinkShort(String link);\n }\n interface Presenter extends BasePresenter<View> {\n void sendAppInvite(Activity activity, int resultCode);\n\n void processDeepLink(Intent intent);\n\n void buildDynamicLink();\n\n void forceCrash(boolean catchCrash);\n }\n}",
"public interface HomeContract {\n interface View extends BaseView<Presenter>{\n void showLoading();\n\n void stopLoading();\n\n void showResults();\n\n void loadToday();\n\n void showError(String msg);\n }\n\n interface Presenter extends BasePresenter<View>{\n void loadLocal(List<BaseBean> beans);\n\n void loadToday(List<BaseBean> beans);\n\n void loadJoke();\n\n void loadFunnyPic();\n\n void loadJuheNews();\n\n void loadOnePic();\n\n void loadOneArticle();\n }\n}",
"public SimplePromise<Void> init(final ITradeContract contract)\n {\n BusyIndicator.show(bodyView);\n return Async.run(new Callable<Void>() {\n @Override\n public Void call() throws Exception {\n\n //retrieve the details of this contract\n ContractDetailFragment.this.contract = contract;\n verifyIdentity = contract.getVerifyIdentity().get();\n state = contract.getState().get();\n seller = contract.getSeller().get();\n\n //check if the local content matches the remote content hash (used for light contracts only)\n final boolean contentVerified = contract.verifyContent().get();\n\n final String description = contract.getDescription().get();\n final String title = contract.getTitle().get();\n final List<String> imageSignatures = contract.getImageSignatures().get();\n\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n if(verifyIdentity && contract.getUserProfile().getVCard() == null)\n {\n //hide interaction view and display notification if identity verification is required\n contractInteractionView.setVisibility(View.GONE);\n appContext.getMessageService().showMessage(\"You must first scan the user profile of the other party to interact with this contract!\");\n }\n\n if(!contentVerified)\n {\n //notify the user that the local and remote content do not match (only for light contracts)\n //This can happen when the user scanned the contract by QR-Code and the contract contains images...\n appContext.getMessageService().showMessage(\"The content for this local contract could not be verified.\\n Please try to import the contract again.\");\n }\n\n //create a bitmap image that contains a QR code with all the details of the contract\n Bitmap bm = QRCode.from(contract.toJson()).withSize(250, 250).bitmap();\n qrImageView.setImageBitmap(bm);\n\n //init text views\n stateView.setText(state.toString());\n titleView.setText(title);\n descriptionView.setText(description);\n addressView.setText(contract.getContractAddress());\n\n //add images to container\n imageContainer.removeAllViews();\n images.clear();\n\n if(imageSignatures != null)\n {\n for(String sig : imageSignatures)\n {\n addImage(contract.getImages().get(sig));\n }\n }\n }\n });\n\n return null;\n }\n }).always(new AlwaysCallback<Void>() {\n @Override\n public void onAlways(Promise.State state, Void resolved, Throwable rejected) {\n BusyIndicator.hide(bodyView);\n }\n });\n }",
"public interface LoginContract {\n interface view extends BaseView<Presenter> {\n\n void showErrorMessage();\n void showLoadingIndicator();\n void hideLoadingIndicator();\n\n\n void lauchMainActivity();\n }\n\n interface Presenter extends BasePresenter {\n\n void loginWithMail(String mail,String password);\n void loginWithGoogle(Fragment fragment);\n\n }\n}",
"public interface WelcomeContract {\n interface View extends BaseView<Presenter> {\n void showContent(String path, Animation animation);\n void jumpToMain();\n }\n interface Presenter extends BasePresenter {\n }\n}",
"@Override\r\n public void run() {\n if (preferences.getBoolean(\"isMain\",false))\r\n {\r\n startActivity(new Intent(SplashScreen.this,MainActivity.class));\r\n finish();\r\n }else {\r\n editor.putBoolean(\"isMain\",true);\r\n editor.apply();\r\n\r\n TaskStackBuilder.create(SplashScreen.this)\r\n .addNextIntentWithParentStack(new Intent(SplashScreen.this,MainActivity.class))\r\n .addNextIntent(new Intent(SplashScreen.this,IntroActivity.class))\r\n .startActivities();\r\n }\r\n }",
"public interface SplashView {\n void onCheckLogin(boolean isLogin);\n}",
"public interface LoginContract {\n\n interface View extends BaseView {\n void show(String url);\n }\n\n interface Model extends BaseModel {\n void getModle(String url,CallBacks callBacks);\n }\n\n abstract static class Presenter extends BasePresenter<Model, View> {\n\n @Override\n public void onStart() {\n\n }\n public abstract void Loginas(String url);\n \n }\n}",
"public static ImageIcon splashImage() {\n if (splashImage == null) {\r\n splashImage = IconLoader.icon(\"splash.png\");\r\n //splashImage = IconLoader.icon(I18N.get(\"splash.png\"));\r\n }\r\n return splashImage;\r\n }",
"@SuppressWarnings(\"ALL\")\ninterface MainContract {\n\n interface MainViewBehavior {\n void setAdapter(MoviesResponse moviesResponse);\n void showErrorMessage();\n void showDetailViewOfMovieItem(Movie movie);\n void updateScreen(String date);\n }\n interface MainPresenterBehavior {\n void fetchMoviesDataAsync();\n void handleItemTouchEvent(int position);\n void attachView(MainContract.MainViewBehavior view);\n void handleBtnDateFilter(Context context);\n void fetchMoviesDataByDate(String date);\n }\n}",
"@ActivityScope\n@Component(\n dependencies = AppComponent.class,\n modules = SplashModule.class\n)\npublic interface SplashComponent {\n void inject(SplashActivity splashActivity);\n}",
"public void start() {\n\t\tFile splashFile = new File(\"Splash\", \"title\");\r\n\t\tsplashString = TextFileReader.getContents(splashFile);\r\n\t\tsendOutput(splashString);\r\n\t\tsendOutput(\"Version \" + versionNum);\r\n\t\tsendOutput(\"by \" + author);\r\n\t\tprintMenu();\r\n\t}",
"public void run() {\n Intent mainIntent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(mainIntent);\n finish();\n }",
"public SplashScreen() {\r\n instance = this;\r\n\r\n width = 600;\r\n height = 600;\r\n\r\n icon = \"graphics/application/icon_96.png\";\r\n }",
"@ActivityScope\npublic interface HomePresenterContract extends BasePresenterContract{\n /**\n * Obtiene una planificacion en particular para luego salvarla\n * @param tipoPlanificacion Tipo de planificacion (1 Academica, 2 Aulas, 3 Horarios)\n */\n void getPlanificacion(int tipoPlanificacion);\n\n /**\n * Obtiene el periodo academico actual y actualiza la ui\n */\n void getCurrentPeriodo();\n\n /**\n * Verifica si tiene permisos de escritura, si no los tiene los pide.\n * Esto se usa para poder guardar el archivo de planificacion\n * @return True en caso de tenerlos\n */\n boolean isWritePermissionGranted();\n\n /**\n * Se encarga de guardar el archivo excel en la memoria\n * @param filename Nombre a darle al archivo\n * @param responseBody ResponseBody\n * @param emitter ObservableEmitter<String> Usado para luego llamar a los metodos que actualizan la ui\n */\n void saveFile(String filename, ResponseBody responseBody, ObservableEmitter<String> emitter);\n\n void subscribe();\n}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n new AddressBookPresenter(this);\n // 去掉标题\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.act_splash_screen);\n // 闪屏核心代码\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n if (LinphoneManager.getCore().getProxyConfigList().length > 0)\n {\n return;\n }\n Intent intent = new Intent(ActSplashScreen.this,\n LoginPhoneActivity.class);\n // 从启动动画切换到主界面\n startActivity(intent);\n ActSplashScreen.this.finish();// 结束动画\n }\n }, 3000);\n }",
"@Override\n\tpublic Screen getStartScreen() {\n\t\treturn new Splash(this);\n\t}",
"public void start() {\n/* 255 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private static void splashScreen() {\n\t\t\n\t\tString message = \"Welcome to JProject v\"+VERSION+\"\\nby Gabriel Skoropada\";\n\t\t\n\t\tJOptionPane.showMessageDialog(null, message, \"JProject v\"+VERSION, JOptionPane.NO_OPTION, null);\n\t\t\n\t}",
"public interface GetOwnerContract {\n\n interface View extends Lifecycle.View {\n void onSuccess(OwnerObj response);\n void onError(int code);\n }\n\n interface ViewModel extends Lifecycle.ViewModel {\n void getOwnerDetails(OwnerRequest request);\n void setRequestState(int state);\n }\n\n}",
"@Override\n public void run() {\n Intent intent = new Intent(SplashActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n }",
"public ULocale build() {\n/* 1725 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"Bundle mo29838Oa() throws RemoteException;",
"void gotoMainIntent() {\r\n // Intenting to start the activity \"main\".\r\n Intent mainIntent = new Intent(this, Main.class);\r\n this.startActivity(mainIntent);\r\n this.finish(); // Splash screen is done now... Needed, otherwise when closing the main activity will result\r\n // in coming back to the splashscreen.\r\n }",
"public interface IMcuContract {\n interface IView extends ImpBaseView{\n void loginRes(Type type);\n }\n interface IPresenter extends ImpBasePresenter{\n IPresenter initURL(Context c, String ip, int port, boolean isSSL);\n void login(String account,String pwd);\n }\n}",
"public void setMainApp(SplashScreenApp mainApp){\n\t\tthis.mainApp = mainApp;\n\t}",
"public MainEntryPoint() {\r\n\r\n }",
"@Override\n public void run() {\n Intent i = new Intent(Splash.this, MainActivity.class);\n startActivity(i);\n finish();\n }",
"public Bundle getExtras() {\n/* 1775 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void showSplash ()\n {\n ResourceBundle resourceBundle = null;\n try\n {\n resourceBundle = ResourceBundle.getBundle(\"splash\", Locale.getDefault());\n }\n catch (MissingResourceException ignored)\n {\n System.out.println(\"Info: file splash.properties not found in resources root directory.\");\n }\n\n FXMLLoader fxmlLoader = new FXMLLoader();\n if (resourceBundle != null)\n {\n fxmlLoader.setResources(resourceBundle);\n }\n try\n {\n primaryStage.setScene(new Scene(fxmlLoader.load(getClass().getResourceAsStream(\"/splash.fxml\"))));\n primaryStage.initStyle(StageStyle.UNDECORATED);\n primaryStage.centerOnScreen();\n primaryStage.show();\n }\n catch (NullPointerException ignored)\n {\n System.out.println(\"Info: file splash.fxml not found in resources root directory.\");\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }",
"public interface IndexFragMentCC2Contract {\n\n interface View extends BaseView {\n void outLogin();\n void succeed(AppGetMyMemberCardListActivedBean appGetMyMemberCardListActivedBean);\n\n\n }\n\n interface Presenter extends BasePresenter<View> {\n\n\n\n void appGetMyMemberCardListActived(String APPUserId ,String ClubId ,String Token ,int currentPage);\n\n }\n}",
"@PerActivity\npublic interface SplashMvpPresenter <V extends SplashMvpView> extends MvpPresenter<V> {\n\n}",
"public interface LoginContract {\n interface View extends BaseView<Presenter> {\n void redirectToMain();\n }\n\n interface Presenter extends BasePresenter {\n void performLogin(String email, String password);\n }\n}",
"public interface LoginViewContract extends BaseViewContract {\n void hideLoading();\n\n void intentToHomeActivity();\n\n void onBtnSignInClick();\n\n void setEnabledViews(boolean enabled);\n\n void showLoading();\n}",
"private CatalogContract() {}",
"public interface LoginContract {\n\n interface View {\n\n void showLoading();\n\n void hideLoading();\n\n void loginSucces();\n\n void loginError(String error);\n\n }\n\n interface Presenter extends BasePresenter<View> {\n\n void login(String dni, String password);\n\n }\n\n interface Callback {\n\n void getLoginSucces();\n\n void getLoginError(String error);\n\n void getLoginFailure(String message);\n }\n\n //registro de los nuevos usuarios\n interface ViewUserRegistration {\n void showLoading();\n\n void hideLoading();\n\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n }\n\n interface PresenterUserRegistration extends BasePresenter<ViewUserRegistration> {\n void userRegistration(String cod_sap, String mail);\n }\n\n interface CallbackRegistration {\n void userRegistrationSuccess(UserRegisterResponse userRegisterResponse);\n\n void userRegistrationError(String error);\n\n void userRegistrationFailure(String failure);\n }\n\n //cambios de password ya sea por olvido o por tener passwords por defecto\n interface ViewChangePassword {\n void showLoading();\n\n void hideLoading();\n\n void changeUserPasswordSuccess(UserRegisterResponse userRegisterResponse);\n\n void changeUserPasswordError(String error);\n }\n\n interface PresenterChangePassword extends BasePresenter<ViewChangePassword> {\n void changeUserPassword(UserRegisterRequest userRegisterRequest);\n }\n\n interface CallbackChangePassword {\n void changeUserPasswordSucces(UserRegisterResponse userRegisterResponse);\n\n void changeUserPasswordError(String error);\n\n void changeuserPasswordFailure(String failure);\n }\n}",
"public interface MainContract {\n interface MvpView {\n void showCreateActivity();\n void showActiveActivity();\n void showReadActivity();\n void showLoginForm();\n }\n\n interface Presenter {\n void handleCreateButtonClick(View view);\n void handleActiveButtonClick(View view);\n void handleReadButtonClick(View view);\n void handleLoginFormClick(View view);\n }\n}",
"public interface MainContract {\n\n interface MainView extends AbsView{\n /**\n * 进入时显示的界面\n */\n void initShow();\n\n void addFragment();\n\n void showFragment(int witch,int... hide);\n\n\n\n }\n\n interface Presenter extends AbsPresenter<MainView>{\n\n }\n}",
"public interface InfoListContract {\n\n interface View {\n Context getContext();\n\n void showProgressBar(boolean shouldShow);\n\n boolean isNetworkAvailable();\n\n void showNoDataMsg();\n\n void reInitListSupportVariable();\n\n void setToolbarTitle(String title);\n\n void showViews(boolean enabled);\n\n void showViewMsg(int rString);\n\n void enableListRefresh(boolean enabled);\n\n CountingIdlingResource getIdlingResource();\n }\n\n interface Presenter {\n void setView(View view);\n\n void init();\n\n void fetchData();\n\n void getDataFromApi();\n\n void loadData();\n\n List<RowDescription> getRowDescriptions();\n\n RowContentInfo getRowContentInfo();\n\n void setRowContentInfo(RowContentInfo rowContentInfo);\n\n void onStart();\n\n void onStop();\n\n int getRecentItemPosition();\n\n void setRecentItemPosition(int lastItemPosition);\n }\n\n}",
"public interface CommonClientBundle extends ClientBundle {\n public static final CommonClientBundle INSTANCE = GWT.create(CommonClientBundle.class);\n\n @Source(\"sign.png\")\n ImageResource sign();\n\n @Source(\"woodburry.png\")\n ImageResource logo();\n}",
"@Override\n public void run() {\n Intent mainIntent = new Intent().setClass(\n SplashScreenActivity.this, MainActivity.class);\n startActivity(mainIntent);\n \n // Close the activity so the user won't able to go back this\n // activity pressing Back button\n finish();\n }",
"public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n\r\n // Do not display title bar, this makes the splash screen really full screen\r\n requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n \r\n // Check if we need to display the splash screen. If no, go directly to the main intent\r\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\r\n boolean showscreen = prefs.getBoolean(\"showsplashscreen\", true);\r\n if (! showscreen) {\r\n \t gotoMainIntent();\r\n \t return;\r\n }\r\n \r\n\r\n // Set the layout\r\n setContentView(R.layout.splash);\r\n\r\n // This will run after a specified time (SPLASH_DISPLAY_LENGHT milliseconds)\r\n new Handler().postDelayed(new Runnable(){\r\n public void run() {\r\n \t gotoMainIntent();\r\n }\r\n }, SPLASH_DISPLAY_LENGHT);\r\n }",
"public interface LoginContract {\n interface View extends BaseView {\n void loginSuccess();\n }\n\n interface Presenter extends BasePresenter {\n void login();\n }\n}",
"public interface SettingsContract {\n\n interface Presenter extends BasePresenter {\n /**\n * 检测更新app\n */\n void getUpdateApp();\n\n /**\n * 下载app\n */\n void downloadApp(String updateAppUrl);\n\n\n /**\n * 是否登录\n */\n void isLogin(int flag);\n\n }\n\n interface View extends BaseNewView<Presenter, String> {\n// /**\n// * http请求正确\n// *\n// * @param s\n// */\n// void getSuccess(String s);\n//\n// /**\n// * http请求错误\n// */\n// void error(String msg);\n\n }\n}",
"public interface IDownloadAidlDepend extends IInterface {\n /* renamed from: a */\n void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException;\n\n /* renamed from: com.ss.android.socialbase.downloader.d.m$a */\n /* compiled from: IDownloadAidlDepend */\n public static abstract class AbstractBinderC7166a extends Binder implements IDownloadAidlDepend {\n public IBinder asBinder() {\n return this;\n }\n\n public AbstractBinderC7166a() {\n attachInterface(this, \"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n }\n\n /* renamed from: a */\n public static IDownloadAidlDepend m42991a(IBinder iBinder) {\n if (iBinder == null) {\n return null;\n }\n IInterface queryLocalInterface = iBinder.queryLocalInterface(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n if (queryLocalInterface == null || !(queryLocalInterface instanceof IDownloadAidlDepend)) {\n return new C7167a(iBinder);\n }\n return (IDownloadAidlDepend) queryLocalInterface;\n }\n\n @Override // android.os.Binder\n public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {\n if (i == 1) {\n parcel.enforceInterface(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n BaseException aVar = null;\n DownloadInfo createFromParcel = parcel.readInt() != 0 ? DownloadInfo.CREATOR.createFromParcel(parcel) : null;\n if (parcel.readInt() != 0) {\n aVar = BaseException.CREATOR.createFromParcel(parcel);\n }\n mo45684a(createFromParcel, aVar, parcel.readInt());\n parcel2.writeNoException();\n return true;\n } else if (i != 1598968902) {\n return super.onTransact(i, parcel, parcel2, i2);\n } else {\n parcel2.writeString(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n return true;\n }\n }\n\n /* renamed from: com.ss.android.socialbase.downloader.d.m$a$a */\n /* compiled from: IDownloadAidlDepend */\n private static class C7167a implements IDownloadAidlDepend {\n\n /* renamed from: a */\n private IBinder f30137a;\n\n C7167a(IBinder iBinder) {\n this.f30137a = iBinder;\n }\n\n public IBinder asBinder() {\n return this.f30137a;\n }\n\n @Override // com.p803ss.android.socialbase.downloader.p833d.IDownloadAidlDepend\n /* renamed from: a */\n public void mo45684a(DownloadInfo cVar, BaseException aVar, int i) throws RemoteException {\n Parcel obtain = Parcel.obtain();\n Parcel obtain2 = Parcel.obtain();\n try {\n obtain.writeInterfaceToken(\"com.ss.android.socialbase.downloader.depend.IDownloadAidlDepend\");\n if (cVar != null) {\n obtain.writeInt(1);\n cVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n if (aVar != null) {\n obtain.writeInt(1);\n aVar.writeToParcel(obtain, 0);\n } else {\n obtain.writeInt(0);\n }\n obtain.writeInt(i);\n this.f30137a.transact(1, obtain, obtain2, 0);\n obtain2.readException();\n } finally {\n obtain2.recycle();\n obtain.recycle();\n }\n }\n }\n }\n}",
"public static void splashScreen() {\n System.out.println(line(\"-\", 80));\n System.out.println(\"Welcome to DavisBaseLite\"); // Display the string.\n System.out.println(\"DavisBaseLite Version \" + getVersion());\n System.out.println(getCopyright());\n System.out.println(\"\\nType \\\"help;\\\" to display supported commands.\");\n System.out.println(line(\"-\", 80));\n }",
"public interface LoginContract {\n\n interface View extends IBaseView {\n void loginSuccess();\n\n void codeSuccess();\n }\n\n abstract class Presenter extends BasePresenter<View> {\n public abstract void login(String phone, String pwd);\n\n public abstract void confirmState(EditText etPhone, EditText etPwd, RoundTextView tvConfirm);\n\n public abstract void code(String phone);\n\n public abstract void wxLogin(BaseFragment root, String wx_openid, String wx_token);\n }\n}",
"public interface MainScreenContract {\n interface View {\n void showDogs(List<Dog> dogs);\n\n void showError(String message);\n\n void showComplete();\n }\n\n interface Presenter {\n void loadDogs();\n }\n}",
"private InCallPresenter() {\n }",
"@Override\r\n\tpublic void initSDK(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e( \"initSDK\");\r\n\t\tappContext = _in_context;\r\n\t\tappActivity = (Activity) appContext;\r\n\t\t\r\n\t\tBundle bundle = new Bundle();\r\n\t\tIntent intent = new Intent();\r\n\r\n\t\tintent.setClass(_in_context, TypeSDKSplash.class);\r\n\t\tintent.putExtras(bundle);\r\n\t\t_in_context.startActivity(intent);\r\n\t\t\r\n\t\tif(TypeSDKTool.isScreenOriatationPortrait(appContext)){\r\n\t\t\tisLandscape = false;\r\n\t\t}\r\n\t\t\r\n\t\tisDebug = TypeSDKTool.isPayDebug;\r\n\t\tif (isInit) {\r\n\t\t\tTypeSDKLogger.e( \"sdk is already init\");\r\n\t\t\tTypeSDKNotify_haima notify = new TypeSDKNotify_haima();\r\n\t\t\tnotify.Init();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tthis.haimaInit();\r\n\t\t\r\n\t}",
"private TodoContract() {}",
"public void a(final IUmengInAppMessageCallback iUmengInAppMessageCallback) {\n c();\n com.umeng.message.common.d.a(new Runnable() {\n public void run() {\n UInAppMessage uInAppMessage;\n UMLog.mutlInfo(d.f81246a, 2, \"get splash message begin\");\n try {\n JSONObject sendRequest = JUtrack.sendRequest(d.this.b(), MsgConstant.SPLASH_MSG_ENDPOINT);\n if (sendRequest != null && TextUtils.equals(sendRequest.getString(\"success\"), \"ok\")) {\n UMLog.mutlInfo(d.f81246a, 2, \"get splash message success\" + sendRequest);\n JSONObject jSONObject = sendRequest.getJSONObject(\"data\");\n InAppMessageManager.f81177b = jSONObject.getInt(\"pduration\") * PushConstants.PUSHSERVICE_INFO_SENDMESSAGE_BY_NOTIFICATIONSERVICE;\n InAppMessageManager.f81178c = jSONObject.getInt(\"sduration\") * PushConstants.PUSHSERVICE_INFO_SENDMESSAGE_BY_NOTIFICATIONSERVICE;\n iUmengInAppMessageCallback.onSplashMessage(new UInAppMessage(jSONObject.getJSONObject(\"launch\")));\n InAppMessageManager.getInstance(d.this.f81249b).c();\n } else if (sendRequest == null || !TextUtils.equals(sendRequest.getString(\"success\"), \"fail\") || !TextUtils.equals(sendRequest.getString(\"error\"), \"no message\")) {\n iUmengInAppMessageCallback.onSplashMessage(null);\n } else {\n String e2 = InAppMessageManager.getInstance(d.this.f81249b).e();\n if (!TextUtils.isEmpty(e2)) {\n try {\n uInAppMessage = new UInAppMessage(new JSONObject(e2));\n } catch (JSONException unused) {\n uInAppMessage = null;\n }\n if (uInAppMessage != null) {\n InAppMessageManager.getInstance(d.this.f81249b).a(new File(h.d(d.this.f81249b, uInAppMessage.msg_id)));\n InAppMessageManager.getInstance(d.this.f81249b).a((UInAppMessage) null);\n }\n }\n }\n } catch (Exception unused2) {\n iUmengInAppMessageCallback.onSplashMessage(null);\n }\n }\n });\n }",
"public interface LogOutContract {\n\n interface View extends BaseView<LogOutPresenter> {\n void showLoading();\n void hideLoading();\n void showMessage(String message);\n void gotoLogIn();\n }\n}",
"public interface WelcomeContract {\n\n interface View extends BaseView {\n\n void showContent(GankItemBean welcomeBean);\n\n void jumpToMain();\n\n }\n\n interface Presenter extends BasePresenter<View> {\n\n void getWelcomeData();\n\n }\n}",
"private void showSplashScreen() {\n splashDialog = new SplashScreenDialog(this);\n splashDialog.show();\n }",
"private Dex2JarProxy() {\r\n\t}",
"@Override\r\n public void run() {\n Intent i = new Intent(SplashScreen.this, MainActivity.class);\r\n startActivity(i);\r\n finish();\r\n }"
] | [
"0.72668517",
"0.684685",
"0.64813554",
"0.63527024",
"0.6144714",
"0.61340606",
"0.6069095",
"0.60440606",
"0.5988055",
"0.5970808",
"0.5760777",
"0.5720235",
"0.5683814",
"0.565484",
"0.56033534",
"0.55989385",
"0.5560012",
"0.55569434",
"0.55393094",
"0.5537396",
"0.55097085",
"0.54861563",
"0.54621804",
"0.54015946",
"0.5384321",
"0.5376287",
"0.5360039",
"0.5353597",
"0.534135",
"0.5320078",
"0.5294646",
"0.5290295",
"0.5287933",
"0.5287933",
"0.52865934",
"0.52529895",
"0.5239615",
"0.5237716",
"0.52365434",
"0.5212789",
"0.520134",
"0.5201044",
"0.51824766",
"0.51820606",
"0.5180238",
"0.51756954",
"0.5173",
"0.51665163",
"0.5165216",
"0.5161467",
"0.5161178",
"0.5156052",
"0.51531297",
"0.5128369",
"0.5127482",
"0.5125127",
"0.5124618",
"0.5122769",
"0.5109533",
"0.5109344",
"0.5106791",
"0.5098264",
"0.5088661",
"0.50829333",
"0.5081678",
"0.507844",
"0.5077472",
"0.5077377",
"0.5069109",
"0.5062046",
"0.506146",
"0.5059541",
"0.504482",
"0.504359",
"0.50221086",
"0.5015512",
"0.5009016",
"0.50056434",
"0.49981883",
"0.49966186",
"0.49964693",
"0.4995086",
"0.49892858",
"0.4987237",
"0.49865457",
"0.4986035",
"0.49817714",
"0.497554",
"0.49754706",
"0.4974965",
"0.4970014",
"0.4966933",
"0.49663728",
"0.496295",
"0.49628142",
"0.49580747",
"0.4955054",
"0.49547285",
"0.49522018",
"0.49512523",
"0.4949778"
] | 0.0 | -1 |
Methode zum Abfragen der ID | public int getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getAId();",
"String getID();",
"String getID();",
"String getID();",
"String getID();",
"@Override public String getID() { return id;}",
"java.lang.String getID();",
"public String getID();",
"public String getID();",
"public String getID();",
"public String getID();",
"public String getID();",
"public String getID();",
"public String getID();",
"public int getID();",
"public int getID();",
"public int getID();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"java.lang.String getAoisId();",
"public abstract long id();",
"int getBId();",
"public int getaID() {\r\n return aID;\r\n }",
"int getAid();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();",
"String getId();"
] | [
"0.7468488",
"0.7166499",
"0.7166499",
"0.7166499",
"0.7166499",
"0.70697856",
"0.7024694",
"0.701675",
"0.701675",
"0.701675",
"0.701675",
"0.701675",
"0.701675",
"0.701675",
"0.7010748",
"0.7010748",
"0.7010748",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7006122",
"0.7005032",
"0.6996297",
"0.6985014",
"0.69655967",
"0.6963873",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814",
"0.69613814"
] | 0.0 | -1 |
Methode zum Abfragen des Schuldners zur Forderung | public Account getDebtor() {
return debtor;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void bfs() {\n\n }",
"@Override\r\n\tpublic void benachrichtigeBeobachter() {\n\t\tfor (int i = 0; i < beobachter.size(); i++) {\r\n\t\t\tBeobachter b = (Beobachter)beobachter.get(i);\r\n\t\t\tb.aktualisieren(temperatur, feuchtigkeit, luftdruck);\r\n\t\t}\r\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"public void aenderung() {\r\n\t\tvermittler.aenderungAufgetreten(this); // Vermittler informiert\r\n\t}",
"public void trenneVerbindung();",
"public abstract void zzf(Object obj, B b);",
"void zmniejszBieg();",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public abstract void zza(B b, int i, zzeh zzeh);",
"public abstract void afvuren();",
"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 }",
"void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}",
"@Override\n\tpublic void postorder() {\n\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void inorder() {\n\n\t}",
"public void setzeSchiffe() {\n\t\tthis.setzeSchiffe = true;\n\t}",
"public void f() {\n if (this instanceof b) {\n b bVar = (b) this;\n Message q_ = bVar.q_();\n e.c().a(new f(bVar.b(), q_.toByteArray()), getClass().getSimpleName(), i().a(), q_);\n return;\n }\n f a2 = a();\n if (a2 != null) {\n e.c().a(a2, getClass().getSimpleName(), i().a(), (Message) null);\n }\n }",
"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 }",
"@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}",
"public void sendeSpielfeld();",
"public abstract Koordinate schuss();",
"@Override\n\tpublic void accept_order() {\n\t\t\n\t}",
"@Override\n\tpublic void rotiereNachRechts() {\n\n\t}",
"@Override\r\n\tprotected void doF2() {\n\t\t\r\n\t}",
"public void besucherZuordnen(Spieler besucher) {\n\t\tboolean hinsetzen = false;\n\t\twhile (!hinsetzen) {\n\t\t\tfor (Tisch it : this.tische) {\n\t\t\t\tif (it.AnzahlTeilnehmer() < 8) {\n\t\t\t\t\tit.hinsetzen(besucher);\n\t\t\t\t\tbesucher.setTischNr(this.tische.indexOf(it));\n\t\t\t\t\tbesucher.setCasino(this);\n\t\t\t\t\tit.getDealer().setCasino(this);\n\t\t\t\t\thinsetzen = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!hinsetzen) {\n\t\t\t\ttischAufstellen(new Tisch());\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"public T fjern(){\n Node temp = hode.neste;\n temp.neste.forrige = hode;\n hode.neste = temp.neste;\n elementer--;\n return temp.element;\n }",
"@Override\r\n\tpublic void zjedz(Kost k) {\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void bidfunction() {\n\t\t\n\t}",
"@Override\n\tpublic void bidfunction() {\n\t\t\n\t}",
"public void offerFront(E elem);",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"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 }",
"@Override\n public void aktion(Hauptobjekt h) {\n System.out.println(\"Hin\");\n h.setAktuellerZustand(new ZweiterZustand());\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private void a() {\n if (this.a == null && this.c == null) {\n return;\n }\n xh xh2 = (xh)this.g.get();\n if (!this.i && this.a != null && xh2 != null) {\n xh2.a(this);\n this.i = true;\n }\n if (this.f != null) {\n this.b(this.f);\n return;\n }\n if (this.d == null) return;\n this.d.a(this);\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"public abstract T zzm(B b);",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void zzc(B b, int i, int i2);",
"void order() {\n\n\t\tSystem.out.println(\"In Zomato order method\");\n\t\tclass Hotels {\n\t\t\tString name;\n\t\t\tHotels(String name ) {\n\t\t\t\tthis.name = name;\n\t\t\t}\n\n\t\t\tvoid orderPlaced() {\n\t\t\t\tSystem.out.println(\"Order placd at hotel \"+ name);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void visit(Function arg0) {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"public void sendeBeenden();",
"@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}",
"void transit();",
"private void findeNachbarSteine(Stein pStein, java.util.List<Stein> pSteinListe, Richtung pRichtung){\n spielfeld.toFirst();\n while(spielfeld.hasAccess()){ //Schleife ueber alle Steine des Spielfelds\n Stein stein = spielfeld.getContent();\n switch(pRichtung){\n case oben:\n if (pStein.gibZeile()==stein.gibZeile()+1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case links:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()+1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case unten:\n if (pStein.gibZeile()==stein.gibZeile()-1 && pStein.gibSpalte()==stein.gibSpalte()) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n case rechts:\n if (pStein.gibZeile()==stein.gibZeile() && pStein.gibSpalte()==stein.gibSpalte()-1) {\n pSteinListe.add(stein);\n findeNachbarSteine(stein,pSteinListe,pRichtung);\n }\n break;\n }\n spielfeld.next();\n }\n }",
"public fv a(fv paramfv)\r\n/* 384: */ {\r\n/* 385: */ fn localfn;\r\n/* 386:403 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 387:404 */ if (this.a[i] != null)\r\n/* 388: */ {\r\n/* 389:405 */ localfn = new fn();\r\n/* 390:406 */ localfn.a(\"Slot\", (byte)i);\r\n/* 391:407 */ this.a[i].b(localfn);\r\n/* 392:408 */ paramfv.a(localfn);\r\n/* 393: */ }\r\n/* 394: */ }\r\n/* 395:411 */ for (i = 0; i < this.b.length; i++) {\r\n/* 396:412 */ if (this.b[i] != null)\r\n/* 397: */ {\r\n/* 398:413 */ localfn = new fn();\r\n/* 399:414 */ localfn.a(\"Slot\", (byte)(i + 100));\r\n/* 400:415 */ this.b[i].b(localfn);\r\n/* 401:416 */ paramfv.a(localfn);\r\n/* 402: */ }\r\n/* 403: */ }\r\n/* 404:419 */ return paramfv;\r\n/* 405: */ }",
"public void CFC() {\n\t\tthis.DFS(null);\n\t\tGrafo d2 = this.reverse();\n\n\t\tList<Vertice> decreasing_f2 = new ArrayList<Vertice>();\n\t\tfor (Vertice v1 : this.vertices.values()) {\n\t\t\tVertice v2 = d2.vertices.get(v1.id);\n\t\t\tv2.size = v1.f;\n\t\t\tdecreasing_f2.add(v2);\n\t\t}\n\t\tCollections.sort(decreasing_f2);\n\n\t\td2.DFS(decreasing_f2);\n\n\t\tthis.reset();\n\t\tfor (Vertice v21 : d2.vertices.values()) {\n\t\t\tVertice v11 = this.vertices.get(v21.id);\n\t\t\tif (v21.parent != null) {\n\t\t\t\tVertice v12 = this.vertices.get(v21.parent.id);\n\t\t\t\tv11.parent = v12;\n\t\t\t}\n\t\t}\n\t}",
"public void redibujarAlgoformers() {\n\t\t\n\t}",
"public ApplyOrder() {\n super();\n }",
"@Override\r\n\tpublic void zjedz(Seno s) {\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}",
"public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\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 abstract B zzt(Object obj);",
"@Override\n\tpublic void visit(PartB partB) {\n\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void tickerStoppen() \n {\n anzeige.tickerAbmelden( this );\n }",
"@Override\n\tpublic void placeOrder() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void compareFichierTo(Fichier f) {\n\t\t\n\t}",
"public void b() {\n ((a) this.a).b();\n }",
"@Override\n public void dfs() {\n\n }",
"private FlyWithWings(){\n\t\t\n\t}",
"double passer();",
"private void bfs(Graph G, int s){\n queue.add(s);\n visited[s] = true;\n while (!queue.isEmpty()) {\n int v = queue.removeFirst();\n for (int w : G.adj(v)) {\n if (!visited[w]) {\n queue.add(w);\n visited[w] = true;\n edgeTo[w] = v;\n }\n }\n }\n }",
"public abstract void zza(B b, int i, T t);",
"@Override\n public int getOrder() {\n return 0;\n }",
"protected FanisamBato(){\n\t}",
"private void bfs() {\n\t\tQueue<Node> q = new ArrayDeque<>();\n\t\tq.add(treeNodes.get(0));\n\t\twhile (!q.isEmpty()) {\n\t\t\tint size = q.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tNode curr = q.poll();\n\t\t\t\ttime += curr.informTime;\n\t\t\t\tSet<Node> nextNodes = curr.nextNodes;\n\t\t\t\tif (nextNodes == null || curr.id == treeNodes.get(0).id)\n\t\t\t\t\tcontinue;\n\t\t\t\tfor (Node node : nextNodes) {\n\t\t\t\t\tq.add(node);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\n\tpublic void getOrders() {\n\t\t\n\t}",
"protected ElementDoppeltVerkettet gehe(int anzahlSchritte) {\n\t\tElementDoppeltVerkettet aktuell = this;\n\t\tint aS = anzahlSchritte;\n\t\tif (aS < 0) {\n\t\t\twhile (aS < 0 && aktuell.zurück != null) {\n\t\t\t\taktuell = aktuell.zurück;\n\t\t\t\taS++;\n\t\t\t}\n\t\t} else {\n\t\t\twhile (aS > 0 && aktuell.vor != null) { aktuell = (ElementDoppeltVerkettet) aktuell.vor; aS--; }\n\t\t}\n\t\tif (aS == 0) {\n\t\t\treturn aktuell;\n\t\t} else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Die Grenzen der Liste sollten überschritten werden\");\n\t\t}\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public static void main(String[] args) {\n String [] folge = {\"ab\",\"cd\", \"aa\"};\n new SortierenBeiEinfugen().sortiereAbsteigend(folge);\n System.out.println(Arrays.toString(folge));\n new SortierenBeiEinfugen().sortiereAufsteigend(folge);\n System.out.println(Arrays.toString(folge));\n\n\n\n\n\n\n int[] feld = {2,8,5,6,3,1,4,7};\n\n int countVergleich=0;\n int countTausch = 0;\n for (int i = 0; i < feld.length; i++) {\n for (int j = i; j > 0 ; j--) {\n countVergleich++;\n if (feld[j - 1]>(feld[j]) ) {\n int temp = feld[j];\n feld[j] = feld[j - 1];\n feld[j - 1] = temp;\n countTausch++;\n } else {\n System.out.println(countVergleich);\n System.out.println(countTausch);\n break;\n }\n }\n }\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void breadthFirstTraversal() {\n beginAnimation();\n treeBreadthFirstTraversal();\n stopAnimation();\n\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"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}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void sterben()\n {\n lebendig = false;\n if(position != null) {\n feld.raeumen(position);\n position = null;\n feld = null;\n }\n }",
"@Override\n\t\t\tpublic int af() {\n\t\t\t\tSystem.out.println(\"dsdfdghbd\");\n\t\t\t\treturn 0;\n\t\t\t}",
"@Override\n\tpublic void visit(Subtraction arg0) {\n\n\t}",
"@Override\n\tpublic void additionalWeightWork() {\n\t\t\n\t}",
"public amj b(dz paramdz, amj paramamj)\r\n/* 7: */ {\r\n/* 8:242 */ aqu localaqu = paramdz.i();\r\n/* 9: */ \r\n/* 10:244 */ dt localdt = paramdz.d().a(ave.b(paramdz.f()));\r\n/* 11: */ \r\n/* 12:246 */ bec localbec = localaqu.p(localdt);\r\n/* 13:247 */ atr localatr = localbec.c();\r\n/* 14:248 */ bof localbof = localatr.r();\r\n/* 15: */ alq localalq;\r\n/* 16:251 */ if ((bof.h.equals(localbof)) && ((localatr instanceof axl)) && (((Integer)localbec.b(axl.b)).intValue() == 0)) {\r\n/* 17:252 */ localalq = amk.ax;\r\n/* 18:253 */ } else if ((bof.i.equals(localbof)) && ((localatr instanceof axl)) && (((Integer)localbec.b(axl.b)).intValue() == 0)) {\r\n/* 19:254 */ localalq = amk.ay;\r\n/* 20: */ } else {\r\n/* 21:256 */ return super.b(paramdz, paramamj);\r\n/* 22: */ }\r\n/* 23:259 */ localaqu.g(localdt);\r\n/* 24:260 */ if (--paramamj.b == 0)\r\n/* 25: */ {\r\n/* 26:261 */ paramamj.a(localalq);\r\n/* 27:262 */ paramamj.b = 1;\r\n/* 28: */ }\r\n/* 29:263 */ else if (((bcx)paramdz.h()).a(new amj(localalq)) < 0)\r\n/* 30: */ {\r\n/* 31:264 */ this.b.a(paramdz, new amj(localalq));\r\n/* 32: */ }\r\n/* 33:266 */ return paramamj;\r\n/* 34: */ }",
"@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}",
"void reverseTurnOrder() {\n turnOrder *= -1;\n }"
] | [
"0.65572536",
"0.5616409",
"0.55701256",
"0.54736626",
"0.5445026",
"0.5409422",
"0.5404021",
"0.53740317",
"0.53600454",
"0.5354998",
"0.534457",
"0.5326353",
"0.5310751",
"0.52900773",
"0.5273624",
"0.52735347",
"0.5254639",
"0.52387226",
"0.5232235",
"0.5232111",
"0.52301633",
"0.5217732",
"0.5194157",
"0.51856244",
"0.5178305",
"0.5166264",
"0.51500404",
"0.5137694",
"0.51268655",
"0.51209426",
"0.51197785",
"0.51143473",
"0.5108944",
"0.5106044",
"0.5105628",
"0.5105628",
"0.5087473",
"0.5085282",
"0.5085018",
"0.5082802",
"0.50803596",
"0.508033",
"0.5072681",
"0.5072681",
"0.50684506",
"0.5066408",
"0.5063817",
"0.5056723",
"0.5055668",
"0.50539625",
"0.5050909",
"0.5044692",
"0.5042349",
"0.5038687",
"0.5036404",
"0.5036083",
"0.5023089",
"0.50229263",
"0.50218725",
"0.5019551",
"0.5017371",
"0.50161546",
"0.50045925",
"0.5004547",
"0.50033265",
"0.49953607",
"0.49887323",
"0.49682006",
"0.4968039",
"0.49676648",
"0.49627823",
"0.4962226",
"0.49586922",
"0.4957831",
"0.4954539",
"0.4953275",
"0.4950672",
"0.4950431",
"0.4942447",
"0.49308595",
"0.4919854",
"0.49106705",
"0.49102604",
"0.49078423",
"0.49078116",
"0.49057192",
"0.490016",
"0.4897927",
"0.4881963",
"0.4879382",
"0.48734513",
"0.4868016",
"0.486551",
"0.48597607",
"0.4840706",
"0.4840569",
"0.48335797",
"0.48319122",
"0.4830743",
"0.48184544",
"0.48154557"
] | 0.0 | -1 |
Methode zum verringern der Forderung | public void decrease(BigDecimal amount) {
this.amount = this.amount.subtract(amount);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void trenneVerbindung();",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void alRechazarOperacion() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void bfs() {\n\n }",
"@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void trabajar() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n\tpublic void inorder() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public void sendeSpielfeld();",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"public abstract void afvuren();",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void Ordenamiento() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tprotected void doF2() {\n\t\t\r\n\t}",
"@Override\n\tpublic void alterar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void transmetDonnee() {\n\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\npublic void processDirection() {\n\t\n}",
"@Override\n\tpublic void postorder() {\n\n\t}",
"@Override\n\tpublic void recreo() {\n\n\t}",
"@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}",
"@Override\r\n\tpublic void emettreOffre() {\n\t\t\r\n\t}",
"@Override\n\tpublic void rotiereNachRechts() {\n\n\t}",
"@Override\n\tpublic void visitarObjeto(Objeto o) {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}",
"@Override\n\tpublic void yürü() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"public void onderbreek(){\n \n }",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void acomodaVista() {\n\n\t}",
"@Override\n\tvoid geraDados() {\n\n\t}",
"@Override\n\tpublic void driving() {\n\t\t\n\t}",
"public void Exterior() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public void verarbeite() {\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"public void gored() {\n\t\t\n\t}",
"void Vorrücken()\n {\n }",
"void zmniejszBieg();",
"public void perder() {\n // TODO implement here\n }",
"@Override\n\tpublic void obavesti(KruznaFigura figura) {\n\t\t\n\t}",
"void order() {\n\n\t\tSystem.out.println(\"In Zomato order method\");\n\t\tclass Hotels {\n\t\t\tString name;\n\t\t\tHotels(String name ) {\n\t\t\t\tthis.name = name;\n\t\t\t}\n\n\t\t\tvoid orderPlaced() {\n\t\t\t\tSystem.out.println(\"Order placd at hotel \"+ name);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}",
"public void volar() {\n }",
"@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}",
"private void remplirFabricantData() {\n\t}",
"@Override\r\n\tpublic void zjedz(Kost k) {\n\t}",
"abstract void trataAltera();",
"public void ovr() {\n\n\t}",
"public void redibujarAlgoformers() {\n\t\t\n\t}",
"@Override\n\tpublic void accept_order() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"public void leerPlanesDietas();",
"@Override\n\tpublic void e() {\n\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"public void operacao();",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}"
] | [
"0.70100605",
"0.6994223",
"0.6901269",
"0.68710166",
"0.68413174",
"0.6829898",
"0.66438633",
"0.6618676",
"0.661696",
"0.6601455",
"0.6589873",
"0.65485066",
"0.65485066",
"0.6511183",
"0.65087616",
"0.65072227",
"0.6485759",
"0.648491",
"0.6432402",
"0.6416005",
"0.6376511",
"0.6370834",
"0.63239175",
"0.63147026",
"0.63042206",
"0.63032687",
"0.63004136",
"0.62558633",
"0.6253229",
"0.6248912",
"0.62138826",
"0.61892503",
"0.61853766",
"0.6182301",
"0.61795527",
"0.61795527",
"0.61722666",
"0.6170195",
"0.6158897",
"0.6150938",
"0.61490387",
"0.61367106",
"0.61359894",
"0.6113652",
"0.6107974",
"0.6106776",
"0.61029214",
"0.61016214",
"0.610142",
"0.6098847",
"0.6096294",
"0.60901165",
"0.6066201",
"0.6040977",
"0.6016942",
"0.60048586",
"0.59990853",
"0.5990413",
"0.5988201",
"0.59874034",
"0.5978146",
"0.5959446",
"0.5949267",
"0.5937084",
"0.5913639",
"0.5907344",
"0.5906011",
"0.5905996",
"0.58961606",
"0.58959335",
"0.5891966",
"0.58887255",
"0.58818245",
"0.5869201",
"0.5867647",
"0.5866672",
"0.5866516",
"0.5864717",
"0.5856631",
"0.584005",
"0.58242524",
"0.5795937",
"0.5790776",
"0.57868046",
"0.5786632",
"0.57766867",
"0.57766867",
"0.57755333",
"0.576357",
"0.5762261",
"0.57518405",
"0.5747867",
"0.5746788",
"0.5744687",
"0.57434213",
"0.57431746",
"0.5741375",
"0.5719342",
"0.5715049",
"0.5712359",
"0.5705104"
] | 0.0 | -1 |
getter for char rep of the letter | public char getLetter() {
return letter;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public char getChar();",
"public char getLetter(){\r\n\t\treturn letter;\r\n\t}",
"public char getLetter()\n {\n \treturn letter;\n }",
"public char getLetter()\n\t{\n\t\treturn letter;\n\t}",
"public char getLetter() {\r\n\t\treturn letter;\r\n\t}",
"public char getRepresentative_letter(){\n\t\treturn representative_letter;\n\t}",
"public char getLetter() {\r\n\t\t\treturn letter;\r\n\t\t}",
"public abstract char getStarterChar();",
"public char Get() {\n\t\treturn myChar;\n\t}",
"public static char getLetter(String s){\n //A variable used in the helper method\n int i = 0;\n return getLetter(codeTree, s, i);\n }",
"public static char getChar(String inKey) {\r\n String string = getProperties().get(inKey).toString();\r\n char result = 0;\r\n if (string == null || string.length() < 1) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getChar: no char property for: \" + inKey);\r\n }\r\n } else {\r\n result = string.charAt(0);\r\n }\r\n\r\n if (LOG.isErrorEnabled() && string.length() > 1) {\r\n LOG.error(\"Char property for (\" + inKey + \") longer than a single char: \" + string);\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getChar: \" + inKey + \", result \" + result);\r\n }\r\n return result;\r\n }",
"public String getChar() {\n\t\tString asciiCode = getProperty(key_delimiter);\n\t\tCharacter c = null;\n\t\tif (asciiCode == null) {\n\t\t\tc = '|';\n\t\t} else if (asciiCode != null && asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tint i = Integer.valueOf(asciiCode.substring(1));\n\t\t\tc = new Character((char) i);\n\t\t} else if (asciiCode.length() == 1) {\n\t\t\tc = asciiCode.charAt(0);\n\t\t}\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif (c != null){\n\t\t\tresult = String.valueOf(c);\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public String getCharacterSequence();",
"public char getChar() {\n return this.s;\n }",
"public Letter getLetter(Character c) {\n return get(c);\n }",
"public Character charRep() {\n return this.typeChar;\n }",
"public String getLetter() {\n return letter;\n }",
"public int get_char() {\n return local_char;\n }",
"char getEChar();",
"@Override\r\n\tpublic char charAt(int index) {\n\t\treturn chars[index];\r\n\t}",
"public char charAt(int index);",
"public _char get_char() {\n return local_char;\n }",
"public int charNum() {\n return myCharNum;\n }",
"public char getLetterGrade() {\r\n\t\treturn letter;\r\n\t}",
"public char getRepersent()\n {\n return this.repersent;\n }",
"String getRune_lit();",
"public String getCharacter()\n\t\t{\n\t\t\treturn characterName;\n\t\t}",
"public char getInitial() {\n\t\treturn this.initial; \n\t}",
"public static int getAtChar(){\r\n\t\treturn atChar;\r\n\t}",
"public char getLetter(int index) {\n\t\treturn _objMyStringBuilder.getCharAt(index);\n\t}",
"public String getCharacter() {\n return this.state.getCharacter();\n }",
"public static char getA() {\n char aChar = 'B';\n return aChar;\n }",
"public char nextChar() {\n this.inputStr = this.s.nextLine();\n\n if (!inputStr.isEmpty()) {\n for (int i = 0; i < inputStr.length(); i++) {\n if (inputStr.charAt(i) >= 'A' && inputStr.charAt(i) <= 'Z') {\n return inputStr.charAt(i);\n } else if (inputStr.charAt(i) >= 'a' && inputStr.charAt(i) <= 'z') {\n return inputStr.charAt(i);\n }\n }\n }\n return ' ';\n }",
"char getContactLetter();",
"public char getChar(String key)\n {\n return getChar(key, '\\0');\n }",
"public char getCharacter(boolean defender){\n if (defender){\n if (this.is_Empty()){\n return '~';\n }\n else if(this.is_shot()){\n return '*';\n }\n else{\n return 'B';\n }\n }\n else {\n if (!this.is_shot()){\n return '.';\n }\n else if (!this.is_Empty()){\n return '*';\n }\n else {\n return '~';\n }\n }\n }",
"String getWordIn(String schar, String echar);",
"char getContactLetter(ContactSortOrder sortOrder);",
"public static char getChar() throws IOException {\n\t\nString s = getString();\nreturn s.charAt(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the first letter of the string, to help idiot proof it.\n\n}",
"char getChar () { \n return m_pos < m_len ? m_buffer.charAt (m_pos) : '\\0';\n }",
"public Character getCharacter(){\n\t\treturn get_character();\n\t}",
"public int getSingleChar() {\n return -1;\n }",
"public String getCharName(){return charName;}",
"CharacterInfo getCharacter();",
"Character getCode();",
"public int getSingleChar() {\n return c;\n }",
"public BasicChar getBasicChar() {\n return this.wotCharacter;\n }",
"public char getInitial() {\n\t\treturn initial;\n\t}",
"protected char tryReduceChar(char letter) {\n int comp = (letter < 97) ? Character.toLowerCase(letter) : letter;\n return (Integer.compare(comp, 97) > 0) ? (char) (letter - 1) : letter;\n }",
"Rule Letter() {\n // No effect on value stack\n return FirstOf(\n CharRange('a', 'z'),\n CharRange('A', 'Z'));\n }",
"public char crypt(char letter){\n\n char l = conns[alphabet.indexOf(letter)];\n\n return l;\n }",
"char startChar();",
"protected String getChar(String asciiCode) {\n\t\tString result = null;\n\t\tif(asciiCode == null){\n\t\t\t//default\n\t\t\tresult = \"|\";\n\t\t}else if (asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tresult = String.valueOf(Character.toChars(Integer.valueOf(asciiCode\n\t\t\t\t\t.substring(1))));\n\t\t} else {\n\t\t\tresult = asciiCode;\n\t\t}\n\t\treturn result;\n\t}",
"public char charAt(int index) {\n/* 121 */ return this.m_str.charAt(index);\n/* */ }",
"public char charAt(int charOffset);",
"public void subCharacter() {\n\t\t\tString name = \"martin\";\n\t\t\tString subCharacter = name.substring(2, 4);\n\t\t\tSystem.out.println(subCharacter);\n\t\t}",
"char toChar(int index) {\n return _letters.charAt(index);\n }",
"public char charValue() {\n return value;\n }",
"public char randomChar() {\n\t\tRandom r = new Random();\n\t\tint threshold = r.nextInt(total);\n\t\tint current = 0;\n\t\t\n\t\tfor (char c : letters.keySet()) {\n\t\t\tcurrent += letters.get(c);\n\t\t\tif (current > threshold) {\n\t\t\t\treturn c;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ' ';\n\t}",
"public static char leerCaracter() { \n\t\tchar letra = sc.nextLine().charAt(0); // Lee una cadena y obtiene el primer caracter\n\t\treturn letra;\n\t}",
"public char getChar(int index)\r\n/* 191: */ {\r\n/* 192:208 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 193:209 */ return super.getChar(index);\r\n/* 194: */ }",
"private String repMessageCharacter() {\n\t\tString temp = \"\";\n\t\tString interpret = \"\";\n\t\tint messL = message.length();\n\t\tint polyL = polybius.length;\n\t\tint polyR = polybius[0].length;\n\t\tif(this.key != \"\") {\n\t\t\timpArray = new String[messL];\n\t\t\tfor(int i = 0; i < messL; i++) {\n\t\t\t\ttemp = \"\" + message.charAt(i);\n\t\t\t\tfor(int j = 0; j < polyL;j++) {\n\t\t\t\t\tfor(int k = 0; k < polyR; k++) {\n\t\t\t\t\t\tif(temp.equalsIgnoreCase(polybius[j][k])) {\n\t\t\t\t\t\t\timpArray[i] = columnRowIndex(j,k);\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\tfor(int i = 0; i < message.length(); i++) {\n\t\t\t\tinterpret += impArray[i];\n\t\t\t}\n\t\t}else {\n\t\t\tinterpret = \"\";\n\t\t}\n\t\t//System.out.println(interpret);\n\t\treturn interpret;\n\t}",
"public static char getZ() {\n char aChar = 'Y';\n return aChar;\n }",
"public abstract char read_char();",
"public HiveChar getHiveChar() {\n return new HiveChar(value.toString(), -1);\n }",
"public String getLetters()\n\t\t\t{\n\t\t\treturn letters;\n\t\t\t}",
"public int letterValue(char letter){\n int val;\n\n switch(letter){\n case 'a':\n case 'e':\n case 'i':\n case 'o':\n case 'u':\n case 'l':\n case 'n':\n case 's':\n case 't':\n case 'r': val =1;\n break;\n\n case 'd':\n case 'g': val =2;\n break;\n\n case 'b':\n case 'c':\n case 'm':\n case 'p': val =3;\n break;\n\n case 'f':\n case 'h':\n case 'v':\n case 'w':\n case 'y': val =4;\n break;\n\n case 'k': val =5;\n break;\n\n case 'j':\n case 'x': val =8;\n break;\n\n case 'q':\n case 'z': val =10;\n break;\n\n default: val =0;\n }\n return val;\n }",
"public char charAt(int index)\r\n/* 31: */ {\r\n/* 32: 44 */ if (index > this.pos) {\r\n/* 33: 45 */ throw new IndexOutOfBoundsException();\r\n/* 34: */ }\r\n/* 35: 47 */ return this.chars[index];\r\n/* 36: */ }",
"public Integer getCharNum() {\n return charNum;\n }",
"abstract public int get(int codePoint);",
"public String getCharacterName() {\n return mCharacterName;\n }",
"@Override\n\tpublic char getCont() {\n\t\treturn super.getCont();\n\t}",
"public char getGradeLetter() {\n\t\t\n\t\t// get the current overall grade\n\t\tdouble overallAverage = averages[OVERALL];\n\t\t\n\t\t// check its value and return the correct letter\n\t\tif (overallAverage < 60) \n\t\t\treturn 'F';\n\t\telse if (overallAverage < 70) \n\t\t\treturn 'D';\n\t\telse if (overallAverage < 80) \n\t\t\treturn 'C';\n\t\telse if (overallAverage < 90) \n\t\t\treturn 'B';\n\t\telse\n\t\t\treturn 'A';\n\t}",
"public void firstCharacter() {\n\t\tString name = \"martin\";\n\t\tchar letter = name.charAt(5);\n\t\tSystem.out.println(letter);\n\t}",
"public final String getCharacterName() {\n return characterName;\n }",
"public static char datochar(){\n try {\n char respuesta=dato().charAt(0);\n return respuesta;\n } catch (Exception e) {\n return('z');\n }\n }",
"public char getChar(String name) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return (char)-1;\n }",
"public int getGroup(char letter);",
"public static char getKeyCharacter()\n {\n \n //Prompts and reads the key character in String\n final int MINIMUM_LENGTH = 0, MAXIMUM_LENGTH = 1;\n Scanner key = new Scanner(System.in);\n System.out.print(\"Please enter a single character to act as a key: \");\n String fh = key.nextLine();\n \n //Checks for key character length and loops for proper input\n while (fh.length() == MINIMUM_LENGTH|| fh.length() > MAXIMUM_LENGTH)\n {\t\n System.out.print(\"Please enter a single character to act as a key: \");\n fh = key.nextLine();\n }\n \n //Converts String to char\n char gKC = fh.charAt(0);\n return gKC;\n }",
"public static char getDigitCharacter(){\n\t\treturn getRandomCharacter('0','9');\n\t}",
"public int letter2index(char c) { \t\n \treturn (int)(c - 'A')%26 ;\n }",
"private int getCharNumber(Character letter) {\n\t\tint integerA = Character.getNumericValue('a');\n\t\tint integerZ = Character.getNumericValue('z');\n\t\tint integerLetter = Character.getNumericValue(letter);\n\t\tif (integerLetter >= integerA && integerLetter <= integerZ) {\n\t\t\treturn integerLetter - integerA; //a -> 0, b -> 1, c -> 2, etc\n\t\t}\n\t\treturn -1;\n\t}",
"public String processChar(char character, int modifier)\n {\n character = ModCase.setCase(character);\n String output = computeOutput(modifier, character);\n return output;\n }",
"public int getCharno() {\n return charno;\n }",
"public Character getInChar() {\n return inChar;\n }",
"int getStartCharIndex();",
"public int getCharPos(){\n return charPos;\n }",
"private int getChar() {\n\n\t\ttry {\n\t\t\treturn stream.read();\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.print(e.getMessage());\n\t\t\tSystem.err.println(\"IOException occured in Lexer::getChar()\");\n\t\t\treturn -1;\n\t\t}\n\n\t}",
"public int getCharacter() {\n return getStat(character);\n }",
"boolean getHasCharacter();",
"public String getCharacters()\n\t{\n\t\treturn characters;\n\t}",
"public static char randomLetter(){\n\t\t//char A-Z\n\t\tint r1 = (int) (Math.random()*26+65);\n\n\t\t//char a-z\n\t\tint r2 = (int) (Math.random()*26+97);\n\n\t\t//choose one of the two\n\t\tif(Math.random() < 0.5)\n\t\t\treturn (char) r1;\n\t\treturn (char) r2;\n\t}",
"public int getNbCharacter()\n\t{\n\t\treturn this.nbCharacter;\n\t}",
"public char getUserGuess(){\n char letter = '\\u0000';\n if(mGuessEditText.getText().toString().toLowerCase().length() != 0)\n letter = mGuessEditText.getText().toString().toLowerCase().charAt(0);\n return letter;\n }",
"public char getRender() {\n\n return (animalChar);\n }",
"public char getBadChar(){\n return badChar;\n }",
"public abstract char getTextQualifier();",
"String charWrite();",
"public char getKey(){ return key;}",
"public String toString(){\r\n\t\treturn \"\" + letter;\r\n\t}"
] | [
"0.758838",
"0.7339129",
"0.7325808",
"0.725026",
"0.7236674",
"0.7192899",
"0.7160828",
"0.6967036",
"0.69568145",
"0.69083744",
"0.6904582",
"0.6848068",
"0.6837476",
"0.6835895",
"0.68030167",
"0.6764752",
"0.6755149",
"0.6748766",
"0.67449987",
"0.6721923",
"0.66813993",
"0.6676881",
"0.6657008",
"0.66543883",
"0.6642553",
"0.6594136",
"0.65864277",
"0.65847874",
"0.65770453",
"0.6566374",
"0.6564388",
"0.65380216",
"0.65070504",
"0.64993215",
"0.64928013",
"0.6486166",
"0.6478834",
"0.6478737",
"0.6470651",
"0.6466836",
"0.64666736",
"0.6432148",
"0.6420993",
"0.63978547",
"0.6384861",
"0.63787335",
"0.63781637",
"0.63762116",
"0.6372098",
"0.63566244",
"0.635627",
"0.63296914",
"0.6317315",
"0.6311122",
"0.6297981",
"0.6290388",
"0.6273575",
"0.62394136",
"0.6222058",
"0.61680615",
"0.61679864",
"0.61671555",
"0.615963",
"0.6159439",
"0.61450016",
"0.61414737",
"0.61334413",
"0.61331064",
"0.612236",
"0.61201996",
"0.6117505",
"0.6114121",
"0.610786",
"0.60950816",
"0.6083607",
"0.6082561",
"0.60753244",
"0.607312",
"0.6070001",
"0.6057374",
"0.6054205",
"0.6053132",
"0.60523826",
"0.6047849",
"0.6045301",
"0.6033456",
"0.6032011",
"0.6022594",
"0.6020369",
"0.6002785",
"0.5993228",
"0.59843355",
"0.5981574",
"0.5980089",
"0.5976602",
"0.5975636",
"0.59754366",
"0.5974156",
"0.59719193",
"0.59716564"
] | 0.7309393 | 3 |
gets the value associated with the letter | public int getValue() {
return value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int letterValue(char letter){\n int val;\n\n switch(letter){\n case 'a':\n case 'e':\n case 'i':\n case 'o':\n case 'u':\n case 'l':\n case 'n':\n case 's':\n case 't':\n case 'r': val =1;\n break;\n\n case 'd':\n case 'g': val =2;\n break;\n\n case 'b':\n case 'c':\n case 'm':\n case 'p': val =3;\n break;\n\n case 'f':\n case 'h':\n case 'v':\n case 'w':\n case 'y': val =4;\n break;\n\n case 'k': val =5;\n break;\n\n case 'j':\n case 'x': val =8;\n break;\n\n case 'q':\n case 'z': val =10;\n break;\n\n default: val =0;\n }\n return val;\n }",
"public AVT getLetterValue()\n {\n return m_lettervalue_avt;\n }",
"public char getLetter()\n {\n \treturn letter;\n }",
"static int getValue(char c) {\n\t\tswitch(c) {\n\t\tcase 'A': return 0;\n\t\tcase 'C': return 1;\n\t\tcase 'G': return 2;\n\t\tcase 'T': return 3;\n\t\tdefault: return -1;\n\t\t}\n\t}",
"public char getLetter(){\r\n\t\treturn letter;\r\n\t}",
"public char getLetter() {\n return letter;\n }",
"public char getLetter()\n\t{\n\t\treturn letter;\n\t}",
"public char getValue()\n\t{\n\t\treturn value;\n\t}",
"public char getLetter() {\r\n\t\treturn letter;\r\n\t}",
"public char getValue() {\n return value;\n }",
"public char getLetter() {\r\n\t\t\treturn letter;\r\n\t\t}",
"public String getLetter() {\n return letter;\n }",
"public Letter getLetter(Character c) {\n return get(c);\n }",
"public char Get() {\n\t\treturn myChar;\n\t}",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"public char getChar();",
"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 static int lookup(char letter) {\n\t\tswitch (letter) {\n\t\tcase 'A':\n\t\t\treturn 0;\n\t\tcase 'R':\n\t\t\treturn 1;\n\t\tcase 'N':\n\t\t\treturn 2;\n\t\tcase 'D':\n\t\t\treturn 3;\n\t\tcase 'C':\n\t\t\treturn 4;\n\t\tcase 'Q':\n\t\t\treturn 5;\n\t\tcase 'E':\n\t\t\treturn 6;\n\t\tcase 'G':\n\t\t\treturn 7;\n\t\tcase 'H':\n\t\t\treturn 8;\n\t\tcase 'I':\n\t\t\treturn 9;\n\t\tcase 'L':\n\t\t\treturn 10;\n\t\tcase 'K':\n\t\t\treturn 11;\n\t\tcase 'M':\n\t\t\treturn 12;\n\t\tcase 'F':\n\t\t\treturn 13;\n\t\tcase 'P':\n\t\t\treturn 14;\n\t\tcase 'S':\n\t\t\treturn 15;\n\t\tcase 'T':\n\t\t\treturn 16;\n\t\tcase 'W':\n\t\t\treturn 17;\n\t\tcase 'Y':\n\t\t\treturn 18;\n\t\tcase 'V':\n\t\t\treturn 19;\n\t\tcase 'B':\n\t\t\treturn 20;\n\t\tcase 'Z':\n\t\t\treturn 21;\n\t\tcase 'X':\n\t\t\treturn 22;\n\t\tcase '*':\n\t\t\treturn 23;\n\t\tcase '|':\n\t\t\treturn 24;\n\t\tcase '.':\n\t\t\treturn 25;\n\n\t\tdefault:\n\t\t\treturn -1;\n\t\t}\n\n\t}",
"public char getLetterGrade() {\r\n\t\treturn letter;\r\n\t}",
"public char getChar(String name) {\n Enumeration enumer = CHARS.elements();\n while(enumer.hasMoreElements()) {\n SimpleMessageObjectCharItem item = (SimpleMessageObjectCharItem) enumer.nextElement();\n if(item.getName().compareTo(name) == 0) {\n return item.getValue();\n }\n }\n return (char)-1;\n }",
"public int getGroup(char letter);",
"public char getKey(){ return key;}",
"public char charValue() {\n return value;\n }",
"public char getLetter(int index) {\n\t\treturn _objMyStringBuilder.getCharAt(index);\n\t}",
"String getVal();",
"public Character get(String key){\r\n\t\tint hash = hash(key);\r\n for(int i = 0; i < M; i++){\r\n \tif(hash + i < M){\r\n if(keys[hash + i] != null && keys[hash + i].equals(key))\r\n return vals[hash + i];\r\n }else{\r\n if(keys[hash + i - M] != null && keys[hash + i - M].equals(key))\r\n return vals[hash + i - M];\r\n }\r\n\t\t}\r\n return null;\r\n\t}",
"char getEChar();",
"Character getCode();",
"public char getRepresentative_letter(){\n\t\treturn representative_letter;\n\t}",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public int get(int symbol);",
"public static Special valueOf(char letter)\n {\n for (Special special : values())\n {\n if (special.getLetter() == letter)\n {\n return special;\n }\n }\n \n return null;\n }",
"public int getCharacter() {\n return getStat(character);\n }",
"public static char getA() {\n char aChar = 'B';\n return aChar;\n }",
"char getContactLetter();",
"public int get_char() {\n return local_char;\n }",
"public char getChar( String name )\n {\n char value = 0;\n if ( config != null )\n {\n value = ( char ) config.getProperty( name );\n LOG.debug( \"getChar name [{}] value [{}]\", name, value );\n }\n else\n {\n LOG.warn( \"getChar invalid config, can't read prop [{}]\", name );\n }\n return value;\n }",
"public final String lookup(char c)\n {\n return charToEntity[c];\n }",
"private int getCharNumber(Character letter) {\n\t\tint integerA = Character.getNumericValue('a');\n\t\tint integerZ = Character.getNumericValue('z');\n\t\tint integerLetter = Character.getNumericValue(letter);\n\t\tif (integerLetter >= integerA && integerLetter <= integerZ) {\n\t\t\treturn integerLetter - integerA; //a -> 0, b -> 1, c -> 2, etc\n\t\t}\n\t\treturn -1;\n\t}",
"public String getCharacter() {\n return this.state.getCharacter();\n }",
"public _char get_char() {\n return local_char;\n }",
"public static char getKey() {\n try {\n return (char) Input.read(true);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return 0;\n }",
"CharacterInfo getCharacter();",
"public char getGradeLetter() {\n\t\t\n\t\t// get the current overall grade\n\t\tdouble overallAverage = averages[OVERALL];\n\t\t\n\t\t// check its value and return the correct letter\n\t\tif (overallAverage < 60) \n\t\t\treturn 'F';\n\t\telse if (overallAverage < 70) \n\t\t\treturn 'D';\n\t\telse if (overallAverage < 80) \n\t\t\treturn 'C';\n\t\telse if (overallAverage < 90) \n\t\t\treturn 'B';\n\t\telse\n\t\t\treturn 'A';\n\t}",
"public String getLetter() {\n\t\tString letter;\n\t\tletter = JOptionPane.showInputDialog(getFrame(), \"Enter the name of the Node,then press anywhere on the screen to locate the Node\");\n\t\twhile(letter==null || letter.equals(\"\")){\n\t\t\tletter = JOptionPane.showInputDialog(getFrame(), \"Enter the name of the Node,then press anywhere on the screen to locate the Node\");\n\t\t\t\n\t\t}\n\t\t\n\t\treturn letter.toUpperCase();\n\t}",
"public static char getChar() throws IOException {\n\t\nString s = getString();\nreturn s.charAt(0);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Returns the first letter of the string, to help idiot proof it.\n\n}",
"public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }",
"public abstract String getValue();",
"public abstract String getValue();",
"public abstract String getValue();",
"public String getValue() {\r\n\t\tAllowedKey tp = this.getAllowedKey();\r\n\t\tKeyMask km = this.getKeyMask();\r\n\r\n\t\tif (tp == TextFieldExt.AllowedKey.AK_SOLO_NUMEROS) {\r\n\t\t\tif (km == TextFieldExt.KeyMask.KM_Moneda)\r\n\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\telse {\r\n\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Numero)\r\n\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\telse\r\n\t\t\t\t\treturn this.getText().trim();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (tp == TextFieldExt.AllowedKey.AK_NUMEROS_CON_FRACCION) {\r\n\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Moneda)\r\n\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\telse {\r\n\t\t\t\t\tif (km == TextFieldExt.KeyMask.KM_Numero)\r\n\t\t\t\t\t\treturn StringTools.parseFromQuantityToNumber(this.getText().trim());\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn this.getText().trim();\r\n\t\t\t\t}\r\n\t\t\t} else\r\n\t\t\t\treturn this.getText().trim();\r\n\t\t}\r\n\t}",
"public char getChar() {\n return this.s;\n }",
"public static char getChar(String inKey) {\r\n String string = getProperties().get(inKey).toString();\r\n char result = 0;\r\n if (string == null || string.length() < 1) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getChar: no char property for: \" + inKey);\r\n }\r\n } else {\r\n result = string.charAt(0);\r\n }\r\n\r\n if (LOG.isErrorEnabled() && string.length() > 1) {\r\n LOG.error(\"Char property for (\" + inKey + \") longer than a single char: \" + string);\r\n }\r\n\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"getChar: \" + inKey + \", result \" + result);\r\n }\r\n return result;\r\n }",
"public Character getCharacter(){\n\t\treturn get_character();\n\t}",
"String getValue(String type, String key);",
"public static char getLetter(String s){\n //A variable used in the helper method\n int i = 0;\n return getLetter(codeTree, s, i);\n }",
"public String getValue(String s) {\n return s;\n }",
"public static char getZ() {\n char aChar = 'Y';\n return aChar;\n }",
"char getContactLetter(ContactSortOrder sortOrder);",
"public Character getChar(String name) {\n Object o = get(name);\n if (o instanceof Character) {\n return (Character)o;\n }\n\n if (o != null) {\n String string = o.toString();\n if (string != null && string.length() == 1) {\n return string.charAt(0);\n }\n }\n return null;\n }",
"public static int getAtChar(){\r\n\t\treturn atChar;\r\n\t}",
"abstract public int get(int codePoint);",
"String get();",
"String get();",
"protected String getChar(String asciiCode) {\n\t\tString result = null;\n\t\tif(asciiCode == null){\n\t\t\t//default\n\t\t\tresult = \"|\";\n\t\t}else if (asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tresult = String.valueOf(Character.toChars(Integer.valueOf(asciiCode\n\t\t\t\t\t.substring(1))));\n\t\t} else {\n\t\t\tresult = asciiCode;\n\t\t}\n\t\treturn result;\n\t}",
"public char convertToCharacter(int letterThatIsNumber)\n\t{\n\t\treturn characters[letterThatIsNumber];\n\t}",
"public String getCharacter()\n\t\t{\n\t\t\treturn characterName;\n\t\t}",
"int get(String w);",
"public String getChar() {\n\t\tString asciiCode = getProperty(key_delimiter);\n\t\tCharacter c = null;\n\t\tif (asciiCode == null) {\n\t\t\tc = '|';\n\t\t} else if (asciiCode != null && asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tint i = Integer.valueOf(asciiCode.substring(1));\n\t\t\tc = new Character((char) i);\n\t\t} else if (asciiCode.length() == 1) {\n\t\t\tc = asciiCode.charAt(0);\n\t\t}\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif (c != null){\n\t\t\tresult = String.valueOf(c);\n\t\t}\n\t\t\n\t\treturn result;\n\t}",
"public char getChar( String name, char defaultValue )\n {\n char value = 0;\n if ( config != null )\n {\n value = ( char ) config.getProperty( name );\n LOG.debug( \"getChar name [{}] value [{}]\", name, value );\n }\n else\n {\n LOG.warn( \"getChar invalid config, can't read prop [{}], using default [{}]\", name, defaultValue );\n }\n if ( value == 0 )\n {\n value = defaultValue;\n }\n return value;\n }",
"public HiveChar getHiveChar() {\n return new HiveChar(value.toString(), -1);\n }",
"private byte getValue() {\n\t\treturn value;\n\t}",
"public String toString(){\r\n\t\treturn \"\" + letter;\r\n\t}",
"public char getChar(String key)\n {\n return getChar(key, '\\0');\n }",
"public String getValue () { return value; }",
"E getValue();",
"public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }",
"String getRune_lit();",
"private static int value(char r) {\n if (r == 'I')\n return 1;\n if (r == 'V')\n return 5;\n if (r == 'X')\n return 10;\n if (r == 'L')\n return 50;\n if (r == 'C')\n return 100;\n if (r == 'D')\n return 500;\n if (r == 'M')\n return 1000;\n return -1;\n }"
] | [
"0.7828008",
"0.73155653",
"0.7286312",
"0.72601426",
"0.7213007",
"0.7202301",
"0.7191452",
"0.71355736",
"0.7089925",
"0.7081815",
"0.70397073",
"0.7022884",
"0.70151937",
"0.6988424",
"0.698187",
"0.698187",
"0.698187",
"0.698187",
"0.698187",
"0.698187",
"0.698187",
"0.698187",
"0.698187",
"0.698187",
"0.67997074",
"0.6789974",
"0.6789974",
"0.6789974",
"0.6789974",
"0.6789974",
"0.6789974",
"0.6769533",
"0.66958445",
"0.66242975",
"0.6620152",
"0.66121316",
"0.66014886",
"0.6586454",
"0.658525",
"0.6576803",
"0.65729964",
"0.65536976",
"0.6525595",
"0.64984345",
"0.64984345",
"0.64984345",
"0.64984345",
"0.64984345",
"0.64984345",
"0.64984345",
"0.64984345",
"0.64984345",
"0.6469674",
"0.6456178",
"0.64379054",
"0.6417246",
"0.6401703",
"0.63994664",
"0.6366011",
"0.6352098",
"0.63510764",
"0.63443536",
"0.63343525",
"0.62939054",
"0.62850565",
"0.62847245",
"0.6283573",
"0.627615",
"0.6254725",
"0.6243787",
"0.6243787",
"0.6243787",
"0.6211188",
"0.62025154",
"0.61940145",
"0.6192938",
"0.616612",
"0.6155591",
"0.6146158",
"0.61440045",
"0.6140601",
"0.6122144",
"0.61210865",
"0.6120163",
"0.6115921",
"0.6115921",
"0.61154604",
"0.61075294",
"0.60954213",
"0.60852444",
"0.60761636",
"0.6047733",
"0.6047189",
"0.6042286",
"0.602887",
"0.602153",
"0.6015704",
"0.60045946",
"0.6001962",
"0.59956235",
"0.5995337"
] | 0.0 | -1 |
gets the value of blank for the tile | public boolean getBlank(){
return blank;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract AwtCell getEmpty();",
"public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}",
"public Tile getTile()\r\n\t{\r\n\t\tif(this.hasTiles())\r\n\t\t\treturn _tiles.remove(0);\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public void getTile_B8();",
"public Tile getTile() { return tile; }",
"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}",
"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 Tile getTile() {\n return _tile;\n }",
"TileItem getCurrentTile();",
"Tile getTile() {\n if (tiles.size() == 0) {\n return null;\n } else {\n int randomIndex = ThreadLocalRandom.current().nextInt(0, tiles.size());\n Tile result = tiles.get(randomIndex);\n tiles.remove(randomIndex);\n return result;\n }\n }",
"public int getTileX()\n\t{\n\t\treturn this.tileX;\n\t}",
"public Tile getTile() {\n return tile;\n }",
"public Tile getTile() {\n return tile;\n }",
"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 Rect getTileRect(){\n return this.tileRect;\n }",
"public Tile getTile() {\n\t\treturn tile;\n\t}",
"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 }",
"public Tile getTile(){\n\t\treturn currentTile;\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getValue() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn null;\n\t}",
"public int getTileLevel()\n {\n return tileLevel;\n }",
"public Piece getPieceInTile() {\n \r\n return pieceInTile;\r\n }",
"@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"private void getTileNumber() {\r\n int xtile = (int) Math.floor((coordinates.getLon() + 180) / 360 * (1 << zoom));\r\n int ytile = (int) Math.floor((1 - Math.log(Math.tan(Math.toRadians(coordinates.getLat())) + 1 / Math.cos(Math.toRadians(coordinates.getLat()))) / Math.PI) / 2 * (1 << zoom));\r\n\r\n if (xtile < 0) xtile = 0;\r\n\r\n if (xtile >= (1 << zoom)) xtile = ((1 << zoom) - 1);\r\n\r\n if (ytile < 0) ytile = 0;\r\n\r\n if (ytile >= (1 << zoom)) ytile = ((1 << zoom) - 1);\r\n\r\n this.xtile = xtile;\r\n this.ytile = ytile;\r\n }",
"public Tile getRandomFreeTile() {\n\n\t\tRandom random = new Random();\n\t\tArrayList<Tile> emptyTiles = getEmptyTiles();\n\t\tTile randomTile = emptyTiles.get( random.nextInt(emptyTiles.size()));\n\t\treturn randomTile;\n\t}",
"public FloorTile getGoalTile() {\r\n return goalTile;\r\n }",
"public int getEmptyX()\n\t{\n\t\treturn x0;\n\t}",
"private DirectionalPanel nextEmpty(int row, int col) {\n\t\tDirectionalPanel[] room = rooms[row][col];\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tif (room[i].getImageName() == null) {\n\t\t\t\treturn room[i];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"float getEmpty();",
"@Test\n public void testNullIcon() {\n // initialize the complete chess board\n ChessBoard chessBoard = init(\"CHESS\");\n\n // compare the icon of the piece on the table to the correct icon\n for (int i = 0; i < 8; ++i) {\n assertEquals(null, chessBoard.getPiece(0, i).getIcon());\n assertEquals(null, chessBoard.getPiece(1, i).getIcon());\n assertEquals(null, chessBoard.getPiece(6, i).getIcon());\n assertEquals(null, chessBoard.getPiece(7, i).getIcon());\n }\n }",
"public int getTileX() {\n\t\treturn tileX;\n\t}",
"private Tile getTileByValue(int value) {\n\t\tfor (int i = 0; i < gameSize; i++)\n\t\t\tfor (int j = 0; j < gameSize; j++)\n\t\t\t\tif (gameTiles.getTile(i, j).getValue() == value)\n\t\t\t\t\treturn gameTiles.getTile(i, j);\n\n\t\treturn null;\n\t}",
"public Tile removeTile() {\n if (tileBag.size() == 0) {\n return null;\n }\n return tileBag.remove(0);\n }",
"public Tile getTile(Character letter) {\r\n int index;\r\n Tile returnedTile;\r\n if(isAvailable(letter)) {\r\n index = frame.indexOf(new Tile(letter));\r\n returnedTile = frame.get(index);\r\n }\r\n else //if we want to return blank instead of unavailable letter\r\n {\r\n index = frame.indexOf(new Tile('_'));\r\n returnedTile = frame.get(index);\r\n returnedTile.setBlankAs(letter);\r\n }\r\n return returnedTile;\r\n }",
"public TilePiece(){\n\t\t\n\t\tiColour = null;\n\t\tiShape = null;\n\t}",
"private static double getEmtpyScore(Game2048Board board) {\n double empty = 0;\n if (board.getEmptyTiles().size() < 4) {\n empty = (4 - board.getEmptyTiles().size());\n }\n return empty;\n }",
"private boolean isEmpty(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK_FLOOR);\r\n }",
"public int getTile(int t) {\n switch (t) {\n case HARDFLOOR: return hardfloors[type];\n case HARDWALL: return hardwalls[type];\n case SOFTFLOOR: return softfloors[type];\n case SOFTWALL: return softwalls[type];\n case STREAM: return streams[type];\n case RIVER: return rivers[type];\n } \n return Tile.WALL;\n }",
"@Override\n\tpublic Object getValue() {\n\t\treturn null;\n\t}",
"public void setBlankValue(char let){\n value = 0;\n letter = Character.toUpperCase(let);\n\n }",
"@Test\n public void TestGetHeatEmpty() throws Exception {\n for (int i = 0; i < HEIGHT; i++) {\n for (int j = 0; j < WIDTH; j++) {\n assertEquals(0, heatGrid.getHeat(j, i));\n }\n }\n }",
"public Tile getInitTile() {\n return new Tile(initItem.type + \"-Init\", initItem.left, initItem.right,\n initItem.up, initItem.down, initItem.center, initItem.coatOfArms, initItem.separatedCities);\n }",
"public String getTile(int row, int column)\n {\n return tiles.get(row).get(column).getLetter(); \n }",
"private String getNullValueText() {\n return getNull();\n }",
"public Point findEmptyCell(){\n int height = Math.min(labyrinth.getCells().length,LabyrinthFactory.HEIGHT-2);\n int widht = Math.min(labyrinth.getCells()[0].length, LabyrinthFactory.WIDTH);\n while(true) {\n int x = ThreadLocalRandom.current().nextInt(0, widht-2);\n int y = ThreadLocalRandom.current().nextInt(0, height-2);\n if (!labyrinth.getCell(x, y).isSolid()) {\n return new Point(x, y);\n }\n }\n }",
"public int getTileType() {\r\n\t\treturn 3;\r\n\t}",
"public void resetEmpty() {\n\t /*reset the mineField with no mines*/\n mineField = blankField(this.row, this.col);\n }",
"public static boolean isEveryTileFilled() {\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (tiles.get(new Coordinates(i, j)).getTextFromTile().getText().equals(\"\")) {\n return false;\n }\n }\n }\n return true;\n }",
"public Tile sameValue(Tile t) {\n for (int i=0; i<this.size(); i++) {\n if (this.get(i).getColour() == t.getColour() &&\n this.get(i).getValue() == t.getValue()) {\n return this.get(i);\n }\n }\n return null;\n\n }",
"@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }",
"public int getTileWidth() {\n return 8;\n }",
"void setEmpty() {\n this.lo = 1;\n this.hi = 0;\n }",
"protected byte[] getMeasuredFloorTemperature() {return null;}",
"private Tile getTile(int x, int y) {\n\t\tif (x < 0 || x > width || y < 0 || y > height) return Tile.VOID;\n\t\treturn Tile.tiles[tiles[x + y * width]];\n\t}",
"public String none() {\n if (!this.styledValueElements.isDefault()) {\n this.styledValueElements = new ShiftedText(this.styledValue);\n this.value = this.styledValueElements.stringify();\n }\n return this.value;\n }",
"@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }",
"public Tile[] generateTiles() {\n return null;\n }",
"public OthelloTile getTile(Point p) {\n if(p == null) {\n return null;\n }\n int x = (p.x-35)/grid[0][0].getPreferredSize().width;\n int y = (p.y-35)/grid[0][0].getPreferredSize().height;\n if(x<0 || x>=grid.length || y<0 || y>=grid[0].length) {\n return null;\n }\n return grid[y][x];\n }",
"public int getActualTileWidth() {\n return 32;\n }",
"public static void render(Graphics g, Tile tile, Point pxCenterPoint, float value) {\n Point topLeft = new Point(pxCenterPoint.x - (tile.getImage().getWidth() / 2), pxCenterPoint.y - (tile.getImage().getHeight() / 2));\n if (value >= 0) {\n\n\n if (tile.getType() == \"Mountain\") {\n\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 19 + 21, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 19 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n\n } else if (tile.getType() == \"Water\" || tile.getType() == \"Grass\" || tile.getType() == \"Running\") {\n //\n //System.out.println(topLeft.y);\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n } else {\n g.drawImage(GraphicAssets.col, topLeft.x, topLeft.y + 10 + 19, 60, tile.getImageHeight() / 2, null);\n g.drawImage(GraphicAssets.base, topLeft.x, topLeft.y + 10 + 19 + tile.getImageHeight() / 2, 60, 19, null);\n g.drawImage(tile.getImage(), topLeft.x, topLeft.y + 10, tile.getImage().getWidth(), tile.getImage().getHeight(), null);\n }\n if (tile.hasAreaEffect()) {\n areaEffectRenderer.render(g, tile.getAreaEffect(), topLeft);\n }\n\n if (tile.hasItem()) {\n for (Item item : tile.getItems()) {\n itemRenderer.render(g, item, topLeft);\n }\n }\n }\n }",
"@Override\r\n\tpublic Integer getValue() {\n\t\treturn null;\r\n\t}",
"public void doubleTileValue() {\n value = value*2;\n label.setText(Integer.toString(value));\n if (value > 4) {\n label.setForeground(other);\n } \n }",
"@Override\n public int getTileWidth() {\n return this.tileWidth;\n }",
"public int[] getGrassTileRaw() {\n return grassTileRaw;\n }",
"public int getTileHeight() {\n return 8;\n }",
"public int blankAt(int x, int y) {\n\t\treturn getVar(VarBlocks.LIGHT.getValue(), x, y);\r\n\t}",
"public String toString() {\n/* 6387 */ return \"VolaTile [X: \" + this.tilex + \", Y: \" + this.tiley + \", surf=\" + this.surfaced + \"]\";\n/* */ }",
"public int getTileSize() {\r\n\t\treturn this.tileSize;\r\n\t}",
"public int emptyPit() {\r\n\t\t\r\n\t\tint temp = stones;\r\n\t\tstones = 0;\r\n\t\treturn temp;\r\n\t\t\r\n\t}",
"public BoardCell getLabelCell() {\n\t\treturn null;\n\t}",
"private boolean isSpotBlank(int row, int column){\n\t\t\n\t\tif (getDisc(row, column) == null) {\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"public Tile() {\n this(-1, false);\n for (int i = 1; i <= 9; i++) {\n possibleValues.add(i);\n }\n }",
"public void setAsEmpty(){\n\t\tnodeStatus = Status.empty;\n\t\tunitNum=-1;\n\t}",
"@Override\n public int getTileHeight() {\n return this.tileHeight;\n }",
"@Override\n public int getMinTileX() {\n return convertXToTileX(getMinX());\n }",
"public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }",
"public CellType getType()\r\n/* 35: */ {\r\n/* 36: 94 */ return CellType.EMPTY;\r\n/* 37: */ }",
"public String toString(){\n return this.tileType.toString() + this.position + this.orientation;\n }",
"@Override\n public SquareTile getTile(int x, int y) {\n // Check that the location is inside the grid\n if (x < 0 || x >= width || y < 0 || y >= height)\n return null;\n\n return tiles[x * width + y];\n }",
"private String defendRow() {\r\n for (int i = 0; i < gameHeight; i++) {\r\n if (!enLaneInfo.get(i).get(0).isEmpty() && myLaneInfo.get(i).get(1).isEmpty()) {\r\n return DEFENSE.buildCommand(7,i);\r\n }\r\n }\r\n return buildTurret();\r\n }",
"String getTileType();",
"public Node getBoardNode() {\r\n return tilesNode;\r\n }",
"public String value() {\r\n if (counterPart!=null) {\r\n return counterPart.toString();\r\n }\r\n else {\r\n return \"nil\";\r\n }\r\n }",
"public int tileType(){\n\t\treturn this.type;\n\t}",
"public abstract void setEmpty(AwtCell empty);",
"public GameTileyul579(int tileValue) {\n\n //calls the empty constructor\n super(tileValue);\n\n /*TODO: Create one or more new Shape(s) to represent the tile \n * (it can be a Rectangle, a Circle, a combination, etc. Get creative!)\n *\n * Don't forget to set the width and height of the object(s)\n * \n * Set the color of the object(s) depending on the tile's value.\n * You can use the colors HashMap to get the appropriate color.\n * Remember you can change the colors in this HashMap, and you can \n * combine them with other colors to make a creative tile. The\n * only requirement is that each legal value in the game have a \n * different color or color scheme. You need to handle illegal \n * values, but the color you choose for these illegal values is \n * up to you.\n * \n * Remember that colors.get(tileValue) will return the Color\n * associated with the value.\n * \n */ \n Rectangle square = new Rectangle();\n square.setWidth(100);\n square.setHeight(100);\n populateColors();\n square.setFill(colors.get(tileValue));\n //illegal value\n if((tileValue & (tileValue-1))!=0 || tileValue<0 ||tileValue==1)\n square.setFill(Color.BLACK);\n if(tileValue > 256)\n square.setFill(Color.WHITE);\n\n \n \n /* TODO: Create a Text object to display the value of the tile,\n * if the tileValue is non-zero\n * Don't forget to setText, setFont, and setFill\n *\n * The font type and color is up to you. You might choose to vary it\n * depending on the value of the tile, or you can just use a single\n * color.\n *\n * If tileValue is 0,\n * you do not need to create this text object. I.e. it will be blank.\n */\n Text someText = new Text();\n if(tileValue!=0){\n someText.setText(Integer.toString(tileValue));\n someText.setFont(Font.font(\n \"Times New Roman\",FontWeight.BOLD,30));\n someText.setFill(Color.WHITE); \n }else{\n someText.setText(\"\"); \n }\n\n /* TODO: Finally, add tile shape(s) and value of tile to the calling\n * object, which is a StackPane. \n * Hint: Look into the getChildren method of the StackPane/Pane class\n * and remember that you are adding your objects to the calling object\n * which is a StackPane. \n */\n this.getChildren().add(square);\n this.getChildren().add(someText);\n\n }",
"public int getEmptyY()\n\t{\n\t\treturn y0;\n\t}",
"public int GetFirstPossibleValueInTheCell()\n {\n return this._valuesToPut.get(0);\n }",
"public int getActualTileHeight() {\n return 32;\n }",
"public TileEnum getSelectedTile() {\n return selectedTile;\n }",
"public CrosstabCell getWhenNoDataCell()\r\n {\r\n for (int i=0; i<getCrosstabElement().getCells().size(); ++i)\r\n {\r\n CrosstabCell cell = (CrosstabCell)getCrosstabElement().getCells().elementAt(i);\r\n if (cell.getType() == cell.NODATA_CELL)\r\n {\r\n return cell;\r\n }\r\n }\r\n return null;\r\n }",
"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 int getTile(int x, int y)\n {\n try {\n return board[x][y];\n } catch (ArrayIndexOutOfBoundsException e) {\n return EMPTY_FLAG;\n }\n }",
"private static TETile randomTile() {\n int tileNum = RANDOM.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.TREE;\n case 1: return Tileset.FLOWER;\n case 2: return Tileset.GRASS;\n case 3: return Tileset.SAND;\n case 4: return Tileset.MOUNTAIN;\n default: return Tileset.NOTHING;\n }\n }",
"@Override\r\n\tpublic Object getCellEditorValue() {\n\t\treturn null;\r\n\t}",
"public void displayTiles() {\n System.out.println(\"\\n Tiles of this game : \");\n String phrase = \"No army deployed on this tile !\";\n for (Tile tile : this.board.getAllTiles()) {\n if (!tile.isEmpty()) {\n System.out.print(\" { Type tile : \" + tile.getCharacter() + \", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY() + \", State : Occuped, Player : \" + tile.getPlayer().getName() + \", Army : \" + tile.getPersonnage().getName() + \", Army size : \" +((Army) tile.getPersonnage()).getArmySize() + \"}\\n\");\n } else {\n System.out.print(\" { Type tile : \" + tile.getCharacter() +\", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY()+ \", State : \"+ phrase + \" }\\n\");\n }\n }\n }"
] | [
"0.62383974",
"0.60674244",
"0.6066666",
"0.60545945",
"0.6043541",
"0.6034995",
"0.59981364",
"0.5937425",
"0.5918904",
"0.5910431",
"0.5890343",
"0.58892894",
"0.58892894",
"0.58875364",
"0.58797425",
"0.5861096",
"0.58597296",
"0.5827006",
"0.5769366",
"0.5769366",
"0.5769366",
"0.57566315",
"0.57566315",
"0.57566315",
"0.5750512",
"0.5720686",
"0.57151234",
"0.56889963",
"0.56801784",
"0.56800467",
"0.56721455",
"0.56590366",
"0.56479347",
"0.56383497",
"0.56362957",
"0.5623515",
"0.5620059",
"0.5593841",
"0.55916715",
"0.55832916",
"0.5580404",
"0.5577372",
"0.5571439",
"0.55647594",
"0.55638385",
"0.5554342",
"0.5545745",
"0.55398256",
"0.553608",
"0.55340034",
"0.55335814",
"0.55261195",
"0.55250835",
"0.5524923",
"0.5519189",
"0.551458",
"0.5509263",
"0.5508043",
"0.55010915",
"0.54967654",
"0.5491134",
"0.54908633",
"0.5480511",
"0.54797846",
"0.54755855",
"0.54645175",
"0.54583156",
"0.5441007",
"0.54319274",
"0.54294527",
"0.54205483",
"0.54157966",
"0.5414526",
"0.54097855",
"0.5396812",
"0.5374453",
"0.5367531",
"0.5367354",
"0.53644425",
"0.53637755",
"0.5358298",
"0.53571403",
"0.5354356",
"0.53538454",
"0.5346614",
"0.5346525",
"0.5337398",
"0.5336307",
"0.53326416",
"0.53265774",
"0.53188825",
"0.5316937",
"0.53138596",
"0.5311412",
"0.53109366",
"0.5305042",
"0.5296672",
"0.5293201",
"0.5287274",
"0.5281634"
] | 0.56044185 | 37 |
Setter for the blank value of the tile | public void setBlankValue(char let){
value = 0;
letter = Character.toUpperCase(let);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setEmpty() {\n this.lo = 1;\n this.hi = 0;\n }",
"public abstract void setEmpty(AwtCell empty);",
"void setTile(Tile tile) {\n _tile = tile;\n }",
"public void setAsEmpty(){\n\t\tnodeStatus = Status.empty;\n\t\tunitNum=-1;\n\t}",
"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 setTile(Tile tile) {\n\t\tthis.tile = tile;\n\t}",
"public Tile() {\n this(-1, false);\n for (int i = 1; i <= 9; i++) {\n possibleValues.add(i);\n }\n }",
"public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}",
"public void resetEmpty() {\n\t /*reset the mineField with no mines*/\n mineField = blankField(this.row, this.col);\n }",
"@Override\n\tpublic void setEmpty() {\n\t\t\n\t}",
"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}",
"public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }",
"public void setGridNull(int row, int col)\n\t{\n\t\tgrid[row][col] = null;\n\t}",
"public TilePiece(){\n\t\t\n\t\tiColour = null;\n\t\tiShape = null;\n\t}",
"protected abstract void setTile( int tile, int x, int y );",
"void setNilValue();",
"public void zero() {\r\n\t\tthis.x = 0.0f;\r\n\t\tthis.y = 0.0f;\r\n\t}",
"private void setLit(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setLit(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}",
"private void setTile(int row, int col, int value) {\n //first make sure the parameters are reasonable values\n if (row < 0 || row > 2 || col < 0 || col > 2) {\n throw new IllegalArgumentException(\"Passed bad index values to setTile()\");\n }\n tiles[row][col] = value;\n }",
"public void reset() {\n\t\ttilePath.clear();\n\t}",
"private void setRandomValueForTiles(GameTiles tiles) {\n\t\tint tileCounts = gameSize * gameSize;\n\t\tRandom random = new Random();\n\t\tint randomRow, randomColumn;\n\t\tint value = 0;\n\t\tdo {\n\t\t\trandomRow = random.nextInt(gameSize);\n\t\t\trandomColumn = random.nextInt(gameSize);\n\n\t\t\t// if the random tile detected already defined then iterating to find undefined\n\t\t\t// tile to define it\n\t\t\twhile (tiles.getTile(randomRow, randomColumn).getValue() != TilesVariable.UNDEFINED_TILE_VALUE.getValue())\n\t\t\t\tif (++randomColumn >= gameSize) {\n\t\t\t\t\trandomColumn = 0;\n\t\t\t\t\tif (++randomRow >= gameSize)\n\t\t\t\t\t\trandomRow = 0;\n\t\t\t\t}\n\n\t\t\ttiles.getTile(randomRow, randomColumn).setValue(value);\n\t\t} while (++value < tileCounts);\n\t}",
"public void empty() {\n\t\tempty.setPosition(sprite.getX(),sprite.getY());\n\t\tsprite = empty;\n\t}",
"protected void clear() {\r\n setValue(getDefault());\r\n }",
"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 setRemainingToScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tgrid[i][j]=new Scenery(i*grid[0].length+j);\n\t\t\t}\n\t\t}\n\t}",
"public void setTileX(int x) {\n\t\ttileX = x;\n\t}",
"@Override\n public void setNull() {\n\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}",
"void setTileColor(int a_player)\n {\n if (a_player == 0)\n {\n this.tileColor = \"BLACK\";\n }\n else if (a_player == 1)\n {\n this.tileColor = \"RED\";\n }\n else\n {\n this.tileColor = null;\n }\n }",
"public void setValueToEmpty(boolean b, int row, int col) {\n columns[col].setValueToEmpty(b, row);\n }",
"void set_empty(int p_layer)\r\n {\r\n arr[p_layer].set_empty();\r\n }",
"Cell() {\r\n\t\tstate = CellState.EMPTY;\r\n\t}",
"@Override\r\n\tpublic void Clear() {\r\n\t\tthis.tav='*';\t\r\n\t}",
"public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }",
"public void setEmpty(){this.empty = true;}",
"public void setToOriginals(){\n\t\t//set all occupied nodes as empty\n\t\tif(nodeStatus == Status.occupied){\n\t\t\tsetAsEmpty();\n\t\t}\n\t\t//if the node had a unit end on it, reset that value\n\t\tif(ended == true){\n\t\t\tended=false;\n\t\t}\n\t\tf=0;\n\t\tg=0;\n\t\th=0;\n\t}",
"public FireTile() {\n super();\n setUtility(5);\n }",
"private void setTileInField(int row, int column, int value, char section){\n if(!checkInput(row, column, value)) return;\n\n if(value > 0){\n gameField[row][column] = new Assignment(value, Section.getSection(section));\n } else {\n gameField[row][column] = new Guess(Section.getSection(section));\n }\n }",
"public int setCell(int value){\n int newValue;\n if (isHit(value)){\n newValue = HIT;\n }\n else {\n newValue = MISS;\n }\n return newValue;\n }",
"public TileView(int val){\n\n\t\ttile = new Rectangle();\n\t\tvalue = new Text(getNumRank(val));\n\t\t//tableau de couleur des pions\n\t\tColor color[] = \t {Color.web(\"0xeee4da\"), Color.web(\"0xede0c8\"), Color.web(\"0xf2b179\"), Color.web(\"0xec8d54\"), Color.web(\"0xf67c5f\"), Color.web(\"0xea5937\"), Color.web(\"0xf3d86b\"), Color.web(\"0xf1d04b\"), Color.web(\"0xf3d86b\")};\n\t\t//tableau de couleur de la valeur\n\t\tColor colorString[]= {Color.web(\"0x776e65\"), Color.web(\"0x776e65\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\"), Color.web(\"0xffffff\")};\n\t\t\n\t\t//taille du pion et angle arrondi\n\t\ttile.setWidth(80);\n\t\ttile.setHeight(80);\n\t\ttile.setArcWidth(20);\n\t\ttile.setArcHeight(20);\n\t\ttile.setFill(color[val-1]);\n\t\t\n\t\t//ajout de texte avec le chiffre\n\t\tvalue.setFont(new Font(25));\n\t\tvalue.setFill(colorString[val-1]);\n\t\t//deplacement de la valeur suivant le nombre de chiffre dans le nombre\n\t\tif(val <= 3){\n\t\t\tvalue.setX(30);\n\t\t\tvalue.setY(50);\n\t\t}else if(val <= 6){\n\t\t\tvalue.setX(25);\n\t\t\tvalue.setY(50);\n\t\t}else{\n\t\t\tvalue.setX(15);\n\t\t\tvalue.setY(50);\n\t\t}\n\t\t\n\t\tthis.getChildren().add(tile);\n\t\tthis.getChildren().add(value);\n\t}",
"public void setToZero() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n data[i][j] = 0;\n }\n }\n }",
"void reset() {\n setPosition(-(TILE_WIDTH * CYCLE), TOP_Y);\n mySequenceIndex = 0;\n setAnimatedTile(myAnimatedTileIndex, FRAME_SEQUENCE[mySequenceIndex]);\n }",
"public void doubleTileValue() {\n value = value*2;\n label.setText(Integer.toString(value));\n if (value > 4) {\n label.setForeground(other);\n } \n }",
"public Cell(){\n \tthis.shot=false;\n }",
"public void zero() {\n fill(0);\n }",
"private void overwritePositionWithEmpty(int row, int col){\n gameBoard[row][col] = new EmptyPiece();\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 final void set () {\t\n\t\tsymbol = null;\t\n\t\tmksa = underScore; factor = 1;\n\t\tvalue = 0./0.;\t\t\t// NaN\n\t\toffset = 0.;\n\t}",
"public Cell(){\n this.ship = null;\n this.hasBeenShot = false;\n }",
"@Override\r\n\tpublic void setCell(Integer x, Integer y, Integer value) {\n\t\tgame[x][y] = value;\r\n\t}",
"@Override\n public void normalCell() {\n gCell.setFill(Color.BLACK);\n }",
"public void setEmpty(int index);",
"private void setFixedTile(FixedTile tile, int x, int y) {\r\n\t\tGridSquare.Type type = tile.getType();\r\n\t\tfor(int i = x; i < x+3; i++) {\r\n\t\t\tfor(int j = y; j < y+3; j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(type) , i, j);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void resetPlayerPosition() {\n\t\tthis.tilePositionX = this.STARTING_X;\n\t\tthis.tilePositionY = this.STARTING_Y;\n\t}",
"public GameTileyul579(int tileValue) {\n\n //calls the empty constructor\n super(tileValue);\n\n /*TODO: Create one or more new Shape(s) to represent the tile \n * (it can be a Rectangle, a Circle, a combination, etc. Get creative!)\n *\n * Don't forget to set the width and height of the object(s)\n * \n * Set the color of the object(s) depending on the tile's value.\n * You can use the colors HashMap to get the appropriate color.\n * Remember you can change the colors in this HashMap, and you can \n * combine them with other colors to make a creative tile. The\n * only requirement is that each legal value in the game have a \n * different color or color scheme. You need to handle illegal \n * values, but the color you choose for these illegal values is \n * up to you.\n * \n * Remember that colors.get(tileValue) will return the Color\n * associated with the value.\n * \n */ \n Rectangle square = new Rectangle();\n square.setWidth(100);\n square.setHeight(100);\n populateColors();\n square.setFill(colors.get(tileValue));\n //illegal value\n if((tileValue & (tileValue-1))!=0 || tileValue<0 ||tileValue==1)\n square.setFill(Color.BLACK);\n if(tileValue > 256)\n square.setFill(Color.WHITE);\n\n \n \n /* TODO: Create a Text object to display the value of the tile,\n * if the tileValue is non-zero\n * Don't forget to setText, setFont, and setFill\n *\n * The font type and color is up to you. You might choose to vary it\n * depending on the value of the tile, or you can just use a single\n * color.\n *\n * If tileValue is 0,\n * you do not need to create this text object. I.e. it will be blank.\n */\n Text someText = new Text();\n if(tileValue!=0){\n someText.setText(Integer.toString(tileValue));\n someText.setFont(Font.font(\n \"Times New Roman\",FontWeight.BOLD,30));\n someText.setFill(Color.WHITE); \n }else{\n someText.setText(\"\"); \n }\n\n /* TODO: Finally, add tile shape(s) and value of tile to the calling\n * object, which is a StackPane. \n * Hint: Look into the getChildren method of the StackPane/Pane class\n * and remember that you are adding your objects to the calling object\n * which is a StackPane. \n */\n this.getChildren().add(square);\n this.getChildren().add(someText);\n\n }",
"public Tile(int number) {\n this.number = number;\n }",
"public final void setZero() {\n \t\n\t\tthis.m00 = 0.0F;\n\t\tthis.m01 = 0.0F;\n\t\tthis.m02 = 0.0F;\n\t\tthis.m10 = 0.0F;\n\t\tthis.m11 = 0.0F;\n\t\tthis.m12 = 0.0F;\n\t\tthis.m20 = 0.0F;\n\t\tthis.m21 = 0.0F;\n\t\tthis.m22 = 0.0F;\n }",
"void setPosition(Tile t);",
"public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}",
"public void setToWhite();",
"private T setDefaultValue(T t) {\n\t\tif(t.getStatus() == null) {\n\t\t\tt.setStatus(1);\n\t\t}\n\t\tif(t.getCreateTime() == null) {\n\t\t\tt.setCreateTime(new Date());\n\t\t}\n\t\tif(t.getUpdateTime() == null) {\n\t\t\tt.setUpdateTime(new Date());\n\t\t}\n\t\treturn t;\n\t}",
"public void set_AllSpreadIndexToZero(){\r\n\tGRASS=0; \r\n\tTIMBER=0;\r\n}",
"public void unAssign(){\n\t\tthis.value = 0;\n\t}",
"private void blank() {\n tgl_pengobatanField.setText(null);\n waktu_pengobatanField.setText(null);\n keluhan_pasienField.setText(null);\n hasil_diagnosaField.setText(null);\n biayaField.setText(null);\n }",
"public WallTile()\n\t{\n\t\t\n\t}",
"public void setVoid_Inventory_ID (int Void_Inventory_ID)\n{\nif (Void_Inventory_ID <= 0) set_Value (\"Void_Inventory_ID\", null);\n else \nset_Value (\"Void_Inventory_ID\", new Integer(Void_Inventory_ID));\n}",
"public MapTile(final Sprite sprite) {\n if (sprite == null) {\n this.sprite = Sprite.UNKNOWN;\n }\n\n this.sprite = sprite;\n }",
"public void setOccupied(){\n this.isEmpty = false;\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 setTile(int x, int y) {\n/* 748 */ this.e.setTile(x, y);\n/* 749 */ this.k = getTileIdx();\n/* */ \n/* */ \n/* 752 */ String str = (String)this.f.f(this.k);\n/* 753 */ if (str.equals(\"none\")) {\n/* 754 */ this.h = 0;\n/* */ }\n/* 756 */ else if (str.equals(\"rct\")) {\n/* 757 */ this.h = 1;\n/* 758 */ c();\n/* */ }\n/* 760 */ else if (str.equals(\"ict\")) {\n/* 761 */ this.h = 2;\n/* 762 */ d();\n/* */ } else {\n/* */ \n/* 765 */ throw new IllegalArgumentException(\"Component transformation not recognized\");\n/* */ } \n/* */ }",
"public abstract AwtCell getEmpty();",
"public void setBoard(){\n \n\t m_Pieces[3][3]= WHITE_PIECE;\n m_Pieces[4][4]= WHITE_PIECE;\n m_Pieces[3][4]= BLACK_PIECE;\n m_Pieces[4][3]= BLACK_PIECE;\n for(int x=0;x<WIDTH;x++){\n for(int y=0;y<HEIGHT;y++){\n if(m_Pieces[x][y]==null){\n m_Pieces[x][y]=NONE_PIECE;\n }\n }\n }\n }",
"private void resetFValue(){\r\n int length = _map.get_mapSize();\r\n for(int i=0;i<length;i++){\r\n _map.get_grid(i).set_Fnum(10000);\r\n }\r\n }",
"public void setToDefault();",
"public MapTile() {}",
"protected Tile() {\n super();\n }",
"public void testSetCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.setCell(1, 2, MineSweeperCell.FLAGGED_MINE);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\");\r\n }",
"private void fillRandomEmptyCell(int value, PredatorPreyCell cell, Grid<Integer> grid) {\n\t\tRandom r = new Random();\n\t\tPredatorPreyCell randCell = getEmptyCells(grid).get(r.nextInt(getEmptyCells(grid).size()));\n\t\tswap(cell, randCell);\n\t}",
"public MarsTile(Point position) {\n\t\tthis.weight = 0;\n\t\tthis.position = position;\n\t}",
"@Override\n\tpublic Object setPossibleValue() {\n\t\treturn null;\n\t}",
"void unset() {\n size = min = pref = max = UNSET;\n }",
"private void resetUnitSprite() {\r\n\t\tswitch (GameManager.getInstance().getSelectedUnit()) {\r\n\t\tcase 0:\r\n\t\t\tGameManager.getInstance().setSelectedUnit(3);\r\n\t\t\tbreak;\r\n\r\n\t\tcase 1:\r\n\t\t\tUnit1SelectionSprite.setCurrentTileIndex(1);\r\n\t\t\t// GameManager.getInstance().setSelectedUnit(1);\r\n\t\tcase 2:\r\n\t\t\tUnit2SelectionSprite.setCurrentTileIndex(1);\r\n\t\t\t// GameManager.getInstance().setSelectedUnit(2);\r\n\t\tcase 3:\r\n\t\t\tUnit3SelectionSprite.setCurrentTileIndex(1);\r\n\t\t\t// GameManager.getInstance().setSelectedUnit(3);\r\n\t\tcase 4:\r\n\t\t\tUnit4SelectionSprite.setCurrentTileIndex(1);\r\n\t\t\t// GameManager.getInstance().setSelectedUnit(1);\r\n\t\tcase 5:\r\n\t\t\tUnit5SelectionSprite.setCurrentTileIndex(1);\r\n\t\t\t// GameManager.getInstance().setSelectedUnit(1);\r\n\t\tcase 6:\r\n\t\t\tUnit6SelectionSprite.setCurrentTileIndex(1);\r\n\t\t\t// GameManager.getInstance().setSelectedUnit(1);\r\n\t\t}\r\n\t}",
"public void setNone() {\n\t\tstate = State.NONE;\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 displayCleanValues() {\r\n currentX.setText(\"0.0\");\r\n currentY.setText(\"0.0\");\r\n currentZ.setText(\"0.0\");\r\n }",
"protected void setToDefault(){\n\n\t}",
"protected void setValue0(T value) {\n\t\t// Preconditions\n\t\tif (value == null) {\n\t\t\tthrow new NullPointerException(\"Value cannot be null\");\n\t\t}\n\n\t\tthis.value = value;\n\t}",
"public void testSetCell() {\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(9, 9);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.UNEXPLORED, maze1.getCell(test));\n test = new Location(1, 0);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n test = new Location(0, 1);\n maze1.setCell(test, MazeCell.WALL);\n assertEquals(MazeCell.WALL, maze1.getCell(test));\n \n \n \n maze1.setCell(test, MazeCell.CURRENT_PATH);\n assertEquals(MazeCell.CURRENT_PATH, maze1.getCell(test));\n maze1.setCell(test, MazeCell.FAILED_PATH);\n assertEquals(MazeCell.FAILED_PATH, maze1.getCell(test));\n \n }",
"public static void blankToGiven(final Cell myCell) {\n if (myCell.getType() == Type.BLANK && myCell.getVal() != 0) {\n myCell.setType(Type.GIVEN);\n }\n }",
"private void assignTileColor() {\n boolean isLightTile = ((tileCoordinate + tileCoordinate / 8) % 2 == 0);\n setBackground(isLightTile ? LIGHT_TILE_COLOR : DARK_TILE_COLOR);\n }",
"public void setZero() {\n\t\tset((byte) (get() | (1 << 7)));\n\t}",
"@Override\n public Map put(Tile tile, int left, int top) {\n // TODO if useful\n int index = getPosition(left, top);\n while (this.tiles.size() <= index) {\n this.tiles.add(null);\n }\n this.tiles.set(index, tile);\n return this;\n }",
"public void reset(int initValue) {\n\t\tfor (int col = 0; col < this.width; col++) {\n\t\t\tfor (int row = 0; row < this.height; row++) {\n\t\t\t\tthis.bitmap[col][row] = initValue;\n\t\t\t}\n\t\t}\n\t}",
"public void setM_Inventory_ID (int M_Inventory_ID)\n{\nif (M_Inventory_ID <= 0) set_Value (\"M_Inventory_ID\", null);\n else \nset_Value (\"M_Inventory_ID\", new Integer(M_Inventory_ID));\n}",
"public void setEnemyPkmnNull()\r\n {\r\n enemyPokemon = null;\r\n }",
"public Cell() {\r\n\t\tthis.mineCount = 0;\r\n\t\tthis.isFlagged = false;\r\n\t\tthis.isExposed = false;\r\n\t\tthis.isMine = false;\r\n\t}",
"@Override\n\tprotected void updateItem(final Boolean value, final boolean empty) {\n\t\tsuper.updateItem(value, empty);\n\t\tif (!empty && getTableRow().getItem() != null) {\n\t\t\tif (value != null && value) {\n\t\t\t\tif (getTableRow().getItem().isDefaultValue()) {\n\t\t\t\t\tsetGraphic(resetToOldValueButton);\n\t\t\t\t} else {\n\t\t\t\t\tsetGraphic(new HBox(resetToDefaultButton, resetToOldValueButton));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getTableRow().getItem().isDefaultValue()) {\n\t\t\t\t\tsetGraphic(null);\n\t\t\t\t} else {\n\t\t\t\t\tsetGraphic(resetToDefaultButton);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tsetGraphic(null);\n\t\t}\n\t}",
"public void reset() {\n\t\t// Reset the SwipeTile's state data.\n\t\tstartTime = System.nanoTime();\n\t\t// Reset the Tile's State.\n\t\ttileState = defaultTileState;\n\t\t// Reset the opacity\n\t\topacity = 1;\n\t\t// Refresh the arrow's Texture.\n\t\trefreshArrow();\n\t}",
"@Override\n\tpublic Value apprise() {\n\t\treturn null;\n\t}",
"@Override\n\tprotected void updateTiles() {\n\n\t\tfinal byte tileId = getPlanetType().mainTileId;\n\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\t// if (random.NextDouble() > 0.95f)\n\t\t\t// tiles[i] = 0;\n\t\t\t// else\n\t\t\ttiles[i] = tileId;\n\t\t}\n\t}"
] | [
"0.664872",
"0.66213506",
"0.6485722",
"0.6451571",
"0.64229447",
"0.63223976",
"0.62417024",
"0.6161327",
"0.61539805",
"0.61465263",
"0.606473",
"0.6054591",
"0.603357",
"0.6017958",
"0.5998147",
"0.5991219",
"0.5983128",
"0.5895712",
"0.58956546",
"0.5856921",
"0.58555657",
"0.5827454",
"0.5806931",
"0.5742811",
"0.5734947",
"0.57277894",
"0.5723524",
"0.57217187",
"0.5719928",
"0.5694634",
"0.568833",
"0.5682333",
"0.56820786",
"0.56758666",
"0.5673601",
"0.56731737",
"0.5671796",
"0.56528854",
"0.56512296",
"0.5650215",
"0.56435406",
"0.5627809",
"0.5608291",
"0.5607796",
"0.56045234",
"0.5592834",
"0.5586009",
"0.55679697",
"0.555439",
"0.55531156",
"0.55387574",
"0.5527411",
"0.55219376",
"0.55168605",
"0.5511749",
"0.55048764",
"0.5501201",
"0.5493904",
"0.5489147",
"0.54849625",
"0.5484534",
"0.5482621",
"0.5479752",
"0.5470757",
"0.54694223",
"0.5465082",
"0.546022",
"0.5454329",
"0.54526067",
"0.5450938",
"0.5435161",
"0.54292834",
"0.54268426",
"0.542594",
"0.541959",
"0.541012",
"0.54056287",
"0.5400127",
"0.5369668",
"0.53659433",
"0.5365836",
"0.5362645",
"0.5362174",
"0.5360128",
"0.53598356",
"0.535601",
"0.5350851",
"0.53457206",
"0.5344464",
"0.53434515",
"0.53417706",
"0.53363127",
"0.5331916",
"0.5331408",
"0.53303957",
"0.53303635",
"0.53298986",
"0.5302997",
"0.52929527",
"0.52899456"
] | 0.6174526 | 7 |
gets the value of the letter passed into the funciton assigned by the Scrabble letter values | public int letterValue(char letter){
int val;
switch(letter){
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'l':
case 'n':
case 's':
case 't':
case 'r': val =1;
break;
case 'd':
case 'g': val =2;
break;
case 'b':
case 'c':
case 'm':
case 'p': val =3;
break;
case 'f':
case 'h':
case 'v':
case 'w':
case 'y': val =4;
break;
case 'k': val =5;
break;
case 'j':
case 'x': val =8;
break;
case 'q':
case 'z': val =10;
break;
default: val =0;
}
return val;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getValue(char c) {\n\t\tswitch(c) {\n\t\tcase 'A': return 0;\n\t\tcase 'C': return 1;\n\t\tcase 'G': return 2;\n\t\tcase 'T': return 3;\n\t\tdefault: return -1;\n\t\t}\n\t}",
"public char getLetter()\n {\n \treturn letter;\n }",
"public static int lookup(char letter) {\n\t\tswitch (letter) {\n\t\tcase 'A':\n\t\t\treturn 0;\n\t\tcase 'R':\n\t\t\treturn 1;\n\t\tcase 'N':\n\t\t\treturn 2;\n\t\tcase 'D':\n\t\t\treturn 3;\n\t\tcase 'C':\n\t\t\treturn 4;\n\t\tcase 'Q':\n\t\t\treturn 5;\n\t\tcase 'E':\n\t\t\treturn 6;\n\t\tcase 'G':\n\t\t\treturn 7;\n\t\tcase 'H':\n\t\t\treturn 8;\n\t\tcase 'I':\n\t\t\treturn 9;\n\t\tcase 'L':\n\t\t\treturn 10;\n\t\tcase 'K':\n\t\t\treturn 11;\n\t\tcase 'M':\n\t\t\treturn 12;\n\t\tcase 'F':\n\t\t\treturn 13;\n\t\tcase 'P':\n\t\t\treturn 14;\n\t\tcase 'S':\n\t\t\treturn 15;\n\t\tcase 'T':\n\t\t\treturn 16;\n\t\tcase 'W':\n\t\t\treturn 17;\n\t\tcase 'Y':\n\t\t\treturn 18;\n\t\tcase 'V':\n\t\t\treturn 19;\n\t\tcase 'B':\n\t\t\treturn 20;\n\t\tcase 'Z':\n\t\t\treturn 21;\n\t\tcase 'X':\n\t\t\treturn 22;\n\t\tcase '*':\n\t\t\treturn 23;\n\t\tcase '|':\n\t\t\treturn 24;\n\t\tcase '.':\n\t\t\treturn 25;\n\n\t\tdefault:\n\t\t\treturn -1;\n\t\t}\n\n\t}",
"public char getLetter(){\r\n\t\treturn letter;\r\n\t}",
"public char getLetter() {\n return letter;\n }",
"public char getLetter()\n\t{\n\t\treturn letter;\n\t}",
"public AVT getLetterValue()\n {\n return m_lettervalue_avt;\n }",
"Character getCode();",
"char getContactLetter();",
"public char getLetter() {\r\n\t\treturn letter;\r\n\t}",
"public int getGroup(char letter);",
"public Letter getLetter(Character c) {\n return get(c);\n }",
"public char getLetter() {\r\n\t\t\treturn letter;\r\n\t\t}",
"public String getLetter() {\n return letter;\n }",
"public char getChar();",
"String getWordIn(String schar, String echar);",
"private char getGuessLetter(Scanner sc) {\n\n\t\t// the array format of the input\n\t\tchar[] ch;\n\t\twhile (true) {\n\t\t\t// ask for the input\n\t\t\tSystem.out.println(\"Please enter one letter to guess:\");\n\t\t\tSystem.out.print(\">>>\");\n\t\t\t// reading the input\n\t\t\tString input = sc.nextLine();\n\t\t\tch = input.toCharArray();\n\t\t\t// if the input is a allowed letter\n\t\t\tif(ch.length == 1\n\t\t\t\t&&(dr.isAllowed(ch[0]) || Character.isUpperCase(ch[0]))) {\n\t\t\t\t// break the loop\n\t\t\t\tbreak;\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Please enter an allowed letter.\");\n\t\t\t}\n\t\t}\n\t\t//return the lower-cased version of the letter\n\t\treturn Character.toLowerCase(ch[0]);\n\t}",
"char getEChar();",
"Rule Letter() {\n // No effect on value stack\n return FirstOf(\n CharRange('a', 'z'),\n CharRange('A', 'Z'));\n }",
"public static char getLetter(String s){\n //A variable used in the helper method\n int i = 0;\n return getLetter(codeTree, s, i);\n }",
"public static char getA() {\n char aChar = 'B';\n return aChar;\n }",
"public char getLetterGrade() {\r\n\t\treturn letter;\r\n\t}",
"public char getUserGuess(){\n char letter = '\\u0000';\n if(mGuessEditText.getText().toString().toLowerCase().length() != 0)\n letter = mGuessEditText.getText().toString().toLowerCase().charAt(0);\n return letter;\n }",
"public char getLetter(int index) {\n\t\treturn _objMyStringBuilder.getCharAt(index);\n\t}",
"private char getRandomCharacter() {\n int min = 0;\n int max = ALPHABET.length-1;\n int randomPos;\n\n // Could possibly have used ASCII numbers 61-95\n randomPos = min + (int)(Math.random() * ((max - min) + 1));\n\n return ALPHABET[randomPos];\n }",
"public void bewegeKamel(Charakter charakter);",
"public char getGradeLetter() {\n\t\t\n\t\t// get the current overall grade\n\t\tdouble overallAverage = averages[OVERALL];\n\t\t\n\t\t// check its value and return the correct letter\n\t\tif (overallAverage < 60) \n\t\t\treturn 'F';\n\t\telse if (overallAverage < 70) \n\t\t\treturn 'D';\n\t\telse if (overallAverage < 80) \n\t\t\treturn 'C';\n\t\telse if (overallAverage < 90) \n\t\t\treturn 'B';\n\t\telse\n\t\t\treturn 'A';\n\t}",
"public char crypt(char letter){\n\n char l = conns[alphabet.indexOf(letter)];\n\n return l;\n }",
"String getRune_lit();",
"char getContactLetter(ContactSortOrder sortOrder);",
"private int getCharNumber(Character letter) {\n\t\tint integerA = Character.getNumericValue('a');\n\t\tint integerZ = Character.getNumericValue('z');\n\t\tint integerLetter = Character.getNumericValue(letter);\n\t\tif (integerLetter >= integerA && integerLetter <= integerZ) {\n\t\t\treturn integerLetter - integerA; //a -> 0, b -> 1, c -> 2, etc\n\t\t}\n\t\treturn -1;\n\t}",
"public static PieceType getByLetter(String letter) {\n\t\tswitch (letter.toUpperCase()) {\n\t\tcase \"\": // Alternate for a pawn \n\t\tcase \"P\": return PieceType.PAWN;\n\t\tcase \"N\": return PieceType.KNIGHT;\n\t\tcase \"B\": return PieceType.BISHOP;\n\t\tcase \"R\": return PieceType.ROOK;\n\t\tcase \"Q\": return PieceType.QUEEN;\n\t\tcase \"K\": return PieceType.KING;\n\t\tdefault: throw new BadArgumentException(letter, String.class, String.format(\"Input string \\\"%s\\\" does not correspond to a piece.\", letter));\n\t\t}\n\t}",
"private String decideLetter(Cell c) {\n String s = \"\";\n if (!c.getHasBoat() && !c.getShotAt()) {\n s = \"-\";\n } else if (!c.getHasBoat() && c.getShotAt()) {\n s = \"M\";\n } else if (c.getHasBoat() && !c.getShotAt()) {\n s = \"B\";\n } else {\n s = \"H\";\n }\n return s;\n }",
"private char getMappingCode(char c) {\n if (!Character.isLetter(c)) {\n return 0;\n } \n else {\n return soundexMapping[Character.toUpperCase(c) - 'A'];\n }\n }",
"protected String getChar(String asciiCode) {\n\t\tString result = null;\n\t\tif(asciiCode == null){\n\t\t\t//default\n\t\t\tresult = \"|\";\n\t\t}else if (asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tresult = String.valueOf(Character.toChars(Integer.valueOf(asciiCode\n\t\t\t\t\t.substring(1))));\n\t\t} else {\n\t\t\tresult = asciiCode;\n\t\t}\n\t\treturn result;\n\t}",
"private static void doLetter(byte letter,MorseAction morseAction) throws InterruptedException {\n Byte b= alphabet.get(new String(new byte[]{letter}));\n\n if (b!=null){\n int h=0,bv=b,i=8;\n while(h==0){\n i--;\n h=bv&masks[i];\n }\n i--;\n while(i>-1) {\n if (stop)\n return;\n h=bv&masks[i];\n morseAction.doAction(MorseAction.morseAction.LOUD);\n if (h==0)\n Thread.sleep(pointDelay);\n else\n Thread.sleep(traitDelay);\n morseAction.doAction(MorseAction.morseAction.SILENCE);\n Thread.sleep(betweenPointOrTraitDelay);\n\n i--;\n }\n }\n }",
"private String getLetterGrade(double score) {\n int i = (int) score;\n switch (i) {\n case 100:\n case 90:\n return \"A\";\n case 80:\n return \"B\";\n case 70:\n return \"C\";\n case 60:\n return \"D\";\n default:\n return \"F\";\n }\n }",
"public String toString(){\r\n\t\treturn \"\" + letter;\r\n\t}",
"char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}",
"public static char typeScore() \n {\n\n System.out.println(\"\\t Do you have (S)AT scores or (A)CT scores?\");\n String response = console.next();\n \n if(response.equalsIgnoreCase(\"S\"))\n {\n return Character.toUpperCase(response.charAt(0)); \n }\n else if(response.equalsIgnoreCase(\"A\"))\n {\n return Character.toUpperCase(response.charAt(0));\n }\n else\n {\n throw new IllegalArgumentException(\"Invalid score type. Must be S, s, A, or a.\");\n }\n }",
"public char getUserGuessedLetter() {\n return userGuessedLetter;\n }",
"public char getLetterGrade()\n\t{\n\t\tdouble grade;\n\t\t\n\t\tgrade = ((((((this.quiz1/QUIZ_MAX) + (this.quiz2/QUIZ_MAX) + (this.quiz3/QUIZ_MAX)) / 3) * QUIZ_WEIGHT) + ((this.midtermExam / MIDTERM_MAX) * MIDTERM_WEIGHT) + ((this.finalExam / FINAL_MAX) * FINAL_WEIGHT)) * 100);\n\t\t\n\t\tif (grade > 100 || grade < 0)\n\t\t{\n\t\t\tSystem.out.println(\"Not a valid grade\");\n\t\t}\n\t\telse if (grade >= 90)\n\t\t{\n\t\t\tfinalGrade = 'A';\n\t\t}\n\t\telse if (grade >= 80)\n\t\t{\n\t\t\tfinalGrade = 'B';\n\t\t}\n\t\telse if (grade >= 70)\n\t\t{\n\t\t\tfinalGrade = 'C';\n\t\t}\n\t\telse if (grade >= 60)\n\t\t{\n\t\t\tfinalGrade = 'D';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinalGrade = 'F';\n\t\t}\n\t\t\n\t\treturn finalGrade;\n\t\t\t\n\t\t}",
"public static char getZ() {\n char aChar = 'Y';\n return aChar;\n }",
"public char getKey(){ return key;}",
"private void getCharacterAction() {\n\t\tSystem.out.println(\"What should \" + getterman.getName() + \" do?\");\n\t\tSystem.out.println(\"F = Fight : H = Heal\");\n\t\t// Take the input as a String and convert to a Char\n\t\tgetterman.setAction(sc.nextLine().toUpperCase().charAt(0));\n\t\t\n\t\t// Get the action for setterman\n\t\tSystem.out.println(\"What should \" + setterman.getName() + \" do?\");\n\t\tSystem.out.println(\"F = Fight : H = Heal\");\n\t\t// Take the input as a String and convert to a char\n\t\tsetterman.setAction(sc.nextLine().toUpperCase().charAt(0));\n\t\t\n\t}",
"public char convertToCharacter(int letterThatIsNumber)\n\t{\n\t\treturn characters[letterThatIsNumber];\n\t}",
"public char getValue()\n\t{\n\t\treturn value;\n\t}",
"public char getRepresentative_letter(){\n\t\treturn representative_letter;\n\t}",
"R apply(char value);",
"public static int a(String name) {\n/* 80 */ String value = (String)a.get(name);\n/* 81 */ return (value != null) ? value.charAt(0) : -1;\n/* */ }",
"public char askForLetter() {\n\t\tchar guessLetter;\n\t\tboolean validInput = false;\n\t\twhile (validInput == false) {\n\t\t\tSystem.out.println(\"Enter a letter: \");\n\t\t\tString guessLine = keyboard.nextLine();\n\t\t\tif (guessLine.length() == 0 || guessLine.length() >= 2) {\n\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tguessLine = guessLine.toLowerCase();\n\t\t\t\tguessLetter = guessLine.charAt(0);\n\t\t\t\tif(guessLetter >= 'a' && guessLetter <= 'z') {\n\t\t\t\t\tSystem.out.println(\"You entered: \" + guessLetter);\n\t\t\t\t\tvalidInput = true;\n\t\t\t\t\treturn(guessLetter);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please insert a valid input\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn(' ');\n\t\t\n\t\t\n\t}",
"public static Special valueOf(char letter)\n {\n for (Special special : values())\n {\n if (special.getLetter() == letter)\n {\n return special;\n }\n }\n \n return null;\n }",
"public abstract char getStarterChar();",
"public int b(char paramChar)\r\n/* 714: */ {\r\n/* 715:706 */ return this.f[\"0123456789abcdef\".indexOf(paramChar)];\r\n/* 716: */ }",
"public String indexToLetter(int index) {\r\n\t\tif (index == 0)\r\n\t\t\treturn \"a\";\r\n\t\telse if (index == 1)\r\n\t\t\treturn \"b\";\r\n\t\telse if (index == 2)\r\n\t\t\treturn \"c\";\r\n\t\telse if (index == 3)\r\n\t\t\treturn \"d\";\r\n\t\telse if (index == 4)\r\n\t\t\treturn \"e\";\r\n\t\telse if (index == 5)\r\n\t\t\treturn \"f\";\r\n\t\telse if (index == 6)\r\n\t\t\treturn \"g\";\r\n\t\telse if (index == 7)\r\n\t\t\treturn \"h\";\r\n\t\telse if (index == 8)\r\n\t\t\treturn \"i\";\r\n\t\telse if (index == 9)\r\n\t\t\treturn \"j\";\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}",
"public static double letterToMultiplier(final char value) {\n\t\tfinal double multiplier;\n\t\tswitch (value) {\n\t\tcase 'Z':\n\t\t\tmultiplier = 0.001;\n\t\t\tbreak;\n\t\tcase 'Y':\n\t\tcase 'R':\n\t\t\tmultiplier = 0.01;\n\t\t\tbreak;\n\t\tcase 'X':\n\t\tcase 'S':\n\t\t\tmultiplier = 0.1;\n\t\t\tbreak;\n\t\tcase 'A':\n\t\t\tmultiplier = 1.0;\n\t\t\tbreak;\n\t\tcase 'B':\n\t\tcase 'H':\n\t\t\tmultiplier = 10.;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tmultiplier = 100.;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tmultiplier = 1000.;\n\t\t\tbreak;\n\t\tcase 'E':\n\t\t\tmultiplier = 10000.;\n\t\t\tbreak;\n\t\tcase 'F':\n\t\t\tmultiplier = 100000.;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// Unknown\n\t\t\tmultiplier = 0.0;\n\t\t\tbreak;\n\t\t}\n\t\treturn multiplier;\n\t}",
"public char getCharacter(boolean defender){\n if (defender){\n if (this.is_Empty()){\n return '~';\n }\n else if(this.is_shot()){\n return '*';\n }\n else{\n return 'B';\n }\n }\n else {\n if (!this.is_shot()){\n return '.';\n }\n else if (!this.is_Empty()){\n return '*';\n }\n else {\n return '~';\n }\n }\n }",
"public char getLevel(){\n if (this.score>=90){\n return 'A';\n }\n else if (this.score<90 && this.score>=80){\n return 'B';\n }\n else if (this.score<80 && this.score>=60){\n return 'C';\n }\n else {\n return 'D';\n }\n \n }",
"public String getSelectedLetters();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"String getValue();",
"char getSymbol();",
"public char Get() {\n\t\treturn myChar;\n\t}",
"public Tile getTile(Character letter) {\r\n int index;\r\n Tile returnedTile;\r\n if(isAvailable(letter)) {\r\n index = frame.indexOf(new Tile(letter));\r\n returnedTile = frame.get(index);\r\n }\r\n else //if we want to return blank instead of unavailable letter\r\n {\r\n index = frame.indexOf(new Tile('_'));\r\n returnedTile = frame.get(index);\r\n returnedTile.setBlankAs(letter);\r\n }\r\n return returnedTile;\r\n }",
"public static Integer SheetLetterToCol(String letter) {\n int loc_RetVal = 0;\n int loc_Val = 0;\n\n letter = letter.toUpperCase().trim();\n\n loc_RetVal = letter.charAt(letter.length() - 1) - 65;\n\n if (letter.length() > 1) {\n\n //loc_RetVal++;\n\n //A\n //AA\n //AB\n\n for (int loc_Conta = 1; loc_Conta < letter.length(); loc_Conta++) {\n\n loc_Val = letter.charAt((letter.length() - 1) - loc_Conta) - 64;\n\n loc_RetVal += loc_Val * (26 * (letter.length() - loc_Conta));\n\n }\n\n }\n\n return loc_RetVal;\n }",
"char getGrade(int score) {\n\t\t\n\t\tchar letterGrade;\n\t\t\n\t\tif(score>90) {\n\t\t\treturn 'A';\n\t\t}else if(score>80 && score<=90) {\n\t\t\treturn 'B';\n\t\t}else if(score>70 && score<=80) {\n\t\t\treturn 'C';\n\t\t}else if(score>50 && score<=70) {\n\t\t\treturn 'D';\n\t\t}else {\n\t\t\treturn 'F';\n\t\t}\n\t\t\n\t\n\t\t\n\t}",
"CharacterInfo getCharacter();",
"public String getLetter() {\n\t\tString letter;\n\t\tletter = JOptionPane.showInputDialog(getFrame(), \"Enter the name of the Node,then press anywhere on the screen to locate the Node\");\n\t\twhile(letter==null || letter.equals(\"\")){\n\t\t\tletter = JOptionPane.showInputDialog(getFrame(), \"Enter the name of the Node,then press anywhere on the screen to locate the Node\");\n\t\t\t\n\t\t}\n\t\t\n\t\treturn letter.toUpperCase();\n\t}",
"public char getValue() {\n return value;\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Please type in a letter :\");\n\t\t\n\t\tString x = input.nextLine();\n\t\t\n\t\tSystem.out.println(\" The numerical value of \" + x + \" is \" + alphabet(x));\n\t\t\n\t}",
"public char calculate() {\n int average = average();\n\n if (average >= 90) {\n return Grade.O;\n } else if (average >= 80) {\n return Grade.E;\n } else if (average >= 70) {\n return Grade.A;\n } else if (average >= 55) {\n return Grade.P;\n } else if (average >= 40) {\n return Grade.D;\n } else {\n return Grade.T;\n }\n }",
"public int letter2index(char c) { \t\n \treturn (int)(c - 'A')%26 ;\n }",
"public static char getKeyCharacter()\n {\n \n //Prompts and reads the key character in String\n final int MINIMUM_LENGTH = 0, MAXIMUM_LENGTH = 1;\n Scanner key = new Scanner(System.in);\n System.out.print(\"Please enter a single character to act as a key: \");\n String fh = key.nextLine();\n \n //Checks for key character length and loops for proper input\n while (fh.length() == MINIMUM_LENGTH|| fh.length() > MAXIMUM_LENGTH)\n {\t\n System.out.print(\"Please enter a single character to act as a key: \");\n fh = key.nextLine();\n }\n \n //Converts String to char\n char gKC = fh.charAt(0);\n return gKC;\n }",
"public int letterToIndex(char letter) {\r\n\t\tif (Character.toLowerCase(letter) == 'a')\r\n\t\t\treturn 0;\r\n\t\telse if (Character.toLowerCase(letter) == 'b')\r\n\t\t\treturn 1;\r\n\t\telse if (Character.toLowerCase(letter) == 'c')\r\n\t\t\treturn 2;\r\n\t\telse if (Character.toLowerCase(letter) == 'd')\r\n\t\t\treturn 3;\r\n\t\telse if (Character.toLowerCase(letter) == 'e')\r\n\t\t\treturn 4;\r\n\t\telse if (Character.toLowerCase(letter) == 'f')\r\n\t\t\treturn 5;\r\n\t\telse if (Character.toLowerCase(letter) == 'g')\r\n\t\t\treturn 6;\r\n\t\telse if (Character.toLowerCase(letter) == 'h')\r\n\t\t\treturn 7;\r\n\t\telse if (Character.toLowerCase(letter) == 'i')\r\n\t\t\treturn 8;\r\n\t\telse if (Character.toLowerCase(letter) == 'j')\r\n\t\t\treturn 9;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}",
"public char intToLetter(int val){\n\t\t\t// val is assumed to be an integer < MAXUINT so its unsigned value is the same\n\t\t\t// as the signed representation so we don't need to do any conversion.\n\t\t\treturn ALPHABET[val];\n\t\t}",
"int getAlpha(){\n return getPercentageValue(\"alpha\"); \n }",
"int getUpper();",
"private static void task41() {\n System.out.println(\"Enter character: \");\n char ch = scanStr().charAt(0);\n\n System.out.println(\"ASCII value of \" + ch + \" is \" + (int)ch);\n }",
"char getKeyPressChar();",
"public static char getRandomLowerCaseLetter(){\n\t\treturn getRandomCharacter('a','z');\n\t}",
"public int getCharacter() {\n return getStat(character);\n }",
"private int getValueFromBase64Alphabet(char character)\r\n {\r\n if (character >= 'A' && character <= 'Z')\r\n {\r\n return character - 'A';\r\n }\r\n if (character >= 'a' && character <= 'z')\r\n {\r\n return character - 'a' + 26;\r\n }\r\n if (character >= '0' && character <= '9')\r\n {\r\n return character - '0' + 52;\r\n }\r\n if (character == '+')\r\n {\r\n return 62;\r\n }\r\n if (character == '/')\r\n {\r\n return 63;\r\n }\r\n if (character == '=')\r\n {\r\n return 0;\r\n }\r\n return -1;\r\n }",
"public static char letterGrade(Integer average)\n {\n switch (average / 10)\n {\n case 10: case 9:\n return 'A';\n case 8:\n return 'B';\n case 7:\n return 'C';\n case 6:\n return 'D';\n default:\n return 'F';\n }\n }",
"int getIndex(Character c)\n{\n int a = Character.getNumericValue('a');\n int z = Character.getNumericValue('z');\n int val = Character.getNumericValue(c);\n \n if (a <= val && val <= z) return val - a;\n return -1;\n}",
"public static char randomLetter(){\n\t\t//char A-Z\n\t\tint r1 = (int) (Math.random()*26+65);\n\n\t\t//char a-z\n\t\tint r2 = (int) (Math.random()*26+97);\n\n\t\t//choose one of the two\n\t\tif(Math.random() < 0.5)\n\t\t\treturn (char) r1;\n\t\treturn (char) r2;\n\t}",
"public static StatutCivilEnum randomLetter() {\n return VALUES.get(RANDOM.nextInt(SIZE));\n }",
"private int getUseOfLetter(String word) {\n int result = 0;\n for (int i = 0; i < word.length(); i++) {\n result |= tables[word.charAt(i)];\n }\n return result;\n }",
"char getGrade(int score) {\n\tchar grade;\n\tif(score>90) {\n\t\tgrade='A';\n\t}else if (score>80) {\n\t\t\tgrade='B';\n\t}else if(score>70) {\n\t\t\t\tgrade='C';\n\t}else if(score>50) {\n\t\tgrade='D';\n\t}else {\n\t\tgrade='F';\n\t}\n\treturn grade;\n\t\t\t\t\n\t\t\t}",
"static int getIdx(char ch)\n {\n return (ch - 'a');\n }",
"private static void chooseLetter()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Choose a letter :: X or O : \");\n userLetter = scanner.next().toUpperCase().charAt(0);\n computerLetter = (userLetter == 'X') ? 'O' : 'X';\n }",
"public char getSuit(){\n\t\treturn this.farge;\n\t}",
"private static int find_value(String b)\n {\n int store = 0;\n List<String> name = new ArrayList<String>(library.return_name());\n //System.out.println(name);\n for(int x = 0; x < name.size(); x++)\n {\n if(name.get(x).charAt(0) == b.charAt(0))\n store = x;\n }\n List<Integer> value = new ArrayList<Integer>(library.return_value());\n return value.get(store);\n }"
] | [
"0.6715979",
"0.6702214",
"0.66882616",
"0.66550356",
"0.66427976",
"0.66316885",
"0.6593994",
"0.6569289",
"0.6534666",
"0.64779276",
"0.64656746",
"0.6458851",
"0.64331496",
"0.6402616",
"0.6363027",
"0.63328934",
"0.6327007",
"0.6325596",
"0.6308495",
"0.6306343",
"0.62731117",
"0.62370116",
"0.62335104",
"0.62302613",
"0.6218293",
"0.6217263",
"0.620052",
"0.6200001",
"0.618267",
"0.61732566",
"0.61409897",
"0.61393327",
"0.6137389",
"0.6106565",
"0.6085354",
"0.6076214",
"0.60698885",
"0.6065122",
"0.60571164",
"0.6056949",
"0.60536885",
"0.6038224",
"0.60375875",
"0.602406",
"0.6002763",
"0.5989015",
"0.5982228",
"0.5969257",
"0.5968261",
"0.59673816",
"0.59578735",
"0.59559846",
"0.59535843",
"0.5951697",
"0.59381443",
"0.593595",
"0.5933558",
"0.59329563",
"0.5930524",
"0.5927408",
"0.5927408",
"0.5927408",
"0.5927408",
"0.5927408",
"0.5927408",
"0.5927408",
"0.5927408",
"0.5927408",
"0.5927408",
"0.59222555",
"0.5922128",
"0.59057677",
"0.5890378",
"0.58882284",
"0.5884478",
"0.588125",
"0.587992",
"0.5860954",
"0.5848588",
"0.58459896",
"0.5839026",
"0.58338183",
"0.58337337",
"0.58146316",
"0.5807759",
"0.57953435",
"0.57952094",
"0.5794079",
"0.5793042",
"0.5791733",
"0.57913977",
"0.5783749",
"0.5783264",
"0.57822156",
"0.5767826",
"0.5763874",
"0.5763649",
"0.57609415",
"0.5760205",
"0.57579976"
] | 0.7408698 | 0 |
note that we can't call 'new Guns(code)' because enum can't be instantiated | public static Guns getByCode(int code) {
switch (code){
case 0:
return RIFLE;
case 1:
return SHOTGUN;
case 2:
return REVOLVER;
default:
throw new IllegalArgumentException("Invalid gun code");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getGunType();",
"EnumValue createEnumValue();",
"EnumValue createEnumValue();",
"EnumValue createEnumValue();",
"CommandEnum() {}",
"public interface CodeEnum {\n int getCode();\n}",
"public interface CodeEnum {\n Integer getCode();\n}",
"public interface CodeEnum {\n\n Integer getCode();\n}",
"public interface CodeEnum {\n Integer getCode();\n\n String getMeaning();\n}",
"public Classification codeOf(Object code) {\n throw new IllegalStateException(\"Unknown definition: \" + this); // basically unreachable\n }",
"public Builder setGunType(int value) {\n \n gunType_ = value;\n onChanged();\n return this;\n }",
"public interface GI\n{\n public static final class CONNSTATUS extends Enum\n {\n\n private static final CONNSTATUS $VALUES[];\n public static final CONNSTATUS CONNECTING;\n public static final CONNSTATUS OFFLINE;\n public static final CONNSTATUS ONLINE;\n public static final CONNSTATUS PAUSING;\n public static final CONNSTATUS WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static CONNSTATUS fromInt(int i)\n {\n CONNSTATUS connstatus = (CONNSTATUS)intToTypeMap.a(i);\n if (connstatus != null)\n {\n return connstatus;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static CONNSTATUS valueOf(String s)\n {\n return (CONNSTATUS)Enum.valueOf(com/skype/GI$CONNSTATUS, s);\n }\n\n public static CONNSTATUS[] values()\n {\n return (CONNSTATUS[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n OFFLINE = new CONNSTATUS(\"OFFLINE\", 0, 0);\n CONNECTING = new CONNSTATUS(\"CONNECTING\", 1, 1);\n PAUSING = new CONNSTATUS(\"PAUSING\", 2, 2);\n ONLINE = new CONNSTATUS(\"ONLINE\", 3, 3);\n WRAPPER_UNKNOWN_VALUE = new CONNSTATUS(\"WRAPPER_UNKNOWN_VALUE\", 4, 0x7fffffff);\n $VALUES = (new CONNSTATUS[] {\n OFFLINE, CONNECTING, PAUSING, ONLINE, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n CONNSTATUS aconnstatus[] = values();\n int k = aconnstatus.length;\n for (int i = 0; i < k; i++)\n {\n CONNSTATUS connstatus = aconnstatus[i];\n intToTypeMap.a(connstatus.value, connstatus);\n }\n\n }\n\n private CONNSTATUS(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class FILEERROR extends Enum\n {\n\n private static final FILEERROR $VALUES[];\n public static final FILEERROR CREATE_ERROR;\n public static final FILEERROR DISK_FULL;\n public static final FILEERROR NO_FILEERROR;\n public static final FILEERROR OPEN_ERROR;\n public static final FILEERROR READ_ERROR;\n public static final FILEERROR WRAPPER_UNKNOWN_VALUE;\n public static final FILEERROR WRITE_ERROR;\n private static final j intToTypeMap;\n private final int value;\n\n public static FILEERROR fromInt(int i)\n {\n FILEERROR fileerror = (FILEERROR)intToTypeMap.a(i);\n if (fileerror != null)\n {\n return fileerror;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static FILEERROR valueOf(String s)\n {\n return (FILEERROR)Enum.valueOf(com/skype/GI$FILEERROR, s);\n }\n\n public static FILEERROR[] values()\n {\n return (FILEERROR[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n NO_FILEERROR = new FILEERROR(\"NO_FILEERROR\", 0, 0);\n DISK_FULL = new FILEERROR(\"DISK_FULL\", 1, 1);\n CREATE_ERROR = new FILEERROR(\"CREATE_ERROR\", 2, 2);\n OPEN_ERROR = new FILEERROR(\"OPEN_ERROR\", 3, 3);\n READ_ERROR = new FILEERROR(\"READ_ERROR\", 4, 4);\n WRITE_ERROR = new FILEERROR(\"WRITE_ERROR\", 5, 5);\n WRAPPER_UNKNOWN_VALUE = new FILEERROR(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new FILEERROR[] {\n NO_FILEERROR, DISK_FULL, CREATE_ERROR, OPEN_ERROR, READ_ERROR, WRITE_ERROR, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n FILEERROR afileerror[] = values();\n int k = afileerror.length;\n for (int i = 0; i < k; i++)\n {\n FILEERROR fileerror = afileerror[i];\n intToTypeMap.a(fileerror.value, fileerror);\n }\n\n }\n\n private FILEERROR(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static interface GIIListener\n {\n\n public abstract void onConnStatusChange(GI gi, CONNSTATUS connstatus);\n\n public abstract void onFileError(GI gi, FILEERROR fileerror);\n\n public abstract void onLibStatusChange(GI gi, LIBSTATUS libstatus);\n\n public abstract void onNodeinfoChange(GI gi, byte abyte0[]);\n\n public abstract void onProxyAuthenticationFailure(GI gi, PROXYTYPE proxytype);\n }\n\n public static class GetLastFileError_Result\n {\n\n public String m_filename;\n public int m_lowlevelCode;\n public FILEERROR m_return;\n\n public void init(int i, byte abyte0[], FILEERROR fileerror)\n {\n m_lowlevelCode = i;\n m_filename = NativeStringConvert.ConvertFromNativeBytes(abyte0);\n m_return = fileerror;\n }\n\n public GetLastFileError_Result()\n {\n }\n }\n\n public static final class LIBSTATUS extends Enum\n {\n\n private static final LIBSTATUS $VALUES[];\n public static final LIBSTATUS CONSTRUCTED;\n public static final LIBSTATUS FATAL_ERROR;\n public static final LIBSTATUS RUNNING;\n public static final LIBSTATUS STARTING;\n public static final LIBSTATUS STOPPED;\n public static final LIBSTATUS STOPPING;\n public static final LIBSTATUS WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static LIBSTATUS fromInt(int i)\n {\n LIBSTATUS libstatus = (LIBSTATUS)intToTypeMap.a(i);\n if (libstatus != null)\n {\n return libstatus;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static LIBSTATUS valueOf(String s)\n {\n return (LIBSTATUS)Enum.valueOf(com/skype/GI$LIBSTATUS, s);\n }\n\n public static LIBSTATUS[] values()\n {\n return (LIBSTATUS[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n CONSTRUCTED = new LIBSTATUS(\"CONSTRUCTED\", 0, 0);\n STARTING = new LIBSTATUS(\"STARTING\", 1, 1);\n RUNNING = new LIBSTATUS(\"RUNNING\", 2, 2);\n STOPPING = new LIBSTATUS(\"STOPPING\", 3, 3);\n STOPPED = new LIBSTATUS(\"STOPPED\", 4, 4);\n FATAL_ERROR = new LIBSTATUS(\"FATAL_ERROR\", 5, 5);\n WRAPPER_UNKNOWN_VALUE = new LIBSTATUS(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new LIBSTATUS[] {\n CONSTRUCTED, STARTING, RUNNING, STOPPING, STOPPED, FATAL_ERROR, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n LIBSTATUS alibstatus[] = values();\n int k = alibstatus.length;\n for (int i = 0; i < k; i++)\n {\n LIBSTATUS libstatus = alibstatus[i];\n intToTypeMap.a(libstatus.value, libstatus);\n }\n\n }\n\n private LIBSTATUS(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class NETWORKACTIVITYLEVEL extends Enum\n {\n\n private static final NETWORKACTIVITYLEVEL $VALUES[];\n public static final NETWORKACTIVITYLEVEL NAL_FIRST_QUIET_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_LAST_LEVEL_DONT_USE;\n public static final NETWORKACTIVITYLEVEL NAL_NORMAL_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_SUSPENDED_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_SUSPENDED_OFFLINE_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_WITH_NETWORK_LEVEL;\n public static final NETWORKACTIVITYLEVEL WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static NETWORKACTIVITYLEVEL fromInt(int i)\n {\n NETWORKACTIVITYLEVEL networkactivitylevel = (NETWORKACTIVITYLEVEL)intToTypeMap.a(i);\n if (networkactivitylevel != null)\n {\n return networkactivitylevel;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static NETWORKACTIVITYLEVEL valueOf(String s)\n {\n return (NETWORKACTIVITYLEVEL)Enum.valueOf(com/skype/GI$NETWORKACTIVITYLEVEL, s);\n }\n\n public static NETWORKACTIVITYLEVEL[] values()\n {\n return (NETWORKACTIVITYLEVEL[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n NAL_NORMAL_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_NORMAL_LEVEL\", 0, 3);\n NAL_FIRST_QUIET_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_FIRST_QUIET_LEVEL\", 1, 7);\n NAL_QUIET_WITH_NETWORK_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_WITH_NETWORK_LEVEL\", 2, 7);\n NAL_QUIET_SUSPENDED_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_SUSPENDED_LEVEL\", 3, 8);\n NAL_QUIET_SUSPENDED_OFFLINE_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_SUSPENDED_OFFLINE_LEVEL\", 4, 9);\n NAL_LAST_LEVEL_DONT_USE = new NETWORKACTIVITYLEVEL(\"NAL_LAST_LEVEL_DONT_USE\", 5, 10);\n WRAPPER_UNKNOWN_VALUE = new NETWORKACTIVITYLEVEL(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new NETWORKACTIVITYLEVEL[] {\n NAL_NORMAL_LEVEL, NAL_FIRST_QUIET_LEVEL, NAL_QUIET_WITH_NETWORK_LEVEL, NAL_QUIET_SUSPENDED_LEVEL, NAL_QUIET_SUSPENDED_OFFLINE_LEVEL, NAL_LAST_LEVEL_DONT_USE, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n NETWORKACTIVITYLEVEL anetworkactivitylevel[] = values();\n int k = anetworkactivitylevel.length;\n for (int i = 0; i < k; i++)\n {\n NETWORKACTIVITYLEVEL networkactivitylevel = anetworkactivitylevel[i];\n intToTypeMap.a(networkactivitylevel.value, networkactivitylevel);\n }\n\n }\n\n private NETWORKACTIVITYLEVEL(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class PROXYTYPE extends Enum\n {\n\n private static final PROXYTYPE $VALUES[];\n public static final PROXYTYPE HTTPS_PROXY;\n public static final PROXYTYPE SOCKS_PROXY;\n public static final PROXYTYPE WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static PROXYTYPE fromInt(int i)\n {\n PROXYTYPE proxytype = (PROXYTYPE)intToTypeMap.a(i);\n if (proxytype != null)\n {\n return proxytype;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static PROXYTYPE valueOf(String s)\n {\n return (PROXYTYPE)Enum.valueOf(com/skype/GI$PROXYTYPE, s);\n }\n\n public static PROXYTYPE[] values()\n {\n return (PROXYTYPE[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n HTTPS_PROXY = new PROXYTYPE(\"HTTPS_PROXY\", 0, 0);\n SOCKS_PROXY = new PROXYTYPE(\"SOCKS_PROXY\", 1, 1);\n WRAPPER_UNKNOWN_VALUE = new PROXYTYPE(\"WRAPPER_UNKNOWN_VALUE\", 2, 0x7fffffff);\n $VALUES = (new PROXYTYPE[] {\n HTTPS_PROXY, SOCKS_PROXY, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n PROXYTYPE aproxytype[] = values();\n int k = aproxytype.length;\n for (int i = 0; i < k; i++)\n {\n PROXYTYPE proxytype = aproxytype[i];\n intToTypeMap.a(proxytype.value, proxytype);\n }\n\n }\n\n private PROXYTYPE(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n\n public abstract void addListener(GIIListener giilistener);\n\n public abstract void connect();\n\n public abstract void disconnect();\n\n public abstract CONNSTATUS getConnStatus();\n\n public abstract String getDebugInfo();\n\n public abstract String getFatalErrorMessage();\n\n public abstract GetLastFileError_Result getLastFileError();\n\n public abstract LIBSTATUS getLibStatus();\n\n public abstract Setup getSetup();\n\n public abstract int getUsedPort();\n\n public abstract void log(String s, String s1);\n\n public abstract void pollEvents();\n\n public abstract void pollEvents(int i);\n\n public abstract void removeListener(GIIListener giilistener);\n\n public abstract void setDefaultPeers(String s);\n\n public abstract void setSystemID(long l);\n}",
"CodeType createCodeType();",
"void createGameCode(GameCode gameCode);",
"private EnumCreatureType(Class<?> paramClass, int paramInt, Material parambof, boolean paramBoolean1, boolean isAnimal)\r\n/* 10: */ {\r\n/* 11:29 */ this.e = paramClass;\r\n/* 12:30 */ this.f = paramInt;\r\n/* 13:31 */ this.g = parambof;\r\n/* 14:32 */ this.isPeaceful = paramBoolean1;\r\n/* 15:33 */ this.isAnimal = isAnimal;\r\n/* 16: */ }",
"ItemType(String code) {\n this.code = code;\n }",
"ItemType(String code) {\n this.code = code;\n }",
"public int getGunType() {\n return gunType_;\n }",
"public Enum() \n { \n set(\"\");\n }",
"protected GEDCOMType() {/* intentionally empty block */}",
"EnumConstant createEnumConstant();",
"public interface KmipEnum {\n\n String name();\n\n Long getValue();\n}",
"EnumType(String p_i45705_1_, int p_i45705_2_, int p_i45705_3_, String p_i45705_4_, String p_i45705_5_) {\n/* */ this.field_176893_h = p_i45705_3_;\n/* */ this.field_176894_i = p_i45705_4_;\n/* */ this.field_176891_j = p_i45705_5_;\n/* */ }",
"EnumRef createEnumRef();",
"EEnum createEEnum();",
"public RightsManagementFailureCode(java.lang.Object instance) {\n super(instance);\n if (instance instanceof JCObject) {\n try {\n String enumName = NetEnum.GetName(classType, (JCObject)instance);\n classInstance = enumReflected.fromValue(enumName);\n } catch (Throwable t) {\n JCOReflector.writeLog(t);\n classInstance = enumReflected;\n }\n } else if (instance instanceof JCEnum) {\n classInstance = (JCEnum)instance;\n }\n }",
"public static void main(String[] args)\n\t {\n\t \n\t \n\t\t Enums en = Enums.B; //All enum constants are created while executing this statement. \n\t\t \n\t //While creating each enum constant, corresponding constructor is called\n\t \n\t Enums en2 = Enums.C; //No enum constant is created here.\n\t \n\t Enums en3 = Enums.A; //No enum constant is created here.\n\t \n\t \n}",
"public int getGunType() {\n return gunType_;\n }",
"Enum getType();",
"@Test\n public void getAction() {\n Card dealerCard = new CardClassAdapter(RankEnum.NINE, SuitEnum.DIAMONDS);\n\n PlayerActionEnum actionEnum1 = PlayerActionEnum.STAND;\n State55 instance = State55.getInstance();\n assertEquals(\"STAND\", actionEnum1, instance.getAction(dealerCard));\n\n }",
"public CustomMof14EnumLiteral createCustomMof14EnumLiteral();",
"public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }",
"EnumTypeDefinition createEnumTypeDefinition();",
"public Code() {\n\t}",
"abstract public Hamburger creatHamburger(String type);",
"private static Weapon randomWeapon() {\r\n Random rand = new Random();\r\n int weaponType = rand.nextInt(7);\r\n switch (weaponType) {\r\n case 0: \r\n return new FryingPan();\r\n case 1:\r\n return new SubmachineGun();\r\n case 2:\r\n return new AssaultRifle();\r\n case 3:\r\n return new Pistol();\r\n case 4:\r\n return new Axe();\r\n case 5:\r\n return new Crowbar();\r\n default:\r\n return new Shotgun();\r\n }\r\n }",
"CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }",
"public static AttackTypeEnum get(final String code) {\r\n return ATTACK_TYPES.get(code);\r\n }",
"public Enum(String val) \n { \n set(val);\n }",
"private Enums(int i)\n\t {\n\t System.out.println(2);\n\t }",
"private LanguagesEnum(Integer languagesEnumValue)\r\n\t{\r\n\r\n\t\tlanguagesEnum = languagesEnumValue;\r\n\r\n\t}",
"public void testEnum() {\n assertNotNull(MazeCell.valueOf(MazeCell.UNEXPLORED.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.INVALID_CELL.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.CURRENT_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.FAILED_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.WALL.toString()));\n }",
"public static void main(String[] args) throws ClassNotFoundException {\n\t\t\t\tint count = 0;\n\t\t\t\tClass c = Class.forName(\"java.lang.Enum\");\n\t\t\t\tMethod[] m1 = c.getDeclaredMethods();\n\t\t\t\tSystem.out.println(\"Method's name:\");\n\t\t\t\tfor(Method m2:m1){\n\t\t\t\t\tcount++;\n\t\t\t\t\tSystem.out.println(m2.getName()+\"()\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"The number of method: \"+count);\n\t\t\t\t\n\t\t// clone()\n\t\tSystem.out.println(\"Enum can never be cloned...\");\n\t\t\n\t\tEnumDemo0 t = new EnumDemo0(){\n\t\t\t\n\t\t\tprotected final Object clone() throws CloneNotSupportedException{\n\t\t\t\tthrow new CloneNotSupportedException();\n\t\t\t}\n\t\t};\n\t\t\n\t\tSystem.out.println(\"CellPhone List:\");\n\t\tfor(Mobile m : Mobile.values()){\n\t\t\tSystem.out.println(m+\" costs \"+m.showPrice()+\" dollars\");\n\t\t}\n\t}",
"ItemType(String itemCode) {\n code = itemCode;\n }",
"public Badge (int badgeCode, int level, String levelUnits, int coinValue)\n {\n this.badgeCode = badgeCode;\n this.level = level;\n this.levelUnits = levelUnits;\n this.coinValue = coinValue;\n }",
"Enumeration createEnumeration();",
"private Enums(String s, int j)\n\t {\n\t System.out.println(3);\n\t }",
"public Type setCode(BoundCodeDt<DataTypeEnum> theValue) {\n\t\tmyCode = theValue;\n\t\treturn this;\n\t}",
"public Glow() {}",
"public GameType(String name)\n\t\t{\n\t\t\tgame_name = name;\n\t\t}",
"public String convertCodeToGender(String code) {\n HashMap<String,String> defalut = new HashMap<String,String>();\n defalut.put(\"column_name\",\"gender\");\n defalut.put(\"enum_code\", code );\n defalut.put(\"table_name\",\"P_CommunityMembers\");\n //get gender\n HashMap<Integer, HashMap<String, String>> data =\n dbController.getFromEnum(defalut);\n\n //teturn gender type as a string\n for (Map.Entry<Integer,HashMap<String,String>> objs : data.entrySet()){\n HashMap<String,String> obj = objs.getValue();\n return obj.get(\"enum_value\");\n }\n return null;\n }",
"public Gun() {\n\t\tgunName = \"pistol\";\n\t\tammo = 7;\n\t\taccuracy = 7;\n\t}",
"public static void newGame(GameType t) {\n\t\ttype = t;\n\t}",
"interface GAAllele {\r\n interface Type {\r\n int ENUMERATED = 1;\r\n int BOUNDED = 2;\r\n int DISCRETIZED = 3;\r\n }\r\n\r\n interface BoundType {\r\n int NONE = 0;\r\n int INCLUSIVE = 1;\r\n int EXCLUSIVE = 2;\r\n }\r\n}",
"private FunctionEnum(String value) {\n\t\tthis.value = value;\n\t}",
"EnumLiteralExp createEnumLiteralExp();",
"@Unreachable\n private Enums()\n {\n // Empty default ctor, defined to override access scope.\n }",
"public Type setCode(DataTypeEnum theValue) {\n\t\tgetCodeElement().setValueAsEnum(theValue);\n\t\treturn this;\n\t}",
"EnumTypeRule createEnumTypeRule();",
"private CommonEnum(int value) {\n\t\tthis.value = value;\n\t}",
"GameCode getGameCode(String gameCode);",
"public static void main(String[] args) {\n Animal animal = Animal.DOG;\n\n switch (animal) {\n // Enhanced switch that do not require break to break.\n case DOG -> System.out.println(\"Dog\");\n case CAT -> System.out.println(\"Cat\");\n case MOUSE -> System.out.println(\"Mouse\");\n }\n\n System.out.println(Animal.CAT.getClass());\n\n System.out.println(Animal.DOG instanceof Animal);\n\n System.out.println(Animal.DOG instanceof Enum); // Enum is ultimate parent\n\n System.out.println(Animal.CAT.getName()); // Tom\n // method to get enum name as a string (like \"DOG\")\n System.out.println(Animal.MOUSE.name()); // MOUSE\n // reverse of the above (get string as enum name)\n System.out.println(Animal.valueOf(\"DOG\")); //\n }",
"public static void main(String[] args) throws Exception {\n testEnum();\r\n }",
"private TypeCode() {}",
"public static RequirementType create(String name) {\n throw new IllegalStateException(\"Enum not extended\");\n }",
"public interface CustomMof14EnumLiteralClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * @return The created instance object.\n */\n public CustomMof14EnumLiteral createCustomMof14EnumLiteral();\n}",
"private Token(int code)\n {\n myCode = code;\n }",
"EEnumLiteral createEEnumLiteral();",
"<C, EL> EnumLiteralExp<C, EL> createEnumLiteralExp();",
"public void setCode(org.openarchives.www.oai._2_0.OAIPMHerrorcodeType.Enum code)\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(CODE$0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CODE$0);\n }\n target.setEnumValue(code);\n }\n }",
"private SheetTraitEnum(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}",
"public EnumFactory() {\n countKeys = new int[EnumFactory.numberOfTypes];\n clearCounts();\n }",
"Code getCode();",
"void visitEnumValue(EnumValue value);",
"@Override\r\n\tpublic void visit(EnumDefinition enumDefinition) {\n\r\n\t}",
"private HouseholdSmokingStatus ( final int code ) {\n this.code = code;\n }",
"public BizCodeEnum getCode() {\n return code;\n }",
"private CountryCodeEnum(String description, String code) {\r\n this.description = description;\r\n this.code = code;\r\n }",
"private EnumApple(String desc){\n\t\tdescription = desc;\n\t}",
"public final Builder type(Enum... flags) {\n return type(EnumValue.create(flags));\n }",
"public FruitStand() {}",
"protected EnumSyntax[] getEnumValueTable() {\n/* 206 */ return (EnumSyntax[])myEnumValueTable;\n/* */ }",
"public EnumData(int value) {\n this.value = value;\n }",
"public GameState() {}",
"public TypeCode(String code) {\n this.code = code;\n }",
"private ModalityState(int value) { this.value = value; }",
"EnumListValue createEnumListValue();",
"GLStateType getType();",
"private EnumButton(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }",
"public Human(int theShipType){\n super(theShipType);\n }",
"StateType createStateType();",
"public abstract int code();",
"public Grain(String name) {\n super(name);\n }",
"public static EnumType func_176879_a(int p_176879_0_) {\n/* */ if (p_176879_0_ < 0 || p_176879_0_ >= field_176885_g.length) {\n/* */ p_176879_0_ = 0;\n/* */ }\n/* */ return field_176885_g[p_176879_0_];\n/* */ }",
"public Code()\n\t{\n\t\tbits = new ArrayList<Boolean>();\n\t}",
"public Wand() {\n damage = 5;\n damageType = \"Magic\";\n }",
"private FamilyStatusType(String legacyLabel) {\n this.legacyLabel = legacyLabel;\n }",
"private static <T extends Enum<T>> FlagIO<T> forClass( Class<T> clazz ) {\n\t @SuppressWarnings(\"unchecked\")\n\t FlagIO<T> parser = (FlagIO<T>) parsers.get( clazz );\n\t if( parser == null ) {\n\t parsers.put( clazz, parser = new FlagIO<T>( clazz ));\n\t }\n\t return parser;\n\t}",
"public interface SubsystemEnum {\n\n SubsystemBase getSubsystem();\n\n}"
] | [
"0.597819",
"0.5926889",
"0.5926889",
"0.5926889",
"0.59195983",
"0.5891851",
"0.5837206",
"0.5832469",
"0.5788721",
"0.5780436",
"0.57726693",
"0.5720042",
"0.56357557",
"0.562155",
"0.55755705",
"0.5563185",
"0.5563185",
"0.5485664",
"0.5483217",
"0.5480538",
"0.5478481",
"0.5466106",
"0.5460807",
"0.54546005",
"0.54544026",
"0.54464114",
"0.54407024",
"0.5411618",
"0.5371147",
"0.5364419",
"0.5347741",
"0.53470206",
"0.5346289",
"0.5346275",
"0.53278387",
"0.5317724",
"0.5291807",
"0.52792877",
"0.5255419",
"0.5248372",
"0.5244425",
"0.52359205",
"0.5231081",
"0.5223368",
"0.52133876",
"0.52109176",
"0.51920485",
"0.51902086",
"0.5182378",
"0.5176869",
"0.5175187",
"0.5175157",
"0.5174605",
"0.5170792",
"0.51656204",
"0.5154953",
"0.51461333",
"0.51413256",
"0.5141202",
"0.5133894",
"0.51327085",
"0.5132553",
"0.51307875",
"0.5117524",
"0.51080513",
"0.51041704",
"0.5100667",
"0.50953764",
"0.50842106",
"0.50811094",
"0.50737256",
"0.50723803",
"0.50670683",
"0.50656",
"0.5063701",
"0.5060017",
"0.5055127",
"0.5052268",
"0.50511825",
"0.5043386",
"0.504164",
"0.5040898",
"0.50382376",
"0.50357676",
"0.5032475",
"0.5022054",
"0.5013628",
"0.50117683",
"0.50096667",
"0.5009146",
"0.5005061",
"0.5001391",
"0.49988687",
"0.49838042",
"0.49823996",
"0.4979588",
"0.49762022",
"0.49739674",
"0.49707776",
"0.49636215"
] | 0.7099625 | 0 |
Implementations are used to wrap credentials (private key and certificate) in various formats. Methods allow for converting the wrapped credentials into the format usable by the Java API. | public interface X509Credential
{
/**
* Returns the credential in a keystore.
* @return the KeyStore
*/
public KeyStore getKeyStore();
/**
* Returns a KeyManager which accompanies the KeyStore.
* @return the KeyManager
*/
public X509ExtendedKeyManager getKeyManager();
/**
* Returns a password which can be used to obtain PrivateKey entry
* from the KeyStore returned by the {@link #getKeyStore()} method,
* with the alias returned by the {@link #getKeyAlias()} method.
* @return key password
*/
public char[] getKeyPassword();
/**
* Returns an alias which can be used to obtain the PrivateKey entry
* from the KeyStore returned by the {@link #getKeyStore()} method.
* @return key alias
*/
public String getKeyAlias();
/**
* Helper method to get private key from the underlying keystore
* @return private key
*/
public PrivateKey getKey();
/**
* Helper method to get certificate from the underlying keystore
* @return certificate
*/
public X509Certificate getCertificate();
/**
* Helper method to get certificate chain from the underlying keystore
* @return certificate chain
*/
public X509Certificate[] getCertificateChain();
/**
* @return RFC 2253 distinguished name of the certificate subject
* @since 1.1.0
*/
public String getSubjectName();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static interface Credentials extends Serializable {\n\t\tpublic String getUserName();\n\t\t/**\n\t\t* The password is encrypted.\n\t\t*/\n\t\tpublic String getPassword();\n\t}",
"java.lang.String getCred();",
"public String getCredentials();",
"protected static Credentials getServiceCredentials() throws AnaplanAPIException {\n if (authType == AUTH_TYPE.CERT) {\n try {\n return new Credentials(getCertificate(), getPrivateKey());\n } catch (Exception e) {\n throw new AnaplanAPIException(\"Could not initialise service credentials\", e);\n }\n } else if (authType == AUTH_TYPE.OAUTH) {\n return new Credentials(clientId);\n }\n return new Credentials(getUsername(), getPassphrase());\n }",
"public Object encryptedCredential() {\n return this.encryptedCredential;\n }",
"@Override\n\tpublic Object getCredentials() {\n\t\treturn credentials;\n\t}",
"public Object credentials() {\n return cred;\n }",
"GoogleAuthenticatorKey createCredentials();",
"public interface CredentialConnector {\n\n /**\n * Check whether the credential (e.g public key) associated with a stack (cluster) has present on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus verify(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Create the credential (e.g public key) associated with a stack (cluster) on Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);\n\n\n /**\n * Interactive login for credential creation.\n *\n * @return parameters for interactive login\n */\n Map<String, String> interactiveLogin(CloudContext cloudContext, ExtendedCloudCredential extendedCloudCredential,\n CredentialNotifier credentialNotifier);\n\n /**\n * Delete the credential (e.g public key) associated with a stack (cluster) from Cloud provider.\n *\n * @param authenticatedContext the authenticated context which holds the client object\n * @return the status respone of method call\n */\n CloudCredentialStatus delete(@Nonnull AuthenticatedContext authenticatedContext);\n\n}",
"public ClientCredentials() {\n }",
"public QCloudLifecycleCredentials onGetCredentialFromLocal(String secretId2, String secretKey2) throws QCloudClientException {\n long current = System.currentTimeMillis() / 1000;\n String keyTime = current + \";\" + (current + this.duration);\n return new BasicQCloudCredentials(secretId2, secretKey2SignKey(secretKey2, keyTime), keyTime);\n }",
"public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}",
"void createExposedOAuthCredential(IntegrationClientCredentialsDetailsModel integrationCCD);",
"GoogleAuthenticatorKey createCredentials(String userName);",
"@Override\n public Object getCredentials() {\n return token;\n }",
"com.google.protobuf.ByteString\n getCredBytes();",
"public Object getCredential()\n {\n return this.credential;\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"@SuppressWarnings(\"rawtypes\")\n @Override\n public Class[] getSupportedCredentials() {\n return new Class[] { DefaultCredential.class, CertificateCredential.class, PasswordCredential.class, CredentialMap.class };\n }",
"@Override\n public void serialize(ConnectionCredentials connectionCredentials, JsonGenerator jgen, SerializerProvider provider)\n throws IOException {\n ConnectionCredentials copy = ConnectionCredentials.copyOf(connectionCredentials);\n\n ConnectionCredentialsEncrypter credentialsEncrypter = new ConnectionCredentialsEncrypter();\n credentialsEncrypter.encrypt(copy);\n\n jgen.writeStartObject();\n if (copy.getIdentity() != null) {\n jgen.writeStringField(\"identity\",copy.getIdentity());\n }\n if (copy.getCredential() != null) {\n jgen.writeStringField(\"credential\",copy.getCredential());\n }\n if (copy.getApiKey() != null) {\n jgen.writeStringField(\"apiKey\",copy.getApiKey());\n }\n if (copy.getOauthToken() != null) {\n jgen.writeStringField(\"oauthToken\",copy.getOauthToken());\n }\n if (copy.getOauthTokenSecret() != null) {\n jgen.writeStringField(\"oauthTokenSecret\",copy.getOauthTokenSecret());\n }\n if (copy.getOauthVerifier() != null) {\n jgen.writeStringField(\"oauthVerifier\",copy.getOauthVerifier());\n }\n jgen.writeEndObject();\n }",
"public void propagateCredentials( User user, String password );",
"@Nonnull protected List<Credential> resolveCredentials(\n @Nonnull final ProfileRequestContext profileRequestContext) {\n try {\n final ArrayList<Credential> credentials = new ArrayList<>();\n Iterables.addAll(credentials, credentialResolver.resolve(\n new CriteriaSet(new UsageCriterion(UsageType.ENCRYPTION))));\n return credentials;\n } catch (final ResolverException e) {\n log.error(\"Error resolving IdP encryption credentials\", e);\n return Collections.emptyList();\n }\n }",
"String convertToJwt (SsoUserDetails uerDetails);",
"AbstractCredentialModel createBasicCredential(String username, String password);",
"public AuthCredentials(String scheme,String name,String password)\n {\n this.scheme = scheme;\n this.name = name;\n this.password = password;\n }",
"SignedObject authenticate(String username, String hashedPassword) throws RemoteException, Exception;",
"@ClassVersion(\"$Id: Authenticator.java 16154 2012-07-14 16:34:05Z colin $\")\r\npublic interface Authenticator\r\n{\r\n\r\n /**\r\n * Checks whether the given credentials can be used to initiate a\r\n * new session on behalf of the client with the given context.\r\n *\r\n * @param context The context.\r\n * @param user The user name.\r\n * @param password The password.\r\n *\r\n * @return True if the given credentials are acceptable.\r\n *\r\n * @throws I18NException Thrown if the authenticator encounters an\r\n * error while checking the credentials.\r\n */\r\n\r\n boolean shouldAllow\r\n (StatelessClientContext context,\r\n String user,\r\n char[] password)\r\n throws I18NException;\r\n}",
"@SuppressWarnings(\"unchecked\")\n\tpublic Collection<Object> getVerifiableCredentials() {\n\t\tObject list = jsonObject.get(JSONLD_KEY_VERIFIABLE_CREDENTIAL);\n\t\tif (list != null) {\n\t\t\treturn Collections.unmodifiableCollection((Collection<Object>)list);\n\t\t}\n\t\treturn null;\n\t}",
"public interface CryptoService {\n /**\n * Read encrypted password file.\n *\n * @param file Encrypted file instance.\n * @param password Password to decrypt file.\n *\n * @return file content.\n *\n * */\n String readFile(File file, String password);\n\n /**\n * Write and encrypt content to file.\n *\n * @param file encrypted file location.\n * @param password password which will be used to encrypt file.\n * @param cnt file content.\n * */\n void writeFile(File file, String password, String cnt);\n\n /**\n * Encrypt content\n *\n * @param password password which will be used to encrypt file.\n * @param textToEncrypt text which will be encrypted\n * @return encrypted content\n * */\n String encrypt(String password, String textToEncrypt);\n\n /**\n * Decrypt content\n *\n * @param password password which will be used to encrypt file.\n * @param textToDecrypt text which will be decrypted\n * @return decrypted content\n * */\n String decrypt(String password, String textToDecrypt);\n\n /**\n * Write and encrypt the password database.\n *\n * @param passwordDatabase passwords database which will be saved to encrypted file.\n * */\n void writeFile(PasswordDatabase passwordDatabase) throws JsonConversionException;\n}",
"@Test\n public void fromJson() throws VirgilException, WebAuthnException {\n AuthenticatorMakeCredentialOptions options = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON);\n AttestationObject attObj = authenticator.makeCredential(options);\n }",
"@Override\n\t\tpublic Object getCredentials() {\n\t\t\treturn null;\n\t\t}",
"CloudCredentialStatus create(@Nonnull AuthenticatedContext authenticatedContext);",
"@Override\n protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken token)\n throws AuthenticationException {\n\n LOG.info(\"Obtaining authentication info\");\n\n /* Any leading and/or trailing white space contained in the credentials\n * (password) has been stripped out before it gets here.\n */\n try {\n if (token instanceof OAuthToken) {\n // Principal = email\n // Credentials = authenticator\n LOG.info(\"Authentication is using OAuth\");\n return new SimpleAccount(\n token.getPrincipal(), \n token.getCredentials(), \n \"CloudSession\");\n } else {\n LOG.info(\"Authentication is using local login authority\");\n\n // Principal = login\n String principal = (String) token.getPrincipal();\n\n // Credentials = password\n String credentials = new String((char[]) token.getCredentials());\n\n LOG.info(\"Authenticating user '{}'\", principal);\n\n // Thia can throw a NullPointerException\n User user = SecurityServiceImpl.authenticateLocalUserStatic(\n principal, \n credentials);\n\n if (user == null) {\n LOG.info(\"No exception but user object is null\");\n return null;\n }\n\n LOG.info(\"User {} is authenticated\", principal);\n\n try {\n return new SimpleAccount(\n token.getPrincipal(), \n token.getCredentials(), \n \"CloudSession\");\n } catch (Throwable t) {\n LOG.error(\"Unexpected exception creating account object\", t);\n }\n }\n throw new AuthenticationException(\"Unable to authenticate token\");\n }\n catch (UnknownUserException ex) {\n LOG.warn(\"Authentication failed. Message: {}\", ex.getMessage());\n throw new AuthenticationException(ex.getMessage());\n }\n catch (UserBlockedException ex) {\n LOG.warn(\"Blocked user {}\", ex);\n throw new AuthenticationException(ex.getMessage());\n }\n catch (EmailNotConfirmedException ex) {\n LOG.warn(\"Authentication failed. Message: {}\", ex.getMessage());\n throw new AuthenticationException(\"EmailNotConfirmed\");\n }\n catch (InsufficientBucketTokensException ex) {\n LOG.info(\"Insufficient bucket tokens: {}\", ex.getMessage());\n throw new AuthenticationException(ex.getMessage());\n }\n catch (NullPointerException npe) {\n LOG.warn(\"NullPointer\", npe);\n throw new AuthenticationException(npe.getMessage());\n }\n catch (Throwable t) {\n // This is a catchall exception handler that kicks the can back\n // to the caller\n LOG.warn(\"Throwable\", t);\n }\n\n return null;\n }",
"LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;",
"protected static Credentials getProxyCredentials() {\n if (!proxyUsernameSet) {\n return null;\n }\n String[] parts = getProxyUsername().split(\"\\\\\\\\\");\n if (parts.length > 1) {\n String domain = parts[0];\n String workstation = null;\n String user = parts[1];\n if (parts.length > 2) {\n workstation = user;\n user = parts[2];\n }\n return new Credentials(user, getProxyPassphrase(), domain, workstation);\n }\n return new Credentials(parts[0], getProxyPassphrase());\n }",
"Object readCred(int paramInt) throws IOException, RealmException, KrbApErrException, Asn1Exception {\n/* 335 */ PrincipalName principalName1 = null;\n/* */ try {\n/* 337 */ principalName1 = readPrincipal(paramInt);\n/* 338 */ } catch (Exception exception) {}\n/* */ \n/* */ \n/* */ \n/* 342 */ if (DEBUG) {\n/* 343 */ System.out.println(\">>>DEBUG <CCacheInputStream> client principal is \" + principalName1);\n/* */ }\n/* 345 */ PrincipalName principalName2 = null;\n/* */ try {\n/* 347 */ principalName2 = readPrincipal(paramInt);\n/* 348 */ } catch (Exception exception) {}\n/* */ \n/* */ \n/* 351 */ if (DEBUG) {\n/* 352 */ System.out.println(\">>>DEBUG <CCacheInputStream> server principal is \" + principalName2);\n/* */ }\n/* 354 */ EncryptionKey encryptionKey = readKey(paramInt);\n/* 355 */ if (DEBUG) {\n/* 356 */ System.out.println(\">>>DEBUG <CCacheInputStream> key type: \" + encryptionKey.getEType());\n/* */ }\n/* 358 */ long[] arrayOfLong = readTimes();\n/* 359 */ KerberosTime kerberosTime1 = new KerberosTime(arrayOfLong[0]);\n/* 360 */ KerberosTime kerberosTime2 = (arrayOfLong[1] == 0L) ? null : new KerberosTime(arrayOfLong[1]);\n/* */ \n/* 362 */ KerberosTime kerberosTime3 = new KerberosTime(arrayOfLong[2]);\n/* 363 */ KerberosTime kerberosTime4 = (arrayOfLong[3] == 0L) ? null : new KerberosTime(arrayOfLong[3]);\n/* */ \n/* */ \n/* 366 */ if (DEBUG) {\n/* 367 */ System.out.println(\">>>DEBUG <CCacheInputStream> auth time: \" + kerberosTime1.toDate().toString());\n/* 368 */ System.out.println(\">>>DEBUG <CCacheInputStream> start time: \" + ((kerberosTime2 == null) ? \"null\" : kerberosTime2\n/* 369 */ .toDate().toString()));\n/* 370 */ System.out.println(\">>>DEBUG <CCacheInputStream> end time: \" + kerberosTime3.toDate().toString());\n/* 371 */ System.out.println(\">>>DEBUG <CCacheInputStream> renew_till time: \" + ((kerberosTime4 == null) ? \"null\" : kerberosTime4\n/* 372 */ .toDate().toString()));\n/* */ } \n/* 374 */ boolean bool = readskey();\n/* 375 */ boolean[] arrayOfBoolean = readFlags();\n/* 376 */ TicketFlags ticketFlags = new TicketFlags(arrayOfBoolean);\n/* 377 */ HostAddress[] arrayOfHostAddress = readAddr();\n/* 378 */ HostAddresses hostAddresses = null;\n/* 379 */ if (arrayOfHostAddress != null) {\n/* 380 */ hostAddresses = new HostAddresses(arrayOfHostAddress);\n/* */ }\n/* 382 */ AuthorizationDataEntry[] arrayOfAuthorizationDataEntry = readAuth();\n/* 383 */ AuthorizationData authorizationData = null;\n/* 384 */ if (arrayOfAuthorizationDataEntry != null) {\n/* 385 */ authorizationData = new AuthorizationData(arrayOfAuthorizationDataEntry);\n/* */ }\n/* 387 */ byte[] arrayOfByte1 = readData();\n/* 388 */ byte[] arrayOfByte2 = readData();\n/* */ \n/* */ \n/* 391 */ if (principalName1 == null || principalName2 == null) {\n/* 392 */ return null;\n/* */ }\n/* */ \n/* */ try {\n/* 396 */ if (principalName2.getRealmString().equals(\"X-CACHECONF:\")) {\n/* 397 */ String[] arrayOfString = principalName2.getNameStrings();\n/* 398 */ if (arrayOfString[0].equals(\"krb5_ccache_conf_data\")) {\n/* 399 */ return new CredentialsCache.ConfigEntry(arrayOfString[1], (arrayOfString.length > 2) ? new PrincipalName(arrayOfString[2]) : null, arrayOfByte1);\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 404 */ return new Credentials(principalName1, principalName2, encryptionKey, kerberosTime1, kerberosTime2, kerberosTime3, kerberosTime4, bool, ticketFlags, hostAddresses, authorizationData, (arrayOfByte1 != null) ? new Ticket(arrayOfByte1) : null, (arrayOfByte2 != null) ? new Ticket(arrayOfByte2) : null);\n/* */ \n/* */ \n/* */ \n/* */ }\n/* 409 */ catch (Exception exception) {\n/* 410 */ if (DEBUG) {\n/* 411 */ exception.printStackTrace(System.out);\n/* */ }\n/* 413 */ return null;\n/* */ } \n/* */ }",
"public Credentials()\n {\n this(null, null, null, null);\n }",
"public void getCredentials() throws IOException, GeneralSecurityException {\n\n KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance(keyAlg);\n keyGenerator.initialize(keySize);\n keypair = keyGenerator.genKeyPair();\n Security.addProvider(new BouncyCastleProvider());\n \n PKCS10CertificationRequest pkcs10 = null;\n try{\n \tpkcs10 = generateCertificationRequest(DN, keypair);\n }\n catch(Exception ex){\n \tthrow new GeneralSecurityException(ex);\n }\n getCredentials(pkcs10.getEncoded());\n }",
"List<ExposedOAuthCredentialModel> readExposedOAuthCredentials();",
"private JwtAuthenticationConverter jwtAuthenticationConverter() {\n JwtAuthenticationConverter jwtAuthenticationConverter = new JwtAuthenticationConverter();\n jwtAuthenticationConverter.setJwtGrantedAuthoritiesConverter(new MyIDPAuthoritiesConverter());\n return jwtAuthenticationConverter;\n }",
"private JwtAuthenticationConverter jwtAuthenticationConverter() {\n JwtAuthenticationConverter jwtAuthenticationConverter = new JwtAuthenticationConverter();\n jwtAuthenticationConverter.setJwtGrantedAuthoritiesConverter(new MyIDPAuthoritiesConverter());\n return jwtAuthenticationConverter;\n }",
"private ConnectInfo(final String userName, final String userPassword, final char[] privateKey, final String privateKeyPassword,\n\t\t\tfinal AuthMethod[] authMethods, final ServerHostKeyVerifier verifier, final KnownHosts knownHosts, final int connectTimeout,\n\t\t\tfinal int kexTimeout, final String relayHost, final int relayPort) {\n\t\tthis.userName = userName;\n\t\tthis.userPassword = userPassword;\n\t\tthis.privateKey = privateKey;\n\t\tthis.privateKeyPassword = privateKeyPassword;\n\t\tthis.authMethods = authMethods;\n\t\tthis.verifier = verifier;\n\t\tthis.knownHosts = knownHosts;\n\t\tthis.connectTimeout = connectTimeout;\n\t\tthis.kexTimeout = kexTimeout;\n\t\tthis.relayHost = relayHost;\n\t\tthis.relayPort = relayPort;\n\t}",
"public Builder credentials(String credentials) {\n this.credentials = credentials;\n return this;\n }",
"public void authenticate(LoginCredentials credentials) throws LoginException;",
"Object getAuthInfoKey();",
"@Override // com.tencent.qcloud.core.auth.BasicLifecycleCredentialProvider\n public QCloudLifecycleCredentials fetchNewCredentials() throws QCloudClientException {\n if (this.secretId != null && this.secretKey != null) {\n return onGetCredentialFromLocal(this.secretId, this.secretKey);\n }\n if (this.httpRequest == null) {\n return null;\n }\n try {\n return onRemoteCredentialReceived((String) ((HttpResult) QCloudHttpClient.getDefault().resolveRequest(this.httpRequest).executeNow()).content());\n } catch (QCloudServiceException e) {\n throw new QCloudClientException(\"get session json fails\", e);\n }\n }",
"public Person authenticateAndGetUser(String numCc, String password) throws RemoteException;",
"private String getCredentials() {\n String credentials = \"\";\n AccountManager accountManager = AccountManager.get(getContext());\n\n final Account availableAccounts[] = accountManager.getAccountsByType(AccountGeneral.ACCOUNT_TYPE);\n\n //there should be only one ERT account\n if(availableAccounts.length > 0) {\n Account account = availableAccounts[0];\n AccountManagerFuture<Bundle> future = accountManager.getAuthToken(account, AccountGeneral.AUTHTOKEN_TYPE_FULL_ACCESS, null, null, null, null);\n try {\n Bundle bundle = future.getResult();\n String accountName = bundle.getString(AccountManager.KEY_ACCOUNT_NAME);\n String token = bundle.getString(AccountManager.KEY_AUTHTOKEN);\n credentials = accountName + \":\" + token;\n } catch (OperationCanceledException | IOException | AuthenticatorException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n }\n return credentials;\n }",
"public AuthInfo createAuthInfo(String username, String userid, String passwd, String ha1, String realm, String domain);",
"protected String getPassword(final String username) {\n return credentials.get(username);\n }",
"abstract public AuthInfo createAuthInfo(String username, String userid, String passwd, String ha1, String realm, String domain);",
"public interface AgroalSecurityProvider {\n\n /**\n * Converts a custom principal / credential objects to properties to be passed to the JDBC driver.\n * @return null if not capable of handle the security object, otherwise return a {@link Properties} object even if empty.\n */\n Properties getSecurityProperties(Object securityObject);\n}",
"public NVPair getUsernamePassword(AuthorizationInfo challenge, boolean forProxy)\r\n {\r\n if (forProxy && proxyName != null)\r\n {\r\n if (been_here)\r\n {\r\n System.err.println();\r\n System.err.println(\"Proxy authorization failed\");\r\n this.setSuccess(false);\r\n return null;\r\n }\r\n\r\n been_here = true;\r\n return new NVPair(proxyName, proxyPswd);\r\n }\r\n\r\n if (been_here)\r\n {\r\n System.err.println();\r\n System.err.println(\"Proxy authorization succeeded\");\r\n }\r\n\r\n // print out all challenge info\r\n\r\n System.err.println();\r\n if (forProxy)\r\n {\r\n System.err.println(\"The proxy requires authorization\");\r\n }\r\n else\r\n {\r\n System.err.println(\"The server requires authorization for this resource\");\r\n }\r\n\r\n this.setSuccess(true);\r\n this.setProxyScheme(challenge.getScheme());\r\n this.setProxyRealm(challenge.getRealm());\r\n this.setProxyHost(challenge.getHost());\r\n this.setProxyPort(challenge.getPort());\r\n\r\n System.err.println();\r\n System.err.println(\"Proxy scheme is \" + challenge.getScheme());\r\n System.err.println(\"Add the following line near the beginning of your application:\");\r\n System.err.println();\r\n\r\n String solution = null;\r\n if (challenge.getScheme().equalsIgnoreCase(\"Basic\"))\r\n {\r\n solution =\r\n \" AuthorizationInfo.addBasicAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"<username>, <password>);\";\r\n }\r\n else if (challenge.getScheme().equalsIgnoreCase(\"Digest\"))\r\n {\r\n solution =\r\n \" AuthorizationInfo.addDigestAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"<username>, <password>);\";\r\n }\r\n else\r\n {\r\n solution =\r\n \" AuthorizationInfo.addAuthorization(\\\"\"\r\n + challenge.getHost()\r\n + \"\\\", \"\r\n + challenge.getPort()\r\n + \", \\\"\"\r\n + challenge.getScheme()\r\n + \"\\\", \\\"\"\r\n + challenge.getRealm()\r\n + \"\\\", \"\r\n + \"...);\";\r\n }\r\n\r\n this.setMessage(solution);\r\n System.err.println(solution);\r\n System.err.println();\r\n\r\n return null;\r\n }",
"public DelegateCredentialsProvider build() {\n return new DelegateCredentialsProvider(this);\n }",
"com.google.protobuf.ByteString\n getAuthBytes();",
"com.google.protobuf.ByteString\n getAuthBytes();",
"com.google.protobuf.ByteString\n getAuthBytes();",
"public interface HttpAdapter\n{\n /**\n * <P>Specify the realm that this authenticator is authenticating for. \n * \n * <P>This value should be well-known, very stable, and preferably\n * expressed in some \"canonical\" form.\n * \n * <P>As this value is a factor in authentication cryptography, any change\n * to it may invalidate passwords in the realm stored as part of digests.\n * \n */\n void setRealm(String realm);\n \n /**\n * Read authorization info from the client\n * \n * @param request The HttpServletRequest to read\n * @return An array of Credentials read from the client\n * @throws IOException\n * @throws ServletException\n */\n Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;\n \n /**\n * Challenge the client to provide authorization info\n * \n * @param response The HttpServletResponse to write\n * @throws IOException\n * @throws ServletException\n */\n void writeChallenge(HttpServletResponse response)\n throws IOException,ServletException;\n}",
"@Override\n\t\t\tprotected PasswordAuthentication getPasswordAuthentication() {\n\t\t\t\treturn new PasswordAuthentication(from, password);\n\t\t\t}",
"@Override\n public Principal authenticate(String credentials, String remoteAddr, String httpMethod, StringBuilder errMsg) {\n return null;\n }",
"public org.openyolo.proto.Credential getProto() {\n return mProto;\n }",
"public void setCredentials(Credentials credentials) {\n mCredentials = credentials;\n }",
"public Credentials(String user, String password) {\r\n\t\tthis.user = user;\r\n\t\tthis.password = password;\r\n\t}",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"AbstractCredentialModel createOAuthCredential(EmployeeModel employee);",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"@Override\n public ExternalCredentialsResponse getCredentials(Principal principal, DomainDetails domainDetails, String idToken, ExternalCredentialsRequest externalCredentialsRequest)\n throws ResourceException {\n\n // first make sure that our required components are available and configured\n\n if (authorizer == null) {\n throw new ResourceException(ResourceException.FORBIDDEN, \"ZTS authorizer not configured\");\n }\n\n Map<String, String> attributes = externalCredentialsRequest.getAttributes();\n final String gcpServiceAccount = getRequestAttribute(attributes, GCP_SERVICE_ACCOUNT, null);\n if (StringUtil.isEmpty(gcpServiceAccount)) {\n throw new ResourceException(ResourceException.BAD_REQUEST, \"missing gcp service account\");\n }\n\n // verify that the given principal is authorized for all scopes requested\n\n final String gcpTokenScope = getRequestAttribute(attributes, GCP_TOKEN_SCOPE, GCP_DEFAULT_TOKEN_SCOPE);\n String[] gcpTokenScopeList = gcpTokenScope.split(\" \");\n for (String scopeItem : gcpTokenScopeList) {\n final String resource = domainDetails.getName() + \":\" + scopeItem;\n if (!authorizer.access(GCP_SCOPE_ACTION, resource, principal, null)) {\n throw new ResourceException(ResourceException.FORBIDDEN, \"Principal not authorized for configured scope\");\n }\n }\n\n try {\n // first we're going to get our exchange token\n\n GcpExchangeTokenResponse exchangeTokenResponse = getExchangeToken(domainDetails, idToken, externalCredentialsRequest);\n\n final String serviceUrl = String.format(\"https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s@%s.iam.gserviceaccount.com:generateAccessToken\",\n gcpServiceAccount, domainDetails.getGcpProjectId());\n final String authorizationHeader = exchangeTokenResponse.getTokenType() + \" \" + exchangeTokenResponse.getAccessToken();\n\n GcpAccessTokenRequest accessTokenRequest = new GcpAccessTokenRequest();\n accessTokenRequest.setScopeList(gcpTokenScope);\n int expiryTime = externalCredentialsRequest.getExpiryTime() == null ? 3600 : externalCredentialsRequest.getExpiryTime();\n accessTokenRequest.setLifetimeSeconds(expiryTime);\n\n HttpPost httpPost = new HttpPost(serviceUrl);\n httpPost.addHeader(HttpHeaders.AUTHORIZATION, authorizationHeader);\n httpPost.setEntity(new StringEntity(jsonMapper.writeValueAsString(accessTokenRequest), ContentType.APPLICATION_JSON));\n\n final HttpDriverResponse httpResponse = httpDriver.doPostHttpResponse(httpPost);\n if (httpResponse.getStatusCode() != HttpStatus.SC_OK) {\n GcpAccessTokenError error = jsonMapper.readValue(httpResponse.getMessage(), GcpAccessTokenError.class);\n throw new ResourceException(httpResponse.getStatusCode(), error.getErrorMessage());\n }\n\n GcpAccessTokenResponse gcpAccessTokenResponse = jsonMapper.readValue(httpResponse.getMessage(), GcpAccessTokenResponse.class);\n\n ExternalCredentialsResponse externalCredentialsResponse = new ExternalCredentialsResponse();\n attributes = new HashMap<>();\n attributes.put(GCP_ACCESS_TOKEN, gcpAccessTokenResponse.getAccessToken());\n externalCredentialsResponse.setAttributes(attributes);\n externalCredentialsResponse.setExpiration(Timestamp.fromString(gcpAccessTokenResponse.getExpireTime()));\n return externalCredentialsResponse;\n\n } catch (Exception ex) {\n throw new ResourceException(ResourceException.FORBIDDEN, ex.getMessage());\n }\n }",
"@Override\n public Principal authenticate(HttpServletRequest request, StringBuilder errMsg) {\n errMsg = errMsg == null ? new StringBuilder(512) : errMsg;\n\n // extract credentials from request\n String jwsString = OAuthAuthorityUtils.extractHeaderToken(request);\n\n // skip when no credentials provided\n if (jwsString == null) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: no credentials, skip...\");\n }\n return null;\n }\n\n // parse certificate\n CertificateIdentity certificateIdentity = null;\n try {\n certificateIdentity = this.certificateIdentityParser.parse(request);\n } catch (CertificateIdentityException e) {\n this.reportError(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: invalid certificate: \" + e.getMessage(), errMsg);\n return null;\n }\n X509Certificate clientCert = certificateIdentity.getX509Certificate();\n String clientCertPrincipal = certificateIdentity.getPrincipalName();\n\n // parse JWT\n OAuthJwtAccessToken at = null;\n try {\n at = this.parser.parse(jwsString);\n } catch (OAuthJwtAccessTokenException e) {\n this.reportError(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: invalid JWT: \" + e.getMessage(), errMsg);\n return null;\n }\n\n // validate JWT\n try {\n this.validator.validate(at);\n this.validator.validateClientId(at, clientCertPrincipal);\n\n if (this.shouldVerifyCertThumbprint) {\n String clientCertThumbprint = this.validator.getX509CertificateThumbprint(clientCert);\n this.validator.validateCertificateBinding(at, clientCertThumbprint);\n }\n } catch (CertificateEncodingException | CryptoException | OAuthJwtAccessTokenException e) {\n this.reportError(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: invalid JWT: \" + e.getMessage(), errMsg);\n return null;\n }\n\n // create principal\n String[] ds = AthenzUtils.splitPrincipalName(at.getSubject());\n if (ds == null) {\n errMsg.append(\"OAuthCertBoundJwtAccessTokenAuthority:authenticate: sub is not a valid service identity: got=\").append(at.getSubject());\n return null;\n }\n String domain = ds[0];\n String service = ds[1];\n\n SimplePrincipal principal = (SimplePrincipal) SimplePrincipal.create(domain, service, jwsString, at.getIssuedAt(), this);\n principal.setUnsignedCreds(at.toString());\n principal.setX509Certificate(clientCert);\n // principal.setRoles(at.getScopes());\n principal.setApplicationId(clientCertPrincipal);\n principal.setAuthorizedService(this.authorizedServices.getOrDefault(clientCertPrincipal, clientCertPrincipal));\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority.authenticate: client certificate name=\" + clientCertPrincipal);\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority.authenticate: valid user=\" + principal.toString());\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority.authenticate: unsignedCredentials=\" + principal.getUnsignedCredentials());\n LOG.debug(\"OAuthCertBoundJwtAccessTokenAuthority.authenticate: credentials=\" + principal.getCredentials());\n }\n return principal;\n }",
"public interface PasswordEncoding\n{\n final String[] standardEncoders =\n new String[] { PlainTextPasswordEncoder.class.getName(),\n Rot13PasswordEncoder.class.getName(),\n Rot47PasswordEncoder.class.getName() };\n\n /**\n * Decodes an encoded database password.\n * \n * @param encodedPassword - The encoded password to be decoded\n * @param key - An optional data element which can be used to unlock the password.\n * Some encoders may require the key.\n * @return The decoded normal/plain plassword.\n */\n public String decodePassword(String encodedPassword, String key);\n\n /**\n * Encodes a normal/plain database password.\n * \n * @param normalPassword - The normal/plain password to be encoded\n * @param key - An optional data element which can be used to lock the password.\n * Some encoders may require the key.\n * @return The encoded password.\n */\n public String encodePassword(String normalPassword, String key);\n}",
"AuthenticationToken authenticate(String username, CharSequence password) throws Exception;",
"private Login_C2S(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n super(builder);\r\n this.unknownFields = builder.getUnknownFields();\r\n }",
"public Wrapper wrap(String name, Object object) throws CertificateException, GeneralSecurityException {\n if (log.isDebugEnabled()) {\n log.debug(WhitePagesProtectionServiceImpl.NAME + \" wrapping object: \" + object + \" (class: \" + object.getClass().getName() + \") with name + \" + name);\n }\n\n keyRingService = (KeyRingService) serviceBroker.getService(this, KeyRingService.class, null);\n\n if (keyRingService == null) {\n throw new RuntimeException(\"KeyRingService is null\");\n }\n\n encryptService = (EncryptionService) serviceBroker.getService(this, EncryptionService.class, null);\n\n if (encryptService == null) {\n throw new RuntimeException(\"EncryptionService is null\");\n }\n\n\n// List certList = keyRingService.findCert(name, KeyRingService.LOOKUP_KEYSTORE);\n\tList certList = new ArrayList();\n\ttry {\n\t\tList pkeyList = getPrivateKeys(name, keyRingService);\n if (pkeyList != null) {\n for (int i = 0; i < pkeyList.size(); i++) {\n PrivateKeyCert pkey = (PrivateKeyCert)pkeyList.get(i);\n certList.add(pkey.getCertificateStatus());\n }\n }\n\t} catch (GeneralSecurityException e1) {\n\t\tthrow (e1);\n\t} catch (IOException e1) {\n\t\tthrow (new GeneralSecurityException(e1.getMessage()));\n\t}\n\t\n\tif ((certList == null) || !(certList.size() > 0)) {\n throw new CertificateException(\"No certificate available for encrypting or signing: \" + name);\n }\n\n\n CertificateStatus cs = (CertificateStatus) certList.get(0);\n X509Certificate agentCert = (X509Certificate) cs.getCertificate();\n X509Certificate[] certChain = keyRingService.buildCertificateChain(agentCert);\n\n SignedObject signedObj = null;\n\n try {\n Serializable serializableObject;\n if (object instanceof Serializable) {\n serializableObject = (Serializable) object;\n signedObj = encryptService.sign(name, policy.signSpec, serializableObject);\n } else {\n if (log.isErrorEnabled()) {\n log.error(WhitePagesProtectionServiceImpl.NAME + \" Object not serializable, cannot be signed\");\n }\n }\n } catch (GeneralSecurityException e) {\n throw new GeneralSecurityException(WhitePagesProtectionServiceImpl.NAME + \" \" + e.getMessage());\n } catch (IOException e) {\n if (log.isWarnEnabled()) {\n log.warn(WhitePagesProtectionServiceImpl.NAME + \" IOException: \" + e);\n }\n\n throw new GeneralSecurityException(WhitePagesProtectionServiceImpl.NAME + \" \" + e.getMessage());\n }\n \t\n return new ProtectedRequest(certChain, signedObj);\n }",
"private String quoteUnixCredentials(String str) {\n return str.replace(\"'\", \"'\\\\''\");\n }",
"public interface CertificationRequestWrapper {\n\n /**\n * Gets the subject name of this certificate.\n * @return subject name\n */\n X500Principal getSubject();\n \n /**\n * Gets the content of this certification request in a suitable string \n * encoding (typically PEM).\n * @return certification request content\n * @throws IOException\n */\n String getContent() throws IOException;\n \n}",
"@SuppressWarnings(\"unused\")\n\tprivate ReactiveJwtAuthenticationConverter jwtAuthenticationConverterForKeycloak() {\n\t\tConverter<Jwt, Collection<GrantedAuthority>> jwtGrantedAuthoritiesConverter = jwt -> {\n\t\t\tMap<String, Collection<String>> realmAccess = jwt.getClaim(\"realm_access\");\n\t\t\tCollection<String> roles = realmAccess.get(\"roles\");\n\t\t\treturn roles.stream()\n\t\t\t\t\t.map(role -> new SimpleGrantedAuthority(\"ROLE_\" + role))\n\t\t\t\t\t.collect(Collectors.toList());\n\t\t};\n\n\t\tvar jwtAuthenticationConverter = new ReactiveJwtAuthenticationConverter();\n\t\tjwtAuthenticationConverter.setJwtGrantedAuthoritiesConverter(\n\t\t\t\tnew ReactiveJwtGrantedAuthoritiesConverterAdapter(jwtGrantedAuthoritiesConverter));\n\n\t\treturn jwtAuthenticationConverter;\n\t}",
"public static HashMap<String,JSONObject> getCloudFoundryServiceCredentialsAsJSONObjects(){\r\n\t\tHashMap<String,JSONObject> names=new HashMap<String,JSONObject>();\r\n\t\tString svcs=System.getenv(\"VCAP_SERVICES\");\r\n\t\tJSONObject VCAP_SERVICES =null;\r\n\t\ttry {\r\n\t\t\tif(svcs==null) return new JSONObject();\r\n\t\t\tVCAP_SERVICES = (JSONObject)new JSONParser().parse(svcs);\r\n\t\t\tfor(Object type : VCAP_SERVICES.keySet()){\r\n\t\t\t\tJSONArray svcType=(JSONArray)VCAP_SERVICES.get(type);\r\n\t\t\t\tfor(int i=0;i<svcType.size();i++){\r\n\t\t\t\t\tJSONObject svc = (JSONObject)svcType.get(i);\r\n\t\t\t\t\tnames.put((String)svc.get(\"label\"),(JSONObject)svc.get(\"credentials\"));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Throwable e) {\r\n\t\t\tthrow new RuntimeException(\"VCAP_SERVICES env data failed to load\",e);\r\n\t\t}\r\n\t\treturn names;\r\n\t}",
"public Credentials getCredentials() {\n return mCredentials;\n }",
"private CSLogin(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"@Nonnull\n public Credential getSPCredential() throws IOException {\n\n final ClassPathResource spKeyResource = new ClassPathResource(SP_KEY);\n Assert.assertTrue(spKeyResource.exists());\n final PrivateKey spPrivateKey = KeyPairUtil.readPrivateKey(spKeyResource.getInputStream());\n\n final ClassPathResource spCrtResource = new ClassPathResource(SP_CRT);\n Assert.assertTrue(spCrtResource.exists());\n final X509Certificate spEntityCert = (X509Certificate) CertUtil.readCertificate(spCrtResource.getInputStream());\n\n return new BasicX509Credential(spEntityCert, spPrivateKey);\n }",
"public abstract I_Authenticate getSecurityCtx();",
"@Override\n public URLConnection authenticate(final URLConnection connection) throws IOException {\n String authorization = getConfiguration().getUsername() + \":\" + getConfiguration().getPassword();\n String encodedAuthorization = new String(Base64.encodeBase64(authorization.getBytes()));\n connection.setRequestProperty(\"Authorization\", \"Basic \" + encodedAuthorization);\n return connection;\n }",
"private Login_S2C(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\r\n super(builder);\r\n this.unknownFields = builder.getUnknownFields();\r\n }",
"java.lang.String getCryptProvider();",
"@Nullable\n private TokenCredentials getCredentials(String header) {\n if (header == null) {\n return null;\n } else {\n int space = header.indexOf(32);\n if (space <= 0) {\n return null;\n } else {\n String method = header.substring(0, space);\n if (!this.prefix.equalsIgnoreCase(method)) {\n return null;\n } else {\n String decoded;\n try {\n decoded = new String(BaseEncoding.base64().decode(header.substring(space + 1)), StandardCharsets.UTF_8);\n } catch (IllegalArgumentException var8) {\n this.logger.warn(\"Error decoding credentials\", var8);\n return null;\n }\n\n int i = decoded.indexOf(58);\n if (i <= 0) {\n return null;\n } else {\n String token = decoded.substring(i + 1);\n String username = decoded.substring(0, i);\n return new TokenCredentials(token, username);\n }\n }\n }\n }\n }",
"public interface ISecurityContext\n{\n /**\n * Retrieves the Context String\n * @return String\n */\n public String getContextString();\n}",
"private String[] getCredentials() {\n String[] cred = new String[2];\n System.out.print(\"Username: \");\n cred[0] = sc.nextLine();\n System.out.print(\"Password: \");\n cred[1] = sc.nextLine();\n return cred;\n }",
"public String getTlsCert();",
"public ToLAuthenticator(String user, String pw) {\n username = user;\n password = pw;\n }",
"@FunctionalInterface\npublic interface OAuth2CredentialsSupplier {\n\n\t/**\n\t * Returns the OAuth2ProtectedResourceDetails that applies to the given applicationUuid key\n\t *\n\t * @param applicationUuid the key used to make a request\n\t * @return the full OAuth2ProtectedResourceDetails object associated with this key\n\t */\n\tOAuth2ProtectedResourceDetails getOAuth2ResourceDetails(String applicationUuid);\n\n}",
"public Credentials getPeerCredentials() throws IOException {\n return getPeerCredentials_native(fd);\n }",
"public interface OhmageOMHSDKCredentialStore {\n byte[] get(Context context, String key);\n void set(Context context, String key, byte[] value);\n void remove(Context context, String key);\n}",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"PrivateKey getPrivateKey();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"public interface ICredentials extends RequestPolicyFactory {\n\n}"
] | [
"0.62331814",
"0.57630754",
"0.56985074",
"0.5611803",
"0.5477301",
"0.5443048",
"0.5374644",
"0.5362595",
"0.535356",
"0.53035194",
"0.52992547",
"0.5287734",
"0.5240347",
"0.51957566",
"0.51165956",
"0.5115638",
"0.5070796",
"0.5070796",
"0.5070796",
"0.5056618",
"0.50333",
"0.5028748",
"0.5022579",
"0.5012085",
"0.50042623",
"0.49927428",
"0.49684343",
"0.49583665",
"0.49463838",
"0.49453068",
"0.49327496",
"0.4920254",
"0.48908666",
"0.48793906",
"0.4868168",
"0.48632875",
"0.4858254",
"0.48565003",
"0.48108304",
"0.4800047",
"0.4780857",
"0.4780857",
"0.47805366",
"0.47794056",
"0.47321302",
"0.4729696",
"0.47219443",
"0.4693457",
"0.4693038",
"0.46878073",
"0.46793413",
"0.46671426",
"0.4667057",
"0.46541393",
"0.465063",
"0.4646029",
"0.4646029",
"0.4646029",
"0.4640709",
"0.46390173",
"0.4633907",
"0.4629503",
"0.46260357",
"0.4624832",
"0.4623822",
"0.4623822",
"0.4623822",
"0.46055263",
"0.46015096",
"0.46015096",
"0.45996755",
"0.45985067",
"0.4597404",
"0.45947698",
"0.45917994",
"0.45887658",
"0.45880228",
"0.45872802",
"0.45853183",
"0.45839515",
"0.45753592",
"0.45713374",
"0.45483795",
"0.45451468",
"0.4535594",
"0.45327252",
"0.45181423",
"0.4515787",
"0.450779",
"0.45062238",
"0.4506101",
"0.4501795",
"0.44954768",
"0.44910276",
"0.4487415",
"0.44847694",
"0.44795617",
"0.44773743",
"0.44773743",
"0.44738883"
] | 0.6055682 | 1 |
Returns the credential in a keystore. | public KeyStore getKeyStore(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;",
"public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}",
"static String getAuth(String key) {\r\n try {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(new File(Run.CREDENTIALS_FILE_NAME)));\r\n\r\n return properties.getProperty(key);\r\n }\r\n catch(IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n return null;\r\n }",
"public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;",
"public KeyProvider getKeyProvider() {\n return keystore; \n }",
"protected static String getKeyStorePassword() {\n Path userHomeDirectory = null;\n if (\"?\".equals(keyStorePassword)) {\n promptForKeystorePassword();\n } else if (keyStorePassword == null || keyStorePassword.isEmpty()) {\n // first try the password file\n try {\n userHomeDirectory = Paths.get(System.getProperty(\"user.home\")).toAbsolutePath();\n } catch (InvalidPathException e) {\n throw new BadSystemPropertyError(e);\n }\n File pwFile = new File(userHomeDirectory.toString(), Constants.PW_FILE_PATH_SEGMENT);\n if (pwFile.isFile()) {\n try {\n String rawPassword = readFileContents(pwFile);\n return EncodingUtils.decodeAndXor(rawPassword);\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n throw new IllegalArgumentException(\"Password file could not be read\");\n }\n } else {\n promptForKeystorePassword();\n }\n }\n return keyStorePassword;\n }",
"public Certificate getCertificate(String alias) throws CryptoException {\n\t\ttry {\n\t\t\treturn keystore.getCertificate(alias);\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t}\n\t}",
"public String getKeyStorePassword() {\n return keyStorePassword;\n }",
"public @Nullable\n Certificate getCertificate() throws GeneralSecurityException, IOException {\n KeyStoreManager keyStoreManager = KeyStoreManager.builder()\n .context(Config.getInstance().getContext()).build();\n return keyStoreManager.getCertificate(keyAlias);\n }",
"public String getKeyStorePassword() {\n return this.keyStorePassword;\n }",
"java.lang.String getCred();",
"public Object getCredential()\n {\n return this.credential;\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"public Object getCredential()\n {\n return this.credential;\n }",
"Object getAuthInfoKey();",
"public String getKeystorePass() {\n return keystorePass;\n }",
"public Key getPrivateKey(String alias, String password) throws CryptoException {\n\t\ttry {\n\t\t\tKey key = keystore.getKey(alias, (password != null ? password.toCharArray() : null));\n\t\t\tif(key instanceof PrivateKey) {\n\t\t\t\treturn key;\n\t\t\t}\t\t\t\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\tlogger.error(\"error recovering key for alias '\" + alias + \"' from the keystore\", e);\n\t\t\tthrow new CryptoException(\"error recovering key for alias '\" + alias + \"' from the keystore\", e);\t\t\t\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tlogger.error(\"invalid algorithm specified in keystore access\", e);\n\t\t\tthrow new CryptoException(\"invalid algorithm specified in keystore access\", e);\n\t\t}\n\t\treturn null;\n\t}",
"protected static String getKeyStoreAlias() {\n return keyStoreAlias;\n }",
"public URL getKeystoreLocation() {\n return keystoreLocation;\n }",
"private static CryptoToken getFromKeystore(KeyStore keystore, String alias,\r\n\t\t\tString password) throws UnrecoverableKeyException,\r\n\t\t\tKeyStoreException, NoSuchAlgorithmException, CertificateException,\r\n\t\t\tBkavSignaturesException {\r\n\t\tif (alias == null) {\r\n\t\t\tthrow new BkavSignaturesException(\"No alias was found in keystore\");\r\n\t\t}\r\n\r\n\t\tCryptoToken token = null;\r\n\t\t// Get private key from keystore\r\n\t\tPrivateKey privateKey = (PrivateKey) keystore.getKey(alias,\r\n\t\t\t\tpassword.toCharArray());\r\n\r\n\t\t// Get signer's certificate and cast to X509Certificate if able\r\n\t\t// Only work with X509Certificate\r\n\t\tCertificate cert = keystore.getCertificate(alias);\r\n\t\tX509Certificate signerCert = null;\r\n\t\tif (cert != null && cert instanceof X509Certificate) {\r\n\t\t\tsignerCert = (X509Certificate) cert;\r\n\t\t}\r\n\r\n\t\t// Get signer's certchain and Issuer's certificate\r\n\t\t// Check issuer's signature on signer's certificate first\r\n\t\tCertificate[] certChain = keystore.getCertificateChain(alias);\r\n\t\tX509Certificate issuerCert = null;\r\n\t\tif (signerCert != null) {\r\n\t\t\tfor (Certificate c : certChain) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (c != null && c instanceof X509Certificate) {\r\n\t\t\t\t\t\tsignerCert.verify(c.getPublicKey());\r\n\t\t\t\t\t\tissuerCert = (X509Certificate) c;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (InvalidKeyException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t} catch (NoSuchProviderException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t} catch (SignatureException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tProvider privateProvider = keystore.getProvider();\r\n\r\n\t\ttoken = new CryptoToken(privateKey, signerCert, issuerCert, certChain,\r\n\t\t\t\tprivateProvider);\r\n\r\n\t\treturn token;\r\n\t}",
"String getSecretByKey(String key);",
"KeyStore loadKeystore(char[] keystorePassword) {\n try {\n // Load the keystore in the user's home directory\n bufferedInputStream.reset();\n keystore.load(bufferedInputStream, keystorePassword);\n return keystore;\n // TODO: EOFException might mean we're skipping guesses\n } catch (CertificateException | NoSuchAlgorithmException | FileNotFoundException e) {\n throw new KeystoreException(e);\n } catch (IOException e) {\n if ((e.getCause() instanceof UnrecoverableKeyException) &&\n (e.getCause().getMessage().contains(\"Password verification failed\"))) return null;\n\n throw new KeystoreException(e);\n }\n }",
"public URL getKeyStore() {\n URL keyStore = null;\n if (keyStoreLocation != null) {\n try {\n keyStore = new URL(\"file:\" + keyStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Keystore has a malformed name: \" + keyStoreLocation, e);\n }\n }\n return keyStore;\n }",
"private synchronized PrivateKey getPrivateKey() throws Exception {\n if (privateKey == null) {\n KeyStore keyStore = loadKeyStore();\n privateKey = (PrivateKey)keyStore.getKey(aliasName, password.toCharArray());\n }\n\t\treturn privateKey;\n\t}",
"private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}",
"public PublicKeyStoreBuilderBase getKeystore() {\n return keystore;\n }",
"public Credential getCredential() {\n return this.credential;\n }",
"PrivateKey getPrivateKey();",
"private static GSSCredential getClientCredential(final Subject subject,\n final GSSManager MANAGER,\n final Oid kerboid) throws PrivilegedActionException {\n final PrivilegedExceptionAction<GSSCredential> action = new PrivilegedExceptionAction<GSSCredential>() {\n public GSSCredential run() throws GSSException {\n return MANAGER.createCredential(null // use the default principal\n , GSSCredential.DEFAULT_LIFETIME, kerboid, GSSCredential.INITIATE_ONLY);\n }\n };\n // TO support java 5, 6 we have to do this\n // The signature for Java 5 returns an object 6 returns GSSCredential, immediate casting throws \n // warning in Java 6.\n Object credential = Subject.doAs(subject, action);\n return (GSSCredential) credential;\n }",
"public String getPrivateKey();",
"public String getPrivateKey();",
"String getComponentAesKey();",
"public static KeyStore getKeyStoreFromFile(String keystoreName, String password,\n String home) throws Exception {\n Path tenantKeystorePath = Paths.get(home, \"repository\", \"resources\", \"security\", keystoreName);\n FileInputStream file = new FileInputStream(tenantKeystorePath.toString());\n KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());\n keystore.load(file, password.toCharArray());\n return keystore;\n }",
"@Nonnull\n public Credential getSPCredential() throws IOException {\n\n final ClassPathResource spKeyResource = new ClassPathResource(SP_KEY);\n Assert.assertTrue(spKeyResource.exists());\n final PrivateKey spPrivateKey = KeyPairUtil.readPrivateKey(spKeyResource.getInputStream());\n\n final ClassPathResource spCrtResource = new ClassPathResource(SP_CRT);\n Assert.assertTrue(spCrtResource.exists());\n final X509Certificate spEntityCert = (X509Certificate) CertUtil.readCertificate(spCrtResource.getInputStream());\n\n return new BasicX509Credential(spEntityCert, spPrivateKey);\n }",
"public String getCredentials();",
"public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;",
"public Object encryptedCredential() {\n return this.encryptedCredential;\n }",
"public PasswordCredential getPasswordCredential() {\n return passCred;\n }",
"public String getTrustStorePassword() {\n return trustStorePassword;\n }",
"public String getTrustStorePassword() {\n return trustStorePassword;\n }",
"public String getSecretAccessKey() {\n return cred.getAWSSecretKey();\n }",
"public String getSslKeyStorePath()\n {\n return sslKeyStorePath;\n }",
"public String getEntryAlias(String keystoreAlias) {\n return keystoreAlias;\n }",
"public KeyStore readKeyStore(File file, char[] password) {\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(file);\n KeyStore ks = KeyStore.getInstance(\"JKS\"); \n ks.load(stream, password);\n return ks;\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to read keystore from [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }",
"private KeyStore askForPin() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {\n char newPin[] = PinDialog.getPIN(this.providerDesc);\n try {\n KeyStore ks = getKeyStore(newPin);\n pin = newPin;\n return ks;\n } catch (IOException e2) {\n e2.printStackTrace();\n if (e2.getCause() instanceof LoginException) {\n JOptionPane.showMessageDialog(null, \"Wrong PIN\", \"Cryptographic card\", JOptionPane.WARNING_MESSAGE);\n }\n throw e2;\n }\n }",
"X509Certificate getCertAlias(String alias) throws KeyStoreException\n\t{\n\t\tX509Certificate x509 = (X509Certificate) keyStore.getCertificate(alias);\n\t\treturn x509;\n\t}",
"public String getTlsKey();",
"public Object credentials() {\n return cred;\n }",
"public Key getPublicKey(String alias, String password) throws CryptoException {\n\t\ttry {\n\t\t\tKey key = getPrivateKey(alias, password);\n\t\t\tif (key instanceof PrivateKey) {\n\t // get certificate of public key\n\t Certificate certificate = keystore.getCertificate(alias);\n\t // get public key from the certificate\n\t return certificate.getPublicKey();\n\t\t\t}\t\t\t\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t}\n\t\treturn null;\n\t}",
"public String getTlsKeyPath();",
"public Key getPrivateKey(String alias) throws CryptoException {\n\t\treturn getPrivateKey(alias, null);\n\t}",
"public String getSecret(String key) throws ClassicDatabaseException,ClassicNotFoundException;",
"public File getMySQLSSLClientStore() throws GuacamoleException {\n return getProperty(MySQLGuacamoleProperties.MYSQL_SSL_CLIENT_STORE);\n }",
"protected static String getKeyStorePath() {\n return keyStorePath;\n }",
"public String getAccessKey() {\n return properties.getProperty(ACCESS_KEY);\n }",
"@Override\n\tpublic PrivateKey readPrivateKey(String file, String alias, String password) {\n\t\tKeyStore ks;\n\t\ttry {\n\t\t\tks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(file));\n\t\t\tks.load(in, password.toCharArray());\n\n\t\t\tif (ks.isKeyEntry(alias)) {\n\t\t\t\tPrivateKey pk = (PrivateKey) ks.getKey(alias, password.toCharArray());\n\t\t\t\treturn pk;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public KeyStore getKeyStore() {\n return keyStore;\n }",
"public static X509Certificate getX509Certificate(KeyStore keyStore) {\r\n String alias = null;\r\n try {\r\n Enumeration<String> aliases = keyStore.aliases();\r\n if (!aliases.hasMoreElements()) {\r\n throw new RuntimeException(\"KeyStore contains no aliases\");\r\n }\r\n alias = aliases.nextElement();\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could obtain alias: \" + alias + \" in the userPKCS12 keystore\", ex);\r\n }\r\n try {\r\n Certificate[] certificateChain = keyStore.getCertificateChain(alias);\r\n if (certificateChain == null || certificateChain.length == 0) {\r\n throw new RuntimeException(\"KeyStore contains no certificate with alias \" + alias);\r\n }\r\n return (X509Certificate) certificateChain[0];\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could not obtain X509Certificate from userPKCS12 keystore using alias: \" + alias, ex);\r\n }\r\n }",
"public final String getCredentialsFile() {\n return properties.get(CREDENTIALS_FILE_PROPERTY);\n }",
"private static RSAPrivateKey getPrivateKey() throws GeneralSecurityException {\n String privateKeyPath = getPrivateKeyPath();\n String keyStorePath = getKeyStorePath();\n String keyStorePrivateKeyAlias = getKeyStoreAlias();\n if (privateKeyPath != null) {\n File privateKeyFile = new File(privateKeyPath);\n if (privateKeyFile.isFile()) {\n //load privateKey from file\n return loadPrivateKeyFromFile(privateKeyPath, passphrase);\n } else {\n throw new IllegalArgumentException(\n \"The specified privateKey path '\" + privateKeyPath + \"' is invalid\");\n }\n } else if (keyStorePath != null && keyStorePrivateKeyAlias != null) {\n return new KeyStoreManager()\n .getKeyStorePrivateKey(keyStorePath, getKeyStorePassword(), keyStorePrivateKeyAlias);\n } else {\n throw new IllegalArgumentException(\n \"Could not load the privateKey for authentication. Please check the privateKey parameters in your input.\");\n }\n }",
"public Optional<AuthLoginCert> authLoginCert() {\n return Codegen.objectProp(\"authLoginCert\", AuthLoginCert.class).config(config).get();\n }",
"public KeyStore.PrivateKeyEntry getPrivateKeyEntry() throws Exception {\n KeyStore.Entry entry = keyStore.getEntry(aliasName, null);\n if (!(entry instanceof KeyStore.PrivateKeyEntry)) {\n return null;\n }\n else {\n return ((KeyStore.PrivateKeyEntry) entry);\n }\n }",
"public static PrivateKey loadPrivateKey(String path, String alias, String storepassword) {\n\n PrivateKey privateKey = null;\n try {\n KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n keyStore.load(new FileInputStream(path), storepassword.toCharArray());\n KeyStore.PrivateKeyEntry prvKeyEntry = (KeyStore.PrivateKeyEntry) keyStore.getEntry(alias, new KeyStore.PasswordProtection(storepassword.toCharArray()));\n privateKey = prvKeyEntry.getPrivateKey();\n } catch (Exception e) {\n Logger.error(\"Error loading private key\");\n } finally {\n return privateKey;\n }\n }",
"private String getCredentials() {\n String credentials = \"\";\n AccountManager accountManager = AccountManager.get(getContext());\n\n final Account availableAccounts[] = accountManager.getAccountsByType(AccountGeneral.ACCOUNT_TYPE);\n\n //there should be only one ERT account\n if(availableAccounts.length > 0) {\n Account account = availableAccounts[0];\n AccountManagerFuture<Bundle> future = accountManager.getAuthToken(account, AccountGeneral.AUTHTOKEN_TYPE_FULL_ACCESS, null, null, null, null);\n try {\n Bundle bundle = future.getResult();\n String accountName = bundle.getString(AccountManager.KEY_ACCOUNT_NAME);\n String token = bundle.getString(AccountManager.KEY_AUTHTOKEN);\n credentials = accountName + \":\" + token;\n } catch (OperationCanceledException | IOException | AuthenticatorException e) {\n Log.e(LOG_TAG, e.getMessage());\n }\n }\n return credentials;\n }",
"public String getTlsCert();",
"private static PrivateKey getKeyStorePrivateKey(File keyStoreFile, String keyStorePwd) throws Exception{\n\t\tKeyStore ks = getLoadKeyStore(keyStoreFile, keyStorePwd);\n\t\tPrivateKey privateKey = null;\n\n\t\ttry {\n\t\t\tEnumeration<String> aliasEnum = ks.aliases();\n\t\t\twhile (aliasEnum.hasMoreElements()) {\n\t\t\t\tString alias = aliasEnum.nextElement();\n\t\t\t\tif (ks.isKeyEntry(alias)) {\n\t\t\t\t\tKey key = ks.getKey(alias, keyStorePwd.toCharArray());\n\t\t\t\t\tif (key instanceof PrivateKey) {\n\t\t\t\t\t\tprivateKey = (PrivateKey) key;\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} catch (Exception ex) {\n\t\t\tthrow new Exception(\"获取私钥[\" + keyStoreFile.getName() + \"]出现异常,口令[\" + keyStorePwd + \"],原因[\"+ ex.getMessage() + \"]\");\n\t\t}\n\t\treturn privateKey;\n\t}",
"public java.lang.String getCredentialId() {\r\n return credentialId;\r\n }",
"public HwKeystoreManager getKeyStoreManager() {\n return this.mKeyStore;\n }",
"public static synchronized Credentials getCredentialByUserIDKey(int userID, String key){\n\t\t\tConnection connection;\n\t\t\tCredentials cred = null;\n\t\t \tPreparedStatement statement = null;\n\t\t\tString preparedSQL = \"Select * From credential Where User_ID = ? And RegKey =?\";\n\t\t\t\n\t\t try{\n\t\t \tconnection = DBConnector.getConnection();\n\t\t \tstatement = connection.prepareStatement(preparedSQL);\n\t\t \tstatement.setInt(1,userID);\n\t\t \tstatement.setString(2,key);\n\t\t\t\tResultSet rs = statement.executeQuery();\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tcred = new Credentials();\n\t\t\t\t\tcred.setCredID(rs.getInt(1));\n\t\t\t\t\tcred.setEmail(rs.getString(2));\n\t\t\t\t\tcred.setPass(rs.getString(3));\n\t\t\t\t\tcred.setUserID(rs.getInt(4));\n\t\t\t\t\tcred.setRole(rs.getString(5));\n\t\t\t\t\tcred.setValid(rs.getInt(6));\n\t\t\t\t\tcred.setRegKey(rs.getString(7));\n\t\t\t\t}\t\n\t\t\t\trs.close();\t\t\n\t\t\t\tstatement.close();\n\t\t\t\tconnection.close();\n\t\t\t}\n\t\t catch (SQLException ex){\n\t\t\t\tSystem.out.println(\"Error: \" + ex);\n\t\t\t\tSystem.out.println(\"Query: \" + statement.toString());\n\t\t\t}\n\t\t\treturn cred;\n\t}",
"private PrivateKey getMyPrivateKey() throws Exception {\n\n\t\tKey myKeyPair = null;\n\t\ttry {\n\t\t\tmyKeyPair = keyStore.getKey(keyPairAlias, keyPairPassword.toCharArray());\n\t\t} catch (UnrecoverableKeyException | KeyStoreException | NoSuchAlgorithmException e) {\n\t\t\twriteToLog(\"The key: \\\"\" + keyPairAlias + \"\\\" cannot be recovered.\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"The key: \\\"\" + keyPairAlias + \"\\\" cannot be recovered.\", e);\n\t\t}\n\n\t\tPrivateKey myPrivateKey;\n\t\tif (myKeyPair instanceof PrivateKey) {\n\t\t\tmyPrivateKey = (PrivateKey) myKeyPair;\n\t\t} else {\n\t\t\twriteToLog(\"The key: \" + keyPairAlias + \" is not a private-key\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"The key: \" + keyPairAlias + \" is not a private-key\");\n\t\t}\n\t\treturn myPrivateKey;\n\t}",
"public KeyPair getKeyPair(String alias, String password) throws CryptoException {\n\t\tPrivateKey privateKey = (PrivateKey)getPrivateKey(alias, password);\n\t\tif(privateKey != null) {\n\t\t\tPublicKey publicKey = (PublicKey)getPublicKey(alias, password);\n\t\t\treturn new KeyPair(publicKey, privateKey);\t\t\n\t\t}\n\t\treturn null;\n\t}",
"public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}",
"public KeyStoreSigner(@Nonnull KeyStore keyStore, char[] password, String alias) {\n\tthis.keyStore = keyStore;\n\tthis.password = password;\n\tthis.alias = alias;\n }",
"public String getCredentialId() {\n return this.CredentialId;\n }",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"public String getPassword() {\r\n \t\treturn properties.getProperty(KEY_PASSWORD);\r\n \t}",
"public X509ExtendedKeyManager getKeyManager();",
"public PrivateKey getPrivateKey(String alias) {\n if (alias != null)\n\t\t System.out.println(\"==KeyManager. Get private key for \" + alias);\n\t\tPrivateKey pk = myKeyManager.getPrivateKey(alias);\n\t\treturn pk;\n\t}",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"java.lang.String getAuth();",
"java.lang.String getSecret();",
"protected static Credentials getServiceCredentials() throws AnaplanAPIException {\n if (authType == AUTH_TYPE.CERT) {\n try {\n return new Credentials(getCertificate(), getPrivateKey());\n } catch (Exception e) {\n throw new AnaplanAPIException(\"Could not initialise service credentials\", e);\n }\n } else if (authType == AUTH_TYPE.OAUTH) {\n return new Credentials(clientId);\n }\n return new Credentials(getUsername(), getPassphrase());\n }",
"public String getCustomKeyStoreId() {\n return this.customKeyStoreId;\n }",
"@Deprecated\n\tpublic KeyStore getKeyStore() {\n\t\treturn keystore;\n\t}",
"public String getDocumentPassword() {\r\n\t\tString query = \"{ CALL GET_DOCUMENT_PASSWORD(?) }\";\r\n\t\tString pwd = null;\r\n\t\t\r\n\t\ttry (Connection connection = DatabaseConnection.getMySQLConnection();\r\n\t\t\t CallableStatement stmt = connection.prepareCall(query);) {\r\n\t\t\tstmt.setInt(1, policyId);\r\n\t\t\tResultSet result = stmt.executeQuery();\r\n\t\t\twhile (result.next()) {\r\n\t\t\t\tpwd = result.getString(\"password\");\r\n\t\t\t}\r\n\t\t\treturn pwd;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new ReportGenerationException(\"An error occurred while retrieving reports to be generated.\", e);\r\n\t\t}\r\n\t}",
"@Nonnull\n public static KeyStore loadKeyStore(String filename, String password)\n throws IOException, GeneralSecurityException {\n return loadKeyStore(FileUtil.getContextFile(filename), password);\n }",
"String getComponentAppSecret();",
"public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;",
"private PrivateKey getUserKey() throws KeyChainException, InterruptedException {\n return KeyChain.getPrivateKey(getApplicationContext(), mCurrentProfile.getUserCertificateAlias());\n\n }",
"public String getClave() {\n\n\t\ttry {\n\t\t\tConnection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/keyring\", \"root\" ,\"\");\n\t\t\tStatement sql = conexion.createStatement();\n\t\t\tResultSet resultado = sql.executeQuery(\"SELECT Password FROM password\");\n\t\t\tString clave;\n\n\t\t\tif (resultado.next()) {\n\t\t\t\tclave = resultado.getString(\"Password\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tclave = \"\";\n\t\t\t}\n\n\t\t\tconexion.close();\n\t\t\treturn clave;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public String getAccessKey() {\n return cred.getAWSAccessKeyId();\n }",
"private static KeyStore getLoadKeyStore(File keyStoreFile, String keyStorePwd) throws Exception {\n\t\tKeyStore ks = null;\n\t\tInputStream ksInput = null;\n\t\ttry {\n\t\t\t//ks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE, new BouncyCastleProvider());\n\t\t\tks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE);\n\t\t\tksInput = new BufferedInputStream(new FileInputStream(keyStoreFile));\n\t\t\tks.load(ksInput, keyStorePwd.toCharArray());\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow new Exception(\"加载证书密钥库[\" + keyStoreFile.getName() + \"]失败,原因[\" + ex.getMessage() + \"]\");\n\t\t} finally {\n\t\t\t//IOUtils.closeQuietly(ksInput);\n\t\t}\n\t\treturn ks;\n\t}",
"public String getKmsAccessKey() {return this.databaseConfig.getProperty(\"kmsAccessKey\");}",
"String getCertificate();",
"com.google.protobuf.ByteString getMasterKey();",
"@Nullable public String getTrustStorePassword() {\n return trustStorePassword;\n }",
"public void importKeyFromJcaKeystore(String jcakeystoreFilename,\n String keystorePassword,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n FileInputStream keystoreStream;\n KeyStore jcaKeystore;\n\n // Load the keystore\n keystoreStream = new FileInputStream(new File(jcakeystoreFilename));\n\n try {\n jcaKeystore = KeyStore.getInstance(KeyStore.getDefaultType());\n\n if (keystorePassword == null) {\n jcaKeystore.load(keystoreStream, null);\n } else {\n jcaKeystore.load(keystoreStream,\n keystorePassword.toCharArray());\n }\n } finally {\n keystoreStream.close();\n }\n\n importKeyFromJcaKeystore(jcaKeystore,\n alias,\n domain);\n }",
"public File getMySQLSSLTrustStore() throws GuacamoleException {\n return getProperty(MySQLGuacamoleProperties.MYSQL_SSL_TRUST_STORE);\n }",
"java.lang.String getServerSecret();"
] | [
"0.6737188",
"0.6554637",
"0.65227765",
"0.6455465",
"0.6375065",
"0.62809235",
"0.6241981",
"0.61765426",
"0.6126623",
"0.6125564",
"0.6077324",
"0.60534704",
"0.60534704",
"0.60534704",
"0.6026971",
"0.601859",
"0.59312695",
"0.5925514",
"0.59077376",
"0.58736247",
"0.585492",
"0.5832091",
"0.5826638",
"0.58265877",
"0.57975465",
"0.5755729",
"0.56999594",
"0.5691983",
"0.56647",
"0.5659936",
"0.5659936",
"0.5653313",
"0.56393325",
"0.5625608",
"0.5605074",
"0.56026226",
"0.56024855",
"0.558541",
"0.5543986",
"0.5543986",
"0.5541763",
"0.5532858",
"0.55261093",
"0.54822516",
"0.5471307",
"0.5469857",
"0.54193",
"0.54176086",
"0.54162097",
"0.54110247",
"0.53981733",
"0.5392636",
"0.538813",
"0.537467",
"0.53652966",
"0.53453606",
"0.5335447",
"0.5323875",
"0.53143084",
"0.5314067",
"0.53120357",
"0.53115386",
"0.52826446",
"0.52733076",
"0.5251632",
"0.524726",
"0.5225748",
"0.5217885",
"0.51972175",
"0.5194815",
"0.51756305",
"0.51742524",
"0.5172759",
"0.51674086",
"0.51633066",
"0.51612926",
"0.5156193",
"0.5134647",
"0.5131223",
"0.5131223",
"0.5131223",
"0.51296407",
"0.512756",
"0.51266754",
"0.51126015",
"0.5109055",
"0.51039433",
"0.50894284",
"0.50835204",
"0.5075063",
"0.50741416",
"0.50728756",
"0.50669676",
"0.5064595",
"0.5058272",
"0.5057635",
"0.50554556",
"0.5053518",
"0.50448054",
"0.5028008"
] | 0.638941 | 4 |
Returns a KeyManager which accompanies the KeyStore. | public X509ExtendedKeyManager getKeyManager(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"KeyManager createKeyManager();",
"private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}",
"public KeyStore getKeyStore();",
"public KeyProvider getKeyProvider() {\n return keystore; \n }",
"public HwKeystoreManager getKeyStoreManager() {\n return this.mKeyStore;\n }",
"@Bean\n public KeyManager keyManager() {\n final Resource storeFile\n = this.resourceLoader.getResource(\"classpath:\" + this.samlProperties.getKeystore().getName());\n final Map<String, String> passwords = new HashMap<>();\n passwords.put(\n this.samlProperties.getKeystore().getDefaultKey().getName(),\n this.samlProperties.getKeystore().getDefaultKey().getPassword()\n );\n return new JKSKeyManager(\n storeFile,\n this.samlProperties.getKeystore().getPassword(),\n passwords,\n this.samlProperties.getKeystore().getDefaultKey().getName()\n );\n }",
"public MyKeyManager(Parameters p) throws Exception {\n\t\tparms = p;\n\t\tKeyManager[] keymanager = null; \n\t\tint printKeyManager = parms.getPrintKeyStore(); // if the key store should be printed\n\t\tString keyStoreName = parms.getKeystoreName();\n\t\tString keyStorePassword = parms.getKeyStorePassword();\n\t\tString keyStoreType = parms.getKeystoreType();\n\t\t\n\t\tSystem.out.println(\"==KeyManager KeyStore name:\" +keyStoreName + \", type:\" + keyStoreType );\n\t\t// AlgorithmConstraints a = new AlgorithmConstraints();\n\t\ttry {\n\t\t\t// standard stuff \n\t\t\tkeyStore = KeyStore.getInstance(keyStoreType );\n\t\t\tkeyStore.load(new FileInputStream(keyStoreName), keyStorePassword.toCharArray());\n\t\t\t\n\t\t\tSystem.out.println(\"==KeyManager provider:\" + keyStore.getProvider().toString());\n\t\t\t// list all of the names in the keystore \n\t\t\tif (printKeyManager > 0 )\n\t\t\t\tprintKeyStore(printKeyManager);\n\t\t//\tsummariseKeyStore();\n\t\t\t// set it up - standard stuff\n\t\t\tKeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\n\n\t\t\t// read the file into the key manager factory\n\t\t\tkeyManagerFactory.init(keyStore, keyStorePassword.toCharArray());\n\t\t\tkeymanager = keyManagerFactory.getKeyManagers();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"NoSuchAlgorithmException EXCEPTION:\" + e);\n\t\t\t// e.printStackTrace();\n\t\t\tthrow e;\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"UnrecoverableKeyException EXCEPTION:\" + e);\n\t\t\t// e.printStackTrace();\n\t\t\tthrow e;\n\t\t} catch (KeyStoreException | CertificateException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t\tmyKeyManager = (X509KeyManager) keymanager[0];\n\t}",
"@Bean(name = \"keyManager\")\n\tpublic KeyManager keyManager() {\n\t\tDefaultResourceLoader loader = new DefaultResourceLoader();\n\t\tResource storeFile = loader\n\t\t\t\t.getResource(\"classpath:samlKeystoreDev.jks\");\n\t\tString storePass = \"nalle123\";\n\t\tMap<String, String> passwords = new HashMap<String, String>();\n\t\tpasswords.put(\"localhost\", \"nalle123\");\n\t\tString defaultKey = \"localhost\";\n\t\treturn new JKSKeyManager(storeFile, storePass, passwords, defaultKey);\n\t}",
"public KeyStore getKeyStore() {\n return keyStore;\n }",
"public PublicKeyStoreBuilderBase getKeystore() {\n return keystore;\n }",
"public URL getKeyStore() {\n URL keyStore = null;\n if (keyStoreLocation != null) {\n try {\n keyStore = new URL(\"file:\" + keyStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Keystore has a malformed name: \" + keyStoreLocation, e);\n }\n }\n return keyStore;\n }",
"public KeyManager() {\r\n keys = new boolean[256];\r\n }",
"public static KBoxManager get() {\r\n\t\tif (_this == null) {\r\n\t\t\t_this = new KBoxManager();\r\n\t\t}\r\n\t\treturn _this;\r\n\t}",
"public KeyguardManager getKeyguardManager() {\n return (KeyguardManager) this.mService.mContext.getSystemService(KeyguardManager.class);\n }",
"public interface KeyManager {\n CreateKeyResponse createKey(CreateKeyRequest createKeyRequest);\n RegisterKeyResponse registerKey(RegisterKeyRequest registerKeyRequest);\n RegisterKeyResponse registerAsymmetricKey(RegisterAsymmetricKeyRequest registerKeyRequest);\n DeleteKeyResponse deleteKey(DeleteKeyRequest deleteKeyRequest);\n TransferKeyResponse transferKey(TransferKeyRequest keyRequest);\n GetKeyAttributesResponse getKeyAttributes(GetKeyAttributesRequest keyAttributesRequest);\n SearchKeyAttributesResponse searchKeyAttributes(SearchKeyAttributesRequest searchKeyAttributesRequest);\n}",
"public com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource.Builder\n getSecretManagerKeySourceBuilder() {\n return getSecretManagerKeySourceFieldBuilder().getBuilder();\n }",
"protected SafeHashMap.KeySet instantiateKeySet()\n {\n return new KeySet();\n }",
"public MEKeyTool() {\n keystore = new PublicKeyStoreBuilderBase();\n }",
"alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore();",
"public static PasswordManager getInstance() {\n try {\n Optional<String> absent = Optional.absent();\n return CACHED_INSTANCES\n .get(new AbstractMap.SimpleEntry<Optional<String>, Boolean>(absent, shouldUseStrongEncryptor(new State())));\n } catch (ExecutionException e) {\n throw new RuntimeException(\"Unable to get an instance of PasswordManager\", e);\n }\n }",
"private static KeyStrokeMapProvider getGenerator() {\n if (generator == null) {\n try {\n String gname =\n System.getProperty(\"abbot.keystroke_map_generator\",\n \"abbot.tester.KeyStrokeMap\");\n if (gname != null) {\n generator = (KeyStrokeMapProvider)\n Class.forName(gname).newInstance();\n }\n }\n catch(Exception e) {\n Log.warn(e);\n }\n }\n return generator;\n }",
"public LazyKeyManager(Configuration config, KeyManager prevMgr) {\n super(config);\n keyList = prevMgr.keyList;\n }",
"public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;",
"@Override\n public KeyStoreView fromKeyStore(KeyStore keyStore, Function<String, char[]> keyPassword) {\n return new DefaultKeyStoreView(\n new DefaultKeyStoreSourceImpl(metadataOper, keyStore, oper, keyPassword)\n );\n }",
"public SingleCertKeyStoreProvider() {\r\n super(\"PKCS7\", PROVIDER_VERSION, \"KeyStore for a PKCS7 or X.509 certificate\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n AccessController.doPrivileged(new java.security.PrivilegedAction<Object>() {\r\n \t/** {@inheritdoc} */\r\n @Override\r\n\t\t\tpublic Object run() {\r\n put(\"KeyStore.PKCS7\", \"es.gob.afirma.keystores.single.SingleCertKeyStore\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n return null;\r\n }\r\n });\r\n }",
"public AppEngineDataStoreFactory build() {\n return new AppEngineDataStoreFactory(this);\n }",
"static final synchronized AbstractRecordStoreLock getLockInstance(\n SecurityToken token, int suiteId, String storeName) {\n\n token.checkIfPermissionAllowed(Permissions.MIDP);\n String base = RmsEnvironment.getSecureFilenameBase(suiteId);\n String lockName = base + \"#\" + storeName;\n\n return new RecordStoreLock(token, lockName);\n }",
"public static KeyManagerFactory loadKeyStore( String keyStoreFile, String keyStorePasswordStr ) throws Exception\n {\n char[] keyStorePassword = Strings.isEmpty( keyStorePasswordStr ) ? null : keyStorePasswordStr.toCharArray();\n\n if ( !Strings.isEmpty( keyStoreFile ) )\n {\n // We have a provided KeyStore file: read it\n KeyStore keyStore = KeyStore.getInstance( KeyStore.getDefaultType() );\n\n try ( InputStream is = Files.newInputStream( Paths.get( keyStoreFile ) ) )\n {\n keyStore.load( is, keyStorePassword );\n }\n \n /*\n * Verify key store:\n * * Must only contain one entry which must be a key entry\n * * Must contain a certificate chain\n * * The private key must be recoverable by the key store password\n */\n Enumeration<String> aliases = keyStore.aliases();\n \n if ( !aliases.hasMoreElements() )\n {\n throw new KeyStoreException( \"Key store is empty\" );\n }\n \n String alias = aliases.nextElement();\n \n if ( aliases.hasMoreElements() )\n {\n throw new KeyStoreException( \"Key store contains more than one entry\" );\n }\n \n if ( !keyStore.isKeyEntry( alias ) )\n {\n throw new KeyStoreException( \"Key store must contain a key entry\" );\n }\n \n if ( keyStore.getCertificateChain( alias ) == null )\n {\n throw new KeyStoreException( \"Key store must contain a certificate chain\" );\n }\n \n if ( keyStore.getKey( alias, keyStorePassword ) == null )\n {\n throw new KeyStoreException( \"Private key must be recoverable by the key store password\" );\n }\n \n // Set up key manager factory to use our key store\n String algorithm = Security.getProperty( \"ssl.KeyManagerFactory.algorithm\" );\n \n if ( algorithm == null )\n {\n algorithm = KeyManagerFactory.getDefaultAlgorithm();\n }\n \n KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance( algorithm );\n \n keyManagerFactory.init( keyStore, keyStorePassword );\n \n return keyManagerFactory;\n }\n else\n {\n return null;\n }\n }",
"@NonNull\n @Override\n protected Key generateKey(@NonNull final KeyGenParameterSpec spec) throws GeneralSecurityException {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n throw new KeyStoreAccessException(\"Unsupported API\" + Build.VERSION.SDK_INT + \" version detected.\");\n }\n\n final KeyGenerator generator = KeyGenerator.getInstance(getEncryptionAlgorithm(), KEYSTORE_TYPE);\n\n // initialize key generator\n generator.init(spec);\n\n return generator.generateKey();\n }",
"public static PropertyStore getStore(final String key) {\n PropertyStore returnMe = _propStore.get(key);\n if (returnMe == null) {\n returnMe = new PropertyStore(new ScopedPreferenceStore(new InstanceScope(), key), new ScopedPreferenceStore(\n new ConfigurationScope(), key));\n _propStore.put(key, returnMe);\n }\n return returnMe;\n }",
"@Deprecated\n\tpublic KeyStore getKeyStore() {\n\t\treturn keystore;\n\t}",
"public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap.KeySet();\n }",
"public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap.KeySet.Iterator();\n }",
"public Key getKey() {\n\t\tString fieldvalue = getValue(\"sys_id\");\n\t\tassert fieldvalue != null;\n\t\treturn new Key(fieldvalue);\n\t}",
"public static BookmarkStore getInstance() {\n return store;\n }",
"protected static String getKeyStorePath() {\n return keyStorePath;\n }",
"public KeyStoreToken getKeyStoreToken(String choice)\n\t\t\tthrows IllegalArgumentException, FirmapiuException {\n\t\tthrow new IllegalArgumentException(RB.getString(\"factoryerror1\")\n\t\t\t\t+ \" : \" + this.getClass().getCanonicalName());\n\t}",
"public synchronized KeyBinding getKeyBinding() {\r\n\t\tif (keyBinding == null){\r\n\t\t\tkeyBinding = new KeyBinding();\r\n\t\t}\r\n\t\treturn keyBinding;\r\n\t}",
"public Map<String,KeystoreMetadata> getKeystores()\r\n {\r\n return _keystoreMap;\r\n }",
"public static KeggAccessor getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new KeggAccessor();\n\t\t}\n\t\treturn instance;\n\t}",
"public alluxio.proto.journal.KeyValue.CreateStoreEntry.Builder getCreateStoreBuilder() {\n bitField0_ |= 0x00000100;\n onChanged();\n return getCreateStoreFieldBuilder().getBuilder();\n }",
"<K, V> KeyValueStoreReader<K, V> getStore(String storeName) throws IOException;",
"public abstract Key getSmallest();",
"@Override\n\tpublic Iterator getKeyIterator() {\n\t\treturn new KeyIterator();\n\t}",
"final public OptimizedKey createOptimizedKey() {\r\n\t\treturn new OptimizedKey();\r\n\t}",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource\n getSecretManagerKeySource() {\n if (secretSourceCase_ == 7) {\n return (com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource) secretSource_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource.getDefaultInstance();\n }",
"@Override Iterator<K> newKeyIterator() {\n return new KeyIterator();\n }",
"public kvClient.pb.Key.Builder getKBuilder() {\n return getKFieldBuilder().getBuilder();\n }",
"public Key getKey()\r\n { \r\n return key; \r\n }",
"public static SessionKeeper getInstance(){\r\n if (sessionKeeperInstance == null) sessionKeeperInstance = new SessionKeeper();\r\n return sessionKeeperInstance;\r\n }",
"public KeyGenerator() {\n this.publicList = new SinglyLinkedList();\n this.privateList = new PrivateKey();\n }",
"public KVCommInterface getStore();",
"private <K> AbstractKeyedStateBackend<K> createKeyedBackend(TypeSerializer<K> keySerializer) throws Exception {\n\t\treturn createKeyedBackend(keySerializer, new DummyEnvironment());\n\t}",
"public static KeyStore getKeyStoreFromFile(String keystoreName, String password,\n String home) throws Exception {\n Path tenantKeystorePath = Paths.get(home, \"repository\", \"resources\", \"security\", keystoreName);\n FileInputStream file = new FileInputStream(tenantKeystorePath.toString());\n KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());\n keystore.load(file, password.toCharArray());\n return keystore;\n }",
"public static StoreController getInstance() {\n\t\tif (storeController == null) {\n\t\t\tsynchronized (StoreController.class) {\n\t\t\t\tif (storeController == null) {\n\t\t\t\t\tstoreController = new StoreController();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn storeController;\n\t}",
"public final InputMethodManager i() {\n return (InputMethodManager) this.k.b();\n }",
"public Iterator<K> getKeyIterator() \n { \n Iterator<K> myIterator = new KeyIterator(this);\n return myIterator; \n }",
"K key();",
"K key();",
"public short key();",
"public MEKeyTool(String meKeystoreFilename)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(new File(meKeystoreFilename));\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }",
"public synchronized static GameManager getInstance() {\n if (null == gameManager) {\n gameManager = new GameManager();\n }\n return gameManager;\n }",
"OpenSSLKey mo134201a();",
"public Key getKey() {\n\t\treturn getKey(settings, url);\n\t}",
"public static ItemManager getItemManager() {\n\t\treturn INSTANCE;\n\t}",
"private static KeyStore buildKeyStore(Context context, int certRawResId) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException {\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n\n // read and add certificate authority\n Certificate cert = readCert(context, certRawResId);\n keyStore.setCertificateEntry(\"ca\", cert);\n\n return keyStore;\n }",
"public static Keyboard getKeyboard()\r\n\t{\r\n\t\t\r\n\t\tSystem.out.println ( \"What is the brand of keyboard?\" );\r\n\t\tString brand = input.next ( );\r\n\t\tSystem.out.println ( \"What is the model of keyboard?\" );\r\n\t\tString model = input.next ( );\r\n\t\tSystem.out.println ( \"What are the types of switches?\" );\r\n\t\tString switchType = input.next( );\r\n\t\tSystem.out.println ( \"How many do you have in stock?\" );\r\n\t\tint stock = input.nextInt( );\r\n\t\tSystem.out.println ( \"What is the price?\" );\r\n\t\tdouble price = input.nextDouble( );\r\n\t\tKeyboard kb1 = new Keyboard(brand, model, switchType, stock, price);\r\n\r\n\t\treturn kb1;\r\n\t\t\r\n\t}",
"public static CacheManager getCacheManager()\n \t{\n \t\tCacheManager cm = CacheManager.getInstance();\n \t\tif(cm==null) {cm=CacheManager.create();}\n \t\treturn cm;\n \t}",
"String newKey();",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource\n getSecretManagerKeySource() {\n if (secretManagerKeySourceBuilder_ == null) {\n if (secretSourceCase_ == 7) {\n return (com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource)\n secretSource_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource\n .getDefaultInstance();\n } else {\n if (secretSourceCase_ == 7) {\n return secretManagerKeySourceBuilder_.getMessage();\n }\n return com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource\n .getDefaultInstance();\n }\n }",
"public synchronized static RecordManager instance() {\n\t\tif (s_Instance == null) s_Instance = new RecordManager();\n\t\treturn s_Instance;\n\t}",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.SecretManagerSourceOrBuilder\n getSecretManagerKeySourceOrBuilder() {\n if (secretSourceCase_ == 7) {\n return (com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource) secretSource_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource.getDefaultInstance();\n }",
"public static SessionManager get(Context context) {\n \tif (self == null) {\n \t\tself = new SessionManager(context);\n \t}\n \treturn self;\n }",
"public static synchronized IndexingManager getInstance() {\n if (indexManager == null) {\n indexManager = new IndexingManager();\n return indexManager;\n } else {\n return indexManager;\n }\n }",
"public com.google.cloud.datafusion.v1beta1.CryptoKeyConfig.Builder getCryptoKeyConfigBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getCryptoKeyConfigFieldBuilder().getBuilder();\n }",
"public static GameManager getInstance() {\n if (GameManager.instance == null) {\n GameManager.instance = new GameManager();\n }\n return GameManager.instance;\n }",
"public Set<K> keySet() {\n\t\treturn new KeySet();\n\t}",
"public Key getKey() {\n return Key.of(getTone(), getQuality());\n }",
"static KeyExtractor.Factory noKey() {\n return KeyExtractors.NoKey::new;\n }",
"public MEKeyTool(File meKeystoreFile)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(meKeystoreFile);\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }",
"public MyKeyAdapter() {\r\n super();\r\n }",
"public CryptoKey getMyKey() {\n return myKey;\n }",
"public LoginManager getLoginManager() {\n AppMethodBeat.m2504i(92642);\n LoginManager instance = LoginManager.getInstance();\n instance.setDefaultAudience(LoginButton.this.getDefaultAudience());\n instance.setLoginBehavior(LoginButton.this.getLoginBehavior());\n instance.setAuthType(LoginButton.this.getAuthType());\n AppMethodBeat.m2505o(92642);\n return instance;\n }",
"String key();",
"public static Key getUserKey() throws IOException {\n\t\tif (localKey.get() == null) {\n\t\t\ttry {\n\t\t\t\tlocalKey.set(cipherKeyProvider.loadKey());\n\t\t\t} catch (KeyLoadingException e) {\n\t\t\t\tthrow new IOException(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t\treturn localKey.get();\n\t}",
"public KeyEncryptionKeyInfo() {\n }",
"public static Keys generateKeys() throws GeneralSecurityException {\n KeyGenerator gen = KeyGenerator.getInstance(ENC_ALGORITHM);\n gen.init(KEYLEN);\n SecretKey encKey = gen.generateKey();\n\n /* XXX: It's probably unnecessary to create a different keygen for the\n * MAC, but JCA's API design suggests we should just in case ... */\n gen = KeyGenerator.getInstance(MAC_ALGORITHM);\n gen.init(KEYLEN);\n SecretKey macKey = gen.generateKey();\n\n return new Keys(encKey, macKey);\n }",
"public PrivateKey getKey();",
"public alluxio.proto.journal.KeyValue.CreateStoreEntry getCreateStore() {\n return createStore_;\n }",
"public static synchronized SettingsStore getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new SettingsStore();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public Class<?> getKeyClass() \n\t{\n\t return keyClass ;\n\t}",
"private synchronized PrivateKey getPrivateKey() throws Exception {\n if (privateKey == null) {\n KeyStore keyStore = loadKeyStore();\n privateKey = (PrivateKey)keyStore.getKey(aliasName, password.toCharArray());\n }\n\t\treturn privateKey;\n\t}",
"public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}",
"public static MapsManager getMapsManager() {\n if (mapsManager == null)\n mapsManager = new MapsManager();\n return mapsManager;\n }",
"SessionManager get();",
"public static BusquedaMaker getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new BusquedaMaker();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public String getKeyStorePassword() {\n return keyStorePassword;\n }",
"@Override\n\tpublic Set<K> keySet() {\n\t\t// TODO\n\t\treturn new KeyView();\n\t}",
"private static KeyStore getLoadKeyStore(File keyStoreFile, String keyStorePwd) throws Exception {\n\t\tKeyStore ks = null;\n\t\tInputStream ksInput = null;\n\t\ttry {\n\t\t\t//ks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE, new BouncyCastleProvider());\n\t\t\tks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE);\n\t\t\tksInput = new BufferedInputStream(new FileInputStream(keyStoreFile));\n\t\t\tks.load(ksInput, keyStorePwd.toCharArray());\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow new Exception(\"加载证书密钥库[\" + keyStoreFile.getName() + \"]失败,原因[\" + ex.getMessage() + \"]\");\n\t\t} finally {\n\t\t\t//IOUtils.closeQuietly(ksInput);\n\t\t}\n\t\treturn ks;\n\t}",
"public static DefaultSessionIdentityMaker newInstance() { return new DefaultSessionIdentityMaker(); }"
] | [
"0.7823032",
"0.76427734",
"0.69777966",
"0.64417183",
"0.6420365",
"0.6252431",
"0.6236953",
"0.6168296",
"0.61205155",
"0.6082375",
"0.5863376",
"0.5843176",
"0.5772982",
"0.57217246",
"0.56029856",
"0.55916965",
"0.5567912",
"0.55526435",
"0.5536489",
"0.5508041",
"0.5480638",
"0.5453027",
"0.5401522",
"0.53607976",
"0.5284701",
"0.52827746",
"0.52637976",
"0.52277404",
"0.52276844",
"0.5209702",
"0.51969403",
"0.51826006",
"0.5162958",
"0.51399493",
"0.51295775",
"0.5094215",
"0.50874496",
"0.5084902",
"0.5081161",
"0.5069089",
"0.50623506",
"0.5054796",
"0.5050558",
"0.5048984",
"0.5040563",
"0.5024785",
"0.50200856",
"0.50153774",
"0.49936593",
"0.49877244",
"0.49870473",
"0.49831867",
"0.49769673",
"0.4967896",
"0.49659523",
"0.49595934",
"0.49488738",
"0.49445084",
"0.49445084",
"0.49430382",
"0.4937457",
"0.49363196",
"0.49338293",
"0.4931685",
"0.49271804",
"0.49133816",
"0.4899461",
"0.48972762",
"0.4895765",
"0.48902395",
"0.48893362",
"0.48797628",
"0.4879393",
"0.48781916",
"0.48780146",
"0.48738813",
"0.48717093",
"0.4871701",
"0.4865775",
"0.4858624",
"0.48510525",
"0.48489493",
"0.48444328",
"0.483461",
"0.48268926",
"0.48226377",
"0.4822473",
"0.48144168",
"0.48134458",
"0.48014268",
"0.47998336",
"0.4799409",
"0.47988826",
"0.47963813",
"0.47857925",
"0.47849357",
"0.4778826",
"0.47758773",
"0.47725275",
"0.4765028"
] | 0.6530037 | 3 |
Helper method to get private key from the underlying keystore | public PrivateKey getKey(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PrivateKey getPrivateKey();",
"private static RSAPrivateKey getPrivateKey() throws GeneralSecurityException {\n String privateKeyPath = getPrivateKeyPath();\n String keyStorePath = getKeyStorePath();\n String keyStorePrivateKeyAlias = getKeyStoreAlias();\n if (privateKeyPath != null) {\n File privateKeyFile = new File(privateKeyPath);\n if (privateKeyFile.isFile()) {\n //load privateKey from file\n return loadPrivateKeyFromFile(privateKeyPath, passphrase);\n } else {\n throw new IllegalArgumentException(\n \"The specified privateKey path '\" + privateKeyPath + \"' is invalid\");\n }\n } else if (keyStorePath != null && keyStorePrivateKeyAlias != null) {\n return new KeyStoreManager()\n .getKeyStorePrivateKey(keyStorePath, getKeyStorePassword(), keyStorePrivateKeyAlias);\n } else {\n throw new IllegalArgumentException(\n \"Could not load the privateKey for authentication. Please check the privateKey parameters in your input.\");\n }\n }",
"private synchronized PrivateKey getPrivateKey() throws Exception {\n if (privateKey == null) {\n KeyStore keyStore = loadKeyStore();\n privateKey = (PrivateKey)keyStore.getKey(aliasName, password.toCharArray());\n }\n\t\treturn privateKey;\n\t}",
"public String getPrivateKey();",
"public String getPrivateKey();",
"public PrivateKey getMyPrivateKey() {\n return myKeyPair.getPrivate();\n }",
"private PrivateKey getMyPrivateKey() throws Exception {\n\n\t\tKey myKeyPair = null;\n\t\ttry {\n\t\t\tmyKeyPair = keyStore.getKey(keyPairAlias, keyPairPassword.toCharArray());\n\t\t} catch (UnrecoverableKeyException | KeyStoreException | NoSuchAlgorithmException e) {\n\t\t\twriteToLog(\"The key: \\\"\" + keyPairAlias + \"\\\" cannot be recovered.\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"The key: \\\"\" + keyPairAlias + \"\\\" cannot be recovered.\", e);\n\t\t}\n\n\t\tPrivateKey myPrivateKey;\n\t\tif (myKeyPair instanceof PrivateKey) {\n\t\t\tmyPrivateKey = (PrivateKey) myKeyPair;\n\t\t} else {\n\t\t\twriteToLog(\"The key: \" + keyPairAlias + \" is not a private-key\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"The key: \" + keyPairAlias + \" is not a private-key\");\n\t\t}\n\t\treturn myPrivateKey;\n\t}",
"public PrivateKey getPrivateKey() {\n \tif(testingPrivateKey!=null){\n\t\t\t//for unit testing\n\t\t\treturn testingPrivateKey;\t\n\t\t}\n\t\treturn keypair.getPrivate();\n }",
"private PrivateKey getUserKey() throws KeyChainException, InterruptedException {\n return KeyChain.getPrivateKey(getApplicationContext(), mCurrentProfile.getUserCertificateAlias());\n\n }",
"public PrivateKey getPrivateKey(){\n\t\treturn this.privatekey;\n\t}",
"public Key getPrivateKey(String alias, String password) throws CryptoException {\n\t\ttry {\n\t\t\tKey key = keystore.getKey(alias, (password != null ? password.toCharArray() : null));\n\t\t\tif(key instanceof PrivateKey) {\n\t\t\t\treturn key;\n\t\t\t}\t\t\t\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\tlogger.error(\"error recovering key for alias '\" + alias + \"' from the keystore\", e);\n\t\t\tthrow new CryptoException(\"error recovering key for alias '\" + alias + \"' from the keystore\", e);\t\t\t\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tlogger.error(\"invalid algorithm specified in keystore access\", e);\n\t\t\tthrow new CryptoException(\"invalid algorithm specified in keystore access\", e);\n\t\t}\n\t\treturn null;\n\t}",
"private static PrivateKey extractPrivateKey(String privateKeyAlias, String privateKeyPass, KeyStore ks)\n\t\t\tthrows KeyStoreException, NoSuchAlgorithmException, UnrecoverableKeyException {\n\t\tPrivateKey privateKey = null;\n\n\t\t// Samsung cert has diferent alias\n\t\tjava.util.Enumeration<String> alias = ks.aliases();\n\t\twhile (alias.hasMoreElements()) {\n\t\t\tString recievedAliasEntry = alias.nextElement();\n\t\t\tif (ks.isKeyEntry(recievedAliasEntry)) {\n\t\t\t\tprivateKeyAlias = recievedAliasEntry;\n\n\t\t\t\tprivateKey = (PrivateKey) ks.getKey(recievedAliasEntry, privateKeyPass.toCharArray());\n\t\t\t}\n\t\t}\n\n\t\t// get the private key for signing.\n\t\tprivateKey = (PrivateKey) ks.getKey(privateKeyAlias, privateKeyPass.toCharArray());\n\n\t\treturn privateKey;\n\t}",
"public PrivateKey getPrivateKey(String alias) {\n if (alias != null)\n\t\t System.out.println(\"==KeyManager. Get private key for \" + alias);\n\t\tPrivateKey pk = myKeyManager.getPrivateKey(alias);\n\t\treturn pk;\n\t}",
"private KeyPair getPrivateKeyPair() throws IOException {\n final PEMParser pemParser = new PEMParser(new StringReader(sshKey));\n final PEMKeyPair keypair = (PEMKeyPair) pemParser.readObject();\n final JcaPEMKeyConverter converter = new JcaPEMKeyConverter();\n return new KeyPair(\n converter.getPublicKey(SubjectPublicKeyInfo.getInstance(keypair.getPublicKeyInfo())),\n converter.getPrivateKey(keypair.getPrivateKeyInfo()));\n }",
"public static String getPrivateKeyPath() {\n return privateKeyPath;\n }",
"public final PrivateKey getPrivateKey() {\n return this.key;\n }",
"public Key getPrivateKey(String alias) throws CryptoException {\n\t\treturn getPrivateKey(alias, null);\n\t}",
"public java.security.PrivateKey getPrivateKey() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.getPrivateKey():java.security.PrivateKey, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.getPrivateKey():java.security.PrivateKey\");\n }",
"@Accessor(qualifier = \"privateKey\", type = Accessor.Type.GETTER)\n\tpublic String getPrivateKey()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(PRIVATEKEY);\n\t}",
"public String getPrivateKey() {\n return privateKey;\n }",
"public String getPrivateKey() {\n return privateKey;\n }",
"public String getPrivateKey() {\n return privateKey;\n }",
"@NonNull\n public PrivateKey getPrivateKey() {\n return mPrivateKey;\n }",
"public KeyStore.PrivateKeyEntry getPrivateKeyEntry() throws Exception {\n KeyStore.Entry entry = keyStore.getEntry(aliasName, null);\n if (!(entry instanceof KeyStore.PrivateKeyEntry)) {\n return null;\n }\n else {\n return ((KeyStore.PrivateKeyEntry) entry);\n }\n }",
"public static PrivateKey loadPrivateKey(String path, String alias, String storepassword) {\n\n PrivateKey privateKey = null;\n try {\n KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n keyStore.load(new FileInputStream(path), storepassword.toCharArray());\n KeyStore.PrivateKeyEntry prvKeyEntry = (KeyStore.PrivateKeyEntry) keyStore.getEntry(alias, new KeyStore.PasswordProtection(storepassword.toCharArray()));\n privateKey = prvKeyEntry.getPrivateKey();\n } catch (Exception e) {\n Logger.error(\"Error loading private key\");\n } finally {\n return privateKey;\n }\n }",
"public PrivateKey getPrivateKey() {\n File keyFile = new File(baseDirectory, pvtKeyFileName);\n if (!keyFile.exists()) {\n if (!generateKeys()) {\n return null;\n }\n }\n if (!keyFile.exists()) {\n return null;\n }\n try {\n byte[] bytes = FileUtils.readFileToByteArray(keyFile);\n PKCS8EncodedKeySpec ks = new PKCS8EncodedKeySpec(bytes);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n PrivateKey pvt = kf.generatePrivate(ks);\n return pvt;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }",
"public BigInteger getPrivateKey()\n {\n\treturn privateKey;\n }",
"public KeyProvider getKeyProvider() {\n return keystore; \n }",
"public final RSAPrivateKey getRSAPrivateKey() {\n return (RSAPrivateKey) encryptedRSAKeyPair.getRSAKeyPair().getPrivate();\n }",
"private static PrivateKey getKeyStorePrivateKey(File keyStoreFile, String keyStorePwd) throws Exception{\n\t\tKeyStore ks = getLoadKeyStore(keyStoreFile, keyStorePwd);\n\t\tPrivateKey privateKey = null;\n\n\t\ttry {\n\t\t\tEnumeration<String> aliasEnum = ks.aliases();\n\t\t\twhile (aliasEnum.hasMoreElements()) {\n\t\t\t\tString alias = aliasEnum.nextElement();\n\t\t\t\tif (ks.isKeyEntry(alias)) {\n\t\t\t\t\tKey key = ks.getKey(alias, keyStorePwd.toCharArray());\n\t\t\t\t\tif (key instanceof PrivateKey) {\n\t\t\t\t\t\tprivateKey = (PrivateKey) key;\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} catch (Exception ex) {\n\t\t\tthrow new Exception(\"获取私钥[\" + keyStoreFile.getName() + \"]出现异常,口令[\" + keyStorePwd + \"],原因[\"+ ex.getMessage() + \"]\");\n\t\t}\n\t\treturn privateKey;\n\t}",
"public KeyPair loadKeystoreKeyPair(String privateKeyAlias) throws ProviderException {\n try {\n return HwUniversalKeyStoreProvider.loadAndroidKeyStoreKeyPairFromKeystore(this.mKeyStore, privateKeyAlias, this.mEntryUid);\n } catch (UnrecoverableKeyException e) {\n throw new ProviderException(\"Failed to load generated key pair from keystore\", e);\n }\n }",
"public String getKeyPrivate() throws LibMCryptException {\n\t\t\r\n\t\tString privateK = priK.getModulus().toString(16);\r\n\t\treturn privateK;\r\n\t}",
"private static PrivateKey getPrivateKey(String keyStr)\n throws Exception\n {\n return KeyFactory.getInstance(RSA).generatePrivate(new PKCS8EncodedKeySpec(Base64.decode(keyStr)));\n }",
"public PrivateKey makePrivateKey() {\n return new PrivateKey(decryptingBigInt, primesMultiplied);\n }",
"protected final String getPrivateKeyLocation() {\n return this.privateKeyLocation;\n }",
"OpenSSLKey mo134201a();",
"public static PrivateKey getPrivateKey(String privKey) {\n try {\n PemReader pemReader = new PemReader(new StringReader(privKey));\n byte[] content = pemReader.readPemObject().getContent();\n PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(content);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n return kf.generatePrivate(spec);\n } catch (IOException | NoSuchAlgorithmException | InvalidKeySpecException ex) {\n return null;\n }\n }",
"public char[] getPrivateKey() {\n\t\treturn privateKey;\n\t}",
"public PrivateKey getPrivKey() {\r\n\t\treturn this.privKey;\r\n\t}",
"public PrivateKey getPrivateKey(String keyFilePath) throws Exception {\n\t\tFileInputStream fis = new FileInputStream(keyFilePath);\n\t\tbyte[] encodedKey = new byte[fis.available()];\n\t\tfis.read(encodedKey);\n\t\tfis.close();\n\t\tPKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(encodedKey);\n\t\tPrivateKey privateKey = keyFactory.generatePrivate(privateKeySpec);\n\t\treturn privateKey;\n\t}",
"@Override\n\tpublic PrivateKey readPrivateKey(String file, String alias, String password) {\n\t\tKeyStore ks;\n\t\ttry {\n\t\t\tks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(file));\n\t\t\tks.load(in, password.toCharArray());\n\n\t\t\tif (ks.isKeyEntry(alias)) {\n\t\t\t\tPrivateKey pk = (PrivateKey) ks.getKey(alias, password.toCharArray());\n\t\t\t\treturn pk;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"@Nullable\n private synchronized KeyPair readKeyPair() throws GeneralSecurityException, IOException {\n final String methodTag = TAG + \":readKeyPair\";\n\n Logger.v(methodTag, \"Reading Key entry\");\n try {\n final KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE);\n keyStore.load(null);\n\n final Certificate cert = keyStore.getCertificate(KEY_STORE_CERT_ALIAS);\n final Key privateKey = keyStore.getKey(KEY_STORE_CERT_ALIAS, null);\n\n if (cert == null || privateKey == null) {\n Logger.v(methodTag, \"Key entry doesn't exist.\");\n return null;\n }\n\n return new KeyPair(cert.getPublicKey(), (PrivateKey) privateKey);\n } catch (final RuntimeException e) {\n // There is an issue in android keystore that resets keystore\n // Issue 61989: AndroidKeyStore deleted after changing screen lock type\n // https://code.google.com/p/android/issues/detail?id=61989\n // in this case getEntry throws\n // java.lang.RuntimeException: error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long\n // handle it as regular KeyStoreException\n throw new KeyStoreException(e);\n }\n }",
"private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}",
"public PrivateKey getPrivateKey(String file) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException{\n byte[] keyBytes = Files.readAllBytes(new File(file).toPath());\n PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(keyBytes);\n KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n return keyFactory.generatePrivate(spec);\n }",
"@VisibleForTesting\n KeyStore.PrivateKeyEntry getRSAKeyEntry() throws CryptoException, IncompatibleDeviceException {\n try {\n KeyStore keyStore = KeyStore.getInstance(ANDROID_KEY_STORE);\n keyStore.load(null);\n if (keyStore.containsAlias(OLD_KEY_ALIAS)) {\n //Return existing key. On weird cases, the alias would be present but the key not\n KeyStore.PrivateKeyEntry existingKey = getKeyEntryCompat(keyStore, OLD_KEY_ALIAS);\n if (existingKey != null) {\n return existingKey;\n }\n } else if (keyStore.containsAlias(KEY_ALIAS)) {\n KeyStore.PrivateKeyEntry existingKey = getKeyEntryCompat(keyStore, KEY_ALIAS);\n if (existingKey != null) {\n return existingKey;\n }\n }\n\n Calendar start = Calendar.getInstance();\n Calendar end = Calendar.getInstance();\n end.add(Calendar.YEAR, 25);\n AlgorithmParameterSpec spec;\n X500Principal principal = new X500Principal(\"CN=Auth0.Android,O=Auth0\");\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n spec = new KeyGenParameterSpec.Builder(KEY_ALIAS, KeyProperties.PURPOSE_DECRYPT | KeyProperties.PURPOSE_ENCRYPT)\n .setCertificateSubject(principal)\n .setCertificateSerialNumber(BigInteger.ONE)\n .setCertificateNotBefore(start.getTime())\n .setCertificateNotAfter(end.getTime())\n .setKeySize(RSA_KEY_SIZE)\n .setEncryptionPaddings(KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1)\n .setBlockModes(KeyProperties.BLOCK_MODE_ECB)\n .build();\n } else {\n //Following code is for API 18-22\n //Generate new RSA KeyPair and save it on the KeyStore\n KeyPairGeneratorSpec.Builder specBuilder = new KeyPairGeneratorSpec.Builder(context)\n .setAlias(KEY_ALIAS)\n .setSubject(principal)\n .setKeySize(RSA_KEY_SIZE)\n .setSerialNumber(BigInteger.ONE)\n .setStartDate(start.getTime())\n .setEndDate(end.getTime());\n\n KeyguardManager kManager = (KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE);\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n //The next call can return null when the LockScreen is not configured\n Intent authIntent = kManager.createConfirmDeviceCredentialIntent(null, null);\n boolean keyguardEnabled = kManager.isKeyguardSecure() && authIntent != null;\n if (keyguardEnabled) {\n //If a ScreenLock is setup, protect this key pair.\n specBuilder.setEncryptionRequired();\n }\n }\n spec = specBuilder.build();\n }\n\n KeyPairGenerator generator = KeyPairGenerator.getInstance(ALGORITHM_RSA, ANDROID_KEY_STORE);\n generator.initialize(spec);\n generator.generateKeyPair();\n\n return getKeyEntryCompat(keyStore, KEY_ALIAS);\n } catch (CertificateException | InvalidAlgorithmParameterException | NoSuchProviderException | NoSuchAlgorithmException | KeyStoreException | ProviderException e) {\n /*\n * This exceptions are safe to be ignored:\n *\n * - CertificateException:\n * Thrown when certificate has expired (25 years..) or couldn't be loaded\n * - KeyStoreException:\n * - NoSuchProviderException:\n * Thrown when \"AndroidKeyStore\" is not available. Was introduced on API 18.\n * - NoSuchAlgorithmException:\n * Thrown when \"RSA\" algorithm is not available. Was introduced on API 18.\n * - InvalidAlgorithmParameterException:\n * Thrown if Key Size is other than 512, 768, 1024, 2048, 3072, 4096\n * or if Padding is other than RSA/ECB/PKCS1Padding, introduced on API 18\n * or if Block Mode is other than ECB\n * - ProviderException:\n * Thrown on some modified devices when KeyPairGenerator#generateKeyPair is called.\n * See: https://www.bountysource.com/issues/45527093-keystore-issues\n *\n * However if any of this exceptions happens to be thrown (OEMs often change their Android distribution source code),\n * all the checks performed in this class wouldn't matter and the device would not be compatible at all with it.\n *\n * Read more in https://developer.android.com/training/articles/keystore#SupportedAlgorithms\n */\n Log.e(TAG, \"The device can't generate a new RSA Key pair.\", e);\n throw new IncompatibleDeviceException(e);\n } catch (IOException | UnrecoverableEntryException e) {\n /*\n * Any of this exceptions mean the old key pair is somehow corrupted.\n * We can delete both the RSA and the AES keys and let the user retry the operation.\n *\n * - IOException:\n * Thrown when there is an I/O or format problem with the keystore data.\n * - UnrecoverableEntryException:\n * Thrown when the key cannot be recovered. Probably because it was invalidated by a Lock Screen change.\n */\n deleteRSAKeys();\n deleteAESKeys();\n throw new CryptoException(\"The existing RSA key pair could not be recovered and has been deleted. \" +\n \"This occasionally happens when the Lock Screen settings are changed. You can safely retry this operation.\", e);\n }\n }",
"private static void readPrivateKeyFromPKCS11() throws KeyStoreException {\n String configFileName = jarPath + \"pkcs11.cfg\";\r\n\r\n Provider p = null;\r\n try {\r\n p = new SunPKCS11(configFileName);\r\n Security.addProvider(p);\r\n } catch (ProviderException e) {\r\n LanzaError( \"no es correcto el fichero de configuración de la tarjeta\" );\r\n }\r\n \r\n KeyStore ks = null;\r\n try {\r\n ks = KeyStore.getInstance(\"pkcs11\", p);\r\n ks.load(null, clave );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la tarjeta (n.1)\" );\r\n } catch (CertificateException e) {\r\n LanzaError( \"leyendo la tarjeta (n.2)\" );\r\n } catch (IOException e) {\r\n LanzaError( \"leyendo la tarjeta (n.3)\" );\r\n }\r\n\r\n String alias = \"\";\r\n try {\r\n alias = (String) ks.aliases().nextElement();\r\n privateKey = (PrivateKey) ks.getKey(alias, clave);\r\n } catch (NoSuchElementException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.1)\" );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.2)\" );\r\n } catch (UnrecoverableKeyException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.3)\" );\r\n }\r\n certificateChain = ks.getCertificateChain(alias);\r\n }",
"public String getPrivateKeyPassword() {\n\t\treturn privateKeyPassword;\n\t}",
"public BigInteger getPrivKey() {\n if (priv == null)\n throw new MissingPrivateKeyException();\n return priv;\n }",
"private static PrivateKey buildPrivateKeyFromString(String privateKeyAsString) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException, KeyStoreException, CertificateException {\n String privateKeyStrWithoutHeaderFooter = privateKeyAsString.\n replaceAll(\"-----BEGIN PRIVATE KEY-----\", \"\").\n replaceAll(\"-----END PRIVATE KEY-----\", \"\").\n replaceAll(\"\\n\", \"\");\n byte[] privateKeyBytes =\n Base64.getDecoder().decode(privateKeyStrWithoutHeaderFooter.getBytes());\n PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(privateKeyBytes);\n KeyFactory fact = KeyFactory.getInstance(\"RSA\");\n return fact.generatePrivate(keySpec);\n }",
"public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;",
"public static PrivateKey load3tierTestRootCAPrivateKey() {\n return loadPrivateKeyFromResourcePath(\"classpath:attestation/3tier/private/3tier-test-root-CA.der\");\n }",
"public abstract PrivateKey generatePrivate(KeySpec keySpec)\n\t throws InvalidKeySpecException;",
"public String getTlsKey();",
"public static PrivateKey getStoredPrivateKey(String filePath) {\n PrivateKey privateKey = null;\n byte[] keydata = getKeyData(filePath);\n PKCS8EncodedKeySpec encodedPrivateKey = new PKCS8EncodedKeySpec(keydata);\n KeyFactory keyFactory = null;\n try {\n keyFactory = KeyFactory.getInstance(ALGORITHM);\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n try {\n privateKey = keyFactory.generatePrivate(encodedPrivateKey);\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n }\n\n return privateKey;\n }",
"public Class<PRIV> getPrivateKeyClass() {\n return privKeyType;\n }",
"String getSecretByKey(String key);",
"public static RSAPrivateKey getPrivateKeyFromPem (String pem)\n throws NoSuchAlgorithmException, InvalidKeySpecException {\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(parseDERfromPEM(pem.getBytes()));\n return (RSAPrivateKey) kf.generatePrivate(keySpec);\n }",
"public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;",
"public KeyStore getKeyStore();",
"Object getAuthInfoKey();",
"public static Key getUserKey() throws IOException {\n\t\tif (localKey.get() == null) {\n\t\t\ttry {\n\t\t\t\tlocalKey.set(cipherKeyProvider.loadKey());\n\t\t\t} catch (KeyLoadingException e) {\n\t\t\t\tthrow new IOException(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t\treturn localKey.get();\n\t}",
"java.lang.String getPubkey();",
"private void setPrivateKey(String b64key) {\n\t\ttry {\n\t\t\tbyte[] bytes = Base64.decodeBase64(b64key);\n\t\t\tPKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(bytes);\n\t\t\tKeyFactory fact = KeyFactory.getInstance(\"RSA\");\n\t\t\tpk = fact.generatePrivate(keySpec);\n\t\t} catch (NoSuchAlgorithmException | InvalidKeySpecException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static PrivateKey getPrivateKey(File file) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException {\n FileInputStream fis = new FileInputStream(file);\n DataInputStream dis = new DataInputStream(fis);\n byte[] keyBytes = new byte[(int) file.length()];\n dis.readFully(keyBytes);\n dis.close();\n PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(keyBytes);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n return kf.generatePrivate(spec);\n }",
"public final KeyStore.PrivateKeyEntry mo10698f(KeyStore keyStore) {\n PrivateKey privateKey;\n if (Build.VERSION.SDK_INT < 28 || (privateKey = (PrivateKey) keyStore.getKey(this.f723a, (char[]) null)) == null) {\n return (KeyStore.PrivateKeyEntry) keyStore.getEntry(this.f723a, (KeyStore.ProtectionParameter) null);\n }\n return new KeyStore.PrivateKeyEntry(privateKey, new Certificate[]{keyStore.getCertificate(this.f723a)});\n }",
"public X509ExtendedKeyManager getKeyManager();",
"public PGPPrivateKey findPrivateKey(final PGPSecretKey secretKey, final char[] pass) throws Exception {\n if (secretKey == null) {\n return null;\n // throw new IllegalArgumentException(\"Can't find private key in the key ring.\");\n }\n\n // // Validate secret key\n // if (!secretKey.isSigningKey())\n // {\n // throw new IllegalArgumentException(\"Private key does not allow signing.\");\n // }\n //\n // if (secretKey.getPublicKey().isRevoked())\n // {\n // throw new IllegalArgumentException(\"Private key has been revoked.\");\n // }\n //\n // if (!hasKeyFlags(secretKey.getPublicKey(), KeyFlags.SIGN_DATA))\n // {\n // throw new IllegalArgumentException(\"Key cannot be used for signing.\");\n // }\n\n PBESecretKeyDecryptor decryptor = new BcPBESecretKeyDecryptorBuilder(new BcPGPDigestCalculatorProvider()).build(pass);\n\n return secretKey.extractPrivateKey(decryptor);\n }",
"KeyStore loadKeystore(char[] keystorePassword) {\n try {\n // Load the keystore in the user's home directory\n bufferedInputStream.reset();\n keystore.load(bufferedInputStream, keystorePassword);\n return keystore;\n // TODO: EOFException might mean we're skipping guesses\n } catch (CertificateException | NoSuchAlgorithmException | FileNotFoundException e) {\n throw new KeystoreException(e);\n } catch (IOException e) {\n if ((e.getCause() instanceof UnrecoverableKeyException) &&\n (e.getCause().getMessage().contains(\"Password verification failed\"))) return null;\n\n throw new KeystoreException(e);\n }\n }",
"protected abstract InputStream openPrivateKeyStream(String id)\n throws FileNotFoundException, KeyStorageException, IOException;",
"private static CryptoToken getFromKeystore(KeyStore keystore, String alias,\r\n\t\t\tString password) throws UnrecoverableKeyException,\r\n\t\t\tKeyStoreException, NoSuchAlgorithmException, CertificateException,\r\n\t\t\tBkavSignaturesException {\r\n\t\tif (alias == null) {\r\n\t\t\tthrow new BkavSignaturesException(\"No alias was found in keystore\");\r\n\t\t}\r\n\r\n\t\tCryptoToken token = null;\r\n\t\t// Get private key from keystore\r\n\t\tPrivateKey privateKey = (PrivateKey) keystore.getKey(alias,\r\n\t\t\t\tpassword.toCharArray());\r\n\r\n\t\t// Get signer's certificate and cast to X509Certificate if able\r\n\t\t// Only work with X509Certificate\r\n\t\tCertificate cert = keystore.getCertificate(alias);\r\n\t\tX509Certificate signerCert = null;\r\n\t\tif (cert != null && cert instanceof X509Certificate) {\r\n\t\t\tsignerCert = (X509Certificate) cert;\r\n\t\t}\r\n\r\n\t\t// Get signer's certchain and Issuer's certificate\r\n\t\t// Check issuer's signature on signer's certificate first\r\n\t\tCertificate[] certChain = keystore.getCertificateChain(alias);\r\n\t\tX509Certificate issuerCert = null;\r\n\t\tif (signerCert != null) {\r\n\t\t\tfor (Certificate c : certChain) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (c != null && c instanceof X509Certificate) {\r\n\t\t\t\t\t\tsignerCert.verify(c.getPublicKey());\r\n\t\t\t\t\t\tissuerCert = (X509Certificate) c;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (InvalidKeyException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t} catch (NoSuchProviderException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t} catch (SignatureException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tProvider privateProvider = keystore.getProvider();\r\n\r\n\t\ttoken = new CryptoToken(privateKey, signerCert, issuerCert, certChain,\r\n\t\t\t\tprivateProvider);\r\n\r\n\t\treturn token;\r\n\t}",
"public static PrivateKeyInfo createPrivateKeyInfo(AsymmetricKeyParameter privateKey) throws IOException\n {\n return createPrivateKeyInfo(privateKey, null);\n }",
"@CheckForNull\n private KeyPair getKeyPair(AmazonEC2 ec2) throws IOException, AmazonClientException {\n EC2PrivateKey ec2PrivateKey = getParent().resolvePrivateKey();\n if (ec2PrivateKey == null) {\n throw new AmazonClientException(\"No keypair credential found. Please configure a credential in the Jenkins configuration.\");\n }\n KeyPair keyPair = ec2PrivateKey.find(ec2);\n if (keyPair == null) {\n throw new AmazonClientException(\"No matching keypair found on EC2. Is the EC2 private key a valid one?\");\n }\n return keyPair;\n }",
"public byte[] decrypt(PrivateKey privateKey){\n SecretKey symmetricKey = null;\n try {\n Cipher symmetricKeyDecryption = Cipher.getInstance(\"RSA\");\n symmetricKeyDecryption.init(Cipher.DECRYPT_MODE, privateKey);\n symmetricKey = new SecretKeySpec(symmetricKeyDecryption.doFinal(getEncryptedSymmetricKey()), getSymmetricEncryption().getEncryptionAlgorithm());\n } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException e) {\n e.printStackTrace();\n }\n\n // decrypt license with symmetric encryption\n return getSymmetricEncryption().decrypt(symmetricKey);\n /*\n License license = null;\n try {\n ObjectInputStream objectInputStream = new ObjectInputStream(new ByteArrayInputStream(licenseBytes));\n license = (License) objectInputStream.readObject();\n objectInputStream.close();\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n return license;\n */\n }",
"java.lang.String getPublicEciesKey();",
"public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}",
"public @Nullable\n Certificate getCertificate() throws GeneralSecurityException, IOException {\n KeyStoreManager keyStoreManager = KeyStoreManager.builder()\n .context(Config.getInstance().getContext()).build();\n return keyStoreManager.getCertificate(keyAlias);\n }",
"private KeyStore askForPin() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {\n char newPin[] = PinDialog.getPIN(this.providerDesc);\n try {\n KeyStore ks = getKeyStore(newPin);\n pin = newPin;\n return ks;\n } catch (IOException e2) {\n e2.printStackTrace();\n if (e2.getCause() instanceof LoginException) {\n JOptionPane.showMessageDialog(null, \"Wrong PIN\", \"Cryptographic card\", JOptionPane.WARNING_MESSAGE);\n }\n throw e2;\n }\n }",
"public CryptoKey getMyKey() {\n return myKey;\n }",
"protected java.security.PrivateKey engineGeneratePrivate(\n\t java.security.spec.KeySpec keySpec)\n\t throws java.security.spec.InvalidKeySpecException {\n\n\tif (keySpec != null && !(keySpec instanceof KeySpec)) {\n\t if (keySpec instanceof java.security.spec.PKCS8EncodedKeySpec) {\n\t\tKeySpec encKeySpec = new PKCS8EncodedKeySpec(\n\t\t\t(java.security.spec.PKCS8EncodedKeySpec) keySpec);\n\t\treturn generatePrivate(encKeySpec);\n\t }\n\n\t throw new java.security.spec.InvalidKeySpecException();\n\t}\n\n\treturn generatePrivate((KeySpec) keySpec);\n }",
"public KeyPair getKeyPair(String alias, String password) throws CryptoException {\n\t\tPrivateKey privateKey = (PrivateKey)getPrivateKey(alias, password);\n\t\tif(privateKey != null) {\n\t\t\tPublicKey publicKey = (PublicKey)getPublicKey(alias, password);\n\t\t\treturn new KeyPair(publicKey, privateKey);\t\t\n\t\t}\n\t\treturn null;\n\t}",
"public PublicKeyStoreBuilderBase getKeystore() {\n return keystore;\n }",
"public byte[] retrieveKey(String keyName, String token) throws InternalSkiException {\n byte[] retKey;\n byte[] systemKey = getSystemKey();\n byte[] tokenKey = getTokenKey();\n ISki skiDao = getSkiDao();\n Token tkn = th.decodeToken(token, tokenKey);\n if (tkn!=null) {\n boolean bl = skiDao.checkBlacklist(tkn.getIdentity());\n if (!bl) {\n try {\n byte[] comboKey = SkiKeyGen.getComboKey(tkn.getKey(), systemKey);\n\n String encComboKey = skiDao.fetchKey(keyName);\n\n if (encComboKey!=null) {\n\n byte[] encKey = SkiUtils.b64decode(encComboKey);\n byte[] decryptedKey = crypter.decrypt(encKey, comboKey);\n\n retKey = decryptedKey;\n } else {\n log.warning(\"Unable to fetch key (is null) by name: \" + keyName);\n retKey = null;\n }\n } catch (SkiException e) {\n log.warning(\"Unable to retrieve key. Access denied. Check logs for error: \" + e.getMessage());\n log.log(Level.WARNING, e.getMessage(), e);\n retKey = null;\n }\n } else {\n log.warning(\"Access denied. Attempt to retrieve key from blacklisted identity: \" + tkn.getIdentity());\n retKey = null;\n }\n } else {\n log.warning(\"Access denied. Unable to decode token during key creation!\");\n retKey = null;\n }\n return retKey;\n }",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;",
"public URL getKeyStore() {\n URL keyStore = null;\n if (keyStoreLocation != null) {\n try {\n keyStore = new URL(\"file:\" + keyStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Keystore has a malformed name: \" + keyStoreLocation, e);\n }\n }\n return keyStore;\n }",
"public static PrivateKey getPrivateKeyFromString(String stringkey){\n byte[] byte_privkey = android.util.Base64.decode(stringkey, android.util.Base64.DEFAULT);\n System.out.println(\"BYTE KEY::\" + byte_privkey);\n\n\n //converting it back to public key\n KeyFactory factory = null;\n try {\n factory = KeyFactory.getInstance(\"ECDSA\", \"SC\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n }\n try {\n PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(\n byte_privkey);\n return (factory != null ? factory.generatePrivate(privateKeySpec) : null);\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n }\n return null;\n }",
"public static X509Certificate getX509Certificate(KeyStore keyStore) {\r\n String alias = null;\r\n try {\r\n Enumeration<String> aliases = keyStore.aliases();\r\n if (!aliases.hasMoreElements()) {\r\n throw new RuntimeException(\"KeyStore contains no aliases\");\r\n }\r\n alias = aliases.nextElement();\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could obtain alias: \" + alias + \" in the userPKCS12 keystore\", ex);\r\n }\r\n try {\r\n Certificate[] certificateChain = keyStore.getCertificateChain(alias);\r\n if (certificateChain == null || certificateChain.length == 0) {\r\n throw new RuntimeException(\"KeyStore contains no certificate with alias \" + alias);\r\n }\r\n return (X509Certificate) certificateChain[0];\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could not obtain X509Certificate from userPKCS12 keystore using alias: \" + alias, ex);\r\n }\r\n }",
"private synchronized SecretKey getKey(final String keyVersion) throws GeneralSecurityException, IOException {\n switch (keyVersion) {\n case VERSION_USER_DEFINED:\n return getSecretKey(AuthenticationSettings.INSTANCE.getSecretKeyData());\n case VERSION_ANDROID_KEY_STORE:\n\n if (mSecretKeyFromAndroidKeyStore != null) {\n return mSecretKeyFromAndroidKeyStore;\n }\n // androidKeyStore can store app specific self signed cert.\n // Asymmetric cryptography is used to protect the session key\n // used for Encryption and HMac\n mKeyPair = readKeyPair();\n mSecretKeyFromAndroidKeyStore = getUnwrappedSecretKey();\n return mSecretKeyFromAndroidKeyStore;\n default:\n throw new IOException(\"Unknown keyVersion.\");\n }\n }",
"public byte[] decryptKek(byte[] privateKey, byte[] encryptedKey){\n\n try {\n AsymmetricBlockCipher cipher = new OAEPEncoding(new RSAEngine(), new SHA1Digest());\n RSAPrivateKey rsaPrivateKey = RSAPrivateKey.getInstance(ASN1Sequence.fromByteArray(privateKey));\n cipher.init(false, new RSAKeyParameters(true, rsaPrivateKey.getModulus(), rsaPrivateKey.getPrivateExponent()));\n return cipher.processBlock(encryptedKey, 0, encryptedKey.length);\n\n } catch (Exception e) {\n LOG.error(\"There was an error decrypting kek: \", e);\n }\n return null;\n }",
"public PrivateKey getPrivateList() {\n return this.privateList;\n }",
"public static void setPrivateKeyPath(String privateKeyPath) {\n Program.privateKeyPath = privateKeyPath;\n Program.authType = AUTH_TYPE.CERT;\n }",
"public String getTlsKeyPath();",
"public static PrivateKey loadPrivateKey(byte[] data) throws Exception {\n\n\n ECPrivateKeySpec prvkey = new ECPrivateKeySpec(new BigInteger(data), ecParams);\n return kf.generatePrivate(prvkey);\n }",
"protected static String getKeyStorePassword() {\n Path userHomeDirectory = null;\n if (\"?\".equals(keyStorePassword)) {\n promptForKeystorePassword();\n } else if (keyStorePassword == null || keyStorePassword.isEmpty()) {\n // first try the password file\n try {\n userHomeDirectory = Paths.get(System.getProperty(\"user.home\")).toAbsolutePath();\n } catch (InvalidPathException e) {\n throw new BadSystemPropertyError(e);\n }\n File pwFile = new File(userHomeDirectory.toString(), Constants.PW_FILE_PATH_SEGMENT);\n if (pwFile.isFile()) {\n try {\n String rawPassword = readFileContents(pwFile);\n return EncodingUtils.decodeAndXor(rawPassword);\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n throw new IllegalArgumentException(\"Password file could not be read\");\n }\n } else {\n promptForKeystorePassword();\n }\n }\n return keyStorePassword;\n }",
"public URL getKeystoreLocation() {\n return keystoreLocation;\n }",
"public String getKeyStorePassword() {\n return keyStorePassword;\n }",
"public Certificate getCertificate(String alias) throws CryptoException {\n\t\ttry {\n\t\t\treturn keystore.getCertificate(alias);\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t}\n\t}",
"public PrivateKey readPrivateKeyFromPem(File file) {\n FileReader reader = null;\n PEMParser parser = null;\n try {\n reader = new FileReader(file);\n parser = new PEMParser(reader);\n PrivateKeyInfo keyInfo = (PrivateKeyInfo) parser.readObject();\n return new JcaPEMKeyConverter().getPrivateKey(keyInfo);\n } catch (RuntimeException | IOException e) {\n throw new RuntimeException(\"Failed to load private key from [\"+file+\"]\", e);\n } finally {\n \tCloseablesExt.closeQuietly(parser);\n \tCloseablesExt.closeQuietly(reader);\n }\n }",
"public interface KeyPairProvider {\n\n KeyPair getJWTKey();\n\n /**\n * Get a key with the specified alias;\n * If there is no key of this alias, return\n * {@code null}\n *\n * @param alias the alias of key to load\n * @return a valid key pair or {@code null} if a key with this alias is not available\n */\n KeyPair getKey(String alias);\n}",
"private PrivateKey generatePrivateKey(KeyFactory factory) throws IOException, InvalidKeySpecException {\n\n PemFile pemFile = new PemFile(RESOURCES_DIR + PRIVATE_KEY_FILE_NAME);\n byte[] content = pemFile.getPemObject().getContent();\n PKCS8EncodedKeySpec privKeySpec = new PKCS8EncodedKeySpec(content);\n return factory.generatePrivate(privKeySpec);\n }"
] | [
"0.7690842",
"0.7603165",
"0.7481525",
"0.7344887",
"0.7344887",
"0.70129824",
"0.69748795",
"0.6971678",
"0.6966449",
"0.69216806",
"0.689514",
"0.6826009",
"0.6815615",
"0.678098",
"0.67638445",
"0.6706222",
"0.6679827",
"0.6650743",
"0.66500586",
"0.6635521",
"0.6635521",
"0.6635521",
"0.663186",
"0.65942883",
"0.6545013",
"0.65390384",
"0.64542896",
"0.6418328",
"0.6357888",
"0.6322014",
"0.6292117",
"0.62651724",
"0.6238941",
"0.6195714",
"0.61937994",
"0.61914533",
"0.61693794",
"0.6135339",
"0.6110312",
"0.61040837",
"0.6094174",
"0.6077206",
"0.6054828",
"0.60299456",
"0.6026193",
"0.59866834",
"0.5981735",
"0.5954479",
"0.5950832",
"0.5941592",
"0.5928922",
"0.5890483",
"0.58864665",
"0.5852096",
"0.5839257",
"0.5831743",
"0.5788793",
"0.5783642",
"0.57733285",
"0.5734505",
"0.5729241",
"0.5713834",
"0.5710892",
"0.5702493",
"0.5697927",
"0.56556255",
"0.5647475",
"0.564395",
"0.5641937",
"0.55791235",
"0.55648196",
"0.5550209",
"0.55460316",
"0.5543869",
"0.5533036",
"0.55257577",
"0.5504078",
"0.5499295",
"0.54863733",
"0.54732406",
"0.54639167",
"0.54614073",
"0.5449433",
"0.5447584",
"0.542819",
"0.5428027",
"0.5419351",
"0.54142123",
"0.5409999",
"0.5409956",
"0.53577584",
"0.5355547",
"0.534532",
"0.5341055",
"0.5321894",
"0.53011084",
"0.52995163",
"0.5289856",
"0.5288282",
"0.5275997"
] | 0.731438 | 5 |
Helper method to get certificate from the underlying keystore | public X509Certificate getCertificate(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;",
"public @Nullable\n Certificate getCertificate() throws GeneralSecurityException, IOException {\n KeyStoreManager keyStoreManager = KeyStoreManager.builder()\n .context(Config.getInstance().getContext()).build();\n return keyStoreManager.getCertificate(keyAlias);\n }",
"public Certificate getCertificate(String alias) throws CryptoException {\n\t\ttry {\n\t\t\treturn keystore.getCertificate(alias);\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t}\n\t}",
"public X509Certificate getRootCertificate() throws CertException;",
"public static X509Certificate getX509Certificate(KeyStore keyStore) {\r\n String alias = null;\r\n try {\r\n Enumeration<String> aliases = keyStore.aliases();\r\n if (!aliases.hasMoreElements()) {\r\n throw new RuntimeException(\"KeyStore contains no aliases\");\r\n }\r\n alias = aliases.nextElement();\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could obtain alias: \" + alias + \" in the userPKCS12 keystore\", ex);\r\n }\r\n try {\r\n Certificate[] certificateChain = keyStore.getCertificateChain(alias);\r\n if (certificateChain == null || certificateChain.length == 0) {\r\n throw new RuntimeException(\"KeyStore contains no certificate with alias \" + alias);\r\n }\r\n return (X509Certificate) certificateChain[0];\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could not obtain X509Certificate from userPKCS12 keystore using alias: \" + alias, ex);\r\n }\r\n }",
"protected static X509Certificate getCertificate()\n throws CertificateException, KeyStoreException, IOException {\n String certificatePath = getCertificatePath();\n String keyStorePath = getKeyStorePath();\n if (certificatePath != null) {\n File certificateFile = new File(certificatePath);\n if (certificateFile.isFile()) {\n // load certificate from file\n return loadCertificateFromFile(certificateFile);\n } else {\n throw new IllegalArgumentException(\n \"The specified certificate path '\" + certificatePath + \"' is invalid\");\n }\n } else if (keyStorePath != null) {\n return new KeyStoreManager()\n .getKeyStoreCertificate(keyStorePath, getKeyStorePassword(), getKeyStoreAlias());\n } else {\n // should not happen\n throw new IllegalArgumentException(\"Could not load a certificate for authentication\");\n }\n }",
"String getCertificate();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"X509Certificate getCertAlias(String alias) throws KeyStoreException\n\t{\n\t\tX509Certificate x509 = (X509Certificate) keyStore.getCertificate(alias);\n\t\treturn x509;\n\t}",
"public X509Certificate getCACertificate() throws DorianInternalException;",
"public String getTlsCert();",
"public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;",
"public X509Certificate getCertificate(int token, String pin)\n throws SignedDocException;",
"public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}",
"java.util.concurrent.Future<GetCertificateResult> getCertificateAsync(\n GetCertificateRequest getCertificateRequest);",
"public String getTlsCertPath();",
"@Override\n public String getCertificate(String certSerialId) throws IOException {\n LOGGER.debug(\"Getting certificate with certificate serial id {}\",\n certSerialId);\n try {\n X509Certificate certificate =\n scmCertificateServer.getCertificate(certSerialId);\n if (certificate != null) {\n return getPEMEncodedString(certificate);\n }\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getCertificate operation failed. \", e,\n GET_CERTIFICATE_FAILED);\n }\n LOGGER.info(\"Certificate with serial id {} not found.\", certSerialId);\n throw new SCMSecurityException(\"Certificate not found\",\n CERTIFICATE_NOT_FOUND);\n }",
"public X509Certificate getBindingKeyCertificate() {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n X509Certificate aik = getTarget()\n .path(\"/binding-key-certificate\")\n .request()\n .accept(CryptoMediaType.APPLICATION_PKIX_CERT)\n .get(X509Certificate.class);\n return aik;\n }",
"public X509Certificate getCertificate()\n {\n return this.cert;\n }",
"@Override\r\n\tpublic CertificateResSO getCertificate(Integer certificateId) {\n\t\treturn null;\r\n\t}",
"public static X509Certificate getCertificate(String tenantDomain, String alias) throws IdentityOAuth2Exception {\n\n int tenantId;\n try {\n tenantId = JWTServiceComponent.getRealmService().getTenantManager().getTenantId(tenantDomain);\n } catch (org.wso2.carbon.user.api.UserStoreException e) {\n String errorMsg = \"Error getting the tenant ID for the tenant domain : \" + tenantDomain;\n throw new IdentityOAuth2Exception(errorMsg, e);\n }\n\n KeyStoreManager keyStoreManager;\n // get an instance of the corresponding Key Store Manager instance\n keyStoreManager = KeyStoreManager.getInstance(tenantId);\n KeyStore keyStore;\n try {\n if (tenantId != MultitenantConstants.SUPER_TENANT_ID) {// for tenants, load key from their generated key store\n keyStore = keyStoreManager.getKeyStore(generateKSNameFromDomainName(tenantDomain));\n } else {\n // for super tenant, load the default pub. cert using the config. in carbon.xml\n keyStore = keyStoreManager.getPrimaryKeyStore();\n }\n return (X509Certificate) keyStore.getCertificate(alias);\n\n } catch (KeyStoreException e) {\n String errorMsg = \"Error instantiating an X509Certificate object for the certificate alias:\" + alias +\n \" in tenant:\" + tenantDomain;\n log.error(errorMsg, e);\n throw new IdentityOAuth2Exception(errorMsg, e);\n } catch (Exception e) {\n //keyStoreManager throws Exception\n log.error(\"Unable to load key store manager for the tenant domain:\" + tenantDomain, e);\n throw new IdentityOAuth2Exception(\"Unable to load key store manager for the tenant domain:\" + tenantDomain, e);\n }\n }",
"public String requestCert(String serialNumber){\n Certificate cert = keyStoreReader.readCertificate(keystoreFile, keystorePassword, serialNumber);\n return cert.toString();\n }",
"protected static String getCertificatePath() {\n return certificatePath;\n }",
"public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate() {\n if (certificateBuilder_ == null) {\n return certificate_ == null ? liubaninc.m0.pki.CertificateOuterClass.Certificate.getDefaultInstance() : certificate_;\n } else {\n return certificateBuilder_.getMessage();\n }\n }",
"public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;",
"@Override\n public String getCACertificate() throws IOException {\n LOGGER.debug(\"Getting CA certificate.\");\n try {\n return getPEMEncodedString(\n scmCertificateServer.getCaCertPath());\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getRootCertificate operation failed. \",\n e, GET_CA_CERT_FAILED);\n }\n }",
"com.google.protobuf.ByteString getCertificate(int index);",
"public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate() {\n return certificate_ == null ? liubaninc.m0.pki.CertificateOuterClass.Certificate.getDefaultInstance() : certificate_;\n }",
"@Override\n public InputStream getCertStream() {\n if (Strings.isEmpty(certPath)) {\n throw new NotFoundException(\"cert path not configured\");\n }\n if (certBytes == null) {\n Path path = Paths.get(certPath).toAbsolutePath();\n try {\n certBytes = readAllBytes(path);\n } catch (IOException e) {\n throw new UncheckedIOException(\"read cert failed\", e);\n }\n }\n return new ByteArrayInputStream(certBytes);\n }",
"protected X509Certificate getCertificate(String certString,\n String format)\n {\n X509Certificate cert = null;\n \n try {\n \n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\"getCertificate(Assertion) : \" +\n certString);\n }\n \n StringBuffer xml = new StringBuffer(100);\n xml.append(SAMLConstants.BEGIN_CERT);\n xml.append(certString);\n xml.append(SAMLConstants.END_CERT);\n \n byte[] barr = null;\n barr = (xml.toString()).getBytes();\n \n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n ByteArrayInputStream bais = new ByteArrayInputStream(barr);\n \n if ((format !=null) &&\n format.equals(SAMLConstants.TAG_PKCS7)) { // PKCS7 format\n Collection c = cf.generateCertificates(bais);\n Iterator i = c.iterator();\n while (i.hasNext()) {\n cert = (java.security.cert.X509Certificate) i.next();\n }\n } else { //X509:v3 format\n while (bais.available() > 0) {\n cert = (java.security.cert.X509Certificate)\n cf.generateCertificate(bais);\n }\n }\n } catch (Exception e) {\n SAMLUtilsCommon.debug.error(\"getCertificate Exception: \", e);\n }\n \n return cert;\n }",
"public Certificate getCertificate(int id) {\n\n\t\tTransaction transaction = null;\n\t\tCertificate certificate = null;\n\t\ttry (Session session = HibernateUtil.getSessionFactory().openSession()) {\n\t\t\t// start a transaction\n\t\t\ttransaction = session.beginTransaction();\n\t\t\t// get an certificate object\n\t\t\tcertificate = session.get(Certificate.class, id);\n\t\t\t// commit transaction\n\t\t\ttransaction.commit();\n\t\t} catch (Exception e) {\n\t\t\tif (transaction != null) {\n\t\t\t\ttransaction.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn certificate;\n\t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getCertificate(int index) {\n return instance.getCertificate(index);\n }",
"public KeyProvider getKeyProvider() {\n return keystore; \n }",
"public KeyStore getKeyStore();",
"private java.security.cert.Certificate[] getJCACertificateChain() throws KeyStoreException, CertificateException {\n\tjava.security.cert.Certificate[] cert;\n\tcert = keyStore.getCertificateChain(alias);\n\tif (cert == null) {\n\t throw new CertificateException(\"Unknown alias.\");\n\t}\n\treturn cert;\n }",
"byte[] getPackageCertificate() throws Exception {\n\t\tPackageInfo info;\n\t\tinfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES);\n\t\tfor (Signature signature : info.signatures) {\n\t\t\treturn signature.toByteArray();\n\t\t}\n\t\treturn null;\n\t}",
"public String call_google_certificate() throws CertificateException, IOException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = getResources().openRawResource(R.raw.loadder);\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n // Tell the URLConnection to use a SocketFactory from our SSLContext\n URL url = new URL(\"https://certs.cac.washington.edu/CAtest/\");\n HttpsURLConnection urlConnection =\n (HttpsURLConnection) url.openConnection();\n urlConnection.setSSLSocketFactory(context.getSocketFactory());\n InputStream in = urlConnection.getInputStream();\n return getStringFromInputStream(in);\n }",
"public static SSLSocketFactory getSSLSocketFactory() throws CertificateException, KeyStoreException, IOException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = new BufferedInputStream(BaseApplication.getAppContext().getAssets().open(\"www.baseurl.com.crt\"));\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n\n return context.getSocketFactory();\n }",
"liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();",
"public String getCertificateEmail(X509Certificate certificate) throws CertException;",
"@Override\n public GetWirelessGatewayCertificateResult getWirelessGatewayCertificate(GetWirelessGatewayCertificateRequest request) {\n request = beforeClientExecution(request);\n return executeGetWirelessGatewayCertificate(request);\n }",
"private static CryptoToken getFromKeystore(KeyStore keystore, String alias,\r\n\t\t\tString password) throws UnrecoverableKeyException,\r\n\t\t\tKeyStoreException, NoSuchAlgorithmException, CertificateException,\r\n\t\t\tBkavSignaturesException {\r\n\t\tif (alias == null) {\r\n\t\t\tthrow new BkavSignaturesException(\"No alias was found in keystore\");\r\n\t\t}\r\n\r\n\t\tCryptoToken token = null;\r\n\t\t// Get private key from keystore\r\n\t\tPrivateKey privateKey = (PrivateKey) keystore.getKey(alias,\r\n\t\t\t\tpassword.toCharArray());\r\n\r\n\t\t// Get signer's certificate and cast to X509Certificate if able\r\n\t\t// Only work with X509Certificate\r\n\t\tCertificate cert = keystore.getCertificate(alias);\r\n\t\tX509Certificate signerCert = null;\r\n\t\tif (cert != null && cert instanceof X509Certificate) {\r\n\t\t\tsignerCert = (X509Certificate) cert;\r\n\t\t}\r\n\r\n\t\t// Get signer's certchain and Issuer's certificate\r\n\t\t// Check issuer's signature on signer's certificate first\r\n\t\tCertificate[] certChain = keystore.getCertificateChain(alias);\r\n\t\tX509Certificate issuerCert = null;\r\n\t\tif (signerCert != null) {\r\n\t\t\tfor (Certificate c : certChain) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (c != null && c instanceof X509Certificate) {\r\n\t\t\t\t\t\tsignerCert.verify(c.getPublicKey());\r\n\t\t\t\t\t\tissuerCert = (X509Certificate) c;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (InvalidKeyException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t} catch (NoSuchProviderException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t} catch (SignatureException e) {\r\n\t\t\t\t\t// Do nothing here\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tProvider privateProvider = keystore.getProvider();\r\n\r\n\t\ttoken = new CryptoToken(privateKey, signerCert, issuerCert, certChain,\r\n\t\t\t\tprivateProvider);\r\n\r\n\t\treturn token;\r\n\t}",
"public X509Certificate getX509Certificate() {\n return certificate;\n }",
"KeyStore loadKeystore(char[] keystorePassword) {\n try {\n // Load the keystore in the user's home directory\n bufferedInputStream.reset();\n keystore.load(bufferedInputStream, keystorePassword);\n return keystore;\n // TODO: EOFException might mean we're skipping guesses\n } catch (CertificateException | NoSuchAlgorithmException | FileNotFoundException e) {\n throw new KeystoreException(e);\n } catch (IOException e) {\n if ((e.getCause() instanceof UnrecoverableKeyException) &&\n (e.getCause().getMessage().contains(\"Password verification failed\"))) return null;\n\n throw new KeystoreException(e);\n }\n }",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index) {\n return certificate_.get(index);\n }",
"public liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index) {\n if (certificateBuilder_ == null) {\n return certificate_.get(index);\n } else {\n return certificateBuilder_.getMessage(index);\n }\n }",
"@Override\n public String getSCMCertificate(ScmNodeDetailsProto scmNodeDetails,\n String certSignReq) throws IOException {\n return getSCMCertificate(scmNodeDetails, certSignReq, false);\n }",
"@Then(\"extract broker certificate\")\n public void extractBrokerCertificate() {\n Secret secret = OpenShiftUtils.getInstance().getSecret(\"my-cluster-kafka-brokers\");\n String secrets = secret.toString();\n\n // 2. extract values:\n String cert = extractValue(\"crt\", secrets);\n\n // 3. put values into account:\n Account kafkaTlsAccount = AccountsDirectory.getInstance().get(\"kafka-autodetect-tls\");\n Map<String, String> kafkaAutodetectTlsParameters = kafkaTlsAccount.getProperties();\n kafkaAutodetectTlsParameters.put(\"brokercertificate\", cert);\n kafkaTlsAccount.setProperties(kafkaAutodetectTlsParameters);\n }",
"public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }",
"public String getTlsKeyPath();",
"public byte[] certificate() {\n return this.certificate;\n }",
"public static byte[] getX509CertificateByteArray(KeyStore keyStore) {\r\n X509Certificate x509Certificate = getX509Certificate(keyStore);\r\n try {\r\n return x509Certificate.getEncoded();\r\n } catch (CertificateEncodingException ex) {\r\n throw new RuntimeException(\"Could not get encoded bytes from X509Certificate\", ex);\r\n }\r\n }",
"public URL getKeyStore() {\n URL keyStore = null;\n if (keyStoreLocation != null) {\n try {\n keyStore = new URL(\"file:\" + keyStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Keystore has a malformed name: \" + keyStoreLocation, e);\n }\n }\n return keyStore;\n }",
"public String validate(KeyStore keyStore, String keyAlias) throws CertificateException\n {\n String result = null;\n \n if (keyAlias != null)\n {\n try\n {\n validate(keyStore, keyStore.getCertificate(keyAlias));\n }\n catch (KeyStoreException ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n keyAlias + \"]: \" + ex.getMessage());\n }\n result = keyAlias; \n }\n \n return result;\n }",
"public String getUserCertificatesPath();",
"@java.lang.Override\n public com.google.protobuf.ByteString getCertificate(int index) {\n return certificate_.get(index);\n }",
"public liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder() {\n if (certificateBuilder_ != null) {\n return certificateBuilder_.getMessageOrBuilder();\n } else {\n return certificate_ == null ?\n liubaninc.m0.pki.CertificateOuterClass.Certificate.getDefaultInstance() : certificate_;\n }\n }",
"protected PublicKey getX509PublicKey(Document doc, KeyInfo keyinfo) {\n \tPublicKey pk = null;\n try {\n if (keyinfo != null) {\n if (isJKSKeyStore) {\n StorageResolver storageResolver = new StorageResolver(\n new KeyStoreResolver(((JKSKeyProvider)\n keystore).getKeyStore()));\n keyinfo.addStorageResolver(storageResolver);\n keyinfo.registerInternalKeyResolver(new\n X509IssuerSerialResolver());\n keyinfo.registerInternalKeyResolver(new\n X509CertificateResolver());\n keyinfo.registerInternalKeyResolver(new X509SKIResolver());\n keyinfo.registerInternalKeyResolver(new\n X509SubjectNameResolver());\n }\n if (keyinfo.containsX509Data()) {\n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\"Found X509Data\" +\n \" element in the KeyInfo\");\n }\n X509Certificate certificate =\n keyinfo.getX509Certificate();\n //use a systemproperty com.sun.identity.saml.checkcert\n //defined in AMConfig.properties, as a nob to check the\n // the validity of the cert. \n if (checkCert) {\n // validate the X509Certificate\n if (keystore.getCertificateAlias(certificate)==null) {\n SAMLUtilsCommon.debug.error (\"verifyXMLSignature:\"\n + \" certificate is not trusted.\");\n throw new XMLSignatureException (\n SAMLUtilsCommon.bundle.getString(\n \"untrustedCertificate\"));\n } else {\n if (SAMLUtilsCommon.debug.messageEnabled ()) {\n SAMLUtilsCommon.debug.message(\n \"verifyXMLSignature:\"+ \n \" certificate is trused.\");\n }\n }\n } else {\n if (SAMLUtilsCommon.debug.messageEnabled()) {\n SAMLUtilsCommon.debug.message(\n \"Skip checking whether the\"\n +\" cert in the cert db.\"); \n }\n }\n \t\t pk = getPublicKey(certificate);\n } else {\n \t\t // Do we need to check if the public key is in the\n \t\t // keystore!?\n \t\t pk = getWSSTokenProfilePublicKey(doc);\n }\n }\n } catch (Exception e) {\n SAMLUtilsCommon.debug.error( \n \"getX509Certificate(KeyInfo) Exception: \", e);\n }\n \n \treturn pk;\n }",
"T createCertSelector(Certificate cert) throws KeySelectorException;",
"@Override\n\tpublic Certificate readCertificate(String file, String certNaziv) {\n\n\t\ttry {\n\t\t\tKeyStore ks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(\n\t\t\t\t\tnew FileInputStream(new File(file)));\n\n\t\t\tks.load(in, certNaziv.toCharArray());\n\t\t\tif (ks.isKeyEntry(certNaziv.toLowerCase())) {\n\t\t\t\tCertificate cert = ks.getCertificate(certNaziv);\n\t\t\t\treturn cert;\n\t\t\t} else\n\t\t\t\treturn null;\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public X509Certificate getAikCa() {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n X509Certificate aik = getTarget()\n .path(\"/aik/ca\")\n .request()\n .accept(CryptoMediaType.APPLICATION_PKIX_CERT)\n .get(X509Certificate.class);\n return aik;\n }",
"public Key getPrivateKey(String alias, String password) throws CryptoException {\n\t\ttry {\n\t\t\tKey key = keystore.getKey(alias, (password != null ? password.toCharArray() : null));\n\t\t\tif(key instanceof PrivateKey) {\n\t\t\t\treturn key;\n\t\t\t}\t\t\t\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\tlogger.error(\"error recovering key for alias '\" + alias + \"' from the keystore\", e);\n\t\t\tthrow new CryptoException(\"error recovering key for alias '\" + alias + \"' from the keystore\", e);\t\t\t\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tlogger.error(\"invalid algorithm specified in keystore access\", e);\n\t\t\tthrow new CryptoException(\"invalid algorithm specified in keystore access\", e);\n\t\t}\n\t\treturn null;\n\t}",
"public String getSslKeyStorePath()\n {\n return sslKeyStorePath;\n }",
"public X509ExtendedKeyManager getKeyManager();",
"public static String getCertificadoCacert(String ambiente)\n\t\t\tthrows NfeException {\n\n\t\tif (ambiente.equals(\"DES\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else if (ambiente.equals(\"PROD\")) {\n\t\t\treturn NfeUtil.class.getResource(\"/ARQUIVO_JKS.jks\").getPath();\n\t\t} else {\n\t\t\tthrow new NfeException(\"Selecione o ambiente PROD/DES\");\n\n\t\t}\n\t}",
"public String getTlsKey();",
"X509Certificate getCertificateToCheck()\n {\n return certificateToCheck;\n }",
"private static final CertificateValidationContext getCertContextFromPath(String pemFilePath)\n throws IOException {\n return CertificateValidationContext.newBuilder()\n .setTrustedCa(\n DataSource.newBuilder().setFilename(TestUtils.loadCert(pemFilePath).getAbsolutePath()))\n .build();\n }",
"java.util.concurrent.Future<GetCertificateResult> getCertificateAsync(\n GetCertificateRequest getCertificateRequest,\n com.amazonaws.handlers.AsyncHandler<GetCertificateRequest, GetCertificateResult> asyncHandler);",
"public Optional<AuthLoginCert> authLoginCert() {\n return Codegen.objectProp(\"authLoginCert\", AuthLoginCert.class).config(config).get();\n }",
"private X509Certificate getTrustedCert() {\n\t\tSystem.out.println(\"Beginning getTrustedCert ...\");\n\t\tESTClient ec = new ESTClient();\n\t\tX509Certificate newCert = null;\n\t\t\n\t\tassertNotNull(ec);\n\t\t\n\t\tmCerts = Helpers.loadTA(mTrustDB);\n\t\tec.setTrustAnchor(mCerts);\n\t\tec.setServerName(mTestServer);\n\t\tec.setServerPort(mTestPort);\n\t\tec.setHTTPCredentials(\"estuser\", \"estpwd\");\n\t\tec.setNativeLogLevel(NativeLogLevel.logFull);\n\n\t\t/*\n\t\t * Attempt to provision a new certificate\n\t\t */\n\t\ttry {\n\t\t\tnewCert = ec.sendSimpleEnrollRequest(mCSR, ESTClient.AuthMode.authHTTPonly, mKey, Boolean.FALSE);\n\t\t} catch (InvalidKeyException\n\t\t\t\t| CertificateException | IOException | EncodingException\n\t\t\t\t| EnrollException | EnrollRetryAfterException | BufferSizeException e) {\n\t\t\tfail(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newCert;\n\t}",
"public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;",
"public URL getKeystoreLocation() {\n return keystoreLocation;\n }",
"public X509Certificate getAik() {\n log.debug(\"target: {}\", getTarget().getUri().toString());\n X509Certificate aik = getTarget()\n .path(\"/aik\")\n .request()\n .accept(CryptoMediaType.APPLICATION_PKIX_CERT)\n .get(X509Certificate.class);\n return aik;\n }",
"public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }",
"public Key getPublicKey(String alias, String password) throws CryptoException {\n\t\ttry {\n\t\t\tKey key = getPrivateKey(alias, password);\n\t\t\tif (key instanceof PrivateKey) {\n\t // get certificate of public key\n\t Certificate certificate = keystore.getCertificate(alias);\n\t // get public key from the certificate\n\t return certificate.getPublicKey();\n\t\t\t}\t\t\t\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t}\n\t\treturn null;\n\t}",
"public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }",
"public liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder() {\n return getCertificate();\n }",
"private SSLSocketFactory newSSLSocketFactory() {\n\n KeyStore trusted;\n\n try {\n trusted = KeyStore.getInstance(\"AndroidCAStore\");\n trusted.load(null, null);\n Enumeration<String> aliases = trusted.aliases();\n\n while (aliases.hasMoreElements()) {\n String alias = aliases.nextElement();\n X509Certificate cert = (X509Certificate) trusted.getCertificate(alias);\n Log.d(\"\", \"Alias=\"+alias);\n Log.d(\"\", \"Subject DN: \" + cert.getSubjectDN().getName());\n Log.d(\"\", \"Issuer DN: \" + cert.getIssuerDN().getName());\n } \n\n SSLSocketFactory sf = new SSLSocketFactory(trusted);\n sf.setHostnameVerifier(SSLSocketFactory.STRICT_HOSTNAME_VERIFIER);\n\n return sf;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n throw new AssertionError(e);\n } \n}",
"private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}",
"@Test\n\tpublic void testAddX509CertificateToKeyStore() throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tX509Certificate cert = DbMock.readCert(\"apache-tomcat.pem\");\n\t\t\n\t\tKeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t//initialize keystore\n\t\tkeyStore.load(null, null);\n\t\t\n\t\tJcaUtils.addX509CertificateToKeyStore(keyStore, \"alias1\", cert);\n\t\t\n\t\t// Save the new keystore contents\n\t\tFileOutputStream out = new FileOutputStream(\"/Users/davide/Downloads/ks.dat\");\n\t\tkeyStore.store(out, \"davidedc\".toCharArray());\n\t\tout.close();\n\t}",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);",
"private void initialiseSSLContext(KeyStore keystore, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException, KeyManagementException{\n\t\tKeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\n\t\tkmf.init(keystore, password);\n\t\tSSLContext sc = SSLContext.getInstance(\"TLS\");\n\t\t// TODO use trust factory?\n\t\tsc.init(kmf.getKeyManagers(), null, null);\t\t\n\t}",
"public String getCertificationRequest() {\n if (signingRequest == null) return null;\n return signingRequest.getCertificationRequest().getContent();\n }",
"public static void httpClientGetServerCertificate() {\n HttpResponseInterceptor certificateInterceptor = (httpResponse, context) -> {\n ManagedHttpClientConnection routedConnection = (ManagedHttpClientConnection) context.getAttribute(HttpCoreContext.HTTP_CONNECTION);\n SSLSession sslSession = routedConnection.getSSLSession();\n if (sslSession != null) {\n\n // get the server certificates from the {@Link SSLSession}\n Certificate[] certificates = sslSession.getPeerCertificates();\n\n // add the certificates to the context, where we can later grab it from\n context.setAttribute(HttpClientConstants.PEER_CERTIFICATES, certificates);\n }\n };\n try (\n // create closable http client and assign the certificate interceptor\n CloseableHttpClient httpClient = HttpClients.custom().addInterceptorLast(certificateInterceptor).build()) {\n\n // make HTTP GET request to resource server\n HttpGet httpget = new HttpGet(\"https://www.baidu.com\");\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // create http context where the certificate will be added\n HttpContext context = new BasicHttpContext();\n httpClient.execute(httpget, context);\n\n // obtain the server certificates from the context\n Certificate[] peerCertificates = (Certificate[]) context.getAttribute(HttpClientConstants.PEER_CERTIFICATES);\n\n // loop over certificates and print meta-data\n for (Certificate certificate : peerCertificates) {\n X509Certificate real = (X509Certificate) certificate;\n System.out.println(\"----------------------------------------\");\n System.out.println(\"Type: \" + real.getType());\n System.out.println(\"Signing Algorithm: \" + real.getSigAlgName());\n System.out.println(\"IssuerDN Principal: \" + real.getIssuerX500Principal());\n System.out.println(\"SubjectDN Principal: \" + real.getSubjectX500Principal());\n System.out.println(\"Not After: \" + DateUtils.formatDate(real.getNotAfter(), \"dd-MM-yyyy\"));\n System.out.println(\"Not Before: \" + DateUtils.formatDate(real.getNotBefore(), \"dd-MM-yyyy\"));\n System.out.println(\"----------------------------------------\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public List<Certificate> getCertificateChain(String signatureAlias) throws CryptoException {\n\t\ttry {\n\t\t\tArrayList<Certificate> list = new ArrayList<Certificate>();\n\t\t\tCertificate[] certificates = keystore.getCertificateChain(signatureAlias);\n\t\t\tfor (int i = 0, length = certificates == null ? 0 : certificates.length; i < length; i++) {\n\t\t\t\tlist.add(certificates[i]);\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch(GeneralSecurityException e) {\n\t\t\tlogger.error(\"error retrieving certificate chain for alias '{}'\", signatureAlias);\n\t\t\tthrow new CryptoException(\"error retrieving certificate chain for alias '\" + signatureAlias + \"'\", e);\n\t\t}\n\t}",
"private Certificate loadcert(final String filename) throws FileNotFoundException, IOException, CertificateParsingException {\n final byte[] bytes = FileTools.getBytesFromPEM(FileTools.readFiletoBuffer(filename), \"-----BEGIN CERTIFICATE-----\",\n \"-----END CERTIFICATE-----\");\n return CertTools.getCertfromByteArray(bytes, Certificate.class);\n\n }",
"private static Certificate getCertficateFromFile(File certFile) throws Exception{\n\t\tCertificate certificate = null;\n\t\tInputStream certInput = null;\n\t\ttry {\n\t\t\tcertInput = new BufferedInputStream(new FileInputStream(certFile));\n\t\t\tCertificateFactory certFactory = CertificateFactory.getInstance(DEFAULT_CERTIFCATE_TYPE);\n\t\t\tcertificate = certFactory.generateCertificate(certInput);\n\t\t} catch (Exception ex) {\n\t\t\tthrow new Exception(\"提取证书文件[\" + certFile.getName() + \"]认证失败,原因[\" + ex.getMessage() + \"]\");\n\t\t} finally {\n\t\t\t//IOUtils.closeQuietly(certInput);\n\t\t}\n\t\treturn certificate;\n\t}",
"public static String getCertificadoCliente() {\n\n\t\treturn NfeUtil.class.getResource(\"/CERTIFICADO.pfx\").getPath();\n\n\t}",
"public static File installBrokerCertificate(AsyncTestSpecification specification) throws Exception {\n String caCertPem = specification.getSecret().getCaCertPem();\n\n // First compute a stripped PEM certificate and decode it from base64.\n String strippedPem = caCertPem.replaceAll(BEGIN_CERTIFICATE, \"\")\n .replaceAll(END_CERTIFICATE, \"\");\n InputStream is = new ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64(strippedPem));\n\n // Generate a new x509 certificate from the stripped decoded pem.\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n X509Certificate caCert = (X509Certificate)cf.generateCertificate(is);\n\n // Create a new TrustStore using KeyStore API.\n char[] password = TRUSTSTORE_PASSWORD.toCharArray();\n KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n ks.load(null, password);\n ks.setCertificateEntry(\"root\", caCert);\n\n File trustStore = File.createTempFile(\"microcks-truststore-\" + System.currentTimeMillis(), \".jks\");\n\n try (FileOutputStream fos = new FileOutputStream(trustStore)) {\n ks.store(fos, password);\n }\n\n return trustStore;\n }",
"public byte[] getTBSCertificate() throws java.security.cert.CertificateEncodingException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getTBSCertificate():byte[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getTBSCertificate():byte[]\");\n }",
"public CertificateDescription certificate() {\n return this.certificate;\n }",
"public static SSLContext getSSLContext() {\n return InsecureSSLContext.INSTANCE;\n }",
"public static X509Certificate getCertificateFromPem(String pem)\n throws CertificateException {\n InputStream pemstream = new ByteArrayInputStream(pem.getBytes(StandardCharsets.UTF_8));\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n return (X509Certificate) cf.generateCertificate(pemstream);\n }",
"Optional<Certificate> getCertificateBySerialNumber(@NonNull String serialNumber, String sha256Thumbprint);"
] | [
"0.8103576",
"0.74788564",
"0.7285411",
"0.69018865",
"0.68898463",
"0.67538553",
"0.65964067",
"0.6509896",
"0.64594394",
"0.6454644",
"0.6421646",
"0.63772905",
"0.6288853",
"0.6217554",
"0.614504",
"0.6121654",
"0.6116181",
"0.6069139",
"0.6058151",
"0.60007554",
"0.598945",
"0.59664077",
"0.5951244",
"0.5817782",
"0.5768408",
"0.57522404",
"0.5750508",
"0.5732016",
"0.5730133",
"0.5727018",
"0.57183397",
"0.5709501",
"0.57054687",
"0.57047886",
"0.56968564",
"0.56753564",
"0.5657946",
"0.5656221",
"0.563565",
"0.56342566",
"0.5630125",
"0.56283665",
"0.5628221",
"0.56028974",
"0.5594646",
"0.5586602",
"0.55766577",
"0.55766577",
"0.5562408",
"0.55538577",
"0.555295",
"0.55513936",
"0.54724795",
"0.54656416",
"0.5448293",
"0.5445946",
"0.5433809",
"0.54079914",
"0.5404922",
"0.54015124",
"0.5393103",
"0.53861934",
"0.53853846",
"0.5379149",
"0.5378922",
"0.5376053",
"0.53733104",
"0.5371781",
"0.5366242",
"0.5360537",
"0.53521705",
"0.5350174",
"0.5348069",
"0.53266054",
"0.5322926",
"0.5321328",
"0.53179646",
"0.5315195",
"0.53053546",
"0.5301258",
"0.5258577",
"0.52447176",
"0.52158546",
"0.5215275",
"0.5209735",
"0.52096605",
"0.52096605",
"0.5188063",
"0.5173081",
"0.51711786",
"0.51549286",
"0.51483727",
"0.51478606",
"0.5146716",
"0.5128605",
"0.51224947",
"0.5115957",
"0.5115211",
"0.5095194",
"0.50891745"
] | 0.6940157 | 3 |
Helper method to get certificate chain from the underlying keystore | public X509Certificate[] getCertificateChain(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private java.security.cert.Certificate[] getJCACertificateChain() throws KeyStoreException, CertificateException {\n\tjava.security.cert.Certificate[] cert;\n\tcert = keyStore.getCertificateChain(alias);\n\tif (cert == null) {\n\t throw new CertificateException(\"Unknown alias.\");\n\t}\n\treturn cert;\n }",
"public List<Certificate> getCertificateChain(String signatureAlias) throws CryptoException {\n\t\ttry {\n\t\t\tArrayList<Certificate> list = new ArrayList<Certificate>();\n\t\t\tCertificate[] certificates = keystore.getCertificateChain(signatureAlias);\n\t\t\tfor (int i = 0, length = certificates == null ? 0 : certificates.length; i < length; i++) {\n\t\t\t\tlist.add(certificates[i]);\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch(GeneralSecurityException e) {\n\t\t\tlogger.error(\"error retrieving certificate chain for alias '{}'\", signatureAlias);\n\t\t\tthrow new CryptoException(\"error retrieving certificate chain for alias '\" + signatureAlias + \"'\", e);\n\t\t}\n\t}",
"public X509Certificate[] getServerCertificateChain() {\n/* */ try {\n/* 208 */ return this.delegate.getServerCertificateChain();\n/* 209 */ } catch (SSLPeerUnverifiedException sSLPeerUnverifiedException) {\n/* */ \n/* */ \n/* */ \n/* 213 */ return null;\n/* */ } \n/* */ }",
"public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;",
"public final ArrayList<CertificateV2>\n getCertificateChain_() { return certificateChain_; }",
"public final X509Certificate[] getCertificateChain() {\n return this.certChain;\n }",
"public Certificate[] getLocalCertificates() {\n/* 185 */ return this.delegate.getLocalCertificates();\n/* */ }",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates();",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);",
"liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index);",
"public X509Certificate getRootCertificate() throws CertException;",
"public Certificate[] getCertificateChainAsArray(String signatureAlias) throws CryptoException {\n\t\tList<Certificate> chain = getCertificateChain(signatureAlias);\n\t\tif(chain != null && chain.size() > 0) {\n\t\t\tCertificate [] certificates = new Certificate[chain.size()];\n\t\t\tchain.toArray(certificates);\n\t\t\treturn certificates;\n\t\t}\n\t\treturn null;\n\t}",
"java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> \n getCertificateList();",
"private byte[][] getUserCertificate() throws KeyChainException, InterruptedException, CertificateEncodingException {\n ArrayList<byte[]> encodings = new ArrayList<byte[]>();\n X509Certificate[] chain = KeyChain.getCertificateChain(getApplicationContext(), mCurrentProfile.getUserCertificateAlias());\n if (chain == null || chain.length == 0) {\n return null;\n }\n for (X509Certificate cert : chain) {\n encodings.add(cert.getEncoded());\n }\n return encodings.toArray(new byte[encodings.size()][]);\n }",
"public String getUserCertificatesPath();",
"java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();",
"java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> \n getCertificatesList();",
"protected CertPath readCertificates(InputStream is) \n throws CertificateException, IOException {\n CertificateFactory factory = CertificateFactory.getInstance(\"X509\");\n return factory.generateCertPath(is, \"PkiPath\");\n }",
"public String getTlsCertPath();",
"public String getTlsKeyPath();",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate();",
"public Collection<X509Certificate> getCertificates() {\n return certificateChain;\n }",
"@NonNull\n public List<X509Certificate> getIntermediateCertificates() {\n return mIntermediateCerts;\n }",
"public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }",
"public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;",
"liubaninc.m0.pki.CertificateOuterClass.Certificate getCertificate(int index);",
"public KeyStore getKeyStore();",
"public X509Certificate getCACertificate() throws DorianInternalException;",
"public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}",
"String getCertificate();",
"public synchronized Vector getX509CertList() throws GeneralSecurityException {\n\tif (certList == null) {\n certList = \n PureTLSUtil.certificateChainToVector(getCertificates());\n\t}\n\treturn certList;\n }",
"public interface X509Credential\n{\n\t/**\n\t * Returns the credential in a keystore.\n\t * @return the KeyStore\n\t */\n\tpublic KeyStore getKeyStore();\n\t\n\t/**\n\t * Returns a KeyManager which accompanies the KeyStore. \n\t * @return the KeyManager\n\t */\n\tpublic X509ExtendedKeyManager getKeyManager();\n\t\n\t/**\n\t * Returns a password which can be used to obtain PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method, \n\t * with the alias returned by the {@link #getKeyAlias()} method.\n\t * @return key password\n\t */\n\tpublic char[] getKeyPassword();\n\t\n\t/**\n\t * Returns an alias which can be used to obtain the PrivateKey entry\n\t * from the KeyStore returned by the {@link #getKeyStore()} method.\n\t * @return key alias\n\t */\n\tpublic String getKeyAlias();\n\t\n\t/**\n\t * Helper method to get private key from the underlying keystore\n\t * @return private key\n\t */\n\tpublic PrivateKey getKey();\n\n\t/**\n\t * Helper method to get certificate from the underlying keystore\n\t * @return certificate\n\t */\n\tpublic X509Certificate getCertificate();\n\n\t/**\n \t * Helper method to get certificate chain from the underlying keystore\n\t * @return certificate chain\n\t */\n\tpublic X509Certificate[] getCertificateChain();\n\t\n\t/**\n\t * @return RFC 2253 distinguished name of the certificate subject\n\t * @since 1.1.0\n\t */\n\tpublic String getSubjectName();\n}",
"public static X509Certificate getX509Certificate(KeyStore keyStore) {\r\n String alias = null;\r\n try {\r\n Enumeration<String> aliases = keyStore.aliases();\r\n if (!aliases.hasMoreElements()) {\r\n throw new RuntimeException(\"KeyStore contains no aliases\");\r\n }\r\n alias = aliases.nextElement();\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could obtain alias: \" + alias + \" in the userPKCS12 keystore\", ex);\r\n }\r\n try {\r\n Certificate[] certificateChain = keyStore.getCertificateChain(alias);\r\n if (certificateChain == null || certificateChain.length == 0) {\r\n throw new RuntimeException(\"KeyStore contains no certificate with alias \" + alias);\r\n }\r\n return (X509Certificate) certificateChain[0];\r\n } catch (KeyStoreException ex) {\r\n throw new RuntimeException(\"Could not obtain X509Certificate from userPKCS12 keystore using alias: \" + alias, ex);\r\n }\r\n }",
"public X509Certificate getCertificate();",
"public CertPath getCertPath() {\n/* 99 */ return this.certPath;\n/* */ }",
"liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder();",
"private byte[][] getTrustedCertificates() {\n ArrayList localArrayList = new ArrayList();\n try {\n CertificateFactory localCertificateFactory = CertificateFactory.getInstance(\"X.509\");\n Certificate localCertificate = localCertificateFactory.generateCertificate(new StringBufferInputStream(mCurrentProfile.getCert()));\n localArrayList.add(localCertificate.getEncoded());\n return (byte[][]) localArrayList.toArray(new byte[localArrayList.size()][]);\n } catch (Exception e) {\n LogUtil.e(e);\n return null;\n }\n }",
"public String getSslKeyStorePath()\n {\n return sslKeyStorePath;\n }",
"java.util.List<com.google.protobuf.ByteString> getCertificateList();",
"public static X509Certificate buildChain(Key key, Certificate[] chain)\n throws CertificateException, KeyStoreException,\n NoSuchAlgorithmException, InvalidKeyException,\n NoSuchProviderException {\n X509Certificate theOne = null;\n if (key instanceof RSAPrivateCrtKey) {\n final RSAPrivateCrtKey rsa = (RSAPrivateCrtKey) key;\n BigInteger publicExponent = rsa.getPublicExponent();\n BigInteger modulus = rsa.getModulus();\n for (int i = 0; i < chain.length; i++) {\n X509Certificate c = (X509Certificate) chain[i];\n PublicKey pub = c.getPublicKey();\n if (pub instanceof RSAPublicKey) {\n RSAPublicKey certKey = (RSAPublicKey) pub;\n BigInteger pe = certKey.getPublicExponent();\n BigInteger mod = certKey.getModulus();\n if (publicExponent.equals(pe) && modulus.equals(mod)) {\n theOne = c;\n }\n }\n }\n if (theOne == null) {\n throw new KeyStoreException(\"Can't build keystore: [No certificates belong to the private-key]\");\n }\n X509Certificate[] newChain;\n newChain = X509CertificateChainBuilder.buildPath(theOne, chain);\n Arrays.fill(chain, null);\n System.arraycopy(newChain, 0, chain, 0, newChain.length);\n }\n return theOne;\n }",
"public @Nullable\n Certificate getCertificate() throws GeneralSecurityException, IOException {\n KeyStoreManager keyStoreManager = KeyStoreManager.builder()\n .context(Config.getInstance().getContext()).build();\n return keyStoreManager.getCertificate(keyAlias);\n }",
"public URL getKeystoreLocation() {\n return keystoreLocation;\n }",
"public Certificate getCertificate(String alias) throws CryptoException {\n\t\ttry {\n\t\t\treturn keystore.getCertificate(alias);\n\t\t} catch (KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore\", e);\t\t\t\n\t\t}\n\t}",
"public Set<CertificateInfo> getLoadedCertificates() throws GeneralSecurityException, IOException {\n Set<CertificateInfo> certificates = new HashSet<>();\n for (SSLConfiguration config : this.getLoadedSSLConfigurations()) {\n certificates.addAll(config.getDefinedCertificates(env));\n }\n return certificates;\n }",
"public String getTlsCert();",
"public List<NamespacePolicy> getPolicies(X509Certificate[] chain, int position);",
"private @NonNull WpcCrtChn getChn() throws IOException, GeneralSecurityException {\n int siz = MAX_CRT; // Initialize the requested length for the GET_CERTIFICATE Request\n int ofs = 0; // Initialize the offset for the GET_CERTIFICATE Request\n int len = 0; // Initialize length of Certificate Chain\n ByteArrayOutputStream bas = new ByteArrayOutputStream(MAX_CRT); // Create stream for Certificate Chain\n do {\n ByteBuffer req = getMsg(REQ_CRT, 4); // Create GET_CERTIFICATE request message\n req.position(1); // Set buffer pointer to offset\n req.put((byte) (((ofs & 0x0300) >> 2) | SLOT_0)); // Add slot byte\n req.put((byte) ofs); // Add offset\n req.put((byte) siz); // Add Length\n ByteBuffer res = sndMsg(req, WpcAthRsp.RES_CRT); // Send GET_CERTIFICATE Request\n if (ofs == 0) { // First GET_CERTIFICATE Request?\n len = res.getShort(); // Get the total length of the Certificate Chain\n if (len < siz) { // Certificate Chain too small?\n WpcLog.logErr(\"Wrong WPC Certificate Chain length\"); // Log error\n throw new IOException(); // Abort authentication\n }\n }\n byte[] buf = res.array(); // Get CERTIFICATE Response\n if ((siz != (buf.length - 1))) { // Incorrect Certificate Chain fragment size?\n WpcLog.logErr(\"Invalid WPC Certificate Chain length\"); // Log error\n throw new IOException(); // Abort authentication\n }\n bas.write(buf, 1, siz); // Add Certificate fragment to the Certificate Chain\n len = len - siz; // Calculate remaining bytes in the Certificate Chain\n ofs = ofs + siz; // Calculate offset for the next GET_CERTIFICATE Request\n if (len > MAX_CRT) { // Remaining Certificate Chain does not fit into one GET_CERTIFICATE Request?\n siz = MAX_CRT; // Request the maximum fragment for the next GET_CERTIFICATE Request\n } else { // Remaining Certificate Chain fits into one GET_CERTIFICATE Request\n siz = len; // Request the remaining bytes of the Certificate Chain\n }\n } while (len > 0); // Repeat until whole Certificate Chain is received\n byte[] ba = bas.toByteArray(); // Convert WPC Certificate Chain into a byte array\n WpcCrtChn chn = new WpcCrtChn(ba); // Create the Certificate Chain\n chn.verify(); // Verify the Certificate Chain\n mCom.setChn(chn); // Announce used WPC Certificate Chain\n WpcLog.log(WpcLog.EvtTyp.CHN, ba); // Log the received WPC Certificate Chain\n return chn; // Return the Certificate Chain\n }",
"private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }",
"List<X509Cert> getDhPopPeerCertificates() throws CmpClientException;",
"public static SSLSocketFactory getSSLSocketFactory() throws CertificateException, KeyStoreException, IOException, NoSuchAlgorithmException, KeyManagementException {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n // From https://www.washington.edu/itconnect/security/ca/load-der.crt\n InputStream caInput = new BufferedInputStream(BaseApplication.getAppContext().getAssets().open(\"www.baseurl.com.crt\"));\n Certificate ca;\n try {\n ca = cf.generateCertificate(caInput);\n System.out.println(\"ca=\" + ((X509Certificate) ca).getSubjectDN());\n } finally {\n caInput.close();\n }\n\n // Create a KeyStore containing our trusted CAs\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n keyStore.setCertificateEntry(\"ca\", ca);\n\n // Create a TrustManager that trusts the CAs in our KeyStore\n String tmfAlgorithm = TrustManagerFactory.getDefaultAlgorithm();\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(tmfAlgorithm);\n tmf.init(keyStore);\n\n // Create an SSLContext that uses our TrustManager\n SSLContext context = SSLContext.getInstance(\"TLS\");\n context.init(null, tmf.getTrustManagers(), null);\n\n return context.getSocketFactory();\n }",
"public KeyProvider getKeyProvider() {\n return keystore; \n }",
"public java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> getCertificateList() {\n if (certificateBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificate_);\n } else {\n return certificateBuilder_.getMessageList();\n }\n }",
"public X509ExtendedKeyManager getKeyManager();",
"public TreeMap<Integer, Integer> getChain(Integer key)\n{\n return clusters.get(key);\n}",
"public Map<X509Certificate, List<X509Certificate>> getSignerCertificates(final int signersType) {\n throw new UnsupportedOperationException();\n }",
"public Map<String,CertificateMetadata> getCertificates()\r\n {\r\n return _certMap;\r\n }",
"public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }",
"public URL getKeyStore() {\n URL keyStore = null;\n if (keyStoreLocation != null) {\n try {\n keyStore = new URL(\"file:\" + keyStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Keystore has a malformed name: \" + keyStoreLocation, e);\n }\n }\n return keyStore;\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n return certificates_.get(index);\n }",
"@Override\n public InputStream getCertStream() {\n if (Strings.isEmpty(certPath)) {\n throw new NotFoundException(\"cert path not configured\");\n }\n if (certBytes == null) {\n Path path = Paths.get(certPath).toAbsolutePath();\n try {\n certBytes = readAllBytes(path);\n } catch (IOException e) {\n throw new UncheckedIOException(\"read cert failed\", e);\n }\n }\n return new ByteArrayInputStream(certBytes);\n }",
"public final int\n getDepth() { return certificateChain_.size(); }",
"protected static String getCertificatePath() {\n return certificatePath;\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates(int index) {\n if (certificatesBuilder_ == null) {\n return certificates_.get(index);\n } else {\n return certificatesBuilder_.getMessage(index);\n }\n }",
"liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder getCertificateOrBuilder(\n int index);",
"com.google.protobuf.ByteString getCertificate(int index);",
"private List<X509Certificate> getValidationCertificates(String idpEntityID) throws ResolverException {\n if (this.validationCertificates != null && !this.validationCertificates.isEmpty()) {\n return this.validationCertificates;\n }\n else if (this.metadataProvider != null) {\n EntityDescriptor metadata = this.metadataProvider.getEntityDescriptor(idpEntityID);\n if (metadata == null) {\n logger.warn(\"No metadata found for IdP '{}' - cannot find key to use when verifying SAD JWT signature\", idpEntityID);\n return Collections.emptyList();\n }\n List<X509Credential> creds = MetadataUtils.getMetadataCertificates(metadata, UsageType.SIGNING);\n return creds.stream().map(X509Credential::getEntityCertificate).collect(Collectors.toList());\n }\n else {\n return Collections.emptyList();\n }\n }",
"public interface X509CertChainValidator\n{\n\t/**\n\t * Performs validation of a provided certificate path.\n\t * @param certPath to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(CertPath certPath);\n\t\n\t/**\n\t * Performs validation of a provided certificate chain.\n\t * @param certChain to be validated\n\t * @return result of validation\n\t */\n\tpublic ValidationResult validate(X509Certificate[] certChain);\n\t\n\t/**\n\t * Returns a list of trusted issuers of certificates. \n\t * @return array containing trusted issuers' certificates\n\t */\n\tpublic X509Certificate[] getTrustedIssuers();\n\t\n\t/**\n\t * Registers a listener which can react to errors found during certificate \n\t * validation. It is useful in two cases: (rarely) if you want to change \n\t * the default logic of the validator and if you will use the validator indirectly\n\t * (e.g. to validate SSL socket connections) and want to get the original \n\t * {@link ValidationError}, not the exception. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addValidationListener(ValidationErrorListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered validation listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeValidationListener(ValidationErrorListener listener);\n\t\n\t\n\t/**\n\t * Registers a listener which can react to errors found during refreshing \n\t * of the trust material: trusted CAs or CRLs. This method is useful only if\n\t * the implementation supports updating of CAs or CRLs, otherwise the listener\n\t * will not be invoked. \n\t * \n\t * @param listener to be registered\n\t */\n\tpublic void addUpdateListener(StoreUpdateListener listener);\n\t\n\t/**\n\t * Unregisters a previously registered CA or CRL update listener. If the listener\n\t * was not registered then the method does nothing. \n\t * @param listener to be unregistered\n\t */\n\tpublic void removeUpdateListener(StoreUpdateListener listener);\n}",
"X509Certificate getCertAlias(String alias) throws KeyStoreException\n\t{\n\t\tX509Certificate x509 = (X509Certificate) keyStore.getCertificate(alias);\n\t\treturn x509;\n\t}",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);",
"liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder(\n int index);",
"public ArrayList<Integer> getCertificates() {\r\n return certificates;\r\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n }",
"java.util.List<? extends liubaninc.m0.pki.CertificateOuterClass.CertificateOrBuilder> \n getCertificateOrBuilderList();",
"public TreeMap<Integer, Integer> getElChain(Integer key)\n{\n return clusters.get(NPchains.get(key));\n}",
"public CertPath getSignerCertPath() {\n return signerCertPath;\n }",
"private static void readPrivateKeyFromPKCS11() throws KeyStoreException {\n String configFileName = jarPath + \"pkcs11.cfg\";\r\n\r\n Provider p = null;\r\n try {\r\n p = new SunPKCS11(configFileName);\r\n Security.addProvider(p);\r\n } catch (ProviderException e) {\r\n LanzaError( \"no es correcto el fichero de configuración de la tarjeta\" );\r\n }\r\n \r\n KeyStore ks = null;\r\n try {\r\n ks = KeyStore.getInstance(\"pkcs11\", p);\r\n ks.load(null, clave );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la tarjeta (n.1)\" );\r\n } catch (CertificateException e) {\r\n LanzaError( \"leyendo la tarjeta (n.2)\" );\r\n } catch (IOException e) {\r\n LanzaError( \"leyendo la tarjeta (n.3)\" );\r\n }\r\n\r\n String alias = \"\";\r\n try {\r\n alias = (String) ks.aliases().nextElement();\r\n privateKey = (PrivateKey) ks.getKey(alias, clave);\r\n } catch (NoSuchElementException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.1)\" );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.2)\" );\r\n } catch (UnrecoverableKeyException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.3)\" );\r\n }\r\n certificateChain = ks.getCertificateChain(alias);\r\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.Certificates getCertificates() {\n if (certificatesBuilder_ == null) {\n return certificates_ == null ? liubaninc.m0.pki.CertificatesOuterClass.Certificates.getDefaultInstance() : certificates_;\n } else {\n return certificatesBuilder_.getMessage();\n }\n }",
"private SSLSocketFactory newSSLSocketFactory() {\n\n KeyStore trusted;\n\n try {\n trusted = KeyStore.getInstance(\"AndroidCAStore\");\n trusted.load(null, null);\n Enumeration<String> aliases = trusted.aliases();\n\n while (aliases.hasMoreElements()) {\n String alias = aliases.nextElement();\n X509Certificate cert = (X509Certificate) trusted.getCertificate(alias);\n Log.d(\"\", \"Alias=\"+alias);\n Log.d(\"\", \"Subject DN: \" + cert.getSubjectDN().getName());\n Log.d(\"\", \"Issuer DN: \" + cert.getIssuerDN().getName());\n } \n\n SSLSocketFactory sf = new SSLSocketFactory(trusted);\n sf.setHostnameVerifier(SSLSocketFactory.STRICT_HOSTNAME_VERIFIER);\n\n return sf;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n throw new AssertionError(e);\n } \n}",
"public java.util.List<liubaninc.m0.pki.CertificateOuterClass.Certificate> getCertificateList() {\n return certificate_;\n }",
"public List<String> getSignatureKeyAliases() throws CryptoException {\n\t\t\n\t\ttry {\n\t\t\tList<String> signatureAliases = new ArrayList<String>();\n\t\t\tEnumeration<String> aliases = keystore.aliases();\n\t\t\twhile(aliases.hasMoreElements()) {\n\t\t\t\tString alias = aliases.nextElement();\n\t\t\t\ttry {\n\t\t\t\t\tlogger.debug(\"analysing alias: '{}'...\", alias);\t\t\t\t\t\n\t\t\t\t\tCertificate certificate = keystore.getCertificate(alias);\n\t\t\t\t\tif(certificate instanceof X509Certificate) {\n\t\t\t\t\t\tlogger.debug(\" - certificate : 'X.509'\");\n\t\t\t\t\t\tif(\tCertificates.isNonRepudiationX509Certificate((X509Certificate)certificate) && \n\t\t\t\t\t\t\tCertificates.hasCriticalExtension((X509Certificate)certificate, SIGNATURE_CRITICAL_EXTENSION_OID)) {\n\t\t\t\t\t\t\tlogger.debug(\" - good for signing : true\");\n\t\t\t\t\t\t\tsignatureAliases.add(alias);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlogger.debug(\" - good for signing : false\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.debug(\" - certificate : 'plain'\");\n\t\t\t\t\t\tlogger.debug(\" - good for signing : false\");\n\t\t\t\t\t}\n\t\t\t\t} catch (KeyStoreException e) {\n\t\t\t\t\t// this error is swallowed intentionally, as a failure on one \n\t\t\t\t\t// certificate should not prevent the analysis of the others \n\t\t\t\t\tlogger.error(\"error accessing certificate for alias '{}'\", alias);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn signatureAliases;\n\t\t} catch(KeyStoreException e) {\n\t\t\tlogger.error(\"error accessing the keystore to enumerate aliases\", e);\n\t\t\tthrow new CryptoException(\"error accessing the keystore to enumerate aliases\", e);\t\t\t\t\t\t\n\t\t}\n\t}",
"public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }",
"public liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder getCertificatesOrBuilder() {\n return getCertificates();\n }",
"public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }",
"public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n return certificates_;\n }",
"private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}",
"private void loadTM() throws ERMgmtException{\n try{\n KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());\n //random number generate to generated aliases for the new keystore\n Random generator = new Random();\n \n ts.load(null, null);\n \n if(mCertList.size() > 0){\n for(int i=0; i<mCertList.size(); i++){\n int randomInt = generator.nextInt();\n while(ts.containsAlias(\"certificate\"+randomInt)){\n randomInt = generator.nextInt();\n }\n ts.setCertificateEntry(\"certificate\"+randomInt, (X509Certificate) mCertList.get(i));\n } \n mTrustManagerFactory.init(ts); \n } else { \n mTrustManagerFactory.init((KeyStore) null);\n }\n \n TrustManager[] tm = mTrustManagerFactory.getTrustManagers();\n for(int i=0; i<tm.length; i++){\n if (tm[i] instanceof X509TrustManager) {\n mTrustManager = (X509TrustManager)tm[i]; \n break;\n }\n }\n \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error\", e);\n }\n \n }",
"public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }",
"public java.util.List<liubaninc.m0.pki.CertificatesOuterClass.Certificates> getCertificatesList() {\n if (certificatesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(certificates_);\n } else {\n return certificatesBuilder_.getMessageList();\n }\n }",
"byte[] getPackageCertificate() throws Exception {\n\t\tPackageInfo info;\n\t\tinfo = getPackageManager().getPackageInfo(getPackageName(), PackageManager.GET_SIGNATURES);\n\t\tfor (Signature signature : info.signatures) {\n\t\t\treturn signature.toByteArray();\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public String getCACertificate() throws IOException {\n LOGGER.debug(\"Getting CA certificate.\");\n try {\n return getPEMEncodedString(\n scmCertificateServer.getCaCertPath());\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getRootCertificate operation failed. \",\n e, GET_CA_CERT_FAILED);\n }\n }",
"public PublicKeyStoreBuilderBase getKeystore() {\n return keystore;\n }",
"java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();",
"java.util.List<? extends liubaninc.m0.pki.CertificatesOuterClass.CertificatesOrBuilder> \n getCertificatesOrBuilderList();"
] | [
"0.69246125",
"0.6718227",
"0.64766884",
"0.6105908",
"0.6082079",
"0.5988767",
"0.5880961",
"0.5877681",
"0.5877681",
"0.57865036",
"0.57865036",
"0.5769726",
"0.5769013",
"0.57302564",
"0.57227564",
"0.56792635",
"0.56396896",
"0.56396896",
"0.56198156",
"0.5580087",
"0.5547946",
"0.55259675",
"0.5524927",
"0.5519576",
"0.5479187",
"0.5456454",
"0.54403055",
"0.54132575",
"0.5410739",
"0.5370031",
"0.5356866",
"0.5351426",
"0.53501683",
"0.5334432",
"0.5326942",
"0.53163326",
"0.5293225",
"0.52930063",
"0.52930063",
"0.5262214",
"0.5260455",
"0.5244118",
"0.524235",
"0.5240894",
"0.5167183",
"0.51625234",
"0.51388",
"0.51282346",
"0.51226324",
"0.5107781",
"0.5098011",
"0.50621533",
"0.5059493",
"0.5048174",
"0.5042408",
"0.5038968",
"0.50294596",
"0.50187427",
"0.5005981",
"0.50043416",
"0.49975833",
"0.49930698",
"0.49930698",
"0.4984191",
"0.4975429",
"0.49705738",
"0.4955209",
"0.4955209",
"0.4951728",
"0.49461856",
"0.49433514",
"0.4941767",
"0.49386585",
"0.4935295",
"0.4935295",
"0.49334237",
"0.4929379",
"0.4929379",
"0.49275187",
"0.49257535",
"0.49100024",
"0.4909763",
"0.49059916",
"0.49059916",
"0.49042562",
"0.4895387",
"0.48568606",
"0.48388642",
"0.48388642",
"0.48385605",
"0.48385605",
"0.483584",
"0.4833897",
"0.4831319",
"0.4831319",
"0.48193333",
"0.48173675",
"0.48108882",
"0.47976798",
"0.47976798"
] | 0.69292176 | 0 |
Returns true if the given permutation is valid | private static boolean validateCurrentPerm(int[] perm, int k) {
if (k == 0) {
return true;
}
for (int i = 0; i <= k - 1; i++) {
for (int j = i + 1; j <= k; j++) {
if (perm[i] == perm[j]) {
return false;
}
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testIsPermutationOnPermutation() {\n\t\tassertTrue(ArraysAndStrings.isPermutation(PERMUTATION_ONE, PERMUTATION_TWO));\n\t}",
"@Test\n\tprivate void checkPossibilityTest() {\n\t\tint[] input = new int[] {1,1,1};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {0,0,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {4,2,3};\n Assertions.assertThat(checkPossibility(input)).isTrue();\n\n input = new int[] {2,3,4,2,3};\n Assertions.assertThat(checkPossibility(input)).isFalse();\n\t}",
"public boolean checkIfPermutationPalindrome(String str) {\n\n Hashtable<Character, Integer> table = generateTable(str);\n\n int oneOdd = 0;\n boolean flag;\n for(char ch : table.keySet()) {\n if(table.get(ch)%2 == 1) {\n oneOdd++;\n }\n }\n if(oneOdd <= 1) {\n flag = true;\n }\n else {\n flag = false;\n }\n if(str.length() == 0) {\n flag = false;\n }\n System.out.println(flag);\n return flag;\n }",
"private boolean testIfPermutationIsValid(Integer[] s1, Integer[] s2, List<ChesspairingPlayer> players) {\n\t\tfor (int i = 0; i < s1.length; i++) {\n\t\t\tint indexA = s1[i];\n\t\t\tint indexB = s2[i];\n\t\t\tChesspairingGame game = new ChesspairingGame();\n\t\t\tgame.setWhitePlayer(players.get(indexA));\n\t\t\tgame.setBlackPlayer(players.get(indexB));\n\t\t\tboolean gameIsValid = testIfGameIsValid(game);\n\t\t\tif (!gameIsValid) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean nextPermutation(int[] num) {\n int i = num.length - 1;\n while (i > 0 && num[i - 1] >= num[i]) {\n i--;\n }\n \n // if all permutations have been found\n if (i == 0) return false;\n \n // find the last element that is larger than num[i-1]\n int j = num.length - 1;\n while (j >= i && num[i - 1] >= num[j]) {\n j--;\n }\n \n // exchange num[i-1] and num[j]\n int tmp = num[i - 1];\n num[i - 1] = num[j];\n num[j] = tmp;\n \n // reverse the sequence after i-1\n reverse(num, i, num.length - 1);\n \n return true;\n }",
"public static boolean isPermutation(String str) {\n if (str == null || str.equals(\"\")) {\n return false;\n }\n char[] characters = new char[256];\n for (int i = 0; i < str.length(); i++) {\n characters[str.charAt(i)]++;\n }\n int count = 0;\n for (char c : characters) {\n if (!(c == 0 || c % 2 == 0)) {\n if (count == 0) {\n count++;\n } else {\n return false; // allow only one character to occur once\n }\n }\n }\n return true;\n }",
"@Test\n\tpublic void testPermutation() {permutation(\"abcd\");\n\t\t//0 1 0 0 9\n\t//\tpermute(\"aaab\");\n\t\t//\n\t\tpermutation(\"aaabc\");\n\t\tpermuteWithDups(\"aaabc\");\n\t}",
"public static boolean isPermutation(char[] str) {\n if (str == null) {\n return false;\n }\n java.util.Arrays.sort(str);\n int count = 0;\n int maxOdds = 0;\n for (int i = 1; i < str.length; i++) {\n if (str[i] == str[i-1]) {\n count++;\n } else {\n if (count % 2 != 1) {\n maxOdds++;\n if (maxOdds > 1) {\n return false;\n }\n }\n count = 0;\n }\n }\n if(str[str.length-1] == str[str.length-2]) {\n if (count % 2 != 1) {\n maxOdds++;\n if (maxOdds > 1) {\n return false;\n }\n }\n }\n return true;\n }",
"private static boolean isPermutation(String str1, String str2) {\r\n if (!validate(str1, str2)) {\r\n return false;\r\n }\r\n if (str1.isEmpty() && str2.isEmpty()) { // simple case\r\n return true; // empty strings are permutation of each other\r\n }\r\n\r\n return fillCounter(str1).equals(fillCounter(str2));\r\n }",
"private void verifyIndicesIsPermutation()\n {\n boolean seen[] = new boolean[length];\n \n for( int i=0; i<length; i++ ){\n int ix = indices[i];\n \n if( ix<0 ){\n System.out.println( \"Error: Negative index: indices[\" + i + \"]=\" + ix );\n }\n else if( ix>=indices.length ){\n System.out.println( \"Error: Index out of range: indices[\" + i + \"]=\" + ix );\n }\n else if( seen[ix] ){\n System.out.println( \"Error: Duplicate index: indices[\" + i + \"]=\" + ix );\n }\n else {\n seen[ix] = true;\n }\n }\n }",
"public Boolean isPermutationOfPalindrome(String value) {\n\t\t//Validation step \n\t\tif (value == null) return null; \n\n\t\tint countOdd = 0;\n\n\t\tint[] table = new int[26];\n\n\t\tfor (char letter : value.toCharArray()) {\n\t\t\tif (getCharNumber(letter) != -1) {\n\t\t\t\ttable[getCharNumber(letter)]++;\n\t\t\t\tif (table[getCharNumber(letter)] % 2 == 1) {\n\t\t\t\t\tcountOdd++;\n\t\t\t\t} else {\n\t\t\t\t\tcountOdd--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn countOdd <= 1;\n\t}",
"public static boolean isPermutation(int[] inputArray)\n\t{\n\t\t//boolean isPerm = true;\n\t\tif (inputArray != null && inputArray.length > 0) \n\t\t{\n\t\t\tint min = inputArray[0];\n\t\t\tint max = inputArray[0]; \n\t\t\tboolean[] bins = new boolean[inputArray.length];\t\t\t\n\t\t\tfor (int index = 0; index < inputArray.length; index++)\n\t\t\t{\n\t\t\t\tbins[index] = false;\n\t\t\t\tif (inputArray[index] < min)\n\t\t\t\t{\n\t\t\t\t\tmin = inputArray[index];\n\t\t\t\t}\n\t\t\t\tif (inputArray[index] > max)\n\t\t\t\t{\n\t\t\t\t\tmax = inputArray[index];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (max - min == inputArray.length - 1)\n\t\t\t{\n\t\t\t\tfor (int index = 0; index < inputArray.length; index++)\n\t\t\t\t{\n\t\t\t\t\tint compareIndex = inputArray[index] - min;\n\t\t\t\t\tif (bins[compareIndex])\n\t\t\t\t\t{\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} \n\t\t\t\t\tbins[compareIndex] = true;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t} \n\t\t}\n\t\treturn false;\n\t}",
"public static boolean isPermutation(String s1, String s2) {\n // TODO\n /** using set, and add a compare method in the set interface */\n return false;\n }",
"boolean permutationOpt(String s, String t) {\n if (s.length() != t.length() ) { return false;}\r\n\r\n int[] charCnt = new int[128];\r\n for (int i = 0; i < s.length(); i ++) {\r\n int val = s.charAt(i);\r\n charCnt[val] ++;\r\n }\r\n\r\n for (int i = 0; i < t.length(); i ++) {\r\n int val = t.charAt(i);\r\n charCnt[val] --;\r\n if (charCnt[val] < 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true; // If the length of two strings are equal, then when there is no negative counts there should not be positive counts either.\r\n }",
"public boolean hasNext()\r\n/* */ {\r\n/* 111 */ return this.permOrder.hasNextPermutaions();\r\n/* */ }",
"static boolean permutation(String s, String t){\n if(s.length() != t.length()){\n return false;\n }\n\n Map<Character, Integer> sCount = new HashMap<>();\n Map<Character, Integer> tCount = new HashMap<>();\n\n for(int i = 0;i < s.length();i++){\n Character sChar = s.charAt(i);\n Character tChar = t.charAt(i);\n sCount.put(sChar, sCount.getOrDefault(sChar, 0) + 1);\n tCount.put(tChar, tCount.getOrDefault(tChar, 0) + 1);\n }\n //Character and Integer objects have their equals methods defined\n return sCount.equals(tCount);\n }",
"public static void checkPermutation(String str) {\n \t\n \tint length = str.length();\n\t\t\n \t//list to store permutations\n \tList<String> stringByRecursive = new ArrayList<>();\n\t\tList<String> stringByIteration = new ArrayList<>();\n\t\t\n\t\t\n\t\tList<String> listOfPermutByRecursive = getPermutationByRecursion(str, stringByRecursive, 0, length-1);\n\t\tList<String> listOfPermutByIterate = getPermutationByIteration(str, \"\", stringByIteration);\n\t\t\n\t\t//sorting the permutation list\n\t\tCollections.sort(listOfPermutByRecursive);\n\t\tCollections.sort(listOfPermutByIterate);\n\t\t\n\t\tSystem.out.println(\"\\nPermutation of String : \"+str+\" By Recursion Approch \\n\");\n\t\tSystem.out.println(listOfPermutByRecursive);\n\t\t\n\t\tSystem.out.println(\"\\nPermutation of String : \"+str+\" By Iterative Approch \\n\");\n\t\tSystem.out.println(listOfPermutByIterate);\n\t\t\n\t\t//checking both list are same / not\n\t\tif(listOfPermutByIterate.equals(listOfPermutByRecursive)) {\n\t\t\t\n\t\t\tSystem.out.println(\"\\nPermutation Given By Iterative Approch & Recursion Approch Are Same\");\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tSystem.out.println(\"\\nPermutation Given By Iterative Approch & Recursion Approch Are Not Same\");\n\t\t}\n }",
"public static boolean isPermutation(String sIn1, String sIn2){\n if (sIn1.length()!= sIn2.length()) return false;\n\n char[] string1 = sIn1.toCharArray();\n char[] string2 = sIn2.toCharArray();\n\n Arrays.sort(string1);\n Arrays.sort(string2);\n\n return Arrays.equals(string1, string2);\n\n }",
"private boolean checkFinalPuzzle() throws Exception {\n for(int i = 0; i < puzzle.getColumns(); ++i) {\n var clues = puzzle.getColumnClue(i);\n var solver_col = searchBoard.getFilledGroups(i, TraversalType.COLUMN);\n if(clues.size() != solver_col.size()) {\n return false;\n }\n for(int j = 0; j < clues.size(); ++j) {\n if(!clues.get(j).equals(solver_col.get(j))) {\n return false;\n }\n }\n }\n for(int i = 0; i < puzzle.getRows(); ++i) {\n var clues = puzzle.getRowClue(i);\n var solver_row = searchBoard.getFilledGroups(i, TraversalType.ROW);\n if(clues.size() != solver_row.size()) {\n return false;\n }\n for(int j = 0; j < clues.size(); ++j) {\n if(!clues.get(j).equals(solver_row.get(j))) {\n return false;\n }\n }\n }\n return true;\n }",
"public static boolean checkIfPermutations(String str1, String str2) {\n\n if(str1.length() != str2.length())\n return false;\n\n char chars1[] = str1.toCharArray();\n char chars2[] = str2.toCharArray();\n\n Arrays.sort(chars1);\n Arrays.sort(chars2);\n\n for(int i=0; i<str1.length(); i++) {\n if(chars1[i] != chars2[i])\n return false;\n }\n\n return true;\n }",
"private boolean isValid(char[] combinations) {\n\t\tint balance = 0;\n\t\tfor (char c : combinations) {\n\t\t\tif (c == '(') {\n\t\t\t\tbalance++;\n\t\t\t} else {\n\t\t\t\tbalance--;\n\t\t\t\tif (balance < 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn balance == 0;\n\t}",
"private boolean nextPermutation(int row) {\n \tint rightMostBlockSize = rowHints.get(row).get(rowHints.get(row).size() - 1);\n \tif (rightMostBlockSize == 0) return false;\n \tint[] vector = matrix[row];\n \tif (vector[0] == UNKNOWN) {\n \t\tfirstPermutationWithPredictions(row); // could be changed to firstPermutation(row) if no predictions shall be made.\n \t\treturn true;\n \t}\n \t// First step: find the starting position of the rightmost block\n \tint rightMostBlockPosition = vector.length - 1;\n \twhile (vector[rightMostBlockPosition] == EMPTY && rightMostBlockPosition > 0) {\n \t\trightMostBlockPosition--;\n \t}\n \trightMostBlockPosition -= rightMostBlockSize - 1;\n \t// if there is empty space after rightmost block\n \tif (rightMostBlockPosition + rightMostBlockSize < vector.length) { \n \t\t// move the last block to the right by 1 unit --> this is the next permutation\n \t\tvector[rightMostBlockPosition] = EMPTY;\n \t\tvector[rightMostBlockPosition + rightMostBlockSize] = FILLED;\n \t\treturn true;\n \t}\n \t// If there is no space after the rightmost block: \n \t// try to find the next block from the right that can be moved to the right\n \tint i = rightMostBlockPosition - 2; // it is at least 2 units further away (there is always a space between blocks)\n \tif (i < 0) return false; // if there is no such block: no more permutations possible\n \tint emptyCells = 1; // count the empty cells between blocks\n \t// do until we found a block and there are at least 2 spaces right to it\n \twhile(vector[i] == EMPTY || vector[i+1] != EMPTY || vector[i+2] != EMPTY) {\n \t\tif (vector[i] == EMPTY) emptyCells++;\n \t\telse emptyCells = 0;\n \t\ti--;\n \t\tif (i < 0) return false;\n \t}\n \tif (emptyCells < 1) return false; // if there is not at least 1 space: no more permutations\n \tint filledCells = 1; // now count the size of the block we found (it's at least 1 unit long)\n \twhile (i > 0 && vector[i-1] == FILLED) {\n \t\tfilledCells++;\n \t\ti--;\n \t}\n \tvector[i] = EMPTY; // \"move\" the found block 1 unit to right\n \tvector[i + filledCells] = FILLED;\n \t// move all the other blocks as far to the left as possible (zeros is used as offset basically)\n \t// the +2 / -2 is there because starting from the rightmost side of the found block (i + ones), \n \t// we don't just need to go 1 unit to the right, but 2, since there is a space between each block.\n \tfor (int j = i + filledCells + 2; j < vector.length - emptyCells + 2; j++) {\n \t\tif (j != j + emptyCells - 2) {\n\t \t\tvector[j] = vector[j + emptyCells - 2];\n\t \t\tvector[j + emptyCells - 2] = EMPTY;\n \t\t}\n \t}\n \treturn true;\n }",
"public boolean canPermutePalindrome(String input) {\n if (input == null) {\n return false;\n }\n if (input.length() == 0) {\n return true;\n }\n char[] temp = input.toCharArray();\n // StringBuilder sol = new StringBuilder();\n boolean[] result = new boolean[] { false };\n DFS(0, temp, result);\n return result[0];\n }",
"static boolean isPermutation_1(String a, String b){\n //get the sorted format of a string\n String sorted_A = sortString(a);\n String sorted_B = sortString(b);\n return sorted_A.equals(sorted_B);\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(checkPermutation(\"abcab\", \"aabbc\"));\n\t\tSystem.out.println(checkPermutation(\"aaaa\", \"aaaa\"));\n\n\t}",
"public boolean canPermutePalindrome(String s) {\n /** s only contains lowercase chars. **/\n int[] occur = new int[26];\n for (char ch : s.toCharArray()) {\n occur[ch - 'a'] += 1;\n }\n\n int count = 0;\n for (int i = 0; i < occur.length; i++) {\n if (occur[i] % 2 == 1) {\n count += 1;\n }\n }\n return count <= 1;\n }",
"public static void main(String[] args) {\n\t\tisPermutation(\"Dfhruviul\",\"rDhuflviu\");\r\n\t}",
"public boolean isPermutation(String str1, String str2) {\n\n\t\tif (str1.length() != str2.length()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tboolean isCharacterPresent = false;\n\n\t\tfor (int i = 0; i < str1.length(); i++) {\n\t\t\tfor (int j = 0; j < str2.length(); j++) {\n\t\t\t\tif (str1.charAt(i) == str2.charAt(j)) {\n\t\t\t\t\tisCharacterPresent = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!isCharacterPresent) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tisCharacterPresent = false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public static boolean checkPermutation3 (String input1, String input2) {\n\t\t\n\t\tint[] asciiVal = new int[256];\n\t\t\n\t\tfor (int i = 0; i < input1.length(); i++) {\n\t\t\tasciiVal[(int) input1.charAt(i)] += 1;\n\t\t}\n\t\t\n\t\tfor (int j = 0; j < input2.length(); j++) {\n\t\t\tif (asciiVal[(int) input2.charAt(j)] <= 0) return false;\n\t\t\tasciiVal[(int) input2.charAt(j)] -= 1;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public boolean validate() {\n double ab = lengthSide(a, b);\n double ac = lengthSide(a, c);\n double bc = lengthSide(b, c);\n\n return ((ab < ac + bc)\n && (ac < ab + bc)\n && (bc < ab + ac));\n }",
"private boolean isSolvable() {\n\t\tshort permutations = 0; // the number of incorrect orderings of tiles\n\t\tshort currentTileViewLocationScore;\n\t\tshort subsequentTileViewLocationScore;\n\n\t\t// Start at the first tile\n\t\tfor (int i = 0; i < tiles.size() - 2; i++) {\n\t\t\tTile tile = tiles.get(i);\n\n\t\t\t// Determine the tile's location value\n\t\t\tcurrentTileViewLocationScore = computeLocationValue(tile\n\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t// Compare the tile's location score to all of the tiles that\n\t\t\t// follow it\n\t\t\tfor (int j = i + 1; j < tiles.size() - 1; j++) {\n\t\t\t\tTile tSub = tiles.get(j);\n\n\t\t\t\tsubsequentTileViewLocationScore = computeLocationValue(tSub\n\t\t\t\t\t\t.getCorrectLocation());\n\n\t\t\t\t// If a tile is found to be out of order, increment the number\n\t\t\t\t// of permutations.\n\t\t\t\tif (currentTileViewLocationScore > subsequentTileViewLocationScore) {\n\t\t\t\t\tpermutations++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// return whether number of permutations is even\n\t\treturn permutations % 2 == 0;\n\t}",
"public boolean isRandomPerm()\n\t{\n\t\tboolean[] bins = new boolean[arraySize];\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tbins[index] = false;\n\t\t}\n\t\tfor (int index = 0; index < arraySize; index++)\n\t\t{\n\t\t\tif (bins[array[index] - 1])\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\tbins[array[index] - 1] = true;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isIdealPermutation(int[] A) {\n int numLocalInvrtions = 0, numGlobalInvertions = 0;\n for(int i = 0; i< A.length; i++){\n if(A[i] > A[i+1]) numLocalInvrtions++;\n }\n\n for(int i = 0; i < A.length-1; i++){\n for(int j = i+1; j < A.length;j++){\n if(A[i] > A[j]) numGlobalInvertions++;\n }\n }\n return numLocalInvrtions == numGlobalInvertions;\n }",
"protected boolean isValid(List<Card> deck) {\r\n //Assume true\r\n boolean isValid = true;\r\n\r\n if (deck == null) {\r\n return false;\r\n }\r\n\r\n for (int i = 0; i < deck.size(); i++) {\r\n for (int j = i + 1; j < deck.size(); j++) {\r\n for (int k = j + 1; k < deck.size(); k++) {\r\n if (deck.get(i).equals(deck.get(j)) && deck.get(i).equals(deck.get(k))) {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //if deck is valid, return true\r\n if (deck.size() != 104) {\r\n return false;\r\n }\r\n return isValid;\r\n }",
"public static boolean isPalindromePermutation(final String s) {\n if(s == null || s.length() == 0) {\n return false;\n }\n\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n\n char[] chars = s.toCharArray();\n for(char c : chars) {\n if(c == ' ') {\n continue;\n }\n char lowerChar = Character.toLowerCase(c);\n map.put(lowerChar, map.get(lowerChar) != null ? map.get(lowerChar) + 1 : 1);\n }\n\n boolean isOnlyOneOddVal = false;\n boolean foundOneOddAtleast = false;\n for(int val : map.values()) {\n if(val % 2 == 0) {\n continue;\n }\n foundOneOddAtleast = true;\n\n if(!isOnlyOneOddVal) {\n isOnlyOneOddVal = true;\n } else {\n isOnlyOneOddVal = false;\n break;\n }\n }\n if(!foundOneOddAtleast) {\n return true;\n }\n if(isOnlyOneOddVal) {\n return true;\n }\n return false;\n }",
"public static boolean checkPermutation(String input1, String input2) {\n\n\t\tchar[] inputArray1 = input1.toCharArray();\n\t\tchar[] inputArray2 = input2.toCharArray();\n\n\t\tArrays.sort(inputArray1);\n\t\tArrays.sort(inputArray2);\n\n\t\tSystem.out.println(inputArray1);\n\t\tSystem.out.println(inputArray2);\n\n\t\treturn new String(inputArray1).equals(new String(inputArray2));\n\t}",
"private boolean validateDiploidGenomes(ArrayList<DiploidGenome> genomes)\n\t{\n\t\tthis.logger.info(\"Testing validity of migrant population (ie. if migrant population has the same SNPs as the base popualtion)\");\n\n\t\tSNPCollection tocompare=genomes.get(0).getHaplotypeA().getSNPCollection();\n\n\t\tif(tocompare.size()!=this.controlCollection.size())throw new IllegalArgumentException(\"Invalid migrant population; Migrant population has different SNPs than the base population; size \"+tocompare.size()+\" vs \"+controlCollection.size());\n\t\tfor(int i=0; i<tocompare.size(); i++)\n\t\t{\n\t\t\tSNP valid=this.controlCollection.getSNPforIndex(i);\n\t\t\tSNP check=tocompare.getSNPforIndex(i);\n\t\t\tif(!valid.equals(check)) throw new IllegalArgumentException(\"Invalid migrant population; Migrant population has different SNPs than the base population \"+valid.toString()+ \" vs \"+check.toString());\n\n\t\t}\n\t\tthis.logger.info(\"Finished; Migrant population is valid\");\n\t\treturn true;\n\t}",
"private boolean checkStatesByOrientations(Puzzle puzzle) {\n for (int top = 0; top < ORIENTATIONS.size(); top++)\n for (int bottom = 0; bottom < ORIENTATIONS.size(); bottom++)\n for (int left = 0; left < ORIENTATIONS.size(); left++)\n for (int right = 0; right < ORIENTATIONS.size(); right++)\n for (int back = 0; back < ORIENTATIONS.size(); back++)\n for (int front = 0; front < ORIENTATIONS.size(); front++) {\n Puzzle orientationPuzzle = new Puzzle(new PuzzlePiece(puzzle.getTopPuzzlePiece(), ORIENTATIONS.get(top)),\n new PuzzlePiece(puzzle.getBottomPuzzlePiece(), ORIENTATIONS.get(bottom)),\n new PuzzlePiece(puzzle.getLeftPuzzlePiece(), ORIENTATIONS.get(left)),\n new PuzzlePiece(puzzle.getRightPuzzlePiece(), ORIENTATIONS.get(right)),\n new PuzzlePiece(puzzle.getBackPuzzlePiece(), ORIENTATIONS.get(back)),\n new PuzzlePiece(puzzle.getFrontPuzzlePiece(), ORIENTATIONS.get(front)));\n if (canMatchConditions(orientationPuzzle)) {\n solutions.put(solutions.size(), orientationPuzzle);\n logger.debug(\"Solution : \" + orientationPuzzle);\n return true;\n }\n }\n return false;\n }",
"public boolean esProbabilidadCorrecta(int valor, double probabilidad) {\n double sumaProbabilidadesTrucadas = probabilidad;\n for (double p: this.probabilidad) {\n if (p >= 0) {\n sumaProbabilidadesTrucadas += p;\n }\n }\n if (this.probabilidad[valor - 1] > 0) { // esta cara ya estaba trucada de antes y se ha sumado de mas\n sumaProbabilidadesTrucadas -= this.probabilidad[valor-1];\n }\n \n return sumaProbabilidadesTrucadas <= 1;\n }",
"boolean isFinalAnswer(List<List<Integer>> puzzle) {\n List<Integer> expectedList = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9);\n\n // check row\n int rowMatchedCount = 9;\n for (int rowIndex = 0; rowIndex < 9; rowIndex++) {\n List<Integer> rowNums = new ArrayList<>(puzzle.get(rowIndex));\n Collections.sort(rowNums);\n if (rowNums.equals(expectedList)) {\n rowMatchedCount -= 1;\n }\n }\n\n // check col\n int colMatchedCount = 9;\n for (int colIndex = 0; colIndex < 9; colIndex++) {\n List<Integer> colNums = new ArrayList<>(getColValues(colIndex, puzzle));\n Collections.sort(colNums);\n if (colNums.equals(expectedList)) {\n colMatchedCount -= 1;\n }\n }\n\n // check block\n int blockMatchedCount = 9;\n for (List<Integer> rowAndCol : getAllBlockTopLeftPos()) {\n List<Integer> blockNums =\n new ArrayList<>(getBlockValues(rowAndCol.get(0), rowAndCol.get(1), puzzle));\n Collections.sort(blockNums);\n if (blockNums.equals(expectedList)) {\n blockMatchedCount -= 1;\n }\n }\n\n return (rowMatchedCount + colMatchedCount + blockMatchedCount) == 0;\n }",
"private boolean determineValid(){\n for(Integer val : group){\n if(!racers.containsKey(val)){\n WrongNumber = val;\n return false;\n }\n }\n return true;\n }",
"private static boolean checkPermutationSorting(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n // Since strings are immutable, we wrote a simple sort function that returns the sorted string.\n String sortedS1 = sort(s1);\n String sortedS2 = sort(s2);\n\n return sortedS1.equals(sortedS2);\n }",
"private boolean checkAttemptValid( String attempt ) {\r\n String tokenString = attempt.replaceAll( \"[^\\\\d]\", \" \");\r\n StringTokenizer st = new StringTokenizer(tokenString);\r\n int[] userNums = new int[st.countTokens()];\r\n int i=0;\r\n while(st.hasMoreTokens()) {\r\n int num = Integer.parseInt( st.nextToken());\r\n userNums[i] = num;\r\n i++;\r\n }\r\n if( !numbersCorrect( userNums )) {\r\n target.reply(\"You used a number not in the selection!\");\r\n return false;\r\n }\r\n //all numbers are correct, so now check remaining operators.\r\n //we gradually strip away everything allowed. If anything is left after that,\r\n //the attempt is invalid.\r\n attempt = attempt.replaceAll(\"\\\\d\", \"\"); //strip all numbers\r\n attempt = attempt.replaceAll(\"/\", \"\"); //strip \\ sign\r\n attempt = attempt.replaceAll(\"\\\\*\", \"\"); //strip *\r\n attempt = attempt.replaceAll(\"\\\\+\", \"\"); //strip +\r\n attempt = attempt.replaceAll(\"\\\\-\", \"\"); //strip -\r\n attempt = attempt.replaceAll(\"\\\\)\", \"\"); //strip )\r\n attempt = attempt.replaceAll(\"\\\\(\", \"\"); //strip (\r\n attempt = attempt.replaceAll(\" \", \"\"); //zap spaces\r\n\r\n return attempt.length() <= 0;\r\n }",
"public boolean isValid() {\n\t\t//Check for size=3, then check if their ranks are same.\n\t\tif(this.size()==3) {\n\t\t\tif(this.getCard(0).getRank()==this.getCard(1).getRank()) {\n\t\t\t\tif(this.getCard(1).getRank()==this.getCard(2).getRank()){\n\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isPermutation(String s1, String s2) {\n if (s1 == null || s2 == null) {\n return false;\n }\n\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] charCounterArr = new int[256];\n\n char[] s1CharArr = s1.toCharArray();\n char[] s2CharArr = s2.toCharArray();\n\n // counting the characters in s1;\n for (int i = 0; i < s1CharArr.length; i++) {\n int index = s1CharArr[i];\n charCounterArr[index] = charCounterArr[index] + 1;\n }\n\n // now check whether characters in s2 are in s1\n // pay attention to characters that appear more than once\n for (int i = 0; i < s2CharArr.length; i++) {\n int index = s2CharArr[i];\n // expecting the value to be 1 or more.\n // if see 0, means that there was a mismatch\n int value = charCounterArr[index];\n if (value == 0) {\n return false;\n }\n value--;\n // now update the value\n charCounterArr[index] = value;\n }\n return true;\n\n }",
"private boolean checkPAnagrams(int[] mapElements, int[] pElements) {\n for (int i = 0; i < 26; i++) {\n if(mapElements[i]!=pElements[i])\n return false;\n }\n// System.out.println(\"check p anagrams :\" + (System.nanoTime() - startTime));\n return true;\n }",
"private static boolean permutation(String string, String string2) {\n\t\tif (string.length() != string2.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn sort(string).equals(sort(string2));\r\n\t}",
"public static boolean checkPermutation(String str1, String str2) {\n if (str1.length() != str2.length()) // imediate check if string is not the same length, obviously false\n return false;\n // null check as well\n int[] arr = new int[256]; // ascii\n for (int i = 0; i < str1.length(); i++) { // for all chars in the first list\n char temp = str1.charAt(i); // get the char at the index\n int index = temp; // get the int val for the char\n arr[index] = arr[index] + 1; // increase an array at that index by 1\n }\n for (int i = 0 ; i < str1.length(); i++) { // for all values in the second string\n char temp = str2.charAt(i); // get the char at the index\n int index = temp; // get the val for that char\n arr[index] = arr[index] - 1; // decrement the array at the index by 1\n if (arr[index] < 0) // if the string has incorrect amount of letters,\n return false; // the array should have -1, which will return false\n }\n return true; // else return true\n }",
"public boolean isValid(int row, int col) {\r\n return row < this.arrangement[0].length && col < this.arrangement.length\r\n && row >= 0 && col >= 0;\r\n }",
"static boolean isPermutation_2(String a, String b){\n boolean isPermutation = true;\n //lets store every char in an array of boolean\n int[] charCount = new int[256];\n for(char c:a.toCharArray()){\n charCount[c]++;\n }\n //now verify the count in another string and subtract the count\n for(char c:b.toCharArray()){\n charCount[c]--;\n }\n //now check if any count is non-zero then the two string have unequal count of that char\n for(int i=0;i<charCount.length;i++)\n if(charCount[i]!=0)\n return false;\n \n return isPermutation;\n }",
"public boolean createPermutationSchedule() {\n listOfCoursesPermutation = permutationOfCourseList(activeCourseList);\n\n boolean returnBool = true;\n for (int i = 0; i < listOfCoursesPermutation.size(); i++) {\n if (!simpleDesigner(listOfCoursesPermutation.get(i))) {\n returnBool = false;\n }\n }\n return returnBool;\n }",
"boolean checkPermutation(String a, String b) {\r\n\r\n if (a == null || b == null) {\r\n throw new NullPointerException();\r\n }\r\n\r\n if (a.length() != b.length()) {\r\n return false;\r\n }\r\n\r\n Map<Character, Integer> frequencies = getFrequency(a);\r\n\r\n for (int i = 0; i < b.length(); i++) {\r\n char c = b.charAt(i);\r\n\r\n if (frequencies.containsKey(c)) {\r\n int count = frequencies.get(c);\r\n if (count == 0) {\r\n return false;\r\n }\r\n\r\n frequencies.replace(c, count - 1);\r\n } else {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }",
"public boolean isValid() {\n if (state.length != Board.dim*Board.dim) return false;\n if ((double)Board.dim != Math.sqrt((double)state.length)) return false;\n byte[] counts = new byte[state.length];\n try {\n for (int i = 0; i < counts.length; i++) counts[state[i]]++;\n } catch (ArrayIndexOutOfBoundsException e) { return false; }\n for (int i = 0; i < counts.length; i++) if (counts[i] != 1) return false;\n return true;\n }",
"private boolean unique() {\n\t\tfor (int i = 1; i <= 9; i++) {\n\t\t\tcopy(problem, comp);\n\t\t\tsolve(0, 0, i, comp);\n\t\t\tif (!checkComp()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isValid() {\n //valid melds must have 3+ tile\n if (tiles.size() < 3) {\n //System.out.println(\"fail 1\");\n return false;\n }\n if (tiles.get(0).getColour() == tiles.get(1).getColour() &&\n\t\t\ttiles.get(0).getValue() != tiles.get(1).getValue()) { //test a run\n\t\t\tif (this.size() > 13) {\n //System.out.println(\"fail 2\");\n return false;\n }\n for (int i=1; i<tiles.size(); i++) {\n if (tiles.get(i).getColour() != tiles.get(0).getColour()) { //make sure all are same colour\n //System.out.println(\"fail 3\");\n return false;\n }\n if (tiles.get(i).getValue() != (tiles.get(0).getValue() + i)) { //make sure all values make a run\n //System.out.println(\"fail 4\");\n return false;\n }\n }\n } else { //test a set\n Set<Character> colours = new HashSet<>();\n for (int i=0; i<tiles.size(); i++) {\n if (tiles.get(i).getValue() != tiles.get(0).getValue()) { //all are same value\n //System.out.println(\"fail 5\");\n\t\t\t\t\treturn false;\n }\n\n if (colours.contains(tiles.get(i).getColour()) && tiles.get(i).getColour() != 'J') { //check for duplicate colours\n //System.out.println(\"fail 6\");\n\t\t\t\t\treturn false;\n } else {\n\t\t\t\t\tcolours.add(tiles.get(i).getColour()); //keep track of all the colours this set has\n }\n }\n if (this.size() > 4) { //only possible if there are 5 cards, including a joker\n //System.out.println(\"fail 7\");\n\t\t\t\treturn false;\n }\n }\n\n return true; \n }",
"public static void isPermutation(String s1, String s2){\r\n\t\t\t\r\n\t\t\t// Can also do by sorting both string and comparing each character by character\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\t\r\n\t\t\tArrayList hm = new ArrayList();\r\n\t\t\t\r\n\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n\t\t\t\t\r\n\t\t\t\t\thm.add(s1.charAt(i));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n\t\t\t\tif(hm.contains(s2.charAt(i))){\r\n\t\t\t\t\thm.remove((Character)s2.charAt(i));\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Not A permutation\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tHashMap hm = new HashMap();\r\n//\t\t\t\r\n//\t\t\tfor(int i = 0 ; i < s1.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s1.charAt(i))){\r\n//\t\t\t\t\thm.put(s1.charAt(i),hm.get(s1.charAt(i) + 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\thm.put(s1.charAt(i), 1);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\tfor(int i = 0 ; i < s2.length(); i++){\r\n//\t\t\t\tif(hm.containsKey(s2.charAt(i))){\r\n//\t\t\t\t\thm.put(s2.charAt(i),hm.get(s2.charAt(i) - 1 ));\r\n//\t\t\t\t}\r\n//\t\t\t\telse{\r\n//\t\t\t\t\tflag = false;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t\tif (hm.size()==0)\r\n\t\t\t\tSystem.out.println(\"Permutations\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\"Not Permutations\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Checking by creating ascii character array\r\n\t\t\tif (s1.length() != s2.length()) {\r\n\t\t\t\tSystem.out.println(\"Second Solution Not Permutation\");\r\n\t\t\t\t}\r\n\t\t\t\tint[] letters = new int[256]; // Assumption\r\n\t\t\t\t\tchar[] s_array = s1.toCharArray();\r\n\t\t\t\tfor (char c : s_array) { // count number of each char in s.\r\n\t\t\t\t letters[c]++;\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\t for (int i = 0; i < s2.length(); i++) {\r\n\t\t\t\t int c = (int) s2.charAt(i);\r\n\t\t\t\t if (--letters[c] < 0) {\r\n\t\t\t\t System.out.println(\" Second Solution Not Permutation\");\r\n\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\r\n\t\t}",
"public static void main(String[] args) {\n\t\tString str1 =\"fxstvf\";\n\t\tString str2 =\"fxstvf\";\n\t\tSystem.out.println(isPermutation(str1, str2));\n\t\n\n\n\t}",
"private boolean isValidRotor(RotorType rotorToValidate) {\n for (RotorType rotor : possibleRotors)\n if (rotorToValidate == rotor)\n return true;\n\n return false;\n }",
"public static boolean nextPermutation(int[] a, int size, int n) {\n\t\tint i = size - 2;\n\t\twhile (a[i] >= a[i + 1]) {\n\t\t\ti--;\n\t\t\tif (i < 0)\n\t\t\t\treturn false;\n\t\t}\n\t\t// the find the smallest number bigger than a[i]\n\t\tint j = size - 1;\n\t\twhile (a[j] <= a[i])\n\t\t\tj--;\n\t\t// swap the two number\n\t\tswap(a, i, j);\n\n\t\t// reverse the sequence behind a[i]\n\t\treverse(a, i + 1, size - 1);\n\n\t\treturn true;\n\t}",
"private boolean checkingAllArguments() {\n\t\t\n\t\t// test if the four player types have been selected\n\t\tfor(int i=0;i<allButtons.size();i++) {\n\t\t\tif(allButtons.get(i)==null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// test if the seed is in the correct format\n\t\tif(!(seed.textProperty().get().isEmpty())){\n\t\t\ttry {\n\t\t\t\tgameSeed = Long.parseLong(seed.getText());\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\tmenuMessage.setText(\"Given seed is not a valid number\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t// test if for each of the players the given arguments are correct\n\t\tfor(int i = 0; i < allButtons.size(); ++i) {\n\t\t\tchar playerType = allButtons.get(i).getText().charAt(0);\n\t\t\tString argument = texts.get(2 * i + 1).getText();\n\t\t\t\n\t\t\tif(!argument.isEmpty()) {\n\t\t\t\tswitch(playerType) {\n\t\t\t\t\n\t\t\t\tcase 'S' : \n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tlong l = Long.parseLong(texts.get(2 * i + 1).getText());\n\t\t\t\t\t\tif(l < 9) {\n\t\t\t\t\t\t\tmenuMessage.setText(\"The iteration value must be at least 9\");\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tmenuMessage.setText(\"One of the iteration number is not a valid number\");\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 'R' :\n\t\t\t\t\t\n\t\t\t\t\tString[] parts = StringSerializer.split(\"\\\\.\", argument); \n\t\t\t\t\t\n\t\t\t\t\tif (parts.length != 4) { \n\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\treturn false; \n\t\t\t\t\t} \n\t\t\t\t\t\n\t\t\t\t\tfor (String str : parts) { \n\t\t\t\t\t\tint j = Integer.parseInt(str); \n\t\t\t\t\t\tif ((j < 0) || (j > 255)) { \n\t\t\t\t\t\t\tmenuMessage.setText(\"One of the IP Address is not a valid address\");\n\t\t\t\t\t\t\treturn false; \n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}",
"public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }",
"boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }",
"private static boolean checkPalindromability() {\n boolean oddEncountered = false; // assume any input is palindrome at first (zero occurrences of any chars)\n\n for(Integer count : charCount.values()) {\n if(count % 2 == 1) {\n if(oddEncountered) { // there has been one odd char count already, so second one means a non-palindrome\n return false;\n } else {\n oddEncountered = true;\n }\n }\n }\n return true;\n }",
"final protected boolean isValid() {\n boolean valid = true;\n for (Hex h : hexagons)\n for (Vertex v : h.vertices)\n if (isAdjacent(v) && v.getBuilding() == null)\n valid = false;\n return valid;\n }",
"public boolean valid(int row, int col, Integer[] cols) {\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tif (cols[i] == col) {\n\t\t\t\t//System.out.println(\" = false: same col\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (cols[i] - col == row - i || cols[i] - col == i - row) {\n\t\t\t\t//System.out.println(\" = false: same diag\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\" = true\");\n\t\treturn true;\n\t}",
"public boolean isValid(){\n\t\treturn points.size() >= 2;\n\t}",
"private boolean rowCheck() {\n\t\tfor(int[] row : puzzle) {\n\t\t\tfor(int i = 0; i < row.length; i++) {\n\t\t\t\tif(row[i] != 0) {\n\t\t\t\t\tfor(int j = i + 1; j < row.length; j++) {\n\t\t\t\t\t\tif(row[i] == row[j])\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"static boolean nextPermutation(Integer[] array) {\n\t int i = array.length - 1;\n\t while (i > 0 && array[i - 1] >= array[i])\n\t i--;\n\t // Now i is the head index of the suffix\n\t \n\t // Are we at the last permutation already?\n\t if (i <= 0)\n\t return false;\n\t \n\t // Let array[i - 1] be the pivot\n\t // Find rightmost element that exceeds the pivot\n\t int j = array.length - 1;\n\t while (array[j] <= array[i - 1])\n\t j--;\n\t // Now the value array[j] will become the new pivot\n\t // Assertion: j >= i\n\t \n\t // Swap the pivot with j\n\t int temp = array[i - 1];\n\t array[i - 1] = array[j];\n\t array[j] = temp;\n\t \n\t // Reverse the suffix\n\t j = array.length - 1;\n\t while (i < j) {\n\t temp = array[i];\n\t array[i] = array[j];\n\t array[j] = temp;\n\t i++;\n\t j--;\n\t }\n\t // Successfully computed the next permutation\n\t return true;\n\t}",
"boolean judgeValid()\r\n\t{\r\n\t\tif(loc.i>=0 && loc.i<80 && loc.j>=0 && loc.j<80 && des.i>=0 && des.i<80 && des.j>=0 && des.j<80)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}",
"public boolean probabilidadTotalEsValida(){\n return probabilidadTotal == 1.0;\n }",
"public static boolean isStringPermutation(String s1, String s2)\n\t{\n\t\tif(s1.length()==s2.length())\n\t\t{\n\t\t\t//convert string to character array\n\t\t\tchar [] name1 = s1.toCharArray();\n\t\t\tchar [] name2 = s2.toCharArray();\n\t\t\t\n\t\t\t//sort new character arrays from smallest to greatest\n\t\t\tArrays.sort(name1);\n\t\t\tArrays.sort(name2);\n\t\t\t\n\t\t\t//compare if it's the same\n\t\t\tboolean checker = Arrays.equals(name1,name2);\n\t\t\tSystem.out.println(\"Is \" + s2 + \" a permutation of \" + s1 + \"?\");\n\t\t\t\tif (checker)\n\t\t\t\t\t\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"True\");\n\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"False\");\n\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\t//string lengths are not the same\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Sorry, Strings are not equal\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"public static boolean palindromePermutation(String str1) {\n int oddCount = 0; // initalize odd count\n int[] arr = new int[256]; // initlaize array to keep track of characters\n for (int i = 0 ; i < str1.length(); i++) { // for each character in string\n char temp = str1.charAt(i); // set temp char\n int val = temp; // set val for that char (ascii val)\n if (temp == ' ') continue; // if temp is space, then continue loop\n arr[val] = arr[val] + 1; // otherwise, increment that char in the array\n if (arr[val] % 2 != 0) oddCount++; // if the value for that char is odd, then increase odd counter\n else oddCount--; // else decrement odd counter\n }\n return !(oddCount > 1); // if odd counter is greater than 1, then it cannot be a palindrone permutation\n }",
"public static boolean isPermutation(String str1, String str2)\r\n\t{\r\n\t\t if(str1.length() != str2.length()) return false;\r\n\t\t char[] charset1 = str1.toCharArray();\r\n\t\t char[] charset2 = str2.toCharArray();\r\n\t\t HashMap<Character, Integer> hashmap = new HashMap<Character, Integer>();\r\n\t\t \r\n\t\t for(char c : charset1)\r\n\t\t {\r\n\t\t\t if(!hashmap.containsKey(c)) hashmap.put(c, 1);\r\n\t\t\t else hashmap.put(c, hashmap.get(c) + 1);\r\n\t\t }\r\n\t\t \r\n\t\t for(char c : charset2)\r\n\t\t {\r\n\t\t\t if(!hashmap.containsKey(c) || hashmap.get(c) == 0) return false; \r\n\t\t\t hashmap.put(c, hashmap.get(c) - 1);\r\n\t\t }\r\n\t\t \r\n\t\t return true;\r\n\t}",
"private boolean validatePlayerSettings(){\n if(playerAmount > 0) return true; //TODO: entfernen\n HashSet<Integer> hash = new HashSet<>();\n\n // check if alle colors different\n if (hash.add(P1color.getSelectedIndex()) && hash.add(P2color.getSelectedIndex()) && hash.add(P3color.getSelectedIndex())\n && hash.add(P4color.getSelectedIndex()) && hash.add(P5color.getSelectedIndex()) && hash.add(P6color.getSelectedIndex())){\n\n // check if all names different\n hash.clear();\n HashSet<String> hash2 = new HashSet<>();\n if (hash2.add(P1text.getText()) && hash2.add(P2text.getText()) && hash2.add(P3text.getText())\n && hash2.add(P4text.getText()) && hash2.add(P5text.getText()) && hash2.add(P6text.getText())){\n\n // check if all names are not empty\n hash2.clear();\n if (P1text.getText() != \"\" && P2text.getText() != \"\" && P3text.getText() != \"\" && P4text.getText() != \"\"\n && P5text.getText() != \"\" && P6text.getText() != \"\"){\n\n return true;\n }\n }\n }\n return false;\n }",
"private boolean validarPermiso(IUserSettings userSettings, String permissions)\r\n {\r\n boolean result = false;\r\n if (userSettings.hasPermission(permissions))\r\n {\r\n //Si tiene el permiso, y se indica a false la verficiacion de que no tenga permiso\r\n if (Boolean.FALSE.equals(getNotHasPermission()) || getNotHasPermission() == null)\r\n {\r\n result = true;\r\n }\r\n }\r\n else if (Boolean.TRUE.equals(getNotHasPermission()))\r\n {\r\n //No se tiene el permiso indicado, pero se indica a true el flag notHasPermission.\r\n result = true;\r\n }\r\n return result;\r\n }",
"public static boolean stringPermutation(String s, String t){\r\n if (s.length() != t.length()){\r\n return false;\r\n }\r\n HashMap<Character, Integer> map1 = new HashMap<Character, Integer>();\r\n HashMap<Character, Integer> map2 = new HashMap<Character, Integer>();\r\n for (int i = 0; i < s.length(); i++){\r\n if (map1.get(s.charAt(i)) == null){\r\n map1.put(s.charAt(i), 1);\r\n }\r\n else {\r\n map1.put(s.charAt(i), map1.get(s.charAt(i)) + 1);\r\n }\r\n }\r\n for (int i = 0; i < t.length(); i++){\r\n if (map2.get(t.charAt(i)) == null){\r\n map2.put(t.charAt(i), 1);\r\n }\r\n else {\r\n map2.put(t.charAt(i), map2.get(t.charAt(i)) + 1);\r\n }\r\n }\r\n return map1.equals(map2);\r\n }",
"public boolean Permutation(String A, String B) {\n int[] res = new int[256];\n if(A.length()!=B.length()) return false;\n for(int i=0;i<A.length();i++){\n res[A.charAt(i)]++;\n res[B.charAt(i)]--;\n }\n for(int i=0;i<res.length;i++){\n if(res[i]!=0) return false;\n }\n return true;\n }",
"private boolean validate(int row, int col, int num){\n\t\t\n\t\t// Check vertical \n\t\tfor( int r = 0; r < 9; r++ ){\n\t\t\tif(puzzle[r][col] == num ){\n\t\n\t\t\t\treturn false ;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check horizontal\n\t\tfor( int c = 0; c < 9; c++ ){\n\t\t\tif(puzzle[row][c] == num ){\n\t\t\t\n\t\t\t\treturn false ; \n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check sub board\n\t\tint subrow = (row / 3) * 3 ;\n\t\tint subcol = (col / 3) * 3 ;\n\t\t\n\t\tfor( int r = 0; r < 3; r++ ){\n\t\t for( int c = 0; c < 3; c++ ){\n\t\t\t \n\t\t\t if(puzzle[subrow+r][subcol+c] == num ){\n\n\t\t\t return false ;\n\t\t\t }\n\t\t }\n\t\t}\n\t\t\n\t\treturn true;\n\t\n\t}",
"private boolean checkPermissionsArray(String[] permissions)\n {\n Log.d(TAG,\"checkPErmissionsArray\");\n for(int i=0;i<permissions.length;i++)\n {\n String check=permissions[i];\n if(checkPermissions(check))\n {\n return false;\n }\n }\n return true;\n }",
"private static boolean checkIsTrue() {\n\t\tfor(int i = 0 ; i < n ;i++){\r\n\t\t\tif(col[i]!=colTemp[i]){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i = 0 ; i < n ;i++){\r\n\t\t\tif(row[i]!=rowTemp[i]){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"boolean isValid(final Parameter... parameters);",
"public boolean isValid() {\n // TODO: Question 2.2.\n \n return false;\n }",
"public static boolean isValid(int i, int j, char[][] matrix)\n\t{\n\t return (i >=0 && i < matrix.length && j >=0 && j < matrix[0].length);\n\t}",
"public boolean valid(List<Integer> curr){\n int size = curr.size();\n // compare last item with earlier ones\n // row: i col: curr[i]\n for(int i=0; i<size-1; i++){\n if ( curr.get(i) == curr.get(size-1) || \n i + curr.get(i) == curr.get(size-1) + (size-1) ||\n i - curr.get(i) == (size-1) - curr.get(size-1)\n )\n return false;\n }\n return true;\n }",
"public static void main(String args[]){\n\n //even number of everything\n //odd number of 1 thing MAX\n\n //sort string\n //check subsequent chars to count their numbers until length -1\n //break if 2 odd number chars\n System.out.println(isPalindromePermutation(\"22334455asdfdsa66\"));\n\n\n }",
"private static boolean sliceIsValid(final int[] slice, final int flowOrderLength) {\n int consecutiveZeros = 0;\n for ( int key : slice ) {\n if ( key != 0 ) {\n consecutiveZeros = 0;\n } else {\n consecutiveZeros++;\n if ( consecutiveZeros >= (flowOrderLength - 1) ) {\n return false;\n }\n }\n }\n\n // if here, not found -> valid\n return true;\n }",
"public boolean contain(Point p) {\n\t\tdouble n1, n2, n3, n4, n5, n6;\n\t\tPlane pl1, pl2, pl3, pl4, pl5, pl6;\n\t\tpl1 = new Plane(A1, B1, C1); // Mat phang A1.B1.C1.D1 (1)\n\t\tpl2 = new Plane(A1, B1, A2); // Mat phang A1.B1.B2.A2 (2)\n\t\tpl3 = new Plane(A1, D1, A2); // Mat phang A1.D1.D2.A2 (3)\n\t\tpl4 = new Plane(A2, pl1.getV()); // Mat phang A2.B2.C2.D2 (1)\n\t\tpl5 = new Plane(C1, pl2.getV()); // Mat phang C1.D1.D2.C2 (2)\n\t\tpl6 = new Plane(B1, pl3.getV()); // Mat phang B1.C1.C2.B2 (3)\n\n\t\tn1 = pl1.doSomething(p);\n\t\tn4 = pl4.doSomething(p);\n\n\t\tif (n1 * n4 > 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tn2 = pl2.doSomething(p);\n\t\tn5 = pl5.doSomething(p);\n\t\tif (n2 * n5 > 0f) {\n\t\t\treturn false;\n\t\t}\n\n\t\tn3 = pl3.doSomething(p);\n\t\tn6 = pl6.doSomething(p);\n\t\tif (n3 * n6 > 0f) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"private static boolean checkPermutationCountingArray(String s1, String s2) {\n // Strings are of unequal length. Cannot be permutations.\n if (s1.length() != s2.length()) {\n return false;\n }\n\n int[] characterCount = new int[128];\n for (int i = 0; i < s1.length(); i++) {\n characterCount[s1.charAt(i)]++;\n characterCount[s2.charAt(i)]--;\n }\n for (int i = 0; i < characterCount.length; i++) {\n if (characterCount[i] != 0) return false;\n }\n return true;\n }",
"public static boolean checkSafety(int[][] board, int row, int col) {\n for (int i = row - 1, j = col; i >= 0; i--) {\n if (board[i][j] == 1) {\n return false;\n }\n }\n\n // LEFT D\n for (int i = row - 1, j = col - 1; i >= 0 && j >= 0; i--, j--) {\n if (board[i][j] == 1) {\n return false;\n }\n }\n // Right D\n for (int i = row - 1, j = col + 1; i >= 0 && j < board.length; i--, j++) {\n if (board[i][j] == 1) {\n return false;\n }\n }\n\n return true;\n }",
"public static boolean validity(int x, int y, int[][] grid) {\n\t String temp=\"\";\n\t for (int i=0;i<9;i++) {\n\t temp+=Integer.toString(grid[i][y]);//horizontal\n\t temp+=Integer.toString(grid[x][i]);//verical\n\t temp+=Integer.toString(grid[(x/3)*3+i/3][(y/3)*3+i%3]);//square\n\t }\n\t int count=0, idx=0;\n\t while ((idx=temp.indexOf(Integer.toString(grid[x][y]), idx))!=-1)\n\t {idx++; count++;}\n\t return count==3;\n\t }",
"private boolean isValid(int num, int row, int col) {\n if(!checkRow(num, row)){\n return false;\n }\n if(!checkCol(num, col)){\n return false;\n }\n\n // check if putting it there would break any constraints\n if(!checkConstraints(num, row, col)){\n return false;\n }\n\n // passed all checks so return true\n return true;\n }",
"public boolean isPermutationSorted(String str1, String str2) {\n\n\t\tif (str1.length() != str2.length()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tchar[] str1Chars = str1.toCharArray();\n\t\tchar[] str2Chars = str2.toCharArray();\n\n\t\tArrays.sort(str1Chars);\n\t\tArrays.sort(str2Chars);\n\t\tif (String.valueOf(str1Chars).equals(String.valueOf(str2Chars)))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isValid() {\n\t\tif(password != null && password.length() > 0) {\n\t\t\tboolean rst = password.equals(repeatPassword);\n\t\t\tif(rst == false) {\n\t\t\t\tMap<String, String > validationRst = getValidationRst();\n\t\t\t\tvalidationRst.put(\"password\", \"重复输入的密码不一致\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn super.isValid();\n\t}",
"private boolean isCorrect() {\n\t\t// if a single tile is incorrect, return false\n\t\tfor (Tile tile : tiles) {\n\t\t\tif (!tile.isCorrect()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean rowAreInvalid(int[][] grid) {\n\t\tfor(int j = 0; j < BOUNDARY; j++) {\n\t\t\tList<Integer> row = new ArrayList<>();\n\t\t\tfor(int i = 0; i < BOUNDARY; i++) {\n\t\t\t\trow.add(grid[i][j]);\n\t\t\t}\n\t\t\tif(collectionHasRepeat(row)) return true;\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean verifyPermissions(int[] grantResults) {\n if(grantResults.length < 1){\n return false;\n }\n\n // Verify that each required permission has been granted, otherwise return false.\n for (int result : grantResults) {\n if (result != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }",
"private Boolean isValidMatrix(List<List<Double>> matrix) {\n\t\tInteger nrows = matrix.size();\n\n\t\tList<Integer> rowLengths = matrix.stream().map(List::size).toList();\n\t\tfloat ncols = (float) rowLengths.stream().mapToInt(Integer::intValue).sum() / rowLengths.size();\n\n\t\treturn (ncols == nrows) && (nrows == 3);\n\t}",
"public static boolean isValid(int[][] board)\r\n\t{\r\n\t\t// Verifie les lignes et les colonnes\r\n\t\tfor (int i = 0; i < board.length; i++)\r\n\t\t{\r\n\t\t\tBitSet bsRow = new BitSet( 9);\r\n\t\t\tBitSet bsColumn = new BitSet( 9);\r\n\t\t\tfor (int j = 0; j < board[i].length; j++)\r\n\t\t\t{\r\n\t\t\t\tif (board[i][j] == 0 || board[j][i] == 0)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tif (bsRow.get( board[i][j] - 1) || bsColumn.get( board[j][i] - 1))\r\n\t\t\t\t\treturn false;\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tbsRow.set( board[i][j] - 1);\r\n\t\t\t\t\tbsColumn.set( board[j][i] - 1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Verifie la taille de la grile\r\n\t\tfor (int rowOffset = 0; rowOffset < 9; rowOffset += 3)\r\n\t\t{\r\n\t\t\tfor (int columnOffset = 0; columnOffset < 9; columnOffset += 3)\r\n\t\t\t{\r\n\t\t\t\tBitSet threeByThree = new BitSet( 9);\r\n\t\t\t\tfor (int i = rowOffset; i < rowOffset + 3; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfor (int j = columnOffset; j < columnOffset + 3; j++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (board[i][j] == 0)\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\tif (threeByThree.get( board[i][j] - 1))\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthreeByThree.set( board[i][j] - 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Renvoie Vrai\r\n\t\treturn true;\r\n\t}",
"boolean isValid();",
"boolean isValid();"
] | [
"0.7112776",
"0.67287916",
"0.65005976",
"0.6498548",
"0.64521176",
"0.6396646",
"0.6382",
"0.6364895",
"0.63557434",
"0.6326406",
"0.63038933",
"0.623732",
"0.61553967",
"0.61182564",
"0.60823506",
"0.58976334",
"0.58880436",
"0.58688504",
"0.58561295",
"0.58515084",
"0.5849686",
"0.58425844",
"0.58411914",
"0.5831609",
"0.5820107",
"0.58117265",
"0.580874",
"0.57958955",
"0.57523227",
"0.5748548",
"0.57328594",
"0.5731847",
"0.5726835",
"0.57080007",
"0.570037",
"0.5648542",
"0.56429714",
"0.56277245",
"0.5626",
"0.56182885",
"0.56082696",
"0.5605737",
"0.55930614",
"0.5591446",
"0.5587983",
"0.5587609",
"0.55679613",
"0.55675066",
"0.5567433",
"0.55635494",
"0.55543154",
"0.55266315",
"0.55265987",
"0.5522312",
"0.5496055",
"0.5494908",
"0.54910845",
"0.5465931",
"0.5465268",
"0.54522794",
"0.5450025",
"0.5426961",
"0.5404451",
"0.54018867",
"0.539351",
"0.53852826",
"0.5383893",
"0.538119",
"0.5376558",
"0.5372857",
"0.5364418",
"0.5361725",
"0.53615236",
"0.53546256",
"0.5343995",
"0.53404355",
"0.53318197",
"0.5312762",
"0.5308911",
"0.5294775",
"0.5294563",
"0.52871746",
"0.52860487",
"0.5283938",
"0.52826536",
"0.52797294",
"0.5271134",
"0.5263864",
"0.5259185",
"0.5258249",
"0.52570426",
"0.5253766",
"0.5248735",
"0.52433854",
"0.5234879",
"0.5233445",
"0.52293926",
"0.5226607",
"0.52253634",
"0.52253634"
] | 0.6637259 | 2 |
Classic backtracking to generate all permutations. TODO optimize | private static void back(int k) {
for (int i = 0; i < SIZE; i++) {
currentPerm[k] = i;
if (validateCurrentPerm(currentPerm, k)) {
if (k == SIZE - 1) {
String currentPermString = "";
for (int t : currentPerm) {
currentPermString += t;
}
perms.add(currentPermString);
} else {
back(k + 1);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void genPermute() {\n\t\tpermute = new ArrayList<Integer>();\n\t\tfor(int idx = 0; idx < dim(); idx++)\n\t\t\tpermute.add(idx);\n\t\tjava.util.Collections.shuffle(permute);\n\t}",
"private ArrayList<int[]> buildPermutations(int n) {\n mPermutations = new ArrayList();\n mPermuteArray = new int[n];\n for (int i = 0; i < n; i++)\n mPermuteArray[i] = i;\n generate(n);\n return mPermutations;\n }",
"static List<Permutation> genPermutations(int n) {\n List<Permutation> result = IntStream.rangeClosed(0, n - 2)\n .parallel()\n .mapToObj(fixed -> {\n List<Permutation> ls = new ArrayList<>();\n\n // Recall our logic about permutation configurations:\n //\n // N = fixed + l_1 + l_2 + ... + l_k\n //\n // Since we know the `fixed`, we need to generate the list\n // of l_i, we just need to generate all the list of numbers\n // that sum to N-fixed.\n List<int[]> cyclesList = numbersSumToN(n - fixed);\n\n for (int[] cycles : cyclesList) {\n Permutation p = makePermutation(n, fixed, cycles);\n ls.add(p);\n }\n return ls;\n })\n .flatMap(Collection::stream)\n .collect(Collectors.toList());\n\n // Our result would be incomplete without the identity permutation.\n result.add(new Permutation(n, new int[0], ONE));\n return result;\n }",
"public void permute(){\n if (pos == last) a.add(in);\n else {\n for (int ii = pos; ii <= last; ii++) {\n in = swap(in, pos, ii);\n pos += 1;\n permute();\n pos -= 1;\n in = swap(in, pos, ii);\n if (a.contains(in)) continue;\n else a.add(in);\n }\n }\n }",
"@Test\n\tpublic void testPermutation() {permutation(\"abcd\");\n\t\t//0 1 0 0 9\n\t//\tpermute(\"aaab\");\n\t\t//\n\t\tpermutation(\"aaabc\");\n\t\tpermuteWithDups(\"aaabc\");\n\t}",
"private List<List<Item>> generatePermutations(final ItemSet itemSet) {\n\t\tList<List<Item>> result = new ArrayList<List<Item>>();\n\n\t\t// If the item set is zero, return an empty list\n\t\tif (itemSet.size() == 0) {\n\t\t\tresult.add(new ArrayList<Item>());\n\t\t\treturn result;\n\t\t}\n\n\t\t// Get and Remove the first item from the set\n\t\tItem firstElement = itemSet.first();\n\t\titemSet.remove(firstElement);\n\n\t\t// Generate the permutations of the smaller item set\n\t\tList<List<Item>> permutations = generatePermutations(itemSet);\n\n\t\t// For each permutation...\n\t\tfor (List<Item> permutation : permutations) {\n\t\t\t// Add the first element to the i-th position\n\t\t\tfor (int index = 0; index <= permutation.size(); index++) {\n\t\t\t\tList<Item> temp = new ArrayList<Item>(permutation);\n\t\t\t\ttemp.add(index, firstElement);\n\t\t\t\tresult.add(new ArrayList<Item>(temp));\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public static void permutations(String input){\n\t\tpermutations(\"\", input);\n\t}",
"public static void main(String[] args)\n\t{\n\t\tString test = \"ABCDEFGHIJ\";\n\t\tPermutationGeneratorCoveyouSullivan p = new PermutationGeneratorCoveyouSullivan(test);\n\t\t\n\t\tint[] counters = new int[test.length()+1]; //array used to add to counters\n\t\t\n\t\t//using the h function to display how many permutations there are with test.length() elements and ZERO fixed - comparing to this.\n\t\tlong testH = h(test.length());\n\t\tSystem.out.println(\"Using the h function:\\nThe number of permutations with \" + test.length() + \" elements and ZERO fixed elements is: [\" + testH +\"]\\n\");\n\t\t\n\t\t//using the g function to display how many permutations there are with test.length() elements and \"i\" fixed elements - comparing to this\n\t\tSystem.out.println(\"Using the g function:\");\n\t\tfor (int i = 0; i < test.length()+1; i++)\n\t\t{\n\t\t\tlong gTest = g(test.length(), i);\n\t\t\tSystem.out.println(\"The number of permutations with \" + test.length() + \" elements and \" + i + \" fixed elements is: [\" + gTest + \"]\");\n\t\t}\n\t\t\n\t\t//now we are going to be using the brute force way of how to do counting - manually and then compare\n\t\tSystem.out.println(\"\\nUsing my brute force technique to figure out the number of permutations:\");\n\t\tfor (String s : p)\n\t\t{\n\t\t\tint controller = 0; //controller variable that will reset for every loop - for each seperate index\n\t\t\t\n\t\t\tfor (int i = 0; i < test.length(); i++) //this is the tester to compare the characters at each index\n\t\t\t{\n\t\t\t\tif (s.charAt(i) == test.charAt(i))\n\t\t\t\t\tcontroller++;\n\t\t\t}\n\t\t\t\n\t\t\tcounters[controller]++; //I'm still not understanding how these counters are working: I know it works, but how does it know what index to be in?\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < counters.length; i++)\n\t\t\tSystem.out.println(\"With \" + i + \" fixed elements, there are: [\" + counters[i] + \"] permutations\");\n\t\t\n\t\t/**********************************\n\t\t * Finally, my methods and brute force technique are correct do to the equality of the different functions/parameters as well as my brute force technique!\n\t\t * I also checked different test strings including my name, etc and they are also equal.\n\t\t * \n\t\t * Questions: One thing I noticed in the sequence is that g(test.length(), 0) and g(test.length(), 1) are somehow related b/c there is a difference of ONE?? \n\t\t * Is this true for all strings?\n\t\t *********************************/\n\t}",
"public static int calculate()\n {\n final List<Integer> oneToNine = IntStream.iterate(1, n -> n + 1)\n .limit(9)\n .boxed()\n .collect(toList());\n final List<List<Integer>> permutations = HeapPermutations.of(oneToNine);\n\n // System.out.println(permutations.size());\n //2- for each permutation\n // a. find all breaking 2 points to break\n // b. check first two sections' third is equal to the last section\n // c. if yes, add combintion to result, otherwise skip\n\n return permutations.stream()\n .flatMap(toTriples()) //find all combinations xx X yy = zz\n .filter(isPandigital()) // allow pandigital tripes through\n .map(Triple::getThird) // get the product\n .distinct() // get distinct products only given the problem statement does not allow repetition (see hint)\n .mapToInt(i -> i) // convert to primitive\n .sum(); // and finally get the sum\n }",
"public static void permute()\n\t{\n\t\t/* INITIALIZE FOR PERMUTATION TESTING */\n\t\t//int l, r, s, T, K;\n\t\t//Random random = new Random();\n\t\tRandom random = new Random(13);\n\n\t\tclade = clad[k];\n\t\tclade.chiPvalue = 0;\n\n\t\tfor(int l = 0; l < 2; l++)\n\t\t{\n\t\t\tclade.ITcPvalue[l] = 0;\n\t\t\tclade.ITnPvalue[l] = 0;\n\t\t\tclade.corrDcWPvalue[l] = 0;\n\t\t\tclade.corrDnWPvalue[l] = 0;\n\t\t \n\t\t for(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tclade.DcPvalue[i][l] = 0;\n\t\t\t\tclade.DnPvalue[i][l] = 0;\n\t\t\t}\n\t\t}\n\n\n\t/*\n\t\tfprintf(stderr, \"\\n\\n\"); \n\t\tfor (i=0; i<numSubClades; i++)\n\t\tfprintf(stderr,\" rowTotal(%d):%d \", i, rowTotal[i]);\n\t\tfprintf(stderr, \"\\n\"); \n\t\tfor (j=0; j<numCladeLocations; j++)\n\t\tfprintf(stderr,\" columnTotal(%d):%d \", j, columnTotal[j]);\n\t\tfprintf(stderr, \"\\n\\n\");\n\t\t\n\t\tfprintf(stderr,\"\\n\\n Permuting %s\", title);\n\t\tfprintf(stderr,\"\\n 0 %d permutations\\n \",numPermutations);\n*/\t\t\n\t\tfor (int K = 0; K < GeoDis.numPermutations; K++)\n\t\t{\t\n\t\t\t\t\n\t\t\tprogress++;\n\t\t\tpercentage = ((double)progress * 100)/((double)numPermutations*(double)numClades); \n\t\n\t\t\trandObsChi = 0;\n\n\t\t\tfor(int l = 0; l < clade.totaNumObs; l++)\n\t\t\t\tclade.RBMatrix[l][0] = random.nextInt(); /* 0 - 32767\t*/\t\n\t\t\t \n\t\t\tclade.cumColTotal = 0; /* cumColTotal is the cumulative column total */\n\n\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t{\t\n\t\t\t\tif (j == 0)\n\t\t\t\t\tclade.cumColTotal = 0;\n\t\t\t\telse\t\t\t\t\n\t\t\t\tclade.cumColTotal = clade.cumColTotal + clade.columnTotal[j-1];\n\t\t\t\t\n\t\t\t\tfor (int s = 0; s < clade.columnTotal[j]; s++)\n\t\t\t\t{\n\t\t\t\t\tint l = s + clade.cumColTotal;\n\t\t\t\t\tclade.RBMatrix[l][1] = j+1;\n\t\t\t\t}\n\t\t\t}\n\t\t/*for (l=0; l<totaNumObs; l++)\n\t\t\t\tfprintf(stderr,\"\\nB: %6d %d\", RBMatrix[l][0], RBMatrix[l][1]);*/\n\n\n\n\t\t\t/* * * ORDER BY RANDOM NUMBERS * * */\n\t\t\tfor(int l = 0; l < (clade.totaNumObs - 1); l++)\n\t\t\t{\t\n\t\t\t\tfor(int r = l +1; r < clade.totaNumObs; r++)\n\t\t\t \t{\t\t\t\n\t\t\t\t\tif(clade.RBMatrix[r][0] < clade.RBMatrix[l][0])\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t//else\n\t\t\t\t\t{\t\n\t\t\t\t\t\tint T = clade.RBMatrix[r][0];\n\t\t\t\t\t\tclade.RBMatrix[r][0] = clade.RBMatrix[l][0];\n\t\t\t\t\t\tclade.RBMatrix[l][0] = T;\n\t\t\t\t\t\tT = clade.RBMatrix[r][1];\n\t\t\t\t\t\tclade.RBMatrix[r][1] = clade.RBMatrix[l][1];\n\t\t\t\t\t\tclade.RBMatrix[l][1] = T;\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t \t}\n\t/*for (l=0; l<totaNumObs; l++)\n\t\t\tfprintf(stderr,\"\\nAfter: %6d %d\", RBMatrix[l][0], RBMatrix[l][1]);*/\n\n\n\t\t\t/* * * CALCULATE RANDOM OBSERVATIONS * * */\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\tclade.randMatrix[i][j] = 0;\n\n\t\t\t \n\t\t\tclade.cumRowTotal = 0; /* cumulative row totals */\n\t\t\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t\tif (i == 0)\n\t\t\t\tclade.cumRowTotal = 0;\n\t\t\t\t\n\t\t\t\telse\n\t\t\t\tclade.cumRowTotal += clade.rowTotal[i-1];\t\n\t\t\t\t\n\t\t\t\t/*fprintf(stderr, \"\\n\\nRow %d: rowTotal[i]:%d\",i, rowTotal[i]); */\n\t\t\t\t\n\t\t\t\tfor(int s = 0; s < clade.rowTotal[i]; s++)\n\t\t\t\t{\n\t\t\t\t\tint l = s + clade.cumRowTotal;\n\t\t\t\t\tindex = clade.RBMatrix[l][1]-1;\n\t\t\t\t\t/*fprintf(stderr, \"rowTotal= %d index=%d s=%d \",rowTotal[i], index, s); */\n\t\t\t\t\tclade.randMatrix[i][index]++;\n\t\t\t\t}\n\t\t\t}\n\n\n\n\n\t\t/* prints the randomized table of contingency\n\t\t\t\tfor(i = 0; i < numSubClades; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tfprintf(stderr, \"\\n\");\n\t\t\t\t\t\tfor(j = 0; j < numCladeLocations; j++)\n\t\t\t\t\t\t\tfprintf(stderr, \"%d \", randMatrix[i][j]);\n\t\t\t\t\t}\n\t\t*/\t\t\n\n\n\t\t\t/* * CALCULATE RANDOM CHI - SQUARE STATISTIC * */\n\t\t\trandObsChi = 0;\n\t\t\n\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\trandObsChi += Math.pow( (double) clade.randMatrix[i][j] - clade.expObsMatrix[i][j], 2) / clade.expObsMatrix[i][j];\n\t\t\t\t\t\n\t\t\t/*fprintf(fpout,\"\\n%f \", randObsChi);\t\t*/\n\t\t\t\t\t\n\t\t\tif(randObsChi - clade.obsChi >= ROUNDING_ERROR)\n\t\t\t\tclade.chiPvalue++;\n\n\n\t\t\tif (doingDistances)\n\t\t\t{\n\t\t\t\tfor(c=0; c<clade.numSubClades; c++)\n\t\t\t\t{\n\t\t\t\t\tclade.randDc[c]=0.0;\n\t\t\t\t\tclade.randDn[c]=0.0;\n\t\t\t\t\t//clade.varDc[c]=0;\n\t\t\t\t\t//clade.varDn[c]=0;\n\t\t\t\t\tsum1 = sum2 = sum3 = 0.0;\n\t\t\t\t\tsumc1 = sumc2 = sumc3 = 0.0;\n\n\t\t\t\t\tfor(i=0; i<clade.numCladeLocations; i++) \t\n\t\t\t\t\t{\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsum2 += clade.randMatrix[c][i] * (clade.randMatrix[c][i]-1) / 2 ;\n\t\t\t\t\t\tsumc2 += (clade.randMatrix[c][i] * (clade.randMatrix[c][i]-1) / 2) + \n\t\t\t\t\t (clade.randMatrix[c][i] * (clade.columnTotal[i] - clade.randMatrix[c][i]));\t\n\t\t\t\t\t\n\t\t\t\t\t\tfor (j=0; j<clade.numCladeLocations; j++)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tpopA = clade.cladeLocIndex[i];\n\t\t\t\t\t\t\tpopB = clade.cladeLocIndex[j];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (j != i)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tsum1 += (double) clade.randMatrix[c][i] * clade.randMatrix[c][j] * distance[popA-1][popB-1];\n\t\t\t\t\t\t\t\tsum3 += clade.randMatrix[c][i] * clade.randMatrix[c][j];\t\t\t\n\t\t\t\t\t\t\t\tsumc1 += (double) clade.randMatrix[c][i] * clade.columnTotal[j] * distance[popA-1][popB-1];\t\n\t\t\t\t\t\t\t\tsumc3 += clade.randMatrix[c][i] * clade.columnTotal[j];\n\t\t\t\t\t\t\t\t//System.err.println(\"\\npopA = \" + popA + \" popB = \" + popB + \" dist= \" + distance[popA-1][popB-1]);\n\t\t\t\t\t\t\t\t//System.err.println(\"sumc1: \" + clade.randMatrix[c][i] + \" * \" + clade.columnTotal[j] +\" * \" + distance[popA-1][popB-1] + \" = \" + sumc1); \n\t\t\t\t\t\t\t\t//System.err.println(\"\\nROBS[\" + c +\"][\" + i+ \"]= \" + clade.randMatrix[c][i]); \n\t\t\t\t\t\t\t\t//System.err.println(\"\\nCT[\" + j +\"]= \" + clade.columnTotal[j]); \n\t\t\t\t\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\n\t\t\t\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (sum3 == 0)\n\t\t\t\t\t\tclade.randDc[c] = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tclade.randDc[c] = sum1 / (sum2 + sum3);\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t\tif (sumc3 == 0)\n\t\t\t\t\t\tclade.randDn[c] = 0;\n\t\t\t\t\telse\n\t\t\t\t\t\tclade.randDn[c] = sumc1 / (sumc2 + sumc3);\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t//System.err.println(\"\\nClade \" + clade.cladeName + \" subclade \" + c + \n\t // \" Dc= \" + clade.Dc[c] + \" Dn= \" + clade.Dn[c]); \t\t\n\t\t\n\t\t\t\t\t//System.err.println(\"sum1= \" + sum1 + \" sum2= \" + sum2 + \" sum3= \" + sum3); \n\t\t\t\t\t//System.err.println(\"sumc1= \" + sumc1 + \" sumc2= \" + sumc2 + \" sumc3= \" + sumc3); \n\n\n\t\t\t\t\tif(clade.Dc[c] - clade.randDc[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[c][0]++;\n\n\t\t\t\t\tif(clade.randDc[c] - clade.Dc[c] >= ROUNDING_ERROR )\n\t\t\t\t\t\tclade.DcPvalue[c][1]++;\n\n\t\t\t\t\tif(clade.Dn[c] - clade.randDn[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[c][0]++;\n\n\t\t\t\t\tif(clade.randDn[c] - clade.Dn[c] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[c][1]++;\n\n\n\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* * CALCULATE DISTANCE TEST STATISTIC * */\n\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\tclade.randMeanLatitude[i] = 0;\n\t\t\t\t\tclade.randMeanLongitude[i] = 0;\n\t\t\t\t\tclade.randDc[i] = 0;\n\t\t\t\t\tclade.randDn[i] = 0;\n\t\t\t\t\tclade.subCladeSum[i] = 0;\n\t\t\t\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j] - 1;\n\t\t\t\t\t\tclade.absFreq[i][j] = (double) clade.randMatrix[i][j] / (double) sampleSize[index];\t\t\n\t\t\t\t\t\tclade.subCladeSum[i] = clade.subCladeSum[i] + clade.absFreq[i][j];\n\t\t\t\t\t}\t\n\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t\tclade.relFreq[i][j] = clade.absFreq[i][j]/clade.subCladeSum[i];\n\t\t\t\t}\n\t\t/*\t\t\n\t\t\t\tfor(i = 0; i < numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\tfprintf(stderr,\"\\n\");\n\t\t\t\t\tfor(j = 0; j < numCladeLocations; j++)\n\t\t\t\t\t\tfprintf(stderr,\"Asim: %f \", relFreq[i][j]);\n\t\t\t\t}\n\t\t*/\n\t\t\t\t\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j]-1;\n\t\t\t\t\t\tclade.randMeanLatitude[i] = clade.randMeanLatitude[i] + clade.relFreq[i][j] * Latitude[index];\n\t\t\t\t\t\tclade.randMeanLongitude[i] = clade.randMeanLongitude[i] + clade.relFreq[i][j] * Longitude[index];\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(j = 0; j < clade.numCladeLocations; j++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (clade.relFreq[i][j] == 0)\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\tindex = clade.cladeLocIndex[j] - 1;\n\t\t\t\t\t\tif (Latitude[index] == clade.randMeanLatitude[i] && Longitude[index] == clade.randMeanLongitude[i]) \n\t\t\t\t\t\t\tZ = 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tZ = Math.sin(Latitude[index]) * Math.sin(clade.randMeanLatitude[i]) + Math.cos(Latitude[index]) * \n\t\t\t\t\t\t\tMath.cos(clade.randMeanLatitude[i]) * Math.cos(clade.randMeanLongitude[i] - Longitude[index]);\n\t\t\t\t\t\n\t\t\t\t\t\tif (Math.abs(Z) < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRVZ = RADIUS * Math.acos (Z); \n\t\t\t\t\t\t\tclade.randDc[i] += clade.relFreq[i][j] * RVZ;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Latitude[index] == clade.meanLatNest && Longitude[index] == clade.meanLonNest) \n\t\t\t\t\t\t\tZB = 1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tZB = Math.sin(Latitude[index]) * Math.sin(clade.meanLatNest) + Math.cos(Latitude[index]) * \n\t\t\t\t\t\t\tMath.cos(clade.meanLatNest) * Math.cos(clade.meanLonNest - Longitude[index]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Math.abs(ZB) < 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tRVZ = RADIUS * Math.acos (ZB);\n\t\t\t\t\t\t\tclade.randDn[i] += clade.relFreq[i][j] * RVZ;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(clade.Dc[i] - clade.randDc[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[i][0]++;\n\n\t\t\t\t\tif(clade.randDc[i] - clade.Dc[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DcPvalue[i][1]++;\n\n\t\t\t\t\tif(clade.Dn[i] - clade.randDn[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[i][0]++;\n\n\t\t\t\t\tif(clade.randDn[i] - clade.Dn[i] >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.DnPvalue[i][1]++;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\t/* * TEST STATISTICS FOR POSITION VS. INTERIOR * */\n\n\t\t\trandTipDistance = 0;\n\t\t\trandIntDistance = 0;\n\t\t\trandTipDisNested = 0;\n\t\t\trandIntDisNested = 0;\n\t\t\t\n\t\t\tif(clade.check != (double) clade.numSubClades && clade.check != 0)\n\t\t\t{\t\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t{\n\t\t\t\t\trandTipDistance += clade.Position[i] * clade.randDc[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\t\trandTipDisNested += clade.Position[i] * clade.randDn[i] * (double) clade.rowTotal[i] / (double) clade.indTipClades;\n\t\t\t\t\trandIntDistance += (1 - clade.Position[i]) * clade.randDc[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\t\trandIntDisNested += (1 - clade.Position[i]) * clade.randDn[i] * (double) clade.rowTotal[i] / (double) clade.indIntClades;\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(clade.tipIntDistance - (randIntDistance - randTipDistance) >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITcPvalue[0]++;\n\n\t\t\t\tif((randIntDistance - randTipDistance) - clade.tipIntDistance >= ROUNDING_ERROR)\n\t\t\t\t \tclade.ITcPvalue[1]++;\n\n\t\t\t\tif(clade.tipIntDisNested - (randIntDisNested - randTipDisNested) >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITnPvalue[0]++;\n\t\t\t\t\n\t\t\t\tif((randIntDisNested - randTipDisNested) - clade.tipIntDisNested >= ROUNDING_ERROR)\n\t\t\t\t\tclade.ITnPvalue[1]++;\n\t\t\t\t\n\t\t\t}\n\n\t\t\tif(!weights){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//{\n\t\t\t\t/* * CORRELATION TESTS OF DISTANCE WITH OUTGROUP WEIGHTS * */\n\n\t\t\t\t //double c, n, w;\n\t\t\t\t \n\t\t\t\t clade.meanDc = 0;\n\t\t\t\t clade.meanDn = 0;\n\t\t\t\t clade.sumDcxWeight = 0;\n\t\t\t\t clade.sumDnxWeight = 0;\n\t\t\t\t clade.sumDcSq = 0;\n\t\t\t\t clade.sumDnSq = 0;\n\n\t\t\t\tfor(i = 0; i < clade.numSubClades; i++)\n\t\t\t\t\t{\n\t\t\t\t \tclade.meanDc += clade.randDc[i] / (double) clade.numSubClades;\n\t\t\t\t \tclade.meanDn += clade.randDn[i] / (double) clade.numSubClades;\n\t\t\t\t \tclade.sumDcxWeight += clade.randDc[i] * clade.weight[i];\n\t\t\t\t \tclade.sumDnxWeight += clade.randDn[i] * clade.weight[i];\n\t\t\t\t \tclade.sumDcSq += Math.pow(clade.randDc[i],2); \n\t\t\t\t \tclade.sumDnSq += Math.pow(clade.randDn[i],2);\n\t\t\t\t\t}\n\t\t\t\t\n\t \t\tdouble c = clade.sumDcSq - (double) clade.numSubClades * Math.pow(clade.meanDc,2);\n\t \t\tdouble n = clade.sumDnSq - (double) clade.numSubClades * Math.pow(clade.meanDn,2);\n\t \t\t\tdouble w = clade.sumWeightSq - (double) clade.numSubClades * Math.pow(clade.meanWeight,2); \n\n\t\t\t\tif (clade.corrDcWeights != NA && c > 0 && w > 0)\n\t\t\t\t\t//;\n\t\t\t\t//else\n\t\t\t\t \t{\n\t\t\t\t \tclade.randCorrDcWeights = (clade.sumDcxWeight - (double) clade.numSubClades * clade.meanDc * clade.meanWeight)/ \n\t\t\t\t \t(Math.sqrt(c*w));\n\n\t\t\t\t\tif(clade.randCorrDcWeights > 1)\n\t\t\t\t\t\t\tclade.randCorrDnWeights = 1;\n\t\t\t\t\t\n\t\t\t\t\tif(clade.randCorrDcWeights < -1)\n\t\t\t \t\tclade.randCorrDcWeights = -1;\n\t\t\t\t\n\t\t\t\t\tif(clade.corrDcWeights - clade.randCorrDcWeights >= ROUNDING_ERROR)\n\t\t\t\t \t\tclade.corrDcWPvalue[0]++;\n\t\t\t\t\t \n\t\t\t\t\tif(clade.randCorrDcWeights - clade.corrDcWeights >= ROUNDING_ERROR)\n\t\t\t\t \tclade.corrDcWPvalue[1]++;\n\t\t\t\t\t}\n\n\n\t\t\t\tif (clade.corrDnWeights == NA || n <= 0 || w <= 0)\n\t\t\t\t\tcontinue;\t\t\n\t\t\t\t//else\n\t\t\t\t\t//{\n\t\t\t\t \tclade.randCorrDnWeights = (clade.sumDnxWeight - (double) clade.numSubClades * clade.meanDn * clade.meanWeight)/ \n\t\t\t\t \t(Math.sqrt(n*w));\n\t\t\t\t\n\t\t\t\t\tif(clade.randCorrDnWeights > 1)\n\t\t\t\t\t\tclade.randCorrDnWeights = 1;\n\n\t\t\t\t\tif(clade.randCorrDnWeights < -1)\n\t\t\t\t\t\tclade.randCorrDnWeights = -1;\n\n\t\t\t\t\tif(clade.corrDnWeights - clade.randCorrDnWeights >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.corrDnWPvalue[0]++;\n\n\t\t\t\t\tif(clade.randCorrDnWeights - clade.corrDnWeights >= ROUNDING_ERROR)\n\t\t\t\t\t\tclade.corrDnWPvalue[1]++;\n\t\t\t\t\t//}\n\t\t\t\t//}\n\t} // end of 1 replicate\n\n\n\t\tclade.chiPvalue /= (double) GeoDis.numPermutations;\n\n\t\tfor(int l = 0; l < 2; l++)\n\t\t{\n\t\t\tclade.ITcPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.ITnPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.corrDcWPvalue[l] /= (double) GeoDis.numPermutations;\n\t\t\tclade.corrDnWPvalue[l] /= (double) GeoDis.numPermutations;\n\n\t\t\tfor (i =0; i < clade.numSubClades; i++)\n\t\t\t{\n\t\t\t clade.DcPvalue[i][l] /= (double) GeoDis.numPermutations;\n\t\t\t clade.DnPvalue[i][l] /= (double) GeoDis.numPermutations;\n\t\t\t}\n\t\t}\n\n\t}",
"public <T> List<List<T>> generateAllPossibleCombinationsForPascal(List<T> aPossibleItems) {\n \n List<List<T>> tempCumulativeResults = new ArrayList<List<T>>();\n List<List<T>> tempIndividualResults;\n List<T> tempComboItems;\n\n \n for (int tempChoiceSize = 1; tempChoiceSize <= aPossibleItems.size(); tempChoiceSize++) {\n \n tempIndividualResults = new ArrayList<List<T>>();\n tempComboItems = this.createChoiceCollection(tempChoiceSize);\n this.getPossibleCombinationsOfPascal(aPossibleItems, \n tempComboItems,\n 0, \n aPossibleItems.size(), \n 0, \n tempChoiceSize, \n tempIndividualResults);\n tempCumulativeResults.addAll(tempIndividualResults);\n \n }\n \n return tempCumulativeResults;\n \n }",
"@SuppressWarnings(\"unchecked\")\t\t\t\t\t\t\t//used because of line 17, there is no way to remove warnings, they have to be suppressed\n public String[] permutations(ArrayList<ArrayList<Character> > mat){\n\n if(mat.size()==1){\t\t\t//since the function is recursive, a base case for the first line has been made. \n String[] s = new String[mat.get(0).size()];\n int i = 0;\n for(Object obj:mat.get(0)) {\n if (i < s.length) {\n s[i++] = obj.toString();\n }\n }\n return s;\t\t//returns the characters of the first line of the input as an array of String\n }\n ArrayList<Character>[] arr = new ArrayList[mat.size()]; //this has been created to provide ease of accessibility which is a bit difficult with an ArrayList of an ArrayList\n int k = 0;\n for(ArrayList a:mat){\n if(k<mat.size()){\n arr[k] = a;\n }\n k++;\n }\n int product = 1;\n for(ArrayList a: mat){\n product*= a.size(); \t// product calculates the size of the String to be generated for the given input\n }\n int i = 0;\n String[] ret = new String[product];\n ArrayList<ArrayList<Character> > ret_arr_list = new ArrayList<>();\n for(int exception_index = 0;exception_index<arr.length-1;++exception_index){\n ret_arr_list.add(arr[exception_index]); //ret_arr_list is an ArrayList of an ArrayList except the last row of the original input\n }\n String[] s = permutations(ret_arr_list); //gets the string as mentioned at the very beginning of the function\n int ret_index = 0;\n for(int i_index = 0;i_index < s.length;++i_index){\n for(int j_index = 0;j_index<mat.get(mat.size()-1).size();++j_index){\n ret[ret_index++] = s[i_index] + arr[mat.size()-1].get(j_index).toString(); //appends every character of the last line to \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //every String element calculated in String[] s\n }\n }\n return ret;\n }",
"private static void findPermutations(int index, List<Integer> nums) {\n\n }",
"@Test\r\n public void PermutationTest() {\r\n System.out.println(\"permutation\");\r\n String prefix = \"\";\r\n String in = \"123\";\r\n Input input = new Input(in);\r\n List<String> expResult = Arrays.asList(\"123\",\"132\",\"213\",\"231\",\"312\",\"321\");\r\n List<String> result = instance.permutation(prefix, input);\r\n instance.sort(result);\r\n assertEquals(expResult, result);\r\n }",
"public void permute( ){\n\t\tif( out.length() == in.length() ){\n\t\t\tSystem.out.println( out );\n\t\t\treturn;\n\t\t}\n\t\t//for each character in the input\n\t\tfor( int i = 0; i < in.length(); ++i ){\n\t\t\t//if already marked then skip\n\t\t\tif( used[i] ) \n\t\t\t\tcontinue;\n\t\t\t//otherwise put the character in current position of permuted string\n\t\t\tout.append( in.charAt(i) );\n\t\t\t//mark the position as visited\n\t\t\tused[i] = true;\n\t\t\t//permute remaining characters\n\t\t\tpermute();\n\t\t\t//unmark the position\n\t\t\tused[i] = false;\n\t\t\t//clear the permuted string to start over again\n\t\t\tout.setLength( out.length() - 1 );\n\t\t}\n\t}",
"public void permute(int testIndex){\n\t\tif(testIndex == maxNum){//Get one solution\n\t\t\t\tprint();//print the result square\n\t\t\t\tcount++;//count for the solution\n\t\t}else{\n\t\t\tfor(int i = 1; i <= maxNum; i++){//travsing all the number set\n\t\t\t\tm[testIndex] = i;//try each number\n\t\t\t\tif(checking(testIndex)){//call checking function\n\t\t\t\t\tpermute(testIndex + 1);//recursive to next state\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static <T> List<T[]> permutation(T[] arr) {\n T[] array = arr.clone();\n List<T[]> result = new LinkedList<>();\n backtracking(array, 0, result);\n return result;\n }",
"private static int[] computePermutations(int n) {\n final int[] indexes = new int[n];\n for (int i = 0; i < n; i++) {\n indexes[i] = i;\n //indexes[i] = i + 1;\n }\n\n final int total = computePermutations(indexes, 0, n);\n System.out.println(\"# \" + np + \"; total = \" + total);\n\n return indexes;\n }",
"private void permutation(int[] ans, int l, int r) {\n if (l == r)\n perm.add(ans.clone());\n else {\n for (int i = l; i <= r; i++) {\n ans = swap(ans, l, i);\n permutation(ans, l + 1, r);\n ans = swap(ans, l, i);\n }\n }\n }",
"public static ArrayList<ArrayList<String>> permuteInterative(char[] chars) {\n ArrayList<ArrayList<String>> resultBySize = new ArrayList<>();\n\n // starts out empty\n ArrayList<StringBuilder> results = new ArrayList<>();\n results.add(new StringBuilder());\n\n for (int i = 0; i< chars.length; i++) {\n ArrayList<StringBuilder> current = new ArrayList<>();\n for (StringBuilder s : results) {\n for (int j = 0; j < s.length() + 1; j++) {\n s.insert(j, chars[i]);\n StringBuilder temp = new StringBuilder(s);\n current.add(temp);\n s.deleteCharAt(j);\n }\n }\n results = new ArrayList<>(current);\n //snap shot of that size\n ArrayList<String> strings = new ArrayList<>();\n for (StringBuilder s: current) {\n strings.add(s.toString());\n }\n resultBySize.add(strings);\n }\n System.out.println(resultBySize);\n return resultBySize;\n }",
"private static List<List<Integer>> getPermutation(List<Integer> array){\n List<List<Integer>> result = new ArrayList<List<Integer>>();\n getPermutation(array,new ArrayList<>(),result);\n return result;\n }",
"public List<String> permutations(String set) {\n List<String> result = new ArrayList<>();\n if (set == null) {\n return result;\n }\n char[] array = set.toCharArray();\n DFS(array, 0, result);\n return result;\n }",
"public Matrix[] palu() {\n\t\tHashMap<Integer, Integer> permutations = new HashMap<Integer,Integer>();\n\t\tMatrix m = copy();\n\t\tint pivotRow = 0;\n\t\tfor (int col = 0; col < m.N; col++) {\n\t\t\tif (pivotRow < m.M) {\n\t\t\t\tint switchTo = m.M - 1;\n\t\t\t\twhile (pivotRow != switchTo && \n\t\t\t\t\t\tm.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\tm = m.rowSwitch(pivotRow, switchTo);\n\t\t\t\t\tpermutations.put(pivotRow, switchTo);\n\t\t\t\t\tswitchTo--;\n\t\t\t\t}\n\t\t\t\tif (!m.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < m.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = m.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = m.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tm = m.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tMatrix p = identity(m.M);\n\t\tfor (Integer rowI : permutations.keySet()) {\n\t\t\tp.rowSwitch(rowI, permutations.get(rowI));\n\t\t}\n\t\tMatrix l = identity(m.M);\n\t\tMatrix u = p.multiply(copy());\n\t\t\n\t\tpivotRow = 0;\n\t\tfor (int col = 0; col < u.N; col++) {\n\t\t\tif (pivotRow < u.M) {\n\t\t\t\t// Should not have to do any permutations\n\t\t\t\tif (!u.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < u.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = u.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = u.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tu = u.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t\tl = l.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tl = l.inverse();\n\t\tMatrix[] palu = {p, this, l, u};\n\t\treturn palu;\n\t}",
"public static void nextPermutation(int[] num) {\n int rindex, index;\n for (rindex = num.length - 1; rindex > 0 && num[rindex] <= num[rindex - 1]; rindex--);\n if (rindex > 0) {\n for (index = num.length - 1; num[index] <= num[rindex - 1]; index--);\n swap(num, index, rindex - 1);\n }\n for (index = rindex; index < rindex + ((num.length - rindex) >> 1); index++) {\n swap(num, index, num.length - index + rindex - 1);\n }\n }",
"public static List<String> generatePermutations(int gridSize) {\n if (gridSize < GRID_SIZE_MIN || gridSize > GRID_SIZE_MAX) {\n throw new IllegalArgumentException(\"Digits out of bounds.\");\n }\n List<String> result = new ArrayList<String>();\n int start = startInt(gridSize);\n int end = endInt(gridSize);\n LOG.log(Level.INFO,\"start={0}, end={1}\", new Object[]{start, end});\n for (int i = start; i <= end; i++) {\n String textValue = String.valueOf(i);\n if (keep(textValue)) {\n result.add(textValue);\n }\n }\n return result;\n }",
"private void permutation(String prefix, String str) {\n \r\n int n = str.length();\r\n if (n == 0)\r\n {\r\n \r\n ls.add(prefix);\r\n System.out.print(prefix+\",\");\r\n if(ls.isEmpty()==true)\r\n {\r\n ls.remove(ls.indexOf(n)); \r\n }\r\n \r\n al.add(ls);\r\n calc(al);\r\n \r\n }\r\n\r\n else {\r\n \r\n //System.out.print(ls);\r\n \r\n for (int i = 0; i < n; i++)\r\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));\r\n \r\n \r\n }\r\n \r\n \r\n \r\n}",
"public List<List<Integer>> permute(int[] nums) {\n if (nums.length < 2) {\n LinkedList<List<Integer>> res = new LinkedList<>();\n List<Integer> list = Arrays.stream(nums).boxed().collect(Collectors.toList());\n res.add(list);\n return res;\n }\n\n ArrayList<List<Integer>> result = new ArrayList<>();\n ArrayList<Set<Integer>> setList = new ArrayList<>();\n\n //The base set that all the other sets will be \"cloned\" from\n Set<Integer> numSetBase = Arrays.stream(nums).boxed().collect(Collectors.toSet());\n\n //Initialize the custom map-thingy\n for (int i = 0; i < nums.length; i++) {\n List<Integer> temp = new LinkedList<>();\n temp.add(nums[i]);\n result.add(temp); //Key - the list\n\n Set<Integer> newSet = new HashSet<>(numSetBase);\n newSet.remove(nums[i]);\n\n setList.add(newSet); //Add to the set of stuff left\n }\n\n //Iterate\n for (int i = 1; i < nums.length; i++) {\n //Iterate over the whole list\n int initialSize = result.size();\n for (int j = 0; j < initialSize; j++) {\n boolean isFirstElem = true;\n int firstElem = 0;\n //For each unused int in the set entry\n for (int unused: setList.get(j)) {\n if (isFirstElem) {\n firstElem = unused;\n isFirstElem = false;\n } else {\n //Add new entries for the unused nums\n Set<Integer> newSet = new HashSet<>(setList.get(j));\n List<Integer> newList = new LinkedList<>(result.get(j));\n newList.add(unused);\n newSet.remove(unused);\n //Add the new entry\n result.add(newList);\n setList.add(newSet);\n }\n }\n //Modify the first element\n if (!setList.get(j).isEmpty()) {\n result.get(j).add(firstElem);\n setList.get(j).remove(firstElem);\n }\n }\n }\n return result;\n }",
"public void getPermutation(boolean[] used, StringBuilder sb) {\n if(sb.length() == list.size()) {\n if(middle == null) res.add(sb.toString() + sb.reverse().toString());\n else res.add(sb.toString() + middle + sb.reverse().toString());\n sb.reverse(); // need to restore the original stringbuilder\n return;\n }\n \n for(int i = 0; i < list.size(); i++) {\n // avoid duplicated !!! very important\n // when a number has the same value with its previous, we can use this number only if his previous is used\n // because if we choose the second one first, and then to the next recursion, the first one is added,\n // duplicate occurs\n if((i > 0 && list.get(i) == list.get(i - 1) && !used[i - 1]) || used[i]) continue;\n \n used[i] = true;\n sb.append(list.get(i));\n \n getPermutation(used, sb);\n \n // backtracking\n used[i] = false;\n sb.deleteCharAt(sb.length() - 1);\n }\n }",
"public static String pPermutation(String input) {\n\n assert input.length() == 32;\n\n StringBuilder result = new StringBuilder();\n\n for (int[] ints : PPermutation) {\n for (int anInt : ints) {\n result.append(input.charAt(anInt - 1));\n }\n }\n\n return result.toString();\n }",
"public static void main(String[] args) {\n String input = \"ABC\";\n List<String> result = new ArrayList <> ();\n result = permutations(input);\n System.out.println(Arrays.asList(result)); \n }",
"public static String run() {\r\n\t\t// Initialize\r\n\t\tint[] array = new int[10];\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tarray[i] = i;\r\n\r\n\t\t// Permute\r\n\t\tfor (int i = 0; i < 999999; i++) {\r\n\t\t\tif (!nextPermutation(array))\r\n\t\t\t\tthrow new AssertionError();\r\n\t\t}\r\n\r\n\t\t// Format output\r\n\t\tString ans = \"\";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tans += array[i];\r\n\t\treturn ans;\r\n\t}",
"private static int getPermutations(int n, int r) {\n\t\t\n\t\tif(r == 0)\n\t\t\treturn 1;\n\t\t\n\t\treturn (n * getPermutations(n-1 , r-1));\n\t}",
"public static void main(String... args) {\n List<String> list = Arrays.asList(\"aap\", \"noot\", \"mies\");\n List<List<String>> perms = getPermutations(list);\n perms.forEach(System.out::println);\n }",
"public static void findPermutations(int position, int[] arr) {\n int[] array = Arrays.copyOf(arr, arr.length);\n if (position == array.length - 1) {\n permutations.add(array);\n }\n\n for (int i = position; i < array.length; i++) {\n int temp = array[position];\n array[position] = array[i];\n array[i] = temp;\n\n findPermutations(position + 1, array);\n\n array[i] = array[position];\n array[position] = temp;\n }\n }",
"public static void permutationIterative(String str) {\n\t\tchar[] chars = str.toCharArray();\r\n\r\n\t\t// Weight index control array\r\n\t\tint[] p = new int[str.length()];\r\n\r\n\t\t// i, j represents upper and lower bound index resp. for swapping\r\n\t\tint i = 1, j = 0;\r\n\r\n\t\t// Print given string, as only its permutations will be printed later\r\n\t\tSystem.out.print(str);\r\n\t\tlistPermutationIterative.add(str);\r\n\t\twhile (i < str.length()) {\r\n\t\t\tif (p[i] < i) {\r\n\t\t\t\t// if i is odd then j = p[i], otherwise j = 0\r\n\t\t\t\tj = (i % 2) * p[i];\r\n\r\n\t\t\t\t// swap(a[j], a[i])\r\n\t\t\t\tswap(chars, i, j);\r\n\r\n\t\t\t\t// Print current permutation\r\n\t\t\t\tSystem.out.print(\" \" + String.valueOf(chars));\r\n\t\t\t\tlistPermutationIterative.add(String.valueOf(chars));\r\n\t\t\t\tp[i]++; // increase index \"weight\" for i by one\r\n\t\t\t\ti = 1; // reset index i to 1\r\n\t\t\t}\r\n\t\t\t// otherwise p[i] == i\r\n\t\t\telse {\r\n\t\t\t\t// reset p[i] to zero\r\n\t\t\t\tp[i] = 0;\r\n\r\n\t\t\t\t// set new index value for i (increase by one)\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void permutationsWithoutDups(String str) {\n ArrayList<String> perm = new ArrayList<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n ArrayList<String> output = new ArrayList<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }",
"public static void permutations(int arr[], int pos, IPermutationVisitor visitor) {\n final int n = arr.length;\n if (pos == n - 1) {\n visitor.operation(arr);\n } else {\n for (int i = pos; i < n; i++) {\n int cur = arr[pos];\n for (int j = pos + 1; j < n; j++) {\n arr[j - 1] = arr[j];\n }\n arr[n - 1] = cur;\n permutations(arr, pos + 1, visitor);\n }\n }\n }",
"public static int[] permutation()\n\t{\n\t\tint[] permutation = new int[DEFAULT_ARRAY_SIZE];\n\t\tRandom random = new Random();\n\t\tfor (int index = 0; index < permutation.length; index++)\n\t\t{\n\t\t\tpermutation[index] = index + 1;\n\t\t}\n\t\tfor (int index = 0; index < permutation.length; index++)\n\t\t{\n\t\t\tint randomIndex = random.nextInt(DEFAULT_ARRAY_SIZE);\n\t\t\tint holder = permutation[randomIndex];\n\t\t\tpermutation[randomIndex] = permutation[index];\n\t\t\tpermutation[index] = holder;\n\t\t}\n\t\treturn permutation;\n\t}",
"public Set<List<String>> getCombination(int[] inHand) {\n Set<List<String>> result = new HashSet<>();\n for (int i = 0; i < inHand.length; i++) {\n if (inHand[i] < 1) continue;\n int[] copyHand = copyArray(inHand);\n //possibility of A AA AAA\n for (int j = 1; j <= inHand[i]; j++) {\n if (j == 1) {\n String cSet = \"\";\n\n for (int seq = i; seq <= i + 2; seq++) {\n if (seq >= inHand.length || copyHand[seq] < 1) continue;\n cSet += seq;\n copyHand[seq] -= 1;\n }\n// System.out.println(\"i: \" + i + \" j: \" + j+\"inhand: \" + arrayToString\n// (inHand));\n\n Set<List<String>> a = getCombination(copyHand);\n Set<List<String>> newA = new HashSet<>();\n for (List<String> s : a) {\n s.add(cSet);\n s.sort(Comparator.naturalOrder());\n if (s.equals(\"\")) continue;\n newA.add(s);\n }\n result.addAll(newA);\n continue;\n }\n\n String currentSet = \"\";\n int[] copyOfInHand = copyArray(inHand);\n for (int t = 0; t < j; t++) {\n currentSet += i;\n }\n\n copyOfInHand[i] -= j;\n Set<List<String>> after = getCombination(copyOfInHand);\n Set<List<String>> newAfter = new HashSet<>();\n for (List<String> s : after) {\n s.add(currentSet);\n s.sort(Comparator.naturalOrder());\n newAfter.add(s);\n }\n result.addAll(newAfter);\n }\n }\n if (result.isEmpty()) result.add(new ArrayList<>());\n int min = result.stream().map(set -> set.size()).min(Comparator\n .naturalOrder()).get();\n Set<List<String>> minSets = result.stream().filter(set -> set.size() == min)\n .collect(Collectors\n .toSet());\n// combinationCache.put(inHand, minSets);\n return minSets;\n }",
"public static void main(String[] args) {\n\t\tint[] num = new int[] { 1, 2, 3 };\r\n\t\tSolution s = new Solution();\r\n\t\tList<List<Integer>> result = s.permute(num);\r\n\t\tfor (int i = 0; i < result.size(); i++) {\r\n\t\t\tSystem.out.println(result.get(i));\r\n//\t\t\tfor (int j = 0; j < result.get(i).size(); j++) {\r\n//\t\t\t\tSystem.out.print(result.get(i).get(j) + \" \");\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"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 }",
"@Override\n <T> void applyPermutation(List<Integer> perm, List<T> A) {\n Preconditions.checkArgument(perm.size() == A.size(), \"The sizes of A and P (the permutation array) differ.\");\n int n = A.size();\n for (int i = 0; i < n; ++i) {\n boolean isMin = true;\n int nextPos = perm.get(i);\n // Check if A.get(i) is the leftmost element for some some cyclic permutation in perm\n while(nextPos != i) {\n if(nextPos < i) {\n isMin = false; break;\n }\n nextPos = perm.get(nextPos);\n }\n if (isMin) {\n cyclicPermutation(A, perm, i);\n }\n }\n }",
"public byte[] getPermutation() {\n byte[] p = new byte[48];\n for(int i = 0; i < 24; i+=3) {\n int k = co[i/3];\n if(k == 0) {}\n else if(k == 1) {k=2;}\n else {k=1;}\n int r = cp[i/3] * 3 + k;\n p[i] = (byte) r;\n p[i+1] = (byte) (((r-r/3*3+1)%3)+r/3*3);\n p[i+2] = (byte) (((r-r/3*3+2)%3)+r/3*3);\n }\n for(int i = 24; i < 48; i +=2) {\n int r = ep[(i-24)/2]*2 + eo[(i-24)/2];\n p[i] = (byte) (r + 24);\n p[i+1] = (byte) ((r-r/2*2+1)%2 + r/2*2 + 24);\n }\n return p;\n }",
"public static void main(String[] args) {\n\t\tint[] nums = {1,2,3};\n\t\tnew NextPermutation().nextPermutation(nums);\n\t\tint[] nums1 = {3,2,1};\n\t\tnew NextPermutation().nextPermutation(nums1);\n\t\tint[] nums2 = {1,3,2};\n\t\t//Arrays.sort(nums2, 1, nums.length);\n\t\t//for(int i=0;i<nums2.length;i++)System.out.println(nums2[i]);\n\t\tnew NextPermutation().nextPermutation(nums2);\n\n\t}",
"public static void checkPermutation(String str) {\n \t\n \tint length = str.length();\n\t\t\n \t//list to store permutations\n \tList<String> stringByRecursive = new ArrayList<>();\n\t\tList<String> stringByIteration = new ArrayList<>();\n\t\t\n\t\t\n\t\tList<String> listOfPermutByRecursive = getPermutationByRecursion(str, stringByRecursive, 0, length-1);\n\t\tList<String> listOfPermutByIterate = getPermutationByIteration(str, \"\", stringByIteration);\n\t\t\n\t\t//sorting the permutation list\n\t\tCollections.sort(listOfPermutByRecursive);\n\t\tCollections.sort(listOfPermutByIterate);\n\t\t\n\t\tSystem.out.println(\"\\nPermutation of String : \"+str+\" By Recursion Approch \\n\");\n\t\tSystem.out.println(listOfPermutByRecursive);\n\t\t\n\t\tSystem.out.println(\"\\nPermutation of String : \"+str+\" By Iterative Approch \\n\");\n\t\tSystem.out.println(listOfPermutByIterate);\n\t\t\n\t\t//checking both list are same / not\n\t\tif(listOfPermutByIterate.equals(listOfPermutByRecursive)) {\n\t\t\t\n\t\t\tSystem.out.println(\"\\nPermutation Given By Iterative Approch & Recursion Approch Are Same\");\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tSystem.out.println(\"\\nPermutation Given By Iterative Approch & Recursion Approch Are Not Same\");\n\t\t}\n }",
"public static void permutationsWithDups(String str) {\n HashSet<String> perm = new HashSet<String>();\n perm.add(str.substring(0,1));\n for(int i=1; i<str.length(); i++) {\n HashSet<String> output = new HashSet<String>();\n for(String p: perm) {\n for(int j=0; j<=p.length(); j++) {\n output.add(p.substring(0,j) + str.substring(i,i+1) + p.substring(j));\n }\n }\n perm = output;\n }\n\n for(String s: perm) {\n System.out.println(s);\n }\n }",
"public static void permutation(String str) { \n permutation(\"\", str); \n}",
"private void tryPermutations(LinkedList<Creature> list) {\n if (NHWBEasy){\n //no runes here\n testFormation(new Formation(list));\n \n }\n else{\n \n PermutationIterator<Creature> permutations = new PermutationIterator(list);\n while(permutations.hasNext()){\n //if(maxCreatures != Formation.MAX_MEMBERS && (hasRunes || containsRandomBoss)){\n if(maxCreatures != Formation.MAX_MEMBERS && (hasRunes || containsRandomBoss)){\n \n LinkedList<Creature> currentPermutation = permutations.next();\n testFormation(maxWithShufflingBlankSpaces(currentPermutation));\n }\n else{\n //System.out.println(\"No Shuffle\");\n Formation f = new Formation(permutations.next());\n \n if (hasRunes){\n Formation runeF = f.getCopy();\n runeF.addRuneSkills(yourRunes);\n testFormation(runeF);\n }\n else{\n testFormation(f);\n }\n }\n //System.out.println(\"testing the long way\" + maxCreatures);\n }\n }\n \n }",
"private static <A,B> List<Map<A,B>> generateAllPossibilities(List<Pair<A,Set<B>>> input){\n\t\tif(input.size()==0){\n\t\t\tList<Map<A,B>> l = new ArrayList<Map<A,B>>();\n\t\t\tl.add(new HashMap<A,B>());\n\t\t\treturn l;\n\t\t} else {\n\t\t\tPair<A, Set<B>> entry = input.get(0);\n\t\t\t\n\t\t\tList<Pair<A,Set<B>>> newList = new ArrayList<Pair<A,Set<B>>>();\n\t\t\tfor(int i=1;i<input.size();i++){\n\t\t\t\tnewList.add(input.get(i));\n\t\t\t}\n\t\t\t\n\t\t\tList<Map<A,B>> results = generateAllPossibilities(newList);\n\t\t\tList<Map<A,B>> newResults = new ArrayList<Map<A,B>>();\n\t\t\t\n\t\t\tfor(B newEntry : entry.second()){\n\t\t\t\tfor(Map<A,B> previousMap : results){\n\t\t\t\t\tMap<A,B> newMap = new HashMap<A,B>();\n\t\t\t\t\tfor(Entry<A,B> e : previousMap.entrySet()){\n\t\t\t\t\t\tnewMap.put(e.getKey(), e.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tnewMap.put(entry.first(), newEntry);\n\t\t\t\t\tnewResults.add(newMap);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn newResults;\n\t\t}\n\t}",
"@SuppressWarnings(\"serial\")\r\n\t@Test\r\n\tpublic void permutationsTestSize3AllEquals() throws BoundedQueueException {\r\n\t\tbq.enqueue(3);\r\n\t\tbq.enqueue(3);\r\n\t\tbq.enqueue(3);\r\n\t\tBoundedQueueCorrected<BoundedQueueCorrected<Integer>> output= bq.permutations();\r\n\t\t\r\n\t\t//size of the perm's output\r\n\t\tint expectedPermSize = 6; //fact\r\n\t\tint actualPermSize = output.size();\t\t\r\n\t\tassertEquals(\"Tamanho do resultado final\",expectedPermSize, actualPermSize);\r\n\t\t\r\n\t\t\r\n\t\t//number of elems for each elem of perms\r\n\t\tint expectedPermNumElems = 3; \r\n\t\tint actualPermNumElems = bq.size();\r\n\t\tassertEquals(\"Numero de elementos no elems\",expectedPermNumElems, actualPermNumElems);\r\n\t\t\r\n\t\t//check if there are any duplicated\r\n\t\tArrayList<BoundedQueueCorrected<Integer>> permOutput = output.elems;\r\n\t\tList<Integer> countEquals = new ArrayList<Integer>(6){{\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t}};\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < actualPermSize; i++ ){ \r\n\t\t\tfor(int j = 0; j < actualPermSize; j++ ){\r\n\t\t\t\tif(i != j){\r\n\t\t\t\t\tif(permOutput.get(i).toString().equals(permOutput.get(j).toString())){\t\t\r\n\t\t\t\t\t\tcountEquals.set(i, countEquals.get(i)+1); // counts the number of occurrences of an elem from output\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\tint expectedEqualPerms = 0;\r\n\t\tint actualEqualPerms = 0;\r\n\t\t\r\n\t\tfor(Integer i : countEquals){\r\n\t\t\tif(i > 0)\r\n\t\t\t\tactualEqualPerms++;\r\n\t\t\t//if(i == expectedPermSize -1)\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tassertEquals(\"Numero de permutacoes iguais\",expectedEqualPerms, actualEqualPerms);\r\n\t}",
"public static void main(String[] args) {\n\t\tresult = permutation(\"doggie\",\"god\");\r\n\t\tSystem.out.println(result);\r\n\t}",
"public List<List<Integer>> permute_1(int[] nums) {\n List<List<Integer>> list = new ArrayList<>();\n // Arrays.sort(nums); // not necessary\n backtrack_(list, new ArrayList<>(), nums);\n return list;\n }",
"public static <T> List<List<T>> permutations(List<T> l) {\n List<List<T>> recursionBase = new ArrayList<List<T>>();\n if (l.isEmpty()) {\n recursionBase.add(new ArrayList<T>(Collections.emptyList()));\n return recursionBase;\n } else {\n T head = l.get(0);\n List<List<T>> recursionStep = permutations(l.subList(1, l.size()));\n List<List<T>> permutation = new ArrayList<List<T>>(recursionStep.size() + 1);\n for (List<T> eachL : recursionStep) {\n for (int i = 0; i <= eachL.size(); i++) {\n List<T> copyOfList = new ArrayList<T>(eachL);\n copyOfList.add(i, head);\n permutation.add(copyOfList);\n }\n }\n return Collections.unmodifiableList(new ArrayList<>(permutation));\n }\n }",
"public static void main(String[] args) {\n \tlong[] fact = new long[MAXDOMINOES+1];\r\n \tfact[0] = 1;\r\n \tfor (int i=1; i<=MAXDOMINOES; i++)\r\n \t\tfact[i] = (fact[i-1]*i)%MOD;\r\n\r\n Scanner stdin = new Scanner(System.in);\r\n int numCases = stdin.nextInt();\r\n\r\n // Process each case.\r\n for (int loop=0; loop<numCases; loop++) {\r\n\r\n // Read in this case.\r\n n = stdin.nextInt();\r\n list = new int[n][2];\r\n for (int i=0; i<n; i++)\r\n for (int j=0; j<2; j++)\r\n list[i][j] = stdin.nextInt();\r\n\r\n // Special case - if all the dominoes are the same, all orderings work.\r\n if (same(list)) {\r\n \tSystem.out.println(fact[n]);\r\n \tcontinue;\r\n }\r\n\r\n // dp[mask][last][orientation] will store the number of permutations using the dominoes indicated by\r\n // mask, with the last domino last facing in the direction dictated by orientation. If orientation is 0,\r\n // this is the original input orientation, if it is 1, it's flipped.\r\n long[][][] dp = new long[1<<n][n][2];\r\n\r\n // Always 1 way to place one domino in a fixed orientation.\r\n for (int i=0; i<n; i++) {\r\n dp[1<<i][i][0] = 1;\r\n dp[1<<i][i][1] = 1;\r\n }\r\n\r\n // Outer DP loop, solve all problem instances for each subset of dominoes.\r\n for (int mask=3; mask<(1<<n); mask++) {\r\n\r\n // Now, try each domino as the last domino in mask.\r\n for (int last=0; last<n; last++) {\r\n\r\n // Not a valid state.\r\n if ((mask&(1<<last)) == 0) continue;\r\n\r\n int prevmask = mask - (1<<last);\r\n\r\n for (int i=0; i<n; i++) {\r\n\r\n if ((prevmask&(1<<i)) == 0) continue;\r\n\r\n // Both i and last are in regular orientation.\r\n if (list[i][1] == list[last][0])\r\n dp[mask][last][0] = (dp[mask][last][0]+dp[prevmask][i][0])%MOD;\r\n\r\n // Here i is flipped and last is regular.\r\n else if (list[i][0] == list[last][0])\r\n dp[mask][last][0] = (dp[mask][last][0]+dp[prevmask][i][1])%MOD;\r\n\r\n // i is regular but last is flipped.\r\n if (list[i][1] == list[last][1])\r\n dp[mask][last][1] = (dp[mask][last][1]+dp[prevmask][i][0])%MOD;\r\n\r\n // Both i and last are flipped.\r\n else if (list[i][0] == list[last][1])\r\n dp[mask][last][1] = (dp[mask][last][1]+dp[prevmask][i][1])%MOD;\r\n }\r\n } // end last loop\r\n } // end mask loop\r\n\r\n // Sum up result - all ways to place all dominoes over all possible last dominoes in either orientation.\r\n // Since we screened out our special case, no over-counting will occur here.\r\n long res = 0L;\r\n for (int last=0; last<n; last++) {\r\n \tres = (res + dp[(1<<n)-1][last][0])%MOD;\r\n \tif (list[last][0] != list[last][1])\r\n \t\tres = (res + dp[(1<<n)-1][last][1])%MOD;\r\n }\r\n System.out.println(res);\r\n }\r\n }",
"public static void main(String[] args)\n {\n int[] arr = new int[]{1,2,3};\n List<List<Integer>> result = new ArrayList<>();\n Permutation permutation = new Permutation();\n permutation.permuteInteger(arr,result, 0, arr.length);\n\n System.out.println(result);\n }",
"@Override\n\tprotected void createInitialPermutations()\n\t{\n mOrientations[0] = new Permutation( this, null );\n\n // first, define the 7-fold rotation\n int[] map = new int[]{ 1, 2, 3, 4, 5, 6, 0, 8, 9, 10, 11, 12, 13, 7 };\n mOrientations[1] = new Permutation( this, map );\n\n // then, then 2-fold rotation\n map = new int[]{ 7, 13, 12, 11, 10, 9, 8, 0, 6, 5, 4, 3, 2, 1 };\n mOrientations[7] = new Permutation( this, map );\n }",
"public static ArrayList<String> permutations(String s) {\r\n ArrayList<String> list = new ArrayList<>();\r\n permutations(\"\", s, list);\r\n return list;\r\n }",
"public void recursivePermuter(ArrayList<Course> originalCourseList,\n ArrayList<ArrayList<Course>> results, ArrayList<Course> result) {\n if (originalCourseList.size() == result.size()) {\n ArrayList<Course> temp = new ArrayList<>(result);\n results.add(temp);\n }\n for (int i = 0; i < originalCourseList.size(); i++) {\n if (!result.contains(originalCourseList.get(i))) {\n result.add(originalCourseList.get(i));\n recursivePermuter(originalCourseList, results, result);\n result.remove(result.size() - 1);\n }\n }\n }",
"private List<ItemSet> generateCombinations(List<Item> items, Integer size) {\n\t\tint[] indexes = new int[size];\n\t\tList<ItemSet> combinations = new ArrayList<>();\n\n\t\t// If the current size is not greater than the item size, process the\n\t\t// list\n\t\tif (size <= items.size()) {\n\t\t\t// Initialize the indexes\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tindexes[i] = i;\n\t\t\t}\n\n\t\t\t// Generate first combination\n\t\t\tcombinations.add(generateItemSet(items, indexes));\n\n\t\t\t// Process until return\n\t\t\twhile (true) {\n\t\t\t\tint toIncrement = size - 1;\n\t\t\t\t// Find position of item that can be incremented\n\t\t\t\twhile (toIncrement >= 0 && indexes[toIncrement] == items.size() - size + toIncrement) {\n\t\t\t\t\ttoIncrement--;\n\t\t\t\t}\n\n\t\t\t\t// If no indexes can be incremented, return the combinations\n\t\t\t\tif (toIncrement < 0) {\n\t\t\t\t\treturn combinations;\n\t\t\t\t}\n\t\t\t\t// Otherwise...\n\t\t\t\telse {\n\t\t\t\t\t// Increment the index\n\t\t\t\t\tindexes[toIncrement]++;\n\n\t\t\t\t\t// Increment subsequent indexes\n\t\t\t\t\tfor (++toIncrement; toIncrement < size; toIncrement++) {\n\t\t\t\t\t\tindexes[toIncrement] = indexes[toIncrement - 1] + 1;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Generate the combination\n\t\t\t\t\tcombinations.add(generateItemSet(items, indexes));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// size > item set\n\t\treturn null;\n\t}",
"static void permute(String fix, String p)\n\t\t{\n\t\t \n\t\t if(p.length()==1)\n\t\t {\n\t\t System.out.print(fix + p + \" \");\n\t\t }\n\t\t //if length is 2, print same and also reverse.\n\t\t if(p.length() == 2)\n\t\t {\n\t\t System.out.print(fix + p + \" \");\n String sn = p.charAt(1) + \"\" + p.charAt(0);\n System.out.print(fix + sn + \" \");\n\t\t }\n\t\t if(p.length()>2)\n\t\t {\n\t\t for(int i=0;i<p.length();i++)\n\t\t {\n\t\t //ith as fix character.\n\t\t String f = fix + p.charAt(i);\n\t\t //including charcater before the fixed one and also all the chars after the fixed one.\n\t\t String remain = p.substring(0,i) + p.substring(i+1,p.length());\n\t\t permute(f,remain);\n\t\t }\n\t\t \n\t\t }\n\t\t \n\t\t}",
"public void generateSolutionList() {\n // Will probably solve it in a few years\n while (!isSolved()) {\n RubiksMove move = RubiksMove.random();\n solutionMoves.add(move);\n performMove(move);\n }\n }",
"public void nextPermutation(int[] arr) {\n int i=arr.length-2,j=arr.length-1;\n for(;i>=0;i--){\n if(arr[i]<arr[i+1]) break;\n }\n if(i!=-1){\n for(;j>=0;j--){\n if(arr[i]<arr[j]) break;\n }\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }\n \n reverse(arr,i+1,arr.length-1);\n }",
"@Override\n <T> void applyPermutation(@NotNull List<Integer> perm, @NotNull List<T> A) {\n Preconditions.checkArgument(perm.size() == A.size(), \"The sizes of A and P (the permutation array) differ.\");\n int n = perm.size();\n for (int i = 0; i < n; ++i) {\n // Checks if the element at index i has not been moved already\n // by checking if perm.get(i) is nonnegative\n int currPos = i;\n while(perm.get(currPos) >= 0) {\n Collections.swap(A, i, perm.get(currPos));\n int next = perm.get(currPos);\n // Subtracts perm.size() from an entry in perm to make it negative,\n // which indicates that the corresponding move has been performed.\n perm.set(currPos, perm.get(currPos) - n);\n currPos = next;\n }\n }\n }",
"public final static void main(String[] args) {\n\t\tfinal int n = 8;\n\t\tfinal int k = 4;\n\n\t\tStreamSupport.stream(\n\t\t\t\tnew PermutationSpliterator(Selection.of(n, k)),\n\t\t\t\tfalse)\n\t\t\t\t.forEachOrdered(a -> {});\n\n\t\tfor (int cur = 0; cur < 70; cur++) {\n\t\t\tlong tCur = cur;\n\t\t\tfinal int x = (n - k)+1;\n\t\t\tint i = k;\n\t\t\tfinal int[] array = new int[k];\n\t\t\twhile (i >= 1) {\n\t\t\t\tarray[i-1] = (int) (tCur % x);\n\t\t\t\ttCur /= i--;\n\t\t\t}\n\t\t}\n\t}",
"@SuppressWarnings(\"serial\")\r\n\t@Test\r\n\tpublic void permutationsTestSize3NotAllEquals() throws BoundedQueueException {\r\n\t\tbq.enqueue(1);\r\n\t\tbq.enqueue(2);\r\n\t\tbq.enqueue(3);\r\n\t\tBoundedQueueCorrected<BoundedQueueCorrected<Integer>> output= bq.permutations();\r\n\t\t\r\n\t\t//size of the perm's output\r\n\t\tint expectedPermSize = 6; //fact\r\n\t\tint actualPermSize = output.size();\t\t\r\n\t\tassertEquals(\"Tamanho do resultado final\",expectedPermSize, actualPermSize);\r\n\t\t\r\n\t\t\r\n\t\t//number of elems for each elem of perms\r\n\t\tint expectedPermNumElems = 3; \r\n\t\tint actualPermNumElems = bq.size();\r\n\t\tassertEquals(\"Numero de elementos no elems\",expectedPermNumElems, actualPermNumElems);\r\n\t\t\r\n\t\t//check if there are any duplicated\r\n\t\tArrayList<BoundedQueueCorrected<Integer>> permOutput = output.elems;\r\n\t\tList<Integer> countEquals = new ArrayList<Integer>(6){{\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t\tadd(0);\r\n\t\t}};\r\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i < actualPermSize; i++ ){ \r\n\t\t\tfor(int j = 0; j < actualPermSize; j++ ){\r\n\t\t\t\tif(i != j){\r\n\t\t\t\t\tif(permOutput.get(i).toString().equals(permOutput.get(j).toString())){\t\t\r\n\t\t\t\t\t\tcountEquals.set(i, countEquals.get(i)+1); // counts the number of occurrences of an elem from output\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\tint expectedEqualPerms = 0;\r\n\t\tint actualEqualPerms = 0;\r\n\t\t\r\n\t\tfor(Integer i : countEquals){\r\n\t\t\tif(i > 0)\r\n\t\t\t\tactualEqualPerms++;\r\n\t\t\t//if(i == expectedPermSize -1)\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\tassertEquals(\"Numero de permutacoes iguais\",expectedEqualPerms, actualEqualPerms);\r\n\t}",
"public static void main(String[] args) {\r\n \t\r\n \tfor (int i = 0; i < 20; ++i)\r\n System.out.println(i + \" - Unique Ways DP : \" + countUniqueCombinationsDP(i)\r\n\t\t\t \t\t + \", Unique Ways Recursive : \" + countUniqueCombinationsR(i));\r\n }",
"public BigInteger calculatePermutations(long n, long k) {\n\t\treturn Factorial.factorial(n).divide(Factorial.factorial(n-k));\n\t}",
"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 main(String[] args) {\n\t\tSolution060 s=new Solution060();\n\t\t\n\t\tSystem.out.println(s.getPermutation(8, 33333));\n\t}",
"public void nextPermutation(int[] num) {\n \tint si = -1;\n \tint ei = -1;\n \tfor(int i=0; i<num.length-1; i++)\n \t\tfor(int j= i+1; j<num.length; j++){\n \t\t\tif(num[i] < num[j]){\n \t\t\t\tsi = i;\n \t\t\t\tei = j;\n \t\t\t}\n \t\t}\n \tif(si == -1 && ei == -1){\n \t\treverse(num, 0);\n \t\treturn;\n \t}\n \tint tmp = num[si];\n\t\tnum[si] = num[ei];\n\t\tnum[ei] = tmp;\n\t\tsi++;\n\t\treverse(num, si);\n }",
"private static String getPermutation(long k, int strlen, Map<Character, CharCount> map, List<Character> chars) {\n if (map.isEmpty()) {\n return \"\";\n }\n long n = getExpectedSize(strlen, map);\n \n if (k > n) return \"\"; // invalid. Should never reach here.\n long f = 0;\n \n \n for (int i = 0; i < chars.size(); i++) {\n Character curChar = chars.get(i);\n CharCount charCount = map.get(curChar);\n charCount.decrementCount();\n strlen--;\n if (charCount.count == 0) {\n map.remove(curChar);\n chars.remove(i);\n }\n \n long temp = getExpectedSize(strlen, map);\n f += temp;\n if(f <= k){\n charCount.incrementCount();\n strlen++;\n if (charCount.count == 1) {\n map.put(curChar, charCount);\n chars.add(i, curChar);\n }\n continue;\n }\n else{\n f = f - temp;\n return curChar + getPermutation(k - f, strlen, map, chars);\n }\n }\n \n //SHould not reach here unless k is too large\n return \"\";\n }",
"public static List<List<Integer>> permutationsNoDup(int[] num){\n List<List<Integer>> permutations = new ArrayList<>();\n Integer[] cur = new Integer[num.length];\n boolean[] mark = new boolean[num.length];\n permutationsNoDup(num, mark, cur, 0, permutations);\n return permutations;\n }",
"public int[] CreatePermutations(int[] seq){\n \n return seq;\n }",
"public static List<String> getPermutationByRecursion(String str, List<String>stringByRecursion, int l, int r) {\n \n \tif(l == r) {\n \n stringByRecursion.add(str);\n }\n \t\n else{\n \t\n for(int i = l; i <= r ; i++){\n \n \tstr = swap(str, l, i);\n getPermutationByRecursion(str, stringByRecursion, l+1, r);\n str = swap(str, l, i);\n\n }\n }\n return stringByRecursion;\n }",
"public void reproduce(){\n\t\t// sort the population from strongest to weakest\n\t\tCollections.sort(population);\n\t\tCollections.reverse(population);\n\t\t\n\t\tfor(int i = 0; i < (int)(POPULATION_SIZE*POPULATION_ACTION_PERCENT); i+=2){\n\t\t\t\n\t\t\t// get two random indexes for reproduction based on the exponential function\n\t\t\t// (1/1000) * (randInt)^2 = index\n\t\t\t// this function favors sequences with higher fitness scores\n\t\t\tint randIndex1 = randomGenerator.nextInt((int)Math.sqrt(1000*POPULATION_SIZE*(1-POPULATION_ACTION_PERCENT)));\n\t\t\tint randIndex2 = randomGenerator.nextInt((int)Math.sqrt(1000*POPULATION_SIZE*(1-POPULATION_ACTION_PERCENT)));\n\t\t\t\n\t\t\trandIndex1 = (int) (Math.pow(randIndex1, 2) / 1000);\n\t\t\trandIndex2 = (int) (Math.pow(randIndex2, 2) / 1000);\n\t\t\t\n\t\t\t// get two pieces\n\t\t\tBuildingPiece[] array1 = population.get(randIndex1).getList();\n\t\t\tBuildingPiece[] array2 = population.get(randIndex2).getList();\n\t\t\t\n\t\t\t// find a splicing point\n\t\t\tint splicePoint = findSplicingPoint(array1, array2);\n\t\t\t\n\t\t\t// generate two new arrays based on the splicing point\n\t\t\tBuildingPiece[] newArray1 = generateNewArray(array1, array2, splicePoint);\n\t\t\tBuildingPiece[] newArray2 = generateNewArray(array2, array1, splicePoint);\n\t\t\t\n\t\t\t// make new buildings with the new arrays\n\t\t\tBuilding bp1 = new Building(newArray1, generation, possiblePieces);\n\t\t\tBuilding bp2 = new Building(newArray2, generation, possiblePieces);\n\t\t\t\n\t\t\t// mutate the new building sequences\n\t\t\tmutateArray(bp1);\n\t\t\tmutateArray(bp2);\n\t\t\t\n\t\t\t// add them into the population\n\t\t\tpopulation.add(randIndex1, bp1);\n\t\t\tpopulation.add(randIndex2, bp2);\n\t\t}\n\t}",
"public static List<List<Integer>> permutationsWithDup(int[] num){\n Arrays.sort(num);\n List<List<Integer>> permutations = new ArrayList<>();\n Integer[] cur = new Integer[num.length];\n boolean[] mark = new boolean[num.length];\n permutationsWithDup(num, mark, cur, 0, permutations);\n return permutations;\n }",
"public void allCombinations(){\n // Sorts the AI's rack\n combinations = new ArrayList<ArrayList<Piece>>();\n ArrayList<Piece> pieces = playersPieces;\n this.removeNulls(numOfNulls());\n for (int index = 0; index < pieces.size();index++){\n Piece temp = pieces.get(index);\n char compareWord = pieces.get(index).theLetter();\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord < pieces.get(lowerIndex).theLetter()){\n pieces.set(lowerIndex+1, pieces.get(lowerIndex));\n lowerIndex--;\n }\n\n pieces.set(lowerIndex+1,temp);\n }\n \n // Makes a list of all combinations through the recursive combine method\n combine(pieces, 0, new ArrayList<Piece>());\n insertionSort(combinations);\n combinations.remove(0);\n \n return;\n }",
"public static void main(String[] args) {\n\t\tString s = \"123321\";\n\t\tString t = \"123231\";\n\t\t\n\t\tSystem.out.println(permutation(s, t));\n\t}",
"public void getPermutation(String s1,int start,int end){\n\t\tif(start==end-1) {\n\t\t\tSystem.out.println(s1);\n\t\t}\n\t\telse {\n\t\t\tfor(int i=start;i<end;i++) {\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t//calling recursive function \n\t\t\t\tgetPermutation(s1,start+1,end);\n\t\t\t\ts1=swap(s1,start,i);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public PermutationGenerator(int[] arr) {\n if (arr.length < 1 && arr.length > 20) {\n throw new IllegalArgumentException(\"PermutationGenerator can only accept argument arr.length >= 1 && arr.length <=20\");\n }\n total = getFactorial(arr.length);\n initialize(arr);\n }",
"public static HashSet<String> getAllPermutations(String str) {\n\t\tHashSet<String> permutations = new HashSet<String>();\r\n\r\n\t\tif (str == null || str.length() == 0) {\r\n\t\t\tpermutations.add(\"\");\r\n\t\t\treturn permutations;\r\n\t\t}\r\n\r\n\t\tchar first = str.charAt(0);\r\n\t\tString remainingString = str.substring(1);\r\n\t\tHashSet<String> words = getAllPermutations(remainingString);\r\n\t\tfor (String word : words) {\r\n\t\t\tfor (int i = 0; i <= word.length(); i++) {\r\n\t\t\t\tString prefix = word.substring(0, i);\r\n\t\t\t\tString suffix = word.substring(i);\r\n\t\t\t\tpermutations.add(prefix + first + suffix);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn permutations;\r\n\t}",
"public PermutationGenerator (int n) {\n\t\tif (n < 1 && n > 20) {\tthrow new IllegalArgumentException (\"PermutationGenerator can only accept argument n >= 1 && n <=20\"); }\n total = getFactorial(n);\n initialize(n);\n }",
"@Override\n public PermutationSolution<Integer> createSolution() {\n return new DefaultBinaryIntegerPermutationSolution(this) ;\n }",
"public static void nextPermutation(int[] nums) {\r\n\t\r\n\t\tint k = nums.length-1;\r\n\t\tint anIndex = k;\r\n\t\twhile (k > 0 && (nums[k-1])> nums[k])\r\n\t\t\tk--;\r\n\t\tif (k == 0) {\r\n\t\t\t//System.out.println(\"Next cannot be found return\");\r\n\t\t\tArrays.sort(nums);\r\n\t\t\tSystem.out.println(Arrays.toString(nums));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tint index = k-1;\t\t\r\n\t\tswap(nums,anIndex,index);\r\n\t\tSystem.out.println(Arrays.toString(nums));\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public Integer[] createPermutation() {\n Integer[] value = createSortedArray();\n\n for (int c = 0; c < 5; c++) {\n for (int i = 0; i<value.length; i++) {\n int j = (int)(Math.random()*value.length);\n int temp = value[i];\n value[i] = value[j];\n value[j] = temp;\n }\n }\n \n return value;\n }",
"private static void permutation(String prefix, String str) {\n int n = str.length();\n if (n == 0) System.out.println(prefix);\n else {\n for (int i = 0; i < n; i++){\n \t System.out.println(\"prefix+str.char at i \" +prefix + str.charAt(i)+\" substring1 \"+str.substring(0, i)+\" substring2 \"+str.substring(i+1, n));\n permutation(prefix + str.charAt(i), str.substring(0, i) + str.substring(i+1, n));}\n }\n}",
"public static void main(String[] args) {\n \tint n = 3;\r\n perm(n);\r\n }",
"public ArrayList<ArrayList<Integer>> permuteUnique(int[] num) {\n HashMap<Integer, Integer> count = new HashMap<Integer, Integer>();\n for(int i = 0; i < num.length; i++) {\n \tif(!count.containsKey(num[i])) count.put(num[i], 1);\n \telse count.put(num[i], count.get(num[i])+1); \t\n }\n \n ArrayList<Integer> numUni = new ArrayList<Integer>(count.size());\n ArrayList<Integer> numCount = new ArrayList<Integer>(count.size());\n for(int e: count.keySet()) {\n \tnumUni.add(e);\n \tnumCount.add(count.get(e)); \t\n }\n \n ArrayList<ArrayList<Integer>> results = new ArrayList<ArrayList<Integer>>();\n ArrayList<Integer> result = new ArrayList<Integer>(num.length);\n permuteUnique(numUni, numCount, result, results);\n return results;\n }",
"public ArrayList<Integer> getNext() {\n\t\t\n\t\t// run thru our list of permutations\n\t\tdo {\n\t\t\treturnIndex++;\n\t\t\tif (returnIndex == permutations.size()) {\n\t\t\t\t// we reached end of current permutations-list,\n\t\t\t\t// so we have to expand our termIndices-list,\n\t\t\t\t// re-generate our permutations-list and\n\t\t\t\t// reset out returnIndex\n\t\t\t\ttermIndices.add(termIndices.size());\n\t\t\t\tpermute(\"\");\n\t\t\t\treturnIndex = 0;\n\t\t\t}\n\t\t} while (permHistory.contains(permutations.get(returnIndex)));\n\t\t\n\t\tpermHistory.add(permutations.get(returnIndex));\n\t\t\n\t\treturn permutations.get(returnIndex);\n\t}",
"public static ArrayList<String> getPerms(String s){\n\t\tArrayList<String> permutations = new ArrayList<String>();\n\t\t\n\t\tif(s==null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(s.length()==0){\n\t\t\tpermutations.add(\"\");\n\t\t\treturn permutations;\n\t\t}\n\t\t\n\t\t//firstly, choose the first char\n\t\tchar first = s.charAt(0);\n\t\t\n\t\t//store the remainder\n\t\tString remainder = s.substring(1);\n\t\t\n\t\t\n\t\t//using recursion\n\t\tArrayList<String> words = getPerms(remainder);\n\t\t\n\t\t//adding the first char to the result of the getPerms(remainder)\n\t\tfor(String word:words){\n\t\t\tfor(int i=0;i<=word.length();i++){\n\t\t\t\tpermutations.add(insertCharAt(word,first,i));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn permutations;\n\t}",
"public List<List<Integer>> permute(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n List<Integer> numList = new ArrayList<>();\n for (int n : nums) numList.add(n);\n permute(numList, 0, res);\n return res;\n }",
"public void nextPermutation(int [] nums){\n\t\tint i = nums.length - 2;\n\t\twhile(i >= 0 && nums[i+1] <= nums[i]) // from right\n\t\t\ti--;\n\t\tif(i >= 0){\n\t\t\tint j = nums.length-1;\n\t\t\twhile(j>=0 && nums[j] <= nums[i]){\n\t\t\t\tj--;\n\t\t\t}\n\t\t\tswapInArr(nums, i, j);\n\t\t}\n\t\t\n\t\treverseArray(nums, i+1, nums.length-1);\n\t}",
"public static int[] makePermutation(int numFilesInSet) {\n\tint value;\n\tboolean todo;\n\tboolean exist[];\n\n\tint[] permutation = new int[numFilesInSet];\n\texist = new boolean[numFilesInSet];\n\tvalue = 0;\n\tfor (int i = 0; i < permutation.length; i++) {\n\t todo = true;\n\t while (todo) {\n\t\tvalue = _random.nextInt(numFilesInSet);\n\t\ttodo = (exist[value] != false);\n\t }\n\t permutation[i] = value;\n\t exist[value] = true;\n\t}\n\treturn permutation;\n }",
"public static List allPerm(Object input[]) {\r\n List<Object[]> retVal = new ArrayList(Math.factorial(input.length));\r\n allPerm(0, input, retVal);\r\n return retVal;\r\n }",
"public static List<int[]> getPermutations( int start, int end, int arraySize )\n {\n ArrayList<int[]> permutations = new ArrayList<int[]>( );\n List<int[]> singles = getArrays( start, end );\n permutations.addAll( singles );\n \n List<int[]> lastArrays = singles;\n for ( int i = 2; i <= arraySize; i++ )\n {\n List<int[]> nextArrays = getArrays( lastArrays, end );\n permutations.addAll( nextArrays );\n lastArrays = nextArrays;\n }\n \n return permutations;\n }",
"public static void main(String[] args) {\n\t\tint[] num = {1,1,5};\r\n\t\tnextPermutation(num);\r\n\t\tfor(int n : num)\r\n\t\t\tSystem.out.print(n + \" \");\r\n\t}",
"public List<List<Integer>> permute_2(int[] nums) {\n List<List<Integer>> ans = new ArrayList<>();\n backtrack(new ArrayList<>(), ans, nums);\n return ans;\n }",
"public static Iterator<int[]> permutations(int size) {\n return new PermutationIterator(size);\n }",
"public static int[] finalPermutation(int[] inputText){\n\t\tint[] permutedText = new int[64];\n\t\tfor(int i = 0; i < 8; i++){\n\t\t\tpermutedText[i*8 + 0] = inputText[39 - i];\n\t\t\tpermutedText[i*8 + 1] = inputText[ 7 - i];\n\t\t\tpermutedText[i*8 + 2] = inputText[47 - i];\n\t\t\tpermutedText[i*8 + 3] = inputText[15 - i];\n\t\t\tpermutedText[i*8 + 4] = inputText[55 - i];\n\t\t\tpermutedText[i*8 + 5] = inputText[23 - i];\n\t\t\tpermutedText[i*8 + 6] = inputText[63 - i];\n\t\t\tpermutedText[i*8 + 7] = inputText[31 - i];\n\t\t}\n\t\treturn permutedText;\n\t}",
"public void generate() {\n\t\tMirror m = new Mirror();\n\t\tpoints.addAll(m.fish());\n\t\twhile (remainingPoints > 0) {\n\t\t\titerate();\n\t\t\tremainingPoints--;\n\t\t}\n\n\t}",
"public static void permute(char[] arr, int l, int r) {\n if (l == r) {\n System.out.println(String.valueOf(arr));\n } else {\n for (int i = l; i <= r; i++) {\n swap(arr, l, i);\n permute(arr, l + 1, r);\n swap(arr, l, i); // backtrack\n }\n }\n }"
] | [
"0.7047606",
"0.67845076",
"0.67543393",
"0.65814096",
"0.65382844",
"0.6494808",
"0.6429352",
"0.6335823",
"0.63345945",
"0.63184327",
"0.62838507",
"0.61987627",
"0.61817247",
"0.61154646",
"0.6112818",
"0.61090845",
"0.6101772",
"0.60955405",
"0.6092712",
"0.6089969",
"0.60034835",
"0.59801865",
"0.5967975",
"0.5962423",
"0.5952177",
"0.5951904",
"0.5922528",
"0.5903253",
"0.5875154",
"0.5851315",
"0.58370346",
"0.5818597",
"0.5806811",
"0.5805284",
"0.57978827",
"0.57897234",
"0.5747774",
"0.574464",
"0.5742488",
"0.57351696",
"0.57322407",
"0.5719667",
"0.57182044",
"0.5711393",
"0.5708587",
"0.56955516",
"0.5695",
"0.56945634",
"0.56829315",
"0.5682542",
"0.56797504",
"0.5666188",
"0.56534755",
"0.5647142",
"0.56427205",
"0.56425905",
"0.5635559",
"0.5621117",
"0.56077164",
"0.5597978",
"0.5597032",
"0.5591833",
"0.55858994",
"0.55819666",
"0.5568872",
"0.5566211",
"0.5563315",
"0.5561588",
"0.5549894",
"0.55395985",
"0.5537609",
"0.5537475",
"0.5534939",
"0.55349135",
"0.55313474",
"0.5523612",
"0.5522882",
"0.5513499",
"0.5498594",
"0.5490764",
"0.5488288",
"0.54845494",
"0.5484159",
"0.5483925",
"0.5460487",
"0.5451942",
"0.5449252",
"0.5447301",
"0.54464006",
"0.54425067",
"0.5426843",
"0.54266214",
"0.54262865",
"0.54127973",
"0.54126376",
"0.54018515",
"0.54006344",
"0.53978354",
"0.5396629",
"0.53952223",
"0.53915596"
] | 0.0 | -1 |
/ BWP, 08/26/07: made the method more protective and robust, so that it handles problems with parameters such as "text " (note the space within the String). | public static ResponseType getByName(String name) {
if (name == null || name.length() < 1) {
return ResponseType.INVALID;
}
name = name.trim();
for (int i = 0; i < list.size(); i++) {
ResponseType temp = (ResponseType) list.get(i);
if (temp.getName().equalsIgnoreCase(name)) {
return temp;
}
}
return ResponseType.INVALID;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getString(String text, Object... args){\n return text;\n }",
"String getFromText();",
"protected testString(String text)\r\n\t{\r\n\t\tthis.text = text;\r\n\t}",
"void baInfo(String text);",
"String processing();",
"private String checkNullString(String text) {\n if ( text.contains( \" \" )) {\n return null;\n }\n\n // otherwise, we're totally good\n return text;\n }",
"private NameBuilderString(String text) {\r\n\t\t\tthis.text = Objects.requireNonNull(text);\r\n\t\t}",
"private static String quote(String text) {\r\n String result;\r\n if (null == text) {\r\n result = text;\r\n } else {\r\n result = \"\\\"\" + text + \"\\\"\";\r\n }\r\n return result;\r\n }",
"private String d(String paramString)\r\n/* 561: */ {\r\n/* 562:566 */ while ((paramString != null) && (paramString.endsWith(\"\\n\"))) {\r\n/* 563:567 */ paramString = paramString.substring(0, paramString.length() - 1);\r\n/* 564: */ }\r\n/* 565:569 */ return paramString;\r\n/* 566: */ }",
"public void processInput(String text);",
"String getTextStringValue(Object txt);",
"private String getString(String paramString) {\n }",
"String extractParameters ();",
"private final String m43294b(String str) {\n return str != null ? str : ManagerWebServices.PARAM_TEXT;\n }",
"private static boolean needSingleQuotation(char paramChar)\n/* */ {\n/* 2498 */ return ((paramChar >= '\\t') && (paramChar <= '\\r')) || ((paramChar >= ' ') && (paramChar <= '/')) || ((paramChar >= ':') && (paramChar <= '@')) || ((paramChar >= '[') && (paramChar <= '`')) || ((paramChar >= '{') && (paramChar <= '~'));\n/* */ }",
"void antsInfo(String text);",
"String text();",
"private void processText(){\n if(text == null || text.length() == 0){\n // When posting a tweet, Twitter returns the \"text\" JSON field even if it's not trimmed...\n text = trimmedText;\n }else{\n // Trim the original contents received from Twitter\n text = text.substring(0, text.offsetByCodePoints(0, displayTextRange[1]));\n }\n\n // Transform HTML characters (for some reason Twitter sends those)\n text = org.apache.commons.text.StringEscapeUtils.unescapeHtml4(text);\n }",
"void method(String string);",
"public static String[] getParameters(String s) {\r\n String[] tabParams = s.split(\" \");\r\n int ind = 2;\r\n String arg1 = null;\r\n String arg2 = \"\";\r\n boolean on = false;\r\n if (tabParams.length >= 2) {\r\n arg1=tabParams[1];\r\n while (ind < tabParams.length && !tabParams[ind].equalsIgnoreCase(\"on\")) {\r\n arg1 = arg1 + \" \" + tabParams[ind];\r\n ind++;\r\n }\r\n ind++;\r\n while (ind < tabParams.length) {\r\n arg2 = arg2 + \" \" + tabParams[ind];\r\n ind++;\r\n if (ind < tabParams.length-1) {\r\n arg2+=\" \";\r\n }\r\n ind++;\r\n }\r\n }\r\n if(arg1 != null && !arg2.isEmpty()) {\r\n return new String[]{arg1,arg2};\r\n }else if(arg1 !=null) {\r\n return new String[]{arg1};\r\n }else \r\n return new String[]{};\r\n\r\n }",
"public void ach_doc_type_txt_test () {\n\t\t\n\t}",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"void mo41089d(String str);",
"void mo37759a(String str);",
"String escStr(String pSource) throws Exception;",
"private String parseParameter(String[] args, int parameterIndex) throws ExceptionMalformedInput\n {\n if (parameterIndex >= args.length)\n throw new ExceptionMalformedInput(\"Missing value for the parameter: \" + args[parameterIndex]);\n return args[parameterIndex];\n }",
"protected void checkText(ParserResult result, String text) {\n\t\tif (text == null)\n\t\t\treturn;\n\t\tfor (Map<String, List<Object>> map : result.documents)\n\t\t\tif (checkText(map, text))\n\t\t\t\treturn;\n\t\tif (checkText(result.metas, text))\n\t\t\treturn;\n\t\tlogger.severe(\"Text \" + text + \" not found\");\n\t\tassert (false);\n\t}",
"public abstract String resolveText(String key, Serializable[] arguments);",
"public static String preprocessForFormating(String inputText){\n\t\tif (inputText != null) {\n\t\t\treturn inputText.replace(\"''\", \"'\").replace(\"'\", \"''\");\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public TextShape (String params){\n Enumeration data = new StringTokenizer(params);\n String shapeType = ((String)data.nextElement()).toLowerCase();\n try {\n if (!shapeType.equals(\"textshape\"))\n\tthrow new Exception(\"Invalid shape for TextShape: \"+params);\n x = Integer.parseInt((String)data.nextElement());\n y = Integer.parseInt((String)data.nextElement());\n int red = Integer.parseInt((String)data.nextElement());\n int green = Integer.parseInt((String)data.nextElement());\n int blue = Integer.parseInt((String)data.nextElement());\n col = new Color(red, green, blue);\n int textStart=0; \n for (int i=0; i<6; i++){textStart = 1+params.indexOf(\" \",textStart);}\n str=params.substring(textStart);\n }\n catch (Exception ex){\n System.out.println(\"Invalid parameters for TextShape shape: \"+params);\n System.out.println(ex.getMessage());\n ex.printStackTrace();\n }\n }",
"public TextField(String paramString) throws HeadlessException {\n/* 167 */ this(paramString, (paramString != null) ? paramString.length() : 0);\n/* */ }",
"public static String parseFileArg(String args, JTextArea statusTextArea ) {\n if( args == null || args.length() < 1 ){\n throw new NullPointerException(\"There is no File name\" );\n }\n int start = args.indexOf(\"code=\\\"\") + 6;\n if( start < 6 ){\n start = args.indexOf(\"file=\\\"\") +6; //\"file=\\\" is being used\n //Could have error here because in method\n statusTextArea.append( \"Warning: Using deprecated test tag attribute: file=, replace with code=\" + \"\\n\");\n }\n String fileArg = args.substring(start);\n\n int end = fileArg.indexOf(\"\\\"\");\n\n fileArg = fileArg.substring(0, end);\n\n return fileArg;\n }",
"void mo88522a(String str);",
"protected void importText(String text, Epml epml) {\n\t}",
"Text createText();",
"@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}",
"void mo3768a(String str);",
"void gaInfo(String text);",
"void set(String text);",
"private static void m9058c(String str) {\n StackTraceElement stackTraceElement = Thread.currentThread().getStackTrace()[3];\n String className = stackTraceElement.getClassName();\n String methodName = stackTraceElement.getMethodName();\n throw ((IllegalArgumentException) m9050a(new IllegalArgumentException(\"Parameter specified as non-null is null: method \" + className + \".\" + methodName + \", parameter \" + str)));\n }",
"private void saveString(String paramString1, String paramString2) {\n }",
"private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }",
"void mo1932a(String str);",
"public TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}",
"public void testIsTextValid() {\n String text = null;\n int slotId = 0;\n int feature = 0;\n\n // 01--empty\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 02--valid\n text = \"nickmmmm\";\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 03--too long\n text = \"abcdefghijklmnopqrstu\";\n assertFalse(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 04\n text = \"端午春asdfghjklop\";\n assertFalse(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n // 05\n text = \"端午春as\";\n assertTrue(mOpContactAccountExtension.isTextValid(text, slotId, feature, Utils.COMMD_FOR_SNE));\n }",
"@Override\n public void handleString(String s) {\n\n }",
"public static void text(String arg, String []info)throws IOException, ParserException{\n if(arg.isEmpty() ){\n System.err.println(\"No file name found\");\n System.exit(1);\n }\n\n TextParser tp = new TextParser(arg, info);\n AbstractPhoneBill ab;\n\n ab = tp.parse();\n\n\n TextDumper td = new TextDumper(arg);\n td.dump(ab);\n\n\n System.exit(0);\n\n\n }",
"void mo9697a(String str);",
"StringContent createStringContent();",
"void mo12635a(String str);",
"private Templated parseFromFormat(String string, Text text) {\n int br = 0;\n int start = 0; // basically pattern matching but without regex cuz regex is slow\n List<String> remainingSparse = new ArrayList<>();\n List<String> orderedArgs = new ArrayList<>();\n // same args map as in classic, placeholder id -> it's args\n Map<String, PlaceholderArgs> args = new HashMap<>();\n int last = 0;\n char[] starr = string.toCharArray();\n boolean quoted = false; // pass over quotes and single quotes. '\"' ignores the \", and vice versa.\n boolean singlequoted = false;\n for (int i = 0; i < starr.length; i++) {\n char c = starr[i];\n if (c == '\\\\') {\n i++;\n continue;\n }\n if (c == '\\\"' && !singlequoted) {\n quoted = !quoted;\n continue;\n }\n if (c == '\\'' && !quoted) {\n singlequoted = !singlequoted;\n continue;\n }\n if (quoted || singlequoted) {\n continue; // quoted text ignored, this suck\n }\n // We don't parse JSON Arrays in this house -> placeholders are base json objects only.\n if (c == '{') { // starting new json bracket\n if (br == 0) {\n start = i;\n }\n br++;\n }\n if (c == '}') {\n br--;\n if (br == 0) { // ayy we found a complete placeholder json string.\n String json = string.substring(start, i + 1); // get that string\n Tuple<String, PlaceholderArgs> parsed = parseJSON(json, args); // parse that string\n if (parsed == null) { // ops failed give up\n continue;\n } // get in-between text for last placeholder and this one, don't omit anything\n remainingSparse.add(string.substring(last, start));\n last = i + 1; // shift frame of lsat\n remainingSparse.add(null); // add null to take 'slot' of placeholder, for iteration's sake.\n args.put(parsed.getFirst(), parsed.getSecond()); // put args yay\n orderedArgs.add(parsed.getFirst()); // put ordered args? i suppose this is nice\n }\n }\n }\n remainingSparse.add(string.substring(last)); // add last part of string (could be empty)\n TextTemplate t = TextTemplate.of(); // build template\n for (String s : remainingSparse) {\n if (s == null) { // if placeholder\n String arg = orderedArgs.remove(0); // remove next arg -> that's why this is nice (no hashmap)\n t = t.concat(TextTemplate.of(buildArg(arg, args.get(arg)))); // -> new arg in template\n } else {\n t = t.concat(TextTemplate.of(s)); // just string thanks :)\n }\n }\n return new Templated(t, args, text); // all done\n }",
"@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 }",
"private static List<TokenInfo> parsePara(String args) {\n\t\tList<TokenInfo> tokens = new ArrayList<TokenInfo>();\n\t\tStringBuffer token = new StringBuffer();\n\t\tint status = 0;\n\t\tfor_bp: for (int i = 0; i < args.length(); i++) {\n\t\t\tchar c = args.charAt(i);\n\t\t\tswitch (c) {\n\t\t\tcase ' ': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\ttokenIn(tokens, token, status);\n\t\t\t\t\tstatus = 0;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '-': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\tstatus = 1;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'a':\n\t\t\tcase 'b':\n\t\t\tcase 'c':\n\t\t\tcase 'd':\n\t\t\tcase 'e':\n\t\t\tcase 'f':\n\t\t\tcase 'g':\n\t\t\tcase 'h':\n\t\t\tcase 'i':\n\t\t\tcase 'j':\n\t\t\tcase 'k':\n\t\t\tcase 'l':\n\t\t\tcase 'm':\n\t\t\tcase 'n':\n\t\t\tcase 'o':\n\t\t\tcase 'p':\n\t\t\tcase 'q':\n\t\t\tcase 'r':\n\t\t\tcase 's':\n\t\t\tcase 't':\n\t\t\tcase 'u':\n\t\t\tcase 'v':\n\t\t\tcase 'w':\n\t\t\tcase 'x':\n\t\t\tcase 'y':\n\t\t\tcase 'z':\n\t\t\tcase 'A':\n\t\t\tcase 'B':\n\t\t\tcase 'C':\n\t\t\tcase 'D':\n\t\t\tcase 'E':\n\t\t\tcase 'F':\n\t\t\tcase 'G':\n\t\t\tcase 'H':\n\t\t\tcase 'I':\n\t\t\tcase 'J':\n\t\t\tcase 'K':\n\t\t\tcase 'L':\n\t\t\tcase 'M':\n\t\t\tcase 'N':\n\t\t\tcase 'O':\n\t\t\tcase 'P':\n\t\t\tcase 'Q':\n\t\t\tcase 'R':\n\t\t\tcase 'S':\n\t\t\tcase 'T':\n\t\t\tcase 'U':\n\t\t\tcase 'V':\n\t\t\tcase 'W':\n\t\t\tcase 'X':\n\t\t\tcase 'Y':\n\t\t\tcase 'Z': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 1:\n\t\t\t\tcase 2:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 0:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase '0':\n\t\t\tcase '1':\n\t\t\tcase '2':\n\t\t\tcase '3':\n\t\t\tcase '4':\n\t\t\tcase '5':\n\t\t\tcase '6':\n\t\t\tcase '7':\n\t\t\tcase '8':\n\t\t\tcase '9': {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\ttoken.append('-');\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault: {\n\t\t\t\tswitch (status) {\n\t\t\t\tcase 0:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tstatus = 3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\tcase 3:\n\t\t\t\t\ttoken.append(c);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tstatus = -1;\n\t\t\t\t\tbreak for_bp;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttokenIn(tokens, token, status);\n\n\t\treturn tokens;\n\t}",
"static void checkString(final String param, final String paramName) {\r\n Helper.checkNull(param, paramName);\r\n\r\n if (param.trim().length() == 0) {\r\n throw new IllegalArgumentException(\"The argument '\" + paramName\r\n + \"' should not be empty string.\");\r\n }\r\n }",
"void mo1791a(String str);",
"private void checkTextAnnotation(MGraph g, UriRef textAnnotation, String content) {\n Iterator<Triple> selectedTextIterator = g.filter(textAnnotation,\n Properties.ENHANCER_SELECTED_TEXT, null);\n // check if the selected text is added\n assertTrue(selectedTextIterator.hasNext());\n // test if the selected text is part of the TEXT_TO_TEST\n Resource object = selectedTextIterator.next().getObject();\n assertTrue(object instanceof Literal);\n Literal selectedText = (Literal)object;\n object = null;\n assertTrue(content.indexOf(selectedText.getLexicalForm()) >= 0);\n // test if context is added\n //context not present for Zemanta\n// Iterator<Triple> selectionContextIterator = g.filter(textAnnotation,\n// Properties.ENHANCER_SELECTION_CONTEXT, null);\n// assertTrue(selectionContextIterator.hasNext());\n// // test if the selected text is part of the TEXT_TO_TEST\n// object = selectionContextIterator.next().getObject();\n// assertTrue(object instanceof Literal);\n// assertTrue(content.indexOf(((Literal)object).getLexicalForm()) >= 0);\n// object = null;\n //test start/end if present\n Iterator<Triple> startPosIterator = g.filter(textAnnotation,\n ENHANCER_START, null);\n Iterator<Triple> endPosIterator = g.filter(textAnnotation,\n ENHANCER_END, null);\n //start end is optional, but if start is present, that also end needs to be set\n if(startPosIterator.hasNext()){\n Resource resource = startPosIterator.next().getObject();\n //only a single start position is supported\n assertTrue(!startPosIterator.hasNext());\n assertTrue(resource instanceof TypedLiteral);\n TypedLiteral startPosLiteral = (TypedLiteral) resource;\n resource = null;\n int start = LiteralFactory.getInstance().createObject(Integer.class, startPosLiteral);\n startPosLiteral = null;\n //now get the end\n //end must be defined if start is present\n assertTrue(endPosIterator.hasNext());\n resource = endPosIterator.next().getObject();\n //only a single end position is supported\n assertTrue(!endPosIterator.hasNext());\n assertTrue(resource instanceof TypedLiteral);\n TypedLiteral endPosLiteral = (TypedLiteral) resource;\n resource = null;\n int end = LiteralFactory.getInstance().createObject(Integer.class, endPosLiteral);\n endPosLiteral = null;\n //check for equality of the selected text and the text on the selected position in the content\n //System.out.println(\"TA [\"+start+\"|\"+end+\"]\"+selectedText.getLexicalForm()+\"<->\"+content.substring(start,end));\n assertTrue(content.substring(start, end).equals(selectedText.getLexicalForm()));\n } else {\n //if no start position is present, there must also be no end position defined\n assertTrue(!endPosIterator.hasNext());\n }\n }",
"static Source newTextSource(String text) {\n return newStringSource(text, \"<input>\");\n }",
"abstract String mo1747a(String str);",
"void mo1342w(String str, String str2);",
"private String extractQuery(String str) throws UnsupportedEncodingException {\n\t\tif (!str.isEmpty()) {\n\t\t\tstr = str.trim().replaceAll(\"[^a-zA-Z0-9\\\\s]\", \"\");\n\t\t\tstr = str.replaceAll(\"[\\\\p{Punct}]+\", \"\");\n\t\t\tstr = str.trim().replaceAll(\"[\\\\s]+\", \" \");\n\t\t}\n\n\t\treturn str;\n\t}",
"void mo85415a(String str);",
"void printTextToAnotherMedium(String content){\n }",
"public static String b(String paramString)\r\n/* 690: */ {\r\n/* 691:682 */ String str = \"\";\r\n/* 692:683 */ int i1 = -1;\r\n/* 693:684 */ int i2 = paramString.length();\r\n/* 694:686 */ while ((i1 = paramString.indexOf('§', i1 + 1)) != -1) {\r\n/* 695:687 */ if (i1 < i2 - 1)\r\n/* 696: */ {\r\n/* 697:688 */ char c1 = paramString.charAt(i1 + 1);\r\n/* 698:690 */ if (c(c1)) {\r\n/* 699:691 */ str = \"§\" + c1;\r\n/* 700:692 */ } else if (d(c1)) {\r\n/* 701:693 */ str = str + \"§\" + c1;\r\n/* 702: */ }\r\n/* 703: */ }\r\n/* 704: */ }\r\n/* 705:698 */ return str;\r\n/* 706: */ }",
"boolean isText(Object object);",
"private static String escape(String arg) {\n int max;\n StringBuilder result;\n char c;\n\n max = arg.length();\n result = new StringBuilder(max);\n for (int i = 0; i < max; i++) {\n c = arg.charAt(i);\n switch (c) {\n case '\\'':\n case '\"':\n case ' ':\n case '\\t':\n case '&':\n case '|':\n case '(':\n case ')':\n case '\\n':\n result.append('\\\\');\n result.append(c);\n break;\n default:\n result.append(c);\n break;\n }\n }\n return result.toString();\n }",
"public abstract String text();",
"public abstract String text();",
"@Test\n\tpublic void testTextFromXml()\n\t{\n\t\tString xml = \"<text val=\\\"Steve Unger Smells\\\" />\";\t\t\n\t\tDocument doc = XMLUtil.parse(xml);\n\t\tElement element = doc.getDocumentElement();\n\t\tText text = this.parser.fromXML(element);\n\t\t\n\t\tassertEquals(\"Steve Unger Smells\",text.getText());\n\t}",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"String getText();",
"public String getPlainText();",
"void mo1935c(String str);",
"public abstract void mo20160a(String str);",
"public void parseArguments(String queryString, String contentEncoding) {\n String[] args = JOrphanUtils.split(queryString, QRY_SEP);\n final boolean isDebug = log.isDebugEnabled();\n for (int i = 0; i < args.length; i++) {\n if (isDebug) {\n log.debug(\"Arg: \" + args[i]);\n }\n // need to handle four cases:\n // - string contains name=value\n // - string contains name=\n // - string contains name\n // - empty string\n \n String metaData; // records the existance of an equal sign\n String name;\n String value;\n int length = args[i].length();\n int endOfNameIndex = args[i].indexOf(ARG_VAL_SEP);\n if (endOfNameIndex != -1) {// is there a separator?\n // case of name=value, name=\n metaData = ARG_VAL_SEP;\n name = args[i].substring(0, endOfNameIndex);\n value = args[i].substring(endOfNameIndex + 1, length);\n } else {\n metaData = \"\";\n name=args[i];\n value=\"\";\n }\n if (name.length() > 0) {\n if (isDebug) {\n log.debug(\"Name: \" + name+ \" Value: \" + value+ \" Metadata: \" + metaData);\n }\n // If we know the encoding, we can decode the argument value,\n // to make it easier to read for the user\n if(!StringUtils.isEmpty(contentEncoding)) {\n addEncodedArgument(name, value, metaData, contentEncoding);\n }\n else {\n // If we do not know the encoding, we just use the encoded value\n // The browser has already done the encoding, so save the values as is\n addNonEncodedArgument(name, value, metaData);\n }\n }\n }\n }",
"public abstract String mo24851a(String str);",
"private static String adqlCharLiteral( String txt ) {\n return \"'\" + txt.replaceAll( \"'\", \"''\" ) + \"'\";\n }",
"void mo5871a(String str);",
"String process(String data) throws LocalizedSignatureException;",
"public String verifyText(String object, String data) {\n\t\tlogger.debug(\"Verifying the text\");\n\t\ttry {\n\t\t\t//System.out.println(\"inside verifyText\");\n\t\t\twaitForPageLoad(driver);\n\t\t\tWebElement ele = wait.until(explicitWaitForElement((By.xpath(OR.getProperty(object)))));\n\t\t\tString actual = ele.getText();\n\t\t\tString expected = data.trim();\n\n\t\t\tlogger.debug(\"data\" + data);\n\t\t\tlogger.debug(\"act\" + actual);\n\t\t\tif (actual.trim().equals(expected))\n\t\t\t\treturn Constants.KEYWORD_PASS;\n\t\t\telse\n\t\t\t\treturn Constants.KEYWORD_FAIL + \" -- text not verified Actual text = \" + actual + \" -- Expected Text = \" + expected + \" \";\n\t\t} \n\t\tcatch(TimeoutException ex)\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n\t\tcatch (Exception e) {\n\t\n\t\t\treturn Constants.KEYWORD_FAIL + \" Object not found \" + e.getMessage();\n\t\t}\n\t}",
"@Override\n\t\tprotected String[] handleIrregulars(String s) {\n\t\t\treturn null;\n\t\t}",
"@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }",
"public T caseText(Text object)\n {\n return null;\n }",
"private String[] extractTextAndPerformParameterParsing(String command, ArrayList<Parameter> parameters,\n\t\t\tint indexOfFirstSpace, int indexOfFirstInvertedSlash) {\n\t\tString splitedText[] = null;\n\t\tString text;\n\t\tif (indexOfFirstSpace < command.length()) {\n\t\t\tif (isValidCommandWithParameter(indexOfFirstSpace, indexOfFirstInvertedSlash)) {\n\t\t\t\ttext = command.substring(indexOfFirstSpace + 1, indexOfFirstInvertedSlash);\n\n\t\t\t\tString parameterStr = command.substring(indexOfFirstInvertedSlash, command.length());\n\t\t\t\tString[] parameterArr = parameterStr.split(\" \");\n\t\t\t\textractParameter(parameters, parameterArr);\n\t\t\t} else {\n\n\t\t\t\ttext = command.substring(indexOfFirstSpace + 1, command.length());\n\t\t\t}\n\t\t\t// For multiple add and done\n\t\t\tsplitedText = text.split(VERTICAL_DASH);\n\t\t}\n\t\treturn splitedText;\n\t}",
"public static String parseRequest(String message){\n\t\tchar[] b = message.toCharArray();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tif('*'==b[0]){\n\t\t\tString[] list = message.split(\"<br>\");\n\t\t\t//int len = Integer.valueOf(String.valueOf(b[1]));//numbers of arguments\n\t\t\t//String[] args = new String[len];\n\t\t\tfor(int i=2;i<list.length;){\n\t\t\t\tsb.append(list[i]).append(\" \");\n\t\t\t\ti = i+2;\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"格式错误\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public abstract void fromString(String s, String context);",
"private String proceesTweetText(String tweetText) {\n // remove new lines\n tweetText = tweetText.replace(\"\\n\",\"\").replace(\"\\r\",\"\");\n // remove urls \"https://...\":\n tweetText = tweetText.replaceAll(\"https?://\\\\S+\\\\s?\", \"\");\n // remove users \"@...\":\n tweetText = tweetText.replaceAll(\"@\\\\S+\\\\s?\", \"\");\n return tweetText;\n }",
"@Override\n\tpublic void characters(String text) {\n\t\t\n\t}",
"public abstract void mo70704a(String str);",
"@Override\n public abstract String asText();"
] | [
"0.66332304",
"0.61141294",
"0.61021185",
"0.60632557",
"0.5999283",
"0.5864458",
"0.57753515",
"0.5753534",
"0.57424045",
"0.56064093",
"0.56037736",
"0.55905986",
"0.5588847",
"0.5522538",
"0.5508843",
"0.54926544",
"0.54668677",
"0.5443419",
"0.5408071",
"0.54008394",
"0.53931504",
"0.53698355",
"0.53698355",
"0.53698355",
"0.53698355",
"0.53698355",
"0.53698355",
"0.53698355",
"0.53698355",
"0.53677636",
"0.53568906",
"0.5320496",
"0.53148365",
"0.5307871",
"0.5305051",
"0.52988565",
"0.5256959",
"0.5254896",
"0.5233529",
"0.5213548",
"0.52087533",
"0.5207012",
"0.5195038",
"0.5191292",
"0.51601285",
"0.5157188",
"0.5154558",
"0.5150449",
"0.51493144",
"0.51463294",
"0.5146252",
"0.51433706",
"0.5142757",
"0.5140635",
"0.5129872",
"0.5127361",
"0.5113454",
"0.5103212",
"0.5094129",
"0.509186",
"0.5089393",
"0.50732714",
"0.50665414",
"0.50654095",
"0.5063374",
"0.50632256",
"0.5055898",
"0.5055221",
"0.50538254",
"0.50505924",
"0.5048544",
"0.5048104",
"0.5047997",
"0.5047997",
"0.5047966",
"0.5046977",
"0.5046977",
"0.5046977",
"0.5046977",
"0.5046977",
"0.5046977",
"0.5046977",
"0.5041913",
"0.50259924",
"0.5017137",
"0.5015939",
"0.50073695",
"0.5002495",
"0.4996861",
"0.4996467",
"0.49949664",
"0.4993787",
"0.4991291",
"0.4986944",
"0.49831626",
"0.49818158",
"0.49708155",
"0.49630693",
"0.4958651",
"0.49529478",
"0.49482358"
] | 0.0 | -1 |
TODO check if array not full | public void push(T element){
array[noOfElements] = element;
noOfElements ++;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkIfArrayFull() {\n\n if(this.arrayList.length == this.elementsInArray) {\n size *= 2;\n arrayList = Arrays.copyOf(arrayList, size);\n }\n }",
"private boolean checkFull() {\n\t\treturn this.array.length - 1 == this.lastNotNull();\n\t}",
"boolean hasArray();",
"public boolean hasArray()\r\n/* 122: */ {\r\n/* 123:151 */ return true;\r\n/* 124: */ }",
"private void ensureCap(){\n T[] temp = (T[])new Object[arr.length * 2];\n for(int i = 0; i < numItems; i++){\n temp[i] = this.arr[i];\n }\n this.arr = temp;\n }",
"private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}",
"@Override\r\n\tpublic void visit(Array array) {\n\r\n\t}",
"@Override\n public int size() {\n return array.length;\n }",
"public static boolean isArray_estLength() {\n return false;\n }",
"private Number[] arrayFinalFormation(Number[] array, int countOfElements) {\n Number[] completedArrayVersion = new Number[countOfElements];\n for (int index = 0; index < completedArrayVersion.length; index++) {\n completedArrayVersion[index] = array[index];\n }\n return completedArrayVersion;\n }",
"protected static boolean isBackedBySimpleArray(Buffer b) {\n return b.hasArray() && (b.arrayOffset() == 0);\n }",
"public static boolean isArray_cost() {\n return false;\n }",
"long arrayLength();",
"public static void arrayDemo() {\n\t}",
"int size() {\n\t\treturn array.length;\n\t}",
"public void testCheckArray() {\n Object[] objects = new Object[] {\"one\"};\n Util.checkArray(objects, \"test\");\n }",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"public static boolean isArray_counter() {\n return false;\n }",
"public boolean isFull() {\n\t\treturn numElements==data.length;\n\t}",
"@Override\r\n\tpublic void visit(ArrayExpression arrayExpression) {\n\r\n\t}",
"@Override\n public synchronized int getSize() {\n return mArray.size();\n }",
"@Test\r\n\tpublic void getRelatedFieldsArraySizeOne() {\r\n\t\ttestObj.addNativeField(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"relatedFields size should be 1\", 1, testObj.getRelatedFieldsArray().length);\r\n\t}",
"@Override // java.util.Collection, java.util.Set\r\n public <T> T[] toArray(T[] array) {\r\n if (array.length < this.f513d) {\r\n array = (Object[]) Array.newInstance(array.getClass().getComponentType(), this.f513d);\r\n }\r\n System.arraycopy(this.f512c, 0, array, 0, this.f513d);\r\n int length = array.length;\r\n int i2 = this.f513d;\r\n if (length > i2) {\r\n array[i2] = null;\r\n }\r\n return array;\r\n }",
"static long[] riddle(long[] arr) {\n // complete this function\n return arr;\n }",
"private boolean isFull() {\n\t\treturn (size == bq.length);\n\t}",
"int sizeOfRelatedArray();",
"@SuppressWarnings(\"unchecked\") // this will stop Java complaining about the cast\n private void ensureCapacity() {\n if (count == data.length) { //if count is equal to the length of data a new array is made doubling the initial size, it then makes the data collection == to the temp collection\n E[] temp = (E[]) new String[data.length * 2]; //effectivly increasing the size of the array\n for (int i = 0; i < data.length; i++) {\n temp[i] = data[i];\n }\n data = temp;\n }\n }",
"protected boolean arrayIsEmpty(Object arr[]) {\n boolean empty = true;\n \n for (Object obj : arr) {\n \tif (obj != null) {\n \t\tempty = false;\n \t\tbreak;\n \t}\n }\n \treturn empty;\n }",
"private Number[] arrayExtension(Number[] array) {\n int extendedLength = (int) (array.length * 1.3 + 2);\n Number[] extendedArray = new Number[extendedLength];\n for (int index = 0; index < array.length; index++) {\n extendedArray[index] = array[index];\n }\n return extendedArray;\n }",
"@Override\n public boolean isFull(){\n return (count == size);\n \n }",
"public abstract void startArray();",
"private Obj checkForArray(ArrayElem arrayElem, Obj obj) {\n \tif (obj == Tab.noObj) {\r\n\t\t\treport_error(\"Greska na liniji \" + arrayElem.getLine()+ \" : ime \"+obj.getName()+\" nije deklarisano! \", null);\r\n \t}\r\n \t\r\n \tif (obj.getType().getKind() == Struct.Array) {\r\n \t\tString name = obj.getName();\r\n \t\tint adr = obj.getAdr();\r\n \t\tint lev = obj.getLevel();\r\n \t\tobj = new Obj(Obj.Elem,name,obj.getType().getElemType());\r\n \t\tobj.setAdr(adr); // sta ce mi ovo?\r\n \t\tobj.setLevel(lev); // sta ce mi ovo?\r\n \t\t\r\n \t\t//report_info(\"Detektovan pristup elementu niza: \" + obj.getName() + \" na liniji \" + arrayElem.getLine(), arrayElem);\r\n \t\t\r\n \t\treturn obj;\r\n \t}else if (obj.getType().getKind() != Struct.Array ) {\r\n \t\treport_error(\"Greska na liniji \" + arrayElem.getLine()+ \" navedeno ime nije definisamo kao ime niza\", null);\r\n \t}\r\n \t\r\n \treturn Tab.noObj;\r\n }",
"@Override\n public boolean isArray() {\n return false;\n }",
"@Override\r\n public boolean isArray() throws Exception\r\n {\n return false;\r\n }",
"public static boolean isArray_min() {\n return false;\n }",
"boolean isFull()\n\t{\n\t\treturn rear==size-1;\n\t}",
"private byte[] increment(byte[] array) {\n for (int i = array.length - 1; i >= 0; --i) {\n byte elem = array[i];\n ++elem;\n array[i] = elem;\n if (elem != 0) { // Did not overflow: 0xFF -> 0x00\n return array;\n }\n }\n return null;\n }",
"public boolean isArrOne() {\n\t\treturn isArrOne;\n\t}",
"public static boolean isArray_quality() {\n return false;\n }",
"ArrayView(final E[] array) {\n\t\tthis.array = Objects.requireNonNull(array);\n\t}",
"@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}",
"@Test\n public void testToArray_0args() {\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 Object[] result = instance.toArray();\n assertArrayEquals(expResult, result);\n\n }",
"public static boolean isArray_infos_size_data() {\n return false;\n }",
"public static boolean isArray_hop() {\n return false;\n }",
"public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no lastpos yet\n \t_size = 0;\t\n }",
"void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }",
"public boolean isFull()\n { \n return count == elements.length; \n }",
"int getArrayLength();",
"int getArrayLength();",
"public static boolean isArray_length() {\n return false;\n }",
"int sizeOfPerformerArray();",
"public static boolean isArray_sum_e() {\n return false;\n }",
"public int getSize() {\r\n return array.length;\r\n }",
"int sizeOfNoPassingZoneArray();",
"private boolean adicionaArrayAgencias(Agencia ag) {\n if (this.agencias.length <= numAgenciasAbertas) {\n System.out.println(\"Banco ERROR: Nao foi possivel criar uma nova agencia\");\n return false;\n } else {\n System.out.println(\"Banco DEBUG: Agencia adicionada ao array \" + numAgenciasAbertas);\n this.agencias[numAgenciasAbertas] = ag;\n numAgenciasAbertas++;\n return true;\n }\n }",
"@Test\n public void testSingleNestArray()\n {\n Object[] array = new Object[]{1, 2, new Object[]{3}, 4};\n testList = ArrayFlattener.flattenArray(array);\n assertArrayEquals(testList.toArray(new Integer[testList.size()]), flat);\n }",
"public static UnaryExpression arrayLength(Expression array) { throw Extensions.todo(); }",
"protected int getArraySize(){\r\n\t \treturn numElems;\r\n\t \t//return arraySize;\r\n\t }",
"boolean isEmpty(int[] array) {\n return array.length == 0;\n }",
"public static boolean isArray_count() {\n return false;\n }",
"@Test\n public void testEmptyExcerpt_readArray() throws IOException {\n checkReadArrayEmpty(excerpt(makeEmpty(), 0, 0));\n checkReadArrayEmpty(excerpt(makeDigits(), 0, 0));\n\n // start == underlying length.\n checkReadArrayEmpty(excerpt(makeEmpty(), 0, 6));\n checkReadArrayEmpty(excerpt(makeDigits(), 10, 6));\n\n // start > underlying length.\n checkReadArrayEmpty(excerpt(makeEmpty(), 1, 0));\n checkReadArrayEmpty(excerpt(makeDigits(), 10, 0));\n }",
"@SuppressWarnings(\"unchecked\")\n private void upSize()\n {\n T[] newArray = (T[]) new Object [theArray.length * 2];\n for (int i =0; i < theArray.length; i++){\n newArray[i] = theArray[i];\n }\n theArray = newArray;\n }",
"int sizeOfDescriptionArray();",
"boolean isFull() {return pointer==size;}",
"private void reallocateIfOverfilled() {\r\n\t\tif ((size * 1.0 / table.length) > MAX_FULLNESS_PERCENTAGE) {\r\n\t\t\treallocateArray();\r\n\t\t}\r\n\t}",
"@Test\r\n\tpublic void getRelatedTablesArraySizeOne() {\r\n\t\ttestObj.addRelatedTable(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"relatedTables size should be 1\", 1, testObj.getRelatedTablesArray().length);\r\n\t}",
"public abstract void endArray();",
"private void ensureCapacity()\n\t{\n\t\tif (elements.length == size)\n\t\t\telements = Arrays.copyOf(elements, 2 * size + 1);\n\t}",
"public void aendereWertFunktioniert(int[] arr) {\n\t\tif (arr.length > 0)\n\t\t\tarr[0] = 0;\n\t}",
"public abstract void notifyArrayEnd();",
"public void fixArray(){\n if (size == 0 || queue.length < 1){\n return;\n }\n E[] newer = ((E[])new Comparable[queue.length]);\n\n int x = 0;\n for(Object cur : queue){\n if (cur != null){\n newer[x++] = (E)cur;\n }\n }\n\n this.queue = newer;\n this.size = x;\n\n }",
"protected Object[] getArray(){\r\n\t \treturn array;\r\n\t }",
"void mo12207a(int[] iArr);",
"@Test\r\n\tpublic void testToArrayType() {\r\n\t\tMunitions[] sample1 = new Munitions[5];\r\n\t\tsample1 = list.toArray(sample1);\r\n\t\tAssert.assertEquals(15, sample1.length);\r\n\t\tfor (int i = 0; i < sample1.length; i++) {\r\n\t\t\tAssert.assertNotNull(sample1[i]);\r\n\t\t}\r\n\t\tMunitions[] sample2 = new Munitions[20];\r\n\t\tsample2 = list.toArray(sample2);\r\n\t\tAssert.assertEquals(20, sample2.length);\r\n\t\tfor (int i = 0; i < sample2.length - list.size(); i++) {\r\n\t\t\tAssert.assertNotNull(sample1[i]);\r\n\t\t}\r\n\t}",
"public boolean isEmpty( Object[] array ){\n if( array == null || array.length == 0 ){\n return true;\n }\n return false;\n }",
"public static boolean isArray_dest() {\n return false;\n }",
"private boolean ifFull() {\n return items.length == size;\n }",
"@Override\n\t\tpublic <T> T[] toArray(T[] a) {\n\t\t\treturn null;\n\t\t}",
"private void addSizeArray() {\n int doubleSize = this.container.length * 2;\n Object[] newArray = new Object[doubleSize];\n System.arraycopy(this.container, 0, newArray, 0, this.container.length);\n this.container = new Object[doubleSize];\n System.arraycopy(newArray, 0, this.container, 0, doubleSize);\n }",
"private void grow() {\n T[] arr_temp = (T[]) new Object[arr.length*2];\n for (int i=0; i<arr.length; i++){\n arr_temp[i] = arr[i];\n }\n arr = arr_temp;\n }",
"public boolean isArray(){\n\t\treturn false;\n\t}",
"public boolean isFull(){\n return size == arrayQueue.length;\n }",
"public int size() {\n\t\treturn array.length();\n\t}",
"@Override\n public String toString() {\n return \"array read on \" + System.identityHashCode(array) + \"; index=\" + index + \"; stream=\" + getStream().getStreamNumber();\n }",
"public void compact()\n {\n array = toArray();\n }",
"int sizeOfGuideArray();",
"private Object copyArrayGrow1(Object array, Class newArrayComponentType) {\n if (array != null) {\n int arrayLength = Array.getLength(array);\n Object newArray = Array.newInstance(array.getClass().getComponentType(), arrayLength + 1);\n System.arraycopy(array, 0, newArray, 0, arrayLength);\n return newArray;\n } else {\n return Array.newInstance(newArrayComponentType, 1);\n }\n }",
"public void setArr(int[] arr){ this.arr = arr; }",
"public boolean is_full()\n\t {\n\t if (num_elements == capacity)\n\t return true;\n\t return false;\n\t }",
"private boolean isArray() {\n return this.stack.peek() instanceof JsonArray;\n }",
"@Test\n public void testReflectionArrayCycle() {\n final Object[] objects = new Object[1];\n objects[0] = objects;\n assertEquals(\n this.toBaseString(objects) + \"[{\" + this.toBaseString(objects) + \"}]\",\n ToStringBuilder.reflectionToString(objects));\n }",
"int sizeOfBridgeElementArray();",
"public int length(){ return this.isUpgraded ? this.linkArray.length() : this.nativeArray.size(); }",
"synchronized protected void enlargeArrays() {\n \t\tenlargeArrays(5);\n \t}",
"@SuppressWarnings(\"resource\")\n public static void doubleCapacity(String[] array){\n int wordCount = 0;\n int arrayGrowth = 500;\n array = new String[10];\n String strLine = null;\n while (strLine != null) {\n // Store the content into an array\n Scanner s = new Scanner(strLine);\n while (s.hasNext()) {\n if (array.length == wordCount) {\n // expand list\n array = Arrays.copyOf(array, array.length + arrayGrowth);\n }\n array[wordCount] = s.next();\n wordCount++;\n } \n }\n }",
"public boolean isArrayType()\n/* */ {\n/* 138 */ return true;\n/* */ }",
"public void testCrearArrayEnForNoEspecificado(int size) {\n\t\tfor (int i = 1; i <= size; i++) { \n\t\t\tint[] array = new int[i]; //tempLocal = size : size >=1\t \n\t\t}\n\t}",
"@Test\n public void testFlatArray()\n {\n Object[] array = new Object[]{1, 2, 3, 4};\n testList = ArrayFlattener.flattenArray(array);\n assertArrayEquals(testList.toArray(new Integer[testList.size()]), flat);\n }",
"int sizeOfTaskAbstractArray();",
"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 int arraySize();"
] | [
"0.6938602",
"0.6637463",
"0.6287398",
"0.62864196",
"0.6237319",
"0.62321585",
"0.62071645",
"0.6205745",
"0.6145746",
"0.6052841",
"0.6032794",
"0.6017703",
"0.60161674",
"0.5933468",
"0.59325993",
"0.5922315",
"0.5918535",
"0.58802164",
"0.58763653",
"0.5871758",
"0.58662975",
"0.5857972",
"0.5857045",
"0.5854107",
"0.5840121",
"0.5838398",
"0.5837258",
"0.58332723",
"0.5828745",
"0.5786385",
"0.57615626",
"0.57577497",
"0.5750946",
"0.574756",
"0.5744965",
"0.57421947",
"0.5735545",
"0.5731038",
"0.57288635",
"0.57266045",
"0.57094234",
"0.56948435",
"0.568392",
"0.56809694",
"0.566888",
"0.56678843",
"0.56534535",
"0.5643246",
"0.5643246",
"0.5642974",
"0.5640553",
"0.5637988",
"0.5636933",
"0.5631443",
"0.56284887",
"0.561711",
"0.56055635",
"0.55930066",
"0.55867666",
"0.5572519",
"0.5570769",
"0.55692416",
"0.55682176",
"0.55625194",
"0.5560599",
"0.55605",
"0.5558128",
"0.55566394",
"0.555603",
"0.5555429",
"0.55513924",
"0.55458474",
"0.55445784",
"0.5543395",
"0.55377",
"0.5536847",
"0.5518195",
"0.551278",
"0.55092454",
"0.55074817",
"0.55072504",
"0.5500318",
"0.5498519",
"0.5498284",
"0.5496434",
"0.5494761",
"0.549474",
"0.54943573",
"0.54926574",
"0.548424",
"0.54830647",
"0.5481985",
"0.54804116",
"0.5480383",
"0.54783404",
"0.5472268",
"0.54662377",
"0.5457465",
"0.54507685",
"0.54438126",
"0.54430234"
] | 0.0 | -1 |
Function to check if array has 2 elements whose sum is equal to the given value | static boolean hasArrayTwoCandidates(int A[],
int arr_size, int sum)
{
int l, r;
/* Sort the elements */
Arrays.sort(A);
/* Now look for the two candidates
in the sorted array*/
l = 0;
r = arr_size-1;
while (l < r)
{
if(A[l] + A[r] == sum)
return true;
else if(A[l] + A[r] < sum)
l++;
else // A[i] + A[j] > sum
r--;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean tripletWithSumExists(int[] arr, int expectedSum){\n Set<Integer> observedElems = new HashSet<>();\n int size = arr.length;\n\n observedElems.add(arr[0]);\n\n for(int i=1; i<size-1; ++i){\n for(int j=i+1; j<size; ++j){\n int complement = expectedSum - (arr[i] + arr[j]);\n if(observedElems.contains(complement))\n return true;\n }\n observedElems.add(arr[i]);\n }\n return false;\n }",
"public static boolean check(int[][] arr, int n, int value){\n if(value >= -arrsum && value <= arrsum){\r\n return arr[n][arrsum + value] == 1 || arr[n][arrsum + value] == 2 || arr[n][arrsum + value] == -1;\r\n }\r\n else{\r\n return false;\r\n }\r\n }",
"boolean SubArraySum( int arr[] , int n , int sum ){\n HashSet<Integer> s = new HashSet<Integer>();\n int pre_sum = 0 ;\n for( int i = 0 ; i < n ; i++ ){\n pre_sum += arr[i];\n if( pre_sum == sum ) // Corner case if pre-sum is equal to sum.\n return true;\n if( s.contains(pre_sum - sum))\n return true;\n s.add(pre_sum);\n }\n return false;\n }",
"static boolean equalSumPartition(int[] arr){\n int sum = 0;\n for (int i = 0;i<arr.length;i++){\n sum+=arr[i];\n }\n if (sum%2==0){\n return subSetSumProblem(arr,sum/2);\n }\n return false;\n }",
"public static boolean canThreePartsEqualSum(int[] arr) {\n int sum=0;\n int cumulative[]=new int[arr.length];\n for(int i=0;i<arr.length;i++){\n sum+=arr[i];\n cumulative[i]=sum;\n }\n for(int i=0;i<cumulative.length;i++){\n for(int j=i+1;j<cumulative.length;j++){\n if(cumulative[i]==cumulative[j]-cumulative[i]){\n if(cumulative[i]==cumulative[cumulative.length-1]-cumulative[j] && (cumulative.length-1) !=j){\n return true;\n }\n }\n }\n }\n return false;\n}",
"private boolean checkTwoSum(List<Integer> a, int twoSum, int start) {\n\t\t\n\t\tfor (int i = start, j = a.size() - 1; i <=j;) {\n\t\t\tif (a.get(i) + a.get(i) == twoSum || \n\t\t\t\ta.get(j) + a.get(j) == twoSum ||\n\t\t\t\ta.get(i) + a.get(j) == twoSum) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif (a.get(i) + a.get(j) > twoSum) {\n\t\t\t\t\tj--;\n\t\t\t\t} else if (a.get(i) + a.get(j) < twoSum) {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean findNumbers(double Array[], int arraySize, double sum) {\n //outter loop keeps first number unless it has to change\n for (int i = 0; i < arraySize - 2; i++) {\n //middle loop keeps second number unless it has to change \n for (int j = i + 1; j < arraySize - 1; j++) {\n //changes the every time and will break function if sum is found\n for (int k = j + 1; k < arraySize; k++) {\n //conditional staement if found print and return true \n if (Array[i] + Array[j] + Array[k] == sum) {\n System.out.print(\"Triplet is \" + Array[i] + \" ,\" + Array[j] + \" ,\" + Array[k]);\n return true;\n }\n }\n }\n }\n\n // If we reach here then nothing was found \n return false;\n }",
"public boolean existSum(int[] array, int target) {\n Set<Integer> set = new HashSet<>();\n for (int num : array) {\n \tif (set.contains(target - num)) {\n \treturn true;\n }\n set.add(num);\n }\n return false;\n }",
"static boolean find3Numbers(int A[], int arr_size, int sum) {\n\t\t// Fix the first element as A[i] \n\t\tfor (int i = 0; i < arr_size - 2; i++) {\n\t\t\t// Find pair in subarray A[i+1..n-1] \n\t\t\t// with sum equal to sum - A[i] \n\t\t\tHashSet<Integer> s = new HashSet<Integer>();\n\t\t\tint curr_sum = sum - A[i];\n\t\t\tfor (int j = i + 1; j < arr_size; j++) {\n\t\t\t\tif (s.contains(curr_sum - A[j])) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\ts.add(A[j]);\n\t\t\t}\n\t\t}\n\n\t\t// If we reach here, then no triplet was found \n\t\treturn false;\n\t}",
"static boolean sumOfTwo(int[] a, int[] b, int v) {\r\n for (int i = 0; i < a.length; i++) {\r\n for (int j = 0; j < b.length; j++) {\r\n if (a[i] + b[j] == v) {\r\n return true;\r\n }\r\n }\r\n }\r\n return false;\r\n }",
"public boolean checkSubarraySum(int[] nums, int k) {\n int N = nums.length;\n if (N == 0)\n return false;\n Map<Integer, Integer> m = new HashMap();\n int sum = 0;\n m.put(0, -1);\n for (int i = 0; i < N; i++) {\n sum += nums[i];\n if (k != 0 )\n sum %= k;\n if (m.containsKey(sum)) {\n if (i - m.get(sum) >= 2)\n return true;\n } else {\n m.put(sum, i);\n }\n }\n return false;\n }",
"private static boolean tripletWithSumExistsNoExtraSpace(int[] arr, int expectedSum){\n Arrays.sort(arr);\n int size = arr.length;\n for(int i=0; i<size-2; ++i){\n int complement = expectedSum - arr[i];\n int lidx = i+1, ridx = size-1;\n while (lidx < ridx){\n if(arr[lidx]+arr[ridx] == complement)\n return true;\n else if(arr[lidx]+arr[ridx] < complement)\n ++lidx;\n else\n --ridx;\n }\n }\n return false;\n }",
"boolean bruteForce(int A[], int sum) {\n\n\t\t// Fix the first element as A[i]\n\t\tfor (int i = 0; i < A.length - 2; i++) {\n\n\t\t\t// Fix the second element as A[j]\n\t\t\tfor (int j = i + 1; j < A.length - 1; j++) {\n\n\t\t\t\t// Now look for the third number\n\t\t\t\tfor (int k = j + 1; k < A.length; k++) {\n\t\t\t\t\tif (A[i] + A[j] + A[k] == sum) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// If we reach here, then no triplet was found\n\t\treturn false;\n\t}",
"public static boolean tripletSum(int[] arr, int sum) {\n //first we will sort the array O(n*log(n)).\n\n Arrays.sort(arr);\n\n int currentSum;\n int left = 0;\n int right = arr.length - 1;\n\n HashSet<Integer> hashSet = new HashSet<>();\n\n //use the outer loop to fix an index of the array, i, as one of the pairs\n\n for (int i = 0; i < arr.length; i++) {\n\n currentSum = sum -arr[i];\n\n //this is the pair sum algorithm with an updated sum\n\n for (int j = 0; j < arr.length; j++) {\n if (left == i) {\n left++;\n }\n if (right == i) {\n right--;\n }\n if (hashSet.contains(arr[left] + arr[right])) {\n return true;\n } else {\n hashSet.add(currentSum - (arr[left] + arr[right]));\n if (arr[left] + arr[right] > currentSum) {\n right--;\n } else if (arr[left] + arr[right] < currentSum) {\n left++;\n } else {\n return true;\n }\n }\n if (left >= right) {\n break;\n }\n }\n\n left = 0;\n right = arr.length - 1;\n hashSet.clear();\n\n }\n return false;\n\n }",
"public boolean checkIfExist(int[] arr) {\n int len = arr.length;\n\n Set<Integer> set = new HashSet<>();\n for (int num : arr) {\n if (set.contains(num*2) || (num%2==0 && set.contains(num/2))) return true;\n set.add(num);\n }\n\n return false;\n }",
"public int[] twoSum(int[] num, int sum)\n {\n int[] onlyOneValidAnswer = new int[]{-1,-1};\n for(int i = 0; i < num.length; i++)\n {\n for(int j = 0; j < num.length; j++)\n {\n if(num[i] != num[j])\n {\n if((num[i] + num[j]) == sum)\n {\n onlyOneValidAnswer[0] = j;\n onlyOneValidAnswer[1] = i;\n }\n }\n }\n }\n\n return onlyOneValidAnswer;\n }",
"public boolean canThreePartsEqualSum(int[] A) {\r\n \tint totalSum = 0, partCount = 0, sum = 0;\r\n \t\r\n \tfor (int n : A)\r\n \t\ttotalSum += n;\r\n \t\r\n \t// When two groups of A make totalSum / 3, \r\n \t// the sum of remaining group is automatically totalSum / 3\r\n \t// x + x + y = 3x -> y = x;\r\n \tfor (int i = 0; i < A.length; i++) {\r\n \t\tsum += A[i];\r\n \t\t\r\n \t\tif (sum == totalSum / 3) {\r\n \t\t\tsum = 0;\r\n \t\t\tpartCount++;\r\n \t\t\t\r\n \t\t\tif (partCount >= 3)\r\n \t\t\t\treturn true;\r\n \t\t}\r\n \t}\r\n \treturn false;\r\n }",
"public static void hasPairWithSum(int[] input, int sum) {\n\t\tMap<Integer, Integer> map = new Hashtable<>();\n\t\tint occurence = 0;\n\t\tfor (int num : input) {\n\t\t\toccurence = 1;\n\t\t\tif (map.containsKey(num)) {\n\t\t\t\toccurence = map.get(num);\n\t\t\t\toccurence++;\n\t\t\t}\n\t\t\tmap.put(num, occurence);\n\t\t}\n\n\t\tfor (int first : input) {\n\t\t\tint second = sum - first;\n\t\t\tif (map.containsKey(second)) {\n\t\t\t\toccurence = map.get(second);\n\t\t\t\tif (occurence > 0) {\n\t\t\t\t\tif (second == first) {\n\t\t\t\t\t\tif (occurence > 1) {\n\t\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t\t\toccurence -= 2;\n\t\t\t\t\t\t\tmap.put(first, occurence);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tint firstOccurence = map.get(first);\n\t\t\t\t\t\tfirstOccurence--;\n\t\t\t\t\t\tint secondOccurence = map.get(second);\n\t\t\t\t\t\tsecondOccurence--;\n\t\t\t\t\t\tmap.put(first, firstOccurence);\n\t\t\t\t\t\tmap.put(second, secondOccurence);\n\t\t\t\t\t\tSystem.out.println(\"[\" + first + \",\" + second + \"]\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public boolean checkSubarraySum(int[] nums, int k){\n\t\tif(nums == null || nums.length == 0)\n\t\t\treturn false;\n\t\tint sum = 0;\n\t\tHashMap<Integer, Integer> map = new HashMap<>();\n\t\tmap.put(0,-1);\n\t\tfor( int i = 0; i<nums.length; i++){\n\t\t\tsum+=nums[i];\n\t\t\tif(k!=0)\n\t\t\t\tsum = sum % k;\n\t\t\tif(map.containsKey(sum)){\n\t\t\t\tif(i - map.get(sum) > 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmap.put(sum,i);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkSubarraySum(int[] nums, int k) {\n\n if (nums == null) {\n return false;\n }\n\n Map<Integer, Integer> sums = new HashMap<>();\n\n int runningSum = 0;\n\n // sums.put(0, -1);\n for (int i = 0; i < nums.length; i++) {\n int n = nums[i];\n runningSum += n;\n if (k != 0) {\n runningSum %= k;\n }\n\n\n // if a number is followed by 6 or 0, the next modulo does not change, which is okay\n // however, if there are several 0s in sequence, it is still fine to have consecutive zeroes and the solution should still work\n // e.g. consider 5, 2, 4 and k = 6. The moduloes look like 5, 1, 5 and there need to be atleast 2 numbers processed between both moduloes\n // in the case of 0, 0 and k = 0, the moduloes are 0,0 but the solution is still valid, even though the indexes are next to each other. so we add 0,-1 to fix this condition\n sums.put(0, -1);\n if (sums.containsKey(runningSum)) {\n\n // the modulo numbers cannot be adjacent to each other, so difference in indexes must be at least 2.\n // special conditions are 6 and 0/\n if (i - sums.get(runningSum) >= 2) {\n return true;\n }\n } else {\n sums.put(runningSum, i);\n }\n }\n\n return false;\n }",
"static boolean sumChecker( int[] arrayOfNumbers) {\n\t\tint intArraySum = 0; \n\t\tfor (int i : arrayOfNumbers) { \n\t\t\tintArraySum += arrayOfNumbers[i];\n\t\t}\n\t\tif (intArraySum >= 100) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t\t \n\t\t}\n\t}",
"static void check(int arr[],int sum)\r\n {\r\n boolean binmap[] = new boolean[max]; /* by default this is array of false as {false,false,false,false,......,false} */\r\n for(int i=0;i<arr.length;i++)\r\n {\r\n int temp=sum-arr[i];\r\n if(temp>0 && binmap[temp]){ /* in condition , we can use binmap[temp] which means binmap[temp]==true */\r\n System.out.println(\"two numbers in given array whose sum is equal to given sum are :\"+temp+ \" and \" +arr[i]);\r\n }\r\n binmap[arr[i]]=true;\r\n }\r\n }",
"boolean checkThreeSum(List<Integer> a, int threeSum) {\n\t\tCollections.sort(a); // n log n\n\t\t\n\t\tfor (int index = 0; index <= a.size() - 1; index++) {// o [n square]\n\t\t\tint current = a.get(index);\n\t\t\tif (checkTwoSum(a, threeSum - current, index)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public static void main(String[] args) {\n\n boolean isTrue = false;\n int[] numbers = { 10, 15, 3, 1, 6, 16, 8 };\n int k = 17;\n\n for (int i = 0; i < (numbers.length-1); i++) {\n for (int j = (i+1); j < numbers.length; j++) {\n if (numbers[i] + numbers[j] == k) {\n isTrue = true;\n break;\n }\n }\n }\n System.out.println(isTrue);\n }",
"private static boolean check(int[] data) {\n int a[]=new int[8];\n a[0]=data[0]+data[1]+data[2];\n a[1]=data[3]+data[4]+data[5];\n a[2]=data[8]+data[7]+data[6];\n a[3]=data[0]+data[3]+data[6];\n a[4]=data[1]+data[4]+data[7];\n a[5]=data[2]+data[5]+data[8];\n a[6]=data[0]+data[4]+data[8];\n a[7]=data[2]+data[4]+data[6];\n for (int i = 0; i <a.length ; i++) {\n for (int j = i+1; j <a.length; j++) {\n if (a[i]==a[j]){\n return false;\n }\n }\n }\n return true;\n }",
"public static boolean findSum3Bool(int[] a, int x){\r\n\t\tint begin = 0, end = a.length -1, sum;\r\n\t\twhile(begin < a.length -1 && (end >= 0)){\r\n\t\t\tsum = a[begin] + a[end];\r\n\t\t\tif(sum < x){\r\n\t\t\t\tbegin++;\r\n\t\t\t}else if(sum > x){\r\n\t\t\t\tend--;\r\n\t\t\t}else {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"static boolean question3(int target, int[] arr) {\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\t\tfor(int j=0;j<arr.length;j++) {\r\n\t\t\t\tif(i!=j) {\r\n\t\t\t\t\tif(arr[i]+arr[j]==target) {\r\n\t\t\t\t\t\treturn true;\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 false;\r\n\t}",
"public Boolean check(int[] ints, int target) {\n\n\t\t//store seen sums less than target\n\t\tLinkedHashSet<Integer> seenSums = new LinkedHashSet<>();\n\n\t\tfor (int anInt : ints) { //O(n)\n\n\t\t\t//suppose that target in array fits requirements\n\t\t\tif(anInt == target) return true;\n\n\t\t\t//obviously all ints that larger than target won't work\n\t\t\tif(anInt > target) continue;\n\n\t\t\t//\n\t\t\tint addAnIntToTarget = target - anInt;\n\n\t\t\tif(seenSums.contains(addAnIntToTarget)) //O(1)\n\t\t\t\treturn true;\n\n\t\t\tLinkedHashSet<Integer> newSeenSums = new LinkedHashSet<>();\n\t\t\tnewSeenSums.add(anInt);\n\t\t\tfor (Integer seenSum : seenSums) { //O(n)\n\t\t\t\tInteger newSeenSum = seenSum + anInt;\n\n\t\t\t\tif(!newSeenSums.contains(newSeenSum))\n\t\t\t\t\tnewSeenSums.add(newSeenSum);\n\t\t\t}\n\t\t\tseenSums = newSeenSums;\n\t\t}\n\n\t\treturn false;\n\t}",
"private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}",
"boolean lessThanSearch(int A[], int sum) {\n\t\tint l, r;\n\n\t\tint arr_size = A.length;\n\n\t\t/* Sort the elements */\n\t\tquickSort(A, 0, arr_size - 1);\n\n\t\t/*\n\t\t * Now fix the first element one by one and find the other two elements\n\t\t */\n\t\tfor (int i = 0; i < arr_size - 2; i++) {\n\n\t\t\t// To find the other two elements, start two index variables\n\t\t\t// from two corners of the array and move them toward each\n\t\t\t// other\n\t\t\tl = i + 1; // index of the first element in the remaining elements\n\t\t\tr = arr_size - 1; // index of the last element\n\t\t\twhile (l < r) {\n\t\t\t\tif (A[i] + A[l] + A[r] == sum) {\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (A[i] + A[l] + A[r] < sum)\n\t\t\t\t\tl++;\n\n\t\t\t\telse // A[i] + A[l] + A[r] > sum\n\t\t\t\t\tr--;\n\t\t\t}\n\t\t}\n\n\t\t// If we reach here, then no triplet was found\n\t\treturn false;\n\t}",
"boolean hasComputeSum();",
"private static boolean findEqualSumBottomUp(int[] arr, int n, int sum) {\n boolean subset[][] = \n new boolean[sum+1][n+1]; \n \n // If sum is 0, then answer is true \n for (int i = 0; i <= n; i++) \n subset[0][i] = true; \n \n // If sum is not 0 and set is empty, \n // then answer is false \n for (int i = 1; i <= sum; i++) \n subset[i][0] = false; \n \n // Fill the subset table in botton \n // up manner \n for (int i = 1; i <= sum; i++) \n { \n for (int j = 1; j <= n; j++) \n { \n subset[i][j] = subset[i][j-1]; \n if (i >= arr[j-1]) \n subset[i][j] = subset[i][j] || \n subset[i - arr[j-1]][j-1]; \n } \n } \n \n // uncomment this code to print table \n /*for (int i = 0; i <= sum; i++) \n { \n for (int j = 0; j <= n; j++) \n System.out.print (subset[i][j]+\" \"); \n } */\n \n return subset[sum][n];\n\t}",
"public static boolean sumsTo(int[] A, int[] B, int m) {\n\t\t// REPLACE WITH YOUR ANSWER\n\t\tA = Arrays.copyOf(A, A.length);\n Arrays.sort(A);\n for (int b : B) {\n int k = Arrays.binarySearch(A, m - b);\n if (k >= 0 && k < A.length && A[k] + b == m) {\n return true;\n }\n }\n return false;\n }",
"protected static void printPairsEqualToSum(int[] arr1, int[] arr2, int sum) {\n\t\t\r\n\t\tint count = 0; \r\n\t \r\n\t\t// creating an arraylist from first array to use the contains() method\r\n\t ArrayList<Integer> as = new ArrayList<Integer>(); \r\n\t \r\n\t // insert all the elements \r\n\t // of 1st array in the arraylist \r\n\t // table(unordered_set 'as') \r\n\t for (int i = 0; i < arr1.length; i++) {\r\n\t as.add(arr1[i]); \r\n\t }\r\n\t // for each element of arr2[] \r\n\t for (int j = 0; j < arr2.length; j++) {\r\n\t \r\n\t // find all cases where(x - arr2[j]) in 'as' \r\n\t if (as.contains(sum - arr2[j])) { // if pair element is found in array 1\r\n\t for (int k: as) { // repeat print for duplicate entries in the arraylist as\r\n\t \tif (k == sum - arr2[j]) { \r\n\t \tcount++; \r\n\t \tSystem.out.println(\"[\"+ (sum-arr2[j]) + \",\" + arr2[j] + \"]\"); //display in paired form\r\n\t \t}\r\n\t }\r\n\t }\r\n\t }\r\n\t \r\n\t if (count == 0) { // if no combos are found\r\n\t \tSystem.out.println(\"No pairs found.\");\r\n\t }\r\n\t\t\r\n\t}",
"public static boolean sumTo(int[] values, int n) {\n // TODO\n // /** construnc a hashset and when we iterate through the array, we find if curr is in the set and insert n-curr into the set\n return false;\n }",
"static boolean isSubsetSum(int set[], \n\t\t\t\t\t\t\tint n, int sum)\n\t{\n\t\tboolean dp[][] = new boolean[n + 1][sum + 1];\n\t\tfor(int i = 1; i <= sum; i++)\n\t\t dp[0][i] = false;\n\t\tfor(int i = 0; i <= n; i++)\n\t\t dp[i][0] = true;\n\t\t \n\t\tfor(int i = 1; i <= n; i++) {\n\t\t for(int j = 1; j <= sum; j++) {\n\t\t //System.out.println(i + \" \" + j);\n\t\t try {\n\t\t if(j >= set[i - 1])\n\t\t dp[i][j] = dp[i - 1][j] || dp[i - 1][j - set[i - 1]];\n\t\t else\n\t\t dp[i][j] = dp[i - 1][j];\n\t\t }\n\t\t catch(ArrayIndexOutOfBoundsException exception) {\n\t\t System.out.println(\"here\");\n\t\t System.out.println(i + \" \" + j);\n\t\t }\n\t\t }\n\t\t}\n\t\treturn dp[n][sum];\n\t}",
"public static Boolean isSumGtrThan100(int array[])\n\t{\n\t\tint sum = 0;\n\t\t\n\t\t// Sum array\n\t\tfor (int i = 0; i < array.length; i++)\n\t\t\tsum += array[i];\n\t\t\n\t\t// Check if more than 100\n\t\treturn sum > 100;\n\t}",
"static boolean isValid(int a[], int n, int k, int max)\r\n\t {\r\n\t int painter = 1, sum = 0;\r\n\t \r\n\t for(int i = 0; i < n; i++)\r\n\t {\r\n\t if(sum + a[i] > max)\r\n\t {\r\n\t painter++;\r\n\t sum = a[i];\r\n\t \r\n\t if(painter > k)\r\n\t return false;\r\n\t }\r\n\t else\r\n\t sum += a[i];\r\n\t }\r\n\t \r\n\t return true;\r\n\t }",
"static boolean subSetSumProblem(int[] arr,int sum){\n// init\n int n = arr.length;\n boolean[][] dp = new boolean[n+1][sum+1];\n\n for (int j = 0;j<=sum;j++){\n dp[0][j] = false;\n }\n\n for (int i = 0;i<=n;i++){\n dp[i][0] = true;\n }\n\n for (int i = 1;i<=n;i++){\n for (int j = 1;j<=sum;j++){\n if (arr[i-1] <= j){\n dp[i][j] = dp[i-1][j] || dp[i-1][j-arr[i-1]];\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][sum];\n }",
"public static boolean hasAllValues(int[] arr1, int[] arr2) {\n for (int num : arr1) {\n boolean contains = false;\n for (int i = 0; i < arr2.length; i++) {\n if (num == arr2[i]) {\n contains = true;\n }\n }\n if (!contains) {\n return false;\n }\n }\n return true;\n }",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}",
"private static void second(int[] arr, int sum){\n\n Map<Integer,Boolean> map = new Hashtable<>();\n\n for(int i:arr){\n\n if (map.containsKey(sum - i)){\n System.out.println(i + \" , \" + (sum-i));\n }\n else{\n map.put(i, true);\n }\n\n }\n\n }",
"public static boolean solution1(int[] nums, int numToAddTo){\n for (int i = 0; i < nums.length; i++){\n for (int j = i+1; j < nums.length; j++){\n if (nums[i] + nums[j] == numToAddTo){\n return true;\n }\n }\n }\n return false;\n }",
"int subArraySum(int arr[], int n, int sum) \r\n { \r\n int curr_sum, i, j; \r\n \r\n // Pick a starting point \r\n for (i = 0; i < n; i++) \r\n { \r\n curr_sum = arr[i]; \r\n \r\n // try all subarrays starting with 'i' \r\n for (j = i + 1; j <= n; j++) \r\n { \r\n if (curr_sum == sum) \r\n { \r\n int p = j - 1; \r\n System.out.println(\"Sum found between indexes \" + i \r\n + \" and \" + p); \r\n return 1; \r\n } \r\n if (curr_sum > sum || j == n) \r\n break; \r\n curr_sum = curr_sum + arr[j]; \r\n } \r\n } \r\n \r\n System.out.println(\"No subarray found\"); \r\n return 0; \r\n }",
"public static void findSubarrays(int[] arr, int sum)\n {\n for (int i = 0; i < arr.length; i++)\n {\n int sum_so_far = 0;\n \n // consider all sub-arrays starting from i and ending at j\n for (int j = i; j < arr.length; j++)\n {\n // sum of elements so far\n sum_so_far += arr[j];\n \n // if sum so far is equal to the given sum\n if (sum_so_far == sum) {\n print(arr, i, j);\n }\n }\n }\n }",
"public int[] isEverywhere(int[] nums, int val) {\n\n\t\tfor (int i=0; i<nums.length-1; i++) {\n\t\t\tif (nums[i] != val && nums[i+1] != val) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\n\t}",
"public static void main(String[] args) {\n int[] A = {7, 3, 2, 5, 8};\n int sum = 18;\n\n if (subsetSum(A, sum)) {\n System.out.println(\"Subsequence with the given sum exists\");\n } else {\n System.out.println(\"Subsequence with the given sum does not exist\");\n }\n }",
"static int findMissingUsingSummation(int[] arr) {\n\t\tint expectedSum = (arr.length + 1) * (arr.length + 1 + 1) / 2;\n\t\tint actualSum = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tactualSum = actualSum + arr[i];\n\t\t}\n\n\t\treturn expectedSum - actualSum;\n\t}",
"public static int[] twoNumberSum_sol2(int[] array, int targetSum) {\n\n\t\tSet<Integer> nums = new HashSet<Integer>();\n\t\tfor (int num : array) {\n\t\t\tint potentialMatch = targetSum - num;\n\t\t\tif (nums.contains(potentialMatch)) {\n\t\t\t\treturn new int[] { num, potentialMatch };\n\t\t\t} else {\n\t\t\t\tnums.add(num);\n\t\t\t}\n\t\t}\n\n\t\treturn new int[0];\n\n\t}",
"public static int count(int[] array, int targetSum) {\n int quantityOfCounts = 0;\n Set<Integer> set = new HashSet<>();\n\n Arrays.stream(array).forEach(set::add);\n\n for (int j : set) {\n if (set.contains(targetSum - j)) {\n quantityOfCounts++;\n }\n }\n\n return quantityOfCounts / 2;\n }",
"public boolean containsSum13(List<Integer> selectedCards) \n {\n //2 loops to check every combination of 2 in selectedCards \n for(int i = 0;i < selectedCards.size()-1;i++)\n {\n for(int n = i+1;n < selectedCards.size();n++)\n {\n \t//checks if 2 cards added together equals 13\n \tif(cardAt(selectedCards.get(i)).pointValue()+cardAt(selectedCards.get(n)).pointValue() == 13)\n \t{\n \t\treturn true;\n \t}\n }\n }\n return false;\n }",
"public static int findSubsequencesThatSumUpTo(int[] arr, int neededSum) {\n int total = 0;\n\n Set<Integer> set = new HashSet<>();\n\n int acc = 0;\n for (int i = 0; i < arr.length; i++) {\n acc += arr[i];\n set.add(acc);\n }\n\n for (Integer x: set) {\n if (x == neededSum) {\n total++;\n }\n\n int required = x + neededSum;\n if (set.contains(required)) {\n total++;\n }\n }\n\n return total;\n }",
"static boolean isSubsetSum(int set[], int n, int sum)\n\t {\n\t // The value of subset[i][j] will be true if there \n\t // is a subset of set[0..j-1] with sum equal to i\n\t boolean subset[][] = new boolean[n+1][sum+1];\n\t \n\t \n\t for(int i=1;i<=sum;i++)\n\t \tsubset[0][i]=false;\n\t \n\t for(int i=0;i<=n;i++)\n\t \tsubset[i][0]=true;\n\t \n\t \n\t\n\t for(int i=1;i<=n;i++) {\n\t \tfor(int j=1;j<=sum;j++) {\n\t \t\t\n\t \t\tsubset[i][j]=subset[i-1][j];\n\t \t\tif(subset[i][j] ==false && j>=set[i-1])\n\t \t\t\tsubset[i][j]=subset[i][j] || subset[i-1][j-set[i-1]];\n\t \t\t\n\t \t}\n\t }\n\t \t\n\t \t\n\t return subset[n][sum];\n\t }",
"static boolean isSubsetPossible(int[] nums, int sum) {\t\n\t\tboolean[][] dp = new boolean[nums.length][sum + 1];\n\t\tfor(int row = 0; row < dp.length; row++) {\n\t\t\tdp[row][0] = true;\n\t\t}\n \n\t\tfor(int row = 0; row < dp.length; row++) {\n\t\t\tint num = nums[row];\n\t\t\tfor(int col = 1; col < dp[0].length; col++) {\n\t\t\t\tif( col < num ) {\n\t\t\t\t\tdp[row][col] = (row == 0) ? false : dp[row - 1][col];\n\t\t\t\t}else if(num == col) {\n\t\t\t\t\tdp[row][col] = true;\n\t\t\t\t}else {\n\t\t\t\t\tdp[row][col] = dp[row - 1][col] || dp[row - 1][col - num];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(dp[row][sum]){\n\t\t\t\tSystem.out.println(\"breaked at row \" + row);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"all the way end\");\n\t\treturn dp[nums.length - 1][sum];\n\t}",
"static int subArraySum(int arr[], int sum) {\n int n = arr.length;\n int curr_sum = arr[0], start = 0, i;\n\n // Pick a starting point\n for (i = 1; i <= n; i++) {\n // If curr_sum exceeds the sum, then remove the starting elements\n while (curr_sum > sum && start < i - 1) {\n curr_sum = curr_sum - arr[start];\n start++;\n }\n\n // If curr_sum becomes equal to sum, then return true\n if (curr_sum == sum) {\n int p = i - 1;\n System.out.println(\"Sum found between indexes \" + start\n + \" and \" + p);\n return 1;\n }\n\n // Add this element to curr_sum\n if (i < n)\n curr_sum = curr_sum + arr[i];\n\n }\n\n System.out.println(\"No subarray found\");\n return 0;\n }",
"public boolean kPairSum(Integer k) {\r\n\t\tint i = 0;\r\n\t\tint j = sortedIntegerArray.length - 1;\r\n\t\treturn kPairSumInterval(k, i, j);\r\n\r\n\t}",
"public static int[] twoNumberSum_sol1(int[] array, int targetSum) {\n\n\t\tfor (int i = 0; i < array.length - 1; i++) {\n\t\t\tint firstElement = array[i];\n\t\t\tfor (int j = i + 1; j < array.length; j++) {\n\t\t\t\tif (targetSum == firstElement + array[j]) {\n\t\t\t\t\treturn new int[] { firstElement, array[j] };\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn new int[0];\n\n\t}",
"static void twoPointer(int arr[], int n, int sum) {\n\n int start = 0;\n int end = 1;\n\n int array_sum = arr[start];\n\n while (start < end || end < n) {\n\n if(array_sum < sum && end < n) {\n array_sum += arr[end];\n end++;\n }else if(array_sum == sum) {\n System.out.println(\"found at \" + start +\" \" + (end - 1) + \" position\");\n return;\n }else if(array_sum > sum && start < end) {\n array_sum -= arr[start];\n start++;\n }\n\n }\n\n System.out.println((start) +\" \" + (end) + \" array sum = \" + array_sum);\n System.out.println(\"No Sum found\");\n\n }",
"public static int findDuplicate(int[] arr){\n\n if(arr == null)\n \treturn -1;\n int n = arr.length-1;\n int sum = (n * (n+1))/2; // Formula for sum of n numbers\n int tot = 0; \n for(int i : arr){\n tot = tot + i; \n }\n \n int duplicate = tot - sum;\n \n return duplicate;\n}",
"public boolean isSubSetSumProblem(int [] set, int n , int sum){\n\t\tif (sum == 0)\n\t\t\treturn true;\n\t\t\n\t\tif(n == 0 && sum != 0)\n\t\t\treturn false;\n\t\tif(set[n-1] > sum)\n\t\t\treturn isSubSetSumProblem(set, n-1, sum);\n\t\t\n\t\treturn isSubSetSumProblem(set, n-1, sum) || isSubSetSumProblem(set, n-1, sum-set[n-1]);\n\t}",
"static boolean contains(int[] a, int value){\n int i;\n\n for(i = 0; i < a.length; i++){\n if(a[i] == value) {\n return true;\n }\n }\n\n return false;\n }",
"private static void third(int[] arr, int sum){\n\n Arrays.sort(arr);\n\n int i =0;\n int j = arr.length-1;\n\n while( i<j ){\n\n int curr = arr[i] + arr[j];\n\n if(curr == sum){\n System.out.println(arr[i] + \" \" + arr[j]);\n break;\n }\n else if(curr < sum){\n i++;\n }\n else{\n j--;\n }\n }\n\n }",
"private static void printPairs(int[] a, int sum) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t//for (int j = 0; j < n; j++) {/Is the reverse of pair is acceptable\n\t\t\tfor(int j=i+1;j<a.length;j++) {\n\t\t\t\tif(a[i]+a[j]==sum) {\n\t\t\t\t\tSystem.out.println(\"(\"+a[i]+\"+\"+a[j]+\") = \"+sum);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public static void main (String args[])\n\t {\n\t int set[] = {3, 34, 4, 12, 5, 2};\n\t int sum = 9;\n\t int n = set.length;\n\t if (isSubsetSum(set, n, sum) == true)\n\t System.out.println(\"Found a subset with given sum\");\n\t else\n\t System.out.println(\"No subset with given sum\");\n\t }",
"static boolean allSame(int freq[], int N)\n {\n int same = 0;\n\n // get first non-zero element\n int i;\n for (i = 0; i < N; i++) {\n if (freq[i] > 0) {\n same = freq[i];\n break;\n }\n }\n\n // check equality of each element with variable same\n for (int j = i + 1; j < N; j++)\n if (freq[j] > 0 && freq[j] != same)\n return false;\n\n return true;\n }",
"static boolean sumEquals(double u, double v, double w) {\n return (u + v == w) && (u == w - v) && (v == w - u);\n }",
"private static void findPairSum(int[] pairSumArray, int k) {\n\t\tint count = 0;\r\n\t\tint pair = 0;\r\n\t\tfor (int i = 0; i < pairSumArray.length; i++) {\r\n\t\t\tfor (int j = pairSumArray.length - 1; j > i; j--) {\r\n\t\t\t\tpair = pairSumArray[j] + pairSumArray[i];\r\n\t\t\t\tif (pair == k) {\r\n\t\t\t\t\tSystem.out.println(\" ( \" + pairSumArray[j] + \"+\"\r\n\t\t\t\t\t\t\t+ pairSumArray[i] + \" ) \" + pair);\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"count of pairs : \" + count);\r\n\t}",
"public boolean find(int value) {\n return twoSums.contains(value);\n }",
"public static int sumCheck(int target, int... numberArr) {\n\t\tint sum = 0;\n\t\tfor (int number : numberArr) {\n\t\t\tsum += number;\n\t\t}\n\t\treturn target == sum ? 0 : ((target < sum) ? -1 : 1);\n\t}",
"public static int findSumOfTwoNumbers(int[] input, int numToFind)\n {\n return 0;\n }",
"public static boolean find3Numbers(int A[], int n, int X) { \n \n // Your code \n for(int i=0;i<n-2;i++)\n {\n HashSet<Integer> set = new HashSet<>();\n int toFind=X-A[i];\n for(int j=i+1;j<n;j++)\n {\n if(set.contains(toFind-A[j]))\n {\n return true;\n }\n set.add(A[j]);\n }\n }\n return false;\n }",
"public int sol2(int[] inArr) \n\t{\n\t\tSet<Integer> set= new HashSet<>();\n\t\tfor (int i : inArr) {\n\t\t\tif(set.contains(i)) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}",
"public static boolean subsetSum(int[] A, int sum) {\n int n = A.length;\n\n // `T[i][j]` stores true if subset with sum `j` can be attained\n // using items up to first `i` items\n boolean[][] T = new boolean[n + 1][sum + 1];\n\n // if the sum is zero\n for (int i = 0; i <= n; i++) {\n T[i][0] = true;\n }\n\n // do for i'th item\n for (int i = 1; i <= n; i++) {\n // consider all sum from 1 to sum\n for (int j = 1; j <= sum; j++) {\n // don't include the i'th element if `j-A[i-1]` is negative\n if (A[i - 1] > j) {\n T[i][j] = T[i - 1][j];\n } else {\n // find the subset with sum `j` by excluding or including\n // the i'th item\n T[i][j] = T[i - 1][j] || T[i - 1][j - A[i - 1]];\n }\n }\n }\n\n // return maximum value\n return T[n][sum];\n }",
"public static void main(String[] args) {\n\r\n\t\tint[] arr= {2,3,7,1,4,5};\r\n\t\tint sum=7;\r\n\t\tSystem.out.println(CountOfSubsetSum.equalToGivenSum(arr,sum));\r\n\t}",
"public void checkSum() {\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < sudoku.length; i++)\n\t\t\tsum +=sudoku[row][i];\n\t\tif(sum != 45) {\n\t\t\tvalue = false;\n\t\t\tSystem.out.println(\"The sum in row \" + row + \" is \" + sum);\n\t\t}\n\t}",
"private int checkWinner(int[] arr) {\n for (int i = 0; i <= 6; i += 3) {\n int sum = arr[i] + arr[i + 1] + arr[i + 2];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n }\n\n // Check verticals\n for (int i = 0; i < 3; i++) {\n int sum = arr[i] + arr[i + 3] + arr[i + 6];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n }\n\n // Check diagonals\n int sum = arr[0] + arr[4] + arr[8];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n\n sum = arr[2] + arr[4] + arr[6];\n if (sum == 3) {\n return 1;\n } else if (sum == -3) {\n return 2;\n }\n\n return 0;\n }",
"public static int method1(int temp[]) {\r\n\r\n\t\tfor (int i = 0; i < temp.length; i++) {\r\n\r\n\t\t\tint count = 0;\r\n\t\t\tint founded = temp[i];\r\n\t\t\tfor (int j = 0; j < temp.length; j++) {\r\n\r\n\t\t\t\tif (temp[j] == founded) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif ((count % 2) != 0) {\r\n\t\t\t\treturn founded;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"public static void findSumArrayWithGivenSum2(int[] arr, int target) {\n\n\t\tHashMap<Integer, Integer> hm = new HashMap<>();\n\n\t\tint currSum = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\n\t\t\tcurrSum += arr[i];\n\n\t\t\tif (currSum == target) {\n\t\t\t\tSystem.out.println(0 + \"--\" + i);\n\t\t\t}\n\n\t\t\tif (hm.containsKey(currSum - target)) {\n\t\t\t\tSystem.out.println((hm.get(currSum - target) + 1) + \"--\" + i);\n\t\t\t}\n\n\t\t\thm.put(currSum, i);\n\t\t}\n\t}",
"public static void findSumArrayWithGivenSum(int[] arr, int target) {\n\n\t\tint sum = 0;\n\t\tint start = 0;\n\t\tfor (int end = 0; end < arr.length; end++) {\n\t\t\tint val = arr[end];\n\t\t\tsum += val;\n\t\t\tif (sum == target) {\n\t\t\t\tSystem.out.println(start + \",\" + end);\n\t\t\t\treturn;\n\t\t\t} else if (sum < target) {\n\t\t\t\t// do nothing\n\t\t\t} else {\n\n\t\t\t\twhile (start <= end && sum > target) {\n\n\t\t\t\t\tsum -= arr[start];\n\t\t\t\t\tstart++;\n\n\t\t\t\t\tif (sum == target) {\n\t\t\t\t\t\tSystem.out.println(start + \",\" + end);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int findDuplicate2(int[] nums) {\n\n if (nums == null || nums.length < 2){\n throw new IllegalArgumentException(\"Array size is less than 2\");\n }\n\n Set<Integer> set = new HashSet<>();\n\n for (int i = 0; i < nums.length; i++){\n if (set.contains(nums[i])){\n return nums[i];\n } else {\n set.add(nums[i]);\n }\n }\n\n return 0;\n }",
"private boolean checkDuplicate(int[] array, int index, int value) {\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tif (array[i] == value) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static void calculate(int[] array) {\n\tfor (int i = 0; i > array.length - 1; i++) {\n\t\t// i will be second number\n\t\tfor (int j = i + 1; j < array.length; j++) {\n\n\t\t\t// take a number from array\n\t\t\t// add it to the next\n\t\t\tint sum = array[i] + array[j];\n\n\t\t\tif (sum == 100) {\n\t\t\t\t// i will print those two numbers\n\t\t\t\tSystem.out.println(array[i] + \", \" + array[j]);\n\t\t\t}\n\t\t}\n\n\t}\n}",
"private static boolean canPartion_rec(int[] nums, int i, int sum) {\n if (/*i<nums.length*/ sum == 0) return true;\n if (nums.length == 0 || i>=nums.length /*&& sum!= 0*/) return false;\n\n boolean a, b;\n if (sum>=nums[i]) {\n if (canPartion_rec(nums, i + 1, sum - nums[i]))\n return true;\n }\n return canPartion_rec(nums, i+1, sum);\n }",
"public static int TwoSum_bruteForce(int[] a,int lo, int hi, int x)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tfor (int i = lo; i < hi; ++i)\r\n\t\t{\r\n\t\t\tfor (int j = i+1; j < a.length; ++j)\r\n\t\t\t{\r\n\t\t\t\tif (a[i]+a[j] == x)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Pair: (\" + a[i] + \",\" + a[j] + \")\");\r\n\t\t\t\t\t++count;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"public static void main(String[] args) {\n System.out.println(\"Enter the number of elements in the array\");\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] array = new int[n];\n for (int i = 0; i < n; i++) {\n array[i] = scanner.nextInt();\n }\n System.out.println(\"Enter the sum to be found\");\n int sum = scanner.nextInt();\n\n Arrays.sort(array);\n int forwardPointer = 0;\n int backwardPointer = array.length - 1;\n int tempSum = array[forwardPointer] + array[backwardPointer];\n while (! isEqual(sum, tempSum)) {\n //System.out.println(array[forwardPointer]);\n //System.out.println(array[backwardPointer]);\n if (sum > tempSum) {\n // means we need to add bigger numbers\n forwardPointer++;\n } else {\n // means we have to add smaller numbers\n backwardPointer--;\n }\n\n if (forwardPointer >= backwardPointer) {\n // means we couldnt find anything\n System.out.println(\"Couldnt find the numbers in the given array\");\n break;\n }\n tempSum = array[forwardPointer] + array[backwardPointer];\n }\n\n if (forwardPointer < backwardPointer) {\n System.out.printf(\"The numbers are %d and %d\\n\", array[forwardPointer], array[backwardPointer]);\n }\n\n }",
"public boolean twoPair(int[] numArr) {\n\t\tfor (int i = 1; i < numArr.length-2; i++) {\n\t\t\tif (numArr[i-1]==numArr[i]&&numArr[i]==numArr[i+1]){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private static int subarraySum(int[] nums, int target) {\n\n\t\tint count = 0;\n\n\t\tfor (int start = 0; start < nums.length; start++) {\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int end = start; end < nums.length; end++) {\n\t\t\t\tsum += nums[end];\n\t\t\t\t\n\t\t\t\tif(sum == target) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\n\t}",
"public boolean find(int value) {\r\n // Write your code here\r\n for (int i = 0; i < elements.size() && elements.get(i) < value / 2 + 1; i++) {\r\n if (elements.get(i) * 2 == value && mapping.get(elements.get(i)) == 2) {\r\n return true;\r\n }\r\n if (elements.get(i) * 2 != value && mapping.containsKey(value - elements.get(i))) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public static void getPairs(int[] input, int sum)\r\n\t{\r\n\t\tjava.util.Arrays.sort(input);\r\n\t\tint start = 0;\r\n\t\tint end = input.length-1;\r\n\r\n\t\twhile(start<end)\r\n\t\t{\r\n\t\t\tint s = input[start]+input[end];\r\n\t\t\tif(s == sum){\r\n\t\t\t\tSystem.out.println(input[start] +\",\"+input[end]);\r\n\t\t\t\tstart++;\r\n\t\t\t\tend--;\r\n\t\t\t}else{ \r\n\t\t\t\tif(s < sum){\r\n\t\t\t start++;\r\n\t\t\t\t}else{\r\n\t\t \t end--;\r\n\t\t }\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"public static void main(String[] args) {\n int[] a={11, 15, 6, 8, 9, 10,4};\n int sum =2;\n //SORTING AND FIND PAIRS\n /*Arrays.sort(a);\n \n int i=0,j=a.length-1;\n while(i<j)\n {\n\t if(a[i]+a[j]==sum)\n\t {\n\t\t System.out.println(\"pair is+\"+a[i]+\" \"+a[j]);\n\t\t i++;j++;\n\t\t }\n\t else if(a[i]+a[j]<sum)\n\t {\n\t\t i++;\n\t }\n\t else if(a[i]+a[j]>sum)\n\t {\n\t\t j--;\n\t }\n }*/\n //Arrays.sort(a);\n LinkedHashSet<Integer> m = new LinkedHashSet<Integer>();\n int temp;\n for(int i=0;i<a.length;i++)\n {\n\t temp=sum+a[i];\n\t if(m.contains(temp))\n\t {\n\t\t System.out.println(\"par is:\"+a[i]+\" \"+temp);\n\t }\n\t else\n\t\t m.add(a[i]);\n }\n\n\t}",
"public static int[] twoNumberSum(int[] array, int targetSum) {\n\t\t\n\t\tHashSet<Integer> lookup = new HashSet<Integer>();\n\t\t\n\t\tfor (int j = 0; j < array.length; j++) {\n\t\t\tint cand = targetSum - array[j];\n\t\t\tif (lookup.contains(cand)) {\n\t\t\t\treturn new int[]{cand, array[j]};\n\t\t\t} else {\n\t\t\t\tlookup.add(array[j]);\n\t\t\t}\n\t\t}\n\t\t\n return new int[]{};\n }",
"public boolean doesArrayContainThisValue(int value) {\n for (int i = 0; i < arraySize; i++) {\n if (value == theArray[i]) {\n return true;\n }\n }\n return false;\n }",
"public boolean balance(ArrayList<Integer> numbers) {\n\t\tif(numbers == null) {\n\t\t\treturn false;\n\t\t} else if (numbers.size() < 2) {\n\t\t\treturn false;\n\t\t}\n\t\tfor(int i = 0; i < numbers.size(); i ++) {\n\t\t\tint sumLeft = 0;\n\t\t\tint sumRight = 0;\n\t\t\tfor(int j = 0; j < i; j ++) {\n\t\t\t\tsumLeft += numbers.get(j);\n\t\t\t}\n\t\t\tfor(int j = i; j < numbers.size(); j ++) {\n\t\t\t\tsumRight += numbers.get(j);\n\t\t\t}\n\t\t\tif(sumLeft == sumRight) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean containsNearbyDuplicate2(int[] nums, int k) {\n \tif(nums == null || nums.length <=1) return false;\r\n \tSet<Integer> set = new HashSet<Integer> ();\r\n \tfor(int i=0; i< nums.length; i++) {\r\n \t\tif(i>k) set.remove(nums[i-k-1]);\r\n \t\tif(!(set.add(nums[i]))) return true;\r\n \t}\r\n \treturn false;\r\n }",
"private boolean canPartitionDP(int[] array, int sum) {\n int len = array.length;\n boolean[][] dp = new boolean[len + 1][sum + 1];\n\n for (int i = 0; i < len + 1; i++) dp[i][0] = true;\n\n for (int i = 1; i < len + 1; i++) {\n for (int j = 1; j < sum + 1; j++) {\n if (array[i - 1] <= j) dp[i][j] = dp[i - 1][j] || dp[i - 1][j - array[i - 1]];\n else dp[i][j] = dp[i - 1][j];\n }\n }\n\n return dp[len][sum];\n }",
"public static int[] sumOfTwo(int[] numArr, int target) {\n\t\tint[] res = new int[2];\n\t\t\n\t\tmyOuterLabel:\n\t\tfor (int i = 0; i < numArr.length; i++) {\n\t\t\t\n\t\t\tfor (int j = i + 1; j < numArr.length; j++) {\n\t\t\t\tif (numArr[i] + numArr[j] == target) {\n\t\t\t\t\tres[0] = numArr[i];\n\t\t\t\t\tres[1] = numArr[j];\n\t\t\t\t\treturn res;\n\t\t\t\t\t// break myOuterLabel;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn res;\n\t}",
"public static int[] twoNumberSum_sol3(int[] array, int targetSum) {\n\n\t\tArrays.sort(array);\n\t\tint left = 0;\n\t\tint right = array.length - 1;\n\t\t\n\t\twhile (left < right) {\n\t\t\tint currentSum = array[left] + array[right];\n\t\t\t\n\t\t\tif (currentSum == targetSum) {\n\t\t\t\treturn new int[] { array[left], array[right] };\n\t\t\t} else if (currentSum < targetSum) {\n\t\t\t\tleft++;\n\t\t\t} else if (currentSum > targetSum) {\n\t\t\t\tright--;\n\t\t\t}\n\n\t\t}\n\n\t\treturn new int[0];\n\n\t}",
"private static int[] twoSum(int[] nums, int target){\n int ans[] = {0, 0};\n for (int i = 0; i < nums.length; i++){\n for (int j = i + 1; j < nums.length; j++){\n if (nums[i] + nums[j] == target){\n ans[0] = i;\n ans[1] = j;\n return ans;\n }\n }\n }\n throw new IllegalArgumentException(\"No two sum solution\");\n }",
"public static void targetSumPair(int[] arr, int target){\n //write your code here\n Arrays.sort(arr); // O(nlogn)\n int i=0, j=arr.length-1;\n while(i < j) {\n if(arr[i]+arr[j] < target) {\n i++;\n }\n else if(arr[i] + arr[j] > target)\n j--;\n else {\n System.out.println(arr[i] + \", \" + arr[j]);\n i++; j--;\n }\n }\n }",
"public static void main(String[] args) {\n\t\tint[] array={10,20,30,40,50};\r\n\t\tint sum=50;\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tfor (int j =i+1; j < array.length; j++) {\r\n\t\t\t\tif(array[j]==sum-array[i]){\r\n\t\t\t\t\tSystem.out.println(\"(\"+array[i]+\",\"+array[j]+\")\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}"
] | [
"0.72185886",
"0.7085901",
"0.7063605",
"0.70432544",
"0.7027641",
"0.69759285",
"0.6836299",
"0.6835419",
"0.68295515",
"0.6783159",
"0.6771302",
"0.6767058",
"0.6745541",
"0.6681915",
"0.6679203",
"0.6635326",
"0.6621885",
"0.65479696",
"0.65400857",
"0.65075064",
"0.6492879",
"0.6492708",
"0.63591075",
"0.6358808",
"0.6347147",
"0.6307244",
"0.62834424",
"0.62455297",
"0.62453675",
"0.6214605",
"0.6206932",
"0.6181767",
"0.6180672",
"0.61543554",
"0.61211216",
"0.60825175",
"0.6072544",
"0.6064221",
"0.6052899",
"0.60415965",
"0.6022828",
"0.60064805",
"0.5999248",
"0.5986877",
"0.5983901",
"0.59801966",
"0.59786516",
"0.5961176",
"0.59609365",
"0.59557635",
"0.595306",
"0.5943802",
"0.5932485",
"0.59249264",
"0.5915992",
"0.5899413",
"0.5864777",
"0.5852196",
"0.5818834",
"0.5817693",
"0.57919437",
"0.57872665",
"0.577454",
"0.5767038",
"0.57647043",
"0.5761562",
"0.57490903",
"0.5745979",
"0.5720423",
"0.5718071",
"0.5716772",
"0.571096",
"0.571088",
"0.56996",
"0.5693848",
"0.5691082",
"0.56818014",
"0.5679066",
"0.5676524",
"0.56706715",
"0.5667136",
"0.56632197",
"0.56629354",
"0.5658548",
"0.5649328",
"0.56455785",
"0.5641785",
"0.56380916",
"0.5637931",
"0.56278104",
"0.5627743",
"0.56244403",
"0.5622194",
"0.5617277",
"0.5589827",
"0.556423",
"0.5547816",
"0.5547057",
"0.5544149",
"0.5542033"
] | 0.7527626 | 0 |
Instantiates a new reference range. | public ReferenceRange() {
super();
mRr = CDAFactory.eINSTANCE.createReferenceRange();
mRr.setObservationRange(getObsR());
mRr.setTypeCode(ActRelationshipType.REFV);
this.setInterpretationCode(ObservationInterpretation.NORMAL);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Range createRange();",
"abstract public Range createRange();",
"private Range() {}",
"org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();",
"private ElectronRange(String name, String reference) {\n super(\"Electron Range\", name, reference);\n }",
"Range() {}",
"CollectionRange createCollectionRange();",
"public RealRange getReferenceRange(RealRange referenceRange);",
"RangeValue createRangeValue();",
"org.hl7.fhir.ObservationReferenceRange insertNewReferenceRange(int i);",
"public Reference() {\n super();\n }",
"public ReferenceRange(org.openhealthtools.mdht.uml.cda.ReferenceRange mdht) {\n\t\tsuper(mdht.getObservationRange());\n\t\tthis.mRr = mdht;\n\t}",
"public ReferenceRange(Value value, ObservationInterpretation interpretationCode) {\n\t\tthis();\n\t\tsetValue(value);\n\t\tsetInterpretationCode(interpretationCode);\n\t}",
"public abstract Type createRangeType(ReferenceType bottom);",
"public AttributeRanges() {\n }",
"<C> CollectionRange<C> createCollectionRange();",
"public Range(int minIn, int maxIn) {\n min = minIn;\n max = maxIn;\n }",
"private Interval(T start, T end) {\n this.start = start;\n this.end = end;\n }",
"ValueRangeConstraint createValueRangeConstraint();",
"public ASTNode createReference() {\n return new ASTFunctionReference(getName(), getNumParams());\n }",
"public Intervals(T begin, T end) {\n this(new Interval<T>(begin, end));\n }",
"public Interval(Instant begin, Instant end) {\n this.begin = begin;\n this.end = end;\n }",
"public Range(int first, int last) throws InvalidRangeException {\n this(null, first, last, 1);\n }",
"public Interval(long begin, long end) {\n this.setBegin(java.time.Instant.ofEpochMilli(begin));\n this.setEnd(java.time.Instant.ofEpochMilli(end));\n }",
"public SetOfRanges() {\n RangeSet = new Vector();\n }",
"public Range(int length) {\n assert (length != 0);\n this.name = null;\n this.first = 0;\n this.last = length - 1;\n this.stride = 1;\n this.length = length;\n }",
"private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }",
"public void setRange(Range range) { setRange(range, true, true); }",
"private QARange cloneThis(){\n QARange retval = new QARange();\n retval.setName(this.getName());\n retval.setCardTypes(this.getCardTypes());\n retval.setCustom(this.getCustom());\n if (retval.getRangeValues()==null){\n retval.setRangeValues(new RealmList<QARangeValue>());\n }\n\n for (QARangeValue val: getRangeValues()) {\n retval.getRangeValues().add(val);\n }\n for (String cardType : getSupportedCardList()){\n retval.getSupportedCardList().add(cardType);\n }\n return retval;\n }",
"public RangeRandom(final float min, final float max) {\n this.max = max;\n this.min = min;\n this.random = new Random(System.nanoTime());\n }",
"public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }",
"RangeOfValuesType createRangeOfValuesType();",
"public Range(String name, int first, int last) throws InvalidRangeException {\n this(name, first, last, 1);\n }",
"public static Range make(int first, int last) {\n try {\n return new Range(first, last);\n } catch (InvalidRangeException e) {\n throw new RuntimeException(e); // cant happen if last >= first\n }\n }",
"public LongRange(Number number1, Number number2) {\n/* 132 */ if (number1 == null || number2 == null) {\n/* 133 */ throw new IllegalArgumentException(\"The numbers must not be null\");\n/* */ }\n/* 135 */ long number1val = number1.longValue();\n/* 136 */ long number2val = number2.longValue();\n/* 137 */ if (number2val < number1val) {\n/* 138 */ this.min = number2val;\n/* 139 */ this.max = number1val;\n/* 140 */ if (number2 instanceof Long) {\n/* 141 */ this.minObject = (Long)number2;\n/* */ }\n/* 143 */ if (number1 instanceof Long) {\n/* 144 */ this.maxObject = (Long)number1;\n/* */ }\n/* */ } else {\n/* 147 */ this.min = number1val;\n/* 148 */ this.max = number2val;\n/* 149 */ if (number1 instanceof Long) {\n/* 150 */ this.minObject = (Long)number1;\n/* */ }\n/* 152 */ if (number2 instanceof Long) {\n/* 153 */ this.maxObject = (Long)number2;\n/* */ }\n/* */ } \n/* */ }",
"private Range(String name, int length) {\n assert (length != 0);\n this.name = name;\n this.first = 0;\n this.last = length - 1;\n this.stride = 1;\n this.length = length;\n }",
"default AddressRange range(Address address, long length) {\n\t\ttry {\n\t\t\treturn new AddressRangeImpl(address, length);\n\t\t}\n\t\tcatch (AddressOverflowException e) {\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"ReferenceRealization createReferenceRealization();",
"public PortRange() {\n }",
"public LongRange(Number number) {\n/* 87 */ if (number == null) {\n/* 88 */ throw new IllegalArgumentException(\"The number must not be null\");\n/* */ }\n/* 90 */ this.min = number.longValue();\n/* 91 */ this.max = number.longValue();\n/* 92 */ if (number instanceof Long) {\n/* 93 */ this.minObject = (Long)number;\n/* 94 */ this.maxObject = (Long)number;\n/* */ } \n/* */ }",
"public void setRange(Uri range)\n {\n this.range = range;\n }",
"public Range(Double val) {\n\t\tminSum = maxSum = val;\n\t\tupdated = false;\n\t}",
"private MCTypeReference<? extends MCTypeSymbol> initTypeRefASTRange(ASTPort node, StringBuilder typeName, ASTRange astType) {\n typeName.append(\"SIUnitRangesType\");\n Log.debug(astType.toString(), \"Type:\");\n Log.debug(typeName.toString(), \"TypeName:\");\n\n SIUnitRangesSymbolReference ref = SIUnitRangesSymbolReference.constructSIUnitRangesSymbolReference(astType);\n return ref;\n }",
"public Interval(LocalDateTime begin, LocalDateTime end) {\n this.setBegin(begin.atZone(ZoneId.systemDefault()).toInstant());\n this.setEnd(end.atZone(ZoneId.systemDefault()).toInstant());\n }",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }",
"public RangeVector(RangeVector base) {\n int dimensions = base.values.length;\n this.values = Arrays.copyOf(base.values, dimensions);\n this.upper = Arrays.copyOf(base.upper, dimensions);\n this.lower = Arrays.copyOf(base.lower, dimensions);\n }",
"@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }",
"public CellReference(Cell cell) {\n\t\tthis(cell, false, false);\n\t}",
"public TriggerReference (Trigger trigger, Slice value) {\n this.trigger = trigger;\n this.value = value;\n }",
"public ItemReference alloc();",
"public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }",
"public Interval(long start, long length, long max) {\n super();\n if (0 >= max) throw new IllegalArgumentException();\n if (0 > start || max <= start) throw new IllegalArgumentException();\n if (0 >= length) throw new IllegalArgumentException();\n if (max < start + length) throw new IllegalArgumentException();\n this.start = start;\n this.max = max;\n this.length = length;\n }",
"@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"private MCTypeReference<? extends MCTypeSymbol> initTypeRefASTRanges(ASTPort node, StringBuilder typeName, ASTRanges astType) {\n typeName.append(\"SIUnitRangesType\");\n Log.debug(astType.toString(), \"Type:\");\n Log.debug(typeName.toString(), \"TypeName:\");\n\n SIUnitRangesSymbolReference ref = SIUnitRangesSymbolReference.constructSIUnitRangesSymbolReference(astType.getRanges());\n return ref;\n }",
"public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }",
"Between createBetween();",
"ReferenceProperty createReferenceProperty();",
"@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}",
"@Override\n public TextRegion createLineRange(int startLineInclusive, int endLineInclusive) {\n return base.createLineRange(startLineInclusive, endLineInclusive);\n }",
"public Uri getRange()\n {\n return range;\n }",
"public DoubleBoundedRangeModel()\n {\n this(0.0, 0.0, 0.0, 1.0, 10);\n }",
"@Override\r\n public void addRangeClass(AgeClass rgCls)\r\n {\n \r\n range.add(rgCls);\r\n }",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange addNewSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange)get_store().add_element_user(SLDRG$8);\n return target;\n }\n }",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"public static Reference create(IFile file) {\n return new Reference(file.getProject(), getMapKey(file));\n }",
"public ADocument(Number min, Number max) {\n this.min = min;\n this.max = max;\n\n if (min.getClass().equals(Byte.class)) {\n currentVal = new Byte((byte) 0);\n } else {\n if (min.getClass().equals(Short.class)) {\n currentVal = new Short((short) 0);\n } else {\n if (min.getClass().equals(Integer.class)) {\n currentVal = new Integer(0);\n } else {\n if (min.getClass().equals(Long.class)) {\n currentVal = new Long(0L);\n } else {\n if (min.getClass().equals(Float.class)) {\n currentVal = new Float(0f);\n } else {\n currentVal = new Double(0d);\n }\n }\n }\n }\n }\n }",
"public Guide create() {\n\t\tfinal Guide res = super.create(Guide.class);\n\n\t\tres.setIncidents(new HashSet<Incident>());\n\t\tres.setExhibitions(new HashSet<Exhibition>());\n\n\t\treturn res;\n\t}",
"public SummaryRanges() {\n tree = new TreeMap<>();\n }",
"void setReferenceRangeArray(org.hl7.fhir.ObservationReferenceRange[] referenceRangeArray);",
"public static AddressRange toRange(Address min, Address max) {\n\t\tif (min.compareTo(max) > 0) {\n\t\t\tthrow new IllegalArgumentException(\"min must precede max\");\n\t\t}\n\t\treturn new AddressRangeImpl(min, max);\n\t}",
"public RangeSlider(int min, int max) {\n super(min, max);\n initSlider();\n }",
"public Builder withStartFrom(final RefLimit start) {\n\t\t\tthis.startFrom = start == null? RefLimit.buildEmpty() : start;\n\t\t\treturn this;\n\t\t}",
"public Rectangle() {\n this(50, 40);\n }",
"private void setReference(String ref) {\n Set<String> allRefs = getAllReferenceNames();\n if (!allRefs.contains(ref) && allRefs.contains(\"chr\" + ref)) {\n ref = \"chr\" + ref;\n }\n currentReference = ref;\n Genome loadedGenome = GenomeController.getInstance().getGenome();\n setMaxRange(new Range(1, loadedGenome.getLength()));\n setRange(1, Math.min(1000, loadedGenome.getLength()));\n }",
"public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}",
"void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }",
"ReferenceLink createReferenceLink();",
"public DateRange getDateRange();",
"public CopyingRangeMarker(int offset, int length) {\n super(offset, length);\n }",
"private BytesReference newBytesReference(int length, int offset) throws IOException {\n final BytesStreamOutput out = new BytesStreamOutput(length + offset);\n for (int i = 0; i < length + offset; i++) {\n out.writeByte((byte) random().nextInt(1 << 8));\n }\n assertEquals(length + offset, out.size());\n BytesArray ref = new BytesArray(out.bytes().toBytesRef().bytes, offset, length);\n assertEquals(length, ref.length());\n assertTrue(ref instanceof BytesArray);\n assertThat(ref.length(), Matchers.equalTo(length));\n return ref;\n }",
"public RangeSlider() {\n initSlider();\n }",
"public Mercator(double refLon, double refLat,\n\t\t\tdouble mPerPixel, double scaleLat, int range) {\n\t\tthis(refLon, refLat, mPerPixel, scaleLat, 0, range);\n\t}",
"VocNoun getRange();",
"public Content createReferenceContent(int timestart, ArrayList<Point3f> ref){\r\n\t\tContent refcont;\r\n\t\tif (ref.size() == 1)\r\n\t\t\t// reference: single point\r\n\t\t\trefcont = createPointReferenceContent(timestart, ref);\r\n\t\telse\r\n\t\t\t//reference: a bar\r\n\t\t\trefcont = createLineReferenceContent(timestart, ref);\r\n\t\treturn refcont;\r\n\t}",
"private String generateRangeURL(Integer instanceID, Integer startRange, Integer endRange) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/range?start_range=\"\n\t\t\t\t+ Integer.toString(startRange) + \"&end_range=\" + Integer.toString(endRange);\n\t}",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"@Override\n protected ReferenceArgumentCollection makeReferenceArgumentCollection() {\n return new ReferenceArgumentCollection() {\n @Argument(doc = \"The reference sequence file.\", optional=true, common=false)\n public File REFERENCE_SEQUENCE;\n\n @Override\n public File getReferenceFile() {\n return REFERENCE_SEQUENCE;\n }\n };\n }",
"protected abstract R toRange(D lower, D upper);",
"public Range deceasedRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_DECEASED_RANGE);\n }",
"@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"public Book(final String name, final int power, final int minRange, final int maxRange) {\n super(name, power, minRange, maxRange);\n }",
"public static Range make(String name, int len) {\n try {\n return new Range(name, 0, len - 1, 1);\n } catch (InvalidRangeException e) {\n throw new RuntimeException(e); // cant happen if len > 0\n }\n }",
"public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}",
"Duration(Integer duration){\n\t\t_minimum = duration;\n\t\t_maximum = duration;\n\t\t_range = new Range(_minimum, _maximum);\n\t}",
"ReferenceEmbed createReferenceEmbed();",
"public Dependency(final Reference reference) {\r\n\tthis(reference.getGroupId(), reference.getArtifactId(), reference.getVersion());\r\n }",
"public AddressInfo getRange() {\r\n return range;\r\n }",
"DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }"
] | [
"0.7162287",
"0.7039562",
"0.69284123",
"0.6701876",
"0.6660831",
"0.65163034",
"0.6454936",
"0.6406084",
"0.63112086",
"0.6023787",
"0.6015675",
"0.5982329",
"0.5883854",
"0.5869817",
"0.5746553",
"0.57311714",
"0.5695252",
"0.5688207",
"0.56816196",
"0.56304526",
"0.55818456",
"0.5570804",
"0.5527387",
"0.55186146",
"0.55097574",
"0.5481796",
"0.5440134",
"0.5440036",
"0.54237986",
"0.5404054",
"0.53926814",
"0.5386534",
"0.53622234",
"0.53491825",
"0.5347458",
"0.53148514",
"0.5314463",
"0.5298889",
"0.5298639",
"0.5277247",
"0.5259436",
"0.5254315",
"0.52524245",
"0.52463245",
"0.52351296",
"0.5221422",
"0.52198106",
"0.52189815",
"0.5207321",
"0.5203853",
"0.51948535",
"0.5184532",
"0.51789993",
"0.51714134",
"0.5163116",
"0.51605934",
"0.51484174",
"0.5146296",
"0.51186556",
"0.5087188",
"0.5085722",
"0.5075191",
"0.5071065",
"0.5069416",
"0.5064344",
"0.5059039",
"0.50558734",
"0.50552255",
"0.5049127",
"0.50411576",
"0.5028418",
"0.5021007",
"0.50196433",
"0.50163186",
"0.5004485",
"0.5002305",
"0.49988535",
"0.4997677",
"0.49869385",
"0.4983882",
"0.49744824",
"0.49727672",
"0.49700764",
"0.49641076",
"0.496037",
"0.4947129",
"0.49438307",
"0.49412715",
"0.49402454",
"0.49402443",
"0.4938288",
"0.49376875",
"0.4936926",
"0.49364883",
"0.49333632",
"0.49003237",
"0.4897915",
"0.48961553",
"0.48915878",
"0.48876718"
] | 0.7756733 | 0 |
Instantiates a new reference range. | public ReferenceRange(org.openhealthtools.mdht.uml.cda.ReferenceRange mdht) {
super(mdht.getObservationRange());
this.mRr = mdht;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ReferenceRange() {\n\t\tsuper();\n\t\tmRr = CDAFactory.eINSTANCE.createReferenceRange();\n\t\tmRr.setObservationRange(getObsR());\n\t\tmRr.setTypeCode(ActRelationshipType.REFV);\n\t\tthis.setInterpretationCode(ObservationInterpretation.NORMAL);\n\t}",
"Range createRange();",
"abstract public Range createRange();",
"private Range() {}",
"org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();",
"private ElectronRange(String name, String reference) {\n super(\"Electron Range\", name, reference);\n }",
"Range() {}",
"CollectionRange createCollectionRange();",
"public RealRange getReferenceRange(RealRange referenceRange);",
"RangeValue createRangeValue();",
"org.hl7.fhir.ObservationReferenceRange insertNewReferenceRange(int i);",
"public Reference() {\n super();\n }",
"public ReferenceRange(Value value, ObservationInterpretation interpretationCode) {\n\t\tthis();\n\t\tsetValue(value);\n\t\tsetInterpretationCode(interpretationCode);\n\t}",
"public abstract Type createRangeType(ReferenceType bottom);",
"public AttributeRanges() {\n }",
"<C> CollectionRange<C> createCollectionRange();",
"public Range(int minIn, int maxIn) {\n min = minIn;\n max = maxIn;\n }",
"private Interval(T start, T end) {\n this.start = start;\n this.end = end;\n }",
"ValueRangeConstraint createValueRangeConstraint();",
"public ASTNode createReference() {\n return new ASTFunctionReference(getName(), getNumParams());\n }",
"public Intervals(T begin, T end) {\n this(new Interval<T>(begin, end));\n }",
"public Interval(Instant begin, Instant end) {\n this.begin = begin;\n this.end = end;\n }",
"public Range(int first, int last) throws InvalidRangeException {\n this(null, first, last, 1);\n }",
"public Interval(long begin, long end) {\n this.setBegin(java.time.Instant.ofEpochMilli(begin));\n this.setEnd(java.time.Instant.ofEpochMilli(end));\n }",
"public SetOfRanges() {\n RangeSet = new Vector();\n }",
"public Range(int length) {\n assert (length != 0);\n this.name = null;\n this.first = 0;\n this.last = length - 1;\n this.stride = 1;\n this.length = length;\n }",
"private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }",
"public void setRange(Range range) { setRange(range, true, true); }",
"private QARange cloneThis(){\n QARange retval = new QARange();\n retval.setName(this.getName());\n retval.setCardTypes(this.getCardTypes());\n retval.setCustom(this.getCustom());\n if (retval.getRangeValues()==null){\n retval.setRangeValues(new RealmList<QARangeValue>());\n }\n\n for (QARangeValue val: getRangeValues()) {\n retval.getRangeValues().add(val);\n }\n for (String cardType : getSupportedCardList()){\n retval.getSupportedCardList().add(cardType);\n }\n return retval;\n }",
"public RangeRandom(final float min, final float max) {\n this.max = max;\n this.min = min;\n this.random = new Random(System.nanoTime());\n }",
"public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }",
"RangeOfValuesType createRangeOfValuesType();",
"public Range(String name, int first, int last) throws InvalidRangeException {\n this(name, first, last, 1);\n }",
"public static Range make(int first, int last) {\n try {\n return new Range(first, last);\n } catch (InvalidRangeException e) {\n throw new RuntimeException(e); // cant happen if last >= first\n }\n }",
"public LongRange(Number number1, Number number2) {\n/* 132 */ if (number1 == null || number2 == null) {\n/* 133 */ throw new IllegalArgumentException(\"The numbers must not be null\");\n/* */ }\n/* 135 */ long number1val = number1.longValue();\n/* 136 */ long number2val = number2.longValue();\n/* 137 */ if (number2val < number1val) {\n/* 138 */ this.min = number2val;\n/* 139 */ this.max = number1val;\n/* 140 */ if (number2 instanceof Long) {\n/* 141 */ this.minObject = (Long)number2;\n/* */ }\n/* 143 */ if (number1 instanceof Long) {\n/* 144 */ this.maxObject = (Long)number1;\n/* */ }\n/* */ } else {\n/* 147 */ this.min = number1val;\n/* 148 */ this.max = number2val;\n/* 149 */ if (number1 instanceof Long) {\n/* 150 */ this.minObject = (Long)number1;\n/* */ }\n/* 152 */ if (number2 instanceof Long) {\n/* 153 */ this.maxObject = (Long)number2;\n/* */ }\n/* */ } \n/* */ }",
"private Range(String name, int length) {\n assert (length != 0);\n this.name = name;\n this.first = 0;\n this.last = length - 1;\n this.stride = 1;\n this.length = length;\n }",
"default AddressRange range(Address address, long length) {\n\t\ttry {\n\t\t\treturn new AddressRangeImpl(address, length);\n\t\t}\n\t\tcatch (AddressOverflowException e) {\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"public PortRange() {\n }",
"ReferenceRealization createReferenceRealization();",
"public LongRange(Number number) {\n/* 87 */ if (number == null) {\n/* 88 */ throw new IllegalArgumentException(\"The number must not be null\");\n/* */ }\n/* 90 */ this.min = number.longValue();\n/* 91 */ this.max = number.longValue();\n/* 92 */ if (number instanceof Long) {\n/* 93 */ this.minObject = (Long)number;\n/* 94 */ this.maxObject = (Long)number;\n/* */ } \n/* */ }",
"public void setRange(Uri range)\n {\n this.range = range;\n }",
"public Range(Double val) {\n\t\tminSum = maxSum = val;\n\t\tupdated = false;\n\t}",
"private MCTypeReference<? extends MCTypeSymbol> initTypeRefASTRange(ASTPort node, StringBuilder typeName, ASTRange astType) {\n typeName.append(\"SIUnitRangesType\");\n Log.debug(astType.toString(), \"Type:\");\n Log.debug(typeName.toString(), \"TypeName:\");\n\n SIUnitRangesSymbolReference ref = SIUnitRangesSymbolReference.constructSIUnitRangesSymbolReference(astType);\n return ref;\n }",
"public Interval(LocalDateTime begin, LocalDateTime end) {\n this.setBegin(begin.atZone(ZoneId.systemDefault()).toInstant());\n this.setEnd(end.atZone(ZoneId.systemDefault()).toInstant());\n }",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }",
"public RangeVector(RangeVector base) {\n int dimensions = base.values.length;\n this.values = Arrays.copyOf(base.values, dimensions);\n this.upper = Arrays.copyOf(base.upper, dimensions);\n this.lower = Arrays.copyOf(base.lower, dimensions);\n }",
"@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }",
"public CellReference(Cell cell) {\n\t\tthis(cell, false, false);\n\t}",
"public TriggerReference (Trigger trigger, Slice value) {\n this.trigger = trigger;\n this.value = value;\n }",
"public ItemReference alloc();",
"public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }",
"public Interval(long start, long length, long max) {\n super();\n if (0 >= max) throw new IllegalArgumentException();\n if (0 > start || max <= start) throw new IllegalArgumentException();\n if (0 >= length) throw new IllegalArgumentException();\n if (max < start + length) throw new IllegalArgumentException();\n this.start = start;\n this.max = max;\n this.length = length;\n }",
"@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"private MCTypeReference<? extends MCTypeSymbol> initTypeRefASTRanges(ASTPort node, StringBuilder typeName, ASTRanges astType) {\n typeName.append(\"SIUnitRangesType\");\n Log.debug(astType.toString(), \"Type:\");\n Log.debug(typeName.toString(), \"TypeName:\");\n\n SIUnitRangesSymbolReference ref = SIUnitRangesSymbolReference.constructSIUnitRangesSymbolReference(astType.getRanges());\n return ref;\n }",
"public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }",
"Between createBetween();",
"ReferenceProperty createReferenceProperty();",
"@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}",
"@Override\n public TextRegion createLineRange(int startLineInclusive, int endLineInclusive) {\n return base.createLineRange(startLineInclusive, endLineInclusive);\n }",
"public Uri getRange()\n {\n return range;\n }",
"public DoubleBoundedRangeModel()\n {\n this(0.0, 0.0, 0.0, 1.0, 10);\n }",
"@Override\r\n public void addRangeClass(AgeClass rgCls)\r\n {\n \r\n range.add(rgCls);\r\n }",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange addNewSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange)get_store().add_element_user(SLDRG$8);\n return target;\n }\n }",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"public ADocument(Number min, Number max) {\n this.min = min;\n this.max = max;\n\n if (min.getClass().equals(Byte.class)) {\n currentVal = new Byte((byte) 0);\n } else {\n if (min.getClass().equals(Short.class)) {\n currentVal = new Short((short) 0);\n } else {\n if (min.getClass().equals(Integer.class)) {\n currentVal = new Integer(0);\n } else {\n if (min.getClass().equals(Long.class)) {\n currentVal = new Long(0L);\n } else {\n if (min.getClass().equals(Float.class)) {\n currentVal = new Float(0f);\n } else {\n currentVal = new Double(0d);\n }\n }\n }\n }\n }\n }",
"public static Reference create(IFile file) {\n return new Reference(file.getProject(), getMapKey(file));\n }",
"public Guide create() {\n\t\tfinal Guide res = super.create(Guide.class);\n\n\t\tres.setIncidents(new HashSet<Incident>());\n\t\tres.setExhibitions(new HashSet<Exhibition>());\n\n\t\treturn res;\n\t}",
"public SummaryRanges() {\n tree = new TreeMap<>();\n }",
"void setReferenceRangeArray(org.hl7.fhir.ObservationReferenceRange[] referenceRangeArray);",
"public static AddressRange toRange(Address min, Address max) {\n\t\tif (min.compareTo(max) > 0) {\n\t\t\tthrow new IllegalArgumentException(\"min must precede max\");\n\t\t}\n\t\treturn new AddressRangeImpl(min, max);\n\t}",
"public RangeSlider(int min, int max) {\n super(min, max);\n initSlider();\n }",
"public Builder withStartFrom(final RefLimit start) {\n\t\t\tthis.startFrom = start == null? RefLimit.buildEmpty() : start;\n\t\t\treturn this;\n\t\t}",
"public Rectangle() {\n this(50, 40);\n }",
"private void setReference(String ref) {\n Set<String> allRefs = getAllReferenceNames();\n if (!allRefs.contains(ref) && allRefs.contains(\"chr\" + ref)) {\n ref = \"chr\" + ref;\n }\n currentReference = ref;\n Genome loadedGenome = GenomeController.getInstance().getGenome();\n setMaxRange(new Range(1, loadedGenome.getLength()));\n setRange(1, Math.min(1000, loadedGenome.getLength()));\n }",
"public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}",
"void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }",
"ReferenceLink createReferenceLink();",
"public DateRange getDateRange();",
"public CopyingRangeMarker(int offset, int length) {\n super(offset, length);\n }",
"private BytesReference newBytesReference(int length, int offset) throws IOException {\n final BytesStreamOutput out = new BytesStreamOutput(length + offset);\n for (int i = 0; i < length + offset; i++) {\n out.writeByte((byte) random().nextInt(1 << 8));\n }\n assertEquals(length + offset, out.size());\n BytesArray ref = new BytesArray(out.bytes().toBytesRef().bytes, offset, length);\n assertEquals(length, ref.length());\n assertTrue(ref instanceof BytesArray);\n assertThat(ref.length(), Matchers.equalTo(length));\n return ref;\n }",
"public RangeSlider() {\n initSlider();\n }",
"public Mercator(double refLon, double refLat,\n\t\t\tdouble mPerPixel, double scaleLat, int range) {\n\t\tthis(refLon, refLat, mPerPixel, scaleLat, 0, range);\n\t}",
"VocNoun getRange();",
"public Content createReferenceContent(int timestart, ArrayList<Point3f> ref){\r\n\t\tContent refcont;\r\n\t\tif (ref.size() == 1)\r\n\t\t\t// reference: single point\r\n\t\t\trefcont = createPointReferenceContent(timestart, ref);\r\n\t\telse\r\n\t\t\t//reference: a bar\r\n\t\t\trefcont = createLineReferenceContent(timestart, ref);\r\n\t\treturn refcont;\r\n\t}",
"private String generateRangeURL(Integer instanceID, Integer startRange, Integer endRange) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/range?start_range=\"\n\t\t\t\t+ Integer.toString(startRange) + \"&end_range=\" + Integer.toString(endRange);\n\t}",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"protected abstract R toRange(D lower, D upper);",
"@Override\n protected ReferenceArgumentCollection makeReferenceArgumentCollection() {\n return new ReferenceArgumentCollection() {\n @Argument(doc = \"The reference sequence file.\", optional=true, common=false)\n public File REFERENCE_SEQUENCE;\n\n @Override\n public File getReferenceFile() {\n return REFERENCE_SEQUENCE;\n }\n };\n }",
"@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"public Range deceasedRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_DECEASED_RANGE);\n }",
"public Book(final String name, final int power, final int minRange, final int maxRange) {\n super(name, power, minRange, maxRange);\n }",
"public static Range make(String name, int len) {\n try {\n return new Range(name, 0, len - 1, 1);\n } catch (InvalidRangeException e) {\n throw new RuntimeException(e); // cant happen if len > 0\n }\n }",
"public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}",
"Duration(Integer duration){\n\t\t_minimum = duration;\n\t\t_maximum = duration;\n\t\t_range = new Range(_minimum, _maximum);\n\t}",
"ReferenceEmbed createReferenceEmbed();",
"public Dependency(final Reference reference) {\r\n\tthis(reference.getGroupId(), reference.getArtifactId(), reference.getVersion());\r\n }",
"public AddressInfo getRange() {\r\n return range;\r\n }",
"public DoubleGenerator range(double min, double max) {\n this.max = max;\n this.min = min;\n return this;\n }"
] | [
"0.77565277",
"0.71617514",
"0.7039205",
"0.69282246",
"0.6701104",
"0.66612965",
"0.65160656",
"0.6453857",
"0.64041346",
"0.63113886",
"0.60233617",
"0.6014097",
"0.5883209",
"0.58695835",
"0.5746848",
"0.5730704",
"0.56958395",
"0.56882715",
"0.5682752",
"0.5629529",
"0.55824196",
"0.55711514",
"0.5527221",
"0.55187535",
"0.55092347",
"0.54825205",
"0.5440688",
"0.54398763",
"0.5424289",
"0.5404567",
"0.5393762",
"0.5388409",
"0.5362048",
"0.5349021",
"0.5348788",
"0.53152454",
"0.53139967",
"0.52989894",
"0.52964354",
"0.52784795",
"0.5258427",
"0.52553177",
"0.5251292",
"0.52471906",
"0.523494",
"0.5221657",
"0.52191913",
"0.5218581",
"0.52074224",
"0.520163",
"0.51959103",
"0.5185822",
"0.517889",
"0.5170214",
"0.51625645",
"0.51614815",
"0.51474625",
"0.5146037",
"0.51185364",
"0.508677",
"0.50852066",
"0.5073932",
"0.50727105",
"0.5067999",
"0.50626534",
"0.5058683",
"0.50562835",
"0.50554174",
"0.50501037",
"0.504138",
"0.50282866",
"0.50200486",
"0.50197786",
"0.5014386",
"0.50045264",
"0.5000436",
"0.49997535",
"0.49984196",
"0.49849734",
"0.49832958",
"0.49752805",
"0.49721232",
"0.49696484",
"0.49641696",
"0.4960025",
"0.49462593",
"0.49427903",
"0.49411094",
"0.49402642",
"0.49385813",
"0.49383366",
"0.493809",
"0.49378148",
"0.49362564",
"0.493383",
"0.49007934",
"0.4896968",
"0.48953676",
"0.4890604",
"0.48880234"
] | 0.59815586 | 12 |
Instantiates a new reference range. | public ReferenceRange(Value value, ObservationInterpretation interpretationCode) {
this();
setValue(value);
setInterpretationCode(interpretationCode);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ReferenceRange() {\n\t\tsuper();\n\t\tmRr = CDAFactory.eINSTANCE.createReferenceRange();\n\t\tmRr.setObservationRange(getObsR());\n\t\tmRr.setTypeCode(ActRelationshipType.REFV);\n\t\tthis.setInterpretationCode(ObservationInterpretation.NORMAL);\n\t}",
"Range createRange();",
"abstract public Range createRange();",
"private Range() {}",
"org.hl7.fhir.ObservationReferenceRange addNewReferenceRange();",
"private ElectronRange(String name, String reference) {\n super(\"Electron Range\", name, reference);\n }",
"Range() {}",
"CollectionRange createCollectionRange();",
"public RealRange getReferenceRange(RealRange referenceRange);",
"RangeValue createRangeValue();",
"org.hl7.fhir.ObservationReferenceRange insertNewReferenceRange(int i);",
"public Reference() {\n super();\n }",
"public ReferenceRange(org.openhealthtools.mdht.uml.cda.ReferenceRange mdht) {\n\t\tsuper(mdht.getObservationRange());\n\t\tthis.mRr = mdht;\n\t}",
"public abstract Type createRangeType(ReferenceType bottom);",
"public AttributeRanges() {\n }",
"<C> CollectionRange<C> createCollectionRange();",
"public Range(int minIn, int maxIn) {\n min = minIn;\n max = maxIn;\n }",
"private Interval(T start, T end) {\n this.start = start;\n this.end = end;\n }",
"ValueRangeConstraint createValueRangeConstraint();",
"public ASTNode createReference() {\n return new ASTFunctionReference(getName(), getNumParams());\n }",
"public Intervals(T begin, T end) {\n this(new Interval<T>(begin, end));\n }",
"public Interval(Instant begin, Instant end) {\n this.begin = begin;\n this.end = end;\n }",
"public Range(int first, int last) throws InvalidRangeException {\n this(null, first, last, 1);\n }",
"public Interval(long begin, long end) {\n this.setBegin(java.time.Instant.ofEpochMilli(begin));\n this.setEnd(java.time.Instant.ofEpochMilli(end));\n }",
"public SetOfRanges() {\n RangeSet = new Vector();\n }",
"public Range(int length) {\n assert (length != 0);\n this.name = null;\n this.first = 0;\n this.last = length - 1;\n this.stride = 1;\n this.length = length;\n }",
"private Range() {\n this.length = 0;\n this.first = 0;\n this.last = -1;\n this.stride = 1;\n this.name = \"EMPTY\";\n }",
"public void setRange(Range range) { setRange(range, true, true); }",
"private QARange cloneThis(){\n QARange retval = new QARange();\n retval.setName(this.getName());\n retval.setCardTypes(this.getCardTypes());\n retval.setCustom(this.getCustom());\n if (retval.getRangeValues()==null){\n retval.setRangeValues(new RealmList<QARangeValue>());\n }\n\n for (QARangeValue val: getRangeValues()) {\n retval.getRangeValues().add(val);\n }\n for (String cardType : getSupportedCardList()){\n retval.getSupportedCardList().add(cardType);\n }\n return retval;\n }",
"public RangeRandom(final float min, final float max) {\n this.max = max;\n this.min = min;\n this.random = new Random(System.nanoTime());\n }",
"public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }",
"RangeOfValuesType createRangeOfValuesType();",
"public Range(String name, int first, int last) throws InvalidRangeException {\n this(name, first, last, 1);\n }",
"public static Range make(int first, int last) {\n try {\n return new Range(first, last);\n } catch (InvalidRangeException e) {\n throw new RuntimeException(e); // cant happen if last >= first\n }\n }",
"public LongRange(Number number1, Number number2) {\n/* 132 */ if (number1 == null || number2 == null) {\n/* 133 */ throw new IllegalArgumentException(\"The numbers must not be null\");\n/* */ }\n/* 135 */ long number1val = number1.longValue();\n/* 136 */ long number2val = number2.longValue();\n/* 137 */ if (number2val < number1val) {\n/* 138 */ this.min = number2val;\n/* 139 */ this.max = number1val;\n/* 140 */ if (number2 instanceof Long) {\n/* 141 */ this.minObject = (Long)number2;\n/* */ }\n/* 143 */ if (number1 instanceof Long) {\n/* 144 */ this.maxObject = (Long)number1;\n/* */ }\n/* */ } else {\n/* 147 */ this.min = number1val;\n/* 148 */ this.max = number2val;\n/* 149 */ if (number1 instanceof Long) {\n/* 150 */ this.minObject = (Long)number1;\n/* */ }\n/* 152 */ if (number2 instanceof Long) {\n/* 153 */ this.maxObject = (Long)number2;\n/* */ }\n/* */ } \n/* */ }",
"private Range(String name, int length) {\n assert (length != 0);\n this.name = name;\n this.first = 0;\n this.last = length - 1;\n this.stride = 1;\n this.length = length;\n }",
"default AddressRange range(Address address, long length) {\n\t\ttry {\n\t\t\treturn new AddressRangeImpl(address, length);\n\t\t}\n\t\tcatch (AddressOverflowException e) {\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"ReferenceRealization createReferenceRealization();",
"public PortRange() {\n }",
"public LongRange(Number number) {\n/* 87 */ if (number == null) {\n/* 88 */ throw new IllegalArgumentException(\"The number must not be null\");\n/* */ }\n/* 90 */ this.min = number.longValue();\n/* 91 */ this.max = number.longValue();\n/* 92 */ if (number instanceof Long) {\n/* 93 */ this.minObject = (Long)number;\n/* 94 */ this.maxObject = (Long)number;\n/* */ } \n/* */ }",
"public void setRange(Uri range)\n {\n this.range = range;\n }",
"public Range(Double val) {\n\t\tminSum = maxSum = val;\n\t\tupdated = false;\n\t}",
"private MCTypeReference<? extends MCTypeSymbol> initTypeRefASTRange(ASTPort node, StringBuilder typeName, ASTRange astType) {\n typeName.append(\"SIUnitRangesType\");\n Log.debug(astType.toString(), \"Type:\");\n Log.debug(typeName.toString(), \"TypeName:\");\n\n SIUnitRangesSymbolReference ref = SIUnitRangesSymbolReference.constructSIUnitRangesSymbolReference(astType);\n return ref;\n }",
"public Interval(LocalDateTime begin, LocalDateTime end) {\n this.setBegin(begin.atZone(ZoneId.systemDefault()).toInstant());\n this.setEnd(end.atZone(ZoneId.systemDefault()).toInstant());\n }",
"@Test(timeout = 4000)\n public void test15() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n assertTrue(range0.isEmpty());\n \n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(1233L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n long long0 = range1.getBegin(range_CoordinateSystem0);\n assertFalse(range1.isEmpty());\n assertEquals(0L, long0);\n \n Range.Comparators.values();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n Range range2 = Range.of(range_CoordinateSystem1, 2147483647L, 2147483647L);\n assertFalse(range2.isEmpty());\n }",
"public RangeVector(RangeVector base) {\n int dimensions = base.values.length;\n this.values = Arrays.copyOf(base.values, dimensions);\n this.upper = Arrays.copyOf(base.upper, dimensions);\n this.lower = Arrays.copyOf(base.lower, dimensions);\n }",
"@Test(timeout = 4000)\n public void test001() throws Throwable {\n Range range0 = Range.ofLength(4294967295L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n }",
"public CellReference(Cell cell) {\n\t\tthis(cell, false, false);\n\t}",
"public TriggerReference (Trigger trigger, Slice value) {\n this.trigger = trigger;\n this.value = value;\n }",
"public ItemReference alloc();",
"public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }",
"public Interval(long start, long length, long max) {\n super();\n if (0 >= max) throw new IllegalArgumentException();\n if (0 > start || max <= start) throw new IllegalArgumentException();\n if (0 >= length) throw new IllegalArgumentException();\n if (max < start + length) throw new IllegalArgumentException();\n this.start = start;\n this.max = max;\n this.length = length;\n }",
"@Test(timeout = 4000)\n public void test40() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n Range range0 = Range.of(0L, 0L);\n Range.Builder range_Builder0 = new Range.Builder(range0);\n Range.Builder range_Builder1 = range_Builder0.copy();\n Range range1 = range_Builder1.build();\n range_Builder1.shift(9223372036854775807L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n linkedList0.add(range0);\n Range.Builder range_Builder2 = range_Builder0.expandBegin((-636L));\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n range0.getBegin(range_CoordinateSystem1);\n range0.equals(linkedList0);\n Range.of(2139L, 2139L);\n Range range2 = Range.of(1124L);\n List<Range> list0 = range1.complement(range2);\n Range range3 = Range.of(range_CoordinateSystem0, (-636L), 1734L);\n range3.complementFrom(list0);\n Range.of(9223372036854775807L);\n Range range4 = Range.of((-23L), 0L);\n range4.equals(range3);\n range2.complement(range4);\n // Undeclared exception!\n try { \n range_Builder2.build();\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"private MCTypeReference<? extends MCTypeSymbol> initTypeRefASTRanges(ASTPort node, StringBuilder typeName, ASTRanges astType) {\n typeName.append(\"SIUnitRangesType\");\n Log.debug(astType.toString(), \"Type:\");\n Log.debug(typeName.toString(), \"TypeName:\");\n\n SIUnitRangesSymbolReference ref = SIUnitRangesSymbolReference.constructSIUnitRangesSymbolReference(astType.getRanges());\n return ref;\n }",
"public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }",
"Between createBetween();",
"ReferenceProperty createReferenceProperty();",
"@Test(timeout = 4000)\n public void test057() throws Throwable {\n Range.ofLength(4294967270L);\n Range.Builder range_Builder0 = new Range.Builder(4294967270L);\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = range_Builder0.contractBegin(0L);\n Range.Builder range_Builder2 = new Range.Builder(0L);\n range_Builder0.copy();\n Range range0 = range_Builder0.build();\n range_Builder0.shift(265L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n linkedList0.add(range0);\n range_Builder0.expandBegin(1734L);\n range0.equals(range_Builder1);\n Range.Builder range_Builder3 = new Range.Builder();\n range_Builder0.copy();\n Range range1 = Range.ofLength(2147483647L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n range1.getBegin(range_CoordinateSystem0);\n Range.Comparators.values();\n // Undeclared exception!\n try { \n Range.of(range_CoordinateSystem0, 2147483647L, 430L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"public void setRange(String new_range) {\n\t\t_range = new_range;\n\t}",
"@Override\n public TextRegion createLineRange(int startLineInclusive, int endLineInclusive) {\n return base.createLineRange(startLineInclusive, endLineInclusive);\n }",
"public Uri getRange()\n {\n return range;\n }",
"public DoubleBoundedRangeModel()\n {\n this(0.0, 0.0, 0.0, 1.0, 10);\n }",
"@Override\r\n public void addRangeClass(AgeClass rgCls)\r\n {\n \r\n range.add(rgCls);\r\n }",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange addNewSldRg()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTIndexRange)get_store().add_element_user(SLDRG$8);\n return target;\n }\n }",
"public Token(int start, int end) {\n startOffset = start;\n endOffset = end;\n }",
"public static Reference create(IFile file) {\n return new Reference(file.getProject(), getMapKey(file));\n }",
"public ADocument(Number min, Number max) {\n this.min = min;\n this.max = max;\n\n if (min.getClass().equals(Byte.class)) {\n currentVal = new Byte((byte) 0);\n } else {\n if (min.getClass().equals(Short.class)) {\n currentVal = new Short((short) 0);\n } else {\n if (min.getClass().equals(Integer.class)) {\n currentVal = new Integer(0);\n } else {\n if (min.getClass().equals(Long.class)) {\n currentVal = new Long(0L);\n } else {\n if (min.getClass().equals(Float.class)) {\n currentVal = new Float(0f);\n } else {\n currentVal = new Double(0d);\n }\n }\n }\n }\n }\n }",
"public Guide create() {\n\t\tfinal Guide res = super.create(Guide.class);\n\n\t\tres.setIncidents(new HashSet<Incident>());\n\t\tres.setExhibitions(new HashSet<Exhibition>());\n\n\t\treturn res;\n\t}",
"public SummaryRanges() {\n tree = new TreeMap<>();\n }",
"void setReferenceRangeArray(org.hl7.fhir.ObservationReferenceRange[] referenceRangeArray);",
"public static AddressRange toRange(Address min, Address max) {\n\t\tif (min.compareTo(max) > 0) {\n\t\t\tthrow new IllegalArgumentException(\"min must precede max\");\n\t\t}\n\t\treturn new AddressRangeImpl(min, max);\n\t}",
"public RangeSlider(int min, int max) {\n super(min, max);\n initSlider();\n }",
"public Builder withStartFrom(final RefLimit start) {\n\t\t\tthis.startFrom = start == null? RefLimit.buildEmpty() : start;\n\t\t\treturn this;\n\t\t}",
"public Rectangle() {\n this(50, 40);\n }",
"private void setReference(String ref) {\n Set<String> allRefs = getAllReferenceNames();\n if (!allRefs.contains(ref) && allRefs.contains(\"chr\" + ref)) {\n ref = \"chr\" + ref;\n }\n currentReference = ref;\n Genome loadedGenome = GenomeController.getInstance().getGenome();\n setMaxRange(new Range(1, loadedGenome.getLength()));\n setRange(1, Math.min(1000, loadedGenome.getLength()));\n }",
"public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}",
"void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }",
"ReferenceLink createReferenceLink();",
"public DateRange getDateRange();",
"public CopyingRangeMarker(int offset, int length) {\n super(offset, length);\n }",
"private BytesReference newBytesReference(int length, int offset) throws IOException {\n final BytesStreamOutput out = new BytesStreamOutput(length + offset);\n for (int i = 0; i < length + offset; i++) {\n out.writeByte((byte) random().nextInt(1 << 8));\n }\n assertEquals(length + offset, out.size());\n BytesArray ref = new BytesArray(out.bytes().toBytesRef().bytes, offset, length);\n assertEquals(length, ref.length());\n assertTrue(ref instanceof BytesArray);\n assertThat(ref.length(), Matchers.equalTo(length));\n return ref;\n }",
"public RangeSlider() {\n initSlider();\n }",
"public Mercator(double refLon, double refLat,\n\t\t\tdouble mPerPixel, double scaleLat, int range) {\n\t\tthis(refLon, refLat, mPerPixel, scaleLat, 0, range);\n\t}",
"VocNoun getRange();",
"public Content createReferenceContent(int timestart, ArrayList<Point3f> ref){\r\n\t\tContent refcont;\r\n\t\tif (ref.size() == 1)\r\n\t\t\t// reference: single point\r\n\t\t\trefcont = createPointReferenceContent(timestart, ref);\r\n\t\telse\r\n\t\t\t//reference: a bar\r\n\t\t\trefcont = createLineReferenceContent(timestart, ref);\r\n\t\treturn refcont;\r\n\t}",
"private String generateRangeURL(Integer instanceID, Integer startRange, Integer endRange) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/range?start_range=\"\n\t\t\t\t+ Integer.toString(startRange) + \"&end_range=\" + Integer.toString(endRange);\n\t}",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long0 = (-665L);\n long long1 = 14L;\n Range.Builder range_Builder0 = new Range.Builder(14L);\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(14L, (-665L));\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"@Override\n protected ReferenceArgumentCollection makeReferenceArgumentCollection() {\n return new ReferenceArgumentCollection() {\n @Argument(doc = \"The reference sequence file.\", optional=true, common=false)\n public File REFERENCE_SEQUENCE;\n\n @Override\n public File getReferenceFile() {\n return REFERENCE_SEQUENCE;\n }\n };\n }",
"protected abstract R toRange(D lower, D upper);",
"public Range deceasedRange() {\n return getObject(Range.class, FhirPropertyNames.PROPERTY_DECEASED_RANGE);\n }",
"@Test(timeout = 4000)\n public void test26() throws Throwable {\n Range range0 = Range.of((-1264L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1264L));\n range1.getEnd();\n range1.getEnd();\n List<Range> list0 = range1.split(255L);\n range0.complementFrom(list0);\n Range range2 = Range.of(range_CoordinateSystem0, (-1264L), 0L);\n range2.endsBefore(range0);\n Long.max((-1264L), (-3100L));\n range1.equals(range0);\n Range.Comparators.values();\n range1.getEnd();\n range0.getEnd(range_CoordinateSystem0);\n Range.Builder range_Builder0 = new Range.Builder();\n Range.Builder range_Builder1 = null;\n try {\n range_Builder1 = new Range.Builder(range_CoordinateSystem0, 255L, 248L);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"public Book(final String name, final int power, final int minRange, final int maxRange) {\n super(name, power, minRange, maxRange);\n }",
"public static Range make(String name, int len) {\n try {\n return new Range(name, 0, len - 1, 1);\n } catch (InvalidRangeException e) {\n throw new RuntimeException(e); // cant happen if len > 0\n }\n }",
"public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}",
"Duration(Integer duration){\n\t\t_minimum = duration;\n\t\t_maximum = duration;\n\t\t_range = new Range(_minimum, _maximum);\n\t}",
"ReferenceEmbed createReferenceEmbed();",
"public Dependency(final Reference reference) {\r\n\tthis(reference.getGroupId(), reference.getArtifactId(), reference.getVersion());\r\n }",
"public AddressInfo getRange() {\r\n return range;\r\n }",
"DbQuery setRangeFilter(double startValue, double endValue) {\n filter = Filter.RANGE;\n filterType = FilterType.DOUBLE;\n this.startAt = startValue;\n this.endAt = endValue;\n return this;\n }"
] | [
"0.7756733",
"0.7162287",
"0.7039562",
"0.69284123",
"0.6701876",
"0.6660831",
"0.65163034",
"0.6454936",
"0.6406084",
"0.63112086",
"0.6023787",
"0.6015675",
"0.5982329",
"0.5869817",
"0.5746553",
"0.57311714",
"0.5695252",
"0.5688207",
"0.56816196",
"0.56304526",
"0.55818456",
"0.5570804",
"0.5527387",
"0.55186146",
"0.55097574",
"0.5481796",
"0.5440134",
"0.5440036",
"0.54237986",
"0.5404054",
"0.53926814",
"0.5386534",
"0.53622234",
"0.53491825",
"0.5347458",
"0.53148514",
"0.5314463",
"0.5298889",
"0.5298639",
"0.5277247",
"0.5259436",
"0.5254315",
"0.52524245",
"0.52463245",
"0.52351296",
"0.5221422",
"0.52198106",
"0.52189815",
"0.5207321",
"0.5203853",
"0.51948535",
"0.5184532",
"0.51789993",
"0.51714134",
"0.5163116",
"0.51605934",
"0.51484174",
"0.5146296",
"0.51186556",
"0.5087188",
"0.5085722",
"0.5075191",
"0.5071065",
"0.5069416",
"0.5064344",
"0.5059039",
"0.50558734",
"0.50552255",
"0.5049127",
"0.50411576",
"0.5028418",
"0.5021007",
"0.50196433",
"0.50163186",
"0.5004485",
"0.5002305",
"0.49988535",
"0.4997677",
"0.49869385",
"0.4983882",
"0.49744824",
"0.49727672",
"0.49700764",
"0.49641076",
"0.496037",
"0.4947129",
"0.49438307",
"0.49412715",
"0.49402454",
"0.49402443",
"0.4938288",
"0.49376875",
"0.4936926",
"0.49364883",
"0.49333632",
"0.49003237",
"0.4897915",
"0.48961553",
"0.48915878",
"0.48876718"
] | 0.5883854 | 13 |
for modal dlg we need to load associaitons regardless of postback | public void setSettingGroupIdForModalDlg(Long id) {
setEntityIdForModalDlg(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SessionConfirmationDialog() {\n sessiondetailConfirmationDialogBinding = DataBindingUtil.\n inflate(LayoutInflater.from(mContext), R.layout.sessiondetail_confirmation_dialog, (ViewGroup) addStudentScreenBinding.getRoot(), false);\n confimDialog = new Dialog(mContext, R.style.Theme_Dialog);\n Window window = confimDialog.getWindow();\n WindowManager.LayoutParams wlp = window.getAttributes();\n confimDialog.getWindow().getAttributes().verticalMargin = 0.20f;\n wlp.gravity = Gravity.TOP;\n window.setAttributes(wlp);\n\n // confimDialog.getWindow().setBackgroundDrawableResource(R.drawable.session_confirm);\n confimDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n confimDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n confimDialog.setCancelable(false);\n confimDialog.setContentView(sessiondetailConfirmationDialogBinding.getRoot());\n callSessionListApi();\n sessiondetailConfirmationDialogBinding.cancelTxt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n confimDialog.dismiss();\n }\n });\n sessiondetailConfirmationDialogBinding.confirmTxt.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n AppConfiguration.TeacherSessionIdStr = sessionIDStr;\n AppConfiguration.TeacherSessionContactIdStr = contatIDstr;\n AppConfiguration.UserName=firstNameStr+\" \"+lastNameStr;\n callSessioncapacityApi();\n confimDialog.dismiss();\n }\n });\n confimDialog.show();\n\n }",
"public void showPopupModal() {\n log.info(\"OrdersBean : showPopupModal\");\n showPopup = true;\n if (getParam(\"idOrder\") != null) {\n int idOrder = parseInt(getParam(\"idOrder\"));\n ordersEntity = ordersServices.findById(idOrder);\n contractsBean.findAllContractsWhenFindOrders(ordersEntity.getId());\n }\n }",
"private void initDialog() {\n }",
"private void getAndSetConfirmMessage(ContentResponse data) {\n\t\t\t\n\t\tString message = getString(R.string.ibs_error_cannotLoadContent);\n\t\tif (data != null) {\n\t\t\tmessage = data.getContent();\n\t\t\tmDialogState.fetched = true;\n\t\t} \n\n\t\tmDialogState.message = message;\n\t\t\n\t\tFragment frag = getFragmentManager().findFragmentByTag(TAG_REMOVE_DIALOG);\n\t\tif (frag != null && frag instanceof SimpleYesNoDialog) {\n\t\t\t((SimpleYesNoDialog) frag).updateContent(message);\n\t\t}\t\t\n\t}",
"@Override\n\tpublic void initData() {\n\t\tmList = new ArrayList<MyloginBean.Data>();\n\t\tmList2=new ArrayList<MyloginBean.Data>();\n\t\tdialog.show();\n\t\tgetHttprequst(true, false, 1, false);\n\t}",
"public void setImmunizationIdForModalDlg(Long id) {\r\n\t\tsetId(id);\r\n\t\tloadAssociations();\r\n\t}",
"private void butNew_Click(Object sender, System.EventArgs e) throws Exception {\n FormProcCodeNew FormPCN = new FormProcCodeNew();\n FormPCN.ShowDialog();\n if (FormPCN.Changed)\n {\n changed = true;\n ProcedureCodes.refreshCache();\n fillGrid();\n }\n \n }",
"public void agregarNuevoUsuario(){\n //recupero objeto rol usuario\n usuarioBean.getUsuario().setRol(new ListadoRoles().getListaRoles().get(1));\n usuarioBean.agregarUsuario(); \n FacesContext context = FacesContext.getCurrentInstance(); \n context.addMessage(null, new FacesMessage(\"Éxito\", \"Se agregó un Usuario correctamente.\" )); \n RequestContext.getCurrentInstance().execute(\"PF('dlgAltaUsuario').hide();\");\n }",
"public void addRelationshipDialog() { new RelationshipDialog(); }",
"@Override\r\n\t\t\tpublic void buttonClick(ClickEvent event) \r\n\t\t\t{\n\t\t\t\tif(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cibernauta\"))\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_cibernauta(canalL.getValue()));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Vista_Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\tsubWindow.setContent(new Contratar_vista_usuario(canalL.getValue(), contratacion, idModalidad));\r\n\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t\r\n\t\t\t\t}else if(((NavigatorUI) UI.getCurrent()).getMainView().equals(\"Cliente\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontratacion = comprobarContratacion();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(contratacion || idModalidad.isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubWindow.setModal(true);\r\n\t\t\t\t\t\tsubWindow.setResizable(false);\r\n\t\t\t\t\t\tsubWindow.setContent(new Contratar_cliente(canalL.getValue()));\r\n\t\t\t\t\t\tUI.getCurrent().addWindow(subWindow);\r\n\t\t\t\t\t}else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdoNavigate(Crear_incidencia.VIEW_NAME + \"/\" + \"contratacion\" +\";\" +canalL.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}",
"private void initFormEditMode() {\n initSpinnerSelectionChamps();\n //encodage de la chaine de caracteres correspondant au nom du produit pour etre passé dans l'URL\n String urlCategorieName = null;\n try {\n urlCategorieName = URLEncoder.encode(this.nomCategorie, ENCODING);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n //preparation de l'URL\n String[] params = {urlCategorieName};\n final String url = WebService.buildUrlForRequest(Metier.DOMAIN, Metier.NOM_MODELE_CATEGORIES, WebService.ACTION_GET, params);\n\n //requete pour recuperer la categorie a editer (asynchrone)\n asyncHttpClient.get(getActivity(), url, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n String response = null;\n try {\n response = new String(responseBody, ENCODING);\n JSONObject jsonObject = new JSONObject(response);\n //TODO PAUSE\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n Log.e(\"CATEGORIE_EDIT\", \"fail to connect: \" + url + \" \" + statusCode);\n }\n });\n }",
"public void agregarNuevoUsuarioAdmin(){\n //recupero objeto rol administrador\n usuario.setRol(new ListadoRoles().getListaRoles().get(0));\n usuarioBean.setUsuario(usuario);\n usuarioBean.agregarUsuario();\n FacesContext context = FacesContext.getCurrentInstance(); \n context.addMessage(null, new FacesMessage(\"Éxito\", \"Se agregó un Usuario Administrador correctamente.\" ));\n RequestContext.getCurrentInstance().execute(\"PF('dlgAltaUsuario').hide();\");\n }",
"@Override\r\n\t\t\t\tpublic void onResponseReceived(Request request,\r\n\t\t\t\t\t\tResponse response) {\n\r\n\t\t\t\t\tList<XMLFizikselSinifTanimlari> listXmlFizikselSinifTanimlari = XMLFizikselSinifTanimlari.XML\r\n\t\t\t\t\t\t\t.readList(response.getText());\r\n\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari = new DlgFizikselSinifTanimlari(\r\n\t\t\t\t\t\t\tfalse, new Long(id).longValue());\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari\r\n\t\t\t\t\t\t\t.putDataFromXML(listXmlFizikselSinifTanimlari\r\n\t\t\t\t\t\t\t\t\t.get(0));\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari.setAnimationEnabled(true);\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari.center();\r\n\r\n\t\t\t\t\t_dlgFizikselSinifTanimlari\r\n\t\t\t\t\t\t\t.addCloseHandler(new CloseHandler<PopupPanel>() {\r\n\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void onClose(CloseEvent<PopupPanel> event) {\r\n\r\n\t\t\t\t\t\t\t\t\tputDataToGrid();\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t}",
"public void finalRequest() {\n if (!isSaved) {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n isFinish = true;\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n addToTemplates();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n getActivity().finish();\n }\n }, mTitle, mMessageFinal, mTitleButtonOneFinal, mTitleButtonTwoFinal);\n mDialogInfoWithTwoButtons.getDialog().show();\n } else {\n getActivity().finish();\n }\n }",
"private void initPopupViewControls(){\n // Get layout inflater object.\n LayoutInflater layoutInflater = LayoutInflater.from(getActivity());\n\n // Inflate the popup dialog from a layout xml file.\n popupInputDialogView = layoutInflater.inflate(R.layout.custom_popup_add_new_communication_record, null);\n\n // Get user input edittext and button ui controls in the popup dialog.\n _interactionTypeSpinner = popupInputDialogView.findViewById(R.id.inteructionTypeSpinner);\n _details = popupInputDialogView.findViewById(R.id.details);\n _specialNote = popupInputDialogView.findViewById(R.id.specialNote);\n _nextActionTypeSpinner = popupInputDialogView.findViewById(R.id.nextActionTypeSpinner);\n _nextActionDate = popupInputDialogView.findViewById(R.id.nextActionDate);\n _nextMeetingLocation = popupInputDialogView.findViewById(R.id.nextMeetingLocation);\n\n _saveFamilyMember = popupInputDialogView.findViewById(R.id.button_save_user_data);\n _cancelInput = popupInputDialogView.findViewById(R.id.button_cancel_user_data);\n\n\n }",
"private void cargarProveedor() {\n panelComprar.setVisible(true);\n mat_pro.llenarTablaMaterialesDeProveedor(conector, tablaMateriales, p.getPro_rif());\n this.compras.clear();\n actualizarTabla();\n }",
"public void doUpdate() {\n Map<String, List<String>> dataToSend = new HashMap<>();\r\n List<String> values = new ArrayList<>();\r\n values.add(String.valueOf(selectedOhsaIncident.getId()));\r\n dataToSend.put(\"param\", values);\r\n showDialog(dataToSend);\r\n }",
"private void iniciaFrm() {\n statusLbls(false);\n statusBtnInicial();\n try {\n clientes = new Cliente_DAO().findAll();\n } catch (Exception ex) {\n Logger.getLogger(JF_CadastroCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\r\n protected void onPostExecute(JSONObject jso) {\r\n try {\r\n dlg.dismiss();\r\n } catch (Exception e1) { \r\n // Ignore this error \r\n }\r\n if (jso != null) {\r\n try {\r\n boolean succeeded = jso.getBoolean(\"succeeded\");\r\n String message = jso.getString(\"message\");\r\n \r\n if (succeeded) {\r\n // Finish this activity in order to start properly \r\n // after redirection from Browser\r\n // Because of initializations in onCreate...\r\n AccountSettingsActivity.this.finish();\r\n } else {\r\n Toast.makeText(AccountSettingsActivity.this, message, Toast.LENGTH_LONG).show();\r\n \r\n state.builder.setCredentialsVerificationStatus(CredentialsVerificationStatus.FAILED);\r\n showUserPreferences();\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public void loadAssociations() {\r\n\r\n\t\tif (immunization.getPatient() != null) {\r\n\t\t\tpatientAction.setInstance(getInstance().getPatient());\r\n\t\t}\r\n\r\n\t\tif (immunization.getVaccine() != null) {\r\n\t\t\tvaccineAction.setInstance(getInstance().getVaccine());\r\n\t\t}\r\n\r\n\t}",
"private void cargarAutorizaciones() {\r\n\t\tif (parametros_empresa != null) {\r\n\t\t\tif (parametros_empresa.getTrabaja_autorizacion()) {\r\n\t\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\t\tadmision_seleccionada);\r\n\r\n\t\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\t\tIRutas_historia.PAGINA_AUTORIZACIONES,\r\n\t\t\t\t\t\t\"AUTORIZACIONES\", parametros);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public abstract void initDialog();",
"public JDialogVisitasActivas(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n modoBuscador = false;\n organizacionAction = new CRUDAction<Organizacion>();\n organizacionAction.setEntity(new Organizacion());\n this.setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/resource/img/bandera-paraguay.png\")).getImage());\n initComponents();\n }",
"private void showPreference(){\r\n if(userPreferencesForm == null) {\r\n userPreferencesForm = new UserPreferencesForm(mdiForm,true);\r\n }\r\n userPreferencesForm.loadUserPreferences(mdiForm.getUserId());\r\n userPreferencesForm.setUserName(mdiForm.getUserName());\r\n userPreferencesForm.display();\r\n }",
"private void onTabStateInitializedForReauth() {\n mIncognitoReauthPending = mTabModelSelector.getModel(/*incognito=*/true).getCount() > 0\n && mIsIncognitoReauthPendingOnRestoreSupplier.get();\n showDialogIfRequired();\n }",
"private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }",
"@Override\n protected void onPreExecute() {\n examsActivity.findViewById(R.id.pbLoadingExamsList).setVisibility(View.VISIBLE);\n examsActivity.findViewById(R.id.btnAddExam).setVisibility(View.GONE);\n examsActivity.findViewById(R.id.lvExams).setVisibility(View.GONE);\n }",
"@Override\n\tprotected void initializePopupFields(Owner data) {\n\t}",
"private void showLoadDialog() {\n\t\tSet<String> entries = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).getStringSet(RECORDED_ENTRIES, null);\n\t\tfinal String[] entriesArray = Arrays.copyOf(entries.toArray(), entries.toArray().length, String[].class);\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(R.string.pick_a_recording);\n\t\tbuilder.setItems(entriesArray, new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int item) {\n\t\t \t// Load the JSON\n\t\t \tnew LoadRecordingAsyncTask(entriesArray[item]).execute();\n\t\t }\n\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}",
"@PostConstruct\n public void init() {\n if (!FacesContext.getCurrentInstance().isPostback()\n && conversation.isTransient()) {\n\n conversation.begin();\n }\n }",
"private void showDialogIfRequired() {\n if (mIncognitoReauthCoordinator != null) return;\n if (mLayoutStateProvider == null && mIsTabbedActivity) return;\n if (!mIncognitoReauthPending) return;\n if (!mTabModelSelector.isIncognitoSelected()) return;\n if (mProfile == null) return;\n if (!IncognitoReauthManager.isIncognitoReauthEnabled(mProfile)) return;\n\n boolean showFullScreen = !mIsTabbedActivity\n || !mLayoutStateProvider.isLayoutVisible(LayoutType.TAB_SWITCHER);\n mIncognitoReauthCoordinator =\n mIncognitoReauthCoordinatorFactory.createIncognitoReauthCoordinator(\n mIncognitoReauthCallback, showFullScreen,\n mOnBackPressedInFullScreenReauthCallback);\n mIncognitoReauthCoordinator.show();\n mOnBackPressedInFullScreenReauthCallback.setEnabled(showFullScreen);\n }",
"private void postInitComponents(){ \r\n dlgAwardUploadDoc = new CoeusDlgWindow(mdiForm);\r\n dlgAwardUploadDoc.setResizable(false);\r\n dlgAwardUploadDoc.setModal(true);\r\n dlgAwardUploadDoc.getContentPane().add(awardAddDocumentForm);\r\n dlgAwardUploadDoc.setTitle(\"Add Document\");\r\n if(this.functionType == 'M'){\r\n dlgAwardUploadDoc.setTitle(\"Modify Document\");\r\n }\r\n dlgAwardUploadDoc.setFont(CoeusFontFactory.getLabelFont());\r\n dlgAwardUploadDoc.setSize(470, 150);\r\n Dimension screenSize;\r\n Dimension dlgSize;\r\n screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n dlgSize = dlgAwardUploadDoc.getSize();\r\n dlgAwardUploadDoc.setLocation(screenSize.width / 2 - (dlgSize.width / 2),\r\n screenSize.height / 2 - (dlgSize.height / 2));\r\n \r\n dlgAwardUploadDoc.addComponentListener(\r\n new ComponentAdapter(){\r\n public void componentShown(ComponentEvent e){\r\n try{\r\n requestDefaultFocusToComp();\r\n }catch(CoeusException ce){\r\n ce.printStackTrace();\r\n }\r\n }\r\n });\r\n \r\n dlgAwardUploadDoc.setDefaultCloseOperation(CoeusDlgWindow.DO_NOTHING_ON_CLOSE);\r\n dlgAwardUploadDoc.addWindowListener(new WindowAdapter(){\r\n public void windowClosing(WindowEvent we){\r\n try{\r\n dataValuesChanged();\r\n if(dataChanged){\r\n performCloseAction();\r\n }else{\r\n dlgAwardUploadDoc.dispose();\r\n } \r\n }catch(Exception ce){\r\n ce.printStackTrace();\r\n }\r\n }\r\n });\r\n \r\n dlgAwardUploadDoc.addEscapeKeyListener(new AbstractAction(\"escPressed\"){\r\n public void actionPerformed(ActionEvent ae){\r\n try{\r\n dataValuesChanged(); \r\n if(dataChanged){\r\n performCloseAction();\r\n }else{\r\n dlgAwardUploadDoc.dispose();\r\n } \r\n }catch(Exception ce){\r\n ce.printStackTrace();\r\n }\r\n }\r\n });\r\n queryEngine = QueryEngine.getInstance();\r\n CoeusVector cvAwardDocTypes = null;\r\n CoeusVector newAwardDocTypes = new CoeusVector();\r\n try{\r\n cvAwardDocTypes = queryEngine.getDetails(queryKey, KeyConstants.AWARD_DOCUMENT_TYPES);\r\n if(this.functionType == TypeConstants.ADD_MODE ){\r\n newAwardDocTypes.add(\"\");\r\n }\r\n newAwardDocTypes.addAll(cvAwardDocTypes);\r\n awardAddDocumentForm.cmbDocumentType.setModel(new DefaultComboBoxModel(newAwardDocTypes));\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n if(this.functionType == TypeConstants.MODIFY_MODE ){\r\n if (awardDocumentBean != null){\r\n awardAddDocumentForm.txtDescription.setText(awardDocumentBean.getDescription());\r\n awardAddDocumentForm.txtFileName.setText(awardDocumentBean.getFileName());\r\n awardAddDocumentForm.cmbDocumentType.setSelectedIndex(getDocumentTypeCodeIndex(cvAwardDocTypes));\r\n }\r\n }\r\n }",
"@PostConstruct\n @Override\n public void init() {\n super.setFacade(ejbFacade);\n newProspects = ejbFacade.findAllNew();\n \n FacesContext fc = FacesContext.getCurrentInstance();\n\tgetIdParam(fc);\n \n }",
"private void inizia() throws Exception {\n\n try { // prova ad eseguire il codice\n\n /* questo dialogo non e' modale */\n this.getDialogo().setModal(false);\n\n this.setTitolo(TITOLO_DIALOGO);\n this.addBottoneStampa();\n this.addBottoneChiudi();\n\n /* crea il modulo con db in memoria */\n this.creaModuloMem();\n\n /* crea i pannelli del dialogo */\n this.creaPannelli();\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"private void loadCriteriaList() {\n DataBaseManager DBM = new DataBaseManager();\n criteriaList = DBM.loadCriteriaList(pantallaIdentificacion.this);\n }",
"public FrmAssignPromotions()\n {\n initComponents();\n populateLists();\n }",
"@Override\n protected void onPreExecute()\n {\n dialog.show();\n super.onPreExecute();\n }",
"@Override\n protected void onPreExecute() {\n\n dialog.setCancelable(true);\n dialog.setMessage(\"Fetching...\");\n\n dialog.show();\n\n }",
"public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }",
"@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\t\n\t\tIntent intent = getIntent();\n\t\tfinal DatabaseUtil mDatabaseUtil = new DatabaseUtil(this); \n\t\tfinal UiManager mUiManager = new UiManager(this);\n\t\t\n\t\tCustomDialog mCustomDialog = new CustomDialog(this);\n final CustomDialog customDialog = mCustomDialog;\n mCustomDialog = null;\n \n final ViewInfo viewInfo = new ViewInfo();\n\t\tviewInfo.panelNum = intent.getStringExtra(\"panelNum\");\n\t\tviewInfo.cellNum = intent.getStringExtra(\"cellNum\");\n\t\tviewInfo.viewId = \"shortcut\" + viewInfo.cellNum;\n\t\t\n customDialog.show();\n customDialog.setOnDismissListener(new OnDismissListener(){\n\n\t\t\tpublic void onDismiss(DialogInterface arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tTempActivity.this.finish();\n\t\t\t}\n });\n \n\t\tcustomDialog.setItemBackground(getResources().getDrawable(R.drawable.btn_default_normal_disable_focused));\n\t\t\n\t\tcustomDialog.loadingAllApp();\n\t\t\n\t\tcustomDialog.setOnSelectedItemsListener(new OnSelectedItemsListener(){\n\t\t\tpublic void onSelectedItems(Map<String,Integer> selectedMapPo) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\tpublic void onSelectedItem(int position) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tviewInfo.intentUri = customDialog.mAppList.get(position).intentUri;\n\t\t\t\t\n\t\t\t\tviewInfo.icon = customDialog.mAppList.get(position).icon;\n\t\t\t\tviewInfo.label = customDialog.mAppList.get(position).label;\n\t\t\t\t\n\t\t\t\tmUiManager.addItemToPanel(null\n\t\t\t\t,viewInfo\n\t\t\t\t,mDatabaseUtil);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tloadPref();\n\t}",
"@Override\n public void afterShow() {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n getCancelButton().requestFocusInWindow();\n // Enable the Send button after showing since there is nothing to stop confirmation\n // It should start disabled to avoid double click skipping the confirmation\n ViewEvents.fireWizardButtonEnabledEvent(getPanelName(), WizardButton.NEXT, true);\n\n }\n });\n\n }",
"@PostConstruct\n public void CargarTimbresMasivosBean() {\n try {\n objectContext = cargarComponenteAjaxObjectContext();\n loggerApp = objectContext.getConfigApp().loggerApp;\n cargarTimbresMasivosObjectContext = new CargarTimbresMasivosObjectContext(getRequestFaces(), getResponseFaces());\n if (objectContext != null) {\n init();\n }\n } catch (Exception ex) {\n abrirModal(\"SARA\", \"Error\", ex);\n }\n }",
"@PostConstruct\n public void load() {\n try {\n if (!JsfUti.isAjaxRequest()) {\n restriccionesLazy = new BaseLazyDataModel<>(Restricciones.class, \"codigoRestriccion\");\n restricionPredios = new BaseLazyDataModel<>(RestricionPredio.class, \"numeroTramite\");\n }\n } catch (Exception e) {\n LOG.log(Level.SEVERE, \"Init View\", e);\n }\n }",
"@Override\n\tpublic void pegaInstanciaDialogo(AposentadoriaCompulsoria obj) {\n\t\t\n\t}",
"private void inicializaDialogo(Collection coll, String convenio)\r\n {\r\n\r\n \tgetContentPane().add(new InfCatatralFisicoEconomicoPanel(false, coll, convenio));\r\n }",
"public void showConfirmDialog() {\n mDialogClickInterface = (DialogueInterface) mContext;\n final Dialog dialog = new Dialog(mContext);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialogue_modify);\n Button buttonCancel = dialog.findViewById(R.id.btn_cancel);\n Button buttonOK = dialog.findViewById(R.id.btn_ok);\n final RadioGroup radioGroupLanguage = dialog.findViewById(R.id.radio_group);\n\n\n\n\n dialog.setCancelable(true);\n dialog.show(); // if decline button is clicked, close the custom dialog\n buttonCancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n mDialogClickInterface.onLanguageSelected(dialog);\n }\n });\n buttonOK.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // Close dialog\n int selectedId = radioGroupLanguage.getCheckedRadioButtonId();\n\n switch (selectedId) {\n\n case R.id.rb_arabic:\n view.editItem(listModel,index);\n break;\n case R.id.rb_english:\n view.deleteItem(listModel);\n break;\n }\n mDialogClickInterface.onLanguageSelected(dialog);\n }\n });\n\n }",
"private void loadInfo() {\n fname.setText(prefs.getString(\"fname\", null));\n lname.setText(prefs.getString(\"lname\", null));\n email.setText(prefs.getString(\"email\", null));\n password.setText(prefs.getString(\"password\", null));\n spinner_curr.setSelection(prefs.getInt(\"curr\", 0));\n spinner_stock.setSelection(prefs.getInt(\"stock\", 0));\n last_mod_date.setText(\" \" + prefs.getString(\"date\", getString(R.string.na)));\n }",
"@Override\n\tprotected void okPressed() {\n\t\tfor (int i = 0; i < LAST_USED_PREF_IDS.length; i++) {\n\t\t\tlatencyPrefs.setValue(LAST_USED_PREF_IDS[i], localValues.get(LAST_USED_PREF_IDS[i]));\n\t\t}\n\t\t// Save the show dialog pref\n\t\tlatencyPrefs.setValue(Constants.DONT_SHOW_DIALOG, dontShowDialog);\n\t\tsavePreferences();\n\n\t\tsuper.okPressed();\n\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n predata();\n }",
"@SuppressLint(\"CommitPrefEdits\")\n @Override\n public void onLoadFinished(Loader<SharedPreferences> loader,\n SharedPreferences prefs) {\n }",
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"private void okEvent() {\n\t\tYAETMMainView.PRIVILEGE = (String)loginBox.getSelectedItem();\n\t\tshowMain();\n\t\tcloseDialog();\n\t}",
"public void verRegistrarCandidato()\r\n\t{\r\n\t\tdatos = new RegistrarCandidato(this);\r\n\t\tdatos.setVisible(true);\r\n\t}",
"public void loadBottomButton() {\n \t\t\n \t\tButton confirmButton = (Button)findViewById(R.id.confirm);\n \t\tconfirmButton.setText(CaptionManager.getCaption().CONFIRM);\n \t\t\n \t\t// confirm order\n \t\tconfirmButton.setOnClickListener(new OnClickListener() {\n public void onClick(View v) {\n \t \n \tOrderManager.confirmOrder(OrderManager.getOrderId());\n \tfinish();\n }\n \t\t});\n \t}",
"public void loadForm() {\n if (!selectedTipo.equals(\"accion\")) {\n this.renderPaginaForm = true;\n } else {\n this.renderPaginaForm = false;\n }\n if (selectedTipo.equals(null) || selectedTipo.equals(\"menu\")) {\n this.renderGrupoForm = false;\n } else {\n this.renderGrupoForm = true;\n }\n populateListaObjetos();\n }",
"public void cargarConsecutivo() {\n if (consecutivoSeleccionadoTabla == null) {\r\n imprimirMensaje(\"Error\", \"No se ha seleccionado ningún consecutivo de la tabla\", FacesMessage.SEVERITY_ERROR);\r\n return;\r\n }\r\n limpiarFormularioConsecutivos();\r\n mostrarTabView=true;\r\n consecutivoSeleccionado = consecutivoFacade.find(consecutivoSeleccionadoTabla.getIdConsecutivo());\r\n tipoDocumento = consecutivoSeleccionado.getTipoDocumento().getId().toString();\r\n resolucion = consecutivoSeleccionado.getResolucionDian();\r\n inicio = consecutivoSeleccionado.getInicio();\r\n fin = consecutivoSeleccionado.getFin();\r\n actual = consecutivoSeleccionado.getActual();\r\n prefijo=consecutivoSeleccionado.getPrefijo();\r\n texto=consecutivoSeleccionado.getTexto();\r\n tituloTabConsecutivos = \"Datos Consecutivo: \" + consecutivoSeleccionado.getTipoDocumento().getDescripcion();\r\n RequestContext.getCurrentInstance().execute(\"PF('dialogoBuscarConsecutivos').hide();\");\r\n }",
"@Listen(\"onClick = #btnRegCargoJunta\")\n\t public void showModal(Event e) {\n\t Window window = (Window)Executions.createComponents(\n\t \"configuracion/categoria/registrarCargoJunta.zul\", null, null);\n\t window.doModal();\n\t }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCoachManagement coachManagement = new CoachManagement();\n\t\t\t\tcoachManagement.setModal(true);\n\t\t\t\tcoachManagement.setVisible(true);\n\t\t\t}",
"@Override\n protected void onPreExecute() {\n asyncDialog.setMessage(\"Loading...\");\n //show dialog\n asyncDialog.show();\n super.onPreExecute();\n }",
"private void loadForm() {\n service.getReasons(refusalReasons);\n service.getVacEligibilty(vacElig);\n service.getVacSites(vacSites);\n service.getReactions(vacReactions);\n service.getOverrides(vacOverrides);\n updateComboValues();\n \n selPrv = \"\";\n selLoc = \"\";\n \n //datGiven.setDateConstraint(new SimpleDateConstraint(SimpleDateConstraint.NO_NEGATIVE, DateUtil.addDays(patient.getBirthDate(), -1, true), null, BgoConstants.TX_BAD_DATE_DOB));\n datGiven.setDateConstraint(getConstraintDOBDate());\n datEventDate.setConstraint(getConstraintDOBDate());\n radFacility.setLabel(service.getParam(\"Caption-Facility\", \"&Facility\"));\n if (immunItem != null) {\n \n txtVaccine.setValue(immunItem.getVaccineName());\n txtVaccine.setAttribute(\"ID\", immunItem.getVaccineID());\n txtVaccine.setAttribute(\"DATA\", immunItem.getVaccineID() + U + immunItem.getVaccineName());\n setEventType(immunItem.getEventType());\n \n radRefusal.setDisabled(!radRefusal.isChecked());\n radHistorical.setDisabled(!radHistorical.isChecked());\n radCurrent.setDisabled(!radCurrent.isChecked());\n \n visitIEN = immunItem.getVisitIEN();\n if (immunItem.getProvider() != null) {\n txtProvider.setText(FhirUtil.formatName(immunItem.getProvider().getName()));\n txtProvider.setAttribute(\"ID\", immunItem.getProvider().getId().getIdPart());\n selPrv = immunItem.getProvider().getId().getIdPart() + U + U + immunItem.getProvider().getName();\n }\n switch (immunItem.getEventType()) {\n case REFUSAL:\n ListUtil.selectComboboxItem(cboReason, immunItem.getReason());\n txtComment.setText(immunItem.getComment());\n datEventDate.setValue(immunItem.getDate());\n break;\n case HISTORICAL:\n datEventDate.setValue(immunItem.getDate());\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n txtAdminNote.setText(immunItem.getAdminNotes());\n ZKUtil.disableChildren(fraDate, true);\n ZKUtil.disableChildren(fraHistorical, true);\n default:\n service.getLot(lotNumbers, getVaccineID());\n loadComboValues(cboLot, lotNumbers, comboRenderer);\n loadVaccination();\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n ListUtil.selectComboboxItem(cboLot, immunItem.getLot());\n ListUtil.selectComboboxItem(cboSite, StrUtil.piece(immunItem.getInjSite(), \"~\", 2));\n spnVolume.setText(immunItem.getVolume());\n datGiven.setDate(immunItem.getDate());\n datVIS.setValue(immunItem.isImmunization() ? immunItem.getVISDate() : null);\n ListUtil.selectComboboxItem(cboReaction, immunItem.getReaction());\n ListUtil.selectComboboxData(cboOverride, immunItem.getVacOverride());\n txtAdminNote.setText(immunItem.getAdminNotes());\n cbCounsel.setChecked(immunItem.wasCounseled());\n }\n } else {\n IUser user = UserContext.getActiveUser();\n Practitioner provider = new Practitioner();\n provider.setId(user.getLogicalId());\n provider.setName(FhirUtil.parseName(user.getFullName()));\n txtProvider.setValue(FhirUtil.formatName(provider.getName()));\n txtProvider.setAttribute(\"ID\", VistAUtil.parseIEN(provider)); //provider.getId().getIdPart());\n selPrv = txtProvider.getAttribute(\"ID\") + U + U + txtProvider.getValue();\n Location location = new Location();\n location.setName(\"\");\n location.setId(\"\");\n datGiven.setDate(getBroker().getHostTime());\n onClick$btnVaccine(null);\n \n if (txtVaccine.getValue().isEmpty()) {\n close(true);\n return;\n }\n \n Encounter encounter = EncounterContext.getActiveEncounter();\n if (!EncounterUtil.isPrepared(encounter)) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n if (isCategory(encounter, \"E\")) {\n setEventType(EventType.HISTORICAL);\n Date date = encounter == null ? null : encounter.getPeriod().getStart();\n datEventDate.setValue(DateUtil.stripTime(date == null ? getBroker().getHostTime() : date));\n radCurrent.setDisabled(true);\n txtLocation.setText(user.getSecurityDomain().getName());\n PromptDialog.showInfo(user.getSecurityDomain().getLogicalId());\n txtLocation.setAttribute(\"ID\", user.getSecurityDomain().getLogicalId());\n \n } else {\n if (isVaccineInactive()) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n setEventType(EventType.CURRENT);\n radCurrent.setDisabled(false);\n }\n }\n }\n selectItem(cboReason, NONESEL);\n }\n btnSave.setLabel(immunItem == null ? \"Add\" : \"Save\");\n btnSave.setTooltiptext(immunItem == null ? \"Add record\" : \"Save record\");\n txtVaccine.setFocus(true);\n }",
"public AddAddresseeDialog(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n loadData();\n }",
"boolean isPopUpOpened();",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tdatasource.open();\n\t\t\n\t\t\n\t\timageButtonEdit.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tBundle b = new Bundle();\n\t\t\t\tb.putLong(Commons.FOLLOWUP_ID, followUpId);\n\t\t\t\tEditFollowUpFragment editFollowUpFragment = new EditFollowUpFragment();\n\t\t\t\teditFollowUpFragment.setArguments(b);\n\t\t\t\tFragmentManager fmi = getFragmentManager();\n\t\t\t\tFragmentTransaction ftu = fmi.beginTransaction();\n\t\t\t\tftu.replace(android.R.id.content, editFollowUpFragment).detach(fragment)\n\t\t\t\t\t\t.addToBackStack(null).commit();\n\t\t\t}\n\t\t});\n\n\t\timageButtonDelete.setOnClickListener(new View.OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tDialogFragment newFragment = MyAlertDialogFragment\n\t\t\t\t\t\t.newInstance(followUpId);\n\t\t\t\tnewFragment.show(getFragmentManager(), \"dialog\");\n\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"private void addConfirmDialog() {\n builder = UIUtil.getConfirmDialog(getContext(),\"You are about to delete data for this payment. proceed ?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n boolean isDeleted = mydb.deletePayment(paymentId);\n if(isDeleted) {\n Bundle bundle = new Bundle();\n bundle.putString(\"orderId\", String.valueOf(orderId));\n FragmentViewPayments mfragment = new FragmentViewPayments();\n UIUtil.refreshFragment(mfragment,bundle, getFragmentManager());\n } else {\n Toast.makeText(getContext(),\"Error deleting data!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"private void fetchData() {\r\n if (fetchDialogDataInBackground != null && fetchDialogDataInBackground.getStatus() != AsyncTask.Status.FINISHED)\r\n fetchDialogDataInBackground.cancel(true);\r\n fetchDialogDataInBackground = new FetchDialogDataInBackground();\r\n fetchDialogDataInBackground.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\r\n }",
"private void inicializarControlesConfiguracao(){\n lnkCadastrar = (TextView) findViewById(R.id.lnkCadastrar);\n btnLogar = (Button) findViewById(R.id.btnLogin);\n imgLoginGoogle = (ImageButton) findViewById(R.id.imgLoginGoogle);\n imgLoginLinkedin = (ImageButton) findViewById(R.id.imgLoginLinkedin);\n email = (EditText) findViewById(R.id.editLoginEmail);\n\n senha = (EditText) findViewById(R.id.editLoginSenha);\n\n //Configurando progressDialog\n progressDialog = new ProgressDialog(LoginActivity.this);\n progressDialog.setMessage(\"Efetuando login com a conta Google\");\n progressDialog.setCancelable(false);//Configurando progressDialog\n\n progressDialogComum = new ProgressDialog(LoginActivity.this);\n progressDialogComum.setMessage(\"Efetuando login! Aguarde...\");\n progressDialogComum.setCancelable(false);\n\n progressDialogLinkedin = new ProgressDialog(LoginActivity.this);\n progressDialogLinkedin.setMessage(\"Efetuando login com a conta Linkedin\");\n progressDialogLinkedin.setCancelable(false);\n\n controller = new Controller(LoginActivity.this);\n databaseReference = controller.getDatabaseReference();\n autenticador = controller.getAutenticador();\n }",
"public void abrirDialogoEspecie() {\n ModalDialogoEspecie modalDialogoEspecie = new ModalDialogoEspecie();\n modalDialogoEspecie.show(getSupportFragmentManager(), \"especie dialog\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tprogress = UserCenterDialog.onCreateDialog(this);\r\n\t\tcontext = this;\r\n\t\tshellRW = new RWSharedPreferences(context, \"addInfo\");\r\n\t\tinitDialog(NoticeActivityGroup.LOTNO);\r\n\t}",
"@Override\n\t\t//UNCOMMENT THIS -NO CHANGE\n\t \n\t \tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog = new ProgressDialog(Login.this);\n\t\t\tpDialog.setMessage(\"Loading client details. Please wait...\");\n\t\t\tpDialog.setIndeterminate(false);\n\t\t\tpDialog.setCancelable(true);\n\t\t\tpDialog.show();\n\t\t}",
"private void loadForm() {\n CodingProxy icd9 = problem.getIcd9Code();\n \n if (icd9 != null) {\n txtICD.setText(icd9.getProxiedObject().getCode());\n }\n \n String narr = problem.getProviderNarrative();\n \n if (narr == null) {\n narr = icd9 == null ? \"\" : icd9.getProxiedObject().getDisplay();\n }\n \n String probId = problem.getNumberCode();\n \n if (probId == null || probId.isEmpty()) {\n probId = getBroker().callRPC(\"BGOPROB NEXTID\", PatientContext.getActivePatient().getIdElement().getIdPart());\n }\n \n String pcs[] = probId.split(\"\\\\-\", 2);\n lblPrefix.setValue(pcs[0] + \" - \");\n txtID.setValue(pcs.length < 2 ? \"\" : pcs[1]);\n txtNarrative.setText(narr);\n datOnset.setValue(problem.getOnsetDate());\n \n if (\"P\".equals(problem.getProblemClass())) {\n radPersonal.setSelected(true);\n } else if (\"F\".equals(problem.getProblemClass())) {\n radFamily.setSelected(true);\n } else if (\"I\".equals(problem.getStatus())) {\n radInactive.setSelected(true);\n } else {\n radActive.setSelected(true);\n }\n \n int priority = NumberUtils.toInt(problem.getPriority());\n cboPriority.setSelectedIndex(priority < 0 || priority > 5 ? 0 : priority);\n loadNotes();\n }",
"private ShowCreateAnswerPage() {\n this.service = UserService.retrieve();\n this.validator = Validator.retrieve();\n }",
"private void formWindowActivated(java.awt.event.WindowEvent evt) {\n if (modoBuscador) {\n }\n }",
"private void init() {\n LayoutInflater inflater = getActivity().getLayoutInflater();\n layout = inflater.inflate(R.layout.approvalaction_popup, null);\n showButton();\n bindButtonClick();\n }",
"@Override\n\t\t\t\t public void onComplete(Bundle values) {\n\t\t\t\t\t SharedPreferences.Editor editor = mPrefs.edit();\n\t\t\t\t\t editor.putString(\"access_token\",\n\t\t\t\t\t\t\t facebook.getAccessToken());\n\t\t\t\t\t fb_access_token=facebook.getAccessToken();\n\t\t\t\t\t editor.putLong(\"access_expires\",\n\t\t\t\t\t\t\t facebook.getAccessExpires());\n\t\t\t\t\t editor.commit();\n\n\t\t\t\t\t // Making Login button invisible\n\t\t\t\t\t getProfileInformation();\n\t\t\t\t\t //Log.w(\"email\",uEmail);\n\n\n\t\t\t\t }",
"@Override\r\n protected void onPostExecute(JSONObject jso) {\r\n try {\r\n dlg.dismiss();\r\n } catch (Exception e) { \r\n // Ignore this error \r\n }\r\n if (jso != null) {\r\n try {\r\n boolean succeeded = jso.getBoolean(\"succeeded\");\r\n String message = jso.getString(\"message\");\r\n \r\n if (succeeded) {\r\n String accountName = state.getAccount().getAccountName();\r\n MyAccount.initialize(MyPreferences.getContext());\r\n state.builder = MyAccount.Builder.newOrExistingFromAccountName(accountName, TriState.TRUE);\r\n showUserPreferences();\r\n new OAuthAcquireRequestTokenTask().execute();\r\n // and return back to default screen\r\n overrideBackButton = true;\r\n } else {\r\n Toast.makeText(AccountSettingsActivity.this, message, Toast.LENGTH_LONG).show();\r\n \r\n state.builder.setCredentialsVerificationStatus(CredentialsVerificationStatus.FAILED);\r\n showUserPreferences();\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}",
"public void loadCityDialog(final Intent intent, final SharedPreferences sharedPref) {\n final String[] savedCities = new String[]{sharedPref.getString(SharedPrefKeys.SLOT1_KEY,\n getResources().getString(R.string.empty)), sharedPref.getString(SharedPrefKeys.SLOT2_KEY,\n getResources().getString(R.string.empty)), sharedPref.getString(SharedPrefKeys.SLOT3_KEY,\n getResources().getString(R.string.empty))};\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.load_dialog_title).setItems(savedCities, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mActualCity = savedCities[i];\n if(!mActualCity.equals(getString(R.string.empty))){\n String cityName = removeLastWord(mActualCity);\n intent.putExtra(SharedPrefKeys.SEARCH_KEY, cityName);\n startActivity(intent);\n }else{\n Toast.makeText(AbstractActivity.this, R.string.cant_load, Toast.LENGTH_LONG).show();\n }\n }\n });\n builder.create();\n builder.show();\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tpDialog.show();\n\t\t}",
"@Override\n protected void done() \n {\n ws.dispose();\n dispose();\n Gender_screen gs=new Gender_screen(ClientSide1);\n gs.addWindowListener(new WindowAdapter() \n {\n public void windowClosing(WindowEvent we) \n {\n int result = JOptionPane.showConfirmDialog(gs,\"Jesteś pewien, że chcesz zamknąc program?\", \"Potwierdzenie\",JOptionPane.YES_NO_OPTION);\n if(result == JOptionPane.YES_OPTION)\n gs.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n else if(result == JOptionPane.NO_OPTION)\n gs.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n }\n });\n gs.setLocationRelativeTo(null);\n gs.setVisible(true);\n }",
"private void jMenuItem_SavePropsectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem_SavePropsectActionPerformed\n try {\n Prospect_Db_Connect.relanceProspects();\n } catch (SQLException | ClassNotFoundException | IOException ex) {\n Logger.getLogger(JFrame_Accueil.class.getName()).log(Level.SEVERE, null, ex);\n }\n jMenuItem_ShowProspect.setEnabled(true);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n /* I'm using SharedPreferences as a simple way to store key value sets\n */\n SharedPreferences sharedPref = getActivity().getSharedPreferences(\"mesprefs\", Context.MODE_PRIVATE);\n final SharedPreferences.Editor editor = sharedPref.edit();\n\n\n // Set the dialog title\n builder.setTitle(\"My Preferences\")\n // Specify the list array, the items to be selected by default (null for none),\n // and the listener through which to receive callbacks when items are selected\n .setMultiChoiceItems(R.array.prefs_array, null,\n new DialogInterface.OnMultiChoiceClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which,\n boolean isChecked) {\n if (isChecked) {\n // If the user checked the item, add it to the selected items\n mSelectedItems.add(which);\n } else if (mSelectedItems.contains(which)) {\n // Else, if the item is already in the array, remove it\n mSelectedItems.remove(Integer.valueOf(which));\n }\n }\n })\n // Set the action buttons\n .setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the mSelectedItems results somewhere\n // or return them to the component that opened the dialo\n Iterator ite = mSelectedItems.listIterator();\n while(ite.hasNext()) {\n\n int pref_int = ((Integer )(ite.next())).intValue();\n switch (pref_int){\n case 0 :\n editor.putString(getString(R.string.pref_1), getString(R.string.pref_1));\n Log.i(\"info\", \"Preference 1\");\n break;\n case 1 :\n editor.putString(getString(R.string.pref_2), getString(R.string.pref_2));\n Log.i(\"info\", \"Preference 2\");\n break;\n case 2 :\n editor.putString(getString(R.string.pref_3), getString(R.string.pref_3));\n Log.i(\"info\", \"Preference 3\");\n break;\n\n }\n }\n editor.commit();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n\n\n\n return builder.create();\n\n }",
"@Override /* 绑定点击监听 全写在此 */\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.inform);\t\t\n\t\tLog.d(\"InformA\", \"外观设置完成\");\t\t\n\t\tIntent data = getIntent();\n\t\te_user = (E_User) data.getSerializableExtra(\"e_user\");\t \n\t\tListView_inform = (ListView) findViewById(R.id.ListView_Informlist);\n \n\t\tinitPopupWindow();\n\t\t\n\t\t\n\t\tImageView_back = (ImageView) findViewById(R.id.ImageView_back);\n\t\tImageView_back.setOnClickListener(this);\n\t\tLinearLayout_allclean = (LinearLayout) findViewById(R.id.LinearLayout_allclean);\n\t\tLinearLayout_allclean.setOnClickListener(this);\n\t}",
"@Override\r\n protected void onPreExecute() {\n if( progressDialog == null ) {\r\n progressDialog = ProgressDialog.show( context, context.getString(R.string.pref_sync_callings_now_title),\"\");\r\n }\r\n }",
"@Override\r\n\tprotected Dialog onCreateDialog(int id) {\n\t\tswitch (id) {\r\n case DIALOG_SELF:\r\n \treturn new AlertDialog.Builder(PhotoImagePagerActivity.this, AlertDialog.THEME_HOLO_LIGHT)\r\n .setTitle(\"选项\")\r\n .setItems(R.array.dialog_self, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n \tif (which == 0)\r\n \t{\r\n \t\t// 设置活动封面\r\n \t\tMap<String, String> params = new HashMap<String, String>();\r\n \t\tparams.put(\"event_id\", String.valueOf(event_id));\r\n \t\tparams.put(\"event_pic_width\", String.valueOf(UDisplayWidth.getPosterPicWidth(PhotoImagePagerActivity.this)));\r\n \t\tparams.put(\"pic_id\", String.valueOf(pic_id));\r\n \t\t\r\n \t\tmDataLoader.postData(UConstants.SETTING_PIC_URL, params, PhotoImagePagerActivity.this, new HDataListener() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFinish(String source) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tGson gson = new Gson();\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tTempModel mTempModel = gson.fromJson(source, new TypeToken<TempModel>(){}.getType());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif (mTempModel != null)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, mTempModel.message, Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\t\tDDBOpenHelper mDdbOpenHelper = DDBOpenHelper.getInstance(PhotoImagePagerActivity.this);\r\n\t\t\t\t\t\t\t\t\t\tmDdbOpenHelper.updateLocalEventModel(mTempModel.event);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, \"数据解析出错\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t} catch (JsonSyntaxException e) {\r\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, \"数据解析出错\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\tToast.makeText(PhotoImagePagerActivity.this, \"服务器错误\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n \t}\r\n \telse if (which == 1)\r\n \t{\r\n \t\t// 设置删除图片\r\n \t\tMap<String, String> params = new HashMap<String, String>();\r\n \t\tparams.put(\"pic_id\", String.valueOf(pic_id));\r\n \t\tparams.put(\"method\", \"delete\");\r\n \t\t\r\n \t\tmDataLoader.postData(UConstants.DELETE_PIC_URL, params, PhotoImagePagerActivity.this, new HDataListener() {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFinish(String source) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n \t}\r\n \telse if (which == 2)\r\n \t{\r\n \t\t// 保存图片到本地\r\n \t\tmFinalBitmap.display(downloadImageView, big_pic_url);\r\n \t}\r\n }\r\n })\r\n .create();\r\n case DIALOG_OTHER:\r\n \treturn new AlertDialog.Builder(PhotoImagePagerActivity.this, AlertDialog.THEME_HOLO_LIGHT)\r\n .setTitle(\"选项\")\r\n .setItems(R.array.dialog_other, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n \tif (which == 0)\r\n \t{\r\n \t\tmFinalBitmap.display(downloadImageView, big_pic_url);\r\n \t}\r\n }\r\n })\r\n .create();\r\n }\r\n return null;\r\n\t}",
"private void loadpreferences() {\n\t\t\tSharedPreferences mySharedPreferences = context.getSharedPreferences(MYPREFS,mode);\n\t\t\tlogin_id = mySharedPreferences.getInt(\"login_id\", 0);\n\t\t\t\n\t\t\tLog.d(\"Asynctask\", \"\" + login_id);\n\t\t\tsubId = mySharedPreferences.getString(\"SubcriptionID\", \"\");\n\t\t\tLog.d(\"SubcriptionID inASYNTASK******************\", \"\" + subId);\n\n\t\t}",
"public void cancelarRegistro() {\n this.departamento = new Departamento();\n this.materia = new Materia();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDlg').hide()\");\n }",
"@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n \r\n // In order to do any transactions with database.. Need to open the database..\r\n db.open();\r\n \r\n dialog = new Dialog(Settings.this);\r\n\t\tdialog.setContentView(R.layout.settings_dialog);\r\n\t\tdialog.setCancelable(true);\r\n\t\t\t\t\r\n\t\tOnClickListener radio_listener = new OnClickListener() {\r\n public void onClick(View v) {\r\n \r\n RadioButton rb = (RadioButton) v;\r\n \r\n if((rb.getText()).equals(\"Enter Elite PictureFrame ID\"))\r\n {\r\n \t \r\n \t \r\n \tfinal Dialog dialog1 = new Dialog(Settings.this);\r\n \t\t\tdialog1.setContentView(R.layout.add_epfid_dialog);\r\n \t\t\tdialog1.setCancelable(true);\r\n \t\t\t\r\n \t\t\tfinal TextView error = (TextView)dialog1.findViewById(R.id.error);\r\n \tfinal EditText epfid = (EditText)dialog1.findViewById(R.id.epfid);\r\n \t\r\n \tString epfid1=\"\";\r\n \t\r\n \t// Get eliteID that is alloted while registration... \t\r\n \tCursor mCursor = db.getEpfid();\r\n \tif (mCursor.moveToFirst()) \r\n\t\t\t\t\t{\r\n \t\tepfid1 = mCursor.getString(1);\r\n\t\t\t\t\t}\r\n \tif(mCursor!=null)\r\n \tmCursor.close();\r\n \t\r\n \tepfid.setText(epfid1);\r\n \terror.setText(\"\");\r\n \t\r\n \t\t\tButton cancel = (Button) dialog1.findViewById(R.id.cancel);\r\n \t\t\tcancel.setOnClickListener(new OnClickListener() {\r\n\r\n public void onClick(View v) {\r\n \t\r\n \t\t\tdialog1.dismiss();\r\n \t\t//\tif(db!=null)\r\n \t\t\tdb.close();\r\n \t\t\tSystem.gc();\r\n \t\t\tIntent i = new Intent(Settings.this, home.class);\r\n \t\t\tstartActivity(i);\r\n \t\tfinish();\r\n }\r\n });\r\n \t \r\n \t \r\n \t\t\t\r\n \t\t\tButton ok = (Button) dialog1.findViewById(R.id.ok);\r\n \t\t\tok.setOnClickListener(new OnClickListener() {\r\n\r\n public void onClick(View v) {\r\n \r\n \tString temp=epfid.getText().toString();\r\n \tif(temp.equals(\"\"))\r\n \t{\r\n \t\terror.setText(\"ID not entered!! \");\r\n \t\tflag1=2;\r\n \t}\r\n \t//Check if Email is a valid Email ID...\r\n \telse if((checkEmail(temp+\"@elitepictureframe.com\")) && (checkValidity(temp)))\r\n \t{\r\n \t\tepid=0;\r\n \t \t\r\n \tCursor mCursor = db.getEpfid();\r\n \tif (mCursor.moveToFirst()) \r\n \t\t\t\t\t{\r\n \t\tepid = mCursor.getInt(0);\r\n \t}\r\n \t//if(mCursor!=null)\r\n \tmCursor.close();\r\n \t\r\n \t\tif(epid == 0)\r\n \t\t{\r\n \t\t\t// Since id not in db.. insert it..\r\n \t\t\tdb.insertEpfid(temp);\r\n \t\t\terror.setText(\"ID added successfully \");\r\n \t\t\tdialog1.dismiss();\r\n \t\t\t\r\n \t\t//\tif(db!=null)\r\n \t\t\tdb.close();\r\n \t\t\tSystem.gc();\r\n \t\t\tIntent i = new Intent(Settings.this, home.class);\r\n \t\t\tstartActivity(i);\r\nfinish();\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\t// Since in db.. updated to new ID...\r\n \t\t\tdb.updateEpfid(epid, temp);\r\n \t\t\terror.setText(\"ID updated successfully \");\r\n \t\t\tdialog1.dismiss();\r\n \t\t\t\r\n \t\t//\tif(db!=null)\r\n \t\t\tdb.close();\r\n \t\t\tSystem.gc();\r\n \t\t\tIntent i = new Intent(Settings.this, home.class);\r\n \t\t\tstartActivity(i);\r\nfinish();\r\n \t\t}\r\n \t}\r\n \telse\r\n \t{\r\n \t\terror.setText(\"Invalid ID.. \");\r\n \t\t\r\n \t} \t\r\n }\r\n });\r\n \t \r\n \t\t\tdialog1.show();\r\n \t\t\t\r\n \t\r\n }\r\n else if((rb.getText()).equals(\"Photos storage Path\"))\r\n {\r\n \t \tfinal Dialog dialog2 = new Dialog(Settings.this);\r\n\t \t\t\tdialog2.setContentView(R.layout.add_photos_path);\r\n\t \t\t\tdialog2.setCancelable(true);\r\n\t \t\t\t\r\n\t \t\t\tfinal TextView error = (TextView)dialog2.findViewById(R.id.error);\r\n \tfinal EditText path = (EditText)dialog2.findViewById(R.id.path);\r\n \t\t \t\r\n \tString path1=\"\";\r\n \t\r\n \t// Get stored path from Db...\r\n \tCursor mCursor = db.getPath();\r\n \tif (mCursor.moveToFirst()) \r\n \t\t\t\t\t{\r\n \t\tpathid = mCursor.getInt(0);\r\n \t\tpath1 = mCursor.getString(1);\r\n \t\t\t\t\t}\r\n // \tif(mCursor!=null)\r\n \tmCursor.close();\r\n \t\r\n \tpath.setText(path1);\r\n \terror.setText(\"\");\r\n \t\r\n\t \t\t\tButton cancel = (Button) dialog2.findViewById(R.id.cancel);\r\n\t \t\t\tcancel.setOnClickListener(new OnClickListener() {\r\n\r\n\t public void onClick(View v) {\r\n\t dialog2.dismiss();\r\n\t \r\n\t // if(db!=null)\r\n\t \tdb.close();\r\n\t System.gc();\r\n\t Intent i = new Intent(Settings.this, home.class);\r\n\t \t\t\t\tstartActivity(i);\r\nfinish();\r\n\t }\r\n\t });\r\n\t \t \r\n\t \t \r\n\t \t\t\t\r\n\t \t\t\tButton ok = (Button) dialog2.findViewById(R.id.ok);\r\n\t \t\t\tok.setOnClickListener(new OnClickListener() {\r\n\r\n\t public void onClick(View v) {\r\n\t \r\n\t \tString temp = path.getText().toString();\r\n\t \tif(temp.equals(\"\"))\r\n\t \t\terror.setText(\"Path not entered!! \");\r\n\t \telse \r\n\t \t{\r\n\t \t\t// Updates path if made any changes...\r\n\t \t\tdb.updatePath(pathid, temp);\r\n\t \t\terror.setText(\"Path updated successfully \");\r\n\t \t}\r\n\t \t\r\n\t \t \t\r\n\t }\r\n\t });\r\n\t \t \r\n\t \t\t\tdialog2.show();\r\n\r\n }\r\n else if((rb.getText()).equals(\"Register\"))\r\n {\r\n \t// if(db!=null)\r\n \t db.close();\r\n \t dialog.dismiss();\r\nSystem.gc();\r\n \tIntent i = new Intent(Settings.this, RegisterMember.class);\r\n \t\t\t\tstartActivity(i);\r\nfinish();\r\n }\r\n \r\n \r\n }\r\n };\r\n\t\t\r\n\t\t final RadioButton enter_id = (RadioButton) dialog.findViewById(R.id.enter_id);\r\n final RadioButton register = (RadioButton) dialog.findViewById(R.id.register);\r\n final RadioButton photos_path = (RadioButton) dialog.findViewById(R.id.photos_path);\r\n \r\n enter_id.setOnClickListener(radio_listener);\r\n register.setOnClickListener(radio_listener);\r\n photos_path.setOnClickListener(radio_listener);\r\n \t\t\t\r\n\t\t\t \r\n Button ok = (Button) dialog.findViewById(R.id.ok);\r\n\t\t ok.setOnClickListener(new OnClickListener() {\r\n\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n \r\n // if(db!=null)\r\n db.close();\r\n System.gc();\r\n Intent i = new Intent(Settings.this, home.class);\r\n \t\t\t\tstartActivity(i);\r\nfinish();\r\n }\r\n });\r\n \r\n dialog.show();\r\n \r\n }",
"public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }",
"private void controladorInformes(Controlador controlador) {\n this.contUpdateCol = controlador.getUpdateColectivos();\n informes.setControlSelectColectivo(contUpdateCol);\n\n }",
"@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tConfirmDialog.show(UI.getCurrent(), MESSAGE_1,\"\",\"Aceptar\",\"Crear mas Usuarios\",\n\t\t\t\t new ConfirmDialog.Listener() {\n\n\t\t\t\t public void onClose(ConfirmDialog dialog) {\t\n\t\t\t\t \tent= false;\n\t\t\t\t if (dialog.isConfirmed()) {\n\t\t\t\t // Confirmed to continue\t\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t } else {\n\t\t\t\t // User did not confirm\t\t\t \n\t\t\t\t \t//c.crearWindow(RegistrarUser.VIEW_NAME);\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t });\n\t\t\t\t\n\t\t\t\t//Notification nota= new Notification(\"Registro Exitoso!\",Notification.Type.HUMANIZED_MESSAGE);\n\t\t\t\t//nota.setDelayMsec(-1);\n\t\t\t\t//nota.show(Page.getCurrent());\t\n\t\t\t\t\n\t\t\t\tclose();\t\t\t\n\t\t\t}",
"public dlgResultados(java.awt.Frame parent, boolean modal, ArrayList<ResultadoAnalisisBE> listaAnalisis) {\n super(parent, modal);\n this.listaAnalisis = listaAnalisis;\n actualizarGrillaResultado();\n initComponents();\n }",
"public void dialogoEditarUsuario() {\n vEditarUsuario = new V_EditarUsuario(new JFrame(), true);\n vEditarUsuario.setVisible(true);\n }",
"@Override\n\tpublic void cargarClienteSinCobrador() {\n\t\tpopup.showPopup();\n\t\tif(UIHomeSesion.usuario!=null){\n\t\tlista = new ArrayList<ClienteProxy>();\n\t\tFACTORY.initialize(EVENTBUS);\n\t\tContextGestionCobranza context = FACTORY.contextGestionCobranza();\n\t\tRequest<List<ClienteProxy>> request = context.listarClienteSinCobrador(UIHomeSesion.usuario.getIdUsuario()).with(\"beanUsuario\");\n\t\trequest.fire(new Receiver<List<ClienteProxy>>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<ClienteProxy> response) {\n\t\t\t\tlista.addAll(response);\t\t\t\t\n\t\t\t\tgrid.setData(lista);\t\t\t\t\n\t\t\t\tgrid.getSelectionModel().clear();\n\t\t\t\tpopup.hidePopup();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n public void onFailure(ServerFailure error) {\n popup.hidePopup();\n //Window.alert(error.getMessage());\n Notification not=new Notification(Notification.WARNING,error.getMessage());\n not.showPopup();\n }\n\t\t\t\n\t\t});\n\t\t}\n\t}",
"@Override\n public void run() {\n\n intent = new Intent(getApplicationContext(), UserMenuActivity.class);\n intent.putExtra(\"EMAIL_ID\", txtloginEmail.getText().toString());\n intent.putExtra(\"CLIENT_ID\", clientId.toString());\n startActivity(intent);\n dialogObject.dismiss();\n }",
"@Override\r\n protected void onPostExecute(JSONObject jso) {\r\n try {\r\n dlg.dismiss();\r\n } catch (Exception e1) { \r\n // Ignore this error \r\n }\r\n boolean succeeded = false;\r\n if (jso != null) {\r\n try {\r\n int what = jso.getInt(\"what\");\r\n String message = jso.getString(\"message\");\r\n \r\n switch (what) {\r\n case MSG_ACCOUNT_VALID:\r\n Toast.makeText(AccountSettingsActivity.this, R.string.authentication_successful,\r\n Toast.LENGTH_SHORT).show();\r\n succeeded = true;\r\n break;\r\n case MSG_ACCOUNT_INVALID:\r\n case MSG_CREDENTIALS_OF_OTHER_USER:\r\n showDialog(what);\r\n break;\r\n case MSG_CONNECTION_EXCEPTION:\r\n Toast.makeText(AccountSettingsActivity.this, R.string.error_connection_error + \" \" + message, Toast.LENGTH_LONG).show();\r\n break;\r\n \r\n }\r\n showUserPreferences();\r\n } catch (JSONException e) {\r\n // Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n if (!skip) {\r\n StateOfAccountChangeProcess state = AccountSettingsActivity.this.state;\r\n // Note: MyAccount was already saved inside MyAccount.verifyCredentials\r\n // Now we only have to deal with the state\r\n \r\n state.actionSucceeded = succeeded;\r\n if (succeeded) {\r\n state.actionCompleted = true;\r\n if (state.getAccountAction().compareTo(Intent.ACTION_INSERT) == 0) {\r\n state.setAccountAction(Intent.ACTION_EDIT);\r\n showUserPreferences();\r\n // TODO: Decide on this...\r\n // closeAndGoBack();\r\n }\r\n }\r\n somethingIsBeingProcessed = false;\r\n }\r\n showUserPreferences();\r\n }",
"@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t\t\n\t\t\tdialog = new ProgressDialog(AddFoodAdvActivity.this);\n\t\t\tdialog.setMessage(\"Loading...\");\n\t\t\tdialog.show();\n\t\t\tsuper.onPreExecute();\n\t\t}",
"@Override\n\tpublic void cargarInformacion_paciente() {\n\t\tinfoPacientes.cargarInformacion(admision, this,\n\t\t\t\tnew InformacionPacienteIMG() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void ejecutarProceso() {\n\t\t\t\t\t\tif (tbxAccion.getValue().equalsIgnoreCase(\"registrar\")) {\n\n\t\t\t\t\t\t\t// Map<String, Object> parametros = new\n\t\t\t\t\t\t\t// HashMap<String, Object>();\n\t\t\t\t\t\t\t// parametros.put(\"codigo_empresa\", codigo_empresa);\n\t\t\t\t\t\t\t// parametros.put(\"codigo_sucursal\",\n\t\t\t\t\t\t\t// codigo_sucursal);\n\t\t\t\t\t\t\t// parametros.put(\"identificacion\",\n\t\t\t\t\t\t\t// admision.getNro_identificacion());\n\t\t\t\t\t\t\t//\n\t\t\t\t\t\t\ttoolbarbuttonTipo_historia\n\t\t\t\t\t\t\t\t\t.setLabel(\"Creando historia de Urgencia Odontologica\");\n\t\t\t\t\t\t\tadmision.setPrimera_vez(\"S\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"public AbsenFrm() {\n initComponents();\n setLocationRelativeTo(null);\n loadUser();\n \n \n \n }",
"public dlgSelectiveAllocate( java.awt.Frame parent, boolean modal, abPlaceable p ) {\n super(parent, modal);\n initComponents();\n setTitle( \"Selective Allocation\" );\n setResizable( false );\n Parent = (ifMechForm) parent;\n Item = p;\n CurLoadout = Parent.GetMech().GetLoadout();\n InitializeSingle();\n }",
"private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }"
] | [
"0.55636656",
"0.5500789",
"0.54889697",
"0.5470884",
"0.54399526",
"0.53821504",
"0.53583616",
"0.5347761",
"0.53212255",
"0.52808315",
"0.52495193",
"0.52419394",
"0.5235299",
"0.5219155",
"0.51883775",
"0.5187576",
"0.51866543",
"0.51842564",
"0.51827437",
"0.51507074",
"0.5144753",
"0.5142074",
"0.5139705",
"0.5127353",
"0.512315",
"0.511101",
"0.5103987",
"0.50998443",
"0.50713515",
"0.5059568",
"0.50540227",
"0.5044798",
"0.5044618",
"0.5039676",
"0.5030941",
"0.502977",
"0.5026384",
"0.5022731",
"0.5020697",
"0.5009709",
"0.5005104",
"0.50008893",
"0.49962807",
"0.4993389",
"0.49928606",
"0.49905878",
"0.498854",
"0.4986965",
"0.49838418",
"0.4979551",
"0.49775615",
"0.49744555",
"0.49702647",
"0.49679008",
"0.49667826",
"0.49586037",
"0.49479964",
"0.49451265",
"0.49439716",
"0.49439356",
"0.49413866",
"0.4930627",
"0.49268284",
"0.492659",
"0.49227875",
"0.49218348",
"0.49163458",
"0.49113217",
"0.4909004",
"0.49045303",
"0.4903477",
"0.48938736",
"0.48922735",
"0.48897213",
"0.48863408",
"0.488144",
"0.48812902",
"0.48806667",
"0.48788154",
"0.48744428",
"0.48713076",
"0.48650968",
"0.4861666",
"0.48608398",
"0.48579457",
"0.48578247",
"0.48534194",
"0.4849847",
"0.48479983",
"0.48471466",
"0.48453814",
"0.48417363",
"0.48399162",
"0.4839757",
"0.48390988",
"0.48366457",
"0.48358116",
"0.48312962",
"0.48272562",
"0.4826439",
"0.48236343"
] | 0.0 | -1 |
Adds the contained associations that should be available for a newly created object e.g. An order should always have at least one order item . Marked in uml with 1.. multiplicity | private void addDefaultAssociations() {
instance = getInstance();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }",
"@Override\r\n\tpublic void addAssociations(Criteria criteria) {\r\n\r\n\t\tif (immunization.getPatient() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"patient.id\", immunization\r\n\t\t\t\t\t.getPatient().getId()));\r\n\t\t}\r\n\r\n\t\tif (immunization.getVaccine() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"vaccine.id\", immunization\r\n\t\t\t\t\t.getVaccine().getId()));\r\n\t\t}\r\n\r\n\t}",
"org.hl7.fhir.ObservationRelated addNewRelated();",
"public void addAssociation(String mPackage, Class type, RefObject a, RefObject b) throws CreationException {\n\t\t\n\t\ttrace.addTrace(TraceType.CREATION, \"Create Association of type \" + type.getSimpleName() + \" in target model.\");\n\t\t\n\t\tRefPackage pkg = loadBasePackage(mPackage);\n\t\tCollection<RefAssociation> assos = pkg.refAllAssociations();\n\t\tfor(RefAssociation ass:assos) {\n\t\t\t/* \n\t\t\t * The return type of java.lang.Class.getInterfaces()\n\t\t\t * has changed in Java 1.6.\n\t\t\t * To compile this file using Java 1.6 or later, change the\n\t\t\t * generic of the List 'interfaces' from List<Class> to\n\t\t\t * List<Class<?>>. \n\t\t\t */\n\t\t\tList<Class> interfaces = Arrays.asList(ass.getClass().getInterfaces());\n\t\t\tif(interfaces.contains(type)) {\n\t\t\t\tMethod add = null;\n\t\t\t\tMethod[] methods = ass.getClass().getMethods();\n\t\t\t\tfor(Method m : methods) {\n\t\t\t\t\tif (m.getName().equals(\"add\")) {\n\t\t\t\t\t\tadd = m;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (add == null) {\n\t\t\t\t\tthrow new CreationException(ADD_METHOD_NOT_FOUND + type.getSimpleName());\n\t\t\t\t}\n\t\t\t\n\t\t\t\tObject[] parameters = {a,b};\n\t\t\t\ttry {\n\t\t\t\t\tadd.invoke(ass, parameters);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_ADD_ASS + type.getSimpleName());\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\t\n\t\n\t\t\n\t\t}",
"public void loadAssociations() {\n\n\t\tinitListSettingNames();\n\n\t\taddDefaultAssociations();\n\t}",
"void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }",
"public void loadAssociations() {\r\n\r\n\t\tif (immunization.getPatient() != null) {\r\n\t\t\tpatientAction.setInstance(getInstance().getPatient());\r\n\t\t}\r\n\r\n\t\tif (immunization.getVaccine() != null) {\r\n\t\t\tvaccineAction.setInstance(getInstance().getVaccine());\r\n\t\t}\r\n\r\n\t}",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation addNewObjectives();",
"Cascade createCascade();",
"public void cascadeRegisterNewIfRequired(Object object, UnitOfWorkImpl uow, IdentityHashtable visitedObjects){\n //aggregate objects are not registered but their mappings should be.\n Object cloneAttribute = null;\n cloneAttribute = getAttributeValueFromObject(object);\n if ( cloneAttribute == null ) {\n return;\n }\n\n ObjectBuilder builder = null;\n ContainerPolicy cp = getContainerPolicy();\n Object cloneObjectCollection = null;\n cloneObjectCollection = getRealCollectionAttributeValueFromObject(object, uow);\n Object cloneIter = cp.iteratorFor(cloneObjectCollection);\n while (cp.hasNext(cloneIter)) {\n Object nextObject = cp.next(cloneIter, uow);\n if (nextObject != null && (! visitedObjects.containsKey(nextObject)) ) {\n visitedObjects.put(nextObject, nextObject);\n builder = getReferenceDescriptor(nextObject.getClass(), uow).getObjectBuilder();\n builder.cascadeRegisterNewForCreate(nextObject, uow, visitedObjects);\n }\n }\n }",
"public static void createAggregatedRelationship (AbstractStructureElement from, AbstractStructureElement to, ArrayList<KDMRelationship> relations) {\n\t\tif (from.getAggregated().size() > 0) {\r\n\t\t\t//System.out.println(\"MAIOR QUE 1, TODO\");\r\n\r\n\t\t\t//Andre - pega os aggragated que ja estão no from\r\n\t\t\tEList<AggregatedRelationship> aggregatedFROM = from.getAggregated();\t\t\r\n\r\n\t\t\t//Andre - começa um for nesses aggregated\r\n\t\t\tfor (int i = 0; i < aggregatedFROM.size(); i++) {\r\n\r\n\t\t\t\t//Andre - verifica se o aggregated que ja existe tem o mesmo destino que o que esta pra ser criado \r\n\t\t\t\tif (to.getName().equalsIgnoreCase(aggregatedFROM.get(i).getTo().getName())) {\r\n\r\n\t\t\t\t\t//Andre - se tiver o mesmo destino ele adiciona as relacoes novas e atualiza a densidade, depois disso ele pega e sai do for\r\n\t\t\t\t\t//ADICIONAR\r\n\r\n\t\t\t\t\taggregatedFROM.get(i).setDensity(aggregatedFROM.get(i).getDensity()+relations.size());\r\n\t\t\t\t\taggregatedFROM.get(i).getRelation().addAll(relations);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//Andre - se for o ultimo aggregated do for e mesmo assim não encontrou o com o mesmo destino que esta pra ser criado \r\n\t\t\t\t//Andre - entao cria um novo aggregated para ser adicionado\r\n\t\t\t\t//se chegar no ultimo e nao encontrar\r\n\t\t\t\tif (i == (aggregatedFROM.size()-1)) {\r\n\r\n\t\t\t\t\tAggregatedRelationship newRelationship = CoreFactory.eINSTANCE.createAggregatedRelationship();\r\n\t\t\t\t\tnewRelationship.setDensity(relations.size());\r\n\t\t\t\t\tnewRelationship.setFrom(from);\r\n\t\t\t\t\tnewRelationship.setTo(to);\r\n\t\t\t\t\tnewRelationship.getRelation().addAll(relations);\r\n\t\t\t\t\tfrom.getAggregated().add(newRelationship);\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t//Andre - se não tiver um agrregated na layer from adiciona um com as relacoes que podem entre duas layers\r\n\t\t\tAggregatedRelationship newRelationship = CoreFactory.eINSTANCE.createAggregatedRelationship();\r\n\t\t\tnewRelationship.setDensity(relations.size());\r\n\t\t\tnewRelationship.setFrom(from);\r\n\t\t\tnewRelationship.setTo(to);\r\n\t\t\tnewRelationship.getRelation().addAll(relations);\r\n\t\t\tfrom.getAggregated().add(newRelationship);\r\n\t\t}\r\n\r\n\t\t//Fernando - Limpando lista \r\n\t\trelations.clear();\r\n\t\tfrom = null;\r\n\t\tto = null;\r\n\r\n\r\n\t}",
"private void indirectAssociations_DeriveIndirectInheritance() {\n try{\n \tList<FamixAssociation> indirectInheritanceAssociations = new ArrayList<FamixAssociation>();\n\t for (FamixAssociation directAssociation : theModel.associations) {\n if (directAssociation.to == null || directAssociation.from == null || directAssociation.to.equals(\"\") || directAssociation.from.equals(\"\")){ \n \tnumberOfNotConnectedWaitingAssociations ++;\n }\n else if (directAssociation instanceof FamixInheritanceDefinition){ \n \t\t\t\tindirectInheritanceAssociations.addAll(indirectAssociations_AddIndirectInheritanceAssociation(directAssociation.from, directAssociation.to, directAssociation.lineNumber));\n\t\t\t\t}\n\t\t\t}\n\t for (FamixAssociation indirectInheritanceAssociation : indirectInheritanceAssociations) {\n\t \taddToModel(indirectInheritanceAssociation);\n\t }\n } catch (Exception e) {\n\t this.logger.debug(new Date().toString() + \" \" + e);\n\t e.printStackTrace();\n }\n }",
"void addAssociation(Association association);",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations addNewFurtherRelations();",
"@Autowired(required=false)\n public void addRuleAssociations(Set<DecideRuledSheetAssociation> associations) {\n // always keep sorted by order\n this.ruleAssociations.clear();\n this.ruleAssociations.addAll(associations);\n }",
"private void addFKsNoReuse() \n\t{\n\t\t\tfor(int i = 1; i < numOfTgtTables; i++) \n\t\t\t{\n\t\t\t\t// add a variable number of foreign keys per table (always the first keySize attributes)\n\t\t\t\t//MN fixed the errors of incorrectly generating foreign key - 24 June 2014\n\t\t\t\t//for (int j = 0; j < keySize; j++)\n\t\t\t\t\t//addFK(i, j, 0, j, false);\n\t\t\t\tString[] fAttr = new String[keySize];\n\t\t\t\tfor(int j=0; j<keySize; j++)\n\t\t\t\t\tfAttr[j] = m.getTargetRels().get(i).getAttrArray(j).getName();\n\t\t\t\t\n\t\t\t\tString[] tAttr = new String[keySize];\n\t\t\t\tfor (int j=0; j<keySize; j++)\n\t\t\t\t\ttAttr[j] = m.getTargetRels().get(0).getAttrArray(j).getName();\n\t\t\t\t\n\t\t\t\taddFK(i, fAttr, 0, tAttr, false);\n\t\t\t}\n\t}",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();",
"void processInheritanceAssociations() {\n\t\tFamixAssociation foundInheritance;\n\t\tHashSet<String> foundInheritanceList;\n\t\tHashSet<String> alreadyIncludedInheritanceList;\n\t\tinheritanceAssociationsPerClass = new HashMap<String, HashSet<String>>();\n\t\ttry{\n\t\t\tIterator<FamixAssociation> iterator = theModel.waitingAssociations.iterator();\n\t for (Iterator<FamixAssociation> i=iterator ; i.hasNext();) {\n\t \tboolean inheritanceAssociation = false;\n\t \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n\t \tFamixAssociation association = (FamixAssociation) i.next();\n\t\t String uniqueNameFrom = association.from;\n\n \t/* Test helper\n \tif (association.from.startsWith(\"Limaki.Actions.Command\")){\n \t\tboolean breakpoint = true;\n \t} */\n\n\t\t if (association instanceof FamixInheritanceDefinition){\n\t\t \tinheritanceAssociation = true;\n\t\t }\n \tif (inheritanceAssociation) {\n\t\t\t if (theModel.classes.containsKey(uniqueNameFrom)) {\n\t\t\t \tfromExists = true;\n\t\t\t }\n \t}\n \tif (inheritanceAssociation && fromExists) {\n\t\t\t if ((association.to != null) && (!association.to.equals(\"\"))) {\n\t\t\t \ttoHasValue = true;\n\t\t\t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n\t\t\t\t \ttoExists = true;\n\t\t\t\t }\n\t\t\t }\n \t}\n\t\t // If association.to is not a unique name of an existing type, try to replace it by the complete unique name.\n\t \t// Determine the type of association.to, first based on imports, and second based on package contents.\n\t \tif (inheritanceAssociation && fromExists && !toExists && toHasValue) {\n String to = findClassInImports(association.from, association.to);\n if (!to.equals(\"\")) {\n association.to = to;\n }\n else {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t to = findClassInPackage(association.to, belongsToPackage);\n\t if (!to.equals(\"\")) { // So, in case association.to shares the same package as association.from \n\t association.to = to;\n\t }\n }\n \t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n \t\t \ttoExists = true;\n \t\t }\n \t}\n\t \tif (inheritanceAssociation && fromExists && toExists && !theModel.associations.contains(association)) {\n\t\t \t// Add the inheritance association to the FamixModel, but only if to and from are equal. \n\t \tif (!association.from.equals(association.to)) { \n\t \t\taddToModel(association);\n\t \t}\n\n\t \t// Fill the HashMap inheritanceAccociationsPerClass with inheritance dependencies to super classes or interfaces \n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = null;\n\t \tfoundInheritanceList = null;\n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = association;\n\t \tif(inheritanceAssociationsPerClass.containsKey(uniqueNameFrom)){\n\t \t\talreadyIncludedInheritanceList = inheritanceAssociationsPerClass.get(uniqueNameFrom);\n\t \t\tif (!alreadyIncludedInheritanceList.contains(association.to)) {\n\t \t\t\talreadyIncludedInheritanceList.add(foundInheritance.to);\n\t \t\t}\n\t \t\tinheritanceAssociationsPerClass.put(uniqueNameFrom, alreadyIncludedInheritanceList);\n\t \t}\n\t \telse{\n\t\t \tfoundInheritanceList = new HashSet<String>();\n\t\t \tfoundInheritanceList.add(foundInheritance.to);\n\t\t \tinheritanceAssociationsPerClass.put(uniqueNameFrom, foundInheritanceList);\n\t \t}\n\t \t\n\t \t// Remove from waitingAssociations afterwards, to enhance the performance. \t\n\t\t\t i.remove();\n\t \t}\n\t }\n\t\t} catch(Exception e) {\n\t this.logger.debug(new Date().toString() + \"Exception may result in incomplete dependency list. Exception: \" + e);\n\t //e.printStackTrace();\n\t\t}\n\t\tindirectAssociations_DeriveIndirectInheritance();\n this.logger.info(new Date().toString() + \" Finished: processInheritanceAssociations()\");\n }",
"public void testAssociation() {\n \t\tString ID1 = \"iu.1\";\n \t\tString IDF1 = \"iu.fragment.1\";\n \t\tIInstallableUnit iu1 = createEclipseIU(ID1);\n \t\tIInstallableUnit iuf1 = createBundleFragment(IDF1);\n \t\tProfileChangeRequest req = new ProfileChangeRequest(createProfile(getName()));\n \t\treq.addInstallableUnits(iu1, iuf1);\n \t\tcreateTestMetdataRepository(new IInstallableUnit[] {iu1, iuf1});\n \t\tIQueryable<IInstallableUnit> additions = createPlanner().getProvisioningPlan(req, null, null).getAdditions();\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(ID1), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + ID1, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + ID1, 1, iu.getFragments().size());\n \t\t\tassertEquals(\"Attached fragment to IU \" + ID1, IDF1, iu.getFragments().iterator().next().getId());\n \t\t}\n \t\t{\n \t\t\tIterator<IInstallableUnit> iterator = additions.query(QueryUtil.createIUQuery(IDF1), null).iterator();\n \t\t\tassertTrue(\"Solution contains IU \" + IDF1, iterator.hasNext());\n \t\t\tIInstallableUnit iu = iterator.next();\n \t\t\tassertEquals(\"Number of attached fragments to IU \" + IDF1, 0, iu.getFragments().size());\n \t\t}\n \t\t//\t\tResolutionHelper rh = new ResolutionHelper(new Hashtable(), null);\n \t\t//\t\tHashSet set = new HashSet();\n \t\t//\t\tset.add(iu1);\n \t\t//\t\tset.add(iu2);\n \t\t//\t\tCollection result = rh.attachCUs(set);\n \t}",
"@Test\n\tpublic void testAddLinkOkMultNtoNLinkedHashSet() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\ttstNMAssociationInverse();\n\t}",
"@Test\n\tpublic void testAddLinkOkMultNtoNArrayList() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(ArrayList.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(ArrayList.class);\n\t\ttstNMAssociationInverse();\n\t}",
"public ResultMap<Association> associations();",
"Relationship createRelationship();",
"boolean isSetFurtherRelations();",
"public EmbeddedObjects() {\n super();\n this._embeddedObjectList = new java.util.Vector<de.lsem.simulation.transformation.anylogic.generator.persistant.EmbeddedObject>();\n }",
"void addAssociation(String path, String type, String associationPaths,\n String operation) throws RegistryException;",
"@Override\n\tprotected void prepareChangeSetProcessing() {\n\t\t// change set processing is not supported for the product associations import\n\t}",
"public void disableAddAssociation() {\n System.out.println(\"disable add affliation\");\n teams_addAssociation.setDisable(false);\n teams_removeAssociation.setDisable(true);\n }",
"void addAssociation(AssociationEnd association);",
"org.hl7.fhir.ObservationRelated insertNewRelated(int i);",
"public ResultMap<Association> associations(QName associationTypeQName);",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfRequiredResource addNewRequiredResources();",
"Collection<AssociationEnd> getAssociations();",
"public void addAssoications(Criteria criteria) {\r\n\r\n\t\tif (item.getPrescription() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"prescription.id\", item\r\n\t\t\t\t\t.getPrescription().getId()));\r\n\t\t}\r\n\r\n\t\tif (item.getDrug() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"drug.id\", item.getDrug()\r\n\t\t\t\t\t.getId()));\r\n\t\t}\r\n\r\n\t\tif (item.getFrequency() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"frequency.id\", item\r\n\t\t\t\t\t.getFrequency().getId()));\r\n\t\t}\r\n\r\n\t}",
"@Test\n\tpublic void testAddLinkOkMultNtoNTreeSet() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(TreeSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(TreeSet.class);\n\t\ttstNMAssociationInverse();\n\t}",
"public boolean containsRelations();",
"public Map<String, HasFormAssociation> fetchFormAssociations();",
"@Override\n\tpublic void addParties(ArrayList<Party> others) {\n\n\t}",
"@Override\n public void onRelationshipMapLoaded() {\n }",
"@Test\n public void testAddAss() {\n ArrayList<Association<String, String>> arrayAs = new ArrayList<>();\n String in=\"cat\";\n String es=\"gato\";\n Association h=new Association (in, es);\n arrayAs.add(h);\n in=\"ballon\";\n es=\"globo\";\n Association k=new Association (in, es);\n arrayAs.add(k);\n Diccionario instance = new Diccionario(arrayAs);\n }",
"private void createQualificationsList(){\n\t\tlistedQualList.clear();\n\t\tlistedQuals=jdbc.get_qualifications();\n\t\tfor(Qualification q: listedQuals){\n\t\t\tlistedQualList.addElement(q.getQualName());\n\t\t}\n\t}",
"@Test\r\n\tpublic void addRelatedTable() {\r\n\t\ttestObj.addRelatedTable(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"relatedTables size should be 1\", 1, testObj.getRelatedTablesArray().length);\r\n\t}",
"void clearAssociations();",
"private void performCreates()\n {\n // Create entities. We have to loop possibly many times to create the entities\n // because we have to set the FKs. It's\n // possible that the source for a FK is a FK from yet another EI. We don't\n // want to copy a FK until we know that the source for a FK has been\n // properly set. We also want to make sure we set the FK's for the EIs that\n // have been excluded/deleted before we copy FKs for the included/created.\n int debugCnt = 0; // We'll keep a counter in case we get an infinite loop.\n\n // creatingEntities will be true for as long as we think we need to create more entities.\n boolean creatingEntities = true;\n while ( creatingEntities )\n {\n // We'll hope that we're done creating entities after this iteration. If we\n // find we need to create more then we'll turn it back on.\n creatingEntities = false;\n\n if ( debugCnt++ > 100 )\n throw new ZeidonException(\"Internal error: too many times creating entities.\");\n\n for ( ViewImpl view : viewList )\n {\n ObjectInstance oi = view.getObjectInstance();\n\n for ( final EntityInstanceImpl ei : oi.getEntities() )\n {\n if ( ! requiresCreate( ei ) )\n continue;\n\n assert ! ei.getEntityDef().isDerivedPath();\n\n if ( ! createInstance( view, ei ) )\n creatingEntities = true; // We weren't able to create ei. Try again later.\n }\n }\n } // while creatingEntities...\n }",
"void processWaitingAssociations() {\n\t\tint numberOfConnectedViaImport = 0;\n\t\tint numberOfConnectedViaPackage = 0;\n\t\tint numberOfConnectedViaAttribute = 0;\n\t\tint numberOfConnectedViaLocalVariable = 0;\n\t\tint numberOfConnectedViaMethod = 0;\n\n for (FamixAssociation association : theModel.waitingAssociations) {\n try {\n \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n \tboolean chainingInvocation = false;\n \tboolean typeIsAccess = false;\n \tboolean nextAssociationIsIndirect = false;\n \tString toRemainderChainingInvocation = \"\";\n \tString toString = \"\";\n \tFamixInvocation theInvocation = null;\n\n /* Test helpers\n \tif (association.from.contains(\"husacct.define.presentation.jdialog.ExceptionRuleJDialog\")) {\n \t\tif (association.lineNumber == 74) {\n \t \t\t\t\tboolean breakpoint = true;\n \t\t\t}\n \t} */\n\n \t// Check if association.from refers to an existing class\n \tif (theModel.classes.containsKey(association.from)) {\n \t\tfromExists = true;\n \t} \n \t// Check if association.to (or a part of it) refers to an existing class or library\n if ((association.to != null) && !association.to.equals(\"\") && !association.to.trim().equals(\".\")){ \n \ttoHasValue = true;\n \tif (theModel.classes.containsKey(association.to) || theModel.libraries.containsKey(\"xLibraries.\" + association.to)) {\n \t\ttoExists = true;\n \t} else { // Check if a part of association.to refers to an existing class or library \n if (association.to.contains(\".\")) {\n\t\t\t \tString[] allSubstrings = association.to.split(\"\\\\.\");\n\t\t\t \ttoString = allSubstrings[0];\n\t\t for (int i = 1; i < allSubstrings.length ; i++) {\n\t\t \ttoString += \".\"+ allSubstrings[i];\n\t\t \tif (theModel.classes.containsKey(toString) || theModel.libraries.containsKey(\"xLibraries.\" + toString)) {\n\t\t \t\tif ((association instanceof FamixInvocation)) {\n\t\t theInvocation = (FamixInvocation) association;\n\t\t association.to = toString;\n\t\t\t \t\ttoExists = true;\n\t\t\t \t\tchainingInvocation = true;\n\t\t\t\t\t // Put the remainder in a variable; needed to create a separate indirect association later on remainder substrings\n\t\t\t\t\t i++;\n\t\t\t \t\tif (allSubstrings.length >= i) {\n\t\t\t\t \t\ttoRemainderChainingInvocation = allSubstrings[i];\n\t\t\t\t\t\t for (int j = i + 1; j < allSubstrings.length ; j++) {\n\t\t\t\t\t\t \ttoRemainderChainingInvocation = toRemainderChainingInvocation + \".\" + allSubstrings[j];\n\t\t\t\t\t\t }\n\t\t\t \t\t}\n\t\t \t\t}\n\t\t \t}\n\t\t }\n }\n \t}\n }\n\n \t// Objective: If FamixAssociation.to is a name instead of a unique name, than replace it by the unique name of a FamixEntity (Class or Library) it represents. \n\n /* 0) Select and process FamixInvocations with a composed to-name\n * If FamixAssociation.to is composed of substrings (a chaining assignment or call), a dependency to the type of the first substring is a direct dependency.\n * Dependencies to types of the following substrings are determined afterwards. The next one is indirect, if the first substring is a method or variable of a super class, otherwise it is direct.\n * Algorithm: Split the string and try to identify the type of the first substring. Create a separate association to identify dependencies to following substring (variables or methods). \n * If the type of the first substring is identified, replace the substring by the type in the next association, and store this association to be processed later on. \n * */\n if (fromExists && !toExists && toHasValue){\n \tif ((association instanceof FamixInvocation)) {\n theInvocation = (FamixInvocation) association;\n if (association.to.contains(\".\")) {\n\t\t\t \tString[] allSubstrings = association.to.split(\"\\\\.\");\n\t\t\t \tif (allSubstrings.length > 1) {\n\t\t\t \tchainingInvocation = true;\n\t\t\t \tassociation.to = allSubstrings[0]; \n\t\t\t // Put the remainder in a variable; needed to create a separate indirect association later on remainder substrings\n\t\t\t toRemainderChainingInvocation = allSubstrings[1];\n\t\t\t for (int i = 2; i < allSubstrings.length ; i++) {\n\t\t\t \ttoRemainderChainingInvocation = toRemainderChainingInvocation + \".\" + allSubstrings[i];\n\t\t\t }\n\t\t\t \t}\n }\n }\n }\n \n // 1) Try to derive the unique name from the imports.\n if (fromExists && !toExists && toHasValue){\n \tif (!association.to.contains(\".\")) {\n\t toString = findClassInImports(association.from, association.to);\n\t if (!toString.equals(\"\")) {\n\t association.to = toString;\n \t\t\ttoExists = true;\n \t\t\tnumberOfConnectedViaImport ++;\n\t }\n \t}\n }\n\t \n // 2) Find out or association.to refers to a type in the same package as the from class.\n if (fromExists && !toExists && toHasValue){\n \tif (!association.to.contains(\".\")) {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t toString = findClassInPackage(association.to, belongsToPackage);\n\t if (!toString.equals(\"\")) { // So, in case association.to does not contain \".\" AND association.to shares the same package as association.from \n\t association.to = toString;\n\t \t\t\ttoExists = true;\n \t\t\ttypeIsAccess = true;\n\t \t\t\tnumberOfConnectedViaPackage ++;\n\t }\n \t}\n }\n\n \t// 3) Determine if association.to is an (inherited) attribute. If so determine the type of the attribute. \n if ((association instanceof FamixInvocation) && (!association.to.endsWith(\")\"))) {\n \t \tString classOfAttribute = findAttribute(association.from, association.to);\n \t if (!classOfAttribute.equals(\"\")) {\n\t \t\t\tif (!classOfAttribute.equals(association.from)) { // classOfAttribute refers to a super class \n\t\t \t// Create an access dependency on the superclass.\n\t\t \t\t\t\tFamixInvocation newIndirectInvocation = indirectAssociations_AddIndirectInvocation(\"AccessPropertyOrField\", association.from, classOfAttribute, theInvocation.lineNumber, theInvocation.belongsToMethod, association.to, theInvocation.nameOfInstance, false);\n\t\t \taddToModel(newIndirectInvocation); \n\t\t\t \t\t\tnumberOfDerivedAssociations ++;\n\t }\n \t \t\tFamixStructuralEntity entity = theModel.structuralEntities.get(classOfAttribute + \".\" + association.to);\n \t \t\tif (entity.declareType != null && !entity.declareType.equals(\"\")){\n \t \t\t\tassociation.to = entity.declareType;\n \t \tnumberOfConnectedViaAttribute++;\n \t \tif (chainingInvocation) { \n \t \t\t// The invocation is not added to the model yet, because it reflects an invisible access of the type of variable. Creating a new derived invocation is redundant.\n\t \t \tassociation.type = \"Undetermined\";\n\t \t \ttheInvocation.invocationName = toRemainderChainingInvocation;\n\t \t \twaitingDerivedAssociations.add(theInvocation);\n \t \t} else {\n\t\t\t\t\t\t\t\t// The invocation is added as an access invocation to the referred type; the return value of the complete string.\n\t \t \tassociation.type = \"AccessPropertyOrField\";\n\t\t \t\t\ttoExists = true;\n\t \t\t\ttypeIsAccess = true;\n\t\t\t\t\t\t\t}\n \t \t\t}\n \t \t}\n } \n \n // 4) Find out or association.to refers to a local variable or parameter: Get StructuralEntity on key ClassName.MethodName.VariableName\n\t if (fromExists && !toExists && toHasValue && (!association.to.endsWith(\")\"))){\n if (association instanceof FamixInvocation) {\n\t\t \tString searchKey = association.from + \".\" + theInvocation.belongsToMethod + \".\" + theInvocation.to;\n\t \tif (theModel.structuralEntities.containsKey(searchKey)) {\n\t \t\tFamixStructuralEntity entity = theModel.structuralEntities.get(searchKey);\n\t \t\tif (entity.declareType != null && !entity.declareType.equals(\"\")){\n\t \t\t\ttheInvocation.to = entity.declareType;\n\t\t \t\t\ttoExists = true;\n\t \t\t\ttypeIsAccess = true;\n\t\t \t\t\tnumberOfConnectedViaLocalVariable ++;\n\t \t\t}\n\t \t}\n }\n \t}\n\n \t// 5) Determine if association.to is an (inherited) method. If so determine the return type of the method. \n if ((association instanceof FamixInvocation) && (association.to.endsWith(\")\"))) {\n \tboolean methodFound = false;\n \tFamixMethod foundMethod = findInvokedMethodOnName(association.from, theInvocation.belongsToMethod, association.from, association.to);\n \t if (foundMethod != null) {\n \t \tmethodFound = true;\n \t } else { // Determine if association.to is an inherited method. \n \t \t\tString superClassName = indirectAssociations_findSuperClassThatContainsMethod(association.from, theInvocation.belongsToMethod, association.from, association.to);\n \t \t\tif ((superClassName != null) && !superClassName.equals(\"\")) {\n \t \tfoundMethod = findInvokedMethodOnName(association.from, theInvocation.belongsToMethod, superClassName, association.to);\n \t \t if (foundMethod != null) {\n \t \t \tmethodFound = true;\n \t\t \t// Create a call dependency on the superclass;\n \t\t \t\t\t\tFamixInvocation newInvocation = indirectAssociations_AddIndirectInvocation(\"InvocMethod\", theInvocation.from, superClassName, theInvocation.lineNumber, theInvocation.belongsToMethod, association.to, theInvocation.nameOfInstance, false);\n \t\t \taddToModel(newInvocation); \n \t\t\t \t\t\tnumberOfDerivedAssociations ++;\n \t }\n \t \t\t\t}\n \t }\n \t if (!methodFound) {\n \t \t// Check if the method is a constructor call\n \t \tString className = association.to.substring(0, association.to.indexOf(\"(\"));\n\t toString = findClassInImports(association.from, className);\n\t if (!toString.equals(\"\")) {\n\t \t \t\tassociation.to = toString;\n\t \t \t\tassociation.type = \"InvocMethod\";\n\t\t \t\t\ttoExists = true;\n\t \t \t}\n \t }\n \t if (methodFound) {\n \t \t// Determine the return type of the method.\n \t if ((foundMethod != null) && (foundMethod.declaredReturnType != null) && !foundMethod.declaredReturnType.equals(\"\")) {\n \t \tassociation.to = foundMethod.declaredReturnType;\n \t \tnumberOfConnectedViaMethod++;\n \t \tif (chainingInvocation) { \n \t \t\t// The invocation is not added to the model yet, because it reflects an invisible access of the return type of the method. Creating a new derived invocation is redundant.\n\t \t \tassociation.type = \"Undetermined\";\n\t \t \ttheInvocation.invocationName = toRemainderChainingInvocation;\n\t \t \twaitingDerivedAssociations.add(theInvocation);\n \t \t} else {\n\t\t\t\t\t\t\t\t// The invocation is added as an access invocation to the referred type; the return value of the complete string.\n\t \t \tassociation.type = \"AccessPropertyOrField\";\n\t\t \t\t\ttoExists = true;\n\t\t\t\t\t\t\t}\n \t \t\t}\n \t \t}\n \t}\n \n if (fromExists && toExists) {\n\t\t\t\t\tif (!association.from.equals(association.to) && (theModel.classes.containsKey(association.to) || theModel.libraries.containsKey(\"xLibraries.\" + association.to))) {\n\t \t\t\t\tdetermineSpecificExtendType(association);\n \t\t\tif (typeIsAccess && association.type.startsWith(\"Invoc\")) {\n \t\t\t\tassociation.type = \"AccessPropertyOrField\";\n \t\t\t}\n\t\t\t\t\t\taddToModel(association);\n\t\t\t\t\t} else {\n\t \t\t\t// Do nothing\n\t\t\t\t\t}\n\t\t\t\t\tif (association instanceof FamixInvocation) {\n\t\t\t\t\t\tif (chainingInvocation) { // If true, create an association to identify dependencies to the remaining parts of the chain. Store it temporarily; it is processed in a separate method. \n\t\t FamixInvocation indirectAssociation = new FamixInvocation();\n\t\t indirectAssociation.type = \"Undetermined\";\n\t\t indirectAssociation.isIndirect = nextAssociationIsIndirect;\n\t\t indirectAssociation.from = association.from;\n\t\t indirectAssociation.lineNumber = association.lineNumber;\n\t\t indirectAssociation.to = association.to;\n\t\t indirectAssociation.invocationName = toRemainderChainingInvocation;\n\t\t indirectAssociation.belongsToMethod = theInvocation.belongsToMethod;\n\t\t indirectAssociation.nameOfInstance = theInvocation.nameOfInstance;\n\t\t waitingDerivedAssociations.add(indirectAssociation);\n\t\t\t\t\t\t} else {\n\t\t \t\t\t// Do nothing\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n } else {\n \tif (!chainingInvocation) { \n \t\tnumberOfNotConnectedWaitingAssociations ++;\n \t} else {\n \t\t// Do nothing\n \t}\n \t\n }\n \t\t\t\n calculateProgress();\n //Needed to check if Thread is allowed to continue\n \tif (!ServiceProvider.getInstance().getControlService().getState().contains(States.ANALYSING)) {\n break;\n \t}\n\n } catch (Exception e) {\n \tString associationType = association.type;\n \t this.logger.error(new Date().toString() + \" \" + e + \" \" + associationType + \" \" + association.toString());\n \t e.printStackTrace();\n }\n }\n // Add the indirect associations created during this process to FamixModel.associations\n for (FamixAssociation indirectAssociation : indirectAssociations) {\n \taddToModel(indirectAssociation);\n }\n\n this.logger.info(new Date().toString() + \" Connected via 1) Import: \" + numberOfConnectedViaImport + \", 2) Package: \" + numberOfConnectedViaPackage + \", 3) Variable: \" + numberOfConnectedViaAttribute \n \t\t+ \", 4) Local var: \" + numberOfConnectedViaLocalVariable + \", 5) Method: \" + numberOfConnectedViaMethod + \", 6) Inherited var/method: \" + numberOfDerivedAssociations);\n }",
"public Relations() {\n relations = new ArrayList();\n }",
"abstract void takeResposibilityForConnectionOfAssociation(com.webobjects.eointerface.EOAssociation association);",
"@Test(description = \"update interface with all relationships for existing interface with one relationship\")\n public void updateAllRelationships4ExistingRelationship()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestType\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel);\n data.create();\n\n inter.addAllRelationships();\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n \"all\",\n \"check that only all relationship is defined\");\n }",
"@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic boolean ignoreForeignItems() {\n\t\treturn true;\n\t}",
"public InHouseAppIdPolicyIdMapping[] getAssociations() {\r\n\t\treturn associations;\r\n\t}",
"private void markDuplicateRelationships(EntityInstanceImpl ei)\n {\n EntityInstanceImpl parent = ei.getParent();\n EntityDef entityDef = ei.getEntityDef();\n\n // Duplicate relationship searching phase I, see if a linked instance to\n // the target instance in the same object instance represents the\n // same relationship type AND has the same parent.\n for ( EntityInstanceImpl linked : ei.getLinkedInstances() )\n {\n // Check to make sure linked EI has a parent--it is possible for a root\n // to be flagged as included and we don't care about roots.\n if ( linked.isDeleted() || linked.getParent() == null )\n continue;\n\n if ( ei.isExcluded() )\n {\n if ( ! linked.isExcluded() )\n continue;\n }\n else\n {\n if ( ! linked.isIncluded() )\n continue;\n }\n\n EntityDef linkedEntityDef = linked.getEntityDef();\n\n // Linked EI must have the same relationship and it can't be derived.\n if ( linkedEntityDef.getErRelToken() == entityDef.getErRelToken() ||\n linkedEntityDef.isDerivedPath() )\n {\n continue;\n }\n\n // Now check to see if the parents are linked.\n EntityInstanceImpl linkParent = linked.getParent();\n for ( EntityInstanceImpl parentLinked : linkParent.getLinkedInstances() )\n {\n if ( parentLinked == parent )\n {\n if ( ei.isExcluded() )\n linked.dbhExcluded = true;\n else\n linked.dbhIncluded = true;\n\n break;\n }\n }\n } // for each linked instance...\n\n // Duplicate relationship searching, phase II, see if the parent of\n // the instance has a linked instance representing the same relationship\n // type which is also a child of one of the targets linked instances.\n\n // If the parent isn't linked then there are no duplicate relationships.\n if ( parent.getLinkedInstances().size() == 0 )\n return;\n\n for ( EntityInstanceImpl linked : parent.getLinkedInstances() )\n {\n // Check for appropriate include/exclude flag.\n if ( ei.isExcluded() )\n {\n if ( ! linked.isExcluded() )\n continue;\n }\n else\n {\n if ( ! linked.isIncluded() )\n continue;\n }\n\n EntityDef linkedEntityDef = linked.getEntityDef();\n\n // Check to see if the relationship for the EI linked to the parent is\n // the same as the relationship of the original EI.\n if ( linkedEntityDef.getErRelToken() != entityDef.getErRelToken() )\n continue; // Nope.\n\n // OK, we have an EI ('linked') that has the same relationship as\n // ei. Check to see if the parent of 'linked' (grandParent)\n // is linked with ei. If they are linked then 'linked'\n // has the same physical relationship as ei.\n EntityInstanceImpl grandParent = linked.getParent();\n for ( EntityInstanceImpl gp : ei.getLinkedInstances() )\n {\n if ( gp == grandParent )\n {\n if ( ei.isExcluded() )\n linked.dbhExcluded = true;\n else\n linked.dbhIncluded = true;\n\n break;\n }\n }\n } // for each linked instance of parent...\n }",
"public Association createAssociation(SnpAssociationStandardMultiForm form) {\n Association association = setCommonAssociationElements(form);\n association.setSnpInteraction(false);\n\n // Add loci to association, for multi-snp and standard snps we assume their is only one locus\n Collection<Locus> loci = new ArrayList<>();\n Locus locus = new Locus();\n\n // Set locus description and haplotype count\n // Set this number to the number of rows entered by curator\n Integer numberOfRows = form.getSnpFormRows().size();\n if (numberOfRows > 1) {\n locus.setHaplotypeSnpCount(numberOfRows);\n association.setMultiSnpHaplotype(true);\n }\n\n if (form.getMultiSnpHaplotypeDescr() != null && !form.getMultiSnpHaplotypeDescr().isEmpty()) {\n locus.setDescription(form.getMultiSnpHaplotypeDescr());\n }\n else {\n if (numberOfRows > 1) {\n locus.setDescription(numberOfRows + \"-SNP haplotype\");\n }\n else {\n locus.setDescription(\"Single variant\");\n }\n }\n\n // Create gene from each string entered, may sure to check pre-existence\n Collection<String> authorReportedGenes = form.getAuthorReportedGenes();\n Collection<Gene> locusGenes = lociAttributesService.createGene(authorReportedGenes);\n\n // Set locus genes\n locus.setAuthorReportedGenes(locusGenes);\n\n // Handle rows entered for haplotype by curator\n Collection<SnpFormRow> rows = form.getSnpFormRows();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<>();\n\n for (SnpFormRow row : rows) {\n\n // Create snps from row information\n String curatorEnteredSNP = row.getSnp();\n SingleNucleotidePolymorphism snp = lociAttributesService.createSnp(curatorEnteredSNP);\n\n // Get the curator entered risk allele\n String curatorEnteredRiskAllele = row.getStrongestRiskAllele();\n\n // Create a new risk allele and assign newly created snp\n RiskAllele riskAllele = lociAttributesService.createRiskAllele(curatorEnteredRiskAllele, snp);\n\n // If association is not a multi-snp haplotype save frequency to risk allele\n if (!form.getMultiSnpHaplotype()) {\n riskAllele.setRiskFrequency(form.getRiskFrequency());\n }\n\n // Check for proxies and if we have one create a proxy snps\n if (row.getProxySnps() != null && !row.getProxySnps().isEmpty()) {\n Collection<SingleNucleotidePolymorphism> riskAlleleProxySnps = new ArrayList<>();\n\n for (String curatorEnteredProxySnp : row.getProxySnps()) {\n SingleNucleotidePolymorphism proxySnp = lociAttributesService.createSnp(curatorEnteredProxySnp);\n riskAlleleProxySnps.add(proxySnp);\n }\n\n riskAllele.setProxySnps(riskAlleleProxySnps);\n }\n\n locusRiskAlleles.add(riskAllele);\n }\n\n // Assign all created risk alleles to locus\n locus.setStrongestRiskAlleles(locusRiskAlleles);\n\n // Add locus to collection and link to our association\n loci.add(locus);\n association.setLoci(loci);\n return association;\n }",
"public Association association(ComplexEObject ceo)\n {\n if (_inverseFieldName == null)\n {\n return new Association(this, ceo);\n }\n else\n {\n return new Association(this, ceo, inverseField());\n }\n }",
"@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();",
"private void resize() {\n Couple[] tmp = new Couple[2 * associations.length];\n System.arraycopy(associations, 0, tmp, 0, associations.length);\n associations = tmp;\n }",
"void cascade(Attributes attributes);",
"boolean isOneToMany();",
"public interface PartOfRelation\r\n{\r\n\r\n\t/**\r\n\t * Sets author\r\n\t * \r\n\t * @param author\r\n\t */\r\n\tvoid setAuthor(String author);\r\n\r\n\r\n\t/**\r\n\t * @return Author\r\n\t */\r\n\tString getAuthor();\r\n\r\n\t/**\r\n\t * Sets class type, one typical value is '300'\r\n\t * \r\n\t * @param classType\r\n\t */\r\n\tvoid setClassType(String classType);\r\n\r\n\t/**\r\n\t * @return class type\r\n\t */\r\n\tString getClassType();\r\n\r\n\t/**\r\n\t * Sets object key, for material items this is the product ID.\r\n\t * \r\n\t * @param objectKey\r\n\t */\r\n\tvoid setObjectKey(String objectKey);\r\n\r\n\t/**\r\n\t * @return Object key.\r\n\t */\r\n\tString getObjectKey();\r\n\r\n\t/**\r\n\t * Sets object type, product or an abstract product representative\r\n\t * \r\n\t * @param objectType\r\n\t */\r\n\tvoid setObjectType(String objectType);\r\n\r\n\t/**\r\n\t * @return Object type\r\n\t */\r\n\tString getObjectType();\r\n\r\n\t/**\r\n\t * Sets position in the BOM\r\n\t * \r\n\t * @param posNr\r\n\t */\r\n\tvoid setPosNr(String posNr);\r\n\r\n\t/**\r\n\t * @return Position number\r\n\t */\r\n\tString getPosNr();\r\n\r\n\t/**\r\n\t * Sets parent instance ID\r\n\t * \r\n\t * @param parentInstId\r\n\t */\r\n\tvoid setParentInstId(String parentInstId);\r\n\r\n\t/**\r\n\t * @return Parent instance ID\r\n\t */\r\n\tString getParentInstId();\r\n\r\n\t/**\r\n\t * Sets child instance ID\r\n\t * \r\n\t * @param instId\r\n\t */\r\n\tvoid setInstId(String instId);\r\n\r\n\t/**\r\n\t * @return Child instance ID\r\n\t */\r\n\tString getInstId();\r\n}",
"@Override\n\tpublic boolean ignoreForeignItems() {\n\t\treturn false;\n\t}",
"static Set<SchemaModelImpl> getMegaIncludedModels(\n SchemaModelImpl sModel, String soughtNs, ResolveSession session) {\n //\n// if (true) {\n// // For optimization tests only\n // Uncomment and run tests to check how often the mega-include is called. \n// throw new RuntimeException(\"MEGA INCLUDE\");\n// }\n //\n Schema mySchema = sModel.getSchema();\n if (mySchema == null) {\n return Collections.EMPTY_SET;\n }\n //\n // If the current model has empty target namespace, then it can be included anywhere\n // If the current model has not empty target namespace, then it can be included only\n // to models with the same target namespace.\n String myTargetNs = mySchema.getTargetNamespace();\n if (myTargetNs != null && !Util.equal(soughtNs, myTargetNs)) {\n return Collections.EMPTY_SET;\n }\n //\n // The graph is lazy initialized in session and can be reused during\n // the resolve session.\n BidirectionalGraph<SchemaModelImpl> graph = \n session.getInclusionGraph(sModel, soughtNs);\n //\n // Now there is forward and back inclusion graphs.\n if (graph.isEmpty()) {\n return Collections.EMPTY_SET;\n }\n //\n // Look for the roots of inclusion.\n // Root s the top schema model, which includes current schema recursively,\n // but isn't included anywhere itself.\n Set<SchemaModelImpl> inclusionRoots = graph.getRoots(sModel, false);\n //\n HashSet<SchemaModelImpl> result = new HashSet<SchemaModelImpl>();\n for (SchemaModelImpl root : inclusionRoots) {\n // The namespace of the inclusion root has to be exectly the same\n // as required.\n if (Util.equal(root.getSchema().getTargetNamespace(), soughtNs)) {\n MultivalueMap.Utils.populateAllSubItems(graph, root, sModel, result);\n }\n }\n //\n result.remove(sModel);\n //\n return result;\n }",
"OurIfcRelAssociatesMaterial createOurIfcRelAssociatesMaterial();",
"@Override\n @PostConstruct\n protected void init() {\n super.init();\n\n // _HACK_ Attention: you must realize that associations below (when lazy) are fetched from the view, non transactionnally.\n\n if (products == null) {\n products = new SelectableListDataModel<Product>(getPart().getProducts());\n }\n }",
"@Override\n \tpublic void addIsCitedBy(Reference reference) {\n \t\tList<Reference> isCitedBy = getIsCitedBy();\n \t\t// check for existing relationship\n \t\tif (reference == null || isCitedBy.contains(reference))\n \t\t\treturn;\n \t\t// add both sides of relationship\n \t\treference.getCitationList().add(this);\n \t\tisCitedBy.add(reference);\n \t}",
"void addHas(WrappedIndividual newHas);",
"public Relationship() {\r\n\t}",
"private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }",
"public ResultMap<Association> associations(QName associationTypeQName, Pagination pagination);",
"private void toBeAddedEntities()\n\t{\n\t\tif( entitiesToAdd.isEmpty() )\n\t\t{\n\t\t\treturn ;\n\t\t}\n\n\t\tfinal List<Event<?>> events = MalletList.<Event<?>>newList() ;\n\n\t\tfinal int size = entitiesToAdd.size() ;\n\t\tfor( int i = 0; i < size; ++i )\n\t\t{\n\t\t\tfinal Entity entity = entitiesToAdd.get( i ) ;\n\t\t\thookEntity( eventSystem, events, entity ) ;\n\t\t\tentities.add( entity ) ;\n\t\t}\n\t\tentitiesToAdd.clear() ;\n\t\t\n\t\tif( size > capacity )\n\t\t{\n\t\t\t// If the size of entitiesToAdd exceeds our capacity then \n\t\t\t// we want to resize the array - it's easy for an \n\t\t\t// array to expand, it's much harder to shrink it!\n\t\t\tentitiesToAdd = MalletList.<Entity>newList( capacity ) ;\n\t\t}\n\t}",
"public void initForAddNew() {\r\n\r\n\t}",
"public void addRelations(T model);",
"public List<HasFormAssociation> listFormAssociations();",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tpartyQualEClass = createEClass(PARTY_QUAL);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__PARTY);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__PARTY_QUAL_TYPE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__FROM_DATE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__QUALIFICATION_DESC);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__STATUS);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__THRU_DATE);\n\t\tcreateEAttribute(partyQualEClass, PARTY_QUAL__TITLE);\n\t\tcreateEReference(partyQualEClass, PARTY_QUAL__VERIF_STATUS);\n\n\t\tpartyQualTypeEClass = createEClass(PARTY_QUAL_TYPE);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__PARTY_QUAL_TYPE_ID);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(partyQualTypeEClass, PARTY_QUAL_TYPE__HAS_TABLE);\n\t\tcreateEReference(partyQualTypeEClass, PARTY_QUAL_TYPE__PARENT_TYPE);\n\n\t\tpartyResumeEClass = createEClass(PARTY_RESUME);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_ID);\n\t\tcreateEReference(partyResumeEClass, PARTY_RESUME__CONTENT);\n\t\tcreateEReference(partyResumeEClass, PARTY_RESUME__PARTY);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_DATE);\n\t\tcreateEAttribute(partyResumeEClass, PARTY_RESUME__RESUME_TEXT);\n\n\t\tpartySkillEClass = createEClass(PARTY_SKILL);\n\t\tcreateEReference(partySkillEClass, PARTY_SKILL__PARTY);\n\t\tcreateEReference(partySkillEClass, PARTY_SKILL__SKILL_TYPE);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__RATING);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__SKILL_LEVEL);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__STARTED_USING_DATE);\n\t\tcreateEAttribute(partySkillEClass, PARTY_SKILL__YEARS_EXPERIENCE);\n\n\t\tperfRatingTypeEClass = createEClass(PERF_RATING_TYPE);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__PERF_RATING_TYPE_ID);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(perfRatingTypeEClass, PERF_RATING_TYPE__HAS_TABLE);\n\t\tcreateEReference(perfRatingTypeEClass, PERF_RATING_TYPE__PARENT_TYPE);\n\n\t\tperfReviewEClass = createEClass(PERF_REVIEW);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__EMPLOYEE_PARTY);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__EMPLOYEE_ROLE_TYPE_ID);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__PERF_REVIEW_ID);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__COMMENTS);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__EMPL_POSITION);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__FROM_DATE);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__MANAGER_PARTY);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__MANAGER_ROLE_TYPE_ID);\n\t\tcreateEReference(perfReviewEClass, PERF_REVIEW__PAYMENT);\n\t\tcreateEAttribute(perfReviewEClass, PERF_REVIEW__THRU_DATE);\n\n\t\tperfReviewItemEClass = createEClass(PERF_REVIEW_ITEM);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__EMPLOYEE_PARTY);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__EMPLOYEE_ROLE_TYPE_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ITEM_SEQ_ID);\n\t\tcreateEAttribute(perfReviewItemEClass, PERF_REVIEW_ITEM__COMMENTS);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_RATING_TYPE);\n\t\tcreateEReference(perfReviewItemEClass, PERF_REVIEW_ITEM__PERF_REVIEW_ITEM_TYPE);\n\n\t\tperfReviewItemTypeEClass = createEClass(PERF_REVIEW_ITEM_TYPE);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__PERF_REVIEW_ITEM_TYPE_ID);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__HAS_TABLE);\n\t\tcreateEReference(perfReviewItemTypeEClass, PERF_REVIEW_ITEM_TYPE__PARENT_TYPE);\n\n\t\tperformanceNoteEClass = createEClass(PERFORMANCE_NOTE);\n\t\tcreateEReference(performanceNoteEClass, PERFORMANCE_NOTE__PARTY);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__FROM_DATE);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__ROLE_TYPE_ID);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__COMMENTS);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__COMMUNICATION_DATE);\n\t\tcreateEAttribute(performanceNoteEClass, PERFORMANCE_NOTE__THRU_DATE);\n\n\t\tpersonTrainingEClass = createEClass(PERSON_TRAINING);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__PARTY);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__TRAINING_CLASS_TYPE);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__FROM_DATE);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__APPROVAL_STATUS);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__APPROVER);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__REASON);\n\t\tcreateEAttribute(personTrainingEClass, PERSON_TRAINING__THRU_DATE);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__TRAINING_REQUEST);\n\t\tcreateEReference(personTrainingEClass, PERSON_TRAINING__WORK_EFFORT);\n\n\t\tresponsibilityTypeEClass = createEClass(RESPONSIBILITY_TYPE);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__RESPONSIBILITY_TYPE_ID);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(responsibilityTypeEClass, RESPONSIBILITY_TYPE__HAS_TABLE);\n\t\tcreateEReference(responsibilityTypeEClass, RESPONSIBILITY_TYPE__PARENT_TYPE);\n\n\t\tskillTypeEClass = createEClass(SKILL_TYPE);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__SKILL_TYPE_ID);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(skillTypeEClass, SKILL_TYPE__HAS_TABLE);\n\t\tcreateEReference(skillTypeEClass, SKILL_TYPE__PARENT_TYPE);\n\n\t\ttrainingClassTypeEClass = createEClass(TRAINING_CLASS_TYPE);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__TRAINING_CLASS_TYPE_ID);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(trainingClassTypeEClass, TRAINING_CLASS_TYPE__HAS_TABLE);\n\t\tcreateEReference(trainingClassTypeEClass, TRAINING_CLASS_TYPE__PARENT_TYPE);\n\t}",
"static protected void collectAssociations(NamedElement element,\n\t\t\tList<Association> list) {\n\t\tif (element instanceof Package) {\n\t\t\tfor (Iterator i = ((Package) element).getMembers().iterator(); i\n\t\t\t\t\t.hasNext();) {\n\t\t\t\tNamedElement ne = (NamedElement) i.next();\n\t\t\t\tcollectAssociations(ne, list);\n\t\t\t}\n\t\t}\n\t\tif (element instanceof Association) {\n\t\t\tlist.add((Association) element);\n\t\t}\n\t}",
"public Related() {\n }",
"@Override public SnpAssociationForm createForm(Association association) {\n\n\n SnpAssociationStandardMultiForm form = new SnpAssociationStandardMultiForm();\n\n // Set association ID\n form.setAssociationId(association.getId());\n form.setAssociationExtension(association.getAssociationExtension());\n\n // Set simple string and float association attributes\n form.setRiskFrequency(association.getRiskFrequency());\n form.setPvalueDescription(association.getPvalueDescription());\n form.setSnpType(association.getSnpType());\n form.setMultiSnpHaplotype(association.getMultiSnpHaplotype());\n form.setSnpApproved(association.getSnpApproved());\n form.setPvalueMantissa(association.getPvalueMantissa());\n form.setPvalueExponent(association.getPvalueExponent());\n form.setStandardError(association.getStandardError());\n form.setRange(association.getRange());\n form.setDescription(association.getDescription());\n\n // Set OR/Beta values\n form.setOrPerCopyNum(association.getOrPerCopyNum());\n form.setOrPerCopyRecip(association.getOrPerCopyRecip());\n form.setOrPerCopyRecipRange(association.getOrPerCopyRecipRange());\n form.setBetaNum(association.getBetaNum());\n form.setBetaUnit(association.getBetaUnit());\n form.setBetaDirection(association.getBetaDirection());\n\n // Add collection of Efo traits\n form.setEfoTraits(association.getEfoTraits());\n\n // For each locus get genes and risk alleles\n Collection<Locus> loci = association.getLoci();\n Collection<Gene> locusGenes = new ArrayList<>();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<RiskAllele>();\n\n // For multi-snp and standard snps we assume their is only one locus\n for (Locus locus : loci) {\n locusGenes.addAll(locus.getAuthorReportedGenes());\n locusRiskAlleles.addAll(locus.getStrongestRiskAlleles()\n .stream()\n .sorted((v1, v2) -> Long.compare(v1.getId(), v2.getId()))\n .collect(Collectors.toList()));\n\n // There should only be one locus thus should be safe to set these here\n form.setMultiSnpHaplotypeNum(locus.getHaplotypeSnpCount());\n form.setMultiSnpHaplotypeDescr(locus.getDescription());\n }\n\n\n // Get name of gene and add to form\n Collection<String> authorReportedGenes = new ArrayList<>();\n for (Gene locusGene : locusGenes) {\n authorReportedGenes.add(locusGene.getGeneName());\n }\n form.setAuthorReportedGenes(authorReportedGenes);\n\n // Handle snp rows\n Collection<GenomicContext> snpGenomicContexts = new ArrayList<GenomicContext>();\n Collection<SingleNucleotidePolymorphism> snps = new ArrayList<>();\n List<SnpFormRow> snpFormRows = new ArrayList<SnpFormRow>();\n List<SnpMappingForm> snpMappingForms = new ArrayList<SnpMappingForm>();\n for (RiskAllele riskAllele : locusRiskAlleles) {\n SnpFormRow snpFormRow = new SnpFormRow();\n snpFormRow.setStrongestRiskAllele(riskAllele.getRiskAlleleName());\n\n SingleNucleotidePolymorphism snp = riskAllele.getSnp();\n snps.add(snp);\n String rsID = snp.getRsId();\n snpFormRow.setSnp(rsID);\n\n Collection<Location> locations = snp.getLocations();\n for (Location location : locations) {\n SnpMappingForm snpMappingForm = new SnpMappingForm(rsID, location);\n snpMappingForms.add(snpMappingForm);\n }\n\n // Set proxy if one is present\n Collection<String> proxySnps = new ArrayList<>();\n if (riskAllele.getProxySnps() != null) {\n for (SingleNucleotidePolymorphism riskAlleleProxySnp : riskAllele.getProxySnps()) {\n proxySnps.add(riskAlleleProxySnp.getRsId());\n }\n }\n snpFormRow.setProxySnps(proxySnps);\n\n snpGenomicContexts.addAll(genomicContextRepository.findBySnpId(snp.getId()));\n snpFormRows.add(snpFormRow);\n }\n\n form.setSnpMappingForms(snpMappingForms);\n form.setGenomicContexts(snpGenomicContexts);\n form.setSnps(snps);\n form.setSnpFormRows(snpFormRows);\n return form;\n }",
"@Override\n public void newBundlesAdded(Set<Bundle> set) {\n// System.err.println(\"newBundlesAdded(set.size = \" + set.size() + \")\");\n Bundles as_bundles = getRTParent().getRootBundles().subset(set);\n for (int i=0;i<active_relationships.size();i++) {\n// System.err.println(\" newBundlesAdded(): Adding In Relationship \" + i + \" \\\"\" + active_relationships.get(i) + \"\\\"... bundles.size() = \" + as_bundles.size());\n addRelationship(active_relationships.get(i), false, as_bundles);\n }\n }",
"public List<Association> getAssociations(final FrequentItemSets frequentItemSets, final List<Order> orders,\n\t\t\tfinal double minConfidence) {\n\t\tSet<Association> associations = new LinkedHashSet<>();\n\t\tint associationsProcessed = 0;\n\n\t\t// For each frequent item set...\n\t\tfor (ItemSet frequentItemSet : frequentItemSets) {\n\t\t\t// If there is only one item in the set, continue\n\t\t\tif (frequentItemSet.size() <= 1)\n\t\t\t\tcontinue;\n\n\t\t\t// Generate the permutations of the items in the frequent item set\n\t\t\tList<List<Item>> permutations = generatePermutations(new ItemSet(frequentItemSet));\n\t\t\t// For each permutation...\n\t\t\tfor (List<Item> permutation : permutations) {\n\t\t\t\tList<Item> right = new ArrayList<Item>(permutation);\n\t\t\t\tList<Item> left = new ArrayList<Item>();\n\n\t\t\t\t// Build an association with n-items on the left\n\t\t\t\tfor (int sizeOfLeft = 1; sizeOfLeft < permutation.size(); sizeOfLeft++) {\n\t\t\t\t\t// Build the left\n\t\t\t\t\twhile (left.size() < sizeOfLeft) {\n\t\t\t\t\t\tleft.add(right.remove(0));\n\t\t\t\t\t}\n\n\t\t\t\t\t// Create the association\n\t\t\t\t\tAssociation association = new Association(new ItemSet(left), new ItemSet(right));\n\t\t\t\t\tassociation.setSupport(frequentItemSet.getSupport());\n\t\t\t\t\tassociation.setConfidence(calculateConfidence(orders, association));\n\n\t\t\t\t\t// If the association is not already in the matching\n\t\t\t\t\t// associations list...\n\t\t\t\t\tif (!associations.contains(association)) {\n\t\t\t\t\t\tassociationsProcessed++;\n\n\t\t\t\t\t\t// and the association meets the confidence, add it to\n\t\t\t\t\t\t// the matching associations\n\t\t\t\t\t\tif (association.getConfidence() >= minConfidence)\n\t\t\t\t\t\t\tassociations.add(association);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Print out the number of associations processed\n\t\tSystem.out.println(\"Associations processed: \" + associationsProcessed);\n\n\t\t// Return a List of Associations\n\t\treturn new ArrayList<Association>(associations);\n\t}",
"public void testassociate_AssociationException2()\r\n throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.associate(address, 3, false);\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"@Override\n\tprotected Entity createNewEntity(final Object baseObject) {\n\t\tProductAssociation productAssociation = getBean(ContextIdNames.PRODUCT_ASSOCIATION);\n\t\tproductAssociation.setGuid(new RandomGuidImpl().toString());\n\t\tproductAssociation.setCatalog(this.getImportJob().getCatalog());\n\t\treturn productAssociation;\n\t}",
"public void addToModel(Map<String, Set<List<String>>> fom) {\n if (! fom.containsKey(relationString)) {\n fom.put(relationString, new HashSet<>());\n }\n List<String> args = new ArrayList<>();\n args.add(obj.toString());\n for (MinecraftObject o: otherobj) {\n args.add(o.toString());\n }\n fom.get(relationString).add(args);\n }",
"private void fillEmbeddedTypes() {\n List<String> otherClassesNames = new ArrayList<>(PRIMITIVE_TYPES);\n otherClassesNames.add(\"[]\");\n otherClassesNames.add(\"...\");\n\n List<TypeConstructor> otherClasses = new ArrayList<>();\n for (String type : otherClassesNames) {\n Classifier classifier = new Classifier(type, Language.JAVA, \"\", null, new ArrayList<MemberEntity>(), \"\");\n otherClasses.add(classifier);\n QualifiedName name = new QualifiedName(OTHER_PACKAGE, type);\n classes.put(name, classifier);\n parameters.put(name, new ParametersDescription());\n superTypes.put(name, new ArrayList<JavaType>());\n createClassMaps(name);\n }\n\n PackageEntity otherPackage = new PackageEntity(OTHER_PACKAGE, Language.JAVA, otherClasses,\n new ArrayList<MemberEntity>(), new ArrayList<PackageEntity>(), \"\", null);\n packages.put(OTHER_PACKAGE, otherPackage);\n\n for (TypeConstructor otherClass : otherClasses) {\n otherClass.setContainingPackage(otherPackage);\n }\n }",
"@Override\n\tpublic DAOIncidencias CrearInformesMedicos() {\n\t\treturn null;\n\t}",
"public void testGetAllAddresses_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.getAllAddresses();\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"private synchronized Association buildAssociationObject(ResultSet results) {\n\n Association assoc = null;\n String assocHandle = null;\n\n try {\n\n assocHandle = results.getString(1);\n String assocType = results.getString(2);\n java.util.Date expireIn = new java.util.Date(results.getTimestamp(3).getTime());\n String macKey = results.getString(4);\n String assocStore = results.getString(5);\n\n // we check if params are missing\n if (assocHandle == null || assocType == null || expireIn == null || macKey == null || assocStore == null) {\n log.error(\"Required data missing. Cannot build the Association object\");\n return null;\n }\n\n // Here we check if we are loading the correct associations\n if (associationStore.equals(OpenIDServerConstants.ASSOCIATION_STORE_TYPE_PRIVATE) &&\n assocStore.equals(OpenIDServerConstants.ASSOCIATION_STORE_TYPE_SHARED)) {\n log.error(\n \"Invalid association data found. Tried to load a Private Association but found a Shared Association\");\n return null;\n } else if (associationStore.equals(OpenIDServerConstants.ASSOCIATION_STORE_TYPE_SHARED) &&\n assocStore.equals(OpenIDServerConstants.ASSOCIATION_STORE_TYPE_PRIVATE)) {\n log.error(\n \"Invalid association data found. Tried to load a Shared Association but found a Private Association\");\n return null;\n }\n\n // Checks for association handle\n if (Association.TYPE_HMAC_SHA1.equals(assocType)) {\n assoc = Association.createHmacSha1(assocHandle, Base64.decode(macKey), expireIn);\n\n } else if (Association.TYPE_HMAC_SHA256.equals(assocType)) {\n assoc = Association.createHmacSha256(assocHandle, Base64.decode(macKey), expireIn);\n\n } else {\n log.error(\"Invalid association type \" + assocType + \" loaded from database\");\n return null;\n }\n\n } catch (SQLException e) {\n log.error(\"Failed to build the Association for \" + assocHandle + \". Error while accessing the database.\",\n e);\n } finally {\n IdentityDatabaseUtil.closeResultSet(results);\n }\n\n log.debug(\"Association \" + assocHandle + \" loaded successfully from the database.\");\n return assoc;\n }",
"public void cascadeDiscoverAndPersistUnregisteredNewObjects(Object object, IdentityHashtable newObjects, IdentityHashtable unregisteredExistingObjects, IdentityHashtable visitedObjects, UnitOfWorkImpl uow) {\n Object cloneAttribute = getAttributeValueFromObject(object);\n if (cloneAttribute == null ) {\n return;\n }\n ContainerPolicy containerPolicy = getContainerPolicy();\n Object cloneObjectCollection = getRealCollectionAttributeValueFromObject(object, uow);\n Object iterator = containerPolicy.iteratorFor(cloneObjectCollection);\n while (containerPolicy.hasNext(iterator)) {\n Object nextObject = containerPolicy.next(iterator, uow);\n if (nextObject != null) {\n ObjectBuilder builder = getReferenceDescriptor(nextObject.getClass(), uow).getObjectBuilder();\n builder.cascadeDiscoverAndPersistUnregisteredNewObjects(nextObject, newObjects, unregisteredExistingObjects, visitedObjects, uow);\n }\n }\n }",
"public List<? extends IFlexoOntologyFeatureAssociation<TA>> getBehaviouralFeatureAssociations();",
"private void addBornModels(List<Organism> born) \n\t{\n\t\tfor (Organism org : born)\n\t\t{\n\t\t\taddOrganismToScene(org);\n\t\t\tplaceOrganism(org, 0);\n\t\t}\n\t}",
"protected void buildHashMapForAssociationClasses(Package pack)\n {\n\n for (Iterator elementIter = pack.GetElements().iterator();elementIter.hasNext();)\n {\n Element element = (Element)elementIter.next();\n // Check the validity of the class\n checkElement(element);\n\n /////////////////////////////////\n // A numeric subtype qualifies the Type of the main element. For Class: 1 = Parameterised, 2 = Instantiated, 3 = Both, 0 = Neither, 17 = Association Class\n // If 17, because an Association Class has been created through the user interface, MiscData(3) will contain the ID of the related Association.\n // http://www.sparxsystems.com/uml_tool_guide/sdk_for_enterprise_architect/element2.htm\n /////////////////////////////////\n if(element.GetSubtype() == 17)\n {\n _hashMapForAssociationClasses.put(EAConnection.getInstance().getRepository().GetConnectorByID(Integer.parseInt(element.MiscData(3))).GetConnectorGUID(), element.GetElementGUID());\n }\n }\n for (Iterator packageIter = pack.GetPackages().iterator();packageIter.hasNext();)\n {\n Package subPackage = (Package)packageIter.next();\n buildHashMapForAssociationClasses(subPackage);\n }\n }",
"public void testListFK()\r\n throws Exception\r\n {\r\n try\r\n {\r\n addClassesToSchema(new Class[] {ShapeHolder3b.class, Rectangle3b.class, Circle3b.class, Square3b.class});\r\n\r\n PersistenceManager pm = pmf.getPersistenceManager();\r\n Transaction tx = pm.currentTransaction();\r\n Object id;\r\n try\r\n {\r\n // Create container and some shapes\r\n tx.begin();\r\n ShapeHolder3b container = new ShapeHolder3b(r.nextInt());\r\n Circle3 circle = new Circle3(r.nextInt(), 1.75);\r\n container.getShapeList().add(circle);\r\n Rectangle3b rectangle = new Rectangle3b(r.nextInt(), 1.0, 2.0);\r\n container.getShapeList().add(rectangle);\r\n assertEquals(2,container.getShapeList().size());\r\n pm.makePersistent(container);\r\n tx.commit();\r\n id = pm.getObjectId(container);\r\n pm.close();\r\n\r\n pm = pmf.getPersistenceManager();\r\n tx = pm.currentTransaction();\r\n tx.begin();\r\n ShapeHolder3b actual = (ShapeHolder3b) pm.getObjectById(id);\r\n assertEquals(2,actual.getShapeList().size());\r\n tx.commit();\r\n }\r\n finally\r\n {\r\n if (tx.isActive())\r\n {\r\n tx.rollback();\r\n }\r\n \r\n pm.close();\r\n }\r\n \r\n // TODO Extend this to then query the elements in the collection\r\n }\r\n finally\r\n {\r\n clean(Circle3b.class);\r\n clean(Rectangle3b.class);\r\n clean(ShapeHolder3b.class);\r\n }\r\n }",
"public void purgeRelations() {\n this.purged = true;\n for (AS tCust : this.customers) {\n tCust.providers.remove(this);\n tCust.purgedNeighbors.add(this.asn);\n }\n for (AS tProv : this.providers) {\n tProv.customers.remove(this);\n tProv.purgedNeighbors.add(this.asn);\n }\n for (AS tPeer : this.peers) {\n tPeer.peers.remove(this);\n tPeer.purgedNeighbors.add(this.asn);\n }\n }",
"private void createReferentialIntegrityConstraints() {\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" ADD FOREIGN KEY (THE_BOOK_FK) REFERENCES \" + IDaoBooks.TABLE + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" ADD FOREIGN KEY (THE_AUTHOR_FK) REFERENCES \" + IDaoPersons.TABLE + \" (ID) ON UPDATE SET NULL\");\n\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_KIND_FK) REFERENCES \" + SimpleData.DataType.KIND.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_LANGUAGE_FK) REFERENCES \" + SimpleData.DataType.LANGUAGE.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_LENDING_FK) REFERENCES \" + IDaoLendings.TABLE + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_SAGA_FK) REFERENCES \" + SimpleData.DataType.SAGA.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_TYPE_FK) REFERENCES \" + SimpleData.DataType.TYPE.getTable() + \" (ID) ON UPDATE SET NULL\");\n jdbcTemplate.update(\"ALTER TABLE \" + IDaoBooks.TABLE + \" ADD FOREIGN KEY (THE_EDITOR_FK) REFERENCES \" + IDaoEditors.TABLE + \" (ID) ON UPDATE SET NULL\");\n }",
"public boolean containsIncomingRelations();",
"@Test(description = \"update interface with one relationship for existing interface with all relationships\")\n public void updateOneRelationship4ExistingAllRelationships()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestRel\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addAllRelationships();\n data.create();\n\n inter.removeRelationships()\n .addRelationship(rel);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel.getName(),\n \"check that only one relationship is defined\");\n }",
"@Override\n\t\tpublic boolean hasRelationship(RelationshipType... types) {\n\t\t\treturn false;\n\t\t}",
"void addHas_consequence(Consequence newHas_consequence);",
"private static void initializeLogicalAxiomSet() {\r\n\t\tfor (AxiomType<?> type : AXIOM_TYPES) {\r\n\t\t\tif (type.isLogical()) {\r\n\t\t\t\t//System.out.println(\"LOGICAL AXIOM: \" + type);\r\n\t\t\t\tif (m.containsKey(type)) {\r\n\t\t\t\t\tlogicalAxiomTypesHGDB.add(m.get(type)); \r\n\t\t\t\t} else {\r\n\t\t\t\t\t//not yet defined in initialize\r\n\t\t\t\t\tthrow new IllegalStateException(\"logical axiomtype not found in m.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Make unmodifiable after init.\r\n\t\tlogicalAxiomTypesHGDB = Collections.unmodifiableSet(logicalAxiomTypesHGDB);\r\n\t\t//System.out.println(\"LogicalAxiomTypesHGDB Initialized, size : \" + logicalAxiomTypesHGDB.size());\r\n\t}",
"private void checkForAssociationConstraint()\n {\n try\n {\n String methodName = String.format(\"%sOptions\", name());\n _associationConstraint = _parent.getJavaClass().getMethod(methodName);\n }\n catch (NoSuchMethodException e)\n {\n // ignore\n }\n }",
"public RelationshipManager createRelationshipManager() throws ServiceException {\r\n initialize(); \r\n return new RelationshipManager(multiDomainMetaService, multiDomainService);\r\n\t}",
"public KoleksiRelationExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }"
] | [
"0.63694084",
"0.60895747",
"0.5914892",
"0.58350176",
"0.58001834",
"0.5759002",
"0.56687105",
"0.5624243",
"0.5614325",
"0.5600234",
"0.55854744",
"0.55366915",
"0.54633737",
"0.53729486",
"0.53332496",
"0.528271",
"0.5226366",
"0.51754",
"0.515761",
"0.51539624",
"0.5142598",
"0.5139413",
"0.51174635",
"0.5109243",
"0.5099872",
"0.50909257",
"0.50714034",
"0.5059948",
"0.5047259",
"0.503675",
"0.50342506",
"0.50236285",
"0.5013571",
"0.5002794",
"0.49922386",
"0.4981074",
"0.49781823",
"0.49602225",
"0.49584317",
"0.49501842",
"0.49351272",
"0.4933456",
"0.49300888",
"0.49287412",
"0.4926939",
"0.49133986",
"0.4891044",
"0.48888552",
"0.48809668",
"0.48691547",
"0.4864718",
"0.48615253",
"0.48439208",
"0.48311886",
"0.48213395",
"0.48138466",
"0.4806482",
"0.4801878",
"0.47966546",
"0.47923118",
"0.479007",
"0.47847912",
"0.47844473",
"0.47843045",
"0.47493622",
"0.47441572",
"0.47440618",
"0.47434053",
"0.47401085",
"0.47333515",
"0.47332016",
"0.47315782",
"0.4722353",
"0.47175246",
"0.47113615",
"0.4691775",
"0.46880645",
"0.46850815",
"0.46764144",
"0.467327",
"0.46731982",
"0.4669298",
"0.46690902",
"0.46682408",
"0.466117",
"0.4660851",
"0.46552092",
"0.46531212",
"0.4646622",
"0.4645924",
"0.46418414",
"0.46410948",
"0.46399108",
"0.46374357",
"0.46312982",
"0.46257287",
"0.46234974",
"0.46152297",
"0.4614441",
"0.46073836"
] | 0.5557821 | 11 |
This function is responsible for loading associations for the given entity e.g. when viewing an order, we load the customer so that customer can be shown on the customer tab within viewOrder.xhtml | public void loadAssociations() {
initListSettingNames();
addDefaultAssociations();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadAssociations() {\r\n\r\n\t\tif (immunization.getPatient() != null) {\r\n\t\t\tpatientAction.setInstance(getInstance().getPatient());\r\n\t\t}\r\n\r\n\t\tif (immunization.getVaccine() != null) {\r\n\t\t\tvaccineAction.setInstance(getInstance().getVaccine());\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }",
"void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }",
"private void loadAssociatedContacts() {\n Gson gson = new Gson();\n // get the serialized contact file\n String serializedFile = ContactDAO.serializedFile;\n // deserialize the file to get all contacts information\n associatedContacts = gson.fromJson(serializedFile, new TypeToken<ArrayList<ContactDataModel>>(){}.getType());\n //display information\n if (associatedContacts != null) {\n adapter = new CustomContactAdapter(this, R.layout.view_contact_row, associatedContacts);\n cv.setAdapter(adapter);\n // In case that the user delete some contacts, we set the serialized file in the DAO to apply the change\n // list of contact\n // serialize and set the access file\n ContactDAO.serializedFile = gson.toJson(associatedContacts);\n }\n\n //on item click\n cv.setOnItemClickListener(itemDescription);\n }",
"@Transactional(readOnly = true)\n public void associationsAndJoinsExamples() {\n List<Customer> customersWithOrders = getSession().createQuery(\"from Customer as customer inner join customer.orders as ord with ord.shipCountry = 'UK'\").list();\n System.out.println(customersWithOrders.size());\n\n List<Customer> customersWithFetchOrders = getSession().createQuery(\"from Customer as customer inner join fetch customer.orders as ord where ord.shipCountry = 'UK'\").list();\n System.out.println(customersWithOrders.size());\n\n //FETCH keyword - dociąganie obiektów - iloczyn kartezjanski - sa 2 kolekcje\n //List<Customer> customersWithOrderDetails = getSession().createQuery(\"from Customer as customer inner join fetch customer.orders as ord inner join fetch ord.orderDetails as orderDetail\").list();\n //System.out.println(customersWithOrderDetails.size());\n }",
"private void semiEagerLoad(final Event event) {\n event.getAuthor();\n event.getCustomer(); event.getCustomer().getUnit();\n event.getProcedure(); event.getProcedure().getUnit();\n if (null == event.getCustomer().getUnit()) {\n LOG.warning(\"BF#42, customer without unit, id=\" + event.getCustomer().getId());\n customerDao.reload(event.getCustomer());\n }\n if (null == event.getProcedure().getUnit()) {\n LOG.warning(\"BF#42, procedure without unit, id=\" + event.getProcedure().getId());\n procedureDao.reload(event.getProcedure());\n }\n final Object customerUnitId = event.getCustomer().getUnit().getId();\n final Object procUnitId = event.getProcedure().getUnit().getId();\n if (LOG.isLoggable(Level.FINE)) {\n LOG.fine(\"semiEagerLoad of event: customer.unit.id=\" + customerUnitId\n + \", procedure.unit.id=\" + procUnitId);\n }\n }",
"@PostConstruct\n public void load() {\n try {\n if (!JsfUti.isAjaxRequest()) {\n restriccionesLazy = new BaseLazyDataModel<>(Restricciones.class, \"codigoRestriccion\");\n restricionPredios = new BaseLazyDataModel<>(RestricionPredio.class, \"numeroTramite\");\n }\n } catch (Exception e) {\n LOG.log(Level.SEVERE, \"Init View\", e);\n }\n }",
"@Override\n\tpublic void onRelationshipChanged() {\n\t\tloadData();\n\t}",
"@Override\n @PostConstruct\n protected void init() {\n super.init();\n\n // _HACK_ Attention: you must realize that associations below (when lazy) are fetched from the view, non transactionnally.\n\n if (products == null) {\n products = new SelectableListDataModel<Product>(getPart().getProducts());\n }\n }",
"@Override\n public void onRelationshipMapLoaded() {\n }",
"@Test\n public void testDAM32102001() {\n // By default the loading related entity is eager.\n testDAM32101001();\n }",
"protected boolean[] getEntityEagerPropertyFetches() {\n \t\treturn null;\n \t}",
"protected void entityInit() {}",
"public void preDoRetrieve(T entity)\n {\n }",
"public Map<String, HasFormAssociation> fetchFormAssociations();",
"private void readEntityDeploymentAssociations() {\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n readDeployAssociations(info);\n }\n }",
"@PostConstruct\r\n/* 37: */ public void init()\r\n/* 38: */ {\r\n/* 39: 49 */ this.listaMotivoLlamadoAtencion = new LazyDataModel()\r\n/* 40: */ {\r\n/* 41: */ private static final long serialVersionUID = 1L;\r\n/* 42: */ \r\n/* 43: */ public List<MotivoLlamadoAtencion> load(int startIndex, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters)\r\n/* 44: */ {\r\n/* 45: 59 */ List<MotivoLlamadoAtencion> lista = new ArrayList();\r\n/* 46: 60 */ boolean ordenar = sortOrder == SortOrder.ASCENDING;\r\n/* 47: */ \r\n/* 48: 62 */ filters.put(\"idOrganizacion\", String.valueOf(AppUtil.getOrganizacion().getId()));\r\n/* 49: 63 */ lista = MotivoLlamadoAtencionBean.this.servicioMotivoLlamadoAtencion.obtenerListaPorPagina(startIndex, pageSize, sortField, ordenar, filters);\r\n/* 50: */ \r\n/* 51: 65 */ MotivoLlamadoAtencionBean.this.listaMotivoLlamadoAtencion.setRowCount(MotivoLlamadoAtencionBean.this.servicioMotivoLlamadoAtencion.contarPorCriterio(filters));\r\n/* 52: */ \r\n/* 53: 67 */ return lista;\r\n/* 54: */ }\r\n/* 55: */ };\r\n/* 56: */ }",
"@Transactional(readOnly=true)\n\tpublic List<Film> getFilmInfoModelviaLazyLoading() {\n\t\tList<Film> films = filmRepository.findAll();\n\t\t\t\t\n\t\t// Do some business logic here\n\t\t\n\t\t\n\t\t// Because the filmActors is configured as lazy loading\n\t\t// we need to iterate each film, call getFilmActors() methods\n\t\t// and iterate the FilmActors list inside the service class. \n\t\t// If not, the caller calling the getFilmActors() method\n\t\t// outside the service class will get \"could not initialize proxy - no Session\" error\n\t\tfor(Film film : films) {\n\t\t\t// call the getter to load the data to cache\n\t\t\tfor(FilmActor actor : film.getFilmActors()) {\n\t\t\t\t// do nothing here\n\t \t}\n\t\t}\n\t\t\t\t\n\t\t// return the data \n\t\treturn films;\n\t}",
"private void loadCriteriaList() {\n DataBaseManager DBM = new DataBaseManager();\n criteriaList = DBM.loadCriteriaList(pantallaIdentificacion.this);\n }",
"void setAssociatedObject(IEntityObject relatedObj);",
"private void loadCustomerCombo() {\n ArrayList<CustomerDTO> allCustomers;\n try {\n allCustomers = ctrlCustomer.get();\n for (CustomerDTO customer : allCustomers) {\n custIdCombo.addItem(customer.getId());\n }\n } catch (Exception ex) {\n Logger.getLogger(PlaceOrderForm.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }",
"public void getEntities() {\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tEntityA entityA = exampleDao.getOne(1);\r\n\t\tEntityB entityB3 = entityBDao.getOne(3);\r\n\t \tEntityB entityB2 = entityBDao.getOne(2);\r\n\t \tEntityB entityB1 = entityBDao.getOne(1);\r\n\r\n\t \t\r\n\r\n\t\tentityA.setEntityBList(Arrays.asList(entityB2,entityB3,entityB1));\r\n\r\n\t}",
"private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }",
"@Override\n public void loadArticles() {\n // start service here => loads articles to DB\n mServiceBinder.startService();\n }",
"@Override\n\tprotected Class<ResourcesRelatedDetail> getEntity() {\n\t\treturn ResourcesRelatedDetail.class;\n\t}",
"@Override\n\tpublic void activateEntityRelationship(Long id) {\n\t\tentityRelationshipTypeRepository.activateEntityRelationship(id);\n\t}",
"@Override\n protected void loadAndFormatData()\n {\n // Place the data into the table model along with the column\n // names, set up the editors and renderers for the table cells,\n // set up the table grid lines, and calculate the minimum width\n // required to display the table information\n setUpdatableCharacteristics(getScriptAssociationData(allowSelectDisabled, parent),\n AssociationsTableColumnInfo.getColumnNames(),\n null,\n new Integer[] {AssociationsTableColumnInfo.AVAILABLE.ordinal()},\n null,\n AssociationsTableColumnInfo.getToolTips(),\n true,\n true,\n true,\n true);\n }",
"public void setEntities(LazyDataModel<BasicEntity> entities) {\n this.entities = entities;\n }",
"public static void loadMyCompany() {\n\t\tMyCompany myCompany = fetchFromDB();\n\n\t\trender(\"@myCompany\", myCompany);\n\t}",
"private void loadIncidents() throws SimulationException { \n \n try { \n for(Incident inc : theCoorInt.getIncidentList()) {\n \n Integer logNum = new Integer(inc.getLogNumber());\n \n theSimManagerView.addIncidentTab(logNum);\n theSimManagerView.addIncident(inc);\n \n if(inc.getSecondsToStart() < theCoorInt.getCurrentSimulationTime()) {\n incidentStarted(logNum);\n }\n }\n } catch (RemoteException re) {\n simManagerLogger.logp(Level.SEVERE, \"SimulationManagerModel\", \n \"loadIncidentListTable\", \"Unable to communicate with the \" +\n \"CAD Simulator.\", re);\n \n throw new SimulationException(SimulationException.CAD_SIM_COMM, re);\n }\n \n }",
"public Association loadAssociation(String handle) {\n\n Connection connection = IdentityDatabaseUtil.getDBConnection();\n PreparedStatement prepStmt = null;\n ResultSet results = null;\n\n try {\n prepStmt = connection.prepareStatement(OpenIDSQLQueries.LOAD_ASSOCIATION);\n prepStmt.setString(1, handle);\n results = prepStmt.executeQuery();\n\n if (results.next()) {\n log.debug(\"Loading association \" + handle);\n return buildAssociationObject(results);\n }\n connection.commit();\n } catch (SQLException e) {\n log.error(\"Failed to load the association \" + handle, e);\n } finally {\n IdentityDatabaseUtil.closeAllConnections(connection, results, prepStmt);\n }\n if(log.isDebugEnabled()) {\n log.debug(\"Failed to load the association \" + handle + \" from the database\");\n }\n return null;\n }",
"@Override\n public String getEntityName() {\n return \"FavouriteAssociations\";\n }",
"private void populateEntitiesLists() {\n\t\tfor (StaticEntity entity : ((ClientTiledMap) map).staticEntities) {\n\t\t\tregisterStaticEntity(entity);\n\t\t}\n\t}",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"public ResultMap<Association> associations(QName associationTypeQName, Pagination pagination);",
"List<Customer> findAllWithFetch();",
"List<Customer> loadAllCustomer();",
"@Override\n\tprotected void lazyLoad() {\n\t}",
"@Override\r\n\tpublic void loadData() {\r\n\t\t// Get Session\r\n\r\n\t\tSession ses = HibernateUtil.getSession();\r\n\r\n\t\tQuery query = ses.createQuery(\"FROM User\");\r\n\r\n\t\tList<User> list = null;\r\n\t\tSet<PhoneNumber> phone = null;\r\n\t\tlist = query.list();\r\n\t\tfor (User u : list) {\r\n\t\t\tSystem.out.println(\"Users are \" + u);\r\n\t\t\t// Getting phones for for a particular user Id\r\n\t\t\tphone = u.getPhone();\r\n\t\t\tfor (PhoneNumber ph : phone) {\r\n\t\t\t\tSystem.out.println(\"Phones \" + ph);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public ResultMap<Association> associations(Pagination pagination);",
"@Override\n\tprotected void cutOffLazyCollections(Direction entity) {\n\t}",
"@Override\n protected void onResume() {\n super.onResume();\n // loading dispositius via AsyncTask\n new LoadDispositiusTask().execute();\n }",
"Collection<AssociationEnd> getAssociations();",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void initRelations(ValueChangeEvent ev) {\r\n\t\ttry {\r\n\t\t\t// Limpia lista de relaciones\r\n\t\t\tobject.getRelcos().clear();\r\n\t\t\t// Obtiene valor del concepto seleccionado\r\n\t\t\tString cosccosak = ev.getNewValue().toString();\r\n\t\t\t// Obtiene valores de acuerdo al concepto\r\n\t\t\tList<Seprelco> relcos = seprelcoDao.findByConcept(cosccosak);\r\n\t\t\t// Recorre lista\r\n\t\t\tfor (Seprelco relco : relcos) {\r\n\t\t\t\t// Inicia nuevo registro de sedrelco\r\n\t\t\t\tSedrelco drelco = new Sedrelco();\r\n\t\t\t\t// Prepara objeto\r\n\t\t\t\tdrelco.prepareObject();\r\n\t\t\t\t// Concepto\r\n\t\t\t\tdrelco.setCosccosak(relco.getId().getCosccosak());\r\n\t\t\t\tdrelco.setRcocrcoak(relco.getId().getRcocrcoak());\r\n\t\t\t\t// Descripcion relacion\r\n\t\t\t\tdrelco.setRcodrcoaf(relco.getRcodrcoaf());\r\n\t\t\t\t// Adiciona objeto a la lista\r\n\t\t\t\tobject.getRelcos().add(drelco);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {/* Error */\r\n\t\t\t// Muestra mensaje\r\n\t\t\tthis.processErrorMessage(e.getMessage());\r\n\t\t\t// Log\r\n\t\t\tLogLogger.getInstance(this.getClass()).logger(\r\n\t\t\t\t\tExceptionUtils.getFullStackTrace(e), LogLogger.ERROR);\r\n\t\t}\r\n\t}",
"Page<Consulta> findAllWithEagerRelationships(Pageable pageable);",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<CasUserOrg> load() {\n\t\tString sql = \"select * from cas_user_org\";\n\t\treturn this.entityManager.createNativeQuery(sql, CasUser.class)\n .getResultList();\n\t}",
"@FXML\r\n private void initialize() {\r\n try {\r\n customer = new Customer();\r\n listOfAgents = AgentDB.getAgentIds();\r\n \r\n cboAgentId.setItems(listOfAgents);\r\n } catch (Exception e) {\r\n System.out.println(\"Failed to load the agency IDs\");\r\n }\r\n \r\n }",
"private void loadLazyObjects(List<User> userList, VolunteerSearchModel searchDTO) {\n\n\t\tif (userList == null || userList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tfor (User user : userList) {\n\n\t\t\t// load causes\n\t\t\tif (searchDTO.getCauses() != null) {\n\t\t\t\tfor (Party party : user.getParties()) {\n\t\t\t\t\tparty.getPartyCauseXrefs();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// load jobTypes\n\t\t\tif (searchDTO.getSkills() != null) {\n\t\t\t\tfor (Party party : user.getParties()) {\n\t\t\t\t\tparty.getPartyJobTypeXrefs();\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"private List<Entity> getLoadableEntities() { \n ArrayList<Entity> choices = new ArrayList<Entity>();\n // If current entity is null, nothing to do\n if (ce() == null) {\n return choices;\n }\n List<Entity> entities = clientgui.getClient().getGame()\n .getEntitiesVector();\n for (Entity other : entities) { \n if (other.isSelectableThisTurn() && ce().canLoad(other, false)) {\n choices.add(other);\n }\n }\n return choices;\n }",
"@PostConstruct\n public void loadData()\n {\n try \n {\n usu = new RhUsuario();\n \n rol = new RhRol();\n \n uc = new UsuController();\n \n usuList = uc.findAll(usu);\n \n encrypter = new Encryption();\n } \n catch (Exception ex) \n {\n Logger.getLogger(UsuarioManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n protected void onStartLoading() {\n if(mOrderData != null){\n deliverResult(mOrderData);//if there was already data loaded(in the event that the activity was navigated away from while loading), load it\n } else {\n forceLoad();//starts a load command\n }\n }",
"TypeAssociation getAssocieCommeObjetAdresse();",
"@Override\r\n\tpublic void onEntityLoaded(List<EntityUser> user) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void addAssociations(Criteria criteria) {\r\n\r\n\t\tif (immunization.getPatient() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"patient.id\", immunization\r\n\t\t\t\t\t.getPatient().getId()));\r\n\t\t}\r\n\r\n\t\tif (immunization.getVaccine() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"vaccine.id\", immunization\r\n\t\t\t\t\t.getVaccine().getId()));\r\n\t\t}\r\n\r\n\t}",
"@PostConstruct\r\n/* 59: */ public void init()\r\n/* 60: */ {\r\n/* 61: 87 */ this.listaDimensionContable = new LazyDataModel()\r\n/* 62: */ {\r\n/* 63: */ private static final long serialVersionUID = 1L;\r\n/* 64: */ \r\n/* 65: */ public List<DimensionContable> load(int startIndex, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters)\r\n/* 66: */ {\r\n/* 67: 93 */ List<DimensionContable> lista = new ArrayList();\r\n/* 68: */ \r\n/* 69: 95 */ boolean ordenar = sortOrder == SortOrder.ASCENDING;\r\n/* 70: 96 */ DimensionContableBean.this.cargarFiltros(filters);\r\n/* 71: 97 */ lista = DimensionContableBean.this.servicioDimensionContable.obtenerListaPorPagina(startIndex, pageSize, sortField, ordenar, filters);\r\n/* 72: */ \r\n/* 73: 99 */ DimensionContableBean.this.listaDimensionContable.setRowCount(DimensionContableBean.this.servicioDimensionContable.contarPorCriterio(filters));\r\n/* 74: */ \r\n/* 75:101 */ return lista;\r\n/* 76: */ }\r\n/* 77: */ };\r\n/* 78: */ }",
"Page<Fotografia> findAllWithEagerRelationships(Pageable pageable);",
"private void loadCustomerData() {\n\t\tCustomerDTO cust1 = new CustomerDTO();\n\t\tcust1.setId(null);\n\t\tcust1.setFirstName(\"Steven\");\n\t\tcust1.setLastName(\"King\");\n\t\tcust1.setEmail(\"king@gmail.com\");\n\t\tcust1.setCity(\"Hyderabad\");\n\t\tcustomerService.createCustomer(cust1);\n\n\t\tCustomerDTO cust2 = new CustomerDTO();\n\t\tcust2.setId(null);\n\t\tcust2.setFirstName(\"Neena\");\n\t\tcust2.setLastName(\"Kochhar\");\n\t\tcust2.setEmail(\"kochhar@gmail.com\");\n\t\tcust2.setCity(\"Pune\");\n\t\tcustomerService.createCustomer(cust2);\n\n\t\tCustomerDTO cust3 = new CustomerDTO();\n\t\tcust3.setId(null);\n\t\tcust3.setFirstName(\"John\");\n\t\tcust3.setLastName(\"Chen\");\n\t\tcust3.setEmail(\"johnr@gmail.com\");\n\t\tcust3.setCity(\"Bangalore\");\n\t\tcustomerService.createCustomer(cust3);\n\n\t\tCustomerDTO cust4 = new CustomerDTO();\n\t\tcust4.setId(null);\n\t\tcust4.setFirstName(\"Nancy\");\n\t\tcust4.setLastName(\"Greenberg\");\n\t\tcust4.setEmail(\"nancy@gmail.com\");\n\t\tcust4.setCity(\"Mumbai\");\n\t\tcustomerService.createCustomer(cust4);\n\n\t\tCustomerDTO cust5 = new CustomerDTO();\n\t\tcust5.setId(5L);\n\t\tcust5.setFirstName(\"Luis\");\n\t\tcust5.setLastName(\"Popp\");\n\t\tcust5.setEmail(\"popp@gmail.com\");\n\t\tcust5.setCity(\"Delhi\");\n\t\tcustomerService.createCustomer(cust5);\n\n\t}",
"public void setRelatedEntities(\n Map<String, Set<String>> relatedEntities) {\n this.relatedEntities = TimelineServiceHelper.mapCastToHashMap(\n relatedEntities);\n }",
"public void setupEntities() {\n }",
"@Nonnull\n public List<CustomerCompany> fetchCustomerCompany()\n throws ODataException\n {\n if (erpConfigContext == null) {\n throw new ODataException(ODataExceptionType.OTHER, \"Failed to fetch related objects of type CustomerCompany.\", new IllegalStateException(\"Unable to execute OData query. The entity was created locally without an assigned ERP configuration context. This method is applicable only on entities which were retrieved or created using the OData VDM.\"));\n }\n final StringBuilder odataResourceUrl = new StringBuilder(getEntityCollection());\n odataResourceUrl.append(\"(\");\n odataResourceUrl.append(\"Customer=\");\n odataResourceUrl.append(ODataTypeValueSerializer.of(EdmSimpleTypeKind.String).toUri(customer));\n odataResourceUrl.append(\")/\");\n odataResourceUrl.append(\"to_CustomerCompany\");\n final ODataQueryBuilder builder = ODataQueryBuilder.withEntity(getServicePathForFetch(), odataResourceUrl.toString()).withoutMetadata();\n final ODataQuery query = builder.build();\n final ODataQueryResult result = query.execute(erpConfigContext);\n final List<CustomerCompany> entityList = result.asList(CustomerCompany.class);\n for (CustomerCompany entity: entityList) {\n entity.setErpConfigContext(erpConfigContext);\n entity.setServicePathForFetch(getServicePathForFetch());\n }\n return entityList;\n }",
"public void executeOneToManyAssociationsCriteria() {\n Session session = getSession();\n Transaction transaction = session.beginTransaction();\n\n // SELECT *\n // FROM Supplier s\n Criteria criteria = session.createCriteria(Supplier.class);\n\n // INNER JOIN Product p\n // ON s.id = p.supplier_id\n // WHERE p.price > 25;\n criteria.createCriteria(\"products\").add(Restrictions.gt(\"price\", new Double(25.0)));\n\n displaySupplierList(criteria.list());\n transaction.commit();\n }",
"private void loadContact() {\n groupSpinnerItems.clear();\n for (GroupSummary groupSummary: new Contacts(getActivity()).getGroupSummary()) {\n GroupSpinnerEntry item = new GroupSpinnerEntry();\n item.groupId = groupSummary.getId();\n item.title = groupSummary.getTitle();\n groupSpinnerItems.add(item);\n }\n\n getLoaderManager().initLoader(0, null, new LoaderManager.LoaderCallbacks<Contact>() {\n @Override\n public Loader<Contact> onCreateLoader(int id, Bundle args) {\n return new ContactLoader(getActivity(), mContactLookupUri);\n }\n\n @Override\n public void onLoadFinished(Loader<Contact> loader, Contact data) {\n List<DataItem> dataItems = contact.getData();\n dataItems.clear();\n dataItems.addAll(data.getData());\n// contact.setData(data.getData());\n contact.setId(data.getId());\n contact.setRawContactId(data.getRawContactId());\n contact.setName(data.getName());\n originName = data.getName();\n contact.setPhotoUri(data.getPhotoUri());\n ((ContactEditorAdapter)adapter).refreshData();\n }\n\n @Override\n public void onLoaderReset(Loader<Contact> loader) {\n\n }\n });\n }",
"public Set<Medicine> loadMedicines();",
"@Deferred\n @RequestAction\n @IgnorePostback\n public void loadData() {\n users = userRepository.findAll();\n }",
"protected abstract Loadable[] getEntityPersisters();",
"public void findOrderAndfindContracts() {\n log.info(\"OrdersBean : findOrderAndfindContracts!\");\n ordersEntity = findOrders_ByIdUsers_andStatusIsPending();\n if (ordersEntity != null) {\n contractsBean.findAllContracts(ordersEntity.getId());\n calculatePriceOrder();\n setCptContracts(contractsBean.countContractsByIdOrder(ordersEntity.getId()));\n }\n }",
"@Override\n\tpublic ArrayList<SalesOrder> getAllSalesOrdersByCustomer(String customerName, boolean retrieveAssociation) throws Exception\n\t{\n ArrayList<SalesOrder> returnList = new ArrayList<SalesOrder>();\n\n\t\tPreparedStatement query = _da.getCon().prepareStatement(\"SELECT * FROM SalesOrder, Contacts WHERE name = ?\");\n query.setString(1, customerName);\n _da.setSqlCommandText(query);\n ResultSet salesOrderResult = _da.callCommandGetResultSet();\n\n while (salesOrderResult.next())\n {\n SalesOrder salesOrder = buildSalesOrder(salesOrderResult, retrieveAssociation);\n returnList.add(salesOrder);\n }\n\n return returnList;\n\t}",
"public Orders()\n {\n setEntityDelegate(DELEGATE);\n _init();\n }",
"public void loadEntities(BoundingBox box, AEntityD_Interactable<?> entityToLoad){\r\n\t\tfor(Entity entity : world.getEntitiesWithinAABB(Entity.class, box.convert())){\r\n\t\t\tif(!entity.isRiding() && (entity instanceof INpc || entity instanceof EntityCreature) && !(entity instanceof IMob)){\r\n\t\t\t\tfor(Point3d ridableLocation : entityToLoad.ridableLocations){\r\n\t\t\t\t\tif(!entityToLoad.locationRiderMap.containsKey(ridableLocation)){\r\n\t\t\t\t\t\tif(entityToLoad instanceof EntityVehicleF_Physics){\r\n\t\t\t\t\t\t\tif(((EntityVehicleF_Physics) entityToLoad).getPartAtLocation(ridableLocation).placementDefinition.isController){\r\n\t\t\t\t\t\t\t\t//continue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tentityToLoad.addRider(new WrapperEntity(entity), ridableLocation);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<MediaRelation> loadMediaRelations();",
"@Override\n public void loadWomenProductsData() {\n\n if (mCatalogWomenPresenter != null) {\n mCatalogWomenPresenter.loadWomenProductsData();\n }\n }",
"public Map<String, Set<String>> getRelatedEntities() {\n return relatedEntities;\n }",
"public void afterLoad(Object entity) {\n\t\tif(!(entity instanceof DBObject)) return;\r\n\t\tDBObject obj = (DBObject) entity;\r\n\t\t\r\n\t\t// record initial values of object\r\n\t\ttracker.track(obj);\r\n\t}",
"@Override\n public void updateObservers() throws Exception {\n loadAlLNameCustomer();\n loadAllCustomerss();\n \n OrderTabelAddCustomerPanel.selectAll();\n }",
"public String loadCustomerPO() {\n\tSession session = getSession();\n\ttry{\n\t\tCustomerPurchaseOrder custPO = new CustomerPurchaseOrder();\n\t\tcustPO = (CustomerPurchaseOrder) customerManager.listByParameter(\n\t\t\t\tcustPO.getClass(), \"customerPurchaseOrderId\",\n\t\t\t\tthis.getDr().getCustomerPurchaseOrder().getCustomerPurchaseOrderId(),session).get(0);\n\t\t\n\t\tpoDetailsHelper.generatePODetailsListFromSet(custPO.getPurchaseOrderDetails());\n\t\tpoDetailsHelper.generateCommaDelimitedValues();\n\t\t\n\t\tif(null==poDetailsHelperToCompare) {\n\t\t\tpoDetailsHelperToCompare = new PurchaseOrderDetailHelper(actionSession);\n\t\t}\n\t\tpoDetailsHelperToCompare.generatePODetailsListFromSet(custPO.getPurchaseOrderDetails());\n\t\tpoDetailsHelperToCompare.generateCommaDelimitedValues();\n\t\tthis.getDr().setTotalAmount(poDetailsHelper.getTotalAmount());\n\n\t\treturn \"dr\";\n\t}catch(Exception e){\n\t\treturn \"invoice\";\n\t}finally{\n\t\tif(session.isOpen()){\n\t\t\tsession.close();\n\t\t\tsession.getSessionFactory().close();\n\t\t}\n\t}\n\t}",
"@Test\r\n public void testloadCustomer() throws Exception {\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n assertNotNull(lesClients);\r\n }",
"void loadOrders(String date)\n throws FlooringMasteryPersistenceException;",
"@Test\n public void test() {\n manager.clear();\n TypedQuery<MasterEntity> query2 = manager.createQuery(\"select m from MasterEntity m join fetch m.ref\", MasterEntity.class);\n logger.debug(query2.getResultList().toString());\n// manager.clear();\n// CriteriaBuilder cb = manager.getCriteriaBuilder();\n// CriteriaQuery<MasterEntity> q = cb.createQuery(MasterEntity.class);\n// Root<MasterEntity> root = q.from(MasterEntity.class);\n// root.fetch(\"ref\");\n// manager.createQuery(q).getResultList();\n\n }",
"@SuppressWarnings({\"unchecked\"})\n public <T extends FamixAssociation> List<T> queryAssociationsBetweenEntities(\n List<? extends AbstractFamixEntity> entities, \n java.lang.Class<T> associationType) throws EvolizerRuntimeException {\n\n associationType = (associationType != null) ? associationType : (Class<T>) org.evolizer.famix.model.entities.FamixAssociation.class;\n List<T> associations = new ArrayList<T>();\n try {\n if (entities.size() > 0) {\n Criteria invocationQuery = getHibernateSession().createCriteria(associationType).add(\n Restrictions.and(Restrictions.in(\"from\", entities), Restrictions.in(\"to\", entities)));\n\n associations = invocationQuery.list();\n }\n } catch (HibernateException he) {\n fLogger.error(\"Error in queryAssociationsBetweenEntities \" + he.getMessage());\n throw new EvolizerRuntimeException(\"Error in queryAssociationsBetweenEntities\", he);\n } catch (EvolizerException ee) {\n fLogger.error(\"Error in queryAssociationsBetweenEntities \" + ee.getMessage());\n throw new EvolizerRuntimeException(\"Error in queryAssociationsBetweenEntities\", ee);\n }\n\n return associations;\n }",
"private void loadCustomer(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\t\tHttpSession\tsession = request.getSession(false);\n\t\t\t\n\t\t\tif(session.getAttribute(\"email\")!=null) {\n\t\t\t\n\t\t\t\tString theEmail=(String) session.getAttribute(\"email\");\n\t\t\t\t\t\n\t\t\t\t//get customer from database (db util)\n\t\t\t\t\tCustomer theCustomer = customerDBUtil.getCustomer(theEmail);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(theCustomer.toString());\n\t\t\t\t\t\n\t\t\t\t//place customer in the request attribute\n\t\t\t\t\trequest.setAttribute(\"THE_CUSTOMER\", theCustomer);\n\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(theUser!=null) {\n\t\t\t\t//place new user in the request attribute\n\t\t\t\trequest.setAttribute(\"THE_CUSTOMER\", theUser);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\trequest.setAttribute(\"errorMessage\", \"No User logged in! Please login .... \");\n\t\t\t}\n\t\t\t\n\t\t\t//send to the JSP page: edit-product-form.jsp\n\t\t\tRequestDispatcher dispatcher= request.getRequestDispatcher(\"customerInfo.jsp\");\n\t\t\tdispatcher.forward(request, response);\n\t\t\n\t}",
"@Override\n\tpublic void initEntity() {\n\n\t}",
"public Map<String, Object> getRelatedKeys() throws ODataJPAProcessorException;",
"TypeAssociation getConcerneTraitementObjectifTraitementObjectif();",
"@PostConstruct\n\tprotected void handleLoad() {\n\t\tString _id = contextMB.getUser().getId();\n\t\tsetUser(userBC.load(Long.valueOf(_id)));\n\t}",
"private void indirectAssociations_DeriveIndirectInheritance() {\n try{\n \tList<FamixAssociation> indirectInheritanceAssociations = new ArrayList<FamixAssociation>();\n\t for (FamixAssociation directAssociation : theModel.associations) {\n if (directAssociation.to == null || directAssociation.from == null || directAssociation.to.equals(\"\") || directAssociation.from.equals(\"\")){ \n \tnumberOfNotConnectedWaitingAssociations ++;\n }\n else if (directAssociation instanceof FamixInheritanceDefinition){ \n \t\t\t\tindirectInheritanceAssociations.addAll(indirectAssociations_AddIndirectInheritanceAssociation(directAssociation.from, directAssociation.to, directAssociation.lineNumber));\n\t\t\t\t}\n\t\t\t}\n\t for (FamixAssociation indirectInheritanceAssociation : indirectInheritanceAssociations) {\n\t \taddToModel(indirectInheritanceAssociation);\n\t }\n } catch (Exception e) {\n\t this.logger.debug(new Date().toString() + \" \" + e);\n\t e.printStackTrace();\n }\n }",
"@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}",
"@Override\r\n\tprotected void onManagedInitialize(final IEntity pEntity) {\r\n\r\n\t}",
"public interface ClinicRepository extends JpaRepository<Clinic,Long> {\n\n @Query(\"select distinct clinic from Clinic clinic left join fetch clinic.diagnostics left join fetch clinic.metros left join fetch clinic.specialitys\")\n List<Clinic> findAllWithEagerRelationships();\n\n @Query(\"select clinic from Clinic clinic left join fetch clinic.diagnostics left join fetch clinic.metros left join fetch clinic.specialitys where clinic.id =:id\")\n Clinic findOneWithEagerRelationships(@Param(\"id\") Long id);\n\n Optional<Clinic> findOneByDocdocId(Long docdocId);\n\n}",
"private void loadComicData() {\n int comicID = mainActivity.ISSUE_ID;\n issueCheck(comicID);\n\n //Set main activity comic id to -1\n mainActivity.ISSUE_ID = -1;\n\n //Query db\n comic = dbHandler.getComicById(comicID);\n\n //Load text views\n txtViewTitle.setText(comic.getComicTitle());\n txtViewVolume.setText(\"Volume: \" + comic.getComicVolume());\n txtViewIssue.setText(\"Issue: \" + comic.getComicIssue());\n txtViewPublisher.setText(comic.getComicPublisherName());\n txtViewCoverPrice.setText(comic.getComicCoverPrice());\n txtViewCondition.setText(comic.getComicConditionText());\n txtViewFormat.setText(comic.getComicFormat().toString());\n txtViewNotes.setText(comic.getComicNotes());\n\n imgViewCover.setImageBitmap(FileUtils.getCoverImage(comic.getComicCoverImage(), getActivity()));\n\n loadRecycler(comic.getComicCreators());\n\n }",
"@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }",
"@Transactional\n public OrderEntity findEager(Long orderId) {\n log.infof(\"Find order with id [%d]\", orderId);\n final TypedQuery<OrderEntity> query = em.createQuery(\"select o from OrderEntity o \" +\n \"join fetch o.shipmentAddress sa \" +\n \"join fetch o.billingAddress ba \" +\n \"left join fetch o.orderItems oi \" +\n \"where o.orderId = :orderId\", OrderEntity.class);\n query.setParameter(\"orderId\", orderId);\n return query.getSingleResult();\n }",
"@Test\n\tpublic void testCourseOfferingsLoaded() throws Exception {\n\t\ttry {\n\t\t\tcmService.getCourseOffering(\"biology_101_01\");\n\t\t\tcmService.getCourseOffering(\"chemistry_101_01\");\n\t\t} catch (IdNotFoundException ide) {\n\t\t\tAssert.fail();\n\t\t}\n\t}",
"private void initEntityForRefreshValueListProvider(JComboBox entity) {\r\n\t\tString[] subformEntitys = LayoutMLRuleValidationLayer.getAllSubform(this.editorPanel);\r\n\t\tif (subformEntitys != null) {\r\n\t\t\tfor(String subform : subformEntitys) {\r\n\t\t\t\tentity.addItem(subform);\r\n\t\t\t}\r\n\t\t\t// adding \"\" for deselecting entity, only makes sense if there are entities... \r\n\t\t\tentity.addItem(\"\");\r\n\r\n\t\t} else {\r\n\t\t\t// no subforms avaible, no need for the entity combobox\r\n\t\t\tentity.setEnabled(false);\r\n\t\t}\r\n\t}",
"public void cargarCombosForeignKeyPagosAutorizados(Boolean cargarCombosDependencia,Boolean conInitActions,Boolean conSetVariablesGlobales) throws Exception { \r\n\t\tthis.cargarCombosTodosForeignKeyPagosAutorizadosListas(cargarCombosDependencia);\r\n\t\t\t\t\r\n\t\tthis.addItemDefectoCombosTodosForeignKeyPagosAutorizados();\r\n\t\t\r\n\t\tthis.cargarCombosFrameForeignKeyPagosAutorizados();\t\t\t\t\t\t\r\n\t\t\r\n\t\tif(conInitActions) {\r\n\t\t\tthis.initActionsCombosTodosForeignKeyPagosAutorizados();\r\n\t\t}\r\n\t\t\r\n\t\tif(conSetVariablesGlobales) {\r\n\t\t\tthis.setVariablesGlobalesCombosForeignKeyPagosAutorizados();\r\n\t\t}\r\n\t}",
"@Override\n public JSONObject loadInvoiceGrid() {\n\n return null;\n }",
"TrackerRelated loadTrackerRelated(final Integer id);",
"@Test\n public void missingEntity() {\n\n final URI entityURI =\n getClient().newURIBuilder(SERVICE_URI).appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(1).build();\n\n // Request to single (non collection) navigation property\n ClientEntity entity = getFactory().newEntity(ET_KEY_NAV);\n final ClientLink navLinkOne =\n getFactory().newEntityNavigationLink(NAV_PROPERTY_ET_KEY_NAV_ONE, getClient().newURIBuilder(SERVICE_URI)\n .appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(42).build());\n entity.addLink(navLinkOne);\n\n try {\n getEdmEnabledClient().getCUDRequestFactory()\n .getEntityUpdateRequest(entityURI, UpdateType.PATCH, entity).execute();\n fail();\n } catch (ODataClientErrorException e) {\n assertEquals(HttpStatusCode.NOT_FOUND.getStatusCode(), e.getStatusLine().getStatusCode());\n }\n\n // Request to collection navigation propetry\n entity = getFactory().newEntity(ET_KEY_NAV);\n final ClientLink navLinkMany =\n getFactory().newEntitySetNavigationLink(NAV_PROPERTY_ET_KEY_NAV_MANY, getClient().newURIBuilder(SERVICE_URI)\n .appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(3).build());\n entity.addLink(navLinkMany);\n\n try {\n getEdmEnabledClient().getCUDRequestFactory()\n .getEntityUpdateRequest(entityURI, UpdateType.PATCH, entity).execute();\n } catch (ODataClientErrorException e) {\n assertEquals(HttpStatusCode.NOT_FOUND.getStatusCode(), e.getStatusLine().getStatusCode());\n }\n }",
"public void getFindByIdCompany() {\n log.info(\"CompaniesContactsBean => method : getFindByIdCompany()\");\n\n log.info(\"ID company\" + companiesBean.getCompaniesEntity().getId());\n this.companiesContactsEntityList = findByIdCompany(companiesBean.getCompaniesEntity());\n }",
"List<T> searchByExamplePages(T entity, String sortBy, Ord ord,\n\t\t\tInteger limit, Integer page, Map<String, Object> associations);"
] | [
"0.5908888",
"0.58950317",
"0.58445513",
"0.58091766",
"0.5791905",
"0.5701129",
"0.56708014",
"0.56391174",
"0.55911666",
"0.5423651",
"0.53261644",
"0.53124666",
"0.5114648",
"0.50872374",
"0.49972546",
"0.49484652",
"0.49434748",
"0.49345616",
"0.49328497",
"0.49216732",
"0.4920636",
"0.49063668",
"0.49008825",
"0.4889702",
"0.48883015",
"0.4873581",
"0.4847987",
"0.48405576",
"0.48319206",
"0.4824228",
"0.48214272",
"0.48194635",
"0.48066124",
"0.48038074",
"0.47769788",
"0.4760778",
"0.47550467",
"0.47395718",
"0.47334445",
"0.47314954",
"0.47272012",
"0.47193325",
"0.47189045",
"0.47187212",
"0.4700555",
"0.4693043",
"0.46880886",
"0.46753836",
"0.46527937",
"0.4647301",
"0.46446386",
"0.46437407",
"0.46354324",
"0.46237385",
"0.46146858",
"0.46000928",
"0.4598534",
"0.45870945",
"0.45863098",
"0.45818886",
"0.4578356",
"0.45726678",
"0.45705625",
"0.45639002",
"0.45569736",
"0.45546758",
"0.4552077",
"0.4551378",
"0.45488852",
"0.45470032",
"0.45437422",
"0.4543101",
"0.45418218",
"0.4539212",
"0.45366055",
"0.4512391",
"0.4499383",
"0.44978586",
"0.4493752",
"0.44885403",
"0.4485773",
"0.4484779",
"0.44773102",
"0.44748276",
"0.44689766",
"0.44658247",
"0.4462628",
"0.44610453",
"0.44582686",
"0.44569334",
"0.44552422",
"0.44534478",
"0.44531885",
"0.44481325",
"0.44406822",
"0.44338793",
"0.44278014",
"0.44260606",
"0.4425061",
"0.44237825"
] | 0.6202783 | 0 |
TODO Autogenerated method stub | public boolean DeveloperRegist(DeveloperInfo developer) {
DeveloperInfo oldDeveloper = dev.findOneDeveloper(developer.getId());
if(oldDeveloper != null) {
return false;//该开发者已经存在,不能再次注册.
}
else {
dev.addDeveloper(developer);
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public boolean DeveloperLogin(DeveloperInfo developer) {
DeveloperInfo oldDeveloper = dev.findOneDeveloper(developer.getId());
if(oldDeveloper != null) {
return false;//该开发者已经存在,不能再次注册.
}
else {
dev.addDeveloper(developer);
return true;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"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 int DeveloperDelete(DeveloperInfo developer) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int DeveloperUpdate(DeveloperInfo developer) {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public DeveloperInfo DeveloperQuery(int id) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Find the variant using the variantID | @GET
@Produces(MediaType.APPLICATION_JSON)
public Response findVariantInstances(@PathParam("variantID") String variantId){
MobileVariant mobileVariant = mobileApplicationService.findByVariantID(variantId);
if(mobileVariant == null){
return Response.status(Response.Status.NOT_FOUND).entity("Could not find requested Mobile Variant").build();
}
return Response.ok(mobileVariant.getInstances()).build();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ItemVariant getItemVariant(Integer itemVariantId);",
"public VariantDto getVariantById(String id) throws VariantNotFound {\n return variantRepository.findById(id)\n .map(q -> mapper.toDto(q)).orElseThrow(() -> new VariantNotFound());\n }",
"public int getVariantId() {\n return variantId_;\n }",
"public int getVariantId() {\n return variantId_;\n }",
"public PurchaseVO PFindByID(String id) {\n\t\treturn purchase.find(id);\r\n\t}",
"public void setVariantId(final Integer variantId);",
"public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}",
"public Product findProduct(int id)\n {\n for(Product product : stock)\n {\n if(id == product.getID())\n {\n return product;\n }\n }\n System.out.println(\"Error: Could not find ID: \" + id);\n return null;\n }",
"public ProductVaccine searchProduct(int id) {\n for(ProductVaccine p : productCatalog) {\r\n if(p.getVaccineNumber() == id) {\r\n return p;\r\n }\r\n }\r\n return null;\r\n }",
"public List<Variant> getVariantsByProductId(Long productID) {\n try {\n databaseManager.openReadableDb();\n //databaseManager.daoSession.clear();\n return databaseManager.daoSession.getVariantDao().queryBuilder()\n .where(VariantDao.Properties.Product_id.eq(productID))\n .list();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"@NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();",
"@Nullable\n public Long getVariantId() {\n return this.variantId;\n }",
"@Override\r\n\tpublic Vtype findById(int id) {\n\t\tVtype v=null;\r\n\t\tHibernateUtil.getCurrentSession().beginTransaction();\r\n\t\ttry{\r\n\t\t\tv=this.vdao.findById(id);\r\n\t\t\tHibernateUtil.getCurrentSession().getTransaction().commit();\r\n\t\t}catch(Exception e){\r\n\t\t\ttry{\r\n\t\t\t\tHibernateUtil.getCurrentSession().getTransaction().rollback();\r\n\t\t\t}catch(Exception e1){\r\n\t\t\t\tthrow e1;\r\n\t\t\t}\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn v;\r\n\t}",
"private int getIndexOfVariant(int variant) {\r\n for (int i = 0; i < VARIANTS.length; i++) {\r\n if (VARIANTS[i] == variant) {\r\n return i;\r\n }\r\n }\r\n throw new IllegalStateException(\"Unknown variant of l-diversity\");\r\n }",
"public SimilarProductBuilder variantId(@Nullable final Long variantId) {\n this.variantId = variantId;\n return this;\n }",
"@Override\n\tpublic Carpo findCar(String id) {\n\t\treturn inList.find(id);\n\t}",
"@Override\n\tpublic Product findOne(int a) {\n\t\tProduct p = productRepository.findOne(a);\n\t\treturn p;\n\t}",
"protected abstract T getResource(ItemVariant currentVariant);",
"@Override\n\tpublic DvdCd getById(Integer id) {\n\t\tlogger.info(\"Buscando DVD/CD por ID \"+id);\n\t\tOptional<DvdCd> obj = itemRepository.findById(id);\n\t\tif (!obj.isPresent()) {\n\t\t\tlogger.error(\"DvdCd nao encontrado, \"+DvdCdServiceImpl.class);\n\t\t\tthrow new ObjectNotFoundException(\"DvdCd nao encontrado, id: \"+id);\n\t\t}\n\t\t\n\t\treturn obj.get();\n\t}",
"public VariantDto updateVariant(CreateUpdateVariantDto dto, String id) throws VariantNotFound {\n Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound());\n\n variant.setQuestion(dto.getQuestion());\n variant.setVariant(dto.getVariant());\n\n return mapper.toDto(variant);\n }",
"SdkMobileVcode selectByPrimaryKey(Integer vid);",
"public SaleReturnVO SRFindByID(String id) {\n\t\treturn saleReturn.find(id);\r\n\t}",
"public Song findSong(Long id) {\n\t\tOptional<Song> optionalSong = lookifyRepository.findById(id);\n\t\tif (optionalSong.isPresent()) {\n\t\t\treturn optionalSong.get();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public static String getVariant(String localeID) {\n/* 300 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n public Item find(Context context, UUID id) throws SQLException\n {\n Item item = itemDAO.findByID(context, Item.class, id);\n if (item == null)\n {\n if (log.isDebugEnabled())\n {\n log.debug(LogManager.getHeader(context, \"find_item\",\n \"not_found,item_id=\" + id));\n }\n return null;\n }\n\n // not null, return item\n if (log.isDebugEnabled())\n {\n log.debug(LogManager.getHeader(context, \"find_item\", \"item_id=\"\n + id));\n }\n\n return item;\n }",
"public VariantDto deleteVariantById(String id) throws VariantNotFound {\n Variant variant = variantRepository.findById(id).orElseThrow(() -> new VariantNotFound());\n variantRepository.delete(variant);\n return mapper.toDto(variant);\n }",
"@Override\n\tpublic Stock Find(Integer id) {\n\t\tStock stock = _stockDao.selectByPrimaryKey(id);\n\t\tif (stock == null) {\n\t\t\treturn new Stock();\n\t\t}\n\t\treturn stock;\n\t}",
"@Override\n\tpublic ProductVo selectOne(String id) {\n\t\treturn sqlSession.selectOne(\"product.selectOne\", id);\n\t}",
"public PurchaseReturnVO PRFindByID(String id) {\n\t\treturn purchaseReturn.find(id);\r\n\t}",
"public SaleVO SFindByID(String id) {\n\t\treturn sale.find(id);\r\n\t}",
"@Override\r\n public Optional<Product> findbyId(Long id) {\r\n return productRepository.findById(id);\r\n }",
"@Override\n\tpublic car getByVin(String vinId) {\n\t\t\t\ttry{\n\t\t\t\t\tcar so=carDataRepository.getByVin(vinId);\n\t\t\t\t\t\n\t\t\t\t\treturn so;\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception ex)\n\t\t\t\t\t{\n\t\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t}",
"@Transactional(readOnly = true)\n public Optional<ItemInstance> findOne(Long id) {\n log.debug(\"Request to get ItemInstance : {}\", id);\n return itemInstanceRepository.findById(id);\n }",
"ItemStockDO selectByPrimaryKey(Integer id);",
"ItemStockDO selectByPrimaryKey(Integer id);",
"V get(K id);",
"@Override\n\tpublic Variable findById(int variableId) {\n\t\treturn variableJpaRepository.findById(variableId).get();\n\t}",
"public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }",
"CatalogItem getItembyId(final Long id);",
"private Variant setVariantsFromApi(VariantsModel variantsModel, Long id, Long productID) {\n return new Variant(id,\n variantsModel.getId(),\n productID,\n variantsModel.getColor(),\n variantsModel.getSize(),\n variantsModel.getPrice()\n );\n }",
"public AsxDataVO findOne(String id) {\n\t\t return (AsxDataVO) mongoTemplate.findOne(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}",
"@Override\r\n\tOptional<Product> findById(String id);",
"public @NotNull Item findItem(@NotNull final Identifier identifier) throws ItemNotFoundException, BazaarException;",
"AppStandard selectById(String id);",
"public Song searchById(String id) {\n Song selectedSong = null;\n\n for (int index = 0; index < this.songs.size(); index++) {\n if (this.songs.get(index).getId().equals(id)) {\n this.currentSongIndex = index;\n selectedSong = this.songs.get(index);\n }\n }\n\n return selectedSong;\n }",
"@Override\n public EnvironmentVariable find(Long id) throws Exception {\n return null;\n }",
"V get(ObjectId objectId, VersionCorrection versionCorrection);",
"E find(Id id) throws RepositoryException;",
"Optional<T> find(long id);",
"@Override\n\tpublic Item findItemById(Long id) {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Item> q = cb.createQuery(Item.class);\n\t\t Root<Item> c = q.from(Item.class);\n\t\t ParameterExpression<Long> p = cb.parameter(Long.class);\n\t\t q.select(c).where(cb.equal(c.get(\"id\"), p));\n\t\t TypedQuery<Item> query = entityManager.createQuery(q);\n\t\t query.setParameter(p, id);\n\t\t Item i = query.getSingleResult();\n\t\treturn i;\n\t}",
"@Override\r\n\tpublic void find(Integer id) {\n\r\n\t}",
"public MenuItem findItem(int id);",
"@Override\r\n\tpublic ConventionStage find(int id) {\n\t\tConventionStage obj = null;\r\n\t\ttry {\r\n\t\t\tStatement request = this.connect.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n\t\t\tResultSet result = request.executeQuery(\"SELECT * FROM \" + ConventionStageDAO.TABLE + \" WHERE NO_CONVENTION = \" + id);\r\n\r\n\t\t\tif(result.first()){\r\n\t\t\t\r\n\t\t\t\tobj = new ConventionStage((result.getInt(\"NO_CONTRAT\")),DAO.dateFromOracleToJava(result.getDate(\"DATE_SIGNATURE\")),(result.getInt(\"DUREE\")));\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\trequest.close();\r\n\t } catch (SQLException e) {\r\n\t e.printStackTrace();\r\n\t }\r\n\t return obj;\r\n\t}",
"public Product get(String id);",
"public Product getProductWithId(int id) {\n for (Product s : products) {\n if (s.getId() == id) { return s;}\n }\n return null;\n }",
"private void findVehicle(RoutingContext routingContext) {\n var vehicleId = routingContext.pathParam(\"id\");\n // Find it in the registry. The Node#withBlockchainData provides\n // the required context with the current, immutable database state.\n var vehicleOpt = node.withBlockchainData(\n (blockchainData) -> service.findVehicle(vehicleId, blockchainData));\n if (vehicleOpt.isPresent()) {\n // Respond with the vehicle details\n var vehicle = vehicleOpt.get();\n routingContext.response()\n .putHeader(\"Content-Type\", \"application/octet-stream\")\n .end(Buffer.buffer(vehicle.toByteArray()));\n } else {\n // Respond that the vehicle with such ID is not found\n routingContext.response()\n .setStatusCode(HTTP_NOT_FOUND)\n .end();\n }\n }",
"public abstract T findOne(int id);",
"public So_cdVO getById(String so_cd);",
"public void lookup(Id id, long version, Continuation command);",
"Product getProductByID(Long id);",
"public Cvpack findCvpackById(Long id);",
"@Override\n\tpublic Object findByID(Serializable id) {\n\t\treturn getSession().get(DirectTalentAdvertBean.class, id);\n\t}",
"public static DictItem find(List<DictItem> dictionary,\n String groupId,\n String artifactId,\n String version) {\n DictItem match=null;\n for(DictItem item:dictionary) {\n if(item.groupId.equals(groupId)&&\n item.artifactId.equals(artifactId)) {\n // If there is a version matching this version, pick that\n if(version.equals(item.version))\n match=item;\n else if(item.version.equals(\"*\")) {\n if(match!=null&&match.version.equals(\"*\"))\n throw new RuntimeException(\"Duplicate:\"+match);\n if(match==null)\n match=item;\n }\n }\n }\n return match;\n }",
"public Vacuna findById(Long id) {\n\t\tVacuna vacuna = vacunaRepository.findById(id).orElseThrow(() -> new RuntimeException(\"La vacuna no existe...\"));\n\t\treturn vacuna;\n\t}",
"E find(final ID identifier) throws ResourceNotFoundException;",
"public Recipe findRecipeFromID(int id, ComboBox<Recipe> combo){\n //loop through all the Recipes in the ComboBox\n for (Recipe r: combo.getItems()){\n if (r.getId() == id){\n return r;\n }\n }\n return null;\n }",
"public T findById(final UUID id) {\n\t\tfinal T result = em.find(persistentClass, id);\n\t\treturn result;\n\t}",
"@Override\n public Vehicle findById(BigDecimal id) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n operations.add(getMatchOperation(\"cars.vehicles._id\", Operation.EQ, id));\n operations.add(getVehicleProjection());\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n return mongoTemplate.aggregate(aggregation, Vehicle.class).getUniqueMappedResult();\n }",
"@Override\n\tpublic Vn getSong(int id) {\n\t\treturn songDao.getSong(id);\n\t}",
"V get(UniqueId uniqueId);",
"private Shop GetShopByIdFromRepository(UUID id) {\n\t\tShop shop = shopRepo.findById(id)\n\t\t\t\t.orElseThrow(() -> new ArgumentNotFoundException(\"Shop not found. The id: \" + id + \" doesn't exist\"));\n\t\treturn shop;\n\t}",
"Item findById(String id);",
"public SavedSearch getSingleSavedSearch(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from SavedSearch as savedSearch where savedSearch.savedSearchId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n //System.out.println(\"resultssssssssss\" + results.toString());\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (SavedSearch) results.get(0);\n }\n\n }",
"@Override\n\tpublic Optional<Product> findById(Long id) {\n\t\t return productRepository.findById(id);\n\t}",
"public Item getItem(long idItem) throws ItemNotFound;",
"public Product seekProduct(int id) throws Exception {\n\t\treturn this.dao.showOne(id);\r\n\t}",
"public Item searchID(String ID) {\n Item foundItem = null;\n for (Item item : this) {\n if (item.getItemId().equals(ID)) {\n foundItem = item;\n break;\n }\n }\n return foundItem;\n }",
"@Override\n\tpublic CarModel selectCar(String id) {\n\t\tfor(int i=0; i < archiveCar.size(); i++) {\n\t\t\tCarModel car = archiveCar.get(i);\n\t\t\tif(car.getId().equals(id)) {\n\t\t\t\treturn car;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n public Item get(long idItem) throws EntityNotFound;",
"SysCode selectByPrimaryKey(String id);",
"public ProjectVirtualDetailDO findById(long detailId) throws DataAccessException {\n Long param = new Long(detailId);\n\n return (ProjectVirtualDetailDO) getSqlMapClientTemplate().queryForObject(\"MS-PROJECT-VIRTUAL-DETAIL-FIND-BY-ID\", param);\n\n }",
"public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }",
"@Override\n\tpublic Product findProductById(Long id) {\n\t\treturn productDAO.findById(id).orElse(null);\n\t}",
"public Product selectProduct(long id) {\n return entityManager.find(Product.class, id);\n }",
"@Override\r\n\tpublic Product findProductByPid(String pid) throws Exception {\n\t\treturn null;\r\n\t}",
"@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }",
"Optional<Vendors> findByVendorID(String s);",
"ReferenceData findById(ReferenceDataId id) throws DataException;",
"ProductPurchaseItem getProductPurchaseItemPerId(long sprcId);",
"public int find(int p) {\r\n return id[p];\r\n }",
"@Override\r\n public Asset findOne(Long id) {\n return assetDao.findById(id);\r\n }",
"CafeProduct getProductById(final Integer productId);",
"SwipersDO selectByPrimaryKey(Integer id);",
"@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }",
"@SuppressWarnings(\"unchecked\")\n public Version getVersionById(Long versionId) {\n // Get session and begin transaction\n Session session = DBHelper.getSession();\n Transaction transaction = session.beginTransaction();\n\n Version version = session.get(Version.class, versionId);\n\n // Commit and close\n transaction.commit();\n session.close();\n\n return version;\n }",
"@Override\r\n\tpublic ProductRaw getById(int id) {\n\t\treturn productRawDao.selectByPrimaryKey(id);\r\n\t}",
"Product findById(long id);",
"public LiveStock searchID(int liveStockID){\r\n\t\tString query = \"Select * from livestock where id = ?\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = conn.prepareStatement(query);\r\n\t\t\tps.setInt(1, liveStockID);\r\n\t\t\t\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\t\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tString name = rs.getString(\"name\");\r\n\t\t\t\tString eyeColor = rs.getString(\"eyecolor\");\r\n\t\t\t\tString sex = rs.getString(\"sex\");\r\n\t\t\t\tString type = rs.getString(\"type\");\r\n\t\t\t\tString breed = rs.getString(\"breed\");\r\n\t\t\t\tString height = rs.getString(\"height\");\r\n\t\t\t\tString weight = rs.getString(\"weight\");\r\n\t\t\t\tint age = rs.getInt(\"age\");\r\n\t\t\t\tString furColor = rs.getString(\"furColor\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tliveStock = new LiveStock( name, eyeColor, sex, type, breed, height, weight,\r\n\t\t\t\t\t\tage, furColor);\r\n\t\t\t\t\r\n\t\t\t\treturn liveStock;\r\n\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn liveStock;\r\n\t}",
"@Transactional(readOnly = true)\n public Optional<ScriptParam> findOne(Long id) {\n log.debug(\"Request to get ScriptParam : {}\", id);\n return scriptParamRepository.findById(id);\n }",
"public Product getProductInfo(int pid) {\nfor (ProductStockPair pair : productCatalog) {\nif (pair.product.id == pid) {\nreturn pair.product;\n}\n}\nreturn null;\n}"
] | [
"0.7125249",
"0.6726727",
"0.64664394",
"0.6357142",
"0.6267726",
"0.6142135",
"0.61250633",
"0.61233544",
"0.5993252",
"0.59819156",
"0.5938565",
"0.59186494",
"0.5881903",
"0.5782801",
"0.5658315",
"0.55634284",
"0.5552413",
"0.55512",
"0.5548655",
"0.55444556",
"0.5512012",
"0.55097663",
"0.55091745",
"0.5507242",
"0.5494658",
"0.54688126",
"0.54685324",
"0.54415715",
"0.54405016",
"0.543381",
"0.54263604",
"0.5408606",
"0.5397035",
"0.53896767",
"0.53896767",
"0.5377103",
"0.5371381",
"0.53462315",
"0.532901",
"0.53250134",
"0.53210735",
"0.5312618",
"0.5303161",
"0.5283867",
"0.5282887",
"0.52796346",
"0.52722985",
"0.5265045",
"0.52643424",
"0.52626115",
"0.5260373",
"0.5246286",
"0.52426016",
"0.52424145",
"0.52339566",
"0.5233785",
"0.52294105",
"0.5227252",
"0.5226907",
"0.52268434",
"0.5213614",
"0.5208412",
"0.5207379",
"0.52058536",
"0.52014524",
"0.51951885",
"0.5188614",
"0.5187061",
"0.51820564",
"0.5179412",
"0.51681685",
"0.5164461",
"0.51625335",
"0.5161065",
"0.51571834",
"0.51562905",
"0.5150791",
"0.51483953",
"0.51466626",
"0.5146329",
"0.51403743",
"0.5140153",
"0.5139849",
"0.5136738",
"0.5135769",
"0.5128749",
"0.51259464",
"0.512086",
"0.51201826",
"0.51184154",
"0.5113092",
"0.51083225",
"0.5106921",
"0.51061785",
"0.51055586",
"0.5104553",
"0.5102094",
"0.509775",
"0.5091913",
"0.5083331"
] | 0.53830177 | 35 |
Stores a new TAlgmntSalesTeam entity object in to the persistent store | public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {
LOGGER.info("=========== Create TAlgmntSalesTeam ===========");
return genericDAO.store(tAlgmntSalesTeam);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void save() {\n Saver.saveTeam(team);\n }",
"@Test\r\n\tpublic void saveTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeam \r\n\t\tTeam team = new wsdm.domain.Team();\r\n\t\tservice.saveTeam(team);\r\n\t}",
"public void insertTeam(Team t) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(t);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t}",
"@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}",
"@Test\r\n\tpublic void saveTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTswacct \r\n\t\tInteger teamId_3 = 0;\r\n\t\tTswacct related_tswacct = new wsdm.domain.Tswacct();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTswacct(teamId_3, related_tswacct);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTswacct\r\n\t}",
"public void persist(Timesheet ts) {\n\t em.persist(ts);\n\t }",
"@Override\r\n\tpublic void save(StnLooseMt stnLooseMt) {\n\t\tstnLooseMtRepository.save(stnLooseMt);\r\n\t}",
"private void saveTournament(Tournament tournament) {\n System.out.println(\"Saving\");\n TournamentEntity entity = new TournamentEntity();\n entity.setId(tournament.getId());\n entity.setWinnerId(tournament.getFightersRemaining().get(0).getId());\n tournamentRepository.save(entity);\n }",
"@Test\r\n\tpublic void saveTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTeamplayerses \r\n\t\tInteger teamId_7 = 0;\r\n\t\tTeamplayers related_teamplayerses = new wsdm.domain.Teamplayers();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTeamplayerses(teamId_7, related_teamplayerses);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTeamplayerses\r\n\t}",
"@Override\n @Transactional\n public Team addTeam(Team team) {\n KeyHolder keyHolder = new GeneratedKeyHolder();\n String sql = \"INSERT INTO Team (teamname, userid) VALUES (?, ?)\";\n\n jdbc.update((Connection connection) -> {\n PreparedStatement prep = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n prep.setString(1, team.getName());\n prep.setInt(2, team.getUser().getId());\n return prep;\n }, keyHolder);\n team.setId(keyHolder.getKey().intValue());\n return team;\n }",
"@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}",
"public TAlgmntSalesTeam updateTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Update TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.update(tAlgmntSalesTeam);\n\t}",
"public void Salvar(TarefaEntity tarefaEntity){\n \n\t\tthis.entityManager.getTransaction().begin();\n\t\tthis.entityManager.persist(tarefaEntity);\n\t\tthis.entityManager.getTransaction().commit();\n\t}",
"public void save(MeetingTable nt) {\n\t\tgetSession().save(nt);\r\n\t\t\r\n\t}",
"int insert(SysTeam record);",
"@Test\r\n\tpublic void saveGameTswacct() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: saveGameTswacct \r\n\t\tInteger gameId_1 = 0;\r\n\t\tTswacct related_tswacct = new tsw.domain.Tswacct();\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tGame response = null;\r\n\t\tresponse = service.saveGameTswacct(gameId_1, related_tswacct);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: saveGameTswacct\r\n\t}",
"@Override\n\tpublic TeamInfo saveOrUpdate(TeamInfo teamInfo) {\n\t\treturn repository.save(teamInfo);\n\t}",
"@Transactional\n\tpublic void saveNewTrade(DrugMtl docMtl) {\n\t\tlog.debug(\"-----\");\n\t\tTree docT = docMtl.getDocT();\n\t\tlong timeInMillis = Calendar.getInstance().getTimeInMillis();\n\t\tTree newTradeT = treeCreator.addChild(docT.getParentT(), \"drug\", timeInMillis, docT, docMtl);\n\t\tnewTradeT.setIdClass(newTradeT.getId());\n\t\taddHistory(newTradeT);\n\t\tDrug newTradeO = makeNewDrug(newTradeT, docMtl.getTradeName());\n\t\tnewTradeO.setGeneric((Drug) docT.getMtlO());\n\t\tem.persist(newTradeT);\n\t\tem.persist(newTradeO);\n\t}",
"@Override\r\n\tpublic void salvar(Plano t) {\n\t\tEntityManager em = new Conexao().getInstance();\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(t);\r\n\t\tem.getTransaction().commit();\r\n\t\tem.close();\r\n\t}",
"@Override\n\tpublic void saveLane(Lane theLane) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\tcurrentSession.saveOrUpdate(theLane);\n\t}",
"public void saveTicket(Ticket ticket) throws DavException;",
"public void insertTeam(Team team) {\n\t\ttry {\n\t\t\tStatement statement = null;\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tjava.sql.Date tDate = new java.sql.Date(team.getDateFoundation().getTime());\n\t\t\tString insertTeam_sql = \"INSERT INTO \" + team_table + \" (id, name, coach, city, dateFoundation)\"\n\t\t\t\t\t+ \"VALUES (NULL, '\" + team.getName() + \"' , '\" + team.getCoach() + \"' , '\" + team.getCity()\n\t\t\t\t\t+ \"' , '\" + tDate + \"')\";\n\t\t\tstatement.executeUpdate(insertTeam_sql);\n\t\t} catch (SQLException e) {\n\t\t\tif (e.getErrorCode() == MYSQL_DUPLICATE_PK) {\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Error\");\n\t\t\t\talert.setHeaderText(\"Duplicity Error\");\n\t\t\t\talert.setContentText(\"This team is already in our database\");\n\t\t\t\talert.showAndWait();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"@Test\r\n\tpublic void saveGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: saveGame \r\n\t\tGame game = new tsw.domain.Game();\r\n\t\tTswacct tswAcct = null;\r\n\t\tservice.saveGame(tswAcct, game, null);\r\n\t}",
"@PostMapping(\"/saveTeam\")\n public String saveTeam(@Valid @ModelAttribute(\"team\") Team team) {\n teamService.saveTeam(team);\n return \"redirect:/showFormForUpdateTeam/\"+team.getId();\n }",
"void addMyTeam(Team team) throws HasTeamAlreadyException;",
"public void save(PtJJdwcy entity);",
"@PostMapping(path=\"/add/{id}/team\")\n public @ResponseBody Object assignTeamMember(@PathVariable long id, @RequestParam Team team){\n TeamMember tm = teamMemberRepository.getOne(id);\n tm.setTeam(team); // Retrieving the list of team members and adding new team member\n return teamMemberRepository.saveAndFlush(tm);\n }",
"void create(Team team);",
"public void save(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//session.save(obj);\n\t\tsession.persist(obj);\n\t}",
"@Override\r\n\tpublic void persist(TimetableVO vo) {\n\t\tentityManager.persist(vo);\r\n\t}",
"private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }",
"public static void addTeam(TeamForm tf) {\n Team team;\n\n long id = tf.id;\n\n if (!isTeam(id)) {\n team = new Team(tf.teamName, tf.location, tf.teamType, tf.skillLevel, tf.roster, tf.description, tf.imageUrl);\n team.save();\n }\n else {\n team = getTeam(id);\n team.setTeamName(tf.teamName);\n team.setLocation(tf.location);\n team.setTeamType(tf.teamType);\n team.setSkillLevel(tf.skillLevel);\n team.setRoster(tf.roster);\n team.setDescription(tf.description);\n team.setImageUrl(tf.imageUrl);\n team.setWins(tf.wins);\n team.setLosses(tf.losses);\n team.setPointsFor(tf.pointsFor);\n team.setPointsAgainst(tf.pointsAgainst);\n team.save();\n }\n }",
"@Test\r\n\tpublic void saveTeamGamesForVisitorTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamGamesForVisitorTeamFk \r\n\t\tInteger teamId_4 = 0;\r\n\t\tGame related_gamesforvisitorteamfk = new wsdm.domain.Game();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamGamesForVisitorTeamFk(teamId_4, related_gamesforvisitorteamfk);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamGamesForVisitorTeamFk\r\n\t}",
"@Override\n\tpublic void saveEntity(T t) {\n\t\tgetSession().save(t);\n\t}",
"@Override\n\tpublic ShopLoyaltyCardStageEntity save(ShopLoyaltyCardStageEntity shopLoyaltyCardStageEntity) {\n\t\tShopLoyaltyCardStageEntity rc = new ShopLoyaltyCardStageEntity();\n\t\tSession session = this.sessionFactory.openSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tsession.persist(shopLoyaltyCardStageEntity);\n\t\trc = shopLoyaltyCardStageEntity;\n\t\ttx.commit();\n\t\tsession.close();\n\t\treturn rc;\n\t\t\n\t}",
"@Override\r\n\tpublic void create(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().save(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}",
"@Override\n\tpublic void saveOrUpdate(EmpType entity) {\n\n\t}",
"@Override\r\n\tpublic Staff save(Staff entity) {\n\t\treturn staffDao.save(entity);\r\n\t}",
"int insert(SmsEmployeeTeam record);",
"@Override\n public void save(JavaStudyClub javaStudyClub) {\n entityManager.persist(javaStudyClub);\n }",
"@Test\r\n\tpublic void saveTeamLevel() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamLevel \r\n\t\tInteger teamId_8 = 0;\r\n\t\tLevel related_level = new wsdm.domain.Level();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamLevel(teamId_8, related_level);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamLevel\r\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"@Override\r\n\tpublic void save(HotelVendorEntity entity) {\n\t\tSystem.out.println(\"invoked save\"+entity);\r\n\t\tSystem.out.println(\"saved in database\");\r\n\t\t\r\n\t\tConfiguration cfg=new Configuration();\r\n\t\tcfg.configure();\r\n\t\tSessionFactory factory=cfg.buildSessionFactory();\r\n\t\tSession session=factory.openSession();\r\n\t\tsession.beginTransaction();\r\n\t\tsession.save(entity);\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.close();\r\n\t\tfactory.close();\r\n\t\t\r\n\t}",
"public Team create(TeamDTO teamForm);",
"@Override\n\tpublic void save(CasUserOrg casUserOrg) {\n\t\tentityManager.persist(casUserOrg);\n\t}",
"Team createTeam();",
"public void save() throws EntityPersistenceException {\n\n }",
"@Override\n\tpublic Mt900 save(Mt900 mt900) {\n\t\treturn repo.save(mt900);\n\t}",
"@Override\n\tpublic void persist(T obj) throws Exception {\n\t\t\n\t}",
"Lembretes persistir(Lembretes lembretes);",
"@Test\r\n\tpublic void saveTeamProgram() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamProgram \r\n\t\tInteger teamId_1 = 0;\r\n\t\tProgram related_program = new wsdm.domain.Program();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamProgram(teamId_1, related_program);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamProgram\r\n\t}",
"public void newTeam(Team team);",
"public void storeTable(Table table) {\n Entity tableEntity = new Entity(\"Table\");\n tableEntity.setProperty(\"firstName\", table.getFirstName());\n tableEntity.setProperty(\"lastName\", table.getLastName());\n tableEntity.setProperty(\"email\", table.getEmail());\n tableEntity.setProperty(\"phoneNumber\", table.getPhoneNumber());\n tableEntity.setProperty(\"restName\", table.getRestName());\n tableEntity.setProperty(\"restAdd\", table.getRestAdd());\n tableEntity.setProperty(\"restDescrip\", table.getRestDescrip());\n tableEntity.setProperty(\"dateTime\", table.getDateTime());\n tableEntity.setProperty(\"maxSize\", table.getMaxSize());\n tableEntity.setProperty(\"otherNotes\", table.getOtherNotes());\n tableEntity.setProperty(\"members\", table.getMembers());\n tableEntity.setProperty(\"lat\", table.getLat());\n tableEntity.setProperty(\"lng\", table.getLng());\n \n DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n datastore.put(tableEntity);\n}",
"public void addTrainingInitial(TrainingInitial ti) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(ti);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n\n }",
"@Override\r\n public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }",
"InviteEntity save(InviteEntity builder);",
"LoginHistory save(LoginHistory entity);",
"@Override\n\tpublic void insertProjectTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}",
"@Test\n @Transactional\n public void createTeamWithExistingId() throws Exception {\n int databaseSizeBeforeCreate = teamRepository.findAll().size();\n\n // Create the Team with an existing ID\n team.setId(1L);\n TeamDTO teamDTO = teamMapper.toDto(team);\n\n // An entity with an existing ID cannot be created, so this API call\n // must fail\n restTeamMockMvc\n .perform(post(\"/api/teams\").contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(teamDTO)))\n .andExpect(status().isBadRequest());\n\n // Validate the Team in the database\n List<Team> teamList = teamRepository.findAll();\n assertThat(teamList).hasSize(databaseSizeBeforeCreate);\n }",
"@Override\r\n\tpublic void save(T t) {\n\t\tgetSession().save(t);\r\n\t}",
"@Override\n\t\tpublic void saveStudent(Student stu) {\n\t\t\tsessionFactory.getCurrentSession().save(stu);\n\t\t\tSystem.out.println(\"DATA HAS BEEN SAVED.........\");\n\t\t}",
"private void createLeague(){ \r\n FantasyUser maxUser = new FantasyUser();\r\n maxUser.setEmail(\"max@gmail.com\");\r\n maxUser.setPassword(\"password\");\r\n fUserBean.create(maxUser);\r\n \r\n FantasyUser adrianUser = new FantasyUser();\r\n adrianUser.setEmail(\"adrian@gmail.com\");\r\n adrianUser.setPassword(\"password\");\r\n fUserBean.create(adrianUser);\r\n \r\n FantasyUser ashayUser = new FantasyUser();\r\n ashayUser.setEmail(\"ashay@gmail.com\");\r\n ashayUser.setPassword(\"password\");\r\n fUserBean.create(ashayUser);\r\n \r\n FantasyUser jessUser = new FantasyUser();\r\n jessUser.setEmail(\"jess@gmail.com\");\r\n jessUser.setPassword(\"password\");\r\n fUserBean.create(jessUser);\r\n \r\n //create league\r\n FantasyLeague league = new FantasyLeague();\r\n league.setDraftStarted(false);\r\n league.setFinishedDraft(false);\r\n league.setLeagueName(\"Mongeese Only\");\r\n league.setLeagueOwner(maxUser);\r\n flBean.create(league);\r\n \r\n //create teams\r\n FantasyTeam maxTeam = new FantasyTeam();\r\n maxTeam.setTeamName(\"Max's Team\");\r\n maxTeam.setTeamOwner(maxUser);\r\n maxTeam.setLeague(league);\r\n ftBean.create(maxTeam);\r\n \r\n FantasyTeam ashayTeam = new FantasyTeam();\r\n ashayTeam.setTeamName(\"Ashay's Team\");\r\n ashayTeam.setTeamOwner(ashayUser);\r\n ashayTeam.setLeague(league);\r\n ftBean.create(ashayTeam);\r\n \r\n FantasyTeam jessTeam = new FantasyTeam();\r\n jessTeam.setTeamName(\"Jess's team\");\r\n jessTeam.setTeamOwner(jessUser);\r\n jessTeam.setLeague(league);\r\n ftBean.create(jessTeam);\r\n \r\n FantasyTeam adrianTeam = new FantasyTeam();\r\n adrianTeam.setTeamName(\"Team Greasy Pizza\");\r\n adrianTeam.setTeamOwner(adrianUser);\r\n adrianTeam.setLeague(league); \r\n ftBean.create(adrianTeam);\r\n }",
"public void save(){\r\n\t\tmanager.save(this);\r\n\t}",
"@Override\n\tpublic T save(T t) {\n\t\t hibernateTemplate.getSessionFactory().getCurrentSession().save(t);\n\t\treturn t;\n\t}",
"@Test\r\n\tpublic void saveTeamGamesForHomeTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamGamesForHomeTeamFk \r\n\t\tInteger teamId_5 = 0;\r\n\t\tGame related_gamesforhometeamfk = new wsdm.domain.Game();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamGamesForHomeTeamFk(teamId_5, related_gamesforhometeamfk);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamGamesForHomeTeamFk\r\n\t}",
"@Override\n\tpublic void addTicketsTourDetail(TicketsTourDetail ticketsTourDetail) {\n\t\tthis.entityManager.persist(ticketsTourDetail);\n\t}",
"@Override\r\n\tpublic void persist() {\n\t}",
"@Override\n\tpublic void add(Estado es) {\n\t\tEntityManager em = this.emf.createEntityManager();\n\t\ttry {\n\t\t\tem.persist(es);\n\t\t\tem.flush(); // este es un commit? \n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\t\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}",
"Entity save(Entity entity);",
"@Override\n public void salvar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n if(paciente.getIdPaciente() == 0){\n em.persist(paciente);\n }else{\n em.merge(paciente);\n }\n em.getTransaction().commit();\n em.close();\n factory.close();\n }",
"public void save(E entity){\n transaction.begin();\n entityManager.persist(entity);\n transaction.commit();\n }",
"@Override\r\n\tpublic int createMarket(MarketDto dto) {\n\t\treturn session.insert(\"kdc.market.createMarket\", dto);\r\n\t}",
"@Transactional\n public DevStudio save(DevStudio entity) {\n return getDevStudioRepository().save(entity);\n }",
"public void save() throws DfException {\n\t\tobject.save();\n\t}",
"@Override\n public void persist() {\n }",
"@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}",
"public void save(HrJBorrowcontract entity);",
"void save(Object entity);",
"public boolean insert(T entity) {\r\n // code to save entity details to database\r\n Session session = HibernateUtil.getInstance().getFactory().openSession();\r\n try {\r\n System.out.println(\"\" + entity.toString());\r\n\r\n Transaction transaction = session.getTransaction();\r\n transaction.begin();\r\n// Approval app=(Approval) entity;\r\n session.persist(entity);\r\n transaction.commit();\r\n session.close();\r\n return true;\r\n } catch (HibernateException ex) {\r\n ex.printStackTrace();\r\n System.out.println(\"\" + ex.getMessage());\r\n session.close();\r\n return false;\r\n }\r\n\r\n }",
"@Override\r\n public void save(BuyTicketModel value) {\n String sql = \"insert into buyticket values(?,?,?,?,?,?,?,?,?,?,?,?) \";\r\n \r\n try {\r\n PreparedStatement pstm = database.getCon().prepareStatement(sql);\r\n pstm.setString(1, value.getSlno());\r\n pstm.setString(2, value.getCustomername());\r\n pstm.setString(10,value.getContact());\r\n pstm.setString(3, value.getDestination());\r\n pstm.setString(4, value.getTime());\r\n pstm.setString(5, value.getFare());\r\n pstm.setString(6, value.getComment());\r\n pstm.setString(7, value.getDate());\r\n pstm.setString(8, value.getPayment());\r\n pstm.setString(9, value.getSeat());\r\n pstm.setString(11, value.getType());\r\n pstm.setString(12, value.getBusname());\r\n \r\n \r\n pstm.executeUpdate();\r\n pstm.close();\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(BuyTicketImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n }",
"void save(Teacher teacher);",
"Lancamento persistir(Lancamento lancamento);",
"@Override\n\tprotected void save() throws Exception {\n\t\t//turn the list of data into a unique list of tickets\n\t\tMap<String, ExtTicketVO> tickets= new HashMap<>(data.size());\n\t\tfor (SOHDRFileVO dataVo : data) {\n\t\t\t//035 are harvests and all we care about\n\t\t\tif (\"035\".equals(dataVo.getSoType())) {\n\t\t\t\tExtTicketVO vo = transposeTicketData(dataVo, new ExtTicketVO());\n\t\t\t\ttickets.put(vo.getTicketId(), vo);\n\t\t\t}\n\t\t}\n\n\t\tpopulateTicketDBData(tickets);\n\n\t\ttickets = removeGhostRecords(tickets);\n\n\t\t//don't bother with the rest of this class if we have no tickets\n\t\tif (tickets.isEmpty()) return;\n\n\t\tdecomissionUnits(tickets.keySet()); //ticket\n\n\t\tpurgePartShipments(tickets.keySet()); //calls purgeShipments to cascade deletion\n\n\t\tsetDispositionCode(tickets); //ticket_data attr_dispositionCode\tNONREPAIRABLE\n\n\t\tcorrectLedgerEntries(tickets);\n\t}",
"public Team insert(League league, String teamName) {\n StandingDB sdb = new StandingDB();\n TeamDB tdb = new TeamDB();\n String teamID = generateTeamID();\n \n Standing standing = new Standing(teamID);\n \n Team team = new Team(teamID, teamName);\n team.setLeagueID(league);\n \n tdb.insert(team);\n sdb.insert(standing);\n return team;\n }",
"@Override\n\tpublic void insertProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}",
"int insertSelective(SysTeam record);",
"@Override\n public void save(ArrayList<League> leagues) {\n\n }",
"private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }",
"@Override\r\n\tpublic void saveEmployee(Employee employee) {\n\t\t\r\n\t}",
"@Override\n\tpublic void persist() throws GymMembersException {\n\t\t\n\t}",
"private void registrarSolicitudBienEntidad(SolicitudBienEntidadDTO SolicitudBienEntidadDTO) {\n SolicitudBienEntidad solicitudBienEntidad = SolicitudBienEntidadHelper.toLevel1Entity(SolicitudBienEntidadDTO,\n null);\n em.persist(solicitudBienEntidad);\n }",
"public void persists(Drive drive){\n\t\tem.persist(drive);\n\t}",
"private void saveData(){\n databaseReference.setValue(new Teacher(0, \"\", 0.0));\n }",
"@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }",
"@Override\r\n\t@Transactional\r\n\tpublic FmtEstado insert(FmtEstado fmtestado){\r\n\t\tgetSession().save(fmtestado);\t\r\n\t\treturn fmtestado;\r\n\t}",
"public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }",
"int insertSelective(SmsEmployeeTeam record);",
"public void addTrainingInitialAdmin(TrainingInitialAdmin ti) {\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(ti);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n\n }",
"@Override\n\tpublic Trainning_system save(Trainning_system trainning_system) {\n\t\treturn trainningSystemServiceImpl.save(trainning_system);\n\t}",
"void save(T entity);"
] | [
"0.6914611",
"0.688269",
"0.6568689",
"0.62544906",
"0.62519425",
"0.6145038",
"0.6047155",
"0.5980845",
"0.59675115",
"0.5943236",
"0.5840548",
"0.58221877",
"0.57883453",
"0.5780678",
"0.57747084",
"0.5745156",
"0.56910247",
"0.56823784",
"0.56721824",
"0.566532",
"0.5655277",
"0.5653491",
"0.5645933",
"0.56452096",
"0.56436884",
"0.5616749",
"0.5603292",
"0.55816686",
"0.5568154",
"0.5565026",
"0.5556346",
"0.5553726",
"0.5549313",
"0.55311614",
"0.5526896",
"0.5510114",
"0.5496246",
"0.5490191",
"0.54759836",
"0.54309076",
"0.5427207",
"0.5416609",
"0.5416518",
"0.5402287",
"0.53901714",
"0.5368016",
"0.5362876",
"0.5348866",
"0.5344651",
"0.53379804",
"0.53357095",
"0.5312326",
"0.5304991",
"0.5301047",
"0.5300183",
"0.5298212",
"0.528563",
"0.5277232",
"0.52727747",
"0.5268684",
"0.5268462",
"0.5266257",
"0.526358",
"0.5262147",
"0.52581155",
"0.52539504",
"0.5253507",
"0.5245183",
"0.52329534",
"0.5231698",
"0.52293056",
"0.5223375",
"0.52233624",
"0.5222901",
"0.52226406",
"0.5218565",
"0.5211481",
"0.52105314",
"0.520753",
"0.5193887",
"0.5187451",
"0.5182362",
"0.51794076",
"0.5178996",
"0.5174818",
"0.51745486",
"0.51734644",
"0.5172328",
"0.5170256",
"0.5169051",
"0.51544803",
"0.5143606",
"0.5139932",
"0.5139184",
"0.5137558",
"0.51346344",
"0.5125574",
"0.5118182",
"0.51181126",
"0.51088554"
] | 0.7378269 | 0 |
Deletes a TAlgmntSalesTeam entity object from the persistent store | public void deleteTAlgmntSalesTeam(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {
LOGGER.info("=========== Delete TAlgmntSalesTeam ===========");
final TAlgmntSalesTeam tAlgmntSalesTeam = genericDAO.get(clazz, tAlgmntSalesTeamId);
genericDAO.remove(tAlgmntSalesTeam);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void deleteTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeam \r\n\t\tTeam team_1 = new wsdm.domain.Team();\r\n\t\tservice.deleteTeam(team_1);\r\n\t}",
"public void deleteTeam(Team team) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tTypedQuery<Team> deleteTeam = em.createQuery(\"select t from Team t where t.teamId = :selectedId\", Team.class);\n\t\tdeleteTeam.setParameter(\"selectedId\", team.getTeamId());\n\t\tdeleteTeam.setMaxResults(1);\n\t\tTeam toDelete = deleteTeam.getSingleResult();\n\t\tem.remove(toDelete);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t}",
"@Override\n\tpublic void deleteTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}",
"int deleteByPrimaryKey(Integer teamId);",
"@Override\n\tpublic void deleteProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}",
"@Test\r\n\tpublic void deleteTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamTswacct \r\n\t\tInteger team_teamId_6 = 0;\r\n\t\tInteger related_tswacct_tswAcctId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamTswacct(team_teamId_6, related_tswacct_tswAcctId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamTswacct\r\n\t}",
"@Override\n\tpublic void delete(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}",
"@Override\n public boolean deleteTeamById(int id){\n teampokemondao.deleteTeamPokemonByTeam(id);\n typestatdao.deleteTypeStatByTeam(id);\n basestatdao.deleteBaseStatByTeam(id);\n \t String sql = \"DELETE FROM Team WHERE Team.teamid = \" + id;\n return jdbc.update(sql) > 0;\n }",
"@Test\r\n\tpublic void deleteTeamGamesForVisitorTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamGamesForVisitorTeamFk \r\n\t\tInteger team_teamId_1 = 0;\r\n\t\tInteger related_gamesforvisitorteamfk_gameId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamGamesForVisitorTeamFk(team_teamId_1, related_gamesforvisitorteamfk_gameId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamGamesForVisitorTeamFk\r\n\t}",
"@Test\r\n\tpublic void deleteGameTswacct() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGameTswacct \r\n\t\tInteger game_gameId_1 = 0;\r\n\t\tInteger related_tswacct_tswAcctId = 0;\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tGame response = null;\r\n\t\tresponse = service.deleteGameTswacct(game_gameId_1, related_tswacct_tswAcctId);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: deleteGameTswacct\r\n\t}",
"@Override\n\tpublic void delete(FxzfLane entity) {\n\t\t\n\t}",
"int deleteByExample(SysTeamExample example);",
"@RequestMapping(method = RequestMethod.DELETE, value = \"/teams/{id}\")\n public void deleteTeam(@PathVariable Integer id) {\n teamService.deleteTeam(id);\n }",
"public void deleteTeamById(UUID id) {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if (!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with id \" + id + \" is not available\");\n teamRepo.deleteById(id);\n }",
"@Test\r\n\tpublic void deleteTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamTeamplayerses \r\n\t\tInteger team_teamId_5 = 0;\r\n\t\tInteger related_teamplayerses_teamPlayersId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamTeamplayerses(team_teamId_5, related_teamplayerses_teamPlayersId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamTeamplayerses\r\n\t}",
"@DELETE\n public void delete() {\n PersistenceService persistenceSvc = PersistenceService.getInstance();\n try {\n persistenceSvc.beginTx();\n deleteEntity(getEntity());\n persistenceSvc.commitTx();\n } finally {\n persistenceSvc.close();\n }\n }",
"@Test\r\n\tpublic void deleteTeamProgram() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamProgram \r\n\t\tInteger team_teamId_3 = 0;\r\n\t\tInteger related_program_programId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamProgram(team_teamId_3, related_program_programId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamProgram\r\n\t}",
"public void delete(String teamID) {\n Team team = get(teamID);\n \n TeamDB tdb = new TeamDB();\n PlayerDB pdb = new PlayerDB();\n GameDB gdb = new GameDB();\n \n ArrayList<String> pids = new ArrayList<>();\n List<String> gids = new ArrayList<>();\n \n List<Player> playerList = team.getPlayerList(); \n \n for (Player p : playerList) \n pids.add(p.getPlayerID());\n \n for (String s : pids) \n pdb.delete(pdb.getByPlayerID(s));\n\n for (Game g : team.getGameList()) \n gids.add(g.getGameID());\n for (Game g : team.getGameList1())\n gids.add(g.getGameID());\n \n team.getGameList().clear();\n team.getGameList1().clear();\n \n for (String s : gids)\n gdb.delete(gdb.get(s));\n \n tdb.delete(team);\n }",
"@Override\n\tpublic void delete(ExperTypeVO expertypeVO) {\n\n\t}",
"@Override\n\tpublic void deleteCSStoreTicketMst(CSStoreTicketMst csStoreTicketMst) {\n\t\tcsStoreTicketMstDao.deleteCSStoreTicketMst(csStoreTicketMst);\n\t}",
"void deleteEntityById(Long id);",
"public void delete() throws EntityPersistenceException {\n\n }",
"@GetMapping(\"/deleteTeam/{id}\")\n public String deleteTeam(@Valid @PathVariable (value = \"id\") long id) {\n this.teamService.deleteTeamById(id);\n return \"redirect:/teamPage\";\n }",
"@Test\r\n\tpublic void deleteTeamGamesForHomeTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamGamesForHomeTeamFk \r\n\t\tInteger team_teamId_4 = 0;\r\n\t\tInteger related_gamesforhometeamfk_gameId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamGamesForHomeTeamFk(team_teamId_4, related_gamesforhometeamfk_gameId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamGamesForHomeTeamFk\r\n\t}",
"@Transactional\n public void delete(DevStudio devStudio) {\n // Clear bidirectional many-to-one child relationship with Publisher\n if (devStudio.getPublisher() != null) {\n devStudio.getPublisher().getDev_studios().remove(devStudio);\n }\n // Clear bidirectional one-to-many parent relationship with Developer\n for (Developer item : devStudio.getDevelopers()) {\n item.setDevstudio(null);\n }\n // Clear bidirectional one-to-many parent relationship with Game\n for (Game item : devStudio.getGames()) {\n item.setDevstudio(null);\n }\n getDevStudioRepository().delete(devStudio);\n }",
"void remove(Team team);",
"public void delete(Sale sale) {\n sale_dao.delete(sale);\n }",
"@Test\r\n\tpublic void deleteGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGame \r\n\t\tGame game_1 = new tsw.domain.Game();\r\n\t\tservice.deleteGame(game_1);\r\n\t}",
"public void delete(HrJBorrowcontract entity);",
"public void delete(CostEngineering costEngineering) {\n cost_engineering_dao.delete(costEngineering);\n }",
"public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }",
"public void deleteEntity(AnnexDetail entity) throws Exception {\n\t\t\n\t}",
"public <T> boolean delete(Class<T> entityClass, String id);",
"int deleteByExample(SmsEmployeeTeamExample example);",
"@Override\n public void delete(JavaStudyClub javaStudyClub) {\n entityManager.remove(javaStudyClub);\n }",
"public void delete(Shipping3VO vo) {\r\n\t\tentityManager.remove(vo);\r\n\t}",
"@Test\n public void deleteVisitaTest() {\n VisitaEntity entity = data.get(0);\n VisitaPersistence.delete(entity.getId());\n VisitaEntity deleted = em.find(VisitaEntity.class, entity.getId());\n Assert.assertNull(deleted);\n }",
"public void delete(EmployeeEntity entity){\n EmployeeDB.getInstance().delete(entity);\n }",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"public void delete(HrCStatitem entity);",
"@Override\r\n public void deleteEntity(String entityName) {\n\r\n }",
"void delete(int entityId);",
"public void delete(SecRole entity);",
"@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void eliminarEmpladoTest() {\n\t\tEmpleado ad = entityManager.find(Empleado.class, \"125\");\n\t\tAssert.assertNotNull(ad);\n\t\tentityManager.remove(ad);\n\t\tAssert.assertNull(\"No se ha eliminado\", entityManager.find(Administrador.class, \"125\"));\n\t}",
"@Test\n public void deleteEspecieTest() throws BusinessLogicException {\n EspecieEntity entity = especieData.get(1);\n System.out.println(entity.getId());\n System.out.println(entity.getRazas().size());\n especieLogic.deleteEspecie(entity.getId());\n EspecieEntity deleted = em.find(EspecieEntity.class, entity.getId());\n Assert.assertTrue(deleted.getDeleted());\n }",
"@Test\r\n\tpublic void deleteTeamLevel() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamLevel \r\n\t\tInteger team_teamId_7 = 0;\r\n\t\tInteger related_level_levelId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamLevel(team_teamId_7, related_level_levelId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamLevel\r\n\t}",
"@Override\n\tpublic void delete(CasUserOrg casUserOrg) {\n\t\tentityManager.remove(casUserOrg);\n\t}",
"@Test\r\n\tpublic void deleteTransformer() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\tTransformer tf = new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10); \r\n\t\ttf = tr.save(tf);\r\n\t\tint id=tf.getId();\r\n\t\t\r\n\t\tmockMvc.perform(delete(\"/transformers/\" + id ))\r\n\t\t\t\t.andExpect(status().isNoContent())\r\n\t\t\t\t;\r\n\t\t\r\n\t\tassertEquals( 0, tr.count());\r\n\t}",
"void deleteByOrgId(String csaOrgId);",
"public void delete( T obj) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\t\n\t\tsession.delete(obj);\n\t}",
"@Test\n public void deleteComentarioTest(){\n ComentarioEntity entity = data.get(0);\n comentarioPersistence.delete(entity.getId());\n ComentarioEntity eliminado = em.find(ComentarioEntity.class,entity.getId());\n Assert.assertNull(eliminado);\n }",
"public <T> boolean delete(T entity);",
"private void deleteFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 1); // Set remove mode\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"@Test\r\n public void deleteCarritoDeComprasTest() {\r\n System.out.println(\"d entra\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n carritoDeComprasPersistence.delete(entity.getId());\r\n CarritoDeComprasEntity deleted = em.find(CarritoDeComprasEntity.class, entity.getId());\r\n Assert.assertNull(deleted);\r\n System.out.println(\"d voy\"+data);\r\n }",
"public void deleteDefectEntity(Long id);",
"@Override\n\tpublic void delete(ERS_USERS entity) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.delete(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}",
"@Override\n public void delStudent(Student student)\n {\n sf.getCurrentSession().delete(student);\n }",
"@Override\n\tpublic void delete(Oglas oglas) {\n\t\trepository.delete(oglas);\n\t}",
"@Override\r\n\tpublic int delete(ProfitUserDomain t) {\n\t\treturn profitUserDAO.delete(t);\r\n\t}",
"@Override\n @Modifying\n @Query(value = \"delete from Dept where deptId = ?1\", nativeQuery = true)\n void deleteById(Long deptId);",
"@Override\r\n\tpublic void delete(int id) {\n\t\tstnLooseMtRepository.delete(id);\r\n\t\t}",
"@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}",
"@Delete({\n \"delete from soggetto_personale_scolastico\",\n \"where id_soggetto = #{idSoggetto,jdbcType=BIGINT}\"\n })\n int deleteByPrimaryKey(Long idSoggetto);",
"@Test\n\tpublic void testDelete() {\n\t\t\n\t\tLong id = 4L;\n\t\tString cpr = \"271190-0000\";\n\t\tint kr = 100;\n\t\tString dato = \"01-01-2001\";\n\t\tString type = \"type2\";\n\n\t\tYdelse y = new Ydelse(id, cpr, kr, dato, type);\n\t\t\n\t\tdoReturn(y).when(entityManager).getReference(y.getClass(), y.getId());\n\t\t\n\t\tydelseService.delete(y.getClass(), id);\n\t}",
"@DeleteProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"deleteBySpec\")\r\n int deleteBySpec(TCmSetChangeSiteStateSpec Spec);",
"@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }",
"public TAlgmntSalesTeam updateTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Update TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.update(tAlgmntSalesTeam);\n\t}",
"@Override\r\n\tpublic void delete(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().delete(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}",
"@Test\n\t public void testDeleteEntity(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t doAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).remove(entityManager.getReference(Users.class,\n\t\t\t \t \t\tuser.getLoginName()));\n\t\t\t\tuserDao.delete(user.getLoginName(),user);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing delete:.\",se);\n\t\t }\n\t }",
"@Test(expected = NotFoundException.class)\n public void testDeleteEntityFromGDC() {\n Transaction tx = graphDatabaseContext.beginTx();\n Person p = new Person(\"Michael\", 35);\n Person spouse = new Person(\"Tina\", 36);\n p.setSpouse(spouse);\n long id = spouse.getId();\n graphDatabaseContext.removeNodeEntity(spouse);\n tx.success();\n tx.finish();\n Assert.assertNull(\"spouse removed \" + p.getSpouse(), p.getSpouse());\n NodeFinder<Person> finder = finderFactory.createNodeEntityFinder(Person.class);\n Person spouseFromIndex = finder.findByPropertyValue(Person.NAME_INDEX, \"name\", \"Tina\");\n Assert.assertNull(\"spouse not found in index\",spouseFromIndex);\n Assert.assertNull(\"node deleted \" + id, graphDatabaseContext.getNodeById(id));\n }",
"void delete(Entity entity);",
"public Boolean deleteSM(StoreMovement sm){\n\t\tTblStoreMovement tblsm = new TblStoreMovement();\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tTransaction tx = null;\n\t\ttry{\n\t\t\ttblsm.convertToTable(sm);\n\t\t\ttx = session.beginTransaction();\n\t\t\tsession.delete(tblsm);\n\t\t\ttx.commit();\n\t\t}catch(HibernateException e){\n\t\t\tSystem.err.println(\"ERROR IN LIST!!!!!!\");\n\t\t\tif (tx!= null) tx.rollback();\n\t\t\te.printStackTrace();\n\t\t\tsession.close();\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"@Override\n @Transactional\n public void deletarLancamento(Lancamento lancamento) {\n\n Objects.requireNonNull(lancamento.getId());\n this.lancamentoRepository.delete(lancamento);\n }",
"void delete(Long shopId);",
"public void delete(FacultyBean bean) throws ApplicationException {\n\t\t\tConnection conn = null;\n\t\t\ttry {\n\n\t\t\t\tconn = JDBCDataSource.getConnection();\n\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\tPreparedStatement pstmt = conn.prepareStatement(\"DELETE FROM ST_FACULTY WHERE ID=?\");\n\t\t\t\tpstmt.setLong(1, bean.getId());\n\t\t\t\tpstmt.executeUpdate();\n\t\t\t\tconn.commit();\n\t\t\t} catch (Exception e) {\n\t\t\t//\tlog.error(\"DATABASE EXCEPTION \", e);\n\t\t\t\ttry {\n\t\t\t\t\tconn.rollback();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tthrow new ApplicationException(\"Exception in Faculty Model rollback\" + ex.getMessage());\n\t\t\t\t}\n\t\t\t\tthrow new ApplicationException(\"Exception in Faculty Model Delete Method\");\n\t\t\t} finally {\n\t\t\t\tJDBCDataSource.closeConnection(conn);\n\t\t\t}\n\t\t//\tlog.debug(\"Faculty Model delete method End\");\n\t\t}",
"public void delete(Employee employee){\n employeeRepository.delete(employee);\n }",
"@Override\n\tpublic int deleteObject(Evaluate entity) {\n\t\treturn evaluateMapper.deleteObject(entity);\n\t}",
"@Override\n public void deletar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n em.remove(em.merge(paciente));\n em.getTransaction().commit();\n em.close();\n factory.close();\n }",
"public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}",
"Boolean delete(T entity);",
"public void cmdRemoveTeam(User teller, Team team) {\n int playerCount = tournamentService.removeTeam(team);\n tournamentService.flush();\n if (playerCount < 0) {\n command.tell(teller, \"I''m not able to find {0} in the tournament.\", team);\n } else {\n command.tell(teller, \"Done. Team {0} is no longer in the tournament.\", team.getTeamCode());\n command.tell(teller, \"{0} players were also removed.\", playerCount);\n }\n }",
"public boolean del(Account entity) {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic int delete(CommonParamDomain t) {\n\t\treturn getPersistanceManager().delete(getNamespace() + \".delete\", t);\r\n\t}",
"public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Create TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.store(tAlgmntSalesTeam);\n\t}",
"@Override\n\tpublic void removeEntity(T t) {\n\t\tgetSession().delete(t);\n\t}",
"public void delete(T entity) throws Exception{\n\t\tem.remove(entity);\n\t}",
"@Test\n @DisplayName(\"Testataan tilausten poisto tietokannasta\")\n void deleteReservation() {\n TablesEntity table = new TablesEntity();\n table.setSeats(2);\n tablesDao.createTable(table);\n\n ReservationsEntity reservation = new ReservationsEntity(\"Antero\", \"10073819\", new Date(System.currentTimeMillis()), table.getId(), new Time(1000), new Time(2000));\n reservationsDao.createReservation(reservation);\n\n // Confirm that the reservation is in DB\n ReservationsEntity reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(reservation, reservationFromDb);\n\n // Delete reservation and confirm that it's not in the DB\n reservationsDao.deleteReservation(reservation);\n\n reservationFromDb = reservationsDao.getReservation(reservation.getId());\n assertEquals(null, reservationFromDb);\n\n }",
"public void delete(T entity) {\n\t\tsessionFactory.getCurrentSession().delete(entity);\n\t}",
"public void delete(CbmCItemFininceItem entity);",
"@Override\r\n\tpublic void deleteEntity(TypeModePaiement entity) {\n\t\trepository.deleteById(entity.getIdTypeMdp());\r\n\t}",
"@Test\r\n public void testDeleteBySportActivity() {\r\n SportActivity activity = new SportActivity();\r\n activity.setName(\"Test activity\");\r\n activityDao.createSportActivity(activity);\r\n assertNotNull(activityDao.findSportActivity(activity.getId()));\r\n\r\n ActivityRecord record1 = setActivityRecord();\r\n record1.setActivity(activity);\r\n recordDao.create(record1);\r\n assertNotNull(recordDao.findActivityRecord(record1.getId()));\r\n\r\n ActivityRecord record2 = setActivityRecord();\r\n record1.setActivity(activity);\r\n recordDao.create(record2);\r\n assertNotNull(recordDao.findActivityRecord(record2.getId()));\r\n\r\n recordDao.deleteRecordsBySportActivity(activity);\r\n // TODO lines\r\n assertTrue(recordDao.findRecordsBySportActivity(activity).isEmpty());\r\n }",
"@Test\r\n\tpublic void deleteTeamCustomerByManagerCustFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamCustomerByManagerCustFk \r\n\t\tInteger team_teamId_2 = 0;\r\n\t\tInteger related_customerbymanagercustfk_customerId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamCustomerByManagerCustFk(team_teamId_2, related_customerbymanagercustfk_customerId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamCustomerByManagerCustFk\r\n\t}",
"@Test\n void removeTest() {\n Admin anAdmin = new Admin();\n anAdmin.setEmail(\"g.gialli1@wlbadmin.it\");\n anAdmin.setName(\"Giovanni\");\n anAdmin.setSurname(\"Gialli\");\n anAdmin.setPassword(\"Ciao1234.\");\n\n try {\n entityManager = factor.createEntityManager();\n entityManager.getTransaction().begin();\n entityManager.persist(anAdmin);\n entityManager.getTransaction().commit();\n } finally {\n entityManager.close();\n }\n adminJpa.remove(anAdmin);\n assertThrows(NoResultException.class, () -> {\n adminJpa.retrieveByEmailPassword(\"g.gialli1@wlb.it\", \"Ciao1234.\");\n });\n }",
"public void deleteTraining(Training a) {\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.delete(a);\n tx.commit();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }",
"@Transactional\n\tpublic boolean deleteEntryTest(EntryTest entryTest) {\n\n\t\tgetSession().delete(entryTest);\n\t\treturn true;\n\t}",
"private void delete() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"delete from OldStudent where name='Michael'\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows Deleted in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\n\t}",
"int deleteByPrimaryKey(Integer tfId);",
"void delete(T obj) throws PersistException;",
"public void deleteTeam(ActionEvent actionEvent) {}"
] | [
"0.72767043",
"0.68566",
"0.6732738",
"0.65734684",
"0.646314",
"0.64043885",
"0.61667264",
"0.61574244",
"0.60917073",
"0.6038273",
"0.59781754",
"0.5968815",
"0.59579545",
"0.5925806",
"0.59161955",
"0.58984256",
"0.5895253",
"0.58596057",
"0.57880104",
"0.57860714",
"0.5781966",
"0.5766694",
"0.5762439",
"0.57594407",
"0.5737157",
"0.5736223",
"0.5734857",
"0.5702831",
"0.56988424",
"0.56810266",
"0.56741905",
"0.566676",
"0.5618896",
"0.5613587",
"0.5607711",
"0.56048",
"0.56014806",
"0.5600992",
"0.55768657",
"0.5572953",
"0.55654055",
"0.5557995",
"0.55476993",
"0.554186",
"0.55416673",
"0.55395484",
"0.5513303",
"0.5512826",
"0.550631",
"0.5491352",
"0.54774094",
"0.5472932",
"0.5469216",
"0.5464186",
"0.5456551",
"0.5449554",
"0.54478145",
"0.54458505",
"0.5443211",
"0.54419184",
"0.5437559",
"0.5430793",
"0.54303306",
"0.54301816",
"0.5428465",
"0.5426881",
"0.54155415",
"0.5414894",
"0.5408179",
"0.54080707",
"0.54045945",
"0.53981113",
"0.53958786",
"0.53868604",
"0.5382969",
"0.5379714",
"0.5378402",
"0.5377908",
"0.5373761",
"0.5361637",
"0.53614575",
"0.5356303",
"0.5355516",
"0.5352516",
"0.53369975",
"0.53363043",
"0.53346",
"0.5330226",
"0.53249156",
"0.53152376",
"0.5307964",
"0.5297453",
"0.52944696",
"0.529297",
"0.52921116",
"0.52908015",
"0.52891",
"0.5289081",
"0.5274591",
"0.527054"
] | 0.7545222 | 0 |
Updates a TAlgmntSalesTeam entity object in to the persistent store | public TAlgmntSalesTeam updateTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {
LOGGER.info("=========== Update TAlgmntSalesTeam ===========");
return genericDAO.update(tAlgmntSalesTeam);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Team update(TeamDTO teamForm) throws TeamNotFoundException;",
"int updateByPrimaryKey(SysTeam record);",
"public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Create TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.store(tAlgmntSalesTeam);\n\t}",
"@Test\r\n\tpublic void saveTeam() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeam \r\n\t\tTeam team = new wsdm.domain.Team();\r\n\t\tservice.saveTeam(team);\r\n\t}",
"@Override\n @Transactional\n public boolean updateTeam(Team team) {\n String sql = \"UPDATE Team SET teamname = ? WHERE teamid = ?\";\n return jdbc.update(sql, team.getName(), team.getId()) > 0;\n }",
"int updateByPrimaryKey(SmsEmployeeTeam record);",
"@Override\n\tpublic void updateTeam(ProjectTeamBean projectTeamBean) {\n\t\t\n\t}",
"private void save() {\n Saver.saveTeam(team);\n }",
"void update(Team team);",
"private static void updateRecords() {\n for (Team t: Main.getTeams()){\n //If the team already exists\n if (SqlUtil.doesTeamRecordExist(c,TABLE_NAME,t.getIntValue(Team.NUMBER_KEY))){\n //Update team record\n updateTeamRecord(t);\n } else {\n //Create a new row in database\n addNewTeam(t);\n\n }\n }\n\n }",
"int updateByPrimaryKeySelective(SysTeam record);",
"int updateByPrimaryKeySelective(SmsEmployeeTeam record);",
"@Override\r\n\tpublic ResultMessage updateTeam(TeamPO oneTeam) {\n\t\treturn teams.updateTeam(oneTeam);\r\n\t}",
"public TAlgmntSalesTeam findTAlgmntSalesTeamById(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"find TAlgmntSalesTeam instance with TAlgmntSalesTeamId: \" + tAlgmntSalesTeamId);\n\t\treturn genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t}",
"@Test\n @Transactional\n public void updateNonExistingTeam() throws Exception {\n int databaseSizeBeforeUpdate = teamRepository.findAll().size();\n\n // Create the Team\n TeamDTO teamDTO = teamMapper.toDto(team);\n\n // If the entity doesn't have an ID, it will be created instead of just\n // being updated\n restTeamMockMvc\n .perform(put(\"/api/teams\").contentType(TestUtil.APPLICATION_JSON_UTF8)\n .content(TestUtil.convertObjectToJsonBytes(teamDTO)))\n .andExpect(status().isCreated());\n\n // Validate the Team in the database\n List<Team> teamList = teamRepository.findAll();\n assertThat(teamList).hasSize(databaseSizeBeforeUpdate + 1);\n }",
"@Test\r\n\tpublic void saveTeamTswacct() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTswacct \r\n\t\tInteger teamId_3 = 0;\r\n\t\tTswacct related_tswacct = new wsdm.domain.Tswacct();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTswacct(teamId_3, related_tswacct);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTswacct\r\n\t}",
"@Override\n\tpublic void updateProjectTeam(ProjectTeamBean bean) {\n\t\t\n\t}",
"public void deleteTAlgmntSalesTeam(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"=========== Delete TAlgmntSalesTeam ===========\");\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t\tgenericDAO.remove(tAlgmntSalesTeam);\n\t}",
"public void updateTicketSales(int movieId, int sales) {\n\t\tfor (int i=0; i<getDataLength(); ++i) {\n\t\t\tif (this.dataList.get(i).getId()==movieId) {\n\t\t\t\tthis.dataList.get(i).updateTicketSales(sales);\n\t\t\t}\n\t\t}\n\t\tthis.save();\n\t}",
"@Test\n public void setTutor() {\n Employee em = employeeService.findById(5);\n System.out.println(\"=======\" + em.getName());\n Student student1 = studentService.findById(22);\n System.out.println(\"*********\" + student1.getName());\n student1.setTutor(em);\n studentService.update(student1);\n studentService.saveOrUpdate(student1);\n }",
"@Test\n public void toggleTeamStates() {\n Team team = new Team(\"Crvena Zvezda\");\n\n // TODO: open persistence context and create transaction\n\n // TODO: move team to managed state\n\n // TODO: assert that the team is managed (check if contained in session)\n\n // TODO: commit and close persistence context\n\n // TODO: fetch from DB as managed entity\n\n // TODO: assert entity is managed\n\n // TODO: remove entity from session and assert not managed\n\n // TODO: commit and close\n }",
"@Override\n\tpublic void update(EntityManagerFactory emf, Stop entity) {\n\t\t\n\t}",
"@Override\n\tpublic void update(EmpType entity) {\n\t\t\n\t}",
"@Override\n\tpublic void updateTeam(String name, SuperHuman superHuman) {\n\n\t}",
"public boolean updateTeam(Team t, int id) {\n\t\tboolean update = false;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tjava.sql.Date tDate = new java.sql.Date(t.getDateFoundation().getTime());\n\t\t\tString updateRecords_sql = \"UPDATE \" + team_table + \" SET name='\" + t.getName() + \"', coach='\"\n\t\t\t\t\t+ t.getCoach() + \"', city='\" + t.getCity() + \"', dateFoundation='\" + tDate + \"' WHERE id='\" + id\n\t\t\t\t\t+ \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(updateRecords_sql);\n\t\t\tstatement.executeUpdate();\n\t\t\tupdate = true;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn update;\n\t}",
"public void update(Sale sale) {\n sale_dao.update(sale);\n }",
"@Test\r\n\tpublic void update() throws Exception {\r\n\t\t\r\n\t\ttr.deleteAll();\r\n\t\tTransformer tf = new Transformer( null, \"Soundwave\", Team.DECEPTICON, 8, 9, 2, 6, 7, 5, 6, 10); \r\n\t\ttf = tr.save(tf);\r\n\t\tint id=tf.getId();\r\n\t\t\r\n\t\tString content = \"{\\r\\n\" + \r\n\t\t\t\t\" \\\"id\\\": 3,\\r\\n\" + \r\n\t\t\t\t\" \\\"name\\\": \\\"TF1\\\",\\r\\n\" + \r\n\t\t\t\t\" \\\"team\\\": \\\"DECEPTICON\\\",\\r\\n\" + \r\n\t\t\t\t\" \\\"strength\\\": 8,\\r\\n\" + \r\n\t\t\t\t\" \\\"intelligence\\\": 9,\\r\\n\" + \r\n\t\t\t\t\" \\\"speed\\\": 2,\\r\\n\" + \r\n\t\t\t\t\" \\\"endurance\\\": 6,\\r\\n\" + \r\n\t\t\t\t\" \\\"rank\\\": 7,\\r\\n\" + \r\n\t\t\t\t\" \\\"courage\\\": 5,\\r\\n\" + \r\n\t\t\t\t\" \\\"firepower\\\": 6,\\r\\n\" + \r\n\t\t\t\t\" \\\"skill\\\": 1\\r\\n\" + \r\n\t\t\t\t\"}\";\r\n\t\t\r\n\t\tmockMvc.perform(put(\"/transformers/\" + id ).contentType(MediaType.APPLICATION_JSON).content(content.getBytes(\"UTF-8\")))\r\n\t\t\t\t.andExpect(status().isCreated())\r\n\t\t\t\t.andExpect(content().contentTypeCompatibleWith(\"application/json\"))\r\n\t\t\t\t;\r\n\t\t\r\n\t\tTransformer res = tr.findById(id).get();\r\n\t\tassertEquals( \"TF1\", res.getName());\r\n\t\tassertEquals( 1, res.getSkill());\r\n\t\t\r\n\t}",
"@Override\n public void updateTeam(Id teamId, Team updatedTeam) throws AlfredException {\n this.teamList.update(teamId, updatedTeam);\n }",
"public void updateUserTeam() {\n\t\tUser user = users.get(userTurn);\n\t\tSystem.out.println(user.getName());\n\t\tSystem.out.println(tmpTeam.size());\n\t\tUserTeam roundTeam = new UserTeam();\n\t\troundTeam.putAll(tmpTeam.getPlayers());\n\t\tSystem.out.println(roundNumber);\n\t\tSystem.out.println(roundTeam.size());\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\tuser.setUserTeam(roundTeam, roundNumber);\n\t\tSystem.out.println(\"dfdfdfd\");\n\t\ttmpTeam = new UserTeam();\n\t}",
"public void insertTeam(Team t) {\n\t\tEntityManager em = emfactory.createEntityManager();\n\t\tem.getTransaction().begin();\n\t\tem.persist(t);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t}",
"@Override\r\n public void updateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }",
"@Test\r\n\tpublic void saveTeamTeamplayerses() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamTeamplayerses \r\n\t\tInteger teamId_7 = 0;\r\n\t\tTeamplayers related_teamplayerses = new wsdm.domain.Teamplayers();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamTeamplayerses(teamId_7, related_teamplayerses);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamTeamplayerses\r\n\t}",
"void update(Student entity);",
"public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}",
"public Teams updateTeamById(UUID id,Teams teams)\n {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if (!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with id \" + id + \" is not available\");\n teams.setTeamId(id);\n return teamRepo.save(teams);\n }",
"@Override\n\tpublic TeamInfo saveOrUpdate(TeamInfo teamInfo) {\n\t\treturn repository.save(teamInfo);\n\t}",
"public void updateTraining(Training t) {\n\n //the new User's id\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n //build relationship\n\n\n session.saveOrUpdate(t);\n tx.commit();\n\n id = t.getTrainingId();\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }",
"@Override\r\n\tpublic int updateMarket(MarketDto dto) {\n\t\treturn session.update(\"kdc.market.updateMarket\", dto);\r\n\t}",
"public PtJJdwcy update(PtJJdwcy entity);",
"@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}",
"@Override\n\tpublic void updateTicketsTourDetail(TicketsTourDetail ticketsTourDetail) {\n\t\tthis.entityManager.merge(ticketsTourDetail);\n\t}",
"public void update(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t\t\n\t}",
"public void updateEntity();",
"@Override\r\n\tpublic boolean updateScheduledFlights(ScheduledFlights sflight) {\r\n\t\tentityManager.getTransaction().begin();\r\n\t\tentityManager.merge(sflight);\r\n\t\tentityManager.getTransaction().commit();\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void update(ERS_USERS entity) {\n\t\t\n\t}",
"@PostMapping(path=\"/add/{id}/team\")\n public @ResponseBody Object assignTeamMember(@PathVariable long id, @RequestParam Team team){\n TeamMember tm = teamMemberRepository.getOne(id);\n tm.setTeam(team); // Retrieving the list of team members and adding new team member\n return teamMemberRepository.saveAndFlush(tm);\n }",
"void update(Seller obj);",
"void update(Seller obj);",
"public void update(T obj) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t}",
"@Test\r\n\tpublic void saveTeamGamesForVisitorTeamFk() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamGamesForVisitorTeamFk \r\n\t\tInteger teamId_4 = 0;\r\n\t\tGame related_gamesforvisitorteamfk = new wsdm.domain.Game();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamGamesForVisitorTeamFk(teamId_4, related_gamesforvisitorteamfk);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamGamesForVisitorTeamFk\r\n\t}",
"@Override\n\tpublic void updateEntity(T t) {\n\t\tgetSession().update(t);\n\t}",
"@Test\n public void testUpdateVehicleSold() {\n //Arrange\n Vehicle vehicle = new Vehicle();\n Model model = new Model();\n Make make = new Make();\n \n make.setMakeName(\"Ford\");\n \n Make createdMake = makeDao.addMake(make);\n \n model.setModelName(\"Explorer\");\n model.setMake(createdMake);\n \n Model createdModel = modelDao.addModel(model);\n \n vehicle.setYear(2018);\n vehicle.setTransmission(\"Automatic\");\n vehicle.setMileage(1000);\n vehicle.setColor(\"Blue\");\n vehicle.setInterior(\"Leather\");\n vehicle.setBodyType(\"SUV\");\n vehicle.setVin(\"W9D81KQ93N8Z0KS7\");\n vehicle.setSalesPrice(new BigDecimal(\"35000.00\"));\n vehicle.setMsrp(new BigDecimal(\"40000.00\"));\n vehicle.setDescription(\"A practical vehicle\");\n vehicle.setPicURL(\"http://www.sampleurl.com/samplepic\");\n vehicle.setModel(createdModel);\n\n Vehicle createdVehicle = vehicleDao.addVehicle(vehicle);\n\n createdVehicle.setSalesPrice(new BigDecimal (\"30000.00\"));\n createdVehicle.setInStock(false);\n \n //Act \n vehicleDao.updateVehicle(createdVehicle);\n \n //Assert\n Vehicle fetchedVehicle = vehicleDao.getVehicleById(createdVehicle.getVehicleId());\n \n assertEquals(vehicle.getSalesPrice(), fetchedVehicle.getSalesPrice());\n assertFalse(fetchedVehicle.isInStock());\n \n }",
"@Test\n public void updateVisitaTest() {\n VisitaEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity newEntity = factory.manufacturePojo(VisitaEntity.class);\n newEntity.setId(entity.getId());\n\n VisitaPersistence.update(newEntity);\n\n VisitaEntity resp = em.find(VisitaEntity.class, entity.getId());\n\n Assert.assertEquals(newEntity.getId(), resp.getId());\n Assert.assertArrayEquals(newEntity.getFotos().toArray(), resp.getFotos().toArray());\n Assert.assertEquals(newEntity.getOferta(), resp.getOferta());\n Assert.assertEquals(newEntity.getUsuario(), resp.getUsuario());\n Assert.assertEquals(newEntity.getComentario(), resp.getComentario());\n Assert.assertEquals(newEntity.getCalificacion(), resp.getCalificacion());\n }",
"public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }",
"@Override\n @Transactional\n public Team addTeam(Team team) {\n KeyHolder keyHolder = new GeneratedKeyHolder();\n String sql = \"INSERT INTO Team (teamname, userid) VALUES (?, ?)\";\n\n jdbc.update((Connection connection) -> {\n PreparedStatement prep = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n prep.setString(1, team.getName());\n prep.setInt(2, team.getUser().getId());\n return prep;\n }, keyHolder);\n team.setId(keyHolder.getKey().intValue());\n return team;\n }",
"@Override\n\tpublic void update(Users entity) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n \tsession.save(entity);\n\t}",
"@Override\n\tpublic Trainee updateTrainee(Trainee t) {\n\t\tTrainee a=em.find(Trainee.class,t.getId());\n\t\tif(a!=null) {\n\t\t\ta.setName(t.getName());\n\t\t\ta.setLocation(t.getLocation());\n\t\t\ta.setDomain(t.getDomain());\n\t\t}\n\t\treturn a;\n\t}",
"int updateByExample(@Param(\"record\") SmsEmployeeTeam record, @Param(\"example\") SmsEmployeeTeamExample example);",
"@Override\n\tpublic void update(Factura t) {\n\t\tfacturaRepository.save(t);\n\t\t\n\t}",
"void addMyTeam(Team team) throws HasTeamAlreadyException;",
"@Override\r\n\t@Transactional\r\n\tpublic FmtEstado update(FmtEstado fmtestado){\r\n\t\tgetSession().update(fmtestado);\r\n\t\treturn fmtestado;\r\n\t}",
"public void testUpdate() throws Exception {\n EntityManager manager = this.getEntityManager();\n EntityTransaction transaction = manager.getTransaction();\n\n if (transaction.isActive() == false) {\n transaction.begin();\n }\n\n Technology t = new Technology();\n t.setDescription(\"tech\");\n t.setName(\"name1\");\n t.setStatus(Status.ACTIVE);\n\n manager.persist(t);\n transaction.commit();\n\n t.setDescription(\"upate tech\");\n t.setName(\"name2\");\n t.setStatus(Status.APPROVED);\n\n Technology ret = manager.find(Technology.class, t.getId());\n assertEquals(\"Equal is expected.\", \"upate tech\", ret.getDescription());\n assertEquals(\"Equal is expected.\", \"name2\", ret.getName());\n assertEquals(\"Equal is expected.\", Status.APPROVED, ret.getStatus());\n }",
"public void update(SmsAgendaGrupoPk pk, SmsAgendaGrupo dto) throws SmsAgendaGrupoDaoException;",
"@Transactional\n public void updateArtListing(ArtListing al) {\n entityManager.merge(al);\n }",
"public void update(CostEngineering costEngineering) {\n cost_engineering_dao.update(costEngineering);\n }",
"public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}",
"@Test\n public void testUpdateOrg() {\n Organization org = new Organization();\n org.setOrgId(1);\n org.setOrgName(\"Avenger\");\n org.setDescription(\"blah blah\");\n org.setAddress(ad);\n dao.addOrg(org);\n org.setOrgName(\"X-Men\");\n assertNotEquals(org, dao.getOrg(org.getOrgId()));\n Organization fromDao = dao.updateOrg(org);\n assertEquals(org, fromDao);\n }",
"@Override\n\tpublic void update(MarketSpreadManagerDo marketSpreadManagerDo) {\n\t\tMarketSpreadManager marketSpreadManager = new MarketSpreadManager();\n\t\tBeanUtils.copyProperties(marketSpreadManagerDo,marketSpreadManager);\n\t\tmarketSpreadManagerExtendMapper.updateByPrimaryKeyWithBLOBs(marketSpreadManager);\n\t}",
"public void update(Employee employee){\n employeeRepository.save(employee);\n }",
"@Update\n void update(UsersEntity usersEntity);",
"public void updateAccountingSystem(Sale sale)\n {\n \n }",
"@Override\r\n\tpublic void update(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().update(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}",
"public void update(String teamID, String teamName, League league, List<Player> playerList, List<Game> gameList, List<Game> gameList1) {\n TeamDB tdb = new TeamDB();\n Team team = get(teamID);\n \n League oldLeague = team.getLeagueID();\n if (!oldLeague.getLeagueID().equals(league.getLeagueID())) {\n oldLeague.getTeamList().remove(team);\n LeagueDB ldb = new LeagueDB();\n ldb.update(oldLeague);\n }\n \n team.setTeamName(teamName);\n team.setPlayerList(playerList);\n team.setLeagueID(league);\n tdb.update(team);\n }",
"public void updateAirForceTeam(Collection<Unit> airunits) {\n\t\t\n\t\t// remove airunit of invalid team \n\t\tList<Integer> invalidUnitIds = new ArrayList<>();\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (!UnitUtils.isCompleteValidUnit(airunit)) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t} else if (airForceTeamMap.get(airunitId).leaderUnit == null) {\n\t\t\t\tinvalidUnitIds.add(airunitId);\n\t\t\t}\n\t\t}\n\t\tfor (Integer invalidUnitId : invalidUnitIds) {\n\t\t\tairForceTeamMap.remove(invalidUnitId);\n\t\t}\n\t\t\n\t\t// new team\n\t\tfor (Unit airunit : airunits) {\n\t\t\tAirForceTeam teamOfAirunit = airForceTeamMap.get(airunit.getID());\n\t\t\tif (teamOfAirunit == null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), new AirForceTeam(airunit));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 리더의 위치를 비교하여 합칠 그룹인지 체크한다.\n\t\t// - 클로킹모드 상태가 다른 그룹은 합치지 않는다.\n\t\t// - 수리 상태의 그룹은 합치지 않는다.\n\t\tList<AirForceTeam> airForceTeamList = new ArrayList<>(new HashSet<>(airForceTeamMap.values()));\n\t\tMap<Integer, Integer> airForceTeamMergeMap = new HashMap<>(); // key:merge될 그룹 leaderID, value:merge할 그룹 leaderID\n\t\t\n\t\tint mergeDistance = AIR_FORCE_TEAM_MERGE_DISTANCE;\n\t\tif (InfoUtils.enemyRace() == Race.Terran) {\n\t\t\tmergeDistance += 120;\n\t\t}\n\t\tfor (int i = 0; i < airForceTeamList.size(); i++) {\n\t\t\tAirForceTeam airForceTeam = airForceTeamList.get(i);\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tboolean cloakingMode = airForceTeam.cloakingMode;\n\t\t\tfor (int j = i + 1; j < airForceTeamList.size(); j++) {\n\t\t\t\tAirForceTeam compareForceUnit = airForceTeamList.get(j);\n\t\t\t\tif (compareForceUnit.repairCenter != null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (cloakingMode != compareForceUnit.cloakingMode) { // 클로킹상태가 다른 레이쓰부대는 합쳐질 수 없다.\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tUnit airForceLeader = airForceTeam.leaderUnit;\n\t\t\t\tUnit compareForceLeader = compareForceUnit.leaderUnit;\n\t\t\t\tif (airForceLeader.getID() == compareForceLeader.getID()) {\n//\t\t\t\t\tSystem.out.println(\"no sense. the same id = \" + airForceLeader.getID());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (airForceLeader.getDistance(compareForceLeader) <= mergeDistance) {\n\t\t\t\t\tairForceTeamMergeMap.put(compareForceLeader.getID(), airForceLeader.getID());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// 합쳐지는 에어포스팀의 airForceTeamMap을 재설정한다.\n\t\tfor (Unit airunit : airunits) {\n\t\t\tInteger fromForceUnitLeaderId = airForceTeamMap.get(airunit.getID()).leaderUnit.getID();\n\t\t\tInteger toForceUnitLeaderId = airForceTeamMergeMap.get(fromForceUnitLeaderId);\n\t\t\tif (toForceUnitLeaderId != null) {\n\t\t\t\tairForceTeamMap.put(airunit.getID(), airForceTeamMap.get(toForceUnitLeaderId));\n\t\t\t}\n\t\t}\n\t\t\n\t\t// team 멤버 세팅\n\t\tSet<AirForceTeam> airForceTeamSet = new HashSet<>(airForceTeamMap.values());\n\t\tfor (AirForceTeam airForceTeam : airForceTeamSet) {\n\t\t\tairForceTeam.memberList.clear();\n\t\t}\n\t\t\n\t\tList<Integer> needRepairAirunitList = new ArrayList<>(); // 치료가 필요한 유닛\n\t\tMap<Integer, Unit> airunitRepairCenterMap = new HashMap<>(); // 치료받을 커맨드센터\n\t\tList<Integer> uncloakedAirunitList = new ArrayList<>(); // 언클락 유닛\n\t\t\n\t\tfor (Integer airunitId : airForceTeamMap.keySet()) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tif (airunit.getHitPoints() <= 50) { // repair hit points\n\t\t\t\tAirForceTeam repairTeam = airForceTeamMap.get(airunitId);\n\t\t\t\tif (repairTeam == null || repairTeam.repairCenter == null) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airunit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tneedRepairAirunitList.add(airunitId);\n\t\t\t\t\t\tairunitRepairCenterMap.put(airunitId, repairCenter);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tAirForceTeam airForceTeam = airForceTeamMap.get(airunit.getID());\n\t\t\tif (airForceTeam.cloakingMode && (airunit.getType() != UnitType.Terran_Wraith || airunit.getEnergy() < 15)) {\n\t\t\t\tuncloakedAirunitList.add(airunitId);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tairForceTeam.memberList.add(airunit);\n\t\t}\n\t\t\n\t\t// create separated team for no energy airunit\n\t\tfor (Integer airunitId : uncloakedAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam uncloackedForceTeam = new AirForceTeam(airunit);\n\t\t\tuncloackedForceTeam.memberList.add(airunit);\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, uncloackedForceTeam);\n\t\t}\n\t\t\n\t\t// create repair airforce team\n\t\tfor (Integer airunitId : needRepairAirunitList) {\n\t\t\tUnit airunit = MyBotModule.Broodwar.getUnit(airunitId);\n\t\t\tAirForceTeam needRepairTeam = new AirForceTeam(airunit);\n\t\t\tneedRepairTeam.memberList.add(airunit);\n\t\t\tneedRepairTeam.repairCenter = airunitRepairCenterMap.get(airunit.getID());\n\t\t\t\n\t\t\tairForceTeamMap.put(airunitId, needRepairTeam);\n\t\t}\n\t\t\n\t\t// etc (changing leader, finishing repair, achievement) \n\t\tSet<AirForceTeam> reorganizedSet = new HashSet<>(airForceTeamMap.values());\n\t\tachievementEffectiveFrame = 0;\n\t\tfor (AirForceTeam airForceTeam : reorganizedSet) {\n\t\t\t// leader 교체\n\t\t\tUnit newLeader = UnitUtils.getClosestUnitToPosition(airForceTeam.memberList, airForceTeam.getTargetPosition());\n\t\t\tairForceTeam.leaderUnit = newLeader;\n\t\t\t\n\t\t\t// repair 완료처리\n\t\t\tif (airForceTeam.repairCenter != null) {\n\t\t\t\tif (!UnitUtils.isValidUnit(airForceTeam.repairCenter) || WorkerManager.Instance().getWorkerData().getNumAssignedWorkers(airForceTeam.repairCenter) < 3) {\n\t\t\t\t\tUnit repairCenter = UnitUtils.getClosestActivatedCommandCenter(airForceTeam.leaderUnit.getPosition());\n\t\t\t\t\tif (repairCenter != null) {\n\t\t\t\t\t\tairForceTeam.repairCenter = repairCenter;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tboolean repairComplete = true;\n\t\t\t\tfor (Unit airunit : airForceTeam.memberList) {\n\t\t\t\t\tif (airunit.getHitPoints() < airunit.getType().maxHitPoints() * 0.95) { // repair complete hit points\n\t\t\t\t\t\trepairComplete = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (repairComplete) {\n\t\t\t\t\tairForceTeam.repairCenter = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// achievement\n\t\t\tint achievement = airForceTeam.achievement();\n\t\t\taccumulatedAchievement += achievement;\n\t\t\tachievementEffectiveFrame = achievementEffectiveFrame + airForceTeam.killedEffectiveFrame * 100 - airForceTeam.damagedEffectiveFrame;\n\t\t}\n\t}",
"E update(E entiry);",
"@Test\n public void update() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(1, 0, 6, \"GUI\");\n Student s2 = new Student(1,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(1, 1, \"prof\", 10, \"Irelevant\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repo.update(s2);\n repot.update(t2);\n repon.update(n2);\n assert repo.findOne(1).getGrupa()==221;\n assert repot.findOne(1).getDeadline()==8;\n assert repon.findOne(\"11\").getFeedback()==\"Irelevant\";\n\n }\n catch (ValidationException e){\n }\n }",
"@Test\r\n public void testUpdate() throws Exception {\r\n MonitoriaEntity entity = data.get(0);\r\n PodamFactory pf = new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity = pf.manufacturePojo(MonitoriaEntity.class);\r\n nuevaEntity.setId(entity.getId());\r\n persistence.update(nuevaEntity);\r\n// Assert.assertEquals(nuevaEntity.getName(), resp.getName());\r\n }",
"void update(T obj) throws PersistException;",
"@Test(dependsOnMethods = {\"testAddTeam\"})\n\tpublic void testUpdateTeam() {\n\t}",
"private static void updateTeamRecord(Team t) {\n ArrayList<Object> records = new ArrayList<>();\n //Get existing team data\n ResultSet teamSet = SqlUtil.getTeamRecord(c, TABLE_NAME, t.getIntValue(Team.NUMBER_KEY));\n try {\n ArrayList<String> matches;\n if (teamSet != null) {\n matches = new ArrayList<>(Arrays.asList(SqlUtil.getArrayFromString(teamSet.getString(\"match_nums\"))));\n } else {\n Main.sendError(\"Cannoy read team data: \" + t.getValue(Team.NUMBER_KEY),false);\n return;\n }\n for (String m: matches) {\n //If the match number already exists\n System.out.println(m);\n if (t.getStringValue(Team.MATCH_KEY).equalsIgnoreCase(m.trim())) {\n return;\n }\n }\n records.add(t.getIntValue(Team.NUMBER_KEY));\n records.add(t.getValue(Team.COLOR_KEY));\n records.add(1+teamSet.getInt(\"num_matches\"));\n matches.add(t.getStringValue(Team.MATCH_KEY));\n records.add(matches.toArray(new String[matches.size()]));\n for(Element e: Main.getElements()){\n switch (e.getType()){\n\n case SEGMENTED_CONTROL:\n for (int i = 0; i<e.getArguments().length;i++){\n if (t.getStringValue(e.getKeys()[0]).equalsIgnoreCase(e.getArguments()[i])){\n records.add(1+teamSet.getInt(e.getColumnValues()[i]));\n } else {\n records.add(teamSet.getInt(e.getColumnValues()[i]));\n }\n }\n break;\n case TEXTFIELD:\n if (e.getArguments()[0].equalsIgnoreCase(\"number\")) {\n records.add(t.getIntValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n\n } else if (e.getArguments()[0].equalsIgnoreCase(\"decimal\")){\n records.add(t.getDoubleValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n }\n break;\n case STEPPER:\n records.add(t.getIntValue(e.getKeys()[0]) + teamSet.getInt(e.getColumnValues()[0]));\n break;\n case LABEL:\n break;\n case SWITCH:\n for (int i = 0; i<e.getKeys().length;i++){\n if (t.getStringValue(e.getKeys()[i]).equalsIgnoreCase(\"yes\")){\n records.add(1 + teamSet.getInt(e.getColumnValues()[i*2]));\n records.add(teamSet.getInt(e.getColumnValues()[i*2+1]));\n } else {\n records.add(teamSet.getInt(e.getColumnValues()[i*2]));\n records.add(1 + teamSet.getInt(e.getColumnValues()[i*2+1]));\n }\n }\n break;\n case SPACE:\n break;\n case SLIDER:\n records.add(t.getDoubleValue(e.getKeys()[0]) + teamSet.getDouble(e.getColumnValues()[0]));\n break;\n }\n }\n double total = 0.0;\n\n for (Equation e: Main.getEquations()){\n double value = e.evaluate(t) + teamSet.getDouble(e.getColumnValue());\n records.add(value);\n total +=value;\n }\n\n records.add(total);\n\n SqlUtil.updateTeamRecord(c,TABLE_NAME, records.toArray(new Object[records.size()]),t.getStringValue(Team.NUMBER_KEY));\n\n } catch (SQLException e) {\n Main.sendError(\"Problem updating team records\", false, e);\n } catch (NullPointerException e){\n Main.sendError(\"Cannot read team data for team \" + t.getValue(Team.NUMBER_KEY),false,e);\n }\n }",
"boolean updateTicket(Ticket ticket, boolean createdByMe, boolean assignedToMe, boolean managedByMe);",
"Team findById(Long id);",
"int updateByExampleSelective(@Param(\"record\") SmsEmployeeTeam record, @Param(\"example\") SmsEmployeeTeamExample example);",
"@Override\n\tpublic void update(Seller obj) {\n\t\tPreparedStatement pst = null;\n\t\ttry {\n\t\t\tpst = conn.prepareStatement(\n\t\t\t\t\t\"UPDATE seller\\r\\n\"+\n\t\t\t\t\t\"SET Name = ?, Email = ?, BirthDate = ?, BaseSalary = ?, DepartmentId = ?\\r\\n\" +\n\t\t\t\t\t\"WHERE Id = ?;\");\n\t\t\tpst.setString(1, obj.getName());\n\t\t\tpst.setString(2, obj.getEmail());\n\t\t\tpst.setDate(3, new java.sql.Date(obj.getBirthDate().getTime()));\n\t\t\tpst.setDouble(4, obj.getBaseSalary());\n\t\t\tpst.setInt(5, obj.getDepartment().getId());\n\t\t\tpst.setInt(6, obj.getId());\n\t\t\tpst.executeUpdate();\n\t\t}catch(SQLException e) {\n\t\t\tthrow new DbException(e.getMessage());\n\t\t}finally {\n\t\t\tDb.closeStatement(pst);\n\t\t}\n\t}",
"public TSalesPosAttr updateTSalesPosAttr(final TSalesPosAttr tSalesPosAttr) {\n\t\tLOGGER.info(\"=========== Update TSalesPosAttr ===========\");\n\t\treturn genericDAO.update(tSalesPosAttr);\n\t}",
"int updateByPrimaryKey(R_dept_trade record);",
"@Override\r\n\tpublic void updateEmployee(Employee t) {\n\t\t\r\n\t}",
"@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Festivity object = new Festivity();\r\n object.setStart(Calendar.getInstance().getTime());\r\n object.setEnd(Calendar.getInstance().getTime());\r\n object.setName(\"Test Fest 2\");\r\n object.setPlace(\"Howards\");\r\n boolean expResult = true;\r\n boolean result = Database.update(object);\r\n assertEquals(expResult, result);\r\n \r\n }",
"public void update(LearningResultHasActivityPk pk, LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;",
"public void setTeam(String team) {\n\t\tthis.team = team;\n\t}",
"public void update(EvaluationsDegreePk pk, EvaluationsDegree dto) throws EvaluationsDegreeDaoException;",
"public void setTeams(Collection<Team> teams) {\r\n this.teams = teams;\r\n }",
"SysTeam selectByPrimaryKey(Integer teamId);",
"@Override\n\tpublic void update(DeptVO deptVO) {\n\t\t\n\t}",
"@Test\n\t public void testUpdate(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t\twhen(entityManager.merge(user)).thenReturn(BaseData.getDBUsers());\n\t\t\t\tUsers savedUser = userDao.update(user);\n\t\t\t\tassertNotNull(savedUser);\n\t\t\t\tassertTrue(savedUser.getFirstName().equals(\"MerchandisingUI\"));\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing update:.\",se);\n\t\t }\n\t }",
"@Override\r\n\tpublic void save(StnLooseMt stnLooseMt) {\n\t\tstnLooseMtRepository.save(stnLooseMt);\r\n\t}",
"@Test\n public void updateEspecieTest() {\n EspecieEntity entity = especieData.get(0);\n EspecieEntity pojoEntity = factory.manufacturePojo(EspecieEntity.class);\n pojoEntity.setId(entity.getId());\n especieLogic.updateSpecies(pojoEntity.getId(), pojoEntity);\n EspecieEntity resp = em.find(EspecieEntity.class, entity.getId());\n Assert.assertEquals(pojoEntity.getId(), resp.getId());\n Assert.assertEquals(pojoEntity.getNombre(), resp.getNombre());\n }",
"@Override\n @Transactional\n public void update(Surname changedSurname) {\n \n }",
"void update(CE entity);",
"@Override\r\n\tpublic int update(ProfitUserDomain t) {\n\t\treturn profitUserDAO.update(t);\r\n\t}"
] | [
"0.65250665",
"0.64607406",
"0.64230305",
"0.6274574",
"0.6235378",
"0.61947465",
"0.61331916",
"0.6049645",
"0.60003144",
"0.59916276",
"0.5939011",
"0.59361434",
"0.5928978",
"0.58940756",
"0.585529",
"0.58064985",
"0.56924254",
"0.56505185",
"0.5648314",
"0.5609916",
"0.5602345",
"0.55856526",
"0.55798566",
"0.5570215",
"0.55506235",
"0.55353224",
"0.5518932",
"0.55149347",
"0.549977",
"0.54945487",
"0.5485667",
"0.5482866",
"0.54707134",
"0.54706585",
"0.54604435",
"0.543239",
"0.54001945",
"0.5400175",
"0.53987634",
"0.5392024",
"0.5389709",
"0.53879815",
"0.53855675",
"0.53726405",
"0.5365316",
"0.5355947",
"0.53403836",
"0.53403836",
"0.5337117",
"0.5324679",
"0.5317422",
"0.53160954",
"0.53020835",
"0.5296227",
"0.52942944",
"0.52768505",
"0.52416056",
"0.52399915",
"0.52378786",
"0.5220921",
"0.52174467",
"0.521243",
"0.52086115",
"0.5193724",
"0.5187219",
"0.5183907",
"0.5183899",
"0.51831543",
"0.5163681",
"0.51577103",
"0.51553106",
"0.5154826",
"0.51462024",
"0.5146025",
"0.5143591",
"0.514088",
"0.51402515",
"0.5139361",
"0.51366425",
"0.513597",
"0.5122508",
"0.51215374",
"0.5117856",
"0.5114295",
"0.51136893",
"0.5102481",
"0.50973254",
"0.5095417",
"0.50932705",
"0.508951",
"0.5089505",
"0.5088853",
"0.5082802",
"0.5081623",
"0.50783324",
"0.507076",
"0.50700015",
"0.50696385",
"0.5067203",
"0.50617814"
] | 0.7867232 | 0 |
Retrieve an TAlgmntSalesTeam object based on given TAlgmntSalesTeam TAlgmntSalesTeamId. | public TAlgmntSalesTeam findTAlgmntSalesTeamById(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {
LOGGER.info("find TAlgmntSalesTeam instance with TAlgmntSalesTeamId: " + tAlgmntSalesTeamId);
return genericDAO.get(clazz, tAlgmntSalesTeamId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VwTeams get(int teamId)\n\t{\n\t\tVwTeams [] results = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tresults = dao.findWhereTeamIdEquals(teamId);\t\t\t\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results.length == 0 ? null : results[0];\n\t}",
"public TAlgmntSalesTeam updateTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Update TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.update(tAlgmntSalesTeam);\n\t}",
"public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Create TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.store(tAlgmntSalesTeam);\n\t}",
"public void deleteTAlgmntSalesTeam(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"=========== Delete TAlgmntSalesTeam ===========\");\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t\tgenericDAO.remove(tAlgmntSalesTeam);\n\t}",
"public Team get(Long id);",
"SysTeam selectByPrimaryKey(Integer teamId);",
"public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\ttSalesTeamList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTSalesTeam\", tSalesTeamList, index, maxresult);\n\t}",
"public List<TAlgmntSalesTeam> findTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Find TAlgmntSalesTeams ===========\");\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\t\t//int maxresult = 3;\n\t\t//int index=0;\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\n\t\tfinal JPAQuery jpaQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\t\tjpaQuery.setJPAql(JPAQL);\n\t\tjpaQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaQuery.setLogicalOperatorEnum(logOpEnum);\n\t\treturn genericDAO.findEntities(jpaQuery, index, maxresult);\n\t}",
"public Teams getTeamById(UUID id)\n {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if(!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with \" + id + \" is not available\");\n return teamRepo.findById(id).get();\n }",
"Team findById(Long id);",
"public Team get(String teamID) {\n TeamDB tdb = new TeamDB();\n return tdb.get(teamID);\n }",
"@Override\n public Team getTeamById(int id){\n try {\n String sql = \"SELECT * FROM Team WHERE Team.teamid = ?\";\n Team team = jdbc.queryForObject(sql, new TeamMapper(), id);\n team.setUser(getUserFromTeam(team));\n return team;\n }catch(DataAccessException ex){\n return null;\n }\n }",
"private static Team getTeam(Connection con,Long teamId) {\n\n Team team = null;\n\n String query = SQLConstants.GET_TEAM_BY_TEAM_ID;\n\n try {\n team = new Team();\n //Connection con = JdbcConnection.getConnection();\n PreparedStatement pstmt = con.prepareStatement(query);\n pstmt.setLong(1, teamId);\n\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n team.setId(rs.getLong(\"id\"));\n team.setName(rs.getString(\"name\"));\n team.setDescribe(rs.getString(\"describe\"));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return team;\n\n }",
"SmsEmployeeTeam selectByPrimaryKey(String id);",
"public static Team getTeam(long id) {\n return find().where().eq(\"id\", id).findUnique();\n }",
"public List<TicketSite> getTicketSitesOfATeam(String teamId);",
"public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tList<Object> tAlgmntList = new ArrayList<Object>();\n\t\ttAlgmntList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTAlgmnt\", tAlgmntList, index, maxresult);\n\t}",
"public static Team findById(int id) throws DALException {\n\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tTeam team = new Team();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(SEARCH_ID_TEAM);\n\t\t\t\tpstmt.setInt(1, id);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\tif (rs.next()) {\n\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"idTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"name\"));\n\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new DALException(\"Problem - search teams By Id - TeamDAO - Request :\"+ pstmt+ \" Team: \" + team + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn team;\n\n\t\t}",
"public void setTeamId(String teamId) {\n\t\tthis.teamId = teamId;\n\t}",
"public void setTeamId(String teamId) {\n\t\tthis.teamId = teamId;\n\t}",
"public String getTeam(int id){\r\n\t\treturn teamList.get(id);\r\n\t}",
"public ArrayList<Student> getTeamListFromTeamId(int teamId){\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id WHERE students.team_id = \" + teamId);\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint id \t\t\t\t= Integer.parseInt(array.get(0));\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\tString fullName \t= array.get(2);\r\n\t\t\tString contactNum \t= array.get(3);\r\n\t\t\tString email \t\t= array.get(4);\r\n\t\t\tString type\t\t\t= array.get(5);\r\n\t\t\tString secondMajor \t= array.get(7);\r\n\t\t\tint role \t\t\t= Integer.parseInt(array.get(8));\r\n\t\t\tint teamid \t\t\t= Integer.parseInt(array.get(9));\r\n\t\t\tint prefRole \t\t= Integer.parseInt(array.get(10));\r\n\t\t\t\r\n\t\t\tStudent student = new Student(id, username, fullName, contactNum, email, type, secondMajor, role, teamid, prefRole);\r\n\t\t\tstudents.add(student);\r\n\t\t}\r\n\t\t\r\n\t\tCollections.sort(students, new Comparator<Student>() {\r\n\t @Override public int compare(Student s1, Student s2) {\r\n\t \treturn s1.getRole() - s2.getRole();\r\n\t }\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\treturn students;\r\n\t}",
"public String getTeamId() {\n\t\treturn teamId;\n\t}",
"public String getTeamId() {\n\t\treturn teamId;\n\t}",
"public int getTeamId() {\n return teamId;\n }",
"public User getUserFromTeam(Team team){\n String sql = \"SELECT * FROM trainer tr INNER JOIN Team T ON tr.userid = T.userid WHERE T.teamid = ?\";\n User user = jdbc.queryForObject(sql, new UserDaoImpl.UserMapper(), team.getId());\n System.out.print(user);\n return user;\n }",
"@Override\n\tpublic TeamInfo findById(String id) {\n\t\treturn repository.findOne(id);\n\t}",
"public void setTeamId(int teamId) {\n\t\tthis.teamId = teamId;\n\t}",
"public int getTeamId() {\n\t\treturn teamId;\n\t}",
"TeamDTO findOne(Long id);",
"public void setTeamId(String teamId) {\r\n\t\tthis.teamName = teamId;\r\n\t}",
"public ArrayList<Student> retrieveStudentsInvitedByTeam(int teamId) {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM team_request WHERE team_id = \" + teamId);\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint stdId\t \t= Integer.parseInt(array.get(2));\r\n\t\t\t\r\n\t\t\tStudent student = null;\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tstudent = retrieve(stdId);\r\n\t\t\t}catch(Exception e){}\r\n\t\t\t\r\n\t\t\tstudents.add(student);\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}",
"@GET\n @Path(\"Current/Team/{teamId}\")\n public Response getTeamByCurrentUser(@PathParam(\"teamId\") Long teamId) {\n Response r = Response.noContent().build();\n User currentUser = userFacade.getCurrentUser();\n final Collection<Game> playedGames = gameFacade.findRegisteredGames(currentUser.getId());\n for (Game g : playedGames) {\n Collection<Team> teams = g.getTeams();\n for (Team t : teams) {\n if (teamId.equals(t.getId())) {\n for (Player p : t.getPlayers()) {\n if (p.getUserId().equals(currentUser.getId())) {\n r = Response.ok().entity(t).build();\n }\n }\n }\n }\n }\n return r;\n }",
"public Team getTeamById(int id, ResultSet rsMatches) {\n\t\tTeam t = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamByIdRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tt = new Team(formatPlayers(getPlayersByTeamId(id)), rs.getString(2), rs.getString(3), rs.getString(4),\n\t\t\t\t\t\trs.getDate(5));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}",
"public Student retrieveAllStudentByTeamRole(int teamId, int role) {\r\n\r\n\t\tStudent student = null;\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM students \"\r\n\t\t\t\t+ \"WHERE team_id = \" + teamId + \" AND role_id = \" + role);\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint stdId\t \t= Integer.parseInt(array.get(2));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tstudent = retrieve(stdId);\r\n\t\t\t}catch(Exception e){}\r\n\t\t}\r\n\t\t\r\n\t\treturn student;\r\n\t}",
"public SoccerTeam getTeam(String teamName) throws TeamNotFoundException {\n\n for (int i = 0; i < this.teams.size(); i++) {\n SoccerTeam team = this.teams.get(i);\n\n if (team.getName().equals(teamName)){\n return team;\n }\n }\n throw new TeamNotFoundException(\"Team that you are searching for is not found\");\n }",
"public void setToolteamid(String toolteamid) {\r\n this.toolteamid = toolteamid;\r\n }",
"public static Team find(String id) throws SQLException\n {\n String query = \"SELECT * FROM team WHERE teamID = ?\";\n PreparedStatement stmt = db.getPreparedStatement(query);\n stmt.setString(1, id);\n Team team = null;\n ResultSet r = db.executeQuery(stmt);\n if (r.next())\n {\n team = new Team(r.getString(\"teamID\"), r.getString(\"motto\"), r.getInt(\"totalKittiesKlicked\"));\n }\n\n return team;\n }",
"public void setTeamId(int value) {\n this.teamId = value;\n }",
"@RequestMapping(\"/teams/{id}\")\n public ArrayList<Team> readTeam(@PathVariable Integer id) {\n return teamService.getTeam(id);\n }",
"public java.lang.String getContactTeamId() {\r\n return contactTeamId;\r\n }",
"public String getTeamId() {\r\n\t\treturn teamName;\r\n\t}",
"public void setContactTeamId(java.lang.String contactTeamId) {\r\n this.contactTeamId = contactTeamId;\r\n }",
"public Ticket getTicket(String id);",
"public Sales getSaleById(Long id) {\r\n\t\treturn salesRepository.findById(id).orElse(null);\r\n\t}",
"Team getMyTeam();",
"public TeamStudent(TeamStudentPK id) {\r\n\t\tthis.id = id;\r\n\t}",
"private Team getTeam(String teamName) {\n return scoreboard.getTeam(trimString(teamName));\n }",
"public int getTeamID() {\n\t\treturn teamID;\n\t}",
"public String getToolteamid() {\r\n return toolteamid;\r\n }",
"@GetMapping (Constants.PATH_FETCH_PLANT_INFO + \"/{\" + Constants.PARAM_TEAM_ID + \"}\")\n public ResponseEntity<ApiResponse> fetchTeamPlantInfo(@PathVariable Long teamId) {\n return ResponseEntity.ok(enterpriseService.getTeamPlantInfo(String.valueOf(teamId)));\n }",
"TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);",
"Team findByName(String name);",
"List<TAlgmntBussRule> getTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);",
"public interface TeamService {\n Teams getAllTeams();\n Team getTeamById(int id);\n Teams getSelectedTeams(int[] teamList);\n}",
"public VwStatsPerGame[] findWhereTeamIdEquals(int teamId) throws VwStatsPerGameDaoException\n\t{\n\t\treturn findByDynamicSelect( SQL_SELECT + \" WHERE team_id = ? ORDER BY team_id\", new Object[] { new Integer(teamId) } );\n\t}",
"public TSalesPosAttr findTSalesPosAttrById(final TSalesPosAttrId tSalesPosAttrId) {\n\t\tLOGGER.info(\"find TSalesPosAttr instance with TSalesPosAttrId: \" + tSalesPosAttrId);\n\t\treturn genericDAO.get(clazz, tSalesPosAttrId);\n\t}",
"public Team selectTeam() {\r\n \r\n String[] list = new String[controller.getTeams().size()];\r\n for (int i = 0; i < controller.getTeams().size(); i++) {\r\n list[i] = controller.getTeams().get(i).getName();\r\n }\r\n\r\n JComboBox cmbOption = new JComboBox(list);\r\n int input = JOptionPane.showOptionDialog(null, cmbOption, \"Select Team that your like Delete\",JOptionPane.DEFAULT_OPTION,JOptionPane.QUESTION_MESSAGE, null, null, null);\r\n if(input==-1){\r\n return null;\r\n }\r\n Team teamAux = controller.searchTeam((String) cmbOption.getSelectedItem());\r\n return teamAux;\r\n }",
"public void setTeam(String team) {\n\t\tthis.team = team;\n\t}",
"public TeamStudentPK getId() {\r\n\t\treturn this.id;\r\n\t\t\r\n\t}",
"List<Team> findTeamsByUserId(UserId userId);",
"public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}",
"public Team getTeam() {\n return team;\n }",
"public ArrayList<Student> retrieveStudentRequests(int teamId) {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM student_request WHERE team_id = \" + teamId);\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint stdId\t \t= Integer.parseInt(array.get(1));\r\n\t\t\t\r\n\t\t\tStudent student = null;\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tstudent = retrieve(stdId);\r\n\t\t\t}catch(Exception e){}\r\n\t\t\t\r\n\t\t\tstudents.add(student);\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}",
"public void setTeam(Team team) {\r\n\t\tthis.team = team;\r\n\t}",
"public Object countTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTSalesTeam\", tSalesTeamList);\n\t}",
"public Team getTeam() {\r\n\t\treturn team;\r\n\t}",
"public interface IOrgTeamService extends IBaseService {\n\n List<Map<String, Object>> findByCondition(OrgTeamBean searchBean, Page page);\n\n void addOrgTeam(CfsOrgTeam orgTeam);\n\n void updateOrgTeam(CfsOrgTeam orgTeam);\n\n CfsOrgTeam getOrgTeam(Long id);\n\n\tList<CfsOrgTeam> find(OrgTeamBean searchBean, Page page);\n\n OrganizationBean getByTeamId(Long teamId);\n\n\tCfsOrgTeam getOrgTeamById(Long id);\n}",
"@RequestMapping(value = \"/{id}\", method=RequestMethod.GET)\n public ResponseEntity<?> findById(@PathVariable final Integer id) {\n Team team = this.teamService.findById(id);\n return ResponseEntity.ok().body(team);\n }",
"public int getTeam() {\n return team_;\n }",
"public int getTeam() {\n return team_;\n }",
"@Override\r\n\t@Transactional\r\n\tpublic Planter viewPlanter(int planterId) throws ResourceNotFoundException {\r\n\t\tOptional<Planter> pl = planterRepo.findById(planterId);\r\n\t\tif(pl.isPresent()) {\r\n\t\t\treturn pl.get();\r\n\t\t\t\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new ResourceNotFoundException(\"No Planter found with the Id\");\r\n\t\t}\r\n\t}",
"public void setToolteam(String toolteam) {\r\n this.toolteam = toolteam;\r\n }",
"public String nodeTeam(String id)\n\t{\n\t\treturn getNode(id).team;\n\t}",
"TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);",
"public int getTeamId(Team team) {\n\t\tint teamId = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamIdRecords_sql = \"SELECT id FROM \" + team_table + \" WHERE name='\" + team.getName() + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tteamId = rs.getInt(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn teamId;\n\t}",
"public SaleVO SFindByID(String id) {\n\t\treturn sale.find(id);\r\n\t}",
"public Sale find_Sale(Integer sale_id, Integer branch_id) {\n return sale_dao.find(sale_id, branch_id);\n }",
"@Override\r\n\tpublic TeamPO findTeamByName(String name) {\n\t\treturn teams.findTeamByShortName(name);\r\n\t}",
"List<TAlgmntBussRule> getTAlgmntBussRulesByTAlgmntSalesTeamRuleConfigId(SearchFilter<TAlgmntBussRule> searchFilter);",
"public Salle getSalleById(final Long id);",
"public Team getTeamByName(String name) {\n\t\tTeam t = null;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tResultSet rs = null;\n\t\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tList<Player> players = new ArrayList<Player>();\n\t\t\tif (rs.next()) {\n\t\t\t\tplayers = formatPlayers(getPlayersByTeamId(rs.getInt(1)));\n\t\t\t\tt = new Team(players, rs.getString(2), rs.getString(3), rs.getString(4), rs.getDate(5));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}",
"public String getTeamNameById(int id) {\n\t\tString t = \"\";\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamByIdRecords_sql = \"SELECT name FROM \" + team_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tt = rs.getString(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}",
"public Teams updateTeamById(UUID id,Teams teams)\n {\n Optional<Teams> optionalTeam = teamRepo.findById(id);\n if (!optionalTeam.isPresent())\n throw new TeamNotFoundException(\"Team Record with id \" + id + \" is not available\");\n teams.setTeamId(id);\n return teamRepo.save(teams);\n }",
"public int getTeam() {\n return team;\n }",
"public String getTeam() {\n return team;\n }",
"public boolean isActiveTeam(int teamId) {\n\t\treturn (teamId == getActiveTeam().id);\n\t}",
"TeamResultWrapper findTeamsByMember(String personId,\n String partOfGroupname, int offset, int pageSize);",
"public Long getSalesmanId() {\n return salesmanId;\n }",
"R_dept_trade selectByPrimaryKey(Integer id);",
"public String getTeam() {\n\t\treturn team;\n\t}",
"public boolean findTeam(String teamName) throws SQLException {\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:sqlite:users\");\n\t\tStatement stmt = conn.createStatement();\n\t\tString SQL = \"select * from leaguestandings where TeamName = '\" + teamName + \"';\";\n\n\t\tResultSet rset = stmt.executeQuery(SQL);\n\n\t\tif (rset.next()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\r\n\tpublic ModelInfo<ScienceTechExchange, ScienceTechAttendPerson> findScienceTechExchangeByTechExchangeId(\r\n\t\t\tString techExchangeId) {\n\t\tModelInfo<ScienceTechExchange, ScienceTechAttendPerson> scienceTechExchangeInfos = new ModelInfo<ScienceTechExchange, ScienceTechAttendPerson>();\r\n\t\tList<ScienceTechAttendPerson> scienceTechAttendPersons = this.searchDao.SearchObjectsByFactor(\"ScienceTechAttendPerson\", \"scienceTechExchange.techExchangeId\", techExchangeId);\r\n\t\tscienceTechExchangeInfos.setModelList(scienceTechAttendPersons);\r\n\t\tscienceTechExchangeInfos.setModel((ScienceTechExchange)this.searchDao.SearchUniqueObjectsByFactor(\"ScienceTechExchange\", \"techExchangeId\", techExchangeId));\r\n\t\treturn scienceTechExchangeInfos;\r\n\t}",
"@Override\r\n\tpublic String getTeam() {\n\t\treturn team;\r\n\t}",
"@Override\n\tpublic ProjectTeamBean selectProjectTeamOne(ProjectTeamBean projectTeamBean) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setEsfTournamentId(long esfTournamentId) {\n\t\t_esfTournament.setEsfTournamentId(esfTournamentId);\n\t}",
"public void setTeamNo(int teamNo) {\r\n\t\tthis.teamNo = teamNo;\r\n\t}",
"@Override\n\tpublic Stop findById(EntityManagerFactory emf, long id) {\n\t\treturn null;\n\t}",
"public String getTeam() {\r\n\t\treturn Team;\r\n\t}",
"@GetMapping(path=\"{id}\")\n public @ResponseBody TeamMember getTeamMember(@PathVariable long id){\n return teamMemberRepository.getOne(id);\n }"
] | [
"0.67796856",
"0.67087704",
"0.67045444",
"0.66146976",
"0.6568315",
"0.63588715",
"0.6166101",
"0.60783947",
"0.6065499",
"0.6028061",
"0.59836984",
"0.5950198",
"0.584919",
"0.5848757",
"0.57814085",
"0.5779105",
"0.57075554",
"0.5686735",
"0.56088847",
"0.56088847",
"0.5608455",
"0.55814457",
"0.5558002",
"0.5558002",
"0.55526286",
"0.55344015",
"0.551819",
"0.5509785",
"0.55065936",
"0.55019945",
"0.5495469",
"0.54691154",
"0.5363809",
"0.53269714",
"0.53073454",
"0.5267049",
"0.52549714",
"0.5254802",
"0.52408016",
"0.5232351",
"0.5211638",
"0.52078366",
"0.51097065",
"0.51067924",
"0.50816065",
"0.50768626",
"0.5056222",
"0.50495076",
"0.5048733",
"0.5047863",
"0.50090593",
"0.5002912",
"0.4987596",
"0.49750707",
"0.49483517",
"0.49458864",
"0.4942082",
"0.49126846",
"0.48801884",
"0.48759758",
"0.4872154",
"0.4866181",
"0.4805011",
"0.47895023",
"0.47887886",
"0.4788214",
"0.47835216",
"0.4778463",
"0.4773654",
"0.47666803",
"0.47440264",
"0.47252464",
"0.47022176",
"0.46783286",
"0.46619108",
"0.46476316",
"0.46444803",
"0.46359336",
"0.46205395",
"0.4616494",
"0.46044996",
"0.4592023",
"0.45895845",
"0.4585925",
"0.4572996",
"0.45514807",
"0.45513585",
"0.45501742",
"0.45405248",
"0.45372748",
"0.45350528",
"0.45236054",
"0.45010686",
"0.450023",
"0.44955477",
"0.44870827",
"0.44641402",
"0.44618455",
"0.44561186",
"0.44542238"
] | 0.8752604 | 0 |
Retrieve TAlgmntSalesTeam based on given search criteria using Dynamic JPAQL. | public List<TAlgmntSalesTeam> findTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {
LOGGER.info("=========== Find TAlgmntSalesTeams ===========");
final PaginationInfo paginationInfo = searchFilter.getPaginationInfo();
final OperatorInfo operatorInfo = searchFilter.getOperatorInfo();
final TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();
final int maxresult = paginationInfo.getMaxRows();
final int index = paginationInfo.getStartIndex();
//int maxresult = 3;
//int index=0;
final LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();
final JPAQuery jpaQuery = new JPAQuery("tAlgmntSalesTeamentity", tAlgmntSalesTeam);
if (tAlgmntSalesTeam.getTSalesTeam() == null) {
jpaQuery.bind(TSALESTEAM, new TSalesTeam());
} else {
LOGGER.info("tSalesTeam {}" + tAlgmntSalesTeam.getTSalesTeam());
jpaQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());
}
if (tAlgmntSalesTeam.getTAlgmnt() == null) {
jpaQuery.bind(TALGMNT, new TAlgmnt());
} else {
LOGGER.info("tAlgmnt {}" + tAlgmntSalesTeam.getTAlgmnt());
jpaQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());
}
jpaQuery.setJPAql(JPAQL);
jpaQuery.setRestrictionExpressionStrings(RESTRICTIONS);
jpaQuery.setLogicalOperatorEnum(logOpEnum);
return genericDAO.findEntities(jpaQuery, index, maxresult);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TAlgmntSalesTeam findTAlgmntSalesTeamById(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"find TAlgmntSalesTeam instance with TAlgmntSalesTeamId: \" + tAlgmntSalesTeamId);\n\t\treturn genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t}",
"public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\ttSalesTeamList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTSalesTeam\", tSalesTeamList, index, maxresult);\n\t}",
"TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);",
"SysTeam selectByPrimaryKey(Integer teamId);",
"List<SysTeam> selectByExample(SysTeamExample example);",
"public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tList<Object> tAlgmntList = new ArrayList<Object>();\n\t\ttAlgmntList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTAlgmnt\", tAlgmntList, index, maxresult);\n\t}",
"TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);",
"SmsEmployeeTeam selectByPrimaryKey(String id);",
"Team findByName(String name);",
"TeamResultWrapper findTeamsByMember(String personId,\n String partOfGroupname, int offset, int pageSize);",
"List<TAlgmntBussRule> getTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);",
"public List<TeamVo> query(@Valid TeamQuery teamQuery) {\n\t\tList<TeamVo> list = null;\n\t\tlist = teamMapper.queryTeamVo(teamQuery.getCompanyid(), teamQuery.getDepartmentid());\n\t\treturn list;\n\t}",
"public Object countTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Count TAlgmntSalesTeam ===========\");\n\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\t\tfinal JPAQuery jpaCountQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaCountQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaCountQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaCountQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaCountQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\n\t\tjpaCountQuery.setJPAql(JPACOUNTQL);\n\t\tjpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaCountQuery.setLogicalOperatorEnum(logOpEnum);\n\n\t\treturn genericDAO.findEntities(jpaCountQuery, -1, -1);\n\t}",
"List<SmsEmployeeTeam> selectByExample(SmsEmployeeTeamExample example);",
"Team findById(Long id);",
"public User getUserFromTeam(Team team){\n String sql = \"SELECT * FROM trainer tr INNER JOIN Team T ON tr.userid = T.userid WHERE T.teamid = ?\";\n User user = jdbc.queryForObject(sql, new UserDaoImpl.UserMapper(), team.getId());\n System.out.print(user);\n return user;\n }",
"public Object countTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTSalesTeam\", tSalesTeamList);\n\t}",
"List<Seller> findByDepartment(Department department);",
"List<Seller> findByDepartment(Department department);",
"public LearningResultHasActivity[] findByDynamicSelect(String sql, Object[] sqlParams) throws LearningResultHasActivityDaoException;",
"List<Team> findTeamsByUserId(UserId userId);",
"TeamResultWrapper findAllTeamsByMember(String personId, int offset,\n int pageSize);",
"List<Team> findAll();",
"@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}",
"public TipologiaStruttura[] findByDynamicSelect(String sql, Object[] sqlParams) throws TipologiaStrutturaDaoException;",
"interface UserRepository extends JpaRepository<User, Long> {\n\n Collection<User> findByUserNumber(String userNumber);\n Collection<User> findByFirstName(String firstName);\n Collection<User> findByLastName(String value);\n Collection<User> findByFirstNameAndLastName(String firstName, String lastName);\n\n @Query(\"select u from #{#entityName} u where u.team = ?1\")\n List<User> findAllByTeam(String teamName);\n\n Collection<WorkItem> findByWorkItems(User user);\n}",
"public SmsAgendaGrupo[] findByDynamicSelect(String sql, Object[] sqlParams) throws SmsAgendaGrupoDaoException;",
"public interface IOrgTeamService extends IBaseService {\n\n List<Map<String, Object>> findByCondition(OrgTeamBean searchBean, Page page);\n\n void addOrgTeam(CfsOrgTeam orgTeam);\n\n void updateOrgTeam(CfsOrgTeam orgTeam);\n\n CfsOrgTeam getOrgTeam(Long id);\n\n\tList<CfsOrgTeam> find(OrgTeamBean searchBean, Page page);\n\n OrganizationBean getByTeamId(Long teamId);\n\n\tCfsOrgTeam getOrgTeamById(Long id);\n}",
"public Team get(Long id);",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\n\t\treturn _participationLocalService.dynamicQuery(dynamicQuery);\n\t}",
"public TAlgmntSalesTeam updateTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Update TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.update(tAlgmntSalesTeam);\n\t}",
"public interface TeamService {\n\n /**\n * Save a team.\n *\n * @param teamDTO the entity to save\n * @return the persisted entity\n */\n TeamDTO save(TeamDTO teamDTO);\n\n /**\n * Get all the teams.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<TeamDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" team.\n *\n * @param id the id of the entity\n * @return the entity\n */\n TeamDTO findOne(Long id);\n\n /**\n * Delete the \"id\" team.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n\tPage<TeamDTO> findByTeamHeadUserLoginIsCurrentUser(Pageable pageable);\n\tPage<TeamDTO> findByActiveAndTeamHeadUserLogin(boolean isActive, String teamHeadLogin, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdNotInAndTeamHeadUserLoginNot(boolean isActive, String teamHeadLogin, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdInAndTeamHeadUserLoginNot(boolean isActive, String teamHeadLogin, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdNotInAndTeamHeadUserLogin(boolean isActive, String teamHeadLogin, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdNotIn(boolean isActive, String userLogin, Pageable pageable);\n\tPage<TeamDTO> findByActive(boolean isActive, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdInAndTeamHeadUserLogin(boolean isActive, String userLogin, String teamHeadUserLogin, Pageable pageable);\n}",
"public EvaluationsDegree[] findByDynamicSelect(String sql, Object[] sqlParams) throws EvaluationsDegreeDaoException;",
"public interface GrouperDao {\n\n /**\n * Return all teams using a specific stem, without the teams being private\n * except if the personId is a member of the private team\n * \n *\n * @param personId\n * the logged in person\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);\n\n /**\n * Return all teams using a specific stem with a name like, , without the\n * teams being private except if the personId is a member of the private team\n * \n *\n * @param personId\n * the logged in person\n * @param partOfGroupname\n * part of group name\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);\n\n /**\n * Return all teams using a specific stem where the personId is a member\n * \n *\n * @param personId\n * the logged in person\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findAllTeamsByMember(String personId, int offset,\n int pageSize);\n\n /**\n * Return all teams using a specific stem with a name like where the personId is a member\n * \n *\n * @param personId\n * the logged in person\n * @param partOfGroupname\n * part of group name\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findTeamsByMember(String personId,\n String partOfGroupname, int offset, int pageSize);\n\n /**\n * Return all stems for a person\n *\n * @param personId {@link String} the identifier of the logged in person\n * @return {@link List} the list with stems that this user is a member of.\n */\n List<Stem> findStemsByMember(String personId);\n}",
"private static Team getTeam(Connection con,Long teamId) {\n\n Team team = null;\n\n String query = SQLConstants.GET_TEAM_BY_TEAM_ID;\n\n try {\n team = new Team();\n //Connection con = JdbcConnection.getConnection();\n PreparedStatement pstmt = con.prepareStatement(query);\n pstmt.setLong(1, teamId);\n\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n team.setId(rs.getLong(\"id\"));\n team.setName(rs.getString(\"name\"));\n team.setDescribe(rs.getString(\"describe\"));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return team;\n\n }",
"public interface FootballerStatsService {\n FootballerStats findByGameWeek_GameWeekNumberAndFootballers_FootballerLastName(Integer gameWeekNumber, String footballerLastName);\n}",
"public SmsAgendaGrupo[] findByDynamicWhere(String sql, Object[] sqlParams) throws SmsAgendaGrupoDaoException;",
"public SgfensBanco[] findByDynamicSelect(String sql, Object[] sqlParams) throws SgfensBancoDaoException;",
"public LearningResultHasActivity[] findByDynamicWhere(String sql, Object[] sqlParams) throws LearningResultHasActivityDaoException;",
"public interface TeamService {\n Teams getAllTeams();\n Team getTeamById(int id);\n Teams getSelectedTeams(int[] teamList);\n}",
"public List<TicketSite> getTicketSitesOfATeam(String teamId);",
"public SgfensPedidoProducto[] findByDynamicSelect(String sql, Object[] sqlParams) throws SgfensPedidoProductoDaoException;",
"public interface TeamUserService extends CrudService<TeamUser, Long> {\n\n List<User> findByTeam(Team team);\n}",
"@Transactional\n public List<Student> fetch(int page, int limit, String firstName, String lastName, String code,\n String library, String department, List<StudentSort> sortOrders) {\n EntityManager entityManager = entityManagerFactory.createEntityManager();\n entityManager.getTransaction().begin();\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Student> query = criteriaBuilder.createQuery(Student.class);\n Root<Student> root = query.from(Student.class);\n Join<Student, Library> studentLibraryJoin = root.join(\"library\");\n Join<Student, Department> studentDepartmentJoin = root.join(\"department\");\n\n query.select(root);\n\n List<Predicate> predicates = new ArrayList<>();\n if (firstName != null) {\n predicates.add(criteriaBuilder.like(criteriaBuilder.lower(root.get(\"firstName\")), \"%\" + firstName.toLowerCase() + \"%\"));\n }\n if (lastName != null) {\n predicates.add(criteriaBuilder.like(criteriaBuilder.lower(root.get(\"lastName\")), \"%\" + lastName.toLowerCase() + \"%\"));\n }\n if (code != null) {\n predicates.add(criteriaBuilder.equal(root.get(\"code\"), Integer.parseInt(code)));\n }\n if (library != null) {\n predicates.add(criteriaBuilder.like(criteriaBuilder.lower(studentLibraryJoin.get(\"address\")), \"%\" + library.toLowerCase() + \"%\"));\n }\n if (department != null) {\n predicates.add(criteriaBuilder.or(\n criteriaBuilder.like(criteriaBuilder.lower(studentDepartmentJoin.get(\"faculty\")), \"%\" + department.toLowerCase() + \"%\"),\n criteriaBuilder.like(criteriaBuilder.lower(studentDepartmentJoin.get(\"university\")), \"%\" + department.toLowerCase() + \"%\")));\n }\n query.where(criteriaBuilder.and(predicates.toArray(new Predicate[predicates.size()])));\n\n if (!sortOrders.isEmpty()) {\n if (sortOrders.get(0).isDescending()) {\n if (sortOrders.get(0).getPropertyName().equals(\"department\")) {\n query.orderBy(criteriaBuilder.desc(studentDepartmentJoin.get(\"university\")),\n criteriaBuilder.desc(studentDepartmentJoin.get(\"faculty\")));\n }\n else {\n if (sortOrders.get(0).getPropertyName().equals(\"library\")) {\n query.orderBy(criteriaBuilder.desc(studentLibraryJoin.get(\"address\")));\n }\n else query.orderBy(criteriaBuilder.desc(root.get(sortOrders.get(0).getPropertyName())));\n }\n }\n else {\n if (sortOrders.get(0).getPropertyName().equals(\"department\")) {\n query.orderBy(criteriaBuilder.asc(studentDepartmentJoin.get(\"university\")),\n criteriaBuilder.asc(studentDepartmentJoin.get(\"faculty\")));\n }\n else {\n if (sortOrders.get(0).getPropertyName().equals(\"library\")) {\n query.orderBy(criteriaBuilder.asc(studentLibraryJoin.get(\"address\")));\n }\n else query.orderBy(criteriaBuilder.asc(root.get(sortOrders.get(0).getPropertyName())));\n }\n }\n }\n else query.orderBy(criteriaBuilder.asc(root.get(\"id\")));\n\n List<Student> result = entityManager.createQuery(query).setFirstResult(page * limit).setMaxResults(limit).getResultList();\n entityManager.getTransaction().commit();\n entityManager.close();\n //System.out.println(result);\n return result;\n }",
"public VwTeams get(int teamId)\n\t{\n\t\tVwTeams [] results = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tresults = dao.findWhereTeamIdEquals(teamId);\t\t\t\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results.length == 0 ? null : results[0];\n\t}",
"public Object countTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {\n\n\t\tList<Object> tAlgmntList = new ArrayList<Object>();\n\t\ttAlgmntList.add(searchFilter.getEntityClass());\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTAlgmnt\", tAlgmntList);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end);\n\t}",
"@WebMethod public List<Team> getAllTeams();",
"public TipologiaStruttura[] findByDynamicWhere(String sql, Object[] sqlParams) throws TipologiaStrutturaDaoException;",
"public Opportunities[] findByDynamicSelect(String sql, Object[] sqlParams) throws OpportunitiesDaoException\r\n\t{\r\n\t\t// declare variables\r\n\t\tfinal boolean isConnSupplied = (userConn != null);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\r\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\r\n\t\t\r\n\t\t\t// construct the SQL statement\r\n\t\t\tfinal String SQL = sql;\r\n\t\t\r\n\t\t\r\n\t\t\tSystem.out.println( \"Executing \" + SQL );\r\n\t\t\t// prepare statement\r\n\t\t\tstmt = conn.prepareStatement( SQL );\r\n\t\t\tstmt.setMaxRows( maxRows );\r\n\t\t\r\n\t\t\t// bind parameters\r\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\r\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\r\n\t\t\t// fetch the results\r\n\t\t\treturn fetchMultiResults(rs);\r\n\t\t}\r\n\t\tcatch (Exception _e) {\r\n\t\t\t_e.printStackTrace();\r\n\t\t\tthrow new OpportunitiesDaoException( \"Exception: \" + _e.getMessage(), _e );\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tResourceManager.close(rs);\r\n\t\t\tResourceManager.close(stmt);\r\n\t\t\tif (!isConnSupplied) {\r\n\t\t\t\tResourceManager.close(conn);\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public List<AllTimeSeasonBean> getAllTimeRecord(){\n String q = \"select new com.main.pcblroyals.bean.AllTimeSeasonBean( \" +\n \"sum(case when g.teamScore > g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore = g.opponentScore then 1 else 0 end), \" +\n \"sum(case when g.teamScore < g.opponentScore then 1 else 0 end) \" +\n \") \" +\n \"from seasons s \" +\n \"join games g on s.id = g.season.id \";\n Query query = entityManager.createQuery(q);\n return (List<AllTimeSeasonBean>) query.getResultList();\n }",
"public Ruta[] findByDynamicSelect(String sql, Object[] sqlParams) throws RutaDaoException;",
"List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);",
"public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Create TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.store(tAlgmntSalesTeam);\n\t}",
"@Override\n\tpublic <T> java.util.List<T> dynamicQuery(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,\n\t\tint end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {\n\n\t\treturn _participationLocalService.dynamicQuery(\n\t\t\tdynamicQuery, start, end, orderByComparator);\n\t}",
"public Faq[] findByDynamicSelect(String sql, Object[] sqlParams) throws FaqDaoException;",
"public interface TeamBLS {\n\n /**\n * 获取TeamListActivity显示内容\n *\n * @param context\n * @return\n */\n public List<TeamConferenceVo> getTeamConference(Context context);\n\n /**\n * 获取TeamActivity的顶层显示内容\n *\n * @param context\n * @param abbr\n * @return\n */\n public TeamInfoVo getTeamInfo(Context context,String abbr);\n\n public List<TeamSeasonInfoVo> getTeamSeasonTotal(Context context,String abbr);\n}",
"List<Object[]> findValuebyAlignInfoAndRuleName(Long algmntId,Long bussUnitId,Long salesTeamId,String BussRuleName);",
"public interface TaskJoinDao extends IBaseJpaRepository<TaskJoin>{\n\n @Query(\"SELECT a.id FROM UserInfo a WHERE a.mobile LIKE ?1\" )\n public List<Long> mobile(String mobile);\n\n @Query(\"SELECT a.id FROM Team a WHERE a.name LIKE ?1\" )\n public List<Long> teamName(String teamName);\n\n @Query(\"SELECT a.id FROM UserInfo a WHERE a.nickname LIKE ?1\" )\n public List<Long> nickName(String nickName);\n\n @Query(\"SELECT a.id FROM Team a WHERE a.userinfo.nickname LIKE ?1\" )\n public List<Long> teamNickName(String nickName);\n\n}",
"@Repository\npublic interface SalesRepository extends JpaRepository<Sales, Long> {\n\t@Query(value = \"select max(id) from sales where human_resource_id=?1\", nativeQuery = true)\n\tLong findMaxIdByHumanResource(long human_resource_id);\n\n\t@Query(value = \"select total_price from sales where id=?1\", nativeQuery = true)\n\tLong findPreviousTotalPriceForHumanResource(long maxId);\n\t\n\tList<Sales> findByHumanResources(HumanResources hr);\n\n\t@Query(value = \"select * from sales where human_resource_id = :hrId and day_Date >= :startDate AND day_Date <= :endDate order by id\", nativeQuery = true)\n\tpublic List<Sales> getAllBetweenDatesWithHr(@Param(\"startDate\") Date startDate, @Param(\"endDate\") Date endDate,\n\t\t\t@Param(\"hrId\") Long hrId);\n\n\t@Query(value = \"select sum(total_Price) from sales where day_Date >= :startDate AND day_Date <= :endDate\", nativeQuery = true)\n\tpublic Long getSumBetweenDatesWithHr(@Param(\"startDate\") Date startDate, @Param(\"endDate\") Date endDate);\n \n\t \n\t@Query(value = \"select max(id) from sales where id < ?1 and human_resource_id = ?2\", nativeQuery = true)\n\tLong findMaxPreviousId(long editId , long hrId);\n \n\t@Query(value = \"select * from sales where id >= :editId and human_resource_id = :hrId order by id\", nativeQuery = true)\n\tpublic List<Sales> getListToEdit(@Param(\"editId\") Long editId ,@Param(\"hrId\") long hrId);\n\t\n public List<Sales> findAllByOrderByIdAsc();\n\n\n}",
"@Override\r\n\tpublic Worker TestHql(String workerId) {\n\t\tString hql=\"from Team where teamid=?\";//HQL语句中表名应该是ORM映射的类名,查询結果是实体类,而不是sql的结果集\r\n\t\tList<Worker> list=baseDao.findByHql(hql, workerId);\r\n\t\treturn list.get(0);\r\n\t}",
"public EvaluationsDegree[] findByDynamicWhere(String sql, Object[] sqlParams) throws EvaluationsDegreeDaoException;",
"Team getMyTeam();",
"@Override\n public Team getTeamById(int id){\n try {\n String sql = \"SELECT * FROM Team WHERE Team.teamid = ?\";\n Team team = jdbc.queryForObject(sql, new TeamMapper(), id);\n team.setUser(getUserFromTeam(team));\n return team;\n }catch(DataAccessException ex){\n return null;\n }\n }",
"@Transactional(propagation = Propagation.REQUIRED, readOnly = true)\n\tpublic ServiceResult listTeamConfidence(final TeamConfidence obj, Timestamp startDate, Timestamp endDate){\n\t\tServiceResult result = new ServiceResult();\n\t\tObject temp;\n\t\tPage page = new Page();\n\t\tpage.setRecordsPerPage(10000l);\n\t\tParamChecker pc = new ParamChecker();\n\t\ttry{\n\t\t\tCriteria c = dao.getSession().createCriteria(TeamConfidence.class,\"t\");\n\t\t\tc.createAlias(\"t.project\", \"p\");\n\t\t\tc.add(Restrictions.ge(\"t.createdTime\", startDate));\n\t\t\tc.add(Restrictions.le(\"t.createdTime\", endDate));\n\t\t\tif (pc.isNotEmpty(obj.getCreatedBy())){\n\t\t\t\tc.add(Restrictions.eq(\"t.createdBy\", obj.getCreatedBy()));\n\t\t\t}\n\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getId())){\n\t\t\t\tc.add(Restrictions.eq(\"p.id\", obj.getProject().getId()));\n\t\t\t}\n\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getProductCode())){\n\t\t\t\tc.add(Restrictions.eq(\"p.productCode\", obj.getProject().getProductCode()));\n\t\t\t}\n\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getProductName())){\n\t\t\t\tc.add(Restrictions.eq(\"p.productName\", obj.getProject().getProductName()));\n\t\t\t}\n\t\t\t//search by POD\n\t\t\tif (obj.getProject()!=null){\n\t\t\t Project ref = new Project();\n\t\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getRegion())) {\n\t\t\t\t\tref.setRegion(obj.getProject().getRegion());\n\t\t\t\t}\n\t\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getPod())) {\n\t\t\t\t\tref.setPod(obj.getProject().getPod());\n\t\t\t\t}\n\t\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getCountry())) {\n\t\t\t\t\tref.setCountry(obj.getProject().getCountry());\n\t\t\t\t}\n\t\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getLeader())) {\n\t\t\t\t\tref.setLeader(obj.getProject().getLeader());\n\t\t\t\t}\n\t\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getManager())) {\n\t\t\t\t\tref.setManager(obj.getProject().getManager());\n\t\t\t\t}\n\t\t\t\tif (obj.getProject()!=null && obj.getProject().getStatus()!=null && obj.getProject().getStatus().toString().length()>0) {\n\t\t\t\t\tref.setStatus(obj.getProject().getStatus());\n\t\t\t\t}\n\t\t\t\tif (obj.getProject()!=null && pc.isNotEmpty(obj.getProject().getCategory())) {\n\t\t\t\t\tref.setCategory(obj.getProject().getCategory());\n\t\t\t\t}\n\t\t\t\tServiceResult tempResult = searchByInstance(ref, CommonDAO.OP_MODE.CASE_SENSITIVE_LIKE);\n\t\t\t\tif (tempResult.getResult()){\n\t\t\t\t\t//found project\n\t\t\t\t\tList<Project> projectList = (List<Project>) tempResult.getReturnObject();\n\t\t\t\t\tList<String> sb = new ArrayList<>();\n\t\t\t\t\tfor (Project prj:projectList){\n\t\t\t\t\t\t sb.add(prj.getId());\n\t\t\t\t\t}\n\t\t\t\t\tif (sb.size()>0){\n\t\t\t\t\t\tc.add(Restrictions.in(\"p.id\", sb));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tc.addOrder(Order.desc(\"p.pod\")).addOrder(Order.desc(\"t.createdTime\"));\n\t\t\tList<TeamConfidence> resultList = c.list();\n\n\t\t\tif (resultList != null){\n\t\t\t\tresult.setResult(true);\n\t\t\t\tresult.setReturnObject(resultList);\n\t\t\t} else {\n\t\t\t\tresult.setResult(false);\n\t\t\t}\n\t\t} catch (Exception e){\n\t\t\tresult.setResult(false);\n\t\t\tresult.setMessage(\"Error:\"+e);\n\t\t\tlog.error(\"Error getting team confidence: \", e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"@Query(value = \"SELECT * FROM position_employee pe WHERE pe.position_employee_code = :positionEmployeeCode AND pe.company_id = :companyID\", nativeQuery = true)\n PositionEmployeeEntity findPositionEmployeeByPositionEmployeeCodeAndCompanyID(@Param(\"positionEmployeeCode\") String positionEmployeeCode, @Param(\"companyID\") int companyID);",
"@Query(\n \"Select t FROM Ticket t WHERE t.responsible IS NOT NULL \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType4(@Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SalesSarneshinCalcRepository extends JpaRepository<SalesSarneshinCalc, Long>, JpaSpecificationExecutor<SalesSarneshinCalc> {\n\n // @Query(\"select salesJaniCalc from SalesJaniCalc salesJaniCalc left join fetch salesJaniCalc.grouhKhodro where salesJaniCalc.grouhKhodro.id =:id\")\n @Query(\"select salesSarneshinCalc from SalesSarneshinCalc salesSarneshinCalc where salesSarneshinCalc.grouhKhodro.id =:id\")\n List<SalesSarneshinCalc> findAllByGrouhKhodroId(@Param(\"id\") Long id);\n\n}",
"List<TypeTreatmentPlanStatuses> search(String query);",
"List<TAlgmntBussRule> getTAlgmntBussRulesByTAlgmntSalesTeamRuleConfigId(SearchFilter<TAlgmntBussRule> searchFilter);",
"@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType1(@Param(\"userId\") Long userId,@Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"public Ruta[] findByDynamicWhere(String sql, Object[] sqlParams) throws RutaDaoException;",
"@Override\r\n public ProductosPuntoVenta[] findByDynamicSelect(String sql,\r\n Object[] sqlParams) throws ProductosPuntoVentaDaoException {\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n try {\r\n // Validamos la conexion\r\n this.validateConnection();\r\n System.out.println(\"Executing \" + sql);\r\n // prepare statement\r\n stmt = userConn.prepareStatement(sql);\r\n stmt.setMaxRows(maxRows);\r\n // se setean los parametros de la consulta\r\n for (int i = 0; sqlParams != null && i < sqlParams.length; i++) {\r\n stmt.setObject(i + 1, sqlParams[i]);\r\n }\r\n System.out.println(sql);\r\n rs = stmt.executeQuery();\r\n // recuperamos los resultados\r\n return fetchMultiResults(rs);\r\n }\r\n catch (SQLException e) {\r\n e.printStackTrace();\r\n throw new ProductosPuntoVentaDaoException(\"Exception: \"\r\n + e.getMessage(), e);\r\n }\r\n finally {\r\n ResourceManager.close(rs);\r\n ResourceManager.close(stmt);\r\n if (userConn != null) {\r\n ResourceManager.close(userConn);\r\n }\r\n }\r\n }",
"@Override\r\n\tpublic DeptBean[] findByDynamicSelect(String sql, Object[] sqlParams)\r\n\t\t\tthrows SQLException {\n\t\tList<Map<String, Object>> resultList = new ArrayList<Map<String,Object>>();\r\n\t\tdeptConn = this.getConnection();\r\n\t\tresultList = this.executeQuery(deptConn, sql, sqlParams);\r\n\t\tif (deptConn != null) {\r\n\t\t\tthis.closeConnection(deptConn);\r\n\t\t}\r\n\t\treturn MapToObject(resultList);\r\n\t}",
"public Opportunities[] findByDynamicWhere(String sql, Object[] sqlParams) throws OpportunitiesDaoException\r\n\t{\r\n\t\t// declare variables\r\n\t\tfinal boolean isConnSupplied = (userConn != null);\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t// get the user-specified connection or get a connection from the ResourceManager\r\n\t\t\tconn = isConnSupplied ? userConn : ResourceManager.getConnection();\r\n\t\t\r\n\t\t\t// construct the SQL statement\r\n\t\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\r\n\t\t\r\n\t\t\r\n\t\t\tSystem.out.println( \"Executing \" + SQL );\r\n\t\t\t// prepare statement\r\n\t\t\tstmt = conn.prepareStatement( SQL );\r\n\t\t\tstmt.setMaxRows( maxRows );\r\n\t\t\r\n\t\t\t// bind parameters\r\n\t\t\tfor (int i=0; sqlParams!=null && i<sqlParams.length; i++ ) {\r\n\t\t\t\tstmt.setObject( i+1, sqlParams[i] );\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\r\n\t\t\t// fetch the results\r\n\t\t\treturn fetchMultiResults(rs);\r\n\t\t}\r\n\t\tcatch (Exception _e) {\r\n\t\t\t_e.printStackTrace();\r\n\t\t\tthrow new OpportunitiesDaoException( \"Exception: \" + _e.getMessage(), _e );\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tResourceManager.close(rs);\r\n\t\t\tResourceManager.close(stmt);\r\n\t\t\tif (!isConnSupplied) {\r\n\t\t\t\tResourceManager.close(conn);\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public SgfensPedidoProducto[] findByDynamicWhere(String sql, Object[] sqlParams) throws SgfensPedidoProductoDaoException;",
"public abstract ResultSet select(AbstractOrmEntity searchEntity,\r\n\t Vector<String> searchCriteriasParam) throws OrmException;",
"public UsState[] findByDynamicSelect(String sql, Object[] sqlParams) throws UsStateDaoException;",
"public Tipo[] findByDynamicSelect(String sql, Object[] sqlParams)\r\n throws TipoDaoException;",
"List<T> findByCriteria(String eCriteria, Object... parameters);",
"public interface TimeScaleApplicationRepository extends JpaRepository<TimeScaleApplication,Long> {\n\n @Query(\"select timeScaleApplication from TimeScaleApplication timeScaleApplication where timeScaleApplication.instEmployee.code = :code\")\n TimeScaleApplication findByInstEmployeeCode(@org.springframework.data.repository.query.Param(\"code\") String code);\n}",
"TeamDTO findOne(Long id);",
"SelectQuery createSelectQuery();",
"@Override\n @SuppressWarnings(\"rawtypes\")\n public List dynamicQuery(DynamicQuery dynamicQuery)\n throws SystemException {\n return banking_organizationPersistence.findWithDynamicQuery(dynamicQuery);\n }",
"@SuppressWarnings(\"unused\")\npublic interface ShiftsRepository extends JpaRepository<Shifts, Long> {\n\n List<Shifts> findAllByDelStatusIsFalse();\n\n\n @Query(\"SELECT NEW co.tmunited.bluebook.domain.vo.ShiftVO(\" +\n \"shift.id, \" +\n \"shift.employee.firstName, \" +\n \"shift.employee.lastName, \" +\n \"shift.createdDate, \" +\n \"shift.employee.id\" +\n \") FROM Shifts shift \" +\n \"WHERE \" +\n \"shift.delStatus = False \" +\n \"ORDER BY createdDate desc \")\n List<ShiftVO> findAllByDelStatusIsFalseOrderByCreatedDateVO();\n}",
"public interface OrgDeptMapper extends OrgDeptPOMapper {\n @Select( {\n \"<script>\",\n \"select\",\n \"id, org_id, name, tel_no, created_by, updated_by, created_at, updated_at\",\n \"FROM org_dept \",\n \"where org_id = #{orgId,jdbcType=INTEGER}\",\n \"<if test=\\\"text != null\\\">\",\n \" and LOWER(name) like LOWER(concat('%',#{text, jdbcType=VARCHAR},'%'))\",\n \"</if>\",\n \"</script>\"\n })\n @ResultMap( {\"com.inmind.automind.datalayer.mapper.OrgDeptPOMapper.BaseResultMap\"})\n List<OrgDeptPO> fuzzySearchByName(@Param(\"orgId\") Long orgId, @Param(\"text\") String text);\n}",
"Object countTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);",
"@Override\n\tpublic <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {\n\t\treturn monthlyTradingPersistence.findWithDynamicQuery(dynamicQuery);\n\t}",
"public SgfensBanco[] findByDynamicWhere(String sql, Object[] sqlParams) throws SgfensBancoDaoException;",
"public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }",
"Planning findByplanningId(long planningId);",
"public Department findByNameDepartment(String nameDepartment);",
"@Override\n\tpublic TypedQuery<Plan> constructQuery(Map<String, String> customQuery) {\n\t\tCriteriaBuilder cb = null;\n\t\ttry {\n\t\t\tcb = em.getCriteriaBuilder();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tCriteriaQuery<Plan> cq = cb.createQuery(Plan.class);\n\t\tRoot<Plan> plan = cq.from(Plan.class);\n\t\tPredicate existingpredicate = null;\n\t\tint predicateCount=0;\n\t\tPredicate masterPredicate=null;\n\n\t\ttry {\n\n\t\t\tfor (Map.Entry<String,String> entry : customQuery.entrySet()) \n\t\t\t{\n\t\t\t\tif(plan.get(entry.getKey().toString()) != null)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//Query for range values with comma(,) as delimiter\n\t\t\t\t\tif(entry.getValue().contains(\",\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tint minRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[0]);\n\t\t\t\t\t\tint maxRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[1]);\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texistingpredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t}\n\t\t\t\t\t//Query for equals values\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\texistingpredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t\t//cq.where(predicate);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcq.where(masterPredicate);\n\t\tTypedQuery<Plan> query = em.createQuery(cq);\n\t\treturn query;\n\t}",
"@Override\r\n\tpublic DeptBean[] findByDynamicWhere(String sql, Object[] sqlParams)\r\n\t\t\tthrows SQLException {\n\t\tList<Map<String, Object>> resultList = new ArrayList<Map<String,Object>>();\r\n\t\tdeptConn = this.getConnection();\r\n\t\tfinal String SQL = SQL_SELECT + \" WHERE \" + sql;\r\n\t\tresultList = this.executeQuery(deptConn, SQL, sqlParams);\r\n\t\tif (deptConn != null) {\r\n\t\t\tthis.closeConnection(deptConn);\r\n\t\t}\r\n\t\treturn MapToObject(resultList);\r\n\t}",
"public Cliente[] findByDynamicSelect(String sql, Object[] sqlParams) throws ClienteDaoException;",
"public Items[] findByDynamicSelect(String sql, Object[] sqlParams) throws ItemsDaoException;",
"List<Team> getTeamsFromApi(List<Long> teamIds);",
"@Override\r\n\tpublic SalesByDto querySalesBy(String OFFER_ID) {\n\t\tSalesByDto sales = new SalesByDto();\r\n\t\t\r\n\t\tMap<String, Object> map =new HashMap<String, Object>();\r\n\t\tmap.put(\"OFFER_ID\", OFFER_ID);\r\n\t\tList<SalesProDto> querySalesByID = salesMapper.querySalesByID(map);\r\n\t\tList<SalesProDto> querySalesPro = new ArrayList<SalesProDto>();\r\n\t\tfor (SalesProDto salesProDto : querySalesByID) {\r\n\t\t\t List<SalesProDto> querySalesByProID = salesMapper.querySalesByProID(salesProDto);\r\n\t\t\t if(querySalesByProID!=null){\r\n\t\t\t querySalesPro.addAll(querySalesByProID);}\r\n\t\t}\r\n\t\tquerySalesByID.addAll(querySalesPro);\r\n\t\tsales.setOFFER_ID(Integer.parseInt(OFFER_ID));\r\n\t\tsales.setProductList(querySalesByID);\r\n\t\treturn sales;\r\n\t}",
"@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType5(@Param(\"userId\") Long userId, @Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"public Usuario[] findByDynamicSelect(String sql, Object[] sqlParams) throws SQLException;"
] | [
"0.6052462",
"0.5999657",
"0.5947497",
"0.5899876",
"0.5691271",
"0.56675124",
"0.5582717",
"0.5563552",
"0.5483927",
"0.5438527",
"0.5421277",
"0.5396687",
"0.5291685",
"0.52594686",
"0.5250941",
"0.522694",
"0.5210747",
"0.52100646",
"0.52100646",
"0.51737225",
"0.51596344",
"0.51212007",
"0.51092523",
"0.5106194",
"0.5038366",
"0.5016565",
"0.4999984",
"0.49864897",
"0.4954819",
"0.49503",
"0.49399644",
"0.49214542",
"0.48650122",
"0.4851499",
"0.48364174",
"0.4824576",
"0.48162028",
"0.48008054",
"0.4798934",
"0.47944838",
"0.47923756",
"0.47755992",
"0.47611737",
"0.47367314",
"0.47327492",
"0.473126",
"0.4726558",
"0.47255948",
"0.47245735",
"0.47171423",
"0.47154236",
"0.4714483",
"0.4713107",
"0.47126058",
"0.4695805",
"0.4667394",
"0.466632",
"0.46643487",
"0.46611935",
"0.4654395",
"0.4651711",
"0.46416923",
"0.46325055",
"0.46150085",
"0.45941558",
"0.45914423",
"0.45903152",
"0.45898697",
"0.45786992",
"0.45769653",
"0.45534232",
"0.45278868",
"0.4522997",
"0.452065",
"0.4514857",
"0.45126483",
"0.4509664",
"0.45037997",
"0.44993556",
"0.44977573",
"0.44933808",
"0.4483306",
"0.44823366",
"0.4472534",
"0.44708544",
"0.4466922",
"0.44634187",
"0.44620517",
"0.4459173",
"0.44471496",
"0.4446254",
"0.44455776",
"0.44434196",
"0.44343388",
"0.44284007",
"0.44235384",
"0.44103584",
"0.43958527",
"0.43935493",
"0.43927994"
] | 0.67538697 | 0 |
Fetch count of records for TAlgmntSalesTeams. | public Object countTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {
LOGGER.info("=========== Count TAlgmntSalesTeam ===========");
final OperatorInfo operatorInfo = searchFilter.getOperatorInfo();
final TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();
final LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();
final JPAQuery jpaCountQuery = new JPAQuery("tAlgmntSalesTeamentity", tAlgmntSalesTeam);
if (tAlgmntSalesTeam.getTSalesTeam() == null) {
jpaCountQuery.bind(TSALESTEAM, new TSalesTeam());
} else {
LOGGER.info("tSalesTeam {}" + tAlgmntSalesTeam.getTSalesTeam());
jpaCountQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());
}
if (tAlgmntSalesTeam.getTAlgmnt() == null) {
jpaCountQuery.bind(TALGMNT, new TAlgmnt());
} else {
LOGGER.info("tAlgmnt {}" + tAlgmntSalesTeam.getTAlgmnt());
jpaCountQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());
}
jpaCountQuery.setJPAql(JPACOUNTQL);
jpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);
jpaCountQuery.setLogicalOperatorEnum(logOpEnum);
return genericDAO.findEntities(jpaCountQuery, -1, -1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}",
"public Object countTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTSalesTeam\", tSalesTeamList);\n\t}",
"public Object countTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {\n\n\t\tList<Object> tAlgmntList = new ArrayList<Object>();\n\t\ttAlgmntList.add(searchFilter.getEntityClass());\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTAlgmnt\", tAlgmntList);\n\t}",
"Object countTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);",
"@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}",
"public int numberOfTeams() {\n return noTeams;\n }",
"int getStudentResponseCount();",
"int getResultsCount();",
"int getResultsCount();",
"int countByExample(SysTeamExample example);",
"public int getTotalSalesCount(){\n return totalSalesCount;\n }",
"int getEducationsCount();",
"Long getAllCount();",
"public static Long getTotalRecordsCount(Long teamId) {\n Long totalCount = null;\n Connection con = null;\n try {\n con = JdbcConnection.getConnection();\n\n PreparedStatement pstmt = con.prepareStatement(SQLConstants.GET_RECORDS_TOTAL_COUNT);\n pstmt.setLong(1, teamId);\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n totalCount = rs.getLong(1);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return totalCount;\n }",
"public List<TAlgmntSalesTeam> findTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Find TAlgmntSalesTeams ===========\");\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\t\t//int maxresult = 3;\n\t\t//int index=0;\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\n\t\tfinal JPAQuery jpaQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\t\tjpaQuery.setJPAql(JPAQL);\n\t\tjpaQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaQuery.setLogicalOperatorEnum(logOpEnum);\n\t\treturn genericDAO.findEntities(jpaQuery, index, maxresult);\n\t}",
"int getDetailsCount();",
"int getDetailsCount();",
"@Test\n public void findLeadCountBySalesRep() {\n List<Object[]> leadCountBySalesRep = salesRepRepository.findLeadCountBySalesRep();\n assertEquals(2, leadCountBySalesRep.size());\n assertEquals(leadCountBySalesRep.get(0)[0],\"Pepe\");\n assertEquals(leadCountBySalesRep.get(0)[1],2L);\n assertEquals(leadCountBySalesRep.get(1)[0],\"Juan\");\n assertEquals(leadCountBySalesRep.get(1)[1],1L);\n }",
"public int findTotalDisplaySubjects() throws DAOException;",
"private Map<String, Integer> countFeedbacksForOrganization(List<Organization> organizations) {\n Map<String, Integer> amount = new HashMap<>();\n for (Organization org : organizations) {\n Integer count = feedbackServiceImpl.getAsListByOrganization(org.getName()).size();\n amount.put(org.getName(), count);\n }\n return amount;\n\n }",
"int getFeedItemSetsCount();",
"public long countRecords();",
"@Override\r\n\tpublic int[] getTicketCount() {\n\t\tint[] result = new int[2];\r\n\t\tList<FeeRecord> card = feeRecordDao.getCardRecords();\r\n\t\tList<FeeRecord> cash = feeRecordDao.getCashRecords();\r\n\t\tresult[0] = card.size();\r\n\t\tresult[1] = cash.size();\r\n\t\treturn result;\r\n\t}",
"@Override\n public int countAll() {\n\n Query qry = this.em.createQuery(\n \"select count(assoc) \" +\n \"from WorkToSubjectEntity assoc\");\n\n return ((Long) qry.getSingleResult()).intValue();\n }",
"public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }",
"public String getRecordCounts(String managerID);",
"int getSeasonShareCount();",
"List<KeyDevelopmentsStatsPerMonthVO> getNumberOfTransactionsPerMonth(final StatisticalDTO dto);",
"public int getCount() {\n\n if (team.size() <= 0)\n return 1;\n return team.size();\n }",
"int getStudentCount();",
"int countByExample(SmsEmployeeTeamExample example);",
"public int findTotalSubjects() throws DAOException;",
"public int getCountAllSecRoles();",
"public String getNumberOfSaleUsers(String saleCodeS)\r\n\t{\r\n\t\tResultSet rs = null;\r\n\t\tArrayList<String> arr = new ArrayList<>();\r\n\t\tString usersCount = \"0\";\r\n\t\t\r\n\t\tString query = \"select count(*) FROM salesReport where saleCode = ?\";\r\n\t\tarr.add(saleCodeS);\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClientUI.chat.accept(\"\");\r\n\t\t\trs = ChatClient.selectWithParameters(query, arr);\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tusersCount = rs.getString(\"count(*)\");\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error : MarketingManagerReports : client server problem\");\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn usersCount;\r\n\t}",
"public int selectListCount() {\n\t\tConnection conn = getConnection();\n\t\tint listCount = new SaleDao().selectListCount(conn);\n\t\tclose(conn);\n\t\treturn listCount;\n\t}",
"int getCustomersCount();",
"public int getDataSetCount() {\n EntityManager em = getEntityManager();\n try {\n CriteriaQuery cq = em.getCriteriaBuilder().createQuery();\n Root<DataSet> rt = cq.from(DataSet.class);\n cq.select(em.getCriteriaBuilder().count(rt));\n Query q = em.createQuery(cq);\n return ((Long) q.getSingleResult()).intValue();\n } finally {\n em.close();\n }\n }",
"public int queryLoginSuccessCount(Map<String, Object> dataBusMap, String optFlowNum,\r\n\t\t\tSessionStaff sessionStaff) throws Exception {\n\t\tDataBus db = ServiceClient.callService(dataBusMap,\r\n\t\t\t\tPortalServiceCode.QUERY_LOGIN_SUCCESS_COUNT,\r\n\t\t\t\toptFlowNum, sessionStaff);\r\n\t\tint count = 0;\r\n\t\t// 服务层调用与接口层调用都成功时,返回列表;否则返回0\r\n\t\tif (ResultCode.R_SUCCESS.equals(StringUtils.defaultString(db\r\n\t\t\t\t.getResultCode()))) {\r\n\t\t\tMap<String, Object> rMap = db.getReturnlmap();\r\n\t\t\t//System.out.println(\"----------loginSuccessCount:\"+rMap.get(\"loginSuccessCount\"));\r\n\t\t\tString result = null;\r\n\t\t\tif(rMap.containsKey(\"loginSuccessCount\")) {\r\n\t\t\t\tresult = rMap.get(\"loginSuccessCount\").toString();\r\n\t\t\t}\r\n\t\t\tif(result == null || \"\".equals(result)){\r\n\t\t\t\treturn count;\r\n\t\t\t}\r\n\t\t\tcount = Integer.parseInt(result);\r\n\t\t\t//判断是否第一次登录并且为初始密码,是则返回1 否则返回0\r\n\t\t\tif(count == 1){\r\n\t\t\t\tString staffPwd = (String)dataBusMap.get(\"password\");\r\n\t\t\t\tif(initPwd.equals(staffPwd)){\r\n\t\t\t\t\tcount = 1;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tcount = 0;\r\n\t\t\t\t}\r\n\t\t\t}else {\r\n\t\t\t\tcount = 0;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"@Override\n\tpublic int countTeam() {\n\t\treturn 0;\n\t}",
"int getFundsCount();",
"int getFundsCount();",
"@Transactional(readOnly = true)\n public long countByCriteria(SygTypeSourceFinancementCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<SygTypeSourceFinancement> specification = createSpecification(criteria);\n return sygTypeSourceFinancementRepository.count(specification);\n }",
"public int countResults() \n {\n return itsResults_size;\n }",
"@Override\n public long getTotalDoctors() {\n List<Long> temp=em.createNamedQuery(\"DoctorTb.getTotalDoctors\").getResultList();\n long count=0;\n for(long i:temp)\n {\n count=i;\n }\n return count;\n }",
"public static int countOfTeachers() {\n\n int count = 0;\n\n String sql = \"SELECT COUNT(teacher_id) AS count FROM teachers\";\n\n try (Connection connection = Database.getConnection();\n Statement statement = connection.createStatement();\n ResultSet set = statement.executeQuery(sql)) {\n\n if (set.next())\n count = set.getInt(\"count\");\n\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n return count;\n }",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"int getDataCount();",
"@Test\n public void learnToQueryForTotalCount() throws Exception {\n SqlSession session = null;\n\n // TODO: get a Koan06Mapper object\n Koan06Mapper mapper = null;\n\n // TODO: call a method on the mapper to get the count of number of countries\n // in the sakila db\n int totalCountries = 0;\n\n assertEquals(109, totalCountries);\n\n // REMINDER: be sure to close your session ...\n }",
"int getListSnIdCount();",
"int getActAmountCount();",
"int getTotalCount();",
"public int getNumSales(){\r\n return sales;\r\n }",
"int getContactListCount();",
"int getContactListCount();",
"int getContactListCount();",
"int getContactListCount();",
"int getSessionCount();",
"public Integer getdepartment(String OrgId, String ClientId, String salesregionId) {\n String sqlQuery = \"\";\n Integer count = 0;\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT count(*) as count ,C_SALESREGION.C_SALESREGION_ID as defregion FROM C_SALESREGION WHERE C_SALESREGION.AD_Org_ID IN(\"\n + OrgId + \") AND C_SALESREGION.AD_Client_ID IN(\" + ClientId\n + \") AND C_SALESREGION.isdefault='Y' AND C_SALESREGION.C_SALESREGION_ID IN(\"\n + salesregionId + \") group by C_SALESREGION_ID\";\n st = conn.prepareStatement(sqlQuery);\n rs = st.executeQuery();\n if (rs.next()) {\n count = rs.getInt(\"count\");\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return count;\n }",
"public int total(){\n int rows = 0;\n \n try {\n rs = stmt.executeQuery \n (\"SELECT * FROM JEREMY.TICKET\");\n while (rs.next()) {rows++;}\n System.out.println(\"There are \"+ rows + \" record in the table\"); \n \n } catch (Exception e) {}\n \n return rows;\n }",
"public long fetchCustomersBasedOnMSISDN(OfferMgmtVO offerMgmtVO)\n\t\t\tthrows MISPException {\n\n\t\tlogger.entering(\"fetchCustomersBasedOnMSISDN\", offerMgmtVO);\n\n\t\tlong customerCount = 0;\n\n\t\ttry {\n\n\t\t\tcustomerCount = this.customerSubsManager\n\t\t\t\t\t.fetchCustomersBasedOnMSISDN(offerMgmtVO);\n\n\t\t} catch (DBException exception) {\n\n\t\t\tlogger.error(\n\t\t\t\t\t\"An exception occured while retrieving the customers for an offer\",\n\t\t\t\t\texception);\n\t\t\tthrow new MISPException(exception);\n\t\t}\n\n\t\tlogger.exiting(\"fetchCustomersBasedOnMSISDN\", customerCount);\n\n\t\treturn customerCount;\n\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(StudentGroupCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<StudentGroup> specification = createSpecification(criteria);\n return studentGroupRepository.count(specification);\n }",
"Long recordCount();",
"public static int getCountofPeople(){\n int training_set = 0;\n \n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT count(*) FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n if (rs.next()) {\n training_set = rs.getInt(1);\n }\n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return training_set;\n }",
"@Override\r\n\tpublic List<NumBookedSeat> countAllSeats(Performance pfm) {\n\t\treturn ticketDao.selectCntAllSeats(pfm);\r\n\t}",
"@Override\n // report number of players on a given team (or all players, if null)\n\tpublic int numPlayers(String teamName) {\n\n int numPlayers = 0;\n\n\n if (teamName == null) {\n\n for (int i = 0; i < (stats.keySet()).toArray().length; i++) {\n\n numPlayers++;\n\n }\n\n return numPlayers;\n\n }\n\n else {\n\n Collection<SoccerPlayer> soccerPlayers = stats.values();\n\n for (SoccerPlayer sp: soccerPlayers) {\n\n if (sp.getTeamName().equals(teamName)){\n\n numPlayers++;\n }\n }\n\n return numPlayers;\n\n }\n\n\n\t}",
"public String getStatsOfTeams(){\n\n String res = \"\";\n\n if (teams.size() <= 0){\n return \"No team registered in tournament\";\n }\n\n for(int num=0; num<teams.size(); num++)\n {\n SoccerTeam team = teams.get(num);\n res += team.toString() + \"\\n\";\n }\n return res;\n }",
"public int countByDataSetId(long dataSetId);",
"@Test\r\n public void teamListSizeTest(){\r\n int listSize = 5;\r\n \r\n\r\n assertEquals(\"expected results = \" + listSize, listSize, extractor.extractXDriversOrTeams(listSize, \"table.msr_season_team_results\", \"td.msr_team\").size());\r\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(TabelaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Tabela> specification = createSpecification(criteria);\n return tabelaRepository.count(specification);\n }",
"public int countByCompanyId(long companyId);",
"int countByCompanyId(int companyId);",
"List<PlayedQuestion> getPlayedQuestionsCount();",
"int getVulnerabilityReportsCount();",
"Long getCountTotalRecords(Long transmissionId);",
"public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}",
"public long fetchCustomersBasedOnOffer(OfferMgmtVO offerMgmtVO)\n\t\t\tthrows MISPException {\n\n\t\tlogger.entering(\"fetchCustomersBasedOnOffer\", offerMgmtVO);\n\n\t\tlong customerCount = 0;\n\n\t\ttry {\n\n\t\t\tcustomerCount = this.customerSubsManager\n\t\t\t\t\t.fetchCustomersBasedOnOffer(offerMgmtVO);\n\n\t\t} catch (DBException exception) {\n\n\t\t\tlogger.error(\n\t\t\t\t\t\"An exception occured while retrieving the customers for an offer\",\n\t\t\t\t\texception);\n\t\t\tthrow new MISPException(exception);\n\t\t}\n\n\t\tlogger.exiting(\"fetchCustomersBasedOnOffer\", customerCount);\n\n\t\treturn customerCount;\n\n\t}",
"int getContactCount();",
"public long count() {\n return getDevStudioRepository().count();\n }",
"int getNumberOfResults();",
"@Override\n public int getCountByCldDTLNO(Map<String, String> params) {\n \n return queryForInt(\"Tkwh.getCount\", params);\n }",
"public Long count(DatasetItem dataset) {\n\n logTrace(\"Getting Number of Transactions in Dataset with query :: \" + COUNT_QUERY);\n\n Long numResults = (Long)getHibernateTemplate().find(\n COUNT_QUERY, dataset.getId()).get(0);\n return numResults;\n }",
"int getUsersCount();",
"int getUsersCount();",
"int getUsersCount();",
"int findAllCount() ;",
"public int size() {\r\n return team.size();\r\n }",
"@GetMapping(path = \"/count\")\r\n\tpublic ResponseEntity<Long> getCount() {\r\n\t\tLong count = this.bl.getCount();\r\n\t\treturn ResponseEntity.status(HttpStatus.OK).body(count);\r\n\t}",
"int getListCount();",
"public String fetchCountMyData(User loginUser);",
"int getExperiencesCount();",
"int getRecordCount();",
"public List<Sale> saleListArtistCount() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT name,\\n\"\n + \"COUNT (*) \\n\"\n + \"FROM disquera.artist JOIN disquera.sale ON artist.id_artist = sale.id_artist\\n\"\n + \"GROUP BY artist.name ORDER BY artist.name\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.album on sale.id_album=album.id_album\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n\n newSale.setArtistName(result.getString(1));\n newSale.setCount(result.getInt(2));\n //System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }",
"public int getStudentListSize() throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"select count(*) from \" + Student.class.getName();\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n Integer countResult = (Integer) list.get(0);\n return countResult.intValue();\n } finally {\n log.debug(\"finished getStudentListSize()\");\n }\n }",
"@Test\r\n\tpublic void loadTeams() {\r\n\t\tSet<Team> response = null;\r\n\t\tresponse = service.loadTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: loadTeams\r\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(EducationalRecordCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EducationalRecord> specification = createSpecification(criteria);\n return educationalRecordRepository.count(specification);\n }",
"public List<Sale> saleListGenreCount() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT musical_genre, COUNT (*) FROM disquera.genre \\n\"\n + \"JOIN disquera.sale ON genre.id_genre = sale.id_genre \\n\"\n + \"GROUP BY genre.musical_genre ORDER BY genre.musical_genre\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.album on sale.id_album=album.id_album\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n\n newSale.setGenre(result.getString(1));\n newSale.setCount(result.getInt(2));\n //System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }",
"public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\ttSalesTeamList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTSalesTeam\", tSalesTeamList, index, maxresult);\n\t}"
] | [
"0.6935755",
"0.68690693",
"0.6683259",
"0.6387172",
"0.5844456",
"0.58374065",
"0.5770847",
"0.57428277",
"0.57428277",
"0.57106286",
"0.56719315",
"0.56566703",
"0.5649943",
"0.5638887",
"0.56326246",
"0.56039435",
"0.56039435",
"0.5578111",
"0.5572579",
"0.5545355",
"0.5491627",
"0.54815376",
"0.54451054",
"0.543504",
"0.5434747",
"0.54191643",
"0.5413754",
"0.540867",
"0.54056793",
"0.53977245",
"0.53881097",
"0.538737",
"0.5383611",
"0.5379723",
"0.5374769",
"0.53725296",
"0.5372093",
"0.5359948",
"0.5357326",
"0.53555614",
"0.53555614",
"0.5338399",
"0.53203803",
"0.53184444",
"0.53050727",
"0.5300959",
"0.5300959",
"0.5300959",
"0.5300959",
"0.5300959",
"0.5286922",
"0.5279686",
"0.52535963",
"0.5244633",
"0.5243658",
"0.52406967",
"0.52406967",
"0.52406967",
"0.52406967",
"0.5235643",
"0.5232371",
"0.5225259",
"0.52199215",
"0.5214688",
"0.5212191",
"0.52116597",
"0.5207975",
"0.5204538",
"0.51955336",
"0.5188688",
"0.51805735",
"0.5180075",
"0.5170237",
"0.5166661",
"0.51617056",
"0.5158275",
"0.5154199",
"0.51455945",
"0.51414967",
"0.5141429",
"0.5130878",
"0.5130063",
"0.5127572",
"0.51206726",
"0.51194155",
"0.51194155",
"0.51194155",
"0.5110582",
"0.5110081",
"0.5109629",
"0.51079446",
"0.510201",
"0.5101024",
"0.5098144",
"0.509434",
"0.5088762",
"0.5085693",
"0.5083457",
"0.50792956",
"0.5072145"
] | 0.7094778 | 0 |
Retrieve TAlgmntSalesTeam based on given search criteria using JPA named Query. The search criteria is of TSalesTeam type. | public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {
final PaginationInfo paginationInfo = searchFilter.getPaginationInfo();
final TSalesTeam tSalesTeam = searchFilter.getEntityClass();
List<Object> tSalesTeamList = new ArrayList<Object>();
tSalesTeamList.add(searchFilter.getEntityClass());
final int maxresult = paginationInfo.getMaxRows();
final int index = paginationInfo.getStartIndex();
return genericDAO.findEntitiesByNamedQueryMultiCond("FindTAlgmntSalesTeamByTSalesTeam", tSalesTeamList, index, maxresult);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<TAlgmntSalesTeam> findTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Find TAlgmntSalesTeams ===========\");\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\t\t//int maxresult = 3;\n\t\t//int index=0;\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\n\t\tfinal JPAQuery jpaQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\t\tjpaQuery.setJPAql(JPAQL);\n\t\tjpaQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaQuery.setLogicalOperatorEnum(logOpEnum);\n\t\treturn genericDAO.findEntities(jpaQuery, index, maxresult);\n\t}",
"public TAlgmntSalesTeam findTAlgmntSalesTeamById(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"find TAlgmntSalesTeam instance with TAlgmntSalesTeamId: \" + tAlgmntSalesTeamId);\n\t\treturn genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t}",
"Team findByName(String name);",
"TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);",
"public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tList<Object> tAlgmntList = new ArrayList<Object>();\n\t\ttAlgmntList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTAlgmnt\", tAlgmntList, index, maxresult);\n\t}",
"public List<TeamVo> query(@Valid TeamQuery teamQuery) {\n\t\tList<TeamVo> list = null;\n\t\tlist = teamMapper.queryTeamVo(teamQuery.getCompanyid(), teamQuery.getDepartmentid());\n\t\treturn list;\n\t}",
"SysTeam selectByPrimaryKey(Integer teamId);",
"SmsEmployeeTeam selectByPrimaryKey(String id);",
"TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);",
"TeamResultWrapper findTeamsByMember(String personId,\n String partOfGroupname, int offset, int pageSize);",
"public Object countTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Count TAlgmntSalesTeam ===========\");\n\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\t\tfinal JPAQuery jpaCountQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaCountQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaCountQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaCountQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaCountQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\n\t\tjpaCountQuery.setJPAql(JPACOUNTQL);\n\t\tjpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaCountQuery.setLogicalOperatorEnum(logOpEnum);\n\n\t\treturn genericDAO.findEntities(jpaCountQuery, -1, -1);\n\t}",
"@Override\r\n\tpublic TeamPO findTeamByName(String name) {\n\t\treturn teams.findTeamByShortName(name);\r\n\t}",
"public Object countTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTSalesTeam\", tSalesTeamList);\n\t}",
"public TAlgmntSalesTeam updateTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Update TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.update(tAlgmntSalesTeam);\n\t}",
"@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}",
"Team findById(Long id);",
"List<SysTeam> selectByExample(SysTeamExample example);",
"public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Create TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.store(tAlgmntSalesTeam);\n\t}",
"public User getUserFromTeam(Team team){\n String sql = \"SELECT * FROM trainer tr INNER JOIN Team T ON tr.userid = T.userid WHERE T.teamid = ?\";\n User user = jdbc.queryForObject(sql, new UserDaoImpl.UserMapper(), team.getId());\n System.out.print(user);\n return user;\n }",
"public ResultSet getTeamInfo(String teamsname) throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT * FROM Team WHERE teamName = '\" + teamsname + \"'\");\n\t\t\n\t\treturn resultSet;\n\t\n\t}",
"TeamResultWrapper findAllTeamsByMember(String personId, int offset,\n int pageSize);",
"public boolean findTeam(String teamName) throws SQLException {\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:sqlite:users\");\n\t\tStatement stmt = conn.createStatement();\n\t\tString SQL = \"select * from leaguestandings where TeamName = '\" + teamName + \"';\";\n\n\t\tResultSet rset = stmt.executeQuery(SQL);\n\n\t\tif (rset.next()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public VwTeams get(int teamId)\n\t{\n\t\tVwTeams [] results = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tresults = dao.findWhereTeamIdEquals(teamId);\t\t\t\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results.length == 0 ? null : results[0];\n\t}",
"List<Team> findTeamsByUserId(UserId userId);",
"public SoccerTeam getTeam(String teamName) throws TeamNotFoundException {\n\n for (int i = 0; i < this.teams.size(); i++) {\n SoccerTeam team = this.teams.get(i);\n\n if (team.getName().equals(teamName)){\n return team;\n }\n }\n throw new TeamNotFoundException(\"Team that you are searching for is not found\");\n }",
"@Override\n\tpublic <T> TypedQuery<T> createNamedQuery(String name, Class<T> resultClass) {\n\t\treturn null;\n\t}",
"public List findByNamedQuery(String queryName);",
"List<TAlgmntBussRule> getTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);",
"List<SmsEmployeeTeam> selectByExample(SmsEmployeeTeamExample example);",
"Query getNamedQuery(final String query);",
"public interface IOrgTeamService extends IBaseService {\n\n List<Map<String, Object>> findByCondition(OrgTeamBean searchBean, Page page);\n\n void addOrgTeam(CfsOrgTeam orgTeam);\n\n void updateOrgTeam(CfsOrgTeam orgTeam);\n\n CfsOrgTeam getOrgTeam(Long id);\n\n\tList<CfsOrgTeam> find(OrgTeamBean searchBean, Page page);\n\n OrganizationBean getByTeamId(Long teamId);\n\n\tCfsOrgTeam getOrgTeamById(Long id);\n}",
"Team getMyTeam();",
"public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }",
"public Team get(Long id);",
"public Object countTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {\n\n\t\tList<Object> tAlgmntList = new ArrayList<Object>();\n\t\ttAlgmntList.add(searchFilter.getEntityClass());\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTAlgmnt\", tAlgmntList);\n\t}",
"String getNamedQuery();",
"List<Team> findAll();",
"public Department findByNameDepartment(String nameDepartment);",
"private static void namedQuery(Session session) {\n\t\tint departmentId=300;\n\t\tQuery query=session.getNamedQuery(DtoConstants.EMPLOYEE_DEP_ID_NQ);\n\t\tquery.setInteger(DtoConstants.DEPARTMENT_ID, departmentId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tList<Employee> empList=(List<Employee>)query.list();\n\t\tint i=1;\n\t\tSystem.out.println(\"Named Query result for query with department id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t\t\n\t\tint employeeId=5;\n\t\tquery=session.getNamedQuery(DtoConstants.EMPLOYEE_ID_NQ);\n\t\tquery.setInteger(DtoConstants.EMP_ID, employeeId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tempList=(List<Employee>)query.list();\n\t\ti=1;\n\t\tSystem.out.println(\"Named Query result for query with employee id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t\t\n\t\temployeeId=10;\n\t\tquery=session.getNamedQuery(DtoConstants.EMPLOYEE_ID_NNQ);\n\t\tquery.setInteger(DtoConstants.EMP_ID, employeeId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tempList=(List<Employee>)query.list();\n\t\ti=1;\n\t\tSystem.out.println(\"Named Native Query result for query with employee id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t}",
"private static Team getTeam(Connection con,Long teamId) {\n\n Team team = null;\n\n String query = SQLConstants.GET_TEAM_BY_TEAM_ID;\n\n try {\n team = new Team();\n //Connection con = JdbcConnection.getConnection();\n PreparedStatement pstmt = con.prepareStatement(query);\n pstmt.setLong(1, teamId);\n\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n team.setId(rs.getLong(\"id\"));\n team.setName(rs.getString(\"name\"));\n team.setDescribe(rs.getString(\"describe\"));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return team;\n\n }",
"public static int findByName(String teamName) throws DALException {\n\n\t\t\t\t\tConnection cnx = null;\n\t\t\t\t\tPreparedStatement pstmt = null;\n\t\t\t\t\tResultSet rs = null;\n\t\t\t\t\tint idTeam = 0;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Connection DB\n\t\t\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\t\t\tpstmt = cnx.prepareStatement(SEARCH_NAME_TEAM);\n\t\t\t\t\t\tpstmt.setString(1, teamName);\n\t\t\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (rs.next()) {\n\t\t\t\t\t\t\tidTeam = rs.getInt(\"idTeams\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\tthrow new DALException(\"Problem - search teams By Name - TeamDAO - Request : \"+pstmt+ \" \" + e.getMessage());\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\t\t\trs.close();\n\t\t\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\t\t\tcnx.close();\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\treturn idTeam;\n\n\t\t\t\t}",
"public Team(String name) {\n this.name = name;\n }",
"public void setTeamName(String name) {\n\t\tteamName = name;\n\t}",
"@WebMethod public List<Team> getAllTeams();",
"public UserQueryEntity getByName(String userName);",
"private Team getTeam(String teamName) {\n return scoreboard.getTeam(trimString(teamName));\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/teamsForUser/{name}\")\n public JSONObject getTeamForUserPage(@PathVariable String name) {\n JSONArray teamJsonArray = getAllTeamsForUserPage();\n JSONObject jsonObject = new JSONObject();\n\n for (int i = 0; i < teamJsonArray.size(); i++) {\n if (teamJsonArray.get(i).toString().contains(name)) {\n return (JSONObject) teamJsonArray.get(i);\n }\n }\n return jsonObject;\n }",
"TeamDTO findOne(Long id);",
"public interface TeamService {\n\n /**\n * Save a team.\n *\n * @param teamDTO the entity to save\n * @return the persisted entity\n */\n TeamDTO save(TeamDTO teamDTO);\n\n /**\n * Get all the teams.\n *\n * @param pageable the pagination information\n * @return the list of entities\n */\n Page<TeamDTO> findAll(Pageable pageable);\n\n /**\n * Get the \"id\" team.\n *\n * @param id the id of the entity\n * @return the entity\n */\n TeamDTO findOne(Long id);\n\n /**\n * Delete the \"id\" team.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n\n\tPage<TeamDTO> findByTeamHeadUserLoginIsCurrentUser(Pageable pageable);\n\tPage<TeamDTO> findByActiveAndTeamHeadUserLogin(boolean isActive, String teamHeadLogin, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdNotInAndTeamHeadUserLoginNot(boolean isActive, String teamHeadLogin, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdInAndTeamHeadUserLoginNot(boolean isActive, String teamHeadLogin, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdNotInAndTeamHeadUserLogin(boolean isActive, String teamHeadLogin, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdNotIn(boolean isActive, String userLogin, Pageable pageable);\n\tPage<TeamDTO> findByActive(boolean isActive, Pageable pageable);\n\tPage<TeamDTO> findByActiveAndIdInAndTeamHeadUserLogin(boolean isActive, String userLogin, String teamHeadUserLogin, Pageable pageable);\n}",
"public interface TeamService {\n Teams getAllTeams();\n Team getTeamById(int id);\n Teams getSelectedTeams(int[] teamList);\n}",
"public Department getByEmail(String name) {\n\t return (Department) entityManager.createQuery(\n\t \"from User where name = :name\")\n\t .setParameter(\"name\", name)\n\t .getSingleResult();\n\t }",
"public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}",
"@SuppressWarnings({\"unchecked\"})\n Name findNameByIdPersonDtSysTsQuery(int idPerson, Date dtSysTsQuery);",
"public Team getTeamByName(String name) {\n\t\tTeam t = null;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tResultSet rs = null;\n\t\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tList<Player> players = new ArrayList<Player>();\n\t\t\tif (rs.next()) {\n\t\t\t\tplayers = formatPlayers(getPlayersByTeamId(rs.getInt(1)));\n\t\t\t\tt = new Team(players, rs.getString(2), rs.getString(3), rs.getString(4), rs.getDate(5));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}",
"List<TypeTreatmentPlanStatuses> search(String query);",
"public StudentDto findByName(String name) \n\t{\n\n\t\tSession session = factory.openSession();\n\t\tQuery<StudentDto> query = session.createQuery(\"from StudentDto where name = :n\");\n\t\tquery.setParameter(\"n\", name);\n\t\tStudentDto studentDto = query.uniqueResult();\n\t\tsession.close();\n\n\t\treturn studentDto;\n\t}",
"interface UserRepository extends JpaRepository<User, Long> {\n\n Collection<User> findByUserNumber(String userNumber);\n Collection<User> findByFirstName(String firstName);\n Collection<User> findByLastName(String value);\n Collection<User> findByFirstNameAndLastName(String firstName, String lastName);\n\n @Query(\"select u from #{#entityName} u where u.team = ?1\")\n List<User> findAllByTeam(String teamName);\n\n Collection<WorkItem> findByWorkItems(User user);\n}",
"public void setTeamName(String teamName) {\n\t\tthis.teamName = teamName;\n\t}",
"@Query(\"select i from Product i where name=:name\")\r\n public List<Product> findByQuery(@Param(\"name\")String netto);",
"public List<TicketSite> getTicketSitesOfATeam(String teamId);",
"public void test_findByNamedOfQuery() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findByNamedOfQuery(FIND_ALL_PERSON);\r\n\t\tassertNotNull(personList);\r\n\t\tassertEquals(ALL_PERSON_COUNT, personList.size());\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 2:\r\n\t\tpersonList = this.persistenceService.findByNamedOfQuery(FIND_PERSON_BY_NAME_EXT, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 3:\r\n\t\tpersonList = this.persistenceService.findByNamedOfQuery(FIND_PERSON_BY_NAME, getParamMap(1));\r\n\t\tassertForFindGoogle(personList);\r\n\t}",
"public interface TeamUserService extends CrudService<TeamUser, Long> {\n\n List<User> findByTeam(Team team);\n}",
"@Override\n\tpublic Query createNamedQuery(String name) {\n\t\treturn null;\n\t}",
"public static ArrayList<Team> findTeamProject() throws DALException {\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tArrayList<Team> listTeams = new ArrayList<>();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(LIST_TEAMS_PROJECTS);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\t// For each team\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tTeam team = new Team();\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"Teams_IdTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"Teams_name\"));\n\t\t\t\t\tteam.setIdProject(rs.getInt(\"idProjects\"));\n\t\t\t\t\tteam.setNameProject(rs.getString(\"nameProject\"));\n\t\t\t\t\tlistTeams.add(team);\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\n\t\t\t\tthrow new DALException(\"Problem - listTeamHisProject - TeamDAO - Request : \"+ pstmt+ \" \" + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn listTeams;\n\n\t\t}",
"protected List findByNamedQuery(Class clazz, String namedQuery) {\r\n try {\r\n Query q = entityManager.createNamedQuery(clazz.getSimpleName() + \".\" + namedQuery);\r\n return q.getResultList();\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }",
"public void setTeamId(String teamId) {\r\n\t\tthis.teamName = teamId;\r\n\t}",
"public String getTeamName() {\r\n return teamName;\r\n }",
"public void setTeam(String team) {\r\n\t\tTeam = team;\r\n\t}",
"public void deleteTAlgmntSalesTeam(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"=========== Delete TAlgmntSalesTeam ===========\");\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t\tgenericDAO.remove(tAlgmntSalesTeam);\n\t}",
"public Team selectTeam() {\r\n \r\n String[] list = new String[controller.getTeams().size()];\r\n for (int i = 0; i < controller.getTeams().size(); i++) {\r\n list[i] = controller.getTeams().get(i).getName();\r\n }\r\n\r\n JComboBox cmbOption = new JComboBox(list);\r\n int input = JOptionPane.showOptionDialog(null, cmbOption, \"Select Team that your like Delete\",JOptionPane.DEFAULT_OPTION,JOptionPane.QUESTION_MESSAGE, null, null, null);\r\n if(input==-1){\r\n return null;\r\n }\r\n Team teamAux = controller.searchTeam((String) cmbOption.getSelectedItem());\r\n return teamAux;\r\n }",
"public Departmentdetails getDepartmentByName(String departmentName);",
"@Override\r\n\tpublic List<SalesDto> queryAllSales() {\n\t\treturn salesMapper.queryAllSales();\r\n\t}",
"@Override\n public Team getTeamById(int id){\n try {\n String sql = \"SELECT * FROM Team WHERE Team.teamid = ?\";\n Team team = jdbc.queryForObject(sql, new TeamMapper(), id);\n team.setUser(getUserFromTeam(team));\n return team;\n }catch(DataAccessException ex){\n return null;\n }\n }",
"List<Seller> findByDepartment(Department department);",
"List<Seller> findByDepartment(Department department);",
"public interface FootballerStatsService {\n FootballerStats findByGameWeek_GameWeekNumberAndFootballers_FootballerLastName(Integer gameWeekNumber, String footballerLastName);\n}",
"public List<String> getSports(String name){\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select sports_name from team where delegation_name= '\" + name + \"'\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tString team = rst.getString(\"sports_name\");\r\n\t\t\t\tlist.add(team);\r\n\t\t\t}\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"public Service consultName(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",name));\r\n \treturn (Service)criteria.list().get(0);\r\n }",
"public Cursor teamSpinnerResult( String spinteam) {\n sqLiteDB = teamDB.getReadableDatabase();\n String siteItemResultQuery = \"SELECT \" + TeamsContents.TEAM_TID +\n \" FROM \" + TeamsContents.TEAM_TABLE +\n \" where \" + TeamsContents.TEAM_LEADER + \" LIKE '%\" + spinteam + \"%'\";\n\n Cursor cusAllSite = sqLiteDB.rawQuery( siteItemResultQuery, null );\n if (cusAllSite.moveToFirst()) {\n do {\n cusAllSite.getString( 0 );\n } while (cusAllSite.moveToNext());\n }\n cusAllSite.moveToFirst();\n sqLiteDB.close();\n return cusAllSite;\n }",
"public List<Team> getAllTeams() { \r\n\t\t\tif(teams==null)\t{\r\n\t\t\t\tteams=dao.listTeams(); //LIST\t\t\t\r\n\t\t\tfor(Team atemp:teams){\t\t\tthis.mapTeam.put(atemp.getTeam(), atemp);\t\t}\r\n\t\t\t\t}\r\n\t\t\treturn teams;\r\n\t\t}",
"@Override\n\tpublic List<ProjectTeamBean> selectProjectTeamName(String word) {\n\t\treturn null;\n\t}",
"@Override\n public List<Team> getTeamsOfUser(int userid){\n\t\tfinal String select_teams_of_user = \"SELECT * FROM Team WHERE userid = ?\";\n\t\tList<Team> teams = jdbc.query(select_teams_of_user, new TeamMapper(), userid);\n\t\taddUsertoTeams(teams);\n\t\treturn teams;\n\t}",
"@Override\n\tpublic SaleDepartmentEntity querySaleDepartmentByCode(String destOrgCode) {\n\t\treturn null;\n\t}",
"@Query(\n \"Select t FROM Ticket t WHERE t.responsible IS NOT NULL \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType4(@Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"@Override\n public Collection<Employee> queryByNameAndEmail( String name, String email, boolean isRemoved ) {\n final String nameLikeSql = name + \"%\";\n final String mailLikeSql = email + \"%\";\n\n return em.createNamedQuery( \"Employee.findByNameAndEmail\", Employee.class )\n .setParameter( \"name\", nameLikeSql )\n .setParameter( \"email\", mailLikeSql )\n .setParameter( \"removed\", isRemoved ).getResultList();\n\n }",
"public static void main(String[] args) {\n\r\n\t\tEntityManager em = PersistanceManager.INSTANCE.getEntityManager();\r\n\t\tSystem.out.println(\"Print ALL\");\r\n\t\tQuery query = em.createQuery(\"FROM Employee e\");\r\n\t\tArrayList<Employee> result = (ArrayList<Employee>) query.getResultList();\r\n\t\tfor (Employee current : result)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print id = 3\");\r\n\t\tQuery query1 = em.createQuery(\"FROM Employee e where e.id=3\");\r\n\t\tArrayList<Employee> result1 = (ArrayList<Employee>) query1.getResultList();\r\n\t\tfor (Employee current : result1)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print Named Query \");\r\n\t\tArrayList<Employee> result2 = (ArrayList<Employee>) em.createNamedQuery(\"Employee.searchAll\").setParameter(\"empName\", \"D%\")\r\n\t\t\t\t.getResultList();\r\n\t\tfor (Employee current : result2)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t}",
"@Override\r\n\tpublic List findTeamList(AssetRptLccUsDeptCommonDTO assetRptLccUsDeptCommonDTO, User loginUser) {\n\t\treturn null;\r\n\t}",
"public static Team findById(int id) throws DALException {\n\n\t\t\tConnection cnx = null;\n\t\t\tPreparedStatement pstmt = null;\n\t\t\tResultSet rs = null;\n\t\t\tTeam team = new Team();\n\n\t\t\ttry {\n\t\t\t\t// Connection DB\n\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\tpstmt = cnx.prepareStatement(SEARCH_ID_TEAM);\n\t\t\t\tpstmt.setInt(1, id);\n\t\t\t\trs = pstmt.executeQuery();\n\n\t\t\t\tif (rs.next()) {\n\n\t\t\t\t\tteam.setIdTeam(rs.getInt(\"idTeams\"));\n\t\t\t\t\tteam.setName(rs.getString(\"name\"));\n\t\t\t\t\t\n\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tthrow new DALException(\"Problem - search teams By Id - TeamDAO - Request :\"+ pstmt+ \" Team: \" + team + e.getMessage());\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\trs.close();\n\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\tcnx.close();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn team;\n\n\t\t}",
"List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);",
"@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}",
"public List findByNamedQuery(String queryName, String[] paramNames, Object[] paramValues);",
"public String getHomeTeam();",
"@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType1(@Param(\"userId\") Long userId,@Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"List<Object[]> findValuebyAlignInfoAndRuleName(Long algmntId,Long bussUnitId,Long salesTeamId,String BussRuleName);",
"public interface TeamBLS {\n\n /**\n * 获取TeamListActivity显示内容\n *\n * @param context\n * @return\n */\n public List<TeamConferenceVo> getTeamConference(Context context);\n\n /**\n * 获取TeamActivity的顶层显示内容\n *\n * @param context\n * @param abbr\n * @return\n */\n public TeamInfoVo getTeamInfo(Context context,String abbr);\n\n public List<TeamSeasonInfoVo> getTeamSeasonTotal(Context context,String abbr);\n}",
"public ResultSet getTeams() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}",
"public Student retrieveAllStudentByTeamRole(int teamId, int role) {\r\n\r\n\t\tStudent student = null;\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM students \"\r\n\t\t\t\t+ \"WHERE team_id = \" + teamId + \" AND role_id = \" + role);\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint stdId\t \t= Integer.parseInt(array.get(2));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tstudent = retrieve(stdId);\r\n\t\t\t}catch(Exception e){}\r\n\t\t}\r\n\t\t\r\n\t\treturn student;\r\n\t}",
"public interface GrouperDao {\n\n /**\n * Return all teams using a specific stem, without the teams being private\n * except if the personId is a member of the private team\n * \n *\n * @param personId\n * the logged in person\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);\n\n /**\n * Return all teams using a specific stem with a name like, , without the\n * teams being private except if the personId is a member of the private team\n * \n *\n * @param personId\n * the logged in person\n * @param partOfGroupname\n * part of group name\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);\n\n /**\n * Return all teams using a specific stem where the personId is a member\n * \n *\n * @param personId\n * the logged in person\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findAllTeamsByMember(String personId, int offset,\n int pageSize);\n\n /**\n * Return all teams using a specific stem with a name like where the personId is a member\n * \n *\n * @param personId\n * the logged in person\n * @param partOfGroupname\n * part of group name\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findTeamsByMember(String personId,\n String partOfGroupname, int offset, int pageSize);\n\n /**\n * Return all stems for a person\n *\n * @param personId {@link String} the identifier of the logged in person\n * @return {@link List} the list with stems that this user is a member of.\n */\n List<Stem> findStemsByMember(String personId);\n}",
"@Override\r\n\tpublic List<String> getAllTeam() {\n\t\treturn dao.getAllTeam();\r\n\t}",
"public void setTeam(String team) {\n\t\tthis.team = team;\n\t}"
] | [
"0.69835764",
"0.64047647",
"0.61738294",
"0.61049634",
"0.5958668",
"0.5954788",
"0.5797781",
"0.5681675",
"0.5667475",
"0.5507485",
"0.54982185",
"0.5481637",
"0.54698604",
"0.5312853",
"0.5307549",
"0.52606976",
"0.5206091",
"0.5202854",
"0.5198662",
"0.5184172",
"0.51725715",
"0.5152736",
"0.5149567",
"0.5114206",
"0.51135355",
"0.51042",
"0.50882035",
"0.5056599",
"0.5032372",
"0.50141627",
"0.4999337",
"0.49962512",
"0.4993539",
"0.49832326",
"0.4954376",
"0.49465218",
"0.49356547",
"0.4924151",
"0.49191564",
"0.49020937",
"0.48959592",
"0.48770806",
"0.48674464",
"0.48656455",
"0.48636013",
"0.48598906",
"0.48522612",
"0.48275965",
"0.47775906",
"0.47768566",
"0.47563002",
"0.47547746",
"0.47349867",
"0.4733365",
"0.47047415",
"0.4672063",
"0.46695137",
"0.46526113",
"0.46457684",
"0.4626111",
"0.46248692",
"0.4607786",
"0.45999616",
"0.4595766",
"0.4594892",
"0.45649153",
"0.45640606",
"0.4561587",
"0.45590886",
"0.45392016",
"0.45377827",
"0.4535627",
"0.4523096",
"0.4516293",
"0.4516293",
"0.450822",
"0.45005614",
"0.449969",
"0.44904235",
"0.44821072",
"0.4481679",
"0.44772613",
"0.4475",
"0.44705868",
"0.44605154",
"0.44600224",
"0.44572082",
"0.44552645",
"0.44428465",
"0.44353554",
"0.44312406",
"0.4424168",
"0.4421853",
"0.44206852",
"0.44151178",
"0.44140238",
"0.4413258",
"0.4412855",
"0.44068727",
"0.4403508"
] | 0.6350414 | 2 |
Count TAlgmntSalesTeam based on given search criteria using JPA named Query. The search criteria is of TSalesTeam type. | public Object countTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {
final TSalesTeam tSalesTeam = searchFilter.getEntityClass();
List<Object> tSalesTeamList = new ArrayList<Object>();
return genericDAO.findEntitiesByNamedQuery("CountTAlgmntSalesTeamsByTSalesTeam", tSalesTeamList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object countTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Count TAlgmntSalesTeam ===========\");\n\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\t\tfinal JPAQuery jpaCountQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaCountQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaCountQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaCountQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaCountQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\n\t\tjpaCountQuery.setJPAql(JPACOUNTQL);\n\t\tjpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaCountQuery.setLogicalOperatorEnum(logOpEnum);\n\n\t\treturn genericDAO.findEntities(jpaCountQuery, -1, -1);\n\t}",
"Object countTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);",
"public Object countTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {\n\n\t\tList<Object> tAlgmntList = new ArrayList<Object>();\n\t\ttAlgmntList.add(searchFilter.getEntityClass());\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTAlgmnt\", tAlgmntList);\n\t}",
"Long queryCount(ProductSearchParm productSearchParm);",
"int findCountByCriteria(String eCriteria, Object... parameters);",
"private Long countPerfilCriteria(Session session, String name) {\n CriteriaBuilder cb = session.getCriteriaBuilder();\n CriteriaQuery<Long> q = cb.createQuery(Long.class);\n Root<Perfil> entityRoot = q.from(Perfil.class);\n q.select(cb.count(entityRoot));\n ParameterExpression<String> p = cb.parameter(String.class);\n q.where(cb.equal(entityRoot.get(\"nome\"), name));\n System.out.println(\"QUERY : \" + session.createQuery(q).getQueryString());\n return session.createQuery(q).getSingleResult();\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(PitanjeCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Pitanje> specification = createSpecification(criteria);\n return pitanjeRepository.count(specification);\n }",
"public List<TAlgmntSalesTeam> findTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Find TAlgmntSalesTeams ===========\");\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\t\t//int maxresult = 3;\n\t\t//int index=0;\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\n\t\tfinal JPAQuery jpaQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\t\tjpaQuery.setJPAql(JPAQL);\n\t\tjpaQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaQuery.setLogicalOperatorEnum(logOpEnum);\n\t\treturn genericDAO.findEntities(jpaQuery, index, maxresult);\n\t}",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery,\n Projection projection) throws SystemException {\n return banking_organizationPersistence.countWithDynamicQuery(dynamicQuery,\n projection);\n }",
"@Query(value = \"{alias:?0}\", count = true)\n int countQuiz();",
"@Transactional(readOnly = true)\n public long countByCriteria(StudentGroupCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<StudentGroup> specification = createSpecification(criteria);\n return studentGroupRepository.count(specification);\n }",
"public long count(String searchTerm, String searchId, String searchDirection, String searchStartStage, String searchEndStage, String searchPerspective) throws Exception {\n\n String searchTermWithWildCards = \"\";\n String searchEMAPAIdWithWildCards = \"\";\n String searchEMAPIdWithWildCards = \"\";\n\n if (WhatIsThisString.isItNumeric(searchTerm)){\n \tsearchId = \"%\" + searchTerm + \"%\";\n \tsearchTermWithWildCards = \"\";\n \tsearchTerm = \"\";\n }\n \n if (searchDirection.equals(\"UP\")) {\n searchTermWithWildCards = \"%.\" + searchTerm;\n }\n\n if (searchDirection.equals(\"ALL\")) {\n \t//searchTermWithWildCards = \"%.\" + searchTerm + \".%\";\n searchTermWithWildCards = \"%\" + searchTerm + \"%\";\n }\n\n int start = 0;\n \n if (WhatIsThisString.isItNumeric(searchStartStage)){\n start = ObjectConverter.convert(searchStartStage, Integer.class);\n }\n\n\t\tsearchStartStage = ObjectConverter.convert(start, String.class); \n\n searchEMAPAIdWithWildCards = \"EMAPA:\" + searchId;\n searchEMAPIdWithWildCards = \"EMAP:\" + searchId;\n\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet resultSet = null;\n long count = 0;\n\n if (searchTerm.equals(\"\") && searchId.equals(\"\")){\n \t\n Object[] values = {\n \t\tsearchPerspective,\n \t\tsearchStartStage\n };\n\n try {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, SQL_ROW_COUNT_WHERE_BY_PERSPECTIVE, false, values);\n\n resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n count = resultSet.getLong(\"VALUE\");\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n \t\n }\n \n if (searchTerm.equals(\"\") && !searchId.equals(\"\")) {\n\n Object[] values = {\n \t\tsearchPerspective,\n \t\tsearchEMAPAIdWithWildCards,\n \t\tsearchEMAPIdWithWildCards,\n \t \tsearchStartStage\n };\n\n \ttry {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, SQL_ROW_COUNT_WHERE_BY_PERSPECTIVE_AND_ID, false, values);\n\n resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n count = resultSet.getLong(\"VALUE\");\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n\n }\n \t\n if (!searchTerm.equals(\"\") && searchId.equals(\"\")){\n \t\n Object[] values = {\n \t\tsearchPerspective,\n \t\tsearchTermWithWildCards,\n \t\tsearchStartStage\n };\n\n try {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, SQL_ROW_COUNT_WHERE_BY_PERSPECTIVE_AND_PATH, false, values);\n\n resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n count = resultSet.getLong(\"VALUE\");\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n \t\n }\n \n if (!searchTerm.equals(\"\") && !searchId.equals(\"\")) {\n\n Object[] values = {\n \t\tsearchPerspective,\n \t\tsearchTermWithWildCards,\n \t\tsearchEMAPAIdWithWildCards,\n \t\tsearchEMAPIdWithWildCards,\n \t\tsearchStartStage\n };\n\n \ttry {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, SQL_ROW_COUNT_WHERE_BY_PERSPECTIVE_AND_PATH_AND_ID, false, values);\n\n resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n count = resultSet.getLong(\"VALUE\");\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n }\n \t\n return count;\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(SygTypeSourceFinancementCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<SygTypeSourceFinancement> specification = createSpecification(criteria);\n return sygTypeSourceFinancementRepository.count(specification);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(TabelaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Tabela> specification = createSpecification(criteria);\n return tabelaRepository.count(specification);\n }",
"@SuppressWarnings({\"unchecked\"}) \n long countNameIdName(int idPerson, Date dtSysTsQuery);",
"@Query(\"select count(u) from User u where u.role = 'EMPLOYEE'\")\n Long getTotalEmployeesCount();",
"int countByExample(SysTeamExample example);",
"long countSearchByCompanyName(Map<String, String> options);",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery,\n Projection projection) throws SystemException {\n return libroPersistence.countWithDynamicQuery(dynamicQuery, projection);\n }",
"public Object countTSalesPosAttrs(final SearchFilter<TSalesPosAttr> searchFilter) {\n\t\tLOGGER.info(\"=========== Count TSalesPosAttr ===========\");\n\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\t\tfinal TSalesPosAttr tSalesPosAttr = searchFilter.getEntityClass();\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\t\tfinal JPAQuery jpaCountQuery = new JPAQuery(\"tSalesPosAttrentity\", tSalesPosAttr);\n\n\t\tif (tSalesPosAttr.getTSalesPos() == null) {\n\t\t\tjpaCountQuery.bind(TSALESPOS, new TSalesPos());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesPos {}\"+ tSalesPosAttr.getTSalesPos());\n\n\t\t\tjpaCountQuery.bind(TSALESPOS, tSalesPosAttr.getTSalesPos());\n\t\t}\n\n\t\tif (tSalesPosAttr.getTAttrDef() == null) {\n\t\t\tjpaCountQuery.bind(TATTRDEF, new TAttrDef());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAttrDef {}\"+ tSalesPosAttr.getTAttrDef());\n\n\t\t\tjpaCountQuery.bind(TATTRDEF, tSalesPosAttr.getTAttrDef());\n\t\t}\n\n\t\tjpaCountQuery.setJPAql(JPACOUNTQL);\n\t\tjpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaCountQuery.setLogicalOperatorEnum(logOpEnum);\n\n\t\treturn genericDAO.findEntities(jpaCountQuery, -1, -1);\n\t}",
"@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}",
"public static <T> CriteriaQuery<Long> countCriteria(EntityManager em, CriteriaQuery<T> criteria) {\n\tCriteriaBuilder builder = em.getCriteriaBuilder();\n\tCriteriaQuery<Long> countCriteria = builder.createQuery(Long.class);\n\tcopyCriteriaNoSelection(criteria, countCriteria);\n\tcountCriteria.select(builder.count(findRoot(countCriteria,\n\t\t\t\tcriteria.getResultType())));\n\n\treturn countCriteria;\n }",
"@Query(\"select count(u) from User u where u.role = 'CUSTOMER'\")\n Long getTotalCustomersCount();",
"@Test()\n public void findCountPerfil() {\n try (Session session = factoryJpa.openSession()) {\n Long qtd = countPerfilCriteria(session, nome);\n System.out.println(\"QTD: \" + qtd);\n }\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(FactureCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Facture> specification = createSpecification(criteria);\n return factureRepository.count(specification);\n }",
"@Override\n\tpublic int QueryProductProjectWithSuiteCount(int productProjectId, int testSuiteId, String testSuiteName) {\n\t\treturn productProjectWithSuiteDAO.QueryProductProjectWithSuiteCount(productProjectId, testSuiteId, testSuiteName);\n\t}",
"public static <T> Long count(EntityManager em, CriteriaQuery<T> criteria) {\n\n\treturn em.createQuery(countCriteria(em, criteria)).getSingleResult();\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(PasoCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Paso> specification = createSpecification(criteria);\n return pasoRepository.count(specification);\n }",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic long dynamicQueryCount(\n\t\tDynamicQuery dynamicQuery, Projection projection);",
"@Transactional(readOnly = true)\n public long countByCriteria(BrandCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Brand> specification = createSpecification(criteria);\n return brandRepository.count(specification);\n }",
"@SuppressWarnings(\"unchecked\")\n public Object countByQuery(String queryString, Collection<QueryParameter> parameters)\n {\n Query query = session.createQuery(queryString);\n for (QueryParameter parameter : parameters)\n {\n if (parameter.getParameterValue() instanceof Collection)\n query.setParameterList(parameter.getParameterName(), (Collection) parameter.getParameterValue());\n else\n query.setParameter(parameter.getParameterName(), parameter.getParameterValue());\n }\n\n return query.uniqueResult();\n }",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn monthlyTradingPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}",
"@Override\n public long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _staffMemberLocalService.dynamicQueryCount(dynamicQuery,\n projection);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(EducationalRecordCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EducationalRecord> specification = createSpecification(criteria);\n return educationalRecordRepository.count(specification);\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection) {\n\n\t\treturn _participationLocalService.dynamicQueryCount(\n\t\t\tdynamicQuery, projection);\n\t}",
"int countByExample(SmsEmployeeTeamExample example);",
"@Override\n\tpublic int findCounts(DetachedCriteria detachedCriteria) {\n\t\treturn scoreDao.findCounts(detachedCriteria);\n\t}",
"@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"countBySpec\")\r\n int countBySpec(TCmSetChangeSiteStateSpec Spec);",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _esfResultLocalService.dynamicQueryCount(dynamicQuery, projection);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\n\t\treturn _participationLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"abstract public TypedQuery<?> getCountQuery() ;",
"@Transactional(readOnly = true)\n public long countByCriteria(OssConfigCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n createQueryWrapper(criteria);\n return ossConfigRepository.selectCount(this);\n }",
"@Override\n public Long countByCriteria(String[] layerList, String[] taxonList, String[] indicList,String colum) {\n //Build the query string base on parameters\n StringBuilder query = new StringBuilder();\n query.append(\"Select count(distinct \"+colum+\") from ait.taxon_info_index where \");\n \n //If there is geografical criteria\n if(layerList.length>0 && !layerList[0].equals(\"\")){\n query.append(\"(\");\n for(int i = 0;i<layerList.length;i++){\n String[] aux = layerList[i].split(\"~\");\n String layer = aux[0];\n String polygon = aux[1];\n if(i==layerList.length-1){ //last element\n query.append(\"(layer_table = '\"+layer+\"' and polygom_id = \"+polygon+\")\");\n }\n else{\n query.append(\"(layer_table = '\"+layer+\"' and polygom_id = \"+polygon+\") or \");\n }\n }\n query.append(\")\");\n }\n \n //If there is taxonomy criteria\n if(taxonList.length>0 && !taxonList[0].equals(\"\")){\n if(layerList.length>0 && !layerList[0].equals(\"\")){\n query.append(\" and (\");\n }\n else{\n query.append(\"(\");\n }\n for(int i = 0;i<taxonList.length;i++){\n //Get the name and taxonomical level of the specified taxon\n TaxonIndex ti = taxonIndexDAO.getTaxonIndexByName(taxonList[i]);\n if(ti.getTaxon_id()!=null){\n //To search in the specified taxonomyField\n String levelColum;\n switch (ti.getTaxon_range().intValue()) {\n case 1:\n levelColum = TaxonomicalRange.KINGDOM.getFieldName();\n break;\n case 2:\n levelColum = TaxonomicalRange.PHYLUM.getFieldName();\n break;\n case 3:\n levelColum = TaxonomicalRange.CLASS.getFieldName();\n break;\n case 4:\n levelColum = TaxonomicalRange.ORDER.getFieldName();\n break;\n case 5:\n levelColum = TaxonomicalRange.FAMILY.getFieldName();\n break;\n case 6:\n levelColum = TaxonomicalRange.GENUS.getFieldName();\n break;\n case 7:\n levelColum = TaxonomicalRange.SPECIFICEPITHET.getFieldName();\n break;\n default:\n levelColum = TaxonomicalRange.SCIENTIFICNAME.getFieldName();\n break;\n }\n if(i==taxonList.length-1){ //last element\n query.append(\"(\"+levelColum+\" = \"+ti.getTaxon_id()+\")\");\n }\n else{\n query.append(\"(\"+levelColum+\" = \"+ti.getTaxon_id()+\") or \");\n }\n }\n else{ //If the taxon doesn't exist on data base\n String levelColum = TaxonomicalRange.KINGDOM.getFieldName();\n if(i==taxonList.length-1){ //last element\n query.append(\"(\"+levelColum+\" = \"+-1+\")\");\n }\n else{\n query.append(\"(\"+levelColum+\" = \"+-1+\") or \");\n }\n }\n }\n query.append(\")\");\n }\n \n //If there is indicators criteria\n if(indicList.length>0 && !indicList[0].equals(\"\")){\n if((taxonList.length>0 && !taxonList[0].equals(\"\"))||(layerList.length>0 && !layerList[0].equals(\"\"))){\n query.append(\" and (\");\n }\n else{\n query.append(\"(\");\n }\n for(int i = 0;i<indicList.length;i++){\n if(i==indicList.length-1){ //last element\n query.append(\"(indicator_id = \"+indicList[i]+\")\");\n }\n else{\n query.append(\"(indicator_id = \"+indicList[i]+\") or \");\n }\n }\n query.append(\")\");\n }\n \n //Execute query\n return taxonInfoIndexDAO.countTaxonsByQuery(query.toString());\n }",
"int countByExample(MEsShoppingCartDTOCriteria example);",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery)\n throws SystemException {\n return banking_organizationPersistence.countWithDynamicQuery(dynamicQuery);\n }",
"int countByExample(MVoucherDTOCriteria example);",
"@Override\n public long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _muQuxianQujianLocalService.dynamicQueryCount(dynamicQuery,\n projection);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(EstadoCandidaturaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EstadoCandidatura> specification = createSpecification(criteria);\n return estadoCandidaturaRepository.count(specification);\n }",
"public String countProjects(Map<String, Object> parameter) {\n return new SQL() {{\n SELECT(\"count(0)\");\n\n FROM(TABLE_NAME + \" p\");\n WHERE(\"p.id in \" +\n \"(select project_id from \"+ RELEATION_TABLE_NAME+\" where user_id=#{userId} \" +\n \"union select id as project_id from \"+ TABLE_NAME+\" where user_id=#{userId})\");\n\n Object searchVal = parameter.get(\"searchVal\");\n if(searchVal != null && StringUtils.isNotEmpty(searchVal.toString())){\n WHERE( \" p.name like concat('%', #{searchVal}, '%') \");\n }\n WHERE(\"p.flag = 1\");\n }}.toString();\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(AccbillnoCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Accbillno> specification = createSpecification(criteria);\n return accbillnoRepository.count(specification);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(AuditCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Audit> specification = createSpecification(criteria);\n return auditRepository.count(specification);\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _surveyLocalService.dynamicQueryCount(dynamicQuery, projection);\n\t}",
"public Object countTSalesPosAttrsByTAttrDef(final SearchFilter<TAttrDef> searchFilter) {\n\n\t\tList<Object> queryParam=new ArrayList<Object> ();\n\t\tqueryParam.add(searchFilter.getEntityClass());\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTSalesPosAttrsByTAttrDef\", queryParam);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn itemPublicacaoPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}",
"public int searchRowsCount(SearchCriteria cri);",
"@Transactional(readOnly = true)\n public long countByQueryWrapper(QueryWrapper queryWrapper) {\n log.debug(\"count by queryWrapper : {}\", queryWrapper);\n return ossConfigRepository.selectCount(queryWrapper);\n }",
"@SuppressWarnings(\"unchecked\")\n public Object countByQuery(String queryString, QueryParameter... parameters)\n {\n return countByQuery(queryString, Arrays.asList(parameters));\n }",
"public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }",
"@Override\n public int countByName(long companyId, String name)\n throws SystemException {\n FinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n Object[] finderArgs = new Object[] { companyId, name };\n\n Long count = (Long) FinderCacheUtil.getResult(finderPath, finderArgs,\n this);\n\n if (count == null) {\n StringBundler query = new StringBundler(3);\n\n query.append(_SQL_COUNT_BROKERMESSAGELISTENER_WHERE);\n\n query.append(_FINDER_COLUMN_NAME_COMPANYID_2);\n\n boolean bindName = false;\n\n if (name == null) {\n query.append(_FINDER_COLUMN_NAME_NAME_1);\n } else if (name.equals(StringPool.BLANK)) {\n query.append(_FINDER_COLUMN_NAME_NAME_3);\n } else {\n bindName = true;\n\n query.append(_FINDER_COLUMN_NAME_NAME_2);\n }\n\n String sql = query.toString();\n\n Session session = null;\n\n try {\n session = openSession();\n\n Query q = session.createQuery(sql);\n\n QueryPos qPos = QueryPos.getInstance(q);\n\n qPos.add(companyId);\n\n if (bindName) {\n qPos.add(name);\n }\n\n count = (Long) q.uniqueResult();\n\n FinderCacheUtil.putResult(finderPath, finderArgs, count);\n } catch (Exception e) {\n FinderCacheUtil.removeResult(finderPath, finderArgs);\n\n throw processException(e);\n } finally {\n closeSession(session);\n }\n }\n\n return count.intValue();\n }",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn wfms_Position_AuditPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(CDocumentTypeCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<CDocumentType> specification = createSpecification(criteria);\n return cDocumentTypeRepository.count(specification);\n }",
"long count(String query);",
"long count(String query);",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn monthlyTradingPersistence.countWithDynamicQuery(dynamicQuery);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection) {\n\t\treturn _weatherLocalService.dynamicQueryCount(dynamicQuery, projection);\n\t}",
"@Override\n\tpublic int countTeam() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int countByName(String name) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n\t\tObject[] finderArgs = new Object[] { name };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_LEGACYDB_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Override\n\tpublic int countByNameAndDevision(String name, long devisionId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAMEANDDEVISION;\n\n\t\tObject[] finderArgs = new Object[] { name, devisionId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_DEPARTMENT_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_DEVISIONID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(devisionId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(DSpczCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<DSpcz> specification = createSpecification(criteria);\n return dSpczRepository.count(specification);\n }",
"public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\ttSalesTeamList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTSalesTeam\", tSalesTeamList, index, maxresult);\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(ViewPermissionCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<ViewPermission> specification = createSpecification(criteria);\n return viewPermissionRepository.count(specification);\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface StudentClassLogRepository extends JpaRepository<StudentClassLog, Long>, JpaSpecificationExecutor<StudentClassLog> {\n\n List<StudentClassLog> findByStudent_Id(Long studentId);\n\n @Query(nativeQuery = true, value = \"select count(0) as studentClassLogCount from student_class_log where arrangement_id = :1\")\n Integer getStudentClassLogCount(Long arrangementId);\n}",
"@Transactional(readOnly = true)\n public long countByCriteria(CustomerCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Customer> specification = createSpecification(criteria);\n return customerRepository.count(specification);\n }",
"public Object countTSalesPosAttrsByTSalesPos(final SearchFilter<TSalesPos> searchFilter) {\n\n\t\tList<Object> queryParam=new ArrayList<Object> ();\n\t\tqueryParam.add(searchFilter.getEntityClass());\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTSalesPosAttrsByTSalesPos\", queryParam);\n\t}",
"@Override\n\tpublic int countProjectTeam() {\n\t\treturn 0;\n\t}",
"public int countByname(java.lang.String name);",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection) {\n\t\treturn _vcmsPortionLocalService.dynamicQueryCount(dynamicQuery,\n\t\t\tprojection);\n\t}",
"@Query(\"SELECT count(*) FROM DemoEntity d\")\r\n\tpublic Integer countDemo();",
"@Override\r\n\t@Transactional\r\n\tpublic int getCount(List<Filter> filters){\r\n\t\ttry{\r\n\t\t\tString sql = \"select count(*) \"\r\n\t\t\t\t\t + \"from FmtEstado \";\r\n\t\t\t\r\n\t\t\tsql = sqlFunctions.completeSQL(null, filters, sql, FmtEstado.getColumnNames());\r\n\t\t\t\r\n\t\t\tQuery query = getSession().createQuery(sql);\r\n\t \r\n\t\t\t query=sqlFunctions.setParameters(filters, query);\r\n\t\t\t \r\n\t\t\tIterator it = query.list().iterator();\r\n\t Long ret = new Long(0);\r\n\t \r\n\t if (it != null)\r\n\t\t if (it.hasNext()){\r\n\t\t \tret = (Long) it.next();\r\n\t\t }\r\n\t \r\n\t\t\treturn ret.intValue();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public long getUsersCount(\n org.eclipse.stardust.engine.api.query.UserQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"public int countByCompanyId(long companyId);",
"@SuppressWarnings(\"rawtypes\")\n\t@Override\n\tpublic Long searchCountData(List<? extends SearchObject> searchCriteria) throws Exception {\n\t\treturn poDAO.searchCountData(searchCriteria);\n\t}",
"@Override\n\tpublic int countByname(String name) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n\t\tObject[] finderArgs = new Object[] { name };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_CAMPUS_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Override\n public int countByQuery(Ares2ClusterQuery query) {\n return ares2ClusterExtMapper.countByQuery(query);\n }",
"@Override\n // report number of players on a given team (or all players, if null)\n\tpublic int numPlayers(String teamName) {\n\n int numPlayers = 0;\n\n\n if (teamName == null) {\n\n for (int i = 0; i < (stats.keySet()).toArray().length; i++) {\n\n numPlayers++;\n\n }\n\n return numPlayers;\n\n }\n\n else {\n\n Collection<SoccerPlayer> soccerPlayers = stats.values();\n\n for (SoccerPlayer sp: soccerPlayers) {\n\n if (sp.getTeamName().equals(teamName)){\n\n numPlayers++;\n }\n }\n\n return numPlayers;\n\n }\n\n\n\t}",
"public Object countTRptConfigStatuss(final SearchFilter<TRptConfigStatus> searchFilter) {\n\t\tLOGGER.info(\"=========== Count TRptConfigStatus ===========\");\n\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\t\tfinal TRptConfigStatus tRptConfigStatus = searchFilter.getEntityClass();\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\t\tfinal JPAQuery jpaCountQuery = new JPAQuery(\"tRptConfigStatusentity\", tRptConfigStatus);\n\n\t\t/*if (tRptConfigStatus.getTRptConfigStatus() == null) {\n\t\t\tjpaCountQuery.bind(TRPTCONFIGSTATUS, new TRptConfigStatus());\n\t\t} else {\n\t\t\tLOGGER.info(\"tRptConfigStatus {}\", tRptConfigStatus.getTRptConfigStatus());\n\n\t\t\tjpaCountQuery.bind(TRPTCONFIGSTATUS, tRptConfigStatus.getTRptConfigStatus());\n\t\t}*/\n\n\t\tjpaCountQuery.setJPAql(JPACOUNTQL);\n\t\tjpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaCountQuery.setLogicalOperatorEnum(logOpEnum);\n\n\t\treturn genericDAO.findEntities(jpaCountQuery, -1, -1);\n\t}",
"int countByCompanyId(int companyId);",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tDynamicQuery dynamicQuery, Projection projection) {\n\n\t\treturn csclPollsChoicePersistence.countWithDynamicQuery(\n\t\t\tdynamicQuery, projection);\n\t}",
"@Override\r\n\tpublic int searchTotalCount(SearchCriteria cri) {\n\t\treturn sqlSession.selectOne(namespace + \".searchTotalCount\", cri);\r\n\t}",
"@Override\r\n\tpublic int searchTotalCount(SearchCriteria cri) {\n\t\treturn sqlSession.selectOne(namespace + \".searchTotalCount\", cri);\r\n\t}",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery, projection);\n }",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery, projection);\n }",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery, projection);\n }",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery, projection);\n }",
"public static long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().dynamicQueryCount(dynamicQuery, projection);\n }",
"@GetMapping(\"/docentes/count\")\n public ResponseEntity<Long> countDocentes(DocenteCriteria criteria) {\n log.debug(\"REST request to count Docentes by criteria: {}\", criteria);\n return ResponseEntity.ok().body(docenteQueryService.countByCriteria(criteria));\n }",
"public int count(final Query qry) {\n\t\tassert(qry != null);\n\t\t\n\t\tStopwatch stopWatch = Stopwatch.createStarted();\n\t\t\n\t\tint outCount = 0;\n\t\ttry {\n\t\t\t_indexSearcherReopenThread.waitForGeneration(_reopenToken);\t\t// wait untill the index is re-opened\n\t\t\tIndexSearcher searcher = _indexSearcherReferenceManager.acquire();\n\t\t\ttry {\n\t\t\t\tTopDocs docs = searcher.search(qry,0);\n\t\t\t\tif (docs != null) outCount = docs.totalHits;\n\t\t\t\tlog.debug(\"count-search executed against lucene index returning {}\",outCount);\n\t\t\t} finally {\n\t\t\t\t_indexSearcherReferenceManager.release(searcher);\n\t\t\t}\n\t\t} catch (IOException ioEx) {\n\t\t\tlog.error(\"Error re-opening the index {}\",ioEx.getMessage(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t ioEx);\n\t\t} catch (InterruptedException intEx) {\n\t\t\tlog.error(\"The index writer periodically re-open thread has stopped\",intEx.getMessage(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t intEx);\n\t\t}\n\t\t\n\t\tlog.info(\"Lucene query (elapsed time: {} milis): {}\",NumberFormat.getNumberInstance(Locale.getDefault()).format(stopWatch.elapsed(TimeUnit.MILLISECONDS)),qry);\t\t\n\t\tstopWatch.stop();\n\t\t\n\t\treturn outCount;\n\t}",
"int getCountRouteSupplierByCriteria(CountRouteSupplierCriteria dto);",
"@Override\n public long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _staffMemberLocalService.dynamicQueryCount(dynamicQuery);\n }",
"@Override\n\tpublic int countBySearch(Params params) throws Exception {\n\t\treturn 0;\n\t}"
] | [
"0.7683757",
"0.6919737",
"0.682111",
"0.58971566",
"0.58296686",
"0.5694303",
"0.56902856",
"0.5684888",
"0.5610418",
"0.5591676",
"0.55885124",
"0.557238",
"0.5565244",
"0.55470824",
"0.5457516",
"0.5436302",
"0.5389513",
"0.53795964",
"0.534055",
"0.53341496",
"0.532389",
"0.53214467",
"0.53106755",
"0.53078717",
"0.53007543",
"0.5297178",
"0.5290504",
"0.52826905",
"0.52555084",
"0.5248437",
"0.524573",
"0.5237113",
"0.523337",
"0.52214605",
"0.52111083",
"0.5201294",
"0.51878476",
"0.51633185",
"0.51625174",
"0.5154365",
"0.51494855",
"0.5148692",
"0.5144528",
"0.5138175",
"0.5124974",
"0.5120907",
"0.5115897",
"0.50915265",
"0.50905526",
"0.5063761",
"0.50572795",
"0.5045688",
"0.5025001",
"0.5017145",
"0.5013383",
"0.5001231",
"0.49977684",
"0.4993097",
"0.49883974",
"0.49850366",
"0.49811208",
"0.49809632",
"0.49809632",
"0.49780273",
"0.49779096",
"0.49761623",
"0.49747983",
"0.49672255",
"0.49651438",
"0.49647713",
"0.49564075",
"0.49532667",
"0.49499786",
"0.4947819",
"0.49418837",
"0.49357575",
"0.4927047",
"0.4923671",
"0.4921558",
"0.49210447",
"0.49110433",
"0.49036118",
"0.4896409",
"0.4890696",
"0.4886578",
"0.48863268",
"0.4874668",
"0.48715177",
"0.48415568",
"0.48415568",
"0.48414537",
"0.48414537",
"0.48414537",
"0.48414537",
"0.48414537",
"0.48413584",
"0.48326197",
"0.48275602",
"0.48272902",
"0.4824571"
] | 0.7197799 | 1 |
Retrieve TAlgmntSalesTeam based on given search criteria using JPA named Query. The search criteria is of TAlgmnt type. | public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {
final PaginationInfo paginationInfo = searchFilter.getPaginationInfo();
List<Object> tAlgmntList = new ArrayList<Object>();
tAlgmntList.add(searchFilter.getEntityClass());
final int maxresult = paginationInfo.getMaxRows();
final int index = paginationInfo.getStartIndex();
return genericDAO.findEntitiesByNamedQueryMultiCond("FindTAlgmntSalesTeamByTAlgmnt", tAlgmntList, index, maxresult);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<TAlgmntSalesTeam> findTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Find TAlgmntSalesTeams ===========\");\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\t\t//int maxresult = 3;\n\t\t//int index=0;\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\n\t\tfinal JPAQuery jpaQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\t\tjpaQuery.setJPAql(JPAQL);\n\t\tjpaQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaQuery.setLogicalOperatorEnum(logOpEnum);\n\t\treturn genericDAO.findEntities(jpaQuery, index, maxresult);\n\t}",
"public TAlgmntSalesTeam findTAlgmntSalesTeamById(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"find TAlgmntSalesTeam instance with TAlgmntSalesTeamId: \" + tAlgmntSalesTeamId);\n\t\treturn genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t}",
"Team findByName(String name);",
"public List<TAlgmntSalesTeam> getTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\ttSalesTeamList.add(searchFilter.getEntityClass());\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\n\t\treturn genericDAO.findEntitiesByNamedQueryMultiCond(\"FindTAlgmntSalesTeamByTSalesTeam\", tSalesTeamList, index, maxresult);\n\t}",
"TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);",
"public List<TeamVo> query(@Valid TeamQuery teamQuery) {\n\t\tList<TeamVo> list = null;\n\t\tlist = teamMapper.queryTeamVo(teamQuery.getCompanyid(), teamQuery.getDepartmentid());\n\t\treturn list;\n\t}",
"public Object countTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Count TAlgmntSalesTeam ===========\");\n\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\t\tfinal JPAQuery jpaCountQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaCountQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaCountQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaCountQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaCountQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\n\t\tjpaCountQuery.setJPAql(JPACOUNTQL);\n\t\tjpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaCountQuery.setLogicalOperatorEnum(logOpEnum);\n\n\t\treturn genericDAO.findEntities(jpaCountQuery, -1, -1);\n\t}",
"SmsEmployeeTeam selectByPrimaryKey(String id);",
"SysTeam selectByPrimaryKey(Integer teamId);",
"List<TAlgmntBussRule> getTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);",
"public TAlgmntSalesTeam updateTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Update TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.update(tAlgmntSalesTeam);\n\t}",
"public Object countTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {\n\n\t\tList<Object> tAlgmntList = new ArrayList<Object>();\n\t\ttAlgmntList.add(searchFilter.getEntityClass());\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTAlgmnt\", tAlgmntList);\n\t}",
"TeamResultWrapper findTeamsByMember(String personId,\n String partOfGroupname, int offset, int pageSize);",
"public Department findByNameDepartment(String nameDepartment);",
"@Override\n\tpublic <T> TypedQuery<T> createNamedQuery(String name, Class<T> resultClass) {\n\t\treturn null;\n\t}",
"String getNamedQuery();",
"Query getNamedQuery(final String query);",
"public List findByNamedQuery(String queryName);",
"public TAlgmntSalesTeam createTAlgmntSalesTeam(final TAlgmntSalesTeam tAlgmntSalesTeam) {\n\t\tLOGGER.info(\"=========== Create TAlgmntSalesTeam ===========\");\n\t\treturn genericDAO.store(tAlgmntSalesTeam);\n\t}",
"TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);",
"List<SysTeam> selectByExample(SysTeamExample example);",
"public Object countTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTSalesTeam\", tSalesTeamList);\n\t}",
"public Department getByEmail(String name) {\n\t return (Department) entityManager.createQuery(\n\t \"from User where name = :name\")\n\t .setParameter(\"name\", name)\n\t .getSingleResult();\n\t }",
"private static void namedQuery(Session session) {\n\t\tint departmentId=300;\n\t\tQuery query=session.getNamedQuery(DtoConstants.EMPLOYEE_DEP_ID_NQ);\n\t\tquery.setInteger(DtoConstants.DEPARTMENT_ID, departmentId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tList<Employee> empList=(List<Employee>)query.list();\n\t\tint i=1;\n\t\tSystem.out.println(\"Named Query result for query with department id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t\t\n\t\tint employeeId=5;\n\t\tquery=session.getNamedQuery(DtoConstants.EMPLOYEE_ID_NQ);\n\t\tquery.setInteger(DtoConstants.EMP_ID, employeeId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tempList=(List<Employee>)query.list();\n\t\ti=1;\n\t\tSystem.out.println(\"Named Query result for query with employee id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t\t\n\t\temployeeId=10;\n\t\tquery=session.getNamedQuery(DtoConstants.EMPLOYEE_ID_NNQ);\n\t\tquery.setInteger(DtoConstants.EMP_ID, employeeId);\n\t\t/**Below query properties used for pagination */\n\t\tquery.setFirstResult(0);\n\t\tquery.setMaxResults(10);\n\t\tempList=(List<Employee>)query.list();\n\t\ti=1;\n\t\tSystem.out.println(\"Named Native Query result for query with employee id\");\n\t\tfor(Employee e:empList){\n\t\t\tSystem.out.println(i+++\") Name:\"+e.getName()+\" Salary:\"+e.getSalary());\n\t\t}\n\t}",
"@Override\r\n\tpublic TeamPO findTeamByName(String name) {\n\t\treturn teams.findTeamByShortName(name);\r\n\t}",
"public Departmentdetails getDepartmentByName(String departmentName);",
"public User getUserFromTeam(Team team){\n String sql = \"SELECT * FROM trainer tr INNER JOIN Team T ON tr.userid = T.userid WHERE T.teamid = ?\";\n User user = jdbc.queryForObject(sql, new UserDaoImpl.UserMapper(), team.getId());\n System.out.print(user);\n return user;\n }",
"List<SmsEmployeeTeam> selectByExample(SmsEmployeeTeamExample example);",
"public UserQueryEntity getByName(String userName);",
"List<Seller> findByDepartment(Department department);",
"List<Seller> findByDepartment(Department department);",
"public boolean findTeam(String teamName) throws SQLException {\n\t\tConnection conn = DriverManager.getConnection(\"jdbc:sqlite:users\");\n\t\tStatement stmt = conn.createStatement();\n\t\tString SQL = \"select * from leaguestandings where TeamName = '\" + teamName + \"';\";\n\n\t\tResultSet rset = stmt.executeQuery(SQL);\n\n\t\tif (rset.next()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test\r\n\tpublic void findAllTeams() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllTeams \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\tList<Team> response = null;\r\n\t\tresponse = service.findAllTeams(startResult, maxRows);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: findAllTeams\r\n\t}",
"Team findById(Long id);",
"public ResultSet getTeamInfo(String teamsname) throws SQLException\n\t{\n\t\t// Create a connection to the database.\n\t\t conn = DriverManager.getConnection(DB_URL);\n\t\t// Create a Statement object for the query.\n\t\tStatement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t// Execute the query.\n\t\tResultSet resultSet = stmt.executeQuery(\"SELECT * FROM Team WHERE teamName = '\" + teamsname + \"'\");\n\t\t\n\t\treturn resultSet;\n\t\n\t}",
"List<Object[]> findValuebyAlignInfoAndRuleName(Long algmntId,Long bussUnitId,Long salesTeamId,String BussRuleName);",
"List<TypeTreatmentPlanStatuses> search(String query);",
"public ResultSet getDepartmentByName(String dept_name);",
"protected List findByNamedQuery(Class clazz, String namedQuery) {\r\n try {\r\n Query q = entityManager.createNamedQuery(clazz.getSimpleName() + \".\" + namedQuery);\r\n return q.getResultList();\r\n } catch (Exception e) {\r\n //Nao e um erro :)\r\n }\r\n return null;\r\n }",
"Team getMyTeam();",
"@Override\n\tpublic SaleDepartmentEntity querySaleDepartmentByCode(String destOrgCode) {\n\t\treturn null;\n\t}",
"@Query(\"select i from Product i where name=:name\")\r\n public List<Product> findByQuery(@Param(\"name\")String netto);",
"public VwTeams get(int teamId)\n\t{\n\t\tVwTeams [] results = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tresults = dao.findWhereTeamIdEquals(teamId);\t\t\t\n\t\t}\n\t\tcatch (VwTeamsDaoException e)\n\t\t{\n\t\t\tlogger.error(e.getMessage());\n\t\t\t\n\t\t\terror.setCode(Errors.Codes.DB_DAO.getCode());\n\t\t\terror.setWindowTitle(Errors.Codes.DB_DAO.getWindowTitle());\n\t\t\terror.setMessage(Errors.Codes.DB_DAO.getMessage());\n\t\t\t\n\t\t\terror.setExceptionMessage(e.getMessage());\n\t\t\t\n\t\t\tpdr.setError(error);\n\t\t\t\n\t\t\tif (logger.isDebugEnabled())\n\t\t\t\te.printStackTrace();\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn results.length == 0 ? null : results[0];\n\t}",
"TeamResultWrapper findAllTeamsByMember(String personId, int offset,\n int pageSize);",
"@Override\n\tpublic Department fetchByNameAndDevision(String name, long devisionId,\n\t\tboolean retrieveFromCache) throws SystemException {\n\t\tObject[] finderArgs = new Object[] { name, devisionId };\n\n\t\tObject result = null;\n\n\t\tif (retrieveFromCache) {\n\t\t\tresult = FinderCacheUtil.getResult(FINDER_PATH_FETCH_BY_NAMEANDDEVISION,\n\t\t\t\t\tfinderArgs, this);\n\t\t}\n\n\t\tif (result instanceof Department) {\n\t\t\tDepartment department = (Department)result;\n\n\t\t\tif (!Validator.equals(name, department.getName()) ||\n\t\t\t\t\t(devisionId != department.getDevisionId())) {\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t}\n\n\t\tif (result == null) {\n\t\t\tStringBundler query = new StringBundler(4);\n\n\t\t\tquery.append(_SQL_SELECT_DEPARTMENT_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_DEVISIONID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(devisionId);\n\n\t\t\t\tList<Department> list = q.list();\n\n\t\t\t\tif (list.isEmpty()) {\n\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_NAMEANDDEVISION,\n\t\t\t\t\t\tfinderArgs, list);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif ((list.size() > 1) && _log.isWarnEnabled()) {\n\t\t\t\t\t\t_log.warn(\n\t\t\t\t\t\t\t\"DepartmentPersistenceImpl.fetchByNameAndDevision(String, long, boolean) with parameters (\" +\n\t\t\t\t\t\t\tStringUtil.merge(finderArgs) +\n\t\t\t\t\t\t\t\") yields a result set with more than 1 result. This violates the logical unique restriction. There is no order guarantee on which result is returned by this finder.\");\n\t\t\t\t\t}\n\n\t\t\t\t\tDepartment department = list.get(0);\n\n\t\t\t\t\tresult = department;\n\n\t\t\t\t\tcacheResult(department);\n\n\t\t\t\t\tif ((department.getName() == null) ||\n\t\t\t\t\t\t\t!department.getName().equals(name) ||\n\t\t\t\t\t\t\t(department.getDevisionId() != devisionId)) {\n\t\t\t\t\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_NAMEANDDEVISION,\n\t\t\t\t\t\t\tfinderArgs, department);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(FINDER_PATH_FETCH_BY_NAMEANDDEVISION,\n\t\t\t\t\tfinderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\tif (result instanceof List<?>) {\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\treturn (Department)result;\n\t\t}\n\t}",
"List<Team> findTeamsByUserId(UserId userId);",
"private static Team getTeam(Connection con,Long teamId) {\n\n Team team = null;\n\n String query = SQLConstants.GET_TEAM_BY_TEAM_ID;\n\n try {\n team = new Team();\n //Connection con = JdbcConnection.getConnection();\n PreparedStatement pstmt = con.prepareStatement(query);\n pstmt.setLong(1, teamId);\n\n ResultSet rs = pstmt.executeQuery();\n\n while (rs.next()) {\n team.setId(rs.getLong(\"id\"));\n team.setName(rs.getString(\"name\"));\n team.setDescribe(rs.getString(\"describe\"));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return team;\n\n }",
"public interface IOrgTeamService extends IBaseService {\n\n List<Map<String, Object>> findByCondition(OrgTeamBean searchBean, Page page);\n\n void addOrgTeam(CfsOrgTeam orgTeam);\n\n void updateOrgTeam(CfsOrgTeam orgTeam);\n\n CfsOrgTeam getOrgTeam(Long id);\n\n\tList<CfsOrgTeam> find(OrgTeamBean searchBean, Page page);\n\n OrganizationBean getByTeamId(Long teamId);\n\n\tCfsOrgTeam getOrgTeamById(Long id);\n}",
"public void deleteTAlgmntSalesTeam(final TAlgmntSalesTeamId tAlgmntSalesTeamId) {\n\t\tLOGGER.info(\"=========== Delete TAlgmntSalesTeam ===========\");\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = genericDAO.get(clazz, tAlgmntSalesTeamId);\n\t\tgenericDAO.remove(tAlgmntSalesTeam);\n\t}",
"CrmDept selectByPrimaryKey(String deptCode);",
"public Service consultName(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",name));\r\n \treturn (Service)criteria.list().get(0);\r\n }",
"List<LectureDTO> search(String query);",
"@Override\n @Transactional(readOnly = true)\n public List<CollegeDTO> search(String query) {\n log.debug(\"Request to search Colleges for query {}\", query);\n return StreamSupport\n .stream(collegeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(collegeMapper::toDto)\n .collect(Collectors.toList());\n }",
"@Override\n\tpublic Query createNamedQuery(String name) {\n\t\treturn null;\n\t}",
"Expertise findByName(String name);",
"TSearchQuery createSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);",
"public Team get(Long id);",
"List<Team> findAll();",
"List<TAlgmntBussRule> getTAlgmntBussRulesByTAlgmntSalesTeamRuleConfigId(SearchFilter<TAlgmntBussRule> searchFilter);",
"public static int findByName(String teamName) throws DALException {\n\n\t\t\t\t\tConnection cnx = null;\n\t\t\t\t\tPreparedStatement pstmt = null;\n\t\t\t\t\tResultSet rs = null;\n\t\t\t\t\tint idTeam = 0;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Connection DB\n\t\t\t\t\t\tcnx = DBConnection.connect();\n\t\t\t\t\t\tpstmt = cnx.prepareStatement(SEARCH_NAME_TEAM);\n\t\t\t\t\t\tpstmt.setString(1, teamName);\n\t\t\t\t\t\trs = pstmt.executeQuery();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (rs.next()) {\n\t\t\t\t\t\t\tidTeam = rs.getInt(\"idTeams\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\tthrow new DALException(\"Problem - search teams By Name - TeamDAO - Request : \"+pstmt+ \" \" + e.getMessage());\n\t\t\t\t\t} finally {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (rs != null)\n\t\t\t\t\t\t\t\trs.close();\n\t\t\t\t\t\t\tif (pstmt != null)\n\t\t\t\t\t\t\t\tpstmt.close();\n\t\t\t\t\t\t\tif (cnx != null)\n\t\t\t\t\t\t\t\tcnx.close();\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\tthrow new DALException(\"Problem - Closing connection - \" + e.getMessage());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\treturn idTeam;\n\n\t\t\t\t}",
"@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}",
"public static void main(String[] args) {\n\r\n\t\tEntityManager em = PersistanceManager.INSTANCE.getEntityManager();\r\n\t\tSystem.out.println(\"Print ALL\");\r\n\t\tQuery query = em.createQuery(\"FROM Employee e\");\r\n\t\tArrayList<Employee> result = (ArrayList<Employee>) query.getResultList();\r\n\t\tfor (Employee current : result)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print id = 3\");\r\n\t\tQuery query1 = em.createQuery(\"FROM Employee e where e.id=3\");\r\n\t\tArrayList<Employee> result1 = (ArrayList<Employee>) query1.getResultList();\r\n\t\tfor (Employee current : result1)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t\tSystem.out.println(\"Print Named Query \");\r\n\t\tArrayList<Employee> result2 = (ArrayList<Employee>) em.createNamedQuery(\"Employee.searchAll\").setParameter(\"empName\", \"D%\")\r\n\t\t\t\t.getResultList();\r\n\t\tfor (Employee current : result2)\r\n\t\t\tSystem.out.println(current.toString());\r\n\t}",
"List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);",
"public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }",
"public SoccerTeam getTeam(String teamName) throws TeamNotFoundException {\n\n for (int i = 0; i < this.teams.size(); i++) {\n SoccerTeam team = this.teams.get(i);\n\n if (team.getName().equals(teamName)){\n return team;\n }\n }\n throw new TeamNotFoundException(\"Team that you are searching for is not found\");\n }",
"interface UserRepository extends JpaRepository<User, Long> {\n\n Collection<User> findByUserNumber(String userNumber);\n Collection<User> findByFirstName(String firstName);\n Collection<User> findByLastName(String value);\n Collection<User> findByFirstNameAndLastName(String firstName, String lastName);\n\n @Query(\"select u from #{#entityName} u where u.team = ?1\")\n List<User> findAllByTeam(String teamName);\n\n Collection<WorkItem> findByWorkItems(User user);\n}",
"TourPackage findByName(@Param(\"name\") String name);",
"@SuppressWarnings({\"unchecked\"})\n Name findNameByIdPersonDtSysTsQuery(int idPerson, Date dtSysTsQuery);",
"public Cursor teamSpinnerResult( String spinteam) {\n sqLiteDB = teamDB.getReadableDatabase();\n String siteItemResultQuery = \"SELECT \" + TeamsContents.TEAM_TID +\n \" FROM \" + TeamsContents.TEAM_TABLE +\n \" where \" + TeamsContents.TEAM_LEADER + \" LIKE '%\" + spinteam + \"%'\";\n\n Cursor cusAllSite = sqLiteDB.rawQuery( siteItemResultQuery, null );\n if (cusAllSite.moveToFirst()) {\n do {\n cusAllSite.getString( 0 );\n } while (cusAllSite.moveToNext());\n }\n cusAllSite.moveToFirst();\n sqLiteDB.close();\n return cusAllSite;\n }",
"public static List<Book> searchBookByNameAndNameOfTheSeller(String name,String nameOfTheSeller) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndNameOfTheSeller\").setString(\"name\", name).setString(\"nameOfTheSeller\", nameOfTheSeller);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }",
"public void test_findByNamedOfQuery() {\r\n\t\t// step 1:\r\n\t\tList personList = this.persistenceService.findByNamedOfQuery(FIND_ALL_PERSON);\r\n\t\tassertNotNull(personList);\r\n\t\tassertEquals(ALL_PERSON_COUNT, personList.size());\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 2:\r\n\t\tpersonList = this.persistenceService.findByNamedOfQuery(FIND_PERSON_BY_NAME_EXT, NAME_PARAM[0]);\r\n\t\tassertForFindGoingmm(personList);\r\n\t\t\r\n\t\t// init again\r\n\t\tpersonList = null;\r\n\t\t// step 3:\r\n\t\tpersonList = this.persistenceService.findByNamedOfQuery(FIND_PERSON_BY_NAME, getParamMap(1));\r\n\t\tassertForFindGoogle(personList);\r\n\t}",
"public interface GrouperDao {\n\n /**\n * Return all teams using a specific stem, without the teams being private\n * except if the personId is a member of the private team\n * \n *\n * @param personId\n * the logged in person\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findAllTeams(String personId, int offset,\n int pageSize);\n\n /**\n * Return all teams using a specific stem with a name like, , without the\n * teams being private except if the personId is a member of the private team\n * \n *\n * @param personId\n * the logged in person\n * @param partOfGroupname\n * part of group name\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findTeams(String personId,\n String partOfGroupname, int offset, int pageSize);\n\n /**\n * Return all teams using a specific stem where the personId is a member\n * \n *\n * @param personId\n * the logged in person\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findAllTeamsByMember(String personId, int offset,\n int pageSize);\n\n /**\n * Return all teams using a specific stem with a name like where the personId is a member\n * \n *\n * @param personId\n * the logged in person\n * @param partOfGroupname\n * part of group name\n * @param offset\n * the row number of the start\n * @param pageSize\n * the maximum result size\n * @return teams including the number of total records\n */\n TeamResultWrapper findTeamsByMember(String personId,\n String partOfGroupname, int offset, int pageSize);\n\n /**\n * Return all stems for a person\n *\n * @param personId {@link String} the identifier of the logged in person\n * @return {@link List} the list with stems that this user is a member of.\n */\n List<Stem> findStemsByMember(String personId);\n}",
"private static DTOSalida getDTOSalida(String query) throws MareException { \n UtilidadesLog.info(\"DAOGestionComisiones.getDTOSalida(String query): Entrada\");\n RecordSet rs = new RecordSet();\n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n UtilidadesLog.debug(query); \n try {\n rs = bs.dbService.executeStaticQuery(query);\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.getDTOSalida(String query): Salida\");\n return dtos; \n }",
"public StudentDto findByName(String name) \n\t{\n\n\t\tSession session = factory.openSession();\n\t\tQuery<StudentDto> query = session.createQuery(\"from StudentDto where name = :n\");\n\t\tquery.setParameter(\"n\", name);\n\t\tStudentDto studentDto = query.uniqueResult();\n\t\tsession.close();\n\n\t\treturn studentDto;\n\t}",
"public Object searchSingle() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.studentId = :id\");\r\n \tquery.setParameter(\"id\", 1);\r\n \tStudent result = (Student)query.getSingleResult();\r\n \t \r\n \t// Query for a single data element.\r\n// \tQuery query = em.createQuery(\"Select MAX(e.grade) FROM Student e\");\r\n// \tBigDecimal result = (BigDecimal)query.getSingleResult();\r\n \t\r\n// \tQuery query = em.createQuery(\"Select e FROM Student e JOIN e.projectList u WHERE u.name = :name\");\r\n// \tquery.setParameter(\"name\", \"student_example\");\r\n// \tStudent result = (Student)query.getSingleResult();\r\n \t\r\n\r\n\r\n \t\r\n \treturn result;\r\n }",
"@Override\n public Collection<Employee> queryByNameAndEmail( String name, String email, boolean isRemoved ) {\n final String nameLikeSql = name + \"%\";\n final String mailLikeSql = email + \"%\";\n\n return em.createNamedQuery( \"Employee.findByNameAndEmail\", Employee.class )\n .setParameter( \"name\", nameLikeSql )\n .setParameter( \"email\", mailLikeSql )\n .setParameter( \"removed\", isRemoved ).getResultList();\n\n }",
"public List<Student> search() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.grade > 50.00\");\r\n \tList<Student> result = query.getResultList();\r\n \t\r\n \t \r\n \t// Query for a List of data elements.\r\n// \tQuery query = em.createQuery(\"Select e.firstname FROM Student e\");\r\n// \tList<String> result = query.getResultList();\r\n \t \r\n \t// Query for a List of element arrays.\r\n// \tQuery query = em.createQuery(\"Select e.firstname, e.grade FROM Student e\");\r\n// \tList<Object[]> result = query.getResultList();\r\n \t\r\n\t\t// \tsetFirstResult()\r\n\t\t// \tsetMaxResults()\r\n \t\r\n \treturn result;\r\n }",
"SelectQuery createSelectQuery();",
"@Override\r\n\tpublic Admins getQueryByName(String aname) {\n\t\treturn adi.queryByName(aname);\r\n\t}",
"TeamDTO findOne(Long id);",
"private RealmQuery buildRealmQuery(Realm realm, Class myClass) {\n RealmQuery query = RealmQuery.createQuery(realm, myClass);\n return query;\n }",
"@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType1(@Param(\"userId\") Long userId,@Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"@Query(\n \"Select t FROM Ticket t WHERE t.responsible IS NOT NULL \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType4(@Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"List<ShipmentInfoPODDTO> search(String query);",
"@RequestMapping(method = RequestMethod.GET, value = \"/teamsForUser/{name}\")\n public JSONObject getTeamForUserPage(@PathVariable String name) {\n JSONArray teamJsonArray = getAllTeamsForUserPage();\n JSONObject jsonObject = new JSONObject();\n\n for (int i = 0; i < teamJsonArray.size(); i++) {\n if (teamJsonArray.get(i).toString().contains(name)) {\n return (JSONObject) teamJsonArray.get(i);\n }\n }\n return jsonObject;\n }",
"public Team selectTeam() {\r\n \r\n String[] list = new String[controller.getTeams().size()];\r\n for (int i = 0; i < controller.getTeams().size(); i++) {\r\n list[i] = controller.getTeams().get(i).getName();\r\n }\r\n\r\n JComboBox cmbOption = new JComboBox(list);\r\n int input = JOptionPane.showOptionDialog(null, cmbOption, \"Select Team that your like Delete\",JOptionPane.DEFAULT_OPTION,JOptionPane.QUESTION_MESSAGE, null, null, null);\r\n if(input==-1){\r\n return null;\r\n }\r\n Team teamAux = controller.searchTeam((String) cmbOption.getSelectedItem());\r\n return teamAux;\r\n }",
"public static List<Book> searchBookByNameOfSeller(String nameOfSeller) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameOfTheSeller\").setString(\"nameOfTheSeller\", nameOfSeller);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }",
"public String getHomeTeam();",
"private Team getTeam(String teamName) {\n return scoreboard.getTeam(trimString(teamName));\n }",
"private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }",
"private Object queryDatabase(String searchType, String searchTerm) {\n Connection connection = null;\n PreparedStatement statement = null;\n Search search = new Search();\n ResultSet resultSet = null;\n String queryString = null;\n\n try {\n connection = getConnection(connection);\n\n queryString = getQueryString(searchType);\n\n statement = connection.prepareStatement(queryString);\n \n if (searchType.equals(\"employeeId\")) {\n statement.setString(1, searchTerm);\n } else {\n statement.setString(1, searchTerm + \"%\");\n }\n\n resultSet = statement.executeQuery();\n\n buildEmployeeList(resultSet, search);\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n System.err.println(\"General Error\");\n exception.printStackTrace();\n } finally {\n try {\n if (resultSet != null) {\n resultSet.close();\n }\n\n\n if (statement != null) {\n statement.close();\n }\n\n\n if (connection != null) {\n connection.close();\n }\n } catch (SQLException sqlException) {\n sqlException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }\n return search;\n }",
"public interface TariffRepository extends JpaRepository<Tariff, Long> {\n\n public Tariff findByName(TariffType name);\n\n public Tariff findByTariffId(Long tariffId);\n\n @Query(\"select t.name from Tariff t\")\n public List<TariffType> findAllNames();\n\n}",
"public Team getTeamByName(String name) {\n\t\tTeam t = null;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tResultSet rs = null;\n\t\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tList<Player> players = new ArrayList<Player>();\n\t\t\tif (rs.next()) {\n\t\t\t\tplayers = formatPlayers(getPlayersByTeamId(rs.getInt(1)));\n\t\t\t\tt = new Team(players, rs.getString(2), rs.getString(3), rs.getString(4), rs.getDate(5));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn t;\n\t}",
"public ResultSet getTeamNames() {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamNamesRecords_sql = \"SELECT name FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(teamNamesRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}",
"public abstract DbQuery getQuery(String queryName);",
"public List<String> getSports(String name){\r\n\t\tList<String> list = new ArrayList<String>();\r\n\t\tConnection conn = DBConnect.getConnection();\r\n\t\tString sql = \"select sports_name from team where delegation_name= '\" + name + \"'\";\r\n\t\ttry {\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(sql);\r\n\t\t\tResultSet rst = pst.executeQuery();\r\n\t\t\twhile(rst.next()) {\r\n\t\t\t\tString team = rst.getString(\"sports_name\");\r\n\t\t\t\tlist.add(team);\r\n\t\t\t}\r\n\t\t\trst.close();\r\n\t\t\tpst.close();\r\n\t\t}catch (SQLException e) {\r\n\t\t\t// TODO: handle exception\r\n e.printStackTrace();\t\t\t\r\n\t\t}\r\n\t\treturn list;\r\n\t}",
"@Override\r\n\tpublic Worker TestHql(String workerId) {\n\t\tString hql=\"from Team where teamid=?\";//HQL语句中表名应该是ORM映射的类名,查询結果是实体类,而不是sql的结果集\r\n\t\tList<Worker> list=baseDao.findByHql(hql, workerId);\r\n\t\treturn list.get(0);\r\n\t}",
"public ArrayList<VacancyQueryDTO> findVacantRooms (VacancyQueryDTO query);",
"@Override\npublic List<Department> queryForEmp() {\n\treturn departmentMapper.queryForEmp();\n}",
"@Override\n\tpublic Teacher findByName(String name) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\tString hql=\"from Teacher t where name=?\";\n\t\tQuery query=session.createQuery(hql);\n\t\tquery.setParameter(0, name);\n\t\tList<Teacher> tlist=query.list();\n\t\tTeacher teacher=tlist.get(0);\n\t\treturn teacher;\n\t}"
] | [
"0.6716149",
"0.6186818",
"0.5743437",
"0.57375103",
"0.5715184",
"0.5646621",
"0.54148453",
"0.5369082",
"0.5350663",
"0.531239",
"0.5261536",
"0.52509755",
"0.51677173",
"0.5151673",
"0.5144374",
"0.5123618",
"0.511923",
"0.5102341",
"0.50778717",
"0.5048218",
"0.49847165",
"0.49571225",
"0.49043792",
"0.4885679",
"0.48777008",
"0.4873919",
"0.485615",
"0.48337793",
"0.48268846",
"0.47692332",
"0.47692332",
"0.4766822",
"0.47585353",
"0.47558758",
"0.4747621",
"0.47272778",
"0.4723321",
"0.4699568",
"0.468704",
"0.46709287",
"0.46510583",
"0.46505302",
"0.4630705",
"0.4628494",
"0.46201742",
"0.46176893",
"0.4613282",
"0.457183",
"0.4570284",
"0.45623016",
"0.45567593",
"0.4540516",
"0.45154804",
"0.45143482",
"0.45034108",
"0.4503165",
"0.44953158",
"0.44915637",
"0.4487689",
"0.44763765",
"0.44756296",
"0.44746435",
"0.44735962",
"0.4471304",
"0.4460309",
"0.4459913",
"0.44384646",
"0.44339883",
"0.44275847",
"0.44083795",
"0.44009337",
"0.4399475",
"0.43916133",
"0.43902707",
"0.43879586",
"0.4386027",
"0.43846095",
"0.43830803",
"0.4361839",
"0.43609974",
"0.4359324",
"0.43590248",
"0.43576646",
"0.43523717",
"0.4348782",
"0.43477926",
"0.4347686",
"0.43423504",
"0.43402895",
"0.43354505",
"0.4333051",
"0.4329548",
"0.4325698",
"0.43245962",
"0.43242967",
"0.43182766",
"0.43144178",
"0.43090233",
"0.43049222",
"0.42971542"
] | 0.6181162 | 2 |
Count TAlgmntSalesTeam based on given search criteria using JPA named Query. The search criteria is of TAlgmnt type. | public Object countTAlgmntSalesTeamsByTAlgmnt(final SearchFilter<TAlgmnt> searchFilter) {
List<Object> tAlgmntList = new ArrayList<Object>();
tAlgmntList.add(searchFilter.getEntityClass());
return genericDAO.findEntitiesByNamedQuery("CountTAlgmntSalesTeamsByTAlgmnt", tAlgmntList);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object countTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Count TAlgmntSalesTeam ===========\");\n\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\t\tfinal JPAQuery jpaCountQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaCountQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaCountQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaCountQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaCountQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\n\t\tjpaCountQuery.setJPAql(JPACOUNTQL);\n\t\tjpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaCountQuery.setLogicalOperatorEnum(logOpEnum);\n\n\t\treturn genericDAO.findEntities(jpaCountQuery, -1, -1);\n\t}",
"Object countTAlgmntBussRulesByTAlgmntSalesTeam(SearchFilter<TAlgmntSalesTeam> searchFilter);",
"public Object countTAlgmntSalesTeamsByTSalesTeam(final SearchFilter<TSalesTeam> searchFilter) {\n\n\t\tfinal TSalesTeam tSalesTeam = searchFilter.getEntityClass();\n\t\tList<Object> tSalesTeamList = new ArrayList<Object>();\n\t\treturn genericDAO.findEntitiesByNamedQuery(\"CountTAlgmntSalesTeamsByTSalesTeam\", tSalesTeamList);\n\t}",
"Long queryCount(ProductSearchParm productSearchParm);",
"int findCountByCriteria(String eCriteria, Object... parameters);",
"@Query(value = \"{alias:?0}\", count = true)\n int countQuiz();",
"public long count(String searchTerm, String searchId, String searchDirection, String searchStartStage, String searchEndStage, String searchPerspective) throws Exception {\n\n String searchTermWithWildCards = \"\";\n String searchEMAPAIdWithWildCards = \"\";\n String searchEMAPIdWithWildCards = \"\";\n\n if (WhatIsThisString.isItNumeric(searchTerm)){\n \tsearchId = \"%\" + searchTerm + \"%\";\n \tsearchTermWithWildCards = \"\";\n \tsearchTerm = \"\";\n }\n \n if (searchDirection.equals(\"UP\")) {\n searchTermWithWildCards = \"%.\" + searchTerm;\n }\n\n if (searchDirection.equals(\"ALL\")) {\n \t//searchTermWithWildCards = \"%.\" + searchTerm + \".%\";\n searchTermWithWildCards = \"%\" + searchTerm + \"%\";\n }\n\n int start = 0;\n \n if (WhatIsThisString.isItNumeric(searchStartStage)){\n start = ObjectConverter.convert(searchStartStage, Integer.class);\n }\n\n\t\tsearchStartStage = ObjectConverter.convert(start, String.class); \n\n searchEMAPAIdWithWildCards = \"EMAPA:\" + searchId;\n searchEMAPIdWithWildCards = \"EMAP:\" + searchId;\n\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet resultSet = null;\n long count = 0;\n\n if (searchTerm.equals(\"\") && searchId.equals(\"\")){\n \t\n Object[] values = {\n \t\tsearchPerspective,\n \t\tsearchStartStage\n };\n\n try {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, SQL_ROW_COUNT_WHERE_BY_PERSPECTIVE, false, values);\n\n resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n count = resultSet.getLong(\"VALUE\");\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n \t\n }\n \n if (searchTerm.equals(\"\") && !searchId.equals(\"\")) {\n\n Object[] values = {\n \t\tsearchPerspective,\n \t\tsearchEMAPAIdWithWildCards,\n \t\tsearchEMAPIdWithWildCards,\n \t \tsearchStartStage\n };\n\n \ttry {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, SQL_ROW_COUNT_WHERE_BY_PERSPECTIVE_AND_ID, false, values);\n\n resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n count = resultSet.getLong(\"VALUE\");\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n\n }\n \t\n if (!searchTerm.equals(\"\") && searchId.equals(\"\")){\n \t\n Object[] values = {\n \t\tsearchPerspective,\n \t\tsearchTermWithWildCards,\n \t\tsearchStartStage\n };\n\n try {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, SQL_ROW_COUNT_WHERE_BY_PERSPECTIVE_AND_PATH, false, values);\n\n resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n count = resultSet.getLong(\"VALUE\");\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n \t\n }\n \n if (!searchTerm.equals(\"\") && !searchId.equals(\"\")) {\n\n Object[] values = {\n \t\tsearchPerspective,\n \t\tsearchTermWithWildCards,\n \t\tsearchEMAPAIdWithWildCards,\n \t\tsearchEMAPIdWithWildCards,\n \t\tsearchStartStage\n };\n\n \ttry {\n connection = daoFactory.getConnection();\n\n preparedStatement = prepareStatement(daoFactory.getMsgLevel(), daoFactory.getSqloutput(), connection, SQL_ROW_COUNT_WHERE_BY_PERSPECTIVE_AND_PATH_AND_ID, false, values);\n\n resultSet = preparedStatement.executeQuery();\n\n if (resultSet.next()) {\n count = resultSet.getLong(\"VALUE\");\n }\n \n } \n catch (SQLException e) {\n throw new DAOException(e);\n } \n finally {\n close(daoFactory.getMsgLevel(), connection, preparedStatement, resultSet);\n }\n }\n \t\n return count;\n }",
"private Long countPerfilCriteria(Session session, String name) {\n CriteriaBuilder cb = session.getCriteriaBuilder();\n CriteriaQuery<Long> q = cb.createQuery(Long.class);\n Root<Perfil> entityRoot = q.from(Perfil.class);\n q.select(cb.count(entityRoot));\n ParameterExpression<String> p = cb.parameter(String.class);\n q.where(cb.equal(entityRoot.get(\"nome\"), name));\n System.out.println(\"QUERY : \" + session.createQuery(q).getQueryString());\n return session.createQuery(q).getSingleResult();\n }",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery,\n Projection projection) throws SystemException {\n return banking_organizationPersistence.countWithDynamicQuery(dynamicQuery,\n projection);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(PitanjeCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Pitanje> specification = createSpecification(criteria);\n return pitanjeRepository.count(specification);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(StudentGroupCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<StudentGroup> specification = createSpecification(criteria);\n return studentGroupRepository.count(specification);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(TabelaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Tabela> specification = createSpecification(criteria);\n return tabelaRepository.count(specification);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(SygTypeSourceFinancementCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<SygTypeSourceFinancement> specification = createSpecification(criteria);\n return sygTypeSourceFinancementRepository.count(specification);\n }",
"public static <T> CriteriaQuery<Long> countCriteria(EntityManager em, CriteriaQuery<T> criteria) {\n\tCriteriaBuilder builder = em.getCriteriaBuilder();\n\tCriteriaQuery<Long> countCriteria = builder.createQuery(Long.class);\n\tcopyCriteriaNoSelection(criteria, countCriteria);\n\tcountCriteria.select(builder.count(findRoot(countCriteria,\n\t\t\t\tcriteria.getResultType())));\n\n\treturn countCriteria;\n }",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery,\n Projection projection) throws SystemException {\n return libroPersistence.countWithDynamicQuery(dynamicQuery, projection);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(EducationalRecordCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EducationalRecord> specification = createSpecification(criteria);\n return educationalRecordRepository.count(specification);\n }",
"@Query(\"select count(u) from User u where u.role = 'EMPLOYEE'\")\n Long getTotalEmployeesCount();",
"@Test()\n public void findCountPerfil() {\n try (Session session = factoryJpa.openSession()) {\n Long qtd = countPerfilCriteria(session, nome);\n System.out.println(\"QTD: \" + qtd);\n }\n }",
"@SuppressWarnings({\"unchecked\"}) \n long countNameIdName(int idPerson, Date dtSysTsQuery);",
"public static <T> Long count(EntityManager em, CriteriaQuery<T> criteria) {\n\n\treturn em.createQuery(countCriteria(em, criteria)).getSingleResult();\n }",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery)\n throws SystemException {\n return banking_organizationPersistence.countWithDynamicQuery(dynamicQuery);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(FactureCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Facture> specification = createSpecification(criteria);\n return factureRepository.count(specification);\n }",
"long countSearchByCompanyName(Map<String, String> options);",
"@Override\n public Long countByCriteria(String[] layerList, String[] taxonList, String[] indicList,String colum) {\n //Build the query string base on parameters\n StringBuilder query = new StringBuilder();\n query.append(\"Select count(distinct \"+colum+\") from ait.taxon_info_index where \");\n \n //If there is geografical criteria\n if(layerList.length>0 && !layerList[0].equals(\"\")){\n query.append(\"(\");\n for(int i = 0;i<layerList.length;i++){\n String[] aux = layerList[i].split(\"~\");\n String layer = aux[0];\n String polygon = aux[1];\n if(i==layerList.length-1){ //last element\n query.append(\"(layer_table = '\"+layer+\"' and polygom_id = \"+polygon+\")\");\n }\n else{\n query.append(\"(layer_table = '\"+layer+\"' and polygom_id = \"+polygon+\") or \");\n }\n }\n query.append(\")\");\n }\n \n //If there is taxonomy criteria\n if(taxonList.length>0 && !taxonList[0].equals(\"\")){\n if(layerList.length>0 && !layerList[0].equals(\"\")){\n query.append(\" and (\");\n }\n else{\n query.append(\"(\");\n }\n for(int i = 0;i<taxonList.length;i++){\n //Get the name and taxonomical level of the specified taxon\n TaxonIndex ti = taxonIndexDAO.getTaxonIndexByName(taxonList[i]);\n if(ti.getTaxon_id()!=null){\n //To search in the specified taxonomyField\n String levelColum;\n switch (ti.getTaxon_range().intValue()) {\n case 1:\n levelColum = TaxonomicalRange.KINGDOM.getFieldName();\n break;\n case 2:\n levelColum = TaxonomicalRange.PHYLUM.getFieldName();\n break;\n case 3:\n levelColum = TaxonomicalRange.CLASS.getFieldName();\n break;\n case 4:\n levelColum = TaxonomicalRange.ORDER.getFieldName();\n break;\n case 5:\n levelColum = TaxonomicalRange.FAMILY.getFieldName();\n break;\n case 6:\n levelColum = TaxonomicalRange.GENUS.getFieldName();\n break;\n case 7:\n levelColum = TaxonomicalRange.SPECIFICEPITHET.getFieldName();\n break;\n default:\n levelColum = TaxonomicalRange.SCIENTIFICNAME.getFieldName();\n break;\n }\n if(i==taxonList.length-1){ //last element\n query.append(\"(\"+levelColum+\" = \"+ti.getTaxon_id()+\")\");\n }\n else{\n query.append(\"(\"+levelColum+\" = \"+ti.getTaxon_id()+\") or \");\n }\n }\n else{ //If the taxon doesn't exist on data base\n String levelColum = TaxonomicalRange.KINGDOM.getFieldName();\n if(i==taxonList.length-1){ //last element\n query.append(\"(\"+levelColum+\" = \"+-1+\")\");\n }\n else{\n query.append(\"(\"+levelColum+\" = \"+-1+\") or \");\n }\n }\n }\n query.append(\")\");\n }\n \n //If there is indicators criteria\n if(indicList.length>0 && !indicList[0].equals(\"\")){\n if((taxonList.length>0 && !taxonList[0].equals(\"\"))||(layerList.length>0 && !layerList[0].equals(\"\"))){\n query.append(\" and (\");\n }\n else{\n query.append(\"(\");\n }\n for(int i = 0;i<indicList.length;i++){\n if(i==indicList.length-1){ //last element\n query.append(\"(indicator_id = \"+indicList[i]+\")\");\n }\n else{\n query.append(\"(indicator_id = \"+indicList[i]+\") or \");\n }\n }\n query.append(\")\");\n }\n \n //Execute query\n return taxonInfoIndexDAO.countTaxonsByQuery(query.toString());\n }",
"int countByExample(MEsShoppingCartDTOCriteria example);",
"public List<TAlgmntSalesTeam> findTAlgmntSalesTeams(final SearchFilter<TAlgmntSalesTeam> searchFilter) {\n\t\tLOGGER.info(\"=========== Find TAlgmntSalesTeams ===========\");\n\n\t\tfinal PaginationInfo paginationInfo = searchFilter.getPaginationInfo();\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\n\t\tfinal TAlgmntSalesTeam tAlgmntSalesTeam = searchFilter.getEntityClass();\n\t\tfinal int maxresult = paginationInfo.getMaxRows();\n\t\tfinal int index = paginationInfo.getStartIndex();\n\t\t//int maxresult = 3;\n\t\t//int index=0;\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\n\t\tfinal JPAQuery jpaQuery = new JPAQuery(\"tAlgmntSalesTeamentity\", tAlgmntSalesTeam);\n\n\t\tif (tAlgmntSalesTeam.getTSalesTeam() == null) {\n\t\t\tjpaQuery.bind(TSALESTEAM, new TSalesTeam());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesTeam {}\" + tAlgmntSalesTeam.getTSalesTeam());\n\n\t\t\tjpaQuery.bind(TSALESTEAM, tAlgmntSalesTeam.getTSalesTeam());\n\t\t}\n\n\t\tif (tAlgmntSalesTeam.getTAlgmnt() == null) {\n\t\t\tjpaQuery.bind(TALGMNT, new TAlgmnt());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAlgmnt {}\" + tAlgmntSalesTeam.getTAlgmnt());\n\n\t\t\tjpaQuery.bind(TALGMNT, tAlgmntSalesTeam.getTAlgmnt());\n\t\t}\n\t\tjpaQuery.setJPAql(JPAQL);\n\t\tjpaQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaQuery.setLogicalOperatorEnum(logOpEnum);\n\t\treturn genericDAO.findEntities(jpaQuery, index, maxresult);\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(BrandCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Brand> specification = createSpecification(criteria);\n return brandRepository.count(specification);\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(PasoCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Paso> specification = createSpecification(criteria);\n return pasoRepository.count(specification);\n }",
"long count(String query);",
"long count(String query);",
"@Query(\"select count(u) from User u where u.role = 'CUSTOMER'\")\n Long getTotalCustomersCount();",
"int countByExample(SysTeamExample example);",
"@Transactional(readOnly = true)\n public long countByQueryWrapper(QueryWrapper queryWrapper) {\n log.debug(\"count by queryWrapper : {}\", queryWrapper);\n return ossConfigRepository.selectCount(queryWrapper);\n }",
"int countByExample(MVoucherDTOCriteria example);",
"abstract public TypedQuery<?> getCountQuery() ;",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic long dynamicQueryCount(\n\t\tDynamicQuery dynamicQuery, Projection projection);",
"@Transactional(readOnly = true)\n public long countByCriteria(OssConfigCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n createQueryWrapper(criteria);\n return ossConfigRepository.selectCount(this);\n }",
"@SuppressWarnings(\"unchecked\")\n public Object countByQuery(String queryString, Collection<QueryParameter> parameters)\n {\n Query query = session.createQuery(queryString);\n for (QueryParameter parameter : parameters)\n {\n if (parameter.getParameterValue() instanceof Collection)\n query.setParameterList(parameter.getParameterName(), (Collection) parameter.getParameterValue());\n else\n query.setParameter(parameter.getParameterName(), parameter.getParameterValue());\n }\n\n return query.uniqueResult();\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {\n\n\t\treturn _participationLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"Object countTAlgmntBussRules(SearchFilter<TAlgmntBussRule> searchFilter);",
"@Override\n public int countByQuery(Ares2ClusterQuery query) {\n return ares2ClusterExtMapper.countByQuery(query);\n }",
"@Override\n\tpublic int countByNameAndDevision(String name, long devisionId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAMEANDDEVISION;\n\n\t\tObject[] finderArgs = new Object[] { name, devisionId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_DEPARTMENT_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_DEVISIONID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(devisionId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn monthlyTradingPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(AccbillnoCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Accbillno> specification = createSpecification(criteria);\n return accbillnoRepository.count(specification);\n }",
"@Override\n public long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _muQuxianQujianLocalService.dynamicQueryCount(dynamicQuery,\n projection);\n }",
"@Override\n\tpublic int QueryProductProjectWithSuiteCount(int productProjectId, int testSuiteId, String testSuiteName) {\n\t\treturn productProjectWithSuiteDAO.QueryProductProjectWithSuiteCount(productProjectId, testSuiteId, testSuiteName);\n\t}",
"public int searchRowsCount(SearchCriteria cri);",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn itemPublicacaoPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(EstadoCandidaturaCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<EstadoCandidatura> specification = createSpecification(criteria);\n return estadoCandidaturaRepository.count(specification);\n }",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _esfResultLocalService.dynamicQueryCount(dynamicQuery, projection);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection) {\n\n\t\treturn _participationLocalService.dynamicQueryCount(\n\t\t\tdynamicQuery, projection);\n\t}",
"Object countTAlgmntBussRulesByTBussRuleConfig(SearchFilter<TBussRuleConfig> searchFilter);",
"@SelectProvider(type=TCmSetChangeSiteStateSqlProvider.class, method=\"countBySpec\")\r\n int countBySpec(TCmSetChangeSiteStateSpec Spec);",
"int countByExample(SmsEmployeeTeamExample example);",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _surveyLocalService.dynamicQueryCount(dynamicQuery, projection);\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(CDocumentTypeCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<CDocumentType> specification = createSpecification(criteria);\n return cDocumentTypeRepository.count(specification);\n }",
"@Override\n public long dynamicQueryCount(\n com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n com.liferay.portal.kernel.dao.orm.Projection projection)\n throws com.liferay.portal.kernel.exception.SystemException {\n return _staffMemberLocalService.dynamicQueryCount(dynamicQuery,\n projection);\n }",
"@Override\n\tpublic int findCounts(DetachedCriteria detachedCriteria) {\n\t\treturn scoreDao.findCounts(detachedCriteria);\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(AuditCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Audit> specification = createSpecification(criteria);\n return auditRepository.count(specification);\n }",
"public Long getCountAllResults() {\n\n //create a querybuilder for count\n QueryBuilder queryBuilderCount = dao.getQueryBuilder()\n .from(dao.getEntityClass(), (joinBuilder != null ? joinBuilder.getRootAlias() : null))\n .join(joinBuilder)\n .add(getCurrentQueryRestrictions())\n .debug(debug);\n\n Long rowCount;\n //added distinct verification\n if (joinBuilder != null && joinBuilder.isDistinct()) {\n rowCount = queryBuilderCount.countDistinct(joinBuilder.getRootAlias());\n } else {\n rowCount = queryBuilderCount.count();\n }\n\n return rowCount;\n }",
"@Transactional(readOnly = true)\n public long countByQueryWrapper(QueryWrapper queryWrapper) {\n log.debug(\"count by queryWrapper : {}\", queryWrapper);\n return apiPermissionRepository.selectCount(queryWrapper);\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface StudentClassLogRepository extends JpaRepository<StudentClassLog, Long>, JpaSpecificationExecutor<StudentClassLog> {\n\n List<StudentClassLog> findByStudent_Id(Long studentId);\n\n @Query(nativeQuery = true, value = \"select count(0) as studentClassLogCount from student_class_log where arrangement_id = :1\")\n Integer getStudentClassLogCount(Long arrangementId);\n}",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn itemPublicacaoPersistence.countWithDynamicQuery(dynamicQuery);\n\t}",
"public long getUsersCount(\n org.eclipse.stardust.engine.api.query.UserQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"@Override\n\tpublic int countByName(String name) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n\t\tObject[] finderArgs = new Object[] { name };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_LEGACYDB_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery) {\n\t\treturn monthlyTradingPersistence.countWithDynamicQuery(dynamicQuery);\n\t}",
"@Query(\"SELECT count(*) FROM DemoEntity d\")\r\n\tpublic Integer countDemo();",
"public int countByname(java.lang.String name);",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tDynamicQuery dynamicQuery, Projection projection) {\n\n\t\treturn csclPollsChoicePersistence.countWithDynamicQuery(\n\t\t\tdynamicQuery, projection);\n\t}",
"public void infoCustomer() { ////AGGIUSTA\n\n CriteriaBuilder cb = em.getCriteriaBuilder();\n\n CriteriaQuery<Customer> cq = cb.createQuery(Customer.class);\n\n Root<Customer> cust = cq.from(Customer.class);\n\n cq.multiselect(cust.get(\"lastName\"), cb.count(cust).alias(\"numero di customer\")).groupBy(cust.get(\"lastName\"));\n\n System.out.print(\"lastName\");\n System.out.println(\"\\t Count\");\n\n /* List<Object[]> list = em.createQuery(cq).getResultList(); \n \nfor(Object[] object : list){ \n System.out.println(object[0] + \" \" + object[1]); \n \n} \n\n em.getTransaction().commit();\n em.close();\n emf.close();\n */\n }",
"@SuppressWarnings(\"unchecked\")\n public Object countByQuery(String queryString, QueryParameter... parameters)\n {\n return countByQuery(queryString, Arrays.asList(parameters));\n }",
"@Override\n\tpublic int countByname(String name) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n\t\tObject[] finderArgs = new Object[] { name };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_CAMPUS_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery);",
"@Override\n public long dynamicQueryCount(DynamicQuery dynamicQuery)\n throws SystemException {\n return libroPersistence.countWithDynamicQuery(dynamicQuery);\n }",
"public String countProjects(Map<String, Object> parameter) {\n return new SQL() {{\n SELECT(\"count(0)\");\n\n FROM(TABLE_NAME + \" p\");\n WHERE(\"p.id in \" +\n \"(select project_id from \"+ RELEATION_TABLE_NAME+\" where user_id=#{userId} \" +\n \"union select id as project_id from \"+ TABLE_NAME+\" where user_id=#{userId})\");\n\n Object searchVal = parameter.get(\"searchVal\");\n if(searchVal != null && StringUtils.isNotEmpty(searchVal.toString())){\n WHERE( \" p.name like concat('%', #{searchVal}, '%') \");\n }\n WHERE(\"p.flag = 1\");\n }}.toString();\n }",
"@Transactional(readOnly = true)\n public long countByCriteria(ViewPermissionCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<ViewPermission> specification = createSpecification(criteria);\n return viewPermissionRepository.count(specification);\n }",
"int getCountRouteSupplierByCriteria(CountRouteSupplierCriteria dto);",
"public int count(final Query qry) {\n\t\tassert(qry != null);\n\t\t\n\t\tStopwatch stopWatch = Stopwatch.createStarted();\n\t\t\n\t\tint outCount = 0;\n\t\ttry {\n\t\t\t_indexSearcherReopenThread.waitForGeneration(_reopenToken);\t\t// wait untill the index is re-opened\n\t\t\tIndexSearcher searcher = _indexSearcherReferenceManager.acquire();\n\t\t\ttry {\n\t\t\t\tTopDocs docs = searcher.search(qry,0);\n\t\t\t\tif (docs != null) outCount = docs.totalHits;\n\t\t\t\tlog.debug(\"count-search executed against lucene index returning {}\",outCount);\n\t\t\t} finally {\n\t\t\t\t_indexSearcherReferenceManager.release(searcher);\n\t\t\t}\n\t\t} catch (IOException ioEx) {\n\t\t\tlog.error(\"Error re-opening the index {}\",ioEx.getMessage(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t ioEx);\n\t\t} catch (InterruptedException intEx) {\n\t\t\tlog.error(\"The index writer periodically re-open thread has stopped\",intEx.getMessage(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t intEx);\n\t\t}\n\t\t\n\t\tlog.info(\"Lucene query (elapsed time: {} milis): {}\",NumberFormat.getNumberInstance(Locale.getDefault()).format(stopWatch.elapsed(TimeUnit.MILLISECONDS)),qry);\t\t\n\t\tstopWatch.stop();\n\t\t\n\t\treturn outCount;\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(DSpczCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<DSpcz> specification = createSpecification(criteria);\n return dSpczRepository.count(specification);\n }",
"@Override\n\tpublic int countBySearch(Params params) throws Exception {\n\t\treturn 0;\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\tpublic Long countHL7s(Class clazz, Integer messageState, String query);",
"public Object countTSalesPosAttrs(final SearchFilter<TSalesPosAttr> searchFilter) {\n\t\tLOGGER.info(\"=========== Count TSalesPosAttr ===========\");\n\n\t\tfinal OperatorInfo operatorInfo = searchFilter.getOperatorInfo();\n\t\tfinal TSalesPosAttr tSalesPosAttr = searchFilter.getEntityClass();\n\t\tfinal LogicalOperatorEnum logOpEnum = operatorInfo.getLogicalOperator();\n\t\tfinal JPAQuery jpaCountQuery = new JPAQuery(\"tSalesPosAttrentity\", tSalesPosAttr);\n\n\t\tif (tSalesPosAttr.getTSalesPos() == null) {\n\t\t\tjpaCountQuery.bind(TSALESPOS, new TSalesPos());\n\t\t} else {\n\t\t\tLOGGER.info(\"tSalesPos {}\"+ tSalesPosAttr.getTSalesPos());\n\n\t\t\tjpaCountQuery.bind(TSALESPOS, tSalesPosAttr.getTSalesPos());\n\t\t}\n\n\t\tif (tSalesPosAttr.getTAttrDef() == null) {\n\t\t\tjpaCountQuery.bind(TATTRDEF, new TAttrDef());\n\t\t} else {\n\t\t\tLOGGER.info(\"tAttrDef {}\"+ tSalesPosAttr.getTAttrDef());\n\n\t\t\tjpaCountQuery.bind(TATTRDEF, tSalesPosAttr.getTAttrDef());\n\t\t}\n\n\t\tjpaCountQuery.setJPAql(JPACOUNTQL);\n\t\tjpaCountQuery.setRestrictionExpressionStrings(RESTRICTIONS);\n\t\tjpaCountQuery.setLogicalOperatorEnum(logOpEnum);\n\n\t\treturn genericDAO.findEntities(jpaCountQuery, -1, -1);\n\t}",
"@Transactional(readOnly = true)\n public long countByCriteria(CustomerCriteria criteria) {\n log.debug(\"count by criteria : {}\", criteria);\n final Specification<Customer> specification = createSpecification(criteria);\n return customerRepository.count(specification);\n }",
"@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}",
"public static boolean isCountQuery(CriteriaQuery<?> query) {\n\t\treturn query.getResultType() == Long.class || query.getResultType() == long.class;\n\t}",
"@Override\r\n\t\tpublic Long TotalRecord(final String strStatement, final String WhereCond) throws Exception\r\n\t\t\t{\n\t\t\t\tLong countResults = (long) 0;\r\n\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString countQ = \"Select count (id) \" + strStatement;\r\n\t\t\t\t\t\tif (!WhereCond.equals(\"\"))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcountQ = \" where \" + WhereCond;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tfinal Query countQuery = this.session.createQuery(countQ);\r\n\t\t\t\t\t\tcountResults = (Long) countQuery.uniqueResult();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\tcatch (final Exception exp)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfinal ExceptionEntities lEntExp = new ExceptionEntities();\r\n\t\t\t\t\t\tlEntExp.setJavaClass(Thread.currentThread().getStackTrace()[1].getClassName());\r\n\t\t\t\t\t\tlEntExp.setMethodName(Thread.currentThread().getStackTrace()[1].getMethodName());\r\n\t\t\t\t\t\tExceptionHelper.WriteException(lEntExp, exp);\r\n\t\t\t\t\t}\r\n\t\t\t\treturn countResults;\r\n\t\t\t}",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection) {\n\t\treturn _vcmsPortionLocalService.dynamicQueryCount(dynamicQuery,\n\t\t\tprojection);\n\t}",
"@Override\r\n\tpublic int searchTotalCount(SearchCriteria cri) {\n\t\treturn sqlSession.selectOne(namespace + \".searchTotalCount\", cri);\r\n\t}",
"@Override\r\n\tpublic int searchTotalCount(SearchCriteria cri) {\n\t\treturn sqlSession.selectOne(namespace + \".searchTotalCount\", cri);\r\n\t}",
"int countByExample(TbaDeliveryinfoCriteria example);",
"public int countByCompanyId(long companyId);",
"long countByIdGrupo(TblGrupo tblGrupo);",
"@Override\n\tpublic int queryCount() {\n\t\treturn (int) tBasUnitClassRepository.count();\n\t}",
"@Override\n\tpublic long dynamicQueryCount(DynamicQuery dynamicQuery,\n\t\tProjection projection) {\n\t\treturn wfms_Position_AuditPersistence.countWithDynamicQuery(dynamicQuery,\n\t\t\tprojection);\n\t}",
"private int getEducationalCount(){\n int count = 0;\n\n String whereClause = DbHelper.IS_EDUCATIONAL + \" = ?\";\n String[] whereArgs = new String[]{String.valueOf(true)};\n\n Cursor cursor = mDbHelper.getReadableDatabase().query(DbHelper.TABLE_NAME, null, whereClause, whereArgs, null, null, null);\n\n while(cursor.moveToNext()){\n count++;\n }\n\n return count;\n }",
"@Override\n public int countByName(long companyId, String name)\n throws SystemException {\n FinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n Object[] finderArgs = new Object[] { companyId, name };\n\n Long count = (Long) FinderCacheUtil.getResult(finderPath, finderArgs,\n this);\n\n if (count == null) {\n StringBundler query = new StringBundler(3);\n\n query.append(_SQL_COUNT_BROKERMESSAGELISTENER_WHERE);\n\n query.append(_FINDER_COLUMN_NAME_COMPANYID_2);\n\n boolean bindName = false;\n\n if (name == null) {\n query.append(_FINDER_COLUMN_NAME_NAME_1);\n } else if (name.equals(StringPool.BLANK)) {\n query.append(_FINDER_COLUMN_NAME_NAME_3);\n } else {\n bindName = true;\n\n query.append(_FINDER_COLUMN_NAME_NAME_2);\n }\n\n String sql = query.toString();\n\n Session session = null;\n\n try {\n session = openSession();\n\n Query q = session.createQuery(sql);\n\n QueryPos qPos = QueryPos.getInstance(q);\n\n qPos.add(companyId);\n\n if (bindName) {\n qPos.add(name);\n }\n\n count = (Long) q.uniqueResult();\n\n FinderCacheUtil.putResult(finderPath, finderArgs, count);\n } catch (Exception e) {\n FinderCacheUtil.removeResult(finderPath, finderArgs);\n\n throw processException(e);\n } finally {\n closeSession(session);\n }\n }\n\n return count.intValue();\n }",
"long countByExample(EmailCriteria example);",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _esfResultLocalService.dynamicQueryCount(dynamicQuery);\n\t}",
"@Override\n\tpublic long dynamicQueryCount(\n\t\tcom.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,\n\t\tcom.liferay.portal.kernel.dao.orm.Projection projection)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException {\n\t\treturn _vanBanPhapQuyLocalService.dynamicQueryCount(dynamicQuery,\n\t\t\tprojection);\n\t}",
"int countByCompanyId(int companyId);"
] | [
"0.7562839",
"0.7026744",
"0.6676494",
"0.6078546",
"0.59777933",
"0.58701617",
"0.582322",
"0.5815612",
"0.57363975",
"0.5719658",
"0.55155116",
"0.55107534",
"0.5481985",
"0.5465433",
"0.54223746",
"0.54137236",
"0.54122066",
"0.54055387",
"0.5403246",
"0.53943455",
"0.53736323",
"0.5372293",
"0.5355706",
"0.53480273",
"0.53439677",
"0.531229",
"0.52973974",
"0.52731496",
"0.52599305",
"0.52599305",
"0.5255623",
"0.5253013",
"0.5232612",
"0.5231412",
"0.5223977",
"0.5221589",
"0.52099687",
"0.52069557",
"0.5174787",
"0.5166564",
"0.5162886",
"0.51618004",
"0.5129218",
"0.5121379",
"0.51174116",
"0.51103777",
"0.5109666",
"0.5105294",
"0.5099573",
"0.50974417",
"0.5095057",
"0.50870407",
"0.50553495",
"0.5051383",
"0.50439745",
"0.5037364",
"0.50373566",
"0.5036639",
"0.50333786",
"0.50314003",
"0.50180364",
"0.5016225",
"0.5015945",
"0.5015027",
"0.50086683",
"0.5004234",
"0.49954325",
"0.49711615",
"0.49649143",
"0.49586126",
"0.4955476",
"0.49491525",
"0.49382198",
"0.493396",
"0.493139",
"0.493114",
"0.49253753",
"0.4922919",
"0.4921313",
"0.49159425",
"0.49066743",
"0.4893335",
"0.48871997",
"0.48862556",
"0.48796928",
"0.48629618",
"0.48627204",
"0.48622805",
"0.48622805",
"0.48563227",
"0.4853957",
"0.48536062",
"0.4851574",
"0.48492944",
"0.48459092",
"0.48367244",
"0.48306423",
"0.48284364",
"0.4823238",
"0.4822901"
] | 0.700844 | 2 |
Gets the aff alignments. | @Override
public List<Object[]> getAffAlignments(Short tenantId) {
StringBuilder query = new StringBuilder().append(QueryConstants.ALIGMENT_IS_AFFILIATED);
List<Object> queryParam = new ArrayList<Object>();
queryParam.add(tenantId);
return genericDAO.findEntitiesByBuildQueries(query.toString(), queryParam, 0, -1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List getAlignmentRefs();",
"org.landxml.schema.landXML11.AlignmentNameRefs xgetAlignmentRefs();",
"public Alignment getAlignment() {\n return alignment;\n }",
"Alignment getAlignment() {\n return alignment;\n }",
"private jalview.datamodel.Sequence[] getVamsasAlignment(\n vamsas.objects.simple.Alignment valign)\n {\n vamsas.objects.simple.Sequence[] seqs = valign.getSeqs().getSeqs();\n jalview.datamodel.Sequence[] msa = new jalview.datamodel.Sequence[seqs.length];\n\n for (int i = 0, j = seqs.length; i < j; i++)\n {\n msa[i] = new jalview.datamodel.Sequence(seqs[i].getId(),\n seqs[i].getSeq());\n }\n\n return msa;\n }",
"public final String getAlignAttribute() {\n return getAttributeValue(\"align\");\n }",
"protected List<BEASTInterface> getAlignments(BeautiDoc doc) {\n\t\tif (importers == null) {\n\t\t\tinitImporters();\n\t\t}\n\t\tSet<String> extensions = new HashSet<>();\n\t\tfor (AlignmentImporter importer : importers) {\n\t\t\tfor (String extension : importer.getFileExtensions()) {\n\t\t\t\textensions.add(extension);\n\t\t\t}\n\t\t}\n File [] files = beast.app.util.Utils.getLoadFiles(\"Load Alignment File\",\n new File(Beauti.g_sDir), \"Alignment files\", extensions.toArray(new String[]{}));\n if (files != null && files.length > 0) {\n return getAlignments(doc, files);\n }\n\t\treturn null;\n\t}",
"public String[] getStrAlign() {\n if (state) return new String[]{alignB, alignA};\n return new String[]{alignA, alignB};\n }",
"public int getAlignment() {\r\n return Alignment;\r\n }",
"public int getAlignment() {\r\n return Alignment;\r\n }",
"public String getAlign() {\n return align;\n }",
"public int getAlignment()\n {\n return align;\n }",
"protected int getAlignment() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"12abfd3b-e43a-46a7-92b9-993595740399\");\n return this.alignment;\n }",
"ImmutableList<SchemaOrgType> getEducationalAlignmentList();",
"public boolean getAligning() {\n return aligning_;\n }",
"public boolean getAligning() {\n return aligning_;\n }",
"public int getAlignment()\n {\n return bouquet.getAlignment();\n }",
"void setAlignmentRefs(java.util.List alignmentRefs);",
"public XmuCoreAlignElements getXmuCoreAlignAccess() {\r\n\t\treturn pXmuCoreAlign;\r\n\t}",
"public Items[] getAnchors() {\n\t\treturn this.anchors;\n\t}",
"int getAlignValue();",
"public int[] getNumAnchors() {\n if (numAnchors == null) {\n if (rule.isAnchored()) {\n numAnchors = new int[end];\n for (int i = start; i < end; i++) numAnchors[i] = 1;\n } else {\n numAnchors = new int[0];\n for (Derivation child : children) {\n int[] childNumAnchors = child.getNumAnchors();\n if (numAnchors.length < childNumAnchors.length) {\n int[] newNumAnchors = new int[childNumAnchors.length];\n for (int i = 0; i < numAnchors.length; i++)\n newNumAnchors[i] = numAnchors[i];\n numAnchors = newNumAnchors;\n }\n for (int i = 0; i < childNumAnchors.length; i++)\n numAnchors[i] += childNumAnchors[i];\n }\n }\n }\n return numAnchors;\n }",
"void xsetAlignmentRefs(org.landxml.schema.landXML11.AlignmentNameRefs alignmentRefs);",
"@Override\n\tpublic List<Announcement> getAnnoun() {\n\t\tList<Announcement> announ = announceMapper.getAnnoun();\n\t\treturn announ;\n\t}",
"@Override\n public void align(@NonNull PbVnAlignment alignment) {\n boolean noAgentiveA0 = alignment.proposition().predicate().ancestors(true).stream()\n .allMatch(s -> s.roles().stream()\n .map(r -> ThematicRoleType.fromString(r.type()).orElse(ThematicRoleType.NONE))\n .noneMatch(ThematicRoleType::isAgentive));\n\n for (PropBankPhrase phrase : alignment.sourcePhrases(false)) {\n List<NounPhrase> unaligned = alignment.targetPhrases(false).stream()\n .filter(i -> i instanceof NounPhrase)\n .map(i -> ((NounPhrase) i))\n .collect(Collectors.toList());\n if (phrase.getNumber() == ArgNumber.A0) {\n // TODO: seems like a hack\n if (alignment.proposition().predicate().verbNetId().classId().startsWith(\"51\") && noAgentiveA0) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (EnumSet.of(ThematicRoleType.AGENT, ThematicRoleType.CAUSER,\n ThematicRoleType.STIMULUS, ThematicRoleType.PIVOT)\n .contains(unalignedPhrase.thematicRoleType())) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A1) {\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType() == ThematicRoleType.THEME\n || unalignedPhrase.thematicRoleType() == ThematicRoleType.PATIENT) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A3) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isStartingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n } else if (phrase.getNumber() == ArgNumber.A4) {\n if (containsNumber(phrase)) {\n continue;\n }\n for (NounPhrase unalignedPhrase : unaligned) {\n if (unalignedPhrase.thematicRoleType().isEndingPoint()) {\n alignment.add(phrase, unalignedPhrase);\n break;\n }\n }\n }\n\n\n }\n }",
"@ZAttr(id=659)\n public String[] getACE() {\n return getMultiAttr(Provisioning.A_zimbraACE);\n }",
"public List<BEASTInterface> getAlignments(BeautiDoc doc, File[] files, String [] args) {\n \tList<BEASTInterface> selectedBEASTObjects = getAlignments(doc, files);\n \treturn selectedBEASTObjects;\n }",
"public ArrayList<AttributDescribe> getAttributs(){\r\n \treturn this.attributs;\r\n }",
"public int getAlignment() {\n/* */ return this.newAlign;\n/* */ }",
"public String[] getAlergias() {\n return Alergias;\n }",
"public String[] getSrcPhrases(ArrayList<String> alignments){\n\t\tString[] phrases = new String[alignments.size()];\n\t\t\n\t\tString patternString = \"\\\\s\\\\|\\\\|\\\\|\"; // pattern for alignment points\n\t\t\n\t\tfor (int i=0; i<alignments.size(); i++){\n\t\t\tString[] items = alignments.get(i).split(patternString);\n\t\t\tphrases[i] = items[0]; // get source phrase\n\t\t\tSystem.out.println(phrases[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn phrases;\n\t}",
"public static int getTotalAtraccions() {\n return totalAtraccions;\n }",
"@Override\r\n\tpublic int getAlignmentSize() {\r\n\t\treturn getSize();\r\n\t}",
"public PVector Align(ArrayList<Animal> animals)\n {\n PVector sum = new PVector(0,0);\n int count = 0;\n for(Animal other : animals)\n {\n float d = PVector.dist(pos, other.pos);\n if ((d > 0) && (d < alignDist))\n {\n sum.add(other.velocity);\n count++;\n }\n }\n if (count > 0)\n {\n sum.div(animals.size());\n sum.setMag(maxSpeed);\n sum.sub(velocity);\n sum.limit(maxForce);\n }\n \n return sum;\n }",
"private Point[] getPointsForAlignment(Gesture gesture)\n {\n Point[] points = gesture.Points;\n return PointSet.translateOffset(points, PointSet.centroid(points));\n }",
"static int[] mapSequences(AlignmentResult aln, boolean anchorA)\r\n\t{\r\n\t\tchar[] a, b;\r\n\t\tint mapLength;\r\n\t\tif (anchorA)\r\n\t\t{\r\n\t\t\ta = aln.getSequence1();\r\n\t\t\tb = aln.getSequence2();\r\n\t\t\tmapLength = aln.getOriginalSequence1().length();\r\n\t\t} else\r\n\t\t{\r\n\t\t\ta = aln.getSequence2();\r\n\t\t\tb = aln.getSequence1();\r\n\t\t\tmapLength = aln.getOriginalSequence2().length();\r\n\t\t}\r\n\r\n\t\t// Go through the alignment columns, spitting out the appropriate output as we go.\r\n\t\t// NB: we're going to make this mapping 0-based, so the first position in both sequences is 0.\r\n//\t\tint[] mappedIndices = new int[aln.getOriginalSequence1().length()];\r\n\t\tint[] mappedIndices = new int[mapLength];\r\n\t\tint aInd = 0;\r\n\t\tint bInd = 0;\r\n\t\tfor (int i = 0; i < a.length; i++)\r\n\t\t{\r\n\t\t\tchar aC = a[i];\r\n\t\t\tchar bC = b[i];\r\n\t\t\tif (aC == Alignment.GAP)\r\n\t\t\t{\r\n\t\t\t\tbInd++;\r\n\t\t\t} else if (bC == Alignment.GAP)\r\n\t\t\t{\r\n\t\t\t\tmappedIndices[aInd] = -1;\r\n\t\t\t\taInd++;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\tmappedIndices[aInd] = bInd;\r\n\t\t\t\taInd++;\r\n\t\t\t\tbInd++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mappedIndices;\r\n\t}",
"public int maxAlignmentCount() {\n return mMaxAlignmentCount;\n }",
"public float getAlignment(int axis) {\n if (view != null) {\n return view.getAlignment(axis);\n }\n return 0;\n }",
"public List<Element> getApsAggregatorItems() {\n\t\treturn _apsAggregatorItems;\n\t}",
"public void mergeAlignment() {\n \n SAMFileReader unmappedSam = null;\n if (this.unmappedBamFile != null) {\n unmappedSam = new SAMFileReader(IoUtil.openFileForReading(this.unmappedBamFile));\n }\n \n // Write the read groups to the header\n if (unmappedSam != null) header.setReadGroups(unmappedSam.getFileHeader().getReadGroups());\n \n int aligned = 0;\n int unmapped = 0;\n \n final PeekableIterator<SAMRecord> alignedIterator = \n new PeekableIterator(getQuerynameSortedAlignedRecords());\n final SortingCollection<SAMRecord> alignmentSorted = SortingCollection.newInstance(\n SAMRecord.class, new BAMRecordCodec(header), new SAMRecordCoordinateComparator(),\n MAX_RECORDS_IN_RAM);\n final ClippedPairFixer pairFixer = new ClippedPairFixer(alignmentSorted, header);\n \n final CloseableIterator<SAMRecord> unmappedIterator = unmappedSam.iterator();\n SAMRecord nextAligned = alignedIterator.hasNext() ? alignedIterator.next() : null;\n SAMRecord lastAligned = null;\n \n final UnmappedReadSorter unmappedSorter = new UnmappedReadSorter(unmappedIterator);\n while (unmappedSorter.hasNext()) {\n final SAMRecord rec = unmappedSorter.next();\n rec.setReadName(cleanReadName(rec.getReadName()));\n if (nextAligned != null && rec.getReadName().compareTo(nextAligned.getReadName()) > 0) {\n throw new PicardException(\"Aligned Record iterator (\" + nextAligned.getReadName() +\n \") is behind the umapped reads (\" + rec.getReadName() + \")\");\n }\n rec.setHeader(header);\n \n if (isMatch(rec, nextAligned)) {\n if (!ignoreAlignment(nextAligned)) {\n setValuesFromAlignment(rec, nextAligned);\n if (programRecord != null) {\n rec.setAttribute(ReservedTagConstants.PROGRAM_GROUP_ID,\n programRecord.getProgramGroupId());\n }\n aligned++;\n }\n nextAligned = alignedIterator.hasNext() ? alignedIterator.next() : null;\n }\n else {\n unmapped++;\n }\n \n // Add it if either the read or its mate are mapped, unless we are adding aligned reads only\n final boolean eitherReadMapped = !rec.getReadUnmappedFlag() || (rec.getReadPairedFlag() && !rec.getMateUnmappedFlag());\n \n if (eitherReadMapped || !alignedReadsOnly) {\n pairFixer.add(rec);\n }\n }\n unmappedIterator.close();\n alignedIterator.close();\n \n final SAMFileWriter writer =\n new SAMFileWriterFactory().makeBAMWriter(header, true, this.targetBamFile);\n int count = 0;\n CloseableIterator<SAMRecord> it = alignmentSorted.iterator();\n while (it.hasNext()) {\n SAMRecord rec = it.next();\n if (!rec.getReadUnmappedFlag()) {\n if (refSeq != null) {\n byte referenceBases[] = refSeq.get(rec.getReferenceIndex()).getBases();\n rec.setAttribute(SAMTag.NM.name(),\n SequenceUtil.calculateSamNmTag(rec, referenceBases, 0, bisulfiteSequence));\n rec.setAttribute(SAMTag.UQ.name(),\n SequenceUtil.sumQualitiesOfMismatches(rec, referenceBases, 0, bisulfiteSequence));\n }\n }\n writer.addAlignment(rec);\n if (++count % 1000000 == 0) {\n log.info(count + \" SAMRecords written to \" + targetBamFile.getName());\n }\n }\n writer.close();\n \n \n log.info(\"Wrote \" + aligned + \" alignment records and \" + unmapped + \" unmapped reads.\");\n }",
"public void align( Alignment alignment, Properties param ) {\n\t\t// For the classes : no optmisation cartesian product !\n\t\tfor ( OWLEntity cl1 : ontology1.getClassesInSignature()){\n\t\t\tfor ( OWLEntity cl2: ontology2.getClassesInSignature() ){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\tfor (OWLEntity cl1:getDataProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getDataProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (OWLEntity cl1:getObjectProperties(ontology1)){\n\t\t\tfor (OWLEntity cl2:getObjectProperties(ontology2)){\n\t\t\t\tdouble confidence = match(cl1,cl2);\n\t\t\t\tif (confidence > 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\taddAlignCell(cl1.getIRI().toURI(),cl2.getIRI().toURI(),\"=\", confidence);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.out.println(e.toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\n\n\n\n\n\n\t}",
"public MapeadorAtributos getMapeadorAtributos();",
"public AlignX getAlignmentX() { return AlignX.Left; }",
"public static List<Row> getAlignment(String alignmentAlgorithm, String key, Point3d[] points1, Point3d[] points2) {\n\t\t// create input for BioJava alignment method\n\t\tAtom[] ca1 = getCAAtoms(points1);\n\t\tAtom[] ca2 = getCAAtoms(points2);\n\t\t\n\t\t// calculate the alignment\n\t\tAFPChain afp = null;\n\t\ttry {\n\t\t\tStructureAlignment algorithm = StructureAlignmentFactory.getAlgorithm(alignmentAlgorithm);\n\t\t\tafp = algorithm.align(ca1,ca2);\n\t\t\tdouble tmScore = AFPChainScorer.getTMScore(afp, ca1, ca2);\n\t\t\tafp.setTMScore(tmScore);\n\t\t} catch (StructureException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn Collections.emptyList();\n\t\t} \n\t\t\n\t\t// TODO add alignments as arrays to results\n//\t\tint[][] alignment = afp.getAfpIndex();\n//\t\tfor (int i = 0; i < alignment.length; i++) {\n//\t\t\tSystem.out.println(alignment[i][0] + \" - \" + alignment[i][1]);\n//\t\t}\n\n\t\t// record the alignment metrics\n\t\tRow row = RowFactory.create(key, afp.getOptLength(), afp.getCoverage1(), \n\t\t\t\tafp.getCoverage2(), (float) afp.getTotalRmsdOpt(), (float) afp.getTMScore());\n\n\t\treturn Collections.singletonList(row);\n\t}",
"public void format(List<Alignment> alignmentList);",
"public LinkedList[] adyacencias() {\treturn adyacencias;\t}",
"@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas() {\n\t\treturn agamaDAO.getAgamas();\n\t}",
"public List getMatchOffsetPairs() {\r\n return matchOffsetPairs;\r\n }",
"public ArrayList<String> extractAR(String paragraph){\r\n\t\tArrayList<String> attributerelationList=new ArrayList<String>();\r\n\t\t\r\n\t\treturn attributerelationList;\r\n\t\r\n\t}",
"public Attribute[] getAttributes()\n {\n return _attrs;\n }",
"boolean getAligning();",
"@Override\n\tpublic List<Arco> obtenerArcos() {\n\t\treturn arcos;\n\t}",
"@Override\n\tpublic Map<Integer, Advertisement> getAdvertisements() {\n\t\treturn adman.getAllAds();\n\t}",
"com.ctrip.ferriswheel.proto.v1.Placement getAlign();",
"public Antecedent[] getAntecedents() {\n\t\treturn mAntecedents;\n\t}",
"@Test\n\tpublic void testFindAlignment1() {\n\t\tint[] s = new int[cs5x3.length];\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\ts[i] = -1;\n\t\tAlignment.AlignmentScore score = testme3.findAlignment(s);\n\t\t// AAG-- 3\n\t\t// --GCC 3\n\t\t// -CGC- 2\n\t\t// -AGC- 3\n\t\t// --GCT 2\n\t\tassertEquals(13, score.actual);\n\t\tscore = testme4.findAlignment(s);\n\t\t// AAG-- 3\n\t\t// --GCC 3\n\t\t// -CGC- 2\n\t\t// -AGC- 3\n\t\t// -AGC- 3 [reverse strand]\n\t\tassertEquals(14, score.actual);\n\t}",
"public String[] getGlobalAlignment(String s1, String s2) {\r\n\t\tint match = 1;\r\n\t\tint mismatch = -1;\r\n\t\tint gap = -2;\r\n\t\tNeedlemanWunsch algorithm = new NeedlemanWunsch();\r\n\t\tBasicScoringScheme scoring = new BasicScoringScheme(match, mismatch, gap);\r\n\t\talgorithm.setScoringScheme(scoring);\r\n\t\talgorithm.loadSequences(s1, s2);\r\n\t\tString[] strs = new String[3];\r\n\t\t\r\n\t\ttry {\r\n\t\t\tstrs[0] = algorithm.getPairwiseAlignment().getGappedSequence1();\r\n\t\t\tstrs[1] = algorithm.getPairwiseAlignment().getGappedSequence2();\r\n\t\t\tstrs[2] = algorithm.getPairwiseAlignment().toString();\r\n\t\t\tSystem.out.println(algorithm.getPairwiseAlignment());\r\n\t\t} catch (IncompatibleScoringSchemeException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\treturn strs;\r\n\t}",
"public static List<Arena> getArenas() {\n return arenas;\n }",
"public List<ACR> getAcrs() {\n return acrs;\n }",
"public String[] createAlignmentStrings(List<CigarElement> cigar, String refSeq, String obsSeq, int totalReads) {\n\t\tStringBuilder aln1 = new StringBuilder(\"\");\n\t\tStringBuilder aln2 = new StringBuilder(\"\");\n\t\tint pos1 = 0;\n\t\tint pos2 = 0;\n\t\t\n\t\tfor (int i=0;i<cigar.size();i++) {\n\t\t//for (CigarElement ce: cigar) {\n\t\t\tCigarElement ce = cigar.get(i);\n\t\t\tint cel = ce.getLength();\n\n\t\t\tswitch(ce.getOperator()) {\n\t\t\t\tcase M:\n\t\t\t\t\taln1.append(refSeq.substring(pos1, pos1+cel));\n\t\t\t\t\taln2.append(obsSeq.substring(pos2, pos2+cel));\n\t\t\t\t\tpos1 += cel;\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase N:\n\t\t\t\t\taln1.append(this.createString('-', cel));\n\t\t\t\t\taln2.append(this.createString('-', cel));\n\t\t\t\t\tpos1 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase S:\n\t\t\t\t\taln1.append(this.createString('S', cel));\n\t\t\t\t\taln2.append(this.createString('S', cel));\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase I:\n\t\t\t\t\taln1.append(this.createString('-', cel));\n\t\t\t\t\taln2.append(obsSeq.substring(pos2, pos2+cel));\n\t\t\t\t\tpos2 += cel;\n\t\t\t\t\tbreak;\n\t\t\t\tcase D:\n\t\t\t\t\tif (i < cigar.size()-1) { \n\t\t\t\t\t\taln1.append(refSeq.substring(pos1, pos1+cel));\n\t\t\t\t\t\taln2.append(this.createString('-', cel));\n\t\t\t\t\t\tpos1 += cel;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase H:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(String.format(\"Don't know how to handle this CIGAR tag: %s. Record %d\",ce.getOperator().toString(),totalReads));\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn new String[]{aln1.toString(),aln2.toString()};\n\t\t\n\t}",
"public int getHorizontalAlignment() {\n return horizontalAlignment;\n }",
"public String[] getTrgPhrases(ArrayList<String> alignments){\n\t\tString[] phrases = new String[alignments.size()];\n\t\t\n\t\tString patternString = \"\\\\s\\\\|\\\\|\\\\|\"; // pattern for alignment points\n\t\t\n\t\tfor (int i=0; i<alignments.size(); i++){\n\t\t\tString[] items = alignments.get(i).split(patternString);\n\t\t\tphrases[i] = items[1]; // get source phrase\n\t\t\tSystem.out.println(phrases[i]);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn phrases;\n\t}",
"public static AlignedPieceOfFurniture [] getAlignedFurniture(List<HomePieceOfFurniture> furniture, \n HomePieceOfFurniture leadPiece) {\n final AlignedPieceOfFurniture[] alignedFurniture =\n new AlignedPieceOfFurniture[leadPiece == null ? furniture.size() : furniture.size() - 1];\n int i = 0;\n for (HomePieceOfFurniture piece : furniture) {\n if (piece != leadPiece) {\n alignedFurniture[i++] = new AlignedPieceOfFurniture(piece);\n }\n }\n return alignedFurniture;\n }",
"public ArrayList<Aluno> getAlunos() {\n return alunos;\n }",
"public List<arnList> getGetArnListResponses() {\n\t\treturn arnList;\n\t}",
"public List<Atividade> getAtividades() {\n return associacao.getAtividades();\n }",
"int getAlignmentStart(String[] fields) throws NumberFormatException {\n int alignmentStart = Integer.parseInt(fields[3].trim()) - 1;\n return alignmentStart;\n }",
"public List<Affaire> getAllAffaires() {\n\t\treturn null;\n\t}",
"public List<Allocation> getAllocations() {\n\t\treturn allocations;\n\t}",
"public Alignment getCellAlign() {\r\n return EnumUtil.getEnum(Alignment.values(), getAttribute(\"cellAlign\"));\r\n }",
"int align();",
"public ArrayList<String> ExtractAlignments(String src, String trg, String moses){\n\t\tArrayList<String> alignPoints = new ArrayList<String>();\n\t\t\n\t\tString patternString = \"\\\\s\\\\|(\\\\d+)\\\\-(\\\\d+)\\\\|\"; // pattern for alignment points, the indexes (ref to source phrase) are grouped\n\t\t\n\t\tPattern pattern = Pattern.compile(patternString);\n\t\tMatcher matcher = pattern.matcher(moses);\n\t\t\n\t\tint count=0; // how many times are we matching the pattern\n\t\tint istart=0; // index of input string\n\t\tString[] sourceWords = src.split(\" \");\n\t\tint src_start = 0;\n\t\tint src_end = 0;\n\t\tString src_phr = new String();\n\t\t\n\t\t// Traverse through each of the matches\n\t\t// the numbers inside the matched pattern will give us the index of the source phrases\n\t\t// the string preceding he matched pattern will give us the corresponding target string translation\n\t\twhile(matcher.find()) {\n\t\t\tcount++;\n\t\t\t//System.out.println(\"found: \" + count + \" : \" + matcher.start() + \" - \" + matcher.end() + \" for \" + matcher.group());\n\t\t\t\n\t\t\tsrc_start = new Integer(matcher.group(1)).intValue();\n\t\t\tsrc_end = new Integer(matcher.group(2)).intValue();\n\t\t\t//System.out.println(\"Srcphr: \" + matcher.group(1) + \" to \" + matcher.group(2) + sourceWords[src_start] + \" \" + sourceWords[src_end]);\n\t\t\t\n\t\t\t//alignPoints.add(moses.substring(istart,matcher.start()) + \" ||| \" + istart + \" ||| \" + matcher.start());\n\t\t\tsrc_phr = new String(sourceWords[src_start]);\n\t\t\tfor(int i=src_start+1; i<=src_end; i++){ // get the source phrases referenced by the alignment points\n\t\t\t\tsrc_phr += \" \" + sourceWords[i];\n\t\t\t}\n\t\t\talignPoints.add(src_phr + \" ||| \" + moses.substring(istart,matcher.start())); // add the source phrase and the corresponding target string translation separated by |||\n\t\t\tistart = matcher.end() + 1;\n\t\t}\n\t\t//System.out.println(\"The number of times we match patterns is \" + count);\n\t\t\n\t\treturn alignPoints;\n\t}",
"public static void printAllAffixes(ArrayList<Affix> affixes)\n\t{\n\t\tprintln(\"Printing all affixes: \");\n\t\tfor(int i = 0; i < affixes.size(); i++)\n\t\t{\n\t\t\tprint(affixes.get(i).getAffix() + \" | \");\n\t\t}\n\t\tprintln(\"\");\n\t}",
"public List<Ano> getAno() {\n\t\treturn ano;\n\t}",
"public int getSectionAlignment()\n throws IOException, EndOfStreamException\n {\n return peFile_.readInt32(relpos(Offsets.SECTION_ALIGNMENT.position));\n }",
"public List<String> getAEIsOutputFromAttacDecls(List<AttacDecl> list) \r\n\t\t{\r\n\t\tList<String> list2 = new ArrayList<String>();\r\n\t\tfor (AttacDecl attacDecl : list)\r\n\t\t\t{\r\n\t\t\tlist2.add(attacDecl.getOutputAei());\r\n\t\t\t}\r\n\t\treturn list2;\r\n\t\t}",
"public long getAnnounces() {\n return localAnnounces;\n }",
"public List<AlunosMilitaresOMDS> getListaAlunos() {\n\t\treturn listaAlunos;\n\t}",
"List<Alimento> getAlimentos();",
"public void alignment() {\n\t\toptArray = new int[lenA+1][lenB+1];\n\n\t\t//Initializing the array:\n\t\toptArray[0][0] = 0;\n\t\tfor(int i=1;i<=lenA;i++) {\n\t\t\toptArray[i][0] = i*g;\n\t\t}\n\t\tfor(int j=1;j<=lenB;j++) {\n\t\t\toptArray[0][j] = j*g;\n\t\t}\n\n\t\t//Starting the 'recurrsion':\n\t\tint p;\n\t\tString pair;\n\t\tfor(int i=1;i<=lenA;i++) {\n\t\t\tfor(int j=1;j<=lenB;j++) {\n\t\t\t\tpair = wordA.charAt(i-1) + \" \" + wordB.charAt(j-1);\n\t\t\t\tp = penaltyMap.get(pair);\n\t\t\t\toptArray[i][j] = min(p+optArray[i-1][j-1], g+optArray[i-1][j], g+optArray[i][j-1]);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tString s = \"this is a small house .\";\n\t\tString t = \"das ist ein kleines haus .\";\n\t\tString m = \"das ist |0-1| ein kleines |2-3| haus . |4-5|\";\n\t\tArrayList<String> x = new XlingualProjection().ExtractAlignments(s,t,m);\n\t\tfor (int i=0; i<x.size(); i++){\n\t\t\tSystem.out.println(x.get(i));\n\t\t}\n\t\n\t\tString[] y = new XlingualProjection().getSrcPhrases(x);\n\t\tint start = 0;\n\t\tint end = 0;\n\t\t\n\t\tfor(int i=0; i < y.length; i++){ // Traverse through each phrase\n \tend = start + y[i].length();\n \tSystem.out.println(y[i] + \" \" + start + \" \" + end);\n \t\t\n \t\tstart = end+1;\n }\n\n }",
"public List getAFDetails()\r\n\t{\n\t\treturn AffiliateDAOUtil.getAFDetails();\r\n\t}",
"public static Set<AT> getPredAts() {\n return getAts(predAts);\n }",
"public void extracAcronyms() {\n\t\tExtractAbbrev extractAbbrv = new ExtractAbbrev();\n\t\tthis.abbreviations = extractAbbrv.extractAbbrPairs(this.supportDocument);\t\t\t\n\t\t\n\t\tboolean acronym = true;\n\t\t\n\t\tfor (int j = 0; j < this.name.length(); j++) {\n\t\t\tif (Character.isLowerCase(this.name.charAt(j))) {\n\t\t\t\tacronym = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (acronym) {\n\t\t\t for (Abbreviations abbreviation : this.abbreviations) {\t\t\t\t\t\n\t\t\t\tif (abbreviation.getShortForm().equalsIgnoreCase(this.name)) {\n\t\t\t\t\tthis.alternative_names.add(abbreviation.getLongForm());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void alignColumns() {\n\t\tif ( isReferenceToPrimaryKey() ) alignColumns(referencedTable);\n\t}",
"public final int align() throws RecognitionException {\r\n int align = 0;\r\n\r\n\r\n Token INTEGER38=null;\r\n\r\n try {\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:180:5: ( ALIGN INTEGER )\r\n // D:\\\\workspace\\\\s\\\\JLLVM_b\\\\src\\\\cn\\\\edu\\\\sjtu\\\\jllvm\\\\VMCore\\\\Parser\\\\LLVM.g:180:7: ALIGN INTEGER\r\n {\r\n match(input,ALIGN,FOLLOW_ALIGN_in_align874); \r\n\r\n INTEGER38=(Token)match(input,INTEGER,FOLLOW_INTEGER_in_align876); \r\n\r\n align = Integer.parseInt((INTEGER38!=null?INTEGER38.getText():null));\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return align;\r\n }",
"public InHouseAppIdPolicyIdMapping[] getAssociations() {\r\n\t\treturn associations;\r\n\t}",
"public List<AnnotationMirror> getAnnotations() {\n\t\treturn new ArrayList<>(annotations);\n\t}",
"protected int getNumberAmps() {\n return nbrAMP;\n }",
"public float getLayoutAlignmentX(Container target) {\n\t\treturn 0;\r\n\t}",
"public void alignF() {\r\n\t\tfor (int x = 1; x <= seq1.length; x++) {\r\n\t\t\tfor (int y = 1; y <= seq2.length; y++) {\r\n\t\t\t\tdouble w1 = profile.getGextend()\r\n\t\t\t\t\t\t* profile.getGapExtend()[struct2[y - 1]]\r\n\t\t\t\t\t\t+ profile.getGopen()\r\n\t\t\t\t\t\t* profile.getGapInsert()[struct2[y - 1]];\r\n\t\t\t\tinsF[x][y] = Math.max(scoreF[x - 1][y] + w1, insF[x - 1][y]\r\n\t\t\t\t\t\t+ profile.getGextend()\r\n\t\t\t\t\t\t* profile.getGapExtend()[struct2[y - 1]]);\r\n\t\t\t\tdelF[x][y] = Math.max(scoreF[x][y - 1] + w1, delF[x][y - 1]\r\n\t\t\t\t\t\t+ profile.getGextend()\r\n\t\t\t\t\t\t* profile.getGapExtend()[struct2[y - 1]]);\r\n\t\t\t\tdouble temp = scoreF[x - 1][y - 1] + match(x, y);\r\n\t\t\t\tscoreF[x][y] = Math.max(temp, Math.max(insF[x][y], delF[x][y]));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }",
"public int getBitAlign() {\n return _bitAlign;\n }",
"public List<HunspellAffix> getPrefixes() {\n return prefixes;\n }",
"CrossAlign getCrossAlign();",
"public ArrayList<String[]> getCampPairs() {\n ArrayList<String[]> campPairs = new ArrayList<>();\n for(String camp : landmarks.getCamps().keySet()) {\n campPairs.add(new String[]{camp, landmarks.getCamps().get(camp).getAddress()});\n }\n return campPairs;\n }",
"public String[] getLocalAlignment(String s1, String s2) {\r\n\t\tint match = 1;\r\n\t\tint mismatch = -1;\r\n\t\tint gap = -2;\r\n\t\tSmithWaterman algorithm = new SmithWaterman();\r\n\t\tBasicScoringScheme scoring = new BasicScoringScheme(match, mismatch, gap);\r\n\t\talgorithm.setScoringScheme(scoring);\r\n\t\talgorithm.loadSequences(s1, s2);\r\n\t\tString[] strs = new String[3];\r\n\t\t\r\n\t\ttry {\r\n\t\t\tstrs[0] = algorithm.getPairwiseAlignment().getGappedSequence1();\r\n\t\t\tstrs[1] = algorithm.getPairwiseAlignment().getGappedSequence2();\r\n\t\t\tstrs[2] = algorithm.getPairwiseAlignment().toString();\r\n\t\t\t//System.out.println(algorithm.getPairwiseAlignment());\r\n\t\t} catch (IncompatibleScoringSchemeException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\treturn strs;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Sequence> getSequenceList() {\n\t\treturn (ArrayList<Sequence>) sequences.clone();\n\t}",
"public Vector<YANG_Linkage> getLinkages() {\n\t\treturn linkages;\n\t}",
"public ArrayList<String> getAnalytes() {\n ArrayList<String> analytes = new ArrayList<>();\n getData(analytes, \"getAnalytes\");\n return analytes;\n }"
] | [
"0.6794659",
"0.6425066",
"0.5819228",
"0.5801121",
"0.57805973",
"0.56964236",
"0.56293523",
"0.55262095",
"0.5461552",
"0.5461552",
"0.54240096",
"0.5421392",
"0.5321051",
"0.5307366",
"0.524783",
"0.5244497",
"0.5222209",
"0.515123",
"0.51502633",
"0.5133946",
"0.51294214",
"0.5081068",
"0.50500417",
"0.5049859",
"0.5047841",
"0.50233746",
"0.5017406",
"0.49886248",
"0.49687108",
"0.49522454",
"0.49048558",
"0.48966017",
"0.48795885",
"0.4862334",
"0.48520035",
"0.48481718",
"0.48334527",
"0.48191667",
"0.48029158",
"0.47977334",
"0.4778914",
"0.47717246",
"0.47716358",
"0.47659254",
"0.47636932",
"0.47609168",
"0.47576553",
"0.47366023",
"0.47146362",
"0.46982554",
"0.4698",
"0.46979135",
"0.46965694",
"0.4693512",
"0.4690309",
"0.46670523",
"0.46665627",
"0.46611765",
"0.46510106",
"0.46478266",
"0.46436772",
"0.46335533",
"0.46225312",
"0.461286",
"0.46061897",
"0.45856053",
"0.4581746",
"0.45788062",
"0.45779893",
"0.45658764",
"0.45580336",
"0.4554497",
"0.45542866",
"0.45537588",
"0.4552146",
"0.45512655",
"0.45452774",
"0.45388958",
"0.45285064",
"0.45173952",
"0.45005223",
"0.44981253",
"0.44979444",
"0.4496956",
"0.4495215",
"0.44869253",
"0.4468852",
"0.44665384",
"0.44647568",
"0.44618452",
"0.44617745",
"0.44562712",
"0.44545937",
"0.44523206",
"0.44521105",
"0.44476172",
"0.44433808",
"0.44403464",
"0.44342494",
"0.4420982"
] | 0.5861324 | 2 |
Gets the cR config. | @Override
public List<Object[]> getCRConfig(Short tenantId) {
StringBuilder query = new StringBuilder().append(QueryConstants.ALIGMENT_CR_CONFIG);
List<Object> queryParam = new ArrayList<Object>();
queryParam.add(tenantId);
return genericDAO.findEntitiesByBuildQueries(query.toString(), queryParam, 0, -1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public C getConfig()\n {\n return config;\n }",
"public FabricCommonConfig getConfig() {\n if (null == config) {\n config = new FabricCommonConfig();\n }\n return config;\n }",
"public ConfigCommon getConfig() {\n return config;\n }",
"protected Config getConfig () {\n return this.conf;\n }",
"public Config getConfig();",
"public static Config getConfig() {\r\n\t\treturn cfg;\r\n\t}",
"public static Config getConfig(){\n return _Config;\n }",
"public KernelConfig getConfig()\n {\n Kernel.checkAccess();\n return config;\n }",
"public String getConfig() {\n\t\treturn(config);\n\t}",
"public String getConfig() {\n\n return config;\n }",
"public Config getConfig() {\n return config;\n }",
"C getConfiguration();",
"public ConfigProvider getConfig() {\n return config;\n }",
"public Object getConfig() {\n return config;\n }",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"public ConfigurationNode getConfig() {\n return this.configManager.getConfig();\n }",
"public ConfigurationReader getCrInstance() throws IOException {\n\tConfigurationReader cr = new ConfigurationReader();\n\treturn cr;\n\n\t}",
"public String getConfig();",
"public p getConfig() {\n return c.K();\n }",
"public MyConfig getConfig() {\n return config;\n }",
"ConfigBlock getConfig();",
"public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}",
"public JsonObject getConfig() {\n return config;\n }",
"public ComponentListConfig getConfig() {\n return CONFIG;\n }",
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }",
"RootConfig getConfig();",
"public RapporConfig getIRRConfig() {\n return this.mIRRConfig;\n }",
"public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}",
"public Configs getConfig() {\n boolean[] $jacocoInit = $jacocoInit();\n int defaultPerLineCount = Type.FOLLOW_STORE.getDefaultPerLineCount();\n Type type = Type.FOLLOW_STORE;\n $jacocoInit[1] = true;\n Configs configs = new Configs(this, defaultPerLineCount, type.isFixedPerLineCount());\n $jacocoInit[2] = true;\n return configs;\n }",
"static Properties getConfig()\n {\n return(config);\n }",
"public DeviceConfig getConfig() {\n return config;\n }",
"public abstract String getConfig();",
"public String getStringConfiguration()\r\n\t{\r\n\t\treturn config;\r\n\t}",
"public String getComCfg() {\n return comCfg;\n }",
"public String configString() {\n return this.configString;\n }",
"ArrayList<ArrayList<String>> get_config(){\n return config_file.r_wartosci();\n }",
"com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig();",
"private RemoteConfigElement getRemoteConfig()\r\n {\r\n if (this.config == null)\r\n {\r\n // retrieve the remote configuration\r\n this.config = (RemoteConfigElement)this.configService.getConfig(\"Remote\").getConfigElement(\"remote\");\r\n }\r\n \r\n return this.config;\r\n }",
"public FCKEditorConfig getConfig()\n {\n return config;\n }",
"public DDVConfig getCurrentConfig()\n {\n return this.config;\n }",
"public ChatServiceConfiguration getConfiguration() throws RcsServiceException {\n\t\tif (api != null) {\n\t\t\ttry {\n\t\t\t\treturn api.getConfiguration();\n\t\t\t} catch(Exception e) {\n\t\t\t\tthrow new RcsServiceException(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RcsServiceNotAvailableException();\n\t\t}\n\t}",
"public DerivedFeatureConfig getConfig() {\n if (configBuilder_ == null) {\n return config_ == null ? DerivedFeatureConfig.getDefaultInstance() : config_;\n } else {\n return configBuilder_.getMessage();\n }\n }",
"public static Config config() {\n return LiveEventBusCore.get().config();\n }",
"@ApiModelProperty(required = true, value = \"Configuration parameters for the connector.\")\n public Map<String, String> getConfig() {\n return config;\n }",
"protected CpeConfiguration getCpeConfig() throws Exception {\n return cpeFactory.getCPEConfig();\n }",
"public Configuration c() {\n return configuration;\n }",
"public String getStringConfiguration() {\n\t\treturn config;\n\t}",
"public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }",
"public Object getReconstitutedConfig() {\r\n return reconstitutedConfig;\r\n }",
"public Object getConf() {\n return this.conf;\n }",
"public WriterConfig getConfig() {\n return mConfig;\n }",
"public String getUserConfig() {\n return userConfig;\n }",
"public PictureConfig getConfig() {\n return config;\n }",
"public FileConfiguration getConfig () {\n if (fileConfiguration == null) {\n this.reloadConfig();\n }\n return fileConfiguration;\n }",
"public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}",
"GeneralConfiguration getGeneralConfiguration();",
"public static Configuration getCurrentConfig() {\n return ConfigManager.getCurrentConfig();\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"protected WorkloadConfiguration getConfguration() {\n\t\treturn workloadConfiguration;\n\t}",
"public RunConfigDataNode getCurrConfig() {\n\t\treturn currConfig;\n\t}",
"public final LWGraphicsConfig getLWGC() {\n return (LWGraphicsConfig) getGraphicsConfiguration();\n }",
"@Override\n\tpublic Configuration getConf() {\n\t\treturn this.Conf;\n\t}",
"com.google.container.v1.CloudRunConfig getCloudRunConfig();",
"public Configuration getCfg() {\n return cfg;\n }",
"public static ResPackConfiguration getResPackConfiguration()\n {\n return respackConfig;\n }",
"public ConnectionConfig getConnectionConfig()\n {\n return _connectionConfig;\n }",
"public PortletConfig getPortletConfig ()\n {\n return config;\n }",
"private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }",
"public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}",
"public PerWorldConfig getConfig(World world){\n \t\treturn config.get(world);\n \t}",
"public static ConfigManager getConfiguration() {\n return configuration;\n }",
"public LocalServerConfig getConfig() {\n return serverConfig;\n }",
"public String getConfiguration() {\n return configuration;\n }",
"public static String getDbConfig(){\n return properties.getProperty(\"dbconfig\");\n }",
"public Double[] get() {\n\t\treturn config;\n\t}",
"public ConfigManager getConfigManager ()\n {\n return cfgmgr;\n }",
"public CachedConfig get(String path) {\n return confs.get(path);\n }",
"public List<TemplatorConfig> getConfig() {\n return cfg;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.assistant.embedded.v1alpha1.ConverseConfig, com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder, com.google.assistant.embedded.v1alpha1.ConverseConfigOrBuilder> \n getConfigFieldBuilder() {\n if (configBuilder_ == null) {\n if (!(converseRequestCase_ == 1)) {\n converseRequest_ = com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n }\n configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.assistant.embedded.v1alpha1.ConverseConfig, com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder, com.google.assistant.embedded.v1alpha1.ConverseConfigOrBuilder>(\n (com.google.assistant.embedded.v1alpha1.ConverseConfig) converseRequest_,\n getParentForChildren(),\n isClean());\n converseRequest_ = null;\n }\n converseRequestCase_ = 1;\n onChanged();;\n return configBuilder_;\n }",
"public String getConfiguration() {\n return this.configuration;\n }",
"public EngineConfig getEngineConfig()\n\t{\n\t\treturn config;\n\t}",
"private Configuration getConfiguration() {\n return getPackageData().getConfiguration();\n }",
"public ClientConfiguration getConfiguration() {\r\n return this.configuration;\r\n }",
"Collection<String> readConfigs();",
"public Map<String, Object> getComponentConfiguration() {\n\t\tSystem.out.println(\"WordReader.getComponentConfiguration\");\n\t\treturn null;\n\t}",
"public CniBgpConfiguration cniBgpConfiguration() {\n return this.innerProperties() == null ? null : this.innerProperties().cniBgpConfiguration();\n }",
"public UserConfig getUserConfig() {\n return _userConfig;\n }",
"@Override\n public GwtApplicationConfiguration getConfig() {\n if (config == null) {\n config = new GwtApplicationConfiguration(true);\n }\n return config;\n // Fixed size application:\n //return new GwtApplicationConfiguration(480, 320);\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"protected Configuration getConfiguration() {\n return variable.getConfiguration();\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}",
"protected final Dictionary<String, ?> getSiteConfiguration() {\n return config;\n }",
"@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig getConfig() {\n if (configBuilder_ == null) {\n if (converseRequestCase_ == 1) {\n return (com.google.assistant.embedded.v1alpha1.ConverseConfig) converseRequest_;\n }\n return com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n } else {\n if (converseRequestCase_ == 1) {\n return configBuilder_.getMessage();\n }\n return com.google.assistant.embedded.v1alpha1.ConverseConfig.getDefaultInstance();\n }\n }",
"@java.lang.Override\n public io.grafeas.v1.BuilderConfig getBuilderConfig() {\n return builderConfig_ == null\n ? io.grafeas.v1.BuilderConfig.getDefaultInstance()\n : builderConfig_;\n }",
"public CompositeConfiguration getConfiguration() {\n return _configuration;\n }",
"public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }",
"@Bean(name = \"cbglobalconfig\")\n\tpublic CircuitBreakerConfig cbGlobalConfig() {\n\treturn CircuitBreakerConfig.custom()\n\t\t\t.enableAutomaticTransitionFromOpenToHalfOpen()\n\t\t\t.waitDurationInOpenState(Duration.ofMillis(100))\n\t .failureRateThreshold(90)\n\t .waitDurationInOpenState(Duration.ofMillis(100))\n\t // .ringBufferSizeInHalfOpenState(2)\n\t .ringBufferSizeInClosedState(2)\n\t .recordExceptions(RuntimeException.class, TimeoutException.class)\n\t /* .recordFailure(throwable -> Match(throwable).of(\n Case($(instanceOf(RuntimeException.class)), true),\n Case($(), false)))*/\n\t .build();\n\t\n\t//CircuitBreakerConfig circuitBreakerConfig = \n\t\n\t}",
"public ConfigSource getConfigSource() {\n return _configSource;\n }",
"public ControllerConfig getControllerConfig() {\n return config;\n }"
] | [
"0.7630294",
"0.7319245",
"0.71219695",
"0.6968655",
"0.69189876",
"0.6813121",
"0.67857033",
"0.678033",
"0.67768705",
"0.67731",
"0.6741172",
"0.67006475",
"0.66381097",
"0.6635333",
"0.6629191",
"0.6562647",
"0.65525025",
"0.65454084",
"0.65331644",
"0.65165603",
"0.6504719",
"0.6459755",
"0.6389388",
"0.6377087",
"0.63755983",
"0.63354367",
"0.6317275",
"0.6278245",
"0.62651885",
"0.6249062",
"0.624573",
"0.61662596",
"0.6156339",
"0.6150107",
"0.61430407",
"0.6132845",
"0.6131139",
"0.6128244",
"0.61245906",
"0.61178267",
"0.611576",
"0.6096212",
"0.60836506",
"0.60804546",
"0.60742515",
"0.60724926",
"0.6057844",
"0.6051147",
"0.6019161",
"0.6018038",
"0.59920347",
"0.5956805",
"0.5951772",
"0.59283304",
"0.5912519",
"0.5911182",
"0.5895796",
"0.5890187",
"0.5890187",
"0.58803034",
"0.58678114",
"0.58465993",
"0.5844974",
"0.5838481",
"0.58336246",
"0.5829274",
"0.5824121",
"0.5789107",
"0.57826114",
"0.5770153",
"0.57628477",
"0.57569623",
"0.5756186",
"0.57554066",
"0.57398844",
"0.5737077",
"0.5732147",
"0.5731323",
"0.5726744",
"0.5720763",
"0.571669",
"0.5714109",
"0.5701778",
"0.57002467",
"0.5697092",
"0.5690025",
"0.56886077",
"0.5676395",
"0.5673273",
"0.56728023",
"0.56721663",
"0.5671716",
"0.5641139",
"0.5634774",
"0.5626099",
"0.5612285",
"0.5598169",
"0.5594233",
"0.5592695",
"0.559144",
"0.55907834"
] | 0.0 | -1 |
Fetch active algmnts data. | @Override
public List<Object[]> fetchActiveAlgmntsData(Date effEdDt,Short tenantId){
List<Object> paramList = new ArrayList<Object>();
paramList.add(effEdDt);
paramList.add(tenantId);
return genericDAO.findEntitiesByNamedQueryMultiCond("FetchActiveAlgmntsData", paramList, 0, -1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"category_s\");\n\n // This is a workaround for the gnavi API.\n // Gnavi API only allows max 1000 records for output.\n // Therefore, we divide records into smaller pieces\n // by prefectures and categories.\n for (String prefecture: prefectures) {\n for (String category: categories) {\n logger.debug(\"Prefecture: {}\", prefecture);\n logger.debug(\"Category: {}\", category);\n getVenues(client, prefecture, category, 1);\n }\n }\n }",
"private Collection<MarketDataProvider> getActiveMarketDataProviders()\n {\n populateProviderList();\n return providersByPriority;\n }",
"private void fetchData() {\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setDataObject(hierarchyTitle);\r\n requesterBean.setFunctionType(GET_HIERARCHY_DATA);\r\n AppletServletCommunicator conn = new AppletServletCommunicator(connect,requesterBean);\r\n conn.send();\r\n ResponderBean responderBean = conn.getResponse();\r\n if(responderBean != null) {\r\n if(responderBean.isSuccessfulResponse()) {\r\n queryKey = hierarchyTitle;\r\n Hashtable htData = (Hashtable)responderBean.getDataObject();\r\n extractToQueryEngine(htData);\r\n }\r\n }else {\r\n //Server Error\r\n// throw new CoeusUIException(responderBean.getMessage(),CoeusUIException.ERROR_MESSAGE);\r\n }\r\n }",
"public AlgoDiffusion getAlg() {\n\t\treturn alg;\n\t}",
"public int\ngetAlgorithm() {\n\treturn alg;\n}",
"public FetchingAllDataModel() {\n\n context = AppController.getInstance().getApplicationContext();\n }",
"@Override\n public JsonObjectRequest fetchData(AppDatabase database) {\n // create the JSON request for courses offered by each school\n return new JsonObjectRequest\n (Request.Method.GET, \"https://data.gov.sg/api/action/datastore_search?resource_id=3bb9e6b0-6865-4a55-87ba-cc380bc4df39&limit=500000\", null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n try {\n // parse results as json array\n JSONArray allSchoolToCourseAsJSONArray = getResultsAsJSONArray(response);\n\n // get each entry in results and store in database\n parseJSONArrayAndStoreInDatabase(database, allSchoolToCourseAsJSONArray);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO: Handle error\n System.out.println(\"Rabak la bro: \" + error.toString());\n }\n });\n }",
"public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }",
"void fetchStartHousesData();",
"public static List<Algorithm> getAlgorithmList() {\n \t\treturn currentAlgorithmStack.get().asList();\n \t}",
"void fetchForRentHousesData();",
"List<Elective> loadAllElectives();",
"Object getCurrentData();",
"private ProcessData getDataFor(Agent ag) {\n return (ProcessData)agents.get(ag);\n }",
"public void fetchCalibrations() {\n calibrationMenu.init();\n }",
"public static ArrayList<ArrayList<Object>> requestActiveGames() {\n\t\tarcade.requestActiveGames();\n\t\treturn arcade.getActiveGames();\n\t}",
"public List<Result> loadResults() {\n List<Result> results = null;\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n results = dbb.loadResults();\n dbb.commit();\n dbb.closeConnection();\n } catch (Exception ex) {\n Logger.getLogger(GameDBLogic.class.getName()).log(Level.SEVERE, null, ex);\n }\n return results;\n }",
"public Cursor fetchAll() {\n\t\tCursor cursor = db.query(CertificationConstants.DB_TABLE, CertificationConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}",
"private void retrieveAllUserData() {\n retrieveBasicUserInfo();\n retrieveUsersRecentMedia();\n retrieveUsersLikedMedia();\n }",
"protected static void get() {\n\t\tstepsTable.get();\n\t\tstepsTable.getWeek();\n\t\tactive.get();\n\t\tmeals.get();\n\t\taccountInfo.get();\n\t\t\n\t}",
"protected void loadInfo() {\n\t\tboolean isSuccess = true;\n\t\ttry {\n\t\t\tsmt = conn.createStatement();\n\t\t\trs = smt.executeQuery(\"select * from Google_Auth\");\n\t\t\totp_username = rs.getString(\"username\");\n\t\t\totp_SECRET_KEY = aria.Decrypt(rs.getString(\"secretcode\"));\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n isSuccess = false;\n }\n }",
"private static void getTheData()\n {\n try\n {\n ITEMS = getSalesOrderSets();\n }\n catch (OnlineODataStoreException e)\n {\n Log.e(TAG, \"caught OnlineODataStoreException\");\n }\n }",
"public Cursor fetchAllCourses() {\r\nreturn database.query(DATABASE_TABLE, new String[] { KEY_ROWID, KEY_CATEGORY, KEY_COURSENAME, KEY_ASSIGNMENTNAME, KEY_DESCRIPTION, KEY_DUEDATE, KEY_COMPLETED }, null, null, null,\r\nnull, null);\r\n}",
"public IFuture<ItemInfo[]> getCatalog()\n\t{\n\t\tfinal Future<ItemInfo[]> ret = new Future<ItemInfo[]>();\n\t\tShopCapa shop = (ShopCapa)capa.getPojoCapability();\n\t\tret.setResult(shop.getCatalog().toArray(new ItemInfo[shop.getCatalog().size()]));\n\t\treturn ret;\n\t}",
"public void loadGraph() {\n\t\tJSONArray data = null;\n\n\t\tswitch (mApp.getCurrentGroupBy()) {\n\t\tcase DATE:\n\n\t\t\tdata = DataBaseUtil.fetchEntriesByDateInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\n\t\tcase MAX:\n\n\t\t\tdata = DataBaseUtil.fetchEntriesByMaxInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\n\t\tcase NONE:\n\t\t\tdata = DataBaseUtil.fetchEntriesInJSON(mContext, mType.getId());\n\t\t\tbreak;\n\t\t}\n\t\tloadGraph(data);\n\t}",
"public String getAlg() {\r\n\t\treturn alg;\r\n\t}",
"private void getthedayactive() {\n\t\t Cursor c=mydb.rawQuery(\"SELECT * FROM day where days='\"+today+\"' \", null);\n\t\t System.out.println(\" $$$$$$$$$$$$$$$$$$$$$$$ fetchdata after retriving completed @@@@@@@@@@@@@@@@@@@@@\");\n\t\t c.moveToFirst();\n\t\t \n\t\t if(c!=null)\n\t\t {\n\t\t\t do{\n\t\t\t\t \n\t\t\t\t int c1=c.getColumnIndex(\"isActive\");\n\t\t\t\t if(c.getCount()>0)\n\t\t\t\t active=c.getInt(c1);\n\t\t\t\t System.out.println(\" $$$$$$$$$$$$$$$$$$$$$$$ fetchdata \"+active);\n\t\t\t\t \n\t\t\t }while(c.moveToNext());\n\t\t\t \n\t\t }\n\t}",
"public void loadData() {\n\t\tbookingRequestList = bookingRequestDAO.getAllBookingRequests();\n\t\tcabDetailList = cabDAO.getAllCabs();\n\t}",
"private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}",
"public Cursor fetchAllEntries() {\n /*\n return database.query(\n DATABASE_TABLE, \n new String[] { ROWID, MAC_ADDRESS, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL}, \n null,\n null, \n null,\n null, \n null);\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL\n + \" FROM \" + DATABASE_TABLE;\n return database.rawQuery(sql, null);\n }",
"public void getData() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // number the loaderManager with mPage as may be requesting up to three lots of JSON for each tab\n loaderManager.restartLoader(FETCH_STOCK_PICKING_LOADER_ID, null, loadStockPickingFromServerListener);\n } else {\n // Otherwise, display error\n // First, hide loading indicator so error message will be visible\n View loadingIndicator = getView().findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Update empty state with no connection error message\n mEmptyStateTextView.setText(R.string.error_no_internet_connection);\n }\n }",
"private void requestData() {\n Jc11x5Factory.getInstance().getJobPriceList(mHandler);\n }",
"private void fetchDashboardList() {\n /*\n * Ensures a loader is initialized and active. If the loader doesn't already exist, one is\n * created and (if the activity/fragment is currently started) starts the loader. Otherwise\n * the last created loader is re-used.\n */\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<List<VehiclesTotalRunningCosts>> theDashboardDbLoader = loaderManager.getLoader(DASHBOARD_LOADER_ID);\n\n if (theDashboardDbLoader == null) {\n loaderManager.initLoader(DASHBOARD_LOADER_ID, null, this);\n } else {\n loaderManager.restartLoader(DASHBOARD_LOADER_ID, null, this);\n }\n\n\n\n }",
"private void collectData() {\n this.collectContest();\n this.collectProblems();\n this.collectPreCollegeParticipants();\n this.collectObservers();\n }",
"public void fetch(){ \n for(int i = 0; i < this.queries.size(); i++){\n fetch(i);\n }\n }",
"@Override\n\tpublic void learn(Dataset dataset, Alg alg) throws RemoteException {\n\t\tsuper.learn(dataset, alg);\n\t\t\n\t\tbnetMap = BnetDistributedLearner.createDistributedBnet(dataset);\n\t\titemIds = bnetMap.keySet();\n\t\t\n\t}",
"void fetchForSaleHousesData();",
"public void getInfo () {\n int[] info = elevator.getInfo ();\n currFloor = info[0];\n maxCap = info[2];\n numFloors = info[3];\n currCap = info[5];\n state = info[6];\n }",
"public long[] getState() {\n return new long[] {(long)Cg0, (long)Cg1, (long)Cg2,\n (long)Cg3, (long)Cg4, (long)Cg5};\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 }",
"public static Algorithm get() {\n \t\treturn currentAlgorithmStack.get().peek();\n \t}",
"private void fetchData() {\n mNest.addGlobalListener(new NestListener.GlobalListener() {\n @Override\n public void onUpdate(@NonNull GlobalUpdate update) {\n mThermostat = update.getThermostats().get(0);\n mStructure = update.getStructures().get(0);\n if(!Auth.isSignedIn){\n Log.d(TAG, \"GlobalListener: onUpdate: User is not signed in, signing in\");\n Auth.signIn(mThermostat,mStructure);\n }\n updateViews();\n }\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 }",
"private void fetchRatesData() {\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setFunctionType(GET_RATE_DATA);\r\n requesterBean.setDataObject(instituteRatesBean);\r\n \r\n AppletServletCommunicator appletServletCommunicator = new \r\n AppletServletCommunicator(CONNECTION_STRING, requesterBean);\r\n appletServletCommunicator.setRequest(requesterBean);\r\n appletServletCommunicator.send();\r\n ResponderBean responderBean = appletServletCommunicator.getResponse();\r\n \r\n if(responderBean == null) {\r\n //Could not contact server.\r\n CoeusOptionPane.showErrorDialog(COULD_NOT_CONTACT_SERVER);\r\n return;\r\n }\r\n \r\n if(responderBean.isSuccessfulResponse()) {\r\n Hashtable ratesData = (Hashtable)responderBean.getDataObject();\r\n hasMaintainCodeTablesRt = ((Boolean)ratesData.get(\"HAS_OSP_RIGHT\")).booleanValue();\r\n if( hasMaintainCodeTablesRt ){\r\n setFunctionType(TypeConstants.MODIFY_MODE);\r\n }else {\r\n setFunctionType(TypeConstants.DISPLAY_MODE);\r\n }\r\n //queryKey = RATES + ratesData.get(\"PARENT_UNIT_NUMBER\").toString();\r\n\r\n //Set title\r\n dlgRates.setTitle(RATES + \" for Unit \" + instituteRatesBean.getUnitNumber());\r\n queryEngine.addDataCollection(queryKey, ratesData);\r\n\r\n }else {\r\n //Server Error\r\n CoeusOptionPane.showErrorDialog(responderBean.getMessage());\r\n return;\r\n }\r\n }",
"public static void main(String[] a){\n\n try {\n log.info(\"loading..\");\n\n //ExonQuantSource qs = new ExonQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n //ExonEQTLSource es = new ExonEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n TransQuantSource qs = new TransQuantSource(new FileInputStream(System.getProperty(\"exon.quant.source\")));\n TransEQTLSource es = new TransEQTLSource(new FileInputStream(System.getProperty(\"exon.eqtl.source\")), qs);\n\n\n AggregatedDataSource aggregatedSource = new AggregatedDataSource(qs, es);\n\n log.info(\"loaded\");\n\n log.info(\" \" + ((GenericQuantDataSource)aggregatedSource.quantSource).getStats());\n log.info(\" \" + ((GenericEQTLDataSource)aggregatedSource.eQTLSource).getStats());\n\n String chr = \"1\";\n int start = 1628906;\n int stop = 1629906;\n\n log.info(\"selecting \" + chr + \":\" + start + \"-\" + stop);\n\n ArrayList<DataFeature> quantResult = null;\n ArrayList<DataFeature> eQTLResult = null;\n\n long startTime = System.currentTimeMillis();\n\n quantResult = aggregatedSource.locateQuantFeatures(chr, start, stop);\n eQTLResult = aggregatedSource.locateEQTLFeatures(chr, start, stop);\n\n //for(int i=9;i<1000;i++) {\n //}\n\n long estimatedTime = System.currentTimeMillis() - startTime;\n\n log.info(\"Estimated run time:\" + estimatedTime + \" Millis\");\n\n log.info(\"quantResult.size() = \" + quantResult.size());\n log.info(\"eQTLResult.size() = \" + eQTLResult.size());\n\n for (DataFeature f : quantResult) {\n log.info(\"1 f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore() );\n }\n\n for (DataFeature f : eQTLResult) {\n log.info(\"f = \" + f.getId() + \" start:\" + f.getStart() +\n \" end:\" + f.getEnd() + \" score:\" + f.getScore());\n\n log.info(\"linked to :\");\n\n for (LinkedFeature l0 : f.getLinked()) {\n log.info(\" linked = \" + l0.getFeature().getId() + \" start:\" + l0.getFeature().getStart() +\n \" end:\" + l0.getFeature().getEnd() + \" link score:\" + l0.getLinkScore());\n }\n }\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// Auto-generated catch block\n\t\t\tlog.error(\"Error!\", e);\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n log.error(\"Error!\", e);\n\t\t}\n\t}",
"@Override\n\tpublic void learn(Dataset dataset, Alg alg) {\n\t\tsuper.learn(dataset, alg);\n\t\t\n\t\tbnetMap = BnetDistributedLearner.createDistributedBnet(dataset);\n\t\titemIds = bnetMap.keySet();\n\t\t\n\t}",
"private void FetchingData() {\n\t\t try { \n\t\t\t \n\t \tmyDbhelper.onCreateDataBase();\n\t \t \t\n\t \t\n\t \t} catch (IOException ioe) {\n\t \n\t \t\tthrow new Error(\"Unable to create database\");\n\t \n\t \t} \n\t \ttry {\n\t \n\t \t\tmyDbhelper.openDataBase();\n\t \t\tmydb = myDbhelper.getWritableDatabase();\n\t\t\tSystem.out.println(\"executed\");\n\t \t\n\t \t}catch(SQLException sqle){\n\t \n\t \t\tthrow sqle;\n\t \n\t \t}\n\t}",
"int[] retrieveAllData();",
"private static HashMap<Integer, Course> getCourses() {\r\n return IO.getCoursesFromInput(); // get courses from file\r\n }",
"private boolean isFetchNeeded() {\n return true;\n }",
"public Map<String, Object> getCurrentData() throws Exception;",
"private void loading(){\n mDbHelper = new DbHelper(getActivity());\n if(!(mDbHelper.getPlanCount() == 0)){\n plan_list.addAll(mDbHelper.getAllPlan());\n }\n refreshList();\n }",
"private void getData(){\r\n \tsetProgressBarIndeterminateVisibility(true);\r\n \t\r\n\t String url = \"HospitalInfo?hospital=\" + URLEncoder.encode(hospital) + \"&ssid=\" + UserInfo.getSSID();\r\n\t download = new HttpGetJSONConnection(url, mHandler, TASK_GETDATA);\r\n\t download.start();\r\n }",
"private void getActivityData(String accessToken, boolean getGoal) {\r\n // Hide previous and next buttons until new data is loaded\r\n Button btnPrev = findViewById(R.id.btn_prev);\r\n btnPrev.setVisibility(View.GONE);\r\n Button btnNext = findViewById(R.id.btn_next);\r\n btnNext.setVisibility(View.GONE);\r\n\r\n // Call method to get data based on data type\r\n switch(dataType) {\r\n case \"NON-SED\":\r\n getDayNonSedTimeData(accessToken);\r\n break;\r\n case \"CALORIE\":\r\n getWeekCalorieData(accessToken, getGoal);\r\n break;\r\n case \"ACTIVE\":\r\n getWeekActiveTimeData(accessToken);\r\n break;\r\n }\r\n }",
"public void acquireDataTable() {\n if (MainWindow.tabPane.getSelectedComponent() == null)\n return;\n\n BasicEDFPane splitPane = (BasicEDFPane)MainWindow.tabPane.getSelectedComponent();\n if (splitPane instanceof WorkingTablePane) {\n WorkingTablePane pane = (WorkingTablePane)splitPane;\n dataTable = pane.getEdfTable();\n } else if (splitPane instanceof ESATemplatePane) {\n ESATemplatePane pane = (ESATemplatePane)splitPane;\n dataTable = pane.getEsaTemplateTable();\n }\n }",
"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 }",
"protected abstract void retrievedata();",
"public void getDataFromDatabase(){\r\n\t \tArrayList<Object> row = HomeActivity.dbPrograms.getDetail(SelectedID);\r\n\t \t\r\n\t\t\t// store data to variables\r\n\t \tProgramID = Integer.parseInt(row.get(0).toString());\r\n\t \tWorkoutID = Integer.parseInt(row.get(1).toString());\r\n\t \tName = row.get(2).toString();\r\n\t \tSelectedDayID = Integer.parseInt(row.get(3).toString());\r\n\t \tImage = row.get(4).toString();\r\n\t \tTime = row.get(5).toString().trim();\r\n\t \tSteps = row.get(6).toString();\r\n\t \t\r\n\t }",
"public CPGCommandResult getAllCPGDetails() throws Exception {\n _log.info(\"3PARDriver:getAllCPGDetails enter\");\n ClientResponse clientResp = null;\n\n try {\n clientResp = get(URI_CPGS);\n if (clientResp == null) {\n _log.error(\"3PARDriver:There is no response from 3PAR\");\n throw new HP3PARException(\"There is no response from 3PAR\");\n } else if (clientResp.getStatus() != 200) {\n String errResp = getResponseDetails(clientResp);\n throw new HP3PARException(errResp);\n } else {\n String responseString = clientResp.getEntity(String.class);\n _log.info(\"3PARDriver:getAllCPGDetails 3PAR response is {}\", responseString);\n CPGCommandResult cpgResult = new Gson().fromJson(sanitize(responseString),\n CPGCommandResult.class);\n return cpgResult;\n }\n } catch (Exception e) {\n throw e;\n } finally {\n if (clientResp != null) {\n clientResp.close();\n }\n _log.info(\"3PARDriver:getSystemDetails leave\");\n } //end try/catch/finally\n }",
"private void doGetExercises() {\n if (getMobileClientService() == null) {\n Log.w(TAG, \"Service is still not bound\");\n gettingAllExercisesOperationResult(false, \"Not bound to the service\", null);\n return;\n }\n\n try {\n boolean isGetting = getMobileClientService().getAllExercises();\n if (!isGetting) {\n gettingAllExercisesOperationResult(false, \"No Network Connection\", null);\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n gettingAllExercisesOperationResult(false, \"Error sending message\", null);\n }\n }",
"public IAlgo getAlgo();",
"private void fetchData() {\r\n if (fetchDialogDataInBackground != null && fetchDialogDataInBackground.getStatus() != AsyncTask.Status.FINISHED)\r\n fetchDialogDataInBackground.cancel(true);\r\n fetchDialogDataInBackground = new FetchDialogDataInBackground();\r\n fetchDialogDataInBackground.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\r\n }",
"List<Acquest> getAllAcquests();",
"@JsonIgnore\n @Override\n public List<Experiment> getExperiments()\n {\n if (getFetchOptions() != null && getFetchOptions().hasExperiments())\n {\n return experiments;\n }\n else\n {\n throw new NotFetchedException(\"Experiments have not been fetched.\");\n }\n }",
"private void getAll(){\n if (!LOADED_ALL) {\n Message msg_getpersons = Message.obtain(getPersonsHandlerThread.getHandler());\n msg_getpersons.what = GetPersonsHandlerThread.TASK_GET_PERSONS;\n int table1 = TABLE_ALL;\n msg_getpersons.arg1 = table1;\n Log.d(TAG, \"DbOperationsRunnable: run(): preparing message msg_getperson with following attributes:\");\n Log.d(TAG, \"DbOperationsRunnable: run(): msg_getpersons.what = \" + msg_getpersons.what);\n Log.d(TAG, \"DbOperationsRunnable: run(): msg_getpersons.arg1 = \" + msg_getpersons.arg1);\n Log.d(TAG, \"DbOperationsRunnable: run(): sending message...\");\n msg_getpersons.sendToTarget();\n while (true) {\n if (DONE_TASK_GETPERSONS) {\n DONE_TASK_GETPERSONS = false;\n break;\n }\n }\n LOADED_ALL = true;\n } else {\n persons_list.clear();\n persons_list.addAll(all_list);\n }\n }",
"java.util.List<UserOuterClass.ExperimentInfo> \n getExperimentsList();",
"public void queryAccelerometerData()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(serverRequestStatus==true)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcheckApi();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Entity[] getCompletionData() throws IOException,\n InvalidStatusException\n {\n return getWorkDataFromFile(wFileName);\n }",
"public List<ExperimentData> getExperimentData() throws PortalException, AiravataAPIInvocationException;",
"private void getAllProviders() {\r\n InfoService.Util.getService().getAllProviders(new MethodCallback<List<CabProviderBean>>() {\r\n\r\n @Override public void onFailure(Method method, Throwable exception) {\r\n viewProviderTable.setText(6, 0, \"Error could not connect to load data\" + exception);\r\n\r\n }\r\n\r\n @Override public void onSuccess(Method method, List<CabProviderBean> response) {\r\n\r\n updateDeleteTable(response);\r\n }\r\n\r\n });\r\n }",
"public Lab[] getAvailableLabs()\n {\n List<Lab> labsList = new ArrayList<Lab> ();\n File [] files = directory.listFiles();\n for (File file : files)\n {\n Lab lab = Lab.getInstance(file);\n if (lab != null)\n labsList.add(lab);\n }\n return labsList.toArray(new Lab [0]);\n }",
"public HOp[] ops()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n return OPS;\r\n }",
"public ResultSet getAllDemographyInfo () throws Exception {\r\n String sql = \"SELECT * FROM public.demographyinfo ORDER BY user;\";\r\n return stmt.executeQuery(sql);\r\n }",
"private List getActiveEntities() {\n \t\tList<String> chainIds = new ArrayList<String>();\n \t\tbioUnitTransformationsStructAssembly = bioUnitsStructAssembly.getBioUnitTransformationList(initialBioId);\n \t\tif (bioUnitTransformationsStructAssembly != null) {\n \t\t\tfor (ModelTransformationMatrix trans: bioUnitTransformationsStructAssembly) {\n \t\t\t\tchainIds.add(trans.ndbChainId);\n \t\t\t}\n \t\t}\n \t return chainIds;\n \t}",
"private java.util.List<pkg.Courses> getData(java.lang.String arg0) {\n pkg.CalWebService port = service.getCalWebServicePort();\r\n return port.getData(arg0);\r\n }",
"private void getItems() {\n getComputers();\n getPrinters();\n }",
"List<JModuleInfo> queryAll();",
"private void loadCatalog() {\n try {\n log.info(\"Attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint + \"...\");\n ThreadUtil.getApplicationThreadPool().execute(createThread());\n } catch (Exception e) {\n log.error(\"Error attempting to retrieve CDS Hooks catalog from \" + discoveryEndpoint, e);\n retry();\n }\n }",
"public void run() {\n\t\tAlgorithm[] algorithm; // jMetal algorithms to be executed\n\n\t\tString experimentName = (String) map_.get(\"name\");\n\t\texperimentBaseDirectory_ = (String) map_.get(\"experimentDirectory\");\n\t\talgorithmNameList_ = (String[]) map_.get(\"algorithmNameList\");\n\t\tproblemList_ = (String[]) map_.get(\"problemList\");\n\t\tindicatorList_ = (String[]) map_.get(\"indicatorList\");\n\t\tparetoFrontDirectory_ = (String) map_.get(\"paretoFrontDirectory\");\n\t\tparetoFrontFile_ = (String[]) map_.get(\"paretoFrontFile\");\n\t\tindependentRuns_ = (Integer) map_.get(\"independentRuns\");\n\t\t// algorithm_ = (Algorithm[]) map_.get(\"algorithm\");\n\t\toutputParetoFrontFile_ = (String) map_.get(\"outputParetoFrontFile\");\n\t\toutputParetoSetFile_ = (String) map_.get(\"outputParetoSetFile\");\n\n\t\tinstances_ = (Integer) map_.get(\"instances\"); // number of different\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// instances of the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// problem to run\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Added to allow\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// executing several\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// instances per problem\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// class\n\n\t\trunID_ = (Integer) map_.get(\"runID\"); // Identifier to add to the\n\t\t\t\t\t\t\t\t\t\t\t\t// filename with the results\n\t\ttime_ = (TimeEstimation) map_.get(\"timeEstimation\"); // For computing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the run time\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and the run\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// time left\n\n\t\tString timmingFileName_ = (String) map_.get(\"timmingFileName\");\n\n\t\tint instanceCounter = 0; // To keep track of the instance to solve\n\n\t\tint numberOfAlgorithms = algorithmNameList_.length;\n\t\tSystem.out.println(\"Experiment: Number of algorithms: \"\n\t\t\t\t+ numberOfAlgorithms);\n\t\tSystem.out.println(\"Experiment: runs: \" + independentRuns_);\n\t\talgorithm = new Algorithm[numberOfAlgorithms];\n\n\t\tSystem.out.println(\"Name: \" + experimentName);\n\t\tSystem.out.println(\"experimentDirectory: \" + experimentBaseDirectory_);\n\t\tSystem.out.println(\"numberOfThreads_: \" + numberOfThreads_);\n\t\tSystem.out.println(\"numberOfProblems_: \" + numberOfProblems_);\n\t\tSystem.out.println(\"numberOfInstancesPerProblems_: \" + instances_);\n\t\tSystem.out.println(\"first: \" + first_);\n\t\tSystem.out.println(\"last: \" + last_);\n\n\t\tSolutionSet resultFront = null;\n\n\t\tdouble[][] timmings = new double[problemList_.length][numberOfAlgorithms];\n\n\t\tfor (int problemId = first_; problemId <= last_; problemId++) {\n\n\t\t\t// long[] accTime = new\n\t\t\t// long[algorithmNameList_.length*instances_.intValue()];\n\t\t\tfor (int i = 0; i < numberOfAlgorithms; i++)\n\t\t\t\ttimmings[problemId][i] = 0;\n\n\t\t\tfor (int inst = 0; inst < instances_.intValue(); inst++) {\n\t\t\t\tif (instances_ > 1) {\n\t\t\t\t\tObject ob = params_[0];\n\t\t\t\t\tparams_ = new Object[2];\n\t\t\t\t\tparams_[0] = ob;\n\t\t\t\t\tparams_[1] = new Integer(inst);\n\t\t\t\t}\n\n\t\t\t\tProblem problem; // The problem to solve\n\n\t\t\t\tproblem = null;\n\t\t\t\t// STEP 2: get the problem from the list\n\t\t\t\t// Object[] params = { \"Real\" }; // Parameters of the problem\n\t\t\t\ttry {\n\t\t\t\t\t// Parameters of the problem\n\t\t\t\t\tproblem = (new ProblemFactory()).getProblem(\n\t\t\t\t\t\t\tproblemList_[problemId], params_);\n\t\t\t\t} catch (JMException ex) {\n\t\t\t\t\tLogger.getLogger(ExperimentNoPareto.class.getName()).log(\n\t\t\t\t\t\t\tLevel.SEVERE, null, ex);\n\t\t\t\t}\n\n\t\t\t\t// STEP 3: check the file containing the Pareto front of the\n\t\t\t\t// problem\n\t\t\t\tsynchronized (experiment_) {\n\t\t\t\t\tif (indicatorList_.length > 0) {\n\t\t\t\t\t\tFile pfFile = null;\n\t\t\t\t\t\tif (instances_ > 1)\n\t\t\t\t\t\t\tpfFile = new File(paretoFrontDirectory_ + \"/\"\n\t\t\t\t\t\t\t\t\t+ paretoFrontFile_[problemId] + \".\" + inst);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tpfFile = new File(paretoFrontDirectory_ + \"/\"\n\t\t\t\t\t\t\t\t\t+ paretoFrontFile_[problemId]);\n\n\t\t\t\t\t\t// pfFile = new File(paretoFrontFile_[problemId]);\n\n\t\t\t\t\t\tif (!pfFile.exists()) {\n\t\t\t\t\t\t\t// if (instances_ > 1)\n\t\t\t\t\t\t\t// paretoFrontFile_[problemId] =\n\t\t\t\t\t\t\t// paretoFrontDirectory_\n\t\t\t\t\t\t\t// + \"/\" + paretoFrontFile_[problemId] + \".\" + inst;\n\t\t\t\t\t\t\t// else\n\t\t\t\t\t\t\t// paretoFrontFile_[problemId] =\n\t\t\t\t\t\t\t// paretoFrontDirectory_\n\t\t\t\t\t\t\t// + \"/\" + paretoFrontFile_[problemId];\n\t\t\t\t\t\t\t// } else {\n\t\t\t\t\t\t\t// CREATE IT!\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tpfFile.createNewFile();\n\t\t\t\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\t\t\t\t// Logger.getLogger(ExperimentNoPareto.class.getName()).log(Level.SEVERE,\n\t\t\t\t\t\t\t\t// null, ex);\n\t\t\t\t\t\t\t\tLogger.getLogger(\n\t\t\t\t\t\t\t\t\t\tExperimentNoPareto.class.getName())\n\t\t\t\t\t\t\t\t\t\t.log(Level.SEVERE,\n\t\t\t\t\t\t\t\t\t\t\t\t\"Error creating file: \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ paretoFrontFile_[problemId],\n\t\t\t\t\t\t\t\t\t\t\t\tex);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// paretoFrontFile_[problemId] = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} // if\n\t\t\t\t}\n\t\t\t\texperiment_.algorithmSettings(problem, problemId, algorithm);\n\n\t\t\t\tfor (int runs = 0; runs < independentRuns_; runs++) {\n\t\t\t\t\tSystem.out.println(\"Iruns: \" + runs);\n\t\t\t\t\t// STEP 4: configure the algorithms\n\n\t\t\t\t\t// STEP 5: run the algorithms\n\t\t\t\t\tfor (int i = 0; i < numberOfAlgorithms; i++) {\n\t\t\t\t\t\tSystem.out.println(algorithm[i].getClass());\n\t\t\t\t\t\t// STEP 6: create output directories\n\t\t\t\t\t\tFile experimentDirectory;\n\t\t\t\t\t\tString directory;\n\n\t\t\t\t\t\tif (instances_ > 1)\n\t\t\t\t\t\t\tdirectory = experimentBaseDirectory_ + \"/data/\"\n\t\t\t\t\t\t\t\t\t+ algorithmNameList_[i] + \"/\"\n\t\t\t\t\t\t\t\t\t+ problemList_[problemId] + \".\" + inst;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdirectory = experimentBaseDirectory_ + \"/data/\"\n\t\t\t\t\t\t\t\t\t+ algorithmNameList_[i] + \"/\"\n\t\t\t\t\t\t\t\t\t+ problemList_[problemId];\n\n\t\t\t\t\t\texperimentDirectory = new File(directory);\n\t\t\t\t\t\tif (!experimentDirectory.exists()) {\n\t\t\t\t\t\t\tboolean result = new File(directory).mkdirs();\n\t\t\t\t\t\t\tSystem.out.println(\"Creating \" + directory);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// STEP 7: run the algorithm\n\t\t\t\t\t\tlong startTime = 0, endTime = 0;\n\n\t\t\t\t\t\tif (instances_ > 1)\n\t\t\t\t\t\t\tSystem.out.println(\"Running algorithm: \"\n\t\t\t\t\t\t\t\t\t+ algorithmNameList_[i] + \", problem: \"\n\t\t\t\t\t\t\t\t\t+ problemList_[problemId] + \", run: \"\n\t\t\t\t\t\t\t\t\t+ runs + \", instance: \" + inst);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.println(\"Running algorithm: \"\n\t\t\t\t\t\t\t\t\t+ algorithmNameList_[i] + \", problem: \"\n\t\t\t\t\t\t\t\t\t+ problemList_[problemId] + \", run: \"\n\t\t\t\t\t\t\t\t\t+ runs);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstartTime = System.currentTimeMillis();\n\t\t\t\t\t\t\tresultFront = algorithm[i].execute();\n\t\t\t\t\t\t\tendTime = System.currentTimeMillis();\n\t\t\t\t\t\t} catch (JMException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t\t\t\t.log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttime_.iteration();\n\t\t\t\t\t\tSystem.out.print(resultFront.size() + \" sols found, \"\n\t\t\t\t\t\t\t\t+ (endTime - startTime) + \" ms. (\"\n\t\t\t\t\t\t\t\t+ time_.getPercentageDone() + \"% done, \");\n\t\t\t\t\t\tSystem.out.println(time_.getRemainingHumanReadable()\n\t\t\t\t\t\t\t\t+ \" remaining)\");\n\t\t\t\t\t\t// accTime_[i] += (endTime-startTime);\n\t\t\t\t\t\ttimmings[problemId][i] += (endTime - startTime);\n\n\t\t\t\t\t\t// STEP 8: put the results in the output directory\n\n\t\t\t\t\t\tif (runID_ == null) {\n\t\t\t\t\t\t\tresultFront.printObjectivesToFile(directory + \"/\"\n\t\t\t\t\t\t\t\t\t+ outputParetoFrontFile_ + \".\" + runs);\n\t\t\t\t\t\t\tresultFront.printVariablesToFile(directory + \"/\"\n\t\t\t\t\t\t\t\t\t+ outputParetoSetFile_ + \".\" + runs);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresultFront.printObjectivesToFile(directory + \"/\"\n\t\t\t\t\t\t\t\t\t+ outputParetoFrontFile_ + \".\"\n\t\t\t\t\t\t\t\t\t+ runID_.intValue());\n\t\t\t\t\t\t\tresultFront.printVariablesToFile(directory + \"/\"\n\t\t\t\t\t\t\t\t\t+ outputParetoSetFile_ + \".\"\n\t\t\t\t\t\t\t\t\t+ runID_.intValue());\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Print the run time after every execution\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFileWriter os = null;\n\t\t\t\t\t\t\tif (instances_ > 1)\n\t\t\t\t\t\t\t\tos = new FileWriter(experimentBaseDirectory_\n\t\t\t\t\t\t\t\t\t\t+ \"/data/\" + algorithmNameList_[i]\n\t\t\t\t\t\t\t\t\t\t+ \"/\" + problemList_[problemId] + \".\"\n\t\t\t\t\t\t\t\t\t\t+ inst + \"/\" + timmingFileName_\n\t\t\t\t\t\t\t\t\t\t+ \".AVG\", true);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tos = new FileWriter(experimentBaseDirectory_\n\t\t\t\t\t\t\t\t\t\t+ \"/data/\" + algorithmNameList_[i]\n\t\t\t\t\t\t\t\t\t\t+ \"/\" + problemList_[problemId] + \"/\"\n\t\t\t\t\t\t\t\t\t\t+ timmingFileName_ + \".AVG\", true);\n\n\t\t\t\t\t\t\tos.write(\"\" + (endTime - startTime) + \"\\n\");\n\t\t\t\t\t\t\tos.close();\n\t\t\t\t\t\t\t// timmings[problemId][i]=(accTime[i]/independentRuns_);\n\t\t\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\t\t\tLogger.getLogger(ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t\t\t\t.log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// // STEP 9: calculate quality indicators\n\t\t\t\t\t\t// if (indicatorList_.length > 0) {\n\t\t\t\t\t\t// QualityIndicator indicators;\n\t\t\t\t\t\t// // System.out.println(\"PF file: \" +\n\t\t\t\t\t\t// // paretoFrontFile_[problemId]);\n\t\t\t\t\t\t// indicators = new QualityIndicator(problem,\n\t\t\t\t\t\t// paretoFrontFile_[problemId]);\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// for (int j = 0; j < indicatorList_.length; j++) {\n\t\t\t\t\t\t// if (indicatorList_[j].equals(\"HV\")) {\n\t\t\t\t\t\t// double value = indicators\n\t\t\t\t\t\t// .getHypervolume(resultFront);\n\t\t\t\t\t\t// FileWriter os;\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// os = new FileWriter(experimentDirectory\n\t\t\t\t\t\t// + \"/HV\", true);\n\t\t\t\t\t\t// os.write(\"\" + value + \"\\n\");\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger\n\t\t\t\t\t\t// .getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// if (indicatorList_[j].equals(\"SPREAD\")) {\n\t\t\t\t\t\t// FileWriter os = null;\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// double value = indicators\n\t\t\t\t\t\t// .getSpread(resultFront);\n\t\t\t\t\t\t// os = new FileWriter(experimentDirectory\n\t\t\t\t\t\t// + \"/SPREAD\", true);\n\t\t\t\t\t\t// os.write(\"\" + value + \"\\n\");\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger\n\t\t\t\t\t\t// .getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// } finally {\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger.getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// if (indicatorList_[j].equals(\"IGD\")) {\n\t\t\t\t\t\t// FileWriter os = null;\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// double value = indicators\n\t\t\t\t\t\t// .getIGD(resultFront);\n\t\t\t\t\t\t// os = new FileWriter(experimentDirectory\n\t\t\t\t\t\t// + \"/IGD\", true);\n\t\t\t\t\t\t// os.write(\"\" + value + \"\\n\");\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger\n\t\t\t\t\t\t// .getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// } finally {\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger.getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// if (indicatorList_[j].equals(\"EPSILON\")) {\n\t\t\t\t\t\t// FileWriter os = null;\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// double value = indicators\n\t\t\t\t\t\t// .getEpsilon(resultFront);\n\t\t\t\t\t\t// os = new FileWriter(experimentDirectory\n\t\t\t\t\t\t// + \"/EPSILON\", true);\n\t\t\t\t\t\t// os.write(\"\" + value + \"\\n\");\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger\n\t\t\t\t\t\t// .getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// } finally {\n\t\t\t\t\t\t// try {\n\t\t\t\t\t\t// os.close();\n\t\t\t\t\t\t// } catch (IOException ex) {\n\t\t\t\t\t\t// Logger.getLogger(\n\t\t\t\t\t\t// ExperimentNoPareto.class.getName())\n\t\t\t\t\t\t// .log(Level.SEVERE, null, ex);\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// }\n\t\t\t\t\t\t// } // for\n\t\t\t\t\t\t// } // if\n\t\t\t\t\t} // for\n\t\t\t\t} // for\n\t\t\t} // for\n\n\t\t\t// Print the computational time\n\t\t\t// STEP 11: Write The run times in a latex file\n\t\t\ttry {\n\t\t\t\tfor (int i = 0; i < numberOfAlgorithms; ++i) {\n\t\t\t\t\tFileWriter os = new FileWriter(experimentBaseDirectory_\n\t\t\t\t\t\t\t+ \"/data/\" + algorithmNameList_[i] + \"/\"\n\t\t\t\t\t\t\t+ problemList_[problemId] + \".AvgTime\");\n\n\t\t\t\t\t// os.write( \"\" + (accTime[i]/independentRuns_) + \"\\n\" );\n\t\t\t\t\tos.write(\"\"\n\t\t\t\t\t\t\t+ (timmings[problemId][i] / (independentRuns_ * instances_))\n\t\t\t\t\t\t\t+ \"\\n\");\n\t\t\t\t\tos.close();\n\t\t\t\t\t// timmings[problemId][i]=(accTime[i]/independentRuns_);\n\t\t\t\t\ttimmings[problemId][i] = (timmings[problemId][i] / (independentRuns_ * instances_));\n\t\t\t\t} // for\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(ExperimentNoPareto.class.getName()).log(\n\t\t\t\t\t\tLevel.SEVERE, null, ex);\n\t\t\t}\n\n\t\t} // for\n\t}",
"private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitialized = true;\n\n mExecutors.diskIO().execute(() -> {\n if (isFetchNeeded()) {\n System.out.println(\"Se necesita actualizar, fetch is needed\");\n startFetchPublicacionService();\n }\n });\n }",
"@Override // com.android.settings.applications.AppStateBaseBridge\n public void loadAllExtraInfo() {\n ArrayList<ApplicationsState.AppEntry> allApps = this.mAppSession.getAllApps();\n for (int i = 0; i < allApps.size(); i++) {\n ApplicationsState.AppEntry appEntry = allApps.get(i);\n ApplicationInfo applicationInfo = appEntry.info;\n updateExtraInfo(appEntry, applicationInfo.packageName, applicationInfo.uid);\n }\n }",
"private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }",
"public List<byte[]> getAllActorInfo() {\n // Fetch a actor list with protobuf bytes format from GCS.\n synchronized (GlobalStateAccessor.class) {\n validateGlobalStateAccessorPointer();\n return this.nativeGetAllActorInfo(globalStateAccessorNativePointer);\n }\n }",
"public List<Beheerder> selectActive(){\n ArrayList<Beheerder> beheerders = new ArrayList<>();\n Connection connection = createConnection();\n try {\n PreparedStatement preparedStatement = connection.prepareStatement(\"SELECT * FROM gebruiker WHERE isactief = true ORDER BY id;\");\n ResultSet resultSet = preparedStatement.executeQuery();\n beheerders = fillListFromResultSet(resultSet, beheerders);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n closeConnection(connection);\n return beheerders;\n }",
"private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }",
"public LabData getCurrentData(){\n return labDataCurrent;\n }",
"public ArrayList<Excursion> fetchEntries() {\n ArrayList<Excursion> entries = new ArrayList<Excursion>();\n\n Cursor cursor = db.query(ExcursionSQLiteHelper.TABLE_EXCURSIONS,\n allColumns,\n null,\n null,\n null,\n null,\n null);\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Excursion mIL = cursorToExcursion(cursor);\n Log.d(TAG, \"get IL = \" + cursorToExcursion(cursor).toString());\n entries.add(mIL);\n cursor.moveToNext();\n }\n // Make sure to close the cursor\n cursor.close();\n return entries;\n }",
"protected void scoreActivePath () \n {\n String callerID = \"jActiveModules\";\n ActivePathsFinder apf = new ActivePathsFinder(generateExpressionMap(),attrNames,cyNetwork,apfParams,mainFrame);\n\n long start = System.currentTimeMillis ();\n Vector result = new Vector();\n Iterator it = cyNetwork.getFlaggedNodes().iterator();\n while(it.hasNext()){\n result.add(it.next());\n }\n\t\n double score = apf.scoreList(result);\n long duration = System.currentTimeMillis () - start;\n System.out.println (\"-------------- back from score: \" + duration + \" msecs\");\n System.out.println (\"-------------- score: \" + score + \" \\n\");\n JOptionPane.showMessageDialog (mainFrame, \"Score: \" + score);\n }",
"private void fetchBusinessGoalFromDB() \r\n\t{\r\n\t\tthis.showLoadingStatusBar();\r\n\t\tServiceDefTarget endpoint = (ServiceDefTarget) service; \t\t// get the business goal and associated subgoals and assets\r\n\t\tendpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + \"identifyGoalAssetService.rpc\");\r\n\t\tservice.loadBusinessGoalInfo(getCurrentState().getProjectID(), new AsyncCallback<GwtBusinessGoal>()\r\n\t\t{\r\n\t\t\tpublic void onFailure(Throwable caught)\r\n\t\t\t{\r\n\t\t\t\tWindow.alert(caught.getMessage());\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(GwtBusinessGoal result)\r\n\t\t\t{\t\t\r\n\t\t\t\t\tbusinessGoal = result;\r\n\t\t\t\t\tsummaryPageCommand.execute();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void appendComp(CompAlgs alg)\n\t{\n\t\tappendAlgorithm(compAlgs, alg);\n\t}",
"@Override\n\t\tprotected Cursor loadCursor() {\n\t\t\treturn ExerciseCatalog.get(getContext()).queryExercises();\n\t\t}",
"private void fetchArea() {\n \t\t// Fetch the isNew.\n \t\tIntent i = this.getIntent();\n \t\tthis.isNew = i.getBooleanExtra( EXTRAS_AREA_IS_NEW, true );\n \n \t\t// Fetch ID.\n \t\tint id = i.getIntExtra( EXTRAS_AREA_ID, -1 );\n \t\tif ( id == -1 ) {\n \t\t\tToast.makeText( this, \"No area ID provided, finishing!\", Toast.LENGTH_LONG ).show();\n \t\t\tthis.finish();\n \t\t}\n \n \t\t// Get the set from application.\n \t\tthis.set = SFApplication.get().getGPSSet();\n \n \t\t// For some weird reason, NullPointerException will happen if we don't do this.\n \t\tthis.set.setMessageBus( SFApplication.get().getBus() );\n \n \t\t// Find area in set.\n \t\tthis.area = this.set.getById( id );\n \n \t\tLog.d( TAG, this.area.toString() );\n \n\t\tToast.makeText( this, \"The area ID provided did not exist in set.\", Toast.LENGTH_LONG ).show();\n\t\tthis.finish();\n \t}",
"Collection<GameEnvironment> getPendingGames();",
"@Override\n\t\tprotected GetConfigRes doInBackground(Void... params) {\n\t\t\treturn JsonOA.getConfigInfo(\"all\");\n\t\t}",
"public Long [] getAlgManagedIds() {\n return this.AlgManagedIds;\n }",
"public Hashtable<String, Vector<Double>> getCyclesEvaluation()\n {\n return data;\n }",
"public void printActiveCourses() \n {\n for (String c: courses.keySet()) \n {\n if (courses.get(c).getActive()) \n {\n System.out.println(courses.get(c)); \n }\n }\n }",
"private void getAllExercises() {\n getView().disableUI();\n\n // get all exercises\n doGetExercises();\n }",
"public static List<Question> fetch() throws ApplicationException {\n List<Question> result = null;\n\n Connection connection = null;\n try {\n connection = ConnectionPool.getConnection();\n result = QuestionDatabaseAccess.fetch(connection);\n } finally {\n ConnectionPool.releaseConnection(connection);\n }\n\n return result;\n }",
"public List<ApInfo> findAllAps() {\n List<ApInfo> apInfos = new ArrayList<>();\n Cursor cursor = null;\n try {\n cursor = this.db.rawQuery(\"SELECT SSID,MAC,UPTIME FROM MOBILE_AP WHERE 1 = 1\", null);\n while (cursor.moveToNext()) {\n apInfos.add(new ApInfo(cursor.getString(cursor.getColumnIndexOrThrow(\"SSID\")), cursor.getString(cursor.getColumnIndexOrThrow(\"MAC\")), cursor.getString(cursor.getColumnIndexOrThrow(\"UPTIME\"))));\n }\n } catch (IllegalArgumentException e) {\n LogUtil.d(\"SELECT SSID,MAC,UPTIME FROM MOBILE_AP WHERE 1 = 1\");\n LogUtil.e(\"findAllAps IllegalArgumentException: \" + e.getMessage());\n } catch (Exception e2) {\n LogUtil.e(\"findAllAps Exception: \" + e2.getMessage());\n if (cursor != null) {\n cursor.close();\n }\n return apInfos;\n } catch (Throwable th) {\n if (cursor != null) {\n cursor.close();\n }\n throw th;\n }\n }"
] | [
"0.5690394",
"0.54594713",
"0.5333111",
"0.5291976",
"0.5255513",
"0.5216136",
"0.5124715",
"0.5112746",
"0.51069486",
"0.5106239",
"0.5022071",
"0.5021154",
"0.50044405",
"0.50010186",
"0.49873444",
"0.4982375",
"0.49821046",
"0.4963658",
"0.49607155",
"0.4915705",
"0.48984358",
"0.48893222",
"0.4869913",
"0.48693472",
"0.48633665",
"0.4858054",
"0.48537266",
"0.48489052",
"0.48474228",
"0.48391137",
"0.48277003",
"0.482648",
"0.48257813",
"0.48159787",
"0.48066205",
"0.47980025",
"0.47784626",
"0.47678983",
"0.47613353",
"0.47516787",
"0.47500145",
"0.47449613",
"0.472396",
"0.47234896",
"0.46920654",
"0.46841073",
"0.46665516",
"0.4666057",
"0.46559793",
"0.46559462",
"0.46497825",
"0.46452388",
"0.46374282",
"0.46362293",
"0.46360597",
"0.4633857",
"0.46296975",
"0.4614012",
"0.46126905",
"0.46065035",
"0.46056283",
"0.45989674",
"0.45987403",
"0.45982057",
"0.4597844",
"0.45964947",
"0.45951247",
"0.4589331",
"0.45890352",
"0.4586276",
"0.4570842",
"0.45616934",
"0.45603374",
"0.45586893",
"0.45561346",
"0.45486647",
"0.45472386",
"0.45450896",
"0.45433593",
"0.4537963",
"0.45369768",
"0.45363605",
"0.45354843",
"0.45330238",
"0.45323658",
"0.45087788",
"0.45083645",
"0.4507033",
"0.45059443",
"0.4504434",
"0.45006472",
"0.4497946",
"0.44935483",
"0.44929066",
"0.44924676",
"0.44913772",
"0.44842967",
"0.44821307",
"0.4479361",
"0.44783026"
] | 0.47830805 | 36 |
make a connection to the mysql database table | public Connection getConnection() throws SQLException {
Connection conn = null;
Properties connectionProps = new Properties();
connectionProps.put("user", this.userName);
connectionProps.put("password", this.password);
conn = DriverManager.getConnection(
"jdbc:mysql://" + this.serverName + ":" + this.portNumber + "/" + this.dbName, connectionProps);
return conn;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeConnection(){\n\t\t\n\t\t\n\t\t\n\t\ttry{\n\t\t\tmySqlConn=new MySqlConnection(server,databaseName,userName,passWord);\n\t\t\tst=mySqlConn.conn.createStatement();\n\t\t }\n\t\tcatch(SQLException s){\n\t\t\tSystem.out.println(\"SQL not able to execute\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void conectar() {\n try {\n //Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n Class.forName(\"org.mariadb.jdbc.Driver\"); \n\n //con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\"); \n con = DriverManager.getConnection(\"jdbc:mariadb://192.168.194.131:3306/arquitectura\", \"root\", \"duocadmin\");\n state = con.createStatement();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private void createDBConnection() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n Connection con = DriverManager.getConnection(\n \"jdbc:mysql://10.27.8.144:3306/databasename5\", \"user5\", \"p4ssw0rd\");\n Statement stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(\"select * from emp\");\n while (rs.next())\n System.out.println(rs.getInt(1) + \" \" + rs.getString(2) + \" \" + rs.getString(3));\n con.close();\n } catch (Exception e) {\n System.out.println(e);\n }\n }",
"public void createConnection()\n\t{\n\t\ttry\n {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n // Get a connection\n conn = DriverManager.getConnection(dbURL, \"root\", \"root\"); \n System.out.println(\"Connected...\");\n }\n catch (Exception except)\n {\n except.printStackTrace();\n }\n\t}",
"private Connection connect_db() {\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setUser(db_user);\n dataSource.setPassword(db_pass);\n dataSource.setServerName(db_url);\n dataSource.setDatabaseName(db_database);\n\n Connection conn = null;\n try {\n conn = dataSource.getConnection();\n conn.setAutoCommit(false);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }",
"public void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Connection\");\n //characterEncoding=latin1&\n //Class.forName(\"org.apache.derby.jdbc.EmbeddedDriver\");\n //Connection conn = new Connection();\n url += \"?characterEncoding=latin1&useConfigs=maxPerformance&useSSL=false\";\n conn = DriverManager.getConnection(url, userName, password);\n if (conn != null) {\n System.out.println(\"Established connection to \"+url+\" Database\");\n }\n }\n catch(SQLException e) {\n throw new IllegalStateException(\"Cannot connect the database \"+url, e);\n }\n catch(ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n }",
"private static void connect() {\n\t\ttry {\n\t\t\tif (connection == null) {\n\t\t\t\tClass.forName(\"org.mariadb.jdbc.Driver\");\n\t\t\t\tconnection = DriverManager.getConnection(url, user, password);\n\t\t\t\tconnection.setAutoCommit(false);\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"private void open_db() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); \n Con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projectlaundry\",\"root\",\"\");\n stm = Con.createStatement();\n }\n catch (Exception e){\n JOptionPane.showMessageDialog(null,\"Koneksi gagal\");\n System.out.println(e.getMessage());\n }\n }",
"public void connectToDB(){\n\ttry {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/patient\",\"root\",\"7417899737\");\n\t} catch (ClassNotFoundException e) {\n\t\t\n\t\te.printStackTrace();\n\t} catch (SQLException e) {\n\t\t\n\t\te.printStackTrace();\n\t}\n\t\n}",
"private Connection database() {\n Connection con = null;\n String db_url = \"jdbc:mysql://localhost:3306/hospitalms\";\n String db_driver = \"com.mysql.jdbc.Driver\";\n String db_username = \"root\";\n String db_password = \"\";\n \n try {\n Class.forName(db_driver);\n con = DriverManager.getConnection(db_url,db_username,db_password);\n } \n catch (SQLException | ClassNotFoundException ex) { JOptionPane.showMessageDialog(null,ex); }\n return con;\n }",
"private void openConnection() {\n try {\n dbConnection\n = DriverManager.getConnection(url, user, password);\n } catch (SQLException ex) {\n System.err.println(\"Exception in connecting to mysql database\");\n System.err.println(ex.getMessage());\n }\n }",
"public static void createConnection() {\n\n try{\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/mydb\", \"tobymac208\", \"Sparta_!3712\");\n // Database how now been successfully connected.\n System.err.println(\"Database was successfully connected.\");\n }catch (ClassNotFoundException e) {\n System.err.println(\"Class not found.\");\n }catch (SQLException e) {\n System.err.println(\"SQL exception thrown.\");\n }\n }",
"public Connection connectdb(){\n Connection con = null;\n try {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n con = DriverManager.getConnection(url, user, pass);\n } catch (ClassNotFoundException | SQLException ex) {\n Logger.getLogger(ILocker.class.getName()).log(Level.SEVERE, null, ex);\n }\n return con;\n }",
"public void connectToDb() {\n try {\n con = DriverManager.getConnection(url, user, password);\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Erro: \" + ex.getMessage(), \"Mensagem de Erro\", JOptionPane.ERROR_MESSAGE);\n }\n\n }",
"public void openConnection(){\r\n try {\r\n Driver dr = new FabricMySQLDriver();\r\n DriverManager.registerDriver(dr);\r\n log.info(\"registrable driver\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n try {\r\n connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);\r\n log.info(\"get connection\");\r\n } catch (SQLException e) {\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"public void connect(){\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n System.out.println(\"ClassNotFoundException in connect()\");\n }\n try {\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/pmt\", \"root\", \"\");\n } catch (SQLException ex) {\n System.out.println(\"SQLException in connect()\");\n }\n \n }",
"private void makeSQLConn() {\n\t\ttry {\n\t\t\tmyDB = new MySQLAccess();\n\t\t} catch (Exception e) { e.printStackTrace(); }\n\t}",
"public void openConnection(){\n\n\t\tString dbIP = getConfig().getString(\"mysql.ip\");\n\t\tString dbDB = getConfig().getString(\"mysql.databaseName\");\n\t\tString dbUN = getConfig().getString(\"mysql.username\");\n\t\tString dbPW = getConfig().getString(\"mysql.password\");\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://\" + dbIP + \"/\" + dbDB, dbUN, dbPW);\n\t\t\tgetLogger().info(\"Connected to databse!\");\n\t\t} catch (SQLException ex) {\n\t\t\t// handle any errors\n\t\t\tgetLogger().info(\"SQLException: \" + ex.getMessage());\n\t\t\tgetLogger().info(\"SQLState: \" + ex.getSQLState());\n\t\t\tgetLogger().info(\"VendorError: \" + ex.getErrorCode());\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tgetLogger().info(\"Gabe, you done goof'd!\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void openDB() {\n\n\t\t// Connect to the database\n\t\tString url = \"jdbc:mysql://localhost:2000/X__367_2020?user=X__367&password=X__367\";\n\t\t\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(url);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"using url:\"+url);\n\t\t\tSystem.out.println(\"problem connecting to MariaDB: \"+ e.getMessage());\t\t\t\n\t\t\t//e.printStackTrace();\n\t\t}\n\n\t}",
"public void openConn()\r\n {\r\n try\r\n {\r\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\r\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/voteandordersystem\",\"root\",\"hello\");\r\n \r\n \r\n }\r\n catch (ClassNotFoundException | SQLException e)\r\n {\r\n JOptionPane.showMessageDialog(null,\"Invalid Entry\\n(\" + e + \")\");\r\n }\r\n }",
"public Connection connect(){\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n System.out.println(\"Berhasil koneksi ke JDBC Driver MySQL\");\n }catch(ClassNotFoundException ex){\n System.out.println(\"Tidak Berhasil Koneksi ke JDBC Driver MySQL\");\n }\n //koneksi ke data base\n try{\n String url=\"jdbc:mysql://localhost:3306/enginemounting\";\n koneksi=DriverManager.getConnection(url,\"root\",\"\");\n System.out.println(\"Berhasil koneksi ke Database\");\n }catch(SQLException e){\n System.out.println(\"Tidak Berhasil Koneksi ke Database\");\n }\n return koneksi;\n}",
"void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\"); // Driver is located in src/mysql-connector...\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n System.out.println(\"Connecting to database...\");\n\n try {\n // Make the connection\n con = DriverManager.getConnection(DB_URL, USER, PASS);\n System.out.println(\"Connection established!\");\n System.out.println(\"Creating statement...\");\n\n // Create a statement (not for output)\n st = con.createStatement();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public static void connect() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n DataBaseConnect.connect = DriverManager\n .getConnection(\"jdbc:mysql://localhost/magazyn?\"\n + \"user=root&password=\");\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e1) {\n e1.printStackTrace();\n }\n }",
"public Connection getConnection() throws SQLException, ClassNotFoundException{\n\t\t\t Class.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t System.out.println(\"MySQL JDBC Driver Registered\");\n\t\t\t return connection = DriverManager.getConnection(\"jdbc:mysql://www.papademas.net:3306/510labs?\", \"db510\",\"510\");\n\t}",
"private static void setConnection(){\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/novel_rental\",\"root\",\"\");\n } catch (Exception e) {\n Logger.getLogger(NovelRepository.class.getName()).log(Level.SEVERE, null, e);\n System.out.println(e.getMessage());\n }\n }",
"public static Connection connectarMySQL(){\n Connection conn = null;\n\n try {\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n } catch (Exception e) {\n System.out.println(\"Error paquete\");\n System.out.println(e.getMessage());\n }\n try{\n conn = DriverManager.getConnection(getConnectionDB(), user, password);\n\n } catch(SQLException e){\n System.out.println(\"SQLException\"+ e.getMessage());\n System.out.println(\"SQLState\"+ e.getSQLState());\n System.out.println(\"VendorError\"+ e.getErrorCode());\n }\n return conn;\n }",
"private Connection connect() {\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\t// Provide the correct details: DBServer/DBName, username, password\n\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3306/paymentdb?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\", \"root\", \"\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn con;\n\t}",
"private static void dbConnect() {\r\n\t\tif (conn == null)\r\n\t\t\ttry {\r\n\t\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost/sims?user=root&password=12345&useSSL=true\");\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t}",
"private Connection getConnction() {\r\n\t\tConnection connection = null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tString url = \"jdbc:mysql://192.168.201.120:3306/erp_purchase?zeroDateTimeBeHavior=convertToNull\";\r\n\t\t\tString user = \"xuduo\";\r\n\t\t\tString passwor = \"000000\";\r\n\t\t\tconnection = DriverManager.getConnection(url, user, passwor);\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(JdbcExample.class.getName()).log(Level.SEVERE, null, e);\r\n\t\t}\r\n\t\t\r\n\t\treturn connection;\r\n\t}",
"public void connectToDatabase(){\n\t\ttry{\n\t\t connection = DriverManager.getConnection(dbConfig.getUrl(), dbConfig.getUser(), dbConfig.getPassword());\n\t\t System.out.println(\"Successfully connected to database.\");\n\t\t} catch (Exception e){\n\t\t\tSystem.out.println(\"An error occurred while attempting to connect to the database.\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"private Connection connect(){\n Connection connection = null;\n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n }\n catch (Exception e){\n System.out.print(e);\n }\n return connection;\n }",
"public static Connection getConnection() {\n\n\t\tConnection con = null;\n\t\tPreparedStatement pstm = null;\n\n\t\tString url = \"jdbc:mariadb://localhost:3306/test\";\n\t\tString id = \"root\";\n\t\tString pw = \"maria\";\n\t\ttry {\n\t\t\tClass.forName(\"org.mariadb.jdbc.Driver\");\n\t\t\ttry {\n\t\t\t\tcon = DriverManager.getConnection(url, id, pw);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn con;\n\t}",
"void getConnectiondb() throws SQLException, ClassNotFoundException{\n // TODO code application logic here\n \n String user = \"root\";\n String pass = \"test\";\n\n myConn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/aud_jdbms\", user, pass);\n \n\n \n }",
"private Connection connect()\n\t{\n\t\tConnection con = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\t//Provide the correct details: DBServer/DBName, username, password\n\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3306/project? useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\", \"root\", \"\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\treturn con;\n \n\t}",
"public Connection DbConnection() throws Exception {\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n // Creating a new connection\n // String myDB = \"jdbc:sqlite:C:\\\\Users\\\\kapersky\\\\Documents\\\\NetBeansProjects\\\\Library Management System\\\\src\\\\librarydb.db\";\n String myDB = \"jdbc:mysql://localhost:3306/librarydb\";\n con = DriverManager.getConnection(myDB, \"root\", \"\");\n return con;\n\n }",
"public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }",
"public static Connection initializeDatabase()\n throws SQLException, ClassNotFoundException\n {\n \t\n \tString dbDriver = \"com.mysql.cj.jdbc.Driver\";\n String dbURL = \"jdbc:mysql://localhost:3306/\";\n // Database name, database user and password to access\n String dbName = \"jaltantra_db\";\n String dbUsername = \"root\";\n String dbPassword = \"jaldb@2050\";\n \n Class.forName(dbDriver);\n Connection conn = DriverManager.getConnection(dbURL + dbName ,dbUsername, dbPassword);\n return conn;\n }",
"private void makeConnection() {\n try {\n InitialContext ic = new InitialContext();\n DataSource ds = (DataSource) ic.lookup(dbName);\n\n con = ds.getConnection();\n } catch (Exception ex) {\n throw new EJBException(\"Unable to connect to database. \" + ex.getMessage());\n }\n }",
"private void connectDatabase(){\n }",
"public Connection getConnection(){\n Connection conn = null;\n System.out.println(\"connection called\");\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost/online_bidding_system\",\"root\",\"\");\n } catch(ClassNotFoundException | SQLException e){\n e.printStackTrace();\n }\n \n return conn;\n }",
"public Connection makeConnection() {\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n // setup the connection with the DB.\n return DriverManager\n .getConnection(\"\"\n + \"jdbc:mysql://\"\n //+ \"itmd544.cbpipzbeulcc.us-west-2.rds.amazonaws.com/itmd544?\"\n //+\"localhost/itmd544\"\n +\"64.131.111.24/itmd544?\"\n + \"user=root&password=root\"\n //+\"root\"\n );\n \n \n } catch (Exception e) {\n //e.printStackTrace();\n System.out.println(\"Could not make connection\");\n System.exit(1);\n }\n \n return null;\n }",
"public static Connection con(){\n \n try{\n Class.forName(\"com.mysql.jdbc.Driver\");\n con=(Connection)DriverManager.getConnection(\"jdbc:mysql://localhost:3306/nsbm?\",\"root\",\"\");\n // our SQL SELECT query. \n // if you only need a few columns, specify them by name instead of using \"*\"\n \n }catch(ClassNotFoundException | SQLException e){\n }\n return con;\n }",
"public static Connection getConnection() {\r\n Connection con = null;\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n //step-1: get a connection to the db\r\n con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/user\", \"root\", \"\");\r\n }catch(Exception e) {\r\n System.out.println(\"error\" + e);\r\n }\r\n return con;\r\n\r\n }",
"public static Connection getConnection() throws Exception{\r\n\t\t\tConnection dbConn = null;\r\n\t try{\r\n\t\tString url = \"jdbc:mysql://localhost:3307/durgadb\";\r\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\r\n\t\tdbConn = DriverManager.getConnection(url, \"root\", \"root\");\r\n\t\t}\r\n\t catch (SQLException sqle) {\r\n\t\t sqle.printStackTrace();\r\n\t\t throw sqle;\r\n\t\t}\r\n catch(Exception e) {\r\n\t\t e.printStackTrace();\r\n\t\t throw e;\r\n\t\t}\r\n\treturn dbConn;\r\n\t}",
"public static Connection connect(){\n\t\tConnection connection=null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\r\n\t\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/weather\",\"root\",\"Dhanya@123\");\r\n\t\t System.out.println(\"Connected\");\r\n\t}catch (ClassNotFoundException classNotFoundException) {\r\n\t\tclassNotfoundException.printStackTrace();\t\r\n\t}catch (SQLException sqlException) {\r\n\t\tsqlException.printStackTrace();\r\n\t}\r\n\t\treturn connection;\r\n\t\t\r\n\t}",
"public static void establishConnection()throws IOException, SQLException {\n connection= DriverManager.getConnection(\n Configuration.fileReader(\"dbhostname\"),\n Configuration.fileReader(\"dbusername\"),\n Configuration.fileReader(\"dbpassword\"));\n statement=connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n }",
"private Connection createConnection() {\n try {\n return DriverManager.getConnection(\"jdbc:mysql://\" + host + \":\" + port + \"/\" + db, user, password);\n } catch (SQLException e) {\n e.printStackTrace();\n return null;\n }\n }",
"private static void getConnection() throws ClassNotFoundException, SQLException {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/yuechu\", \"root\", \"1\");\n\t}",
"public Connection conexion(){\n try {\r\n Class.forName(\"org.gjt.mm.mysql.Driver\");\r\n conectar=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/poo\",\"root\",\"19931017\");\r\n \r\n } catch (ClassNotFoundException | SQLException e) {\r\n System.out.println(\"Error ┐\"+e);\r\n }\r\n return conectar; \r\n }",
"private static void connectDatabase(){\n\t\t// register the driver\n\t\ttry{\n\t\t\tClass.forName(DRIVER).newInstance();\n\t\t\tconnection = DriverManager.getConnection(CONNECTION_URL);\n\t\t} catch (IllegalAccessException | InstantiationException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public Connection connectToDb() throws Exception\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tString url= \"jdbc:mysql://83.212.122.254:3306/travlos\";\r\n\t\t\tString username=\"travlos\";\r\n\t\t\tString password=\"travlos\";\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"found\");\r\n\t\t\t\r\n\t\t\t\r\n\t\tConnection con=null;\t\r\n\t\t\tcon=DriverManager.getConnection(url, username, password);\r\n\t\t\tStatement statement= con.createStatement();\r\n\t\t\t\r\n\t System.out.println(\"egine syndesh!\");\r\n\t return con;\r\n\t\t\r\n\t\t}\r\n\t\tcatch (SQLException ee)\r\n\t\t{\r\n\t\t\tthrow new RuntimeException(\"cannot connect the database!\", ee);\r\n\t\t}\r\n\t\r\n\t\r\n\t}",
"private static Connection getConnection()\n {\n Connection con = null;\n String url = \"jdbc:mysql://localhost/airlines?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\";\n String user = \"root\";\n String pw = \"npass\";\n try {\n con = DriverManager.getConnection(url, user, pw);\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n return con;\n }",
"public void initConnection(){\n \t String HOST = \"jdbc:mysql://10.20.63.22:3306/cloud\";\n String USERNAME = \"root\";\n String PASSWORD = \"test\";\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n }\n \n try {\n conn = DriverManager.getConnection(HOST, USERNAME, PASSWORD);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"public static Connection fetchDBConnection() throws ClassNotFoundException,SQLException\n\t{\n\t//load type IV MySql supplies JDBC driver class, under method area(meta space)\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t//get the fix connection to DB\n\t\tString url=\"jdbc:mysql://localhost:3306/acts?useSSl=false\";\n\t\treturn DriverManager.getConnection(url, \"root\", \"manoj1997\");\n\t}",
"public Connection connect()\r\n\t\t {\r\n\t\t Connection con = null;\r\n\t\t try\r\n\t\t {\r\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t //Provide the correct details: DBServer/DBName, username, password\r\n\t\t con = DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3308/paf\", \"root\", \"\");\r\n\t\t \r\n\t\t//For testing\r\n\t\t System.out.print(\"Successfully connected\"); \r\n\t\t \r\n\t\t }\r\n\t\t catch (Exception e)\r\n\t\t {e.printStackTrace();}\r\n\t\t return con;\r\n\t\t }",
"public DatabaseInterface(String url) throws SQLException {\n sql = DriverManager.getConnection(url);\n }",
"private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static Connection getConnection(){\n \n Connection con = null;\n try{\n \n \n String host = \"jdbc:mysql://localhost:3306/spytter\";\n String uName = \"root\";\n con = DriverManager.getConnection(host, uName, \"\");\n \n \n }\n \n catch(SQLException err ){\n System.out.println(err.getMessage());\n }\n return con;\n \n }",
"public Connection createConnection(){\n Connection conn = null;\n registerDriver();\n createURL();\n\n try {\n conn = DriverManager.getConnection(urlDB,username,password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n System.out.println((conn != null)?\"You made it, take control your database now!\":\"Failed to make connection!\");\n\n return conn;\n}",
"public void connect()\n\t{\n try{\n \tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n \tconn = DriverManager.getConnection(url,user,pwd);\n \tSystem.out.println(\"Connected...\");\n }\n \n catch(Exception se){\n \tse.printStackTrace();\n }\n\t}",
"private void connect() {\n connectionString = \"jdbc:mysql://\" + Config.getInstance().getMySQLServerName() + \":\" + Config.getInstance().getMySQLServerPort() + \"/\" + Config.getInstance().getMySQLDatabaseName();\n\n try {\n Assassin.p.getLogger().info(\"Attempting connection to MySQL...\");\n\n // Force driver to load if not yet loaded\n Class.forName(\"com.mysql.jdbc.Driver\");\n Properties connectionProperties = new Properties();\n connectionProperties.put(\"user\", Config.getInstance().getMySQLUserName());\n connectionProperties.put(\"password\", Config.getInstance().getMySQLUserPassword());\n connectionProperties.put(\"autoReconnect\", \"false\");\n connectionProperties.put(\"maxReconnects\", \"0\");\n connection = DriverManager.getConnection(connectionString, connectionProperties);\n\n Assassin.p.getLogger().info(\"Connection to MySQL was a success!\");\n }\n catch (SQLException ex) {\n connection = null;\n\n if (reconnectAttempt == 0 || reconnectAttempt >= 11) {\n Assassin.p.getLogger().severe(\"Connection to MySQL failed!\");\n printErrors(ex);\n }\n }\n catch (ClassNotFoundException ex) {\n connection = null;\n\n if (reconnectAttempt == 0 || reconnectAttempt >= 11) {\n Assassin.p.getLogger().severe(\"MySQL database driver not found!\");\n }\n }\n }",
"private static Connection getConnection() throws SQLException, IOException {\n Properties properties = new Properties();\n properties.setProperty(\"user\", \"root\");\n properties.setProperty(\"password\", \"bulgariavarna\");\n\n return DriverManager.getConnection(CONNECTION_STRING + \"minions_db\", properties);\n }",
"private Connection dbConnection() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tConnection result = null;\t// holds the resulting connection\n\t\t\n\t\t// try to make the connection\n\t\ttry {\n\t\t\tClass.forName(\"org.sqlite.JDBC\");\n\t\t\tresult = DriverManager.getConnection(CONNECTION_STRING);\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\t\t\n\t\t// return the resulting connection\n\t\treturn result;\n\t\t\n\t}",
"public Connection getConnection() throws ClassNotFoundException, SQLException {\n logger.info(\"Create DB connection\");\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n return DriverManager.getConnection(\n \"jdbc:mysql://localhost:3306/prod\",\"root\",\"rootroot\");\n }",
"public void establishConnection() throws SQLException {\n if (!connectToDB(\"jdbc:mysql://localhost/EmployeesProject\")) {\n createDBAndTable();\n }\n }",
"protected void openConnection() throws SQLException {\n connection = DriverManager.getConnection(\"jdbc:mysql://stusql.dcs.shef.ac.uk/team021\", \"team021\", \"5f4306d9\");\n }",
"protected void OpenDBConnection() throws SQLException {\n\n connection = DriverManager.getConnection(\n \"jdbc:mysql://107.180.47.119:3306/ConcessionStand?useUnicode=true&characterEncoding=utf-8\" ,\n \"ConcessionWorker\" , \"CWoonrck066#\");\n\n System.out.println(\"Connected to database.\");\n stmt = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n stmt2 = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);\n System.out.println(\"Created statement.\");\n }",
"private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public DatabaseManagement() throws SQLException {\n\t\n\t\ttry {\n\t\t\t//use driver\n\t\t\tClass.forName(MYSQL_DRIVER);\n\t\t System.out.println(\"Class Loaded....\");\n\t\t\t\n\t\t //get connection to database\n\t\t\tmyConn = DriverManager.getConnection(getDbUrl(), getUserName(), getPassword());\n\t\t\t//System.out.println(\"Connected to database...\");\n\t\t\t\n\t\t\t//create a statement\n\t\t\tmyStmt = myConn.createStatement();\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\tcatch (Exception exc){\n\t\t\texc.printStackTrace();\n\t\t}\t\t\n\t}",
"private void connect() {\n if (this.connection == null && !this.connected) {\n try {\n this.connection = DriverManager.getConnection(this.dbUrl, this.dbUser, this.dbPassword);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }",
"private void connectToDB() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n this.conn = DriverManager.getConnection(prs.getProperty(\"url\"),\n prs.getProperty(\"user\"), prs.getProperty(\"password\"));\n } catch (SQLException e1) {\n e1.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }",
"private void getConnection() {\n con = this.dbc.getMySQLConnection();\n Logger.getLogger(SettingImplementation.class.getName()).log(Level.SEVERE, \"Connection Basic >>>>>\" + con);\n }",
"public Connection conectar(){//Con com.mysql.dbc\r\n try { \r\n Class.forName(\"com.mysql.jdbc.Driver\"); //Seleccionamos los packetes de la libreria que se cargo\r\n conect= DriverManager.getConnection(\"jdbc:mysql://localhost/viaje\",\"root\",\"\"); //Si en la vida real va la ip de servidor\r\n //JOptionPane.showMessageDialog(null, \"Se conectó correctamente\");\r\n } catch (Exception ex) {// Recoge todas las exepcipnes\r\n JOptionPane.showMessageDialog(null, \"Sin conexión\");\r\n }\r\n return conect;\r\n }",
"private Connection connect() {\n\t String url = \"jdbc:sqlite:\" + this.db;\r\n\t Connection conn = null;\r\n\t try {\r\n\t \t// Incercam conexiunea la baza de date\r\n\t conn = DriverManager.getConnection(url);\r\n\t } catch (SQLException e) {\r\n\t System.out.println(e.getMessage());\r\n\t }\r\n\t return conn; // returnam conexiunea, daca aceasta s-a facut fara erori\r\n\t }",
"private Connection connect() {\n // SQLite connection string\n \tString url = \"jdbc:sqlite:DataBase/\" + database;\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(url);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n return conn;\n }",
"public ConnexionBD() throws ClassNotFoundException, SQLException {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\") ;\n\t\tconnexion = DriverManager.getConnection(dbURL,user,password) ;\n\t}",
"public static Connection getConnection() {\n try {\n String dbURL = \"jdbc:mysql://\" + HOST + \":3306/soccer\" ;\n Class.forName(DRIVER);\n Connection connection = DriverManager.getConnection(dbURL, USERNAME, PASSWORD);\n return connection;\n } catch (Exception e) {\n System.out.println(\"Error in Database.getConnection: \" + e.getMessage());\n return null;\n }\n }",
"public static Connection getMySQLConnection() {\n\t\treturn openConn(\"MySQL\", \"192.168.0.189\", \"3306\", \"BDIA?useUnicode=true&characterEncoding=utf-8\", \"root\", \"123456\");\n\t}",
"public Connection getConnection()\r\n {\r\n this.cn = null;\r\n \r\n try\r\n {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n this.cn = DriverManager.getConnection(\"jdbc:mysql://localhost/surtiplas\", \"root\", \"12345\");\r\n }\r\n catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n return cn; \r\n }",
"public void connect(){\n if (connected) {\n // connection already established\n return;\n }\n // Create connection to Database\n Properties props = new Properties();\n props.setProperty(\"user\", DB_USER);\n props.setProperty(\"password\", DB_PASSWORD);\n //props.setProperty(\"ssl\", \"true\");\n //\"Connecting to database...\"\n try {\n Class.forName(\"org.postgresql.Driver\");\n String connection_string = generateURL();\n dbConnect = DriverManager.getConnection(connection_string, props);\n //\"Connection established\"\n status = \"Connection established\";\n connected = true;\n } catch (SQLException e) {\n //\"Connection failed: SQL error\"\n status = \"Connection failed: \" + e.getMessage();\n connected = false;\n } catch (Exception e) {\n //\"Connection failed: unknown error\"\n status = \"Connection failed: \" + e.getMessage();\n connected = false;\n }\n }",
"public Connection connectDB (){\n try{\n Class.forName(\"org.sqlite.JDBC\");\n Connection conn = DriverManager.getConnection(\"jdbc:sqlite:awesomexDB.db\");\n //System.out.println(\"connection estd...\");\n return conn;\n } catch(Exception e){\n System.out.println(\"unable to connect\");\n return null;\n }\n }",
"@Override\n public void initializeConnection() throws SQLException, ClassNotFoundException {\n \n Class.forName(\"com.mysql.jdbc.Driver\");\n //setConnection(DriverManager.getConnection(\"jdbc:mysql://localhost/rabidusDB\",\"root\",\"password\"));\n setConnection(DriverManager.getConnection( host + \":3306/\" + databaseName, user, password));\n \n }",
"private void setupDatabase()\n {\n try\n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n }\n catch (ClassNotFoundException e)\n {\n simpleEconomy.getLogger().severe(\"Could not load database driver.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n\n try\n {\n connection = DriverManager\n .getConnection(String.format(\"jdbc:mysql://%s/%s?user=%s&password=%s\",\n simpleEconomy.getConfig().getString(\"db.host\"),\n simpleEconomy.getConfig().getString(\"db.database\"),\n simpleEconomy.getConfig().getString(\"db.username\"),\n simpleEconomy.getConfig().getString(\"db.password\")\n ));\n\n // Loads the ddl from the jar and commits it to the database.\n InputStream input = getClass().getResourceAsStream(\"/ddl.sql\");\n try\n {\n String s = IOUtils.toString(input);\n connection.createStatement().execute(s);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n input.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n catch (SQLException e)\n {\n simpleEconomy.getLogger().severe(\"Could not connect to database.\");\n simpleEconomy.getServer().getPluginManager().disablePlugin(simpleEconomy);\n e.printStackTrace();\n }\n }",
"private void setupDatabase() throws SQLException {\n\t\tdb.open(\"localhost\", 3306, \"wow\", \"greeneconomyapple\");\n\t\tdb.use(\"auctionscan\");\n\t}",
"public static Connection connect() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\t\t\t\t\t\t\n\t\t\treturn DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:mysql://83.212.125.138:3306/st_database\", \"admin\", \"admin\");\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}",
"public void init(){\n\n stmt = null;\n\n try{\n\n Class.forName(\"com.mysql.jdbc.Driver\");\n myConnection=DriverManager.getConnection(DBUrl,userName,password);\n stmt=myConnection.createStatement();\n }\n catch(ClassNotFoundException | SQLException e){\n System.out.println(\"Failed to get connection\");\n }\n return;\n }",
"public void dbConnection()\n {\n\t try {\n\t \t\tClass.forName(\"org.sqlite.JDBC\");\n // userName=rpanel.getUserName();\n String dbName=userName+\".db\";\n c = DriverManager.getConnection(\"jdbc:sqlite:database/\"+dbName);\n }\n //catch the exception\n catch ( Exception e ) \n { \n System.err.println( \"error in catch\"+e.getClass().getName() + \": \" + e.getMessage() );\n System.exit(0);\n }\n\t if(c!=null)\n\t {\n System.out.println(\"Opened database successfully\");\n\t System.out.println(c);\n createData();\n\t}\n }",
"public void connect() {\n\n\t\ttry {\n\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException ex) {\n\t\t\tSystem.err.println(\"Unable to load MySQL Driver\");\n\t\t\t\n\t\t}\n\n\t\tString jdbcUrl = \"jdbc:mysql://localhost:3306/userinfo?useLegacyDatetimeCode=false&serverTimezone=UTC&useSSL=false\";\n\t\ttry {\n\t\t\t// DriverManager.registerDriver(new com.mysql.jdbc.Driver());\n\t\t\tConnection con = DriverManager.getConnection(jdbcUrl, \"root\", \"smmk143143\");\n\t\t\tconn = con;\n\t\t\t// Set auto commit as false.\n\t\t\tconn.setAutoCommit(false);\n\t\t\tSystem.out.println(\"接続済み/Connected\");\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"接続エラーが発生しました/Connection Error Occured\");\n\t\t\tSystem.out.println(e.getMessage());\n\n\t\t}\n\t}",
"public static Connection obtener() \n {\n try\n {\n //sentencia de driver que se va a manejar\n Class.forName(\"com.mysql.jdbc.Driver\");\n \n String url = \"jdbc:mysql://127.0.0.1:3306/biblioteca?serverTimezone=\" + TimeZone.getDefault().getID();\n cnx = DriverManager.getConnection(url, \"root\", \"625387\");\n } \n catch (SQLException ex) {\n \n JOptionPane.showMessageDialog(null, \"Se presento error al conectar a la base de datos \"+ex.getMessage());\n } catch (ClassNotFoundException ex) {\n JOptionPane.showMessageDialog(null, \"Se presento error al conectar a la base de datos \"+ex.getMessage());\n }\n return cnx;\n }",
"public void connectToDatabase() throws SQLException\r\n {\r\n TimeZone timeZone = TimeZone.getTimeZone(\"AEST\");\r\n TimeZone.setDefault(timeZone);\r\n myConn = DriverManager.getConnection(getconn + dbname, user, pass);\r\n myStmt = myConn.createStatement();\r\n }",
"public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}",
"private void openDatabase() {\r\n if ( connect != null )\r\n return;\r\n\r\n try {\r\n // Setup the connection with the DB\r\n String host = System.getenv(\"DTF_TEST_DB_HOST\");\r\n String user = System.getenv(\"DTF_TEST_DB_USER\");\r\n String password = System.getenv(\"DTF_TEST_DB_PASSWORD\");\r\n read_only = true;\r\n if (user != null && password != null) {\r\n read_only = false;\r\n }\r\n if ( user == null || password == null ) {\r\n user = \"guest\";\r\n password = \"\";\r\n }\r\n Class.forName(\"com.mysql.jdbc.Driver\"); // required at run time only for .getConnection(): mysql-connector-java-5.1.35.jar\r\n connect = DriverManager.getConnection(\"jdbc:mysql://\"+host+\"/qa_portal?user=\"+user+\"&password=\"+password);\r\n } catch ( Exception e ) {\r\n System.err.println( \"ERROR: DescribedTemplateCore.openDatabase() could not open database connection, \" + e.getMessage() );\r\n }\r\n }",
"public void connectDB() {\n\t\tSystem.out.println(\"CONNECTING TO DB\");\n\t\tSystem.out.print(\"Username: \");\n\t\tusername = scan.nextLine();\n\t\tConsole console = System.console(); // Hides password input in console\n\t\tpassword = new String(console.readPassword(\"Password: \"));\n\t\ttry {\n\t\t\tDriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());\n\t\t\tconnection = DriverManager.getConnection(url, username, password);\n\t\t} catch(Exception Ex) {\n\t\t\tSystem.out.println(\"Error connecting to database. Machine Error: \" + Ex.toString());\n\t\t\tEx.printStackTrace();\n\t\t\tSystem.out.println(\"\\nCONNECTION IS REQUIRED: EXITING\");\n\t\t\tSystem.exit(0); // No need to make sure connection is closed since it wasn't made\n\t\t}\n\t}",
"private void connect() throws Exception {\n\t\tConnection c = DriverManager.getConnection(\"jdbc:mysql://\" + details[0] + \":3306/\" + details[3], details[1], details[2]);\n\t\tsetConnection(c);\n\t}",
"private void connectToDB() throws Exception\n\t{\n\t\tcloseConnection();\n\t\t\n\t\tcon = Env.getConnectionBradawl();\n\t}",
"public static Connection getConexion() {\r\n Connection cn=null;\r\n try{\r\n /**\r\n * conexion a la Base de datos\r\n */\r\n \r\n cn=DriverManager.getConnection(\"jdbc:mysql://127.0.0.1:3307/stockcia\",\"root\",\"\");\r\n //cn=DriverManager.getConnection(\"jdbc:mysql://raspberry-tic41.zapto.org:3306/StockCia\", \"tic41\", \"tic41\");//conexion local \r\n }\r\n catch(Exception e){\r\n System.out.println(String.valueOf(e));}\r\n return cn;\r\n }",
"public Connection connection()\n {\n String host = main.getConfig().getString(\"db.host\");\n int port = main.getConfig().getInt(\"db.port\");\n String user = main.getConfig().getString(\"db.user\");\n String password = main.getConfig().getString(\"db.password\");\n String db = main.getConfig().getString(\"db.db\");\n\n MysqlDataSource dataSource = new MysqlDataSource();\n dataSource.setServerName(host);\n dataSource.setPort(port);\n dataSource.setUser(user);\n if (password != null ) dataSource.setPassword(password);\n dataSource.setDatabaseName(db);\n Connection connection = null;\n try\n {\n connection = dataSource.getConnection();\n }\n catch (SQLException sqlException)\n {\n sqlException.printStackTrace();\n }\n return connection;\n }",
"public static Connection getConnection() throws SQLException, ClassNotFoundException{\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n //STEP 3: Open a connection\n conn = DriverManager.getConnection(DB_URL,USER,PASS);\n \n return conn;\n }",
"public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"private void dbConn()\n {\n\ttry\t\t\n\t{\t\n\t\t\t// driver to use with named database\n\t\tString url = \"jdbc:ucanaccess://c:/AH/AthloneHospital.mdb\";\n \n\t\t\t// connection represents a session with a specific database\n\t\tcon = DriverManager.getConnection(url);\n\n\t\t\t// stmt used for executing sql statements and obtaining results\n\t\tstmt = con.createStatement();\n\n\t\trs = stmt.executeQuery(\"SELECT * FROM Login\");\n\n\t\twhile(rs.next())\t// count number of rows in table\n\t\t\tcount++;\n\t\trs.close();\n System.out.println(\"Success!!!!\");\n\t}\n\tcatch(Exception e) { System.out.println(\"Error in start up......\");}\n }",
"private void conntest() {\n\t\tDatabaseDao ddao = null;\r\n\t\tString url;\r\n\r\n\t\tif (dbType.getValue().toString().toUpperCase()\r\n\t\t\t\t.equals((\"oracle\").toUpperCase())) {\r\n\t\t\turl = \"jdbc:oracle:thin:@\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tSystem.out.println(\"?\");\r\n\t\t\tddao = new OracleDaoImpl();\r\n\t\t} else {\r\n\t\t\turl = \"jdbc:mysql://\" + logTxtIp.getText() + \":\"\r\n\t\t\t\t\t+ logTxtPort.getText() + \"/\" + logTxtSdi.getText();\r\n\t\t\tddao = new MysqlDaoImpl();\r\n\t\t}\r\n\t\tSystem.out.println(url);\r\n\t\tString result = ddao.connection(url, logTxtId.getText(),\r\n\t\t\t\tlogTxtPw.getText());\r\n\t\tString resultSet;\r\n\t\tif (result.indexOf(\"오류\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"오류\"));\r\n\t\telse if (result.indexOf(\"ORA\") != -1)\r\n\t\t\tresultSet = result.substring(result.indexOf(\"ORA\"));\r\n\t\telse {\r\n\t\t\tresultSet = \"접속 테스트 성공\";\r\n\t\t}\r\n\t\tlogLblLogin.setText(resultSet);\r\n\t}"
] | [
"0.7697629",
"0.7502805",
"0.7495895",
"0.7471557",
"0.7428004",
"0.7401644",
"0.73992574",
"0.73918957",
"0.73310393",
"0.72666854",
"0.725491",
"0.72444737",
"0.7228563",
"0.7179799",
"0.7159436",
"0.70928085",
"0.70906115",
"0.70795816",
"0.7070299",
"0.70637995",
"0.7049599",
"0.7039446",
"0.7038454",
"0.70368844",
"0.7016097",
"0.70152926",
"0.7013234",
"0.7005617",
"0.69659305",
"0.69614124",
"0.694251",
"0.6942412",
"0.6928825",
"0.6926308",
"0.69106126",
"0.69082475",
"0.6905293",
"0.6895639",
"0.68914115",
"0.6891257",
"0.6881749",
"0.6879582",
"0.68755037",
"0.68729347",
"0.68726015",
"0.6867686",
"0.6861639",
"0.68615705",
"0.6859512",
"0.68574226",
"0.6854093",
"0.685386",
"0.6841447",
"0.6834168",
"0.6832327",
"0.68297297",
"0.68285245",
"0.6827239",
"0.68210167",
"0.68109965",
"0.68063825",
"0.6798139",
"0.67954904",
"0.67873746",
"0.67849064",
"0.6775243",
"0.6769953",
"0.676247",
"0.6759482",
"0.6737621",
"0.6735067",
"0.67288005",
"0.67246276",
"0.67222196",
"0.6709626",
"0.6702848",
"0.6701272",
"0.6697333",
"0.6683561",
"0.6683235",
"0.6682968",
"0.66826427",
"0.6680322",
"0.66756254",
"0.66521996",
"0.6646257",
"0.6634769",
"0.66325444",
"0.6631258",
"0.6628727",
"0.66252106",
"0.6624913",
"0.6624046",
"0.66200054",
"0.66069627",
"0.6599153",
"0.6589109",
"0.658886",
"0.65839183",
"0.6583591",
"0.65825784"
] | 0.0 | -1 |
Complete the minimumSwaps function below. | static void minimumSwaps(int[] arr) {
HashMap<Integer , Integer> hm = new HashMap<Integer , Integer>();
for(int i = 0 ; i < arr.length ; i++ ){
hm.put(arr[i], 2);
}
Iterator iterator = hm.keySet().iterator();
while (iterator.hasNext()) {
Integer key = (Integer) iterator.next();
Integer value = hm.get(key);
System.out.println(key + " " + value);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getSwaps();",
"static int minimumSwaps(int[] arr) {\n int length = arr.length;\n int swaps = 0;\n int ind = 0;\n int temp = 0;\n int count = 0;\n for(int i=0;i<length;i++)\n {\n if(i+1 != arr[i])\n {\n count++;\n ind = index(arr,i+1,i);\n if(ind != -1){\n temp = arr[i];\n arr[i] = arr[ind];\n arr[ind] = temp;\n }\n }\n }\n\n return count;\n }",
"static int minimumSwaps2(int[] arr) {\n Map<Integer, Integer> backward = new HashMap<>();\n Map<Integer, Integer> forward = new HashMap<>();\n for (int i = 0; i < arr.length; i++) {\n int move = i + 1 - arr[i];\n if (move > 0)\n forward.put(arr[i], move);\n else if (move < 0)\n backward.put(arr[i], move);\n }\n\n //count swap in pairs\n int pairs = 0;\n for (Integer bk : backward.keySet()) {\n for (Integer fk : forward.keySet()) {\n if (backward.get(bk) * (-1) == forward.get(fk)) {\n pairs = pairs + 1;\n continue;\n }\n }\n }\n //count swap others\n int swapCount = forward.size() + backward.size() - (2 * pairs);\n if (swapCount > 0) swapCount = swapCount - 1;\n\n System.out.println(String.format(\n \"forward(%d):%s\\nbackeward(%d):%s\\neach: %d, swap: %d\"\n , forward.size(), forward, backward.size(), backward,\n pairs, swapCount\n ));\n\n return swapCount + pairs;\n }",
"public int minimumSwaps(int[] arr){\n\t\t/*\n\t\t * for each element check it's ideal position then swap with ideal position, if swap needed swap and increment swap count.\n\t\t */\n\t\tint swapCount = 0;\n\t\tif(arr==null || arr.length <2){\n\t\t\treturn swapCount;\n\t\t}\n\t\tfor(int i=0; i<arr.length; i++){\n\t\t\tint element = arr[i];\n\t\t\tint idealIndex = element-1;\n\t\t\tif(i!=idealIndex) {\n\t\t\t\tint temp = arr[i];\n\t\t\t\tarr[i] = arr[idealIndex];\n\t\t\t\tarr[idealIndex] = temp;\n\t\t\t\tswapCount++;\n\t\t\t}\n\t\t}\n\t\treturn swapCount;\n\t}",
"static int minimumSwaps(int[] arr) {\n int arrLen = arr.length;\n int minSwaps = 0;\n boolean visited[] = new boolean[arrLen];\n for ( int i = 0; i < arrLen ; i++){\n if ( arr[i] == i+1){\n visited[i] = true;\n continue;\n }\n else if ( !visited[arr[i] - 1]){\n visited[i] = true;\n int temp = arr[i];\n int hops = 1;\n while ( temp != i+1 ){\n visited[temp - 1] = true;\n temp = arr[temp -1];\n hops++;\n }\n minSwaps += hops - 1;\n }\n }\n return minSwaps;\n }",
"static int minimumSwaps(int[] arr) {\r\n int result = 0;\r\n \r\n // Gets the length of the input array\r\n int size = arr.length;\r\n \r\n // Cycles through the input array\r\n for (int i = 0; i < size; i++) {\r\n // Checks if the element is in the right position\r\n if (arr[i] != i+1) {\r\n result += 1; // The element ISN'T in the right position. A new swap is needed!\r\n \r\n // Cycles through the remaining input array\r\n for (int j = i+1; j < size; j++) {\r\n if (arr[j] == i+1) { // Gets the element that should be in the place of arr[i] and swaps it!\r\n int swap = arr[j];\r\n arr[j] = arr[i];\r\n arr[i] = swap;\r\n break;\r\n }\r\n } \r\n }\r\n }\r\n \r\n return result;\r\n}",
"private LinkedStack<short []> getSwaps() {\n LinkedStack<short []> result = new LinkedStack<short []>();\n // scan 4 directions, add to result if not edge\n if (blank_r > 0) result.push(new short[] {(short) (blank_r - 1), blank_c}); // above\n if (blank_c < N - 1) result.push(new short[] {blank_r, (short) (blank_c + 1)}); // right\n if (blank_r < N - 1) result.push(new short[] {(short) (blank_r + 1), blank_c}); // below\n if (blank_c > 0) result.push(new short[] {blank_r, (short) (blank_c - 1)}); // left\n return result;\n }",
"static void minimumBribes(int[] q) {\n \t\n \tfor(int i=0;i<q.length;i++){\n if((q[i] - (i+1)) > 2){\n System.out.println(\"Too chaotic\");\n return; \n }\n }\n \n int swaps=0;\n for(int i=0;i< q.length;i++){\n for(int j=i+1;j<q.length;j++){\n if(q[i] > q[j]){ \n int tmp=q[j];\n q[j]=q[i];\n q[i]=tmp;\n swaps++;\n }\n }\n }\n \n System.out.println(swaps);\n \n }",
"static void minimumBribes(int[] q) {\n int swaps = 0;\n for (int i = 0; i < q.length; i++) {\n if ((q[i] - (i+1)) > 2) {\n System.out.println(\"Too chaotic\");\n return;\n }\n for (int j = i + 1; j < q.length; j++) {\n if (q[i] > q[j]) {\n int t = q[j];\n q[j] = q[i];\n q[i] = t;\n swaps++;\n }\n }\n }\n\n System.out.println(swaps);\n }",
"void lowerNumberOfStonesOnBoard();",
"public int minSwaps(int[] data) {\n int n = 0;\n for (int i : data) {\n \tif (i == 1) n++;\n }\n if (n == 1) return 0;\n int zeroCount = 0;\n for (int i = 0; i < n; i++) {\n \tif (data[i] == 0) zeroCount++;\n }\n int result = zeroCount;\n for (int i = n; i < data.length; i++) {\n \tif (data[i] == 0) zeroCount++;\n \tif (data[i - n] == 0) zeroCount--;\n \tresult = Math.min(result, zeroCount);\n }\n return result;\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}",
"void lowerNumberOfStonesLeftToPlace();",
"public String solution() {\n\t\tint[] arr = {1000, 11, 445, 1, 330, 3000};\n int arr_size = 6;\n \n int swaps = 0;\n int max = 0;\n int min = 0;\n int i = 0;\n if(arr_size%2 == 0) {\n \tif(arr[0]<arr[1]) {\n \t\tmin = arr[0];\n \t\tmax=arr[1];\n \t}\n \telse {\n \t\tmin = arr[1];\n \t\tmax=arr[0];\n \t}\n \ti=2;\n }\n else {\n \tmax=arr[0];\n \tmin = arr[0];\n \ti=1;\n }\n \n while(i<arr_size) {\n \tif(arr[i]>arr[i+1]) {\n \t\tmax=Math.max(max, arr[i]);\n \t\tmin=Math.min(min, arr[i+1]);\n \t}\n \telse {\n \t\tmax=Math.max(max, arr[i+1]);\n \t\tmin=Math.min(min, arr[i]);\n \t}\n \ti+=2;\n }\n \n \n\t\treturn \"END \"+max + \" \"+min;\n }",
"public int minSwap(int[] A, int[] B) {\n int n = A.length;\n int[] swap = new int[n];\n int[] no_swap = new int[n];\n swap[0] = 1;\n for (int i = 1; i < n; ++i) {\n swap[i] = n;\n no_swap[i] = n;\n /**\n * A[i-1]<A[i] && B[i-1]<B[i]\n * 1. swap at i and i-1\n * 2. do not swap at i and i-1\n */\n if (A[i-1]<A[i] && B[i-1]<B[i]) {\n // swap\n swap[i] = swap[i-1] + 1;\n no_swap[i] = no_swap[i-1];\n }\n /**\n * A[i-1]<B[i] && B[i-1]<A[i]\n * 1. swap at i-1 and do not swap at i\n * 2. do not swap at i-1 and swap at i\n */\n if (A[i-1]<B[i] && B[i-1]<A[i]) {\n // swap at i-1 and do not swap at i\n no_swap[i] = Math.min(no_swap[i], swap[i-1]);\n // do not swap at i-1 and swap at i\n swap[i] = Math.min(swap[i], no_swap[i-1]+1);\n }\n // else whether swap or do not swap, it can't guarantee both A and B increasing.\n }\n return Math.min(swap[n-1], no_swap[n-1]);\n }",
"static int minSwap (int arr[], int n, int k) {\n int c=0;\n for(int i=0;i<n;i++)\n {\n if(arr[i]<=k)\n ++c;\n }\n int c1=0;\n int start=0,end=c;\n for(int j=0;j<end;j++)\n {\n if(arr[j]>k)\n ++c1;\n }\n int minans=c1;\n while(end<n)\n {\n if(arr[start]>k)\n --c1;\n if(arr[end]>k){\n ++c1;\n }\n minans=Math.min(minans,c1);\n start++;\n end++;\n }\n return minans;\n //Complete the function\n }",
"static void countSwaps(int[] a) {\r\n\t\tint u = 0;\r\n\t\tint count = 0;\r\n\t\tfor (int k = 0; k < a.length; k++) {\r\n\t\t\tfor (int i = 0; i < a.length - 1; i++) {\r\n\t\t\t\tif (a[i] > a[i + 1]) {\r\n\t\t\t\t\tu = a[i];\r\n\t\t\t\t\ta[i] = a[i + 1];\r\n\t\t\t\t\ta[i + 1] = u;\r\n\t\t\t\t\tcount += 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tint z = a.length - 1;\r\n\t\tSystem.out.println(\"Array is sorted in \" + count + \" swaps.\");\r\n\t\tSystem.out.println(\"First Element: \" + a[0]);\r\n\t\tSystem.out.println(\"Last Element: \" + a[z]);\r\n\r\n\t}",
"public static void balanceHeaps()\n {\n // add your code here\n if(Math.abs(s.size()-g.size()) > 1){\n if(s.size() > g.size()){\n g.add(s.poll());\n }\n else {\n s.add(g.poll());\n }\n }\n }",
"@Test\n public void countSwapsCaseFive() {\n assertEquals(10, Problems.countSwaps(new int[]{5,4,3,2,1}));\n }",
"private static int leftBump(int[] a) {\n for (int i = 2; i <= a.length; i++) {\n if (a[i] < a[i - 1]) {\n return i - 1;\n }\n }\n return -1;\n }",
"public int minSwaps(String s, int[] L, int[] R) {\n if(s.length() <= 1) {\n return -1;\n }\n\n Arrays.sort(L);\n Arrays.sort(R);\n StringBuilder sb = new StringBuilder(s);\n\n int moves = 0;\n List<String> parts = new ArrayList<String>();\n List<List<Integer>> corrections = new ArrayList<List<Integer>>();\n for(int i = L.length - 1; i >= 0; i--) {\n String curr = s.substring(L[i], R[i] + 1);\n List<Integer> currCorrection = correct(curr);\n if(curr.length() % 2 == 1) {\n return -1;\n }\n if(currCorrection.size() > 0) {\n parts.add(curr);\n corrections.add(currCorrection);\n }\n sb.delete(L[i], R[i] + 1);\n }\n\n List<String> processed = new ArrayList<String>();\n for(int p = parts.size() - 1; p >= 0; p--) {\n List<Integer> currCorrection = corrections.remove(p);\n StringBuilder currPart = new StringBuilder(parts.remove(p));\n for(int c = 0; c < currCorrection.size(); c++) {\n boolean swapped = false;\n char neededChar = currPart.charAt(currCorrection.get(c)) == '(' ? ')' : '(';\n // Check if any of the other corrections in this list are the exact opposite:\n for(int oc = c + 1; oc < currCorrection.size(); oc++) {\n if(currPart.charAt(currCorrection.get(oc)) == neededChar) {\n swapped = true;\n currPart.setCharAt(currCorrection.get(oc), currPart.charAt(currCorrection.get(c)));\n currPart.setCharAt(currCorrection.get(c), neededChar);\n currCorrection.remove(oc);\n moves++;\n break;\n }\n }\n\n if(swapped) continue;\n\n for(int op = p - 1; op >= 0; op--) {\n List<Integer> otherCorrection = corrections.get(op);\n StringBuilder otherPart = new StringBuilder(parts.get(op));\n\n for(int oc = otherCorrection.size() - 1; oc >= 0; oc--) {\n if(otherPart.charAt(otherCorrection.get(oc)) == neededChar) {\n otherPart.setCharAt(otherCorrection.get(oc), currPart.charAt(currCorrection.get(c)));\n currPart.setCharAt(currCorrection.get(c), neededChar);\n otherCorrection.remove(oc);\n moves++;\n swapped = true;\n break;\n }\n }\n\n if(swapped) break;\n }\n\n if(swapped) continue;\n\n for(int baseIdx = 0; baseIdx < sb.length(); baseIdx++) {\n if(sb.charAt(baseIdx) == neededChar) {\n sb.setCharAt(baseIdx, currPart.charAt(currCorrection.get(c)));\n currPart.setCharAt(currCorrection.get(c), neededChar);\n moves++;\n swapped = true;\n break;\n }\n }\n\n if(!swapped) {\n return -1;\n }\n }\n\n processed.add(0, currPart.toString());\n }\n\n return moves;\n }",
"@Test\n public void countSwapsCaseSix() {\n assertEquals(2, Problems.countSwaps(new int[]{3,1,2,4}));\n }",
"public void sortByLength()\n {\n boolean swapMade;//has a swap been made in the most recent pass?\n \n //repeat looking for swaps\n do\n {\n swapMade=false;//just starting this pass, so no swap yet\n \n //go through entire array. looking for swaps that need to be done\n for(int i = 0; i<currentRide-1; i++)\n {\n //if the other RideLines has less people\n if(rides[i].getCurrentPeople()<rides[i+1].getCurrentPeople())\n {\n // standard swap, using a temporary. swap with less people\n RideLines temp = rides[i];\n rides[i]=rides[i+1];\n rides[i+1]=temp;\n \n swapMade=true;//remember this pass made at least one swap\n }\n \n } \n }while(swapMade);//until no swaps were found in the most recent past\n \n redrawLines();//redraw the image\n \n }",
"public void balanceHeaps(){\n \n //If max heap size is greater than min heap then pop the first element and put int min heap\n if(maxHeap.size() > minHeap.size())\n minHeap.add(maxHeap.pollFirst());\n\n }",
"public void wiggleSortSubOptimal(int[] nums) {\n Arrays.sort(nums);\n \n for (int i = 1; i < nums.length - 1; i += 2)\n swap(nums, i, i + 1);\n }",
"public int Delete_Min()\n {\n \tthis.array[0]=this.array[this.getSize()-1];\n \tthis.size--; \n \tthis.array[0].setPos(0);\n \tint numOfCompares = heapifyDown(this, 0);\n \treturn numOfCompares;\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in); \n int n = sc.nextInt();\n int[] array = new int[n];\n for(int i = 0;i < n; i++) {\n array[i] = sc.nextInt();\n }\n sc.close();\n \n int start = -1, end = -1;\n int misplaced = 0;\n \n for(int i = 0; i < n - 1; i++) {\n if(array[i] > array[i + 1]) {\n misplaced++;\n if(start < 0) {\n start = i;\n }\n }\n }\n \n for(int i = n - 1; i > 0; i--) {\n if(array[i] < array[i-1]) {\n end = i;\n break;\n }\n }\n \n if(misplaced < 1) {\n System.out.println(\"no\");\n return;\n }\n else if(misplaced == 1 || misplaced == 2) {\n if(misplaced == 1) //case where two neighbors swap themselves\n end = start + 1;\n boolean leftValidator = (start == 0 || array[end] >= array[start - 1]) && array[end] <= array[start + 1];\n boolean rightValidator = \n (end == n - 1 || array[start] <= array[end + 1]) && array[start] >= array[end -1];\n if(leftValidator && rightValidator) {\n System.out.println(\"yes\");\n System.out.println(\"swap \"+(start+1)+\" \"+(end+1));\n }\n else{\n System.out.println(\"no\");\n }\n return;\n }\n else{\n boolean leftValidator = start == 0 || array[end] >= array[start - 1];\n boolean rightValidator = end == n -1 || array[start] <= array[end + 1];\n if(!leftValidator || !rightValidator){\n System.out.println(\"no\");\n return;\n }\n int pre = array[end];\n for(int i = end - 1; i >= start; i--) {\n if(array[i] < pre) {\n System.out.println(\"no\");\n return;\n }\n pre = array[i];\n }\n \n System.out.println(\"yes\");\n System.out.println(\"reverse \"+(start+1)+\" \"+(end+1));\n }\n \n /**\n //I am such an idot cause I first understood the question wrongly\n //If the array was supposed to be consecutively ascending order, then the code below would've worked\n \n int min = Integer.MAX_VALUE;\n int start = -1, end = -1;\n int left = 0, right = n - 1;\n int misplaced = 0;\n \n for(int i : array) { //find the min value\n min = Math.min(min, i);\n }\n \n while(left <= right) { //find how many elements are misplaced and the index of first misplaced element\n if(array[left] != min + left) { //and the index of the last misplaced element\n misplaced++;\n if(start < 0) {\n start = left;\n }\n }\n left++;\n if(left <= right && array[right] != min + right) { //left != right for the case where the array is odd\n misplaced++;\n if(end < 0) {\n end = right;\n }\n }\n right--;\n }\n \n if(misplaced < 2) {\n System.out.println(\"no\");\n return;\n }\n else if(misplaced == 2) {\n if(min + start == array[end] && min + end == array[start]) {\n System.out.println(\"yes\");\n System.out.println(\"swap \"+(start+1)+\" \"+(end+1));\n }\n else{\n System.out.println(\"no\");\n }\n return;\n }\n else{\n for(int i = start, j = 0; i <= end; i++, j++) {\n if(array[i] != min + end - j) {\n System.out.println(\"no\");\n return;\n }\n }\n \n System.out.println(\"yes\");\n System.out.println(\"reverse \"+(start+1)+\" \"+(end+1));\n }\n **/\n \n }",
"void Minheap()\n {\n for(int i= (size-2)/2;i>=0;i--)\n {\n minHeapify(i);\n }\n }",
"public int swapCount() {\n \t\tint n=length();\n \t\tint swaps=0;\n \t\tboolean[] seen=new boolean[n];\n \t\tfor (int i=0; i<n; i++) {\n \t\t\tif (seen[i]) continue;\n \t\t\tseen[i]=true;\n \t\t\tfor(int j=data[i]; !seen[j]; j=data[j]) {\n \t\t\t\tseen[j]=true;\n \t\t\t\tswaps++;\n \t\t\t}\t\t\n \t\t}\n \t\treturn swaps;\n \t}",
"public static void SwapLargestSmallest(int[] array) {\n\n }",
"public void selectionSort(int[] x)\n {\n for (int i = 0; i < x.length-1; i++) {\n int minIndex = i;\n for (int j = i+1; j < x.length; j++) {\n if (x[minIndex] > x[j]) {\n minIndex = j;\n }\n }\n int temp = x[i];\n x[i] = x[minIndex];\n x[minIndex] = temp;\n }\n \n public void replaceFirst(int oldVal, int newVal)\n {\n \n }\n}",
"public static void main(String[] args) {\n\t\t\tint numbers[] = { 14, 56, 37, 0, 23, 9, 2, 80, 67 };\n\t\t\t//\t\t\t\t\t0 1 2 3 4 5 6 7 8\n\t\t\tint min =0, temp =0, indexOfMin=0;\n\t\t\t\t\t//i points to the num position\n\t\t\tfor (int i =0; i<numbers.length-1; i++) { // this FOR loop maintain the index position only\n\t\t\t\n\t\t\tmin = numbers[i];\n\t\t\tfor (int j=i; j<numbers.length;j++) { // find the min num\n\t\t\t\tif (numbers[j]<min) {\n\t\t\t\t\tmin = numbers[j];\n\t\t\t\t\tindexOfMin=j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// swapping of 2 nums : numbers{indexOfMin} and numbers[i]\n\t\t\ttemp = numbers[indexOfMin];\n\t\t\tnumbers[indexOfMin] = numbers[i];\n\t\t\tnumbers[i]=temp;\n\t\t\t}\n\t\t\tfor (int i=0; i<numbers.length; i++) {\n\t\t\tSystem.out.println(numbers[i]);\n\t\t}\t}",
"private static void sort2(int[] a) {\n for(int i=0; i<a.length; i++){\n //find smallest from i to end \n int minIndex=i;\n for(int j=i ; j<a.length; j++)\n if(a[j]<a[minIndex])\n minIndex=j;\n //swap\n int t = a[i];\n a[i] = a[minIndex];\n a[minIndex] = t;\n }\n }",
"private static void cutSticks(ArrayList<Integer> numbers, int min) {\n\t\tint length = numbers.size();\n\t\t\n\t\twhile(min < Integer.MAX_VALUE){\n\t\t\tSystem.out.println(numbers.size());\n\t\t\tint newMin = Integer.MAX_VALUE;\n\t\t\tfor(int i = 0; i < numbers.size(); i++){\n\t\t\t\tint newno = numbers.get(i) - min;\n\t\t\t\tif(newno > 0){\n\t\t\t\t\tnumbers.set(i, numbers.get(i) - min);\n\t\t\t\t\tif(newno < newMin){\n\t\t\t\t\t\tnewMin = newno;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tnumbers.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tmin = newMin;\n\t\t}\n\t\t\n\t}",
"public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\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}",
"void minHeapify(int i) {\n\n\t\tint l = 2*i + 1;\n\t\tint r = 2*i + 2;\n\t\tint smallest = i;\n \n\t\tif(l < size && arr[l].element < arr[smallest].element)\n\t\t\tsmallest = l;\n\n\t\tif(r < size && arr[r].element < arr[smallest].element)\n\t\t\tsmallest = r;\n\n\t\tif(smallest != i) {\n\t\t\t// call method exchange to change \n\t\t\texchange(arr,i,smallest);\n\t\t\tminHeapify(smallest);\n\t\t}\n\t}",
"private static Integer[] optimisedBubbleSort(Integer[] n) {\n int len = n.length - 1;\n boolean swapped = false;\n for (int i = 0; i < len; i++) {\n for (int j = 0; j < len - i; j++) {\n if (n[j] > n[j + 1]) {\n int temp = n[j];\n n[j] = n[j + 1];\n n[j + 1] = temp;\n swapped = true;\n }\n }\n if(swapped == false) {\n break;\n }\n }\n return n;\n }",
"@Before\n public void setUpBinaryMinHeaps() {\n empty = new BinaryMinHeap<>();\n emptyArr = new ArrayList<>();\n \n multipleElements = new BinaryMinHeap<>();\n multipleElements.insert(7);\n multipleElements.insert(8);\n multipleElements.insert(5);\n multipleElements.insert(3);\n multipleElements.insert(2);\n multipleElements.insert(6);\n \n multiArr = new ArrayList<>();\n multiArr.add(2);\n multiArr.add(3);\n multiArr.add(6);\n multiArr.add(8);\n multiArr.add(5);\n multiArr.add(7);\n \n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(swapCount(20));\n\t\tswapPath(3, 'A', 'B', 'C');\n\t\n\t}",
"void MinInsert(int x)\n {\n if (size == capacity) {\n return;\n }\n size++;\n arr[size - 1] = x;\n for (int i = size - 1; i != 0 && arr[MyHeap.parent(i)] > arr[i]; )\n {\n swap(i,MyHeap.parent(i));\n i = MyHeap.parent(i);\n }\n }",
"int partition(int arr[], int low, int high, SequentialTransition sq,ArrayList<StackPane> list,double speed) \n\t {\n\t\t\tint step;\n//\t\t\tint n = arr.length;\n\t int pivot = arr[high]; \n\t int i = (low-1);\n\t for (int j=low; j<high; j++) \n\t { \n\t if (arr[j] <= pivot) \n\t { \n\t i++; \n\t int temp = arr[i]; \n\t arr[i] = arr[j]; \n\t arr[j] = temp; \n\t step = j - i;\n\t sq.getChildren().add(FillBeforeSwap(list.get(i), list.get(j),speed));\n\t sq.getChildren().add(swapMe(list.get(i), list.get(j), step, list, speed));\n\t sq.getChildren().add(FillAfterSwap(list.get(j), list.get(i), speed));\n\t } \n\t } \n\t int temp = arr[i+1]; \n\t arr[i+1] = arr[high]; \n\t arr[high] = temp; \n\t step = (high) - (i+1);\n\t sq.getChildren().add(FillBeforeSwap(list.get(i+1), list.get(high), speed));\n\t sq.getChildren().add(swapMe(list.get(i+1), list.get(high), step, list, speed));\n\t sq.getChildren().add(FillAfterSwap(list.get(i+1), list.get(high), speed));\n\t \n\t return i+1; \n\t }",
"public MinStack() {\n capacity = 1 << 4;\n nums = new int[capacity];\n mins = new int[capacity];\n }",
"public static int[] selectionSort(int[] array) {\n\n if(array.length== 0) {\n return new int[] {};\n }\n\n int[] arraySorted = new int[array.length];\n int[] arrayWaitToSorted = new int[array.length];\n\n\n\n int startIndex = 0;\n while ( startIndex < array.length ) {\n int swapMinIndex = startIndex;\n\n\n\n\n\n for (int j = startIndex+1; j < array.length ; j++) {\n\n\n if (array[j] < array[swapMinIndex] ) {\n swapMinIndex = j;\n }\n\n }\n\n int temp = array[swapMinIndex];\n array[swapMinIndex] = array[startIndex];\n array[startIndex] = temp;\n\n startIndex++;\n\n\n\n// int temp = array[swapMinIndex];\n// arraySorted[i] = array[swapMinIndex];\n// array[swapMinIndex]= array[i];\n }\n\n\n\n\n// return arraySorted;\n return array;\n }",
"public void sequenceSwaps(int[] tempItem1, int[] tempItem2, Vector<int[]> cyclePosition, int distTotal, Vector<int[]> sequence, int mut_rate){\n boolean b;\n int[] cycles2 = new int[cyclePosition.size()];\n int nrSwaps = 0;\n Arrays.fill(cycles2,-1);\n sequence.clear();\n while(true){\n int j = r.nextInt(cyclePosition.size());\n\n b = false;\n for(int i = 0; i < cycles2.length; i++)\n if(cycles2[i] == -1){\n b = true;\n break;\n }\n if(!b){\n break;\n }\n while(cycles2[j] != -1)\n j = r.nextInt(cyclePosition.size());\n cycles2[j] = 1;\n int[] indexSwap = cyclePosition.elementAt(j).clone();\n int dist = indexSwap.length; //+1;//ps1.getDistance(tempDist1,tempDist2);\n\n //\n int rInt = r.nextInt(indexSwap.length);\n int indexI, indexII;\n \n //tempR.clear();\n for(int i = 0; i < dist-1; i++){\n indexI = tempItem1[indexSwap[rInt]];\n //find indexI in temp2\n indexII = -1;\n for(int k = 0; k < indexSwap.length; k++)\n if(tempItem2[indexSwap[k]] == indexI){\n indexII = indexSwap[k];\n break;\n }\n \n int[] tempInt = new int[2];\n tempInt[0] = indexII;\n tempInt[1] = indexSwap[rInt];\n\n sequence.add(tempInt);\n\n //swaps the two positions\n int temp = tempItem1[indexSwap[rInt]];\n tempItem1[indexSwap[rInt]]=tempItem1[indexII];\n tempItem1[indexII]=temp;\n\n nrSwaps++;\n if(nrSwaps >= mut_rate-1)\n break;\n\n }\n if(nrSwaps >= mut_rate-1)\n break;\n }\n }",
"public static void main(String[] args) {\n\n\t\tint[] a = { 99, 10, 55, 99, 88, 77, 64, 91, 97 };\n\t\tint temp, min = 0;\n\t\t/* This for loop is for iterating over various elements and swapping with the minimum number in the array */\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tmin = i;\n\t\t\t/*\n\t\t\t * This for loop is for iterating over each element of the array and\n\t\t\t * and detects the index of the smallest number in the array. \n\t\t\t * Once found the index will be updated min variable\n\t\t\t */\n\t\t\tfor (int j = i + 1; j < a.length; j++) {\n\t\t\t\tif (a[j] < a[min]) {\n\t\t\t\t\tmin = j;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\ttemp = a[i];\n\t\t\ta[i] = a[min];\n\t\t\ta[min] = temp;\n\n\t\t}\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tSystem.out.print(a[i] + \" \");\n\t\t}\n\n\t}",
"public void selectionSort(int [] nums) {\n\t\tfor(int i=0;i<nums.length;i++) {\n\t\t\tint min=i;\n\t\t\tfor(int j=i+1;j<nums.length;j++) {\n\t\t\t\tif(less(nums[j],nums[i])) \n\t\t\t\t\tmin=j;\n\t\t\t}\n\t\t\tswap(nums,i,min);\n\t\t}\n\t}",
"public void selectionSort(int [] nums) {\n\t\tfor(int i=0;i<nums.length;i++) {\n\t\t\tint min=i;\n\t\t\tfor(int j=i+1;j<nums.length;j++) {\n\t\t\t\tif(less(nums[j],nums[i])) \n\t\t\t\t\tmin=j;\n\t\t\t}\n\t\t\tswap(nums,i,min);\n\t\t}\n\t}",
"public void setLimitSwitchesSwapped(boolean swapped)\n {\n final String funcName = \"setLimitSwitchesSwapped\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"swapped=%s\", swapped);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n limitSwitchesSwapped = swapped;\n }",
"public static void selectionSort(int[] a) {\r\n int temp; // catalyst variable for Integer swapping\r\n int spot; //location in array where minimum will be inserted\r\n int minimum; //location of minimum value in remainder\r\n\r\n for (spot = 0; spot < a.length - 1; spot++) {\r\n minimum = spot; //\r\n for (int i = spot + 1; i < a.length; i++) {\r\n if (a[i] < a[minimum]) {\r\n minimum = i; //if i is less than minimum, i is new minimum\r\n }\r\n }//end for i\r\n\r\n //swap a[spot] and a[minimum]\r\n temp = a[minimum];\r\n a[minimum] = a[spot];\r\n a[spot] = temp;\r\n }//end for spot\r\n }",
"public void selectionSort()\r\n {\r\n for(int x = 0; x < numItems; x++)\r\n {\r\n int smallestLoc = x;\r\n for(int y = x+1; y<numItems; y++)\r\n {\r\n if(mArray[y]< mArray[smallestLoc])\r\n {\r\n smallestLoc = y;\r\n }\r\n }\r\n int temp = mArray[x];\r\n mArray[x] = mArray[smallestLoc];\r\n mArray[smallestLoc] = temp;\r\n }\r\n }",
"static void SelectionSort(int[] arr){\n int minIndex;\n for(int i = 0; i<arr.length-1; i++){\n minIndex = i;\n for(int j = i+1; j<arr.length;j++){\n if(arr[minIndex]>arr[j]){\n minIndex = j;\n }\n }\n if(minIndex>i){\n Swap(arr,i,minIndex);\n }\n }\n }",
"public static void main(String[] args) {\n\t\tint n;\n\t\tint array[];\n\t\t\n\t\t\n\t\tint maxindex = 0, minindex =0, temp;\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.print(\"The array lenght is: \");\n\t\t\n\t\tn = scan.nextInt();\n\t\tarray = new int[n];\n\t\tSystem.out.println();\n\t\t//getting the value for the array\n\t\tfor(int i = 0; i<n ; i++) {\n\t\t\tSystem.out.println(\"Please enter the value for the array:\");\n\t\t\tarray[i]=scan.nextInt();\n\t\t\twhile(array[i]<0) {\n\t\t\t\tSystem.out.println(\"Please enter a positive value:\");\n\t\t\t\tarray[i]=scan.nextInt();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//before swap\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Before swapping the min max, the array is\\n\");\n\t\tfor(int i = 0; i<n ;i++) {\n\t\t\tSystem.out.print(array[i]+\" \");\n\t\t}\n\t\t//finding the max value\n\t\tint maxValue = array[0];\n\t\tfor(int i = 1; i<array.length; i++) {\n\t\t\tif(array[i]>maxValue) {\n\t\t\t\tmaxValue = array[i];\n\t\t\t\tmaxindex = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\nThe max is \" + maxValue + \" and its location is \"+ maxindex);\n\t\t\n\t\t//finding the min value\n\t\tint minValue = array[0];\n\t\tfor(int i = 1; i<array.length; i++) {\n\t\t\tif(array[i] < minValue) {\n\t\t\t\tminValue = array[i];\n\t\t\t\tminindex = i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The min is \" + minValue + \" and its location is \"+ minindex);\n\t\t//swapping\n\t\t\n\t\ttemp = array[maxindex];\n\t\tarray[maxindex]=array[minindex];\n\t\tarray[minindex]=temp;\n\t\tSystem.out.print(\"\\nAfter swapping the min max, the array is\\n\");\n\t\tfor(int i = 0; i<n ;i++) {\n\t\t\tSystem.out.print(array[i]+\" \");\n\t\t}\n\t\t//sort the array in ascending order\n\t\tfor(int i = 0; i<array.length; i++) {\n\t\t\tfor(int j = i +1; j<array.length; j++) {\n\t\t\t\tif(array[i]>array[j]) {\n\t\t\t\t\ttemp = array[i];\n\t\t\t\t\tarray[i] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//array after sorting\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"\\nThe array sorted in Ascending Order:\");\n\t\tfor(int i = 0; i<n ; i++) {\n\t\t\tSystem.out.print(array[i]+ \" \");\n\t\t}\n\t\t//finding the maiden\n\t\tint Mid = 0, midNext = 0;\n\t\tfloat a = 0;\n\t\tif((n%2) != 0) {\n\t\t\tMid = (n/2)+1;\n\t\t\ta = array[Mid];\n\t\t}\n\t\telse {\n\t\t\tMid = n/2;\n\t\t\tmidNext = Mid + 1;\n\t\t\tfloat add = array[Mid-1] + array[midNext -1];\n\t\t\tfloat div = add/2;\n\t\t\ta = div;\n\t\t}\n\t\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"\\nThe median is: \" + a);\n\t\t\n\t\t\n\t\t\n\t}",
"public int[] smallestRange(int[][] arrays) {\n \n int[] pointer = new int[arrays.length];\n int max = Integer.MIN_VALUE;\n int minY = Integer.MAX_VALUE;\n int minX = 0;\n boolean flag = true;\n \n // PriorityQueue<Integer> queue = new PriorityQueue<>((i,j)-> arrays[i][pointer[i]] - arrays[j][pointer[j]]);\n \n PriorityQueue<Integer> queue = new PriorityQueue<>(new Comparator<Integer>(){\n public int compare(Integer i, Integer j){\n return arrays[i][pointer[i]] - arrays[j][pointer[j]];\n }\n });\n \n for(int i = 0; i < arrays.length; i++){\n queue.offer(i);\n max = Math.max(max, arrays[i][0]);\n }\n \n for(int i = 0; i < arrays.length && flag; i ++){\n for(int j = 0; j < arrays[i].length && flag; j++){\n int minTemp = queue.poll();\n if(minY - minX > max - arrays[minTemp][pointer[minTemp]]){\n minX = arrays[minTemp][pointer[minTemp]];\n minY = max;\n }\n pointer[minTemp]++;\n if(pointer[minTemp] == arrays[minTemp].length){\n flag = false;\n break;\n }\n queue.offer(minTemp);\n max = Math.max(max, arrays[minTemp][pointer[minTemp]]);\n }\n }\n return new int[]{minX, minY};\n }",
"public void updateLaps() {\n\t\tint totSegs = (segments.size()-1)/2;\n\t\tif (oldSeg == totSegs && curSeg == 0) {\n\t\t\tif (!cheatedLap) {\n\t\t\t\tlaps++;\n\t\t\t} else cheatedLap = false;\n\t\t} else if (oldSeg == 0 && curSeg == totSegs){\n\t\t\tcheatedLap = true;\n\t\t}\n\t}",
"private void heapify() {\n\t\tint currIndex = 0;\n\t\twhile (currIndex < heapSize) {\n\t\t\tT val = lstEle.get(currIndex);\n\t\t\tint leftSubtreeIndex = getLeftSubtree(currIndex);\n\t\t\tint rightSubtreeIndex = getRightSubtree(currIndex);\n\t\t\tT leftChildVal = leftSubtreeIndex < heapSize ? lstEle.get(leftSubtreeIndex) : null;\n\t\t\tT rightChildVal = rightSubtreeIndex < heapSize ? lstEle.get(rightSubtreeIndex) : null;\n\t\t\t\n\t\t\tT minVal = null;\n\t\t\tint minValIndex = -1;\n\t\t\tif(leftChildVal != null && rightChildVal != null){\n\t\t\t\tint compVal = leftChildVal.compareTo(rightChildVal); \n\t\t\t\tif(compVal < 0){\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t}else {\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif(leftChildVal != null && leftChildVal.compareTo(val) < 0){\n\t\t\t\t\tminValIndex = leftSubtreeIndex;\n\t\t\t\t\tminVal = leftChildVal;\n\t\t\t\t}else if (rightChildVal != null && rightChildVal.compareTo(val) < 0 ){\n\t\t\t\t\tminValIndex = rightSubtreeIndex;\n\t\t\t\t\tminVal = rightChildVal;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\tMin Val : \" +minVal +\" --> \" +minValIndex);\n\t\t\t\n\t\t\tlstEle.set(currIndex, minVal);\n\t\t\tcurrIndex = minValIndex;\n\t\t\tlstEle.set(minValIndex, val);\n\t\t\t\n\t\t}\n\n\t}",
"public static void mergeSortedArrays(final int MEM_SIZE, ArrayList<Integer []> inputChunks, HeapTuple[] minHeap, String outfile, final boolean ENABLE_DEBUG){\n\n FileOutputStream out;\n try{\n out = new FileOutputStream(outfile);\n }\n catch (FileNotFoundException e){\n System.err.println(e);\n return;\n }\n PrintWriter sortedFiles = new PrintWriter(out, true);\n\n int tempLength = 0;\n FHbinHeap<Integer> heap = new FHbinHeap<>();\n for (int i = 0; i < inputChunks.size(); i++) {\n Integer[] temp = inputChunks.get(i).clone();\n for(int j = 0; j < temp.length; j++){\n //Integer[] temp = inputChunks.get(i).clone();\n //System.out.print(temp[j] + \",\");\n int hi = temp[j];\n heap.insert(hi);\n }\n tempLength += temp.length;\n }\n System.out.println();\n for(int i = 0; i < tempLength; i++){\n int removal = heap.remove();\n System.out.print(removal + \",\");\n sortedFiles.print(removal + \",\");\n }\n sortedFiles.close();\n\n\n\n\n\n/* FAILED CODE\n\n Due to our sorting of the arrays, the minimum of the entire set must be the minimum of the set of the first element for all chunks\n By adding an offset to the array whose\n\n\n FHbinHeap<HeapTuple> metaHeap = null;\n HeapTuple[] heapElement = null;\n // Probably should just be a FHbinheap\n for (int i = 0; i < inputChunks.size(); i++) {\n for (int j = 0; j < MEM_SIZE; i++) {\n heapElement[i] = new HeapTuple(inputChunks.get(i)[j], i, j);\n metaHeap.insert(heapElement[i]);\n System.out.println(metaHeap.remove());\n //sortedFiles.println(metaHeap.remove());\n }\n }\n\n*/\n\n\n //First MEM_SIZE minima, no order\n /*/*\n int removed = 0;\n int [] arrayShift = new int[MEM_SIZE];\n //int innerIndex = 0;\n\n int tempLength = 0;\n\n int tempMin = 0;\n int tempMinIndex = 0;\n FHbinHeap<Integer> heap = new FHbinHeap<>();\n for (int j = 0; j < 5; j++) {\n //System.out.println(arrayShift[0] + \"ARRAYSHIFT\");\n for (int i = 0; i < inputChunks.size(); i++) {\n //FHbinHeap<Integer> heap = new FHbinHeap<>();\n Integer[] temp = inputChunks.get(i).clone();\n //System.out.println(temp[arrayShift[i]] + \",\");\n if (temp[arrayShift[i]] < tempMin) {\n tempMin = temp[arrayShift[i]];\n tempMinIndex = i;\n }\n\n\n for(int j = arrayShift[i]; j < temp.length; j++){\n //Integer[] temp = inputChunks.get(i).clone();\n System.out.print(temp[j] + \",\");\n //int hi = temp[j];\n //heap.insert(hi);\n }\n\n tempLength += temp.length;\n heap.insert(temp[arrayShift[i]]);\n //System.out.print(temp[arrayShift[i]]+ \",\");\n\n\n //int heapRemove = heap.remove();\n if (i == inputChunks.size() - 1) {\n removed = heap.remove();\n System.out.println();\n System.out.println(removed + \",MINIMUM\");\n arrayShift[tempMinIndex] = (arrayShift[tempMinIndex] + 1);\n }\n\n }\n }\n */\n\n\n\n\n }",
"static void minimumBribes(int[] q) {\r\n int bribes = 0;\r\n boolean valid = true;\r\n int index = 1;\r\n \r\n // We get the length of the input array\r\n int size = q.length; \r\n \r\n // We cycle through the input array\r\n for (int i = 0; i < size; i++) {\r\n int actual = q[i];\r\n \r\n // We check if the current person has surely swapped position more than two times since it appears before they are supposed to\r\n if (actual > index) {\r\n int difference = actual - index;\r\n if (difference > 2) {\r\n valid = false;\r\n break;\r\n }\r\n }\r\n \r\n // We check the number of bribes by counting how many persons with bigger IDs have already swapped place with the current one\r\n // NOTE: We can safely begin to check from position (actual-2) since higher numbers of swaps would have been caught by the previous if condition\r\n for (int j = actual-2; j < index; j++) {\r\n if (j < 0) {\r\n continue;\r\n }\r\n if (actual < q[j]) {\r\n bribes += 1;\r\n }\r\n }\r\n \r\n index += 1;\r\n }\r\n \r\n // Checks if the result is valid, and if so, it prints it\r\n if (valid == false) {\r\n System.out.println(\"Too chaotic\");\r\n }\r\n else {\r\n System.out.println(bribes);\r\n }\r\n}",
"public void wiggleSort(int[] nums) {\n for (int i = 0; i < nums.length - 1; i++) {\n if ((i % 2 == 0 && nums[i] > nums[i + 1]) || (i % 2 == 1 && nums[i] < nums[i + 1])) swap(nums, i, i + 1);\n }\n }",
"public static void main(String[] args) {\n\t\tint[] nums={1,2,3};\n\t\tint[] nums2={1,2,4,6};\n\t\tSystem.out.println(minMoves(nums));\n\t\tSystem.out.println(minMoves(nums2));\n\t}",
"private void regularMin3Demo() {\n int[] copy = Arrays.copyOf(numbers, numbers.length);\n Arrays.sort(copy);\n for(int i = 0; i < 3; i++) {\n System.out.println(copy[i]);\n }\n }",
"public void sortIncreasing()\n {\n int min;\n \n for (int i = 0; i < list.length - 1; i++)\n {\n min = i; \n for(int j = i+1; j < list.length; j++)\n {\n if(list[j] < list[min])\n min = j; \n }\n if(i != min && list[min] < list.length)\n {\n int temp = list[min];\n list[min] = list[i];\n list[i] = temp; \n }\n }\n }",
"private static boolean isSwap(int[] a, int lb) {\n int i = lb + 1;\n if (i < a.length - 1 && a[i] < a[i + 1]) {\n return true;\n }\n return false;\n }",
"public static void selectionSort(int[] a) \n {\n for (int i = 0; i < a.length; i++) \n {\n int minPos = minimumPosition(a, i);\n swap(a, minPos, i);\n }\n }",
"static void BubbleSort(int[] arr){\n for(int i = 0; i< arr.length-1;i++){\n int numberOfSwaps = 0;\n for(int j = 0; j<arr.length-i-1;j++){\n if(arr[j]>arr[j+1]){\n Swap(arr, j, j+1);\n numberOfSwaps++;\n }\n }\n if(numberOfSwaps == 0){\n break;\n }\n }\n }",
"public static void selectionSort(int[] list) {\n for (int i = 0; i < list.length - 1; i++) {\n int currentMin = list[i];\n int currentMinIndex = i;\n \n for (int j = i + 1; j < list.length; j++) {\n if (currentMin < list[j]) {\n currentMin = list[j];\n currentMinIndex = j;\n }\n }\n \n // swap list[i] with list[currentMinIndex] if necessary\n if (currentMinIndex != i) {\n list[currentMinIndex] = list[i];\n list[i] = currentMin;\n }\n }\n }",
"public void wiggleSort(int[] nums) {\n\n // At position 0 we need a[0] < a[1] and in position 1 we need a[1] > a[2]\n for(int i=0; i < nums.length-1; i++) {\n boolean isEven = i%2==0;\n if(isEven) {\n if(nums[i] > nums[i+1]) { // a[0] should less than a[1]\n ArrayUtils.swap(nums,i,i+1);\n }\n } else {\n if(nums[i] < nums[i+1]) { // a[1] should greater than a[2]\n ArrayUtils.swap(nums,i,i+1);\n }\n }\n }\n }",
"void minDecrease(int i,int x)\n {\n arr[i]=x;\n while(i!=0 && arr[MyHeap.parent(i)]>arr[i])\n {\n swap(MyHeap.parent(i),i);\n i=MyHeap.parent(i);\n }\n }",
"public static void selectionSort(int[] array) {\n int iOfTempMin;\n\n for (int i = 0; i < array.length - 1; i++) {\n iOfTempMin = i; // 1 - FIND INDEX OF MIN\n \n for (int index = i + 1; index < array.length; index++) {\n \n if (array[index] < array[iOfTempMin])\n iOfTempMin = index; \n }\n swap(array, i, iOfTempMin); // 2 - SWAP\n }\n }",
"public void selectionSort() {\n int nextMin;\n\n for (int i = 0; i < IntList.length - 1; i++) {\n nextMin = i;\n for (int j = i + 1; j < IntList.length; j++) {\n if (IntList[j] < IntList[nextMin])\n nextMin = j;\n }\n if (nextMin != i)\n swapSelection(IntList, i, nextMin);\n }\n }",
"void push(int x) \n\t{ \n\t\tif(isEmpty() == true) \n\t\t{ \n\t\t\tsuper.push(x); \n\t\t\tmin.push(x); \n\t\t} \n\t\telse\n\t\t{ \n\t\t\tsuper.push(x); \n\t\t\tint y = min.pop(); \n\t\t\tmin.push(y); \n\t\t\tif(x < y) \n\t\t\t\tmin.push(x); \n\t\t\telse\n\t\t\t\tmin.push(y); \n\t\t} \n\t}",
"private void primsMST(List<Vertex> graph) {\n\n\t\tMyPriorityQueue priorityQueue = new MyPriorityQueue(10);\n\t\tfor (Vertex v : graph) {\n\t\t\tv.key = Integer.MAX_VALUE;\n\t\t\tpriorityQueue.add(v);\n\t\t}\n\n\t\tVertex peek = priorityQueue.peek();\n\t\tpeek.key = 0;\n\n\t\twhile (!priorityQueue.isEmpty()) {\n\t\t\t//Vertex minVertex = priorityQueue.poll();\n\t\t\tVertex minVertex = priorityQueue.poll();\n\t\t\t\n\t\t\tif (minVertex.incidentEdges != null && minVertex.incidentEdges.size() > 0) {\n\t\t\t\tfor (Edge edge : minVertex.incidentEdges) {\n\t\t\t\t\tif (/*priorityQueue.contains(edge.end) && */edge.weight < edge.end.key) {\n\t\t\t\t\t\t//priorityQueue.remove(edge.end);\n\t\t\t\t\t\tedge.end.key = edge.weight;\n\t\t\t\t\t\tedge.end.previous = minVertex;\n\t\t\t\t\t\tpriorityQueue.add(edge.end);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\tpublic void testSwap() {\n\t\tHeap heap = new Heap(testArrayList);\n\t\theap.swap(1, 13);\n\t\tArrayList<Integer> expected = new ArrayList<>(\n\t\t\t\tArrays.asList(38, 32, 33, 36, 5, 70, 24, 47, 7, 27, 15, 48, 53, 3, 93));\n\t\tassertEquals(expected, heap.getHeapArray());\n\t}",
"private static void mergeHalves(\n\t\tint[] ints,\n\t\tint[] copyOfInts,\n\t\tint min,\n\t\tint mid,\n\t\tint max\n\t\t) {\n\n\t\tSystem.arraycopy(ints, min, copyOfInts, min, max - min);\n\n\t\tint overallPos = min;\n\t\tint firstHalfPos = min;\n\t\tint secondHalfPos = mid;\n\n\t\twhile (firstHalfPos < mid && secondHalfPos < max) {\n\t\t\tif (copyOfInts[firstHalfPos] < copyOfInts[secondHalfPos]) {\n\t\t\t\tints[overallPos] = copyOfInts[firstHalfPos];\n\t\t\t\tfirstHalfPos++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tints[overallPos] = copyOfInts[secondHalfPos];\n\t\t\t\tsecondHalfPos++;\n\t\t\t}\n\t\t\toverallPos++;\n\t\t}\n\n\t\t// if the second half has been exhausted, move the remainder\n\t\t// of the first half to the end of the sorted array\n\t\twhile (firstHalfPos < mid) {\n\t\t\tints[overallPos] = copyOfInts[firstHalfPos];\n\t\t\tfirstHalfPos++;\n\t\t\toverallPos++;\n\t\t}\n\n\t}",
"public int swaps(int[] A, int[] B, int target) {\n int res = 0;\n for (int i = 0; i < A.length; i++) {\n if (A[i] != target && B[i] != target) {\n res = -1;\n break;\n }\n if (A[i] != target && B[i] == target) {\n ++res;\n }\n }\n return res == -1 ? Integer.MAX_VALUE : res;\n }",
"public static void selectionSort (int[] elts) {\r\n\t\tint minPosition;\r\n\t\tint length = elts.length;\r\n\t\tfor (int i = 0; i < length-1; i++) {\r\n\t\t\tminPosition = findMinPositionSegment (elts, i, length-i);\r\n\t\t\tif (minPosition != i)\r\n\t\t\t\tswap (elts, i, minPosition);\r\n\t\t}\r\n\t}",
"public static void selectionSort (int[] elts) {\r\n\t\tint minPosition;\r\n\t\tint length = elts.length;\r\n\t\tfor (int i = 0; i < length-1; i++) {\r\n\t\t\tminPosition = findMinPositionSegment (elts, i, length-i);\r\n\t\t\tif (minPosition != i)\r\n\t\t\t\tswap (elts, i, minPosition);\r\n\t\t}\r\n\t}",
"public void order_moves() {\n\t\tfor (int i = 0; i < future_moves.size(); i += 1) {\n\t\t\tArrayList<Integer> curr_smallest = future_moves.get(i);\n\t\t\tint smallest = i;\n\t\t\t\n\t\t\tfor (int j = i; j < future_moves.size(); j += 1) {\n\t\t\t\tArrayList<Integer> curr_checking = future_moves.get(j);\n\t\t\t\t\n\t\t\t\tif (curr_checking.get(1) < curr_smallest.get(1)) {\n\t\t\t\t\tcurr_smallest = curr_checking;\n\t\t\t\t\tsmallest = j;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//Swap the current and the smallest\n\t\t\tfuture_moves.set(smallest, future_moves.get(i));\n\t\t\tfuture_moves.set(i, curr_smallest);\n\t\t}\n\t\t\n\t}",
"public static void selectionSort(int input[]) {\n\t\tfor(int i = 0;i<input.length-1;i++) {\n\t\t\tint min = input[i];\n\t\t\tint minindex = i;\n\t\t\tfor(int j = i+1 ;j<input.length;j++) {\n\t\t\t\tif(min > input[j] ) {\n\t\t\t\t\tmin = input[j];\n\t\t\t\t\tminindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(minindex!=i) {\n\t\t\tinput[minindex] = input[i];\n\t\t\t input[i]= min;\n\t\t\t}\n\t\t}\n\t}",
"public void selectionSort(){\n for(int x=0; x < arraySize; x++){\n int minimum = x;\n for(int y = x; y < arraySize; y++){\n // Change to < for descending sort\n if(theArray[minimum] > theArray[y]){\n minimum = y;\n }\n }\n swapValues(x, minimum);\n printHorizontalArray(x, -1);\n }\n }",
"public void wiggleSortInitial(int[] nums) {\n int[] freq = new int[nums.length];\n \n for (int i = 0; i < nums.length; i++) \n freq[i] = nums[i];\n \n Arrays.sort(freq);\n \n int p1 = 0, p2 = nums.length - 1, i = 0;\n \n while (i < nums.length) {\n nums[i++] = freq[p1++];\n if (i < nums.length) nums[i++] = freq[p2--];\n }\n }",
"public final void min() {\n\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tif (secondTopMostValue > topMostValue) {\n\t\t\t\tpush(topMostValue);\n\t\t\t} else {\n\t\t\t\tpush(secondTopMostValue);\n\t\t\t}\n\t\t}\n\t}",
"public static void selectionSort (int array[])\n {\n for (int i = 0; i < (array.length -1); i++)\n {\n for (int j = i + 1; j < (array.length); j++)\n {\n if(array[i] > array[j])\n //the new found smallest element is swapped\n swap(array, j, i);\n }\n }\n }",
"void minHeapify(int i)\n {\n int lt=MyHeap.left(i);\n int rt=MyHeap.right(i);\n int smallest=i;\n if(lt<size && arr[lt]<arr[i])\n smallest=lt;\n if(rt<size && arr[rt]<arr[smallest])\n smallest=rt;\n if(smallest!=i)\n {\n swap(i,smallest);\n minHeapify(smallest);\n }\n }",
"private void supplementMST(){\n\t\tList<Village> noOutRoads = getNoOutRoadVillages();\n\t\tList<Village> noInRoads = getNoInRoadVillages();\n\t\t\n\t\tfor(Village v: noOutRoads){\n\t\t\tVillage closestVillage = findClosestVillageTo(v,noInRoads);\n\t\t\tnoInRoads.remove(closestVillage);\n\t\t\tnew Road(v,closestVillage);\n\t\t}\n\t\t\n\t\tfor(Village v: noInRoads){\n\t\t\tnew Road(findClosestVillageTo(v,villages),v);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n int[] arraySort = {9,77,63,22,92,9,14,54,8,38,18,19,38,68,58,19};\n //Arrays.sort(arraySort);\n //System.out.println(Arrays.toString(arraySort));\n\n\n\n //int[] intArray = {1000,1000,3,7};\n System.out.println(\" output--> \" + new ReduceArraySizeToTheHalfSolution().minSetSize(arraySort));\n }",
"public void oldSort()\n\t{\n\t\tfor (int index = 0; index < arraySize; index++) {\n\t\t\tfor (int secondIndex = index + 1; secondIndex < arraySize; secondIndex++) {\n\t\t\t\tint temp = 0;\n\t\t\t\tif (array[index] > array[secondIndex]) {\n\t\t\t\t\ttemp = array[index];\n\t\t\t\t\tarray[index] = array[secondIndex];\n\t\t\t\t\tarray[secondIndex] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private void bubbleUp(int index)\n {\n if(index == 0) //Base Case\n return;\n if(isMax == false) //Maxheap\n {\n if(arrayList.get(index).compareTo(arrayList.get((index-1)/2)) >= 0)\n return;\n else\n {\n E tempElement = arrayList.get((index-1)/2);\n arrayList.set((index-1)/2, arrayList.get(index));\n arrayList.set(index, tempElement);\n bubbleUp((index-1)/2);\n }\n }\n else //Minheap\n {\n if(arrayList.get(index).compareTo(arrayList.get((index-1)/2)) <= 0)\n return;\n else\n {\n E tempElement = arrayList.get((index-1)/2);\n arrayList.set((index-1)/2, arrayList.get(index));\n arrayList.set(index, tempElement);\n bubbleUp((index-1)/2);\n }\n }\n }",
"private synchronized void freshSort(){\n Process[] newQueue = new Process[pros.proSize()];\n for(int i = 0; i <queue.length; i++){\n if(pros.isInList(queue[i])){\n newQueue[i] = queue[i];\n }\n }\n queue = new Process[pros.proSize()];\n queue = newQueue;\n }",
"public static void main(String[] args) {\n int numOfSwaps = 0;\n //declare an array of integers\n int[] bubbleArray = new int[]\n {26, 45, 56, 12, 78, 74, 39, 22, 5, 90, 87, 32, 28, 11, 93, 62, 79, 53, 22, 51};\n //exit sentinel\n char exit = 'y';\n //user input search number\n int userValue;\n\n //print original array\n System.out.println(\"Original Order: \");\n System.out.println(Arrays.toString(bubbleArray));\n\n //Bubble Sorting to re-arrange Array elements\n int n = bubbleArray.length;\n //iterate over the array comparing adjacent elements\n for (int i = 0; i < n - 1; i++) {\n for (int j = 0; j < n - i - 1; j++) {\n //if elements not in order, swap them\n if (bubbleArray[j] > bubbleArray[j + 1]) {\n int temp = bubbleArray[j];\n bubbleArray[j] = bubbleArray[j + 1];\n bubbleArray[j + 1] = temp;\n numOfSwaps++;\n }//end IF\n }//end FOR loop j\n }//end FOR loop i\n\n //print the sorted array\n System.out.println(\"Bubble Sorted: \");\n System.out.println(Arrays.toString(bubbleArray));\n System.out.println(\"Number of location swaps: \" + numOfSwaps);\n System.out.println();\n\n //loop to get user input and search for Array value\n while(exit == 'y') {\n\n //user input to search array\n System.out.println(\"Select a number in the Array to search for: \");\n userValue = INPUT.nextInt();\n\n //do sequential search\n int count = 0;\n int pos = - 1;\n for(int i = 0; i < bubbleArray.length; i++){\n count++;\n if(bubbleArray[i] == userValue){\n pos=i;\n break;\n }\n }\n //print comparisons\n System.out.println(\"Sequential Search comparisons: \" + count);\n //print position\n System.out.println(\"The position of the number is \" + (pos + 1));\n\n //do binary search\n pos = - 1;\n int l = 0;\n int r = bubbleArray.length - 1;\n count = 0;\n while(l <= r){\n int mid = (l + r) / 2;\n count++;\n if(bubbleArray[mid] == userValue){\n pos = mid;\n break;\n }else if(userValue < bubbleArray[mid]){\n r = mid - 1;\n }else{\n l = mid + 1;\n }//end ELSE\n }//end WHILE loop\n\n //print comparisons\n System.out.println(\"Binary Search comparisons: \" + count);\n //print position\n System.out.println(\"The position of the number is \" + (pos + 1));\n\n //ask user to input another record\n System.out.println(\"Do you want to search again? (Y=Yes)\");\n //check if user input value equals exit statement\n exit = INPUT.next().charAt(0);\n }//end WHILE loop\n\n }",
"public static void main(String[] args) {\n\t\tint a[]= {3,1,-2,7,4,0};\n\t\tint n = a.length;\n\t\tfor(int i=0;i<n-1;i++) {\n\t\t\tint midInd= i;\n\t\t\tfor(int j=i;j<n;j++) {\n\t\t\t\tif(a[j]<a[midInd]) {\n\t\t\t\t\tmidInd=j;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tint temp = a[i]; ///Swap commands \n\t\t\ta[i]=a[midInd];\n\t\t\ta[midInd]=temp;\n\t\t\t\n\t\t\t\n\t\t}\n\t\tfor(int item:a) {\n\t\t\tSystem.out.print(item+\" \");\n\t\t}\n\n\t\n\n}",
"@Override\n public void synchronizeMinMaxNFreshs() {\n\t\n }",
"public static void main(String[] args) {\n\t\tint a[]={2,1,9,5,11,4,6,7,5};\r\n\t\tint min1=a[1],min2=a[0];\r\n\t\tfor(int i=0;i<a.length; i++)\r\n\t\t{\r\n\t\t\tif(a[i]<min1)\r\n\t\t\t{\r\n\t\t\t\tmin2=min1;\r\n\t\t\t\tmin1=a[i];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif(a[i]<min2)\r\n\t\t\t\t{\r\n\t\t\t\t\tmin2=a[i];\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\tSystem.out.println(min2);\r\n\t\t\tSystem.out.println(min1);\r\n\t\t}",
"public void minimize()\n {\n }",
"public static void selectionSort(int[] data){\n\n\tfor(int i = 0; i < data.length; i++){\n\t int min = data[i];\n\t int indexToReplace = i;\n\n\t for(int k = i; k < data.length; k++){\n\t\tif(data[k] < min){\n\t\t indexToReplace = k;\n\t\t min = data[k];\n\t\t}\n\t }\n\n\t int old = data[i];\n\t data[i] = min;\n\t data[indexToReplace] = old;\n\t}\n }",
"private PerfectMergeSort() {}",
"private void minHeapify(int v, int heapSize){\n\t\tint smallest;\n\t\tint left = leftChild(v);\n\t\tint right = rightChild(v);\n\t\tif (left<heapSize && _a[left].getWeight()<_a[v].getWeight()){\n\t\t\tsmallest = left;\n\t\t}\n\t\telse{\n\t\t\tsmallest = v;\n\t\t}\n\t\tif (right<heapSize && _a[right].getWeight()<_a[smallest].getWeight()){\n\t\t\tsmallest = right;\n\t\t}\n\t\tif (smallest!=v){\n\t\t\texchange(v, smallest);\n\t\t\tminHeapify(smallest, heapSize);\n\t\t}\t\t\n\t}",
"protected void siftUp() {\r\n\t\tint child = theHeap.size() - 1, parent;\r\n\r\n\t\twhile (child > 0) {\r\n\t\t\tparent = (child - 1) >> 1;\t// >> 1 is slightly faster than / 2\r\n\t\t\t\t\t\t\t\t\t\t// => parent = (child - 1) / 2\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tchild = parent;\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tint a[]= {2,5,7,8,4,6,3};\n\t\tint start=0;\n\t\tint end=a.length-1;\n\t\tint minindex=0;\n\t\tint maxindex=0;\n\t\twhile(end>start)\n\t\t{\n\t\t minindex=start;\n\t\t maxindex=end;\n\t\t for (int i =start; i <=end; i++) \n\t\t {\n\t\t\tif(a[i]<a[minindex])\n\t\t\t{\n\t\t\t\tminindex=i;\n\t\t\t}\n\t\t\tif(a[i]>a[maxindex])\n\t\t\t{\n\t\t\t\tmaxindex=i;\n\t\t\t}\n\t\t }\n\t\t \n\t\tint temp=a[end];\n\t\t a[end]=a[maxindex];\n\t\t a[maxindex]=temp;\n\t\t temp=a[start];\n\t\t a[start]=a[minindex];\n\t\t a[minindex]=temp;\n\t\t start++;end--;\n\t\t}\n\t\tSystem.out.println(Arrays.toString(a));\n\n\t}",
"public static void mwst() {\n\t\tfor (int i = 0; i < mwst1.length; i++) {\n\t\t\tdouble min = mwst1[i].weight;\n\t\t\tint minCheck = i;\n\n\t\t\tfor (int j = i + 1; j < mwst1.length; j++) {\n\t\t\t\tif ((double) mwst1[j].weight < min) {\n\t\t\t\t\tmin = mwst1[j].weight;\n\t\t\t\t\tminCheck = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (minCheck != i) {\n\n\t\t\t\tEdge e = mwst1[minCheck];\n\t\t\t\tmwst1[minCheck] = mwst1[i];\n\t\t\t\tmwst1[i] = e;\n\t\t\t}\n\t\t}\n\t}",
"static void doubleSelectionSort (int [] array) {\n\t for (int i = 0, j = array.length - 1; (i < array.length && j >= 0); i++, j--)\n {\n int minIndex = i;\n int maxIndex = j;\n\n for (int a = i + 1; a < array.length; a++)\n if (array[a] < array[minIndex])\n minIndex = a;\n\n for (int b = j - 1; b >= 0; b--)\n if (array[b] > array[maxIndex])\n maxIndex = b;\n\n if (isSorted(array)) return;\n\n swap(array, minIndex, i);\n System.out.println(Arrays.toString(array));\n swap(array, maxIndex, j);\n System.out.println(Arrays.toString(array));\n }\n\t}"
] | [
"0.71855634",
"0.7161675",
"0.69182116",
"0.6831887",
"0.67304295",
"0.67161286",
"0.660553",
"0.6601994",
"0.6448409",
"0.63201445",
"0.6317089",
"0.62351775",
"0.60995567",
"0.60367346",
"0.5999381",
"0.59088826",
"0.59081036",
"0.5797037",
"0.5734142",
"0.57206225",
"0.56917906",
"0.5683601",
"0.56779176",
"0.5651913",
"0.56476945",
"0.5642737",
"0.5640363",
"0.5553691",
"0.55232507",
"0.55102086",
"0.550945",
"0.5456781",
"0.5441829",
"0.54103595",
"0.5399523",
"0.5385964",
"0.536728",
"0.53643024",
"0.53476286",
"0.53430486",
"0.5340755",
"0.5337235",
"0.53332955",
"0.5333059",
"0.5325285",
"0.53193784",
"0.53193784",
"0.53193057",
"0.53182757",
"0.5313833",
"0.5313758",
"0.53123754",
"0.5312026",
"0.52958584",
"0.52863413",
"0.52836",
"0.5274774",
"0.52600515",
"0.52516735",
"0.5251567",
"0.52515423",
"0.5223476",
"0.5219861",
"0.5217884",
"0.5211179",
"0.52058446",
"0.5191803",
"0.518771",
"0.518742",
"0.51748425",
"0.5171",
"0.5170628",
"0.51694",
"0.5168214",
"0.5165949",
"0.5165949",
"0.5161607",
"0.51605",
"0.5152752",
"0.515198",
"0.5144094",
"0.51422393",
"0.5134818",
"0.51274616",
"0.5123687",
"0.512189",
"0.5118813",
"0.5108778",
"0.50907534",
"0.5083649",
"0.5082852",
"0.5081866",
"0.5078659",
"0.5074731",
"0.5074543",
"0.50737196",
"0.5070338",
"0.5070165",
"0.5069605",
"0.5067314"
] | 0.65423054 | 8 |
Checks if the class corresponding to this JSP is up to date | public boolean isUpToDate() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"rawtypes\") \n public boolean isClassReloadable(Class clazz) {\n return true;\n }",
"@Override\r\n\tpublic boolean updateClassified(Classified classified) {\n\t\treturn false;\r\n\t}",
"public boolean isSetJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(JAVACLASS$24) != null;\r\n }\r\n }",
"public boolean isModified()\n {\n // a class is only modifiable after it is loaded\n if (!m_fLoaded)\n {\n return m_fModified;\n }\n\n if (m_fModified || m_abClazz == null || m_pool.isModified())\n {\n return true;\n }\n\n // check all other VM sub-structures\n StringTable[] atbl = CONTAINED_TABLE;\n for (int i = 0; i < atbl.length; ++i)\n {\n Enumeration enmr = atbl[i].elements();\n while (enmr.hasMoreElements())\n {\n if (((VMStructure) enmr.nextElement()).isModified())\n {\n return true;\n }\n }\n }\n\n return false;\n }",
"public String getRequiredVersion() {\n/* 152 */ return this.jspversion;\n/* */ }",
"@Override\n public boolean isOutdated() {\n return false;\n }",
"@Override\n\tpublic void checkPage() {\n\t}",
"@WebMethod(operationName = \"classIsValid\")\r\n public Boolean classIsValid(@WebParam(name = \"Class_ID\") int Class_ID) {\r\n //class Class_ID exists or not\r\n try {\r\n org.netbeans.xml.schema.classxmlschema.Class cla = daoService.getClassInfo(Class_ID);\r\n\r\n if (cla != null) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n\r\n } catch (Exception e) {\r\n return false;\r\n }\r\n }",
"@Override\n\tpublic boolean classIsMissing() {\n\t\treturn false;\n\t}",
"boolean isDoNotRegenerateJspFiles();",
"public static boolean hasNewVersion(Class<?> clazz) {\n return versions.get(clazz.getName().hashCode()) != null;\n }",
"protected boolean isFullyInitialized() {\n return html == null;\n }",
"@Override\n\tpublic void setClassMissing() {\n\n\t}",
"public boolean isClass() {\n return operation == null;\n }",
"default boolean isClass() {\n return false;\n }",
"public boolean validate() {\n\t\tif (StringUtils.isEmpty(className) && !isFinal) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"protected boolean requiresRefresh()\r\n/* 27: */ {\r\n/* 28:71 */ return this.scriptFactory.requiresScriptedObjectRefresh(this.scriptSource);\r\n/* 29: */ }",
"default boolean isNeedToBeUpdated()\n {\n return getUpdateState().isUpdated();\n }",
"boolean hasClassname();",
"private void verifyClassName() {\n\t\t\n\t\tif (classNameTF.getText().isEmpty()) {\n\t\t\tJOptionPane.showMessageDialog(this,\"Blank Field: Class Name\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\tClass newClass = new Class(classNameTF.getText());\n\t\t\tteacher.addClass(newClass);\n\t\t\ttAddClassWindow.dispose();\n\t\t\ttPortalWindow.dispose();\n\t\t\tteacherPortalScreen();\n\t\t}\n\t}",
"protected void checkCompiled() {\r\n\t\tif (!isCompiled()) {\r\n\t\t\tlogger.debug(\"JdbcUpdate not compiled before execution - invoking compile\");\r\n\t\t\tcompile();\r\n\t\t}\r\n\t}",
"public static boolean instanceHasNewVersion(Object instance) {\n\n Class<?> classVersion = versions.get(instance.getClass().getName()\n .hashCode());\n\n if (DEBUG)\n System.out.println(\"instanceHasNewVersion: Class version = \"\n + classVersion);\n\n // The class has no new versions\n if (classVersion == null)\n return false;\n\n // Use reflection to obtain version object (that is added at load-time).\n Object newVersion = null;\n try {\n newVersion = instance.getClass().getField(\"_newVersion\")\n .get(instance);\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n\n // The class has a new version, but this instance does not, or the new\n // version of this instance is not of the\n // same class that the new version of its class\n if ((classVersion != null && newVersion == null)\n || (classVersion != newVersion.getClass()))\n return true;\n\n return false;\n }",
"public final boolean mo13811a(Class<?> cls) {\n return false;\n }",
"@Override\n\tpublic boolean isFresh() {\n\t\treturn false;\n\t\t//return fresh;\n\t}",
"boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }",
"@Override\n\tpublic boolean checkViewSupport(int viewPage) {\n\t\treturn false;\n\t}",
"protected boolean includeClassAttribute() {\r\n return true;\r\n }",
"public boolean hasJspURI()\n {\n return false;\n }",
"private void validateClassOrLesson() {\n\t\tclassId = languageSettings.getClassId();\n\t\tlessonId = languageSettings.getLessonId();\n\t\tif (classId != -1) {\n\t\t\tloadClassName(classId);\n\t\t\tif (className == null) {\n\t\t\t\tresetLanguageSettings();\n\t\t\t\tlessonId = -1l;\n\t\t\t\tlesson = null;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tif ((!onLargeScreen) && lessonId != -1) {\n\t\t\tloadLesson(lessonId);\n\t\t\tif (lesson == null) {\n\t\t\t\t// lessons must have been deleted so reset\n\t\t\t\tresetLanguageSettings();\n\t\t\t\tlessonId = -1l;\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic boolean isPageLoaded() {\n\t\treturn false;\r\n\t}",
"@Override\n public boolean isPageLoaded() {\n\n setLogString(\"Verify the savings Page is loaded\", true, CustomLogLevel.LOW);\n return isDisplayed(getDriver(), By.cssSelector(SAVINGS_CONTAINER), TINY_TIMEOUT)\n && isDisplayed(getDriver(), By.className(SAVINGS_DOLLARS), TINY_TIMEOUT)\n && isDisplayed(getDriver(), By.cssSelector(MENU_SAVINGS), TINY_TIMEOUT);\n\n }",
"@Override\n\tpublic boolean isClassObject() {\n\t\treturn heldObj.isClassObject();\n\t}",
"protected boolean canPageChange(JaspiraPage oldPage, JaspiraPage newPage)\r\n\t{\r\n\t\tif (!propertyBrowser.saveObject())\r\n\t\t{\r\n\t\t\t// There was an error saving the current object, abort\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@java.lang.Override\n public boolean hasVersion() {\n return instance.hasVersion();\n }",
"public boolean isSetClassCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(CLASSCODE$30) != null;\n }\n }",
"public boolean isSetClassName() {\n return this.className != null;\n }",
"protected void checkUpdate() {\n \t\t// only update from remote server every so often.\n \t\tif ( ( System.currentTimeMillis() - lastUpdated ) > refreshInterval ) return;\n \t\t\n \t\tClusterTask task = getSessionUpdateTask();\n \t\tObject o = CacheFactory.doSynchronousClusterTask( task, this.nodeId );\n \t\tthis.copy( (Session) o );\n \t\t\n \t\tlastUpdated = System.currentTimeMillis();\n \t}",
"boolean hasSessionTemplate();",
"private void checkBeanClass(Object bean) throws JellyTagException\n {\n if (getBaseClass() != null\n && !getBaseClass().isAssignableFrom(bean.getClass()))\n {\n throw new JellyTagException(\"Bean is not of expected base class: \"\n + getBaseClass().getName());\n }\n }",
"private boolean checkCurrentSiteCache() \n throws CvqException {\n \n synchronized (this) {\n \n String currentSiteName = SecurityContext.getCurrentSite().getName().toLowerCase();\n Map requestTypeTimestampMap = localReferentialTimestampMap.get(currentSiteName);\n if (requestTypeTimestampMap == null) {\n logger.info(\"checkCurrentSite() timestamp map not initialized, returning\");\n return false;\n }\n Iterator requestTypeTimestampIt = requestTypeTimestampMap.keySet().iterator();\n boolean didARefresh = false;\n while (requestTypeTimestampIt.hasNext()) {\n String requestTypeLabel = (String) requestTypeTimestampIt.next();\n Long requestTypeTimestamp = (Long) requestTypeTimestampMap.get(requestTypeLabel);\n String referentialFileName = getReferentialFilename(requestTypeLabel);\n File referentialFile =\n localAuthorityRegistry.getCurrentLocalAuthorityResource(\n ILocalAuthorityRegistry.LOCAL_REFERENTIAL_RESOURCE_TYPE, \n referentialFileName, false);\n if (referentialFile.lastModified() > requestTypeTimestamp.longValue()) {\n logger.info(\"checkCurrentSiteCache() refreshing cache for \" + referentialFileName);\n Map requestTypeFileMap = (Map) localReferentialFileMap.get(currentSiteName);\n requestTypeFileMap.remove(requestTypeLabel);\n addLocalReferentialForLocalAuthority(currentSiteName, referentialFileName, requestTypeLabel);\n didARefresh = true;\n }\n }\n \n return didARefresh;\n }\n }",
"public boolean hasUpdatedAt() {\n return updatedAt_ != null;\n }",
"private boolean xmlGenerationRequired() {\r\n boolean xmlOutOfSync = false;\r\n BudgetSubAwardBean budgetSubAwardBean;\r\n for(int index = 0; index < data.size(); index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n if(budgetSubAwardBean.getXmlAcType()!=null || budgetSubAwardBean.getXmlUpdateTimestamp() == null) {\r\n xmlOutOfSync = true;\r\n break;\r\n }\r\n }\r\n \r\n return xmlOutOfSync;\r\n }",
"public boolean isStale()\n {\n return (_iMdChecksum != TypeSystem.getRefreshChecksum() && !isProxy());\n }",
"public Boolean hasClass() {\n return this.hasClass;\n }",
"public Class<WebVM> mo19861d() {\n return WebVM.class;\n }",
"@Override\n\tpublic void uppdate() {\n\t\t\n\t}",
"@Override\n\tpublic void uppdate() {\n\t\t\n\t}",
"@java.lang.Override\n public boolean hasUpdateTime() {\n return updateTime_ != null;\n }",
"public boolean isInCache(Class clazz) {\n if (mappingCache == null) {\n return false;\n }\n return mappingCache.indexOf(clazz) != -1;\n }",
"public void thePageIsLoaded() {\r\n this.page.isLoaded();\r\n }",
"public boolean existsClass(String name)\r\n\t{\r\n\t\treturn obtainOntClass(name) != null;\r\n\t}",
"@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}",
"@Override\r\n\t\tpublic boolean isRefreshNeeded() {\n\t\t\treturn false;\r\n\t\t}",
"public boolean isSetUpPage() {\n return EncodingUtils.testBit(__isset_bitfield, __UPPAGE_ISSET_ID);\n }",
"public boolean isUpdateDateInitialized() {\n return updateDate_is_initialized; \n }",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"public boolean isSystemClass()\n {\n return systemClass;\n }",
"@Override\n\tpublic boolean updateStatus() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean getCheckOlderVersion()\n\t{\n\t\treturn false;\n\t}",
"public boolean isPageOpened() {\n\t\ttry {\n\t\t\tTechnicalComponents.waitTill(txtUpgradeAccount, \"visible\");\n\t\t\tif (driver.getCurrentUrl().contains(urlsuffix)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (FrameworkException e) {\n\t\t\tthrow new FrameworkException(\n\t\t\t\t\t\"Upgarde page Not Loaded within specified time.---\" + e.getClass() + \"---\" + e.getMessage());\n\t\t}\n\n\t}",
"public boolean checkStatus() {\r\n return isTiling;\r\n }",
"private boolean isServletType (Class c)\n { \n boolean isServlet = false;\n if (javax.servlet.Servlet.class.isAssignableFrom(c) ||\n javax.servlet.Filter.class.isAssignableFrom(c) || \n javax.servlet.ServletContextListener.class.isAssignableFrom(c) ||\n javax.servlet.ServletContextAttributeListener.class.isAssignableFrom(c) ||\n javax.servlet.ServletRequestListener.class.isAssignableFrom(c) ||\n javax.servlet.ServletRequestAttributeListener.class.isAssignableFrom(c) ||\n javax.servlet.http.HttpSessionListener.class.isAssignableFrom(c) ||\n javax.servlet.http.HttpSessionAttributeListener.class.isAssignableFrom(c) || \n (_pojoInstances.get(c) != null))\n \n isServlet=true;\n \n return isServlet; \n }",
"private static boolean hasLatestJetty() {\n if (!_wasChecked) {\n try {\n LoadClientAppsJob.testClient(TEST_CLASS, null);\n _hasLatestJetty = true;\n } catch (ClassNotFoundException cnfe) {}\n _wasChecked = true;\n }\n return _hasLatestJetty;\n }",
"boolean isOssModified();",
"protected static boolean checkTypeReferences() {\n Map<Class<?>, LinkedList<Class<?>>> missingTypes = new HashMap<>();\n for (Map.Entry<String, ClassProperties> entry : classToClassProperties.entrySet()) {\n String className = entry.getKey();\n Class<?> c = lookupClass(className);\n Short n = entry.getValue().typeNum;\n if (marshalledTypeNum(n)) {\n Class<?> superclass = getValidSuperclass(c);\n if (superclass != null)\n checkClassPresent(c, superclass, missingTypes);\n LinkedList<Field> fields = getValidClassFields(c);\n for (Field f : fields) {\n Class<?> fieldType = getFieldType(f);\n checkClassPresent(c, fieldType, missingTypes);\n }\n }\n }\n if (missingTypes.size() > 0) {\n for (Map.Entry<Class<?>, LinkedList<Class<?>>> entry : missingTypes.entrySet()) {\n Class<?> c = entry.getKey();\n LinkedList<Class<?>> refs = entry.getValue();\n String s = \"\";\n for (Class<?> ref : refs) {\n if (s != \"\")\n s += \", \";\n s += \"'\" + getSimpleClassName(ref) + \"'\";\n }\n Log.error(\"Missing type '\" + getSimpleClassName(c) + \"' is referred to by type(s) \" + s);\n }\n Log.error(\"Aborting code generation due to missing types\");\n return false;\n }\n else\n return true;\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"public static Class<?> isVersionOf(Class<?> clazz) {\n return versionOf.get(clazz.getName().hashCode());\n }",
"public void update( )\n {\n JasperPortletHome.getInstance( ).update( this );\n }",
"private void checkForUpdate() {\n\t\tdouble updateversion = Double.parseDouble(MySoup.getUpdateVersion(SITE));\n\t\tdouble currentversion = Double.parseDouble(VERSION);\n\t\tif (updateversion > currentversion) {\n\t\t\tdisplayAlert(\"\", \"Update available, would you like to install it?\", this);\n\t\t}\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}"
] | [
"0.56753594",
"0.5392332",
"0.5374949",
"0.5291752",
"0.5284094",
"0.526758",
"0.524023",
"0.5176924",
"0.512935",
"0.5090071",
"0.50708586",
"0.50670826",
"0.4989806",
"0.4971344",
"0.49419898",
"0.49209556",
"0.4917359",
"0.48803884",
"0.48657164",
"0.48626602",
"0.485508",
"0.4850303",
"0.48413074",
"0.48044914",
"0.48023894",
"0.4797887",
"0.47937188",
"0.47718537",
"0.475509",
"0.47545835",
"0.47475207",
"0.4744781",
"0.4735638",
"0.4722847",
"0.47224817",
"0.4720003",
"0.4717673",
"0.47153974",
"0.4691675",
"0.4690924",
"0.46781173",
"0.46705267",
"0.46634236",
"0.46571568",
"0.46515667",
"0.46368018",
"0.46368018",
"0.46278298",
"0.46247265",
"0.46210393",
"0.46150547",
"0.46147677",
"0.46147677",
"0.46085206",
"0.4606521",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.4604896",
"0.46004152",
"0.4592553",
"0.4569478",
"0.45667535",
"0.4566587",
"0.455212",
"0.45491633",
"0.4548307",
"0.45428297",
"0.45412788",
"0.45412788",
"0.45412788",
"0.45392802",
"0.4530448",
"0.4529264",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838",
"0.45267838"
] | 0.54294056 | 1 |
Identifier for type of compiler. This method allows subclasses to specify the type this compiler belongs to. Compilers that belong to the same class will be compiled together by one external process. It is necessary for all compilers of the same type to have same process descriptor and error expression. This implementation returns the process descriptor, so all compilers with the same descriptor will be compiled at once. | public Object compilerGroupKey () {
return throwable; // just one compiler per group
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCompilerClassName();",
"public String getCompiler();",
"public CompilerSpecID getOldCompilerSpecID() {\n\t\tCollection<CompilerSpecDescription> compatibleCompilerSpecDescriptions =\n\t\t\tlangDescription.getCompatibleCompilerSpecDescriptions();\n\t\tif (!compatibleCompilerSpecDescriptions.isEmpty()) {\n\t\t\treturn compatibleCompilerSpecDescriptions.iterator().next().getCompilerSpecID();\n\t\t}\n\t\treturn null;\n\t}",
"public ProcessType getType() {\n\t\treturn this.type;\n\t}",
"public String getStrProcessType() {\n return strProcessType;\n }",
"public Compiler getCompiler() {\n\t\treturn this.compiler;\n\t}",
"public JvmType getClassx();",
"public String getCtype() {\n return ctype;\n }",
"public String getCompilerTargetVM();",
"public ClassType getCompiledClassType(Compilation compilation) {\n Compilation compilation2 = compilation;\n return this.type;\n }",
"String primaryImplementationType();",
"public final slm.proxies.ProcessType getProcessType()\r\n\t{\r\n\t\treturn getProcessType(getContext());\r\n\t}",
"public static int getPID() {\n return Integer.parseInt(ManagementFactory.getRuntimeMXBean().getName().split(\"@\")[0]);\n }",
"public String getRuntimeClass();",
"protected String getProcessId() {\n return getClass().getName();\n }",
"@Schema(description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getCpInstanceId() {\n return cpInstanceId;\n }",
"public abstract java.lang.String getIdpc();",
"private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}",
"public ObjectType getJVMType();",
"public Class getRunTimeType() {\n return lho.getRuntimeType();\n }",
"public Integer getTypeCode() {\n return typeCode;\n }",
"public String getTooltypeid() {\r\n return tooltypeid;\r\n }",
"protected String getCompileFileName()\r\n/* 101: */ {\r\n/* 102:140 */ if (this.tipoReporte.ordinal() == 1)\r\n/* 103: */ {\r\n/* 104:141 */ if (this.mesSeleccionado == null) {\r\n/* 105:142 */ return \"reportePresupuestoPorCuentaContable\";\r\n/* 106: */ }\r\n/* 107:144 */ return \"reportePresupuestoPorCuentaContableMes\";\r\n/* 108: */ }\r\n/* 109:146 */ return \"reportePresupuestoPorDimension\";\r\n/* 110: */ }",
"public Executable.ExecKind getExecKind() {\n\t\t\treturn ((TSExecutable)this.getTypeSpec()).getExecKind();\n\t\t}",
"public final String getType() {\n return this.getClass().getName();\n }",
"public String getClassType() {\n return classType;\n }",
"public String getType() {\r\n return this.getClass().getName();\r\n }",
"public static String getPid() {\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName(); \n\t\t// get pid \n\t\treturn name.split(\"@\")[0];\n\t}",
"public static native int getTypeId(long msgArg);",
"public String getCompilerSourceVM();",
"public String getTypeCode() {\n return typeCode;\n }",
"public String getTypeCode() {\n return typeCode;\n }",
"public String getTypeCode() {\n return typeCode;\n }",
"public String getTypeCode() {\n return typeCode;\n }",
"public Long getTypeid() {\n return typeid;\n }",
"public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}",
"public String getProcessCode() {\n \tif (isProcessDocumentNotNull()) {\n \t\treturn getProcessDocument().getDocCode();\n \t}\n\t\treturn processCode;\n\t}",
"public abstract long getProcessID();",
"public org.pentaho.pms.cwm.pentaho.meta.core.CwmClassifier getType();",
"public String getCpuName() {\r\n if(isMips32()) {\r\n return getArchNameForCompiler();\r\n } else {\r\n return pic_.getArchitecture().toLowerCase();\r\n }\r\n }",
"public abstract String getOsID();",
"Integer getCCPID();",
"public int getTypeId() {\n return instance.getTypeId();\n }",
"public Integer getPlatformType() {\n return platformType;\n }",
"public String getClassCode() {\n\t\treturn classCode;\n\t}",
"public String getcType() {\n return cType;\n }",
"public String getType() {\n\t\tString type = C;\n\t\t// Modify if constrained\n\t\tParameterConstraint constraint = this.constraint;\n\t\tif (constraint != null) type = \"Constrained\" + type;\n\t\treturn type;\n\t}",
"@Override\r\n\tpublic PIDSourceType getPIDSourceType() {\n\t\treturn null;\r\n\t}",
"public Executable.ExecKind getExecKind() {\n\t\t\treturn (Executable.ExecKind)this.getData(Index_ExecKind);\n\t\t}",
"static String getMyPid() {\n String pid = \"0\";\n try {\n final String nameStr = ManagementFactory.getRuntimeMXBean().getName();\n\n // XXX (bjorn): Really stupid parsing assuming that nameStr will be of the form\n // \"pid@hostname\", which is probably not guaranteed.\n pid = nameStr.split(\"@\")[0];\n } catch (RuntimeException e) {\n // Fall through.\n }\n return pid;\n }",
"String getProgramId();",
"int getProblemType();",
"public String getPrmTypeCode() {\n return (String)getAttributeInternal(PRMTYPECODE);\n }",
"public int getTypeId() {\n return typeId_;\n }",
"public int getType() {\n\tif (num_comp == 0)\n\t return(UNCLASSIFIED);\n\treturn(type[num_comp-1]);\n }",
"public String getTooltype() {\r\n return tooltype;\r\n }",
"public String getId() {\n return typeDeclaration.getId();\n }",
"com.google.protobuf.ByteString\n getExecIdBytes();",
"MachineType getType();",
"private String toolType() {\n\t\tfor (int toolId : mTools) {\n\t\t\tif (toolId == 267) return \"swords\";\n\t\t\tif (toolId == 292) return \"hoes\";\n\t\t\tif (toolId == 258) return \"axes\";\n\t\t\tif (toolId == 270) return \"pickaxes\";\n\t\t\tif (toolId == 257) return \"most picks\";\n\t\t\tif (toolId == 278) return \"high picks\";\n\t\t\tif (toolId == 256) return \"shovels\";\n\t\t}\n\t\treturn \"any tool\";\n\t}",
"public String getTypeId() {\r\n return typeId;\r\n }",
"@Override\r\n public AbstractType generateId(AbstractType abstractType) {\n\tClassInfo classInfo = (ClassInfo)abstractType;\r\n\tclassInfo.setClassId(classInfo.getPackageName()+\"_\"+classInfo.getClassName()+\"_\"+classNum++);\r\n\treturn classInfo;\r\n }",
"public String getClassid() {\n return classid;\n }",
"public String getProgram() {\n return program;\n }",
"public int getIdCompI() {\n\t\treturn ID_COMP_I;\n\t}",
"public int getExecutionType() {\n\t\treturn 0;\n\t}",
"public void computeTypeIds() {\n classes.add(null);\n jsonObjects.add(new JsonObject(program));\n \n // Do java.lang.String first to reserve typeId 1 for the mashup case.\n computeSourceClass(program.getTypeJavaLangString());\n assert (classes.size() == 2);\n \n /*\n * Compute the list of classes than can successfully satisfy cast\n * requests, along with the set of types they can be successfully cast to.\n * Do it in super type order.\n */\n for (Iterator it = program.getDeclaredTypes().iterator(); it.hasNext();) {\n JReferenceType type = (JReferenceType) it.next();\n if (type instanceof JClassType) {\n computeSourceClass((JClassType) type);\n }\n }\n \n for (Iterator it = program.getAllArrayTypes().iterator(); it.hasNext();) {\n JArrayType type = (JArrayType) it.next();\n computeSourceClass(type);\n }\n \n // pass our info to JProgram\n program.initTypeInfo(classes, jsonObjects);\n program.recordQueryIds(queryIds);\n }",
"String process_name () throws BaseException;",
"public java.lang.Long getEXCLSVTYTYPID() {\n return EXCLSVTY_TYP_ID;\n }",
"@Override\n public final Integer constTypeCode() {\n return this.manufacture.constTypeCode();\n }",
"public String getExecId() {\n Object ref = execId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();",
"@DISPID(1001) //= 0x3e9. The runtime will prefer the VTID if present\r\n @VTID(8)\r\n int creator();",
"@Override\n public String getDeviceTypeId() {\n \n return this.strTypId;\n }",
"java.lang.String getMachineType();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"int getClassID();",
"public String getArchNameForCompiler() {\r\n return getArch().name().toLowerCase().replace('_', '.');\r\n }",
"org.tensorflow.proto.framework.FullTypeId getTypeId();",
"@DISPID(38)\r\n\t// = 0x26. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint id();"
] | [
"0.6373411",
"0.59156626",
"0.56803274",
"0.5653521",
"0.5433037",
"0.53773195",
"0.5376425",
"0.5339241",
"0.53234243",
"0.5306578",
"0.5289725",
"0.5210171",
"0.5194935",
"0.5151959",
"0.51508766",
"0.51431954",
"0.5139403",
"0.513625",
"0.51172394",
"0.51038635",
"0.50971836",
"0.5066619",
"0.50210017",
"0.50163686",
"0.5009058",
"0.5002997",
"0.49955952",
"0.4945111",
"0.4901748",
"0.4900178",
"0.48785734",
"0.48785734",
"0.48785734",
"0.48785734",
"0.4865229",
"0.48635846",
"0.4831498",
"0.48258677",
"0.48055872",
"0.4802385",
"0.47989362",
"0.47922894",
"0.47873133",
"0.47735247",
"0.47726956",
"0.4770816",
"0.4769501",
"0.4756836",
"0.47466028",
"0.47414672",
"0.47253844",
"0.4718336",
"0.47027215",
"0.46943265",
"0.46930665",
"0.46838298",
"0.46784726",
"0.4675119",
"0.46656385",
"0.46599132",
"0.46564856",
"0.46504202",
"0.46345112",
"0.463163",
"0.4630662",
"0.46274617",
"0.46169803",
"0.4615353",
"0.46071753",
"0.4604293",
"0.46034184",
"0.4600451",
"0.4600451",
"0.45996532",
"0.45929107",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45913717",
"0.45904756",
"0.45902804",
"0.45881242",
"0.45871148",
"0.4585416"
] | 0.5103992 | 19 |
Creates new form ScenarioDataTable | public DataTable(JTable t) {
initComponents();
setupComponents(t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DataTable createDataTable();",
"void create(DataTableDef def) throws IOException;",
"Rows createRows();",
"DT createDT();",
"tbls createtbls();",
"public abstract void createTables() throws DataServiceException;",
"void addTabularData(TabularData data);",
"public void populateDataToTable() throws SQLException {\n model = (DefaultTableModel) tblOutcome.getModel();\n List<Outcome> ouc = conn.loadOutcome();\n int i = 1;\n for (Outcome oc : ouc) {\n Object[] row = new Object[5];\n row[0] = i++;\n row[1] = oc.getCode_outcome();\n row[2] = oc.getTgl_outcome();\n row[3] = oc.getJml_outcome();\n row[4] = oc.getKet_outcome();\n model.addRow(row);\n }\n }",
"Row createRow();",
"public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }",
"public void initWithScenarioData(SimDataScenario sdata) { \n if (sdata == null)\n return;\n \n mySimData = sdata;\n myScenario = mySimData.fwyscenario;\n \n listVT = Misc.makeListVT(myScenario.get_commodities());\n fillTabSummary();\n\n \n }",
"private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"public void populateDiseaseTable() {\r\n DefaultTableModel dtm = (DefaultTableModel) tblDisease.getModel();\r\n dtm.setRowCount(0);\r\n for (Conditions disease : system.getConditionsList().getConditionList()) {\r\n Object[] row = new Object[2];\r\n row[0] = disease;\r\n row[1] = disease.getDiseaseId();\r\n dtm.addRow(row);\r\n }\r\n }",
"@Test\n public void test_create_scenario() {\n try {\n TestData X = new TestData(\"project2.opt\");\n String new_name = \"new_scenario\";\n X.project.create_scenario(new_name);\n assertNotNull(X.project.get_scenario_with_name(new_name));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }",
"@Before\n public void createAndFillTable() {\n try {\n DBhandler dBhandler = new DBhandler(h2DbConnection);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void handle(ActionEvent arg0) {\n\t\tCreateTables creator = new CreateTables(tlp);\n\t\tcreator.createLogTable();\n//\t\tcreator.createRacesTable();\n//\t\tcreator.createTravelHistoryTable();\n\t\tSystem.out.println(\"log exist: \"+creator.checkExistingTable(\"log\"));\n\t\tSystem.out.println(\"races exist: \"+creator.checkExistingTable(\"races\"));\n\t\tSystem.out.println(\"travelhistory exist: \"+creator.checkExistingTable(\"travelhistory\"));\n\t}",
"@Override\n\tpublic void create(IWizardEntity entity, WizardRunner runner) {\n\t\t\n\t}",
"TABLE createTABLE();",
"private void AddNewScenario(HttpServletRequest request, HttpServletResponse response) {\n XMLTree.getInstance().AddNewScenario();\n }",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"public void MakeTableData()\r\n {\n classes = ResetClasses();\r\n \r\n // 'WHATS ON' TAB SELECTED\r\n if (selectedTab == 0)\r\n {\r\n // iterate through days\r\n for (int i = 0; i < daysPerWeek; i++)\r\n {\r\n // iterate through times and rooms\r\n for (int j = 0; j < totalSlots; j++)\r\n {\r\n LessonClass a = weekArray[(weekNo -1)].dayArray[i].dayMap.get(roomNtime[j]);\r\n if (a != null)\r\n {\r\n if (byAllFlag == true)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n else if (bySubjectFlag == true)\r\n {\r\n if (a.subject == subComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n else if (byTutorFlag == true)\r\n {\r\n if (a.tutorName == tutComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n // 'DIARY' TAB SELECTED\r\n else if (selectedTab == 1)\r\n {\r\n if (userLoggedIn != null)\r\n { \r\n // iterate through days\r\n for (int i = 0; i < daysPerWeek; i++)\r\n {\r\n // iterate through times and rooms\r\n for (int j = 0; j < totalSlots; j++)\r\n {\r\n // pertinent tracks if ID is in register\r\n boolean pertinent = false;\r\n LessonClass a = weekArray[(weekNo -1)].dayArray[i].dayMap.get(roomNtime[j]);\r\n if (a != null)\r\n {\r\n for (String s : a.register)\r\n {\r\n if (userLoggedIn.equals(s))\r\n {\r\n pertinent = true;\r\n }\r\n } \r\n \r\n if (byAllFlag == true && pertinent == true)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n else if (bySubjectFlag == true && pertinent == true)\r\n {\r\n if (a.subject == subComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n else if (byTutorFlag == true && pertinent == true)\r\n {\r\n if (a.tutorName == tutComb)\r\n {\r\n classes[j][i] = a.toString();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }",
"public Table buildNewAssetTable(ManufacturingOrder dto) {\n\n\t\tTable table = new Table();\n\t\ttable.addAttribute(\"id\", \"normalTableNostripe\");\n\t\ttable.addAttribute(\"align\", \"center\");\n\t\ttable.addAttribute(\"cellSpacing\", \"0\");\n\t\ttable.addAttribute(\"cellPadding\", \"0\");\n\t\ttable.addAttribute(\"border\", \"1\");\n\t\ttable.addAttribute(\"class\", \"classContentTable\");\n\t\ttable.addAttribute(\"style\",\n\t\t\t\t\"white-space: nowrap; word-spacing: normal; width: 500px\");\n\t\ttable.addTableHeaderAttribute(\"class\", \"fixedHeader\");\n\t\ttable.addTableBodyAttribute(\"class\", \"scrollContent\");\n\n\t\tTableRow row = new TableRow();\n\n\t\tInputField assetNumberText = new InputField(\"assetNumber\", \"\",\n\t\t\t\tInputType.TEXT);\n\t\tassetNumberText.addAttribute(\"maxlength\", \"6\");\n\t\tassetNumberText.addAttribute(\"size\", \"10\");\n\t\tTableData asset = null;\n\t\tif (dto.getEditFlag()) {\n\t\t\tasset = new TableData(new SimpleText(dto.getAssetNumber()));\n\t\t\tasset.addAttribute(\"style\", \"width: 10% ; vertical-align: middle\");\n\n\t\t} else {\n\t\t\tasset = new TableData(assetNumberText);\n\t\t\tasset.addAttribute(\"style\", \"width: 30%\");\n\t\t}\n\t\tString desc = \"\";\n\n\t\tif (dto.getEditFlag()) {\n\t\t\tdesc = dto.getDescription();\n\t\t}\n\n\t\tInputField description = new InputField(\"descrip\", desc, InputType.TEXT);\n\t\tdescription.addAttribute(\"maxlength\", \"100\");\n\t\tdescription.addAttribute(\"size\", \"30\");\n\t\tTableData descriptionText = new TableData(description);\n\t\tdescriptionText.addAttribute(\"style\", \"width: 40%\");\n\n\t\tTableData status = null;\n\t\tif (dto.getEditFlag()) {\n\n\t\t\tif (dto.getStatus() == null || !(\"A\".equals(dto.getStatus()))) {\n\n\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chk\\\" value=\\\"A\\\"/>\"));\n\t\t\t} else {\n\t\t\t\tstatus = new TableData(\n\t\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chk\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\t}\n\n\t\t\tTableData facility = new TableData(new SimpleText(dto\n\t\t\t\t\t.getSelectedFacility()));\n\t\t\tfacility.addAttribute(\"style\",\n\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\n\t\t\tTableData workCenter = new TableData(new SimpleText(dto\n\t\t\t\t\t.getWorkCenterCode()));\n\t\t\tworkCenter.addAttribute(\"style\",\n\t\t\t\t\t\"width: 10% ; vertical-align: middle\");\n\t\t\trow.addTableData(facility);\n\t\t\trow.addTableData(workCenter);\n\t\t\tstatus.addAttribute(\"style\", \"width: 10%\");\n\t\t\tdescriptionText.addAttribute(\"style\", \"width: 30%\");\n\n\t\t} else {\n\t\t\tstatus = new TableData(\n\t\t\t\t\tnew SimpleText(\n\t\t\t\t\t\t\t\"<input type=\\\"checkbox\\\" name=\\\"statusFlag_Chk\\\" value=\\\"A\\\" checked=\\\"checked\\\"/>\"));\n\t\t\tstatus.addAttribute(\"style\", \"width: 20%\");\n\t\t}\n\t\trow.addTableData(asset);\n\t\trow.addTableData(descriptionText);\n\t\trow.addTableData(status);\n\n\t\trow.addAttribute(\"class\", \"normalRow\");\n\n\t\ttable.addTableRow(row);\n\n\t\treturn table;\n\t}",
"private void createStressTestStatusTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column nodeId = new Column(\"NODE_ID\");\n nodeId.setMappedType(\"VARCHAR\");\n nodeId.setPrimaryKey(true);\n nodeId.setRequired(true);\n nodeId.setSize(\"50\");\n Column status = new Column(\"STATUS\");\n status.setMappedType(\"VARCHAR\");\n status.setSize(\"10\");\n status.setRequired(true);\n status.setDefaultValue(\"NEW\");\n Column startTime = new Column(\"START_TIME\");\n startTime.setMappedType(\"TIMESTAMP\");\n Column endTime = new Column(\"END_TIME\");\n endTime.setMappedType(\"TIMESTAMP\");\n\n Table table = new Table(STRESS_TEST_STATUS, runId, nodeId, status, startTime, endTime);\n\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"private Widget getNewDataButton(final ExecutionTrace previousEx, final Scenario scenario) {\n\t\tImage newItem = new ImageButton(\"images/new_item.gif\", \"Add a new data input to this scenario.\", new ClickListener() {\n\t\t\tpublic void onClick(Widget w) {\n\n\t\t\t\tfinal FormStylePopup pop = new FormStylePopup(\"images/rule_asset.gif\", \"New input\");\n\n\t\t final ListBox factTypes = new ListBox();\n\t\t for (int i = 0; i < sce.factTypes.length; i++) {\n\t\t factTypes.addItem(sce.factTypes[i]);\n\t\t }\n\t\t final TextBox factName = new TextBox();\n\t\t factName.setVisibleLength(5);\n\n\t\t Button add = new Button(\"Add\");\n\t\t add.addClickListener(new ClickListener() {\n\t\t\t\t\tpublic void onClick(Widget w) {\n\t\t\t\t\t\tString fn = (\"\" + factName.getText()).trim();\n\t\t\t\t\t\tif (fn.equals(\"\")\n\t\t\t\t\t\t\t\t|| factName.getText().indexOf(' ') > -1) {\n\t\t\t\t\t\t\tWindow.alert(\"You must enter a valid fact name.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (scenario.isFactNameExisting(fn)) {\n\t\t\t\t\t\t\t\tWindow.alert(\"The fact name [\" + fn + \"] is already in use. Please choose another name.\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tscenario.insertBetween(previousEx, new FactData(factTypes.getItemText(factTypes.getSelectedIndex()), factName.getText(), new ArrayList(), false ));\n\t\t\t\t\t\t\t\trenderEditor();\n\t\t\t\t\t\t\t\tpop.hide();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t HorizontalPanel insertFact = new HorizontalPanel();\n\t\t insertFact.add(factTypes); insertFact.add(new SmallLabel(\"Fact name:\")); insertFact.add(factName); insertFact.add(add);\n\t\t pop.addAttribute(\"Insert a new fact:\", insertFact);\n\n\t\t List varsInScope = scenario.getFactNamesInScope(previousEx, false);\n\t\t //now we do modifies & retracts\n\t\t if (varsInScope.size() > 0) {\n\t\t \tfinal ListBox modifyFacts = new ListBox();\n\t\t\t for (int j = 0; j < varsInScope.size(); j++) { modifyFacts.addItem((String) varsInScope.get(j));}\n\t\t\t add = new Button(\"Add\");\n\t\t\t add.addClickListener(new ClickListener() {\n\t\t\t\t\t\tpublic void onClick(Widget w) {\n\t\t\t\t\t\t\tString fn = modifyFacts.getItemText(modifyFacts.getSelectedIndex());\n\t\t\t\t\t\t\tString type = (String) scenario.getVariableTypes().get(fn);\n\t\t\t\t\t\t\tscenario.insertBetween(previousEx, new FactData(type, fn, new ArrayList(), true));\n\t\t\t\t\t\t\trenderEditor();\n\t\t\t\t\t\t\tpop.hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t HorizontalPanel modifyFact = new HorizontalPanel();\n\t\t\t modifyFact.add(modifyFacts); modifyFact.add(add);\n\t\t\t pop.addAttribute(\"Modify an existing fact:\", modifyFact);\n\n\t\t\t //now we do retracts\n\t\t \tfinal ListBox retractFacts = new ListBox();\n\t\t\t for (int j = 0; j < varsInScope.size(); j++) { retractFacts.addItem((String) varsInScope.get(j));}\n\t\t\t add = new Button(\"Add\");\n\t\t\t add.addClickListener(new ClickListener() {\n\t\t\t\t\t\tpublic void onClick(Widget w) {\n\t\t\t\t\t\t\tString fn = retractFacts.getItemText(retractFacts.getSelectedIndex());\n\t\t\t\t\t\t\tscenario.insertBetween(previousEx, new RetractFact(fn));\n\t\t\t\t\t\t\trenderEditor();\n\t\t\t\t\t\t\tpop.hide();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t HorizontalPanel retractFact = new HorizontalPanel();\n\t\t\t retractFact.add(retractFacts); retractFact.add(add);\n\t\t\t pop.addAttribute(\"Retract an existing fact:\", retractFact);\n\n\n\t\t }\n\n\n\t\t\t\tpop.show();\n\n\t\t\t}\n\t\t});\n\n\t\treturn newItem;\n\t}",
"TD createTD();",
"public void doCreateTable();",
"private void addData(){\n\n for (Recipe obj : frecipes)\n {\n /** Create a TableRow dynamically **/\n tr = new TableRow(this);\n tr.setLayoutParams(new TableRow.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n\n /** Creating a TextView to add to the row **/\n name = new TextView(this);\n name.setText(obj.getName());\n name.setWidth(320);\n name.setTypeface(Typeface.DEFAULT, Typeface.NORMAL);\n name.setPadding(5, 5, 5, 5);\n tr.addView(name); // Adding textView to tablerow.\n\n // Add the TableRow to the TableLayout\n tl.addView(tr, new TableLayout.LayoutParams(\n TableRow.LayoutParams.MATCH_PARENT,\n TableRow.LayoutParams.WRAP_CONTENT));\n }\n }",
"FromTable createFromTable();",
"protected abstract void initialiseTable();",
"PivotTable createPivotTable();",
"private static Scenario createTestScenario(final Config config) {\n\t\tMutableScenario scenario = (MutableScenario) ScenarioUtils.loadScenario(config);\n\t\tNetwork network = createLessSymmetricTestNetwork();\n\t\tscenario.setNetwork(network);\n\n\t\t// Creating test opportunities (facilities); one on each link with same ID as link and coord on center of link\n\t\tfinal ActivityFacilities opportunities = scenario.getActivityFacilities();\n\t\tActivityFacility facility1 = opportunities.getFactory().createActivityFacility(Id.create(\"1\", ActivityFacility.class), new Coord(200, 0));\n\t\topportunities.addActivityFacility(facility1);\n\t\tActivityFacility facility2 = opportunities.getFactory().createActivityFacility(Id.create(\"2\", ActivityFacility.class), new Coord(200, 200));\n\t\topportunities.addActivityFacility(facility2);\n\t\tscenario.getConfig().facilities().setFacilitiesSource(FacilitiesConfigGroup.FacilitiesSource.setInScenario);\n\t\treturn scenario;\n\t}",
"public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );",
"public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}",
"private static DataTable createDataTable() throws Exception {\n DataTable t = new DataTable(\"Items\");\r\n\r\n // Add two columns\r\n DataColumn c;\r\n\r\n // First column\r\n c = t.getColumns().Add(\"id\", TClrType.getType(\"System.Int32\"));\r\n c.setAutoIncrement(true);\r\n\r\n // Second column\r\n t.getColumns().Add(\"item\", TClrType.getType(\"System.String\"));\r\n\r\n // Set primary key\r\n t.setPrimaryKey(new DataColumnArray(new DataColumn[]{t.getColumns().getItem(0)}));\r\n\r\n // Add twelve rows\r\n for (int i = 0; i < 10; i++) {\r\n DataRow row = t.NewRow();\r\n row.setItem(0, i);\r\n row.setItem(1, String.format(\"%s\", i));\r\n t.getRows().Add(row);\r\n }\r\n DataRow row = t.NewRow();\r\n row.setItem(0, 11);\r\n row.setItem(1, \"abc\");\r\n t.getRows().Add(row);\r\n\r\n row = t.NewRow();\r\n row.setItem(0, 15);\r\n row.setItem(1, \"ABC\");\r\n t.getRows().Add(row);\r\n\r\n return t;\r\n }",
"private StepDefinition createStepDefinition(Step step) {\n StepDefinition stepDefinition = new StepDefinition();\n\n setStatementAttributes(stepDefinition, step);\n stepDefinition.setKeyword(step.getKeyword().trim());\n stepDefinition.setArguments(convertArguments(step.getOutlineArgs()));\n\n if (step.getRows() != null) {\n validateRows(step.getRows(), step.getLine() - step.getRows().size());\n\n DataTable dataTable = new DataTable();\n List<DataRow> rows = createRowList(new ArrayList<>(step.getRows()));\n dataTable.setHeaders(rows.get(0));\n dataTable.setDataRowList(rows.subList(1, rows.size()));\n\n stepDefinition.setStepDataTable(dataTable);\n }\n\n return stepDefinition;\n }",
"@Test\n public void shouldCreateEpiDataTravel() {\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataTravel(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataTravelDao().queryForAll().size(), is(1));\n }",
"public void create() {\n\n\t\tthis.data = new Object[lb.getBoardLen()+3][3];\n\t\tdata[0][0] = \"RANK\";\n\t\tdata[0][1] = \"PLAYER\";\n\t\tdata[0][2] = \"POINTS\";\n\t\t\n\t\tfor (int i = 1; i <= lb.getBoardLen(); i++) {\n\t\t\tdata[i][0] = \"#\" + Integer.toString(i);\n\t\t\tdata[i][1] = lb.getUserPointsList().get(i-1).username;\n\t\t\tdata[i][2] = Integer.toString(lb.getUserPointsList().get(i-1).points);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tif (Sfunctions.sUserPull(user.getUsername(), user.getPassword()).getWeek() == -1) {\n\t\t\tdata[lb.getBoardLen() + 1][0] = \"\";\n\t\t\tdata[lb.getBoardLen() + 1][1] = \"THE SEASON HAS ENDED.\";\n\t\t\tdata[lb.getBoardLen() + 1][2] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][0] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][1] = \"THANKS FOR PLAYING!\";\n\t\t\tdata[lb.getBoardLen() + 2][2] = \"\";\n\t\t}\n\t\telse {\n\t\t\tdata[lb.getBoardLen() + 1][0] = \"\";\n\t\t\tdata[lb.getBoardLen() + 1][1] = \"\";\n\t\t\tdata[lb.getBoardLen() + 1][2] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][0] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][1] = \"\";\n\t\t\tdata[lb.getBoardLen() + 2][2] = \"\";\n\t\t}\n\t\n\tJTable table = new JTable(data, headers);\n\ttable.setBackground(new Color(104, 0, 0));\n\ttable.setForeground(Color.WHITE);\n\ttable.setFont(textFont);\n\ttable.setShowGrid(false);\n\ttable.setEnabled(false);\n\n\t//Depending on where the ME is\n\tme_row = getRowByValue(table, user.getUsername());\n\ttable.setRowSelectionInterval(me_row, me_row);\n\t\n\t\n\n\t\n\tTableColumn column = null;\n\tfor (int i = 0; i < 3; i++) {\n\t column = table.getColumnModel().getColumn(i);\n\t if (i == 0) {\n\t \t\tcolumn.setPreferredWidth(60);\n\t }\n\t if (i == 1) {\n\t column.setPreferredWidth(210); //third column is bigger\n\t } else {\n\t \t\tcolumn.setPreferredWidth(80);\n\t }\n\t}\n\n\t\n\tthis.add(table);\n\tthis.setBackground(new Color(104, 0, 0));\n\t}",
"private void insertProjectTable() {\n name.setCellValueFactory(new PropertyValueFactory<>(\"nameId\"));\n dateStart.setCellValueFactory(new PropertyValueFactory<>(\"dateStart\"));\n dateFinish.setCellValueFactory(new PropertyValueFactory<>(\"dateFinish\"));\n place.setCellValueFactory(new PropertyValueFactory<>(\"place\"));\n car.setCellValueFactory(new PropertyValueFactory<>(\"cars\"));\n instructors.setCellValueFactory(new PropertyValueFactory<>(\"instructors\"));\n description.setCellValueFactory(new PropertyValueFactory<>(\"description\"));\n author.setCellValueFactory(new PropertyValueFactory<>(\"author\"));\n }",
"private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}",
"public void formDatabaseTable() {\n }",
"@Test\n public void shouldCreateEpiDataGathering() {\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createEpiDataGathering(caze);\n\n // Assure that the burial has been successfully created\n assertThat(DatabaseHelper.getEpiDataGatheringDao().queryForAll().size(), is(1));\n }",
"@Test\n public void testTableFactoryCreate() {\n TableController tableController = tableFactory.getTableController();\n tableController.addTable(2);\n assertEquals(1, tableController.getTableMap().get(2).size());\n }",
"public void createSurvey(int tid);",
"public void prepareTable(){\n\n TableColumn<Student, String> firstNameCol = new TableColumn<>(\"FirstName\");\n firstNameCol.setMinWidth(100);\n firstNameCol.setCellValueFactory(new PropertyValueFactory<>(\"firstname\"));\n\n TableColumn<Student, String> lastNameCol = new TableColumn<>(\"LastName\");\n lastNameCol.setMinWidth(100);\n lastNameCol.setCellValueFactory(new PropertyValueFactory<>(\"lastname\"));\n\n TableColumn<Student, String> formCol = new TableColumn<>(\"Form\");\n formCol.setMinWidth(100);\n formCol.setCellValueFactory(new PropertyValueFactory<>(\"form\"));\n\n TableColumn<Student, String> streamCol = new TableColumn<>(\"Stream\");\n streamCol.setMinWidth(100);\n streamCol.setCellValueFactory(new PropertyValueFactory<>(\"stream\"));\n\n TableColumn<Student, String> dateOfBirthCol = new TableColumn<>(\"Favorite Game\");\n dateOfBirthCol.setMinWidth(100);\n dateOfBirthCol.setCellValueFactory(new PropertyValueFactory<>(\"dateOfBirth\"));\n\n TableColumn<Student, String> genderCol = new TableColumn<>(\"Gender\");\n genderCol.setMinWidth(100);\n genderCol.setCellValueFactory(new PropertyValueFactory<>(\"gender\"));\n\n TableColumn<Student, Integer> ageCol = new TableColumn<>(\"age\");\n ageCol.setMinWidth(100);\n ageCol.setCellValueFactory(new PropertyValueFactory<>(\"age\"));\n\n TableColumn<Student, Integer> admissionCol = new TableColumn<>(\"Admission\");\n admissionCol.setMinWidth(100);\n admissionCol.setCellValueFactory(new PropertyValueFactory<>(\"admission\"));\n\n\n table.getColumns().addAll(admissionCol,firstNameCol,lastNameCol,formCol,streamCol,dateOfBirthCol,genderCol,ageCol);\n table.setItems(dao.selectAll());\n\n }",
"private MyTable generateTable()\n\t{\n\t\t//this creates the column headers for the table\n\t\tString[] titles = new String[] {\"Name\"};\n\t\t//fields will store all of the entries in the database for the GUI\n\t\tArrayList<String[]> fields = new ArrayList<String[]>();\n\t\tfor (food foodStuff: items) //for each element in items do the following\n\t\t{\n\t\t\t//creates a single row of the table\n\t\t\tString[] currentRow = new String[1]; //creates an array for this row\n\t\t\tcurrentRow[1] = foodStuff.getName(); //sets this row's name\n\t\t\tfields.add(currentRow); //adds this row to the fields ArrayList\n\t\t}\n\t\t//builds a table with titles and a downgraded fields array\n\t\tMyTable builtTable = new MyTable(fields.toArray(new String[0][1]), titles);\n\t\treturn builtTable; // return\n\t}",
"private void createDataTable() {\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoEditors.TABLE + \" (ID INT IDENTITY PRIMARY KEY, NAME VARCHAR(150) NOT NULL UNIQUE)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.TABLE + \" (ID INT IDENTITY PRIMARY KEY, TITLE VARCHAR(150) NOT NULL UNIQUE, YEAR INT, ISBN10 VARCHAR(20), ISBN13 VARCHAR(13), NOTE INT, PAGES_NUMBER INT, RESUME VARCHAR(2000), THE_EDITOR_FK INT, THE_KIND_FK INT, THE_LANGUAGE_FK INT, THE_LENDING_FK INT, THE_SAGA_FK INT, THE_TYPE_FK INT)\");\n jdbcTemplate.update(\"CREATE TABLE \" + IDaoBooks.BOOKS_AUTHOR_TABLE + \" (THE_BOOK_FK INT NOT NULL, THE_AUTHOR_FK INT NOT NULL)\");\n\n jdbcTemplate.update(\"CREATE INDEX BOOK_EDITOR_IDX ON \" + IDaoEditors.TABLE + \"(ID)\");\n jdbcTemplate.update(\"CREATE INDEX BOOKS_IDX ON \" + IDaoBooks.TABLE + \"(ID)\");\n }",
"public void createTeam(final Map<String, String> dataTable) {\n team.processInformation(dataTable);\n WebDriverHelper.waitUntil(inputTeamName);\n WebDriverHelper.setElement(inputTeamName, team.getName());\n WebDriverHelper.clickElement(dropDownTeamType);\n selectDropDownOptionByName(team.getType());\n WebDriverHelper.setElement(inputTeamDescription, team.getDescription());\n WebDriverHelper.clickElement(btnContinue);\n WebDriverHelper.waitUntil(btnThisLater);\n WebDriverHelper.clickElement(btnThisLater);\n }",
"public TableEditorWizard(Table table) {\t\n\t\tcreateDialog(table);\n\t}",
"@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}",
"RowValues createRowValues();",
"@Test\n public void testTableFactoryCreateNoOtherTables() {\n TableController tableController = tableFactory.getTableController();\n tableController.addTable(2);\n assertNull(tableController.getTableMap().get(1));\n assertNotNull(tableController.getTableMap().get(2));\n assertNull(tableController.getTableMap().get(3));\n }",
"DataModel createDataModel();",
"Table8 create(Table8 table8);",
"@Test\n public void shouldCreateCase() {\n assertThat(DatabaseHelper.getCaseDao().queryForAll().size(), is(0));\n\n TestEntityCreator.createCase();\n\n // Assure that the case has been successfully created\n assertThat(DatabaseHelper.getCaseDao().queryForAll().size(), is(1));\n }",
"private void createUIComponents() {\n table = new ShareTraderTable();\n }",
"public TableCreation(Table table) {\n this.table = table;\n }",
"DataList createDataList();",
"public static synchronized void createNewSection(Context context,\n\t\t\tString tableName) throws SQLException, NullPointerException {\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getWritableDatabase();\n\n\t\tString query = \"CREATE TABLE IF NOT EXISTS \" + tableName + \" (\"\n\t\t\t\t+ COLUMN_NAME_PRIMARY_KEY + \" INTEGER PRIMARY KEY, \"\n\t\t\t\t+ COLUMN_NAME_QUESTION + \" TEXT, \" + COLUMN_NAME_OPTION1\n\t\t\t\t+ \" TEXT, \" + COLUMN_NAME_OPTION2 + \" TEXT, \"\n\t\t\t\t+ COLUMN_NAME_OPTION3 + \" TEXT, \" + COLUMN_NAME_OPTION4\n\t\t\t\t+ \" TEXT, \" + COLUMN_NAME_ANSWER + \" TEXT, \"\n\t\t\t\t+ COLUMN_NAME_UPDATED_AT + \" TEXT, \" + COLUMN_NAME_IS_FETCHED\n\t\t\t\t+ \" BOOL, \" + COLUMN_NAME_DIFFICULTY_LEVEL + \" TEXT)\";\n\t\tdb.execSQL(query);\n\t}",
"@Override\r\n public void postBegin() {\r\n Iterable<EntityRef> scenario = entityManager.getEntitiesWith(ScenarioComponent.class); // Checks for existing Scenario\r\n\r\n if (!scenario.iterator().hasNext()) { //No scenario exists yet\r\n scenarioEntity = entityManager.create(assetManager.getAsset(\"scenario:scenarioEntity\", Prefab.class).get());\r\n }\r\n else {\r\n scenarioEntity = scenario.iterator().next();\r\n }\r\n }",
"Table createTable();",
"private void addRow() throws CoeusException{\r\n // PDF is not mandatory\r\n// String fileName = displayPDFFileDialog();\r\n// if(fileName == null) {\r\n// //Cancelled\r\n// return ;\r\n// }\r\n \r\n BudgetSubAwardBean budgetSubAwardBean = new BudgetSubAwardBean();\r\n budgetSubAwardBean.setProposalNumber(budgetBean.getProposalNumber());\r\n budgetSubAwardBean.setVersionNumber(budgetBean.getVersionNumber());\r\n budgetSubAwardBean.setAcType(TypeConstants.INSERT_RECORD);\r\n// budgetSubAwardBean.setPdfAcType(TypeConstants.INSERT_RECORD);\r\n budgetSubAwardBean.setSubAwardStatusCode(1);\r\n // PDF is not mandatory\r\n// budgetSubAwardBean.setPdfFileName(fileName);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n //COEUSQA-4061 \r\n CoeusVector cvBudgetPeriod = new CoeusVector(); \r\n \r\n cvBudgetPeriod = getBudgetPeriodData(budgetSubAwardBean.getProposalNumber(),budgetSubAwardBean.getVersionNumber()); \r\n \r\n //COEUSQA-4061\r\n int rowIndex = 0;\r\n if(data == null || data.size() == 0) {\r\n budgetSubAwardBean.setSubAwardNumber(1);\r\n // Added for COEUSQA-2115 : Subaward budgeting for Proposal Development - Start\r\n // Sub Award Details button will be enabled only when the periods are generated or budget has one period\r\n if(isPeriodsGenerated() || cvBudgetPeriod.size() == 1){\r\n subAwardBudget.btnSubAwardDetails.setEnabled(true);\r\n }\r\n // Added for COEUSQA-2115 : Subaward budgeting for Proposal Development - End\r\n }else{\r\n rowIndex = data.size();\r\n BudgetSubAwardBean lastBean = (BudgetSubAwardBean)data.get(rowIndex - 1);\r\n budgetSubAwardBean.setSubAwardNumber(lastBean.getSubAwardNumber() + 1);\r\n }\r\n if(!subAwardBudget.isEnabled()){\r\n subAwardBudget.btnSubAwardDetails.setEnabled(true);\r\n }\r\n data.add(budgetSubAwardBean);\r\n subAwardBudgetTableModel.fireTableRowsInserted(rowIndex, rowIndex);\r\n subAwardBudget.tblSubAwardBudget.setRowSelectionInterval(rowIndex, rowIndex);\r\n \r\n }",
"private void fillData() {\n table.setRowList(data);\n }",
"static LearningTable createFilledLearningTable() {\n\t\tLearningTable table = new LearningTable(null, null, null);\n\t\t\n\t\ttable.getAttributes().addAll(createAttributes());\n\t\ttable.getExamples().addAll(createFilledExamples());\n\t\t\n\t\treturn table;\n\t}",
"private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }",
"int insert(WizardValuationHistoryEntity record);",
"public void createNewTable(){\n Connection conn = null;\n Statement stmt = null;\n try{\n //STEP 2: Register JDBC driver\n System.out.println(\"Registered JDBC driver...\");\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n //STEP 3: Open a connection\n System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL);//acceses the database specified by the url through entering in the username and password\n System.out.println(\"Creating statement...\");\n stmt = conn.createStatement(); //access the database server and manipulate data in database\n String sql = \"CREATE TABLE EXPERIENCE_\"+gameNumber+\n \" (Id INT PRIMARY KEY AUTO_INCREMENT,\"+\n \"player VARCHAR(255), \" +\n \" bigsquare INTEGER, \" + \n \" smallsquare INTEGER)\";\n System.out.println(\"SUCCCESSS!\"+gameNumber+ \" yayyyY!\");\n stmt.executeUpdate(sql);\n System.out.println(\"sweeeeeeeeeet....\");\n stmt.close();\n conn.close(); \n }catch(SQLException se){\n //Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e){\n //Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n //finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2){\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se){\n se.printStackTrace();\n }//end finally try\n }//end try\n \n \n }",
"public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"private void create(Hashtable fieldValues,DataHRecordData myData) throws LRException\n\t{\n\t\t// First, to permit searching for a field name\n\t\t// the passed table must be converted to change the\n\t\t// keys from LVValues to Strings.\n\t\tHashtable ht=new Hashtable();\n\t\tEnumeration en=fieldValues.keys();\n\t\twhile (en.hasMoreElements())\n\t\t{\n\t\t\tLVValue v=(LVValue)en.nextElement();\n\t\t\tht.put(v.getStringValue(),fieldValues.get(v));\n\t\t}\n\t\tfieldValues=ht;\n\t\tgetBackground();\n\t\tDataHSpecification spec=myData.spec;\n\t\tif (spec==null) throw new LRException(DataRMessages.hasNoSpec(getName()));\n\t\tmyData.record=createRecord(spec,fieldValues);\n\t}",
"protected abstract void addTables();",
"private void createStressTestRowIncomingTable(int payloadColumns) {\n Column[] defaultColumns = getDefaultStressTestRowColumns();\n Table table = new Table(STRESS_TEST_ROW_INCOMING, defaultColumns);\n List<Column> payloads = getPayloadColumns(payloadColumns);\n\n table.addColumns(payloads);\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"private void createTable(){\n Object[][] data = new Object[0][8];\n int i = 0;\n for (Grupo grupo : etapa.getGrupos()) {\n Object[][] dataAux = new Object[data.length+1][8];\n System.arraycopy(data, 0, dataAux, 0, data.length);\n dataAux[i++] = new Object[]{grupo.getNum(),grupo.getAtletas().size(),\"Registar Valores\",\"Selecionar Vencedores\", \"Selecionar Atletas\"};\n data = dataAux.clone();\n }\n\n //COLUMN HEADERS\n String columnHeaders[]={\"Numero do Grupo\",\"Número de Atletas\",\"\",\"\",\"\"};\n\n tableEventos.setModel(new DefaultTableModel(\n data,columnHeaders\n ));\n //SET CUSTOM RENDERER TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(3).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(4).setCellRenderer(new ButtonRenderer());\n\n //SET CUSTOM EDITOR TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(3).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(4).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n\n }",
"private void createUIComponents() {\n String[] columns = {\"ID\", \"Name\", \"Longitude\", \"Latitude\"};\n List<City> cities = DataManager.getDataManager().getAllCities();\n\n // Create table\n DefaultTableModel tableModel = new DefaultTableModel(columns, 0);\n dataTable = new JTable(tableModel);\n\n // Fill table\n tableModel.addRow(new Object[] {\"ID\", \"Name\", \"Long\", \"Lat\"});\n for (int i = 0; i < cities.size(); i++) {\n City curCity = cities.get(i);\n tableModel.addRow(new Object[] {\n i,\n curCity.getName(),\n curCity.getLongitude(),\n curCity.getLatitude()\n });\n }\n dataTable.setVisible(false);\n }",
"@Override\n public Object[] createRow() {\n ObjectDescriptor.TypeObject newTypeObjectInstance = ObjectDescriptor.newInstance();\n List<PropertyDescriptor> descriptors = typeObjectDescriptor.getObjectProperties();\n InitValuesFiller.fill(newTypeObjectInstance, descriptors);\n\n return new Object[]{ StringUtils.EMPTY, newTypeObjectInstance };\n }",
"public void initTable();",
"public void testCreateTable() {\n LOG.info(\"Entering testCreateTable.\");\n\n // Specify the table descriptor.\n HTableDescriptor htd = new HTableDescriptor(tableName);\n\n // Set the column family name to info.\n HColumnDescriptor hcd = new HColumnDescriptor(\"info\");\n\n // Set data encoding methods,HBase provides DIFF,FAST_DIFF,PREFIX\n // and PREFIX_TREE\n hcd.setDataBlockEncoding(DataBlockEncoding.FAST_DIFF);\n\n // Set compression methods, HBase provides two default compression\n // methods:GZ and SNAPPY\n // GZ has the highest compression rate,but low compression and\n // decompression effeciency,fit for cold data\n // SNAPPY has low compression rate, but high compression and\n // decompression effeciency,fit for hot data.\n // it is advised to use SANPPY\n hcd.setCompressionType(Compression.Algorithm.SNAPPY);\n\n htd.addFamily(hcd);\n\n Admin admin = null;\n try {\n // Instantiate an Admin object.\n admin = conn.getAdmin();\n if (!admin.tableExists(tableName)) {\n LOG.info(\"Creating table...\");\n admin.createTable(htd);\n LOG.info(admin.getClusterStatus());\n LOG.info(admin.listNamespaceDescriptors());\n LOG.info(\"Table created successfully.\");\n } else {\n LOG.warn(\"table already exists\");\n }\n } catch (IOException e) {\n LOG.error(\"Create table failed.\");\n } finally {\n if (admin != null) {\n try {\n // Close the Admin object.\n admin.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close admin \", e);\n }\n }\n }\n LOG.info(\"Exiting testCreateTable.\");\n }",
"private void populateTableData() {\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n model.setRowCount(0);\n for (Organization o : organizationDirectory.getOrganizationList()) {\n Object[] row = new Object[1];\n row[0] = o;\n //row[1] = o.getOrgName();\n model.addRow(row);\n }\n }",
"private void jButtonInsertRowActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonInsertRowActionPerformed\n // TODO add your handling code here:\n \n try {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n ActivityTypeTable at = new ActivityTypeTable(jTextFieldActivityType.getText(),\n sdf.format(jDateChooserStart.getDate()), sdf.format(jDateChooserEnd.getDate()));\n dm.insertActivity(at);\n JOptionPane.showMessageDialog(new JFrame(), \"New Row is Inserted \", \"Completed\", JOptionPane.INFORMATION_MESSAGE);\n\n } catch (SQLException | HeadlessException ex) {\n System.out.println(ex.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), \"An SQL Exception was thrown: \\n\" + ex.getMessage(), \"SQL Exception\", JOptionPane.ERROR_MESSAGE);\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n JOptionPane.showMessageDialog(new JFrame(), \"Please Type in Correct Values\", \"Incorrect/Null Vaules\", JOptionPane.ERROR_MESSAGE);\n }\n\n }",
"private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }",
"public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"private void createTable(HTableDescriptor tableDesc, boolean ignoreTableExists) {\n\n\t\tHBaseAdmin admin = HBaseConfigurationManager.getHbaseAdmin();\n\n\t\ttry {\n\n\t\t\tadmin.createTable(tableDesc);\n\t\t\tJOptionPane.showMessageDialog(this, \"Table Created and Enabled Successfully\");\n\t\t}\n\t\tcatch (TableExistsException e) {\n\t\t\tif (!ignoreTableExists) {\n\t\t\t\tint sel = JOptionPane.showConfirmDialog(this, \"Table Already Exist, Add Data ???\", \"Warning!\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n\t\t\t\tif (sel == JOptionPane.NO_OPTION) {\n\t\t\t\t\tthis.dispose();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Table Creation Failed\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\tLogger.getLogger(HBaseManagerTableDesign.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\n\t}",
"CreationData creationData();",
"public void crearTabla() {\n\t\tthis.tabla= new String[palabras.length+1][4];\t\n\t}",
"private void createTable(int columns, int rows, String[] column_name,\n\t\t\tObject[] row_data) {\n\t\ttblStationary = new Table(canvas2, SWT.MULTI | SWT.BORDER\n\t\t\t\t| SWT.FULL_SELECTION);\n\t\ttblStationary.setLinesVisible(true);\n\t\ttblStationary.setHeaderVisible(true);\n\n\t\tfor (int i = 0; i < columns; i++) {\n\t\t\tcolumn = new TableColumn(tblStationary, SWT.NONE);\n\n\t\t\tif (i == 0) {\n\t\t\t\tcolumn.setText(column_name[i]);\n\t\t\t\tcolumn.setWidth(50);\n\t\t\t} else if (i == 1) {\n\t\t\t\tcolumn.setText(column_name[i]);\n\t\t\t\tcolumn.setWidth(230);\n\t\t\t} else {\n\t\t\t\tcolumn.setText(column_name[i]);\n\t\t\t\tcolumn.setWidth(100);\n\t\t\t}\n\t\t}\n\n\t\teditor1 = new TableEditor[rows];\n\t\ttxtTopay = new Text[rows];\n\n\t\teditor2 = new TableEditor[rows];\n\t\ttxtPaid = new Text[rows];\n\n\t\teditor3 = new TableEditor[rows];\n\t\ttxtBilling = new Text[rows];\n\n\t\teditor4 = new TableEditor[rows];\n\t\ttxtCr = new Text[rows];\n\n\t\t// Drawing initial table items\n\t\tfor (int rowId = 0; rowId < rows; rowId++) {\n\n\t\t\titem = new TableItem(tblStationary, SWT.NONE);\n\n\t\t\titem.setText(0, Integer.toString((rowId + 1)));\n\n\t\t\t// First Column station\n\t\t\titem.setText(1, (((StationsDTO) (row_data[rowId])).getName()\n\t\t\t\t\t+ \" - \" + ((StationsDTO) row_data[rowId]).getId()));\n\n\t\t\t// Draw Text Field\n\t\t\teditor1[rowId] = new TableEditor(tblStationary);\n\t\t\ttxtTopay[rowId] = new Text(tblStationary, SWT.NONE);\n\t\t\ttxtTopay[rowId].addVerifyListener(new NumericValidation());\n\t\t\teditor1[rowId].grabHorizontal = true;\n\t\t\teditor1[rowId].setEditor(txtTopay[rowId], item, 2);\n\n\t\t\t// Draw Text Field\n\t\t\teditor2[rowId] = new TableEditor(tblStationary);\n\t\t\ttxtPaid[rowId] = new Text(tblStationary, SWT.NONE);\n\t\t\ttxtPaid[rowId].addVerifyListener(new NumericValidation());\n\t\t\teditor2[rowId].grabHorizontal = true;\n\t\t\teditor2[rowId].setEditor(txtPaid[rowId], item, 3);\n\n\t\t\t// Draw Text Field\n\t\t\teditor3[rowId] = new TableEditor(tblStationary);\n\t\t\ttxtBilling[rowId] = new Text(tblStationary, SWT.NONE);\n\t\t\ttxtBilling[rowId].addVerifyListener(new NumericValidation());\n\t\t\teditor3[rowId].grabHorizontal = true;\n\t\t\teditor3[rowId].setEditor(txtBilling[rowId], item, 4);\n\n\t\t\t// Draw Text Field\n\t\t\teditor4[rowId] = new TableEditor(tblStationary);\n\t\t\ttxtCr[rowId] = new Text(tblStationary, SWT.NONE);\n\t\t\ttxtCr[rowId].addVerifyListener(new NumericValidation());\n\t\t\teditor4[rowId].grabHorizontal = true;\n\t\t\teditor4[rowId].setEditor(txtCr[rowId], item, 5);\n\n\t\t}\n\t\ttblStationary.setBounds(32, 43, 750, 380);\n\n\t}",
"private void criaJTable() {\n tabela = new JTable(modelo);\n modelo.addColumn(\"Codigo:\");\n modelo.addColumn(\"Data inicio:\");\n modelo.addColumn(\"Data Fim:\");\n modelo.addColumn(\"Valor produto:\");\n modelo.addColumn(\"Quantidade:\");\n\n preencherJTable();\n }",
"private void createTable(GTViewSet viewSet)\r\n\t{\r\n\t\tString[] columnNames = {\r\n\t\t\tRB.getString(\"gui.dialog.NBSelectTraitsPanel.traitsColumn\"),\r\n\t\t\tRB.getString(\"gui.dialog.NBSelectTraitsPanel.experimentColumn\"),\r\n\t\t\tRB.getString(\"gui.dialog.NBSelectTraitsPanel.showColumn\")\r\n\t\t};\r\n\r\n\t\tArrayList<Trait> traits = viewSet.getDataSet().getTraits();\r\n\r\n\t\tint[] selected = null;\r\n\t\tif (mode == SelectTraitsDialog.HEATMAP_TRAITS)\r\n\t\t\tselected = viewSet.getTraits();\r\n\t\telse\r\n\t\t\tselected = viewSet.getTxtTraits();\r\n\r\n\t\tObject[][] data = new Object[traits.size()][3];\r\n\r\n\t\tfor (int i = 0; i < data.length; i++)\r\n\t\t{\r\n\t\t\tdata[i][0] = traits.get(i).getName();\r\n\t\t\tdata[i][1] = traits.get(i).getExperiment();\r\n\r\n\t\t\t// Search the current list of visible traits to see if this trait\r\n\t\t\t// is one of them. If it is, enable it in the table\r\n\t\t\tboolean show = false;\r\n\t\t\tfor (int j = 0; j < selected.length; j++)\r\n\t\t\t\tif (selected[j] == i)\r\n\t\t\t\t\tshow = true;\r\n\r\n\t\t\tdata[i][2] = show;\r\n\t\t}\r\n\r\n\t\ttable.setModel(new DefaultTableModel(data, columnNames)\r\n\t\t{\r\n\t\t\tpublic Class getColumnClass(int c) {\r\n\t\t\t\treturn getValueAt(0, c).getClass();\r\n\t\t\t}\r\n\r\n\t\t\t// Column 1 contains the tickboxes, and must be editable\r\n\t\t\tpublic boolean isCellEditable(int row, int col) {\r\n\t\t\t\treturn col == 2;\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttable.getColumnModel().getColumn(2).setPreferredWidth(10);\r\n\r\n\t\tTableRowSorter<DefaultTableModel> sorter = new TableRowSorter<>((DefaultTableModel)table.getModel());\r\n\t\ttable.setRowSorter(sorter);\r\n\t}",
"@Test\n public void shouldCreatePreviousHospitalization() {\n assertThat(DatabaseHelper.getPreviousHospitalizationDao().queryForAll().size(), is(0));\n\n Case caze = TestEntityCreator.createCase();\n TestEntityCreator.createPreviousHospitalization(caze);\n\n // Assure that the previous hospitalization has been successfully created\n assertThat(DatabaseHelper.getPreviousHospitalizationDao().queryForAll().size(), is(1));\n }",
"private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }",
"Dashboard createDashboard();",
"private static void createExampleTable(KuduClient client, String tableName) throws KuduException {\n List<ColumnSchema> columns = new ArrayList<>(2);\n columns.add(new ColumnSchema.ColumnSchemaBuilder(\"key\", Type.STRING)\n .key(true)\n .build());\n columns.add(new ColumnSchema.ColumnSchemaBuilder(\"value\", Type.STRING).nullable(true)\n .build());\n columns.add(new ColumnSchema.ColumnSchemaBuilder(\"added\", Type.DOUBLE).defaultValue(DEFAULT_DOUBLE)\n .build());\n\n Schema schema = new Schema(columns);\n\n // Set up the partition schema, which distributes rows to different tablets by hash.\n // Kudu also supports partitioning by key range. Hash and range partitioning can be combined.\n // For more information, see http://kudu.apache.org/docs/schema_design.html.\n CreateTableOptions cto = new CreateTableOptions();\n List<String> hashKeys = new ArrayList<>(1);\n hashKeys.add(\"key\");\n int numBuckets = 8;\n cto.addHashPartitions(hashKeys, numBuckets);\n\n // Create the table.\n client.createTable(tableName, schema, cto);\n System.out.println(\"Created table \" + tableName);\n }",
"protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }",
"public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String type2 = \"Type 2\";\n final String type3 = \"Type 3\";\n final String type4 = \"Type 4\";\n final String type5 = \"Type 5\";\n final String type6 = \"Type 6\";\n final String type7 = \"Type 7\";\n final String type8 = \"Type 8\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(1.0, series1, type1);\n dataset.addValue(4.0, series1, type2);\n dataset.addValue(3.0, series1, type3);\n dataset.addValue(5.0, series1, type4);\n dataset.addValue(5.0, series1, type5);\n dataset.addValue(7.0, series1, type6);\n dataset.addValue(7.0, series1, type7);\n dataset.addValue(8.0, series1, type8);\n\n dataset.addValue(5.0, series2, type1);\n dataset.addValue(7.0, series2, type2);\n dataset.addValue(6.0, series2, type3);\n dataset.addValue(8.0, series2, type4);\n dataset.addValue(4.0, series2, type5);\n dataset.addValue(4.0, series2, type6);\n dataset.addValue(2.0, series2, type7);\n dataset.addValue(1.0, series2, type8);\n\n dataset.addValue(4.0, series3, type1);\n dataset.addValue(3.0, series3, type2);\n dataset.addValue(2.0, series3, type3);\n dataset.addValue(3.0, series3, type4);\n dataset.addValue(6.0, series3, type5);\n dataset.addValue(3.0, series3, type6);\n dataset.addValue(4.0, series3, type7);\n dataset.addValue(3.0, series3, type8);\n\n return dataset;\n \n }",
"protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }",
"public void createListData()\n {\n List<SinhVien> listSinhvien=new ArrayList<>();\n for(int i=0;i<10;i++){\n SinhVien sv=new SinhVien(i+\"\",\"123\",\"0123\",i+1.0f);\n listSinhvien.add(sv);\n }\n PresenterImplDangXuat.onLoadSucess(listSinhvien);\n }",
"public void createNew(PatientBO patient)\n {\n _dietTreatment = new DietTreatmentBO();\n _dietTreatment.setPatient(patient);\n setPatient(patient);\n }",
"private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }",
"@Override\n public void initData() {\n customerResponses = distributorController.getAllDistributorResponseObject();\n Object[] obj = new Object[]{\"STT\", \"Mã Nhà phân phối\", \"Tên nhà phân phối\", \"Địa chỉ\", \"Số điện thoại\", \"Email\", \"Ghi chú\"};\n tableModel = new DefaultTableModel(obj, 0);\n tableRowSorter = new TableRowSorter<>(tableModel);\n tblDistribute.setModel(tableModel);\n tblDistribute.setRowSorter(tableRowSorter);\n count = 0;\n tableModel.setRowCount(0);\n try {\n customerResponses.forEach((Object[] item) -> {\n item[0] = ++count;\n tableModel.addRow(item);\n\n });\n } catch (Exception exception) {\n log.error(\"Can't add row to table model \");\n exception.printStackTrace();\n\n }\n setButtonsEnable(btnUpdate, false, btnAdd, true, btnEdit, false, btnDelete, false, btnCancel, true);\n }",
"private void fillTable(){\n tblModel.setRowCount(0);// xoa cac hang trong bang\n \n for(Student st: list){\n tblModel.addRow(new String[]{st.getStudentId(), st.getName(), st.getMajor(),\"\"\n + st.getMark(), st.getCapacity(), \"\" + st.isBonnus()});\n // them (\"\" + )de chuyen doi kieu float va boolean sang string\n \n }\n tblModel.fireTableDataChanged();\n }",
"private void initTable() {\n\t\tDefaultTableModel dtm = (DefaultTableModel)table.getModel();\n\t\tdtm.setRowCount(0);\t\t\n\t\tfor(int i=0;i<MainUi.controller.sale.items.size();i++){\n\t\t\tVector v1 = new Vector();\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getProdSpec().getTitle());\n\t\t\tv1.add(MainUi.controller.sale.items.get(i).getCopies());\n\t\t\tdtm.addRow(v1);\n\t\t}\n\t\tlblNewLabel.setText(\"\"+MainUi.controller.sale.getTotal());\n\t}",
"private void createStressTestRowOutgoingTable(int payloadColumns) {\n Column[] defaultColumns = getDefaultStressTestRowColumns();\n Table table = new Table(STRESS_TEST_ROW_OUTGOING, defaultColumns);\n List<Column> payloads = getPayloadColumns(payloadColumns);\n\n table.addColumns(payloads);\n engine.getDatabasePlatform().createTables(true, true, table);\n }",
"public static void testAddDataToGridFile() {\n\n System.out.println(\"\\n--------- Adding Data to Grid File ---------\");\n\n GridFile gridFile = null;\n\n try {\n gridFile = GridFile.open(TEST_FILE);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n GridParameters params = gridFile.getParameters();\n\n //Create a row and put some data in it\n int[] rowValues = new int[params.getNumberOfColumns()];\n for (int i = 0; i < rowValues.length; i++) {\n rowValues[i] = i;\n }\n\n try {\n gridFile.putRow(2, rowValues); //store values in row 10\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }"
] | [
"0.6400765",
"0.62577903",
"0.59133804",
"0.5902162",
"0.5902146",
"0.5864747",
"0.586277",
"0.58240443",
"0.5780932",
"0.57379335",
"0.57175577",
"0.5687936",
"0.5658727",
"0.5641057",
"0.56315684",
"0.56192696",
"0.5549577",
"0.5540473",
"0.5533271",
"0.55260724",
"0.55243254",
"0.5500545",
"0.5468474",
"0.5450049",
"0.53758967",
"0.5363778",
"0.534814",
"0.5318838",
"0.5278444",
"0.52774656",
"0.52761286",
"0.52677804",
"0.52670944",
"0.5260057",
"0.52563125",
"0.5249084",
"0.5239698",
"0.5226128",
"0.5219761",
"0.5211543",
"0.5198653",
"0.51893955",
"0.51756793",
"0.5169412",
"0.5162685",
"0.51619434",
"0.5156125",
"0.514967",
"0.5149572",
"0.51415014",
"0.5133582",
"0.5130164",
"0.5119495",
"0.5119293",
"0.51121396",
"0.5110353",
"0.5110086",
"0.51097107",
"0.51086324",
"0.51053214",
"0.51051277",
"0.5102747",
"0.51020986",
"0.51016235",
"0.51008713",
"0.5096764",
"0.5093403",
"0.5092149",
"0.5090969",
"0.5077707",
"0.5074351",
"0.50713325",
"0.50689113",
"0.5064446",
"0.50635356",
"0.50566316",
"0.50463194",
"0.5040095",
"0.50318193",
"0.5027787",
"0.5025845",
"0.50177985",
"0.50161123",
"0.5013251",
"0.5010203",
"0.5006036",
"0.50019777",
"0.4996553",
"0.49919802",
"0.4987656",
"0.49856374",
"0.498348",
"0.49707317",
"0.49683216",
"0.49638236",
"0.4962519",
"0.4962335",
"0.49590674",
"0.49558362",
"0.49527553",
"0.4946057"
] | 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. //GENBEGIN:initComponents | private void initComponents() {
setLayout(new java.awt.BorderLayout());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public Form() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public FormPemilihan() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\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 FormCompra() {\n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public MechanicForm() {\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 }",
"@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}",
"@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 }",
"public FormListRemarking() {\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\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 SettingsForm() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 630, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 431, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n jLabel29 = new javax.swing.JLabel();\n axTextField = new javax.swing.JTextField();\n bxTextField = new javax.swing.JTextField();\n cxTextField = new javax.swing.JTextField();\n dxTextField = new javax.swing.JTextField();\n siTextField = new javax.swing.JTextField();\n diTextField = new javax.swing.JTextField();\n spTextField = new javax.swing.JTextField();\n bpTextField = new javax.swing.JTextField();\n pcTextField = new javax.swing.JTextField();\n ir1TextField = new javax.swing.JTextField();\n ir2TextField = new javax.swing.JTextField();\n marTextField = new javax.swing.JTextField();\n ivtpTextField = new javax.swing.JTextField();\n mbrTextField = new javax.swing.JTextField();\n ir3TextField = new javax.swing.JTextField();\n ir4TextField = new javax.swing.JTextField();\n xTextField = new javax.swing.JTextField();\n yTextField = new javax.swing.JTextField();\n aTextField = new javax.swing.JTextField();\n bTextField = new javax.swing.JTextField();\n pswTextField = new javax.swing.JTextField();\n imrTextField = new javax.swing.JTextField();\n sbusTextField = new javax.swing.JTextField();\n dbusTextField = new javax.swing.JTextField();\n systemABUSTextField = new javax.swing.JTextField();\n systemDBUSTextField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n okButton = new javax.swing.JButton();\n jLabel30 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n\n setTitle(\"RegisterDialog\");\n setFocusable(false);\n setMinimumSize(new java.awt.Dimension(688, 285));\n setName(\"\"); // NOI18N\n\n jLabel1.setText(\"AX\");\n\n jLabel2.setText(\"BX\");\n\n jLabel3.setText(\"CX\");\n\n jLabel4.setText(\"DX\");\n\n jLabel5.setText(\"SI\");\n\n jLabel6.setText(\"DI\");\n\n jLabel7.setText(\"SP\");\n\n jLabel8.setText(\"BP\");\n\n jLabel9.setText(\"PC\");\n\n jLabel10.setText(\"IR1\");\n\n jLabel11.setText(\"IR2\");\n\n jLabel12.setText(\"MAR\");\n\n jLabel13.setText(\"MBR\");\n\n jLabel14.setText(\"IVTP\");\n\n jLabel15.setText(\"IR3\");\n\n jLabel16.setText(\"IR4\");\n\n jLabel17.setText(\"X\");\n\n jLabel18.setText(\"Y\");\n\n jLabel19.setText(\"A\");\n\n jLabel20.setText(\"B\");\n\n jLabel21.setText(\"PSW\");\n\n jLabel22.setText(\"IMR\");\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel23.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);\n jLabel23.setText(\"CPU\");\n\n jLabel24.setText(\"sBUS\");\n\n jLabel25.setText(\"dBUS\");\n\n jLabel26.setText(\"ABUS\");\n\n jLabel27.setText(\"DBUS\");\n\n jLabel28.setText(\"bin.\");\n\n jLabel29.setText(\"bin.\");\n\n axTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n axTextField.setText(\"0000\");\n axTextField.setFocusable(false);\n axTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n axTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bxTextField.setText(\"0000\");\n bxTextField.setFocusable(false);\n bxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n cxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n cxTextField.setText(\"0000\");\n cxTextField.setFocusable(false);\n cxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n cxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dxTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dxTextField.setText(\"0000\");\n dxTextField.setFocusable(false);\n dxTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dxTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n siTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n siTextField.setText(\"0000\");\n siTextField.setFocusable(false);\n siTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n siTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n diTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n diTextField.setText(\"0000\");\n diTextField.setFocusable(false);\n diTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n diTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n spTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n spTextField.setText(\"0000\");\n spTextField.setFocusable(false);\n spTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n spTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bpTextField.setText(\"0000\");\n bpTextField.setFocusable(false);\n bpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pcTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pcTextField.setText(\"0000\");\n pcTextField.setFocusable(false);\n pcTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pcTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir1TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir1TextField.setText(\"0000\");\n ir1TextField.setFocusable(false);\n ir1TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir1TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir2TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir2TextField.setText(\"0000\");\n ir2TextField.setFocusable(false);\n ir2TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir2TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n marTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n marTextField.setText(\"0000\");\n marTextField.setFocusable(false);\n marTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n marTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ivtpTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ivtpTextField.setText(\"0000\");\n ivtpTextField.setFocusable(false);\n ivtpTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ivtpTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n mbrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n mbrTextField.setText(\"0000\");\n mbrTextField.setFocusable(false);\n mbrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n mbrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir3TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir3TextField.setText(\"0000\");\n ir3TextField.setFocusable(false);\n ir3TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir3TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n ir4TextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n ir4TextField.setText(\"0000\");\n ir4TextField.setFocusable(false);\n ir4TextField.setMaximumSize(new java.awt.Dimension(30, 20));\n ir4TextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n xTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n xTextField.setText(\"0000\");\n xTextField.setFocusable(false);\n xTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n xTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n yTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n yTextField.setText(\"0000\");\n yTextField.setFocusable(false);\n yTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n yTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n aTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n aTextField.setText(\"0000\");\n aTextField.setFocusable(false);\n aTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n aTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n bTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n bTextField.setText(\"0000\");\n bTextField.setFocusable(false);\n bTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n bTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n pswTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n pswTextField.setText(\"0000000000000000\");\n pswTextField.setFocusable(false);\n pswTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n pswTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n imrTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n imrTextField.setText(\"0000\");\n imrTextField.setFocusable(false);\n imrTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n imrTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n sbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n sbusTextField.setText(\"0000\");\n sbusTextField.setFocusable(false);\n sbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n sbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n dbusTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n dbusTextField.setText(\"0000\");\n dbusTextField.setFocusable(false);\n dbusTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n dbusTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemABUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemABUSTextField.setText(\"0000\");\n systemABUSTextField.setFocusable(false);\n systemABUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemABUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n systemDBUSTextField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n systemDBUSTextField.setText(\"0000\");\n systemDBUSTextField.setFocusable(false);\n systemDBUSTextField.setMaximumSize(new java.awt.Dimension(30, 20));\n systemDBUSTextField.setMinimumSize(new java.awt.Dimension(30, 20));\n\n jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);\n\n okButton.setText(\"OK\");\n okButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n okButtonActionPerformed(evt);\n }\n });\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel30.setText(\"interne \\nmagistrale\");\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 0, 14));\n jLabel31.setText(\"sistemske magistrale\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addGap(18, 18, 18)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel1)\n .addComponent(jLabel2))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(bxTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(axTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(siTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(diTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(spTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bpTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(pcTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(mbrTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(marTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel22)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addGap(18, 18, 18)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel29))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jLabel15)\n .addComponent(jLabel11, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(ir1TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir2TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir3TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(ir4TextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel19)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 7, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 8, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(xTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(yTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(aTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(bTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)))\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel30)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 34, Short.MAX_VALUE)\n .addComponent(jLabel24)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(dbusTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE, 215, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel31)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel26)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 50, Short.MAX_VALUE)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jSeparator4)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(okButton, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(46, 46, 46)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(pcTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(marTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(mbrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(siTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(diTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(spTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel13))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(bpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel14)\n .addComponent(ivtpTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(axTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(bxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(cxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(dxTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel21)\n .addComponent(pswTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(imrTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel29)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(sbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel25)\n .addComponent(dbusTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel26)\n .addComponent(systemABUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel27)\n .addComponent(systemDBUSTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addComponent(okButton))\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(xTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(yTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel19)\n .addComponent(aTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(bTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(ir1TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(ir2TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(ir3TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(ir4TextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(71, 71, 71)\n .addComponent(jLabel23))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 760, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 446, Short.MAX_VALUE)\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 638, Short.MAX_VALUE)\n );\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSeparator1 = new javax.swing.JSeparator();\n jLabel4 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jLabel5 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jLabel27 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField7 = new javax.swing.JTextField();\n jLabel18 = new javax.swing.JLabel();\n jPasswordField1 = new javax.swing.JPasswordField();\n jPasswordField2 = new javax.swing.JPasswordField();\n jButton4 = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jButton5 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Settings\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jSeparator1.setForeground(new java.awt.Color(102, 0, 153));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Tux TV 1280-1024.jpg\"))); // NOI18N\n\n jTextField1.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton2.setForeground(new java.awt.Color(51, 51, 255));\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Blue-young-icon.png\"))); // NOI18N\n jButton2.setText(\"Search\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jLabel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 18));\n jLabel3.setForeground(new java.awt.Color(51, 51, 255));\n jLabel3.setText(\"<html>Logged In <font color=green>●\");\n\n jLabel2.setBackground(new java.awt.Color(204, 204, 255));\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 18));\n jLabel2.setOpaque(true);\n\n jButton1.setBackground(new java.awt.Color(255, 153, 153));\n jButton1.setFont(new java.awt.Font(\"Arial\", 1, 14));\n jButton1.setForeground(new java.awt.Color(255, 0, 0));\n jButton1.setText(\"Log Out\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel5.setForeground(new java.awt.Color(153, 0, 153));\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"<html><u>Home\");\n jLabel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel5MouseClicked(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel7.setForeground(new java.awt.Color(153, 0, 153));\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel7.setText(\"<html><u>Friends\");\n jLabel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel7MouseClicked(evt);\n }\n });\n\n jLabel8.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel8.setForeground(new java.awt.Color(153, 0, 153));\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel8.setText(\"<html><u>Messages\");\n jLabel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel8MouseClicked(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel9.setForeground(new java.awt.Color(153, 0, 153));\n jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel9.setText(\"<html><u>Notifications\");\n jLabel9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel9MouseClicked(evt);\n }\n });\n\n jLabel10.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel10.setForeground(new java.awt.Color(153, 0, 153));\n jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel10.setText(\"<html><u>Profile\");\n jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel10MouseClicked(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Arial\", 0, 18));\n jLabel6.setForeground(new java.awt.Color(0, 0, 255));\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setText(\"<html><u>Settings\");\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel14.setText(\"E-Mail:\");\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel15.setText(\"Phone Number:\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel12.setText(\"Name:\");\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel13.setText(\"UserName:\");\n\n jTextField3.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField3.setForeground(new java.awt.Color(102, 0, 102));\n jTextField3.setEnabled(false);\n\n jTextField2.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField2.setForeground(new java.awt.Color(102, 0, 102));\n jTextField2.setEnabled(false);\n\n jTextField4.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField4.setForeground(new java.awt.Color(102, 0, 102));\n jTextField4.setEnabled(false);\n\n jTextField5.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField5.setForeground(new java.awt.Color(102, 0, 102));\n jTextField5.setEnabled(false);\n\n jLabel27.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel27.setForeground(new java.awt.Color(0, 0, 255));\n jLabel27.setText(\"<html><u>Edit\");\n jLabel27.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel27MouseClicked(evt);\n }\n });\n\n jLabel26.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel26.setForeground(new java.awt.Color(0, 0, 255));\n jLabel26.setText(\"<html><u>Edit\");\n jLabel26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel26MouseClicked(evt);\n }\n });\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel25.setForeground(new java.awt.Color(0, 0, 255));\n jLabel25.setText(\"<html><u>Edit\");\n jLabel25.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel25MouseClicked(evt);\n }\n });\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel24.setForeground(new java.awt.Color(0, 0, 255));\n jLabel24.setText(\"<html><u>Edit\");\n jLabel24.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel24MouseClicked(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 2, 18)); // NOI18N\n jButton3.setForeground(new java.awt.Color(0, 153, 51));\n jButton3.setText(\"Update Info\");\n jButton3.setEnabled(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jSeparator2.setForeground(jSeparator1.getForeground());\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel16.setText(\"Old Password:\");\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel17.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel17.setText(\"New Password:\");\n\n jTextField7.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jTextField7.setForeground(new java.awt.Color(102, 0, 102));\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel18.setText(\"ReType New Password:\");\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 3, 18));\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/3.png\"))); // NOI18N\n jButton4.setText(\"Change\");\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jLabel11.setForeground(new java.awt.Color(0, 0, 255));\n jLabel11.setText(\"<html><u>Wanna See Your Security Code?\");\n jLabel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jLabel11MouseClicked(evt);\n }\n });\n\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 14));\n jButton5.setForeground(new java.awt.Color(255, 51, 51));\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagesFCG7ZZJL.jpg\"))); // NOI18N\n jButton5.setText(\"Delete My Account\");\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 0, 1));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 437, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 352, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 312, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(78, 78, 78)\n .addComponent(jLabel19)\n .addGap(40, 40, 40)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel12)\n .addComponent(jLabel13))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField3)\n .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(103, 103, 103)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField5)\n .addComponent(jTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel27)\n .addComponent(jLabel26)\n .addComponent(jLabel25))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton5))\n .addComponent(jLabel24))\n .addGap(2, 2, 2))\n .addGroup(layout.createSequentialGroup()\n .addGap(264, 264, 264)\n .addComponent(jButton3))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 188, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPasswordField2)\n .addComponent(jPasswordField1)\n .addComponent(jTextField7, javax.swing.GroupLayout.DEFAULT_SIZE, 226, Short.MAX_VALUE))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(100, 100, 100)\n .addComponent(jLabel20)\n .addGap(73, 73, 73))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel21)\n .addGap(21, 21, 21))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(199, Short.MAX_VALUE)\n .addComponent(jLabel11, javax.swing.GroupLayout.PREFERRED_SIZE, 295, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(162, 162, 162))\n .addGroup(layout.createSequentialGroup()\n .addGap(271, 271, 271)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(261, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel19)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 32, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 29, Short.MAX_VALUE))\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 5, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel25))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel26)\n .addComponent(jLabel14))\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel27)\n .addComponent(jLabel15))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(51, 51, 51)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel16)\n .addComponent(jTextField7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel20))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jPasswordField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel11))\n .addGroup(layout.createSequentialGroup()\n .addGap(59, 59, 59)\n .addComponent(jLabel21)))\n .addContainerGap(47, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 731, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 475, Short.MAX_VALUE)\n );\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public Magasin() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public soal2GUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public PatientUI() {\n initComponents();\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 muveletek() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public Soru1() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public ValidFrequencyForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jTextField6 = new javax.swing.JTextField();\n jTextField8 = new javax.swing.JTextField();\n jTextField9 = new javax.swing.JTextField();\n jTextField10 = new javax.swing.JTextField();\n jTextField11 = new javax.swing.JTextField();\n jTextField12 = new javax.swing.JTextField();\n jTextField13 = new javax.swing.JTextField();\n jTextField14 = new javax.swing.JTextField();\n jTextField16 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jButton1 = new javax.swing.JButton();\n jLabel18 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jFormattedTextField1 = new javax.swing.JFormattedTextField();\n jFormattedTextField2 = new javax.swing.JFormattedTextField();\n jFormattedTextField3 = new javax.swing.JFormattedTextField();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jFormattedTextField4 = new javax.swing.JFormattedTextField();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Personal Profile\");\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel1.setText(\"Personal Information\");\n\n jLabel2.setText(\"Name\");\n\n jLabel3.setText(\"Address\");\n\n jLabel4.setText(\"Date of Birth\");\n jLabel4.setToolTipText(\"\");\n\n jLabel5.setText(\"Contact\");\n\n jLabel6.setText(\"Fax Number\");\n\n jLabel7.setText(\"Email\");\n\n jLabel8.setText(\"SSN\");\n\n jLabel9.setText(\"Medical Record No\");\n\n jLabel10.setText(\"Health Plan No\");\n\n jLabel11.setText(\"Bank Acc No\");\n\n jLabel12.setText(\"License No\");\n\n jLabel13.setText(\"Vehicle Identifiers\");\n\n jLabel14.setText(\"Device Identifiers\");\n jLabel14.setToolTipText(\"\");\n\n jLabel15.setText(\"LinkedIn\");\n\n jLabel16.setText(\"IP Address\");\n\n jLabel17.setText(\"Identifier\");\n\n jButton2.setText(\"Submit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jTextArea1.setBounds(new java.awt.Rectangle(0, 0, 240, 120));\n jScrollPane1.setViewportView(jTextArea1);\n\n jButton1.setText(\"Clear\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel18.setText(\"Image\");\n\n jButton3.setText(\"Upload\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jFormattedTextField1.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter(java.text.DateFormat.getDateInstance(java.text.DateFormat.SHORT))));\n\n try {\n jFormattedTextField2.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###-###-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n try {\n jFormattedTextField3.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###-##-####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabel22.setText(\"Biometrics\");\n\n jButton4.setText(\"Upload\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n try {\n jFormattedTextField4.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"###.###.###.###\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22))\n .addComponent(jLabel18)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel7)\n .addComponent(jLabel8)\n .addComponent(jLabel9)\n .addComponent(jLabel10)\n .addComponent(jLabel11)\n .addComponent(jLabel12)\n .addComponent(jLabel13)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(jLabel16)\n .addComponent(jLabel17))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTextField1)\n .addComponent(jTextField2)\n .addComponent(jFormattedTextField1)\n .addComponent(jFormattedTextField2)\n .addComponent(jTextField5)\n .addComponent(jTextField6)\n .addComponent(jFormattedTextField3)\n .addComponent(jTextField8)\n .addComponent(jTextField9)\n .addComponent(jTextField10)\n .addComponent(jTextField11)\n .addComponent(jTextField12)\n .addComponent(jTextField13)\n .addComponent(jTextField14)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.DEFAULT_SIZE, 367, Short.MAX_VALUE)\n .addComponent(jTextField16))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 440, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, 209, Short.MAX_VALUE)\n .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(24, 24, 24))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(146, 146, 146)\n .addComponent(jButton2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton1))\n .addGroup(layout.createSequentialGroup()\n .addGap(423, 423, 423)\n .addComponent(jLabel1)))\n .addContainerGap(566, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jLabel1)\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jFormattedTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jFormattedTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel8)\n .addComponent(jFormattedTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jTextField8, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10)\n .addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jTextField10, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel12)\n .addComponent(jTextField11, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13)\n .addComponent(jTextField12, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel14)\n .addComponent(jTextField13, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15)\n .addComponent(jTextField14, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(jFormattedTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17)\n .addComponent(jTextField16, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jScrollPane1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(jButton3)\n .addComponent(jLabel20))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel22)\n .addComponent(jButton4)\n .addComponent(jLabel24))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }",
"public HW3() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public PatientRegForm() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n public void keyReleased(java.awt.event.KeyEvent evt) {\n formKeyReleased(evt);\n }\n });\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\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, 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\n pack();\n }",
"public p0() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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 }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\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, 394, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 278, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\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, 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\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n jTextField1 = new javax.swing.JTextField();\r\n jButton1 = new javax.swing.JButton();\r\n jTextField2 = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jLabel3 = new javax.swing.JLabel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jLabel6 = new javax.swing.JLabel();\r\n jLabel7 = new javax.swing.JLabel();\r\n jTextField3 = new javax.swing.JTextField();\r\n jTextField4 = new javax.swing.JTextField();\r\n jTextField5 = new javax.swing.JTextField();\r\n jTextField6 = new javax.swing.JTextField();\r\n jTextField7 = new javax.swing.JTextField();\r\n jTextField8 = new javax.swing.JTextField();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jButton4 = new javax.swing.JButton();\r\n lbhora = new javax.swing.JLabel();\r\n jButton5 = new javax.swing.JButton();\r\n jLabel8 = new javax.swing.JLabel();\r\n jButton6 = new javax.swing.JButton();\r\n jLabel9 = new javax.swing.JLabel();\r\n jMenuBar1 = new javax.swing.JMenuBar();\r\n jMenu1 = new javax.swing.JMenu();\r\n jMenuItem4 = new javax.swing.JMenuItem();\r\n jMenuItem5 = new javax.swing.JMenuItem();\r\n jMenu2 = new javax.swing.JMenu();\r\n jMenuItem9 = new javax.swing.JMenuItem();\r\n jMenuItem10 = new javax.swing.JMenuItem();\r\n jMenuItem11 = new javax.swing.JMenuItem();\r\n jMenuItem13 = new javax.swing.JMenuItem();\r\n jMenuItem14 = new javax.swing.JMenuItem();\r\n jMenu3 = new javax.swing.JMenu();\r\n jMenuItem15 = new javax.swing.JMenuItem();\r\n jMenuItem16 = new javax.swing.JMenuItem();\r\n jMenuItem17 = new javax.swing.JMenuItem();\r\n jMenu4 = new javax.swing.JMenu();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField1ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 12, 490, 30));\r\n\r\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/search-icon-60x60.png\"))); // NOI18N\r\n jButton1.setBorderPainted(false);\r\n jButton1.setContentAreaFilled(false);\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 0, -1, -1));\r\n\r\n jTextField2.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField2ActionPerformed(evt);\r\n }\r\n });\r\n jTextField2.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField2KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 80, 340, 30));\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel1.setText(\"NOMBRE\");\r\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 90, 72, -1));\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel2.setText(\"DOMICILIO\");\r\n getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 150, 70, -1));\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel3.setText(\"CIUDAD\");\r\n getContentPane().add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 290, 60, -1));\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel4.setText(\"TELEFONO\");\r\n getContentPane().add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 240, 70, -1));\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel5.setText(\"C.P.\");\r\n getContentPane().add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 360, -1, -1));\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel6.setText(\"R.F.C.\");\r\n getContentPane().add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(130, 190, -1, -1));\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jLabel7.setText(\"E-MAIL\");\r\n getContentPane().add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 410, 50, -1));\r\n\r\n jTextField3.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField3ActionPerformed(evt);\r\n }\r\n });\r\n jTextField3.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField3KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField3, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 130, 510, 30));\r\n\r\n jTextField4.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField4ActionPerformed(evt);\r\n }\r\n });\r\n jTextField4.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField4KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField4, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 290, 250, 30));\r\n\r\n jTextField5.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField5ActionPerformed(evt);\r\n }\r\n });\r\n jTextField5.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField5KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField5, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 340, 250, 30));\r\n\r\n jTextField6.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField6ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField6, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 400, 250, 30));\r\n\r\n jTextField7.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField7.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField7ActionPerformed(evt);\r\n }\r\n });\r\n jTextField7.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField7KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField7, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 180, 250, 30));\r\n\r\n jTextField8.setHorizontalAlignment(javax.swing.JTextField.CENTER);\r\n jTextField8.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField8ActionPerformed(evt);\r\n }\r\n });\r\n jTextField8.addKeyListener(new java.awt.event.KeyAdapter() {\r\n public void keyTyped(java.awt.event.KeyEvent evt) {\r\n jTextField8KeyTyped(evt);\r\n }\r\n });\r\n getContentPane().add(jTextField8, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 230, 250, 30));\r\n\r\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/add-icon.png\"))); // NOI18N\r\n jButton2.setBorderPainted(false);\r\n jButton2.setContentAreaFilled(false);\r\n jButton2.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton2ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 540, 70, 80));\r\n\r\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/edit_60_328965.png\"))); // NOI18N\r\n jButton3.setBorderPainted(false);\r\n jButton3.setContentAreaFilled(false);\r\n jButton3.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton3ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(250, 550, 80, 70));\r\n\r\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 1, 12)); // NOI18N\r\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/delete_action_discard.png\"))); // NOI18N\r\n jButton4.setBorderPainted(false);\r\n jButton4.setContentAreaFilled(false);\r\n jButton4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton4ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 550, 70, 70));\r\n\r\n lbhora.setFont(new java.awt.Font(\"SansSerif\", 1, 24)); // NOI18N\r\n lbhora.setForeground(new java.awt.Color(240, 240, 240));\r\n lbhora.setText(\"00:00:00\");\r\n getContentPane().add(lbhora, new org.netbeans.lib.awtextra.AbsoluteConstraints(1180, 10, -1, 44));\r\n\r\n jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/logout.png\"))); // NOI18N\r\n jButton5.setBorder(null);\r\n jButton5.setBorderPainted(false);\r\n jButton5.setContentAreaFilled(false);\r\n jButton5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton5ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(1280, 10, -1, -1));\r\n\r\n jLabel8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/giphy.gif\"))); // NOI18N\r\n getContentPane().add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(1110, 90, -1, -1));\r\n\r\n jButton6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/CLEAN-AIR-ICON2.png\"))); // NOI18N\r\n jButton6.setBorderPainted(false);\r\n jButton6.setContentAreaFilled(false);\r\n jButton6.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton6ActionPerformed(evt);\r\n }\r\n });\r\n getContentPane().add(jButton6, new org.netbeans.lib.awtextra.AbsoluteConstraints(430, 550, -1, -1));\r\n\r\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Imagenes/fondo gris.jpg\"))); // NOI18N\r\n getContentPane().add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1350, 760));\r\n\r\n jMenuBar1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"PLANTAS\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 1, 12))); // NOI18N\r\n\r\n jMenu1.setText(\"CAPTURA DE DATOS\");\r\n jMenu1.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem4.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem4.setText(\"CLIENTES\");\r\n jMenuItem4.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem4ActionPerformed(evt);\r\n }\r\n });\r\n jMenu1.add(jMenuItem4);\r\n\r\n jMenuItem5.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem5.setText(\"USUARIOS\");\r\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem5ActionPerformed(evt);\r\n }\r\n });\r\n jMenu1.add(jMenuItem5);\r\n\r\n jMenuBar1.add(jMenu1);\r\n\r\n jMenu2.setText(\"PRODUCTOS\");\r\n jMenu2.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem9.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem9.setText(\"COMPONENTES\");\r\n jMenuItem9.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem9ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem9);\r\n\r\n jMenuItem10.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem10.setText(\"MATERIALES\");\r\n jMenuItem10.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem10ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem10);\r\n\r\n jMenuItem11.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem11.setText(\"FORMULA\");\r\n jMenuItem11.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem11ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem11);\r\n\r\n jMenuItem13.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem13.setText(\"PROCESO\");\r\n jMenuItem13.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem13ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem13);\r\n\r\n jMenuItem14.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem14.setText(\"OPB\");\r\n jMenuItem14.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem14ActionPerformed(evt);\r\n }\r\n });\r\n jMenu2.add(jMenuItem14);\r\n\r\n jMenuBar1.add(jMenu2);\r\n\r\n jMenu3.setText(\"PRODUCCION\");\r\n jMenu3.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n\r\n jMenuItem15.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem15.setText(\"ORDENES\");\r\n jMenuItem15.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jMenuItem15ActionPerformed(evt);\r\n }\r\n });\r\n jMenu3.add(jMenuItem15);\r\n\r\n jMenuItem16.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem16.setText(\"OPERACION\");\r\n jMenu3.add(jMenuItem16);\r\n\r\n jMenuItem17.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuItem17.setText(\"DATOS DESPUES DE LA OPERACION\");\r\n jMenu3.add(jMenuItem17);\r\n\r\n jMenuBar1.add(jMenu3);\r\n\r\n jMenu4.setText(\"REPORTES\");\r\n jMenu4.setFont(new java.awt.Font(\"Segoe UI\", 1, 12)); // NOI18N\r\n jMenuBar1.add(jMenu4);\r\n\r\n setJMenuBar(jMenuBar1);\r\n\r\n pack();\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n addSponsorLogoLabel = new javax.swing.JLabel();\n addSponsorLabel = new javax.swing.JLabel();\n addSponsorNameInput = new javax.swing.JTextField();\n addSponsorNameLabel = new javax.swing.JLabel();\n addSponsorFnameInput = new javax.swing.JTextField();\n addSponsorFnameLabel = new javax.swing.JLabel();\n addSponsorLnameInput = new javax.swing.JTextField();\n addSponsorLnameLabel = new javax.swing.JLabel();\n addSponsorPhoneInput = new javax.swing.JTextField();\n addSponsorPhoneLabel = new javax.swing.JLabel();\n addSponsorPledgeInput = new javax.swing.JTextField();\n addSponsorPledgeLabel = new javax.swing.JLabel();\n addSponsorBackButton = new javax.swing.JButton();\n addSponsorSubmitButton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n addSponsorLogoLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/eventplanner/horizonlogoTiny.png\"))); // NOI18N\n\n addSponsorLabel.setFont(new java.awt.Font(\"Dialog\", 1, 48)); // NOI18N\n addSponsorLabel.setText(\"Add Sponsor\");\n\n addSponsorNameLabel.setText(\"Name of Sponsor:\");\n\n addSponsorFnameLabel.setText(\"First Name:\");\n\n addSponsorLnameLabel.setText(\"Last Name:\");\n\n addSponsorPhoneLabel.setText(\"Phone:\");\n\n addSponsorPledgeLabel.setText(\"Pledge:\");\n\n addSponsorBackButton.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n addSponsorBackButton.setText(\"Back\");\n addSponsorBackButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSponsorBackButtonActionPerformed(evt);\n }\n });\n\n addSponsorSubmitButton.setFont(new java.awt.Font(\"Dialog\", 1, 18)); // NOI18N\n addSponsorSubmitButton.setText(\"Submit\");\n addSponsorSubmitButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSponsorSubmitButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(71, 71, 71)\n .addComponent(addSponsorLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addSponsorLogoLabel))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(143, 143, 143)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(addSponsorNameLabel)\n .addComponent(addSponsorFnameLabel)\n .addComponent(addSponsorLnameLabel)\n .addComponent(addSponsorPhoneLabel)\n .addComponent(addSponsorPledgeLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(addSponsorNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorFnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorLnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPhoneInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPledgeInput, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(152, 152, 152)\n .addComponent(addSponsorSubmitButton)\n .addGap(33, 33, 33)\n .addComponent(addSponsorBackButton)))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addGap(42, 42, 42))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(addSponsorLogoLabel))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(addSponsorLabel)\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorNameLabel)\n .addComponent(addSponsorNameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorFnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorFnameLabel))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(addSponsorLnameInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorLnameLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorPhoneInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPhoneLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorPledgeInput, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSponsorPledgeLabel))\n .addGap(28, 28, 28)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSponsorSubmitButton)\n .addComponent(addSponsorBackButton))\n .addContainerGap(47, Short.MAX_VALUE))\n );\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 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n }",
"private void initComponents() {//GEN-BEGIN:initComponents\n\n FormListener formListener = new FormListener();\n\n addMouseListener(formListener);\n\n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n businessNameJLabel = new javax.swing.JLabel();\n enterpriseNameJLabel = new javax.swing.JLabel();\n networkNameJLabel = new javax.swing.JLabel();\n jSeparator1 = new javax.swing.JSeparator();\n organizationNameJLabel = new javax.swing.JLabel();\n jSeparator2 = new javax.swing.JSeparator();\n titleJLabel = new javax.swing.JLabel();\n drugNameJLabel = new javax.swing.JLabel();\n drugNameJTextField = new javax.swing.JTextField();\n backJButton = new javax.swing.JButton();\n addToCatalogJButton = new javax.swing.JButton();\n statusJLabel = new javax.swing.JLabel();\n statusJTextField = new javax.swing.JTextField();\n\n businessNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n businessNameJLabel.setText(\"Drug Tracking System\");\n\n enterpriseNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n enterpriseNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n enterpriseNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n enterpriseNameJLabel.setPreferredSize(new java.awt.Dimension(170, 24));\n\n networkNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n networkNameJLabel.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n networkNameJLabel.setMaximumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setMinimumSize(new java.awt.Dimension(195, 24));\n networkNameJLabel.setPreferredSize(new java.awt.Dimension(195, 24));\n\n organizationNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 20)); // NOI18N\n organizationNameJLabel.setMinimumSize(new java.awt.Dimension(170, 24));\n organizationNameJLabel.setPreferredSize(new java.awt.Dimension(190, 24));\n\n titleJLabel.setFont(new java.awt.Font(\"Times New Roman\", 1, 26)); // NOI18N\n titleJLabel.setText(\"Drug Details\");\n\n drugNameJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n drugNameJLabel.setText(\"Drug Name\");\n\n drugNameJTextField.setEditable(false);\n drugNameJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n drugNameJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n drugNameJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\n\n backJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n backJButton.setText(\"Back\");\n backJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n backJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n backJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backJButtonActionPerformed(evt);\n }\n });\n\n addToCatalogJButton.setFont(new java.awt.Font(\"Times New Roman\", 1, 15)); // NOI18N\n addToCatalogJButton.setText(\"Add To Catalog\");\n addToCatalogJButton.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n addToCatalogJButton.setEnabled(false);\n addToCatalogJButton.setPreferredSize(new java.awt.Dimension(80, 30));\n addToCatalogJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addToCatalogJButtonActionPerformed(evt);\n }\n });\n\n statusJLabel.setFont(new java.awt.Font(\"Times New Roman\", 0, 16)); // NOI18N\n statusJLabel.setText(\"Status\");\n\n statusJTextField.setEditable(false);\n statusJTextField.setFont(new java.awt.Font(\"Times New Roman\", 0, 13)); // NOI18N\n statusJTextField.setMinimumSize(new java.awt.Dimension(120, 26));\n statusJTextField.setPreferredSize(new java.awt.Dimension(120, 26));\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 .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 322, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(businessNameJLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 211, Short.MAX_VALUE)\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(273, 273, 273)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(47, 47, 47)\n .addComponent(titleJLabel))\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(statusJLabel)\n .addGap(18, 18, 18)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(drugNameJLabel)\n .addGap(18, 18, 18)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(311, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(businessNameJLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(enterpriseNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(networkNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(organizationNameJLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(titleJLabel)\n .addGap(75, 75, 75)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(drugNameJLabel)\n .addComponent(drugNameJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(statusJLabel)\n .addComponent(statusJTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(backJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addToCatalogJButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(201, Short.MAX_VALUE))\n );\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ScheduleForm() {\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 }",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \r\n private void initComponents() {\r\n \r\n setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createLineBorder(Color.black), javax.swing.BorderFactory.createBevelBorder(BevelBorder.LOWERED)));\r\n \r\n setEnabled(false);\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 396, Short.MAX_VALUE));\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 324, Short.MAX_VALUE));\r\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mouseClickedHandler(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n mouseExitedHandler(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n mouseEnteredHandler(evt);\n }\n });\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 intrebarea() {\n initComponents();\n }"
] | [
"0.7391324",
"0.7391324",
"0.7391324",
"0.73507947",
"0.7331336",
"0.7329534",
"0.7294399",
"0.7266276",
"0.7225115",
"0.7214399",
"0.7159046",
"0.7153979",
"0.7149596",
"0.71404046",
"0.71353865",
"0.71322703",
"0.7120659",
"0.7118281",
"0.71138704",
"0.71097445",
"0.70875806",
"0.7086297",
"0.7063141",
"0.7059412",
"0.7031993",
"0.7029333",
"0.7023755",
"0.7021018",
"0.7016848",
"0.7010761",
"0.70032567",
"0.6965371",
"0.6960078",
"0.69577163",
"0.695701",
"0.695701",
"0.6956897",
"0.69511855",
"0.695095",
"0.6939194",
"0.69330585",
"0.69287694",
"0.69286805",
"0.6927726",
"0.6924274",
"0.69221383",
"0.69179463",
"0.6915756",
"0.6914778",
"0.69096124",
"0.6909201",
"0.6909201",
"0.6909201",
"0.6904961",
"0.68996817",
"0.6895742",
"0.68939936",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6893979",
"0.6892143",
"0.68860596",
"0.68860596",
"0.68860596",
"0.68860596",
"0.68860596",
"0.68860596",
"0.68860596",
"0.68860596",
"0.68860596",
"0.68851507",
"0.6883863",
"0.68706375",
"0.6870385",
"0.68677676",
"0.6861491",
"0.6859924",
"0.68547326",
"0.68512726",
"0.68503535",
"0.68472606",
"0.68460053",
"0.68400043",
"0.6839433",
"0.6838091",
"0.6829747",
"0.68283695",
"0.6826517",
"0.68174976",
"0.6814788",
"0.6812018"
] | 0.0 | -1 |
END_INCLUDE(recyclerViewSampleViewHolder) Initialize the dataset of the Adapter. | public PreGalleryAdaptador(String[] dataSet) {
mDataSet = dataSet;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initDataset() {\r\n CollGestDBHelper collGestDBHelper = new CollGestDBHelper(activityContext);\r\n List<CollGestItem> listAllItems = collGestDBHelper.getAllGestItem();\r\n\r\n mDataset = new String[listAllItems.size()][7];\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n System.out.println(listAllItems.size());\r\n System.out.println(listAllItems.toString());\r\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++++++++++++++++++++++++++++++++++++++++++++++++++\");\r\n for (int i = 0; i < listAllItems.size(); i++) {\r\n mDataset[i][0] = listAllItems.get(i).getItemName();\r\n mDataset[i][1] = Integer.toString(listAllItems.get(i).getItemMinJoueurs());\r\n mDataset[i][2] = Integer.toString(listAllItems.get(i).getItemMaxJoueurs());\r\n mDataset[i][3] = Integer.toString(listAllItems.get(i).getItemDuration());\r\n mDataset[i][4] = listAllItems.get(i).getItemTypes();\r\n mDataset[i][5] = listAllItems.get(i).getItemCheckedOut();\r\n mDataset[i][6] = listAllItems.get(i).getItemLastPlayed();\r\n }\r\n System.out.println(mDataset);\r\n }",
"public MyAdapter(ArrayList<MyData> myDataset) {\n\n mDataset = myDataset;\n }",
"@Override\n protected void initData() {\n this.classes = new ArrayList<>();\n this.classes.add(SmartRouterSampleActivity.class);\n this.classes.add(CustomRouterActivity.class);\n this.classes.add(RouterCenterActivity.class);\n this.adapter = new MenuRecyclerViewAdapter();\n this.adapter.setList(classes);\n this.recyclerView.setAdapter(adapter);\n }",
"private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }",
"public MyAdapter(ArrayList<String> myDataset) {\n mDataset = myDataset;\n }",
"private void initializeData() {\n String[] storeTitles = getResources().getStringArray(R.array.store_titles);\n String[] storeDescriptions = getResources().getStringArray(R.array.store_descriptions);\n TypedArray storeImages = getResources().obtainTypedArray(R.array.stores_images);\n\n //Clear existing data to avoid duplication\n storeData.clear();\n\n //Create an array list of dessert recipes with title, description and images\n for(int i = 0; i < storeTitles.length; i++){\n storeData.add(new Store(storeImages.getResourceId(i,0), storeTitles[i],storeDescriptions[i]));\n }\n\n //Clear up data in the typed array\n storeImages.recycle();\n\n //Notify the adapter of the change in the data set\n storeAdapter.notifyDataSetChanged();\n }",
"public CardAdapter(ArrayList<HashMap<String, String>> myDataset) {\n mDataset = myDataset;\n }",
"private void setRecyclerViewData() {\n }",
"public MyAdapter(ArrayList<Pair<String, String>> myDataset) {\n mDataset = myDataset;\n }",
"public void InitData() {\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE, CanScrollCarInfoView.Item.VALUE};\n this.mItemTitleIds = new int[]{R.string.can_dlxdcgz, R.string.can_gybjd, R.string.can_dczjysxgz, R.string.can_zcbjd, R.string.can_djgzzsd, R.string.can_djxtgr, R.string.can_igbt_wdzt, R.string.can_zkbgz, R.string.can_zbzt, R.string.can_cdszzt, R.string.can_dcdc, R.string.can_dlxdcqd, R.string.can_fzdcdl};\n this.mWarn = new CanDataInfo.DT_V80_BMS_WARN();\n }",
"private void initializeAdapter() {\n }",
"public DataSet() {\n this.bars = new ArrayList<Bar>();\n this.reviews = new ArrayList<Review>();\n }",
"public DataAdapter() {\n }",
"@Override\n\tpublic void initData() {\n\n\t\tsuper.initData();\n\t\tinitLsitData();\n\n\t\tviewpager.setAdapter(new MyPagerAdapter());\n\t\tindicator.setViewPager(viewpager);\n\n\t}",
"public void initRecyclerView() {\n rvTodos = (RecyclerView) findViewById(R.id.rvTodos);\n\n // Create adapter passing in the sample user data\n TodoAdapter adapter = new TodoAdapter(todos, this);\n // Attach the adapter to the recyclerview to populate items\n rvTodos.setAdapter(adapter);\n // Set layout manager to position the items\n LinearLayoutManager mLayoutManager = new LinearLayoutManager(this);\n mLayoutManager.setReverseLayout(true);\n mLayoutManager.setStackFromEnd(true);\n rvTodos.setLayoutManager(mLayoutManager);\n // That's all!\n }",
"public void initRecyclerView() {\n\r\n\r\n recyclerView.setHasFixedSize(true);\r\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\r\n\r\n\r\n adapter = new LokerAdapter(getContext(), itemList);\r\n recyclerView.setAdapter(adapter);\r\n\r\n }",
"private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_car_type_select, R.string.can_car_lock_set, R.string.can_ac_set, R.string.can_light_set, R.string.can_sshbl, R.string.can_cds, R.string.can_car_info, R.string.can_oil_mile_info, R.string.can_tmps, R.string.can_other_set, R.string.can_lang_set};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON};\n this.mItemIcons = new int[]{R.drawable.can_icon_esc, R.drawable.can_icon_lock, R.drawable.can_icon_ac, R.drawable.can_icon_light, R.drawable.can_icon_service, R.drawable.can_icon_cds, R.drawable.can_icon_sudu, R.drawable.can_icon_consumption, R.drawable.can_icon_tpms, R.drawable.can_icon_setup, R.drawable.can_icon_tyres};\n this.mItemVisibles[0] = 0;\n this.mItemVisibles[1] = 0;\n this.mItemVisibles[3] = 0;\n this.mItemVisibles[4] = 0;\n this.mItemVisibles[5] = 0;\n this.mItemVisibles[6] = 0;\n this.mItemVisibles[7] = 0;\n this.mItemVisibles[8] = 0;\n this.mItemVisibles[9] = 0;\n }",
"public StockRecyclerViewAdapter(ArrayList<StockData> myDataset) {\n mDataset = myDataset;\n }",
"public GalleryAdapter(ArrayList<String> myDataset) {\n mDataset = myDataset;\n }",
"private void initializeData() {\n String[] sportsList = getResources().getStringArray(R.array.track_title);\n String[] sportsInfo = getResources().getStringArray(R.array.track_category);\n\n // Clear the existing data (to avoid duplication).\n mSportsData.clear();\n\n TypedArray trackImageResources =\n getResources().obtainTypedArray(R.array.track_image);\n\n // Create the ArrayList of Sports objects with titles and\n // information about each sport.\n for (int i = 0; i < sportsList.length; i++) {\n for (int j = 0; j < workout.size(); j++) {\n if (workout.get(j).equals(sportsList[i])) {\n mSportsData.add(new Track(sportsList[i], sportsInfo[i], trackImageResources.getResourceId(i, 0)));\n }\n }\n }\n\n // Notify the adapter of the change.\n mAdapter.notifyDataSetChanged();\n\n trackImageResources.recycle();\n }",
"private void initData() {\n contents.clear();\n images.clear();\n contents.add(\"荣誉殿堂\");\n contents.add(getResources().getString(R.string.mine_item1));\n contents.add(getResources().getString(R.string.mine_item2));\n contents.add(getResources().getString(R.string.mine_item4));\n contents.add(getResources().getString(R.string.mine_item3));\n\n String sex = SPHelper.getDetailMsg(getActivity(), Cons.USER_INFO, getString(R.string.appsex_man));\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n images.add(BGHelper.setButtonNotify(getActivity(), sex));\n images.add(BGHelper.setButtonReport(getActivity(), sex));\n images.add(sex.equals(\"M\") ? R.drawable.ioc_mine_que_blue : R.drawable.ioc_mine_que_red);\n images.add(BGHelper.setButtonSetting(getActivity(), sex));\n\n\n adapter = new MineAdapter(getActivity(), contents, images, this);\n lv_mine.setAdapter(adapter);\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_vehi_status, R.string.can_csxx, R.string.can_car_drive_info, R.string.can_tyres_tpms, R.string.can_car_set, R.string.can_battery_infos, R.string.can_dtxx, R.string.can_dczxx, R.string.can_bmsgzxx, R.string.can_can_iap};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.TEXT, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.TEXT, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON, CanScrollCarInfoView.Item.ICON};\n this.mItemIcons = new int[]{255, R.drawable.can_icon_light, R.drawable.can_icon_tpms, R.drawable.can_golf_icon14, R.drawable.can_icon_setup, 255, R.drawable.can_icon_units, R.drawable.can_icon_hybrid, R.drawable.can_icon_tpms_set, R.drawable.can_icon_factory};\n if (CanJni.GetSubType() != 2) {\n this.mItemVisibles[4] = 0;\n }\n }",
"private void initRecyclerView() {\n Log.d(TAG, \"initRecyclerView: init recyclerView.\");\n RecyclerView recyclerView = findViewById(R.id.homepage_recycview);\n\n //Create an adapter to display the groups' information in a recyclerview\n GroupRVA adapter = new GroupRVA(this, results, GroupProfile.class);\n recyclerView.setAdapter(adapter);\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\n }",
"private void initView() {\n // set layout for recycle view\n //hasFixedSize true if adapter changes cannot affect the size of the RecyclerView\n recyclerView.setHasFixedSize(true);\n // this layout can be vertical or horizontal by change the second param\n // of LinearLayoutManager, and display up to down by set the third param false\n LinearLayoutManager layoutManager = new LinearLayoutManager(this,\n LinearLayoutManager.VERTICAL, false);\n\n recyclerView.setLayoutManager(layoutManager);\n importData();\n // set adapter for recycle view\n recyclerView.setAdapter(alarmAdapter);\n }",
"private void initializeData() {\n\n TypedArray sportsImageResources = getResources().obtainTypedArray(R.array.sports_images);\n String[] sportsList = getResources().getStringArray(R.array.sports_title);\n String[] sportsInfo = getResources().getStringArray(R.array.sports_info);\n\n //clear the existing data(to avoid the duplication)\n mSportsData.clear();\n\n //create the arraylist of sports objects with titles and information\n for(int i = 0; i<sportsList.length;i++){\n mSportsData.add(new Sport(sportsList[i], sportsInfo[i], sportsImageResources.getResourceId(i, 0)));\n }\n\n //Notify the change to the adapter\n mAdapter.notifyDataSetChanged();\n sportsImageResources.recycle(); //avoid duplication, works fine without it\n }",
"private void initRecyclerView(){\n facility_RCV_result.setHasFixedSize(true);\n layoutManager = new LinearLayoutManager(this.getContext());\n facility_RCV_result.setLayoutManager(layoutManager);\n mAdapter = new FacilityRecyclerViewAdapter(facilityArrayList);\n facility_RCV_result.setAdapter(mAdapter);\n }",
"public MyAdapter(ArrayList<GpsData> myDataset) {\r\n dataset = myDataset;\r\n }",
"public MyRecyclerViewAdapter(Context context, ArrayList<itemView> data) {\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n }",
"public ModelRecyclerAdapter(Context context, ArrayList<Model> myDataset) {\n mDataset = myDataset;\n mContext = context.getApplicationContext();\n mInflater = LayoutInflater.from(context);\n }",
"public news_adapter(Context context,ArrayList<data> dataset) {\n mData=dataset;\n mInflater = LayoutInflater.from(context);\n }",
"private void setUpRecyclerView() {\n\n if (listOfPlants.size() == 0) {\n populatePlantList();\n }\n\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(getContext());\n mAdapter = new RecyclerViewAdapter(listOfPlants, getActivity());\n mRecyclerView.setLayoutManager(mLayoutManager);\n mRecyclerView.setAdapter(mAdapter);\n }",
"private void setUpRecyclerView() {\n noDataAvailableTextView = (TextView) findViewById(R.id.videoNoDataAvailableTextView);\n videoRecyclerView = (RecyclerView) findViewById(R.id.VideoRecyclerView);\n videoRecyclerView.setHasFixedSize(true);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this);\n videoRecyclerView.setLayoutManager(linearLayoutManager);\n }",
"private void initData() {\n\t\tcommentAdapter = new AvCommentAdapter(AvCommentActivity.this);\n\t\tcommentListView.setAdapter(commentAdapter);\n\t\taid = getIntent().getIntExtra(\"comment_aid\", 0);\n\t}",
"private void setRecyclerViewData() {\n\n itemList = new ArrayList<ListItem>();\n itemList.add(new RememberCardView(\"Du musst 12€ zahlen\"));\n itemList.add(new DateCardItem(\"Mo\", \"29.07.\", \"Training\", \"20:00\", \"21:45\"));\n itemList.add(new VoteCardItem(\"Welche Trikotfarbe ist besser?\"));\n }",
"public MyAdapter(ArrayList<pets> myDataset) {\n this.mDataset = myDataset;\n }",
"private void fillAdapter() {\n LoaderManager loaderManager = getSupportLoaderManager();\n Loader<String> recipesListLoader = loaderManager.getLoader(RECIPES_LIST_LOADER);\n if(recipesListLoader == null) {\n loaderManager.initLoader(RECIPES_LIST_LOADER, null, this);\n } else {\n loaderManager.restartLoader(RECIPES_LIST_LOADER, null, this);\n }\n }",
"private void initRecyclerView() {\r\n visitsViewModel.setPlaceholderText(true);\r\n\r\n RecyclerView mRecyclerView = binding.gridRecyclerView;\r\n mRecyclerView.setHasFixedSize(true);\r\n mRecyclerView.setLayoutManager(new LinearLayoutManager(activity));\r\n\r\n visitsAdapter = new VisitsAdapter();\r\n mRecyclerView.setAdapter(visitsAdapter);\r\n\r\n visitsViewModel.visits.observe(getViewLifecycleOwner(), this::resetRecycler);\r\n }",
"public MyAdapter(Context context, ArrayList<String> dataset) {\n mContext = context;\n mDataset = dataset;\n setHasStableIds(true);\n }",
"private void initRecyclerview() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new MovieAdapter(this);\n recyclerView.setAdapter(mAdapter);\n }",
"@Override\n public int getItemCount() {\n return dataset.length;\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_volvo_cysjysz, R.string.can_volvo_zdsm, R.string.can_door_unlock, R.string.can_volvo_zdhsj, R.string.can_volvo_qxzchsj, R.string.can_volvo_qxychsj, R.string.can_volvo_fxplsz, R.string.can_volvo_dstc, R.string.can_volvo_csaq, R.string.can_volvo_hfqcsz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.SWITCH, CanScrollCarInfoView.Item.TITLE};\n this.mPopValueIds[2] = new int[]{R.string.can_door_unlock_key2, R.string.can_door_unlock_key1};\n this.mPopValueIds[6] = new int[]{R.string.can_ac_low, R.string.can_ac_mid, R.string.can_ac_high};\n this.mSetData = new CanDataInfo.VolvoXc60_CarSet();\n }",
"private void setupRecyclerView(@NonNull RecyclerView recyclerView) {\r\n myAdapter = new SimpleItemRecyclerViewAdapter(model.getShelters());\r\n recyclerView.setAdapter(myAdapter);\r\n }",
"private void initData() {\n }",
"@Override\n public void initData() {\n super.initData();\n\n RetrofitService.getInstance()\n .getApiCacheRetryService()\n .getDetail(appContext.getWenDang(Const.Detail, wendangid))\n .enqueue(new SimpleCallBack<WenDangMode>() {\n @Override\n public void onSuccess(Call<WenDangMode> call, Response<WenDangMode> response) {\n if (response.body() == null) return;\n WenDangMode data = response.body();\n title_text.setText(data.getPost().getPost_title());\n String s = data.getPost().getPost_excerpt();\n excerpt_text.setText(s.replaceAll(\"[…]\", \"\"));\n wendang_text.setText(stripHtml(data.getPost().getPost_content()));\n url = data.getPost().getDownload_page();\n list.clear();\n\n list = quChu(getImgStr(data.getPost().getPost_content()));\n\n adapter.bindData(true, list);\n//\t\t\t\t\t\trecyclerView.notifyMoreFinish(true);\n rootAdapter.notifyDataSetChanged();\n beautifulRefreshLayout.finishRefreshing();\n }\n });\n }",
"RecyclerViewAdapter(Context context, String[] data, Point size) {\n mContext = context;\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n }",
"public void setUpRecycler() {\n StaggeredGridLayoutManager gridManager = new StaggeredGridLayoutManager(3,StaggeredGridLayoutManager.VERTICAL);\n gvResults.setLayoutManager(gridManager);\n gvResults.addOnScrollListener(new EndlessRecyclerViewScrollListener(gridManager) {\n @Override\n public void onLoadMore(int page, int totalItemsCount) {\n fetchArticles(page,false);\n }\n });\n }",
"private void initData() {\n\t}",
"public void initialiseRecycler(ArrayList<String> deviceID, ArrayList<String>deviceNames){\r\n\r\n\r\n RecyclerView recyclerView = findViewById(R.id.recyclerView);\r\n\r\n\r\n adapterDevices= new MyDevicesAdapterView(this, deviceID, deviceNames);\r\n\r\n recyclerView.setAdapter(adapterDevices);\r\n\r\n recyclerView.setLayoutManager(new LinearLayoutManager(this));\r\n\r\n\r\n }",
"MyRecyclerViewAdapter(Context context, List<Integer> data) {\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n }",
"public void InitData() {\n this.mItemTitleIds = new int[]{R.string.can_rvs_camera, R.string.can_ccaqyxfz};\n this.mItemTypes = new CanScrollCarInfoView.Item[]{CanScrollCarInfoView.Item.POP, CanScrollCarInfoView.Item.SWITCH};\n this.mPopValueIds[0] = new int[]{R.string.can_hjyxfzxt, R.string.can_dccsyxfzxt};\n this.mCarData = new CanDataInfo.LuxgenOd_SetData();\n }",
"@Override\n protected void initData() {\n\n setFragment(homeRecyclerFragment);\n }",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"private void InitializeAdapter() {\n arrayAdapter = new PlanListRVArrayAdapter(mPlanList);\n recyclerView.setAdapter(arrayAdapter);\n /* arrayAdapter.registerAdapterDataObserver(new RecyclerView.AdapterDataObserver() {\n @Override\n public void onChanged() {\n super.onChanged();\n //arrayAdapter.notifyDataSetChanged();\n }\n\n @Override\n public void onItemRangeChanged(int positionStart, int itemCount) {\n // arrayAdapter.notifyItemRangeChanged(positionStart,itemCount);\n }\n\n @Override\n public void onItemRangeInserted(int positionStart, int itemCount) {\n // arrayAdapter.notifyItemRangeRemoved(positionStart,itemCount);\n }\n\n @Override\n public void onItemRangeRemoved(int positionStart, int itemCount) {\n // arrayAdapter.notifyItemRangeRemoved(positionStart,itemCount);\n }\n\n @Override\n public void onItemRangeMoved(int fromPosition, int toPosition, int itemCount) {\n // arrayAdapter.notifyItemMoved(fromPosition,toPosition);\n // TODO itemcount가 1일 경우이므로 1보다 크면 제대로 동작하지 않는다.\n }\n });\n*/\n\n }",
"@Override\n public int getItemCount() {\n return mDataset.length;\n }",
"@Override\n public int getItemCount() {\n return mDataset.length;\n }",
"public MyAdapter(List<Track> myDataset, Activity activity) {\n values = myDataset;\n this.activity = activity;\n }",
"private void initRecyclerView(android.view.View view){\n mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(MainActivity.sContext);\n mRecyclerView.setLayoutManager(mLayoutManager);\n mAdapter = new TopicRecyclerViewAdapter( mPresenter.getDataSet() );\n mRecyclerView.setAdapter(mAdapter);\n\n // Code to Add an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).addItem(obj, index);\n\n // Code to remove an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).deleteItem(index);\n }",
"public AdapterForDisplayRecipes(Context context, ArrayList<RecipeModel> data) {\n mMainActivity = (MainActivity) context;\n this.mInflater = LayoutInflater.from(context);\n this.mData = data;\n// this.listener = listener;\n }",
"public void setupAdapter() {\n recyclerAdapter = new PhotosAdapter(this);\n recyclerViewPhotos.setAdapter(recyclerAdapter);\n }",
"private void setupRecyclerView() {\r\n\r\n LinearLayoutManager layoutManager = new LinearLayoutManager\r\n (getContext(), LinearLayoutManager.VERTICAL, false);\r\n if (adapter == null) {\r\n adapter = new SchoolAdapter(getContext(), schoolList);\r\n recyclerView.setLayoutManager(layoutManager);\r\n recyclerView.setAdapter(adapter);\r\n recyclerView.setItemAnimator(new DefaultItemAnimator());\r\n recyclerView.setNestedScrollingEnabled(true);\r\n } else {\r\n adapter.notifyDataSetChanged();\r\n }\r\n }",
"public FeedCustomAdapter(List<Post> dataSet) {\n outfitDataSet = dataSet;\n }",
"private void init() {\n\n if (shortListUserList.size()==0){\n fragmentShortlistuserListLayoutBinding.noDataAvailableTv.setVisibility(View.VISIBLE);\n fragmentShortlistuserListLayoutBinding.recyclerView.setVisibility(View.GONE);\n }else {\n fragmentShortlistuserListLayoutBinding.recyclerView.setVisibility(View.VISIBLE);\n fragmentShortlistuserListLayoutBinding.noDataAvailableTv.setVisibility(View.VISIBLE);\n ShortListedUserAdapter mAdapter = new ShortListedUserAdapter(getContext(), shortListUserList);\n RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(getContext());\n fragmentShortlistuserListLayoutBinding.recyclerView.setLayoutManager(mLayoutManager);\n fragmentShortlistuserListLayoutBinding.recyclerView.setItemAnimator(new DefaultItemAnimator());\n fragmentShortlistuserListLayoutBinding.recyclerView.setAdapter(mAdapter);\n }\n }",
"private void initializeReviewsAdapter() {\n mReviewsAdapter = new ReviewsAdapter(mUserReviewDataArrayList, this, this, TRUE);\n mBinding.rvPdpProductReviews.setAdapter(mReviewsAdapter);\n }",
"public FavoriteAdapter(ArrayList<String> myDataset) { // 초기 데이터형태\n //mContext = myContext;\n mDataset = myDataset;\n }",
"@Override\n public int getItemCount() {\n return mDataset.length();\n }",
"public FeedRecyclerAdapter() {\n super();\n }",
"public RecyclerTransactionAdaptor(List<Transaction> myDataset) {\n mDataset = myDataset;\n }",
"private boolean initializeDataset(){\n this.dataset = new Dataset(this.users.size(),this.recipes.size());\n //1. Read Dataset\n boolean succesReadDataset = this.dataset.read(this.userMap,this.recipeMap);\n if (!succesReadDataset) return false;\n return true;\n }",
"public CommunicationCommentsAdapter(ArrayList<Comment> myDataset) {\n mDataset = myDataset;\n mImageLoader = Requester.getInstance().getImageLoader();\n }",
"private void populateAdapter(){\n mAdapter = new MovieRecyclerAdapter(context, moviesList, this);\n mRecyclerView.setAdapter(mAdapter);\n }",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"@Override\n public int getItemCount() {\n return mDataset == null ? 0 : mDataset.size();\n }",
"public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}",
"private void initRecyclerView() {\n mAdapter = new FriendAdapter(new ClickHandler<Author>() {\n @Override\n public void onClick(Author clickedItem) {\n\n // Start the UserActivity for the clicked user to allow the user to confirm this\n // is the person they are trying to connect with\n Intent intent = new Intent(SearchUserActivity.this, UserActivity.class);\n intent.putExtra(AUTHOR_KEY, clickedItem.firebaseId);\n\n startActivity(intent);\n }\n });\n mAdapter.showAddSocialButton(true);\n\n mBinding.searchUserLayout.searchUserRv.setLayoutManager(new LinearLayoutManager(this));\n mBinding.searchUserLayout.searchUserRv.setAdapter(mAdapter);\n }",
"private void initAdapter() {\n GridLayoutManager layoutManager = new GridLayoutManager(this, 3);\n //设置布局管理器\n rv.setLayoutManager(layoutManager);\n //设置为垂直布局,这也是默认的\n layoutManager.setOrientation(OrientationHelper.VERTICAL);\n\n adapter1 = new CommomRecyclerAdapter(ChoiceCityActivity.this, stringList, R.layout.recy_country, new CommomRecyclerAdapter.OnItemClickListener() {\n @Override\n public void onItemClick(CommonRecyclerViewHolder holder, int postion) {\n //热门城市点击\n Map map = new HashMap();\n map.put(\"p1\",stringList.get(postion).getHotCity() );\n StatisticsManager.getInstance(mContext).addEventAidl(1812,map);\n\n Intent intent = new Intent(ChoiceCityActivity.this, MainActivity.class);\n intent.putExtra(\"country\", stringList.get(postion).getHotCountry());\n intent.putExtra(\"city\", stringList.get(postion).getHotCity());\n Constans.CITY = stringList.get(postion).getHotCity();\n Constans.COUNTRY = stringList.get(postion).getHotCountry();\n if (isFirst == 1) {\n isFirst=0;\n startActivity(intent);\n } else {\n setResult(RESULT_OK, intent);\n }\n finish();\n }\n }, null) {\n @Override\n public void convert(CommonRecyclerViewHolder holder, Object o, int position) {\n TextView tv_country_name = holder.getView(R.id.tv);\n tv_country_name.setText(stringList.get(position).getHotCity());\n }\n };\n rv.setAdapter(adapter1);\n\n\n }",
"public FlatAdapter(List<Flat> myDataset, Context context, RecyclerView recyclerView) {\n mFlatList = myDataset;\n mFlatListFiltered=myDataset;\n mRecyclerV = recyclerView;\n mContext=context;\n setHasStableIds(true);\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return dataset.size();\n }",
"@Override\r\n public int getItemCount() {\r\n return dataset.size();\r\n }",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"private void initializeRecyclerView() {\n if (mImages != null) {\n if (mImages.size() > 0) {\n mImagesRecyclerView.setBackground(null);\n } else {\n mImagesRecyclerView.setBackgroundResource(R.drawable.placeholder_image);\n }\n\n mImagesRecyclerView.setLayoutManager(new GridLayoutManager(this, 3));\n\n mAdapter = new ImagesRecyclerViewAdapter(this, mImages, mImageDescription, this);\n mImagesRecyclerView.setAdapter(mAdapter);\n }\n }",
"private void fillData() {\n\t\tmCursor = dbHelper.getResultsByTime();\n\t\tstartManagingCursor(mCursor);\n\n\t\tdataListAdapter = new SimpleCursorAdapter(this, R.layout.row, mCursor,\n\t\t\t\tFROM, TO);\n\t\tmConversationView.setAdapter(dataListAdapter);\n\t}",
"public void setAdapter() {\n datalist = new ArrayList<>();\n\n adapter = new SoundListAdapter(context, datalist, new AdapterClickListener() {\n @Override\n public void onItemClick(View view, int pos, Object object) {\n\n SoundsModel item = (SoundsModel) object;\n\n if (view.getId() == R.id.done) {\n stopPlaying();\n downLoadMp3(item.id, item.sound_name, item.acc_path);\n } else if (view.getId() == R.id.fav_btn) {\n callApiForFavSound(pos, item);\n } else {\n if (thread != null && !thread.isAlive()) {\n stopPlaying();\n playaudio(view, item);\n } else if (thread == null) {\n stopPlaying();\n playaudio(view, item);\n }\n }\n }\n });\n\n recyclerView.setAdapter(adapter);\n\n\n }",
"@Override\n public int getItemCount() {\n return mDataset.length();\n }",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"@Override\r\n\tpublic void initData() {\n\t}",
"@Override\n public int getItemCount() {\n return mDataset.size();\n\n }",
"private void fillData() {\n adapter = new ListViewAdapter();\n listview01.setAdapter(adapter);\n }",
"public ChatRoomAdapter(ArrayList<String> myDataset, frag_chatrooms ctx) {\n mDataset = myDataset;\n interact = (InteractWithRecyclerView) ctx;\n }",
"public CharacterAdapter(List<MarvelCharacter> myDataset) {\n mDataset = myDataset;\n }",
"private void initializeViewHolder() {\n mCommon.findControls(this);\n\n mViewHolder = new RecurringTransactionViewHolder();\n\n // Due Date = date\n mCommon.initDateSelector();\n\n // Payment Date, next occurrence\n mViewHolder.paymentDateTextView = (TextView) findViewById(R.id.paymentDateTextView);\n\n // Previous/Next day adjustment buttons for the Payment Day\n mViewHolder.paymentPreviousDayButton = (FontIconView) findViewById(R.id.paymentPreviousDayButton);\n mViewHolder.paymentNextDayButton = (FontIconView) findViewById(R.id.paymentNextDayButton);\n\n // Recurrence label\n mViewHolder.recurrenceLabel = (TextView) findViewById(R.id.recurrenceLabel);\n\n // Payments Left label\n mViewHolder.paymentsLeftTextView = (TextView) findViewById(R.id.textViewTimesRepeated);\n\n // Payments Left text input\n mViewHolder.paymentsLeftEditText = (EditText) findViewById(R.id.editTextTimesRepeated);\n }",
"private void setDataInRecyclerView() {\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(linearLayoutManager);\n // call the constructor of UsersAdapter to send the reference and data to Adapter\n ReviewAdapter reviewAdapter = new ReviewAdapter(reviewListResponseData, this);\n recyclerView.setAdapter(reviewAdapter); // set the Adapter to RecyclerView\n }",
"private void setupRecycler() {\n final LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n RecyclerView attractionsRecycler = (RecyclerView) getActivity().findViewById(R.id.contentMain_attractionsRecycler);\n attractionsRecycler.setLayoutManager(linearLayoutManager);\n\n attractionsAdapter = new AttractionRowAdapter(getActivity(), FavouritesListFragment.this, DataManager.currentFavouritesList);\n attractionsRecycler.setAdapter(attractionsAdapter);\n }",
"private void addSampleData() {\r\n }"
] | [
"0.6685727",
"0.658974",
"0.6410223",
"0.640342",
"0.639604",
"0.6371115",
"0.63645434",
"0.6355408",
"0.6341764",
"0.6338272",
"0.63249373",
"0.63093394",
"0.63077384",
"0.63050073",
"0.6294913",
"0.62840056",
"0.6259465",
"0.6255046",
"0.6246637",
"0.62328213",
"0.6218811",
"0.6213518",
"0.62089545",
"0.6198734",
"0.61728615",
"0.6168983",
"0.6157184",
"0.6151943",
"0.6108043",
"0.60916096",
"0.6072556",
"0.6065247",
"0.60478485",
"0.6035315",
"0.6031434",
"0.60308856",
"0.6027636",
"0.6022342",
"0.6017856",
"0.6012287",
"0.59919775",
"0.5988825",
"0.5985174",
"0.5984343",
"0.5978281",
"0.5969135",
"0.5959069",
"0.59585637",
"0.59479773",
"0.5939755",
"0.5934463",
"0.59329575",
"0.59268427",
"0.5922115",
"0.5922115",
"0.5911835",
"0.59097475",
"0.59097475",
"0.5902358",
"0.58989006",
"0.58968383",
"0.58954555",
"0.58939517",
"0.58902454",
"0.5885918",
"0.58847576",
"0.58819735",
"0.5878725",
"0.5872876",
"0.58600765",
"0.5859109",
"0.585277",
"0.58511555",
"0.5849438",
"0.58472145",
"0.5836217",
"0.58290577",
"0.5827598",
"0.581987",
"0.5818424",
"0.5818424",
"0.5812324",
"0.579807",
"0.5795429",
"0.5795429",
"0.5795429",
"0.57907504",
"0.5790726",
"0.5788907",
"0.5788619",
"0.57796127",
"0.57796127",
"0.57782596",
"0.5774649",
"0.57745963",
"0.5773793",
"0.5772037",
"0.57682115",
"0.57647705",
"0.57639694",
"0.5757385"
] | 0.0 | -1 |
BEGIN_INCLUDE(recyclerViewOnCreateViewHolder) Create new views (invoked by the layout manager) | @Override
public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {
// Create a new view.
View v = LayoutInflater.from(viewGroup.getContext())
.inflate(R.layout.pregallery_item, viewGroup, false);
final RelativeLayout RelativeLayout;
RelativeLayout = (RelativeLayout) v.findViewById(R.id.fotopregallery);
if(posicion==0)
{
Log.d(TAG, "Drawable " + posicion);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
RelativeLayout.setBackground(v.getResources().getDrawable(R.drawable.fotos7));
}
}
if(posicion==1)
{
Log.d(TAG, "Drawable " + posicion);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
RelativeLayout.setBackground(v.getResources().getDrawable(R.drawable.universidad_3));
}
}
if(posicion==2)
{
Log.d(TAG, "Drawable " + posicion);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
RelativeLayout.setBackground(v.getResources().getDrawable(R.drawable.fotos26));
}
}
if(posicion==3)
{
Log.d(TAG, "Drawable " + posicion);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
RelativeLayout.setBackground(v.getResources().getDrawable(R.drawable.fotos24));
}
}
if(posicion==4)
{
Log.d(TAG, "Drawable " + posicion);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
RelativeLayout.setBackground(v.getResources().getDrawable(R.drawable.fotos38));
}
}
return new ViewHolder(v);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public ActiveAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.notification_single_item, parent, false);\n // set the view's size, margins, paddings and layout parameters\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public CustomAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.recycler_list_item, parent, false);\n // set the view's size, margins, paddings and layout parameters\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { //RECETA\n // create a new view\n LayoutInflater inflater = LayoutInflater.from (parent.getContext());\n View v = inflater.inflate(R.layout.row_layout, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // return null;\n //create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.assignment_card, parent, false);\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public TravlerAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.travler_items_layout, parent, false);\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.deals_new_page, parent, false);\n // set the view's size, margins, paddings and layout parameters\n MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder\n return vh;\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.list_maker, parent, false);\n return new MyViewHolder(v);\n }",
"@Override\r\n public MyAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\r\n // create a new view\r\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.listview_item, parent, false);\r\n MyViewHolder vh = new MyViewHolder(v);\r\n return vh;\r\n }",
"@Override\n public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n // Create a new view\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.listitem_future, parent,false);\n MyHolder myHolder = new MyHolder(view);\n\n view.setLayoutParams(new RecyclerView.LayoutParams(\n RecyclerView.LayoutParams.MATCH_PARENT,\n RecyclerView.LayoutParams.WRAP_CONTENT\n ));\n\n return myHolder;\n }",
"@Override\n public RecyclerViewAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = (View) LayoutInflater.from(parent.getContext()).inflate(R.layout.layout_bubbles, parent, false);\n MyViewHolder vh = new MyViewHolder(v);\n return vh;\n }",
"@Override\n public news_adapter.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View view = mInflater.inflate(R.layout.list_item, parent, false);\n return new MyViewHolder(view);\n\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.content_adapter, parent, false);\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n //new view creation\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item,parent, false);\n return new MyViewHolder(v);\n }",
"@Override\n public ViewsAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View itemLayoutView = LayoutInflater.from(parent.getContext()).inflate(\n R.layout.recycler_item_views, null);\n\n // create ViewHolder\n ViewHolder viewHolder = new ViewHolder(itemLayoutView);\n return viewHolder;\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.my_view, parent, false);\n // set the view's size, margins, paddings and layout parameters\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public AdapterNewsow.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.news_sr_view, parent, false);\n MyViewHolder vh = new MyViewHolder(v);\n return vh;\n }",
"@Override\n public SimilarItemsRecyclerAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.similar_items_card, parent, false);\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.card_task, parent, false);\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View itemView = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.task_list_row, parent, false);\n\n return new MyViewHolder(itemView);\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.card_layout, parent, false);\n // set the view's size, margins, paddings and layout parameters\n // ...\n\n return new ViewHolder(v);\n }",
"@Override\n public MyAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.food_menu_list_item, parent, false);\n MyViewHolder vh = new MyViewHolder(v);\n return vh;\n }",
"@Override\n public TreatRecyclerAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.treat_item_row,\n parent, false);\n // set the view's size, margins, paddings and layout parameters\n //...\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public SearchResultRecyclerAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.task_view_list, parent, false);\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public RecyclerTransactionAdaptor.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.raw_item_transaction, parent, false);\n // set the view's size, margins, paddings and layout parameters\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.rowlayout, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public listAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n LayoutInflater inflater = LayoutInflater.from(parent.getContext());\n View v = inflater.inflate(R.layout.row_layout, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\r\n public MemberAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\r\n // create a new view\r\n View itemLayoutView = LayoutInflater.from(parent.getContext()).inflate(R.layout.adapter_member, null);\r\n // create ViewHolder\r\n ViewHolder viewHolder = new ViewHolder(itemLayoutView);\r\n\r\n\r\n return viewHolder;\r\n }",
"@Override\n\t\t\tpublic ViewHolder onCreateViewHolder(View itemView) {\n\t\t\t\treturn new MylisViewHoder(itemView);\n\t\t\t}",
"@Override\n public ChatRoomAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.fragment_chatrooms_list, parent, false);\n MyViewHolder vh = new MyViewHolder(v);\n return vh;\n }",
"@Override\n public FoodAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n LayoutInflater inflater = LayoutInflater.from(\n parent.getContext());\n View v =\n inflater.inflate(R.layout.food_row_layout, parent, false);\n //ViewHolder vh = new ViewHolder(v);\n //return vh;\n return new ViewHolder(v);\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.tubewell_row, parent, false);\n\n final ViewHolder vh = new ViewHolder(v);\n v.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mListner.onItemClick(v, vh.getPosition());\n }\n });\n\n return vh;\n }",
"@Override\n public MsgAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.msg_view, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public DetailItemAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n RelativeLayout v = (RelativeLayout) LayoutInflater.from(parent.getContext())\n .inflate(R.layout.item_detail, parent, false);\n ViewHolder vh = new ViewHolder(v);\n\n return vh;\n }",
"@Override\n public MyAdapterHighlights.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.card_view, parent, false);\n // set the view's size, margins, paddings and layout parameters\n MyAdapterHighlights.MyViewHolder vh = new MyAdapterHighlights.MyViewHolder(v);\n return vh;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n View itemLayoutView = LayoutInflater.from(parent.getContext())\n .inflate(resLayout, parent,false);\n\n // create ViewHolder\n return new ViewHolder(itemLayoutView);\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = mCursorAdapter.newView(mContext, mCursorAdapter.getCursor(), parent);\n return new ViewHolder(v);\n }",
"@Override\n // Call ViewHolder class and create the view\n public RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {\n View view = LayoutInflater.from(viewGroup.getContext())\n .inflate(R.layout.list_row, viewGroup, false);\n\n // Pass the view created\n return new ViewHolder(view, context);\n }",
"@Override\n public CardAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.custom_row, parent, false);\n // set the view's size, margins, paddings and layout parameters\n context = parent.getContext();\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n\tpublic ViewHolder onCreateViewHolder(ViewGroup parent,\n\t\t\tint viewType) {\n\t\t// create a new view\n\t\tView v = LayoutInflater.from(parent.getContext()).inflate(R.layout.eventlayout, parent, false);\n\t\t// set the view's size, margins, paddings and layout parameters\n\t\tViewHolder vh = new ViewHolder(v);\n\t\treturn vh;\n\t}",
"@Override\n public UIAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_layout, parent, false);\n return new ViewHolder(v);\n }",
"@Override\n public PlacesAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n LinearLayout l = (LinearLayout) LayoutInflater.from(parent.getContext())\n .inflate(R.layout.place_item, parent, false);\n MyViewHolder vh = new MyViewHolder(l);\n return vh;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View item = LayoutInflater.from(parent.getContext()).inflate(R.layout.item, parent, false);\n// Pasar la vista (item.xml) al ViewHolder\n ViewHolder viewHolder = new ViewHolder(item);\n return viewHolder;\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n ViewGroup v = (ViewGroup) LayoutInflater.from(parent.getContext()).inflate(R.layout.list_card, parent, false);\n // set the view's size, margins, paddings and layout parameters\n\n return new ViewHolder(v);\n }",
"@Override\n public ListAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)\n {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_row, parent, false);\n // set the view's size, margins, paddings and layout parameters\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = mInflater.inflate(R.layout.item_view, parent, false);\n ViewHolder viewHolder = new ViewHolder(view);\n return viewHolder;\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = inflater.inflate(R.layout.item_notification_cardview, parent, false);\n MyViewHolder holder = new MyViewHolder(view);\n return holder;\n }",
"@Override\n public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n\n RecyclerView.ViewHolder viewHolder;\n if(viewType==VIEW_ITEM) {\n\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.grid_item, parent, false);\n\n viewHolder = new ViewHolder_item(v);\n }\n\n else {\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.item_load_more, parent, false);\n\n viewHolder = new ProgressViewHolder(v);\n }\n\n return viewHolder;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.view_recycler_item, parent, false);\n return new ViewHolder(v);\n }",
"@Override\n public SongsListAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.artist_songs_list_item, parent, false);\n return new MyViewHolder(v);\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup arg0, int arg1) {\n\n return new ViewHolder(new TextView(RecyclerViewActivity.this)) {\n\n };\n }",
"@Override\n public GalleryAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.gallery_item, parent, false);\n MyViewHolder vh = new MyViewHolder(v);\n return vh;\n }",
"@Override\n public EntriesBaseAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View parentView = LayoutInflater.from(parent.getContext()).inflate(R.layout.files_of_entries, parent, false);\n return new ViewHolder(parentView);\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.employee_card, parent, false);\n return new ViewHolder(view);\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.message_list_item, parent, false);\n return new ViewHolder(v);\n\n\n\n }",
"@Override\n public OrderAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.order_item, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public MainListAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.adapter_view, parent, false);\n // set the view's size, margins, paddings and layout parameters\n MainListAdapter.ViewHolder vh = new MainListAdapter.ViewHolder(v);\n return vh;\n }",
"@Override\n public CustomAdapterTracks.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n// // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.top_tracks_item, parent, false);\n// // set the view's size, margins, paddings and layout parameters\n ViewHolder vh = new ViewHolder((CardView) v);\n return vh;\n }",
"@Override\n public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.rv_item,parent,false);\n return new MyHolder(v);\n }",
"@Override\n public StockRecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.item_stock, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = LayoutInflater.from(mContext).inflate(R.layout.recyclingview_imagenes, parent,false);\n return new ViewHolder(view);\n }",
"@Override\n public SearchResultAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.event_recyclerview, parent, false);\n// v.setTag(true);\n final ViewHolder vh = new ViewHolder(v);\n v.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n listener.onItemClick(v.findViewById(R.id.event_host_desc), vh.getAdapterPosition());\n }\n });\n return vh;\n }",
"@Override\n public PollHandler.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new vie\n View v =\n LayoutInflater.from(parent.getContext())\n .inflate(R.layout.poll_card, parent, false);\n\n MyViewHolder vh = new MyViewHolder(v);\n return vh;\n }",
"@Override\n\t\tpublic MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\t\t\tMyViewHolder holder = new MyViewHolder(mInflater.inflate(\n\t\t\t\t\tR.layout.hscroll_item, parent, false));\n\t\t\t\n\t\t\treturn holder;\n\t\t}",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = mInflater.inflate(R.layout.item_data, parent, false);\n return new ViewHolder(view);\n }",
"@Override\n public TestAdminActivity.MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.participant_cardview, parent, false);\n\n // set the view's size, margins, paddings and layout parameters\n TestAdminActivity.MyAdapter.ViewHolder vh = new TestAdminActivity.MyAdapter.ViewHolder(v);\n return vh;\n }",
"@Override\n\tprotected BaseListAdapter.ViewHolder createViewHolder(View root) {\n\t\tMyViewHolder holder = new MyViewHolder(root);\n\t\treturn holder;\n\t}",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.departmentnames, parent, false);\n context = parent.getContext();\n// set the view's size, margins, paddings and layout parameters\n MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder\n return vh;\n }",
"@Override\n public CardAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.item_card, parent, false);\n // set the view's size, margins, paddings and layout parameters\n return new MyViewHolder(v);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_notification, container, false);\n\n /*****************code For Card View*****************/\n\n recyclerView = (RecyclerView) view.findViewById(R.id.notification_recycler_view);\n newsList = new ArrayList<>();\n adapter = new NewsAdapter(getContext(), newsList);\n\n RecyclerView.LayoutManager mLayoutManager = new GridLayoutManager(getContext(), 1);\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.addItemDecoration(new utils.GridSpacingItemDecoration(2, dpToPx(getActivity(),10), true));\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(adapter);\n adapter.setOnClick(this);\n prepareAlbums();\n\n /*****************code For Card View*****************/\n\n return view;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.tracking_item, parent, false);\n // set the view's size, margins, paddings and layout parameters\n return new ViewHolder(v);\n }",
"@Override\n public ShellCommandRecyclerviewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n final View inflatedView = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.single_view_shell_command, parent, false);\n\n // create a new view holder for our inflated new view\n final ViewHolder holder = new ViewHolder(inflatedView);\n\n // setup an on click listener on our inflated view\n inflatedView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // call our custom click listener\n customItemClickListener.onItemClick(inflatedView, holder.getAdapterPosition());\n }\n });\n return holder;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n RelativeLayout layout = (RelativeLayout) LayoutInflater.from(parent.getContext())\n .inflate(R.layout.inventory_cell, parent, false);\n ViewHolder vh = new ViewHolder(layout);\n return vh;\n }",
"@Override\n public Viewholder onCreateViewHolder(ViewGroup parent, int viewType) {\n LayoutInflater layoutInflater=LayoutInflater.from(context);\n View view=layoutInflater.inflate(R.layout.listitem,null);\n return new Viewholder(view);\n }",
"@NonNull\n @Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.institucion_list_content, parent, false);\n return new ViewHolder(view);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_people, container, false);\n ButterKnife.bind(this, view);\n peopleRecycleView.setLayoutManager(new LinearLayoutManager(getContext()));\n\n\n\n ItemTouchHelper.SimpleCallback simpleCallback = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.RIGHT | ItemTouchHelper.LEFT) {\n @Override\n public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, RecyclerView.ViewHolder target) {\n return true;\n }\n\n @Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) {\n adapter.notifyDataSetChanged();\n }\n };\n\n ItemTouchHelper touchHelper = new ItemTouchHelper(simpleCallback);\n touchHelper.attachToRecyclerView(peopleRecycleView);\n\n return view;\n }",
"@Override\n public view_holder onCreateViewHolder(ViewGroup parent, int viewType) {\n view_holder view = new view_holder(LayoutInflater.from(a).inflate(R.layout.cell,parent,false));\n\n return view;\n }",
"@Override\n public ListBooksAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_listbooks, parent, false);\n return new ViewHolder(v);\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n if (viewType == TYPE_ITEM) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_row,parent,false); //Inflating the layout\n\n ViewHolder vhItem = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhItem; // Returning the created object\n\n //inflate your layout and pass it to view holder\n\n } else if (viewType == TYPE_HEADER) {\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.header,parent,false); //Inflating the layout\n\n ViewHolder vhHeader = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhHeader; //returning the object created\n\n\n }\n return null;\n\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = inflator.inflate(R.layout.card_orders, parent, false);\n // set the view's size, margins, padding and layout parameters\n\n ViewHolder vh = new ViewHolder(c, v);\n return vh;\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.row_list, parent, false);\n MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder\n return vh;\n }",
"@Override\n public ProductAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n View view = inflater.inflate(R.layout.homerecycleview, parent, false);\n ProductAdapter.MyViewHolder holder = new ProductAdapter.MyViewHolder(view);\n\n return holder;\n\n\n }",
"@Override\n public PhoneInfoRecyclerviewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n final View inflatedView = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.single_view_phone_info, parent, false);\n\n // create a new view holder for our inflated new view\n final ViewHolder holder = new ViewHolder(inflatedView);\n\n // setup an on click listener on our inflated view\n inflatedView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mCustomItemClickListener.onItemClick(inflatedView, holder.getAdapterPosition());\n }\n });\n return holder;\n }",
"@NonNull\n @Override\n public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n Context context = parent.getContext();\n LayoutInflater inflater = LayoutInflater.from(context);\n\n\n //Inflate the custom layout\n View historyView = inflater.inflate(R.layout.item_history, parent, false);\n\n ViewHolder viewHolder = new ViewHolder(historyView);\n return viewHolder;\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // Create a new view\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_mods_view, parent, false);\n\n // Set the view's size, margins, paddings and layout parameters\n ViewHolder viewHolder = new ViewHolder(view);\n return viewHolder;\n }",
"@Override\n public SearchableListAdapterWhite.MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_layout_white, parent, false);\n MyViewHolder vh = new MyViewHolder(v);\n return vh;\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.rowlayout, parent, false);\n MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder\n return vh;\n }",
"@Override\n public PictureAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View view = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.my_complaint_card, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder viewHolder = new ViewHolder(view);\n return viewHolder;\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.listi, parent, false);\n MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder\n\n return vh;\n }",
"@Override\n public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n\n if (viewType==0){\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.home_header, parent, false);\n ViewHolder2 vh = new ViewHolder2(v);\n return vh;\n }\n else if (viewType==1){\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.home_favorite, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder1 vh = new ViewHolder1(v);\n return vh;\n }\n else {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.home_footer, parent, false);\n // set the view's size, margins, paddings and layout parameters\n ViewHolder3 vh = new ViewHolder3(v);\n return vh;\n }\n // create a new view\n\n }",
"@Override\n @NonNull\n public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n View view = mInflater.inflate(R.layout.recyclingview_item2, parent, false);\n\n\n return new ViewHolder(view);\n }",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.grocery_order_detail_list, parent, false);\n // set the view's size, margins, paddings and layout parameters\n MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder\n return vh;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View layout = inflater.inflate(R.layout.fragment_icons_list_layout, container, false);\n mRecyclerView = layout.findViewById(R.id.fragment_list_recycler_view);\n mListener.setRecyclerViewComponents(mRecyclerView,1);\n mRootView = layout;\n\n return layout;\n }",
"@Override\n public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n LinearLayout layout = (LinearLayout) LayoutInflater.from(parent.getContext())\n .inflate(R.layout.list_item, parent, false);\n ViewHolder vh = new ViewHolder(layout);\n return vh;\n }",
"@Override\n @NonNull\n public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n View view = mInflater.inflate(R.layout.recyclerview_item, parent, false);\n return new ViewHolder(view);\n }",
"@Override\n @NonNull\n public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n View view = mInflater.inflate(R.layout.recycler, parent, false);\n return new ViewHolder(view);\n }",
"@Override\n public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.grid_tab, parent, false);\n MyHolder vh = new MyHolder(view);\n return vh;\n }",
"@Override\n public GuestAdapter.MyViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n View v = (View) LayoutInflater.from(parent.getContext())\n .inflate(R.layout.activity_guest_item, parent, false);\n MyViewHolder vh = new MyViewHolder(v);\n return vh;\n }",
"@NonNull\n @Override\n public RecyclerAdapter onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n return new RecyclerAdapter(LayoutInflater.from(parent.getContext())\n .inflate(R.layout.recycler_layout, parent, false));\n }",
"public void buildRecyclerView(){\n setOnClickListener();\n RecyclerView reminderRecycler = findViewById(R.id.reminderRecycler);\n reminderRecycler.setHasFixedSize(false);\n RecyclerView.LayoutManager reminderLayoutManager = new LinearLayoutManager(this);\n recyclerAdapter = new RecyclerAdapter(reminderItems, listener);\n reminderRecycler.setLayoutManager(reminderLayoutManager);\n reminderRecycler.setAdapter(recyclerAdapter);\n reminderRecycler.addItemDecoration(new MemberItemDecoration(300));\n }",
"@Override\n public ListViewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n CardView view = (CardView) LayoutInflater.from(parent.getContext())\n .inflate(R.layout.list_item, parent, false); // create a new view\n ViewHolder viewHolder = new ViewHolder(view);\n return viewHolder;\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View v = LayoutInflater.from(context).inflate(R.layout.card_layout, parent, false);\n return new ViewHolder(context, v);\n }"
] | [
"0.730278",
"0.7117317",
"0.71127385",
"0.71053183",
"0.7090692",
"0.70788693",
"0.7068677",
"0.7050558",
"0.70244527",
"0.70110786",
"0.7006924",
"0.6990761",
"0.6989491",
"0.69883335",
"0.6979317",
"0.6966584",
"0.6963642",
"0.6952616",
"0.69505584",
"0.6950092",
"0.6942207",
"0.69200355",
"0.68953955",
"0.68945223",
"0.6874392",
"0.6872976",
"0.68643165",
"0.6843694",
"0.6841043",
"0.68265533",
"0.68163997",
"0.6814565",
"0.6796731",
"0.67948395",
"0.67939913",
"0.6789927",
"0.6777347",
"0.6774178",
"0.67733234",
"0.6771568",
"0.6760287",
"0.675343",
"0.6752804",
"0.6752542",
"0.67504287",
"0.6745554",
"0.6734516",
"0.672694",
"0.6724412",
"0.67166686",
"0.6713376",
"0.67026776",
"0.6693294",
"0.66870755",
"0.6679879",
"0.6654602",
"0.6647181",
"0.664242",
"0.6642216",
"0.66404414",
"0.66394085",
"0.66313857",
"0.66310376",
"0.6617694",
"0.6610565",
"0.66073716",
"0.6606907",
"0.66006684",
"0.65939575",
"0.6587178",
"0.65772074",
"0.65764284",
"0.6574442",
"0.65735406",
"0.6572791",
"0.65726715",
"0.6554381",
"0.65526336",
"0.65467405",
"0.654556",
"0.654512",
"0.65418446",
"0.65406233",
"0.6538986",
"0.65387994",
"0.6536856",
"0.6533177",
"0.6530118",
"0.6530112",
"0.65251666",
"0.65191966",
"0.6517348",
"0.6516549",
"0.65138924",
"0.6507842",
"0.65056264",
"0.6505215",
"0.65019745",
"0.6498892",
"0.6493437",
"0.64919746"
] | 0.0 | -1 |
END_INCLUDE(recyclerViewOnCreateViewHolder) BEGIN_INCLUDE(recyclerViewOnBindViewHolder) Replace the contents of a view (invoked by the layout manager) | @Override
public void onBindViewHolder(ViewHolder viewHolder, final int position)
{
Log.d(TAG, "Element " + position + " set.");
if(position==0)
{
posicion=1;
}
if(position==1)
{
posicion=2;
}
if(position==2)
{
posicion=3;
}
if(position==3)
{
posicion=4;
}
if(position==4)
{
posicion=5;
}
if(position==5)
{
posicion=6;
}
// Get element from your dataset at this position and replace the contents of the view
// with that element
viewHolder.getTextView().setText(mDataSet[position]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n // Replace the contents of a view (invoked by the layout manager)\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n holder.bind(getItem(position));\n }",
"@Override\n public void onBindViewHolder(MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n Log.d(TAG, \"onBindViewHolder \" + position);\n Glide.with(holder.imageView.getContext())\n .load(mDataset.get(position))\n .placeholder(R.drawable.ic_menu_camera)\n .centerCrop()\n .into(holder.imageView);\n }",
"@Override\n public void onBindViewHolder(MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n MyPlace place = mDataset.get(position);\n\n holder.bind(activity,place,itemClicked,position);\n //https://www.google.com/maps/place/?q=place_id:\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, final int position) {\n // - get element from data set at this position\n // - replace the contents of the view with that element\n\n final Food food = getFood(position);\n holder.name.setText(food.name);\n holder.info.setText(String.valueOf(food.info));\n holder.img.setImageResource(food.resId);\n holder.layout.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n img.setImageResource(food.resId);\n info.setText(food.info);\n\n // gets the recycler position\n currItem = holder.getAdapterPosition();\n\n // intent passes the value of currItem to the activities\n Intent intent = new Intent(\"pass-food\");\n intent.putExtra(\"food\",currItem);\n LocalBroadcastManager.getInstance(context).sendBroadcast(intent);\n }\n });\n }",
"@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int position) {\n Log.d(TAG, \"Element \" + position + \" set.\");\n\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n //viewHolder.getTextView().setText(mDataSet[position]);\n TextDrawable drawable = TextDrawable.builder().buildRound(\"AB\", Color.RED);\n viewHolder.getIconView().setImageDrawable(drawable);\n viewHolder.getNameView().setText(items.get(position).getName());\n viewHolder.getEmailView().setText(items.get(position).getEmail());\n viewHolder.getJobTitleView().setText(items.get(position).getJobTitle());\n viewHolder.getLocationView().setText(items.get(position).getLocation());\n viewHolder.getExtView().setText(items.get(position).getExt());\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mImageView1.setImageResource(mDataset.get(position).img1);\n holder.mTextView1.setText(mDataset.get(position).text1);\n holder.mImageView2.setImageResource(mDataset.get(position).img2);\n holder.mTextView2.setText(mDataset.get(position).text2);\n holder.mTextView3.setText(mDataset.get(position).text3);\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder itemViewHolder, int position) {\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n Picasso.get().load(mDataset[position].getImgUrl()).into(holder.imageView);\n }",
"private void setUpFoodItemsRView(String category, View view){\n //Log.d(TAG, \"setUpFoodItemsRView: Category: \"+category+\" View :\"+view);\n // TextView mFoodCategoryHeadingText = view.findViewById(R.id.menuItemHeading);\n // mFoodCategoryHeadingText.setText(category+\"'s\");\n // shimmerFrameLayout.startShimmer();\n RecyclerView mFoodItemsRecycler = view.findViewById(R.id.foodItemsRecyclerView);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false);\n mFoodItemsRecycler.setHasFixedSize(true);\n mFoodItemsRecycler.setLayoutManager(linearLayoutManager);\n\n // adapter = new FoodItemAdapter(mFoodItems,mContext,this);\n foodAdapter = new FoodItemAdapter(mSelectedCategoryFoodItem,getActivity(),this);\n mFoodItemsRecycler.setAdapter(foodAdapter);\n\n //Getting the data from firebase\n loadRecyclerViewData(category);\n\n\n }",
"protected abstract\n @NonNull\n V inflateViewHolder(View view, @LayoutRes int layoutId);",
"@Override\n public void onBindViewHolder(Chat_ViewGroupSwipeAdapter.ViewHolder viewHolder, final int position)\n {\n\n\n }",
"@Override\n public void onBindViewHolder(final NewsCardViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final AlMaghribNewsModelContainer bannerModel = mDataset.get(position);\n\n switch (holder.getItemViewType()) {\n case TYPE_VIDEO:\n final VideoNewsCardViewHolder videoNewsHolder = (VideoNewsCardViewHolder) holder;\n // TODO: something for play button click\n\n break;\n case TYPE_ARTICLE:\n break;\n }\n\n holder.mBannerImageView.setDefaultImageResId(R.drawable.love_notes_card);\n holder.mBannerImageView.setImageUrl(bannerModel.getBannerUrl(), mImageLoader);\n holder.mJournalTitleTextView.setText(bannerModel.getTitle());\n final String transitionName = mActivity.getString(R.string.seminar_banner_name) + position;\n ViewCompat.setTransitionName(holder.mBannerImageView, transitionName);\n\n final View.OnClickListener openArticleListener = new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addNextFragment(holder.mBannerImageView, bannerModel);\n }\n };\n // set on click listener on view so we still get ripple effect\n holder.itemView.setOnClickListener(openArticleListener);\n holder.mReadMoreButton.setOnClickListener(openArticleListener);\n }",
"@Override\n public void onBindViewHolder(DetailAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset[position]);\n holder.informacion.setText(mDataset[position]); //informacion es el dato que nos entrega el arreglo\n }",
"@Override\n public void onBindViewHolder(MyHolder holder, int position) {\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.tv.setText(arr.get(position));\n\n // .setText(arr[position]);\n // ((ImageView)temp.findViewById(R.id.iconimage)).setImageResource(ico[position]);\n\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n if(holder instanceof EntityViewHolder){\n EntityViewHolder entityViewHolder = ((EntityViewHolder) holder);\n entityViewHolder.getNumeroColumnas().setText(\"\");\n entityViewHolder.getNumeroRegistros().setText(\"\");\n entityViewHolder.getNumeroEntity().setText(\"\");\n entityViewHolder.getNumeroEntity().setText(\"\");\n AbstractDao dao = daoApp.getEntityByName(entityList.get(position));\n entityViewHolder.getNombreEntity().setText(entityList.get(position));\n entityViewHolder.getNumeroEntity().setText(\"\"+position);\n entityViewHolder.getLinearLayout().setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mOnItemClickLister.onItemClicked(entityList.get(position),position);\n }\n });\n entityViewHolder.getNumeroColumnas().setText(\"\"+dao.getAllColumns().length);\n entityViewHolder.getNumeroRegistros().setText(\"\"+dao.count());\n entityViewHolder.getLinearLayout().setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n mOnItemClickLister.onItemClicked(entityList.get(position),position);\n\n }\n });\n\n }\n\n\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final Rate rate = mRates.get(position);\n setImage(rate,holder);\n setRate(rate,holder);\n setText(rate,holder);\n }",
"@Override\n public void onBindViewHolder(MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final String title = this.mDataset.get(position).getTitle();\n holder.title.setText(title);\n }",
"@Override\n public void onBindViewHolder(MyAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n View holder1, holder2, holder3, holder4;\n holder1 = holder.mView.findViewById(R.id.subText);\n holder2 = holder.mView.findViewById(R.id.dueDateText);\n // holder3 = holder.mView.findViewById(R.id.gradeText);\n// holder4 = holder.mView.findViewById(R.id.descText);\n if (mDataset.get(position).getCourse() != null) {\n ((TextView) holder1).setText(mDataset.get(position).getCourse().getSub());\n }\n if (mDataset.get(position).getDueDate() != null) {\n ((TextView) holder2).setText((CharSequence) mDataset.get(position).getDueDate());\n }\n // ((TextView) holder3).setText(mDataset.get(position).get);\n// ((TextView) holder4).setText(mDataset[position]);\n //.setText(mDataset[position]));\n //setText(mDataset[position]);\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n if(values != null) {\n final Genres genre = values.get(position);\n holder.txtHeader.setText(genre.getName());\n holder.txtFooter.setText(\"Type : \" + genre.getType());\n\n Picasso.get().load(img_url).resize(170,180).into(holder.img);\n\n }else if(animevalues != null){\n final Anime anime = animevalues.get(position);\n holder.txtHeader.setText(anime.getTitle());\n /*holder.txtHeader.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n }\n });*/\n holder.txtFooter.setText(\"Type : \" + anime.getType());\n\n Picasso.get().load(anime.getImage_url()).resize(150,180).into(holder.img);\n }\n }",
"@Override\n public void refreshView(Context context, RecyclerView.ViewHolder holder) {\n ((ViewHolder) holder).id_text_test.setText(test);\n// mHolder.id_image_item_shown.setImageDrawable(\n// context.getResources().getDrawable(R.drawable.item_translation));\n }",
"@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int position) {\n\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n /*try {*/\n //viewHolder.getImageView().setImageBitmap(friends[position].convertPicture());\n viewHolder.getTextView().setText(friends[position].getName());\n /*} catch (SQLException e){\n e.printStackTrace();\n }*/\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.teamAbbreviation.setText(mDataset.get(position).getTeamAbbrevation());\n holder.numPlayers.setText(String.valueOf(mDataset.get(position).getNumPlayers()));\n holder.totalSalary.setText(String.valueOf(mDataset.get(position).getTotalSalary()));\n holder.itemView.setTag(mDataset.get(position).getPlayerList());\n }",
"@Override\n public void onBindViewHolder(MyViewHolder holder, int i) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final FakeNews actualItem = list.get(i);\n\n holder.mTextView.setText(actualItem.title);\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n MyAdapter.mGetContent = actualItem.htmlContent;\n view.getContext().startActivity(new Intent(view.getContext(),WebViewActivity.class));\n }\n });\n\n }",
"@Override\n public void onBindViewHolder(MsgAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mTextView.setText(itemList.get(position).getText());\n holder.mRatingBar.setRating(itemList.get(position).getRank());\n if(itemList.get(position).getImage()!= null) {\n Log.e(\"INFO\", itemList.get(position).getImage());\n String encodedImage = itemList.get(position).getImage();\n byte[] decodedString = Base64.decode(encodedImage, Base64.DEFAULT);\n Bitmap decodedByte = BitmapFactory.decodeByteArray(decodedString, 0, decodedString.length);\n\n holder.mImageView.setImageBitmap(decodedByte);\n } else{\n holder.mImageView.setVisibility(View.GONE);\n }\n }",
"@Override\n public void onClick(View view) {\n update(holder.getAdapterPosition());\n }",
"@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int position) {\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n viewHolder.distanceView.setText(String.valueOf(meterDistanceBetweenPoints((float)46.782719, (float)23.607913,\n Double.valueOf( (mDataSet.getEvents().get(position).getLocation().split(\",\"))[0]).floatValue(),\n Double.valueOf( (mDataSet.getEvents().get(position).getLocation().split(\",\"))[1]).floatValue())) + \"m\");\n viewHolder.getTextView().setText(mDataSet.getEvents().get(position).getName());\n viewHolder.setListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Event e= mDataSet.getEvents().get(position);\n\n FragmentTransaction ft = manager.beginTransaction();\n ShowEventFragment eventFragment=new ShowEventFragment(e);\n ft.replace(R.id.frag_container_id,eventFragment, \"NewFragmentTag\");\n ft.addToBackStack(null);\n ft.commit();\n }\n });\n }",
"@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n @Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n final BusinessCard bc = mValues.get(position);\n\n holder.mNameView.setText(bc.getStrName());\n holder.mContactView.setText(bc.getStrContactName());\n\n// S04M03-13 bind data to new views\n holder.mEmailView.setText(bc.getStrEmail());\n holder.mIDView.setText(bc.getStrId());\n\n holder.mAddressView.setText(bc.getStrAddress());\n holder.mPhoneView.setText(bc.getStrPhone());\n holder.FaxView.setText(bc.getStrFax());\n holder.mTitleView.setText(bc.getStrTitle());\n holder.mWebURLView.setText(bc.getStrWebURL());\n holder.mTitleView.setText(bc.getStrTitle());\n\n\n // holder.mImageView.getLayoutParams().width=1200;\n // holder.mImageView.getLayoutParams().height=2000;\n holder.mImageView.setImageBitmap(NetworkAdapter.getBitmapFromUrl(bc.getStrQRcodeURL()));\n\n holder.itemView.setTag(bc);\n holder.itemView.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n xx = (int) event.getX();\n break;\n case MotionEvent.ACTION_MOVE:\n\n break;\n\n case MotionEvent.ACTION_UP:\n float deltaX = event.getX() - xx;\n if(deltaX>500) {\n bcs.delete(bc.getId());\n Notification.send(v.getContext(), \"deleted\", Integer.toString(bc.getId()));\n\n return true;\n }\n break;\n }\n return false;\n }\n });\n holder.itemView.setOnClickListener(new View.OnClickListener() {\n @TargetApi(Build.VERSION_CODES.LOLLIPOP)\n @RequiresApi(api = Build.VERSION_CODES.JELLY_BEAN)\n @Override\n public void onClick(View view) {\n // S04M03-17 update click listener to pass our object\n BusinessCard item = (BusinessCard) view.getTag();\n if (mTwoPane) {\n Bundle arguments = new Bundle();\n// arguments.putString(ItemDetailFragment.ARG_ITEM_ID, String.valueOf(item.getId())); // put object in intent\n arguments.putParcelable(ItemDetailFragment.ARG_ITEM_ID, item);\n ItemDetailFragment fragment = new ItemDetailFragment();\n fragment.setArguments(arguments);\n mParentActivity.getSupportFragmentManager().beginTransaction()\n .replace(R.id.item_detail_container, fragment)\n .commit();\n } else {\n Context context = view.getContext();\n Intent intent = new Intent(context, ItemDetailActivity.class);\n intent.putExtra(ItemDetailFragment.ARG_ITEM_ID, item); // put object in intent\n\n // S04M03-22 add options to make transition appear\n// Bundle options = ActivityOptions.makeSceneTransitionAnimation((Activity) view.getContext()).toBundle();\n // S04M03-24 change constructor to allow for shared views\n Bundle options = ActivityOptions.makeSceneTransitionAnimation(\n (Activity) view.getContext(),\n holder.mImageView,\n ViewCompat.getTransitionName(holder.mImageView)\n ).toBundle();\n\n context.startActivity(intent, options);\n }\n }\n });\n\n // S04M03-15 call animation method\n setEnterAnimation(holder.parentView, position);\n }",
"@Override\n public void onBindViewHolder(@NonNull @NotNull ViewHolder holder, int position) {\n\n }",
"@Override\n public ViewHolder onCreateViewHolder(ViewGroup arg0, int arg1) {\n\n return new ViewHolder(new TextView(RecyclerViewActivity.this)) {\n\n };\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n // return null;\n //create a new view\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.assignment_card, parent, false);\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) { //Cuando un elemento hace binding\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n final Track track = values.get(position); //RECUPERA ELEMENTO QUE QUIERES VISUALIZAR\n final ViewHolder vh = holder; //HEMOS TENIDO QUE CREARLA PORQUE ESTA ARRIBA EN LA CLASE Y EN EL REMOVE NO LA PODRIAMOS UTILIZAR\n holder.title.setText(track.getTitle());\n holder.id.setText(track.getSinger());\n holder.title.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View v) {\n Intent trackview = new Intent(activity.getApplicationContext(), TrackDetailActivity.class);\n trackview.putExtra(\"id\",track.getId());\n trackview.putExtra(\"title\", track.getTitle());\n trackview.putExtra(\"singer\", track.getSinger());\n activity.startActivity(trackview);\n }\n });\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n final MyViewHolder viewHolder = (MyViewHolder) holder;\n final BeanItems.ItemsBean bean = mData.get(position);\n viewHolder.setIsRecyclable(false);\n if (!mActivity.hasData(bean.getItemid())) {\n //无数据\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_data_entry_add);\n viewHolder.mTvTitle.setText(bean.getItemname());\n viewHolder.mTvContent.setVisibility(View.GONE);\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = position;\n mListener.onItemClick(v, bean.getItemid(), bean.getItemname() + \"第1组\", position, 0);\n }\n }\n });\n } else if (position != selectPosition) {\n //有数据未打开\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_down_arrow_data_entry);\n viewHolder.mTvTitle.setText(bean.getItemname());\n Cursor c = mActivity.query(bean.getItemid());\n viewHolder.mTvContent.setText(\"已录入\" + c.getCount() + \"组\");\n c.close();\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = position;\n mListener.onItemClick(v, bean.getItemid(), null, position, 1);\n }\n }\n });\n } else {\n viewHolder.mIvRight.setImageResource(R.mipmap.ic_down_up_data_entry);\n viewHolder.mTvTitle.setText(bean.getItemname());\n Cursor c = mActivity.query(bean.getItemid());\n viewHolder.mTvContent.setText(\"已录入\" + c.getCount() + \"组\");\n c.moveToFirst();\n List<String> data = new ArrayList<>();\n List<List<String>> datas = new ArrayList<>();\n String itemID = c.getString(1);\n String group = c.getString(2);\n String strength = c.getString(3);\n String time = c.getString(4);\n// Log.d(\"AdapterDataEntryRightLi\", strength);\n data.add(itemID);\n data.add(group);\n data.add(strength);\n data.add(time);\n datas.add(data);\n while (c.moveToNext()) {\n data = new ArrayList<>();\n itemID = c.getString(1);\n group = c.getString(2);\n strength = c.getString(3);\n time = c.getString(4);\n Log.d(\"data\", strength);\n data.add(itemID);\n data.add(group);\n data.add(strength);\n data.add(time);\n datas.add(data);\n }\n c.close();\n viewHolder.mLyRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (mListener != null) {\n selectPosition = 999999;\n mListener.onItemClick(v, bean.getItemid(), null, position, 3);\n }\n }\n });\n LinearLayoutManager layoutManager = new LinearLayoutManager(mActivity, LinearLayoutManager.VERTICAL, false);\n viewHolder.mRvContent.setLayoutManager(layoutManager);\n viewHolder.mRvContent.setItemAnimator(new DefaultItemAnimator());\n// String itemid = bean.getItemid();\n AdapterDataEntryContentListAty mAdapter = new AdapterDataEntryContentListAty(mActivity, datas, AdapterDataEntryRightListAty.this);\n viewHolder.mRvContent.setAdapter(mAdapter);\n ItemTouchHelper.Callback callback = new SimpleItemTouchHelperCallback(mAdapter);\n mItemTouchHelper = new ItemTouchHelper(callback);\n mItemTouchHelper.attachToRecyclerView(viewHolder.mRvContent);\n mAdapter.setOnItemClickListener(new AdapterDataEntryContentListAty.OnItemClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n if (mModifyListener != null) {\n mModifyListener.onItemClick(view, position, mData);\n }\n }\n });\n mAdapter.setOnItemAddClickListener(new AdapterDataEntryContentListAty.OnItemAddClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n mAddListener.onItemClick(view, position, mData);\n }\n });\n// mAdapter.seti\n mAdapter.setOnItemLongClickListener(new AdapterDataEntryContentListAty.OnItemLongClickListener() {\n @Override\n public void onItemClick(View view, int position, List<List<String>> mData) {\n mModifyLongListener.onItemClick(view, position, mData);\n }\n });\n }\n }",
"@Override\n public final void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n position = holder.getAdapterPosition();\n if (position == RecyclerView.NO_POSITION) {\n return;\n }\n // Logger.w(\"QuickRecycleViewAdapter\", \"onBindViewHolder\", \"position_2 = \" + position);\n if (mHeaderFooterHelper != null) {\n if (mHeaderFooterHelper.isInHeader(position)\n || mHeaderFooterHelper.isInFooter(position, mAdapterManager.getItemSize())) {\n /** let head/footer fullspan in StaggeredGridLayoutManager\n * added in 1.5\n */\n ViewGroup.LayoutParams layoutParams = holder.itemView.getLayoutParams();\n if (layoutParams instanceof StaggeredGridLayoutManager.LayoutParams) {\n ((StaggeredGridLayoutManager.LayoutParams) layoutParams).setFullSpan(true);\n }\n return;\n }\n position -= mHeaderFooterHelper.getHeaderViewSize();\n }\n if (!(holder instanceof IRecyclerViewHolder)) {\n throw new RuntimeException(\"all quick adapter's viewHolder must implement\" +\n \" the interface IRecyclerViewHolder\");\n }\n //notify bind ViewHolder\n getSelectHelper().onBindViewHolder(holder);\n\n //not in header or footer populate it\n final T item = getItem(position);\n final int layoutId = ((IRecyclerViewHolder) holder).getLayoutId();\n final ViewHelper helper = ((IRecyclerViewHolder) holder).getViewHelper();\n\n onBindDataImpl(holder, position, item);\n\n if (getAdapterManager().getPostRunnableCallbacks() != null) {\n final int pos = position;\n for (final AdapterManager.IPostRunnableCallback<T> callback : getAdapterManager()\n .getPostRunnableCallbacks()) {\n holder.itemView.post(new Runnable() {\n @Override\n public void run() {\n callback.onPostCallback(pos, item, layoutId, helper);\n }\n });\n }\n }\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n Task task = tasks.get(position);\n holder.tvTaskName.setText(task.getName());\n holder.tvTaskDescription.setText(task.getDescription());\n switch (position){\n case 0:\n holder.tvDistance.setText(\"0.4 mi\");\n break;\n case 1:\n holder.tvDistance.setText(\"3.7 mi\");\n break;\n case 2:\n holder.tvDistance.setText(\"8.2 mi\");\n }\n\n\n holder.tvDateTime.setText(simpleDateFormat.format(task.getPostedTime()));\n\n\n }",
"@Override\n public void onBindViewHolder(@NonNull final ViewHolder holder, int position) {\n\n }",
"@Override\n\tpublic void updateView( View view ) {\n\t\t\n\t\tif ( mStyleBackground != null ) {\n\t\t\tview.setBackgroundColor( mStyleBackground.mBackground );\n\t\t}\n\t\t\n\t\tObject object = view.getTag();\n\t\tif ( object instanceof ViewHolder ) {\n\t\t\tViewHolder holder = (ViewHolder)object;\n\t\t\tlayoutImageView( view, R.id.imageViewCancelButton, mStyleCancelButton, android.R.drawable.ic_menu_close_clear_cancel );\n\t\t\tlayoutImageView( holder.mLeftIcon, mStyleImageLeft, mDataImageLeft );\n\t\t\tlayoutImageView( holder.mRightIcon, mStyleImageRight, mDataImageRight );\n\t\t\tlayoutTextView( holder.mMajorTextLeft, mStyleTextMajor, mDataTextMajor );\n\t\t\tlayoutTextView( holder.mMinorTextLeft, mStyleTextMinor, mDataTextMinor );\n\t\t\tlayoutTextView( holder.mMajorTextRight, mStyleTextMajorRight, mDataTextMajorRight );\n\t\t\tlayoutTextView( holder.mMinorTextRight, mStyleTextMinorRight, mDataTextMinorRight );\t\n\t\t\tif ( holder.mViewType != getViewType() ) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\tmButtonPanelBar = new ThreeButtonPanelBar(view);\n\t\t\tif ( mButtonPanelBar != null ) {\n\t\t\t\tmButtonPanelBar.SetBackgroundColor( 0x00000000 ); // TODO read from style\n\t\t\t\tmButtonPanelBar.RemoveAllButtons();\n\t\t\t\tfor ( int i=0; i<mButtons.size(); i++ ) {\n\t\t\t\t\tmButtonPanelBar.AddButton( mButtons.get(i) );\n\t\t\t\t}\t\t\t\t\n\t\t\t\tmButtonPanelBar.updateUI();\n\t\t\t} else {\n\t\t\t\tLogger.e( TAG, \"updateView() - NPE button panel bar\" );\n\t\t\t}\n\t\t} else {\n\t\t\tLogger.e( TAG, \"updateView() - object mismatch\" ); \n\t\t}\n\t\t\t\n\t\tview.forceLayout();\n\t\tview.invalidate();\n\t}",
"@Override\n public void onBindViewHolder(ViewHolder viewHolder, final int pos) {\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n PollStudent singleData = studentsData.get(pos);\n viewHolder.getStudent().setText(singleData.getId() + \" | \" + singleData.getName());\n // also update the layout according to the status value\n int status = singleData.getStatus();\n switch (status) {\n case 0:\n viewHolder.getCard().setCardBackgroundColor(Color.GREEN);\n //todo other animations on cards\n break;\n case 1:\n viewHolder.getCard().setCardBackgroundColor(Color.RED);\n break;\n case 2:\n viewHolder.getCard().setCardBackgroundColor(Color.BLUE);\n break;\n }\n\n }",
"private void bindView() {\n\n\t\tfindViewById(R.id.issue_feedback_container).addOnLayoutChangeListener(\n\t\t\t\tnew OnLayoutChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLayoutChange(View v, int left, int top,\n\t\t\t\t\t\t\tint right, int bottom, int oldLeft, int oldTop,\n\t\t\t\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tint addItem = bottom - oldBottom;\n\t\t\t\t\t\tif (addItem > 0 && oldBottom > 0) {\n\t\t\t\t\t\t\tScrollView scrollView = (ScrollView) findViewById(R.id.container);\n\t\t\t\t\t\t\tLog.i(TAG, \"deltaHeight=\" + addItem + \";bottom=\"\n\t\t\t\t\t\t\t\t\t+ bottom + \";oldBottom=\" + oldBottom);\n\t\t\t\t\t\t\tscrollView.scrollBy(0, addItem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\tissueDescView = (UserInputItemView) findViewById(R.id.issue_desc);\n\t\tissueTopic = (EditItemView) findViewById(R.id.issue_topic);\n\t\taddFile = (AddItemView) findViewById(R.id.issue_add_file);\n\t\tsolverMan = (ChooseItemView) findViewById(R.id.issue_choose_deliver);\n\t\tsolverMan.setContent(\"选择解决人\");\n\t\taddPerson = (AddItemView) findViewById(R.id.issue_add_person);\n\t\taddPerson.setVisibility(View.GONE);\n\t\tsolverMan.setChooseItemClickListener(new OnClickListener() {\n\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\tgetDeliveryList(true, solverMan);\n\t\t\t}\n\t\t});\n\n\t\taddFile.setOnCreateItemViewListener(addfileListenr);\n\t\taddPerson.setOnCreateItemViewListener(addfoucsPersonCreateListenr);\n\n\t}",
"@Override\r\n public void onBindViewHolder(MyViewHolder holder, int position) {\r\n // - get element from your dataset at this position\r\n // - replace the contents of the view with that element\r\n holder.textView_longitude.setText(dataset.get(position).dataLongitude);\r\n holder.textView_latitude.setText(dataset.get(position).dataLatitude);\r\n holder.textView_speed.setText(dataset.get(position).dataSpeed);\r\n holder.textView_time.setText(dataset.get(position).dataTime);\r\n\r\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {\n switch (holder.getItemViewType()) {\n case INGREDIENT:\n ShoppingRecyclerViewAdapter.IngredViewHolder ingredVH = (ShoppingRecyclerViewAdapter.IngredViewHolder) holder;\n configureIngredientVH(ingredVH, position);\n break;\n default:\n ShoppingRecyclerViewAdapter.TextViewHolder textVH = (ShoppingRecyclerViewAdapter.TextViewHolder) holder;\n configureTVHolder(textVH, position);\n break;\n }\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mTextViewSongName.setText(mDataset.get(position).trackName);\n holder.mTextViewAlbumName.setText(mDataset.get(position).albumName);\n Picasso.with(mContext).\n load(mDataset.get(position).imageURL).\n into(holder.mImageView);\n\n }",
"View mo6503b(RecyclerView recyclerView, C41531v c41531v);",
"@Override\n public void onBindViewHolder(QuizListAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n quiz = quizzes.get(position);\n\n holder.vQuizTitle.setText(quiz.getQuizTitle());\n holder.cardView.setTag(quiz.getQuizTitle());\n\n\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n holder.mIdView.setText(mValues.get(position).getTitle());\n holder.mContentView.setText(mValues.get(position).getDate());\n holder.itemView.setTag(mValues.get(position));\n holder.itemView.setOnClickListener(mOnClickListener);\n }",
"@Override\n public void onAttachedToRecyclerView(RecyclerView recyclerView) {\n super.onAttachedToRecyclerView(recyclerView);\n\n this.recyclerView =recyclerView;\n }",
"protected void onBindData(Context context, int position, T item, int itemLayoutId, ViewHelper2 helper){\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n RecyclerView decorativeElementsRecycler = (RecyclerView) inflater.inflate(R.layout.fragment_decorative_elements,container,false);\n String[] decorativeTexts = new String[Car.availableDecorativeInserts.length];\n for (int i = 0; i < decorativeTexts.length; i++) {\n decorativeTexts[i] = Car.availableDecorativeInserts[i].getName();\n }\n int[] decorativeImages = new int[Car.availableDecorativeInserts.length];\n for (int i = 0; i < decorativeImages.length ; i++) {\n decorativeImages[i] = Car.availableDecorativeInserts[i].getImageID();\n }\n\n ModelCardsAdapter adapter = new ModelCardsAdapter(decorativeTexts,decorativeImages);\n decorativeElementsRecycler.setAdapter(adapter);\n LinearLayoutManager layoutManager = new LinearLayoutManager(getContext());\n decorativeElementsRecycler.setLayoutManager(layoutManager);\n\n adapter.setListener(new ModelCardsAdapter.Listener() {\n @Override\n public void onClick(int position) {\n Car.currentCar.setDecorativeElements(Car.availableDecorativeInserts[position]);\n Intent intent = new Intent(getActivity(),ModifyCarActivity.class);\n startActivity(intent);\n Toast.makeText(getContext(),\"Decorative elements customized.\",Toast.LENGTH_SHORT).show();\n }\n });\n return decorativeElementsRecycler;\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n Picture pictures = picture.get(position);\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.title.setText(pictures.getTitle());\n holder.image.setImageURI(pictures.getUrl());\n\n }",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void bindView(View view, Context context, Cursor cursor) {\n if(Utils.weAreLollipop())view.findViewById(R.id.card).setElevation(contex.getResources().getDimension(R.dimen.elevation));\n String title=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_TITLE));\n long itemID=cursor.getLong(cursor.getColumnIndexOrThrow(Contract.ITEM_ID));\n String date=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_DATE));\n String sub=cursor.getString(cursor.getColumnIndexOrThrow(Contract.ITEM_SUBTITLE));\n TextView titleTextView= (TextView) view.findViewById(R.id.title);\n TextView subTextView= (TextView) view.findViewById(R.id.sub);\n TextView idTextView= (TextView) view.findViewById(R.id.item_id);\n TextView dateTextView= (TextView) view.findViewById(R.id.date);\n titleTextView.setText(title!=null?title:\"\");\n subTextView.setText(sub!=null?sub:\"\");\n idTextView.setText(\"\"+itemID);\n dateTextView.setText(date!=null?date:\"\");\n }",
"@Override\n public void onBindViewHolder(ViewHolderFav viewHolder, final int position) {\n Log.d(\"BarkeeperApp\", \"Element \" + position + \" set.\");\n\n // Get element from your dataset at this position and replace the contents of the view\n // with that element\n viewHolder.getTextView().setText(mDataSet[position]);\n\n Cocktail c = getRightCocktail(mDataSet[position]);\n\n this.map_View_Favs.put(viewHolder.itemView, c);\n\n ImageView imageView = (ImageView) viewHolder.itemView.findViewById(R.id.imageview_listitem);\n if (c.getIsFavourite()){\n imageView.setImageResource(R.drawable.icons8starfilled96);\n imageView.setVisibility(View.VISIBLE);\n }\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mRoot.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mListener.onCardClickListener(position);\n }\n });\n\n holder.title.setText(mDataset.get(position).getTitle());\n Picasso.with(mContext).load(mDataset.get(position).getCover()).error(R.drawable.book).into(holder.cover);\n// holder.author.setText(mDataset.get(position).getAuthor_id());\n holder.author.setText(DataManager.getInstance().getAuthorFromId(mDataset.get(position).getAuthor_id()));\n holder.sumary.setText(mDataset.get(position).getSummary());\n holder.sumary.setMinLines(1);\n holder.sumary.setMaxLines(3);\n holder.sumary.setEllipsize(TextUtils.TruncateAt.END);\n }",
"@Override\n public void onBindViewHolder(final MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.cred_key.setText(mData.get(position).getCred_key());\n holder.cred_value.setText(mData.get(position).getCred_value());\n\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n if (getItemViewType(position) == 0) {\n final Emplois emplois = listCurrentsSeances.get(position);\n\n\n\n holder.rawFiliere.setText(emplois.getFiliere());\n holder.rawEnseignant.setText(emplois.getEnseignant());\n holder.rawMatiere.setText(emplois.getMatiere());\n holder.rawSalle.setText(emplois.getSalle());\n\n Log.e(\"Item\",emplois.getEnseignant()+\" -> \" + emplois.getPresence());\n if (emplois.getPresence() == 1) {\n Log.e(\"COLOR\",\"WITHE\");\n holder.itemSeanceLayout.setBackgroundResource(R.color.colorListSeancesBg);\n holder.rootLayout.setBackgroundResource(R.color.colorListSeancesBg);\n } else if (emplois.getPresence() == 2) {\n holder.itemSeanceLayout.setBackgroundResource(R.color.colorAbscenceGroupe);\n holder.rootLayout.setBackgroundResource(R.color.colorAbscenceGroupe);\n } else {\n holder.itemSeanceLayout.setBackgroundResource(R.color.colorAbscent);\n holder.rootLayout.setBackgroundResource(R.color.colorAbscent);\n }\n // Return the View you just created\n\n holder.itemSeanceLayout.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View view, MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_UP) {\n if (emplois.getPresence() == 1) {\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n animateRevealView(holder.rootLayout, holder.itemSeanceLayout, R.color.colorAbscent, event.getX(), event.getY());\n } else {\n animateView(holder.rootLayout,holder.itemSeanceLayout,R.color.colorListSeancesBg,R.color.colorAbscent);\n }\n updatePresenceEmplois(emplois.getId(), 0);\n emplois.setPresence(0);\n\n } else if (emplois.getPresence() == 0) {\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n animateRevealView(holder.rootLayout, holder.itemSeanceLayout, R.color.colorAbscenceGroupe, event.getX(), event.getY());\n } else {\n animateView(holder.rootLayout,holder.itemSeanceLayout,R.color.colorAbscent,R.color.colorAbscenceGroupe);\n }\n updatePresenceEmplois(emplois.getId(), 2);\n emplois.setPresence(2);\n } else {\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n animateRevealView(holder.rootLayout, holder.itemSeanceLayout, R.color.colorListSeancesBg, event.getX(), event.getY());\n } else {\n animateView(holder.rootLayout,holder.itemSeanceLayout,R.color.colorAbscenceGroupe,R.color.colorListSeancesBg);\n }\n updatePresenceEmplois(emplois.getId(), 1);\n emplois.setPresence(1);\n //holder.itemSeanceLayout.setBackgroundResource(R.color.colorListSeancesBg);\n }\n }\n return false;\n }\n });\n } else {\n\n holder.exporterSeances.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (listCurrentsSeances.size() == 1) {\n Snackbar.make(activity.getViewPager(),\"La liste des seances est vide!\",Snackbar.LENGTH_LONG).show();\n } else {\n if (!NetworkManager.getInstance().isNetworkAvailable (activity)) {\n Snackbar.make(activity.getViewPager(),\"Aucune connexion disponible!\",Snackbar.LENGTH_LONG).show();\n } else if (SharedPerefManager.getInstance(activity).IsSeanceUploaded(listCurrentsSeances.get(0).getDebut())) {\n Snackbar.make(activity.getViewPager(),\"L'exportation est permise une seule fois par seance!\",Snackbar.LENGTH_LONG).show();\n } else {\n SeancesToUploadManager.getInstance().setListSeancesToUpload(listCurrentsSeances);\n showUserAuthentification();\n }\n }\n\n /*if (gf.selectValeur(nomFichier, \"*S\" + mState.getNumeroSeance() + \":\").compareTo(cle) == 0) {\n Toast.makeText(getActivity(), \"L' exportation des données est permise une seule fois par jour.\", Toast.LENGTH_LONG).show();\n } else {\n showUserAuthentification();\n }*/\n\n\n }\n });\n\n }\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n vi = inflater.inflate(R.layout.fragment_saved, container, false);\n\n dbWishes = new ArrayList<>();\n refreshData();\n savedAdapter = new SavedAdapter(getContext(), dbWishes);\n\n RecyclerView recyclerViewtop = (RecyclerView) vi.findViewById(R.id.recycler_view);\n StaggeredGridLayoutManager staggeredGridLayoutManager = new StaggeredGridLayoutManager(NUM_COLUMNS, LinearLayoutManager.VERTICAL);\n recyclerViewtop.setAdapter(savedAdapter);\n recyclerViewtop.setLayoutManager(staggeredGridLayoutManager);\n recyclerViewtop.addOnScrollListener(new RecyclerView.OnScrollListener() {\n @Override\n public void onScrollStateChanged(RecyclerView recyclerView, int newState) {\n super.onScrollStateChanged(recyclerView, newState);\n if (newState == AbsListView.OnScrollListener.SCROLL_STATE_TOUCH_SCROLL) {\n isScroll = true;\n //fetchData();\n }\n }\n\n @Override\n public void onScrolled(RecyclerView recyclerView, int dx, int dy) {\n super.onScrolled(recyclerView, dx, dy);\n currentItem = new LinearLayoutManager(getActivity()).getChildCount();\n totalItem = new LinearLayoutManager(getActivity()).getItemCount();\n scrollItem = new LinearLayoutManager(getActivity()).findFirstVisibleItemPosition();\n\n if (isScroll && (currentItem + scrollItem == totalItem)) {\n isScroll = false;\n }\n }\n });\n return vi;\n }",
"@Override\n public void onBindViewHolder(final ViewHolder holder, int position) {\n // Para el caso de Institucion, el layout contiene campos para el\n // id y el nombre corto\n holder.mIdView.setText(Long.toString(mValues.get(position).getIdInstitucion()));\n holder.mContentView.setText(mValues.get(position).getNombreCortoInstitucion());\n\n // Le asignamos como tag a este View el objeto Institucion correspondiente\n holder.itemView.setTag(mValues.get(position));\n // Le asignamos su manejador de eventos\n holder.itemView.setOnClickListener(mOnClickListener);\n }",
"@Override\n public void onBindViewHolder(OutfitViewHolder viewHolder, final int position) { }",
"private void layoutAttachedAndAppearingViews(RecyclerView.Recycler recycler,\r\n RecyclerView.State state){\r\n\r\n // There are no removed items out of the top border.\r\n // So we just layout from the firstAttachedItemPosition.\r\n // We do the pre layout and calculate the layout params for the real layout.\r\n if(firstChangedPosition >= firstAttachedItemPosition){\r\n // Store the layout parameters.\r\n int firstAttachedItemPositionTemp = firstAttachedItemPosition;\r\n int lastAttachedItemPositionTemp = lastAttachedItemPosition;\r\n int[] spanTopTemp = Arrays.copyOf(spanTop, mSpanCount);\r\n int[] spanBottomTemp = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n topBorder = getPaddingTop();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n mCurrentPosition = firstAttachedItemPosition;\r\n lastAttachedItemPosition = firstAttachedItemPosition;\r\n\r\n // Set the fake params.\r\n fakeSpanBottomMin = spanBottomMin;\r\n fakeSpanBottomMax = spanBottomMax;\r\n fakeCurrentPosition = mCurrentPosition;\r\n fakeFirstAttachedItemPosition = firstAttachedItemPosition;\r\n fakeFirstOneEmptyBottomSpanIndex = firstOneEmptyBottomSpanIndex;\r\n fakeFirstTwoEmptyBottomSpanIndex = firstTwoEmptyBottomSpanIndex;\r\n fakeSpanTop = Arrays.copyOf(spanTop, mSpanCount);\r\n fakeSpanBottom = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n // Lay out current attached views and appearing views.\r\n fillGridForPreLayout(recycler, state);\r\n\r\n // Restore the layout parameters.\r\n firstAttachedItemPosition = firstAttachedItemPositionTemp;\r\n lastAttachedItemPosition = lastAttachedItemPositionTemp;\r\n spanTop = Arrays.copyOf(spanTopTemp, mSpanCount);\r\n spanBottom = Arrays.copyOf(spanBottomTemp, mSpanCount);\r\n updateSpanTopParameters();\r\n updateSpanBottomParameters();\r\n }else{ // There are removed items out of the top border.\r\n\r\n // Calculate the spanTop begin with the firstChangedPosition\r\n // and update layout parameters.\r\n topBorder = getPaddingTop() - scrollOffset;\r\n Arrays.fill(spanTop, topBorder);\r\n for (int i = 0; i < firstChangedPosition; i++) {\r\n for (int j = 0; j < itemLayoutWidthCache.get(i); j++) {\r\n int spanIndex = itemOccupiedStartSpan.get(i) + j;\r\n spanTop[spanIndex] += itemLayoutHeightCache.get(i) * sizePerSpan;\r\n }\r\n }\r\n updateSpanTopParameters();\r\n bottomBorder = getHeight() - getPaddingBottom();\r\n spanBottom = Arrays.copyOf(spanTop, mSpanCount);\r\n updateSpanBottomParameters();\r\n mCurrentPosition = firstChangedPosition;\r\n // Fill from the spanTop until bottomBorder.\r\n // Note that we just lay out attached views and appearing views.\r\n // The firstAttachedItemPosition may change,\r\n // set it as -1 and update it during the layout\r\n firstAttachedItemPosition = -1;\r\n lastAttachedItemPosition = -1;\r\n\r\n detachAndScrapAttachedViews(recycler);\r\n\r\n // Set the fake params.\r\n fakeSpanBottomMin = spanBottomMin;\r\n fakeSpanBottomMax = spanBottomMax;\r\n fakeCurrentPosition = mCurrentPosition;\r\n fakeFirstAttachedItemPosition = firstAttachedItemPosition;\r\n fakeFirstOneEmptyBottomSpanIndex = firstOneEmptyBottomSpanIndex;\r\n fakeFirstTwoEmptyBottomSpanIndex = firstTwoEmptyBottomSpanIndex;\r\n fakeSpanTop = Arrays.copyOf(spanTop, mSpanCount);\r\n fakeSpanBottom = Arrays.copyOf(spanBottom, mSpanCount);\r\n\r\n // Lay out current attached views and appearing views.\r\n fillGridForPreLayout(recycler, state);\r\n\r\n // Restore the layout parameters.\r\n firstAttachedItemPosition = fakeFirstAttachedItemPosition;\r\n spanTop = Arrays.copyOf(fakeSpanTop, mSpanCount);\r\n spanBottom = Arrays.copyOf(fakeSpanBottom, mSpanCount);\r\n updateSpanTopParameters();\r\n updateSpanBottomParameters();\r\n }\r\n\r\n }",
"public ViewHolder(View itemView) {\n super(itemView);\n ButterKnife.bind(this, itemView);\n\n }",
"@Override\n public void onBindViewHolder(final RecyclerViewHolder holder, int position) {\n\n Reminder current = reminderList.get(holder.getAdapterPosition());\n holder.cardView.setTitle(current.getTitle());\n holder.cardView.setImageResource(R.drawable.reminder_default_icon);\n holder.cardView.setNormalButtonText(context.getString(R.string.card_view_btn_edit));\n\n if (current.isWithLocation()) { // has location\n holder.cardView.setDescription(context.getString(R.string.card_view_txt_location_name) + current.getRemindLocation().getName());\n holder.cardView.setHighlightButtonText(context.getString(R.string.card_view_btn_map));\n } else { // has a time\n if (current.isWithTime()) {\n// if (current.getEndTime() != null)\n// holder.cardView.setDescription(context.getString(R.string.card_view_txt_date) + \" \" + current.getEndDate());\n// else\n// holder.cardView.setDescription(context.getString(R.string.card_view_txt_date) + \" \" + current.getStartDate());\n Calendar startCalendar = Calendar.getInstance();\n startCalendar.setTimeInMillis(current.getStartTime());\n holder.cardView.setDescription(context.getString(R.string.card_view_txt_date) + \" \" + startCalendar.getTime());\n } else {\n// holder.cardView.setDescription(context.getString(R.string.card_view_txt_no_hurry));\n holder.cardView.setDescription(reminderList.get(position).getDescription());\n }\n\n holder.cardView.setHighlightButtonText(null);\n }\n\n holder.cardView.setRadius(8);\n\n// Log.d(\"CardView\", \"Height: \" + holder.itemView.getHeight() + \" Width: \" + holder.itemView.getWidth());\n\n if(itemClickListener != null){\n holder.cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n itemClickListener.onItemClick(holder.cardView, holder.getAdapterPosition());\n }\n });\n\n holder.cardView.setOnLongClickListener(new View.OnLongClickListener() {\n @Override\n public boolean onLongClick(View v) {\n itemClickListener.onItemLongClick(holder.cardView, holder.getAdapterPosition());\n return false;\n }\n });\n }\n }",
"private void initRecyclerView(android.view.View view){\n mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);\n mRecyclerView.setHasFixedSize(true);\n mLayoutManager = new LinearLayoutManager(MainActivity.sContext);\n mRecyclerView.setLayoutManager(mLayoutManager);\n mAdapter = new TopicRecyclerViewAdapter( mPresenter.getDataSet() );\n mRecyclerView.setAdapter(mAdapter);\n\n // Code to Add an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).addItem(obj, index);\n\n // Code to remove an item with default animation\n //((TopicRecyclerViewAdapter) mAdapter).deleteItem(index);\n }",
"public RecyclerViewHolder(View itemView) {\n super(itemView);\n\n cardView = (CardView) itemView.findViewById(R.id.reminder_holder_card_view);\n }",
"@Override\n public ActiveAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.notification_single_item, parent, false);\n // set the view's size, margins, paddings and layout parameters\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public final void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {\n if (!(viewHolder instanceof MoreViewHolder)) {\n adapter.onBindViewHolder(viewHolder, position);\n } else {\n MoreViewHolder moreViewHolder = (MoreViewHolder) viewHolder;\n moreViewHolder.setRealContext(context);\n onBindFooterViewHolder(moreViewHolder,position);\n }\n }",
"public abstract void onBindPageViewHolder(RecyclerView.ViewHolder holder, int position);",
"public void updateRecyclerView () {\n\n if (recyclerViewDebetableGoalsNow != null) {\n recyclerViewDebetableGoalsNow.destroyDrawingCache();\n recyclerViewDebetableGoalsNow.setVisibility(ListView.INVISIBLE);\n recyclerViewDebetableGoalsNow.setVisibility(ListView.VISIBLE);\n\n displayDebetableGoalsSet ();\n }\n }",
"@Override\n public void onBindViewHolder(RecyclerView.ViewHolder holder, final int position) {\n if (holder instanceof OriginalViewHolder) {\n OriginalViewHolder view = (OriginalViewHolder) holder;\n\n Product p = items.get(position);\n view.name.setText(p.getName());\n view.description.setText(Tools.currency(\"Rp\",p.getPrice()));\n view.stock.setText(\"Stock :\"+p.getStock());\n view.delete.setOnClickListener(del->{\n if (onItemRemove != null) {\n onItemRemove.onItemRemove(del, items.get(position), position);\n }\n });\n view.edit.setOnClickListener(edit->{\n Intent i = new Intent(ctx,EditProduct.class);\n i.putExtra(\"product_id\",p.getId());\n i.putExtra(\"name\",p.getName());\n i.putExtra(\"stock\",p.getStock());\n i.putExtra(\"price\",p.getPrice());\n ctx.startActivity(i);\n });\n Tools.displayImageOriginal(ctx, view.image, p.getImage());\n view.lyt_parent.setOnClickListener(view1 -> {\n if (mOnItemClickListener != null) {\n mOnItemClickListener.onItemClick(view1, items.get(position), position);\n }\n });\n }\n }",
"private void bindData(ViewHolder vh, int position) {\n\n }",
"@Override\n public void onBindViewHolder(AddFriendAdapter.ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n Friends thisFriend = addFriendList.get(position);\n String thisName = thisFriend.getFirstName() + \" \" + thisFriend.getLastName();\n holder.FriendName.setText(thisName);\n holder.ButtonText.setText(\"Add\");\n }",
"@Override\n public void onBindViewHolder(@NonNull MyViewHolder holder, int position) {\n // - get element from your dataset at this position\n DetailedResponse detailedResponse = getItem(position);\n\n // - replace the contents of the view with that element\n // holder.title.setText(sampleBook.getFkBookInfoModel());\n holder.bind(detailedResponse);\n\n }",
"@Override\n // Call ViewHolder class and create the view\n public RecyclerViewAdapter.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) {\n View view = LayoutInflater.from(viewGroup.getContext())\n .inflate(R.layout.list_row, viewGroup, false);\n\n // Pass the view created\n return new ViewHolder(view, context);\n }",
"@Override\n public void onBindViewHolder(RepoAdapterViewHolder repoAdapterViewHolder, int pos) {\n String weatherForThisDay = mRepoData[pos];\n repoAdapterViewHolder.mRepoTextView.setText(weatherForThisDay);\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n holder.mname.setText(mDataset.get(position).getCode());\n holder.mprice.setText(mDataset.get(position).getStock_name());\n }",
"@Override\n\t\t\tpublic ViewHolder onCreateViewHolder(View itemView) {\n\t\t\t\treturn new MylisViewHoder(itemView);\n\t\t\t}",
"public void updateArticleView(ServerObj serverObj){\n View v = getView();\n// String[] data = Ipsum.Articles;\n// article.setText(data[position]);\n// currentPosition = position;\n currentServerObj=serverObj;\n LinearLayout containerOfContents= (LinearLayout) v.findViewById(R.id.container_of_contents);\n containerOfContents.removeAllViews();\n ContentsViewBuilder contentsViewBuilder=new ContentsViewBuilder(activity);\n Log.d(\"myPavilion\",\"serverObj\"+serverObj.getJson());\n View contentsView=contentsViewBuilder.getView(serverObj.getContentsObj());\n containerOfContents.addView(contentsView);\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n //holder.mTextView.setText(mDataset.get());\n final OrderItem item = mDataset.get(position);\n holder.txtTheme.setText(item.getTheme().toUpperCase());\n holder.txtAdress.setText(item.getAdress());\n holder.progressOrder.setPercent(item.getPercent() / 100f);\n holder.txtPercent.setText(Integer.toString(item.getPercent())+\"%\");\n\n if (position%2==0){\n holder.img.setImageResource(R.drawable.order_1);\n }else {\n holder.img.setImageResource(R.drawable.order_2);\n }\n\n }",
"@Override\r\n public void onBindViewHolder(ViewHolder viewHolder, Cursor cursor) {\r\n }",
"@Override\n public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n // Create a new view\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.listitem_future, parent,false);\n MyHolder myHolder = new MyHolder(view);\n\n view.setLayoutParams(new RecyclerView.LayoutParams(\n RecyclerView.LayoutParams.MATCH_PARENT,\n RecyclerView.LayoutParams.WRAP_CONTENT\n ));\n\n return myHolder;\n }",
"public ViewHolder(View itemView) {\n super(itemView);\n imageView = itemView.findViewById(R.id.ivSomeImage);\n textView = itemView.findViewById(R.id.tvSomeText);\n }",
"@Override\r\n public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {\n switch (getItemViewType(position)) {\r\n case 1:\r\n // TextHolder label\r\n DayHolder dayHolder = (DayHolder) holder;\r\n dayHolder.dayTitle.setText(reminders.get(position).subject);\r\n break;\r\n case 2:\r\n // Reminder Holder label\r\n ReminderHolder reminderHolder = (ReminderHolder) holder;\r\n\r\n Reminder reminder = reminders.get(position);\r\n // Determine what colour to show the user\r\n String colour = getColour(reminder);\r\n\r\n // Start setting the information\r\n reminderHolder.colour.setBackgroundColor(Color.parseColor(colour));\r\n reminderHolder.reminderBody.setText(reminder.body);\r\n reminderHolder.time.setText(convertToAMPM(reminder.time));\r\n reminderHolder.subject.setText(reminder.subject);\r\n break;\r\n }\r\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 }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // get type\n int type = holder.getItemViewType();\n SeparatorQuestion item = list.get(position);\n\n //set content list question\n final Question_Info colorObject = (Question_Info) item;\n holder.answer1.setText(colorObject.answer1);\n holder.tag_answer = colorObject.tag_answer;\n\n\n holder.cly.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addItemFromInternet(colorObject.tag_answer);\n }\n });\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n\n DummyData dummyData = dummyDataList.get(position);\n\n holder.imageView.setImageBitmap(dummyData.getSomeImage());\n holder.textView.setText(dummyData.getSomeText());\n\n //set onclick listener for the views in the holder\n holder.itemView.setOnClickListener(this);\n holder.textView.setOnClickListener(this);\n }",
"@Override\n public void onBindViewHolder(StoryViewHolder holder, int position) {\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.card_layout, parent, false);\n // set the view's size, margins, paddings and layout parameters\n // ...\n\n return new ViewHolder(v);\n }",
"@Override\n\tpublic void onBindViewHolder(ViewHolder holder, int position) {\n\t\t// - get element from your dataset at this position\n\t\t// - replace the contents of the view with that element\n\t\tfinal Event name = mDataset.get(position);\n\t\tholder.txtEvent.setText(name.getEvent());\n holder.txtDate.setText(\"Dates: \" + name.getStartdate() + \" - \" + name.getEnddate());\n holder.txtDescr.setText(\"Description: \" + name.getDescription());\n// holder.buttonOne.setOnClickListener(new Button.OnClickListener() {\n// public void onClick(View v){Calendar beginTime = Calendar.getInstance();\n// beginTime.set(2015, 12, 12);\n// Calendar endTime = Calendar.getInstance();\n// endTime.set(2015, 12, 12);\n// Intent intent = new Intent(Intent.ACTION_INSERT)\n// .setData(CalendarContract.Events.CONTENT_URI)\n// .putExtra(CalendarContract.EXTRA_EVENT_BEGIN_TIME, name.getStartTime())\n// .putExtra(CalendarContract.EXTRA_EVENT_END_TIME, name.getEndTime())\n// .putExtra(CalendarContract.Events.TITLE, name.getEventName())\n// .putExtra(CalendarContract.Events.DESCRIPTION, name.getDescription())\n// .putExtra(CalendarContract.Events.EVENT_LOCATION, name.getEventLocation())\n// .putExtra(CalendarContract.Events.AVAILABILITY, name.getAvailability());\n// ;}\n// });\n\n\t}",
"@Override\n public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n //new view creation\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item,parent, false);\n return new MyViewHolder(v);\n }",
"@Override\n public RecyclerView.ViewHolder onCreateViewHolder(final ViewGroup parent, int viewType) {\n\n RecyclerView.ViewHolder viewHolder;\n LayoutInflater inflater = LayoutInflater.from(parent.getContext());\n\n switch (viewType) {\n case INGREDIENT:\n View ingredView = inflater.inflate(R.layout.shop_ingredient_row, parent, false);\n viewHolder = new ShoppingRecyclerViewAdapter.IngredViewHolder(ingredView);\n// , new IngredViewHolder.MyItemClickListener() {\n// @Override\n// public void onAddCabinet(int position) {\n// Toast.makeText(parent.getContext(), \"clicked add to cabinet\", Toast.LENGTH_LONG).show();\n// }\n//\n// @Override\n// public void onDelete(int position) {\n//\n//\n//// if (position > posOfText) {\n//// intent.putExtra(\"drink\", items.get(position));\n//// intent.setClassName(packageName,\n//// packageName + \".UI.DrinkRecipeActivity\");\n//// startActivity(intent);\n//// }\n//\n//\n// Toast.makeText(parent.getContext(), \"clicked remove\", Toast.LENGTH_LONG).show();\n// }\n// });\n break;\n case TEXT:\n View textView = inflater.inflate(R.layout.text_row, parent, false);\n viewHolder = new ShoppingRecyclerViewAdapter.TextViewHolder(textView);\n break;\n default:\n viewHolder = null;\n }\n return viewHolder;\n }",
"@Override\n public int getItemViewType(int position) {\n return position; // USE THIS FOR KEEP OLD VIEW DATA WHEN SCROLL.\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n int animal = mData.get(position);\n holder.myTextView.setText(\"\" + animal);\n }",
"@Override\n public SearchResultAdapter.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.event_recyclerview, parent, false);\n// v.setTag(true);\n final ViewHolder vh = new ViewHolder(v);\n v.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n listener.onItemClick(v.findViewById(R.id.event_host_desc), vh.getAdapterPosition());\n }\n });\n return vh;\n }",
"private void setView() {\n // Category Views\n categoryRecycler.setLayoutManager(new LinearLayoutManager(getContext()));\n cartRecyclerView.addItemDecoration(new GridItemDecoration(8, 8));\n\n categoryRecycler.addItemDecoration(new GridItemDecoration(16, 16));\n categoryAdapter.setOnCategorySelectedListener(this);\n categoryRecycler.setAdapter(categoryAdapter);\n\n // Product Views\n productRecycler.setLayoutManager(new GridLayoutManager(getContext(), 3));\n productRecycler.addItemDecoration(new GridItemDecoration(8, 8));\n productRecycler.setAdapter(productAdapter);\n productAdapter.setOnProductClickListener(new ProductItemListener());\n\n // Cart Views\n cartRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n cartRecyclerView.setAdapter(cartAdapter);\n cartAdapter.setOnItemUpdateListener(this);\n\n //discount\n discountList = new ArrayList<>();\n DiscountAdapter discountAdapter = new DiscountAdapter(getContext(), discountList);\n discountRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n discountRecyclerView.setAdapter(discountAdapter);\n OrderAPI.getInstance(getContext()).getDiscount(discountList, discountAdapter, this, db);\n discountAdapter.setOnDiscountClickListener(this);\n\n SchoolAPI.getInstance(getActivity()).getStudents(studentList, db);\n\n //back button\n backButton.setOnClickListener(view -> onBackPressClicked());\n\n // Payment Button\n paymentButton.setOnClickListener((v) -> onPaymentButtonClicked());\n\n discountButton.setOnClickListener((v) -> {\n /*showDiscountDialog()*/\n discountRecyclerView.setVisibility(View.VISIBLE);\n cartRecyclerView.setVisibility(View.GONE);\n emptyCartView.setVisibility(View.GONE);\n\n updateDiscountNotification(discountList.size());\n checkDiscountAvailability();\n });\n\n cartButton.setOnClickListener(view -> {\n discountRecyclerView.setVisibility(View.GONE);\n noDiscountText.setVisibility(View.GONE);\n\n if (cartList.size() > 0) {\n cartRecyclerView.setVisibility(View.VISIBLE);\n emptyCartView.setVisibility(View.GONE);\n } else {\n cartRecyclerView.setVisibility(View.GONE);\n emptyCartView.setVisibility(View.VISIBLE);\n }\n });\n\n studentIdText.setOnEditorActionListener(((textView, actionId, keyEvent) -> {\n if (actionId == EditorInfo.IME_ACTION_DONE) {\n onSubmitClick();\n return true;\n }\n\n return false;\n }));\n\n //fetch student details\n submitButton.setOnClickListener(view -> onSubmitClick());\n\n //return items\n returnButton.setOnClickListener(view -> showReturnItemDialog());\n\n //add details button\n addDetailsButton.setOnClickListener(view -> showAddDetailsDialog());\n\n //gender_type button\n maleView.setOnClickListener(view -> {\n\n if (!isMaleSelected || notSelectedYet) {\n categoryText.setText(null);\n\n isMaleSelected = true;\n notSelectedYet = false;\n\n categoryAdapter.clearBackground();\n //change button views\n maleView.setBackgroundColor(getResources().getColor(R.color.denim1));\n maleView.setTextColor(getResources().getColor(R.color.white1));\n\n femaleView.setBackgroundColor(getResources().getColor(android.R.color.transparent));\n femaleView.setTextColor(getResources().getColor(R.color.black1));\n\n //apply changes to products\n if (productList != null && productList.size() > 0) {\n productList.clear();\n }\n maleList.clear();\n\n for (ProductHeader currentProduct : allProducts) {\n if (currentProduct.getGender().equals(APIStatic.Constants.MALE)) {\n productList.add(currentProduct);\n maleList.add(currentProduct);\n }\n }\n\n checkAvailability();\n productAdapter.notifyDataSetChanged();\n }\n });\n\n femaleView.setOnClickListener(view -> {\n\n if (isMaleSelected || notSelectedYet) {\n categoryText.setText(null);\n\n isMaleSelected = false;\n notSelectedYet = false;\n categoryAdapter.clearBackground();\n femaleView.setBackgroundColor(getResources().getColor(R.color.denim1));\n femaleView.setTextColor(getResources().getColor(R.color.white1));\n\n maleView.setBackgroundColor(getResources().getColor(android.R.color.transparent));\n maleView.setTextColor(getResources().getColor(R.color.black1));\n\n //apply changes to products\n if (productList != null && productList.size() > 0) {\n productList.clear();\n }\n femaleList.clear();\n\n for (ProductHeader currentProduct : allProducts) {\n if (currentProduct.getGender().equals(APIStatic.Constants.FEMALE)) {\n productList.add(currentProduct);\n femaleList.add(currentProduct);\n }\n }\n\n checkAvailability();\n productAdapter.notifyDataSetChanged();\n }\n });\n\n // Fetch Data\n ProductAPI.fetchCategories(getContext(), categoryList, categoryAdapter, db);\n ProductAPI.fetchProducts(getContext(), allProducts, productList, productAdapter, null, db, null, null);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_notification, container, false);\n\n /*****************code For Card View*****************/\n\n recyclerView = (RecyclerView) view.findViewById(R.id.notification_recycler_view);\n newsList = new ArrayList<>();\n adapter = new NewsAdapter(getContext(), newsList);\n\n RecyclerView.LayoutManager mLayoutManager = new GridLayoutManager(getContext(), 1);\n recyclerView.setLayoutManager(mLayoutManager);\n recyclerView.addItemDecoration(new utils.GridSpacingItemDecoration(2, dpToPx(getActivity(),10), true));\n recyclerView.setItemAnimator(new DefaultItemAnimator());\n recyclerView.setAdapter(adapter);\n adapter.setOnClick(this);\n prepareAlbums();\n\n /*****************code For Card View*****************/\n\n return view;\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n // - get element from your dataset at this position\n // - replace the contents of the view with that element\n\n // Individually handles each Contact in the contactList\n LeaderEntry currentEntry = leaderList.get(position);\n\n // Extracts the name of the Contact\n TextView name = holder.mTextViewName.findViewById(R.id.textView_Name);\n name.setText(currentEntry.getLeaderName());\n\n // Extracts the phone number of the Contact\n TextView number = holder.mTextViewName.findViewById(R.id.textView_Score);\n number.setText(currentEntry.getHighScore());\n\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, final int position) {\n\n\n if (this.mDataset.get(position).simpleValues.get(\"imdbID\") != holder.imdbID) {\n\n /*\n if (holder.imdbID != null) {\n this.bitmaps.get(holder.imdbID).recycle();\n this.bitmaps.remove(holder.imdbID);\n }*/\n\n File cover = new File(this.application.coverFolderMoviesHigh + mDataset.get(position).simpleValues.get(\"imdbID\") + \".jpg\");\n\n //Bearbeite Bild des Layouts\n if (cover.exists()) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n /*\n if (this.activity.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n options.inSampleSize = 2;\n } else {\n options.inSampleSize = 3;\n }*/\n Bitmap coverBitmap = BitmapFactory.decodeFile(cover.getAbsolutePath(), options);\n //this.bitmaps.put(this.mDataset.get(position).simpleValues.get(\"imdbID\"), coverBitmap);\n holder.mImageView.setImageBitmap(coverBitmap);\n }\n\n // setze onClickListener\n holder.mImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n FragmentManager fragmentManager = activity.getSupportFragmentManager();\n // schließe alle offenen Fragmente\n for (int i=fragmentManager.getBackStackEntryCount(); i>0; i--) {\n fragmentManager.popBackStack();\n }\n // erstelle detailedMovieFragment\n MovieDetailedFragment movieDetailedFragment = new MovieDetailedFragment();\n movieDetailedFragment.setImdbID(mDataset.get(position).simpleValues.get(\"imdbID\"));\n if (mDataset.get(position).simpleValues.get(\"3d\").length() == 0) {\n movieDetailedFragment.setDimensions(0);\n } else {\n movieDetailedFragment.setDimensions(1);\n }\n fragmentManager.beginTransaction().replace(R.id.mainContent, movieDetailedFragment, \"movieDetailedFragment\").addToBackStack(\"movieDetailedFragment\").commit();\n }\n });\n holder.imdbID = this.mDataset.get(position).simpleValues.get(\"imdbID\");\n\n }\n\n }",
"@Override\n public void onBindViewHolder(ArticleViewHolder holder, int position) {\n Article article = articles.get(position); // find article to bind\n holder.bind(article); // bind article to holder\n }",
"@Override\n public MyAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n\n if (viewType == TYPE_ITEM) {\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_row,parent,false); //Inflating the layout\n\n ViewHolder vhItem = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhItem; // Returning the created object\n\n //inflate your layout and pass it to view holder\n\n } else if (viewType == TYPE_HEADER) {\n\n View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.header,parent,false); //Inflating the layout\n\n ViewHolder vhHeader = new ViewHolder(v,viewType); //Creating ViewHolder and passing the object of type view\n\n return vhHeader; //returning the object created\n\n\n }\n return null;\n\n }",
"@Override\n public PhoneInfoRecyclerviewAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n final View inflatedView = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.single_view_phone_info, parent, false);\n\n // create a new view holder for our inflated new view\n final ViewHolder holder = new ViewHolder(inflatedView);\n\n // setup an on click listener on our inflated view\n inflatedView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mCustomItemClickListener.onItemClick(inflatedView, holder.getAdapterPosition());\n }\n });\n return holder;\n }",
"@Override\n public void onBindViewHolder(ViewHolder holder, int position) {\n String animal = mData.get(position);\n holder.myTextView.setText(animal);\n }"
] | [
"0.740333",
"0.66787094",
"0.65588075",
"0.64277834",
"0.6411885",
"0.64053965",
"0.6402466",
"0.6391611",
"0.63879",
"0.6376915",
"0.63758373",
"0.6362023",
"0.6349252",
"0.63451385",
"0.63347507",
"0.63135284",
"0.6306931",
"0.6258101",
"0.624619",
"0.62283134",
"0.62242746",
"0.6218872",
"0.6201531",
"0.6192201",
"0.615884",
"0.6142643",
"0.6138364",
"0.613336",
"0.61329824",
"0.61287755",
"0.61172706",
"0.6115737",
"0.6112023",
"0.6106141",
"0.61026675",
"0.6094552",
"0.6091746",
"0.6091104",
"0.6083649",
"0.607002",
"0.6043468",
"0.60429394",
"0.60419077",
"0.6037088",
"0.6027653",
"0.60223264",
"0.60128367",
"0.60108477",
"0.60051316",
"0.6001327",
"0.5985626",
"0.5980645",
"0.5972597",
"0.5965745",
"0.5949987",
"0.59482205",
"0.59472996",
"0.594566",
"0.59426105",
"0.59403557",
"0.59364706",
"0.593152",
"0.5909736",
"0.59063107",
"0.59028524",
"0.5898994",
"0.5898881",
"0.5898247",
"0.58926696",
"0.5883598",
"0.58823335",
"0.5878507",
"0.58772886",
"0.5876795",
"0.5868378",
"0.5868258",
"0.58616745",
"0.5842756",
"0.5838246",
"0.5837295",
"0.5834582",
"0.58336705",
"0.58312666",
"0.5827021",
"0.58251405",
"0.5817792",
"0.5817289",
"0.58147264",
"0.5801054",
"0.57946765",
"0.579168",
"0.57905394",
"0.57901603",
"0.5784423",
"0.5782911",
"0.57821363",
"0.57787514",
"0.5777776",
"0.57757425",
"0.57750165"
] | 0.60604227 | 40 |
END_INCLUDE(recyclerViewOnBindViewHolder) Return the size of your dataset (invoked by the layout manager) | @Override
public int getItemCount() {
return mDataSet.length;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getItemCount() {\n return mDataset.length();\n }",
"@Override\n public int getItemCount() {\n return mDataset.length();\n }",
"@Override\n public int getItemCount() {\n //list.length to return\n return mDataset.size();\n }",
"int getItemSize();",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n\tpublic int getItemCount() {\n\t\treturn mDataset.size();\n\t}",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n }",
"@Override\n public int getItemCount() {\n return mDataset.length;\n }",
"@Override\n public int getItemCount() {\n return mDataset.length;\n }",
"@Override\n public int getItemCount() {\n return mDataset.size();\n\n }",
"@Override\n public int getItemCount() {\n return dataset.size();\n }",
"@Override\r\n public int getItemCount() {\r\n return dataset.size();\r\n }",
"@Override\n public int getItemCount() {\n if (mDataset == null) {\n return 0;\n } else {\n return mDataset.size();\n }\n\n }",
"public long getItemCount() {\n\t\treturn this.getSize(data);\n\t}",
"@Override\n public int getItemCount() {\n return dataset.length;\n }",
"@Override\r\n\t\tpublic int getCount() {\n\t\t\treturn mData.size();\r\n\t\t}",
"@Override\n public int getItemCount() {\n return mDataset == null ? 0 : mDataset.size();\n }",
"public int getCount() {\n if(data.size()<=0) return 1;\n return data.size();\n }",
"@Override\r\n\tpublic int getCount() {\n\t\treturn mData.size();\r\n\t}",
"@Override\r\n\tpublic int getCount() {\n\t\treturn mData.size();\r\n\t}",
"@Override\n public int getItemCount() {\n //int size = dataset.size();\n int size = coupons.size();\n return size;\n }",
"@Override\n public int getItemCount() {\n return concessionDataset.size();\n }",
"@Override\n public int getItemCount() {\n //삼항 연산자\n return mDataset == null ? 0 : mDataset.size();\n }",
"public int getCount() {\n return _data.size();\n }",
"@Override\n\tpublic int getCount() {\n\t\treturn mData.size();\n\t}",
"@Override\n\tpublic int getCount() {\n\t\treturn mData.size();\n\t}",
"public int getCount() {\n\t\treturn data.size();\r\n\t}",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData != null ? mData.size() : 0;\n }",
"public int getCount() {\n\t\treturn _mData.size();\n\t}",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n if (addedHeader()) {\n return getData() == null ? 0 : (getData().size() + 1);\n } else {\n return getData() == null ? 0 : getData().size();\n }\n }",
"@Override\n public int getItemCount()\n {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return mSize;\n }",
"@Override\n public int getItemCount() {\n //returns the number of elements the RecyclerView will display\n return requests.size();\n }",
"@Override\r\n\tpublic int getCount() {\n\t\treturn data.size();\r\n\t}",
"@Override\r\n\tpublic int getCount() {\n\t\treturn data.size();\r\n\t}",
"@Override\r\n\tpublic int getCount() {\n\t\treturn datas.size();\r\n\t}",
"@Override\r\n\tpublic int getCount() {\n\t\treturn datas.size();\r\n\t}",
"public int getCount() {\n return dataList.size();\n }",
"@Override\n public int getItemCount() {\n return this.datas.size();\n }",
"@Override\n public int getItemCount() {\n return rvData.size();\n }",
"@Override\n public int getItemCount() {\n return mData.length;\n }",
"public int getCount() {\n\t\t\treturn data.size();\n\t\t}",
"public int getCount() {\n return data.size() / 2;\n }",
"@Override\n public int getItemCount() {\n\n return outfitDataSet.size();\n }",
"public int getCount() {\n return datalist.size();\n }",
"@Override\n public int getCount() {\n return mData.size();\n }",
"@Override\n public int getItemCount() {\n return dataSet.size();\n }",
"@Override\n\tpublic int getCount() {\n\t\treturn data.size();\n\t}",
"@Override\n\tpublic int getCount() {\n\t\treturn data.size();\n\t}",
"@Override\n\tpublic int getCount() {\n\t\treturn data.size();\n\t}",
"@Override\n\tpublic int getCount() {\n\t\treturn data.size();\n\t}",
"@Override\n\tpublic int getCount() {\n\t\treturn data.size();\n\t}",
"@Override\n\tpublic int getSize() {\n\t\treturn datas.size();\n\t}",
"@Override\n\tpublic int getCount() {\n\t\treturn datas.size();\n\t}",
"int getItemCount();",
"int getItemCount();",
"int getItemCount();",
"@Override\n public int getItemCount() {\n return arrayData.size();\n }",
"@Override\n public int getCount() {\n return mData.size();\n }",
"@Override\n public int getCount() {\n return mData.size();\n }",
"@Override\n public int getCount() {\n return mData.size();\n }",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn mDatas.size();\n\t\t}",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn mDatas.size();\n\t\t}",
"@Override\n\tpublic int getCount() {\n\t\treturn datalist.size();\n\t}"
] | [
"0.75728256",
"0.7534353",
"0.7519458",
"0.74550897",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.7415981",
"0.74039495",
"0.7386659",
"0.7386659",
"0.73535514",
"0.73535514",
"0.7339719",
"0.73038954",
"0.7303594",
"0.7276649",
"0.7267257",
"0.72069967",
"0.7182516",
"0.7161813",
"0.71453977",
"0.71412975",
"0.71412975",
"0.71263665",
"0.712614",
"0.71177834",
"0.7067146",
"0.70634377",
"0.70634377",
"0.70611936",
"0.7012878",
"0.7007924",
"0.70048237",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004789",
"0.7004489",
"0.699945",
"0.69986296",
"0.6980579",
"0.69544786",
"0.69544786",
"0.6951876",
"0.6951876",
"0.69483095",
"0.6946954",
"0.69370407",
"0.69312423",
"0.69267875",
"0.6926382",
"0.69213176",
"0.6915816",
"0.69061494",
"0.69044447",
"0.68931377",
"0.68931377",
"0.68931377",
"0.68931377",
"0.68931377",
"0.68896663",
"0.68814623",
"0.68794423",
"0.68794423",
"0.68794423",
"0.6878512",
"0.6868767",
"0.6868767",
"0.6868767",
"0.68622035",
"0.68622035",
"0.6845584"
] | 0.72033954 | 39 |
TODO Autogenerated method stub AbstractQueuedSynchronizer aqs = | public static void main(String[] args) {
ReentrantReadWriteLock lock = new ReentrantReadWriteLock();
// ConditionObject
CyclicBarrier cyclicBarrier = new CyclicBarrier(2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onQueued() {}",
"protected abstract List<BlockingQueue<CallRunner>> getQueues();",
"Collection<QueuedPrintJob> getQueue();",
"public void onQueue();",
"public CincamimisQueue()\r\n {\r\n measurementQueue=new ArrayBlockingQueue(10,true);\r\n }",
"private void workOnQueue() {\n }",
"@Override\n protected String getQueueName() {return _queueName;}",
"void runQueue();",
"public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}",
"public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object task, int level);\n\tpublic void clear();\n}",
"public AliasInQueue() {\n\t\tsuper();\n\t}",
"public synchronized final void setQueued(boolean qd) {\n\t\tsetFlag(RequestQueued, qd);\n\t}",
"@Override\n\tpublic Collection<TreeNode> getQueuingDataStructure() {\n\t\treturn null;\n\t}",
"protected abstract long waitOnQueue();",
"@Override\n public void queue(String queueName, String owner, boolean exclusive, FieldTable arguments) {\n\n synchronized (this) {\n try {\n AMQShortString queueNameShortString = new AMQShortString(queueName);\n\n AMQQueue q = _virtualHost.getQueueRegistry().getQueue(queueNameShortString);\n\n if (q == null) {\n //if a new durable queue is added we can know it here\n q = AMQQueueFactory.createAMQQueueImpl(queueNameShortString,\n true,\n owner == null ? null : new AMQShortString(owner),\n false, exclusive,\n _virtualHost, arguments);\n\n _virtualHost.getQueueRegistry().registerQueue(q);\n\n if(_logger.isDebugEnabled()) {\n _logger.debug(\"Queue sync - Added Queue: \" + queueName\n + \", Owner: \" + owner + \", IsExclusive: \" + exclusive + \", Arguments: \" + arguments);\n }\n }\n } catch (AMQException e) {\n throw new RuntimeException(e);\n }\n }\n }",
"public abstract void backoffQueue();",
"public List<MediaSessionCompat.QueueItem> getQueue() {\n }",
"@Override\n\tpublic void q() {\n\n\t}",
"@Override\n\tpublic void addQueueNames(String... queueName) { // NOSONAR - extra javadocs\n\t\tsuper.addQueueNames(queueName); // calls addQueues() which will cycle consumers\n\t}",
"void processQueue();",
"myQueue(){\n }",
"@Override\n\tpublic void addQueues(Queue... queue) {\n\t\tsuper.addQueues(queue);\n\t\tqueuesChanged();\n\t}",
"public interface OnQueueDataChangedListener {\n\n void onQueueDataChanged();\n }",
"private void updateQueueSize() {\n\t\tsims.minQS = state.queueSize < sims.minQS ? state.queueSize : sims.minQS;\n\t\tsims.maxQS = state.queueSize > sims.maxQS ? state.queueSize : sims.maxQS;\n\t}",
"public AppQueue getQueue()\r\n {\r\n return event_q;\r\n }",
"public String queueName();",
"public SQueue(){\n\n\t}",
"private void sendQueuedNotifications() {\n Notification n;\n while ((n = pendingNotifs.poll()) != null) {\n broadcaster.sendNotification(n);\n }\n }",
"public void setRequestQueue(BlockingQueue q)\n {\n queue = q;\n }",
"public int queue() \n { return waiting; }",
"public boolean wasQueued() {\r\n\t\tif (wasQueued == true) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public void executeQueue() {\n\tLog.d(TaskExecutor.class.getName(), \"Execute \" + mQueue.size() + \" Tasks\");\n\tfor (Task task : mQueue) {\n\t if (!mTaskExecutor.getQueue().contains(task))\n\t\texecuteTask(task);\n\t}\n }",
"public void onQueueChanged(@Nullable List<MediaSession.QueueItem> queue) {\n }",
"@Override\n\tpublic void addToQueue() {\n\t}",
"void queueShrunk();",
"public interface QLockManager {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model contextProviderRequired=\"true\" addressDataType=\"org.smeup.sys.mi.core.JavaURI\"\n\t * @generated\n\t */\n\t<N extends QObjectNameable> QObjectLocker<N> getLocker(QContextProvider contextProvider, URI address);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model contextProviderRequired=\"true\"\n\t * @generated\n\t */\n\t<N extends QObjectNameable> QObjectLocker<N> getLocker(QContextProvider contextProvider, N object);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model type=\"org.smeup.sys.mi.core.JavaConcurrentMap\" contextProviderRequired=\"true\"\n\t * @generated\n\t */\n\t<K, V> ConcurrentMap<K, V> getConcurrentMap(QContextProvider contextProvider, String name);\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model type=\"org.smeup.sys.mi.core.JavaBlockingQueue\" contextProviderRequired=\"true\"\n\t * @generated\n\t */\n\t<E> BlockingQueue<E> getQueue(QContextProvider contextProvider, String name);\n\n}",
"private void sendQueue() {\r\n firePropertyChange(\"boardQueue\", null, myBoardQueue);\r\n firePropertyChange(\"scaleQueue\", null, myScaleDialogQueue);\r\n firePropertyChange(\"gui\", null, this);\r\n }",
"void onSqsRequestAttempt(String internalQueueName);",
"public SynchronousTimeLimitedTask(Queue<BooleanSupplier> steps) {\n _steps = steps;\n }",
"public interface Queue {\r\n\r\n\t/**\r\n\t * This method will return the first activity from the queue.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Activity poll();\r\n\r\n\t/**\r\n\t * This method will push the activity to the queue.\r\n\t * \r\n\t * @param activity\r\n\t */\r\n\tpublic void push(Object activity);\r\n\r\n\t/**\r\n\t * This method will tell that the queue is closed or not.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isQueueClosed();\r\n\r\n\t/**\r\n\t * This method will on the queue to available.\r\n\t */\r\n\tpublic void onQueue();\r\n\r\n\t/**\r\n\t * this method will off the queue so not available.\r\n\t */\r\n\tpublic void closeQueue();\r\n\r\n\t/**\r\n\t * Returns true if the queue is empty.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n}",
"public interface IQueue {\n public void clear();\n public boolean isEmpty();\n public int length();\n public Object peek();\n public void offer(Object x) throws Exception;\n public Object poll();\n}",
"@Override\n public Class getQoSClass ()\n {\n return getEncapsulatedQueue ().getQoSClass ();\n }",
"public boolean isSetQueues() {\n return this.queues != null;\n }",
"public interface QueueInterface {\r\n Object dequeue() throws QueueUnderflowException;\r\n // Throws QueueUnderflowException if this queue is empty,\r\n // otherwise removes top element from this queue.\r\n \r\n \r\n boolean isEmpty();\r\n // Returns true if this queuea is empty, otherwise returns false.\r\n\r\n}",
"@Override\n public Object getQoS ()\n {\n return getEncapsulatedQueue ().getQoS ();\n }",
"@Override\n public Object[] toArray() {\n return queue;\n }",
"private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }",
"protected interface IndexedQueue {\n long lvConsumerIndex();\n\n long lvProducerIndex();\n }",
"public interface QueueServiceProvider {\n /**\n * Returns the name of the Queue implementation.\n * @return Name of the queue implementation.\n */\n String name();\n\n /**\n * Places an object on the end of the queue.\n * @param object Object to place on the queue.\n */\n void enqueue(String object);\n\n /**\n * Retrieves an object from the front of the queue.\n * @return Object from the queue.\n */\n String dequeue();\n}",
"public int getNumQueues() {\n return queues.size();\n }",
"void updateTransformQueueVersions() {\n\t}",
"FutureEventList() {\n q = new PriorityQueue<Event>(10, new EventComperator());\n }",
"public interface DoubleQueue {\n\n public void accoda(Object elemento);\n public Object leggicoda();\n public void fuoricoda();\n public void inpila(Object elemento);\n public Object leggitesta();\n public void fuoritesta();\n public boolean codavuota();\n\n}",
"public boolean isQueued() {\r\n\t\tif (vehicleState == \"queued\") {\r\n\t\t\twasQueued = true;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"protected void aq() {\n Object object = this.li;\n synchronized (object) {\n if (this.lz != null) {\n this.lp.unregisterReceiver(this.lz);\n this.lz = null;\n }\n return;\n }\n }",
"void addToQueuing(int tu){\n\t\tfor(Request req : queue.list){\n\t\t\tif(req.getReqTime() * 2 > tu){\t//大于当前时间的就不管了\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif(req.getValid() == true){\t//如果没被删除,拷贝一份,删之,并将拷贝添加到Queuing里面\n\t\t\t\tRequest tmp = req.cloneAnObj();\t\t//克隆一个新的对象\n\t\t\t\treq.setValid(false);\n\t\t\t\tqueuing.list.add(tmp);\t//可以用引用对Queuing进行操作\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n public void handleMessage(Message msg) {\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public EligibleQueueUnlink()\n {\n super(\"EligibleQueueUnlink\");\n }",
"public void toQueueMode() {\n\t\t// TODO Write me!\n\t\t\n\t}",
"Set<Class<? extends ScheduledProcess>> getScheduledProcessQueue();",
"public interface QueueManager {\n /**\n * Method to enqueue a Job inside a transaction.\n * <b> Note that we want to enqueue all tasks within a transaction. So even when this\n * method does not consume Objectify Transaciton directly, it is required to ensure that it was\n * called inside a transaction.\n * \n * @param ofy\n * @param jobId\n */\n public void enqueueGoogleDocInteractionJob(Objectify ofy, JobId jobId);\n \n public void enqueuePollingJob(Objectify ofy, JobId jobId);\n \n public void enqueueLightJob(Objectify ofy, JobId jobId);\n \n public void enqueueLightJobWithoutTxn(JobId jobId);\n \n public void enqueueSearchIndexTask(Objectify ofy);\n \n public void enqueueSearchIndexGSSTask(Objectify ofy);\n \n public <T extends AbstractNotification<T>> void enqueueNotification(\n Objectify ofy, T notification);\n}",
"public final synchronized SyncQueueItem a() {\n if (this.a == null) {\n return null;\n }\n SyncQueueItem syncQueueItem = this.a;\n this.a = this.a.j;\n return syncQueueItem;\n }",
"@Override\n\t\t\tpublic Optional<IAMQPQueue> queue() {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\t\t\tpublic Optional<IAMQPQueue> queue() {\n\t\t\t\treturn null;\n\t\t\t}",
"@DISPID(26)\r\n\t// = 0x1a. The runtime will prefer the VTID if present\r\n\t@VTID(31)\r\n\tjava.lang.String submissionQueue();",
"public void mo37770b() {\n ArrayList<RunnableC3181a> arrayList = f7234c;\n if (arrayList != null) {\n Iterator<RunnableC3181a> it = arrayList.iterator();\n while (it.hasNext()) {\n ThreadPoolExecutorFactory.getScheduledExecutor().execute(it.next());\n }\n f7234c.clear();\n }\n }",
"public void testDrainTo() {\n SynchronousQueue q = new SynchronousQueue();\n ArrayList l = new ArrayList();\n q.drainTo(l);\n assertEquals(q.size(), 0);\n assertEquals(l.size(), 0);\n }",
"public abstract String getQueueDisplayName();",
"public final boolean isQueued() {\n\t\treturn (m_flags & RequestQueued) != 0 ? true : false;\n\t}",
"public synchronized void a() {\n AppMethodBeat.i(98173);\n Runnable runnable = (Runnable) this.a.poll();\n this.b = runnable;\n if (runnable != null) {\n AsyncTask.sHighThreadExecutor.execute(this.b);\n }\n AppMethodBeat.o(98173);\n }",
"@Override\n\t\t\tprotected void beforeExecute(Thread t, Runnable r) {\n\t\t\t\tint qsize = getQueue().size();\n\t\t\t\tif(initCorePoolSize>0&&getCorePoolSize()<getMaximumPoolSize()\n\t\t\t\t\t&& qsize > 0 && (qsize%divisor) == 0){\n\t\t\t\t\tsetCorePoolSize(getCorePoolSize()+1); // 进行动态增加\n\t\t\t\t}\n\t\t\t}",
"String nameOfListenQueue();",
"java.lang.String getQueueName();",
"@Override\r\npublic void run() {\n\tfor (int i = 0; i < 10; i++) {\r\n\t\ttry {\r\n\t\t\tbQueue.take();\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tSystem.out.println(\"------苹果的数量是:\"+\" \"+\" \"+bQueue.size());\r\n\t}\r\n}",
"final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }",
"String queue(SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;",
"private Queue(){\r\n\t\tgenerateQueue();\r\n\t}",
"ValueQueue() { super(); }",
"public static void main(String[] args) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2, 2, 0, TimeUnit.NANOSECONDS, new ArrayBlockingQueue<>(10));\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"all task over!\");\n threadPoolExecutor.shutdown();\n }",
"String getBaseQueueName();",
"public MyArrayList<E> getQueue() {\n return this.queue;\n }",
"private void addToQueue (Parcel[] packagesAssigned){\n\n }",
"public DirtyRegionQueue() {\r\n\t\tsuper();\r\n\t}",
"void deleteQueue();",
"public Long getQuesid() {\n return quesid;\n }",
"public interface MqConsumer {\n}",
"public ArrayQueue<Person> getQueue() {\n return applicantQueue;\n }",
"public boolean isAvailable(){\r\n return blockingQueue.size() < maxWorkQueueSize;\r\n }",
"int getNumBarriers() {\n return queue.size();\n }",
"public void setViewToControllerQueue(BlockingQueue<Message> v) \n {\n viewToControllerQueue = v;\n }",
"@Override\n public int queueLength() {\n return this.job_queue.size();\n }",
"public final synchronized void a(int i) {\n while (this.a != null && this.a.a == i) {\n SyncQueueItem syncQueueItem = this.a;\n this.a = this.a.j;\n syncQueueItem.a();\n }\n if (this.a != null) {\n SyncQueueItem syncQueueItem2 = this.a;\n SyncQueueItem a2 = syncQueueItem2.j;\n while (a2 != null) {\n SyncQueueItem a3 = a2.j;\n if (a2.a == i) {\n syncQueueItem2.j = a3;\n a2.a();\n } else {\n syncQueueItem2 = a2;\n }\n a2 = a3;\n }\n }\n }",
"public void testDrainToWithActivePut() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n q.put(new Integer(1));\n } catch (InterruptedException ie){\n threadUnexpectedException();\n }\n }\n });\n try {\n t.start();\n ArrayList l = new ArrayList();\n Thread.sleep(SHORT_DELAY_MS);\n q.drainTo(l);\n assertTrue(l.size() <= 1);\n if (l.size() > 0)\n assertEquals(l.get(0), new Integer(1));\n t.join();\n assertTrue(l.size() <= 1);\n } catch(Exception e){\n unexpectedException();\n }\n }",
"public List<StorageQueue> getAllStorageQueues() {\n return storageQueueList;\n }",
"TransferQueue<ResultType> getResultsQueue();",
"@DISPID(112)\r\n\t// = 0x70. The runtime will prefer the VTID if present\r\n\t@VTID(107)\r\n\tjava.lang.String queue();",
"public void setQuesid(Long quesid) {\n this.quesid = quesid;\n }",
"@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(32)\r\n\tjava.lang.String submissionQueue();",
"public Boolean lazyQueue();",
"public void smqOnChange(final long subscribers, final long tid);",
"@Override\r\n public void tasksFinished()\r\n {\n }"
] | [
"0.60446066",
"0.59166837",
"0.5521474",
"0.5519596",
"0.54575306",
"0.5418654",
"0.5392749",
"0.53597283",
"0.5352282",
"0.5342178",
"0.53181136",
"0.53000546",
"0.52428716",
"0.51489097",
"0.5146061",
"0.5115403",
"0.51136893",
"0.51008123",
"0.50845695",
"0.50746554",
"0.507386",
"0.50592756",
"0.4996965",
"0.49938107",
"0.49919263",
"0.49894843",
"0.49849275",
"0.49815354",
"0.49796247",
"0.49764216",
"0.49745733",
"0.49503782",
"0.494938",
"0.4943176",
"0.49309388",
"0.49242055",
"0.4914203",
"0.490311",
"0.4901183",
"0.48912498",
"0.48807746",
"0.48790428",
"0.48663372",
"0.48607677",
"0.48556766",
"0.48483574",
"0.48457587",
"0.48397502",
"0.48350707",
"0.4823026",
"0.48214266",
"0.48071885",
"0.48071775",
"0.48067352",
"0.4803814",
"0.48015755",
"0.47978848",
"0.47965327",
"0.479026",
"0.4789635",
"0.47883078",
"0.47873482",
"0.47774008",
"0.47774008",
"0.4764484",
"0.47581807",
"0.47562042",
"0.47540328",
"0.47532016",
"0.475156",
"0.47317952",
"0.4727813",
"0.47151747",
"0.47141707",
"0.47106633",
"0.4705784",
"0.47036487",
"0.46996325",
"0.46990624",
"0.4698834",
"0.4696216",
"0.46946067",
"0.46918198",
"0.46844745",
"0.46747077",
"0.46726996",
"0.46537298",
"0.4652756",
"0.46421966",
"0.46387172",
"0.46248183",
"0.46228653",
"0.4621497",
"0.46116853",
"0.4608",
"0.46064833",
"0.46053255",
"0.45963013",
"0.4595284",
"0.4592347",
"0.45778382"
] | 0.0 | -1 |
Set the ant file to generate documentation. | public void setAntFile( File f )
{
this.antFile = f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAntfile(String antFile) {\n // @note: it is a string and not a file to handle relative/absolute\n // otherwise a relative file will be resolved based on the current\n // basedir.\n this.antFile = antFile;\n }",
"public void setAntlib(String antlib) {\n if (definerSet) {\n tooManyDefinitions();\n }\n if (!antlib.startsWith(\"antlib:\")) {\n throw new BuildException(\n \"Invalid antlib attribute - it must start with antlib:\");\n }\n setURI(antlib);\n this.resource = antlib.substring(\"antlib:\".length()).replace('.', '/')\n + \"/antlib.xml\";\n definerSet = true;\n }",
"public void setAnt(Ant ant)\r\n\t{\r\n\t\tthis.ant = ant;\r\n\t}",
"default void buildMainGenerateAPIDocumentation() {\n if (!bach().project().settings().tools().enabled(\"javadoc\")) return;\n say(\"Generate API documentation\");\n var api = bach().folders().workspace(\"documentation\", \"api\");\n bach().run(buildMainJavadoc(api)).requireSuccessful();\n bach().run(buildMainJavadocJar(api)).requireSuccessful();\n }",
"protected void setAnt(Ant ant) {\r\n\t\tthis.ant = ant;\r\n\t}",
"TargetTemplate(String antName, String bundleKey, boolean mandatory, String artifactIncludes, String artifactExcludes,\n String javadocDir, boolean checkForTests, String testResults, String properties) {\n this.antName = antName;\n this.bundleKey = bundleKey;\n assert !mandatory || !checkForTests;\n this.mandatory = mandatory;\n this.artifactIncludes = artifactIncludes;\n this.artifactExcludes = artifactExcludes;\n this.javadocDir = javadocDir;\n this.checkForTests = checkForTests;\n this.testResults = testResults;\n this.properties = properties;\n }",
"public DocumentationGenerator() throws Exception {\n sourceRoot = JavadocWrapper.getDocletEnv();\n }",
"public static void invokeAnt(String filePath,Map<String,String> param,PrintStream logger) {\n\t\n\t\t// Running default target of ant script\n\t\texecuteAntTask(filePath,param,logger);\n\t}",
"public void javadocStarted() { }",
"public void javadocStarted() { }",
"public FileCodeGenXML(FileCodeGen fileGen)\n {\n this.fileGen = fileGen;\n }",
"public void generarDoc(){\n generarDocP();\n }",
"public void setDocAction (String DocAction);",
"public void setDocAction (String DocAction);",
"public static void document(String[] args)\n throws org.apache.commons.cli.ParseException,\n ConfigurationException,\n IOException,\n shadow.ShadowException,\n HelpRequestedException {\n // Detect and establish the current settings and arguments\n DocumentationArguments arguments = new DocumentationArguments(args);\n\n // Exit if help was requested (Arguments handles printing)\n if (arguments.hasOption(Arguments.HELP)) return;\n\n Configuration.buildConfiguration(\n arguments.getMainArguments()[0], arguments.getConfigFileArg(), false);\n\n /* TYPECHECKING */\n\n long startTime = System.currentTimeMillis(); // Time the type checking\n\n // Generate a list of source files from the command line arguments.\n // If packages/directories are specified, they will be searched for\n // source files\n Map<String, Documentation> pkgDocs = new HashMap<>();\n List<Path> sourceFiles = getRequestedFiles(arguments.getMainArguments(), pkgDocs);\n\n // Perform basic type-checking on each source file\n Set<Type> typesToDocument = DocumentationTypeChecker.typeCheck(sourceFiles);\n Set<Package> packagesToDocument = new HashSet<>();\n\n logger.info(\n \"Successfully type-checked all files in \"\n + (System.currentTimeMillis() - startTime)\n + \"ms\");\n\n /* DOCUMENTATION INFO ORGANIZATION */\n\n startTime = System.currentTimeMillis(); // Time the documentation\n\n // If a directory was provided use it. Otherwise, create docs/ in the\n // current working directory\n Path outputDirectory;\n if (arguments.hasOption(DocumentationArguments.OUTPUT_DIR))\n outputDirectory = Paths.get(arguments.getOutputDirectory()).toAbsolutePath().normalize();\n else outputDirectory = Paths.get(\"docs\").toAbsolutePath().normalize();\n\n // Capture visible inner classes for documentation\n List<Type> outerClasses = new ArrayList<>(typesToDocument);\n for (Type outer : outerClasses)\n for (Type inner : outer.getInnerTypes().values())\n if (inner.getModifiers().isPublic() || inner.getModifiers().isProtected())\n typesToDocument.add(inner);\n\n // Capture all packages of classes being documented\n for (Type type : typesToDocument) packagesToDocument.addAll(type.getAllPackages());\n\n // Associate packages with package-info files\n for (Package pkg : packagesToDocument) {\n String pkgName = pkg.getQualifiedName();\n // The default package cannot be documented\n if (!pkgName.isEmpty() && pkgDocs.containsKey(pkgName))\n pkg.setDocumentation(pkgDocs.get(pkgName));\n }\n\n /* FORMATTED DOCUMENTATION GENERATION */\n\n DocumentationTemplate template =\n new StandardTemplate(arguments.getTemplateArgs(), typesToDocument, packagesToDocument);\n template.write(outputDirectory);\n\n logger.info(\n \"Successfully generated all documentation in \"\n + (System.currentTimeMillis() - startTime)\n + \"ms\");\n }",
"public void setDocumentation(String text) {\n m_documentation = text;\n }",
"DocBook createDocBook();",
"public void setName(String name) {\n setUserProperty(\"ant.project.name\", name);\n this.name = name;\n }",
"private void setCorpus(){\n URL u = Converter.getURL(docName);\n FeatureMap params = Factory.newFeatureMap();\n params.put(\"sourceUrl\", u);\n params.put(\"markupAware\", true);\n params.put(\"preserveOriginalContent\", false);\n params.put(\"collectRepositioningInfo\", false);\n params.put(\"encoding\",\"windows-1252\");\n Print.prln(\"Creating doc for \" + u);\n Document doc = null;\n try {\n corpus = Factory.newCorpus(\"\");\n doc = (Document)\n Factory.createResource(\"gate.corpora.DocumentImpl\", params);\n } catch (ResourceInstantiationException ex) {\n ex.printStackTrace();\n }\n corpus.add(doc);\n annieController.setCorpus(corpus);\n params.clear();\n }",
"Documentation createDocumentation();",
"Documentation createDocumentation();",
"public void setFile(File file) {\n if (definerSet) {\n tooManyDefinitions();\n }\n definerSet = true;\n this.file = file;\n }",
"public JavadocGenerator(SourceVersion version) {\n this.srcVersion = version;\n }",
"protected void createDocsAnnotations() {\n\t\tString source = \"http://www.eclipse.org/ecl/docs\";\t\t\n\t\taddAnnotation\n\t\t (readCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given csv file. Fails if file is not found or format is invalid.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"<code>Table</code> EMF Object. \",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | eq [read-csv-file \\\"workspace:/assertData/table.csv\\\"] | \\n\\t\\tassert-true \\\"Data in table does not match input file\\\" \\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (printEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a list of objects from input pipe and prints them as a plain-text table into output pipe.\",\n\t\t\t \"returns\", \"Series of string objects\"\n\t\t });\t\t\t\t\n\t\taddAnnotation\n\t\t (writeCsvFileEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Writes given table into csv file. Fails if file is not accessible.\\nLearn more about <a href = \\\"http://xored.freshdesk.com/solution/articles/78219-assert-the-whole-table\\\">Asserting the whole table contents.</a>\",\n\t\t\t \"returns\", \"The value of <code>table</code> argument.\",\n\t\t\t \"example\", \"with [get-window Preferences] {\\n\\tget-tree | select \\\"Java/Installed JREs\\\"\\n\\tget-table | get-table-data | write-csv-file \\\"workspace:/assertData/table.csv\\\"\\n\\tget-button OK | click\\n}\\n\\n//Let\\'s say we need to write ErrorLog info to csv file \\'table.csv\\'.\\n//ECL script should look like this:\\n \\nget-view \\\"Error Log\\\" | get-tree | expand-all\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\n \\n//Note: \\n//<a href=\\\"#expand-all\\\">Expand-all</a>command may be useful in case of hierarchical tree - otherwise non-expanded levels won\\'t be written. \\n//You should have MyProject/AssertData on your workspace (you may do it easily with a workspace context) to let you csv file to be created there. \\n \\n//In case you want to specify which columns/rows should be written you may use \\n//<a href=\\\"#select-columns\\\">select-columns</a>/<a href=\\\"#exclude-columns\\\">exclude-columns</a> and <a href=\\\"#select-rows\\\">select-rows</a>/<a href=\\\"#exclude-rows\\\">exclude-rows</a> commands:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-rows -column \\\"Message\\\" -value \\\"Execution of early startup handlers completed.\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\\n \\n//To compare table data to already written csv file you may use <a href=\\\"#read-csv-file\\\">read-csv-file</a> command:\\n \\nget-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Plug-in\\\" | eq [read-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"] | assert-true \\\"Data in table does not match input file\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to write\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteCsvFile_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write CSV data to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the same table which has some columns excluded. \",\n\t\t\t \"returns\", \"Copy of input table object without columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | exclude-columns \\\"Message\\\" \\\"Plug-in\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to exclude columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to exclude from table. It is OK to pass column names which are not present in table\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (selectColumnsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table containing only columns passed into <code>columns</code> argument.\",\n\t\t\t \"returns\", \"Copy of input table object with only columns with names listed in <code>columns</code>\",\n\t\t\t \"example\", \"get-view \\\"Error Log\\\" | get-tree | get-table-data | select-columns \\\"Message\\\" | write-csv-file \\\"workspace:/MyProject/AssertData/table.csv\\\" \"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectColumns_Columns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column names to take from table. If given column name is not present in input table, command fails\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (assertTablesMatchEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Compares contents of two tables. If contents are not the same, fails with a descriptive message\",\n\t\t\t \"example\", \"assert-tables-match [get-editor \\\"context\\\" | get-section Parameters | get-table | get-table-data ]\\n [get-editor \\\"context2\\\" | get-section Parameters | get-table | get-table-data]\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreColumnOrder(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"When true, column order is not taken into account\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getAssertTablesMatch_IgnoreMissingColumns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the comparison behaviour in case when one of tables contains a column which is not present in other table:\\n<ul>\\n<li><b>NONE</b> – all columns must be present in both tables</li>\\n<li><b>LEFT</b> – columns from right table which are not present in left, are ignored</li>\\n<li><b>RIGHT</b> – columns from left table which are not present in right, are ignored</li>\\n<li><b>BOTH</b> – comparison performed only on columns present in both tables</li>\\n<p>Another way to interpret this argument is that it is an answer on question "Which column can have less columns?"</p>\\n<p>The primary reasoning for this argument is to provide smooth migration when presentation is changed \\u2013 consider this scenario: we have a CSV file with table data, and we have UI table. If we add or remove extra columns in the UI, we can keep existing sample data file and just correct the <code>ignoreMissingColumns</code> argument</p>\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (writeLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads objects from input pipe and writes them into file line-by-line as strings\",\n\t\t\t \"example\", \"//writes a list of launch configuration into a file line-by-line\\nlist-launch-configurations | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\"\\n// appends \\\"New line\\\" into a file. \\nstr \\\"New line\\\" | write-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" -append\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to write lines to. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWriteLines_Append(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Whether to append given lines into file. Default value is false\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readLinesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Reads lines from file identified by uri and writes them one-by-one into output pipe\",\n\t\t\t \"example\", \"//Displays alert with lines count\\nshow-alert [concat \\\"The number of lines is \\\"[read-lines -uri \\\"workspace:/Project/Folder/file.txt\\\" | length | str]]\\n\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadLines_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to read lines from. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (selectRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"select-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getSelectRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> – wildcard matching</li>\\n<li><b>exact</b> – value should be equals to pattern</li>\\n<li><b>regext</b> – value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (excludeRowsEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Takes a table from input and returns the table with rows filtered by column and criteria.\",\n\t\t\t \"returns\", \"Copy of input table object with filtered rows.\",\n\t\t\t \"example\", \"exclude-rows -column \\\"columnName\\\" -value \\\"value\\\" -match exact|glob|regex\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Table(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Table to take columns from\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Column(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Column named to filter rows by.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Value(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Pattern to match rows to.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getExcludeRows_Match(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Describes the matching behaviour for rows.\\n<ul>\\n<li><b>glob</b> – wildcard matching</li>\\n<li><b>exact</b> – value should be equals to pattern</li>\\n<li><b>regext</b> – value must match java regular expression</li>\\n</ul>\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (asTableDataEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Converts its input to table data format, exactly the same as <code>get-table-data</code> returns.\",\n\t\t\t \"returns\", \"Table data.\",\n\t\t\t \"example\", \"get-log -levels error | as-table-data | write-csv-file \\\"workspace:/Project/file2.csv\\\"\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAsTableData_Input(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Object(s) to convert from.\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (readPropertiesEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parses given .properties file. Fails if file is not found or format is invalid\",\n\t\t\t \"returns\", \"ECL map with values from properties file\",\n\t\t\t \"example\", \"...get-item \\\"General Registers/pc\\\" | get-property \\\"values[\\\\\\'Value\\\\\\']\\\"\\n| matches [format \\\"%s.*\\\" [read-properties -uri \\\"file:/C:/Users/Administrator/Desktop/p.properties\\\" | get myKey]] | verify-true\\n\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getReadProperties_Uri(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"URI to a file to read. Currently supported schemes are workspace:/ for files in workspace and file:/ for files on local file system\"\n\t\t });\n\t}",
"public CompiledViewsFile(FileManager fileManager, String path, Document doc) {\n\n\t\tsuper(fileManager, path, doc, XML_FILE);\n\t}",
"Help(String fname) {\n helpfile = fname;\n }",
"public manageDoc() {\r\r\r\n\r\r\r\n }",
"public static void main(final String[] args) {\n String docletProjectRootDir = new File(System.getProperty(\"user.dir\")).getAbsolutePath();\n docletProjectRootDir = docletProjectRootDir.replaceAll(\"\\\\\\\\\", \"/\");\n\n String repositoryRootDir = new File(System.getProperty(\"user.dir\")).getParentFile().getParent();\n repositoryRootDir = repositoryRootDir.replaceAll(\"\\\\\\\\\", \"/\");\n\n final String projectDir = repositoryRootDir + \"/../org.eclipse.ease.modules/plugins/org.eclipse.ease.modules.platform\";\n\n // @formatter:off\n final String[] javadocargs = {\n \"-sourcepath\", \"/home/saul/eclipse-workspace/debrief/org.mwc.debrief.scripting/src:/home/saul/eclipse-workspace/debrief/org.mwc.cmap.legacy/src:/home/saul/eclipse-workspace/debrief/org.mwc.debrief.legacy/src\",\n \"-root\", \"/home/saul/eclipse-workspace/debrief/org.mwc.debrief.scripting\",\n \"-doclet\", ModuleDoclet.class.getName(),\n \"-docletpath\", docletProjectRootDir + \"/lib\",\n\n \"-failOnHTMLError\", \"false\",\n \"-failOnMissingDocs\", \"false\",\n\n \"-linkoffline\", \"https://docs.oracle.com/en/java/javase/11/docs/api/\", \"package-list\",\n\t\t\t\t//\"-link\", \"https://docs.oracle.com/javase/8/docs/api\",\n\t\t\t\t\"--ignore-source-errors\",\n\n \"-subpackages\",\n \"org.mwc.debrief.scripting.wrappers\"\n };\n\t\t// @formatter:on\n\n\t\tfinal DocumentationTool systemDocumentationTool = getSystemDocumentationTool();\n\t\tfinal DocumentationTool.DocumentationTask toolTask = systemDocumentationTool.getTask(null, null, null, ModuleDoclet.class, List.of(javadocargs), null);\n\t\ttoolTask.call();\n\t}",
"public void setAnts() throws AntFrameworkException {\n\t\tif (this.numberOfAnts <= 0) {\n\t\t\tthrow new AntFrameworkException(\"The number of ants cannot be less than or equal to zero (0)\");\n\t\t}\n\n\t\tthis.Ants = new Ant[this.numberOfAnts];\n\t\tfor (int i = 0; i < this.numberOfAnts; i++) {\n\t\t\tAnts[i] = new Ant(i, 0);\n\t\t}\n\n\t}",
"private void parseAnt(Iterator antIterator, List<Antfile> antfiles, EventCollector eventCollector)\n {\n try\n {\n Element antElement = (Element) antIterator.next();\n String antfile = buildFile.getName(); // default value if they don't specify an antfile, then THIS is the\n // antElement buildFile\n String antParent = buildFile.getParent();\n Attribute attribute = antElement.getAttribute(\"antfile\");\n\n if (attribute != null)\n {\n antfile = attribute.getValue();\n }\n\n String antdir = null;\n Attribute antDirAttribute = antElement.getAttribute(\"dir\");\n\n if (antDirAttribute != null)\n {\n antdir = antDirAttribute.getValue();\n }\n\n Antfile antcallfile;\n\n if (antdir == null)\n {\n antcallfile = new Antfile(new File(antParent, antfile), properties);\n }\n else\n {\n antcallfile = new Antfile(new File(antdir, antfile), properties);\n }\n\n antfiles.add(antcallfile);\n\n Attribute targetAttribute = antElement.getAttribute(\"target\");\n\n // todo what if this is null? Will use the default target of the ant file - must code\n Target defaultTarget = antcallfile.getDefaultTarget();\n\n if (defaultTarget != null)\n {\n String defaultTargetName = defaultTarget.getName();\n String calledTarget;\n\n if (targetAttribute == null)\n {\n calledTarget = defaultTargetName;\n }\n else\n {\n calledTarget = targetAttribute.getValue();\n }\n\n Ant ant = new Ant(calledTarget, antcallfile);\n\n ants.add(ant);\n }\n }\n catch (IOException e)\n {\n eventCollector.addEvent(new Event(\"Error pasring Ant file\", e));\n }\n catch (JDOMException e)\n {\n eventCollector.addEvent(new Event(\"Error pasring Ant file\", e));\n }\n }",
"private void startGeneration(RootDoc root) throws Configuration.Fault, Exception {\n if (root.classes().length == 0) {\n configuration.message.\n error(\"doclet.No_Public_Classes_To_Document\");\n return;\n }\n configuration.setOptions();\n configuration.getDocletSpecificMsg().notice(\"doclet.build_version\",\n configuration.getDocletSpecificBuildDate());\n ClassTree classtree = new ClassTree(configuration, configuration.nodeprecated);\n\n generateClassFiles(root, classtree);\n Util.copyDocFiles(configuration, DocPaths.DOC_FILES);\n\n PackageListWriter.generate(configuration);\n generatePackageFiles(classtree);\n generateProfileFiles();\n\n generateOtherFiles(root, classtree);\n configuration.tagletManager.printReport();\n }",
"public void setOutput(File file){\n outputDir = file;\n }",
"public static void start(String dirpath) {\n\t\tlogger.entry();\n\t\tVector<String> jdocsoptions = new Vector<String>();\n\n\t\tif (dirpath.equals(\".\"))\n\t\t\tdirpath = System.getProperty(\"user.dir\");\n\n\t\tlogger.debug(\"Dirpath set to: \" + dirpath);\n\t\tcodeDir = dirpath;\n\t\n\t\t// Loads the list of doclets to execute from the config file in the from which\n\t\t// execution is originating\n\t\tloadDocletList(dirpath);\n\t\t\n\t\t// Find non-packaged code in the specified dir and add them to the options vector\n\t\tString[] fileList = findFiles(dirpath);\n\t\tfor (String file : fileList)\n\t\t\tjdocsoptions.add(file);\n\t\n\t\t// Find packages in the specified dir and add them to the options vector.\n\t\tlogger.info(\"Found the following packages: \");\n\t\tLinkedList<String> packageList = findPackages(codeDir);\n\n\t\t// Add the -private option to the javadoc parameter list, ensuring that ALL classes\n\t\t// and members are processed.\n\t\tjdocsoptions.add(\"-private\");\n\n\t\tjdocsoptions.add(\"-sourcepath\");\n\t\tjdocsoptions.add(codeDir);\n\n\t\t// Add the list of packages to the options list being sent to Javadoc\n\t\tfor (String pkg : packageList)\n\t\t\tjdocsoptions.add(pkg);\n\n\t\t// Process the options list for preparation in handing it to Javadoc\n\t\tlogger.info(\"javadoc options: \");\n\n\t\tString[] optionslist = new String[jdocsoptions.size()];\n\t\tint index = 0;\n\t\tfor (String option : jdocsoptions) {\n\t\t\toptionslist[index] = jdocsoptions.elementAt(index);\n\t\t\tlogger.info(\" \" + optionslist[index++]);\n\t\t}\n\n\t\t// Execute the javadoc processor handing it a String name of the application (for error\n\t\t// output), the name of the doclet to execute (our stand alone version of the master doclet\n\t\t// that does attempt to database its results), and an array of arguments.\n\t\tcom.sun.tools.javadoc.Main.execute(\"COMTOR\", \"org.comtor.drivers.ComtorStandAlone\", optionslist);\n\t\tlogger.exit();\n\t}",
"public void startBuild() throws org.apache.ant.AntException {\n // XXX need to do something if the default target isn't set..\n // maybe look for target name 'default', then bail?\n startBuild(defaultTargetName);\n }",
"public void setSourceFile(File file){\n System.out.println(\"Set source file=\" + file.toString());\n this.file = file;\n }",
"public Ant(Task owner) {\n bindToOwner(owner);\n }",
"public void setConfiguration(CodeGeneratorConfiguration config) {\n \t\tthis.config = config;\n \t}",
"public abstract ModuleDoc doc();",
"public ReportGenerator(AccessibilityTester at, TestSettings set){\n tester = at;\n testSettings = set;\n printName = set.report_name;\n printDescription = set.report_description;\n printPosition = set.report_position;\n }",
"public ANTForPlugins()\n {\n super();\n }",
"@Override\n public void setDocWriter(DocWriter docWriter) {\n super.setDocWriter(docWriter);\n if (docWriter != null) {\n // Get our parameters from the indexer\n Map<String, String> indexerParameters = docWriter.indexerParameters();\n if (indexerParameters != null)\n setParameters(indexerParameters);\n }\n }",
"public ChameleonDocument(ChameleonProjectNature projectNature, IFile file, IPath path){\r\n \t\tsuper();\r\n \r\n \t\tsetCompilationUnit(new Document());\r\n \t\tif(projectNature==null){\r\n \t\t\tChameleonEditorPlugin.showMessageBox(\"Illegal project\", \"This document is part of an illegal project. \\nCheck if the project is a Chameleon Project.\", SWT.ICON_ERROR);\r\n \t\t}\r\n \r\n \t\t_parseErrors = new ArrayList<ParseException>();\r\n \r\n \t\t_projectNature = projectNature;\r\n \t\tinitialize();\r\n \r\n \t\t_path=path;\r\n \r\n \t\tif (file!=null){ \t\t\r\n \t\t\ttry {\r\n \t\t\t\t_relativePathName = path.removeFirstSegments(1).toString();\r\n \t\t\t\tparseFile(file);\r\n \t\t\t} catch (CoreException e) {\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t} catch (IOException e) {\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t}\r\n \t\t} else{\r\n \t\t\tIPath projPath = path.removeFirstSegments(1);\t \r\n \t\t\tfile = projectNature.getProject().getFile(projPath);\r\n \t\t\t_relativePathName = projPath.toString();\r\n \t\t}\r\n \t\t_name = file.getName();\r\n \t\t_file = file;\r\n \t}",
"public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }",
"public void setCompilationUnit(Document cu) {\r\n \t\t_doc = cu;\r\n \t}",
"public ScriptDocumentation() {\n this(null, null, null);\n }",
"PropertiesTask setTargetFile( File propertiesFile );",
"private void setFile() {\n\t}",
"public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }",
"public DetailGenerator(String xmlFile, String dtdFile, \n\t\t\t I18NTextSource source,\n\t\t\t String homeDirectory)\n\t{\n\txmlFileName = xmlFile;\n\tif (homeDirectory != null)\n xmlFileName = homeDirectory +\n\t File.separator + xmlFileName;\n\tdtdFileName = dtdFile;\n\ttextSource = source;\n\tApplicationManager.setTextSource(textSource);\n\ttry\n\t {\n\t FileInputStream stream = new FileInputStream(xmlFileName);\n\t xmlSource = new InputSource(new InputStreamReader(stream));\n\t }\n\tcatch (FileNotFoundException fnf)\n\t {\n\t System.out.println(\"Cannot find XML file: \" + xmlFileName);\n\t }\n\n\t}",
"@Override\n\tpublic void setPluginFile(String pluginPath) {\n\t\t\n\t\tthis.pluginsPath = pluginPath;\n\t\tSAXBuilder builder = new SAXBuilder();\n\t\ttry {\n\t\t\tdoc = builder.build(new File(this.pluginsPath));\n\t\t} catch (JDOMException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}",
"public void setToolfilepath(String toolfilepath) {\r\n this.toolfilepath = toolfilepath;\r\n }",
"public void configure() {\n\n // here is a sample which processes the input files\n // (leaving them in place - see the 'noop' flag)\n // then performs content based routing on the message using XPath\n\n }",
"public Project createProject( File build_file ) throws Exception { // NOPMD\n if ( build_file == null || !build_file.exists() )\n return null;\n\n // load the option settings for this build file\n setPrefs( build_file );\n\n // configure the project\n Project p = new Project();\n\n // set the project helper -- the AntelopeProjectHelper2 is the same as the Ant\n // ProjectHelper2, but has been slightly modified so it does not automatically\n // run the implicit target\n System.setProperty( \"org.apache.tools.ant.ProjectHelper\", \"ise.antelope.common.AntelopeProjectHelper2\" );\n\n try {\n ClassLoader cl = _helper.getAntClassLoader();\n p.setCoreLoader( cl );\n\n /*\n try {\n Log.log(\"loading antlib with _helper classloader\");\n cl.getResource( \"ise/antelope/tasks/antlib.xml\" );\n Log.log(\"loaded antlib with _helper classloader\");\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n */\n\n // add the antelope build logger now so that any output produced by the\n // ProjectHelper is captured\n p.addBuildListener( _build_logger );\n\n // add the progress bar build listener\n p.addBuildListener( _progress );\n\n // optionally add the antelope performance listener\n if ( _settings.getShowPerformanceOutput() ) {\n if ( _performance_listener == null )\n _performance_listener = new AntPerformanceListener();\n p.addBuildListener( _performance_listener );\n }\n\n // add the gui input handler\n setInputHandler( p );\n\n p.init(); // this takes as much as 9 seconds the first time, less than 1/2 second later\n\n p.setUserProperty( \"ant.file\", build_file.getAbsolutePath() );\n p.setProperty( \"ant.version\", Main.getAntVersion() );\n //String ant_home = System.getProperty(\"ant.home\");\n String ant_home = AntUtils.getAntHome();\n if ( ant_home != null ) {\n p.setProperty( \"ant.home\", ant_home );\n }\n String ant_lib_dirs = AntUtils.getAntLibDirs();\n if ( ant_lib_dirs != null )\n p.setProperty( \"ant.library.dir\", ant_lib_dirs );\n\n // add ant.jar to the classpath\n // for Ant 1.6, does ant-launcher.jar need to be added also? --\n // yes -- add all jars in $ant_home/lib and $user.home/.ant/lib, this\n // is what command-line Ant does. Ant also supports a -lib command-line\n // option where the user can specify additional locations. Should\n // Antelope support this? Need a gui in the properties panel if so.\n // 12/22/2004: added AntelopeLauncher, so -lib option is handled for app,\n // but not for plugin\n /// -- should this be done here or in the helper? --\n java.util.List ant_jars = _helper.getAntJarList();\n if ( ant_jars != null ) {\n java.util.List cp_list = new ArrayList();\n String classpath = p.getProperty( \"java.class.path\" );\n StringTokenizer st = new StringTokenizer( classpath, File.pathSeparator );\n while ( st.hasMoreTokens() ) {\n cp_list.add( new File( st.nextToken() ) );\n }\n Iterator it = ant_jars.iterator();\n while ( it.hasNext() ) {\n File f = new File( ( String ) it.next() );\n if ( !cp_list.contains( f ) ) {\n cp_list.add( f );\n }\n }\n StringBuffer sb = new StringBuffer();\n it = cp_list.iterator();\n while ( it.hasNext() ) {\n sb.append( ( ( File ) it.next() ).getAbsolutePath() ).append( File.pathSeparator );\n }\n classpath = sb.toString();\n p.setProperty( \"java.class.path\", classpath );\n System.setProperty( \"java.class.path\", classpath );\n }\n\n // load any saved user properties for this build file. These are properties\n // that the user has set using the properties dialog and in command-line\n // Ant would have been passed on the command line.\n Preferences user_prefs = getPrefs().node( Constants.ANT_USER_PROPS );\n String[] keys = user_prefs.keys();\n for ( int i = 0; i < keys.length; i++ ) {\n p.setUserProperty( keys[ i ], user_prefs.get( keys[ i ], \"\" ) );\n }\n\n //ProjectHelper.configureProject( p, build_file ); // deprecated\n ProjectHelper helper = ProjectHelper.getProjectHelper();\n p.addReference( \"ant.projectHelper\", helper );\n helper.parse( p, build_file );\n\n //for (Iterator it = p.getTargets().keySet().iterator(); it.hasNext(); ) {\n // System.out.println(\"target: \" + it.next());\n //}\n\n /*\n // looks like a recent change for antlib has busted loading custom tasks from\n // an antlib declaration. Need to check if this ever worked, I used to use\n // taskdef exclusively, and have only recently switched to using antlib.\n // Using antlib works when Antelope is running as an application, but not as\n // a plugin. Seems to have something to do with classloading.\n try {\n System.out.println(\"AntelopePanel classloader = \" + getClass().getClassLoader().hashCode());\n Class c = Class.forName(\"org.apache.tools.ant.Main\");\n if (c != null) {\n System.out.println(\"classloader for Main = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for Main = \" + c.getClassLoader().getParent());\n }\n else\n System.out.println(\"did not find class for Main\");\n c = Class.forName(\"ise.antelope.tasks.Unset\");\n if (c != null){\n System.out.println(\"classloader for Unset = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for Unset = \" + c.getClassLoader().getParent());\n System.out.println(\"classloader for Unset is a \" + c.getClassLoader().getClass().getName());\n }\n else\n System.out.println(\"did not find class for Unset\");\n c = Class.forName(\"org.apache.tools.ant.taskdefs.optional.EchoProperties\");\n if (c != null){\n System.out.println(\"classloader for EchoProperties = \" + c.getClassLoader().hashCode());\n System.out.println(\"parent classloader for EchoProperties = \" + c.getClassLoader().getParent());\n System.out.println(\"classloader for EchoProperties is a \" + c.getClassLoader().getClass().getName());\n }\n else\n System.out.println(\"did not find class for EchoProperties\");\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n */\n\n\n return p;\n }\n catch ( Exception e ) {\n Log.log( e );\n e.printStackTrace( System.out );\n JOptionPane.showMessageDialog( GUIUtils.getRootJFrame( this ),\n \"<html>Error:<br>\" + e.getMessage(),\n \"Ant Error\",\n JOptionPane.ERROR_MESSAGE );\n throw e;\n }\n catch ( NoClassDefFoundError error ) {\n Log.log( error );\n error.printStackTrace( System.out );\n JOptionPane.showMessageDialog( GUIUtils.getRootJFrame( this ),\n \"<html>Error: No Class Definition Found for<br>\" + error.getMessage() +\n \"<br><p>This is most likely caused by a required third-party<br>\" +\n \"jar file not being in the class path.\",\n \"Ant Error\",\n JOptionPane.ERROR_MESSAGE );\n throw new Exception( error.getMessage() ); // NOPMD\n }\n }",
"protected void createDocumentationAnnotations() {\n\t\tString source = \"http://www.polarsys.org/kitalpha/ecore/documentation\";\t\n\t\taddAnnotation\n\t\t (this, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"CompositeStructure aims at defining the common component approach composite structure pattern language (close to the UML Composite structure).\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"none\",\n\t\t\t \"constraints\", \"This package depends on the model FunctionalAnalysis.ecore\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Container package for BlockArchitecture elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Parent class for deriving specific architectures for each design phase\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain requirements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links to other architectures\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other architectures to this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the BlockArchitectures that are allocated from this one\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to BlockArchitectures that allocate to this architecture\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A modular unit that describes the structure of a system or element.\\r\\n[source: SysML specification v1.1]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain capabilities\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to packages that contain data\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Link to related state machines\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A specialized kind of BlockArchitecture, serving as a parent class for the various architecture levels, from System analysis down to EPBS architecture\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"N/A (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"arcadia_description\", \"A component is a constituent part of the system, contributing to its behaviour, by interacting with other components and external actors, thereby contributing at its lowest level to the system properties and characteristics. Example: radio receiver, graphical user interface...\\r\\nDifferent kinds of components exist: see below (logical component, physical component...).\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"InterfaceUse relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) interfaceUse relationships that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being used by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Interface implementation relationships that are stored/owned under this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of InterfaceImplementation links that involve this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being implemented by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links made from this component to other components\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) list of allocation links from other components, to this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components being allocated from this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the components allocating this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being provided by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being required by this component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the PhysicalPaths that are stored/owned by this physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links contained in / owned by this Physical component\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinkCategories(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An Actor models a type of role played by an entity that interacts with the subject (e.g., by exchanging signals and data),\\r\\nbut which is external to the subject (i.e., in the sense that an instance of an actor is not a part of the instance of its corresponding subject). \\r\\n\\r\\nActors may represent roles played by human users, external hardware, or other subjects.\\r\\nNote that an actor does not necessarily represent a specific physical entity but merely a particular facet (i.e., \\'role\\') of some entity\\r\\nthat is relevant to the specification of its associated use cases. Thus, a single physical instance may play the role of\\r\\nseveral different actors and, conversely, a given actor may be played by multiple different instances.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"none\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"In SysML, a Part is an owned property of a Block\\r\\n[source: SysML glossary for SysML v1.0]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the provided interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component exposes to its environment.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(computed) the required interfaces associated to the classifier that this part represents\\r\\n[source: Capella study]\\r\\n\\r\\nThe interfaces that the component requires from other components in its environment in order to be able to offer\\r\\nits full set of provided functionality\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Deployment relationships that are stored/owned under this part\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between BlockArchitecture elements, to represent an allocation link\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating architecture\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between Component elements, representing the allocation link between these elements\\r\\n[source: Capella light-light study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating component\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An entity, with discrete structure within the system, that interacts with other Components of the system, thereby contributing at its lowest level to the system properties and characteristics.\\r\\n[source: Sys EM , ISO/IEC CD 15288]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a (abstract)\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"specifies whether or not this is a data component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"data type(s) associated to this component\\r\\n[source: Capella light-light study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the involvement relationships between this SystemComponent and CapabilityRealization elements\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A container for Interface elements\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the packages of interfaces that are owned by this Package\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An interface is a kind of classifier that represents a declaration of a set of coherent public features and obligations. An\\r\\ninterface specifies a contract; any instance of a classifier that realizes the interface must fulfill that contract.\\r\\n[source: UML superstructure v2.2]\\r\\n\\r\\nInterfaces are defined by functional and physical characteristics that exist at a common boundary with co-functioning items and allow systems, equipment, software, and system data to be compatible.\\r\\n[source: not precised]\\r\\n\\r\\nThat design feature of one piece of equipment that affects a design feature of another piece of equipment. \\r\\nAn interface can extend beyond the physical boundary between two items. (For example, the weight and center of gravity of one item can affect the interfacing item; however, the center of gravity is rarely located at the physical boundary.\\r\\nAn electrical interface generally extends to the first isolating element rather than terminating at a series of connector pins.)\",\n\t\t\t \"usage guideline\", \"In Capella, Interfaces are created to declare the nature of interactions between the System and external actors.\",\n\t\t\t \"used in levels\", \"system/logical/physical\",\n\t\t\t \"usage examples\", \"../img/usage_examples/external_interface_example.png\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"_todo_reviewed : cannot find the meaning of this attribute ? How to fill it ?\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"_todo_reviewed : to be precised\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Structural(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"n/a\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that implement this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the components that use this interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceImplementation elements, that act as mediators between this interface and its implementers\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"references to the InterfaceUse elements, that act as mediator classes between this interface and its users\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the InterfaceAllocation elements, acting as mediator classes between the interface and the elements to which/from which it is allocated\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the Interfaces that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to the components that declare an allocation link to this Interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to all exchange items allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References to allocations of exchange items\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and its implementor (typically a Component)\\r\\n[source: Capella study]\\r\\n\\r\\nAn InterfaceRealization is a specialized Realization relationship between a Classifier and an Interface. This relationship\\r\\nsignifies that the realizing classifier conforms to the contract specified by the Interface.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Component that owns this Interface implementation.\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an interface and its user (typically a Component)\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Component that uses the interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Supplied interface\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella 1.0.3\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"References the Interface specifying the conformance contract\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(not used)\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"n/a\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"n/a\",\n\t\t\t \"comment/notes\", \"not used/implemented as of Capella\",\n\t\t\t \"reference documentation\", \"n/a\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"The element(s) independent of the client element(s), in the same respect and the same dependency relationship\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Mediator class between an Interface and an element that allocates to/from it.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocated interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the targets of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Specifies the allocating interface\\r\\n[source: Capella study]\\r\\n\\r\\nSpecifies the sources of the DirectedRelationship.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for elements that need to be involved in an allocation link to/from an Interface\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical,epbs\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface allocation links that are stored/owned under this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) the interface allocation links involving this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"(automatically computed) direct references to the Interfaces being allocated by this interface allocator\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"support class to implement the link between an Actor and a CapabilityRealization\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"system, logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Support class for implementation of the link between a CapabilityRealization and a SystemComponent\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"logical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Base class for specific SystemContext, LogicalContext, PhysicalContext\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a (abstract)\",\n\t\t\t \"used in levels\", \"system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Allocation link between exchange items and interface that support them\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the sender of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"describes the default protocol used by the receiver of the exchange item. It could be overrided by the protocol used by the given communication exchanger\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"type\", \"refer to CommunicationLinkProtocol definition\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the exchange item that is being allocated by the interface\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the interface that allocated the given exchange item\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"characterizes a physical model element that is intended to be deployed on a given (physical) target\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications associated to this element, e.g. associations between this element and a physical location to which it is to be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical target that will host a deployable element\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of deployment specifications involving this physical target as the destination of the deployment\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the link between a physical element, and the physical target onto which it is deployed\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical element involved in this relationship, that is to be deployed on the target\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the host where the source element involved in this relationship will be deployed\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"An involved element is a capella element that is, at least, involved in an involvement relationship with the role of the element that is involved\\r\\n[source:Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A physical artifact is any physical element in the physical architecture (component, port, link,...).\\r\\nThese artifacts will be part allocated to configuration items in the EPBS.\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"End of a physical link\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"Physical links that come in or out of this physical port\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the base element for building a physical path : a link between two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the representation of the physical medium connecting two physical interfaces\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the source(s) and destination(s) of this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the allocations between component exchanges and functional exchanges, that are owned by this physical link\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the physical link endpoints involved in this link\\r\\n\\r\\nA connector consists of at least two connector ends, each representing the participation of instances of the classifiers\\r\\ntyping the connectable elements attached to this end. The set of connector ends is ordered.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_RealizingPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"an endpoint of a physical link\\r\\n\\r\\nA connector end is an endpoint of a connector, which attaches the connector to a connectable element. Each connector\\r\\nend is part of one connector.\\r\\n[source: UML superstructure v2.2]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"operational,system,logical,physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the port to which this communication endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the part to which this connect endpoint is attached\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the specification of a given path of informations flowing across physical links and interfaces.\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"this is the equivalent for the physical architecture, of a functional chain defined at system level\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"the list of steps of this physical path\\r\\n[source: Capella study]\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizedPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_RealizingPhysicalPaths(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"A port on a physical component\\r\\n[source: Capella study]\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_RealizingPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"none\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"description\", \"n/a\",\n\t\t\t \"usage guideline\", \"n/a\",\n\t\t\t \"used in levels\", \"physical\",\n\t\t\t \"usage examples\", \"n/a\",\n\t\t\t \"constraints\", \"none\",\n\t\t\t \"comment/notes\", \"none\",\n\t\t\t \"reference documentation\", \"none\"\n\t\t });\n\t}",
"public ReportGenerator(AccessibilityTester at){\n tester = at;\n }",
"private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}",
"java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;",
"public static void setFile(File file) {\r\n CONFIG_FILE = file;\r\n }",
"public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }",
"public void javadocEnded(boolean success, File destDir, boolean allDocs) { }",
"public void javadocEnded(boolean success, File destDir, boolean allDocs) { }",
"public AntProjectHelper getAntProjectHelper();",
"private static void help() {\n System.out.println(\"usage: pgen <project name> <args>\");\n System.out.println(\"Arguments:\");\n System.out.println(\"\\t-h | -help : help menu\");\n System.out.println(\"\\t-s | -size <example file amount> : the amount of example files to create. Defaults to 2\");\n System.out.println(\"\\t-t | -template <template> : the template to use. Defaults to java_default\");\n System.out.println(\"\\t\\tValid Templates:\");\n System.out.println(\"\\t\\t\\t* java_default\");\n System.out.println(\"\\t\\t\\t* cpp_default\");\n System.out.println(\"\\t-kattis : fetches the problems from Kattis and creates a makefile and test script for them\");\n System.out.println(\"\\t-local : fetches nothing and creates empty example files\");\n System.exit(0);\n }",
"public Ant getAnt()\r\n\t{\r\n\t\treturn ant;\r\n\t}",
"@BeforeTest\n\tpublic void config() {\n\t\tString path=System.getProperty(\"user.dir\")+\"\\\\reports\\\\index.html\"; //after + we want new path to add to it\n\t\tExtentSparkReporter reporter=new ExtentSparkReporter(path);// this is responsible for creating report\n\t\treporter.config().setReportName(\"Web Automation Akhil\");\n\t\treporter.config().setDocumentTitle(\"Test Results\");\n\t\t\n\t\tExtentReports extent=new ExtentReports();// this is main class for Tracking the things.\n\t\textent.attachReporter(reporter); // Here is link of config with main class\n\t\textent.setSystemInfo(\"Tester\", \"Akhilesh Rawat\");\n\t}",
"protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }",
"BluejProject(AntProjectHelper helper) throws IOException {\n this.helper = helper;\n eval = createEvaluator();\n aux = helper.createAuxiliaryConfiguration();\n refHelper = new ReferenceHelper(helper, aux, eval);\n genFilesHelper = new GeneratedFilesHelper(helper);\n this.updateHelper = new UpdateHelper (this, this.helper, this.aux, this.genFilesHelper,\n UpdateHelper.createDefaultNotifier());\n\n lookup = createLookup(aux);\n helper.addAntProjectListener(this);\n }",
"public static void set_IsGenerateJavadocStyleComment(boolean v)\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaJavadocStyleCmd,\n \t\t (v) ? (byte) 1 : (byte) 0);\n UmlCom.check();\n _is_generate_javadoc_comment = v;\n }",
"public Project(AntFrontEnd frontEnd, TaskManager taskManager) {\n this.frontEnd = frontEnd;\n this.taskManager = taskManager;\n }",
"public void setJavaVersionProperty() throws BuildException {\n String javaVersion = JavaEnvUtils.getJavaVersion();\n setPropertyInternal(\"ant.java.version\", javaVersion);\n \n // sanity check\n if (JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_0)) {\n throw new BuildException(\"Ant cannot work on Java 1.0\");\n }\n log(\"Detected Java version: \" + javaVersion + \" in: \"\n + System.getProperty(\"java.home\"), MSG_VERBOSE);\n \n log(\"Detected OS: \" + System.getProperty(\"os.name\"), MSG_VERBOSE);\n }",
"public void setXmlSchema(File file) {\n\t\tDocument doc = null;\n\t\ttry {\n\t\t\tSAXBuilder sax = new SAXBuilder();\n\t\t\tdoc = sax.build(file);\n\t\t} catch (JDOMException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(doc != null) {\n\t\t\tsetXmlSchema(doc);\n\t\t\ttry(FileOutputStream fileOutputStream = new FileOutputStream(file)) {\n\t\t\t\ttry {\n\t\t\t\t\tXMLOutputter xmlOutputter = new XMLOutputter(Format.getPrettyFormat());\n\t\t\t\t\txmlOutputter.output(doc, fileOutputStream);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static void buildApiDoc(ApiConfig config, JavaProjectBuilder javaProjectBuilder) {\n config.setParamsDataToTree(true);\n RpcDocBuilderTemplate builderTemplate = new RpcDocBuilderTemplate();\n builderTemplate.checkAndInit(config);\n ProjectDocConfigBuilder configBuilder = new ProjectDocConfigBuilder(config, javaProjectBuilder);\n RpcDocBuildTemplate docBuildTemplate = new RpcDocBuildTemplate();\n List<RpcApiDoc> apiDocList = docBuildTemplate.getApiData(configBuilder);\n buildTorna(apiDocList, config);\n }",
"private void createIndexLink()\r\n \t{\r\n \t\tif (pageTitle.contains(\"Ruby on Rails\")) {\r\n \t\t\tSimpleLogger.verbose(\" TOC file: not creating index link (no stichwort.htm*\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tSimpleLogger.verbose(\" TOC file: creating index link...\");\r\n \t\tElement indexLink = (Element) xPathQuery(XPath.TOC_HEADING_2.query).get(0).copy();\r\n \t\tString fileExtension = \".htm\";\r\n \t\tif (((Element) indexLink.getChild(0)).getAttribute(\"href\").getValue().contains(\".html\"))\r\n \t\t\tfileExtension = \".html\";\r\n \t\t((Element) indexLink.getChild(0)).getAttribute(\"href\").setValue(\"stichwort\" + fileExtension);\r\n \t\t((Text) indexLink.getChild(0).getChild(0)).setValue(\"Index\");\r\n \t\tbodyTag.appendChild(indexLink);\r\n \r\n \t}",
"public void setUp() throws Exception {\n Project project = new Project();\n\n IndexTask task = new IndexTask();\n FileSet fs = new FileSet();\n fs.setDir(new File(docsDir));\n task.addFileset(fs);\n task.setOverwrite(true);\n task.setDocumentHandler(docHandler);\n task.setIndex(new File(indexDir));\n task.setProject(project);\n task.execute();\n\n searcher = new IndexSearcher(indexDir);\n analyzer = new StopAnalyzer();\n }",
"void setOutputPath(String outputPath);",
"@JkDoc(\"Generates Idea [my-module].iml file\")\r\n public void generateIml() {\r\n final List<File> depProjects = new LinkedList<File>();\r\n for (final JkBuild depBuild : build.slaves().directs()) {\r\n depProjects.add(depBuild.baseDir().root());\r\n }\r\n final ImlGenerator generator = new ImlGenerator(build.baseDir().root());\r\n generator.useVarPath = useVarPath;\r\n generator.buildDefDependencyResolver = build.buildDefDependencyResolver();\r\n generator.projectDependencies = depProjects;\r\n if (this.build instanceof JkBuildDependencySupport) {\r\n final JkBuildDependencySupport dsbuild = (JkBuildDependencySupport) build;\r\n generator.dependencyResolver = dsbuild.dependencyResolver();\r\n }\r\n if (this.build instanceof JkJavaBuild) {\r\n final JkJavaBuild jbuild = (JkJavaBuild) build;\r\n generator.includeJavadoc = true;\r\n generator.sourceJavaVersion = jbuild.javaSourceVersion();\r\n generator.forceJdkVersion = true;\r\n generator.sources = jbuild.sources();\r\n generator.testSources = jbuild.unitTestSources();\r\n generator.outputClassFolder = jbuild.classDir();\r\n generator.outputTestClassFolder = jbuild.testClassDir();\r\n }\r\n generator.generate();\r\n JkLog.info(generator.outputFile.getPath() + \" generated.\");\r\n }",
"public void setUpNewXMLFile(File file) {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(file, \"UTF-8\");\n\t\t\tpw.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\\n\");\n\t\t\tpw.write(\"<\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.write(\"</\" + defaultDocumentElement + \">\\n\");\n\t\t\tpw.close();\n\t\t} catch(Exception e) {\n\t\t\tSystem.out.println(\"Error creating new XML File.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tpw.close();\n\t\t\t} catch(Exception e) {\n\t\t\t\t//Seems like it was already closed.\n\t\t\t}\n\t\t}\n\t}",
"public void startDocument ()\n {\n\tSystem.out.println(\"Start document\");\n }",
"public void setInoDocname(String pDocname);",
"public void setAnts(int numberOfAnts) throws AntFrameworkException {\n\t\tthis.setNumberOfAnts(numberOfAnts);\n\t\tthis.setAnts();\n\t}",
"public void startDocument ()\n\t\t{\n\t\t\t//System.out.println(\"Start document\");\n\t\t}",
"public void build() throws IOException {\n if (packageWriter == null) {\n //Doclet does not support this output.\n return;\n }\n build(layoutParser.parseXML(ROOT), contentTree);\n }",
"void setConfiguration();",
"void setFilePath(String filePath);",
"public DocumentController() {\n\t\tthis.content = this.getstartpage();\n\t\tthis.url = \"https://\";\n\t}",
"public void createModuleGeneratedXMLPath() {\n\t\tString[] onlyFolderNames = new String[] {\n\t\t\tmInstance.getModuleGeneratedXMLPath(),\n\t\t\tmModuleName\n\t\t};\n\t\t\n\t\tmModuleGeneratedXMLPath = StringUtils.makeFilePath (onlyFolderNames, false);\n\t}",
"private void addMetaData() {\r\n\t\tdocument.open();\r\n\t\tdocument.addTitle(\"My first PDF\");\r\n\t\tdocument.addSubject(\"Using iText\");\r\n\t\tdocument.addKeywords(\"Java, PDF, iText\");\r\n\t\tdocument.addAuthor(\"Lars Vogel\");\r\n\t\tdocument.addCreator(\"Lars Vogel\");\r\n\t\tdocument.close();\r\n\t}",
"public void setFastaFile(File fastaFile) {\n\n \n fastaFilePath = fastaFile.getAbsolutePath();\n\n }",
"public static boolean start(RootDoc root) {\n\t\tSystem.out.println(\"Generating MDX docs for IRI V\" + version);\n\t\tMDXDoclet doclet = new MDXDoclet(root);\n\t\t\n\t\tfor (ClassDoc c : root.classes()) {\n \tif (c.name().equals(API_NAME)) {\n \t\tdoclet.generate(c);\n \t\tbreak;\n \t}\n }\n \n System.out.println(\"Documentation generated\");\n return true;\n }",
"public void setHtmldir(String htmldir) \r\n {\r\n this.htmldir = htmldir;\r\n }",
"@Override\n\tpublic void setManualUrl(java.lang.String manualUrl, java.util.Locale locale) {\n\t\t_scienceApp.setManualUrl(manualUrl, locale);\n\t}",
"public void setCommandLineGeneratorElement(IConfigurationElement element);",
"private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }",
"public ForagingAntsReader() {\n\t\tsuper();\n\t}",
"public NewTargetFileWizard() {\n super();\n }",
"public void setConfigfile (File file)\n {\n _configfile = file;\n }",
"public void setLink(FileNode target){\n\t\t/*link = target;\n\t\tsuper.setOffset(0);\n\t\tsuper.setLength(link.getLength());\n\t\tsuper.setSourcePath(link.getSourcePath());*/\n\t\tsuper.setVirtualSourceNode(target);\n\t\tsuper.setOffset(0);\n\t\tif(target != null){\n\t\t\tsuper.setLength(target.getLength());\n\t\t\tsuper.setSourcePath(target.getSourcePath());\n\t\t}\n\t}",
"public static boolean start(final com.sun.javadoc.RootDoc rootDoc) throws IOException {\n return new GATKHelpDoclet().startProcessDocs(rootDoc);\n }",
"public void setOutputFile(String outputFile) {\n this.outputFile = outputFile;\n }"
] | [
"0.6771864",
"0.58070105",
"0.56788385",
"0.56431013",
"0.5615227",
"0.5587068",
"0.5572043",
"0.53679025",
"0.52084047",
"0.52084047",
"0.5204309",
"0.52028555",
"0.5171362",
"0.5171362",
"0.5154064",
"0.5112383",
"0.50223964",
"0.5007889",
"0.4980378",
"0.49561426",
"0.49561426",
"0.4954824",
"0.49221787",
"0.48552394",
"0.4849085",
"0.483729",
"0.4804447",
"0.48017165",
"0.4798127",
"0.47824678",
"0.47762293",
"0.47615725",
"0.4748296",
"0.47346568",
"0.47339863",
"0.4726667",
"0.472565",
"0.47186038",
"0.47147578",
"0.46993515",
"0.4696399",
"0.46862367",
"0.4676355",
"0.46732447",
"0.46725577",
"0.46712956",
"0.46589145",
"0.4647647",
"0.46370593",
"0.4625398",
"0.46186215",
"0.46182334",
"0.46135363",
"0.46036923",
"0.45860308",
"0.45804814",
"0.45799333",
"0.45767838",
"0.45740178",
"0.45726067",
"0.45633355",
"0.45633355",
"0.4563162",
"0.4561983",
"0.4547416",
"0.45413062",
"0.45279154",
"0.45219016",
"0.45187896",
"0.4514974",
"0.451104",
"0.44982153",
"0.4484416",
"0.44762573",
"0.44747135",
"0.44733915",
"0.44717264",
"0.4469784",
"0.44646415",
"0.44627067",
"0.44615147",
"0.44606757",
"0.44583124",
"0.44522643",
"0.44458196",
"0.44453856",
"0.44372356",
"0.4436257",
"0.4427211",
"0.44242612",
"0.4421876",
"0.44111627",
"0.4409664",
"0.44083124",
"0.44075516",
"0.4407329",
"0.44026917",
"0.4394965",
"0.43948755",
"0.4384318"
] | 0.68393797 | 0 |
Set the destination directory. | public void setDestDir( File d )
{
this.destDir = d;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setToDir(File dir) {\n _destDir = dir;\n }",
"public void setDestdir(File dest) {\n this.destdir = dest;\n }",
"void setDirectory(File dir);",
"public void setDest(File destination) {\r\n if (destination.exists() && destination.isDirectory()) {\r\n throw new BuildException(\"if destination PPTX exists, it must be a file\");\r\n }\r\n this._destination = destination;\r\n }",
"public void setDir(File d) {\r\n this.dir = d;\r\n }",
"public void setAndCreateDirPath(String dirname) {\r\n\t File newPath = new File(dirname); \r\n\t \r\n\t if(!newPath.isDirectory()) {\r\n\t\t newPath.mkdirs();\r\n\t }\r\n\t \r\n\t directory = newPath;\r\n }",
"@Override\n public void setOutputDir(String outputDir) {\n this.outputDir = outputDir;\n }",
"File getTargetDirectory();",
"@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"public void setDirectory(final String directory) {\n directoryProperty().set(directory);\n }",
"@Raw @Model\r\n\tvoid setDir(Directory dir) {\r\n\t\tthis.dir = dir;\r\n\t\tthis.move(dir);\r\n\t\t\r\n\t}",
"@OutputDirectory\n public File getDestinationDir() {\n return _destinationDir;\n }",
"public synchronized static void setCurrentDirectory(File newDirectory) {\n if (newDirectory == null) // this can actually happen\n currentDirectory = canon(System.getProperty(\"user.home\"));\n else\n currentDirectory = canon(newDirectory.getAbsolutePath());\n }",
"public void setDir(File dir)\n {\n this.dir = dir;\n }",
"public void setDir(File dir) {\n this.dir = dir;\n }",
"public void setDir( final File dir )\n {\n m_dir = dir;\n }",
"abstract File getTargetDirectory();",
"public void setDir(File dir) {\n _sourceDir = dir;\n }",
"public void setDir(String dir) {\n // Do this before setting the value\n boolean dirChanged = dir != null && !dir.equals(this.getDir());\n this.dir = Paths.get(dir);\n if(dirChanged) {\n this.dirChanged();\n }\n }",
"public void setCurrentDirectory(File dir) {\r\n\tif (dir == null) dir = new File(System.getProperty(\"user.home\"));\r\n\r\n\tdir = makeAbsolute(dir);\r\n\r\n\t/**\r\n\t * Note that we compare literal paths, not canonical\r\n\t * paths. If they want the chooser to represent the\r\n\t * files at the end of a different route to the same\r\n\t * place, that's perfectly legitimate. See NextStep\r\n\t * for e.g.\r\n\t */\r\n\tif (curDir == null || !curDir.equals(dir)) {\r\n\t invalidateCache();\r\n\t File oldDir = curDir;\r\n\t curDir = dir;\r\n\t firePropertyChange(\"currentDirectory\", oldDir, dir);\r\n\t fireContentsChanged();\r\n\t}\r\n }",
"public void setDataDirectory(String dataDirectory) {\n this.dataDirectory = dataDirectory;\n }",
"public void setOutputDirectory(String dir) {\n\t\tnew LabeledText(\"Output directory:\").setText(dir);\n\t}",
"void setDestination(Locations destination);",
"public static void setOutputDir(Configuration conf, String path) {\n conf.set(OUTPUT_DIR_KEY, path);\n }",
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setDir(String dir) {\r\n\t\tthis.dir = new File(dir);\r\n\t}",
"public void setDirectory(Path path) throws IOException {\n\t\tsetFileContents(path, DIRECTORY_MARKER_STRING);\n\t}",
"public void setDestination(String destination) {\r\n this.destination = destination;\r\n }",
"public Builder setDestination(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n destination_ = value;\n onChanged();\n return this;\n }",
"public void setOutputDirectory(File outputDirectory) {\n\t\tthis.outputDirectory = outputDirectory;\n\t}",
"public void setDestfile( final File destfile )\n {\n m_destfile = destfile;\n }",
"@Internal(\"Represented as part of archivePath\")\n public File getDestinationDir() {\n return destinationDir;\n }",
"private void showDestinationDirChooser() {\r\n\t\tDirectoryChooser chooser = new DirectoryChooser();\r\n\t\tchooser.setTitle(\"Pick destination directory for split DARs. Hint: use a folder on TeacherShare.\");\r\n\t\tFile defaultDirectory = new File(System.getenv(\"userprofile\") + \"\\\\Desktop\");\r\n\t\tchooser.setInitialDirectory(defaultDirectory);\r\n\t\tFile selectedDirectory = chooser.showDialog(null);\r\n\r\n\t\tif (selectedDirectory != null) {\r\n\t\t\tString messageS = null;\r\n\t\t\tmessageS = selectedDirectory.getAbsolutePath();\r\n\t\t\tpreferences.setProperty(prefOutputPath, messageS);\r\n\t\t\tdestinationDirFX.update();\r\n\t\t}\r\n\t}",
"public void setFileDirectory(String directory) {\n settings.put(\"fileDirectory\", directory);\n }",
"private String setFileDestinationPath(){\n String filePathEnvironment = Environment.getExternalStorageDirectory().getAbsolutePath();\n Log.d(TAG, \"Full path edited \" + filePathEnvironment + \"/earwormfix/\" + generatedFilename + EXTENSION_JPG);\n return filePathEnvironment+ \"/earwormfix/\" + generatedFilename + EXTENSION_JPG;\n }",
"void exportToDirectory(File targetDirectory) throws IOException;",
"public void setDir(int dir) {\n this.dir = dir;\n }",
"public void setDirectory(final String directory) {\n\t\tthis.directory = directory;\n\t}",
"public String getDestinationFolder()\n\t{\n\t\treturn destinationFolder;\n\t}",
"public void setSaveDirectory(String dir) {\r\n\t\tEmailServiceEJB.saveDirectory = dir;\r\n\t}",
"public void setShHarvestDir(String val) {\n\n\t\tshHarvestDir = val;\n\n\t\t// add to the commonDirs object\n\n\t\tadd_to_common_dirs(val);\n\n\t}",
"public void setExtractDir(final String dir) {\n this.extractBaseDir = new File(dir);\n extractBaseDir.mkdirs();\n }",
"void setOutputPath(String outputPath);",
"public void setISdirectory(File directory)\n {\n is_directory = directory;\n }",
"public void setApplicationDir( String path ) {\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n Editor editor = preferences.edit();\r\n editor.putString(LibraryConstants.PREFS_KEY_BASEFOLDER, path);\r\n editor.commit();\r\n resetManager();\r\n }",
"private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}",
"public void setOutput(File file){\n outputDir = file;\n }",
"public void setDestination(java.lang.String destination) {\n this.destination = destination;\n }",
"public void setDestination(Coordinate destination) {\n cDestination = destination;\n }",
"public createDirectory_args setPath(String path) {\n this.path = path;\n return this;\n }",
"public void setDestination(String destination1) {\r\n this.destination = destination1;\r\n }",
"public void changeCurrentDirectory(String newDirectory) {\n currentDirectory = newDirectory;\n }",
"public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }",
"public void setOutputDirectory(final String outputDirectory) {\n this.outputDirectory = outputDirectory;\n }",
"protected void setWorkingDirectory(File dir) {\n\t\tthis.dir = dir;\n\t}",
"public static void setWorkOutputDir(TaskAttemptContext context)\n throws IOException\n {\n Configuration conf = context.getConfiguration();\n String outputPath = getOutputDir(conf);\n // we need to do this to get the task path and set it for mapred\n // implementation since it can't be done automatically because of\n // mapreduce->mapred abstraction\n if (outputPath != null) {\n FileOutputCommitter foc =\n new FileOutputCommitter(getOutputPath(conf), context);\n Path path = foc.getWorkPath();\n FileSystem fs = path.getFileSystem(conf);\n fs.mkdirs(path);\n conf.set(\"mapred.work.output.dir\", path.toString());\n LOG.info(\"Setting mapred.work.output.dir to {}\", path.toString());\n }\n }",
"public void setWarDir(final File val) {\n warDir = val;\n }",
"public void chooseOutputDirectory() {\n File file;\n JFileChooser fileChooser = new JFileChooser(\n new java.io.File(defaultDirectory));\n fileChooser.setDialogTitle(NbBundle.getMessage(\n SessionTopComponent.class, \"ChooseOutputDirectory\"));\n fileChooser.setFileSelectionMode(\n JFileChooser.DIRECTORIES_ONLY);\n int returnVal = fileChooser.showOpenDialog(this);\n\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n file = fileChooser.getSelectedFile();\n\n outputDirectoryTextField.setText(file.getAbsolutePath());\n defaultDirectory = file.getPath();\n }\n enableStartButton();\n }",
"void setDest(String L);",
"private void setupDirectoryChooser(DirectoryChooser directoryChooser) \n {\n directoryChooser.setTitle(\"Select Directory to save Report\");\n\n // Set Initial Directory\n directoryChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n }",
"abstract void addNewSourceDirectory(final File targetDirectory);",
"public void setDestination(int destination) {\r\n\t\tthis.destination = destination;\r\n\t}",
"public void setDir(File dir) throws Exception\n {\n this.dir = dir;\n }",
"public void setDestination(String dest)\n\t{\n\t\tnotification.put(Attribute.Request.DESTINATION, dest);\n\t}",
"public void createTestDir() {\n\t\tworkDir = new File(System.getProperty(\"test.dir\", \"target\"));\n\t}",
"void setWorkingDirectory( String workingDirectory );",
"public void setBaseDir(File baseDir) throws BuildException {\n baseDir = FILE_UTILS.normalize(baseDir.getAbsolutePath());\n if (!baseDir.exists()) {\n throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n + \" does not exist\");\n }\n if (!baseDir.isDirectory()) {\n throw new BuildException(\"Basedir \" + baseDir.getAbsolutePath()\n + \" is not a directory\");\n }\n this.baseDir = baseDir;\n setPropertyInternal(\"basedir\", this.baseDir.getPath());\n String msg = \"Project base dir set to: \" + this.baseDir;\n log(msg, MSG_VERBOSE);\n }",
"public void moveDirectory(String source, String target) throws IOException{\n Path sourceFilePath = Paths.get(PWD.getPath()+\"/\"+source);\n Path targetFilePath = Paths.get(PWD.getPath()+\"/\"+target);\n //using builtin move function which uses Paths\n Files.move(sourceFilePath,targetFilePath);\n }",
"@Override\n public void finish() {\n storeProperties();\n // retrieve the full list of files according to the selected mode\n List<org.jajuk.base.File> files = getFiles();\n if (files == null) {\n return;\n }\n // define the target directory\n final Date curDate = new Date();\n // Do not use ':' character in destination directory, it's\n // forbidden under Windows\n final SimpleDateFormat stamp = new SimpleDateFormat(\"yyyyMMdd-HHmm\", Locale.getDefault());\n final String dirName = \"Party-\" + stamp.format(curDate);\n final java.io.File destDir = new java.io.File(((String) data.get(Variable.DEST_PATH)), dirName);\n if (!destDir.mkdir()) {\n Log.warn(\"Could not create destination directory \" + destDir);\n }\n Log.debug(\"Going to copy \" + files.size() + \" files to directory {{\"\n + destDir.getAbsolutePath() + \"}}\");\n // perform the actual copying\n UtilPrepareParty.copyFiles(files, destDir, isTrue(Variable.NORMALIZE_FILENAME),\n isTrue(Variable.ONE_MEDIA_ENABLED) && isTrue(Variable.CONVERT_MEDIA),\n (String) data.get(Variable.ONE_MEDIA), (String) data.get(Variable.CONVERT_COMMAND));\n }",
"public void setNextDest(int nextDest) {\n\t\tthis.nextDestination = nextDest;\n\t}",
"public void setDirAddress(String dirAddress) {\n String oDirAddress = getDirAddress();\n this.dirAddress = dirAddress;\n firePropertyChange(PROPNAME_DIRADDRESS, oDirAddress, this.dirAddress);\n }",
"public Teleporter setDestination(Location location)\r\n\t{ this.destination = location; return this; }",
"public void setRootDir(String rootDir);",
"void setWorkingDirectory(String workingDirectory);",
"public static void copyDirectory(String destDirStr, String sourceDirStr, boolean mkdirs) throws Exception {\r\n\t\tFile destDir = new File(destDirStr);\r\n\t\tFile sourceDir = new File(sourceDirStr);\r\n\t\tcopyDirectory(destDir, sourceDir, mkdirs);\r\n\t}",
"public File getTargetDir() {\n return targetDir;\n }",
"public static void setDownloadDirectory(String downloadDirectory) {\n DownloadManager.downloadDirectory = downloadDirectory;\n }",
"public void setDestination(Location location, String name) {\n this.currentDestinationName = name;\n this.currentDestination = location;\n }",
"public rename_args setDstPath(String dstPath) {\n this.dstPath = dstPath;\n return this;\n }",
"public void setShHarvestedDataDir(String val) {\n\n\t\tthis.shHarvestedDataDir = val;\n\n\t}",
"public Builder setRouteDest(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n routeDest_ = value;\n onChanged();\n return this;\n }",
"private void initializeTargetDirectory()\n {\n if ( isFtpEnabled() )\n initializeRemoteTargetDirectory();\n else\n initializeLocalTargetDirectory(); \n }",
"public Path outputDir() {\n return dir;\n }",
"@DataBoundSetter\n public void setDir(String dir) {\n this.dir = dir;\n }",
"public void setHarvestedDataDir(String val) {\n\n\t\tthis.harvestedDataDir = val;\n\n\t}",
"public void setOutputFolder(String text) {\n txtOutputFolder().setText(text);\n }",
"void setKarafInstallDir(String installDir);",
"public void setDestination(final double xCoord, final double yCoord) {\n\t\tsuper.setDestination(new Target(xCoord, yCoord));\n\n\t}",
"public void setDestination(TransactionAccount destination){\n if(destination.getTransactionAccountType().getAccountType() == AccountType.INCOME\n && this.getSource() != null\n && this.getSource().getTransactionAccountType().getAccountType() != AccountType.INITIALIZER){\n throw new BTRestException(MessageCode.INCOME_CANNOT_BE_DESTINATION,\n \"Transaction account with type income cannot be used as a source in destination\",\n null);\n }\n this.destination = destination;\n }",
"public void setDTEDDir(String dtedDirectory) {\n if (dtedDirectory == null) {\n dtedDir = \"\";\n }\n dtedDir = dtedDirectory;\n }",
"public void setDestination(ExportDestination destination) {\n this.destination = destination;\n }",
"public void setWorkingDir(File workingDir) {\n this.workingDir = workingDir;\n }",
"public void setWorkingDir(File workingDir) {\n this.workingDir = workingDir;\n }",
"public void setOutputDirectory(String outputDirectory) {\n this.outputDirectory = outputDirectory;\n }",
"public void setBasedir(String baseD) throws BuildException {\n setBaseDir(new File(baseD));\n }",
"public void setProjectDirectory(File projectDir) {\n this.mProjectDir = projectDir;\n }",
"public void setGraphPath(String graphPath) {\n this.graphPath = graphPath;\n if(graphPath == null)\n System.err.println(\"Null path\");\n else {\n File dir = new File(graphPath + MAIN_PATH);\n if(!dir.exists()) {\n dir.mkdir();\n //TODO questo va fatto nella creazione del grafo non nel settaggio del path\n System.out.println(\"Directory to save the graph created\");\n }\n }\n }",
"public void saveIn (String directory) {\n\t\tthis.directory = directory;\n\t\tsave();\n\t}",
"void setPath(DrivePath path);",
"public void setPath(String newPath) {\n String id = PREF_DEFAULTDIR + getId();\n idv.getStateManager().writePreference(id, newPath);\n }",
"public void setMWNDest(java.lang.String MWNDest) {\n this.MWNDest = MWNDest;\n }"
] | [
"0.75599486",
"0.7512542",
"0.66976887",
"0.66894054",
"0.62209845",
"0.6115669",
"0.60990584",
"0.60720444",
"0.6064003",
"0.6011139",
"0.5984726",
"0.5979963",
"0.59719837",
"0.59595144",
"0.5948333",
"0.5946266",
"0.5914442",
"0.5873207",
"0.5855026",
"0.5846182",
"0.58198196",
"0.5786999",
"0.5785943",
"0.57688266",
"0.57353926",
"0.5708092",
"0.5696222",
"0.569207",
"0.56691307",
"0.56234246",
"0.56192815",
"0.5610716",
"0.556147",
"0.5551646",
"0.55304885",
"0.55213493",
"0.55138093",
"0.5500581",
"0.5498079",
"0.5495274",
"0.54945785",
"0.54739904",
"0.5455338",
"0.5450183",
"0.5446674",
"0.54363334",
"0.5425416",
"0.5417632",
"0.5392238",
"0.5391974",
"0.53897077",
"0.53749174",
"0.53589106",
"0.53573763",
"0.53525263",
"0.53405195",
"0.53392816",
"0.5334247",
"0.53268796",
"0.5318005",
"0.53168446",
"0.5314436",
"0.52784455",
"0.5264332",
"0.5259073",
"0.5243183",
"0.52396655",
"0.52395785",
"0.52257025",
"0.5220559",
"0.5209241",
"0.5205784",
"0.5205192",
"0.5197385",
"0.5193458",
"0.5193402",
"0.51856977",
"0.5167732",
"0.51453334",
"0.513932",
"0.5137049",
"0.5125795",
"0.51152086",
"0.5114761",
"0.511034",
"0.5107126",
"0.5098989",
"0.50975484",
"0.5095888",
"0.509445",
"0.50904655",
"0.50904655",
"0.5089146",
"0.50842404",
"0.50818",
"0.5078657",
"0.50660264",
"0.5049874",
"0.504544",
"0.5041592"
] | 0.7393946 | 2 |
Set the the dotExecutable to set | public void setDotExecutable( File dotExecutable )
{
this.dotExecutable = dotExecutable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setExecutable(String executable);",
"public static void setExecutable(String executable) {\n \tGlobals.executable = executable;\n \tsetProperty(\"executable\", executable);\n }",
"void setStartUpExe(String s);",
"public static String getExecutable() {\n \texecutable = getProperty(\"executable\");\n \tif (executable == null) executable = \"dot\";\n \treturn executable;\n }",
"public static void setExecutable(final String pathname) throws GrassExecutionException {\r\n\r\n final String version = System.getProperty(\"java.version\").substring(0, 3);\r\n final Float f = Float.valueOf(version);\r\n if (f.floatValue() < (float) 1.6) {\r\n if (Sextante.isUnix() || Sextante.isMacOSX()) {\r\n try {\r\n Runtime.getRuntime().exec(\"chmod +x \" + pathname);\r\n }\r\n catch (final IOException e) {\r\n throw new GrassExecutionException();\r\n }\r\n }\r\n }\r\n else {\r\n if (Sextante.isUnix() || Sextante.isMacOSX()) {\r\n new File(pathname).setExecutable(true);\r\n }\r\n }\r\n }",
"void setIncludeExecutable(boolean executable);",
"public void testSetExecutable_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\t\tString value = \"\";\n\n\t\tfixture.setExecutable(value);\n\n\t\t\n\t}",
"public Builder setExecutable(boolean executable) {\n _executable = executable;\n return this;\n }",
"public String getDotExeName()\n\t{\n\t\treturn dotExeName;\n\t}",
"@Override\n\tpublic void setExeFileName(java.lang.String exeFileName) {\n\t\t_scienceApp.setExeFileName(exeFileName);\n\t}",
"void doDot(String pInput, String pOutput) {\n try {\n\n String dotPath\n = \"C:\\\\Program Files (x86)\\\\Graphviz2.38\\\\bin\\\\dot.exe\";\n\n String fileInputPath = pInput;\n String fileOutputPath = pOutput;\n\n String tParam = \"-Tjpg\";\n String tOParam = \"-o\";\n\n String[] cmd = new String[5];\n cmd[0] = dotPath;\n cmd[1] = tParam;\n cmd[2] = fileInputPath;\n cmd[3] = tOParam;\n cmd[4] = fileOutputPath;\n\n Runtime rt = Runtime.getRuntime();\n\n rt.exec(cmd);\n\n } catch (Exception ex) {\n ex.printStackTrace();\n } finally {\n }\n try {\n\n String[] cmd = new String[4];\n cmd[0] = \"cmd\";\n cmd[1] = \"/C\";\n cmd[2] = \"start\";\n cmd[3] = pOutput;\n\n Runtime rt = Runtime.getRuntime();\n\n rt.exec(cmd);\n\n } catch (Exception e) {\n }\n\n }",
"public String getExecutable();",
"public void setP4ExecutablePath(String path) {\r\n this.p4ExecutablePath = path;\r\n }",
"private ProcessBuilder appendExecutablePath(ProcessBuilder builder) {\n String executable = builder.command().get(0);\n if (executable == null) {\n throw new IllegalArgumentException(\n \"No executable provided to the Process Builder... we will do... nothing... \");\n }\n builder\n .command()\n .set(0, FileUtils.getFileResourceId(configuration.getWorkerPath(), executable).toString());\n return builder;\n }",
"public void reset() {\n\t\treset(false);\n\t\tGraphvizUtils.setDotExecutable(null);\n\t}",
"private static String getSetCommand()\n {\n String setCmd;\n String osName = System.getProperty(\"os.name\");\n\n if (osName.indexOf(\"indows\") != -1)\n {\n if (osName.indexOf(\"indows 9\") != -1)\n {\n setCmd = \"command.com /c set\";\n }\n else\n {\n setCmd = \"cmd.exe /c set\";\n }\n }\n else\n {\n setCmd = \"/usr/bin/env\";\n //should double check for all unix platforms\n }\n return setCmd;\n }",
"protected void setPartitionDotFile(final String str) {\n\t\tthis.partitionDot = str;\n\t}",
"void makeExecutable(Os os, Path binaryPath);",
"protected void createPartitionDotFilePath() {\n\t\tString file = \"\";\n\t\tfile += this.getRuntimeEnv().getOptionValue(PTArgString.OUTPUTDIR);\n\t\tfile += Utils.getFileSeparator();\n\t\tfile += Utils.getFilename(this.getNetlist().getInputFilename());\n\t\tfile += \"_hmetis.dot\";\n\t\tthis.setPartitionDotFile(file);\n\t}",
"public void dot(String str) throws PaleoException {\n\t\trunProcess(\"dot -Tpng \" + str + \".dot -o \" + str + \".png\");\n\t\tif (erreur.length() != 0) {\n\t\t\tthrow new DotException(erreur.toString());\n\t\t}\n\t}",
"@Override\n public void setExecutableImpl(IProcessExec processExec) throws ProcessException\n {\n Asserts.checkArgument(processExec instanceof IProcessChainExec,\n \"Executable implementation must be a process chain implementation\");\n \n // assign exec implementation\n IProcessChainExec processChain = (IProcessChainExec)processExec;\n super.setExecutableImpl(processChain);\n \n // case where SML description contains child process definitions\n // and chain exec implementation doesn't have any\n if (processChain.getChildProcesses().isEmpty() && processChain.getInternalConnections().isEmpty())\n { \n // add child processes to exec impl\n for (OgcProperty<AbstractProcess> processProp: getComponentList().getProperties())\n addProcessToExec(processProp.getName(), processProp.getValue());\n \n // add connections to exec impl\n for (Link link: getConnectionList())\n addConnectionToExec(link);\n }\n \n // case where chain exec implementation contains executable child processes\n // and SML aggregate description doesn't have any\n else if (getNumComponents() == 0 && getNumConnections() == 0)\n {\n // wrap and add child processes to SML description\n for (Entry<String, IProcessExec> entry: processChain.getChildProcesses().entrySet())\n {\n AbstractProcess smlProcess = SMLUtils.wrapWithProcessDescription(entry.getValue());\n components.add(entry.getKey(), smlProcess);\n }\n \n // add links to SML description\n for (IDataConnection connection: processChain.getInternalConnections())\n addConnection(processChain, connection);\n }\n else\n throw new IllegalStateException(\"Executable implementation must be an empty process chain implementation\");\n }",
"String getExecutable();",
"private void setOs() {\n\t\tthis.os = System.getProperty(\"os.name\");\n\t}",
"public void setApp(Main application) { this.application = application;}",
"private void setActiveDiagramPreference()\n {\n final IWorkspace activeWorkspace = mainFrame.getActiveWorkspace();\n final IGraphFile activeWorkspaceGraphFile = activeWorkspace.getGraphFile();\n this.userPreferencesService.setActiveDiagramFile(activeWorkspaceGraphFile);\n }",
"public boolean setToolCommand(String command);",
"public void initDefaultCommand() {\n\t\tsetDefaultCommand(new JoystickDrive());\n\t}",
"public void setLauncher(String launcher) {\n this.launcher = launcher;\n }",
"public void exec(OxProgram pgm) {\n }",
"public void setMain(MainApp main) {\n\t\tthis.main = main;\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new Drive());\n }",
"protected abstract Executable getExecutable();",
"public void setApp(Main application){\n this.application = application;\n }",
"public void initDefaultCommand() {\n super.setDefaultCommand(new DriveJoystick());\n }",
"void setOsP( String osP );",
"public void setMainApp(Main main) {\n this.main = main;\n }",
"public void runtime(Program runtime) {\n\t\tthis.runtime = runtime;\n\t}",
"public void setJvm(String s) {\r\n getCommandLine().setVm(s);\r\n }",
"public void setJobFilePath(File file) {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n if (file != null) {\n prefs.put(powerdropshipDir, file.getPath());\n\n primaryStage.setTitle(\"PowerDropship - \" + file.getName());\n } else {\n prefs.remove(powerdropshipDir);\n\n primaryStage.setTitle(\"PowerDropship\");\n }\n }",
"@Override\r\n\tpublic void setmOs() {\n\t\tthis.mOs = \"Mac OS\";\r\n\t}",
"public NativeExecutable(String command) {\n this.command = command;\n }",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new TestCommandEye());\n }",
"public String\n getProgram() \n {\n if(PackageInfo.sOsType == OsType.Windows) \n return (\"winimage.exe\");\n return super.getProgram();\n }",
"private void setCarbonHome() {\n Path carbonHome = Paths.get(\"\");\n carbonHome = Paths.get(carbonHome.toString(), \"src\", \"test\");\n System.setProperty(CARBON_HOME, carbonHome.toString());\n logger.info(\"Carbon Home Absolute path set to: \" + carbonHome.toAbsolutePath());\n\n }",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.main = mainApp;\n\t}",
"File getExecutable();",
"private void makeBinariesExecutable() throws IOException {\n\t\tif (!isWindows()) {\n\t\t\tBundle bundle = Platform.getBundle(Activator.PLUGIN_ID);\n\t\t\tFile binDir = new File(FileLocator.toFileURL(FileLocator.find(bundle, new Path(\"bin\"), null)).getPath());\n\t\t\tnew File(binDir, \"align-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"filter-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"strip-it\").setExecutable(true);\n\t\t\tnew File(binDir, \"shape-it\").setExecutable(true);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tString osArch = SystemUtils.OS_ARCH;\n\n\t\tboolean is64 = SystemUtils.OS_ARCH.contains(\"64\");\n\t\tboolean is32 = SystemUtils.OS_ARCH.contains(\"32\");\n\n\t\tSystem.out.printf(\"osArch: '%s'\\n\", osArch);\n\t\tSystem.out.printf(\"is64: '%s'\\n\", is64);\n\t\tSystem.out.printf(\"is32: '%s'\\n\", is32);\n\n\t\tSystem.out.printf(\"Java 170 pelo menos. '%s'\\n\",\n\t\t\t\tSystemUtils.isJavaVersionAtLeast(170));\n\n\t\tString javaHome = SystemUtils.JAVA_HOME;\n\n\t\tSystem.out.printf(\"java home: '%s'\\n\", javaHome);\n\n\t\tSystem.out.println(\"==========================================================================\");\n\t\tSystem.out.println(\"env:\");\n\t\tSystem.out.println(Arrays\n\t\t\t\t.toString(System.getenv().entrySet().toArray()));\n\t\tSystem.out.println(\"--------------------------------------------------------------------------\");\n\t\tSystem.out.println(System.getenv(\"JAVA_HOME\"));\n\t\tSystem.out.println(\"==========================================================================\");\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"==========================================================================\");\n\t\tSystem.out.println(\"===================== SET RAGNA_HOME='aaaaaa' ==========================\");\n\t\tSystem.out.println(\"==========================================================================\");\n\t\tProcessBuilder pb1 = new ProcessBuilder(\"CMD.exe\", \"/C\", \"SET RAGNA_HOME='aaaaaa'\");\n\t\t\n\t\ttry {\n\t\t\tpb1.start();\n\t\t\tSystem.out.println(\"----------------------------------env--------------------------------\");\n\t\t\tSystem.out.println(Arrays\n\t\t\t\t\t.toString(pb1.environment().entrySet().toArray()));\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\n\t\tSystem.out.println(\"==========================================================================\");\n\t\tSystem.out.println(\"=========================== SET =====================================\");\n\t\tSystem.out.println(\"==========================================================================\");\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(\"CMD.exe\", \"/C\", \"SET\");\n\n\t\ttry {\n\t\t\tpb.redirectErrorStream(true);\n\t\t\tMap<String, String> env = pb.environment();\n\t\t\tString path = env.get(\"Path\") + \";C:\\\\naved\\\\bin\";\n\t\t\tenv.put(\"Path\", path);\n\t\t\tProcess process;\n\t\t\tprocess = pb.start();\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tprocess.getInputStream()));\n\t\t\tString line;\n\t\t\twhile ((line = in.readLine()) != null) {\n\t\t\t\tSystem.out.println(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"==========================================================================\");\n\n\t\t\n\t\t\n\t\t\n\t}",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n \tsetDefaultCommand(new DriveWithJoystick());\n }",
"private void setupCommandLineForVMS(Execute exe, String[] command) {\r\n ExecuteJava.setupCommandLineForVMS(exe, command);\r\n }",
"public abstract void setCommand(String cmd);",
"private void setOSXCloseCommand() {\r\n if (OSXAdapter.isMacOSX()) {\r\n try {\r\n OSXAdapter.setQuitHandler(\r\n this,\r\n getClass().getDeclaredMethod(\r\n \"macShutdown\", (Class[]) null)); //$NON-NLS-1$\r\n }\r\n catch (Exception e) {\r\n System.err.println(Messages.MainModel_11.toString());\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public void setPath (\r\n String strPath) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public void setMain(Main main) {\r\n \tthis.main = main;\r\n }",
"public void setMainApp(Main mainApp) {\n this.mainApp = mainApp;\n \n }",
"public void initDefaultCommand() {\n\t\tsetDefaultCommand(new UserDriveCommand());\n\t}",
"@Override\n public void initDefaultCommand() {\n Robot.driveTrain.setDefaultCommand(new xboxDrive());\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"ExecutableFilter(boolean isExe) {\n\t\tthis.isExe = isExe;\n\t}",
"public static void ChromeExePathSetUp() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"D:\\\\VisionITWorkspace\\\\dependencies\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tReporter.log(\"Chrome Exe path Set up\", true);\r\n\t}",
"@Override\r\n\t\t\tpublic void autStartProcess() {\n\t\t\t}",
"public String setDot() {\r\n\t\tif (getOperand().length() == Config.MAX_SIZE) {\r\n\t\t\treturn getOperand().toString();\r\n\t\t}\r\n\r\n\t\tif (getOperand().length() == 0) {\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\r\n\t\tif (getOperand().indexOf(\".\") == -1) {\r\n\t\t\tgetOperand().append(\".\");\r\n\t\t}\r\n\r\n\t\treturn getOperand().toString();\r\n\t}",
"protected void setHMetisExec(final String str) {\n\t\tthis.hMetisExec = str;\n\t}",
"private void setupEnvironment(Execute exe) {\r\n String[] environment = env.getVariables();\r\n if (environment != null) {\r\n for (int i = 0; i < environment.length; i++) {\r\n log(\"Setting environment variable: \" + environment[i], Project.MSG_VERBOSE);\r\n }\r\n }\r\n exe.setNewenvironment(newEnvironment);\r\n exe.setEnvironment(environment);\r\n }",
"public void setFork( final boolean fork )\n {\n m_fork = fork;\n }",
"public void setMainApp(MainApp mainApp);",
"public void setMainApp(MainApp mainApp) {\n this.mainApp = mainApp;\n }",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setLuaJCore(String path) {\n\t\tjEdit.setProperty(propCorePath, path);\n\t\tjEdit.removePluginJAR(jEdit.getPluginJAR(workingCore), false);\n\t\tjEdit.addPluginJAR(path);\n\t\tworkingCore = path;\n\t}",
"public void setLaunched();",
"void setWorkingDirectory(String workingDirectory);",
"void setWorkingDirectory( String workingDirectory );",
"@Override\n protected void initDefaultCommand(){\n setDefaultCommand(new Drive());\n }",
"@Override\n public void initDefaultCommand() {\n setDefaultCommand(new DriveWithJoy());\n }",
"public void setSystemPath(String path) {\r\n\t\ttry {\r\n\t\t\tPaths.get(path);\r\n\t\t} catch (InvalidPathException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tthis.settings.setProperty(\"systemPath\", path);\r\n\t\tthis.saveChanges();\r\n\t}",
"private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }",
"public Builder setExecBroker(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000200;\n execBroker_ = value;\n onChanged();\n return this;\n }",
"void setVisualApp(T visualApp);",
"public void setExecMethod(final String execMethod)\n {\n this.execMethod = execMethod.toUpperCase();\n }",
"private void setGoCommand() {\n myCanvas.removeCommand(myPauseCommand);\n myCanvas.removeCommand(myNewCommand);\n myCanvas.addCommand(myGoCommand);\n }",
"public SetPCProcess()\n {\n super(\"SetPC\");\n }",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new VelocityDriveCommand());\n }",
"public void initDefaultCommand() {\r\n // Set the default command for a subsystem here.\r\n //setDefaultCommand\r\n }",
"public ToggleExecutable(Executable executable, String onParameter, String offParameter)\n {\n this.executable = executable;\n this.onParameter = onParameter;\n this.offParameter = offParameter;\n }",
"private void setExecutablePermission(File file) throws IOException {\n Runtime.getRuntime().exec(new String[] { \"chmod\", \"777\", file.getAbsolutePath() });\n }",
"public void coreProcess(Process coreProcess) {\r\n this.coreProcess = coreProcess;\r\n }",
"private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }",
"public void makeStandalone() {\n mCommonProcess = this;\n }",
"public CompilationBuilder setDefaultScriptExtension(String defaultScriptExtension) {\n\t\tcompilerConfiguration.setDefaultScriptExtension(defaultScriptExtension);\n\t\treturn this;\n\t}",
"@Input\n public File getStripExecutable() {\n return stripExecutable;\n }",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new SparkControl());\n }",
"public void SetAsClass () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}",
"public void resetShellIcon() {\r\n\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tGDE.shell.setImage(SWTResourceManager.getImage(GDE.IS_MAC ? \"gde/resource/DataExplorer_MAC.png\" : \"gde/resource/DataExplorer.png\")); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public NativeExecutable(String command, GenerationScript generated) {\n this.command = command;\n this.generated = generated;\n }",
"protected void createHMetisExec() {\n\t\tString[] pathPrefix = {PTUtils.getResourcesFilepath(),\"executable\",\"applications\",\"HMetis\"};\n\t\tString cmd = \"\";\n\t\tcmd += Utils.getPath(pathPrefix);\n\t\tif (Utils.isMac()) {\n\t\t\tcmd = cmd + \"OSX\";\n\t\t}\n\t\telse if (Utils.isUnix()) {\n\t\t\tcmd = cmd + \"Linux\";\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"OS not supported!\");\n\t\t}\n\t\tcmd += Utils.getFileSeparator();\n\t\tcmd += \"hmetis \";\n\t\tcmd += this.getHMetisInFile();\n\t\tcmd += \" \";\n\t\tcmd += this.getPartitioner().getPartition().getNumBlock();\n\t\t// UBfactor=1, Nruns=10, CType=1, RType=1, Vcycle=3, Reconst=0, dbglvl=0\n\t\tcmd += \" 1 10 1 1 3 0 0\";\n\t\tthis.setHMetisExec(cmd);\n\t}",
"public void initDefaultCommand() {\n\t\tsetDefaultCommand(new HatchExtenderCommand());\n\t}",
"public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new DriveWithJoyStickCommand()); // TBD for Commandbased programming\n }",
"public void setGui(HMI gui) {\n this.gui = gui;\n }"
] | [
"0.7863763",
"0.72027385",
"0.6397579",
"0.6395054",
"0.60085773",
"0.60018206",
"0.5898194",
"0.56957996",
"0.56853974",
"0.5543742",
"0.5410345",
"0.540416",
"0.540186",
"0.5349137",
"0.52858216",
"0.5270682",
"0.5253706",
"0.52068",
"0.5206081",
"0.52013975",
"0.51837",
"0.5126237",
"0.511835",
"0.50680643",
"0.5009364",
"0.50002104",
"0.4979594",
"0.4977319",
"0.49718472",
"0.4970244",
"0.4962279",
"0.49373287",
"0.49259967",
"0.49258783",
"0.49248967",
"0.4912605",
"0.48981336",
"0.48831424",
"0.4881068",
"0.48738453",
"0.48722792",
"0.48662364",
"0.48395368",
"0.48320222",
"0.48299205",
"0.4823501",
"0.48216444",
"0.48164582",
"0.48136896",
"0.47860044",
"0.47851434",
"0.47735327",
"0.4772713",
"0.4768145",
"0.47662652",
"0.47621328",
"0.47595194",
"0.4755811",
"0.47417682",
"0.47257453",
"0.4723163",
"0.47153094",
"0.47100642",
"0.47082323",
"0.47058332",
"0.47038844",
"0.47037166",
"0.47037166",
"0.47037166",
"0.46996325",
"0.46929246",
"0.46847597",
"0.46774828",
"0.46693066",
"0.46566728",
"0.4637092",
"0.463264",
"0.46310037",
"0.46238825",
"0.4623162",
"0.46205667",
"0.4619722",
"0.4615756",
"0.4608736",
"0.4606081",
"0.46034047",
"0.45920646",
"0.4588578",
"0.45871896",
"0.45859754",
"0.45852125",
"0.4573679",
"0.45722377",
"0.4571197",
"0.45624453",
"0.45546123",
"0.45543677",
"0.45435804",
"0.45422056",
"0.45363858"
] | 0.87350285 | 0 |
Set fail on an error. | public void setFailonerror( boolean b )
{
this.failOnError = b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFailonerror(boolean fail) {\r\n failOnError = fail;\r\n incompatibleWithSpawn |= fail;\r\n }",
"void setFailed(Throwable lastFailure);",
"public void setFailOnErr(boolean failonerr) {\n mFailonerr = failonerr;\n }",
"public void setFailure(boolean value) {\n\t\tif (value) {\n\t\t\tcountdown = EXIT_COUNT;\n\t\t}\n\t\tfailed = value;\n\t}",
"@Override\n\tpublic void fail(Throwable t) {\n\t}",
"void setError();",
"public void markAsFailed() {\n execution.setErrorReported();\n }",
"public void fail(String desc) {\n\t\tfail();\n error = desc;\n\t}",
"public void setFailed() throws RemoteException;",
"@Override\n\tpublic void setFailureMode(boolean arg0) {\n\n\t}",
"public void setErr(boolean a) {\n\t\terr = a;\r\n\t}",
"public void setError(int value) {\n this.error = value;\n }",
"public void fail( String reason );",
"public void markAsFailed() {\n \n \t\texecutionStateChanged(ExecutionState.FAILED, \"Execution thread died unexpectedly\");\n \t}",
"public void failed(String msg) {\n failureMsg = msg;\n }",
"public void setErrorMode(int mode) {}",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"void markFailed(Throwable t) {\n\t}",
"public abstract void\n fail(ValidationError error);",
"public abstract void setError(String message);",
"private static void setFailed() {\n HealthCheck.failed = true;\n }",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"public void setError(File error) {\r\n this.error = error;\r\n incompatibleWithSpawn = true;\r\n }",
"public void fail(boolean hcf);",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}",
"public void setWorkitemsFailed(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(WORKITEMSFAILED_PROP.get(), value);\n }",
"public void setToFailed() {\n if (currentStep.getCurrentPhase() != Step.Phase.FAILED) {\n changeCurrentStep(Step.Phase.FAILED);\n }\n setCompleteTime(System.currentTimeMillis());\n }",
"public final void fail(Throwable t) {\n Exceptions.throwIfFatal(t);\n this.s.dispose();\n onError(t);\n }",
"public void setWorkitemsFailed(java.lang.Integer value) {\n __getInternalInterface().setFieldValue(WORKITEMSFAILED_PROP.get(), value);\n }",
"@Override\n public void onSetFailure(String s) {\n }",
"@Override\n public void onSetFailure(String s) {\n }",
"public void setGeneralFailure(boolean flag) {\n this.generalFailure = flag;\n }",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}",
"public void setFailStatus(java.lang.String newFailStatus) {\n\tfailStatus = newFailStatus;\n}",
"void markFailed(Execution execution, Throwable cause);",
"static public void fail() {\n fail(null);\n }",
"void failed (Exception e);",
"private void fail() {\n mFails++;\n if(mFails > MAX_NUMBER_OF_FAILS) {\n gameOver();\n }\n }",
"public void setFailure(AfFailure failure)\n {\n _failure = failure;\n }",
"public TestCase fail();",
"public void fail(String message) {\r\n\t\treport(FAILED, message, null);\r\n\t}",
"private void setFailed(int errorCode){\n\t\tCartPayIndent currentIndent = mCoffeeIndentsList.get(mCurrentIndentIndex);\n\t\tString indentID = currentIndent.getIndentID();\n\t\tint coffeeID = currentIndent.getCoffeeID();\n\t\tLogUtil.e(TAG, \"make coffee unsuccessully, code:\" + errorCode + \", indent:\" + indentID);\n\t\tupdateIndentStatusDB(FLAG_ERROR, indentID, coffeeID);\n\t\t// rollback order\n\t\trollBackOrder(errorCode);\n\t\t// report server\n\t\tList<Integer> status = new ArrayList<Integer>();\n\t\tMachineStatusReportInfo info = new MachineStatusReportInfo();\n\t\tinfo.setUid(U.getMyVendorNum());\n\t\tinfo.setTimestamp(TimeUtil.getNow_millisecond());\n\t\tstatus.add(errorCode);\n\t\tinfo.setStatus(status);\n\t\texecute(info.toRemote());\n\n\t\tmMachineStatus = CoffeeMachineStatus.READY;\n\t\t// quit time\n\t\tmUIHandler.sendEmptyMessage(MSG_UI_MAKE_COFFEE_FAIL);\n\t\tmQuitTimer.startCountDownTimer(QUIT_WAIT_TIME, 1000, 1000);\n\t}",
"public void setErrors(int err) {\n errors = err;\n }",
"public void setAbortOnFirstJobFailure(boolean fail) {\n mFailOnFirstError = fail;\n }",
"@Override\n\tpublic void fail(Handle msg) {\n\t\t\n\t}",
"void setError(@Nullable Exception error) {\n this.error = error;\n }",
"public final void error(String error){\n lastKnownError = error;\n }",
"public void fail(String message)\n {\n fail(message);\n }",
"public void setError(final XyzError error) {\n this.error = error;\n }",
"protected void failed()\r\n {\r\n //overwrite\r\n }",
"public void error(Throwable e);",
"public void threadFail(Throwable e) {\n failure = e;\n resume(mainThread);\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\n\t\t\t\t\t\t\t}",
"public void makeError(){\n\t\tisError = true;\n\t}",
"public void error(Exception e);",
"protected abstract void error(String err);",
"public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }",
"@Override\n\tpublic void endFail() {\n\t\t\n\t}",
"@Override\n public void fail(String status, String msg, Object object) {\n\n }",
"@Override\n public void setError(@Nullable CharSequence error) {\n setErrorEnabled(error != null);\n super.setError(error);\n }",
"public void setFailureMode(String failureMode) {\r\n\t\tthis.failureMode = failureMode;\r\n\t}",
"public void error(Throwable error) {\n\n }",
"public void error(Throwable error) {\n\n }",
"public void setErr(PrintStream err);",
"@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}",
"protected abstract void setErrorCode();",
"void onFailure(Throwable error);",
"public void setError(double error) {\r\n this.error = error;\r\n }",
"public synchronized void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n status = Status.FAILED;\n }",
"public Builder setFailOpen(boolean value) {\n \n failOpen_ = value;\n onChanged();\n return this;\n }",
"private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }",
"public boolean getFailOnErr() {\n return mFailonerr;\n }",
"@Test\n public void testSetOnFail_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String onFail = \"\";\n\n fixture.setOnFail(onFail);\n\n }",
"public void setStopOnFailure(boolean stop) {\n stopOnFailure = stop;\n }",
"public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}",
"public void setError() {\n _hasError = true;\n _highlight = HighlightMode.ERROR;\n _error = NodeError.ERROR;\n }",
"public void onFailure(Throwable caught) {\n\t\t\tGWT.log(\"Error changing status\", caught);\t\n\t\t}",
"public void onFailure(Exception t);",
"public void setError(ErrorResponse error)\n {\n data().put(_ERROR, error.data());\n }",
"@Override\n public void failure(int rc, Object error)\n {\n task.setReadPoolSelectionContext(getReply().getContext());\n switch (rc) {\n case CacheException.OUT_OF_DATE:\n /* Pool manager asked for a\n * refresh of the request.\n * Retry right away.\n */\n retry(task, 0);\n break;\n case CacheException.FILE_NOT_IN_REPOSITORY:\n case CacheException.PERMISSION_DENIED:\n fail(task, rc, error.toString());\n break;\n default:\n /* Ideally we would delegate the retry to the door,\n * but for the time being the retry is dealed with\n * by pin manager.\n */\n retry(task, RETRY_DELAY);\n break;\n }\n }",
"public boolean failOnError() {\n return failOnError;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"public void setErrors(boolean value) {\r\n this.errors = value;\r\n }",
"public void setFailFast (boolean failFast) {\n this.failFast = failFast;\n }",
"public void setStreamFailed(java.lang.Integer value) {\n this.stream_failed = value;\n }",
"@Override\r\n\t\t\t\t\tpublic void failed(String message) {\n\r\n\t\t\t\t\t}",
"public Builder setFailures(int value) {\n\n failures_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"public void onFailure();",
"@Override\n boolean canFail() {\n return true;\n }",
"@Override\n public void onFailure(Rule rule, Exception e) {\n RulesContext.put(\"status\", \"failed\");\n RulesContext.put(\"message\", this.getClass().getCanonicalName() + \" \" + e.getCause().getMessage());\n\n }",
"public void downloadFailed(Throwable t);",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public void httpfailure(String errmsg) {\n\t\t\n\t}",
"public void setTradeFail(Integer tradeFail) {\n this.tradeFail = tradeFail;\n }",
"Object getFailonerror();",
"Object getFailonerror();",
"public void setSkipFail(final Boolean skipFail) {\r\n\t\tthis.skipFail = skipFail;\r\n\t}"
] | [
"0.7765001",
"0.7530788",
"0.74944025",
"0.7169759",
"0.7125129",
"0.7112869",
"0.7064633",
"0.7034966",
"0.69863254",
"0.6869842",
"0.6857609",
"0.67743284",
"0.67646474",
"0.6763682",
"0.66651875",
"0.66628796",
"0.6660654",
"0.6616423",
"0.6599805",
"0.6594666",
"0.65605843",
"0.6495354",
"0.6480895",
"0.64795774",
"0.64532495",
"0.644752",
"0.64447594",
"0.6429842",
"0.6415065",
"0.6413684",
"0.6413684",
"0.6393472",
"0.6388983",
"0.6347178",
"0.6335412",
"0.632896",
"0.63217217",
"0.63100994",
"0.629485",
"0.62883246",
"0.6286839",
"0.6255209",
"0.62382734",
"0.6232263",
"0.62293917",
"0.62249905",
"0.62135637",
"0.61572653",
"0.6153344",
"0.6146563",
"0.61374664",
"0.61359173",
"0.6111853",
"0.6105738",
"0.6100701",
"0.6099282",
"0.6097439",
"0.6090645",
"0.6082843",
"0.6080905",
"0.608055",
"0.60764366",
"0.6059843",
"0.6059843",
"0.6049109",
"0.6047404",
"0.6040164",
"0.6035657",
"0.6033944",
"0.6028827",
"0.6022913",
"0.6007428",
"0.5986453",
"0.5985212",
"0.597776",
"0.5973384",
"0.59676147",
"0.5965752",
"0.59644526",
"0.5953426",
"0.59523046",
"0.59493166",
"0.59422356",
"0.59422356",
"0.59422356",
"0.59404546",
"0.5918398",
"0.59143037",
"0.5904177",
"0.5889744",
"0.58731383",
"0.5861565",
"0.5858739",
"0.58506334",
"0.58498305",
"0.5845334",
"0.5837423",
"0.5830865",
"0.5830865",
"0.582561"
] | 0.70192546 | 8 |
TODO Autogenerated method stub | @Override
protected ActiveAreaPresenter createPresenter() {
return new ActiveAreaPresenter(this);
} | {
"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 |
private String MyString; //in its self protected String lotsOfString; // in certain places public String lastString; //in all String anotherString; // is defualt promissions | public static void main(String[] args) {
Dog dog = new Dog(true, true, "big");
System.out.println(" ");
Kat kat = new Kat(true, 2,true, 123, true, true, "yes");
// System.out.println(dog.makeSound() + kat.makeSound());
System.out.println(kat.catYears());
System.out.println(dog.dogYears());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getMyString() {\n return myString;\n }",
"private Strings()\n\t{\n\t}",
"private Strings()\n\t{\n\t}",
"public abstract String getString();",
"public abstract String getString();",
"public LitteralString() \n\t{\n\t\tthis(\"Chaine Litterale\");\n\t\t// TODO Auto-generated constructor stub\n\t}",
"private String getSomePrivateInfo() {\r\n \treturn \"private information of MySubject\";\r\n }",
"abstract String moodString();",
"public static void stringImportantMethods() {\n String s = \"Hello world\";\n\n //length is 0\n System.out.println(s.length());\n\n }",
"public void setMyString(String myStringIn) {\n myString = myStringIn;\n }",
"public String getADD_STRING1_PROTECTED() {\r\n return ADD_STRING1_PROTECTED;\r\n }",
"public String getADD_STRING1_PROTECTED() {\r\n return ADD_STRING1_PROTECTED;\r\n }",
"public static void main(String[] args){\n java.lang.String myString = \"This is a string\";\n System.out.println(myString);\n myString = myString + \", and this is more.\";\n System.out.println(myString);\n\n int myInt = 50;\n String lastString = \"10\";\n lastString = lastString + myInt;\n System.out.println(\"Last String is = \" + lastString);\n\n /*Strings are immutable i.e. you can't change the value of string once it's created.\n * Java automatically create a new string with the value of old string and some new string.\n * And, java delete the old string variable from memory.\n * String is class not a data type in class.*/\n\n\n\n\n }",
"PTString() \n {\n _str = \"\";\n }",
"public String getADD_STRING2_PROTECTED() {\r\n return ADD_STRING2_PROTECTED;\r\n }",
"public String getADD_STRING2_PROTECTED() {\r\n return ADD_STRING2_PROTECTED;\r\n }",
"public String getADD_STRING3_PROTECTED() {\r\n return ADD_STRING3_PROTECTED;\r\n }",
"public String getADD_STRING3_PROTECTED() {\r\n return ADD_STRING3_PROTECTED;\r\n }",
"public void setString(String newString) {\n\tstring = newString;\n }",
"public static void main(String[] args) {\n// System.out.println(Parent2.str);//public static String str = \"hello world\";\n\n// hello world\n System.out.println(Parent2.a);//public static final String str = \"hello world\";\n }",
"public String getADD_STRING9_PROTECTED() {\r\n return ADD_STRING9_PROTECTED;\r\n }",
"public String getADD_STRING9_PROTECTED() {\r\n return ADD_STRING9_PROTECTED;\r\n }",
"public String getADD_STRING14_PROTECTED() {\r\n return ADD_STRING14_PROTECTED;\r\n }",
"public String getADD_STRING14_PROTECTED() {\r\n return ADD_STRING14_PROTECTED;\r\n }",
"abstract String mo1747a(String str);",
"private StringUtilities() {\n // nothing to do\n }",
"private Strings() {\n }",
"public void setADD_STRING1_PROTECTED(String ADD_STRING1_PROTECTED) {\r\n this.ADD_STRING1_PROTECTED = ADD_STRING1_PROTECTED == null ? null : ADD_STRING1_PROTECTED.trim();\r\n }",
"public void setADD_STRING1_PROTECTED(String ADD_STRING1_PROTECTED) {\r\n this.ADD_STRING1_PROTECTED = ADD_STRING1_PROTECTED == null ? null : ADD_STRING1_PROTECTED.trim();\r\n }",
"public String getADD_STRING13_PROTECTED() {\r\n return ADD_STRING13_PROTECTED;\r\n }",
"public String getADD_STRING13_PROTECTED() {\r\n return ADD_STRING13_PROTECTED;\r\n }",
"private SingletonClass()\n {\n s = \"Hello I am a string part of Singleton class\";\n }",
"public abstract String read_string();",
"public void setString(String string) {\n this.string = string;\n }",
"public String getADD_STRING5_PROTECTED() {\r\n return ADD_STRING5_PROTECTED;\r\n }",
"public String getADD_STRING5_PROTECTED() {\r\n return ADD_STRING5_PROTECTED;\r\n }",
"public abstract String generateStorageString();",
"public interface My_String { \n\n // We'll skip this creator operation for now\n /** @param b a boolean value\n * @return string representation of b, either \"true\" or \"false\" */\n public static My_String valueOf(boolean b) {\n return new FastMyString(true);\n }\n\n /** @return number of characters in this string */\n public int length();\n\n /** @param i character position (requires 0 <= i < string length)\n * @return character at position i */\n public char charAt(int i);\n\n /** Get the substring between start (inclusive) and end (exclusive).\n * @param start starting index\n * @param end ending index. Requires 0 <= start <= end <= string length.\n * @return string consisting of charAt(start)...charAt(end-1) */\n public My_String substring(int start, int end);\n}",
"public String getADD_STRING10_PROTECTED() {\r\n return ADD_STRING10_PROTECTED;\r\n }",
"public String getADD_STRING10_PROTECTED() {\r\n return ADD_STRING10_PROTECTED;\r\n }",
"public void setADD_STRING2_PROTECTED(String ADD_STRING2_PROTECTED) {\r\n this.ADD_STRING2_PROTECTED = ADD_STRING2_PROTECTED == null ? null : ADD_STRING2_PROTECTED.trim();\r\n }",
"public void setADD_STRING2_PROTECTED(String ADD_STRING2_PROTECTED) {\r\n this.ADD_STRING2_PROTECTED = ADD_STRING2_PROTECTED == null ? null : ADD_STRING2_PROTECTED.trim();\r\n }",
"public String getADD_STRING8_PROTECTED() {\r\n return ADD_STRING8_PROTECTED;\r\n }",
"public String getADD_STRING8_PROTECTED() {\r\n return ADD_STRING8_PROTECTED;\r\n }",
"public abstract void mo70704a(String str);",
"public String getADD_STRING12_PROTECTED() {\r\n return ADD_STRING12_PROTECTED;\r\n }",
"public String getADD_STRING12_PROTECTED() {\r\n return ADD_STRING12_PROTECTED;\r\n }",
"public String getADD_STRING7_PROTECTED() {\r\n return ADD_STRING7_PROTECTED;\r\n }",
"public String getADD_STRING7_PROTECTED() {\r\n return ADD_STRING7_PROTECTED;\r\n }",
"private static void LessonStrings() {\n String str = \"\"; //Empty\n str = null; // string has no value\n str = \"Hello World!\"; //string has a value\n\n if(str == null || str.isEmpty()) {\n System.out.println(\"String is either empty or null!\");\n } else {\n System.out.println(\"String has a value!\");\n }\n\n // immutable - unable to be changed...\n str = \"another value\"; //this create a new string each time its assigned a new value\n\n// for(int i = 0; i <= 10; i++) {\n// str = \"New Value\" + Integer.toString(i); //new string created each time\n// System.out.println(str);\n// }\n\n // overcome string immutable issue\n// StringBuilder myStringBuilder = new StringBuilder(); //doesn't create a new string\n// for(int i=0; i <= 10; i++) {\n// myStringBuilder.append(\"new value with string builder: \").append(Integer.toString(i)).append(\"\\n\");\n// }\n//\n// System.out.println(myStringBuilder);\n\n //Strings are array of characters\n //Useful methods on strings indexOf and lastIndexOf\n String instructor = \"Bipin\";\n int firstIndex = instructor.indexOf(\"i\");\n int lastIndex = instructor.lastIndexOf(\"i\");\n\n System.out.println(firstIndex);\n System.out.println(lastIndex);\n\n //Break done a string into characters\n String sentence = \"The cat in the hat sat on a rat!\";\n// for(char c: sentence.toCharArray()) {\n// System.out.println(c);\n// }\n\n //substring to break down strings\n String partOfSentence = sentence.substring(4, 7);\n System.out.println(partOfSentence);\n\n }",
"@Before\n public void createString(){\n s1 = \"casa\";\n\ts2 = \"cassa\";\n\ts3 = \"\";\n\ts4 = \"casa\";\n }",
"public void setADD_STRING14_PROTECTED(String ADD_STRING14_PROTECTED) {\r\n this.ADD_STRING14_PROTECTED = ADD_STRING14_PROTECTED == null ? null : ADD_STRING14_PROTECTED.trim();\r\n }",
"public void setADD_STRING14_PROTECTED(String ADD_STRING14_PROTECTED) {\r\n this.ADD_STRING14_PROTECTED = ADD_STRING14_PROTECTED == null ? null : ADD_STRING14_PROTECTED.trim();\r\n }",
"public String getADD_STRING4_PROTECTED() {\r\n return ADD_STRING4_PROTECTED;\r\n }",
"public String getADD_STRING4_PROTECTED() {\r\n return ADD_STRING4_PROTECTED;\r\n }",
"void mo1935c(String str);",
"public String getMyword() {\n return myword;\n }",
"public void setWackyString(String string) {\r\n if (string == null) {\r\n throw new IllegalArgumentException(\"Input cannot be null.\");\r\n }\r\n this.string = string;\r\n }",
"public String getADD_STRING11_PROTECTED() {\r\n return ADD_STRING11_PROTECTED;\r\n }",
"public String getADD_STRING11_PROTECTED() {\r\n return ADD_STRING11_PROTECTED;\r\n }",
"public void setADD_STRING3_PROTECTED(String ADD_STRING3_PROTECTED) {\r\n this.ADD_STRING3_PROTECTED = ADD_STRING3_PROTECTED == null ? null : ADD_STRING3_PROTECTED.trim();\r\n }",
"public void setADD_STRING3_PROTECTED(String ADD_STRING3_PROTECTED) {\r\n this.ADD_STRING3_PROTECTED = ADD_STRING3_PROTECTED == null ? null : ADD_STRING3_PROTECTED.trim();\r\n }",
"public GenObfuscatedString() {\n }",
"public void setADD_STRING9_PROTECTED(String ADD_STRING9_PROTECTED) {\r\n this.ADD_STRING9_PROTECTED = ADD_STRING9_PROTECTED == null ? null : ADD_STRING9_PROTECTED.trim();\r\n }",
"public void setADD_STRING9_PROTECTED(String ADD_STRING9_PROTECTED) {\r\n this.ADD_STRING9_PROTECTED = ADD_STRING9_PROTECTED == null ? null : ADD_STRING9_PROTECTED.trim();\r\n }",
"public void testing() {\n\t\tprotectedInstanceVariable = \"\";\n\t}",
"public String getADD_STRING6_PROTECTED() {\r\n return ADD_STRING6_PROTECTED;\r\n }",
"public String getADD_STRING6_PROTECTED() {\r\n return ADD_STRING6_PROTECTED;\r\n }",
"public String getADD_STRING15_PROTECTED() {\r\n return ADD_STRING15_PROTECTED;\r\n }",
"public String getADD_STRING15_PROTECTED() {\r\n return ADD_STRING15_PROTECTED;\r\n }",
"public abstract String mo24851a(String str);",
"private void add(String thestring) {\n\t\t\n\t}",
"FPNode_Strings(){\r\n\t\t\r\n\t}",
"public void setADD_STRING12_PROTECTED(String ADD_STRING12_PROTECTED) {\r\n this.ADD_STRING12_PROTECTED = ADD_STRING12_PROTECTED == null ? null : ADD_STRING12_PROTECTED.trim();\r\n }",
"public void setADD_STRING12_PROTECTED(String ADD_STRING12_PROTECTED) {\r\n this.ADD_STRING12_PROTECTED = ADD_STRING12_PROTECTED == null ? null : ADD_STRING12_PROTECTED.trim();\r\n }",
"public abstract void mo20160a(String str);",
"public StringContent(String newString)\n {\n content=newString;\n }",
"public Athlete()\r\n{\r\n this.def = \"An athlete is said to be running when he/she is accelerating in a certain direction during which his legs and the rest of his body are moving\";\r\n}",
"String getString();",
"String getString();",
"String getString();",
"public StringData1() {\n }",
"void mo41089d(String str);",
"public String string() {\n\treturn string;\n }",
"public void setName(String newName) { throw new NotImplementedException(\"Variable names are final!\"); }",
"@Test\n public void verifyStringFunctions(){\n realDie1 = new Dice();\n realPlayer = new Player(\"aaa\",100);\n System.out.println(realPlayer.toString()); //All good\n System.out.println(realDie1.toString()); //all good\n }",
"public void setADD_STRING5_PROTECTED(String ADD_STRING5_PROTECTED) {\r\n this.ADD_STRING5_PROTECTED = ADD_STRING5_PROTECTED == null ? null : ADD_STRING5_PROTECTED.trim();\r\n }",
"public void setADD_STRING5_PROTECTED(String ADD_STRING5_PROTECTED) {\r\n this.ADD_STRING5_PROTECTED = ADD_STRING5_PROTECTED == null ? null : ADD_STRING5_PROTECTED.trim();\r\n }",
"public interface IStrings {\n\n\t/**\n\t * The name of the application, as it appears on the title of the window\n\t * \n\t * @return the name of the application\n\t */\n\tpublic String getAppName();\n\n\t/**\n\t * If the application name should have a definite article when used in\n\t * sentences, this should be it, uncapitalised and with a trailing space if\n\t * one is appropriate.\n\t * \n\t * @return \"the \" or \"\".\n\t */\n\tpublic String getAppNameArticle();\n\n\t/**\n\t * The short form of the application name, for system tray stuff\n\t * \n\t * @return the short form of the application name\n\t */\n\tpublic String getShortAppName();\n\n\t/**\n\t * The name of the application in a form suitable for putting into paths\n\t * \n\t * @return the name of the application in a form for putting into paths\n\t */\n\tpublic String getAppPathname();\n\n\t/**\n\t * The explanation on how files to be saved should be named\n\t * \n\t * @return the explanation on how files to be saved should be named\n\t */\n\tpublic String getFileNamingDetails();\n\n\t/**\n\t * The list of names that appear in the open file dialogue describing the\n\t * file types to open\n\t * \n\t * @return an array containing the descriptions of the file types the user\n\t * can select\n\t */\n\tpublic String[] getOpenDialogueFilterNames();\n\n\t/**\n\t * The file extensions that the file dialogue will match. Must correspond to\n\t * the descriptions returned by {@link #getOpenDialogueFilterNames()}. e.g.\n\t * '*.emp'\n\t * \n\t * @return the file extensions that the file dialogue will match\n\t */\n\tpublic String[] getOpenDialogueFilterExtensions();\n\n\t/**\n\t * The description presented to the user regarding automatically opening\n\t * files.\n\t * \n\t * @return the description presented to the user regarding automatically\n\t * opening files\n\t */\n\tpublic String getPrefsAutoLoadDescription();\n\n\t/**\n\t * The text to be shown in the 'about' dialogue\n\t * \n\t * @return the text to be shown in the 'about' dialogue\n\t */\n\tpublic String getAboutBoxText();\n\n\t/**\n\t * The default naming pattern for saving files\n\t * \n\t * @return the default naming pattern for saving files\n\t */\n\tpublic String getDefaultFilePattern();\n\n\t/**\n\t * This provides the base name for the XML node that stores the download\n\t * state of the application.\n\t * \n\t * @return the XML node name for the download state\n\t */\n\tpublic String getXMLBaseNodeName();\n\n\t/**\n\t * The version of the application.\n\t * \n\t * @return the version of the application\n\t */\n\tpublic String getVersion();\n\n\t/**\n\t * This provides the base name (without extension) for cover art files\n\t * \n\t * @return the base name for cover art files\n\t */\n\tpublic String getCoverArtName();\n\n\t/**\n\t * \"Automatically check for updates to this program\"\n\t */\n\tpublic String prefsAutomaticallyCheck();\n\n\t/**\n\t * \"Files\"\n\t */\n\tpublic String prefsFilesGroupTitle();\n\n\t/**\n\t * \"Downloads\"\n\t */\n\tpublic String prefsDownloadsGroupTitle();\n\n\t/**\n\t * The string shown when the maximum number of failures has been reached.\n\t * This can include <A> elements, which when clicked will open the\n\t * browser to the customer support URL.\n\t */\n\tpublic String dlMaxFailures();\n\n\t/**\n\t * The message displayed when there is a network connection issue. Including\n\t * '\\uFFFC' in the text will cause the resume icon to be included at that\n\t * point.\n\t */\n\tpublic String networkFailureMessage();\n\n\t/**\n\t * \"Preferred number of downloads at once\"\n\t */\n\tpublic String prefsConcurrentDownloads();\n}",
"public abstract void mo4373a(String str);",
"@Override\n\tpublic void setExtraData(String arg0) {\n\n\t}",
"public StringSet() {\r\n\t\tsuper();\r\n\t}",
"protected String myString(){\n \treturn( \"gate \" + name ); \n }",
"@Test\n\tpublic void prototype() {\n\t\tassertEquals(parseString().parse(\"abc\").toString(), \"abc\");\n\t\tassertEquals(parseString().parse(\"asDSD2_ff\").toString(), \"asDSD2_ff\");\n\n\t}",
"public abstract void loge(String str);",
"public void setADD_STRING10_PROTECTED(String ADD_STRING10_PROTECTED) {\r\n this.ADD_STRING10_PROTECTED = ADD_STRING10_PROTECTED == null ? null : ADD_STRING10_PROTECTED.trim();\r\n }",
"public void setADD_STRING10_PROTECTED(String ADD_STRING10_PROTECTED) {\r\n this.ADD_STRING10_PROTECTED = ADD_STRING10_PROTECTED == null ? null : ADD_STRING10_PROTECTED.trim();\r\n }",
"private ARXOrderedString(){\r\n this(\"Default\");\r\n }",
"public AbstractLocalisationBasePurString() {\t\t\r\n\t\tthis(null, null, null, null);\t\t\r\n\t}",
"public void setOwnerString(String s) {\n ownerString = s;\r\n }",
"public String getString();"
] | [
"0.5899474",
"0.57501847",
"0.57501847",
"0.56561816",
"0.56561816",
"0.56316996",
"0.5621802",
"0.5545958",
"0.55370355",
"0.5478369",
"0.54757726",
"0.54757726",
"0.544867",
"0.5402428",
"0.53381157",
"0.53381157",
"0.5334",
"0.5334",
"0.53285706",
"0.532716",
"0.53261054",
"0.53261054",
"0.5315417",
"0.5315417",
"0.5278449",
"0.5266225",
"0.52557164",
"0.523983",
"0.523983",
"0.5224323",
"0.5224323",
"0.52209353",
"0.519304",
"0.5187225",
"0.51809365",
"0.51809365",
"0.51508427",
"0.51408255",
"0.51364535",
"0.51364535",
"0.51123047",
"0.51123047",
"0.51068157",
"0.51068157",
"0.5099654",
"0.5094659",
"0.5094659",
"0.50890625",
"0.50890625",
"0.50730306",
"0.5072022",
"0.5058902",
"0.5058902",
"0.5053678",
"0.5053678",
"0.5045613",
"0.5044889",
"0.5027199",
"0.5011982",
"0.5011982",
"0.49944708",
"0.49944708",
"0.4992883",
"0.49906272",
"0.49906272",
"0.49892372",
"0.49874327",
"0.49874327",
"0.4986078",
"0.4986078",
"0.49620593",
"0.49590918",
"0.49588922",
"0.49578303",
"0.49578303",
"0.49568576",
"0.49517402",
"0.4949668",
"0.49414754",
"0.49414754",
"0.49414754",
"0.4938398",
"0.4937932",
"0.49347395",
"0.492993",
"0.49295458",
"0.49239329",
"0.49239329",
"0.49230608",
"0.4904367",
"0.49039748",
"0.49029508",
"0.48981348",
"0.48952085",
"0.48890555",
"0.4886456",
"0.4886456",
"0.48860997",
"0.48847142",
"0.48846793",
"0.4872766"
] | 0.0 | -1 |
Get captured `from` argument. | public Optional<Tag> capturedFrom() {
return this.from.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public V getFrom()\n\t{\n\t\treturn from;\n\t}",
"public long getFrom() {\n return from_;\n }",
"public int getFrom() {\n return from_;\n }",
"public long getFrom() {\n return from_;\n }",
"Object getFrom();",
"public String getFrom() {\n return from;\n }",
"public String getFrom() {\n return from;\n }",
"public int getFrom() {\n return from_;\n }",
"public String getFrom() {\n return from;\n }",
"public String getFrom() {\n\t\treturn from;\n\t}",
"public String getFrom() {\r\n\t\treturn from;\r\n\t}",
"public String getFrom()\r\n {\r\n return from;\r\n }",
"public int getFrom() {\n return from;\n }",
"public int getFrom() {\n return (from);\n }",
"public String getFrom() {\n\n\t\treturn from;\n\n\t}",
"public Integer getFrom() {\n return from;\n }",
"public int from() {\n return from;\n }",
"public String getFrom(){\r\n\t\treturn from;\r\n\t}",
"String getFrom();",
"String getFrom();",
"String getFrom();",
"String getFrom();",
"public int from() {\n return this.from;\n }",
"int getFrom();",
"public String getFrom() {\n Object ref = from_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n from_ = s;\n return s;\n }\n }",
"public String getFrom() {\n Object ref = from_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n from_ = s;\n return s;\n }\n }",
"java.lang.String getArg();",
"public String getFrom() {\n Object ref = from_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n from_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getFrom() {\n Object ref = from_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n from_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Report.LocationOuterClass.Location.FromType getFrom() {\n Report.LocationOuterClass.Location.FromType result = Report.LocationOuterClass.Location.FromType.valueOf(from_);\n return result == null ? Report.LocationOuterClass.Location.FromType.UNRECOGNIZED : result;\n }",
"public Node getFrom() {\n return from;\n }",
"long getFrom();",
"public int getFromValue() {\n return from_;\n }",
"public Report.LocationOuterClass.Location.FromType getFrom() {\n Report.LocationOuterClass.Location.FromType result = Report.LocationOuterClass.Location.FromType.valueOf(from_);\n return result == null ? Report.LocationOuterClass.Location.FromType.UNRECOGNIZED : result;\n }",
"public Square getFrom() {\n return from;\n }",
"public FromHeader getFrom() {\n return (FromHeader) fromHeader;\n }",
"public int getFromValue() {\n return from_;\n }",
"public XPath getFrom()\n {\n return m_fromMatchPattern;\n }",
"public short getCalledFrom() {\r\n return calledFrom;\r\n }",
"public Object getArgument() {\n return mArgument;\n }",
"public Vertex getFrom() {\r\n\r\n return from;\r\n }",
"public java.lang.String getArg() {\n\t\t\tjava.lang.Object ref = arg_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\treturn (java.lang.String) ref;\n\t\t\t} else {\n\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\targ_ = s;\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}",
"@JsonGetter(\"from\")\r\n public String getFrom() {\r\n return from;\r\n }",
"public Vertex<VV> getFrom()\r\n { return from; }",
"public Integer getFromId() {\n return fromId;\n }",
"@JsonProperty(\"from\")\n public String getFrom() {\n return from;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getArgumentSource();",
"public String getFromTag() {\n return fromHeader == null? null: fromHeader.getTag();\n }",
"public BaseNode getArgument()\r\n\t{\r\n\t\treturn _argument;\r\n\t}",
"private String findFrom(String from) {\n\t\tPattern UNIT = Pattern.compile(\"^\\\\w+.\\\\w+(?=\\\\ )\"); // Match two words\n\t\tMatcher m = UNIT.matcher(from);\n\t\twhile (m.find()) {\n\t\t\tfrom = m.group(0);\n\t\t}\n\t\treturn from;\n\t}",
"public java.lang.String getArg() {\n\t\t\t\tjava.lang.Object ref = arg_;\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\targ_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t} else {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t}\n\t\t\t}",
"OclExpression getArgument();",
"public Slot getSlotFrom() {\n return slotFrom;\n }",
"protected Date getFromDate() {\n\t\treturn from;\n\t}",
"protected final int from() {\n if (from >= 0) {\n int result = from;\n from = -1;\n return result;\n }\n assert lastTo >= 0 : \"There hasn't been a last operation so we can't default to its destination!\";\n return lastTo;\n }",
"public void setFrom(String from) {\n this.from = from;\n }",
"public String getFromUser(){\r\n\t\treturn fromUser;\r\n\t}",
"FunctionArgument getRef();",
"public void setFrom(String from) {\r\n\t\tthis.from= from;\r\n\t}",
"public String getFromSenderName() {\n return fromSenderName;\n }",
"public ProgramExp getArgument() {\n return argument;\n }",
"public Block getFrom() {\n\t\t\treturn Block.getBlockById(fromId);\n\t\t}",
"long getValidFrom();",
"public com.google.protobuf.ByteString\n\t\tgetArgBytes() {\n\t\t\tjava.lang.Object ref = arg_;\n\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\tcom.google.protobuf.ByteString b =\n\t\t\t\t\t\tcom.google.protobuf.ByteString.copyFromUtf8(\n\t\t\t\t\t\t\t\t(java.lang.String) ref);\n\t\t\t\targ_ = b;\n\t\t\t\treturn b;\n\t\t\t} else {\n\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t}\n\t\t}",
"public ScheduleFrom getScheduleFrom()\r\n {\r\n return (m_scheduleFrom);\r\n }",
"private void setFrom (int from) {\n this.from = from;\n }",
"com.google.protobuf.ByteString\n\t\tgetArgBytes();",
"public String getAcquiredFrom() {\n\t\treturn acquiredFrom;\n\t}",
"public com.google.protobuf.ByteString\n\t\t\tgetArgBytes() {\n\t\t\t\tjava.lang.Object ref = arg_;\n\t\t\t\tif (ref instanceof String) {\n\t\t\t\t\tcom.google.protobuf.ByteString b =\n\t\t\t\t\t\t\tcom.google.protobuf.ByteString.copyFromUtf8(\n\t\t\t\t\t\t\t\t\t(java.lang.String) ref);\n\t\t\t\t\targ_ = b;\n\t\t\t\t\treturn b;\n\t\t\t\t} else {\n\t\t\t\t\treturn (com.google.protobuf.ByteString) ref;\n\t\t\t\t}\n\t\t\t}",
"public byte[] getArgument() {\n return argument;\n }",
"public void setFrom(int from) {\n this.from = from;\n }",
"@Nullable\n public Argument getArgument() {\n return argument;\n }",
"public Number getQtyFrom() {\n return (Number)getAttributeInternal(QTYFROM);\n }",
"public String getFromJID() {\n\t\treturn fromJID;\n\t}",
"@Override\n public int getArgent() {\n return _argent;\n }",
"public synchronized int getBuildFrom()\n {\n return buildFrom;\n }",
"public String getcardnumfrom() {\n return (String) getAttributeInternal(CARDNUMFROM);\n }",
"private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }",
"String getSender();",
"public MailboxList getFrom() {\n return getMailboxList(FieldName.FROM);\n }",
"public void setFrom(Integer from) {\n this.from = from;\n }",
"private javax.persistence.criteria.Selection<?> getCriteriaSelection(Selection selection, Root<?> from) {\n Field selectedField = (Field) selection;\n GraphQLAttributeMetadata attributeMetadata = metadata.getAttribute(selectedField.getName());\n\n return from.get(attributeMetadata.getName());\n }",
"Report.LocationOuterClass.Location.FromType getFrom();",
"public String getPortsFrom() {\n return portsFrom.getText();\n }",
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"public JID getFromJID() {\n return fromJID;\n }",
"@JSProperty(\"from\")\n double getFrom();",
"int getTo();",
"private final ExprOrOpArgNode getArg(SymbolNode param) {\n AnyDefNode opDef = (AnyDefNode)this.operator;\n FormalParamNode[] formals = opDef.getParams();\n for (int i = 0; i < this.operands.length; i++) {\n if (formals[i] == param) {\n return this.operands[i];\n }\n }\n return null;\n }",
"public String getArgumentLine() {\n return \"\";\n }",
"@JsonProperty(\"from\")\n public void setFrom(String from) {\n this.from = from;\n }",
"public final Self from(int from) {\n this.from = from;\n return self();\n }",
"Argument createArgument();",
"ShippingPointStructure getShipFrom();",
"public String getFromUnit() {\r\n return this.fromUnit;\r\n }",
"public User getFromUser() {\r\n Long __key = this.from;\r\n if (fromUser__resolvedKey == null || !fromUser__resolvedKey.equals(__key)) {\r\n if (daoSession == null) {\r\n throw new DaoException(\"Entity is detached from DAO context\");\r\n }\r\n UserDao targetDao = daoSession.getUserDao();\r\n User fromUserNew = targetDao.load(__key);\r\n synchronized (this) {\r\n fromUser = fromUserNew;\r\n \tfromUser__resolvedKey = __key;\r\n }\r\n }\r\n return fromUser;\r\n }",
"public long getPhoneFrom() {\r\n return phoneFrom;\r\n }",
"public T caseFrom(From object) {\n\t\treturn null;\n\t}",
"public JTextField getTo() {\n\t\treturn to;\n\t}",
"public RefLimit getStartFrom() {\n\t\treturn startFrom;\n\t}"
] | [
"0.6558771",
"0.63965213",
"0.63472515",
"0.6318182",
"0.6317612",
"0.6308761",
"0.6285123",
"0.62261146",
"0.62238413",
"0.6223348",
"0.6219418",
"0.620324",
"0.6165973",
"0.61544794",
"0.61528146",
"0.61459005",
"0.613964",
"0.6115008",
"0.5993",
"0.5993",
"0.5993",
"0.5993",
"0.585562",
"0.5852003",
"0.5790898",
"0.5788363",
"0.5613808",
"0.5613559",
"0.5613559",
"0.55675626",
"0.5552043",
"0.55465055",
"0.55201375",
"0.551305",
"0.5495126",
"0.54548764",
"0.54249966",
"0.53471965",
"0.5305663",
"0.52910185",
"0.52366716",
"0.5229729",
"0.52274483",
"0.52267075",
"0.5168571",
"0.5140524",
"0.5130618",
"0.5118604",
"0.50609577",
"0.50564516",
"0.50525546",
"0.50450057",
"0.5031758",
"0.5001246",
"0.49978712",
"0.49291405",
"0.49089715",
"0.49019125",
"0.48834544",
"0.4852813",
"0.48167664",
"0.48068428",
"0.47977576",
"0.47822663",
"0.47576135",
"0.47516918",
"0.47422066",
"0.471761",
"0.4699167",
"0.46941158",
"0.4690097",
"0.46751845",
"0.46642992",
"0.4661882",
"0.4658331",
"0.46297938",
"0.46163252",
"0.46039772",
"0.46006796",
"0.4586203",
"0.45819977",
"0.45807856",
"0.45484716",
"0.45460117",
"0.45273426",
"0.4522604",
"0.45099762",
"0.45090887",
"0.4501143",
"0.44874573",
"0.4479618",
"0.44777256",
"0.44605532",
"0.44594726",
"0.4448915",
"0.44383255",
"0.44368598",
"0.44314647",
"0.44152853",
"0.4414974"
] | 0.66974616 | 0 |
Get captured `limit` argument. | public int capturedLimit() {
return this.limit.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getLimit();",
"int getLimit();",
"public long limit();",
"public Integer getLimit() {\n return limit;\n }",
"public int getLimit() {\r\n return limit;\r\n }",
"public int getLimit() {\n return limit;\n }",
"public String getLimit() {\r\n\t\treturn this.limit;\r\n\t}",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\n return limit;\n }",
"public Long getLimit() {\n return this.limit;\n }",
"public int getLimit() {\n\t\treturn limit;\n\t}",
"public int getLimit() {\n\t\treturn limit;\n\t}",
"String getLimit(boolean hasWhereClause, long limit);",
"public int getLimitNum() {\r\n return this.limitNum;\r\n }",
"public Long getLimit() {\n return this.Limit;\n }",
"public Long getLimit() {\n return this.Limit;\n }",
"public int getLimit() {\n\t\t\treturn limit;\n\t\t}",
"public int getLimit(){\r\n return limit;\r\n\r\n }",
"public abstract int getMaximumArguments();",
"private int getCurrentLimit(){\n\t\treturn this.LIMIT;\n\t}",
"public int getLimit() {\n\treturn Limit;\n }",
"public double getLimit() {return limit;}",
"public Double getLimit() {\n return limit;\n }",
"public Integer getLimitnumber() {\n return limitnumber;\n }",
"protected Limit getLimit() {\n return new Limit(skip, limit);\n }",
"@SuppressWarnings(\"unchecked\")\n public Q limit(int limit) {\n this.limit = limit;\n return (Q) this;\n }",
"public float getLimit() {\n return limit;\n }",
"@Deprecated\n public static int getLimit() {\n return LIMIT;\n }",
"public ListConsole limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public Integer getLimitEnd() {\r\n return limitEnd;\r\n }",
"public int getLimitEnd() {\n return limitEnd;\n }",
"public int getLimitEnd() {\n return limitEnd;\n }",
"public Integer getLimitStart() {\r\n return limitStart;\r\n }",
"public int getLimitStart() {\n return limitStart;\n }",
"public int getLimitStart() {\n return limitStart;\n }",
"public int getLimitStart() {\n return limitStart;\n }",
"public final Term dereference (int limit) {\n return dereference(0, limit);\n }",
"public java.math.BigInteger getLimit()\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(LIMIT$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }",
"public void setLimit(Integer limit) {\n this.limit = limit;\n }",
"Limit createLimit();",
"public SearchBuilder<T> limit(final int limit) {\n\t\treturn take(limit);\n\t}",
"abstract public int maxArgs();",
"public void setLimit(Long limit) {\n this.limit = limit;\n }",
"public com.google.protobuf.Int32Value getLimit() {\n return instance.getLimit();\n }",
"public String getLimit_Base();",
"private static int determineResultLimit(CommandLine optionLine)\n {\n String limit = optionLine.getOptionValue(Environment.LIMIT);\n if (StringUtils.isEmpty(limit)) {\n return -1;\n }\n return Integer.parseInt(limit);\n }",
"public void setLimit(int limit) {\n this.limit = limit;\n }",
"public void setLimit(int limit) {\n this.limit = limit;\n }",
"public void setLimit(int limit) {\n this.limit=limit;\n }",
"public synchronized double saveAndSetOutputLimit(double limit)\n {\n final String funcName = \"saveAndSetOutputLimit\";\n double prevLimit = outputLimit;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API, \"limit=%f\", limit);\n }\n\n outputLimitStack.push(outputLimit);\n setOutputLimit(limit);\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", prevLimit);\n }\n\n return prevLimit;\n }",
"public ListBuild limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public void setLimit(int limit) {\n\t\tthis.limit = limit;\n\t}",
"String getLimitOffsetVar(String var, boolean hasWhereClause, long limit, long offset);",
"public ListProxy limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public synchronized double getOutputLimit()\n {\n final String funcName = \"getOutputLimit\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", outputLimit);\n }\n\n return outputLimit;\n }",
"public int getFrameLimit() {\n\t\treturn frameLimit;\n\t}",
"public SearchBuilder<T> take(final int limit) {\n\t\tthis.limit = limit;\n\t\treturn this;\n\t}",
"String getLimitOffset(boolean hasWhereClause, long limit, long offset);",
"public LimitBuilder limit() {\n return memory.limit();\n }",
"public void setLimit(int limit) {\n\tLimit = limit;\n }",
"public org.apache.xmlbeans.XmlNonNegativeInteger xgetLimit()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNonNegativeInteger target = null;\r\n target = (org.apache.xmlbeans.XmlNonNegativeInteger)get_store().find_element_user(LIMIT$6, 0);\r\n return target;\r\n }\r\n }",
"public com.google.protobuf.Int32Value getLimit() {\n return limit_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : limit_;\n }",
"public Byte getSourcelimit() {\n return sourcelimit;\n }",
"public synchronized double restoreOutputLimit()\n {\n final String funcName = \"restoreOutputLimit\";\n double limit;\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n try\n {\n limit = outputLimitStack.pop();\n setOutputRange(-limit, limit);\n }\n catch (EmptyStackException e)\n {\n //\n // There was no previous saveAndSetOutputLimit call, don't do anything and just return the current\n // output limit.\n //\n limit = outputLimit;\n }\n\n if (debugEnabled)\n {\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", limit);\n }\n\n return limit;\n }",
"public ListInfrastructure limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public int getMaxCalls();",
"public void setLimit(Long Limit) {\n this.Limit = Limit;\n }",
"public void setLimit(Long Limit) {\n this.Limit = Limit;\n }",
"public ListOAuth limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"void setLimit(int limit);",
"public ListOperatorHub limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public void setLimit(double limit) {\n\t\tthis.limit = limit;\n\t }",
"public ListNamespacedComponent limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public Builder limit(long limit) {\n this.limit = limit;\n return this;\n }",
"WebPage limit(int limit);",
"public DeleteCollectionConsole limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public int getLimitClauseStart() {\n return limitClauseStart;\n }",
"public int getLimitClauseStart() {\n return limitClauseStart;\n }",
"public FoursquarePathBuilder setLimit(Integer limit) {\n String limits = limit.toString();\n addParameter(\"limit\", limits);\n return this;\n }",
"public int getSizeLimit() {\n\t\treturn sizeLimit;\n\t}",
"public T caseLimit(Limit object) {\r\n\t\treturn null;\r\n\t}",
"public String getUpperLimit() {\n return upperLimit;\n }",
"public ListFeatureGate limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public int getEventLimit() {\n return eventLimit;\n }",
"@Deprecated\n public V1beta1LimitResponse getLimitResponse() {\n return this.limitResponse!=null ?this.limitResponse.build():null;\n }",
"public long getTimeLimit() {\n\t\treturn timeLimit;\n\t}",
"public static double calculateLimit() {\n return 500;\n }",
"public ListDNS limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public void setLimitEnd(Integer limitEnd) {\r\n this.limitEnd=limitEnd;\r\n }",
"public DeleteCollectionProxy limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"long getMemLimit();",
"public Integer findMaxSatisfaction(Integer timelimit) {\n\t\treturn satisfactionAnalyzer.findMaxSatisfaction(timelimit);\n\t}",
"public ListImage limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public Long getFlowLimit() {\r\n \treturn flowLimit;\r\n }",
"public Long getLimitClauseStart() {\r\n\t\treturn limitClauseStart;\r\n\t}",
"public Query getTop(int limit){\n setLimit(limit);\n return this; //builder pattern allows users to chain methods\n }",
"public Integer getProjlimit() {\n return projlimit;\n }",
"String limitSubquery();",
"public RateBasedStatement withLimit(Long limit) {\n setLimit(limit);\n return this;\n }"
] | [
"0.689554",
"0.689554",
"0.68899685",
"0.6709508",
"0.6666661",
"0.66509765",
"0.6643907",
"0.6643549",
"0.6643549",
"0.6643549",
"0.6637327",
"0.65785056",
"0.65785056",
"0.6536488",
"0.64739144",
"0.64115274",
"0.64115274",
"0.64078057",
"0.6397749",
"0.6343",
"0.63079",
"0.6298506",
"0.62465125",
"0.6244649",
"0.6231165",
"0.6026142",
"0.5971366",
"0.5967927",
"0.596259",
"0.5947976",
"0.59310895",
"0.5929413",
"0.5929413",
"0.59221065",
"0.58599055",
"0.58599055",
"0.58599055",
"0.5811793",
"0.58116066",
"0.57865137",
"0.57762593",
"0.5768263",
"0.5746304",
"0.5737765",
"0.5716953",
"0.57064015",
"0.57033604",
"0.5676641",
"0.5668047",
"0.5661492",
"0.564212",
"0.563142",
"0.5623734",
"0.55995524",
"0.55879354",
"0.5559561",
"0.5549285",
"0.55455714",
"0.55288696",
"0.5484962",
"0.54762435",
"0.54673934",
"0.5460068",
"0.54589075",
"0.5448038",
"0.54312444",
"0.54280335",
"0.5399379",
"0.5399379",
"0.5395072",
"0.53891665",
"0.5357599",
"0.5349325",
"0.5346529",
"0.53361917",
"0.53311545",
"0.5308588",
"0.53069663",
"0.53069663",
"0.5301426",
"0.5294121",
"0.52620167",
"0.5238981",
"0.5236439",
"0.52025574",
"0.5183031",
"0.51790965",
"0.51763624",
"0.51740223",
"0.51686156",
"0.51666385",
"0.5159221",
"0.51555634",
"0.51332897",
"0.51202303",
"0.5120138",
"0.51175123",
"0.5117055",
"0.5104245",
"0.50985944"
] | 0.7559044 | 0 |
Methods: Getter method for the COM property "MainBody" | @DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present
@VTID(22)
Body mainBody(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(23)\n void mainBody(\n Body oMainBody);",
"Body getBody();",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"public Object getBody() {\n return body;\n }",
"public Body getBody() {\n if (jBody == null) {\n throw new RuntimeException(\"No jimplification happened yet, no body available.\");\n }\n return jBody;\n }",
"CompoundSt getBody () { return body; }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"SmilBody getBody();",
"public Body getNativeBody() {\r\n\t\treturn box2dComponent.getBody();\r\n\t}",
"public DrakonMacro getBody()\r\n {\r\n return body;\r\n }",
"public String getBody () {\n\t\treturn body;\n\t}",
"public abstract Body getBody();",
"private final native NodeRemote getBody0() /*-{\n return this.body;\n\t}-*/;",
"public Body getBody() {\n return body;\n }",
"Term getBody();",
"public String getBody() {\r\n return body;\r\n }",
"public String getBody(){\n return bodiesText;\n }",
"public java.lang.String getBody() {\n return instance.getBody();\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"public int getCellBody() {\n\t\treturn cellBody;\n\t}",
"public List<Atom> getBody ()\r\n\t{\r\n\t\treturn _body;\r\n\t}",
"public String getBody(){\n return body;\n }",
"public String getBody()\n {\n return body;\n }",
"public String getBody_() {\n return body_;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public ClassBodyNode getBody()throws ClassCastException;",
"public AgentBody getBody() {\n\t\treturn body;\n\t}",
"public PosSymbol getBodyName() {\n return bodyName;\n }",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"public org.chartacaeli.model.Body[] getBody() {\n org.chartacaeli.model.Body[] array = new org.chartacaeli.model.Body[0];\n return this.bodyList.toArray(array);\n }",
"public byte[] getBody() {\n\t\treturn body;\n\t}",
"public String getMain() {\n\t\treturn main;\n\t}",
"public UserModel getBody() {\n return localBody;\n }",
"public UserModel getBody() {\n return localBody;\n }",
"public T getMain() {\n\t\treturn this.main;\n\t}",
"public String getBody()\n {\n return super.getBody();\n }",
"public Body getBody1() {\r\n\t\treturn body1;\r\n\t}",
"java.lang.String getBody();",
"public LinkedList<Location> getBody() {\n return this.body;\n }",
"public AnimalModel getBody() {\n return localBody;\n }",
"public AnimalModel getBody() {\n return localBody;\n }",
"public JawbComponent getMainComponent () {\n return null;\n }",
"public String getTypeOfBody() {\n\t\treturn typeOfBody;\n\t}",
"DBody getBody();",
"public String getContentBody() {\n return contentBody;\n }",
"public String getBodyText() {\n return bodyText;\n }",
"public byte[] getBody() {\n return body;\n }",
"@Override\n public Object getBody() {\n return null;\n }",
"public String getBodyString() {\n return this.bodyString;\n }",
"int getOpenBodyEnd() {\n return this.fOpenBodyRange[1];\n }",
"public Polygon getBody() {\r\n\t\treturn getRotatedBody(angle);\r\n\t}",
"public JPanel getBody() {\n\t\treturn contentPane;\n\t}",
"public String getBodyLoc() {\n return bodyLoc;\n }",
"public final PB getPerceptionBody() {\n\t\treturn this.__perception_body;\n\t}",
"public Integer getTypeOfBodyCd() {\n\t\treturn typeOfBodyCd;\n\t}",
"public Body getBody2() {\r\n\t\treturn body2;\r\n\t}",
"public FRMainLayout getMainLayout() {\n\t\treturn mainLayout;\n\t}",
"OclExpressionCS getBodyExpression();",
"@Override\n\tpublic PhysixBody getRigidBody() {\n\t\treturn rigidBody;\n\t}",
"@Override\n\tpublic java.lang.String getBody() {\n\t\treturn _news_Blogs.getBody();\n\t}",
"public String getMainContent() {\n return getString(CommandProperties.MAIN_CONTENT);\n }",
"public SWIGTYPE_p_SimTK__MobilizedBody getMobilizedBody() {\n return new SWIGTYPE_p_SimTK__MobilizedBody(opensimSimulationJNI.PhysicalFrame_getMobilizedBody(swigCPtr, this), false);\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return instance.getBodyBytes();\n }",
"Bodymodtype getBodyModType();",
"final public Class<? extends com.org.multigear.mginterface.scene.Scene> getMainRoom() {\r\n\t\treturn mMainRoom;\r\n\t}",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n }\n return s;\n }\n }",
"public CodingDt getBodySite() { \n\t\tif (myBodySite == null) {\n\t\t\tmyBodySite = new CodingDt();\n\t\t}\n\t\treturn myBodySite;\n\t}",
"public final Body newBody()\n {\n Body body = newBodyImpl();\n \n //addBody(body);\n \n return ( body );\n }",
"@Override\n public EmailBody getBody(String BodyType) {\n if(BodyType == null){\n return null;\n }\n if(BodyType.equalsIgnoreCase(\"VipBody\")){\n return new VipBody();\n } else return null;\n\n }",
"public CodingDt getBodySiteElement() { \n\t\tif (myBodySite == null) {\n\t\t\tmyBodySite = new CodingDt();\n\t\t}\n\t\treturn myBodySite;\n\t}",
"org.hl7.fhir.CodeableConcept getBodySite();",
"public String getBody() {\n Object ref = body_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public Object getBody() throws MessagingException {\n if (body == null) {\n body = getMarshaler().unmarshal(exchange, this);\n }\n return body;\n }",
"@DISPID(1610940420) //= 0x60050004. The runtime will prefer the VTID if present\n @VTID(26)\n Bodies bodies();",
"@DISPID(1610940418) //= 0x60050002. The runtime will prefer the VTID if present\n @VTID(24)\n Bodies bodies();",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 (bs.isValidUtf8()) {\n body_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n }\n }",
"com.google.protobuf.ByteString\n getBodyBytes();",
"com.google.protobuf.ByteString\n getBodyBytes();",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public InputStream body() {\n return body;\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(body_);\n }",
"public MainForm getMainForm(){\n\t\treturn this.mainForm;\n\t}",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\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 body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public com.google.protobuf.ByteString\n getBodyBytes() {\n Object ref = body_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getMainClass() {\n return mainClass;\n }",
"@Override\n public String getBody() {\n Object ref = body_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\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 body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public JComponent getMainComponent() {\n\t return mainPanel;\n\t}",
"public synchronized BodyPart getBodyPart(int index) throws MessagingException {\n/* 257 */ parse();\n/* 258 */ return super.getBodyPart(index);\n/* */ }",
"public Stmt\ngetHirBody();"
] | [
"0.71160054",
"0.6732933",
"0.6674161",
"0.6596416",
"0.6591796",
"0.6474041",
"0.64728373",
"0.64713335",
"0.6459638",
"0.64520043",
"0.63713455",
"0.63427204",
"0.63196665",
"0.6267239",
"0.6242836",
"0.62337637",
"0.6224154",
"0.62228864",
"0.6213828",
"0.6204763",
"0.6174784",
"0.6169896",
"0.6153851",
"0.6151086",
"0.6115068",
"0.60852325",
"0.60852325",
"0.60852325",
"0.60796595",
"0.6050231",
"0.6028191",
"0.6005577",
"0.6005577",
"0.6005577",
"0.6005577",
"0.59984845",
"0.5984438",
"0.5978881",
"0.5955497",
"0.5955497",
"0.59549755",
"0.5942145",
"0.5927998",
"0.59062123",
"0.58738726",
"0.58608526",
"0.58608526",
"0.58382326",
"0.582634",
"0.58139753",
"0.5811236",
"0.5795967",
"0.57893753",
"0.5748338",
"0.5744582",
"0.5717054",
"0.57164794",
"0.56714857",
"0.5663511",
"0.5658863",
"0.5614707",
"0.55540967",
"0.5547539",
"0.5545761",
"0.55398625",
"0.55368465",
"0.5533352",
"0.55177516",
"0.54993033",
"0.54968077",
"0.54756117",
"0.5469935",
"0.5469914",
"0.546608",
"0.54611444",
"0.54388225",
"0.54296523",
"0.54247063",
"0.54202664",
"0.5418582",
"0.5397488",
"0.5396585",
"0.53854764",
"0.5369494",
"0.5369494",
"0.5365876",
"0.535697",
"0.5345808",
"0.53425884",
"0.5337309",
"0.5333703",
"0.5331926",
"0.5325896",
"0.5319995",
"0.5318728",
"0.53051347",
"0.5298494",
"0.52983683",
"0.5297748",
"0.52930605"
] | 0.6987922 | 1 |
Setter method for the COM property "MainBody" | @DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present
@VTID(23)
void mainBody(
Body oMainBody); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBody(Object body) {\n this.body = body;\n }",
"public void setBody(Body body) {\n this.body = body;\n }",
"void setBody (DBody body);",
"void setBody(final Body body);",
"@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n Body mainBody();",
"public void setBody(BodyType _body) {\n this.body = _body;\n }",
"public void setBody(String body)\n\t{\n\t\tm_sBody=body;\t\n\t}",
"@Override\n\tpublic void setBody(Object body) {\n\t\tsuper.setBody(body);\n\t}",
"public void setBody(ClassBodyNode body);",
"public void setBody(ClassBody body) {\n\t\tif(body == null) {\n\t\t\t_componentType.connectTo((Association)createComponentType(new ClassBody()).parentLink());\n\t\t} else {\n\t\t\t_componentType.connectTo((Association) createComponentType(body).parentLink());\n\t\t}\n\t}",
"public void setBody_(String body_) {\n this.body_ = body_;\n }",
"public void setBody(String newValue);",
"public void setTypeOfBody(String typeOfBody) {\n\t\tthis.typeOfBody = typeOfBody;\n\t}",
"public void setBody(AgentBody newBody) {\n\t\tbody = newBody;\n\t}",
"public void setBody (String body) {\n\t\tresetText(body);\n\t}",
"public void setBody(UserModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }",
"public void setBody(UserModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }",
"private void setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n body_ = value;\n }",
"public void setBody(String body) {\r\n this.body = body;\r\n }",
"public void setMain(Main main) {\r\n \tthis.main = main;\r\n }",
"public void setBody(byte[] body) {\n\t\t\tthis.body = body;\n\t\t}",
"public void setBody(byte[] body) {\n\t\tthis.body = body;\n\t}",
"public void setCellBody(int cellBody) {\n\t\tthis.cellBody = cellBody;\n\t}",
"public void setBody(String body)\n {\n this.body = body;\n }",
"public void setBody(String body) {\n this.body = body;\n }",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"public void setBody(AnimalModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }",
"public void setBody(AnimalModel param) {\n localBodyTracker = true;\n\n this.localBody = param;\n }",
"public void setBody(String v) \n {\n \n if (!ObjectUtils.equals(this.body, v))\n {\n this.body = v;\n setModified(true);\n }\n \n \n }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"public void setBodyText(String bodyText) {\n this.bodyText = bodyText;\n }",
"public Object getBody() {\n return body;\n }",
"CompoundSt getBody () { return body; }",
"public void setBody(ASTNode body) {\n this.body = body;\n }",
"public void setBodyName(PosSymbol bodyName) {\n this.bodyName = bodyName;\n }",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"@Override\n\tpublic void setBody(java.lang.String body) {\n\t\t_news_Blogs.setBody(body);\n\t}",
"void setBodySite(org.hl7.fhir.CodeableConcept bodySite);",
"public DrakonMacro getBody()\r\n {\r\n return body;\r\n }",
"void setOpenBodyRangeEnd(int end) {\n this.fOpenBodyRange[1] = end;\n }",
"public void setBody(byte[] content) {\n this.body = content;\n }",
"public String getBody_() {\n return body_;\n }",
"public String getBody () {\n\t\treturn body;\n\t}",
"public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n body_ = value;\n onChanged();\n return this;\n }",
"void setBodyModType(final Bodymodtype bodyModType);",
"public String getBody(){\n return bodiesText;\n }",
"public String getBody(){\n return body;\n }",
"public String getBody() {\r\n return body;\r\n }",
"public PosSymbol getBodyName() {\n return bodyName;\n }",
"Body getBody();",
"public int getCellBody() {\n\t\treturn cellBody;\n\t}",
"public void setBodyParams(List<ModuleArgumentItem> bodyParams) {\n this.bodyParams = bodyParams;\n }",
"public void setMainClass(String mainClass) {\n\t\tthis.mainClass = mainClass;\n\t}",
"public Body getBody() {\n return body;\n }",
"public void setBody(String body) {\n this.body = body;\n String params[] = body.split(\"&\");\n for (String param : params) {\n String keyValue[] = param.split(\"=\");\n parameters.put(keyValue[0], keyValue[1]);\n }\n\n }",
"public void defineBody()\n {\n if(B2body != null){\n PlayScreen.world.destroyBody(B2body);}\n\n BodyDef bdef = new BodyDef();\n bdef.type = BodyDef.BodyType.KinematicBody;\n B2body = PlayScreen.world.createBody(bdef);\n\n\n calculateTriangle(mirror.getX(), mirror.getY(), mirror.getRotation());\n }",
"public final InvokeScriptedProcessor setScriptBody(final String scriptBody) {\n properties.put(SCRIPT_BODY_PROPERTY, scriptBody);\n return this;\n }",
"protected abstract Body newBodyImpl();",
"SmilBody getBody();",
"public final Body newBody()\n {\n Body body = newBodyImpl();\n \n //addBody(body);\n \n return ( body );\n }",
"public void setMain(MainApp main) {\n\t\tthis.main = main;\n\t}",
"public void setMainApp(Main mainApp) {\n this.mainApp = mainApp;\n \n }",
"public String getBody()\n {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public void setMainApp(portfmgrApplication mainApp) {\n\t\tthis.mainApp = mainApp;\n\t\ttype.setItems(FXCollections.observableArrayList(Arrays.asList(\"Kauf\", \"Verkauf\")));\n\t}",
"public void setBodyPartList(ArrayList<BodyPart> parts){\n\t\tthis.parts = parts;\n\t}",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.main = mainApp;\n\t}",
"public void setBody1Name(String body1Name) {\n opensimSimulationJNI.ExpressionBasedPointToPointForce_setBody1Name(swigCPtr, this, body1Name);\n }",
"public Body getBody() {\n if (jBody == null) {\n throw new RuntimeException(\"No jimplification happened yet, no body available.\");\n }\n return jBody;\n }",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\n\t\t// Add observable list data to the table\n\t\t//personTable.setItems(mainApp.getPersonData());\n\t}",
"public AgentBody getBody() {\n\t\treturn body;\n\t}",
"public void setMainApp(VIVESbook mainApp) {\r\n this.mainApp = mainApp;\r\n }",
"public Builder setBody(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n body_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setMainHandler(Handler mainHandler) {\n\t\tthis.mainHandler = mainHandler;\n\t\tlogic.setMainHandler(mainHandler);\n\t}",
"public String getTypeOfBody() {\n\t\treturn typeOfBody;\n\t}",
"public UserModel getBody() {\n return localBody;\n }",
"public UserModel getBody() {\n return localBody;\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public void setMainApp(MainApp mainApp) {\n\t\tthis.mainApp = mainApp;\n\t}",
"public StacLink body(Object body) {\n this.body = body;\n return this;\n }",
"public void setTypeOfBodyCd(Integer typeOfBodyCd) {\n\t\tthis.typeOfBodyCd = typeOfBodyCd;\n\t}",
"public void\nsetHirBody( BlockStmt pHirBody );",
"public FrameBodyASPI() {\r\n super();\r\n }",
"public void setMainDocument(String body, String type, Date date, String title) {\n mainDocument = new DocumentItem(body, type, DocumentItemType.DOCUMENT);\n setMainDocumentInfo(date, title);\n }",
"void setCloseBodyRangeEnd(int end) {\n this.fCloseBodyRange[1] = end;\n }",
"public String getBodyString() {\n return this.bodyString;\n }",
"public void setMainApp(Main mainApp) {\n this.mainApp = mainApp;\n\n // Add observable list data to the table\n // personTable.setItems(mainApp.getPersonData());\n }",
"public String getBodyText() {\n return bodyText;\n }",
"private void buildBody() {\n\t\tBodyDef def = new BodyDef();\n\t\tdef.type = BodyType.KinematicBody;\n\t\tdef.position.set(new Vector2(0, 0));\n\t\tmouseBody = GamePlayManager.world.createBody(def);\n\n\t\t//this body is jointed to the above body and is physically pulled towards the mouse\n\t\tBodyDef def2 = new BodyDef();\n\t\tdef2.type = BodyType.DynamicBody;\n\t\tdef2.position.set(new Vector2(0, 0));\n\t\tBody collisionBody = GamePlayManager.world.createBody(def2);\n\t\tCircleShape shape = new CircleShape();\n\t\tshape.setRadius(8 * Util.PIXEL_TO_BOX);\n\t\tFixtureDef fixDef2 = new FixtureDef();\n\t\tfixDef2.shape = shape;\n\t\tfixDef2.isSensor = true;\n\t\tfixDef2.density = 1f;\n\t\tfixDef2.filter.categoryBits = Util.CATEGORY_EVERYTHING;\n\t\tfixDef2.filter.maskBits = Util.CATEGORY_EVERYTHING;\n\t\tcollisionBody.createFixture(fixDef2);\n\t\tcollisionBody.setUserData(this);\n\t\tshape.dispose();\n\t\t\n\t\tWeldJointDef jDef = new WeldJointDef();\n\t\tjDef.bodyA = mouseBody;\n\t\tjDef.bodyB = collisionBody;\n\t\tjDef.collideConnected = false;\n\t\tjDef.type = JointType.WeldJoint;\n\t\tjDef.referenceAngle = 0;\n\t\tjDef.dampingRatio = 0;\n\t\tGamePlayManager.world.createJoint(jDef);\n\t}",
"void setMainFrame(NewMainFrame mainFrame) {\n this.mainFrame = mainFrame;\n }",
"public void setMainCode(Long mainCode) {\n this.mainCode = mainCode;\n }",
"private final native NodeRemote getBody0() /*-{\n return this.body;\n\t}-*/;",
"public Body getNativeBody() {\r\n\t\treturn box2dComponent.getBody();\r\n\t}",
"public String getMain() {\n\t\treturn main;\n\t}",
"public BodyWrapper() {\n /* Empty Constructor required by JMX */\n }",
"public void createBody(){\n this.fuelMass = this.initFuelMass;\n BodyDef def = new BodyDef();\n def.position.set(initPosition);\n def.type = BodyDef.BodyType.DynamicBody;\n body = world.createBody(def);\n\n PolygonShape box = new PolygonShape();\n box.setAsBox(lunarModuleWidth / 2, lunarModuleHeight / 2);\n fixture = body.createFixture(box, (lunarModuleMass + fuelMass) / (lunarModuleHeight * lunarModuleWidth));\n box.dispose();\n\n fixture.setUserData(\"lunar module\");\n fixture.setFriction(0.4f);\n massData = body.getMassData();\n setSize(lunarModuleWidth, lunarModuleHeight);\n\n this.alive = true;\n this.activateEngine = false;\n this.activateAuxiliaryEnginesLeft = false;\n this.activateAuxiliaryEnginesRight = false;\n }"
] | [
"0.6371849",
"0.63317543",
"0.6319506",
"0.62316865",
"0.6224764",
"0.6144947",
"0.6068449",
"0.6057788",
"0.6029412",
"0.59547824",
"0.590569",
"0.5838146",
"0.58364546",
"0.5806095",
"0.579905",
"0.57641035",
"0.57641035",
"0.57279783",
"0.5722513",
"0.57182014",
"0.5703112",
"0.569596",
"0.56836224",
"0.56488067",
"0.5596338",
"0.55960673",
"0.5592145",
"0.5592145",
"0.55832094",
"0.5479117",
"0.5473713",
"0.5470059",
"0.5406208",
"0.540549",
"0.53993064",
"0.5374053",
"0.53739196",
"0.53658134",
"0.5318802",
"0.52952886",
"0.52817655",
"0.5250567",
"0.52489966",
"0.52416027",
"0.52376103",
"0.52358544",
"0.52344865",
"0.52255225",
"0.5185485",
"0.51805395",
"0.51736104",
"0.51655686",
"0.516537",
"0.5153881",
"0.5136904",
"0.511874",
"0.51050067",
"0.51041955",
"0.51035255",
"0.5103416",
"0.51032686",
"0.5096302",
"0.50934464",
"0.5092725",
"0.5092725",
"0.5092725",
"0.50805885",
"0.5070845",
"0.50588036",
"0.5051961",
"0.50519323",
"0.5048182",
"0.50467145",
"0.5030517",
"0.502616",
"0.502053",
"0.50193954",
"0.5006188",
"0.5006188",
"0.50034624",
"0.4998765",
"0.4998765",
"0.4998765",
"0.49979413",
"0.49971536",
"0.49918687",
"0.49897885",
"0.49891677",
"0.49820223",
"0.49800903",
"0.49666664",
"0.4962957",
"0.49612826",
"0.4946413",
"0.49441162",
"0.4939962",
"0.4937046",
"0.49289206",
"0.49253985",
"0.49249116"
] | 0.7405168 | 0 |
Getter method for the COM property "InWorkObject" | @DISPID(1610940418) //= 0x60050002. The runtime will prefer the VTID if present
@VTID(24)
AnyObject inWorkObject(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(1610940418) //= 0x60050002. The runtime will prefer the VTID if present\n @VTID(25)\n void inWorkObject(\n AnyObject oInWorkObject);",
"public WorkObject getWorkObject()\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use getLevelObjectType() and getLevelObjectId()\");\n }",
"public IComponent getExtObject(){\n\t\treturn extObj;\n\t}",
"public Boolean workItemIntegration() {\n return this.workItemIntegration;\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public java.lang.Object getWorkTypeID() {\n return workTypeID;\n }",
"public WorkPart getWorkPart () {\n\t\tif(workPart==null && annotates!=null) {workPart = WorkUtils.getWorkPartByTag(annotates);}\n\t\treturn workPart;\n\t}",
"public String getaWorkName() {\n return aWorkName;\n }",
"public interface InoObject extends JMElement {\r\n\t/** Sets the objects document name. May be null,\r\n * because a document is typically not required.\r\n\t */\r\n public void setInoDocname(String pDocname);\r\n\r\n /** Sets the objects ino:id. May be null,\r\n * because an ino:id is no longer required\r\n * nowadays.\r\n */\r\n public void setInoId(String pId);\r\n\r\n /** Returns the objects document name. May be null,\r\n * because a document is typically not required.\r\n */\r\n public String getInoDocname();\r\n\r\n /** Returns the objects ino:id. May be null,\r\n * because an ino:id is no longer required\r\n * nowadays.\r\n */\r\n public String getInoId();\r\n}",
"public boolean isWorkField()\n\t{\n\t\treturn workField;\n\t}",
"public E getIn() {\n return in;\n }",
"public T getObjProcess() {\n return objProcess;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsProcessed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSPROCESSED_PROP.get());\n }",
"public com.vmware.converter.ManagedObjectReference getObj() {\r\n return obj;\r\n }",
"public OwObject getObject()\r\n {\r\n return m_clipobject;\r\n }",
"public InputInteractions getInIn() {\r\n\t\t// restituisce le interazioni di input\r\n\t\treturn this.InIn;\r\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsProcessed() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSPROCESSED_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getInstrumentedWorkExecutorID() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(INSTRUMENTEDWORKEXECUTORID_PROP.get());\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getInstrumentedWorkExecutorID() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(INSTRUMENTEDWORKEXECUTORID_PROP.get());\n }",
"public ObjectInputStream getOis(){\n return this.ois;\n }",
"public Object getCurrentObject()\r\n\t{\r\n\t\tif (newState != null)\r\n\t\t{\r\n\t\t\t// Not applied yet\r\n\t\t\treturn newState.unmodifiedObject;\r\n\t\t}\r\n\r\n\t\treturn propertyBrowser.getObject();\r\n\t}",
"public String getObjSelect() {\n return mobjSelect;\n }",
"public JSONObject getWorker(){\r\n\t\treturn this.workerobj;\r\n\t}",
"public Dsjob getJobObject() { return job; }",
"public java.util.Enumeration getInDocument() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getInDocument();\n }",
"public boolean isStoredInObject() {\r\n return lockValueStored == IN_OBJECT;\r\n }",
"public String getApplierWorkno() {\n return applierWorkno;\n }",
"public String getWork_id(){\r\n\t\treturn this.work_id ;\r\n\t}",
"public ArrayList<Work> getWork(){\r\n\t\treturn work;\t\t\r\n\t}",
"public String getObjId()\n {\n return objId;\n }",
"public Object getObjHandle() {\n\t\treturn objHandle;\n\t}",
"private ObjectInputStream getInputStream() {\n\t\t// retornamos el stream de entrada\n\t\treturn this.inputStream;\n\t}",
"public Object caseWorkDefinition(WorkDefinition object) {\n\t\treturn null;\n\t}",
"public String getObjId() {\n return objId;\n }",
"public Long getWorkRequestId() {\n return this.workRequestId;\n }",
"public interface WorkfileInfoInterface {\n\n /**\n * Get the short workfile name (the final segment of the full workfile name).\n *\n * @return the short workfile name.\n */\n String getShortWorkfileName();\n\n /**\n * Get the full workfile name.\n *\n * @return the full workfile name.\n */\n String getFullWorkfileName();\n\n /**\n * Get the size of the workfile.\n * @return the size of the workfile.\n */\n long getWorkfileSize();\n\n /**\n * Get the last change date for the workfile.\n * @return the last time the workfile changed.\n */\n Date getWorkfileLastChangedDate();\n\n /**\n * Get the File object associated with the workfile.\n * @return the File object associated with the workfile.\n */\n File getWorkfile();\n\n /**\n * Get the project name.\n * @return the project name.\n */\n String getProjectName();\n\n /**\n * Get the branch name.\n * @return the branch name.\n */\n String getBranchName();\n\n /**\n * Does the workfile exist.\n *\n * @return true if the workfile exists; false otherwise.\n */\n boolean getWorkfileExists();\n\n /**\n * Get the time (in seconds past the epoch) when the workfile was fetched. This represents the last 'get' or 'checkout'\n * operation for the given workfile.\n * @return a long representation of the last fetch date.\n */\n long getFetchedDate();\n\n /**\n * Set the fetched date.\n * @param time the time (in seconds past the epoch) when the workfile was last fetched.\n */\n void setFetchedDate(long time);\n\n /**\n * Get the revision string associated with the workfile.\n * @return the revision string associated with the workfile.\n */\n String getWorkfileRevisionString();\n\n /**\n * Set the revision string associated with the workfile.\n * @param revisionString the revision string to associate with this workfile.\n */\n void setWorkfileRevisionString(String revisionString);\n\n /**\n * Set the archive info to associate with this workfile.\n * @param archInfo the archive information to associate with this workfile.\n */\n void setArchiveInfo(ArchiveInfoInterface archInfo);\n\n /**\n * Get the archive info associated with this workfile.\n * @return the archive info associated with this workfile.\n */\n ArchiveInfoInterface getArchiveInfo();\n\n /**\n * Return true if this is a binary file.\n *\n * @return true if this is a binary file; false otherwise.\n */\n boolean getBinaryFileAttribute();\n\n /**\n * Set the binary flag attribute for this workfile info.\n * @param flag the binary flag attribute for this workfile info.\n */\n void setBinaryFileAttribute(boolean flag);\n}",
"public String getObjName()\n {\n return this.objName;\n }",
"public Integer getObjNo() {\n\t\t\treturn objNo;\n\t\t}",
"public StatusCheckDataObject getJob_StatusCheck() {\r\n return job_StatusCheck;\r\n }",
"public String getLabWork() {\r\n\t\treturn labWork;\r\n\t}",
"@VTID(13)\n com.exceljava.com4j.excel.WorkbookConnection getWorkbookConnection();",
"public org.pentaho.pms.cwm.pentaho.meta.instance.CwmObject getObject();",
"public Object getObject() {\n\t\ttry {\n\t\t\tByteArrayInputStream istream = new ByteArrayInputStream(mStoredObjectArray);\n\t\t\tObjectInputStream p;\n\t\t\tObject toReturn = null;\n\t\t\tif (mIsJython) {\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\ttoReturn = null;\n\t\t\t}\n\t\t\tistream.close();\n\t\t\treturn toReturn;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsCheckedOut() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSCHECKEDOUT_PROP.get());\n }",
"public int getObjid() {\n\treturn objid;\n}",
"public String getmMyworkTransaction() {\n return mMyworkTransaction;\n }",
"public com.google.protobuf.ByteString getObj() {\n return obj_;\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"public int getObjId() {\n return instance.getObjId();\n }",
"@Accessor(qualifier = \"jobMedia\", type = Accessor.Type.GETTER)\n\tpublic ImpExMediaModel getJobMedia()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(JOBMEDIA);\n\t}",
"public Object getObject()\n {\n if (currentObject == null)\n \t return null;\n else\n return AL.indexOf(currentObject);\n }",
"public java.lang.Boolean getInterVMCommunicationThroughVMCISupported() {\r\n return interVMCommunicationThroughVMCISupported;\r\n }",
"public com.google.protobuf.ByteString getObj() {\n return obj_;\n }",
"@Override\n public String getObjectName() {\n return getWorkflowName();\n }",
"public ObjectSerialization getObjSerial() {\n\t\treturn objSerial;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsCheckedOut() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSCHECKEDOUT_PROP.get());\n }",
"public WotlasLocation getObjectLocation() { return objectLocation; }",
"public Duration getWork()\r\n {\r\n return (m_work);\r\n }",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public NbaDst getWork() {\n\t\treturn work;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsSkipped() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSSKIPPED_PROP.get());\n }",
"public Object caseWorkProductDefinition(WorkProductDefinition object) {\n\t\treturn null;\n\t}",
"public String getInsBizNo() {\n\t\treturn this.insBizNo;\n\t}",
"@Override\n\tpublic int getWorkNum() {\n\t\treturn workMapper.getWorkNum();\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Integer getWorkitemsSkipped() {\n return (java.lang.Integer)__getInternalInterface().getFieldValue(WORKITEMSSKIPPED_PROP.get());\n }",
"public String getObject() {\n return mObject;\n }",
"public WfAssignmentIterator get_iterator_work_item () throws BaseException {\n throw new BaseException(\"Not implemented\");\n }",
"public com.hps.july.persistence.Worker getExpeditor() throws java.rmi.RemoteException, javax.ejb.FinderException;",
"public Object getMonitor() {\n\t\treturn this.monitor;\n\t}",
"public Date getStartWorkTime() {\n return startWorkTime;\n }",
"protected BusinessObject getReferencedObject () {\n\t\treturn this;\n\t}",
"public CObject get_CurrentObject(short qoil)\r\n {\r\n CObject pHo;\r\n CObjInfo oilPtr = rhPtr.rhOiList[qoil];\r\n\r\n if (oilPtr.oilActionCount != rh2ActionCount)\t//; Premiere exploration?\r\n {\r\n oilPtr.oilActionCount = rh2ActionCount;\t\t\t//; C'est fait pour cette action\r\n oilPtr.oilActionLoopCount = rh2ActionLoopCount;\r\n\r\n // On recherche le premier dans la liste courante\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n if (oilPtr.oilEventCount == rh2EventCount)\t//; Liste vraiment courante?\r\n {\r\n if (oilPtr.oilListSelected >= 0)\t\t\t\t\t//; La liste des objets selectionnes\r\n {\r\n oilPtr.oilCurrentOi = oilPtr.oilListSelected;\r\n pHo = rhPtr.rhObjectList[oilPtr.oilListSelected];\r\n oilPtr.oilNext = pHo.hoNextSelected;\t\t//; Numero de l'objet suivant\r\n if (pHo.hoNextSelected < 0)\r\n {\r\n oilPtr.oilNextFlag = false;\t\t\t\t//; Pas de suivant!\r\n oilPtr.oilCurrentRoutine = 1; // gao2ndOneOnly;\r\n repeatFlag = false;\r\n return pHo;\r\n }\r\n oilPtr.oilNextFlag = true;\t\t\t\t\t//; Un suivant!\r\n oilPtr.oilCurrentRoutine = 2; // gao2ndCurrent;\r\n repeatFlag = true;\r\n return pHo;\r\n }\r\n }\r\n\r\n // Objet non trouve, on prends tous les objets de meme oi\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n if (rh2EnablePick)\t\t\t\t\t\t//; Pick autorise?\r\n {\r\n if (oilPtr.oilEventCount == rh2EventCount)\t//; Alors juste cet objet?\r\n {\r\n oilPtr.oilCurrentRoutine = 0; // gao2ndNone;\r\n oilPtr.oilCurrentOi = -1;\t\t\t\t\t\t// Pas de suivant\r\n return null;\r\n }\r\n }\r\n if (oilPtr.oilObject >= 0)\t\t\t\t\t\t\t//; Le numero du premier objet Est-il defini?\r\n {\r\n oilPtr.oilCurrentOi = oilPtr.oilObject;\t\t\t//; Stocke le numero de l'objet courant\r\n pHo = rhPtr.rhObjectList[oilPtr.oilObject];\r\n if (pHo == null)\r\n {\r\n oilPtr.oilCurrentRoutine = 0; // gao2ndNone;\r\n oilPtr.oilCurrentOi = -1;\t\t\t\t\t\t// Pas de suivant\r\n return null;\r\n }\r\n if (pHo.hoNumNext >= 0)\r\n {\r\n // Plusieurs objets\r\n oilPtr.oilNext = pHo.hoNumNext;\t\t\t\t// Numero de l'objet\r\n oilPtr.oilNextFlag = true;\t\t\t\t\t\t// Un suivant!\r\n oilPtr.oilCurrentRoutine = 3; // gao2ndAll;\r\n repeatFlag = true;\r\n return pHo;\r\n }\r\n // Un seul objet\r\n oilPtr.oilNextFlag = false;\t\t\t\t\t\t\t// Pas de suivant!\r\n oilPtr.oilCurrentRoutine = 1; // gao2ndOneOnly;\r\n repeatFlag = false;\r\n return pHo;\r\n }\r\n else\r\n {\r\n oilPtr.oilCurrentRoutine = 0; // gao2ndNone;\r\n oilPtr.oilCurrentOi = -1;\t\t\t\t\t\t// Pas de suivant\r\n return null;\r\n }\r\n }\r\n\r\n if (oilPtr.oilActionLoopCount != rh2ActionLoopCount)\r\n {\r\n short next;\r\n oilPtr.oilActionLoopCount = rh2ActionLoopCount;\t//; C'est fait pour cette boucle\r\n switch (oilPtr.oilCurrentRoutine)\r\n {\r\n // Pas d'objet\r\n case 0: // gao2ndNone\r\n repeatFlag = oilPtr.oilNextFlag;\r\n return null;\r\n // Un seul objet\r\n case 1: // gao2ndOneOnly\r\n pHo = rhPtr.rhObjectList[oilPtr.oilCurrentOi];\r\n repeatFlag = oilPtr.oilNextFlag;\r\n return pHo;\r\n // Objet suivant dans la liste courante\r\n case 2: // gao2ndCurrent\r\n oilPtr.oilCurrentOi = oilPtr.oilNext;\t\t\t\t\t//; Numero de l'objet suivant\r\n pHo = rhPtr.rhObjectList[oilPtr.oilNext];\r\n if (pHo == null)\r\n {\r\n return null;\r\n }\r\n next = pHo.hoNextSelected;\r\n if (next < 0)\r\n {\r\n oilPtr.oilNextFlag = false;\t\t\t\t\t\t\t// Plus de suivant!\r\n next = oilPtr.oilListSelected;\r\n }\r\n oilPtr.oilNext = next;\r\n repeatFlag = oilPtr.oilNextFlag;\r\n return pHo;\r\n // Objet suivant global\r\n case 3: // gao2ndAll\r\n oilPtr.oilCurrentOi = oilPtr.oilNext;\t\t\t\t\t//; Stocke le numero de l'objet courant\r\n pHo = rhPtr.rhObjectList[oilPtr.oilNext];\r\n if (pHo == null)\r\n {\r\n return null;\r\n }\r\n next = pHo.hoNumNext;\r\n if (next < 0)\r\n {\r\n oilPtr.oilNextFlag = false;\t\t\t\t\t\t\t// Pas de suivant!\r\n next = oilPtr.oilObject;\t\t\t\t\t\t\t// Repart au debut\r\n }\r\n oilPtr.oilNext = next;\r\n repeatFlag = oilPtr.oilNextFlag;\r\n return pHo;\r\n }\r\n }\r\n if (oilPtr.oilCurrentOi < 0)\r\n {\r\n return null;\t\t\t\t\t//; Prend l'objet courant\r\n }\r\n pHo = rhPtr.rhObjectList[oilPtr.oilCurrentOi];\r\n repeatFlag = oilPtr.oilNextFlag;\r\n return pHo;\r\n }",
"public InputStream getIn() {\n\t\treturn proc.getInputStream();\n\t}",
"boolean updateWorkByObject(Work work);",
"public Date getWorkDay() {\n\t\treturn workDay;\n\t}",
"public Object getObject() {\r\n\t\treturn this.object;\r\n\t}",
"public Object getPropertySyncObject() {\n return propertySyncObject;\n }",
"public String getJobProperty() {\r\n return jobProperty;\r\n }",
"public Object getObject() throws javax.naming.NamingException {\n if (ThreadContext.isValid()) {\n ThreadContext cntx = ThreadContext.getThreadContext();\n byte operation = cntx.getCurrentOperation();\n checkOperation(operation);\n }\n return ref.getObject();\n }",
"public String getOwningPart() {\n return this.owningPart;\n }",
"public interface CSActsWorkerLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Returns the cdFipsWrkr.\n\t * @return String\n\t */\n\tpublic String getCdFipsWrkr();\n\t/**\n\t * Returns the cdWrkrType.\n\t * @return String\n\t */\n\tpublic String getCdWrkrType();\n\t/**\n\t * Returns the csActsWorkerInquiry.\n\t * @return CSActsWorkerInquiry\n\t */\n\tpublic CSActsWorkerInquiry getCsActsWorkerInquiry();\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idEmail.\n\t * @return String\n\t */\n\tpublic String getIdEmail();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrLogon.\n\t * @return String\n\t */\n\tpublic String getIdWrkrLogon();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the nbFaxWorker.\n\t * @return String\n\t */\n\tpublic String getNbFaxWorker();\n\t/**\n\t * Returns the nbTelWorker.\n\t * @return String\n\t */\n\tpublic String getNbTelWorker();\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Returns the tmLunchEnd.\n\t * @return String\n\t */\n\tpublic String getTmLunchEnd();\n\t/**\n\t * Returns the tmLunchStart.\n\t * @return String\n\t */\n\tpublic String getTmLunchStart();\n\t/**\n\t * Returns the tmWorkEnd.\n\t * @return String\n\t */\n\tpublic String getTmWorkEnd();\n\t/**\n\t * Returns the tmWorkStart.\n\t * @return String\n\t */\n\tpublic String getTmWorkStart();\n\t/**\n\t * Sets the cdFipsWrkr.\n\t * @param cdFipsWrkr The cdFipsWrkr to set\n\t */\n\tpublic void setCdFipsWrkr(String cdFipsWrkr);\n\t/**\n\t * Sets the cdWrkrType.\n\t * @param cdWrkrType The cdWrkrType to set\n\t */\n\tpublic void setCdWrkrType(String cdWrkrType);\n\t/**\n\t * Sets the csActsWorkerInquiry.\n\t * @param csActsWorkerInquiry The csActsWorkerInquiry to set\n\t */\n\tpublic void setCsActsWorkerInquiry(CSActsWorkerInquiry csActsWorkerInquiry);\n\t/**\n\t * setEntityContext\n\t */\n\tpublic void setEntityContext(javax.ejb.EntityContext ctx);\n\t/**\n\t * Sets the idEmail.\n\t * @param idEmail The idEmail to set\n\t */\n\tpublic void setIdEmail(String idEmail);\n\t/**\n\t * Sets the idWrkr.\n\t * @param idWrkr The idWrkr to set\n\t */\n\tpublic void setIdWrkr(String idWrkr);\n\t/**\n\t * Sets the idWrkrLogon.\n\t * @param idWrkrLogon The idWrkrLogon to set\n\t */\n\tpublic void setIdWrkrLogon(String idWrkrLogon);\n\t/**\n\t * Sets the myEntityCtx.\n\t * @param myEntityCtx The myEntityCtx to set\n\t */\n\tpublic void setMyEntityCtx(javax.ejb.EntityContext myEntityCtx);\n\t/**\n\t * Sets the nbFaxWorker.\n\t * @param nbFaxWorker The nbFaxWorker to set\n\t */\n\tpublic void setNbFaxWorker(String nbFaxWorker);\n\t/**\n\t * Sets the nbTelWorker.\n\t * @param nbTelWorker The nbTelWorker to set\n\t */\n\tpublic void setNbTelWorker(String nbTelWorker);\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Sets the tmLunchEnd.\n\t * @param tmLunchEnd The tmLunchEnd to set\n\t */\n\tpublic void setTmLunchEnd(String tmLunchEnd);\n\t/**\n\t * Sets the tmLunchStart.\n\t * @param tmLunchStart The tmLunchStart to set\n\t */\n\tpublic void setTmLunchStart(String tmLunchStart);\n\t/**\n\t * Sets the tmWorkEnd.\n\t * @param tmWorkEnd The tmWorkEnd to set\n\t */\n\tpublic void setTmWorkEnd(String tmWorkEnd);\n\t/**\n\t * Sets the tmWorkStart.\n\t * @param tmWorkStart The tmWorkStart to set\n\t */\n\tpublic void setTmWorkStart(String tmWorkStart);\n\t/**\n\t * Returns the actsWorkerEntityBean.\n\t * @return ActsWorkerEntityBean\n\t */\n\tpublic ActsWorkerEntityBean getActsWorkerEntityBean();\n\t/**\n\t * Sets the actsWorkerEntityBean.\n\t * @param actsWorkerEntityBean The actsWorkerEntityBean to set\n\t */\n\tpublic void setActsWorkerEntityBean(ActsWorkerEntityBean actsWorkerEntityBean);\n}",
"public ObjectReference getObject();",
"public java.lang.Object getExtension() {\r\n return extension;\r\n }",
"public String getContentObj() {\n return contentObj;\n }",
"public List<RegisteredWork> getRegisteredWork() {\n\t\treturn registeredWork;\n\t}",
"@DISPID(148)\n @PropGet\n com.exceljava.com4j.excel._Application getApplication();",
"public Object getObject() {\n\t\treturn object;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Long)__getInternalInterface().getFieldValue(WORKELAPSED_PROP.get());\n }",
"@VTID(41)\n com.exceljava.com4j.excel.ListObject getListObject();",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"public int getObjId() {\n return objId_;\n }",
"@Override\n\tpublic WorkVO getWorkDetail(int work_num) {\n\t\treturn workMapper.getWorkDetail(work_num);\n\t}"
] | [
"0.6942762",
"0.64797944",
"0.6219518",
"0.6106553",
"0.58292633",
"0.579765",
"0.56626403",
"0.5642819",
"0.55861294",
"0.55620253",
"0.5451764",
"0.53773236",
"0.5333906",
"0.5325888",
"0.5323893",
"0.53055656",
"0.53042156",
"0.52917916",
"0.52793074",
"0.5273058",
"0.52522886",
"0.5246305",
"0.5239925",
"0.5231805",
"0.522833",
"0.5224078",
"0.5215026",
"0.5211844",
"0.5207316",
"0.51998526",
"0.5199359",
"0.51988524",
"0.51962996",
"0.51828825",
"0.51811665",
"0.5176312",
"0.5172972",
"0.5168797",
"0.516213",
"0.5154862",
"0.5144419",
"0.5130891",
"0.5126414",
"0.51197237",
"0.5113629",
"0.511014",
"0.51063174",
"0.5104687",
"0.5104687",
"0.5104687",
"0.5104687",
"0.5104687",
"0.5104687",
"0.5101087",
"0.5098154",
"0.50889075",
"0.50864524",
"0.5084308",
"0.50653243",
"0.5064836",
"0.506354",
"0.5056416",
"0.5055151",
"0.5053015",
"0.50321645",
"0.5030043",
"0.50273997",
"0.5022509",
"0.50145733",
"0.5012333",
"0.5012186",
"0.5010659",
"0.50039697",
"0.49963763",
"0.4987394",
"0.4980696",
"0.4980677",
"0.49797565",
"0.4973924",
"0.49719903",
"0.49716163",
"0.49650103",
"0.4964261",
"0.4964259",
"0.4961975",
"0.4958654",
"0.49452302",
"0.49381667",
"0.493533",
"0.49341872",
"0.4932723",
"0.49324903",
"0.4932034",
"0.4928192",
"0.4928192",
"0.4928192",
"0.4928192",
"0.4928192",
"0.4928192",
"0.49275917"
] | 0.7619849 | 0 |
Setter method for the COM property "InWorkObject" | @DISPID(1610940418) //= 0x60050002. The runtime will prefer the VTID if present
@VTID(25)
void inWorkObject(
AnyObject oInWorkObject); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(1610940418) //= 0x60050002. The runtime will prefer the VTID if present\n @VTID(24)\n AnyObject inWorkObject();",
"public void setObject(XSerial obj);",
"public void setExtObject(IComponent ext){\n\t\textObj = ext;\n\t}",
"boolean updateWorkByObject(Work work);",
"@Override\n\tpublic void setActiveObject(UIBean obj) {\n\n\t}",
"public interface InoObject extends JMElement {\r\n\t/** Sets the objects document name. May be null,\r\n * because a document is typically not required.\r\n\t */\r\n public void setInoDocname(String pDocname);\r\n\r\n /** Sets the objects ino:id. May be null,\r\n * because an ino:id is no longer required\r\n * nowadays.\r\n */\r\n public void setInoId(String pId);\r\n\r\n /** Returns the objects document name. May be null,\r\n * because a document is typically not required.\r\n */\r\n public String getInoDocname();\r\n\r\n /** Returns the objects ino:id. May be null,\r\n * because an ino:id is no longer required\r\n * nowadays.\r\n */\r\n public String getInoId();\r\n}",
"public ExtendedWorkObject(IElement element) {\r\n\t\tthis.element = element;\r\n\t\tthis.element.setWorkObject(this);\r\n\t}",
"public void setExpeditor(com.hps.july.persistence.Worker anExpeditor) throws java.rmi.RemoteException;",
"public void storeInObject() {\r\n lockValueStored = IN_OBJECT;\r\n }",
"void setTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;",
"public IComponent getExtObject(){\n\t\treturn extObj;\n\t}",
"public void setInIn(InputInteractions inIn) {\r\n\t\t// assegna le interazioni di input\r\n\t\tthis.InIn = inIn;\r\n\t}",
"public Object caseWorkDefinition(WorkDefinition object) {\n\t\treturn null;\n\t}",
"public WorkObject getWorkObject()\n {\n throw new UnsupportedOperationException(\n \"This method is not supported. Use getLevelObjectType() and getLevelObjectId()\");\n }",
"public void setJob_TypeOfWork(ComboBoxDataObject job_TypeOfWork) {\r\n this.job_TypeOfWork = job_TypeOfWork;\r\n }",
"public void set(E obj) {\r\n throw new UnsupportedOperationException();\r\n }",
"public void\t\tsetConfiguration(Object obj);",
"public void setObjProcess(final T objProcess) {\n this.objProcess = objProcess;\n }",
"@Override\n public void setObject(Object arg0)\n {\n \n }",
"public void setInvolvedPerson(InvolvedPerson value) {\r\n\t\tBase.set(this.model, this.getResource(), INVOLVEDPERSON, value);\r\n\t}",
"public Object caseWorkProductDefinition(WorkProductDefinition object) {\n\t\treturn null;\n\t}",
"public void setWorkPart (WorkPart workPart) {\n\t\tthis.workPart = workPart;\n\t\tthis.annotates = workPart.getTag();\n\t}",
"@Override\r\n public void setObject(String object) {\n }",
"void setValue(org.python.Object obj) {\n org.python.types.Object object = (org.python.types.Object) obj;\n this.co_argcount = (org.python.types.Int) object.__getattribute__(\"co_argcount\");\n this.co_cellvars = (org.python.types.Tuple) object.__getattribute__(\"co_cellvars\");\n this.co_code = (org.python.types.Bytes) object.__getattribute__(\"co_code\");\n this.co_consts = (org.python.types.Tuple) object.__getattribute__(\"co_consts\");\n this.co_filename = (org.python.types.Str) object.__getattribute__(\"co_filename\");\n this.co_firstlineno = (org.python.types.Int) object.__getattribute__(\"co_firstlineno\");\n this.co_flags = (org.python.types.Int) object.__getattribute__(\"co_flags\");\n this.co_freevars = (org.python.types.Tuple) object.__getattribute__(\"co_freevars\");\n this.co_kwonlyargcount = (org.python.types.Int) object.__getattribute__(\"co_kwonlyargcount\");\n this.co_lnotab = (org.python.types.Bytes) object.__getattribute__(\"co_lnotab\");\n this.co_name = (org.python.types.Str) object.__getattribute__(\"co_name\");\n this.co_names = (org.python.types.Tuple) object.__getattribute__(\"co_names\");\n this.co_nlocals = (org.python.types.Int) object.__getattribute__(\"co_nlocals\");\n this.co_stacksize = (org.python.types.Int) object.__getattribute__(\"co_stacksize\");\n this.co_varnames = (org.python.types.Tuple) object.__getattribute__(\"co_varnames\");\n }",
"public abstract void setContentObject(Object object);",
"public void setValue(Object obj) throws AspException\n {\n throw new AspException(\"Modification of read-only variable\");\n }",
"void setObjectValue(Object dataObject);",
"public void setObjectReferenceImpl(ObjectReferenceImpl objectReferenceImpl) {\n this.objectReference = objectReferenceImpl;\n }",
"public void setWorkUnit(String workUnit) {\n\t\tthis.workUnit = workUnit;\n\t}",
"public Boolean workItemIntegration() {\n return this.workItemIntegration;\n }",
"public void setObjet(Object messageObject) throws UtilsException;",
"void privateSetExpeditorKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;",
"public static void setInvolvedPerson(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, InvolvedPerson value) {\r\n\t\tBase.set(model, instanceResource, INVOLVEDPERSON, value);\r\n\t}",
"public void setObjectLocation(WotlasLocation objectLocation) { this.objectLocation=objectLocation; }",
"public void set( Object obj ) throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"set(Object obj) Not implemented.\" );\n\t\t}",
"public void update(InterfaceBean object) {\n\t\t\n\t}",
"public void setWorkField(boolean workField)\n\t{\n\t\tthis.workField = workField;\n\t}",
"@Override\n\tpublic void setValue(Object object) {\n\n\t}",
"public\tvoid setobject(object obj) {\r\n\t\t oop.value=obj.value;\r\n\t\t oop.size=obj.size;\r\n\t\t \r\n\t}",
"public boolean isStoredInObject() {\r\n return lockValueStored == IN_OBJECT;\r\n }",
"@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}",
"public void setObj(com.vmware.converter.ManagedObjectReference obj) {\r\n this.obj = obj;\r\n }",
"public Object caseSpem_WorkProductDefinition(org.topcased.spem.WorkProductDefinition object) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void modify(WorkVO workVO) {\n\t\tworkMapper.modify(workVO);\n\t\t\n\t}",
"@Override\n\tpublic boolean sendToController(Object obj) {\n\t\tofhController.getObjectFromUI(obj);\n\t\treturn false;\n\t}",
"public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }",
"public void setObject(Object obj) {\n\tObject bean = ((AxBridgeObject)obj).getJavaObject();\n\ttry {\n\t Class cls = bInfo.getBeanDescriptor().getCustomizerClass();\n\t if(cls != null) {\n\t\tcustomizer = (Customizer)cls.newInstance();\n\t\tcomp = (Component)customizer;\n\t\tcustomizer.setObject(bean);\n\t }\n\t \n\t //If no customizer, try property editors\n\t if(comp == null) {\n\t\tPropertyDescriptor[] pds = bInfo.getPropertyDescriptors();\n\t\tfor(int i=0;i<pds.length;i++) {\n\t\t cls = pds[i].getPropertyEditorClass();\n\t\t if(cls != null) {\n\t\t\t//System.out.println(cls.toString() + i);\n\t\t\tpropEditor = (PropertyEditor)cls.newInstance();\n\t\t\tif(propEditor.supportsCustomEditor()) {\n\t\t\t comp = propEditor.getCustomEditor();\n\t\t\t propEditor.setValue(bean);\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t}\n\t }\n\t} catch(Throwable e) {\n\t e.printStackTrace();\n\t}\n }",
"public void setWork(NbaDst work) {\n\t\tthis.work = work;\n\t}",
"public java.lang.Object getWorkTypeID() {\n return workTypeID;\n }",
"public void setJobObserver(JobObserver jO) {\n\r\n\t}",
"public void testSetObj() {\n System.out.println(\"setObj\");\n Object obj = null;\n int modo= 0;\n ObjectTempSwapWizard instance = new ObjectTempSwapWizard(modo);\n instance.setObj(obj);\n }",
"public boolean setSpecialObject(String objectDesc, Object specialObject)\r\n\t{\r\n\t\treturn false;\r\n\t}",
"public void setWorkTypeID(java.lang.Object workTypeID) {\n this.workTypeID = workTypeID;\n }",
"public void secondarySetExpeditor(com.hps.july.persistence.Worker anExpeditor) throws java.rmi.RemoteException;",
"public PvtFieldMutator in(Object objInstance) {\n this.targetInstance = objInstance;\n return this;\n }",
"public void setHC_WorkEndDate (Timestamp HC_WorkEndDate);",
"public void setObjectdata(byte[] objectdata)\n {\n\n }",
"public ComboBoxDataObject getJob_TypeOfWork() {\r\n return job_TypeOfWork;\r\n }",
"public void setClassObject(Object obj)\n\n {\n\n this.classObject = obj;\n\n }",
"public void setOuIn(OutputInteractions ouIn) {\r\n\t\t// assegna le interazioni di output\r\n\t\tthis.OuIn = ouIn;\r\n\t}",
"void privateSetTechStuffKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException;",
"public final void setObjSelect(String objSelect) {\n mobjSelect = objSelect;\n }",
"void secondarySetTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;",
"@Override\r\n\tpublic void setUw(UnitWorks uw) {\n\t\t\r\n\t}",
"public void setM_InOut_ID (int M_InOut_ID);",
"public synchronized void setCellValue(GoLCell in_cell)\n {\n cellValue = in_cell.getCellValue();\n }",
"public void setModelObject(cbit.vcell.parser.SymbolTableEntry modelObject) throws java.beans.PropertyVetoException {\r\n\tcbit.vcell.parser.SymbolTableEntry oldValue = fieldModelObject;\r\n\tfireVetoableChange(\"modelObject\", oldValue, modelObject);\r\n\tfieldModelObject = modelObject;\r\n\tfirePropertyChange(\"modelObject\", oldValue, modelObject);\r\n}",
"public void setValue(Object o){\n \tthis.value = o;\n }",
"public Object caseWorkProductUse(WorkProductUse object) {\n\t\treturn null;\n\t}",
"void mo29860m(IObjectWrapper iObjectWrapper) throws RemoteException;",
"@Override\n\tpublic void setDataObject(DataObject arg0) throws DataBindingException {\n\n\t}",
"public void setDataObject(Object dataObj)\r\n {\r\n\r\n debug(\"setDataObject() - Set Data member Obj\");\r\n // Null out any reference to this data that may be present\r\n stockData = null;\r\n if (dataObj != null)\r\n {\r\n if (dataObj instanceof StockData)\r\n {\r\n stockData = (StockData) dataObj;\r\n }\r\n else if (dataObj instanceof String)\r\n {\r\n stockData = addSymbolToCurrentWatchList((String) dataObj);\r\n }\r\n\r\n }\r\n\r\n debug(\"setDataObject() - stockData is [\" + ((stockData == null) ? \"null\" : stockData.getName()) + \"]\");\r\n }",
"public boolean isWorkField()\n\t{\n\t\treturn workField;\n\t}",
"void setValue(Object object, Object value);",
"public static void setInvolvedPerson( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, INVOLVEDPERSON, value);\r\n\t}",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}",
"@Override\n \tpublic void saveParam(Object obj) throws Exception {; \n \t this.extension.getProxy().setMegaScan(getClickAllElems().isSelected());\n \t\tthis.extension.getProxy().setProxyHost(txtProxyIp.getText());\n \t\tthis.extension.getProxy().setProxyPort(spinnerProxyPort.getValue());\n\t\tthis.extension.getProxy().setBrowsers(txtNumBro.getValue().intValue());\n\t\tthis.extension.getProxy().setThreads(txtNumThre.getValue().intValue());\n \t\t\n \t\tif(getFirefox().isSelected()){\n \t\t\tthis.extension.getProxy().setBrowser(BrowserType.firefox);\n \t\t} else if(getChrome().isSelected()){\n \t\t\tthis.extension.getProxy().setBrowser(BrowserType.chrome);\n \t\t} else if(getHtmlunit().isSelected()){\n \t\t\tthis.extension.getProxy().setBrowser(BrowserType.htmlunit);\n \t\t}\n \t}",
"public interface CSActsWorkerLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Returns the cdFipsWrkr.\n\t * @return String\n\t */\n\tpublic String getCdFipsWrkr();\n\t/**\n\t * Returns the cdWrkrType.\n\t * @return String\n\t */\n\tpublic String getCdWrkrType();\n\t/**\n\t * Returns the csActsWorkerInquiry.\n\t * @return CSActsWorkerInquiry\n\t */\n\tpublic CSActsWorkerInquiry getCsActsWorkerInquiry();\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idEmail.\n\t * @return String\n\t */\n\tpublic String getIdEmail();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrLogon.\n\t * @return String\n\t */\n\tpublic String getIdWrkrLogon();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the nbFaxWorker.\n\t * @return String\n\t */\n\tpublic String getNbFaxWorker();\n\t/**\n\t * Returns the nbTelWorker.\n\t * @return String\n\t */\n\tpublic String getNbTelWorker();\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Returns the tmLunchEnd.\n\t * @return String\n\t */\n\tpublic String getTmLunchEnd();\n\t/**\n\t * Returns the tmLunchStart.\n\t * @return String\n\t */\n\tpublic String getTmLunchStart();\n\t/**\n\t * Returns the tmWorkEnd.\n\t * @return String\n\t */\n\tpublic String getTmWorkEnd();\n\t/**\n\t * Returns the tmWorkStart.\n\t * @return String\n\t */\n\tpublic String getTmWorkStart();\n\t/**\n\t * Sets the cdFipsWrkr.\n\t * @param cdFipsWrkr The cdFipsWrkr to set\n\t */\n\tpublic void setCdFipsWrkr(String cdFipsWrkr);\n\t/**\n\t * Sets the cdWrkrType.\n\t * @param cdWrkrType The cdWrkrType to set\n\t */\n\tpublic void setCdWrkrType(String cdWrkrType);\n\t/**\n\t * Sets the csActsWorkerInquiry.\n\t * @param csActsWorkerInquiry The csActsWorkerInquiry to set\n\t */\n\tpublic void setCsActsWorkerInquiry(CSActsWorkerInquiry csActsWorkerInquiry);\n\t/**\n\t * setEntityContext\n\t */\n\tpublic void setEntityContext(javax.ejb.EntityContext ctx);\n\t/**\n\t * Sets the idEmail.\n\t * @param idEmail The idEmail to set\n\t */\n\tpublic void setIdEmail(String idEmail);\n\t/**\n\t * Sets the idWrkr.\n\t * @param idWrkr The idWrkr to set\n\t */\n\tpublic void setIdWrkr(String idWrkr);\n\t/**\n\t * Sets the idWrkrLogon.\n\t * @param idWrkrLogon The idWrkrLogon to set\n\t */\n\tpublic void setIdWrkrLogon(String idWrkrLogon);\n\t/**\n\t * Sets the myEntityCtx.\n\t * @param myEntityCtx The myEntityCtx to set\n\t */\n\tpublic void setMyEntityCtx(javax.ejb.EntityContext myEntityCtx);\n\t/**\n\t * Sets the nbFaxWorker.\n\t * @param nbFaxWorker The nbFaxWorker to set\n\t */\n\tpublic void setNbFaxWorker(String nbFaxWorker);\n\t/**\n\t * Sets the nbTelWorker.\n\t * @param nbTelWorker The nbTelWorker to set\n\t */\n\tpublic void setNbTelWorker(String nbTelWorker);\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Sets the tmLunchEnd.\n\t * @param tmLunchEnd The tmLunchEnd to set\n\t */\n\tpublic void setTmLunchEnd(String tmLunchEnd);\n\t/**\n\t * Sets the tmLunchStart.\n\t * @param tmLunchStart The tmLunchStart to set\n\t */\n\tpublic void setTmLunchStart(String tmLunchStart);\n\t/**\n\t * Sets the tmWorkEnd.\n\t * @param tmWorkEnd The tmWorkEnd to set\n\t */\n\tpublic void setTmWorkEnd(String tmWorkEnd);\n\t/**\n\t * Sets the tmWorkStart.\n\t * @param tmWorkStart The tmWorkStart to set\n\t */\n\tpublic void setTmWorkStart(String tmWorkStart);\n\t/**\n\t * Returns the actsWorkerEntityBean.\n\t * @return ActsWorkerEntityBean\n\t */\n\tpublic ActsWorkerEntityBean getActsWorkerEntityBean();\n\t/**\n\t * Sets the actsWorkerEntityBean.\n\t * @param actsWorkerEntityBean The actsWorkerEntityBean to set\n\t */\n\tpublic void setActsWorkerEntityBean(ActsWorkerEntityBean actsWorkerEntityBean);\n}",
"public void setWorkState(String workState) {\n this.workState = workState;\n if (updates!=null) {\n getUpdates().isWorkStateChanged = true;\n if (parent!=null) {\n parent.propagateActivityInstanceChange();\n }\n }\n }",
"@Override\n public void update(Workout object) {\n Workout workout;\n workout = object;\n this.setId(workout.getId())\n .setName(workout.getName())\n .setDescription(workout.getDescription())\n .setPrepareDuration(workout.getPrepareDuration())\n .setWorkDescription(workout.getWorkDescription())\n .setWorkDuration(workout.getWorkDuration())\n .setRestDescription(workout.getRestDescription())\n .setRestDuration(workout.getRestDuration())\n .setCyclesCount(workout.getCyclesCount())\n .setSetsCount(workout.getSetsCount())\n .setRestBetweenSetsDuration(workout.getRestBetweenSetsDuration())\n .setCoolDownDuration(workout.getCoolDownDuration())\n .setColor(workout.getColor())\n .setIncreaseDuration(workout.isIncreaseDuration());\n }",
"public String setObject(String objName, Object objValue) {\r\n String resultMsg = new String(\"A \" + XML_TAG + \" cannot contain an Element (\"\r\n + objName + \").\");\r\n return resultMsg;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof WorkingExperience)) {\n return false;\n }\n WorkingExperience other = (WorkingExperience) object;\n if ((this.weId == null && other.weId != null) || (this.weId != null && !this.weId.equals(other.weId))) {\n return false;\n }\n return true;\n }",
"public void set(XObject object) {\r\n if(object == null)\r\n throw new IllegalArgumentException(\"XObject was null.\");\r\n name = object.getName();\r\n id = object.getId();\r\n parent = object.getParent();\r\n }",
"@IcalProperty(pindex = PropertyInfoIndex.ATTENDEE_SCHEDULING_OBJECT,\n jname = \"attendeeSchedulingObject\",\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n @NoProxy\n public void setAttendeeSchedulingObject(final Boolean val) {\n attendeeSchedulingObject = val;\n }",
"public interface WorkfileInfoInterface {\n\n /**\n * Get the short workfile name (the final segment of the full workfile name).\n *\n * @return the short workfile name.\n */\n String getShortWorkfileName();\n\n /**\n * Get the full workfile name.\n *\n * @return the full workfile name.\n */\n String getFullWorkfileName();\n\n /**\n * Get the size of the workfile.\n * @return the size of the workfile.\n */\n long getWorkfileSize();\n\n /**\n * Get the last change date for the workfile.\n * @return the last time the workfile changed.\n */\n Date getWorkfileLastChangedDate();\n\n /**\n * Get the File object associated with the workfile.\n * @return the File object associated with the workfile.\n */\n File getWorkfile();\n\n /**\n * Get the project name.\n * @return the project name.\n */\n String getProjectName();\n\n /**\n * Get the branch name.\n * @return the branch name.\n */\n String getBranchName();\n\n /**\n * Does the workfile exist.\n *\n * @return true if the workfile exists; false otherwise.\n */\n boolean getWorkfileExists();\n\n /**\n * Get the time (in seconds past the epoch) when the workfile was fetched. This represents the last 'get' or 'checkout'\n * operation for the given workfile.\n * @return a long representation of the last fetch date.\n */\n long getFetchedDate();\n\n /**\n * Set the fetched date.\n * @param time the time (in seconds past the epoch) when the workfile was last fetched.\n */\n void setFetchedDate(long time);\n\n /**\n * Get the revision string associated with the workfile.\n * @return the revision string associated with the workfile.\n */\n String getWorkfileRevisionString();\n\n /**\n * Set the revision string associated with the workfile.\n * @param revisionString the revision string to associate with this workfile.\n */\n void setWorkfileRevisionString(String revisionString);\n\n /**\n * Set the archive info to associate with this workfile.\n * @param archInfo the archive information to associate with this workfile.\n */\n void setArchiveInfo(ArchiveInfoInterface archInfo);\n\n /**\n * Get the archive info associated with this workfile.\n * @return the archive info associated with this workfile.\n */\n ArchiveInfoInterface getArchiveInfo();\n\n /**\n * Return true if this is a binary file.\n *\n * @return true if this is a binary file; false otherwise.\n */\n boolean getBinaryFileAttribute();\n\n /**\n * Set the binary flag attribute for this workfile info.\n * @param flag the binary flag attribute for this workfile info.\n */\n void setBinaryFileAttribute(boolean flag);\n}",
"public void setObjBusinessSql(final BusinessSql objBusinessSql) {\n this.objBusinessSql = objBusinessSql;\n }",
"@Accessor(qualifier = \"jobMedia\", type = Accessor.Type.SETTER)\n\tpublic void setJobMedia(final ImpExMediaModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(JOBMEDIA, value);\n\t}",
"public void setObj1 (String value) {\r\n Obj1 = value;\r\n }",
"public void setWork(Duration work)\r\n {\r\n m_work = work;\r\n }",
"public void setI_IsImported (boolean I_IsImported);",
"public void setWorktime(WorkTime worktime) {\r\n this.worktime = worktime;\r\n }",
"public void setGuiObject(Object guiObject);",
"final public void setDataObject(Object _object) {\n this.dataObject = _object;\n }",
"public void setObject(int i, T obj);"
] | [
"0.7031903",
"0.5994626",
"0.57543254",
"0.5743018",
"0.57052064",
"0.5491688",
"0.5484905",
"0.54476917",
"0.5392773",
"0.5359887",
"0.5251762",
"0.5180148",
"0.5172868",
"0.51542073",
"0.51261914",
"0.5093667",
"0.50905675",
"0.50750417",
"0.5068477",
"0.50677836",
"0.50658584",
"0.5065835",
"0.50570756",
"0.5053837",
"0.50509125",
"0.5048545",
"0.5024994",
"0.5012398",
"0.49891394",
"0.49605948",
"0.49462402",
"0.49377525",
"0.49329507",
"0.49301887",
"0.48888022",
"0.48836863",
"0.4875182",
"0.48581925",
"0.48444918",
"0.48418522",
"0.48360774",
"0.48309013",
"0.48054862",
"0.48050222",
"0.48006538",
"0.4784695",
"0.47830075",
"0.47808155",
"0.4779181",
"0.47725722",
"0.47713056",
"0.47571787",
"0.4755422",
"0.47469738",
"0.47406626",
"0.4739374",
"0.47303927",
"0.47284847",
"0.4725122",
"0.47184885",
"0.47061458",
"0.4690861",
"0.46846947",
"0.46832705",
"0.46805984",
"0.46789315",
"0.46641478",
"0.46497273",
"0.4640228",
"0.4637165",
"0.46337274",
"0.46306047",
"0.46233746",
"0.46206126",
"0.460905",
"0.46050712",
"0.46050712",
"0.46050712",
"0.46050712",
"0.46050712",
"0.46050712",
"0.46024197",
"0.4601413",
"0.46012506",
"0.45797643",
"0.45732275",
"0.45693818",
"0.4563156",
"0.45629624",
"0.45611858",
"0.455684",
"0.45551914",
"0.45496008",
"0.45447907",
"0.4543878",
"0.45434958",
"0.45406845",
"0.45311955",
"0.45308414",
"0.4527697"
] | 0.7578926 | 0 |
Getter method for the COM property "Bodies" | @DISPID(1610940420) //= 0x60050004. The runtime will prefer the VTID if present
@VTID(26)
Bodies bodies(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector<YANG_Body> getBodies() {\n\t\treturn bodies;\n\t}",
"@DISPID(1610940418) //= 0x60050002. The runtime will prefer the VTID if present\n @VTID(24)\n Bodies bodies();",
"public ArrayList<CollisionBody> getBodies() {\n return collisionBodies;\n }",
"public String getBody(){\n return bodiesText;\n }",
"public List<Atom> getBody ()\r\n\t{\r\n\t\treturn _body;\r\n\t}",
"public org.chartacaeli.model.Body[] getBody() {\n org.chartacaeli.model.Body[] array = new org.chartacaeli.model.Body[0];\n return this.bodyList.toArray(array);\n }",
"SmilBody getBody();",
"public List<SignatureNode> getBody() {\n return body;\n }",
"Body getBody();",
"CompoundSt getBody () { return body; }",
"public List<BodyDecl> getBodyElelemts() {\n return getBodyElelemtList();\n }",
"public Object getBody() {\n return body;\n }",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"public ClassBodyNode getBody()throws ClassCastException;",
"public Polygon getBody() {\r\n\t\treturn getRotatedBody(angle);\r\n\t}",
"public Body getBody() {\n if (jBody == null) {\n throw new RuntimeException(\"No jimplification happened yet, no body available.\");\n }\n return jBody;\n }",
"public ArrayList<Integer> getBodyPositions() {\n\t\treturn bodyPositions;\n\t}",
"public LinkedList<Location> getBody() {\n return this.body;\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<BodyDecl> getBodyElelemtList() {\n return (List<BodyDecl>)getChild(2);\n }",
"Term getBody();",
"public List<BodyDecl> getBodyDecls() {\n return getBodyDeclList();\n }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"public String getBody () {\n\t\treturn body;\n\t}",
"public java.lang.String getBody() {\n return body_;\n }",
"public JTextField getNBodiesTextField() {\n\t\treturn this.txtNBodies;\n\t}",
"public String getBody() {\r\n return body;\r\n }",
"public Body getBody() {\n return body;\n }",
"public DrakonMacro getBody()\r\n {\r\n return body;\r\n }",
"public java.lang.String getBody() {\n return instance.getBody();\n }",
"public SWIGTYPE_p_SimTK__MobilizedBody getMobilizedBody() {\n return new SWIGTYPE_p_SimTK__MobilizedBody(opensimSimulationJNI.PhysicalFrame_getMobilizedBody(swigCPtr, this), false);\n }",
"public byte[] getBody() {\n\t\treturn body;\n\t}",
"public String getBody(){\n return body;\n }",
"public String getBody()\n {\n return body;\n }",
"@DISPID(1610940419) //= 0x60050003. The runtime will prefer the VTID if present\n @VTID(25)\n HybridBodies hybridBodies();",
"@DISPID(1610940421) //= 0x60050005. The runtime will prefer the VTID if present\n @VTID(27)\n HybridBodies hybridBodies();",
"public AgentBody getBody() {\n\t\treturn body;\n\t}",
"public abstract Body getBody();",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public byte[] getBody() {\n return body;\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<BodyDecl> getBodyDeclList() {\n List<BodyDecl> list = (List<BodyDecl>)getChild(1);\n list.getNumChild();\n return list;\n }",
"public int getCellBody() {\n\t\treturn cellBody;\n\t}",
"public Body getNativeBody() {\r\n\t\treturn box2dComponent.getBody();\r\n\t}",
"public PosSymbol getBodyName() {\n return bodyName;\n }",
"public java.util.List<ConnectionBodyParameter> getBodyParameters() {\n return bodyParameters;\n }",
"public final Body getBody( int i )\n {\n return ( this.bodies.get( i ) );\n }",
"public AnimalModel getBody() {\n return localBody;\n }",
"public AnimalModel getBody() {\n return localBody;\n }",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"public String getBody_() {\n return body_;\n }",
"java.lang.String getBody();",
"public List<BodyDecl> getBodyElelemtsNoTransform() {\n return getBodyElelemtListNoTransform();\n }",
"public String getTypeOfBody() {\n\t\treturn typeOfBody;\n\t}",
"DBody getBody();",
"public String getBodyLoc() {\n return bodyLoc;\n }",
"public List<PhysicsJoint> getJoints() {\n return joints;\n }",
"@Override\n public Object getBody() {\n return null;\n }",
"public float getMass () {\n\t\treturn body.getMass();\n\t}",
"public Set<Integer> getNeighbourCellBodies() {\n\t\treturn neighbourCellBodies;\n\t}",
"int getBodyLength();",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<BodyDecl> getBodyElelemtListNoTransform() {\n return (List<BodyDecl>)getChildNoTransform(2);\n }",
"public List<BodyDecl> getBodyDeclsNoTransform() {\n return getBodyDeclListNoTransform();\n }",
"private final native NodeRemote getBody0() /*-{\n return this.body;\n\t}-*/;",
"public Body getBody1() {\r\n\t\treturn body1;\r\n\t}",
"@SuppressWarnings({\"unchecked\", \"cast\"})\n public List<BodyDecl> getBodyDeclListNoTransform() {\n return (List<BodyDecl>)getChildNoTransform(1);\n }",
"public int getMobilizedBodyIndex() {\n return opensimSimulationJNI.PhysicalFrame_getMobilizedBodyIndex(swigCPtr, this);\n }",
"public BodyLocationPhotoList getBodyLocationPhotos() { return bodyPhotos; }",
"com.google.protobuf.ByteString\n getBodyBytes();",
"com.google.protobuf.ByteString\n getBodyBytes();",
"public String getBody()\n {\n return super.getBody();\n }",
"public String getBodyText() {\n return bodyText;\n }",
"public Point[] getBodyCoordinates() {\n Point[] temp = new Point[segments.length - 1];\n for (int i = 1; i < segments.length; i++) {\n temp[i - 1] = segments[i].getCoordinates();\n }\n return temp;\n }",
"@Override\n\tpublic PhysixBody getRigidBody() {\n\t\treturn rigidBody;\n\t}",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(body_);\n }",
"public String getBodyString() {\n return this.bodyString;\n }",
"public final String getScriptBody() {\n return properties.get(SCRIPT_BODY_PROPERTY);\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return instance.getBodyBytes();\n }",
"int getOpenBodyEnd() {\n return this.fOpenBodyRange[1];\n }",
"public final int length() {\n return m_body.size();\n }",
"public int getNbBodyInList()\r\n\t{\n\t\treturn this.listUnityEnemy.size();\r\n\t}",
"public Body getBody2() {\r\n\t\treturn body2;\r\n\t}",
"public String getContentBody() {\n return contentBody;\n }",
"public List<String> getBodyTables() {\r\n\t\tList<String> tableNames = new ArrayList<String>();\r\n\t\tfor (Atom a: getBody()) {\r\n\t\t\tif(!a.isNeg() && !a.isSkolem())\r\n\t\t\t\ttableNames.add(a.toString3());\r\n\t\t}\r\n\t\treturn tableNames;\r\n\t}",
"public BodyType getType () {\n\t\torg.jbox2d.dynamics.BodyType type = body.getType();\n\t\tif (type == org.jbox2d.dynamics.BodyType.DYNAMIC) return BodyType.DynamicBody;\n\t\tif (type == org.jbox2d.dynamics.BodyType.KINEMATIC) return BodyType.KinematicBody;\n\t\tif (type == org.jbox2d.dynamics.BodyType.STATIC) return BodyType.StaticBody;\n\t\treturn BodyType.DynamicBody;\n\t}",
"public String getBody() {\n Object ref = body_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n body_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Tr[] getTbody() {\r\n return tbody;\r\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n return s;\n }\n }",
"public List<ModuleArgumentItem> getBodyParams() {\n return bodyParams;\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 body_ = s;\n }\n return s;\n }\n }",
"public Object getBody() throws MessagingException {\n if (body == null) {\n body = getMarshaler().unmarshal(exchange, this);\n }\n return body;\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n java.lang.Object ref = body_;\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 body_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int getBodyTemperature() {\n return this.bodyTemperature;\n }",
"public java.lang.String getBody() {\n java.lang.Object ref = body_;\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 (bs.isValidUtf8()) {\n body_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public Body getBody() {\n return new BufferBody(buffer);\n }",
"public String getBodyStyleName() {\r\n return getAttributeAsString(\"bodyStyleName\");\r\n }"
] | [
"0.7956385",
"0.73497576",
"0.71826935",
"0.7045905",
"0.68004614",
"0.65844643",
"0.65597713",
"0.6420325",
"0.63938695",
"0.6357365",
"0.6302405",
"0.6285111",
"0.61868244",
"0.61578226",
"0.6150959",
"0.61412174",
"0.61286944",
"0.6121218",
"0.61194503",
"0.6116627",
"0.608136",
"0.60050815",
"0.59954",
"0.5989804",
"0.59681123",
"0.59569705",
"0.595416",
"0.5951324",
"0.5916007",
"0.5908275",
"0.58867705",
"0.58856285",
"0.5881539",
"0.58761954",
"0.5876184",
"0.5865323",
"0.5858246",
"0.58559334",
"0.5842625",
"0.5842625",
"0.5842625",
"0.58354163",
"0.5833788",
"0.58328825",
"0.58269745",
"0.580159",
"0.57830733",
"0.5729457",
"0.569857",
"0.569857",
"0.56819826",
"0.56819826",
"0.56819826",
"0.56819826",
"0.5663649",
"0.56577426",
"0.56571007",
"0.5643209",
"0.56341505",
"0.56305635",
"0.5607142",
"0.560636",
"0.5546264",
"0.5542525",
"0.5538433",
"0.5531958",
"0.5528968",
"0.55150044",
"0.550081",
"0.5473314",
"0.54705065",
"0.5460643",
"0.5456214",
"0.5456214",
"0.54341775",
"0.5432882",
"0.5432451",
"0.542562",
"0.5391394",
"0.5368172",
"0.5344763",
"0.53432643",
"0.5322456",
"0.53084815",
"0.53070194",
"0.52635694",
"0.52537715",
"0.5246673",
"0.5244296",
"0.5235859",
"0.5234658",
"0.5209945",
"0.5197467",
"0.51968807",
"0.5179872",
"0.51795477",
"0.5164775",
"0.51637226",
"0.51533264",
"0.5144401"
] | 0.72988963 | 2 |
Getter method for the COM property "HybridBodies" | @DISPID(1610940421) //= 0x60050005. The runtime will prefer the VTID if present
@VTID(27)
HybridBodies hybridBodies(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(1610940419) //= 0x60050003. The runtime will prefer the VTID if present\n @VTID(25)\n HybridBodies hybridBodies();",
"@DISPID(1610940418) //= 0x60050002. The runtime will prefer the VTID if present\n @VTID(24)\n Bodies bodies();",
"@DISPID(1610940420) //= 0x60050004. The runtime will prefer the VTID if present\n @VTID(26)\n Bodies bodies();",
"public Vector<YANG_Body> getBodies() {\n\t\treturn bodies;\n\t}",
"public ArrayList<CollisionBody> getBodies() {\n return collisionBodies;\n }",
"SmilBody getBody();",
"public List<Atom> getBody ()\r\n\t{\r\n\t\treturn _body;\r\n\t}",
"public SWIGTYPE_p_SimTK__MobilizedBody getMobilizedBody() {\n return new SWIGTYPE_p_SimTK__MobilizedBody(opensimSimulationJNI.PhysicalFrame_getMobilizedBody(swigCPtr, this), false);\n }",
"CompoundSt getBody () { return body; }",
"public Polygon getBody() {\r\n\t\treturn getRotatedBody(angle);\r\n\t}",
"public String getBody(){\n return bodiesText;\n }",
"public Body getNativeBody() {\r\n\t\treturn box2dComponent.getBody();\r\n\t}",
"private final native NodeRemote getBody0() /*-{\n return this.body;\n\t}-*/;",
"@DISPID(1610940417) //= 0x60050001. The runtime will prefer the VTID if present\n @VTID(23)\n HybridShapes hybridShapes();",
"Body getBody();",
"public org.chartacaeli.model.Body[] getBody() {\n org.chartacaeli.model.Body[] array = new org.chartacaeli.model.Body[0];\n return this.bodyList.toArray(array);\n }",
"public int getMobilizedBodyIndex() {\n return opensimSimulationJNI.PhysicalFrame_getMobilizedBodyIndex(swigCPtr, this);\n }",
"public List<PhysicsJoint> getJoints() {\n return joints;\n }",
"public Body getBody() {\n if (jBody == null) {\n throw new RuntimeException(\"No jimplification happened yet, no body available.\");\n }\n return jBody;\n }",
"public Object getBody() {\n return body;\n }",
"public String getBoundary()\n {\n return _rawBoundary;\n }",
"public byte[] getHeadingPair()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_HEADINGPAIR);\n }",
"public Set<Integer> getNeighbourCellBodies() {\n\t\treturn neighbourCellBodies;\n\t}",
"public AgentBody getBody() {\n\t\treturn body;\n\t}",
"public ClassBodyNode getBody()throws ClassCastException;",
"public String getBody()\n\t{\n\t\treturn m_sBody;\t\n\t}",
"@Override\n\tpublic PhysixBody getRigidBody() {\n\t\treturn rigidBody;\n\t}",
"public List<SignatureNode> getBody() {\n return body;\n }",
"@Override\n public Object getBody() {\n return null;\n }",
"public String getBody() {\r\n\t\treturn mBody;\r\n\t}",
"public BodyLocationPhotoList getBodyLocationPhotos() { return bodyPhotos; }",
"public java.lang.String getBody() {\n return instance.getBody();\n }",
"public int getCellBody() {\n\t\treturn cellBody;\n\t}",
"public LinkedList<Location> getBody() {\n return this.body;\n }",
"public List<BodyDecl> getBodyElelemts() {\n return getBodyElelemtList();\n }",
"public abstract Body getBody();",
"Term getBody();",
"public byte[] getBody() {\n\t\treturn body;\n\t}",
"public byte[] getBody() {\n return body;\n }",
"public JTextField getNBodiesTextField() {\n\t\treturn this.txtNBodies;\n\t}",
"public double getBboxHorizontalSidelength() {\n return getDouble(\"thor\");\n }",
"public java.lang.String getBody() {\n return body_;\n }",
"public final String getScriptBody() {\n return properties.get(SCRIPT_BODY_PROPERTY);\n }",
"int getBodyLength();",
"public AnimalModel getBody() {\n return localBody;\n }",
"public AnimalModel getBody() {\n return localBody;\n }",
"public DrakonMacro getBody()\r\n {\r\n return body;\r\n }",
"public java.util.List<ConnectionBodyParameter> getBodyParameters() {\n return bodyParameters;\n }",
"public String getBody () {\n\t\treturn body;\n\t}",
"public String getBody(){\n return body;\n }",
"org.hl7.fhir.CodeableConcept getBodySite();",
"public Body getBody() {\n return body;\n }",
"public int getBoundary() {\n return boundary;\n }",
"public String getBody() {\r\n return body;\r\n }",
"public String getBody() {\n\t\treturn Body;\n\t}",
"public Object getBody() throws MessagingException {\n if (body == null) {\n body = getMarshaler().unmarshal(exchange, this);\n }\n return body;\n }",
"public String getBody()\n {\n return super.getBody();\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<BodyDecl> getBodyElelemtList() {\n return (List<BodyDecl>)getChild(2);\n }",
"public ArrayList<Integer> getBodyPositions() {\n\t\treturn bodyPositions;\n\t}",
"public String getBody()\n {\n return body;\n }",
"int getOpenBodyEnd() {\n return this.fOpenBodyRange[1];\n }",
"com.google.protobuf.ByteString\n getBodyBytes();",
"com.google.protobuf.ByteString\n getBodyBytes();",
"ComponentBodyType getComponentInfo();",
"public TurtleBehaviorInterface getBehavior()\n {\n return mBehavior;\n }",
"public com.google.protobuf.ByteString\n getBodyBytes() {\n return instance.getBodyBytes();\n }",
"public String getBody_() {\n return body_;\n }",
"@Override\n\tpublic float getOrientation() {\n\t\treturn body.getAngle();\n\t}",
"public GeometryType getCMUGeometry() {\n return geometry;\n }",
"@JsProperty(name = \"heading\")\n public native double heading();",
"public Body getBody1() {\r\n\t\treturn body1;\r\n\t}",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"public String getBody() {\n return body;\n }",
"DBody getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"String getBody();",
"public SWIGTYPE_p_SimTK__MobilizedBody updMobilizedBody() {\n return new SWIGTYPE_p_SimTK__MobilizedBody(opensimSimulationJNI.PhysicalFrame_updMobilizedBody(swigCPtr, this), false);\n }",
"SmilHead getHead();",
"public String getBodyClassId() {\n return \"spotmouth_default_id\";\n }",
"public Position[] getBoundary() {\n\t\treturn boundary.clone();\n\t}",
"public Double getCompassHeading() {\n\t\treturn compassHeading;\n\t}",
"@Embedded\n @JsonProperty(\"hypothesis\")\n public CompactMealyMachineProxy getHypothesis() {\n return hypothesis;\n }",
"public final native int getHeading() /*-{\n return this.getHeading() || 0;\n }-*/;",
"public HeadComponent getHead() {\n\t\treturn (HeadComponent) snake.getLast();\n\t}",
"public interface ThrottleMediatorPropertiesEditionPart {\n\n\t/**\n\t * @return the commentsList\n\t * \n\t */\n\tpublic EList getCommentsList();\n\n\t/**\n\t * Defines a new commentsList\n\t * @param newValue the new commentsList to set\n\t * \n\t */\n\tpublic void setCommentsList(EList newValue);\n\n\t/**\n\t * Add a value to the commentsList multivalued attribute.\n\t * @param newValue the value to add\n\t */\n\tpublic void addToCommentsList(Object newValue);\n\n\t/**\n\t * Remove a value to the commentsList multivalued attribute.\n\t * @param newValue the value to remove\n\t */\n\tpublic void removeToCommentsList(Object newValue);\n\n\n\t/**\n\t * @return the Reverse\n\t * \n\t */\n\tpublic Boolean getReverse();\n\n\t/**\n\t * Defines a new Reverse\n\t * @param newValue the new Reverse to set\n\t * \n\t */\n\tpublic void setReverse(Boolean newValue);\n\n\n\t/**\n\t * @return the groupId\n\t * \n\t */\n\tpublic String getGroupId();\n\n\t/**\n\t * Defines a new groupId\n\t * @param newValue the new groupId to set\n\t * \n\t */\n\tpublic void setGroupId(String newValue);\n\n\n\t/**\n\t * @return the description\n\t * \n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * Defines a new description\n\t * @param newValue the new description to set\n\t * \n\t */\n\tpublic void setDescription(String newValue);\n\n\n\t/**\n\t * @return the OnAcceptBranchsequenceType\n\t * \n\t */\n\tpublic Enumerator getOnAcceptBranchsequenceType();\n\n\t/**\n\t * Init the OnAcceptBranchsequenceType\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initOnAcceptBranchsequenceType(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new OnAcceptBranchsequenceType\n\t * @param newValue the new OnAcceptBranchsequenceType to set\n\t * \n\t */\n\tpublic void setOnAcceptBranchsequenceType(Enumerator newValue);\n\n\n\t/**\n\t * @return the OnRejectBranchsequenceType\n\t * \n\t */\n\tpublic Enumerator getOnRejectBranchsequenceType();\n\n\t/**\n\t * Init the OnRejectBranchsequenceType\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initOnRejectBranchsequenceType(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new OnRejectBranchsequenceType\n\t * @param newValue the new OnRejectBranchsequenceType to set\n\t * \n\t */\n\tpublic void setOnRejectBranchsequenceType(Enumerator newValue);\n\n\n\t/**\n\t * @return the policyType\n\t * \n\t */\n\tpublic Enumerator getPolicyType();\n\n\t/**\n\t * Init the policyType\n\t * @param input the viewer input\n\t * @param current the current value\n\t */\n\tpublic void initPolicyType(Object input, Enumerator current);\n\n\t/**\n\t * Defines a new policyType\n\t * @param newValue the new policyType to set\n\t * \n\t */\n\tpublic void setPolicyType(Enumerator newValue);\n\n\n\t/**\n\t * @return the maxConcurrentAccessCount\n\t * \n\t */\n\tpublic String getMaxConcurrentAccessCount();\n\n\t/**\n\t * Defines a new maxConcurrentAccessCount\n\t * @param newValue the new maxConcurrentAccessCount to set\n\t * \n\t */\n\tpublic void setMaxConcurrentAccessCount(String newValue);\n\n\n\n\n\t/**\n\t * Init the policyEntries\n\t * @param current the current value\n\t * @param containgFeature the feature where to navigate if necessary\n\t * @param feature the feature to manage\n\t */\n\tpublic void initPolicyEntries(ReferencesTableSettings settings);\n\n\t/**\n\t * Update the policyEntries\n\t * @param newValue the policyEntries to update\n\t * \n\t */\n\tpublic void updatePolicyEntries();\n\n\t/**\n\t * Adds the given filter to the policyEntries edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToPolicyEntries(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the policyEntries edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToPolicyEntries(ViewerFilter filter);\n\n\t/**\n\t * @return true if the given element is contained inside the policyEntries table\n\t * \n\t */\n\tpublic boolean isContainedInPolicyEntriesTable(EObject element);\n\n\n\n\n\t// Start of user code for OnAcceptBranchSequenceKey specific getters and setters declaration\n public RegistryKeyProperty getOnAcceptBranchSequenceKey();\n\n public void setOnAcceptBranchSequenceKey(RegistryKeyProperty registryKeyProperty);\n\n // End of user code\n\t// Start of user code for OnRejectBranchSequenceKey specific getters and setters declaration\n public RegistryKeyProperty getOnRejectBranchSequenceKey();\n\n public void setOnRejectBranchSequenceKey(RegistryKeyProperty registryKeyProperty);\n\n // End of user code\n\t// Start of user code for policyKey specific getters and setters declaration\n public RegistryKeyProperty getPolicyKey();\n\n public void setPolicyKey(RegistryKeyProperty registryKeyProperty);\n\n // End of user code\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}",
"public BlueSphere getBlueObjects() {\n return blueValues;\n }",
"public String getTypeOfBody() {\n\t\treturn typeOfBody;\n\t}",
"public final Object mo32329S() {\n return this.f20625g.mo32340b(this.f20626h);\n }",
"public List<Vector3f> getInterpolatedHeadings()\n {\n return interpolatedHeadings;\n }",
"public float getMass () {\n\t\treturn body.getMass();\n\t}",
"public final PB getPerceptionBody() {\n\t\treturn this.__perception_body;\n\t}",
"public PosSymbol getBodyName() {\n return bodyName;\n }",
"public List<BodyDecl> getBodyElelemtsNoTransform() {\n return getBodyElelemtListNoTransform();\n }",
"public float getInertia () {\n\t\treturn body.getInertia();\n\t}",
"public String getBodyLoc() {\n return bodyLoc;\n }",
"com.google.protobuf.ByteString\n getPropertiesBytes();",
"BodyPart getGearLocation();"
] | [
"0.76568747",
"0.62821287",
"0.627322",
"0.6260263",
"0.60956794",
"0.59787387",
"0.58880436",
"0.587728",
"0.58672106",
"0.5793769",
"0.5759326",
"0.56414616",
"0.5616917",
"0.5611326",
"0.5582906",
"0.55045646",
"0.5468633",
"0.5388771",
"0.5378441",
"0.53776187",
"0.5346134",
"0.53290975",
"0.53166354",
"0.52779907",
"0.5252318",
"0.52309424",
"0.52078635",
"0.5203454",
"0.51923364",
"0.51547277",
"0.5153886",
"0.51486486",
"0.51384854",
"0.51364505",
"0.5133862",
"0.5129932",
"0.5127586",
"0.51261026",
"0.51103085",
"0.5094718",
"0.50863165",
"0.5083405",
"0.5077785",
"0.5067223",
"0.5066856",
"0.5066856",
"0.5052295",
"0.50412714",
"0.50405383",
"0.50347954",
"0.50313795",
"0.50141543",
"0.5006939",
"0.5000447",
"0.4994907",
"0.4991233",
"0.49899685",
"0.49744186",
"0.49497065",
"0.4947018",
"0.49392232",
"0.4938744",
"0.4938744",
"0.4937313",
"0.49297523",
"0.49293733",
"0.49244013",
"0.49232462",
"0.49097613",
"0.49093768",
"0.4902166",
"0.49014783",
"0.49014783",
"0.49014783",
"0.48833597",
"0.48830348",
"0.48830348",
"0.48830348",
"0.48830348",
"0.48792458",
"0.48764163",
"0.48743838",
"0.4870773",
"0.48461777",
"0.4835315",
"0.48118737",
"0.48090777",
"0.48042983",
"0.48028156",
"0.4789565",
"0.47894633",
"0.47862998",
"0.47855237",
"0.4785405",
"0.4779959",
"0.47752905",
"0.47689468",
"0.4766235",
"0.47651643",
"0.47563037"
] | 0.7671092 | 0 |
Getter method for the COM property "ShapeFactory" | @DISPID(1610940422) //= 0x60050006. The runtime will prefer the VTID if present
@VTID(28)
Factory shapeFactory(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Shape getShape();",
"public Shape getShape();",
"@DISPID(1610940423) //= 0x60050007. The runtime will prefer the VTID if present\n @VTID(29)\n Factory hybridShapeFactory();",
"ShapeType getShapeType();",
"public Shape getShape() {\n\treturn shape;\n }",
"public Shape getShape() { return shape; }",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public Shape getShape() {\n return shape;\n }",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"protected Shape getShape()\n {\n return null;\n }",
"public Shape getShape() {\n\t\treturn null;\n\t}",
"public String getShapeType(){\n\t\treturn shapeType;\n\t}",
"public Circle getShape(){\n\t\treturn new Circle();\n\t}",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public abstract ProductFactory getFactory();",
"public Shape getShape() {\n return null;\n }",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }",
"public Shape getShape() {\n\t\treturn _shape!=null? _shape: new CircleShape(new Vec2f(0,0), 0);\n\t}",
"String getShapeName();",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"IShape getShape(String name);",
"public JDOMFactory getFactory() {\n return this.factory;\n }",
"public interface ShapeFactory{\n Line createLine();\n Rectangle createRectangle();\n Circle createCircle();\n Polygon createPolygon();\n}",
"public Shape getShape() \n {\n return new EllipseShape(new Extent(3,3), Color.RED,true);\n }",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"public interface IShapeGenerator {\n\n Point getPoint(Integer i);\n String getCreatedShape();\n}",
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }",
"public OBStoreFactory getFactory();",
"public ValueFactory<K, V> getFactory()\n {\n return factory;\n }",
"@Override\n\tpublic void getShape() {\n\n\t}",
"@Nonnull\n public FactoryType getFactoryType() {\n return type;\n }",
"public Ellipse2D getShape()\r\n {\r\n if(this.stable){\r\n return new Ellipse2D.Double(x, y, XSIZE*2, YSIZE*2);\r\n }\r\n else\r\n return new Ellipse2D.Double(x, y, XSIZE, YSIZE);\r\n }",
"@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}",
"public String whatShape();",
"public int getMyShape(){ return myShape;}",
"public int getFileShapeType() {\n return fileShapeType;\n }",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"@Override\n IDeviceFactory getFactory();",
"public int[] getShape() {\n return shape;\n }",
"int getShapeId();",
"public final Method getFactoryMethod() {\n\treturn factoryMethod;\n }",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"Shape newShape(GraphicalObject g) throws RemoteException;",
"public Object getShapes() {\r\n if (shapes != null) {\r\n return shapes;\r\n }\r\n ValueBinding vb = getValueBinding(\"shapes\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }",
"IShape getCurrentShape();",
"private void createShape() {\n if (shape == null) {\n float firstItemMargin = noxConfig.getNoxItemMargin();\n float firstItemSize = noxConfig.getNoxItemSize();\n int viewHeight = getMeasuredHeight();\n int viewWidth = getMeasuredWidth();\n int numberOfElements = noxItemCatalog.size();\n ShapeConfig shapeConfig =\n new ShapeConfig(numberOfElements, viewWidth, viewHeight, firstItemSize, firstItemMargin);\n shape = ShapeFactory.getShapeByKey(defaultShapeKey, shapeConfig);\n } else {\n shape.setNumberOfElements(noxItemCatalog.size());\n }\n shape.calculate();\n }",
"public BrickFactory<E> getBrickFactory()\r\n\t{\r\n\t\treturn brickFactory;\r\n\t}",
"public abstract ArrayList<Shape> getShapes();",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"@Override\n\tprotected Shape getShape() {\n\t\tRectangle2D ellipse = new Rectangle2D.Double(this.getX(), this.getY(), this.getDimension(), this.getDimension()/2);\n\t return ellipse;\n\t}",
"public ConnectorFigure getPrimaryShape() {\r\n\t\treturn (ConnectorFigure) primaryShape;\r\n\t}",
"public abstract int[] getShape();",
"public Shape[] getMarkerShapes()\n{\n if(_markerShapes!=null) return _markerShapes;\n Shape shp0 = new Ellipse(0,0,8,8);\n Shape shp1 = new Polygon(4,0,8,4,4,8,0,4);\n Shape shp2 = new Rect(0,0,8,8);\n Shape shp3 = new Polygon(4,0,8,8,0,8);\n Shape shp4 = new Polygon(0,0,8,0,4,8);\n return _markerShapes = new Shape[] { shp0, shp1, shp2, shp3, shp4 };\n}",
"public CellFactory getCellFactory() {\r\n \t\treturn cellFactory;\r\n \t}",
"@Override\r\n\tpublic String creatorType() {\n\t\treturn \"ShapeViewer\";\r\n\t}",
"@Override\n\tpublic int getShapeId()\n\t{\n\t\treturn shapeId;\n\t}",
"public static IGUIFactory getGUIFactory() {\n\n return m_GUIFactory;\n\n }",
"public static synchronized ANSSRegionsFactory getFactory() {\n return getFactory(true);\n }",
"protected IFigure createNodeShape() {\r\n\t\treturn primaryShape = new ConnectorFigure();\r\n\t}",
"public Rectangle getShape() \n\t{\n\t\treturn box;\n\t}",
"public ArrayList<PhysicsShape> getShapes() {\n\t\treturn shapes;\n\t}",
"public Object getPersistentShape(int _shape)\n/* 215: */ {\n/* 216:302 */ switch (_shape)\n/* 217: */ {\n/* 218: */ case 0: \n/* 219:303 */ return this.presentation;\n/* 220: */ case -1: \n/* 221:304 */ return this.icon;\n/* 222: */ }\n/* 223:306 */ return null;\n/* 224: */ }",
"public TypesFactory getTypesFactory() {\n\t\treturn (TypesFactory) getEFactoryInstance();\n\t}",
"Shape createShape(BorderType borderType);",
"public ServiceFactory getServiceFactory() {\n return serviceFactory;\n }",
"public interface ShapeTemplate { #\n\t//Show/hide when rendering\n\tpublic void show();\n\tpublic void hide();\n\tpublic boolean getVisible();\n\t\n\t//Storage/retreival of shape mesh\n\tpublic char[][] regenCharTable();\n\tpublic char[][] getCharTable();\n\tpublic String[] getStringTable();\n\t\n\t//Internal storage of current rendered position\n\tpublic Position getPosition();\n\tpublic void setPosition(int x, int y);\n\t\n\t//Width/height accessor properties\n\tpublic int getWidth();\n\tpublic int getHeight();\n\t\n\t//Fill\n\tpublic char getFillChar();\n\tpublic void setFillChar(char newChar);\n\tpublic boolean getFilled();\n\tpublic void setFilled(boolean isFilled);\n\t\n\t//ToString\n\tpublic String toString();\n}",
"public Rectangle getShape(){\n return myRectangle;\n }",
"@Override\n Shape getShape() {\n return Shape.Square;\n }",
"public List<Shape> getDrawShapes();",
"public static List<Shape> getListOfShapes() {\n\t\treturn listOfShapes;\n\t}",
"public interface Shape {\n\n String getDescription();\n}",
"public interface GeometricShape {\n double area();\n\n double perimeter();\n\n void drawShape();\n}",
"@Override\n public void create() {\n shapeRenderer = new ShapeRenderer();\n }",
"@Override\n\tpublic Vector<Shape> getShapes() {\n\t\treturn this.shapes;\n\t}",
"@objid (\"0078ca26-5a20-10c8-842f-001ec947cd2a\")\n GenericFactory getGenericFactory();",
"public interface Shape {\n\n double size();\n Color color();\n\n\n}",
"@Override\n public String getShapeSetId() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"@Override\n\tpublic String getShape() {\n\t\treturn \"Rectangle\";\n\t}",
"public ShapeType getType() {\n\t\t\treturn type.get();\n\t\t}",
"public Factory getFactory()\r\n {\r\n if( m_factory != null ) return m_factory;\r\n m_factory = FactoryHelper.narrow( m_primary );\r\n return m_factory;\r\n }",
"String getLayerShapeName();",
"public final Vertex.Factory<? extends Vertex> vertexFactory() { return vertexFactory; }",
"Factory getFactory()\n {\n return configfile.factory;\n }",
"public Color getShapeColor() {\n\t\tif (_shape != null) return _shape.getColor();\n\t\telse return null;\n\t}",
"public final ObjectProperty<Callback<T, Node>> segmentViewFactoryProperty() {\n return segmentViewFactory;\n }",
"FmprimitivesFactory getFmprimitivesFactory();",
"public ShapeGroup getShapeGroup() {\n return referencedShapeGroup;\n }",
"public static Shape getCurrentShape() {\n\t\treturn currentShape;\n\t}",
"static List<Shape> createShapeArray(){\n return Arrays.asList(new Rectangle(new Point(0,0),new Point(0,4),new Point(2,4), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,2),new Point(2,2), new Point(2,0)),\n new Rectangle(new Point(0,0),new Point(0,3),new Point(2,3), new Point(2,0)),\n new Circle(new Point(0,0),new Point(0,1)),\n new Circle(new Point(1,0),new Point(1,4)),\n new Circle(new Point(1,0),new Point(0,2)),\n new Triangle(new Point(0,0),new Point(0,2),new Point(2,0)),\n new Triangle(new Point(0,0),new Point(0,4),new Point(4,0)),\n new Triangle(new Point(0,0),new Point(0,1),new Point(1,0)));\n\n }",
"FlowDesignerFactory getFlowDesignerFactory();",
"public JavafxTypesFactoryImpl() {\n\t\tsuper();\n\t}",
"public StyleAbstractFactory getStyleFactory() {\r\n\t\t// Leggo da file esterno quale Factory utilizzare\r\n String stile = ULeggiDaFile.getStileInterfaccia();\r\n // Factory da restituire\r\n StyleAbstractFactory styleAbstractFactory;\r\n switch (stile) {\r\n\t\tcase \"light\":\r\n\t\t\tstyleAbstractFactory = LightStyleFactory.getInstance();\r\n\t\t\tbreak; \r\n\t\tcase \"dark\":\r\n\t\t\tstyleAbstractFactory = DarkStyleFactory.getInstance();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t// Di default fornisco la factory \"light\"\r\n\t\t\tstyleAbstractFactory = LightStyleFactory.getInstance();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn styleAbstractFactory;\r\n\t}",
"public String getRandomShape(){\n\t\tRandom randon = new Random();\n\t\treturn Shape.values()[randon.nextInt(Shape.values().length)].toString();\n\t}",
"IShape getStartShape();",
"public MissingDockFactory getMissingFactory() {\n return missingFactory;\n }"
] | [
"0.7227231",
"0.714196",
"0.6961234",
"0.69098145",
"0.6877577",
"0.68496925",
"0.68447495",
"0.684371",
"0.683157",
"0.68086433",
"0.6732153",
"0.67140067",
"0.66589046",
"0.66475666",
"0.6632471",
"0.6621294",
"0.6616419",
"0.6602028",
"0.66007084",
"0.652058",
"0.65178883",
"0.65124184",
"0.64019513",
"0.63896525",
"0.63764083",
"0.6350526",
"0.6347852",
"0.63149726",
"0.6302352",
"0.62914723",
"0.6290267",
"0.62860537",
"0.6247487",
"0.6234146",
"0.61437917",
"0.6114953",
"0.6112372",
"0.6107748",
"0.60716283",
"0.603585",
"0.60356903",
"0.60253245",
"0.6016761",
"0.59944624",
"0.5992194",
"0.5988034",
"0.5986564",
"0.59857833",
"0.5976635",
"0.5975421",
"0.59658617",
"0.5964699",
"0.59568435",
"0.5941566",
"0.5937981",
"0.593161",
"0.592766",
"0.59200627",
"0.5918313",
"0.591694",
"0.5908871",
"0.59010816",
"0.5873016",
"0.5851633",
"0.5851432",
"0.5814708",
"0.5811542",
"0.5790638",
"0.576777",
"0.57597196",
"0.57527995",
"0.5743403",
"0.57364786",
"0.57344806",
"0.5730951",
"0.5730923",
"0.571483",
"0.57049423",
"0.5696884",
"0.5664476",
"0.5662488",
"0.5659032",
"0.5648575",
"0.56388795",
"0.5638863",
"0.5638564",
"0.5630781",
"0.5618304",
"0.5606193",
"0.56024116",
"0.55989724",
"0.55866873",
"0.5583717",
"0.55769914",
"0.5574342",
"0.5572148",
"0.5560838",
"0.5550849",
"0.5549775",
"0.55473065"
] | 0.7557735 | 0 |
Getter method for the COM property "HybridShapeFactory" | @DISPID(1610940423) //= 0x60050007. The runtime will prefer the VTID if present
@VTID(29)
Factory hybridShapeFactory(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(1610940422) //= 0x60050006. The runtime will prefer the VTID if present\n @VTID(28)\n Factory shapeFactory();",
"Shape getShape();",
"public Shape getShape();",
"@DISPID(1610940417) //= 0x60050001. The runtime will prefer the VTID if present\n @VTID(23)\n HybridShapes hybridShapes();",
"ShapeType getShapeType();",
"public Shape getShape() { return shape; }",
"public Shape getShape() {\n\treturn shape;\n }",
"public Shape getShape() {\n\t\treturn null;\n\t}",
"protected Shape getShape()\n {\n return null;\n }",
"public Shape getShape() {\n return null;\n }",
"@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }",
"public Shape getShape() {\n return shape;\n }",
"public Shape getShape() {\r\n\t\t\treturn shape;\r\n\t\t}",
"public Shape getShape() {\n\t\treturn shape;\n\t}",
"public FireShapes getShape() {\r\n\t\treturn shape;\r\n\t}",
"public String getShapeType(){\n\t\treturn shapeType;\n\t}",
"public ConnectorFigure getPrimaryShape() {\r\n\t\treturn (ConnectorFigure) primaryShape;\r\n\t}",
"protected MapShapeAdapter getShapeAdapter() {\r\n return shapeAdapter;\r\n }",
"public ShapeType getShape() {\n\t\treturn this.shape;\n\t}",
"public Shape getShape()\n {\n return Shape.this;\n }",
"public Shape getMyShape() {\n\t\treturn myShape;\n\t}",
"public Circle getShape(){\n\t\treturn new Circle();\n\t}",
"public Shape getShape() {\n\t\treturn this;\n\t}",
"public Shape getShape() {\n\t\treturn _shape!=null? _shape: new CircleShape(new Vec2f(0,0), 0);\n\t}",
"@Override\n\tprotected Shape getShape() {\n\t\treturn null;\n\t}",
"String getShapeName();",
"public abstract ProductFactory getFactory();",
"public OBStoreFactory getFactory();",
"public String whatShape();",
"public IconShape shape() {\n\t\treturn shape;\n\t}",
"@Override\n\tpublic void getShape() {\n\n\t}",
"@Override\n public FillableShape getShape()\n {\n return FillableShape.this;\n }",
"public BrickFactory<E> getBrickFactory()\r\n\t{\r\n\t\treturn brickFactory;\r\n\t}",
"protected IFigure createNodeShape() {\r\n\t\treturn primaryShape = new ConnectorFigure();\r\n\t}",
"public Shape getShape() {\n if (model == null) {\n return null;\n }\n\n // check to see if we already made this one.\n Object retval = shapeCache.get(model);\n\n // if not, make it and store a copy in the cache..\n if (retval == null) {\n retval = makeBarb();\n if (retval instanceof GeneralPath) {\n shapeCache.put(model.clone(), ((GeneralPath) retval).clone());\n } else {\n shapeCache.put(model.clone(), ((Area) retval).clone());\n }\n }\n\n return (Shape) retval;\n }",
"IShape getShape(String name);",
"public Shape getShape() \n {\n return new EllipseShape(new Extent(3,3), Color.RED,true);\n }",
"public interface IShapeGenerator {\n\n Point getPoint(Integer i);\n String getCreatedShape();\n}",
"Shape newShape(GraphicalObject g) throws RemoteException;",
"@Override\r\n\tpublic String creatorType() {\n\t\treturn \"ShapeViewer\";\r\n\t}",
"public int getMyShape(){ return myShape;}",
"public interface ShapeFactory{\n Line createLine();\n Rectangle createRectangle();\n Circle createCircle();\n Polygon createPolygon();\n}",
"public abstract int[] getShape();",
"int getShapeId();",
"@Override\n IDeviceFactory getFactory();",
"public abstract ArrayList<Shape> getShapes();",
"@Override\n\tpublic Polygon getCollisionShape() {\n\t\treturn null;\n\t}",
"public int getFileShapeType() {\n return fileShapeType;\n }",
"public BoundingShape getBoundingShape() {\n\treturn boundingShape;\n }",
"public int[] getShape() {\n return shape;\n }",
"IShape getCurrentShape();",
"public Object getPersistentShape(int _shape)\n/* 215: */ {\n/* 216:302 */ switch (_shape)\n/* 217: */ {\n/* 218: */ case 0: \n/* 219:303 */ return this.presentation;\n/* 220: */ case -1: \n/* 221:304 */ return this.icon;\n/* 222: */ }\n/* 223:306 */ return null;\n/* 224: */ }",
"@Override\n\tpublic int getShapeId()\n\t{\n\t\treturn shapeId;\n\t}",
"public final ObjectProperty<Callback<T, Node>> segmentViewFactoryProperty() {\n return segmentViewFactory;\n }",
"SwmlFactory getSwmlFactory();",
"public Shape[] getMarkerShapes()\n{\n if(_markerShapes!=null) return _markerShapes;\n Shape shp0 = new Ellipse(0,0,8,8);\n Shape shp1 = new Polygon(4,0,8,4,4,8,0,4);\n Shape shp2 = new Rect(0,0,8,8);\n Shape shp3 = new Polygon(4,0,8,8,0,8);\n Shape shp4 = new Polygon(0,0,8,0,4,8);\n return _markerShapes = new Shape[] { shp0, shp1, shp2, shp3, shp4 };\n}",
"public Shape getShape()\n\t{\n\t\treturn rect;\n\t}",
"private void createShape() {\n if (shape == null) {\n float firstItemMargin = noxConfig.getNoxItemMargin();\n float firstItemSize = noxConfig.getNoxItemSize();\n int viewHeight = getMeasuredHeight();\n int viewWidth = getMeasuredWidth();\n int numberOfElements = noxItemCatalog.size();\n ShapeConfig shapeConfig =\n new ShapeConfig(numberOfElements, viewWidth, viewHeight, firstItemSize, firstItemMargin);\n shape = ShapeFactory.getShapeByKey(defaultShapeKey, shapeConfig);\n } else {\n shape.setNumberOfElements(noxItemCatalog.size());\n }\n shape.calculate();\n }",
"public static synchronized ANSSRegionsFactory getFactory() {\n return getFactory(true);\n }",
"public Rectangle getShape(){\n return myRectangle;\n }",
"public interface GeometricShape {\n double area();\n\n double perimeter();\n\n void drawShape();\n}",
"default Component getQuickPropertiesComponent()\r\n {\r\n return null;\r\n }",
"public Ellipse2D getShape()\r\n {\r\n if(this.stable){\r\n return new Ellipse2D.Double(x, y, XSIZE*2, YSIZE*2);\r\n }\r\n else\r\n return new Ellipse2D.Double(x, y, XSIZE, YSIZE);\r\n }",
"@Override\n Shape getShape() {\n return Shape.Square;\n }",
"@Override\n public String getShapeSetId() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }",
"@Override\n public void create() {\n shapeRenderer = new ShapeRenderer();\n }",
"public interface Shape {\n\n String getDescription();\n}",
"public boolean\ngetShowBoundingShape()\n{\n\treturn (this.showBoundingShape);\n}",
"public interface ShapeTemplate { #\n\t//Show/hide when rendering\n\tpublic void show();\n\tpublic void hide();\n\tpublic boolean getVisible();\n\t\n\t//Storage/retreival of shape mesh\n\tpublic char[][] regenCharTable();\n\tpublic char[][] getCharTable();\n\tpublic String[] getStringTable();\n\t\n\t//Internal storage of current rendered position\n\tpublic Position getPosition();\n\tpublic void setPosition(int x, int y);\n\t\n\t//Width/height accessor properties\n\tpublic int getWidth();\n\tpublic int getHeight();\n\t\n\t//Fill\n\tpublic char getFillChar();\n\tpublic void setFillChar(char newChar);\n\tpublic boolean getFilled();\n\tpublic void setFilled(boolean isFilled);\n\t\n\t//ToString\n\tpublic String toString();\n}",
"public static List<Shape> getListOfShapes() {\n\t\treturn listOfShapes;\n\t}",
"public Shape getShape() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getShape();\n\t\t}\n\t}",
"public ArrayList<PhysicsShape> getShapes() {\n\t\treturn shapes;\n\t}",
"@Override\n\tprotected Shape getShape() {\n\t\tRectangle2D ellipse = new Rectangle2D.Double(this.getX(), this.getY(), this.getDimension(), this.getDimension()/2);\n\t return ellipse;\n\t}",
"public static IGUIFactory getGUIFactory() {\n\n return m_GUIFactory;\n\n }",
"public ValueFactory<K, V> getFactory()\n {\n return factory;\n }",
"public final Method getFactoryMethod() {\n\treturn factoryMethod;\n }",
"GlprotoFactory getGlprotoFactory();",
"public Object getShapes() {\r\n if (shapes != null) {\r\n return shapes;\r\n }\r\n ValueBinding vb = getValueBinding(\"shapes\");\r\n return vb != null ? vb.getValue(getFacesContext()) : null;\r\n }",
"String getLayerShapeName();",
"IShape getStartShape();",
"public String getURL() { return (String)get(\"RMShapeURL\"); }",
"public ShapeType getType() {\n\t\t\treturn type.get();\n\t\t}",
"public LogicalGraphFactory getLogicalGraphFactory() {\n return (LogicalGraphFactory) graphFactory;\n }",
"public List<Shape> getDrawShapes();",
"Shape createShape(BorderType borderType);",
"public Rectangle getShape() \n\t{\n\t\treturn box;\n\t}",
"@Nonnull\n public FactoryType getFactoryType() {\n return type;\n }",
"public PresentationManager.StubFactoryFactory getStubFactoryFactory(boolean paramBoolean) {\n/* 167 */ if (paramBoolean) {\n/* 168 */ return this.dynamicStubFactoryFactory;\n/* */ }\n/* 170 */ return this.staticStubFactoryFactory;\n/* */ }",
"@Override\n\tprotected IFigure createFigure() {\n\t\tIFigure figure = new NoCDynamicCoreFigure();\n\t\treturn figure;\n\t}",
"public CellFactory getCellFactory() {\r\n \t\treturn cellFactory;\r\n \t}",
"public IfcShapeAspect getShapeAspectStyle()\n\t{\n\t\treturn this.ShapeAspectStyle;\n\t}",
"public ObjectProperty<ShapeType> typeProperty() {\n\t\t\treturn type;\n\t\t}",
"LinkedHashMap<String, IAnimatableShapeReadOnly> getShapeMap();",
"public static TdiComponentShapeFactory getNewInstance(TdiComponentShapeFactory componentRef) {\n TdiImplementationShape impl = new TdiImplementation(new HashMap<>(),\n TestData.DummyPlatform::new);\n\n return componentRef.newInstance(\"dummy\", impl);\n }",
"@Override\n\tpublic String getShape() {\n\t\treturn \"Rectangle\";\n\t}",
"public ObjectHelperFactory getObjectHelperFactory(){\r\n return this.helperFactory;\r\n }",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"JDefinedClass objectFactory();",
"public final Vertex.Factory<? extends Vertex> vertexFactory() { return vertexFactory; }",
"protected abstract boolean isShapeSimple();"
] | [
"0.679011",
"0.6671473",
"0.6666425",
"0.6538501",
"0.6466183",
"0.64286923",
"0.64050347",
"0.63910174",
"0.6384009",
"0.6374903",
"0.636569",
"0.6356568",
"0.6351948",
"0.63370866",
"0.632962",
"0.6264806",
"0.62295467",
"0.62256163",
"0.6219979",
"0.6184107",
"0.6173686",
"0.60821235",
"0.5998845",
"0.5989593",
"0.5970299",
"0.5918041",
"0.5892901",
"0.58878124",
"0.58863956",
"0.58743745",
"0.58709437",
"0.5851717",
"0.5835221",
"0.58184594",
"0.5774008",
"0.5728849",
"0.5719472",
"0.5696878",
"0.56812054",
"0.56426567",
"0.5634718",
"0.5612066",
"0.5609227",
"0.5597943",
"0.55915916",
"0.5584009",
"0.55795157",
"0.55786943",
"0.55664545",
"0.55435765",
"0.55198497",
"0.55034256",
"0.5500606",
"0.5498963",
"0.5471992",
"0.5408199",
"0.53992695",
"0.53965044",
"0.5371183",
"0.53672385",
"0.53645355",
"0.53592545",
"0.5354715",
"0.53513074",
"0.53415585",
"0.53345543",
"0.5334346",
"0.53325474",
"0.5322328",
"0.53209895",
"0.5313963",
"0.53133667",
"0.53102386",
"0.5307076",
"0.5296013",
"0.5285586",
"0.5283368",
"0.5277294",
"0.5266782",
"0.52636355",
"0.52517974",
"0.52492785",
"0.52390504",
"0.52372986",
"0.52372116",
"0.5230295",
"0.52282494",
"0.5223761",
"0.5223162",
"0.52224976",
"0.521664",
"0.5214461",
"0.5210238",
"0.520903",
"0.52035236",
"0.5194268",
"0.51936334",
"0.51817185",
"0.5171929",
"0.5169671"
] | 0.7933282 | 0 |
Getter method for the COM property "SheetMetalFactory" | @DISPID(1610940424) //= 0x60050008. The runtime will prefer the VTID if present
@VTID(30)
Factory sheetMetalFactory(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(1610940425) //= 0x60050009. The runtime will prefer the VTID if present\n @VTID(31)\n AnyObject sheetMetalParameters();",
"@DISPID(149)\n @PropGet\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@DISPID(149)\n @PropGet\n excel.XlCreator getCreator();",
"public CellFactory getCellFactory() {\r\n \t\treturn cellFactory;\r\n \t}",
"public abstract ProductFactory getFactory();",
"default Component getQuickPropertiesComponent()\r\n {\r\n return null;\r\n }",
"@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(8)\n com.exceljava.com4j.excel.XlCreator getCreator();",
"@VTID(8)\r\n excel.XlCreator getCreator();",
"OurIfcMaterial createOurIfcMaterial();",
"public MissingDockFactory getMissingFactory() {\n return missingFactory;\n }",
"FlowDesignerFactory getFlowDesignerFactory();",
"public OBStoreFactory getFactory();",
"public abstract String getFeeling();",
"public static float getMetalMake(UnitDef def) {\n if (def.getName().equals(\"armmakr\") || def.getName().equals(\"armmmkr\") || def.getName().equals(\"cormakr\") || def.getName().equals(\"cormmkr\")) {\n return 0.000666f;\n } else {\n return 0;\n }\n }",
"@VTID(8)\n excel.XlCreator getCreator();",
"@Override\n protected Sheet createSheet() {\n Sheet sheet = Sheet.createDefault();\n // Create a set of properties\n Sheet.Set set = Sheet.createPropertiesSet();\n\n set.put(getNameProperty());\n set.put(getMajorProperty());\n set.put(getMinorProperty());\n set.put(getPatchProperty());\n set.put(getDescriptionProperty());\n set.put( getGitProperty());\n set.put( getBranchProperty());\n\n // Add the set of properties to the sheet\n sheet.put(set);\n\n return sheet;\n }",
"public String getInitialFactory() {\r\n return initialFactory;\r\n }",
"OurIfcMaterialLayer createOurIfcMaterialLayer();",
"public NM getExternalScalingFactorTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(42, 0);\r\n\t\treturn retVal;\r\n }",
"@Override\n IDeviceFactory getFactory();",
"public final ObjectProperty<Callback<ListView<T>, ListCell<T>>> cellFactoryProperty() {\n\n return this.getWrappedControl().cellFactoryProperty();\n }",
"@DISPID(1610940423) //= 0x60050007. The runtime will prefer the VTID if present\n @VTID(29)\n Factory hybridShapeFactory();",
"SwmlFactory getSwmlFactory();",
"public Magnifier getMagnifier() {\n\t\treturn null;\n\t}",
"public IColorFreeformManager getColorFreeformManager() {\n if (this.mColorFreeformManager == null) {\n this.mColorFreeformManager = (IColorFreeformManager) ColorLocalServices.getService(IColorFreeformManager.class);\n }\n return this.mColorFreeformManager;\n }",
"public NM getInternalScalingFactorTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(41, 0);\r\n\t\treturn retVal;\r\n }",
"@Bean\n public IPortalUrlFactory getPortalUrlFactory() {\n return Locator.findMBean(IPortalUrlFactory.class, IPortalUrlFactory.MBEAN_NAME);\n }",
"@Bean\n public IPortalUrlFactory getPortalUrlFactory() {\n return Locator.findMBean(IPortalUrlFactory.class, IPortalUrlFactory.MBEAN_NAME);\n }",
"OurIfcMaterialLayerSet createOurIfcMaterialLayerSet();",
"@DISPID(1610940422) //= 0x60050006. The runtime will prefer the VTID if present\n @VTID(28)\n Factory shapeFactory();",
"public static Smart_officeFactory init() {\n\t\ttry {\n\t\t\tSmart_officeFactory theSmart_officeFactory = (Smart_officeFactory)EPackage.Registry.INSTANCE.getEFactory(Smart_officePackage.eNS_URI);\n\t\t\tif (theSmart_officeFactory != null) {\n\t\t\t\treturn theSmart_officeFactory;\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 Smart_officeFactoryImpl();\n\t}",
"public interface Quality_requirements_metamodelFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tQuality_requirements_metamodelFactory eINSTANCE = quality_requirements_metamodel.impl.Quality_requirements_metamodelFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Quality Scenario</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Quality Scenario</em>'.\n\t * @generated\n\t */\n\tQualityScenario createQualityScenario();\n\n\t/**\n\t * Returns a new object of class '<em>Architecture</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Architecture</em>'.\n\t * @generated\n\t */\n\tArchitecture createArchitecture();\n\n\t/**\n\t * Returns a new object of class '<em>Dashboard</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dashboard</em>'.\n\t * @generated\n\t */\n\tDashboard createDashboard();\n\n\t/**\n\t * Returns a new object of class '<em>Stimulus</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Stimulus</em>'.\n\t * @generated\n\t */\n\tStimulus createStimulus();\n\n\t/**\n\t * Returns a new object of class '<em>Response Metric</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Response Metric</em>'.\n\t * @generated\n\t */\n\tResponseMetric createResponseMetric();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tQuality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();\n\n}",
"public Smart_officeFactoryImpl() {\n\t\tsuper();\n\t}",
"public StyleAbstractFactory getStyleFactory() {\r\n\t\t// Leggo da file esterno quale Factory utilizzare\r\n String stile = ULeggiDaFile.getStileInterfaccia();\r\n // Factory da restituire\r\n StyleAbstractFactory styleAbstractFactory;\r\n switch (stile) {\r\n\t\tcase \"light\":\r\n\t\t\tstyleAbstractFactory = LightStyleFactory.getInstance();\r\n\t\t\tbreak; \r\n\t\tcase \"dark\":\r\n\t\t\tstyleAbstractFactory = DarkStyleFactory.getInstance();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t// Di default fornisco la factory \"light\"\r\n\t\t\tstyleAbstractFactory = LightStyleFactory.getInstance();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn styleAbstractFactory;\r\n\t}",
"public String getFlavor() {\n \t\treturn flavor == null ? \"tooling\" : flavor; //$NON-NLS-1$\n \t}",
"public JDOMFactory getFactory() {\n return this.factory;\n }",
"public MSH getMSH() { \r\n return getTyped(\"MSH\", MSH.class);\r\n }",
"public BrickFactory<E> getBrickFactory()\r\n\t{\r\n\t\treturn brickFactory;\r\n\t}",
"private static void setLookAndFeel() { \r\n try {\r\n UIManager.setLookAndFeel(\"javax.swing.plaf.metal.MetalLookAndFeel\"); \r\n } catch (final UnsupportedLookAndFeelException e) {\r\n System.out.println(\"UnsupportedLookAndFeelException\");\r\n } catch (final ClassNotFoundException e) {\r\n System.out.println(\"ClassNotFoundException\");\r\n } catch (final InstantiationException e) {\r\n System.out.println(\"InstantiationException\");\r\n } catch (final IllegalAccessException e) {\r\n System.out.println(\"IllegalAccessException\");\r\n } \r\n }",
"public NM getPsl42_ExternalScalingFactorTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(42, 0);\r\n\t\treturn retVal;\r\n }",
"public ItemMeshDefinition getCustomMesh() { return null; }",
"@DISPID(16)\n\t// = 0x10. The runtime will prefer the VTID if present\n\t@VTID(27)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject tsTestFactory();",
"public String getManufacturer() {\r\n\t\treturn MANUFACTURER;\r\n\t}",
"@objid (\"ee775503-e151-4bb7-9921-40692858641e\")\n ICheckerFactory getModelShieldCheckers();",
"public interface ComponentmodelFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tComponentmodelFactory eINSTANCE = org.reuseware.air.language.componentmodel.impl.ComponentmodelFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Variation Point</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Variation Point</em>'.\r\n\t * @generated\r\n\t */\r\n\tVariationPoint createVariationPoint();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Composer</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Composer</em>'.\r\n\t * @generated\r\n\t */\r\n\tComposer createComposer();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Slot</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Slot</em>'.\r\n\t * @generated\r\n\t */\r\n\tSlot createSlot();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Location</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Location</em>'.\r\n\t * @generated\r\n\t */\r\n\tLocation createLocation();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Abstract Variation Point Name</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Abstract Variation Point Name</em>'.\r\n\t * @generated\r\n\t */\r\n\tAbstractVariationPointName createAbstractVariationPointName();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Variation Point Name</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Variation Point Name</em>'.\r\n\t * @generated\r\n\t */\r\n\tVariationPointName createVariationPointName();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Abstract Fragment Type</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Abstract Fragment Type</em>'.\r\n\t * @generated\r\n\t */\r\n\tAbstractFragmentType createAbstractFragmentType();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Fragment Type</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Fragment Type</em>'.\r\n\t * @generated\r\n\t */\r\n\tFragmentType createFragmentType();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Fragment Type Slot</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Fragment Type Slot</em>'.\r\n\t * @generated\r\n\t */\r\n\tFragmentTypeSlot createFragmentTypeSlot();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tComponentmodelPackage getComponentmodelPackage();\r\n\r\n}",
"public IfcMaterial getMaterial() {\n return material;\n\n }",
"@IID(\"{AAEF1B4C-4B50-4502-BE8E-11AD9A78B9E7}\")\npublic interface ICITFactoryService extends Com4jObject {\n\t// Methods:\n\t/**\n\t * <p>\n\t * For HP use.\n\t * </p>\n\t * \n\t * @param ownerType\n\t * Mandatory int parameter.\n\t * @param ownerKey\n\t * Mandatory java.lang.Object parameter.\n\t * @param isVirtualFather\n\t * Mandatory boolean parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@VTID(3)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject createApplicationEntityFactory(int ownerType,\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object ownerKey,\n\t\t\tboolean isVirtualFather);\n\n\t/**\n\t * <p>\n\t * For HP use.\n\t * </p>\n\t * \n\t * @param ownerType\n\t * Mandatory int parameter.\n\t * @param ownerKey\n\t * Mandatory java.lang.Object parameter.\n\t * @param isVirtualFather\n\t * Mandatory boolean parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@VTID(4)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject createApplicationImpactFactory(int ownerType,\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object ownerKey,\n\t\t\tboolean isVirtualFather);\n\n\t/**\n\t * <p>\n\t * For HP use.\n\t * </p>\n\t * \n\t * @param ownerType\n\t * Mandatory int parameter.\n\t * @param ownerKey\n\t * Mandatory java.lang.Object parameter.\n\t * @param isVirtualFather\n\t * Mandatory boolean parameter.\n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@VTID(5)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject createChangeEntityFactory(int ownerType,\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object ownerKey,\n\t\t\tboolean isVirtualFather);\n\n\t// Properties:\n}",
"protected HLook createLook()\n {\n return new HGraphicLook()\n {\n };\n }",
"public String getPROMISSORY_FX_TYPE() {\r\n return PROMISSORY_FX_TYPE;\r\n }",
"@DISPID(148)\n @PropGet\n excel._Application getApplication();",
"public String getName() {\n return (\"Regular Factory\");\n }",
"public static String getManufacturer() {\n String mfg = \"unknown\"; //$NON-NLS-1$\n if (apiLevel() > 3) {\n try {\n final Class<?> buildClass = Build.class;\n mfg = (String) buildClass.getField(\"MANUFACTURER\").get(null); //$NON-NLS-1$\n } catch (final Exception ignore) {\n Log.d(TAG, \"Caught exception\", ignore); //$NON-NLS-1$\n }\n }\n return mfg;\n }",
"String getManufacturer();",
"public static MgtFactory init()\n {\n try\n {\n MgtFactory theMgtFactory = (MgtFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://mgt/1.0\"); \n if (theMgtFactory != null)\n {\n return theMgtFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new MgtFactoryImpl();\n }",
"public final Manufacture getManufacture() {\n return this.manufacture;\n }",
"public NM getPsl41_InternalScalingFactorTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(41, 0);\r\n\t\treturn retVal;\r\n }",
"public static GraphicsFactory init() {\n\t\ttry {\n\t\t\tGraphicsFactory theGraphicsFactory = (GraphicsFactory)EPackage.Registry.INSTANCE.getEFactory(GraphicsPackage.eNS_URI);\n\t\t\tif (theGraphicsFactory != null) {\n\t\t\t\treturn theGraphicsFactory;\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 GraphicsFactory();\n\t}",
"public abstract Design getDesign();",
"XUMLRTFactory getXUMLRTFactory();",
"OurIfcMaterialList createOurIfcMaterialList();",
"public ValueFactory<K, V> getFactory()\n {\n return factory;\n }",
"public static IMeterDAOFactory getInstance() {\n\t\tif(geMeterFactory==null)\n\t\t{\n\t\t\tgeMeterFactory=new EPM6000GEDAOFactory();\n\t\t}\n\t\treturn geMeterFactory;\n\t}",
"public interface HiphopsFactory extends EFactory {\r\n\t/**\r\n\t * The singleton instance of the factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @generated\r\n\t */\r\n\tHiphopsFactory eINSTANCE = hiphops.impl.HiphopsFactoryImpl.init();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Model</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Model</em>'.\r\n\t * @generated\r\n\t */\r\n\tModel createModel();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>System</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>System</em>'.\r\n\t * @generated\r\n\t */\r\n\tSystem createSystem();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Component</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Component</em>'.\r\n\t * @generated\r\n\t */\r\n\tComponent createComponent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Port</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Port</em>'.\r\n\t * @generated\r\n\t */\r\n\tPort createPort();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Implementation</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Implementation</em>'.\r\n\t * @generated\r\n\t */\r\n\tImplementation createImplementation();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>FData</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>FData</em>'.\r\n\t * @generated\r\n\t */\r\n\tFData createFData();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Output Deviation</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Output Deviation</em>'.\r\n\t * @generated\r\n\t */\r\n\tOutputDeviation createOutputDeviation();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Output Deviations</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Output Deviations</em>'.\r\n\t * @generated\r\n\t */\r\n\tOutputDeviations createOutputDeviations();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Basic Event</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Basic Event</em>'.\r\n\t * @generated\r\n\t */\r\n\tBasicEvent createBasicEvent();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Basic Events</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Basic Events</em>'.\r\n\t * @generated\r\n\t */\r\n\tBasicEvents createBasicEvents();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Named Class</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Named Class</em>'.\r\n\t * @generated\r\n\t */\r\n\tNamedClass createNamedClass();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Line</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Line</em>'.\r\n\t * @generated\r\n\t */\r\n\tLine createLine();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Described Class</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Described Class</em>'.\r\n\t * @generated\r\n\t */\r\n\tDescribedClass createDescribedClass();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Alloc Alternative</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Alloc Alternative</em>'.\r\n\t * @generated\r\n\t */\r\n\tAllocAlternative createAllocAlternative();\r\n\r\n\t/**\r\n\t * Returns a new object of class '<em>Hazard</em>'.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return a new object of class '<em>Hazard</em>'.\r\n\t * @generated\r\n\t */\r\n\tHazard createHazard();\r\n\r\n\t/**\r\n\t * Returns the package supported by this factory.\r\n\t * <!-- begin-user-doc -->\r\n\t * <!-- end-user-doc -->\r\n\t * @return the package supported by this factory.\r\n\t * @generated\r\n\t */\r\n\tHiphopsPackage getHiphopsPackage();\r\n\r\n}",
"FmprimitivesFactory getFmprimitivesFactory();",
"OurIfcMaterialLayerSetUsage createOurIfcMaterialLayerSetUsage();",
"public static IGUIFactory getGUIFactory() {\n\n return m_GUIFactory;\n\n }",
"public ReasonerFactory getReasonerFactory() {\n return m_rFactory;\n }",
"private LookAndFeelManager() {}",
"public C14103d mo43860d() {\n C14103d dVar = this.f42900e;\n return dVar != null ? dVar : C14103d.CLASS_UNKNOWN;\n }",
"public StoreFactory getStoreFactory()\r\n {\r\n return (StoreFactory)getEFactoryInstance();\r\n }",
"@DISPID(148)\n @PropGet\n com.exceljava.com4j.excel._Application getApplication();",
"AtomFactory getAtomFactory();",
"public ObjectHelperFactory getObjectHelperFactory(){\r\n return this.helperFactory;\r\n }",
"public Object mo18879a() {\n return this.f6352f;\n }",
"public interface ThingMLFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tThingMLFactory eINSTANCE = thingML.impl.ThingMLFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Instance</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Instance</em>'.\n\t * @generated\n\t */\n\tDynamicInstance createDynamicInstance();\n\n\t/**\n\t * Returns a new object of class '<em>Null Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Null Value</em>'.\n\t * @generated\n\t */\n\tNullValue createNullValue();\n\n\t/**\n\t * Returns a new object of class '<em>Integer Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Integer Value</em>'.\n\t * @generated\n\t */\n\tIntegerValue createIntegerValue();\n\n\t/**\n\t * Returns a new object of class '<em>String Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>String Value</em>'.\n\t * @generated\n\t */\n\tStringValue createStringValue();\n\n\t/**\n\t * Returns a new object of class '<em>Array Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Array Value</em>'.\n\t * @generated\n\t */\n\tArrayValue createArrayValue();\n\n\t/**\n\t * Returns a new object of class '<em>Proxy Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Proxy Value</em>'.\n\t * @generated\n\t */\n\tProxyValue createProxyValue();\n\n\t/**\n\t * Returns a new object of class '<em>Array Proxy Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Array Proxy Value</em>'.\n\t * @generated\n\t */\n\tArrayProxyValue createArrayProxyValue();\n\n\t/**\n\t * Returns a new object of class '<em>Array Proxy Entry</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Array Proxy Entry</em>'.\n\t * @generated\n\t */\n\tArrayProxyEntry createArrayProxyEntry();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Composite State</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Composite State</em>'.\n\t * @generated\n\t */\n\tDynamicCompositeState createDynamicCompositeState();\n\n\t/**\n\t * Returns a new object of class '<em>Frame</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Frame</em>'.\n\t * @generated\n\t */\n\tFrame createFrame();\n\n\t/**\n\t * Returns a new object of class '<em>Context</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Context</em>'.\n\t * @generated\n\t */\n\tContext createContext();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Variable</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Variable</em>'.\n\t * @generated\n\t */\n\tDynamicVariable createDynamicVariable();\n\n\t/**\n\t * Returns a new object of class '<em>Boolean Value</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Boolean Value</em>'.\n\t * @generated\n\t */\n\tBooleanValue createBooleanValue();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Port</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Port</em>'.\n\t * @generated\n\t */\n\tDynamicPort createDynamicPort();\n\n\t/**\n\t * Returns a new object of class '<em>Dynamic Message</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Dynamic Message</em>'.\n\t * @generated\n\t */\n\tDynamicMessage createDynamicMessage();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tThingMLPackage getThingMLPackage();\n\n}",
"public static ComponentsFactory init() {\n\t\ttry {\n\t\t\tComponentsFactory theComponentsFactory = (ComponentsFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.cwi.nl/reo/components\"); \n\t\t\tif (theComponentsFactory != null) {\n\t\t\t\treturn theComponentsFactory;\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 ComponentsFactory();\n\t}",
"public abstract String getDesign();",
"public HardwareFacade getHardware() {\n\treturn hf;\n }",
"@Override\n\t\tpublic AbstractCSSStyleSheet getSheet() {\n\t\t\tif (needsUpdate) {\n\t\t\t\tString type = getAttribute(\"type\");\n\t\t\t\tif (!\"text/css\".equalsIgnoreCase(type) && type.length() != 0) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tdefinedSheet = parseEmbeddedStyleSheet(definedSheet, getTextContent().trim(), getAttribute(\"title\"),\n\t\t\t\t\t\tgetAttribute(\"media\"), this);\n\t\t\t\tif (definedSheet != null) {\n\t\t\t\t\tneedsUpdate = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn definedSheet;\n\t\t}",
"public interface OurPartialIFCFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tOurPartialIFCFactory eINSTANCE = OurPartialIFC.impl.OurPartialIFCFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Our IFC</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our IFC</em>'.\n\t * @generated\n\t */\n\tOurIFC createOurIFC();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Rel Associates Material</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Rel Associates Material</em>'.\n\t * @generated\n\t */\n\tOurIfcRelAssociatesMaterial createOurIfcRelAssociatesMaterial();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Material</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Material</em>'.\n\t * @generated\n\t */\n\tOurIfcMaterial createOurIfcMaterial();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Material Layer</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Material Layer</em>'.\n\t * @generated\n\t */\n\tOurIfcMaterialLayer createOurIfcMaterialLayer();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Material List</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Material List</em>'.\n\t * @generated\n\t */\n\tOurIfcMaterialList createOurIfcMaterialList();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Material Layer Set</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Material Layer Set</em>'.\n\t * @generated\n\t */\n\tOurIfcMaterialLayerSet createOurIfcMaterialLayerSet();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Material Layer Set Usage</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Material Layer Set Usage</em>'.\n\t * @generated\n\t */\n\tOurIfcMaterialLayerSetUsage createOurIfcMaterialLayerSetUsage();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Element</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Element</em>'.\n\t * @generated\n\t */\n\tOurIfcElement createOurIfcElement();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Element Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Element Type</em>'.\n\t * @generated\n\t */\n\tOurIfcElementType createOurIfcElementType();\n\n\t/**\n\t * Returns a new object of class '<em>Our Ifc Rel Defines By Type</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Our Ifc Rel Defines By Type</em>'.\n\t * @generated\n\t */\n\tOurIfcRelDefinesByType createOurIfcRelDefinesByType();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tOurPartialIFCPackage getOurPartialIFCPackage();\n\n}",
"@Nonnull\n public FactoryType getFactoryType() {\n return type;\n }",
"public C4567a mo24844SC() {\n try {\n return (C4567a) this.bLp.newInstance();\n } catch (ClassCastException e) {\n throw new Error(\"Can not init animatorClazz instance\", e);\n } catch (InstantiationException e2) {\n throw new Error(\"Can not init animatorClazz instance\", e2);\n } catch (IllegalAccessException e3) {\n throw new Error(\"Can not init animatorClazz instance\", e3);\n }\n }",
"public Manufacturer getManufacturer() {\n return manufacturer;\n }",
"public final Method getFactoryMethod() {\n\treturn factoryMethod;\n }",
"public FractalPalette getPalette(){\r\n\t\treturn palette;\r\n\t}",
"public static ColorScheme getColorProperties() {\n \n return BASE_PROPERTIES;\n }",
"@Override\n\tpublic Sheet getSheet() {\n\t\treturn null;\n\t}",
"public static SkinNotAvailable getSkinNotAvailable()\n {\n return _INSTANCE;\n }",
"Excel getExcelInst();",
"public static ISoftwareArchitectureProductLineSynthesis getSAPLCreatorByName(String name) {\n\t\tIConfigurationElement[] adapterExtensionPoints = Platform.getExtensionRegistry()\n\t\t\t\t.getConfigurationElementsFor(SAPLRE_EXTENSIONPOINT);\n\t\tfor (IConfigurationElement saplaCreatorExtensionPoint : adapterExtensionPoints) {\n\t\t\tif (saplaCreatorExtensionPoint.getAttribute(\"name\").equals(name)) {\n\t\t\t\ttry {\n\t\t\t\t\treturn (ISoftwareArchitectureProductLineSynthesis) saplaCreatorExtensionPoint.createExecutableExtension(\"class\");\n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"DTMCFactory getDTMCFactory();",
"public interface IoT_metamodelFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tIoT_metamodelFactory eINSTANCE = ioT_metamodel.impl.IoT_metamodelFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Thing</em>'.\n\t * @generated\n\t */\n\tThing createThing();\n\n\t/**\n\t * Returns a new object of class '<em>Virtual Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Virtual Thing</em>'.\n\t * @generated\n\t */\n\tVirtualThing createVirtualThing();\n\n\t/**\n\t * Returns a new object of class '<em>Physical Thing</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Physical Thing</em>'.\n\t * @generated\n\t */\n\tPhysicalThing createPhysicalThing();\n\n\t/**\n\t * Returns a new object of class '<em>Fog</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog</em>'.\n\t * @generated\n\t */\n\tFog createFog();\n\n\t/**\n\t * Returns a new object of class '<em>Fog Node</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog Node</em>'.\n\t * @generated\n\t */\n\tFogNode createFogNode();\n\n\t/**\n\t * Returns a new object of class '<em>Device</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device</em>'.\n\t * @generated\n\t */\n\tDevice createDevice();\n\n\t/**\n\t * Returns a new object of class '<em>Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Actuator</em>'.\n\t * @generated\n\t */\n\tActuator createActuator();\n\n\t/**\n\t * Returns a new object of class '<em>Tag</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Tag</em>'.\n\t * @generated\n\t */\n\tTag createTag();\n\n\t/**\n\t * Returns a new object of class '<em>Rule</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Rule</em>'.\n\t * @generated\n\t */\n\tRule createRule();\n\n\t/**\n\t * Returns a new object of class '<em>External Sensor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>External Sensor</em>'.\n\t * @generated\n\t */\n\tExternalSensor createExternalSensor();\n\n\t/**\n\t * Returns a new object of class '<em>Device Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Actuator</em>'.\n\t * @generated\n\t */\n\tDeviceActuator createDeviceActuator();\n\n\t/**\n\t * Returns a new object of class '<em>External Actuator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>External Actuator</em>'.\n\t * @generated\n\t */\n\tExternalActuator createExternalActuator();\n\n\t/**\n\t * Returns a new object of class '<em>Action</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Action</em>'.\n\t * @generated\n\t */\n\tAction createAction();\n\n\t/**\n\t * Returns a new object of class '<em>Device State</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device State</em>'.\n\t * @generated\n\t */\n\tDeviceState createDeviceState();\n\n\t/**\n\t * Returns a new object of class '<em>Composite State</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Composite State</em>'.\n\t * @generated\n\t */\n\tCompositeState createCompositeState();\n\n\t/**\n\t * Returns a new object of class '<em>Transition</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Transition</em>'.\n\t * @generated\n\t */\n\tTransition createTransition();\n\n\t/**\n\t * Returns a new object of class '<em>Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Digital Artifact</em>'.\n\t * @generated\n\t */\n\tDigital_Artifact createDigital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>Active Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Active Digital Artifact</em>'.\n\t * @generated\n\t */\n\tActive_Digital_Artifact createActive_Digital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>Passive Digital Artifact</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Passive Digital Artifact</em>'.\n\t * @generated\n\t */\n\tPassive_Digital_Artifact createPassive_Digital_Artifact();\n\n\t/**\n\t * Returns a new object of class '<em>User</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>User</em>'.\n\t * @generated\n\t */\n\tUser createUser();\n\n\t/**\n\t * Returns a new object of class '<em>Human User</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Human User</em>'.\n\t * @generated\n\t */\n\tHuman_User createHuman_User();\n\n\t/**\n\t * Returns a new object of class '<em>Communicator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Communicator</em>'.\n\t * @generated\n\t */\n\tCommunicator createCommunicator();\n\n\t/**\n\t * Returns a new object of class '<em>Port</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Port</em>'.\n\t * @generated\n\t */\n\tPort createPort();\n\n\t/**\n\t * Returns a new object of class '<em>Information Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Information Resource</em>'.\n\t * @generated\n\t */\n\tInformationResource createInformationResource();\n\n\t/**\n\t * Returns a new object of class '<em>On Device Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>On Device Resource</em>'.\n\t * @generated\n\t */\n\tOn_Device_Resource createOn_Device_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Network Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Network Resource</em>'.\n\t * @generated\n\t */\n\tNetwork_Resource createNetwork_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Device Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Resource</em>'.\n\t * @generated\n\t */\n\tDevice_Resource createDevice_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Service Resource</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Service Resource</em>'.\n\t * @generated\n\t */\n\tService_Resource createService_Resource();\n\n\t/**\n\t * Returns a new object of class '<em>Property</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Property</em>'.\n\t * @generated\n\t */\n\tProperty createProperty();\n\n\t/**\n\t * Returns a new object of class '<em>VM</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>VM</em>'.\n\t * @generated\n\t */\n\tVM createVM();\n\n\t/**\n\t * Returns a new object of class '<em>Container</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Container</em>'.\n\t * @generated\n\t */\n\tContainer createContainer();\n\n\t/**\n\t * Returns a new object of class '<em>Analytics Engine</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Analytics Engine</em>'.\n\t * @generated\n\t */\n\tAnalytics_Engine createAnalytics_Engine();\n\n\t/**\n\t * Returns a new object of class '<em>Cloud</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Cloud</em>'.\n\t * @generated\n\t */\n\tCloud createCloud();\n\n\t/**\n\t * Returns a new object of class '<em>Database</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Database</em>'.\n\t * @generated\n\t */\n\tDatabase createDatabase();\n\n\t/**\n\t * Returns a new object of class '<em>Policy Repository</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Policy Repository</em>'.\n\t * @generated\n\t */\n\tPolicy_Repository createPolicy_Repository();\n\n\t/**\n\t * Returns a new object of class '<em>Reference Monitor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Reference Monitor</em>'.\n\t * @generated\n\t */\n\tReference_Monitor createReference_Monitor();\n\n\t/**\n\t * Returns a new object of class '<em>Authorizor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Authorizor</em>'.\n\t * @generated\n\t */\n\tAuthorizor createAuthorizor();\n\n\t/**\n\t * Returns a new object of class '<em>Information</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Information</em>'.\n\t * @generated\n\t */\n\tInformation createInformation();\n\n\t/**\n\t * Returns a new object of class '<em>Data Streams</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Streams</em>'.\n\t * @generated\n\t */\n\tDataStreams createDataStreams();\n\n\t/**\n\t * Returns a new object of class '<em>Atomic Data</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Atomic Data</em>'.\n\t * @generated\n\t */\n\tAtomicData createAtomicData();\n\n\t/**\n\t * Returns a new object of class '<em>Data Stream Attributes</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Data Stream Attributes</em>'.\n\t * @generated\n\t */\n\tDataStreamAttributes createDataStreamAttributes();\n\n\t/**\n\t * Returns a new object of class '<em>Atomic Data Attributes</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Atomic Data Attributes</em>'.\n\t * @generated\n\t */\n\tAtomicDataAttributes createAtomicDataAttributes();\n\n\t/**\n\t * Returns a new object of class '<em>Fog Services</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Fog Services</em>'.\n\t * @generated\n\t */\n\tFog_Services createFog_Services();\n\n\t/**\n\t * Returns a new object of class '<em>Operations</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Operations</em>'.\n\t * @generated\n\t */\n\tOperations createOperations();\n\n\t/**\n\t * Returns a new object of class '<em>Java Evaluator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Java Evaluator</em>'.\n\t * @generated\n\t */\n\tJavaEvaluator createJavaEvaluator();\n\n\t/**\n\t * Returns a new object of class '<em>Entity</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Entity</em>'.\n\t * @generated\n\t */\n\tEntity createEntity();\n\n\t/**\n\t * Returns a new object of class '<em>Script Evaluator</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Script Evaluator</em>'.\n\t * @generated\n\t */\n\tScriptEvaluator createScriptEvaluator();\n\n\t/**\n\t * Returns a new object of class '<em>Device Sensor</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Device Sensor</em>'.\n\t * @generated\n\t */\n\tDeviceSensor createDeviceSensor();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tIoT_metamodelPackage getIoT_metamodelPackage();\n\n}",
"public final Callback<ListView<T>, ListCell<T>> getCellFactory() {\n\n return this.getWrappedControl().getCellFactory();\n }",
"EnvironmentmmFactory getEnvironmentmmFactory();",
"public byte getIManufacturer() {\r\n\t\treturn iManufacturer;\r\n\t}",
"public void setLAF(String lookAndFeelStr) {\n String exceptionNotice = \"\";\n try {\n // Set the font for Metal LAF to non-bold, in case Metal is used\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n if (lookAndFeelStr == null || lookAndFeelStr.equalsIgnoreCase(\"Metal\")) {\n UIManager.setLookAndFeel(new MetalLookAndFeel());\n } else\n if (lookAndFeelStr.equalsIgnoreCase(\"Nimbus\")) {\n for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {\n if (info.getName().equals(\"Nimbus\")) {\n UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } else {\n UIManager.setLookAndFeel(lookAndFeelStr);\n }\n } catch (UnsupportedLookAndFeelException e) {\n exceptionNotice = \"UnsupportedLookAndFeelException\";\n } catch (ClassNotFoundException e) {\n exceptionNotice = \"ClassNotFoundException\";\n } catch (InstantiationException e) {\n exceptionNotice = \"InstantiationException\";\n } catch (IllegalAccessException e) {\n exceptionNotice = \"IllegalAccessException\";\n } finally {\n if (! exceptionNotice.isEmpty()) {\n try {\n // The desired LAF was not created, so try to use the Metal LAF as a default.\n UIManager.setLookAndFeel(new MetalLookAndFeel());\n } catch (UnsupportedLookAndFeelException e) {\n logger.error(\"Could not initialize the Swing Look and Feel settings, MCT is closing.\");\n System.exit(1);\n }\n }\n }\n // Look and Feel has been successfully created, now set colors\n initializeColors(UIManager.getLookAndFeel());\n Properties props = new Properties();\n String filename = System.getProperty(viewColor,\"resources/properties/viewColor.properties\");\n FileReader reader = null;\n try {\n \treader = new FileReader(filename);\n \tprops.load(reader);\n BASE_PROPERTIES = new ColorScheme(props);\n BASE_PROPERTIES.applyColorScheme(); // Apply top-level color bindings\n } catch (Exception e) {\n logger.warn(\"Using default color and font properties because could not open viewColor properties file :\"+filename);\n BASE_PROPERTIES = new ColorScheme();\n } finally {\n \ttry {\n if (reader != null) reader.close();\n } catch(IOException ioe1){ }\n }\n }",
"static public LookAndFeelManager createDefaultLookAndFeelManager()\n {\n LookAndFeelManager manager = new LookAndFeelManager();\n\n /* =-=AEW DO NOT register the external look-and-feels; these\n class names are UIX 2.2 look-and-feels, which won't (and can't)\n work in UIX 3, given the different class names. Only uncomment\n if and when such classes are ported to UIX 3.\n // support requests from iasWireless if laf can be found\n _registerExternalLookAndFeel(manager, iaswLaf, _IASW_SCORER);\n\n // register OA's Text LAF if laf can be found\n _registerExternalLookAndFeel(manager, _OA_TEXT_LAF, _OA_TEXT_SCORER);\n */\n\n // Base lafs\n BaseDesktopUtils.registerLookAndFeel(manager);\n\n SimpleDesktopUtils.registerLookAndFeel(manager);\n SimplePdaUtils.registerLookAndFeel(manager);\n\n return manager;\n }"
] | [
"0.65363044",
"0.5942128",
"0.5801805",
"0.5764562",
"0.5688068",
"0.56512344",
"0.5541352",
"0.5541352",
"0.5541352",
"0.5541352",
"0.5351848",
"0.5294674",
"0.5292217",
"0.5287853",
"0.52729815",
"0.5261105",
"0.52480185",
"0.52308476",
"0.5085376",
"0.5085224",
"0.50844485",
"0.5060979",
"0.5060505",
"0.50429523",
"0.50243264",
"0.5024241",
"0.50037885",
"0.49902874",
"0.496935",
"0.49647573",
"0.49647573",
"0.49646217",
"0.49633905",
"0.49492338",
"0.4946535",
"0.4920796",
"0.49127713",
"0.49076152",
"0.4889534",
"0.4889377",
"0.48796657",
"0.48667037",
"0.48580605",
"0.4851443",
"0.4845599",
"0.48390478",
"0.48372254",
"0.4809753",
"0.480951",
"0.48074004",
"0.48050734",
"0.4800132",
"0.47916394",
"0.47889942",
"0.47847307",
"0.47812736",
"0.47787696",
"0.47784847",
"0.47777206",
"0.47693858",
"0.47684607",
"0.47615364",
"0.47614884",
"0.47596928",
"0.47489083",
"0.47447598",
"0.4742785",
"0.47409332",
"0.47347504",
"0.4723324",
"0.47222778",
"0.47202367",
"0.4712389",
"0.47052595",
"0.46993935",
"0.46956438",
"0.46941182",
"0.4691105",
"0.46892804",
"0.46869594",
"0.4683484",
"0.46808243",
"0.46736625",
"0.4672523",
"0.46723473",
"0.46643543",
"0.46604085",
"0.46571127",
"0.46552446",
"0.46543702",
"0.4648852",
"0.4640944",
"0.46401832",
"0.463877",
"0.46368605",
"0.4629451",
"0.46287787",
"0.4627549",
"0.46205062",
"0.4619874"
] | 0.80112284 | 0 |
Getter method for the COM property "SheetMetalParameters" | @DISPID(1610940425) //= 0x60050009. The runtime will prefer the VTID if present
@VTID(31)
AnyObject sheetMetalParameters(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setParameters(MaterialParams mp);",
"public Properties getParameters() {\r\n return mParameters;\r\n }",
"public final Object[] getMatLabParams()\r\n\t{\r\n\t\treturn matLabParams;\r\n\t}",
"private void getParameters(BlendmontParam blendmontParam) {\n blendmontParam.setBinByFactor(getBinning());\n updateMetaData();\n }",
"public Properties getParameters() {\n\t\treturn null;\n\t}",
"@DISPID(1610940424) //= 0x60050008. The runtime will prefer the VTID if present\n @VTID(30)\n Factory sheetMetalFactory();",
"public NM getPsl36_InternalScalingFactorPP() { \r\n\t\tNM retVal = this.getTypedField(36, 0);\r\n\t\treturn retVal;\r\n }",
"String getMaterial();",
"public double getMagicalProtectScaling()\r\n {\r\n return mMagicalProtectScaling;\r\n }",
"public NM getExternalScalingFactorTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(42, 0);\r\n\t\treturn retVal;\r\n }",
"public NM getInternalScalingFactorTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(41, 0);\r\n\t\treturn retVal;\r\n }",
"public NM getInternalScalingFactorPP() { \r\n\t\tNM retVal = this.getTypedField(36, 0);\r\n\t\treturn retVal;\r\n }",
"public final MagCompPage_Parameters get_magCompParams () {\n\t\tif (!( modstate >= MODSTATE_CATALOG )) {\n\t\t\tthrow new IllegalStateException (\"Access to RJGUIModel.magCompParams while in state \" + cur_modstate_string());\n\t\t}\n\t\treturn aafs_fcparams.mag_comp_params;\n\t}",
"public String getMaterial() {\n return material;\n }",
"public String getMaterial() {\n return material;\n }",
"public interface PerceptionConfigurationParametersReadOnly extends StoredPropertySetReadOnly\n{\n default int getL515ThrottlerFrequency()\n {\n return get(l515ThrottlerFrequency);\n }\n\n default int getOusterThrottlerFrequency()\n {\n return get(ousterThrottlerFrequency);\n }\n\n default int getOccupancyGridResolution()\n {\n return get(occupancyGridResolution);\n }\n\n default boolean getRapidRegionsEnabled()\n {\n return get(rapidRegionsEnabled);\n }\n\n default boolean getLoggingEnabled()\n {\n return get(loggingEnabled);\n }\n\n default boolean getPublishColor()\n {\n return get(publishColor);\n }\n\n default boolean getPublishDepth()\n {\n return get(publishDepth);\n }\n\n default boolean getLogColor()\n {\n return get(logColor);\n }\n\n default boolean getLogDepth()\n {\n return get(logDepth);\n }\n\n default boolean getSLAMEnabled()\n {\n return get(slamEnabled);\n }\n\n default boolean getSLAMReset()\n {\n return get(slamReset);\n }\n\n default boolean getSupportSquareEnabled()\n {\n return get(supportSquareEnabled);\n }\n\n default boolean getBoundingBoxFilter()\n {\n return get(boundingBoxFilter);\n }\n\n default boolean getConcaveHullFilters()\n {\n return get(concaveHullFilters);\n }\n\n default boolean getShadowFilter()\n {\n return get(shadowFilter);\n }\n\n default boolean getActiveMapping()\n {\n return get(activeMapping);\n }\n}",
"public NM getPsl41_InternalScalingFactorTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(41, 0);\r\n\t\treturn retVal;\r\n }",
"public static native void OpenMM_AmoebaMultipoleForce_getPMEParameters(PointerByReference target, DoubleByReference alpha, IntByReference nx, IntByReference ny, IntByReference nz);",
"public java.lang.String getMaterial() {\r\n return material;\r\n }",
"public NM getExternalScalingFactorPP() { \r\n\t\tNM retVal = this.getTypedField(37, 0);\r\n\t\treturn retVal;\r\n }",
"public NM getPsl42_ExternalScalingFactorTechnicalPart() { \r\n\t\tNM retVal = this.getTypedField(42, 0);\r\n\t\treturn retVal;\r\n }",
"default Component getQuickPropertiesComponent()\r\n {\r\n return null;\r\n }",
"public static native void OpenMM_AmoebaMultipoleForce_getPMEParameters(PointerByReference target, DoubleBuffer alpha, IntBuffer nx, IntBuffer ny, IntBuffer nz);",
"public BareMetalMachinePowerOffParameters() {\n }",
"public java.lang.String getMATERIAL() {\r\n return MATERIAL;\r\n }",
"public java.lang.String getMATERIAL_VERSION() {\r\n return MATERIAL_VERSION;\r\n }",
"public Map<String, NotebookParameter> getParameters() {\n return this.parameters;\n }",
"public NM getPsl37_ExternalScalingFactorPP() { \r\n\t\tNM retVal = this.getTypedField(37, 0);\r\n\t\treturn retVal;\r\n }",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[3];\n params[0] = maxIterations;\n params[1] = lpeChecker;\n params[2] = maxResonStruc;\n return params;\n }",
"public static native void OpenMM_HippoNonbondedForce_getPMEParameters(PointerByReference target, DoubleByReference alpha, IntByReference nx, IntByReference ny, IntByReference nz);",
"public Integer getMeterNumerator() {\n return this.meterNumerator;\n }",
"public java.lang.String getMATERIAL_EXTERNAL() {\r\n return MATERIAL_EXTERNAL;\r\n }",
"public double getPhysicalProtectScaling()\r\n {\r\n return mPhysicalProtectScaling;\r\n }",
"@Element \n public String getMaterial() {\n return material;\n }",
"public static native void OpenMM_HippoNonbondedForce_getPMEParameters(PointerByReference target, DoubleBuffer alpha, IntBuffer nx, IntBuffer ny, IntBuffer nz);",
"@JsonProperty(\"params\")\n public MemeRunParameters getParams() {\n return params;\n }",
"public java.lang.String getMATERIAL_GUID() {\r\n return MATERIAL_GUID;\r\n }",
"public abstract float getMass();",
"public Material getMaterial() {\n\t\treturn material;\n\t}",
"public Double getMass() {\n return mass;\n }",
"public EngineParameters getEngineParameters() {\n\t\treturn engineParameters;\n\t}",
"public double getMZ() {\n return iMass;\n }",
"@Override\n\tpublic String getMaterial() {\n\t\treturn null;\n\t}",
"public float getDCM();",
"public String getParameters() {\n return this.Parameters;\n }",
"private NetworkDevicePatchParametersProperties innerProperties() {\n return this.innerProperties;\n }",
"public float getMass() {\n return mass;\n }",
"public double getMass();",
"public double getEnginePower(){\n return enginePower;\n }",
"@Override\n public RVParameters getParameters() {\n RVParameters parameters = new RVParameters.UniformRVParameters();\n parameters.changeDoubleParameter(\"min\", min);\n parameters.changeDoubleParameter(\"max\", max);\n return parameters;\n }",
"public static float getMetalMake(UnitDef def) {\n if (def.getName().equals(\"armmakr\") || def.getName().equals(\"armmmkr\") || def.getName().equals(\"cormakr\") || def.getName().equals(\"cormmkr\")) {\n return 0.000666f;\n } else {\n return 0;\n }\n }",
"public double getLightAbsorptionCoefficient(){\n return gamma;\n }",
"public double getBeerXmlStandardTunSpecHeat() {\n return this.tunSpecificHeat;\n }",
"public static native void OpenMM_AmoebaMultipoleForce_setPMEParameters(PointerByReference target, double alpha, int nx, int ny, int nz);",
"public double Mass() {\n return OCCwrapJavaJNI.Units_Dimensions_Mass(swigCPtr, this);\n }",
"public double getMass() {\n return mass;\n }",
"public double getMass() {\n return mass;\n }",
"public double getMultiplier() {\r\n return multiplier;\r\n }",
"public byte[] getScale()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_SCALE);\n }",
"public String getMaterial () {\r\n return getItemStack().getTypeId()+ \":\" + getItemStack().getDurability(); \r\n\t}",
"public Double getCompassHeading() {\n\t\treturn compassHeading;\n\t}",
"protected double getEnginePower(){\n return enginePower;\n }",
"public static native void OpenMM_AmoebaGeneralizedKirkwoodForce_getParticleParameters(PointerByReference target, int index, DoubleBuffer charge, DoubleBuffer radius, DoubleBuffer scalingFactor);",
"public ArrayList<Parameter> getInternalData()\r\n {\r\n return m_alParameters;\r\n }",
"@Basic @Raw\n public double getMass(){\n \treturn this.mass;\n }",
"@DISPID(1610940429) //= 0x6005000d. The runtime will prefer the VTID if present\n @VTID(35)\n Parameters parameters();",
"public long getPropertyFadeMax();",
"public static native void OpenMM_AmoebaGeneralizedKirkwoodForce_getParticleParameters(PointerByReference target, int index, DoubleByReference charge, DoubleByReference radius, DoubleByReference scalingFactor);",
"public long getPropertyVolumeSteps();",
"public byte[] getMedicationInfoSheet() {\n return medicationInfoSheet;\n }",
"@Override\r\n public MultivaluedMap<String, String> getMatrixParameters() {\n return matrixParameters;\r\n }",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[1];\n params[0] = maxIterations;\n return params;\n }",
"public Parameters getParameters() {\n \treturn parameters;\n }",
"public Integer getMaterial_type() {\n return material_type;\n }",
"public long getPropertyVolumeUnity();",
"public native RecordingEngineProperties getProperties(long nativeHandle);",
"public Double getWallThickness() {\n return wallThickness;\n }",
"@Override\n public Parameters getParams() {\n return parameters;\n }",
"public String getParameters() {\r\n\t\t\r\n\t\tString strLength = String.valueOf(length);\r\n\t\tString strWidth = String.valueOf(width);\r\n\t\tString strHeight = String.valueOf(height);\r\n\t\t\r\n\t\treturn \"Length: \" + strLength + \"\\nWidth: \" + strWidth + \"\\nHeight: \" + strHeight;\r\n\t}",
"@Test\r\n\tpublic void testGetCellParameters() {\r\n\t\tdouble[] params = lattice1.getCellParameters();\r\n\t\tDoubleTestBase.assertEquals(\"params\", new double[] {\r\n\t\t\t\t12.328828005937952, 13.96424004376894, 11.968291440301744,\r\n\t\t\t\t104.34229064539636, 86.89206686722031, 25.025508299339933 },\r\n\t\t\t\tparams, EPS);\r\n\t}",
"private GameSetParameters createCustomGameSetParameters() {\n GameSetParameters gameSetParameters = new GameSetParameters();\n gameSetParameters.setPriseBasePoints(20);\n gameSetParameters.setPriseRate(2);\n gameSetParameters.setGardeBasePoints(40);\n gameSetParameters.setGardeRate(4);\n gameSetParameters.setGardeSansBasePoints(80);\n gameSetParameters.setGardeSansRate(8);\n gameSetParameters.setGardeContreBasePoints(160);\n gameSetParameters.setGardeContreRate(16);\n gameSetParameters.setPoigneePoints(10);\n gameSetParameters.setDoublePoigneePoints(20);\n gameSetParameters.setTriplePoigneePoints(30);\n gameSetParameters.setMiseryPoints(10);\n gameSetParameters.setKidAtTheEndPoints(10);\n gameSetParameters.setAnnouncedAndSucceededChelemPoints(400);\n gameSetParameters.setAnnouncedAndFailedChelemPoints(-200);\n gameSetParameters.setNotAnnouncedButSucceededChelemPoints(200);\n gameSetParameters.setBelgianBaseStepPoints(100);\n return gameSetParameters;\n }",
"public List<Material> getMaterials() {\n return materials;\n }",
"@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}",
"public DriftCheckModelQuality getModelQuality() {\n return this.modelQuality;\n }",
"public long getPropertyVolumeMax();",
"@Override\n\tpublic String toString() {\n\t\treturn \"Material [kd=\" + kd + \", ks=\" + ks + \", kr=\" + kr + \", kt=\" + kt + \", nShininess=\" + nShininess + \"]\";\n\t}",
"public Double getLtRtCenterMixLevel() {\n return this.ltRtCenterMixLevel;\n }",
"public MemoryCacheParams get() {\n return new MemoryCacheParams(m114359b(), 256, Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, f81939a);\n }",
"public int getPlat()\n {\n return plat;\n }",
"public ParameterValueGroup getWarpGridParameters() {\n return WarpGridParameters;\n }",
"@Override\n\tpublic void setPersonal_4_LinearVerticalMeter()\n\t{\n\t\t//scaleColor = METER_BACKGROUND_COLOR;\n\t\tclassScaleColor.put(\"LinearVerticalMeter\", METER_BACKGROUND_COLOR);\n\t}",
"public float getThickness(){\n return thickness;\n }",
"private void setParameters(ConstMetaData metaData) {\n if (dialog == null) {\n return;\n }\n // Use GPU\n dialog.setUseGpuEnabled(Network.isLocalHostGpuProcessingEnabled(manager, axisID,\n manager.getPropertyUserDir()));\n dialog.setUseGpuSelected(metaData.isDefaultGpuProcessing());\n dialog.setBinning(metaData.getPosBinning(axisID));\n dialog.setSampleThickness(metaData.getSampleThickness(axisID));\n }",
"protected final double[] getParametersArray() {\n\treturn parameters;\n }",
"public HashMap<Integer, Object> getEffectProperties( ) {\r\n\r\n return properties;\r\n }",
"public Map<Integer, MatrixPartitionMeta> getPartMetas() {\r\n return partMetas;\r\n }",
"public float getScaleMotionDeceleration() {\r\n\t\treturn scaleMotionDeceleration;\r\n\t}",
"public DriftCheckModelDataQuality getModelDataQuality() {\n return this.modelDataQuality;\n }",
"public String getMeteringMode() {\n return this.meteringMode;\n }",
"public IfcMaterial getMaterial() {\n return material;\n\n }"
] | [
"0.5853599",
"0.5695381",
"0.5564943",
"0.5500982",
"0.5379139",
"0.53363323",
"0.5214816",
"0.51683897",
"0.51390123",
"0.5104565",
"0.5078596",
"0.5074097",
"0.5067431",
"0.50527173",
"0.50527173",
"0.50325716",
"0.50272435",
"0.5015968",
"0.5002574",
"0.50025356",
"0.49827328",
"0.49792993",
"0.49787125",
"0.49584934",
"0.49562308",
"0.49056274",
"0.49023935",
"0.49002302",
"0.48821372",
"0.48795313",
"0.48684633",
"0.48448884",
"0.4843553",
"0.48400375",
"0.48348188",
"0.48261276",
"0.48248374",
"0.48209742",
"0.4805227",
"0.4789772",
"0.4786092",
"0.4783169",
"0.47784203",
"0.47722068",
"0.47697848",
"0.4769107",
"0.47685385",
"0.4755339",
"0.47509345",
"0.47392583",
"0.4723562",
"0.47232118",
"0.47127014",
"0.4710187",
"0.47095022",
"0.4708738",
"0.4708738",
"0.47067127",
"0.47020465",
"0.47007048",
"0.46969557",
"0.46791765",
"0.4671216",
"0.46688223",
"0.46653342",
"0.46640775",
"0.4659759",
"0.4655196",
"0.46506995",
"0.46412665",
"0.46372786",
"0.46367627",
"0.4636504",
"0.46337768",
"0.46323028",
"0.46302667",
"0.4626395",
"0.46245417",
"0.46179813",
"0.46167785",
"0.4614754",
"0.46145183",
"0.46119905",
"0.45972833",
"0.4597244",
"0.4593395",
"0.45914152",
"0.45829323",
"0.45794427",
"0.45771578",
"0.4577149",
"0.45682332",
"0.45675382",
"0.45616293",
"0.45549846",
"0.45521253",
"0.4549515",
"0.45493466",
"0.45465136",
"0.45409217"
] | 0.8487593 | 0 |
Getter method for the COM property "GeometricElements" | @DISPID(1610940426) //= 0x6005000a. The runtime will prefer the VTID if present
@VTID(32)
GeometricElements geometricElements(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n GeometricElements geometricElements();",
"public double[] element() {\n\t\treturn _coordinates;\n\t}",
"@Override\r\n\t\tpublic Geom_element getGeom() {\n\t\t\treturn this.point;\r\n\t\t}",
"public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}",
"public GeoModelElements getGeoModelAccess() {\n\t\treturn pGeoModel;\n\t}",
"public Object getElement();",
"private Vector<ResourceLocation> getElements() {\n return getRef().elements;\n }",
"public List<TLProperty> getElements();",
"public abstract com.jme.scene.Geometry getJMEGeometry();",
"Map<Double, Element> getElements();",
"public ArrayList <EggAbstract> getEggs() {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\treturn eggs;\n\t}",
"public E getElement() { return element; }",
"public GraphElement getElement() {\n return this.element;\n }",
"public SVGElement getUsedFromElement()\n {\n int elementHandle = _getUsedFromElement(\n getNativeSVGProxyHandle(),\n getHandle());\n if (M2GObject.checkHandle(elementHandle))\n {\n return M2GSVGElement.buildElement(elementHandle, iDocument);\n }\n return null;\n }",
"@Override\n public List<IExpression> getElements() {\n return elements;\n }",
"public E getElement()\n {\n return this.data;\n }",
"public ArrayList<Integer> getElements()\n {\n return this.elements;\n }",
"public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}",
"@Override\n\tCollection<T> internalElements() {\n\t\tCollection<T> values = new LinkedList<T>();\n\t\t\n\t\tfor(LinkedList<T> list : internalStorage.get(0).values()) {\n\t\t values.addAll(list);\t\n\t\t}\n\t\treturn values;\n\t}",
"public HashSet getElements() {\n\treturn elements;\n }",
"@Override\n\tpublic Geometry getGeometria() {\n\t\treturn null;\n\t}",
"public List<Expression> getElements() {\n\t\treturn elements;\n\t}",
"public E getElement()\n\t{\n\t\treturn this.data;\n\t}",
"public ArrayList<Elemento> getElementos() {\n\t\treturn elementos;\n\t}",
"public BasicAttributesGrammarAccess.EDoubleElements getEDoubleAccess() {\n\t\treturn gaBasicAttributes.getEDoubleAccess();\n\t}",
"public E getElement() {\r\n return element;\r\n }",
"public Object getElement()\n {return data;}",
"private Object[] elements() {\n return elements.toArray();\n }",
"public OMSVGGElement getElementGroup() {\n \t\treturn (OMSVGGElement) modelGroup.getElementWrapper();\n \t}",
"@Override\n\tpublic AllegationsElement Elements() {\n\t\treturn new AllegationsElement(driver);\n\t}",
"public Object getElement()\r\n\t\t{ return element; }",
"public final native GEFeatureContainer getFeatures() /*-{\r\n\t\treturn this.getFeatures();\r\n\t}-*/;",
"public Object getElement() {\n return element;\n }",
"public T get() {\n return this.elemento;\n }",
"public List<GComponent> getComponents()\n {\n return this.components;\n }",
"public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }",
"public ArrayList<Polygon> getPolygons ()\n\t{\n\t\treturn object;\n\t}",
"public GeometryType getCMUGeometry() {\n return geometry;\n }",
"protected abstract Object[] getComponents();",
"public GoLCell[][] getCells()\n\t{\n\t\treturn this.myGoLCell;\n\t}",
"public double getG();",
"public java.lang.String[] getElement() {\n return element;\n }",
"public T getElement();",
"public List<Double> getCoordinates() {\n return coordinates;\n }",
"public int getElem()\r\n\t{\r\n\t\treturn elem;\r\n\t}",
"public MyRectangle[] getFeature() {\n return rectangles;\n }",
"@Override\n\t@TimeComplexity(\"O(1)\")\n\tpublic E element()\n\t{\n\t\treturn element;\n\t}",
"public T getElement()\n {\n\n return element;\n }",
"public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}",
"public int getElementSize() {\n\t\treturn this.elementsize;\n\t}",
"protected int getElementSize () {\n return 1;\n }",
"public double getGx() {\n return mGx;\n }",
"public T getElement() {\n return element;\n }",
"public double[][] getCompleteElements() {\n double[][] values = new double[getRowDimension()][getColumnDimension()];\n for (int rowIndex = 0; rowIndex < getRowDimension(); rowIndex++) {\n for (int columnIndex = 0; columnIndex < getColumnDimension(); columnIndex++) {\n values[rowIndex][columnIndex] = getElement(rowIndex, columnIndex);\n }\n }\n return values;\n }",
"public T get() {\n return element;\n }",
"public List<Element> getCustomElements() {\r\n return customElements;\r\n }",
"public Collection<GObject> getObjects();",
"public List<Float[]> getCoordinates() {\n return coordinates;\n }",
"public T getElement() {\r\n\t\t\r\n\t\treturn element;\r\n\t\r\n\t}",
"public E[] getArray() {\n return this.array;\n }",
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Graphic getGraphic() {\r\n return graphic;\r\n }",
"public Enumeration getElements() {\r\n return elements.elements();\r\n }",
"EObject getDiagrammableElement();",
"public Integer[] getCoordenada() {\n return this.elementos.clone();\n }",
"public E element();",
"public GeoThemeElements getGeoThemeAccess() {\n\t\treturn eGeoTheme;\n\t}",
"public GameObject[][] getGrid(){\n\t\t\r\n\t\treturn this.grid;\r\n\t}",
"protected float[] getGenes() {\n\t\t\treturn genes;\n\t\t}",
"public cto.framework.service.schema.Property[] getProperty() {\r\n cto.framework.service.schema.Property[] array = new cto.framework.service.schema.Property[0];\r\n return this._propertyList.toArray(array);\r\n }",
"public List<CellRef> getCellReferences()\n {\n return myCellReferences;\n }",
"public static Mesh[] getObjmesh() {\n return objmesh;\n }",
"public List<C0605el> mo4450dG() {\n return this.f1900xO;\n }",
"public Element getElement() {\n return super.getElement();\n }",
"public List<NodoRuta> getElementos() { \n \n return new ArrayList<NodoRuta>(nodos);\n }",
"public Element getElement() {\n/* 78 */ return this.e;\n/* */ }",
"public ArrayList<Integer> getE() {\r\n return this.e;\r\n }",
"public ArrayList<EplusObject> getObjects() {\n\t\treturn objects;\n\t}",
"public Element getElement()\n {\n return m_Element;\n }",
"public double[] getCoordinates() {\n\t\treturn coordinateTools.localToCoordinates(this);\n\t}",
"public T getElement() {\n\t\treturn element;\n\t}",
"public Graphics getGraphics() {\r\n\t\treturn this.graphics;\r\n\t}",
"public java.math.BigInteger getGi()\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(GI$22, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }",
"public Graphics getGraphics()\n\t{\n\t\treturn g;\n\t}",
"public Object getData() {\n\t\t\treturn null;// this.element;\n\t\t}",
"@Pure\n\tprotected Primitives getPrimitiveTypes() {\n\t\treturn this.primitives;\n\t}",
"public int elements() {\n\t\treturn elements;\n\n\t}",
"public double getSize() {\n return getElement().getSize();\n }",
"public Graphics getGraphics() {\n return graphics_;\n }",
"public org.apache.axis.message.MessageElement [] get_any() {\n return _any;\n }",
"String getElem();",
"public Ellipsoid getEllipsoid() {\n return ellipse;\n }",
"public Object element() { return e; }",
"public List<SiacRCronopElemBilElem> getSiacRCronopElemBilElems() {\n\t\treturn this.siacRCronopElemBilElems;\n\t}",
"public T getValue(){\n \treturn element;\n }",
"public Graphics2D getG() {\n return g;\n }",
"Geometry getGeometry();",
"public T getElement() {\n\t return myData;\n }",
"public GameProperty [] getGameProperties() {\n return this.GameProperties;\n }",
"public GraphNOriented getG() {\n\t\treturn g;\n\t}",
"public CellGrid getCellGrid() {\n return cellGrid;\n }"
] | [
"0.80758244",
"0.6545601",
"0.635309",
"0.63137513",
"0.6142166",
"0.612518",
"0.6109351",
"0.60542",
"0.60371757",
"0.5943978",
"0.59243894",
"0.58876574",
"0.58483815",
"0.5816303",
"0.58081406",
"0.5788828",
"0.57805717",
"0.5729069",
"0.56961155",
"0.5694371",
"0.56817853",
"0.56792325",
"0.56722593",
"0.5666927",
"0.5664141",
"0.56634325",
"0.565455",
"0.56522024",
"0.563105",
"0.5620403",
"0.5607296",
"0.56043625",
"0.5596254",
"0.5595686",
"0.559282",
"0.5588403",
"0.5575652",
"0.5561792",
"0.55590427",
"0.55515575",
"0.5550022",
"0.5549695",
"0.5529028",
"0.55240095",
"0.55238414",
"0.55182046",
"0.5514292",
"0.551002",
"0.5497814",
"0.54926443",
"0.54896194",
"0.5484035",
"0.5475814",
"0.54745424",
"0.54735327",
"0.54629457",
"0.5458281",
"0.54448164",
"0.54402465",
"0.5440074",
"0.54375225",
"0.5436405",
"0.54348683",
"0.5431129",
"0.54294443",
"0.54277074",
"0.54238296",
"0.54150945",
"0.5405455",
"0.54021984",
"0.5400543",
"0.53974116",
"0.5391494",
"0.53832597",
"0.53830475",
"0.53803146",
"0.5375758",
"0.5370369",
"0.5364609",
"0.5363654",
"0.53619546",
"0.53613764",
"0.5361118",
"0.53607666",
"0.53600967",
"0.5357353",
"0.53437006",
"0.534273",
"0.53406113",
"0.53335625",
"0.5321706",
"0.53213096",
"0.5318809",
"0.5316237",
"0.5315811",
"0.53148615",
"0.53096855",
"0.53066343",
"0.5301701",
"0.5299885"
] | 0.823337 | 0 |
Getter method for the COM property "Constraints" | @DISPID(1610940427) //= 0x6005000b. The runtime will prefer the VTID if present
@VTID(33)
Constraints constraints(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Constraint> getConstraints();",
"public List<Constraint> getConstraints() {\r\n\t\treturn constraints;\r\n\t}",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation getConstraints();",
"@objid (\"db7f3c97-1871-4855-958d-3659b2211f8a\")\n protected Object getConstraint() {\n return this.constraint;\n }",
"public ModelElement getConstraints() {\n\tmodelElement.clearConstraint();\n\tjava.util.Iterator iterator = getPnlDataSelector().getObjects().iterator();\n\ttry {\n\t\twhile (iterator.hasNext()) {\n\t\t\tObject eleo=iterator.next();\n\t\t\tConstraintDef constraintDef = null;\n\t\t\tif(eleo instanceof NlsString){\n\t\t\t\t// new constraint\n\t\t\t\tConstraintExpression expression = new ConstraintExpression();\n\t\t\t\texpression.setSyntax((NlsString)eleo);\n\t\t\t\tconstraintDef = (ConstraintDef)ElementFactory.createObject(ConstraintDef.class);\n\t\t\t\tconstraintDef.setBody(expression);\n\t\t\t}else{\n\t\t\t\t// existing constraint\n\t\t\t\tconstraintDef = (ConstraintDef)eleo;\n\t\t\t}\n\t\t\tmodelElement.addConstraint(constraintDef);\n\t\t}\n\t} catch(Throwable e) {\n\t\thandleException(e);\n\t}\n\treturn modelElement;\n}",
"public MethodConstraints getMethodConstraintsField() {\n\treturn methodConstraints;\n }",
"public java.util.List<Constraint> getConstraint() { \n\t\tif (myConstraint == null) {\n\t\t\tmyConstraint = new java.util.ArrayList<Constraint>();\n\t\t}\n\t\treturn myConstraint;\n\t}",
"@Override\n public ImmutableList<ImmutableSetMultimap<TypeVariableImpl<X, ?>, Constraint<X>>> getConstraints() {\n return ImmutableList.of(constraints);\n }",
"public TConstraintElements getTConstraintAccess() {\n\t\treturn pTConstraint;\n\t}",
"int getConstraintsCount();",
"java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> getConstraintsList();",
"java.util.List<? extends com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder>\n getConstraintsOrBuilderList();",
"@Override\n\tpublic Clause getConstraints() {\n\t\treturn null;\n\t}",
"com.google.cloud.clouddms.v1.ConstraintEntity getConstraints(int index);",
"public List<ContextConstraint> getConstraints() {\n return getConstraintList();\n }",
"public FormalGenConstraint getConstraint() {\n return constraint;\n }",
"public GridBagConstraints getConstraints() {\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.weightx = 0.1;\n constraints.weighty = 0.1;\n constraints.fill = GridBagConstraints.BOTH;\n constraints.gridx = 1;\n constraints.gridy = 1;\n return constraints;\n }",
"public PrimitiveConstraint getConstraint() {\r\n return new XlteqC(var, value);\r\n }",
"com.google.cloud.clouddms.v1.ConstraintEntityOrBuilder getConstraintsOrBuilder(int index);",
"@Schema(description = \"This is a list of constraint references applied to this specification\")\n\t@Valid\n\tpublic Set<ConstraintRef> getConstraint() {\n\t\treturn constraint;\n\t}",
"@Override\n\tConstraintFinder findConstraints();",
"public int constraintType()\n\t{\n\t\treturn _constraintType;\n\t}",
"protected abstract void defineConstraints();",
"public String getConstraintName() {\n return constraintName;\n }",
"public List<ViewConstrainsEnum> getViewConstrainsUIComponent();",
"public String[] getRoomConstraint(){\r\n return roomConstraint.clone();\r\n }",
"boolean isSetConstraints();",
"List<IViewRelation> getConstraintRelations();",
"@Override\n\tprotected void getConstraintFromNetlistConstraintFile() {\n\n\t}",
"public Set<MetaConstraint<?>> getCrossParameterConstraints()\n/* */ {\n/* 162 */ return this.crossParameterConstraints;\n/* */ }",
"Constraint createConstraint();",
"Constraint createConstraint();",
"public Map<ConstraintType, ClusterConstraints> getConstraintMap() {\n return _constraintMap;\n }",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public List<ContextConstraint> getConstraintList() {\n return (List<ContextConstraint>)getChild(1);\n }",
"public boolean getMethodConstraintsSpecifiedField() {\n\treturn methodConstraintsSpecified;\n }",
"public int getBasicConstraints() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.security.keystore.DelegatingX509Certificate.getBasicConstraints():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.security.keystore.DelegatingX509Certificate.getBasicConstraints():int\");\n }",
"@DISPID(1611006036) //= 0x60060054. The runtime will prefer the VTID if present\n @VTID(111)\n boolean constraintsInGeometry();",
"public String getCascadeConstraintsString() {\n \t\treturn \"\";\n \t}",
"public DomainConstraints domainConstraints() {\n if (_domainConstraints == null)\n _domainConstraints = new DomainConstraints(this, null, Keys.SYNTHETIC_FK_DOMAIN_CONSTRAINTS__SYNTHETIC_PK_CHECK_CONSTRAINTS.getInverseKey());\n\n return _domainConstraints;\n }",
"public Collection<AskConstraint> getAskConstraints()\n {\n\t\treturn Empty.getInstance();\n\t}",
"@Generated\n @Selector(\"isConstrained\")\n public native boolean isConstrained();",
"DriveConstraintType getDriveConstraint();",
"public StrColumn getRecvdNmrConstraints() {\n return delegate.getColumn(\"recvd_nmr_constraints\", DelegatingStrColumn::new);\n }",
"public interface Constraint extends TOSCAObject<Constraint> {\n\n\tpublic String name();\n\n\tpublic default Constraint.Type type() {\n\t\treturn Type.valueOf(Type.class, name());\n\t}\n\n\t/* this is a one entry map so here we pick the single \n\t */\n\tpublic default Object expression() {\n\t\treturn info().values().iterator().next();\n\t}\n\n\tpublic enum Type {\n\t\tequal,\n\t\tgreater_than,\n\t\tgreater_or_equal,\n\t\tless_than,\n\t\tless_or_equal,\n\t\tin_range,\n\t\tvalid_values,\n\t\tlength,\n\t\tmin_length,\n\t\tmax_length,\n\t\tpattern\n\t}\n}",
"public MethodConstraints getMethodConstraints(Object proxy) {\n\treturn super.getMethodConstraints(proxy);\n }",
"public StrColumn getDepReleaseCodeNmrConstraints() {\n return delegate.getColumn(\"dep_release_code_nmr_constraints\", DelegatingStrColumn::new);\n }",
"public Constraint getConstraint(int i) {\r\n\t\treturn getConstraints().get(i);\r\n\t}",
"@Override\n protected View getConstraintLayout() {\n return mConstraintLayout;\n }",
"public TableConstraints tableConstraints() {\n if (_tableConstraints == null)\n _tableConstraints = new TableConstraints(this, Keys.SYNTHETIC_FK_CHECK_CONSTRAINTS__SYNTHETIC_PK_TABLE_CONSTRAINTS, null);\n\n return _tableConstraints;\n }",
"public List<ColumnConstraintSet<R, ?>> getConstraintSets() {\n\t\treturn constraintSets;\n\t}",
"public CheckConstraints() {\n this(DSL.name(\"CHECK_CONSTRAINTS\"), null);\n }",
"public NlsString getConstraint() {\n\tString syntax = getPnlEditor().getText();\n\n\tif ((syntax != null) && (syntax.length() > 0)) {\n\t\t// replace current value\n\t\tif (((ConstraintExpression)constraint.getBody()).getSyntax() == null) {\n\t\t\treturn new ch.ehi.basics.types.NlsString(syntax);\n\t\t} else {\n\t\t\treturn new ch.ehi.basics.types.NlsString(((ConstraintExpression)constraint.getBody()).getSyntax(), syntax);\n\t\t}\n\t} else {\n\t\treturn null;\n\t}\n}",
"public NodeConstraints createNodeConstraintsObject() {\n NodeConstraints c = new NodeConstraints(getClass().getCanonicalName(), getReturnTypes(), numChildren, NodeConstraints.ERC);\n Object[] args = getConstructorArgs();\n if (args != null) {\n c.setArgs(args);\n }\n return c;\n }",
"public int getConstraintSchemaPart() {\n return schemaPart;\n }",
"ConstraintModelFactory getConstraintModelFactory();",
"public boolean getHonorConstraints()\r\n {\r\n return (m_honorConstraints);\r\n }",
"public java.util.List<PlacementConstraint> getPlacementConstraints() {\n if (placementConstraints == null) {\n placementConstraints = new com.amazonaws.internal.SdkInternalList<PlacementConstraint>();\n }\n return placementConstraints;\n }",
"String getConstraintSetId();",
"public PgConstraint getConstraint(final String name) {\n PgConstraint constraint = null;\n \n for (PgConstraint curConstraint : constraints) {\n if (curConstraint.getName().equals(name)) {\n constraint = curConstraint;\n \n break;\n }\n }\n \n return constraint;\n }",
"public List<ContextConstraint> getConstraintsNoTransform() {\n return getConstraintListNoTransform();\n }",
"public TournamentEditorConstraints getTournamentEditorConstraints();",
"public int getNumConstraint() {\n return getConstraintList().getNumChild();\n }",
"void setConstraints(com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation constraints);",
"public Interval getConstraint (int subcl) {\n return this.constraints[subcl-1];\n }",
"public interface ParameterConstraint\n{\n /**\n * Gets the unique name of the constraint\n * \n * @return String constraint name\n */\n String getName();\n \n /**\n * Indicates whether the provided value satisfies the constraint. True if it does, false otherwise.\n * \n * @return boolean true if valid, false otherwise\n */\n boolean isValidValue(String value);\n \n /**\n * \n * @param value\n * @return\n */\n String getValueDisplayLabel(String value);\n \n /**\n * \n */\n Map<String, String> getAllowableValues();\n}",
"public List<ConstraintParameter> getParameters() {\n\t\t// TODO send out a copy..not the reference to our actual data\n\t\treturn m_parameters;\n\t}",
"public RemoteMethodControl setConstraints(MethodConstraints constraints) \n {\n\tRemoteMethodControl rmc = (RemoteMethodControl) getSource(); \n\tJavaSpace spaceProxy = (JavaSpace) rmc.setConstraints(constraints);\n\treturn new ConstrainableOutriggerAvailabilityEvent(\n\t\tspaceProxy,\n\t\tgetID(),\n\t\tgetSequenceNumber(),\n\t\tgetRegistrationInstance(),\n\t\tisVisibilityTransition(),\n\t\tgetEntryRep()\n\t);\n }",
"public String getConstraintInstance() {\n\t\treturn getAttribute(\"ConstraintInstance\", \"\");\n\t}",
"public ElementDefinitionDt setConstraint(java.util.List<Constraint> theValue) {\n\t\tmyConstraint = theValue;\n\t\treturn this;\n\t}",
"List<Constraint> getQualifier();",
"public Constraint getConstraintFirstRep() {\n\t\tif (getConstraint().isEmpty()) {\n\t\t\treturn addConstraint();\n\t\t}\n\t\treturn getConstraint().get(0); \n\t}",
"public Constraint addConstraint() {\n\t\tConstraint newType = new Constraint();\n\t\tgetConstraint().add(newType);\n\t\treturn newType; \n\t}",
"@Override\n public Interval card () {\n if (this.card == null) \n if (this.constraints.length == 1) \n this.card = this.constraints[0];\n else {\n int lb = 0, ub = 0;\n boolean unbounded=false;\n for (Interval x : this.constraints) {\n lb += x.lb();\n if (x.unbounded()) \n unbounded=true;\n else \n ub +=x.ub();\n }\n this.card = unbounded ? new Interval(lb) : new Interval(lb,ub);\n }\n \n return this.card;\n }",
"boolean hasInputConstraints();",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation addNewConstraints();",
"public double returnsConstraint()\n\t{\n\t\treturn _returnsConstraint;\n\t}",
"public Collection<EqConstraint> getEqConstraints()\n {\n\t\treturn new AbstractUnmodifiableCollection<EqConstraint>() {\n\t\t\t@Override\n\t\t\tpublic int size() {\n\t\t\t\treturn $$eqHashIndex_0.size();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Iterator<EqConstraint> iterator() {\n\t\t\t\treturn lookupEq();\n\t\t\t}\n\t\t};\n\t}",
"List<IViewEntity> getConstraintEntities();",
"Collection<? extends Integer> getHasRestraintType();",
"public static List<Constraint> getAttributeConstraints(ServiceReference reference) {\n\t\tString keys[] = reference.getPropertyKeys();\n\t\tList<Constraint> attConstraints = new ArrayList<Constraint>();\n\t\tfor (String key : keys) {\n\t\t\tif (key != null && key.toLowerCase().startsWith(Attribute.SERVICE_CONSTRAINT) || key.toLowerCase().startsWith(Attribute.OPERATION_CONSTRAINT) ) {\n\t\t\t\tObject value = reference.getProperty(key);\n\t\t\t\tConstraint attConstraint = parse(key, value);\n\t\t\t\tif (attConstraint != null) {\n\t\t\t\t\tattConstraints.add(attConstraint);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn attConstraints;\n\t}",
"public LinearConstraint() {\n\n }",
"public DimensionContable getDimensionContable()\r\n/* 196: */ {\r\n/* 197:245 */ return this.dimensionContable;\r\n/* 198: */ }",
"void setNilConstraints();",
"@objid (\"26d53da3-186f-11e2-bc4e-002564c97630\")\n public Constraint getCreatedConstraint() {\n return this.createdConstraint;\n }",
"public DimensionContable getDimensionContable()\r\n/* 202: */ {\r\n/* 203:244 */ return this.dimensionContable;\r\n/* 204: */ }",
"LengthConstraint createLengthConstraint();",
"public interface GridConstraint {\n\n\t/**\n\t * Length of the grid.\n\t */\n\tpublic static final int GRID_X_SIZE = 5;\n\n\t/**\n\t * Width of the grid.\n\t */\n\tpublic static final int GRID_Y_SIZE = 5;\n\n\t/**\n\t * Checks whether the given x and y values are on the grid and not off the grid.\n\t * \n\t * @param xValue\n\t * x coordinate\n\t * @param yValue\n\t * y coordinate\n\t * @return true if on the grid and false if off the grid\n\t */\n\tpublic boolean onGrid(int xValue, int yValue);\n}",
"protected ConstraintPanel getSetPanel() {\n\t\tif (setPanel == null) {\t\t\t\n\t\t\tsetPanel = new ConstraintPanel(this);\n\t\t\tsetPanel.setLayout(new BoxLayout(getSetPanel(), BoxLayout.X_AXIS));\n\t\t\tsetPanel.add(getPackSizeLabel(), null);\n\t\t\tsetPanel.add(getCollectionSizePanel(), null);\n\t\t}\n\t\treturn setPanel;\n\t}",
"public interface UserDefinedConstraints extends EObject {\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @model\n\t * @generated\n\t */\n\tvoid _NC_SingeltonSystem(SystemTimer system1, SystemTimer system2);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @model\n\t * @generated\n\t */\n\tvoid _NC_SingeltonCurrentSem(Semester sem2, Semester sem1);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @model\n\t * @generated\n\t */\n\tvoid _NC_NoTwoEnrollmentsWithSameID(Enrollment en1, Enrollment en2);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @model\n\t * @generated\n\t */\n\tvoid _NC_NoTwoEntriesWithSameID(GradeFormular gf);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @model\n\t * @generated\n\t */\n\tvoid _NC_onlyOneRecordForModuleOfferAndExam(Enrollment en);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @model\n\t * @generated\n\t */\n\tvoid _XNC_onlyOneCMOPerExam(Enrollment en);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @model\n\t * @generated\n\t */\n\tvoid _NC_OnlyOneRegPerEnrollment(Record rec2, Record rec1);\n\n\t/**\n\t * <!-- begin-user-doc --> <!-- end-user-doc -->\n\t * \n\t * @model\n\t * @generated\n\t */\n\tvoid _NC_NoCompetingBookings(Room room);\n\t// <-- [user code injected with eMoflon]\n\n\t// [user code injected with eMoflon] -->\n}",
"public void setConstraint(int constraint) {\n mConstraint = constraint;\n }",
"public abstract void printConstraint();",
"@Override\n public ConstraintsDescriptor getDescriptor(String fqName) {\n\n Object constraintsObject = getObjectByClassNameForConcept(NameUtil.getAspectNodeFqName(fqName, LanguageAspect.CONSTRAINTS) + \"_Constraints\", fqName, false);\n\n ConstraintsDescriptor descriptor = null;\n\n if (constraintsObject == null) {\n // if ConstraintsDescriptor not exist too - return EmptyConstraintsDataHolder\n if (ModelConstraintsManager.getOldConstraintsDescriptor(NameUtil.namespaceFromConceptFQName(fqName)) == null) {\n descriptor = new BaseConstraintsDescriptor(fqName);\n }\n } else {\n if (ConstraintsDataHolder.class.isAssignableFrom(constraintsObject.getClass())) {\n try {\n ConstraintsDataHolder compiledDataHolder = (ConstraintsDataHolder) constraintsObject;\n descriptor = new DataHolderConstraintsDescriptor(compiledDataHolder);\n } catch (Exception ignored) {\n }\n }\n }\n\n if (descriptor == null) {\n descriptor = new DataHolderConstraintsDescriptor(new InterpretedConstraintsDataHolder(fqName));\n }\n\n return descriptor;\n }",
"boolean isNilConstraints();",
"@SuppressWarnings({\"unchecked\", \"cast\"}) public ContextConstraint getConstraint(int i) {\n return (ContextConstraint)getConstraintList().getChild(i);\n }",
"public ConstraintAnimation getConstraintAnimation() {\n return constraintAnimation;\n }",
"public CPointer<Object> getPhysics_constraint() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 144);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 136);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Object.class};\n\t\treturn new CPointer<Object>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, -1), __io__blockTable);\n\t}",
"protected void addConstraints() throws IloException {\n// Constrain (2)\n for (int i = 0; i < m; i++) {\n IloLinearNumExpr expr_2 = model.linearNumExpr();\n for (int j = 0; j < n; j++) {\n expr_2.addTerm(x[i][j], 1);\n }\n model.addLe(expr_2, supply[i]);\n }\n\n // Constrain (3)\n for (int j = 0; j < n; j++) {\n IloLinearNumExpr expr_3 = model.linearNumExpr();\n for (int i = 0; i < m; i++) {\n expr_3.addTerm(x[i][j], 1);\n }\n model.addEq(expr_3, demands[j]);\n }\n }",
"public interface SimpleRestriction extends SchemaComponent {\n public static final String ENUMERATION_PROPERTY = \"enumerations\";\n public static final String PATTERN_PROPERTY = \"patterns\";\n public static final String MIN_EXCLUSIVE_PROPERTY = \"minExclusives\";\n public static final String MIN_LENGTH_PROPERTY = \"minLengths\";\n public static final String MAX_LENGTH_PROPERTY = \"maxLengths\";\n public static final String FRACTION_DIGITS_PROPERTY = \"fractionDigits\";\n public static final String WHITESPACE_PROPERTY = \"whitespaces\";\n public static final String MAX_INCLUSIVE_PROPERTY = \"maxInclusives\";\n public static final String TOTAL_DIGITS_PROPERTY = \"totalDigits\";\n public static final String LENGTH_PROPERTY = \"lengths\";\n public static final String MIN_INCLUSIVE_PROPERTY = \"minInclusives\";\n public static final String MAX_EXCLUSIVE_PROPERTY = \"maxExclusives\";\n public static final String BASE_PROPERTY = \"base\";\n public static final String INLINETYPE_PROPERTY = \"inlinetype\";\n \n Collection<TotalDigits> getTotalDigits();\n void addTotalDigit(TotalDigits td);\n void removeTotalDigit(TotalDigits td);\n \n Collection<MinExclusive> getMinExclusives();\n void addMinExclusive(MinExclusive me);\n void removeMinExclusive(MinExclusive me);\n \n Collection<MinInclusive> getMinInclusives();\n void addMinInclusive(MinInclusive me);\n void removeMinInclusive(MinInclusive me);\n \n Collection<MinLength> getMinLengths();\n void addMinLength(MinLength ml);\n void removeMinLength(MinLength ml);\n \n Collection<MaxLength> getMaxLengths();\n void addMaxLength(MaxLength ml);\n void removeMaxLength(MaxLength ml);\n \n Collection<Pattern> getPatterns();\n void addPattern(Pattern p);\n void removePattern(Pattern p);\n \n Collection<MaxExclusive> getMaxExclusives();\n void addMaxExclusive(MaxExclusive me);\n void removeMaxExclusive(MaxExclusive me);\n \n Collection<MaxInclusive> getMaxInclusives();\n void addMaxInclusive(MaxInclusive me);\n void removeMaxInclusive(MaxInclusive me);\n \n Collection<Length> getLengths();\n void addLength(Length me);\n void removeLength(Length me);\n \n Collection<Whitespace> getWhitespaces();\n void addWhitespace(Whitespace me);\n void removeWhitespace(Whitespace me);\n \n Collection<FractionDigits> getFractionDigits();\n void addFractionDigits(FractionDigits fd);\n void removeFractionDigits(FractionDigits fd);\n \n Collection<Enumeration> getEnumerations();\n void addEnumeration(Enumeration fd);\n void removeEnumeration(Enumeration fd);\n \n LocalSimpleType getInlineType();\n void setInlineType(LocalSimpleType aSimpleType);\n \n}",
"public String getConstraintReference() {\n return constraintName + '.' + clause;\n }",
"ValueRangeConstraint createValueRangeConstraint();"
] | [
"0.7593114",
"0.7461018",
"0.7139735",
"0.7079745",
"0.6898075",
"0.68674976",
"0.686355",
"0.6813287",
"0.6740089",
"0.66587764",
"0.66004187",
"0.65609413",
"0.6514716",
"0.6498507",
"0.64512444",
"0.64460874",
"0.6443249",
"0.6427069",
"0.6419719",
"0.6414252",
"0.63977134",
"0.63857347",
"0.6326691",
"0.6224633",
"0.6210063",
"0.619127",
"0.61805606",
"0.6160885",
"0.61447656",
"0.6137782",
"0.612076",
"0.612076",
"0.6111867",
"0.6072689",
"0.5998102",
"0.59260535",
"0.5924723",
"0.59143215",
"0.59100956",
"0.5904781",
"0.5900953",
"0.5864888",
"0.5862646",
"0.5849122",
"0.5846244",
"0.58372796",
"0.5827341",
"0.57946116",
"0.5790062",
"0.5779658",
"0.57796043",
"0.57761216",
"0.57623917",
"0.5739715",
"0.56863016",
"0.5667662",
"0.56253105",
"0.5614404",
"0.5610379",
"0.55756843",
"0.5539268",
"0.552804",
"0.55276096",
"0.5518571",
"0.5495828",
"0.54941916",
"0.5484913",
"0.5483637",
"0.54755443",
"0.5463506",
"0.54602784",
"0.5446574",
"0.54453593",
"0.5435186",
"0.5427151",
"0.54270136",
"0.5402541",
"0.5393755",
"0.53860575",
"0.53821325",
"0.5377531",
"0.53771555",
"0.5377025",
"0.53738934",
"0.53717136",
"0.53711313",
"0.53468096",
"0.53200114",
"0.5289539",
"0.527695",
"0.5273613",
"0.5267928",
"0.5259899",
"0.52331793",
"0.5220826",
"0.52114177",
"0.520993",
"0.52099127",
"0.5208248",
"0.52030396"
] | 0.7327026 | 2 |
Getter method for the COM property "Relations" | @DISPID(1610940428) //= 0x6005000c. The runtime will prefer the VTID if present
@VTID(34)
Relations relations(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getRelations() {\n/* 270 */ return getStringArray(\"relation\");\n/* */ }",
"public ru.terralink.mvideo.sap.Relations getRelations()\n {\n if (! __relationsValid)\n {\n if( (__relationsFK != null))\n {\n __relations = ru.terralink.mvideo.sap.Relations.find(__relationsFK);\n }\n __relationsValid = true;\n }\n return __relations;\n }",
"public org.LexGrid.relations.Relations[] getRelations() {\n return relations;\n }",
"public Set<Relation> getRelations();",
"public String[] listRelations();",
"public ReadOnlyIterator<Relation> getRelations();",
"public java.lang.Object[] getRelationsAsReference() {\n return relationsAsReference;\n }",
"public Set<Relationship> getRelations() {\n return this.relations;\n }",
"public HashMap<String, Relation> getRelations() {\n return relations;\n }",
"@Override\n public com.gensym.util.Sequence getRelationships() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.RELATIONSHIPS_);\n return (com.gensym.util.Sequence)retnValue;\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations getFurtherRelations();",
"public String getRelation() {\n return relation;\n }",
"@Override\n public Set<String> getRelations() {\n if (cachedRelations != null) {\n return cachedRelations;\n }\n cachedRelations = new LinkedHashSet<String>();\n for (EventNode node : nodes) {\n cachedRelations.addAll(node.getNodeRelations());\n }\n return cachedRelations;\n }",
"@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"public String get_relation() {\n\t\treturn relation;\n\t}",
"public ObjectProp getRelationship() {\n return relationship;\n }",
"List<IViewRelation> getViewRelations();",
"public ReadOnlyIterator<Relation> getIncomingRelations();",
"public final native String getRelationship() /*-{\n return this.getRelationship();\n }-*/;",
"public Set<RelationType> getRelationTypes();",
"public javax.accessibility.AccessibleRelationSet getAccessibleRelationSet() {\n try {\n XAccessibleRelationSet unoAccessibleRelationSet = unoAccessibleContext.getAccessibleRelationSet();\n if (unoAccessibleRelationSet == null) {\n return null;\n }\n \n javax.accessibility.AccessibleRelationSet relationSet = new javax.accessibility.AccessibleRelationSet();\n int count = unoAccessibleRelationSet.getRelationCount();\n for (int i = 0; i < count; i++) {\n AccessibleRelation unoAccessibleRelation = unoAccessibleRelationSet.getRelation(i);\n switch (unoAccessibleRelation.RelationType) {\n case AccessibleRelationType.CONTROLLED_BY:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.CONTROLLED_BY,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.CONTROLLER_FOR:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.CONTROLLER_FOR,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.LABELED_BY:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.LABELED_BY,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.LABEL_FOR:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.LABEL_FOR,\n create(unoAccessibleRelation.TargetSet)));\n break;\n case AccessibleRelationType.MEMBER_OF:\n relationSet.add(new javax.accessibility.AccessibleRelation(\n javax.accessibility.AccessibleRelation.MEMBER_OF,\n create(unoAccessibleRelation.TargetSet)));\n break;\n default:\n break;\n }\n }\n return relationSet;\n } catch (com.sun.star.lang.IndexOutOfBoundsException e) {\n return null;\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }",
"List<IViewRelation> getConstraintRelations();",
"public ReadOnlyIterator<Relation> getAllRelations();",
"public abstract RelationDeclaration getRelation();",
"EReference getRelationReference();",
"Relations getGroupOfRelations();",
"public java.lang.String getRELATION_ID() {\r\n return RELATION_ID;\r\n }",
"public String getInverseRelationshipName ();",
"public int getRelationNo() {\n return _relationNo;\n }",
"public Vector<HibernateRelationship> getRelationships() {\n\t\treturn relationships;\n\t}",
"public String getRelationPropertyName() {\n return getForeignPropertyName();\n }",
"public Collection<Relation> getAllRelations() {\n return Collections.unmodifiableCollection(relations.values());\n }",
"public Iterable<Relationship> getRelationships();",
"public Relation getRelation(String relationName);",
"public interface IRelation {\n\n\t/**\n\t * Gets the negation of the relation.\n\t */\n\tRelation getNegation();\n}",
"public int getRelationsCount() {\n return relationsCount;\n }",
"public CodeableConcept relationship() {\n return getObject(CodeableConcept.class, FhirPropertyNames.PROPERTY_RELATIONSHIP);\n }",
"@Nullable\n public RelationInfo relation() {\n return relation;\n }",
"@Override\n\t\tpublic Iterable<Relationship> getRelationships() {\n\t\t\treturn null;\n\t\t}",
"public Map<String, String> getRelationAttributes() {\n return relationAttributes;\n }",
"public abstract List<AbstractRelationshipTemplate> getIngoingRelations();",
"public Relations() {\n relations = new ArrayList();\n }",
"@Override\n\tpublic List<PersonRelation> getPersonRelation(PersonRelation personRelation) {\n\t\treturn null;\n\t}",
"public XIterable<ArticleX> relateds() {\n\t\tfinal IteratorList<ReadNode> relateds = node().refChildren(\"related\").iterator() ;\n\t\treturn XIterable.create(domain(), relateds.toList(), MapUtil.<String, String>newMap(), ArticleX.class) ;\n\t}",
"public ReadOnlyIterator<Relation> getRelations(XDI3Segment arcXri);",
"public interface HasRelation {\r\n\r\n\tpublic boolean addRelation(Relation relation);\r\n\tpublic boolean removeRelation(Relation relation);\r\n\tpublic List<Relation> getRelations();\r\n}",
"public abstract List<AbstractRelationshipTemplate> getOutgoingRelations();",
"private boolean getRelationsValid()\n {\n \n return __relationsValid;\n }",
"public ReadOnlyIterator<Relation> getAllIncomingRelations();",
"@Override\n\t\tpublic Iterable<RelationshipType> getRelationshipTypes() {\n\t\t\treturn null;\n\t\t}",
"public String getRel() {\r\n return rel;\r\n }",
"public Set<Cause> getRelations() {\n\t\tSet<Cause> relations = new TreeSet<Cause>();\n\t\tfor (Relation relation : this.effectRelations) {\n\t\t\tif (!this.isChildOf(relation.causeTo)) {\n\t\t\t\trelations.add(relation.causeTo);\n\t\t\t}\n\t\t}\n\t\treturn relations;\n\t}",
"public boolean containsRelations();",
"public RelationManager getRelationManager();",
"@Override\n\tpublic String toString() {\n\t\treturn \"(relation \" +\n\t\t\t\t(this.source != null ? this.source.getId() : \"nil\") + \" \" +\n\t\t\t\tthis.name.toString() + \" \" +\n\t\t\t\t(this.dest != null ? this.dest.toString() : \"nil\") + \")\";\n\t}",
"public ReadOnlyIterator<Relation> getDeepRelations(XDI3Segment contextNodeXri);",
"public abstract Collection<IRelation> getEndingRelations(String elementUri);",
"public Collection<Reference> getReferences();",
"@Override\n\t\tpublic Iterable<Relationship> getRelationships(Direction dir) {\n\t\t\treturn null;\n\t\t}",
"public Set<OpconRegitemRelation> getOpconRegitemRelation() {\n return opconRegitemRelation;\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfObjectiveRelation getObjectives();",
"public void setRelations(org.LexGrid.relations.Relations[] relations) {\n this.relations = relations;\n }",
"public CycFort getRelevancyRelationship () {\n return relevancyRelationship;\n }",
"public String getDescricaoRelatorio() {\n\t\treturn descricaoRelatorio;\n\t}",
"public String toStringWithRelation();",
"public java.lang.Long getRelationsFK()\n {\n \n return __relationsFK;\n }",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfConstraintRelation getConstraints();",
"public void setRelations(ru.terralink.mvideo.sap.Relations value)\n {\n if (getRelations() != null)\n {\n if( !__relations.equals(value) )\n {\n _isDirty = true;\n }\n }\n else if(value != null)\n {\n _isDirty = true;\n }\n if(__relations != null)\n {\n __relations.setDirty(_isDirty);\n }\n if (value == null)\n {\n __relationsFK = null;\n }\n else\n {\n value.setDirty(_isDirty);\n __relationsFK = value._pk();\n __IV_FO_TOR_ID = value.getFO_TOR_ID();\n __IV_FU_TOR_ID = value.getFU_TOR_ID();\n }\n __relationsValid = true;\n __relations = value;\n }",
"org.hl7.fhir.ObservationRelated[] getRelatedArray();",
"public SpatialRelation getSpatialRelation() {\n return spatialRelation;\n }",
"Object getROIs();",
"@JsonProperty(\"rel\")\n public Link.Rel getRel() {\n return rel;\n }",
"Table getReferences();",
"public Relationship getRelationship() {\n\t\treturn relationship;\n\t}",
"public ReadOnlyIterator<Relation> getIncomingRelations(XDI3Segment arcXri);",
"@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1ObjectReference getRelated();",
"public Long getRelateId() {\n return relateId;\n }",
"boolean isSetFurtherRelations();",
"public abstract Collection<IRelation> getStartingRelations(String elementUri);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getRelatedTo();",
"public long getRelationCount();",
"public default List<InheritanceRelation> inheritanceRelations() throws LookupException {\n return nonMemberInheritanceRelations();\n }",
"@Override\n public Map<PhysicalObject, Double> getRelationBetweenCentralAndObject() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"public SpatialRelation getPolygonRectangleRelation() {\n return polygonRectangleRelation;\n }",
"void setFurtherRelations(ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations furtherRelations);",
"public List<PhysicsJoint> getJoints() {\n return joints;\n }",
"public Collection<UniqueID> getReferenceList() {\n return ObjectGraph.getReferenceList(this.id);\n }",
"public Map<String, Set<String>> getRelatedEntities() {\n return relatedEntities;\n }",
"@NonNull String getAssociationsLink() {\n return associationsLink;\n }",
"Collection<AssociationEnd> getAssociations();",
"@Override\n\tpublic List<PersonRelation> getPersonRelationByrelatedPerson(\n\t\t\tPerson relatedPerson) {\n\t\treturn null;\n\t}",
"public OBOProperty getDefaultRelationship() {\n return DEFAULT_REL; // genotype influences phenotype\n }",
"public void set_relation(String relation){\n\t\tthis.relation = relation;\n\t}",
"boolean hasRelation();",
"public Set getRelatedObjects() {\n\t\treturn adaptee.getResultLocus();\n\t}",
"public Relation getRelation(String name) {\n return relations.get(name);\n }",
"public String getInverseRelationshipName ()\n\t{\n\t\treturn getRelationshipImpl().getInverseRelationshipName();\n\t}",
"@Override\n\tpublic List<PersonRelation> getPersonRelationByPerson(Person person) {\n\t\treturn null;\n\t}",
"public Set<Profile> getRelatives() {\n\t\tSet<Profile> parents = new HashSet<>();\n\t\tparents.add(_parent1);\n\t\tparents.add(_parent2);\n\t\treturn parents;\n\t}",
"@Override\n\t\tpublic Iterable<Relationship> getRelationships(RelationshipType type, Direction dir) {\n\t\t\treturn null;\n\t\t}"
] | [
"0.8131639",
"0.78044933",
"0.7780256",
"0.77695835",
"0.75817615",
"0.7343158",
"0.730516",
"0.7275917",
"0.7183904",
"0.6948856",
"0.6797718",
"0.6795556",
"0.6729814",
"0.6688294",
"0.66352564",
"0.6548232",
"0.65385866",
"0.65361327",
"0.65259904",
"0.6501699",
"0.6474208",
"0.64695466",
"0.64511615",
"0.64460176",
"0.6414275",
"0.6370106",
"0.63430494",
"0.6327702",
"0.6309787",
"0.6293929",
"0.62904793",
"0.625396",
"0.6236232",
"0.62299985",
"0.61812705",
"0.61802614",
"0.617392",
"0.6133723",
"0.61230695",
"0.61080843",
"0.6084977",
"0.6083158",
"0.6053686",
"0.60521543",
"0.6028389",
"0.6009139",
"0.60073316",
"0.5998957",
"0.5959131",
"0.5943887",
"0.5911303",
"0.58979535",
"0.58878845",
"0.58764327",
"0.58151317",
"0.5782953",
"0.57643026",
"0.5747714",
"0.57463706",
"0.5733389",
"0.57295525",
"0.5712929",
"0.57016784",
"0.56890476",
"0.56861013",
"0.5654707",
"0.56500435",
"0.5641695",
"0.56366986",
"0.5617544",
"0.56144273",
"0.5612162",
"0.56094956",
"0.56060123",
"0.55785656",
"0.5576916",
"0.5568317",
"0.5561854",
"0.5541559",
"0.5540541",
"0.5527627",
"0.5519826",
"0.55080837",
"0.5502114",
"0.5498965",
"0.5493123",
"0.549119",
"0.54799265",
"0.54731566",
"0.54651636",
"0.5456692",
"0.54462624",
"0.54389656",
"0.54339737",
"0.54157126",
"0.5415533",
"0.54142296",
"0.5396218",
"0.539141",
"0.53824484"
] | 0.73645025 | 5 |
Getter method for the COM property "Parameters" | @DISPID(1610940429) //= 0x6005000d. The runtime will prefer the VTID if present
@VTID(35)
Parameters parameters(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Properties getParameters() {\r\n return mParameters;\r\n }",
"public String getParameters() {\n return this.Parameters;\n }",
"public Properties getParameters() {\n\t\treturn null;\n\t}",
"public Parameters getParameters();",
"public Parameters getParameters() {\r\n return params;\r\n }",
"public String[] getParameters() {\r\n return parameters;\r\n }",
"public String[] getParameters() {\n return parameters;\n }",
"public String[] getParameters() {\n\t\treturn parameters;\n\t}",
"@Override\n public String getParameters() {\n return parameters;\n }",
"String [] getParameters();",
"ParameterList getParameters();",
"public Parameters getParameters() {\n \treturn parameters;\n }",
"@Override\n public Parameters getParams() {\n return parameters;\n }",
"public Object parameters() {\n return this.parameters;\n }",
"public ArrayList getParameters() {\n return parameters;\n }",
"public Parameter[] getParameters()\r\n {\r\n return m_params;\r\n }",
"public Parameters getParameters() {\n Parameters p = new Parameters();\n String s = native_getParameters();\n Log.e(TAG, \"_getParameters: \" + s);\n p.unflatten(s);\n return p;\n }",
"public Map<String, Object> getParameters() {\n return this.parameters;\n }",
"@Override\n\t\tpublic Object[] getParameters() {\n\t\t\treturn null;\n\t\t}",
"public DataType[] getParameters() {\n return parameters;\n }",
"public Map getParameters() {\r\n\t\treturn parameters;\r\n\t}",
"public List<JParameter> getParams() {\n return params;\n }",
"public Map<String, String> getParameters() {\r\n return _parameters;\r\n }",
"public CParam[] getParameters() {\r\n\t\treturn parameters.toArray(new CParamImpl[parameters.size()]);\r\n\t}",
"public ParameterList getParameters() {\n\t\treturn _parameters;\n\t}",
"public Map<String, List<String>> getParameters() {\n\t\t\treturn parameters;\n\t\t}",
"public java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList() {\n return java.util.Collections.unmodifiableList(parameters_);\n }",
"public Parameters getParameters() {\n return parametersReference.get();\n }",
"public List<Parameter> getParamters() {\r\n return this.lstParameters;\r\n }",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[3];\n params[0] = maxIterations;\n params[1] = lpeChecker;\n params[2] = maxResonStruc;\n return params;\n }",
"public java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList() {\n return parameters_;\n }",
"public Parameter[] getParameters() {\n return values;\n }",
"public Variable[] getParameters();",
"@NonNull\n public Map<String, Object> getParameters() {\n return parameters;\n }",
"public com.cdoframework.cdolib.service.framework.xsd.Parameter[] getParameter() {\n com.cdoframework.cdolib.service.framework.xsd.Parameter[] array = new com.cdoframework.cdolib.service.framework.xsd.Parameter[0];\n return this.parameterList.toArray(array);\n }",
"public String getParams() {\r\n\t\treturn this.params;\r\n\t}",
"INDArray getParams();",
"Map<String, Object> getParameters();",
"Map<String, Object> getParameters();",
"public Map getParameters();",
"List<PowreedCommandParameter> getParameters();",
"public ParameterData[] getParameterData() {\n return parameters;\n }",
"public Parameters getParameters() {\n\t\tElement params = getModelXMLElement(\"parameters\");\n\t\tif (params != null) {\n\t\t\tParameters p = new Parameters();\n\t\t\tNodeList nl = params.getElementsByTagName(\"param\");\n\t\t\tdouble[] cur = new double[nl.getLength()];\n\t\t\tfor (int i = 0; i < nl.getLength(); i++) {\n\t\t\t\tNode n = nl.item(i);\n\t\t\t\tString name = getNodeAttributeValue(n, \"name\");\n\t\t\t\t// Set \\mu_i if no name is given.\n\t\t\t\tif (name == null) {\n\t\t\t\t\tname = \"\\u00B5_\" + i;\n\t\t\t\t}\n\t\t\t\t// Add\n\t\t\t\tp.addParam(name, Double.parseDouble(getNodeAttributeValue(n, \"min\")),\n\t\t\t\t\t\tDouble.parseDouble(getNodeAttributeValue(n, \"max\")));\n\t\t\t\t// Extract default values and set as current, take min value if\n\t\t\t\t// no default is set\n\t\t\t\tString def = getNodeAttributeValue(n, \"default\");\n\t\t\t\tcur[i] = def != null ? Double.parseDouble(def) : p.getMinValue(i);\n\t\t\t}\n\t\t\tp.setCurrent(cur);\n\t\t\treturn p;\n\t\t}\n\t\treturn null;\n\t}",
"public Map<String, String> parameters() {\n return this.parameters;\n }",
"public ArrayList<String> getParameterValues() { return this.params; }",
"@TestMethod(value=\"testGetParameters\")\n public Object[] getParameters() {\n // return the parameters as used for the descriptor calculation\n Object[] params = new Object[1];\n params[0] = maxIterations;\n return params;\n }",
"public void getParameters(Parameters parameters) {\n\n }",
"public String getParameters() {\n\t\treturn this.appTda_.getParameters();\n\t}",
"public List<Parameter> getParameter( )\n {\n return _parameter;\n }",
"IParameterCollection getParameters();",
"public cto.framework.web.action.plugin.schema.Parameter[] getParameter() {\r\n cto.framework.web.action.plugin.schema.Parameter[] array = new cto.framework.web.action.plugin.schema.Parameter[0];\r\n return this._parameterList.toArray(array);\r\n }",
"Map<String, String> getParameters();",
"public List getParameterValues() {\r\n\t\treturn parameterValues;\r\n\t}",
"public List<TypeDefinition> getParameters() {\n\t\treturn parameters;\n\t}",
"public Map<String, List<String>> parameters() {\n return parameters;\n }",
"java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList();",
"public Map<String, NotebookParameter> getParameters() {\n return this.parameters;\n }",
"public Object[] getParameters() {\n \t// return the parameters as used for the rule validation\n Object[] params = new Object[1];\n params[0] = charge;\n return params;\n }",
"@Override\n public List<ParameterAssignment> getParameters()\n {\n return parameters;\n }",
"public List<Parameter> parameters() {\n if (_params != null && !_params.isEmpty()) {\n return new ArrayList<Parameter>(_params.values());\n }\n return null;\n }",
"public java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> getParamsList() {\n return params_;\n }",
"public List<ConstraintParameter> getParameters() {\n\t\t// TODO send out a copy..not the reference to our actual data\n\t\treturn m_parameters;\n\t}",
"public void getParameters(Parameters parameters) {\n\n\t}",
"public List<ParameterObject> getParameterList() {\n return parameterList;\n }",
"public TPS_ParameterClass getParameters() {\n return this.parameterClass;\n }",
"protected final double[] getParametersArray() {\n\treturn parameters;\n }",
"public String getParameters() {\n if (parameters == null) {\n return null;\n }\n return new JSONObject(parameters).toString();\n }",
"@java.lang.Override\n public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter> getParametersList() {\n return parameters_;\n }",
"public List<ModuleArgumentItem> getParams() {\n return params;\n }",
"public java.util.List<? extends datawave.webservice.query.QueryMessages.QueryImpl.ParameterOrBuilder> getParametersOrBuilderList() {\n return parameters_;\n }",
"protected String getParameter() {\r\n return this.parameter;\r\n }",
"@java.lang.Override\n public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter>\n getParametersList() {\n return parameters_;\n }",
"public String getParameters() {\r\n\t\t\r\n\t\tString strLength = String.valueOf(length);\r\n\t\tString strWidth = String.valueOf(width);\r\n\t\tString strHeight = String.valueOf(height);\r\n\t\t\r\n\t\treturn \"Length: \" + strLength + \"\\nWidth: \" + strWidth + \"\\nHeight: \" + strHeight;\r\n\t}",
"public int getNumberParameters() { return parameters.length; }",
"public List<IParam> getParams();",
"public List<IParam> getParams();",
"public ParameterPanel getParameterPanel() {\n return m_parameters;\n }",
"java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> \n getParamsList();",
"public Parametro[] getParametros() {\n return parametros;\n }",
"public String[] getParameters() {\r\n return scope != null? scope.getParameters() : null;\r\n }",
"public Map getParams() {\n\t\treturn _params;\n\t}",
"public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter>\n getParametersList() {\n if (parametersBuilder_ == null) {\n return java.util.Collections.unmodifiableList(parameters_);\n } else {\n return parametersBuilder_.getMessageList();\n }\n }",
"@Override\n\tpublic Parameter[] getParameters() {\n\t\treturn new Parameter[] { weight, tolerance, svmType, kernelType, kernelDegree, kernelGamma, kernelCoefficient, parameterC,\n\t\t\t\tparameterNu };\n\t}",
"public Map<String, Object> getParams() {\n return params;\n }",
"public NetworkParameters getParams() {\n return params;\n }",
"public List getParameterValuesDescription() {\r\n\t\treturn parameterValuesDescription;\r\n\t}",
"public java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter>\n getParametersList() {\n if (parametersBuilder_ == null) {\n return java.util.Collections.unmodifiableList(parameters_);\n } else {\n return parametersBuilder_.getMessageList();\n }\n }",
"public com.isat.catalist.oms.order.OOSOrderLineItemParamType[] getParametersArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(PARAMETERS$16, targetList);\n com.isat.catalist.oms.order.OOSOrderLineItemParamType[] result = new com.isat.catalist.oms.order.OOSOrderLineItemParamType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public List<ParameterDefinition> parameters() {\n return this.innerProperties() == null ? null : this.innerProperties().parameters();\n }",
"public List<String> getParametersLabel() {\n\t\treturn PARAMETERS;\n\t}",
"@Override\n\tpublic Object[] getGUIParameters() {\n\t\treturn null;\n\t}",
"@Override\n public List<KParameter> getParameters() {\n return getReflected().getParameters();\n }",
"public Params<T> getParams() {\n\t\treturn _params;\n\t}",
"@IID(\"{B40742AD-3BED-40B4-BD58-0F24E41ACDD2}\")\npublic interface IBPIterationParam extends com.gc.IBaseField {\n\t// Methods:\n\t/**\n\t * <p>\n\t * The BPParameter object of which this is an instance.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"BPParameter\"\n\t * </p>\n\t * \n\t * @return Returns a value of type com4j.Com4jObject\n\t */\n\n\t@DISPID(20)\n\t// = 0x14. The runtime will prefer the VTID if present\n\t@VTID(20)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject bpParameter();\n\n\t/**\n\t * <p>\n\t * The value of the parameter for this iteration.\n\t * </p>\n\t * <p>\n\t * Getter method for the COM property \"Value\"\n\t * </p>\n\t * \n\t * @return Returns a value of type java.lang.String\n\t */\n\n\t@DISPID(21)\n\t// = 0x15. The runtime will prefer the VTID if present\n\t@VTID(21)\n\tjava.lang.String value();\n\n\t/**\n\t * <p>\n\t * The value of the parameter for this iteration.\n\t * </p>\n\t * <p>\n\t * Setter method for the COM property \"Value\"\n\t * </p>\n\t * \n\t * @param pVal\n\t * Mandatory java.lang.String parameter.\n\t */\n\n\t@DISPID(21)\n\t// = 0x15. The runtime will prefer the VTID if present\n\t@VTID(22)\n\tvoid value(java.lang.String pVal);\n\n\t// Properties:\n}",
"datawave.webservice.query.QueryMessages.QueryImpl.Parameter getParameters(int index);",
"java.lang.String getParameterValue();",
"public java.util.List<com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameter> getParamsList() {\n if (paramsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(params_);\n } else {\n return paramsBuilder_.getMessageList();\n }\n }",
"@DISPID(20)\n\t// = 0x14. The runtime will prefer the VTID if present\n\t@VTID(20)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject bpParameter();",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }",
"@Override\n protected Map<String, String> getParams() {\n return params;\n }"
] | [
"0.7810633",
"0.7599378",
"0.74386424",
"0.7430177",
"0.7369468",
"0.7353772",
"0.73067325",
"0.72877514",
"0.7279827",
"0.72706234",
"0.726948",
"0.72565764",
"0.7233751",
"0.7164745",
"0.71446514",
"0.71112216",
"0.7024321",
"0.6960711",
"0.6941089",
"0.6940194",
"0.69308966",
"0.6898528",
"0.68955255",
"0.68778807",
"0.68763304",
"0.6871746",
"0.6844637",
"0.6822531",
"0.6819887",
"0.6811215",
"0.68049514",
"0.67973757",
"0.67916906",
"0.677855",
"0.67720854",
"0.6752841",
"0.6716768",
"0.6709816",
"0.6709816",
"0.6698526",
"0.66942275",
"0.6689195",
"0.6688393",
"0.66861844",
"0.66826606",
"0.6680255",
"0.66696405",
"0.66676456",
"0.66663873",
"0.66648364",
"0.6652982",
"0.66047925",
"0.6601291",
"0.6591848",
"0.6590108",
"0.65853417",
"0.65448827",
"0.6539351",
"0.65138423",
"0.65077245",
"0.64987165",
"0.6484833",
"0.6482173",
"0.6436027",
"0.6434827",
"0.64283013",
"0.6410618",
"0.640628",
"0.63997686",
"0.6388492",
"0.6386616",
"0.6386554",
"0.63836676",
"0.63748175",
"0.63702023",
"0.63702023",
"0.63681054",
"0.6350386",
"0.6348301",
"0.634413",
"0.63431823",
"0.6333165",
"0.6312743",
"0.6283975",
"0.62792146",
"0.6268972",
"0.6264901",
"0.625542",
"0.62275225",
"0.6224649",
"0.6213395",
"0.620982",
"0.6199226",
"0.61849284",
"0.61788034",
"0.6174783",
"0.6174387",
"0.61707395",
"0.61689854",
"0.6168311"
] | 0.695747 | 18 |
Getter method for the COM property "AnnotationSets" | @DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present
@VTID(36)
Collection annotationSets(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Set<String> annotations();",
"public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }",
"public ElementList[] getAnnotations() {\r\n return union.value();\r\n }",
"Set<? extends Class<? extends Annotation>> annotations();",
"public Element[] getAnnotations() {\r\n return union.value();\r\n }",
"@Override\n\tpublic Set<String> getAnnotations(OWLEntity cpt) {\n\t\treturn new HashSet<String>();\n\t}",
"public String getAnnotations() {\n\t\treturn annotations;\n\t}",
"public ArrayList<Sets> getSets() {\n return this.sets;\n }",
"public XSObjectList getAnnotations() {\n\treturn (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;\n }",
"public List<SetMappingValue> getSets() {\r\n\t\treturn sets;\r\n\t}",
"public Annotations getAnnotations() {\n\t\treturn annotations;\n\t}",
"@Override\n\tpublic AnnotationSetItem getAnnotationSetItem() {\n\t\treturn annotationSetItem;\n\t}",
"@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();",
"public AnnotationJava[] getAnnotations() {\n\t\treturn annotations;\n\t}",
"public abstract ArrayList<DrawingComponent> getAnnotationList();",
"public List<Annotation> getAnnotations() {\r\n\t\treturn rootAnnotations;\r\n\t}",
"Map<String, OperationalSets> getSets();",
"public AnnotationSetRefList getAnnotatedParameterSetRefList() {\n\t\treturn annotatedParameterSetRefList;\n\t}",
"public int[] getSetsArray()\n\t{\n\t\treturn getSets().getSetsArray();\n\t}",
"public List<Set> getSets() {\n\t\treturn this.sets;\n\t}",
"public List<AnnotationMirror> getAnnotations() {\n\t\treturn new ArrayList<>(annotations);\n\t}",
"public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }",
"public org.tigr.microarray.mev.cgh.CGHDataObj.ICGHDataRegion[][] getAnnotations();",
"public Map<String, Object> getAnnotations() {\n return ImmutableMap.copyOf(annotations);\n }",
"String[] getSupportedAnnotationPackages();",
"@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}",
"public String getAttributesetarray() {\r\n return attributesetarray;\r\n }",
"public String getAnnotation();",
"public abstract ArrayList<CustomPath> getAnnotationPathList();",
"public DisjointSets getSets()\n\t{\n\t\treturn sets;\n\t}",
"DataMap getCustomAnnotations();",
"public String getAnnotation () {\n return annotation;\n }",
"public List<String> getAnnotations() {\n return applicationIdentifiers;\n }",
"public MediaAiAnalysisClassificationItem [] getClassificationSet() {\n return this.ClassificationSet;\n }",
"public int getSet() {\n return set;\n }",
"public String getSetSpec();",
"private String getMetaAnnotationType(Class<?> clazz, Collection<Class<? extends Annotation>> annotationSet) {\n for (Class<? extends Annotation> annotType : annotationSet) {\n Annotation annotInstance = clazz.getAnnotation(annotType);\n if (annotInstance != null) {\n return (String) invoke(annotInstance, \"value\", null, null);\n }\n }\n return null;\n }",
"public abstract String getSetSpec();",
"public DrawingComponent getAnnotation()\n\t{\n\t\treturn this.annotation;\n\t}",
"java.util.List<org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall> \n getAnnotationList();",
"int getAnnotationCount();",
"private ImmutableSet<Property> annotationBuilderPropertySet(TypeElement annotationType) {\n Nullables nullables = Nullables.fromMethods(processingEnv, ImmutableList.of());\n // Translate the annotation elements into fake Property instances. We're really only interested\n // in the name and type, so we can use them to declare a parameter of the generated\n // @AutoAnnotation method. We'll generate a parameter for every element, even elements that\n // don't have setters in the builder. The generated builder implementation will pass the default\n // value from the annotation to those parameters.\n return methodsIn(annotationType.getEnclosedElements()).stream()\n .filter(m -> m.getParameters().isEmpty() && !m.getModifiers().contains(Modifier.STATIC))\n .map(method -> annotationBuilderProperty(method, nullables))\n .collect(toImmutableSet());\n }",
"public CodeSetComponentInfo getCodeSetComponentInfo() {\n/* 327 */ return this.codesets;\n/* */ }",
"public String getAnnotation() {\n return annotation;\n }",
"public String[] getAnnotationList(String annotationKeyType);",
"public abstract java.util.Set getLocations();",
"Set<Class<? extends Annotation>> getScanTypeAnnotations();",
"Set<Class<? extends Annotation>> getScanMethodAnnotations();",
"protected PayloadBuilderSet[] getPayloadBuilderSets() {\n\t\treturn sets;\n\t}",
"Set<Class<?>> getClassSetByAnnotation(String packageName, Class<? extends Annotation> annotationClass);",
"public Tag [] getTagSet() {\n return this.TagSet;\n }",
"@Override\n public String getAnnotation() {\n return annotation;\n }",
"public List<Mark> getMarks ()\r\n {\r\n return marks;\r\n }",
"public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}",
"public interface RawAnnotationSet<V> extends ReadableAnnotationSet<V> {\n\n /**\n * @see NindoCursor#begin()\n */\n void begin();\n\n /**\n * @see NindoCursor#finish()\n */\n void finish();\n\n /**\n * Content has been inserted into the document being annotated\n *\n * @param insertSize\n */\n void insert(int insertSize);\n\n String getInherited(String key);\n\n /**\n * Content has been removed from the document being annotated\n *\n * @param deleteSize\n */\n void delete(int deleteSize);\n\n /**\n */\n void skip(int skipSize);\n\n /**\n * @see ModifiableDocument#startAnnotation(String, String)\n */\n void startAnnotation(String key, V value);\n\n /**\n * @see ModifiableDocument#endAnnotation(String)\n */\n void endAnnotation(String key);\n\n /**\n * @return a live updated set of the known keys\n */\n ReadableStringSet knownKeysLive();\n\n public abstract class AnnotationEvent {\n final int index;\n final String key;\n\n private AnnotationEvent(int index, String key) {\n this.index = index;\n this.key = key;\n }\n\n abstract String getChangeKey();\n abstract String getChangeOldValue();\n abstract String getEndKey();\n }\n\n public final class AnnotationStartEvent extends AnnotationEvent {\n final String value;\n AnnotationStartEvent(int index, String key, String value) {\n super(index, key);\n// assert !Annotations.isLocal(key);\n this.value = value;\n }\n\n @Override\n String getChangeKey() {\n return key;\n }\n\n @Override\n String getChangeOldValue() {\n return value;\n }\n\n @Override\n String getEndKey() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"AnnotationStart \" + key + \"=\" + value + \" @\" + index;\n }\n }\n\n public final class AnnotationEndEvent extends AnnotationEvent {\n AnnotationEndEvent(int index, String key) {\n super(index, key);\n }\n\n\n @Override\n String getChangeKey() {\n return null;\n }\n\n @Override\n String getChangeOldValue() {\n return null;\n }\n\n @Override\n String getEndKey() {\n return key;\n }\n\n @Override\n public String toString() {\n return \"AnnotationEndEvent \" + key + \" @\" + index;\n }\n }\n\n}",
"public Annotation getAnnotation() {\n return annotation;\n }",
"@Deprecated public List<AnnotationRef> getAnnotations(){\n return build(annotations);\n }",
"public abstract AnnotationMap mo30683d();",
"public Set<IAspect> getAspects();",
"public List<Annotation> getMembers();",
"@Override\r\n\tpublic Object[] toArray() {\n\t\treturn set.toArray();\r\n\t}",
"public final Set<Annotation> annotations() throws RecognitionException {\n Set<Annotation> annotations = null;\n\n\n Annotation annotation201 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1219:3: ( ^( I_ANNOTATIONS ( annotation )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1219:5: ^( I_ANNOTATIONS ( annotation )* )\n {\n HashMap<String, Annotation> annotationMap = Maps.newHashMap();\n match(input, I_ANNOTATIONS, FOLLOW_I_ANNOTATIONS_in_annotations3421);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1220:21: ( annotation )*\n loop39:\n while (true) {\n int alt39 = 2;\n int LA39_0 = input.LA(1);\n if ((LA39_0 == I_ANNOTATION)) {\n alt39 = 1;\n }\n\n switch (alt39) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1220:22: annotation\n {\n pushFollow(FOLLOW_annotation_in_annotations3424);\n annotation201 = annotation();\n state._fsp--;\n\n\n Annotation anno = annotation201;\n Annotation old = annotationMap.put(anno.getType(), anno);\n if (old != null) {\n throw new SemanticException(input, \"Multiple annotations of type %s\", anno.getType());\n }\n\n }\n break;\n\n default:\n break loop39;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n\n if (annotationMap.size() > 0) {\n annotations = ImmutableSet.copyOf(annotationMap.values());\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return annotations;\n }",
"public Vector getSampleAnnotationFieldNames();",
"public List<AnnotationInfoList> getSuffixTypeAnnotationInfo() {\n return suffixTypeAnnotations;\n }",
"private static Set<String> getAnnotationLevelSet(SDocumentGraph graph,\n String namespace, Class<? extends SNode> type) {\n Set<String> result = new TreeSet<String>();\n\n if (graph != null) {\n EList<? extends SNode> nodes;\n // catch most common cases directly\n if (SSpan.class == type) {\n nodes = graph.getSSpans();\n } else if (SToken.class == type) {\n nodes = graph.getSTokens();\n } else {\n nodes = graph.getSNodes();\n }\n if (nodes != null) {\n for (SNode n : nodes) {\n if (type.isAssignableFrom(n.getClass())) {\n for (SLayer layer : n.getSLayers()) {\n if (namespace == null || namespace.equals(layer.getSName())) {\n for (SAnnotation anno : n.getSAnnotations()) {\n result.add(anno.getQName());\n }\n // we got all annotations of this node, jump to next node\n break;\n } // end if namespace equals layer name\n } // end for each layer\n }\n } // end for each node\n }\n }\n\n return result;\n }",
"java.util.List<java.lang.String> getAnnotationFiltersList();",
"boolean isCustomiseSet();",
"@PropertySetter(role = ANNOTATION)\n\t<E extends CtElement> E setAnnotations(List<CtAnnotation<? extends Annotation>> annotation);",
"@Override\n\tpublic int getNbAnnotations() {\n\t\treturn annotationSetItem.getNbAnnotationItems();\n\t}",
"@Override\r\n\tprotected Set<String>[] getForbidSetArray() {\n\t\treturn null;\r\n\t}",
"Map<String, List<List<Attribution>>> getAttributionMap();",
"public static List<SearchAnnotation> getDefaultVisibleAnnotationTypes() {\n\t\tList<SearchAnnotation> annotations = new ArrayList<SearchAnnotation>();\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.PERCOLATOR_ANNOTATION_TYPE_QVALUE );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_PERCOLATOR );\n\t\t\tannotations.add( annotation );\n\t\t}\n\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.PERCOLATOR_ANNOTATION_TYPE_PEP );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_PERCOLATOR );\n\t\t\tannotations.add( annotation );\n\t\t}\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.COMET_ANNOTATION_TYPE_EXPECT );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_COMET );\n\t\t\tannotations.add( annotation );\n\t\t}\n\t\t\n\t\t{\n\t\t\tSearchAnnotation annotation = new SearchAnnotation();\n\t\t\tannotation.setAnnotationName( PSMAnnotationTypes.COMET_ANNOTATION_TYPE_HIT_RANK );\n\t\t\tannotation.setSearchProgram( Constants.PROGRAM_NAME_COMET );\n\t\t\tannotations.add( annotation );\n\t\t}\n\n\t\treturn annotations;\n\t}",
"public Set<IAspectRead> getReadAspects();",
"@Override\n\tpublic DOMStringList getStyleSheetSets() {\n\t\tif (sheets.needsUpdate()) {\n\t\t\tsheets.update();\n\t\t}\n\t\treturn sheets.getStyleSheetSets();\n\t}",
"public int[] getMarks(){\n return marks;\n }",
"public ArrayList<AttributDescribe> getAttributs(){\r\n \treturn this.attributs;\r\n }",
"int countAnnotations() {\n \tSet<Annotation> set = new LinkedHashSet<Annotation>();\n \tfor (Layer layer : layers.values())\n \t\tset.addAll(layer);\n \treturn set.size();\n }",
"public String\n getAnnotationName() \n {\n return pAnnotationName;\n }",
"public Set<Note> getNoteSet();",
"public List<AnnotationVertex> getAnnotations() {\n return previousLineAnnotations.get();\n }",
"ArrayList<String> returnArray() {\n\t\treturn stringArray; // Return just the array and not the Set object\n\t}",
"public java.util.List<java.lang.String> getVariantSetIds() {\n return variantSetIds;\n }",
"Annotation getAnnotation();",
"public @NonNull List<Integer> getEmoteSets() {\n return this.emoteSets;\n }",
"public Set<IS> getFreItemSet();",
"public Set<ObjectLabel> getSetters() {\n if (setters == null)\n return Collections.emptySet();\n if (Options.get().isDebugOrTestEnabled())\n return Collections.unmodifiableSet(setters);\n return setters;\n }",
"public CharArraySet get() {\n return build();\n }",
"default List<AnnotationContext<?>> allAnnotations() {\n\n return annotations().stream()\n .flatMap(annotation -> annotation.valueType().<Stream<AnnotationContext<?>>>map(valueType -> {\n if (valueType.isArray()) {\n final TypeContext componentType = valueType.arrayComponentType();\n final AnnotationContext<Repeatable> rep = componentType.annotation(Repeatable.class);\n if (rep != null && rep.value().equals(annotation.annotationType())) {\n final Annotation[] repeated = annotation.value();\n return Arrays.stream(repeated).map(AnnotationContext::new);\n }\n }\n return Stream.of(annotation);\n }).orElseGet(() -> Stream.of(annotation)))\n .collect(Collectors.toList());\n }",
"public Set<String> getFeatures();",
"Map<ParameterInstance, SetType> getInstanceSetTypes();",
"public int getIdSet() {\r\n return idSet;\r\n }",
"public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }",
"int getObjectAnnotationsCount();",
"int getObjectAnnotationsCount();",
"public String getDiagramAnnotation() {\n\t\treturn null;\n\t}",
"@Override\n public void setQualifiers(final Annotation[] annos) {\n }",
"public String getAnnotationSubPackageProperty() {\n return null;\n }",
"protected void createMappingAnnotations() {\n\t\tString source = \"http://www.polarsys.org/capella/MNoE/CapellaLike/Mapping\";\t\n\t\taddAnnotation\n\t\t (blockArchitecturePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Package\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedRequirementPkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which RequirementsPkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which AbstractCapabilityPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisionedArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_ProvisioningArchitectureAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatedArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlockArchitecture_AllocatingArchitectures(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (blockEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::BehavioredClassifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedAbstractCapabilityPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Descendants are mapped to SysML::Blocks::Block, which cannot contain a Package.\\r\\nTherefore, store these AbstractCapabilityPackages in the nearest available package.\",\n\t\t\t \"constraints\", \"Multiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedInterfacePkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedDataPkg(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which DataPkg stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [0..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getBlock_OwnedStateMachines(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::ownedBehavior\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::BehavioredClassifier::ownedBehavior elements on which StateMachine stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentArchitectureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Class\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::NamedElement::clientDependency elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_UsedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedInterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::BehavioredClassifier::interfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaceLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ImplementedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisionedComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvisioningComponentAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatedComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_ContainedPhysicalPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block cannot contain PhysicalPath\\'s equivalent, hence we find the nearest available package to store them.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponent_OwnedPhysicalLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::StructuredClassifier::ownedConnector\",\n\t\t\t \"explanation\", \"since PhysicalLink is mapped to uml::Connector\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractActorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"SysML::Blocks::Block\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (partEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"should be mapped to uml::Property, but one of its concrete ancestors already is (Property), so avoid redefining it\\r\\nat this level to avoid profile generation issue\",\n\t\t\t \"constraints\", \"information::Property must have as base metaclass uml::Property\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_ProvidedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_RequiredInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_OwnedDeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployedParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPart_DeployingParts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (architectureAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Realization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatedArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getArchitectureAllocation_AllocatingArchitecture(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::ComponentRealization or uml::InterfaceRealization regarding the baseMetaClass of the realized element\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getComponentAllocation_AllocatingComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_DataType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getSystemComponent_ParticipationsInCapabilityRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfacePkgEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Package\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfacePkg_OwnedInterfacePkgs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Package::nestedPackage#uml::Package::packagedElement\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Package::nestedPackage elements on which InterfacePkg stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Interface\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_Mechanism(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ImplementorComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_UserComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceImplementations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::InterfaceRealization::contract\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceImplementation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_InterfaceUses(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"uml::Element::ownedElement elements on which InterfaceUse stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvisioningInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_AllocatingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ExchangeItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_OwnedExchangeItemAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RequiringComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponents(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_ProvidingComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedContextInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizingPhysicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterface_RealizedLogicalInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceImplementationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::InterfaceRealization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_InterfaceImplementor(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceImplementation_ImplementedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceUseEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Usage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_InterfaceUser(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceUse_UsedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (providedInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::InterfaceRealization\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getProvidedInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::InterfaceRealization::contract\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (requiredInterfaceLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Usage\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getRequiredInterfaceLink_Interface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::supplier elements on which Interface stereotype or any stereotype that inherits from it is applied\\r\\nMultiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatedInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocation_AllocatingInterfaceAllocator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (interfaceAllocatorEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Classifier\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_OwnedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Some elements on which InterfaceAllocation stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_ProvisionedInterfaceAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getInterfaceAllocator_AllocatedInterfaces(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (actorCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (systemComponentCapabilityRealizationInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Dependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (componentContextEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (exchangeItemAllocationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Realization\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_SendProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_ReceiveProtocol(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatedItem(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getExchangeItemAllocation_AllocatingInterface(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deployableElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::NamedElement\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeployableElement_DeployingLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Opposite reference of uml::Dependency::supplier\",\n\t\t\t \"constraints\", \"Order must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (deploymentTargetEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::DeploymentTarget\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getDeploymentTarget_DeploymentLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::NamedElement::clientDependency\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::DeploymentTarget::deployment elements on which AbstractDeployment stereotype or any stereotype that inherits from it is applied\\r\\nOrder must be computed\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractDeploymentLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"uml::Dependency,could be mapped on uml::Deployment, but dependencies diagram allows to \\\"deploy\\\" more capella element types.\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_DeployedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::supplier\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"Multiplicity must be [1..1]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractDeploymentLink_Location(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Dependency::client\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::Dependency::client elements on which DeploymentTarget stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPathInvolvedElementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalArtifactEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalArtifact_AllocatorConfigurationItems(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getAbstractPhysicalLinkEnd_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (abstractPhysicalPathLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Connector\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_LinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::specific\",\n\t\t\t \"explanation\", \"first need to create ConnectorEnds pointing to the Ports, and then reference them in uml::Connector::end\",\n\t\t\t \"constraints\", \"cardinality must be [2..2]\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedComponentExchangeFunctionalExchangeAllocations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::nearestpackage\",\n\t\t\t \"explanation\", \"Elements are contained in the nearest possible parent container.\",\n\t\t\t \"constraints\", \"some elements on which ComponentFunctionalExchangeAllocation stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkEnds(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::Connector::end\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_OwnedPhysicalLinkRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_SourcePhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLink_TargetPhysicalPort(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkEndEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::ConnectorEnd\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Port(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::role\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"uml::ConnectorEnd::role elements on which PhysicalPort stereotype or any stereotype that inherits from it is applied\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalLinkEnd_Part(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"uml::ConnectorEnd::partWithPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalLinkRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"uml::Class\",\n\t\t\t \"explanation\", \"_todo_\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_InvolvedLinks(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_FirstPhysicalPathInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPath_OwnedPhysicalPathRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathInvolvementEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_NextInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_PreviousInvolvements(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedElement(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathInvolvement_InvolvedComponent(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathReferenceEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPathReference_ReferencedPhysicalPath(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPathRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"SysML::PortAndFlows::FlowPort\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_OwnedPhysicalPortRealizations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (getPhysicalPort_AllocatedComponentPorts(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"keyword::none\",\n\t\t\t \"explanation\", \"Derived and transient\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\t\n\t\taddAnnotation\n\t\t (physicalPortRealizationEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"UML/SysML semantic equivalences\", \"\",\n\t\t\t \"base metaclass in UML/SysML profile \", \"none\",\n\t\t\t \"explanation\", \"none\",\n\t\t\t \"constraints\", \"none\"\n\t\t });\n\t}",
"List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}",
"public AnnotationLocation getAnnotationLocation() {\n return annotationLocation;\n }"
] | [
"0.70060503",
"0.6731745",
"0.6726843",
"0.6542233",
"0.65280443",
"0.6484949",
"0.64355266",
"0.63216364",
"0.6318689",
"0.62813663",
"0.61962116",
"0.6158763",
"0.6157877",
"0.6126831",
"0.61256075",
"0.6068723",
"0.6050587",
"0.60442024",
"0.60416615",
"0.5919311",
"0.59013057",
"0.5879405",
"0.5843116",
"0.58388376",
"0.5797498",
"0.573684",
"0.5736555",
"0.57131916",
"0.5692007",
"0.5688056",
"0.5656544",
"0.5621333",
"0.56041545",
"0.55877465",
"0.5575767",
"0.5575314",
"0.5563693",
"0.55600053",
"0.5516725",
"0.5513649",
"0.55011463",
"0.54954106",
"0.5495211",
"0.5489382",
"0.54713327",
"0.5468976",
"0.54659116",
"0.545432",
"0.5426064",
"0.5409328",
"0.5403108",
"0.53921825",
"0.5390519",
"0.5388489",
"0.5384374",
"0.5368842",
"0.5322743",
"0.5295968",
"0.5290034",
"0.5285462",
"0.5280105",
"0.5278468",
"0.5277196",
"0.52641183",
"0.52626526",
"0.5254433",
"0.52543664",
"0.5251972",
"0.5202527",
"0.5173041",
"0.5168261",
"0.5157134",
"0.5152907",
"0.5148889",
"0.5146479",
"0.51450706",
"0.5144151",
"0.5143459",
"0.51392925",
"0.5129849",
"0.51277333",
"0.5117072",
"0.5111949",
"0.5111684",
"0.51106375",
"0.5109182",
"0.5105281",
"0.51029617",
"0.5095696",
"0.50870174",
"0.50801015",
"0.5076013",
"0.50676316",
"0.50676316",
"0.5057484",
"0.5056194",
"0.50561386",
"0.50560105",
"0.50520635",
"0.5051293"
] | 0.7640933 | 0 |
Getter method for the COM property "UserSurfaces" | @DISPID(1610940431) //= 0x6005000f. The runtime will prefer the VTID if present
@VTID(37)
Collection userSurfaces(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List getSurfaceRefs();",
"public Surface getSurface() {\n \t\treturn surface;\n \t}",
"org.landxml.schema.landXML11.SurfaceNameRefs xgetSurfaceRefs();",
"public Face[] getFaces() {\n return faces;\n }",
"@UML(identifier=\"proxy\", obligation=MANDATORY, specification=ISO_19107)\n OrientableSurface[] getProxy();",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic java.util.Enumeration getPainters()\r\n\t{\n\t\treturn null;\r\n\t}",
"public int get_surface_type() {\n return surface_type;\n }",
"public org.drip.analytics.definition.MarketSurface[] volatilitySurface()\n\t{\n\t\treturn _aMSVolatility;\n\t}",
"public org.landxml.schema.landXML11.SurfaceDocument.Surface getSurface()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SurfaceDocument.Surface target = null;\r\n target = (org.landxml.schema.landXML11.SurfaceDocument.Surface)get_store().find_element_user(SURFACE$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"RampDownUsers getRampDownUsers();",
"public int[] getFace() {\n\t\treturn this.face;\n\t}",
"public net.opengis.gml.x32.AbstractSurfacePatchType[] getAbstractSurfacePatchArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(ABSTRACTSURFACEPATCH$1, targetList);\n net.opengis.gml.x32.AbstractSurfacePatchType[] result = new net.opengis.gml.x32.AbstractSurfacePatchType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public int[][] getFaces() {\n\t\treturn this.faces;\n\t}",
"public ArrayList<Color> userColors() {\r\n int colorIndex;\r\n ArrayList<Color> dest = new ArrayList<Color>();\r\n for (colorIndex = 0; colorIndex < this.colors; colorIndex += 1) {\r\n dest.add(Cnst.colorsToChoose.get(colorIndex));\r\n }\r\n return dest;\r\n }",
"boolean isSetSurfaceRefs();",
"public int faces() { \n return this.faces; \n }",
"public UGen[] getuGenArray() {\n\t\treturn uGenArray;\n\t}",
"public Vector<CarerAccount> getUsers(){\n\t\treturn CarerAccounts;\n\t}",
"public int getFaces() {\n return this.faces;\n }",
"public ArrayList<String> getUsrImageUUIDs() {\n\t\treturn this.usrImageUUIDs;\n\t}",
"public WeaponDetails[] getWeaponsOnSquare() {\n return this.weaponsOnSquare;\n }",
"public RedSphere getRedObjects() {\n return redValues;\n }",
"public TopoDS_Face Value() {\n TopoDS_Face ret = new TopoDS_Face(OCCwrapJavaJNI.StepToTopoDS_TranslateCurveBoundedSurface_Value(swigCPtr, this), true);\n return ret;\n }",
"public String[] getUsers(){\n try {\n names = credentials.keys();\n }catch (java.util.prefs.BackingStoreException e1){\n System.out.println(e1);\n }\n return names;\n }",
"@Accessor(qualifier = \"UserGroups\", type = Accessor.Type.GETTER)\n\tpublic List<B2BUserGroupModel> getUserGroups()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(USERGROUPS);\n\t}",
"public Rect[] getFaceRects()\n {\n final String funcName = \"getFaceRects\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API);\n }\n\n return faceRects;\n }",
"List<Plot> getPlotList() {\n return this.userCollection.getPlots();\n }",
"public ch.ivyteam.ivy.scripting.objects.List<ch.ivyteam.ivy.security.IUser> getUsers()\n {\n return users;\n }",
"public Set<VCube> getSupportedCubes();",
"public GameProperty [] getGameProperties() {\n return this.GameProperties;\n }",
"public org.landxml.schema.landXML11.VolumeDocument.Volume[] getVolumeArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(VOLUME$4, targetList);\r\n org.landxml.schema.landXML11.VolumeDocument.Volume[] result = new org.landxml.schema.landXML11.VolumeDocument.Volume[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"private Surface getPreviewSurface() {\n return surface_texture;\n }",
"public Surface surface()\n { return _srf;\n }",
"@Override\n public BlueUserContainer getUsers() {\n return users;\n }",
"OiDataCollection getUserCollection() {\n return userCollection;\n }",
"public String[] getUsers() {\n\t\tEnumeration enumer = userSessions.keys();\n\t\tVector temp = new Vector();\n\t\twhile (enumer.hasMoreElements())\n\t\t\ttemp.addElement(enumer.nextElement());\n\t\tString[] returns = new String[temp.size()];\n\t\ttemp.copyInto(returns);\n\t\treturn returns;\n\n\t}",
"public Vector getUsers(TIdentifiable resource) {\r\n int column = m_resources.getIndex(resource);\r\n Vector result = new Vector();\r\n TUseStatus useStatus;\r\n\t if (column >= 0) {\r\n for (int b=0; b < m_current_users_count; b++)\r\n if (m_associations[column][b]!=null) {\r\n useStatus = m_associations[column][b];\r\n if (useStatus.getStatus()!=useStatus.NO_ASSOCIATION) result.addElement(useStatus);\r\n }\r\n return result;\r\n } else return null;\r\n }",
"public List<GraphicTrack> getTracks()\n\t{\n\t\treturn tracks;\n\t}",
"public float[] getVertices() {\n/* 793 */ COSBase base = getCOSObject().getDictionaryObject(COSName.VERTICES);\n/* 794 */ if (base instanceof COSArray)\n/* */ {\n/* 796 */ return ((COSArray)base).toFloatArray();\n/* */ }\n/* 798 */ return null;\n/* */ }",
"public boolean getFace() {\n return this.faceUp;\n }",
"public ArrayList<User> getUsers() {return users;}",
"public Hashtable getUserProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getUserProperties();\n }",
"public RenderObject[] getRenderObjects(){\n\t\tRenderObject[] objects = new RenderObject[sectors.length * sectors[0].length];\n\t\tfor(int i = 0; i < sectors.length; i++){\n\t\t\tfor(int j = 0 ; j < sectors[0].length; j++){\n\t\t\t\tobjects[i * sectors.length + j] = sectors[j][i].getRenderObject();\n\t\t\t}\n\t\t}\n\t\treturn objects;\n\t}",
"public MyRectangle[] getFeature() {\n return rectangles;\n }",
"public final Painter[] getPainters()\n/* */ {\n/* 157 */ Painter[] results = new Painter[this.painters.length];\n/* 158 */ System.arraycopy(this.painters, 0, results, 0, results.length);\n/* 159 */ return results;\n/* */ }",
"public double getSurfaceArea() {\n\n return surfaceArea;\n }",
"EZSound[] getEZSoundArray() {\n\t\treturn EZSounds;\n\t}",
"static FaceSegment[] allFaces() {\n FaceSegment[] faces = new FaceSegment[6];\n for (int i = 0; i < faces.length; i++) {\n faces[i] = new FaceSegment();\n }\n return faces;\n }",
"public BlueSphere getBlueObjects() {\n return blueValues;\n }",
"private double[] getLocalStrikeList(EvenlyGriddedSurface surface){\n int numCols = surface.getNumCols();\n double[] localStrike = null;\n //if it not a point surface, then get the Azimuth(strike) for 2 neighbouring\n //horizontal locations on the rupture surface.\n //if it is a point surface then it will be just having one location so\n //in that we take the Ave. Strike for the Surface.\n if(! (surface instanceof PointSurface)){\n localStrike = new double[numCols - 1];\n for (int i = 0; i < numCols - 1; ++i) {\n Location loc1 = surface.getLocation(0, i);\n Location loc2 = surface.getLocation(0, i + 1);\n double strike = LocationUtils.azimuth(loc1, loc2);\n localStrike[i] = strike;\n }\n }\n else if(surface instanceof PointSurface) {\n localStrike = new double[1];\n localStrike[0]= surface.getAveStrike();\n }\n\n return localStrike;\n }",
"public CompactPlayer[] getPlayers()\n {\n return players;\n }",
"@Override\n\tpublic List<User> get() {\n\t\treturn null;\n\t}",
"public Collection<GObject> getObjects();",
"public String getFace() {\r\n return face;\r\n }",
"public String getFace() {\r\n return face;\r\n }",
"@ZAttr(id=364)\n public String[] getAvailableSkin() {\n return getMultiAttr(Provisioning.A_zimbraAvailableSkin);\n }",
"public Set<P2PUser> getUsers();",
"public int[] getPhotoresistors()\n {\n return finchController.getPhotoresistors();\n }",
"public List<Colour> getPlayerList();",
"public java.lang.Object[] getPresentationAsArray();",
"public List<User> getusers() {\n\t\treturn users;\n\t}",
"@Serialize//(getName = \"property\")\r\n public List<String> getPluginPoints()\r\n\t{\r\n\t\treturn _pluginPoints; \r\n\t}",
"public List<User> getUsers() {\r\n\t\treturn users;\r\n\t}",
"java.util.List<org.stu.projector.Orientation> \n getOrientationsList();",
"List<Player> getViewers();",
"public com.isurveysoft.www.servicesv5.Result[] getScreenResults() {\n return screenResults;\n }",
"public int getFace(){\n return face;\n }",
"public List<wVertex> getVertices(){\r\n return vertices;\r\n }",
"public abstract GraphicsDevice[] getScreenDevices();",
"public static ArrayList<Display> getDisplays() { return displays; }",
"java.util.List<WorldUps.UGoPickup> \n getPickupsList();",
"public List<User> getUsers() {\n\t\treturn users;\n\t}",
"public User[] list() {\r\n User user[] = new User[this.UserList.size()];\r\n for (int i = 0; i < this.UserList.size(); i++) {\r\n user[i] = (User) this.UserList.get(i);\r\n }\r\n\r\n return user;\r\n }",
"@Override\n\tpublic ArrayList<Utente> getUsers() {\n\t\tDB db = getDB();\n\t\tArrayList<Utente> usersList = new ArrayList<>();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente)\n\t\t\t\tusersList.add((Utente) user.getValue());\n\t\treturn usersList;\n\t}",
"public java.util.List<WorldUps.UGoPickup> getPickupsList() {\n return pickups_;\n }",
"private byte[] getSelectedPlanetSurface() {\r\n\t\tbyte[] mapBytes;\r\n\t\tPACEntry e = getSurface(gameWorld.player.selectedPlanet.surfaceType.index, gameWorld.player.selectedPlanet.surfaceVariant);\r\n\t\tif (e != null) {\r\n\t\t\tmapBytes = e.data;\r\n\t\t} else {\r\n\t\t\tmapBytes = EMPTY_SURFACE_MAP;\r\n\t\t}\r\n\t\treturn mapBytes;\r\n\t}",
"public List<WorkspaceUser> getSavers() {\n\t\treturn savers;\n\t}",
"public Figure[] getFigures() {\n return figures;\n }",
"public Set<Colour> getWinningPlayers();",
"public String[] getSoundDevicesList();",
"@DISPID(1611005996) //= 0x6006002c. The runtime will prefer the VTID if present\n @VTID(71)\n CatPartSurfaceElementsLocation surfaceElementsLocation();",
"List<UserRepresentation> getUsers(final String realm);",
"public Collection getRegisteredObjects() {\n return usedByObjects;\n }",
"public List<WorkspaceUser> getSavers() {\n\t\t\treturn savers;\n\t\t}",
"void setSurfaceRefs(java.util.List surfaceRefs);",
"protected Map<SkinMetadata, Skin> getSkins()\n {\n synchronized (this)\n {\n return _skins;\n }\n }",
"public int getMetaUsers();",
"RampUpUsers getRampUpUsers();",
"public String getUserNames() {\n return sp.getString(USER_NAMES, null);\n }",
"ArrayList<String> getLeaderboardUsers() {\r\n return leaderboardUsers;\r\n }",
"public List<User> getUsers()\n\t{\n\t\treturn usersList;\n\t}",
"public java.util.Set getReleaseUserXrefs () {\n\t\treturn releaseUserXrefs;\n\t}",
"protected int getFace() {\n return face;\n }",
"public HasDisplayableProperties getProperties();",
"@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}",
"ResourceCollection<Sku> get();",
"public List<Integer> drawers() {\n return this.drawers;\n }",
"public RenderedImage[] getRenderedImage() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D3\"));\n\treturn ((ImageComponent3DRetained)this.retained).getRenderedImage();\n }",
"public Vector<WSSecurityProfile> getWSSecurityProfiles(){\n\t\tVector<WSSecurityProfile> profiles = new Vector<WSSecurityProfile>();\n\t\tprofiles.addAll(wsSecurityProfiles_SystemDefined);\n\t\tprofiles.addAll(wsSecurityProfiles_UserDefined);\n\t\treturn profiles;\n\t}",
"public ArrayList<Polygon> getPolygons ()\n\t{\n\t\treturn object;\n\t}"
] | [
"0.6336449",
"0.5959914",
"0.57674205",
"0.57117313",
"0.560983",
"0.5568781",
"0.5519347",
"0.5514634",
"0.5399",
"0.5352785",
"0.533649",
"0.52306473",
"0.5214066",
"0.5209738",
"0.51870626",
"0.5161845",
"0.5116802",
"0.5110095",
"0.5089112",
"0.50669587",
"0.5045561",
"0.5045471",
"0.5037642",
"0.5028238",
"0.50217485",
"0.5021626",
"0.4976283",
"0.4974345",
"0.49572775",
"0.49488258",
"0.49486244",
"0.49306706",
"0.49239737",
"0.4923916",
"0.49163514",
"0.49151284",
"0.4906132",
"0.49057594",
"0.49007088",
"0.48959702",
"0.4881469",
"0.48790714",
"0.48787132",
"0.48703194",
"0.48688257",
"0.48514533",
"0.48472825",
"0.48452735",
"0.4845135",
"0.48438022",
"0.48405805",
"0.48394307",
"0.48389137",
"0.48333183",
"0.48333183",
"0.48297396",
"0.48284808",
"0.48258057",
"0.4817268",
"0.4817015",
"0.48031634",
"0.47856322",
"0.47835708",
"0.47827694",
"0.47820482",
"0.47701186",
"0.47674718",
"0.4761726",
"0.47578534",
"0.47569364",
"0.47520483",
"0.4748415",
"0.4744914",
"0.4741542",
"0.47333962",
"0.47323796",
"0.47306448",
"0.47080737",
"0.47032008",
"0.4699885",
"0.4699535",
"0.46966967",
"0.4691185",
"0.46908554",
"0.46828732",
"0.46807972",
"0.46795374",
"0.46790862",
"0.46707678",
"0.46685824",
"0.46632895",
"0.46628678",
"0.46625793",
"0.4660528",
"0.46602413",
"0.46601912",
"0.46561977",
"0.46418974",
"0.46416652",
"0.46410254"
] | 0.80979884 | 0 |
Getter method for the COM property "AxisSystems" | @DISPID(1610940432) //= 0x60050010. The runtime will prefer the VTID if present
@VTID(38)
AxisSystems axisSystems(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public net.opengis.gml.x32.CoordinateSystemAxisPropertyType[] getAxisArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(AXIS$1, targetList);\n net.opengis.gml.x32.CoordinateSystemAxisPropertyType[] result = new net.opengis.gml.x32.CoordinateSystemAxisPropertyType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public List<ClientSystem> getAssociatedSystems() {\n\t\treturn registeredSystems;\n\t}",
"public ImmutableList<CoordinateSystem> getCoordinateSystems() {\n return (coordSys == null) ? ImmutableList.of() : ImmutableList.copyOf(coordSys);\n }",
"public com.google.cloud.video.livestream.v1.Encryption.DrmSystems getDrmSystems() {\n if (drmSystemsBuilder_ == null) {\n return drmSystems_ == null\n ? com.google.cloud.video.livestream.v1.Encryption.DrmSystems.getDefaultInstance()\n : drmSystems_;\n } else {\n return drmSystemsBuilder_.getMessage();\n }\n }",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.DrmSystems getDrmSystems() {\n return drmSystems_ == null\n ? com.google.cloud.video.livestream.v1.Encryption.DrmSystems.getDefaultInstance()\n : drmSystems_;\n }",
"public AS400 getSystem() {\r\n return system;\r\n }",
"java.util.List<CoordinateSystem> getCoordinateSystems();",
"public net.opengis.gml.x32.CoordinateSystemAxisPropertyType getAxisArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.x32.CoordinateSystemAxisPropertyType target = null;\n target = (net.opengis.gml.x32.CoordinateSystemAxisPropertyType)get_store().find_element_user(AXIS$1, i);\n if (target == null)\n {\n throw new IndexOutOfBoundsException();\n }\n return target;\n }\n }",
"public org.apache.axis2.description.xsd.AxisOperation getAxisOperation(){\n return localAxisOperation;\n }",
"public List<AxisModel> getAxisModels() {\n\t\treturn Collections.unmodifiableList(axisModels);\n\t}",
"public CoordinateSystem getCoordinateSystem() {\n System.out.println(\"BaseCatalog: getCoordinateSystem() \");\n CoordinateSystem cs = null;\n if (_layout.getMapElementCount() >0 ) {\n MapElement mapEle = (MapElement)_layout.getMapElements().next();\n cs = mapEle.getMap().getCoordinateSystem();\n }\n System.out.println(\"BaseCatalog: getCoordinateSystem() \" + cs);\n return cs;\n }",
"EList getAxisName();",
"public com.google.cloud.video.livestream.v1.Encryption.DrmSystemsOrBuilder\n getDrmSystemsOrBuilder() {\n if (drmSystemsBuilder_ != null) {\n return drmSystemsBuilder_.getMessageOrBuilder();\n } else {\n return drmSystems_ == null\n ? com.google.cloud.video.livestream.v1.Encryption.DrmSystems.getDefaultInstance()\n : drmSystems_;\n }\n }",
"public String getSystem() {\r\n return this.system;\r\n }",
"@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.DrmSystemsOrBuilder\n getDrmSystemsOrBuilder() {\n return drmSystems_ == null\n ? com.google.cloud.video.livestream.v1.Encryption.DrmSystems.getDefaultInstance()\n : drmSystems_;\n }",
"public ShipSystem getSystem() {\n return system;\n }",
"public TreeMap<String, Vector<TechnicalSystemStateEvaluation>> getSystemsVariability() {\r\n\t\tif (systemsVariability==null) {\r\n\t\t\tsystemsVariability = new TreeMap<String, Vector<TechnicalSystemStateEvaluation>>();\r\n\t\t}\r\n\t\treturn systemsVariability;\r\n\t}",
"@JsonProperty(\"infested_solar_systems\")\n public IntArrayList getInfestedSolarSystems() {\n return infestedSolarSystems;\n }",
"org.hyperflex.roscomponentmodel.System getSystem();",
"public abstract AxisInfo getAxis( int dimension );",
"protected SystemCatalog getSystemCatalog() {\n return catalog;\n }",
"public EventBus getEventSystem() {\n return system;\n }",
"@GetMapping(\"/systems\")\r\n\tpublic String showSystems() {\r\n\r\n\t\treturn \"systems\";\r\n\t}",
"public List<SolarSystem> getAllSolarSystems() {\n return interactor.getAllSolarSystems();\n }",
"public String[] getGeoSystem();",
"public String getIsSystem() {\n return isSystem;\n }",
"public java.lang.String getSystemName() {\r\n return systemName;\r\n }",
"public String getSysType() {\n return sysType;\n }",
"public UnitSystems GetCurrentUnitSystem()\n {\n return MethodsCommon.GetSystemFromUnit(Unit, false, true);\n }",
"public String getExternalSystem() {\n return externalSystem;\n }",
"public String getSystemName() {\n return systemName;\n }",
"public int getSolarSystemID() {\n return solarSystemID;\n }",
"@GetMapping(Mappings.SYSTEMS)\n\tpublic String showSystems() {\n\n\t\treturn ViewNames.ADMIN_PANEL;\n\t}",
"public String getQwSysName() {\n\t\treturn qwSysName;\n\t}",
"public String getSystemName() {\n\t\treturn systemName;\n\t}",
"public net.opengis.gml.x32.CoordinateSystemAxisPropertyType addNewAxis()\n {\n synchronized (monitor())\n {\n check_orphaned();\n net.opengis.gml.x32.CoordinateSystemAxisPropertyType target = null;\n target = (net.opengis.gml.x32.CoordinateSystemAxisPropertyType)get_store().add_element_user(AXIS$0);\n return target;\n }\n }",
"public ArrayList getSemUnits();",
"@Override\n\tpublic synchronized StorageOperationResponse<GetStorageSystemsResponse> getStorageSystems(\n\t\t\tGetStorageSystemsRequest request) {\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStorageSystems: \" + request.storageSystemIds , null);\n\t\ttry {\n\t\tList<String> requestedSystems = request.storageSystemIds;\n\t\tArrayList<StorageSystem> systemList = new ArrayList<StorageSystem>();\n\t\tif (requestedSystems == null||requestedSystems.isEmpty()) {\n\t\t\tList<String> regions = openstackClient.getRegions();\n\t\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStorageSystems: zones:\" + regions , null);\n\t\t\tfor (String region : regions) {\n\t\t \t systemList.add(OpenstackAdapterUtil.createStorageSystem(region,accountId));\n\t\t\t}\n\t\t} else {\n\t\t\tList<String> zones = openstackClient.getAvailabilityZones();\n\t\t\tboolean found = false;\n\t\t\tfor (int i = 0;i<requestedSystems.size();i++) {\n\t\t\t if(requestedSystems.get(i) == null) {\n\t\t\t\t systemList.add(null);\n\t\t\t\t continue;\n\t\t\t }\n\t\t found = false;\n\t\t\t for(String zone : zones) {\n\t\t\t if (requestedSystems.get(i).equals(accountId+':'+zone)) {\n\t\t \t systemList.add(OpenstackAdapterUtil.createStorageSystem(zone, accountId));\n\t\t \t found = true;\n\t\t \t break;\n\t\t }\n\t\t\t }\n\t\t\t if (!found) {\n\t\t\t systemList.add(null);\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\tlogger.log(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStorageSystems: systems found: \" + systemList.size() + \" systems: \" + systemList , null);\n\t\tGetStorageSystemsResponse payload = new GetStorageSystemsResponse();\n\t\tpayload.storageSystems = systemList;\n\t\tStorageOperationResponse<GetStorageSystemsResponse> response = new StorageOperationResponse<GetStorageSystemsResponse>(payload);\n\t\tresponse.setPercentCompleted(100);\n\t\tresponse.setStatus(StorageOperationStatus.COMPLETED);\n\t\treturn response;\n\n\t\t } catch (Exception e) {\n\t\t\tlogger.traceThrowable(IJavaEeLog.SEVERITY_DEBUG, this.getClass().getName(), \"getStorageSystems:\" + e.getMessage(), null,e);\n\t\t\treturn StorageAdapterImplHelper.createFailedResponse(e.getMessage(), GetStorageSystemsResponse.class); \n\t\t\t\n\t\t}\n\t}",
"@Override\n UnitVector3DBasics getAxis();",
"public String getSysPropertyName() {\n return sysProperty;\n }",
"public DataYearSystemService getDataYearSystemService() {\r\n\t\treturn dataYearSystemService;\r\n\t}",
"public final ArrayList<Units> GetUnitsForCurrentTypeAndSystem()\n {\n return MethodsUnitP.GetUnitsTypeAndSystemCommon(UnitType, UnitSystem);\n }",
"@DISPID(1611006040) //= 0x60060058. The runtime will prefer the VTID if present\n @VTID(115)\n short axisSystemSize();",
"public CommandlineJava.SysProperties getSysProperties() {\r\n return getCommandLine().getSystemProperties();\r\n }",
"public ArrayList<Platforms> getPlatforms()\r\n\t{\r\n\t\treturn platforms;\r\n\t}",
"public Vector<String> getPlatform() {\n return platform;\n }",
"org.hl7.fhir.Integer getCoordinateSystem();",
"public com.google.cloud.video.livestream.v1.Encryption.DrmSystems.Builder\n getDrmSystemsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getDrmSystemsFieldBuilder().getBuilder();\n }",
"public SystemOfUnits getSystemOfUnits() {\n return SI.getInstance();\n }",
"public double getSemiMajorAxis() {\n return semiMajorAxis;\n }",
"@DISPID(1611005952) //= 0x60060000. The runtime will prefer the VTID if present\n @VTID(27)\n boolean newWithAxisSystem();",
"public Map<Axis, Double> getMachineCoordinates() {\n return Collections.unmodifiableMap(machineCoordinates);\n }",
"public ArrayList getComUnits();",
"public AxisModel getSecondAxis() {\n return this.getTypedValue(SECOND_AXIS_PROPERTY_KEY, null);\n }",
"@ApiModelProperty(required = true, value = \"The id of the system where this file lives.\")\n public String getSystem() {\n return system;\n }",
"public double[][] getSystemInputModel()\n {\n return systemInputModel;\n }",
"public edu.umich.icpsr.ddi.SoftwareType[] getSoftwareArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(SOFTWARE$20, targetList);\n edu.umich.icpsr.ddi.SoftwareType[] result = new edu.umich.icpsr.ddi.SoftwareType[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"Object getPlatform();",
"public String getWlSysName() {\n\t\treturn wlSysName;\n\t}",
"public String getSoftware()\n\t{\n\t\treturn null;\n\t}",
"public String getSystemProperties() {\n return systemProperties;\n }",
"@Override\n\tpublic StorageOperationResponse<GetClusterStorageSystemsResponse> getClusterStorageSystems(\n\t\t\tGetClusterStorageSystemsRequest arg0) {\n\t\treturn null;\n\t}",
"public String getOperatingSystem() {\n return this.operatingSystem;\n }",
"public String getSystemType() {\n \t\treturn fSystemType;\n \t}",
"boolean isSetSystem();",
"public MagnitudeSystem getMagnitudeSystem ( ) {\r\n\t\treturn system;\r\n\t}",
"public String getSystemId() { return this.systemId; }",
"public TypeSystemNode getTypeSystemNode() {\r\n return typeSystemNode;\r\n }",
"public SystemServiceManager getSystemServiceManager() {\n return this.mService.mSystemServiceManager;\n }",
"public OperatingSystem getOperatingSystem() {\n return this.operatingSystem;\n }",
"public static String getSystemName()\n {\n return sSysName;\n }",
"public String getOperatingSystem() {\n return this.operatingSystem;\n }",
"protected HashSet<String> getEnvironmentDependentSystems() {\r\n\t\tif (environmentDependentSystems==null) {\r\n\t\t\tenvironmentDependentSystems = new HashSet<String>();\r\n\t\t}\r\n\t\treturn environmentDependentSystems;\r\n\t}",
"public Set getConfiguredServices() throws SMSException {\n return (getAssignedServices());\n }",
"public StrColumn getEbiExpressionSystem() {\n return delegate.getColumn(\"ebi_expression_system\", DelegatingStrColumn::new);\n }",
"@java.lang.Override\n public boolean hasDrmSystems() {\n return drmSystems_ != null;\n }",
"@Override\r\n\tpublic List<MySys> getAllSystems() {\n\t\tString sql = \"SELECT * FROM systems ORDER BY sgroup;\";\r\n\t\t\r\n\t\tList<MySys> list = new ArrayList<MySys>();\r\n\t\tList<Map<String,Object>> rows = this.jdbcTemplate.queryForList(sql);\r\n\t\tfor (Map<String, Object> row : rows) {\r\n\t\t\tMySys sys = new MySys();\r\n\t\t\tsys.setId((int)row.get(\"idsystems\"));\r\n\t\t\tsys.setName((String)row.get(\"sysname\"));\r\n\t\t\tsys.setAlias((String)row.get(\"sysalias\"));\r\n\t\t\tsys.setState((int)row.get(\"state\"));\r\n\t\t\tsys.setStatetime((Date)row.get(\"statetime\"));\r\n\t\t\tlist.add(sys);\r\n\t\t}\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.video.livestream.v1.Encryption.DrmSystems,\n com.google.cloud.video.livestream.v1.Encryption.DrmSystems.Builder,\n com.google.cloud.video.livestream.v1.Encryption.DrmSystemsOrBuilder>\n getDrmSystemsFieldBuilder() {\n if (drmSystemsBuilder_ == null) {\n drmSystemsBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.video.livestream.v1.Encryption.DrmSystems,\n com.google.cloud.video.livestream.v1.Encryption.DrmSystems.Builder,\n com.google.cloud.video.livestream.v1.Encryption.DrmSystemsOrBuilder>(\n getDrmSystems(), getParentForChildren(), isClean());\n drmSystems_ = null;\n }\n return drmSystemsBuilder_;\n }",
"protected String getSubsystem() {\n return subsystem;\n }",
"public SolarSystem getSolarSystem(String name) {\n return interactor.getSolarSystem(name);\n }",
"public SystemData systemData() {\n return this.systemData;\n }",
"public SystemData systemData() {\n return this.systemData;\n }",
"public SystemData systemData() {\n return this.systemData;\n }",
"public SystemData systemData() {\n return this.systemData;\n }",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"IWsPmsSdkService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[9];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getRoadwayPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"doControl\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleAlarmInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getEntrancePage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleRecordPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getDictionaryPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleBookPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getParkPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n }",
"@JsonProperty(\"EventSourceSystem\")\r\n\tpublic String getEventSourceSystem() {\r\n\t\treturn eventSourceSystem;\r\n\t}",
"public static UnitSystems GetUnitSystem(Units unit)\n {\n return MethodsCommon.GetSystemFromUnit(unit, false, true);\n }",
"public LatticeMagInt getSimSystem(){return lattice;}",
"public interface AxisInformation {\n double getMaxSpeed();\n double getTargetValue();\n\n String getIdentifier();\n\n double getMaxValue();\n double getMinValue();\n double getCurrentTargetValue();\n double getCurrentValue();\n boolean isMoving();\n double getSpeed();\n boolean isEnabled();\n int getJointType();\n}",
"public java.lang.Integer getOS() {\n\t\t return OS;\n\t }",
"List<Axis> getyAxisValues() {\n\t\tfinal List<Axis> values = new ArrayList<Axis>();\n\t\ttry {\n\t\t\tfor (String result : analysisModel.getResultNames()) {\n\t\t\t\tvalues.add(AxisType.RESULT.newAxis(AxisName.Y1, result));\n\t\t\t}\n\t\t\tfor (Pair<String, DerivedData> pair : analysisModel\n\t\t\t\t\t.getDerivedDataModel().getDerivedData()) {\n\t\t\t\tfinal String name = pair.getFirst();\n\t\t\t\tfinal DerivedData derivedData = pair.getSecond();\n\t\t\t\tvalues.add(Axis.newDerivedAxis(AxisName.Y1, name, derivedData));\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLOG.error(\"Failed to get result name list\", ex);\n\t\t}\n\t\treturn values;\n\t}",
"AxisOrientation getAxisOrientation();",
"public String getAxisOrientation() {\n return axisOrientation;\n }",
"public Object systemNumber() {\n return this.systemNumber;\n }",
"public String getSystemName();",
"public String getSysId() {\n return sysId;\n }",
"public String getSysId() {\n return sysId;\n }",
"@DISPID(1611005952) //= 0x60060000. The runtime will prefer the VTID if present\n @VTID(28)\n void newWithAxisSystem(\n boolean oAxisSystemCreated);",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public Set getServiceSchemas() throws SMSException {\n // Loop through the services and determine the\n // organization creation schemas\n Set serviceSchemaSet = null;\n try {\n Set serviceNames = getServiceNames(token);\n serviceSchemaSet = new HashSet(serviceNames.size() * 2);\n for (Iterator names = serviceNames.iterator(); names.hasNext();) {\n ServiceSchemaManager ssm = new ServiceSchemaManager(\n (String) names.next(), token);\n ServiceSchema ss = ssm.getOrganizationCreationSchema();\n if (ss != null) {\n serviceSchemaSet.add(ss);\n }\n }\n } catch (SSOException ssoe) {\n SMSEntry.debug.error(\"OrganizationConfigManager:getServiceSchemas\"\n + \" unable to get service schema\", ssoe);\n throw (new SMSException(SMSEntry.bundle\n .getString(\"sms-INVALID_SSO_TOKEN\"), ssoe,\n \"sms-INVALID_SSO_TOKEN\"));\n }\n return (serviceSchemaSet);\n }"
] | [
"0.66428787",
"0.6377399",
"0.6340488",
"0.63175035",
"0.6302686",
"0.6243497",
"0.62266254",
"0.6075268",
"0.60069287",
"0.60014826",
"0.5989105",
"0.5972475",
"0.5951971",
"0.59327203",
"0.58908564",
"0.58876705",
"0.58546805",
"0.57697237",
"0.5761431",
"0.5755936",
"0.57251734",
"0.5719279",
"0.56747997",
"0.563381",
"0.561495",
"0.55898595",
"0.5587152",
"0.558601",
"0.5572279",
"0.5569647",
"0.55629164",
"0.555961",
"0.5557385",
"0.5514109",
"0.5513642",
"0.55081594",
"0.5500356",
"0.5492998",
"0.5489718",
"0.54388314",
"0.542036",
"0.5418795",
"0.5416939",
"0.5414927",
"0.53876644",
"0.5387621",
"0.5369341",
"0.5368224",
"0.53672934",
"0.536078",
"0.53592503",
"0.5346737",
"0.53380877",
"0.53354806",
"0.5335351",
"0.5327295",
"0.5323128",
"0.53225565",
"0.53082436",
"0.52969825",
"0.529606",
"0.5281932",
"0.52774185",
"0.5258208",
"0.5254543",
"0.5251399",
"0.5251133",
"0.5242901",
"0.52425534",
"0.5234769",
"0.5230977",
"0.5225237",
"0.52203894",
"0.52165127",
"0.52092487",
"0.5195045",
"0.51932347",
"0.5185578",
"0.51833874",
"0.5154097",
"0.5150019",
"0.5150019",
"0.5150019",
"0.5150019",
"0.5140693",
"0.513745",
"0.51216084",
"0.51181954",
"0.51107925",
"0.51102483",
"0.50947094",
"0.5093873",
"0.50843334",
"0.5084193",
"0.5080983",
"0.5064448",
"0.5064448",
"0.5058624",
"0.5056133",
"0.5055841"
] | 0.7925564 | 0 |
Getter method for the COM property "OriginElements" | @DISPID(1610940433) //= 0x60050011. The runtime will prefer the VTID if present
@VTID(39)
OriginElements originElements(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getOrigin()\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(ORIGIN$16, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"@java.lang.Override\n public godot.wire.Wire.Vector2OrBuilder getOriginOrBuilder() {\n return getOrigin();\n }",
"@java.lang.Override\n public godot.wire.Wire.Vector3OrBuilder getOriginOrBuilder() {\n return getOrigin();\n }",
"@Override\n\tpublic double[] getOrigin()\n\t{\n\t\tdouble origin[] = new double[] {originX, originY};\n\t\treturn origin;\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Vector2 getOrigin() {\n return origin_ == null ? godot.wire.Wire.Vector2.getDefaultInstance() : origin_;\n }",
"public String getOrigin()\n {\n return m_origin;\n }",
"public String getOrigin() {\n return mOrigin;\n }",
"@java.lang.Override\n public godot.wire.Wire.Vector3 getOrigin() {\n return origin_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : origin_;\n }",
"public godot.wire.Wire.Vector2OrBuilder getOriginOrBuilder() {\n if (originBuilder_ != null) {\n return originBuilder_.getMessageOrBuilder();\n } else {\n return origin_ == null ?\n godot.wire.Wire.Vector2.getDefaultInstance() : origin_;\n }\n }",
"double[] getOrigin();",
"public org.apache.xmlbeans.XmlString xgetOrigin()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ORIGIN$16, 0);\n return target;\n }\n }",
"public int getOrigin() {\r\n\t\treturn origin;\r\n\t}",
"public String getOrigin() {\n return origin;\n }",
"public String getOrigin() {\n return origin;\n }",
"public String getOrigin(){\n\t\treturn origin;\n\t}",
"public String getOrigin(){\r\n\t\treturn this.getChild(\"origin\").getAttribute(\"ref\").getValue();\r\n\t}",
"public godot.wire.Wire.Vector2 getOrigin() {\n if (originBuilder_ == null) {\n return origin_ == null ? godot.wire.Wire.Vector2.getDefaultInstance() : origin_;\n } else {\n return originBuilder_.getMessage();\n }\n }",
"public Point getOrigin() {\n return origin;\n }",
"public godot.wire.Wire.Vector3OrBuilder getOriginOrBuilder() {\n if (originBuilder_ != null) {\n return originBuilder_.getMessageOrBuilder();\n } else {\n return origin_ == null ?\n godot.wire.Wire.Vector3.getDefaultInstance() : origin_;\n }\n }",
"godot.wire.Wire.Vector3 getOrigin();",
"public godot.wire.Wire.Vector3 getOrigin() {\n if (originBuilder_ == null) {\n return origin_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : origin_;\n } else {\n return originBuilder_.getMessage();\n }\n }",
"public Vector3d getOrigin() { return mOrigin; }",
"Origin getOrigin();",
"public Reference origin() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_ORIGIN);\n }",
"public Node getOrigin()\r\n\t{\r\n\t\treturn origin;\r\n\t}",
"public Point2D getOrigin() {\n Point2D resultOrigin;\n resultOrigin = new Point2D(this.origin.getX(), this.origin.getY());\n return resultOrigin;\n\n }",
"godot.wire.Wire.Vector2 getOrigin();",
"public Integer getOrigin() {\n\t\treturn new Integer(origin);\n\t}",
"godot.wire.Wire.Vector2OrBuilder getOriginOrBuilder();",
"N getOrigin();",
"@Override\n public Point getOrigin() {\n return origin;\n }",
"public Location getOrigin() {\n return mOrigin;\n }",
"public Vector3f getOrigin() {\r\n\t\treturn new Vector3f(mOrigin);\r\n\t}",
"godot.wire.Wire.Vector3OrBuilder getOriginOrBuilder();",
"public InetSocketAddress getOrigin () {\n\t\treturn origin;\n\t}",
"private Vector<ResourceLocation> getElements() {\n return getRef().elements;\n }",
"public String getOriginType() {\n return this.originType;\n }",
"public int getXOrigin() {\n return ic.getXOrigin();\n }",
"public double[] element() {\n\t\treturn _coordinates;\n\t}",
"public Point2D getOrigin() {\r\n return new Point2D.Double(originX, originY);\r\n }",
"public List<ResourceReference> origins() {\n return this.innerProperties() == null ? null : this.innerProperties().origins();\n }",
"public godot.wire.Wire.Vector2.Builder getOriginBuilder() {\n \n onChanged();\n return getOriginFieldBuilder().getBuilder();\n }",
"public GeoOrigin getGeoOrigin();",
"private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector2, godot.wire.Wire.Vector2.Builder, godot.wire.Wire.Vector2OrBuilder> \n getOriginFieldBuilder() {\n if (originBuilder_ == null) {\n originBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector2, godot.wire.Wire.Vector2.Builder, godot.wire.Wire.Vector2OrBuilder>(\n getOrigin(),\n getParentForChildren(),\n isClean());\n origin_ = null;\n }\n return originBuilder_;\n }",
"@Override\r\n default Vector3 getOrigin() {\r\n return Vector3.fromXYZ(getOrgX(), getOrgY(), getOrgZ());\r\n }",
"public boolean isSetOrigin()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(ORIGIN$16) != 0;\n }\n }",
"private Object[] elements() {\n return elements.toArray();\n }",
"public ElementStub getPrincipleElement()\n {\n return principleElement;\n }",
"public IDomain[] getDomainComponents();",
"public godot.wire.Wire.Vector3.Builder getOriginBuilder() {\n \n onChanged();\n return getOriginFieldBuilder().getBuilder();\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector3, godot.wire.Wire.Vector3.Builder, godot.wire.Wire.Vector3OrBuilder> \n getOriginFieldBuilder() {\n if (originBuilder_ == null) {\n originBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n godot.wire.Wire.Vector3, godot.wire.Wire.Vector3.Builder, godot.wire.Wire.Vector3OrBuilder>(\n getOrigin(),\n getParentForChildren(),\n isClean());\n origin_ = null;\n }\n return originBuilder_;\n }",
"public IAirport getOrigin();",
"public java.util.Date getDateOfOrigin () {\n\t\treturn dateOfOrigin;\n\t}",
"public Node getExpressionOrigin() {\n return element;\n }",
"List<List<String>> getFieldOrigins();",
"protected SoEnabledElementsList getEnabledElements() {\n\t \t\treturn enabledElements;\n\t \t}",
"public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}",
"int getOriginName();",
"public java.lang.CharSequence getOriginp() {\n return originp;\n }",
"public Integer[] getCoordenada() {\n return this.elementos.clone();\n }",
"public java.lang.CharSequence getOriginp() {\n return originp;\n }",
"public java.lang.String getPlaceOfOrigin () {\n\t\treturn placeOfOrigin;\n\t}",
"public Location getOrigin() {\n/* 1094 */ Location origin = (getHandle()).origin;\n/* 1095 */ return (origin == null) ? null : origin.clone();\n/* */ }",
"public Iterable<Origin> origins() {\n return backendServices.stream()\n .map(BackendService::origins)\n .flatMap(Collection::stream)\n .collect(toList());\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ControlPerson[] getControlPersonsExtArray();",
"org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement[] getBridgeElementArray();",
"public boolean hasOriginp() {\n return fieldSetFlags()[2];\n }",
"public abstract List<OriginEntryFull> getGeneratedOriginEntries();",
"public Coords getCoord() {\r\n\t\treturn coord;\r\n\t}",
"public java.util.List<org.landxml.schema.landXML11.CornerDocument.Corner> getCornerList()\r\n {\r\n final class CornerList extends java.util.AbstractList<org.landxml.schema.landXML11.CornerDocument.Corner>\r\n {\r\n public org.landxml.schema.landXML11.CornerDocument.Corner get(int i)\r\n { return IntersectionImpl.this.getCornerArray(i); }\r\n \r\n public org.landxml.schema.landXML11.CornerDocument.Corner set(int i, org.landxml.schema.landXML11.CornerDocument.Corner o)\r\n {\r\n org.landxml.schema.landXML11.CornerDocument.Corner old = IntersectionImpl.this.getCornerArray(i);\r\n IntersectionImpl.this.setCornerArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.CornerDocument.Corner o)\r\n { IntersectionImpl.this.insertNewCorner(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.CornerDocument.Corner remove(int i)\r\n {\r\n org.landxml.schema.landXML11.CornerDocument.Corner old = IntersectionImpl.this.getCornerArray(i);\r\n IntersectionImpl.this.removeCorner(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return IntersectionImpl.this.sizeOfCornerArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new CornerList();\r\n }\r\n }",
"java.util.List<org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement> getBridgeElementList();",
"@Override\n\tpublic String toString(){\n\t\treturn origin;\n\t}",
"public java.lang.String[] getElement() {\n return element;\n }",
"public List<TLProperty> getElements();",
"public double[] getCoordinates() {\n\t\treturn coordinateTools.localToCoordinates(this);\n\t}",
"public ElementList[] getAnnotations() {\r\n return union.value();\r\n }",
"public GeoPoint getStart(){\n return getOrigin();\n }",
"public Element[] getAnnotations() {\r\n return union.value();\r\n }",
"@Override\n public Origin getOrigin() {\n return Origin.unknown();\n }",
"public ServerName getOrigin() {\n return origin;\n }",
"public Enumeration elements()\n {\n return element.elements();\n }",
"public Enumeration elements()\r\n/* 54: */ {\r\n/* 55:82 */ return this.pop.elements();\r\n/* 56: */ }",
"public boolean hasOriginh() {\n return fieldSetFlags()[1];\n }",
"public com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.flightLegOrBuilder getOriginFlightLegOrBuilder() {\n return getOriginFlightLeg();\n }",
"@Override\n public Location getOrigin() {\n return getOwner().getLocation();\n }",
"public String getElementSerialSeq() {\r\n\t\treturn elementSerialSeq;\r\n\t}",
"@Override\n public T getCombinedElement()\n {\n return element;\n }",
"public void setOrigin(int[] origin) throws Exception {\n\t\tif (origin[1]>width-1||origin[0]>height-1||origin[1]<1||origin[0]<1) {\n\t\t\tthrow new Exception(\"position wrong\");\n\t\t}\n\t\tthis.origin[0]=origin[0];\n\t\tthis.origin[1]=origin[1];\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.AddressDescription[] getControlPersonsArray();",
"public ArrayList<Integer> getElements()\n {\n return this.elements;\n }",
"private final native MVCArray<Element> getControls(int controlPosition) /*-{\n return this.controls[controlPosition];\n }-*/;",
"public Enumeration elements();",
"public List<String> getDomain() {\n\t\treturn null;\n\t}",
"public List<SiacRCronopElemBilElem> getSiacRCronopElemBilElems() {\n\t\treturn this.siacRCronopElemBilElems;\n\t}",
"@DISPID(-4)\n @PropGet\n java.util.Iterator<Com4jObject> iterator();",
"public abstract Enumeration elements();",
"public List<Float[]> getCoordinates() {\n return coordinates;\n }",
"public Location getElement(){\n\t\t\treturn element;\n\t\t}",
"public String getOrigin(){\r\n\t\treturn route.getOrigin();\r\n\t}",
"public List<Element> getCustomElements() {\r\n return customElements;\r\n }"
] | [
"0.65715486",
"0.64855415",
"0.64323324",
"0.63389194",
"0.6331187",
"0.61980784",
"0.6189644",
"0.61852455",
"0.61555636",
"0.6148627",
"0.6136228",
"0.6101965",
"0.60904896",
"0.60904896",
"0.6084553",
"0.60729134",
"0.6060217",
"0.6027385",
"0.5948994",
"0.5939517",
"0.59226304",
"0.5920349",
"0.59062046",
"0.59026015",
"0.58594275",
"0.5855942",
"0.58370864",
"0.5817783",
"0.5807077",
"0.58019984",
"0.58017623",
"0.5754233",
"0.5691546",
"0.5687988",
"0.56620085",
"0.5652154",
"0.5651598",
"0.5638173",
"0.55934393",
"0.5591556",
"0.5582587",
"0.5528233",
"0.54988533",
"0.5483139",
"0.5482262",
"0.54552466",
"0.54463583",
"0.5405867",
"0.54025936",
"0.5384102",
"0.5382638",
"0.53718853",
"0.5343657",
"0.530743",
"0.5304639",
"0.53032786",
"0.53025335",
"0.52803886",
"0.5269793",
"0.5252349",
"0.52493376",
"0.52386683",
"0.5238547",
"0.522925",
"0.52068627",
"0.52043605",
"0.51727587",
"0.51664245",
"0.515533",
"0.5155204",
"0.51234365",
"0.512225",
"0.5121503",
"0.51199675",
"0.51050407",
"0.5070553",
"0.5065958",
"0.50596166",
"0.50513476",
"0.5046354",
"0.50197935",
"0.5013707",
"0.5007648",
"0.50056326",
"0.49974018",
"0.49950942",
"0.49912497",
"0.4989403",
"0.49857306",
"0.49842313",
"0.49832165",
"0.49829674",
"0.49629608",
"0.49611107",
"0.4960232",
"0.49515775",
"0.49384338",
"0.49315333",
"0.49238333",
"0.4922495"
] | 0.8191341 | 0 |
Getter method for the COM property "Density" | @DISPID(1610940434) //= 0x60050012. The runtime will prefer the VTID if present
@VTID(40)
double density(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getDensity() {\n return density;\n }",
"public float getDensity() {\n return density;\n }",
"public abstract float getDensity();",
"public double getDensity() {\n\t\tdouble widthX = this.maxx.getData().getX()-this.minx.getData().getX();\n\t\tdouble widthY = this.maxy.getData().getY()-this.miny.getData().getY();\n\t\treturn (this.size)/(widthX * widthY);\n\t}",
"public int getCombatDensityRate() {\n return combatDensityRate;\n }",
"@Override\r\n\tpublic Integer getPropensity_smallpur_decile() {\n\t\treturn super.getPropensity_smallpur_decile();\r\n\t}",
"public double getMaxDensity(){\n\t\treturn 1;\n\t}",
"public String getScreenDensity() {\n return (mScreenDensity);\n }",
"public abstract double computeValue(Density density);",
"@Override\r\n\tpublic Integer getPropensity_fiscalprd_decile() {\n\t\treturn super.getPropensity_fiscalprd_decile();\r\n\t}",
"@Override\r\n\tpublic Integer getPropensity_pension_decile() {\n\t\treturn super.getPropensity_pension_decile();\r\n\t}",
"@Override\r\n\tpublic Integer getPropensity_fund_decile() {\n\t\treturn super.getPropensity_fund_decile();\r\n\t}",
"public void setDensity(float density) {\n this.density = density;\n }",
"public double getDensity(double x){\n\t\tint k = (int)Math.rint(x);\n\t\treturn Functions.comb(type1Size, k) * Functions.comb(populationSize - type1Size, sampleSize - k) / c;\n\t}",
"public double getDiameter() {\n return diameter;\n }",
"public Double getDesign()\r\n {\r\n return design;\r\n }",
"public int getDiameter()\n {\n return diameter;\n }",
"@Override\r\n\tpublic Integer getPropensity_bond_decile() {\n\t\treturn super.getPropensity_bond_decile();\r\n\t}",
"@SimpleProperty(description = \"The diameter of the wheels used for driving.\",\n category = PropertyCategory.BEHAVIOR, userVisible = false)\n public float WheelDiameter() {\n return (float) wheelDiameter;\n }",
"public java.lang.Double getHpsDisc() {\n return hpsDisc;\n }",
"public double getDensityOfAir()\n\t{\n\t\treturn this.densityOfAir;\n\t}",
"public List<Double> getEnergyDensityBand() {\n return energyDensityBand;\n }",
"public boolean attributeIsDensityValue ()\n\t{\n\t\n\t\treturn mAttributeTypeDensityButton.isSelected();\n\t\n\t}",
"public double getMaxDensity(){\n\t\tdouble mode = Math.exp(location - scale * scale);\n\t\treturn getDensity(mode);\n\t}",
"public Number getSizeratio() {\n return (Number)getAttributeInternal(SIZERATIO);\n }",
"@Override\r\n\tpublic Integer getPropensity_familyproins_decile() {\n\t\treturn super.getPropensity_familyproins_decile();\r\n\t}",
"public double getSd() {\n return sd;\n }",
"public float getDCM();",
"public java.lang.Double getHpsDisc() {\n return hpsDisc;\n }",
"public float getDCD();",
"@Override\r\n\tpublic Integer getPropensity_loan_decile() {\n\t\treturn super.getPropensity_loan_decile();\r\n\t}",
"Double getNominalDiameter();",
"public double getMaxDensity(){\n\t\tdouble mode = Math.floor(((double)(sampleSize + 1) * (type1Size + 1)) / (populationSize + 2));\n\t\treturn getDensity(mode);\n\t}",
"DoubleProperty getPowerUsage();",
"public final double getSd()\r\n\t{\r\n\t\treturn sd;\r\n\t}",
"public long getPropertyVolume();",
"public float getDisp();",
"public int getDiameterInMicrometers() {\n return diameterInMicrometers;\n }",
"public double discSize() {\n return discSize;\n }",
"double getPressure();",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"public Double getDx();",
"public int getDistribution() {\n return distribution;\n }",
"public int getDiameter() {\n\t\treturn diameter;\n\t}",
"public float getDCN();",
"@Override\r\n\tpublic Integer getPropensity_credit_decile() {\n\t\treturn super.getPropensity_credit_decile();\r\n\t}",
"@Override\r\n\tpublic Integer getPropensity_autoins_decile() {\n\t\treturn super.getPropensity_autoins_decile();\r\n\t}",
"public static double generateDensity() {\n double lower = config.getDensityLowerBound();\n double upper = config.getDensityUpperBound();\n\n Random random = new Random();\n return lower + (upper - lower) * random.nextDouble();\n }",
"@java.lang.Override\n public float getD() {\n return d_;\n }",
"@Override\r\n\tpublic Double getPropensity_pension_score() {\n\t\treturn super.getPropensity_pension_score();\r\n\t}",
"public long getPropertyVolume()\n {\n return iPropertyVolume.getValue();\n }",
"public Float getHsdpaDrpr() {\n return hsdpaDrpr;\n }",
"public byte[] getScale()\n {\n if (true)\n throw new UnsupportedOperationException(\"FIXME\");\n return (byte[]) getProperty(PropertyIDMap.PID_SCALE);\n }",
"public double getDistributionEfficiency() {\r\n\t\treturn distributionEfficiency;\r\n\t}",
"public long getPropertyVolumeUnity();",
"public double getValorProduto() {\n return valorProduto;\n }",
"public double getDensity(double x){\n\t\tdouble z = (Math.log(x) - location) / scale;\n\t\treturn Math.exp(- z * z / 2) / (x * C * scale);\n\t}",
"public Double getFat() {\n return product.getFat() * weight / 100;\n }",
"protected float getDpUnit() {\n return mDpUnit;\n }",
"public float getHdi()\n {\n return hdi;\n }",
"EDataType getResistance();",
"public double getNu() {return nu;}",
"public int getDC() {\n\treturn DC;\n}",
"@Override\r\n\tpublic Integer getPropensity_trust_decile() {\n\t\treturn super.getPropensity_trust_decile();\r\n\t}",
"float getD();",
"public abstract double getMeasure();",
"public float getStandardDeviation(){\r\nreturn StandardDeviation;\r\n\t}",
"public double findDensity() {\n\t\tdouble temp = 0.0;\n\t\tfor (int i = 0; i < neighbors.size(); i++) { //calculate desnity using point and k nearest neighbors\n\t\t\tPoint t = neighbors.get(i);\n\t\t\tArrayList<Double> pa = t.getList();\n\t\t\tArrayList<Double> pb = p.getList();\n\t\t\tdouble sum = 0.0;\n\t\t\tfor (int j = 0; j < pa.size(); j++) {\n\t\t\t\tsum += Math.pow(pa.get(j)- pb.get(j), 2); //use euclidian distance\n\t\t\t}\n\t\t\ttemp += Math.sqrt(sum);\n\t\t}\n\t\treturn ((neighbors.size())/temp);\n\t}",
"public double getPromedio() {\r\n return promedio;\r\n }",
"public int getDen()\n {\n return den;\n }",
"public int getEnergy(){ return energy; }",
"public double getMass();",
"public float getDscale() {\r\n\t\treturn dscale;\r\n\t}",
"public DoubleProperty valueProperty() {\n return value;\n }",
"public double getDouble();",
"@Override\r\n\tpublic Integer getModel_bondf_prop_decile() {\n\t\treturn super.getModel_bondf_prop_decile();\r\n\t}",
"public Integer getMeterDenominator() {\n return this.meterDenominator;\n }",
"public String getDPISBN(){\n\t\treturn this.m_sDPISBN;\n\t}",
"@Override\r\n\tpublic Integer getModel_presf_prop_decile() {\n\t\treturn super.getModel_presf_prop_decile();\r\n\t}",
"public float getDexterity()\n {\n return dexterity;\n }",
"public int getDenominator() { \n return denominator; \n }",
"@Override\r\n\tpublic double getDiameter()\r\n\t{\r\n\t\tif (diameter < 0) { // has not been initialized\r\n\t\t\tlogger.debug(\"Calling setGraphParameters\");\r\n\t\t\tsetGraphParameters();\r\n\t\t}\r\n\t\treturn diameter;\r\n\t}",
"public double getQuality() {\n return quality;\n }",
"public double darDistancia( )\n {\n return distanciaMediaSol;\n }",
"Double getDoubleValue();",
"public float getDCMb();",
"public double value() {\r\n return value;\r\n }",
"public Double value() {\n return this.value;\n }",
"public double getDx() {\n return dx;\n }",
"public double getQuantidade() {\n return quantidade;\n }",
"public Float getHsupaDrpr() {\n return hsupaDrpr;\n }",
"EDataType getPerCent();",
"public double getEnergy(){\n\t\t return energy;\n\t}",
"public double getResistance() \n {\n //dummy return value.\n return 0;\n }",
"public float getQuality();",
"public double getValue(){\n return value;\n }",
"public DriftCheckModelDataQuality getModelDataQuality() {\n return this.modelDataQuality;\n }",
"public double Mass() {\n return OCCwrapJavaJNI.Units_Dimensions_Mass(swigCPtr, this);\n }",
"public double getDescuentos(){\n return this.descuentos;\n }",
"public float getUtilityMeasure() {\n return utilityMeasure;\n }"
] | [
"0.8157972",
"0.8157972",
"0.8134034",
"0.71142036",
"0.6762378",
"0.66455626",
"0.6633152",
"0.6533743",
"0.6512345",
"0.6427961",
"0.6377633",
"0.6331289",
"0.63261926",
"0.6286055",
"0.62401706",
"0.6231432",
"0.6213711",
"0.62056077",
"0.6196798",
"0.6173246",
"0.61621803",
"0.61577135",
"0.61531675",
"0.6126028",
"0.6112771",
"0.6099969",
"0.60971266",
"0.6093857",
"0.60881287",
"0.6049816",
"0.60388833",
"0.60187083",
"0.5996323",
"0.5992393",
"0.5973788",
"0.5969727",
"0.59554213",
"0.5938751",
"0.593677",
"0.5932981",
"0.5926858",
"0.5913966",
"0.5900497",
"0.5893532",
"0.5891744",
"0.5887744",
"0.5872221",
"0.5869673",
"0.586602",
"0.58564556",
"0.5835731",
"0.58073646",
"0.5803846",
"0.578284",
"0.57817036",
"0.5779165",
"0.577205",
"0.57691795",
"0.5765774",
"0.576522",
"0.57562745",
"0.5744707",
"0.57362646",
"0.5730229",
"0.5718242",
"0.5716337",
"0.57128793",
"0.5712257",
"0.5708985",
"0.57056904",
"0.5702648",
"0.5701694",
"0.5688074",
"0.56813",
"0.56763333",
"0.56457806",
"0.56424123",
"0.5641707",
"0.56400615",
"0.5640048",
"0.56364244",
"0.56334585",
"0.56303966",
"0.5626904",
"0.5625906",
"0.56231636",
"0.5618527",
"0.56035185",
"0.5590312",
"0.55897635",
"0.5588278",
"0.5577527",
"0.5575752",
"0.5570145",
"0.5564116",
"0.5563178",
"0.5559342",
"0.55564153",
"0.55549896",
"0.5554654"
] | 0.7314401 | 3 |
Getter method for the COM property "OrderedGeometricalSets" | @DISPID(1610940447) //= 0x6005001f. The runtime will prefer the VTID if present
@VTID(53)
OrderedGeometricalSets orderedGeometricalSets(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Sets> getSets() {\n return this.sets;\n }",
"public abstract java.util.Set getLocations();",
"Map<String, OperationalSets> getSets();",
"public DisjointSets getSets()\n\t{\n\t\treturn sets;\n\t}",
"public List<Set> getSets() {\n\t\treturn this.sets;\n\t}",
"public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}",
"@Explain(displayName = \"grouping sets\")\n @Signature\n public List<Long> getListGroupingSets() {\n if (groupingSetsPresent) {\n return listGroupingSets;\n }\n return null;\n }",
"public List<SetMappingValue> getSets() {\r\n\t\treturn sets;\r\n\t}",
"public Set<IS> getFreItemSet();",
"public int[] getSetsArray()\n\t{\n\t\treturn getSets().getSetsArray();\n\t}",
"public SetOfTiles getSetOfTiles();",
"Set<Vertex> getVertices();",
"public java.lang.String getZqu__Associated_Field_Set__c() {\r\n return zqu__Associated_Field_Set__c;\r\n }",
"public static Set orderedSet(Set set) {\n/* 236 */ return (Set)ListOrderedSet.decorate(set);\n/* */ }",
"Set<CyEdge> getExternalEdgeList();",
"private Collection<Edge> getEdges()\r\n\t{\r\n\t return eSet;\r\n\t}",
"public ArrayList<ArrayList<double[]>> getClusterSet(){\n\t\treturn clusterSet;\n\t}",
"public Set<V> getVertices();",
"public Set<V> getVertices();",
"public Set<E> getEdges();",
"public NamedGraphSet getNamedGraphSet() {\n \t\treturn this.graphSet;\n \t}",
"public static ArrayList<SalesOrder> getSalesOrderSets() throws OnlineODataStoreException\n {\n\n\n //Get the open online store\n ODataOpenListener openListener = ODataOpenListener.getInstance();\n OnlineODataStore store = openListener.getStore();\n\n if (store!=null)\n {\n SalesOrder salesOrder;\n ODataProperty property;\n ODataPropMap properties;\n String resourcePath;\n\n try\n {\n /**\n * Build the initial OData resource path and query options string from:\n * Collection ID: EntitySet Name\n * ?$orderby= : query option that specifies the order (sorting) of the response\n * SalesOrderID : sort key for the orderby directive\n *\n * Instead of SalesOrderID, you can specify Collections.NOTE to have all SalesOrderSet\n * returned alphabetically (and by default displayed that way in the list view).\n *\n * The christianschneider service enforces server-side paging and will return 20 entities per\n * request. To view the paging size (\"$skiptoken=\") value, paste the first URL below into a\n * browser window, and scroll to the bottom of the response. You do not have to\n * track the number of entities received in your code. The SDK will create the\n * next resource path string for you (as seen in the code below). When the returned\n * string is `null' you have received all entities.\n *\n * Since there are 77 entities in the OData service we are calling, the do-while loop\n * will end up issuing the four requests below to receive all the data (20 entities at a time).\n * - http://192.168.0.76:8080/Workorder/SalesOrderSet?$orderby=SalesOrderID\n * - http://192.168.0.76:8080/Workorder/SalesOrderSet?$orderby=SalesOrderID&$skiptoken=20,20\n * - http://192.168.0.76:8080/Workorder/SalesOrderSet?$orderby=SalesOrderID&$skiptoken=40,40\n * - http://192.168.0.76:8080/Workorder/SalesOrderSet?$orderby=SalesOrderID&$skiptoken=60,60\n */\n\n // Build initial resource path and query options string\n resourcePath = Collections.SALES_ORDER_SET + \"?$top=5&$skip=\" + skipValue + \"&$orderby=\" + Collections.SALES_ORDER_ID;\n // Loop until resourcePath is null\n Log.d(\"resourcePath\", resourcePath);\n// do\n// {\n Log.d(TAG, \"Requesting: \" + resourcePath);\n\n //Executor method for reading an Entity set\n ODataResponseSingle resp = store.executeReadEntitySet(resourcePath, null);\n\n //Get the response payload\n ODataEntitySet feed = (ODataEntitySet) resp.getPayload();\n\n //Get the list of ODataEntity\n List<ODataEntity> entities = feed.getEntities();\n\n //Loop to retrieve the information from the response and store in the SalesOrder Object\n for (ODataEntity entity : entities)\n {\n properties = entity.getProperties();\n property = properties.get(com.christianschneider.model.Collections.SALES_ORDER_ID);\n salesOrder = new SalesOrder(property.getValue().toString());\n property = properties.get(Collections.NOTE);\n salesOrder.setNote(property.getValue().toString());\n property = properties.get(Collections.NOTE_LANGUAGE);\n salesOrder.setNoteLanguage(property.getValue().toString());\n property = properties.get(Collections.CUSTOMER_ID);\n salesOrder.setCustomerId(property.getValue().toString());\n property = properties.get(Collections.CUSTOMER_NAME);\n salesOrder.setCustomerName(property.getValue().toString());\n property = properties.get(Collections.CURRENCY_CODE);\n salesOrder.setCurrencyCode(property.getValue().toString());\n property = properties.get(Collections.LIFECYCLE_STATUS);\n salesOrder.setLifecycleStatus(property.getValue().toString());\n property = properties.get(Collections.LIFECYCLE_STATUS_DESCRIPTION);\n salesOrder.setLifecycleStatusDescription(property.getValue().toString());\n property = properties.get(Collections.BILLING_STATUS);\n salesOrder.setBillingStatus(property.getValue().toString());\n property = properties.get(Collections.BILLING_STATUS_DESCRIPTION);\n salesOrder.setBillingStatusDescription(property.getValue().toString());\n property = properties.get(Collections.DELIVERY_STATUS);\n salesOrder.setDeliveryStatus(property.getValue().toString());\n property = properties.get(Collections.DELIVERY_STATUS_DESCRIPTION);\n salesOrder.setDeliveryStatusDescription(property.getValue().toString());\n property = properties.get(Collections.CREATED_AT);\n salesOrder.setCreatedAt(property.getValue().toString());\n property = properties.get(Collections.CHANGED_AT);\n salesOrder.setChangedAt(property.getValue().toString());\n\n /**\n * The unit price value from the christianschneider OData service has\n * four decimal places, we'll round to two decimal places before storing the data\n */\n property = properties.get(Collections.GROSS_AMOUNT);\n Float price = Float.valueOf(property.getValue().toString());\n salesOrder.setGrossAmount(String.format(\"%.2f\", price));\n\n property = properties.get(Collections.NET_AMOUNT);\n price = Float.valueOf(property.getValue().toString());\n salesOrder.setNetAmount(String.format(\"%.2f\", price));\n\n property = properties.get(Collections.TAX_AMOUNT);\n price = Float.valueOf(property.getValue().toString());\n salesOrder.setTaxAmount(String.format(\"%.2f\", price));\n\n // Add this entity to the array\n pList.add(salesOrder);\n SalesOrderItemDataSingleton.initialize(openListener, salesOrder);\n\n }\n\n // Get the next resource path from the OData SDK. The call to getNextResourcePath()\n // will return the appropriate string based on the server's skiptoken value.\n // resourcePath = feed.getNextResourcePath();\n\n// }\n // Short circuit evaluation of the string to see if we should loop again.\n // When all entities have been received, resourcePath will be null\n// while (resourcePath != null && !resourcePath.isEmpty());\n\n SalesOrder.logSalesOrderArrayList(pList);\n\n // Save a reference to the list in ITEMS.\n ITEMS = pList;\n\n // Store all items in ITEMS (ArrayList) in ITEM_MAP (HashMap) for rapid retrieval\n storeData();\n skipValue += 5;\n\n }\n catch (Exception e)\n {\n Log.e(TAG, appContext.getString(R.string.online_odata_store_exception));\n throw new OnlineODataStoreException(e);\n }\n }\n else\n Log.e(TAG, \"Store not open\");\n\n return pList;\n }",
"Set<String> getOsPSet();",
"public int getSet() {\n return set;\n }",
"public Set<Integer> getOrgIds()\n\t{\n\t\treturn new TreeSet(this.reg.keySet());\n\t}",
"public String getSetSpec();",
"public List<Integer> getBySetPos() {\n\t\treturn bySetPos;\n\t}",
"public Set getRelatedObjects() {\n\t\treturn adaptee.getResultLocus();\n\t}",
"public int numSets()\n {\n return numSets;\n }",
"public abstract String getSetSpec();",
"public String[] getGeoSystem();",
"String getCollection();",
"public double[][] getLevelSet() {\r\n\t\treturn _levelSet;\r\n\t}",
"Set<Group> getGroups();",
"public NavigableSet<Groupe> getGroupes();",
"private Set<AsciiFileChunk> orderdChunks() {\n\t\treturn orderdChunks;\n\n\t}",
"public Set<GeographicPoint> getVertices()\n\t{\n\t\t//TODO: Implement this method in WEEK 3\n\t\tSet<GeographicPoint> ans = new HashSet<GeographicPoint> ();\n\t\tfor (GeographicPoint curr : map.keySet()) {\n\t\t\tif (!ans.contains(curr)) {\n\t\t\t\tans.add(curr);\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}",
"public Set<T> getSet () {\r\n\t\treturn _set;\r\n\t}",
"Set<CACell> automateNGetOuterLayerSet(CACrystal crystal, final Set<CACell> set);",
"java.lang.String getCollection();",
"public int getIdSet() {\r\n return idSet;\r\n }",
"public List<WellSetPOJOBigDecimal> getWellsets() {\n \treturn this.wellsets;\n }",
"public java.util.Set<jkt.hms.masters.business.DgOrderdt> getDgOrderdts () {\n\t\treturn dgOrderdts;\n\t}",
"@Override\n public Set keySet() {\n OmaLista palautettava = new OmaLista();\n\n for (int i = 0; i < this.values.length; i++) {\n if (this.values[i] != null) {\n for (int z = 0; z < this.values[i].size(); z++) {\n palautettava.add(this.values[i].value(z).getKey());\n }\n }\n }\n\n return palautettava;\n }",
"protected Set<String> getGroupsSet() {\n return getGroupsList().stream().collect(Collectors.toSet());\n }",
"public java.util.List<java.lang.String> getVariantSetIds() {\n return variantSetIds;\n }",
"public Set<WeightedPoint> getClosedSet()\n {\n return closedSet;\n }",
"public ArrayList<GenoSet> getImputedGenoSet() {\r\n\t\treturn ImputedGenoSet;\r\n\t}",
"@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}",
"FrequentItemSet[] getFrequentItemSets() {\n return frequentItemSets;\n }",
"public static void main( String[] args )\n {\n OrderedSet set = new OrderedSet( true );\n set.add( new Integer( 6 ) );\n set.add( new Integer( 1 ) );\n set.add( new Integer( 4 ) );\n set.add( new Integer( 1 ) );\n System.out.println( set );\n System.out.println();\n\n System.out.println( \"Enumerate the OrderedSet\" );\n Enumeration e = set.elements();\n while ( e.hasMoreElements() )\n System.out.println( e.nextElement() );\n System.out.println();\n\n System.out.println( \"Iterate through the OrderedSet\" );\n for ( OrderedSetIterator i = set.begin(); !i.atEnd(); i.advance() )\n System.out.println( i.get() );\n System.out.println();\n\n System.out.println( \"Show that duplicates can be added.\" );\n set.add( new Integer( 8 ) );\n System.out.println( \"set = \" + set );\n\n set.add( new Integer( 4 ) );\n System.out.println( \"set = \" + set );\n }",
"@DataClass.Generated.Member\n public @NonNull Set<VmsAssociatedLayer> getAssociatedLayers() {\n return mAssociatedLayers;\n }",
"public Set<Note> getNoteSet();",
"public HashSet<Town> getVertices() {\r\n\t\treturn (HashSet<Town>) vertices;\r\n\t}",
"public abstract Set<Genome> getAvailableGenomes();",
"public abstract List<Organism> getOrganisms();",
"public int[] getArticulationVertices() {\n int[] xs = new int[set.cardinality()];\n for (int x = set.nextSetBit(0), i = 0;\n x >= 0;\n x = set.nextSetBit(x + 1), i++) {\n xs[i] = x;\n }\n return xs;\n }",
"public int getNumberOfSets();",
"protected Iterator getNominationsSet() \n {\n return this.nominations.iterator();\n }",
"public java.util.List<java.lang.String> getVariantSetIds() {\n return variantSetIds;\n }",
"public java.util.Set<jkt.hms.masters.business.DgOrderdt> getDgOrderdts() {\n\t\treturn dgOrderdts;\n\t}",
"public GenoSet getObservedGenoSet(int i) {\r\n\t\treturn ObservedGenoSet.get(i);\r\n\t}",
"LinkedHashSet<String> getOrderedBeanIds();",
"public Set<NounPhrase> getOpSet(){\n\t\tSet<NounPhrase> opSet = this.getEntConsiderPass(\"O\");\n\t\treturn opSet;\n\t}",
"public ArrayList getComUnits();",
"private Set func_177575_g() {\n/* 450 */ HashSet var1 = Sets.newHashSet();\n/* 451 */ ArrayList<?> var2 = Lists.newArrayList(this.variants.keySet());\n/* 452 */ Collections.sort(var2, new Comparator()\n/* */ {\n/* */ private static final String __OBFID = \"CL_00002390\";\n/* */ \n/* */ public int func_177505_a(ModelResourceLocation p_177505_1_, ModelResourceLocation p_177505_2_) {\n/* 457 */ return p_177505_1_.toString().compareTo(p_177505_2_.toString());\n/* */ }\n/* */ \n/* */ public int compare(Object p_compare_1_, Object p_compare_2_) {\n/* 461 */ return func_177505_a((ModelResourceLocation)p_compare_1_, (ModelResourceLocation)p_compare_2_);\n/* */ }\n/* */ });\n/* 464 */ Iterator<?> var3 = var2.iterator();\n/* */ \n/* 466 */ while (var3.hasNext()) {\n/* */ \n/* 468 */ ModelResourceLocation var4 = (ModelResourceLocation)var3.next();\n/* 469 */ ModelBlockDefinition.Variants var5 = (ModelBlockDefinition.Variants)this.variants.get(var4);\n/* 470 */ Iterator<ModelBlockDefinition.Variant> var6 = var5.getVariants().iterator();\n/* */ \n/* 472 */ while (var6.hasNext()) {\n/* */ \n/* 474 */ ModelBlockDefinition.Variant var7 = var6.next();\n/* 475 */ ModelBlock var8 = (ModelBlock)this.models.get(var7.getModelLocation());\n/* */ \n/* 477 */ if (var8 == null) {\n/* */ \n/* 479 */ LOGGER.warn(\"Missing model for: \" + var4);\n/* */ \n/* */ continue;\n/* */ } \n/* 483 */ var1.addAll(func_177585_a(var8));\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 488 */ var1.addAll(field_177602_b);\n/* 489 */ return var1;\n/* */ }",
"@Override\r\n\tpublic Iterator<GIS_layer> iterator() {\n\t\treturn set.iterator();\r\n\t}",
"public Set<MindObject> getDirectSubComponents(){\n return new HashSet<>();\n }",
"java.util.List<CoordinateSystem> getCoordinateSystems();",
"public synchronized ArrayList<String> getNameofOptionset()\n {\n \t ArrayList<String> optionsetNames =new ArrayList<String>();\n for (OptionSet op: this.getOpset()){\n optionsetNames.add(op.getName());}\n return optionsetNames;\n }",
"public java.util.Set<com.jspgou.cms.entity.OrderItem> getItems () {\r\n\t\treturn items;\r\n\t}",
"public ObjectSet<Map.Entry<K, V>> entrySet() {\n/* 481 */ return (ObjectSet)reference2ObjectEntrySet();\n/* */ }",
"public Set<String> getFeatures();",
"public Set<Relation> getRelations();",
"public Set<String> getVertices()\r\n\t{\r\n\t\treturn this.dataMap.keySet();\r\n\t}",
"@Override\r\n public Set<String> getContainers()\r\n {\r\n assert(true);\r\n \tSet<String> toReturn = new TreeSet<String>();\r\n for (ProductContainer container : groups)\r\n {\r\n toReturn.add(container.getName());\r\n }\r\n return toReturn;\r\n }",
"public abstract Collection getGroups();",
"Collection<? extends Object> getHasZCoordinate();",
"@Override\n\tpublic ArregloDinamico<K> keySet() {\n\t\tArregloDinamico<K> respuesta = new ArregloDinamico<K>(N);\n\t\tfor(int i = 0; i<M ; i++)\n\t\t{\n\t\t\tArregloDinamico<NodoTabla<K,V>> temporal = map.darElemento(i).getAll();\n\t\t\tfor(int j=0 ; j < temporal.size() ; j++)\n\t\t\t{\n\t\t\t\tNodoTabla<K,V> elemento = temporal.darElemento(j);\n\t\t\t\tif(elemento != null && elemento.darLlave() != null)\n\t\t\t\t\trespuesta.addLast(elemento.darLlave());\t\n\t\t\t}\n\t\t}\n\t\treturn respuesta;\n\t}",
"public ObjectSet<Map.Entry<K, V>> entrySet() {\n/* 217 */ return (ObjectSet)reference2ObjectEntrySet();\n/* */ }",
"public Heap<WeightedPoint> getOpenSet()\n {\n return openSet;\n }",
"public String getAttributesetarray() {\r\n return attributesetarray;\r\n }",
"protected Set<Integer> getInnovations() {\n\t\treturn genes.keySet();\n\t}",
"Collection<L> getLocations ();",
"@Override\n\tpublic Set<String> getWordSet() {\n\t\tlock.lockReadOnly();\n\t\ttry {\n\t\t\treturn super.getWordSet();\n\t\t} finally {\n\t\t\tlock.unlockReadOnly();\n\t\t}\n\t}",
"public Map<String, OperationSet> getSupportedOperationSets()\n {\n return new Hashtable<>(supportedOperationSets);\n }",
"public InverseLinksList<IfcMaterialLayerSet> getToMaterialLayerSet() {\n return toMaterialLayerSet;\n\n }",
"public final Collection<String> mo44334a() {\n Set<String> set = this.f43137e;\n return set == null ? Collections.emptyList() : set;\n }",
"@Override\r\n\tpublic Object[] toArray() {\n\t\treturn set.toArray();\r\n\t}",
"public ImmutableSet<K> mo8390e() {\n return new C1374b(this, new C1375c(this.f9855g, 0, this.f9856h));\n }",
"@Override\r\n\tpublic Map<Integer, String> getOrderQualityList() {\n\t\treturn null;\r\n\t}",
"public OrderedSet (String setName) {\n initialize();\n name = setName;\n }",
"public ObjectSet<Map.Entry<K, V>> entrySet() {\n/* 315 */ return (ObjectSet)reference2ObjectEntrySet();\n/* */ }",
"boolean getSet();",
"@Override\n\tpublic List<Location> getVertices() {\n\t\treturn locations;\n\t}",
"@Override\n\tpublic Set<E> getClustering() {\n\t\treturn F;\n\t}",
"public Tag [] getTagSet() {\n return this.TagSet;\n }",
"public String[] getOrderedIDs() {\n\t\treturn this.orderedIDs;\n\t}",
"public @NonNull List<Integer> getEmoteSets() {\n return this.emoteSets;\n }",
"public HashSet<N> getNodes()\r\n/* 99: */ {\r\n/* 100:182 */ assert (checkRep());\r\n/* 101: */ \r\n/* 102:184 */ return new HashSet(this.map.keySet());\r\n/* 103: */ }"
] | [
"0.66151947",
"0.65485543",
"0.6454135",
"0.6374137",
"0.63658476",
"0.6194432",
"0.61681294",
"0.61581826",
"0.61290294",
"0.6074064",
"0.5954298",
"0.59388745",
"0.5866169",
"0.58636844",
"0.5859048",
"0.58515316",
"0.58190495",
"0.5796099",
"0.5796099",
"0.5773249",
"0.57695997",
"0.5741817",
"0.57018125",
"0.566449",
"0.56633866",
"0.5655552",
"0.56466675",
"0.56351686",
"0.5617134",
"0.55673146",
"0.5565051",
"0.55492455",
"0.55482167",
"0.55453104",
"0.5540391",
"0.5523468",
"0.5507925",
"0.5506318",
"0.5504092",
"0.5496855",
"0.54817975",
"0.548097",
"0.5474705",
"0.54700285",
"0.5465147",
"0.5457469",
"0.5455077",
"0.5445901",
"0.54426944",
"0.543238",
"0.5428917",
"0.5416017",
"0.54136294",
"0.54068005",
"0.5397903",
"0.5396583",
"0.53921103",
"0.5389281",
"0.53882927",
"0.5382211",
"0.5373063",
"0.5370682",
"0.53683287",
"0.5359621",
"0.53586864",
"0.5338429",
"0.53352314",
"0.5332064",
"0.5327352",
"0.53238845",
"0.529959",
"0.5294775",
"0.5293522",
"0.52904475",
"0.5284508",
"0.52812666",
"0.52784425",
"0.5277182",
"0.5268973",
"0.52675194",
"0.52636826",
"0.5261362",
"0.52606094",
"0.5258896",
"0.52542824",
"0.52476007",
"0.52474904",
"0.5244683",
"0.52412933",
"0.5241142",
"0.52405167",
"0.5236604",
"0.5236414",
"0.5203285",
"0.5201989",
"0.5197682",
"0.51940984",
"0.51936364",
"0.5192133",
"0.51909184"
] | 0.831773 | 0 |
Repeat this the same runnable code block again every 60 seconds | @Override
public void run() {
handler.postDelayed(runnableCode, apiCallFrequency);
//Initiates reload of forceLoad() in TickerLoader
reload();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void runEachMinute() {\n \n }",
"public void run()\r\n\t{\r\n\t\ttimer.scheduleAtFixedRate(this.getTimerTask(), 0, repeat * 60 * 1000);\r\n\t}",
"protected void runEachSecond() {\n \n }",
"@Override\r\n\tpublic void run() {\r\n\t\ttimer = new Timer();\r\n\t\ttimer.schedule(new TimerTask() {\r\n\t\t\t@Override\r\n public void run() {\r\n Main.myIntegratedSensorSuite.reinitializeRainData();\r\n }\r\n\t\t}, 0, 20000); //runs once initially then again every 20 seconds\r\n\t}",
"private void doSomeThingRepeat() {\n\t\t\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\tint mHourNow = 0, mMinuteNow = 0;\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\t\tmHourNow = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\tmMinuteNow= c.get(Calendar.MINUTE);\n\t\t\t\ttime = prefs.getString(\"time\", \"\");\n\t\t\t\tString mHour = time.substring(0, 2);\n\t\t\t\tString mMinute = time.substring(3, 5) ;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint mh = Integer.parseInt(mHour);\n\t\t\t\tint mm = Integer.parseInt(mMinute);\n\t\t\t\t\t\n\t\t\t\tif (mHourNow == mh && mMinuteNow == mm) {\n\t\t\t\t\tplayMediaAlarm();\n\t\t\t\t}\n\t\t\t\t\tLog.d(\"Myservice-doSomeThingRepeat\", mHourNow +\"h\"+ mMinuteNow + \"&&\" +mHour +\"h\" + mMinute);\n\t\t\t\t\n\t\t\t}\n\t\t}, 0, UPDATE);\n\t}",
"public void run() {\r\n\t\tboolean repeat = true;\r\n\t\tint count = 0;\r\n\t\twhile(repeat){\r\n\t\t\tcount ++;\r\n\t\t\t//updates currency rates every hour (count>60)\r\n\t\t\tif(count > 60){\r\n\t\t\t\tcurrencies.updateRates();\r\n\t\t\t\tcount = 1;\r\n\t\t\t}\r\n\t\t\tprintStatus();\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(60000);\r\n\t\t\t}catch(InterruptedException ex){\r\n\t\t\t\trepeat = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void run() {\n\n\t\tint loop = 0;\n\n\t\tdo {\n\t\t\tthis.onCallTeam.setCountTimer(loop);\n\t\t\tloop++;\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tSystem.out.println(\"Interrupted\");\n\t\t\t}\n\t\t} while (loop != 900);// 15 minutes\n\n\t}",
"protected void runEachHour() {\n \n }",
"@Override\n public void run() {\n super.run();\n while (!isPaused) {\n Message msg = mHandler.obtainMessage();\n msg.arg1 = REFRESH;\n mHandler.sendMessage(msg);\n try {\n Thread.sleep(REFRESHINTERVAL);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tisRepeatFlag = true;\n\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(mActivityPauseFlag != 1)\n\t\t\t\t{\n\n\t\t\t\t\tint mins = getSleepTimeValue();\n\t\t\t\t\tmSleepTimeHour = mins / 60;\n\t\t\t\t\tmSleepTimeMin = mins % 60;\n\t\t\t\t\t\n\t\t\t\t\tif(quickmenu.isShowing())\n\t\t\t\t\t{\n\t\t\t\t\t\thandler.sendEmptyMessage(MSG_REFRESH_TIMER);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void run() {\n schedule();\n }",
"public void run(){\n Timer time = new Timer(); // Instantiate Timer Object\n\n ScheduledClass st = new ScheduledClass(this.job,this.shm,time,this.stopp); // Instantiate SheduledTask class\n time.schedule(st, 0, this.periodicwait); // Create Repetitively task for every 1 secs\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\r\n\t\t\t\t} catch (InterruptedException 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}\r\n\t\t}",
"@Override\n public void run() {\n if (timerValidFlag)\n gSeconds++;\n Message message = new Message();\n message.what = 1;\n handler.sendMessage(message);\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}",
"public void schedule() {\n cancel();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n runnable.run();\n }\n }, delay);\n }",
"protected void runEach10Minutes() {\n try {\n saveHistoryData();\n if (isEnabledScheduler()) {\n boolean action = getLightSchedule().getCurrentSchedule();\n if (action) {\n if (!currentState) switchOn();\n } else {\n if (currentState) switchOff();\n }\n }\n } catch (RemoteHomeManagerException e) {\n RemoteHomeManager.log.error(44,e);\n } catch (RemoteHomeConnectionException e) {\n RemoteHomeManager.log.error(45,e);\n }\n }",
"@Override\n public void run() {\n int i = SCAN_NUM;\n\t\t\t\tMessage msg1 = new Message();\n\t\t\t\tmsg1.what = WIFI_REFRESH;\n\t\t\t\tmwifiHandler.sendMessage(msg1);\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(2000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n refreshWifi();\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(500);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = WIFI_REFRESH_FINISH;\n\t\t\t\tmwifiHandler.sendMessage(msg);\n }",
"@Override\n public void run() {\n mPresenter.loadCameras();\n Log.d(\"Handlers\", \"Refresh lists\");\n // Repeat this the same runnable code block again another 2 seconds\n handler.postDelayed(runnableCode, 5000);\n }",
"public void run() {\n\ttimedOut = false;\n\tlong startTime = new Date().getTime();\n\tlong delta = 0;\n\twhile (delta < interval) {\n\t try {\n\t\tThread.sleep(interval - delta);\n\t } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n\t\treturn;\n\t }\n\t delta = new Date().getTime() - startTime;\n\t}\n\ttimedOut = true;\n\ttimeoutHandler.handleTimeout();\n\treturn;\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tsuper.run();\n\t\t\twhile(flag == true){\n\t\t\t\t\n\t\t\t\tssinView.postInvalidate();\n\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void run() {\n\t\twhile(true){\n\t\t\t\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t}catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private static void setInterval(final Runnable r, long interval) {\n final Timer timer = new Timer();\n final Handler handler = new Handler();\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n handler.post(r);\n }\n }, interval, interval);\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(gameTimer > 0 && !Timer.this.gameScene.popUp){\n\t\t\t\t\tcountDown();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(10);\n\t\t\t\t\t}catch(InterruptedException e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\toutOfTime = true;\n\t\t\t}",
"@Override\n public void run() {\n flag = true;\n // The Runnable is posted to run again here:\n handler.postDelayed(this, interval);\n }",
"public void reapet(int interval) {\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(System.currentTimeMillis());\n defineAlartRepeat(calendar, interval, AlarmManager.ELAPSED_REALTIME_WAKEUP);\n }",
"public void run() {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tThread.sleep(500L);\n\t\t\t\t\t// Thread.sleep(30);\n\t\t\t\t\trunOnUiThread(done);\n\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n public void run() {\n while (active) {\n \n tSec.setText(seconds+\"\");\n tMin.setText(minutes+\"\");\n tHours.setText(hours+\"\");\n \n seconds++;\n \n try {\n TimeUnit.SECONDS.sleep(DELAY);\n } \n catch (InterruptedException ex) {\n }\n\n if (seconds >= 59) {\n seconds = -1;\n minutes++;\n }\n\n if (minutes >= 59) {\n seconds = -1;\n minutes = 0;\n hours++;\n }\n }\n }",
"@Override\n public void periodic() {\n // This method will be called once per scheduler run\n }",
"public void run() {\n try {\n Thread.sleep(1000000);\n } catch (InterruptedException ie) {\n }\n }",
"@Override\r\n\tpublic void run() {\n\t\twhile (running) {\r\n\t\t\ttry {\r\n\t\t\tThread.sleep(INTERVAL);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\tLog.e(\"Jogo\", \"GameLoop Finalizado!\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t\t}\r\n\t\t\r\n\t}",
"@Override\n public void run() {\n int min, seg;\n \n while(true){\n \n time++;\n min=(int) (time / 60);\n seg=(int) (time % 60);\n lTime.setText(min+\":\"+seg);\n \n try {\n Thread.sleep(1000);\n } catch (Exception ex) {\n \n }\n \n }\n }",
"public void run() {\n\t\t\tCalendar c = new GregorianCalendar();\n\t\t\tcurrHour = c.get(Calendar.HOUR);\n\t\t\tcurrMin = String.valueOf(c.get(Calendar.MINUTE));\n\t\t\tif(currMin.length()==1) {\n\t\t\t\tcurrMin = \"0\"+currMin;\n\t\t\t}\n\t\t\tcheckAlarm();\n\t\t}",
"public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }",
"@Override\n public void run() {\n try {\n Thread.sleep(sessionTimeOut);\n } catch (InterruptedException ex) {\n }\n //execute();\n }",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t\twhile(isrun&&handler!=null){\n\t\t\ttry {\n\t\t\t\tMessage msg=handler.obtainMessage(timeupdate, new Date());\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\ttry\n\t\t{\n\t\t\twhile(true)\n\t\t\t{\t\n\t\t\t\tThread.sleep(10);\n\t\t\t\tSystem.out.println(\"INicioooooooooooooooooooooooooooooooooooooooooooooooooooooooooo\");\n\t\t\t\trobot1.tomarPiezaImput(GdeMonitor);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void run()\r\n {\n \tm_Handler.sendEmptyMessage(JMSG_TIMER);\r\n }",
"public void run ()\r\n\t{\r\n\t\twhile(true)\r\n\t\t{\r\n\t\t\tif(activeSessions.size() == 0)\r\n\t\t\t{\r\n\t\t\t\ttry \r\n\t\t\t\t{\r\n\t\t\t\t\tthis.sleep(20);\r\n\t\t\t\t} catch (InterruptedException e) \r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor(int i = 0; i < activeSessions.size(); i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tupdateActiveSession(activeSessions.get(i));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public void run()\n {\n while (threadRunning)\n {\n /*\n * As long as the timer is less than 99 minutes and 59 seconds then\n * increment just one per second. In the event that the timer runs\n * longer than that, start timer over at 0 seconds.\n */\n if (this.seconds < 6000)\n {\n this.seconds += 1;\n }\n else\n {\n this.seconds = 0;\n }\n //referring to the JLabel setText method for Timer\n setText(getFormattedTime(seconds));\n doNothing((long)1000); \n }\n }",
"private void runTimer() {\n\n // Handler\n final Handler handler = new Handler();\n\n handler.post(new Runnable() {\n @Override\n public void run() {\n\n if (playingTimeRunning) {\n playingSecs++;\n }\n\n handler.postDelayed(this, 1000);\n }\n });\n\n }",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"@Override\n\t\tpublic void run() {\n\t\t\twhile(true){\n\t\t\t\tfb.repaint();\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(600);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n public void run() {\n //runs every second\n for(JuggernautPlayer jp : JuggernautGame.getInstance().getAllPeople()){\n //check if the player is in the radius of the chest (ignore Y)\n if(SkyMathHelper.isInRadius(location, jp.getPlayer().getLocation(), nametagRadius, false)) {\n //show them the hologram. Update if they already have the hologram active.\n //If this chest will not respawn, we tell them \"Good Luck!\" instead of the respawning message.\n if (jp.getLoadedEntities().containsKey(armorstandResetChestID)) {\n if(level==getMaxLevel()){\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Good Luck!\");\n }else {\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Respawning in \" + timeTillRespawn);\n }\n } else {\n if(level==getMaxLevel()) {\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Good Luck!\", armorstandResetChestID);\n }else{\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Respawning in \" + timeTillRespawn, armorstandResetChestID);\n }\n }\n }else{\n //they arent in range, so we remove this entity for them\n jp.removeEntities(armorstandResetChestID);\n }\n }\n\n //check if its time to respawn.\n if(timeTillRespawn--<=0){\n //its time! respawn the chest!\n respawnChest();\n for(JuggernautPlayer jp: JuggernautGame.getInstance().getPlayers()){\n //remove the countdown armorstand for all players\n jp.removeEntities(armorstandResetChestID);\n }\n this.cancel(); //cancel this runnable, we no longer need it.\n return;\n }\n }",
"@Override\n public void run() {\n if (timeToTakePhoto <= 0) {\n sendNotification();\n timeToTakePhoto = finalTimeToTakePhoto;\n } else {\n timeToTakePhoto -= 1000;\n }\n h.postDelayed(this, 1000);\n }",
"private void setNewTimer() {\n if (!isSetNewTimerThreadEnabled) {\n return;\n }\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new TimerTask() {\n\n @Override\n public void run() {\n // Send the message to the handler to update the UI of the GameView\n GameActivity.this.handler.sendEmptyMessage(UPDATE);\n\n // For garbage collection\n System.gc();\n }\n\n }, 0, 17);\n }",
"@Override\n public void run() {\n alarm.setAlarm(getApplicationContext(), System.currentTimeMillis(), time);\n\n while (RESULT) {\n try {\n sleep(1000);\n time += 1000;\n if (time == 10000) {\n time = 0;\n }\n //Utils.messageDisplay(\"Upload time ...: \" + message + \" - time :\" + getTime(System.currentTimeMillis()));\n //sendNotification(message + getTime(System.currentTimeMillis()) + \" CANCEL_TIME :\" + CANCEL_TIME, id);\n sendNotification(message +\" ID : \"+id, id);\n } catch (Exception e) {\n Utils.messageDisplay(\"Error : \" + e.getMessage());\n }\n }\n alarm.cancelAlarm(getApplicationContext());\n\n Utils.messageDisplay(\"cancle alram service ...\");\n\n sendNotification(\"Alram --> Alram\", id);\n }",
"@Override\n\t public void run() {\n\t \t \n\t currentItem = (currentItem +1) % picList.size();\n\t //更新界面\n\t // handler.sendEmptyMessage(0);\n timeHandler.sendEmptyMessageDelayed(0x01, 5000);\n\t }",
"public void init() {\n\t\tSystem.out.println(\"Started \" + duration + \" minute timer.\");\n\t\tTimer timer = new Timer();\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\tpublic void run() {\n\t\t\t\tif(!images.isEmpty()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tch.change(images.poll().getFile().getAbsolutePath());\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Changed wallpaper\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Out of wallpapers, program exiting.\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}, 0, duration * 60 * 1000);\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tstartRecallJobTask();\n\t\t\t\tmHandler.postDelayed(mHandlerTask, INTERVAL);\n\t\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tTimeUnit.SECONDS.sleep(3);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}",
"@Override\n public void run() {\n long seconds = millisUntilFinished / 1000;\n long minutes = seconds / 60;\n\n String time = minutes % 60 + \":\" + seconds % 60;\n// double timeInDouble = Double.parseDouble(time);\n if(minutes >= 0 && seconds >= 0)holder.setText(time);\n else holder.setText(\"Task Completed\");\n\n millisUntilFinished -= 1000;\n\n Log.d(\"DEV123\",time);\n// imageView.setX(imageView.getX()+seconds);\n /* and here comes the \"trick\" */\n handler.postDelayed(this, 1000);\n }",
"private void gameLoop() {\n\n looping = true;\n long lastTime = System.currentTimeMillis();\n while (looping) {\n long delta = System.currentTimeMillis() - lastTime;\n if (delta >= 1000/60d) {\n view.render();\n game.update(delta);\n lastTime = System.currentTimeMillis();\n }\n }\n }",
"public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }",
"@Override\n public void run() {\n int time = 59;\n while (time >= -1) {\n try {\n Message message = new Message();\n message.what = AppConfig.CHECKCODE;\n message.obj = time;\n handler.sendMessage(message);\n Thread.sleep(1000);\n time--;\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void run() {\n //Initialize now with current time\n this.now = new Date();\n\n for(AuthToken at : authTokens.values()) {\n Calendar auth_time = at.getTimeCreated();\n auth_time.add(Calendar.HOUR, 3);\n if (now.after(auth_time.getTime())) {\n authTokens.remove(at.getToken());\n removeGameListClient(at.getToken());\n sessionCommandQueue.remove(at.getToken());\n }\n auth_time.add(Calendar.HOUR, -3);\n }\n\n }",
"@Override\n public void startGame() {\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n update();\n }\n }, 0, 2);\n }",
"public void run() {\n\t\t\t\ttry {Thread.sleep(1000000000);} catch (InterruptedException ie) {}\n\t\t\t}",
"void resetLoop () {\n try {\n timer.cancel();\n timer.purge();\n } catch (Exception e) {\n\n }\n timer = new Timer();\n timer.schedule(new LoopTask(), stepDelay, stepDelay);\n }",
"@Override\n public void run() {\n start(10, 500);\n }",
"@Override\n public void periodic() {\n UpdateDashboard();\n }",
"abstract protected void refresh(long time);",
"private void startrun() {\n mHandler.postDelayed(mPollTask, POLL_INTERVAL);\n\t}",
"public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(this.timerTime);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.timerFinished = true;\n\t}",
"@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"@Override\n\t\tpublic void run()\n\t\t{\n\t\t\twhile (true)\n\t\t\t{\n\t\t\t\trepaint();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tsleep(20);\n\t\t\t\t}\n\t\t\t\tcatch (InterruptedException ie)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void startUpdate(){ \n stimer.getTimer().scheduleAtFixedRate(new TimerTask()\n {\n @Override\n public void run(){updateShareRates();}\n }, 2000, 1000);\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\twhile (true) {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tsetChanged();\n\t\t\t\tnotifyObservers(Events.CLOCK_TICKED_EVENT);\n\t\t\t}\n\t\t} catch (InterruptedException ie) {\n\t\t}\n\t}",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }",
"@Override\n public void run() {\n drawComponents();\n // Ve lai sau 1p\n drawComponentsHandler.postDelayed(drawComponentsRunnable, 60000);\n }",
"@Override\n public void run() {\n long startTime = System.currentTimeMillis();\n try {\n // Loop for the given duration\n while (System.currentTimeMillis() - startTime < duration) {\n // Every 100ms, sleep for the percentage of unladen time\n if (System.currentTimeMillis() % 100 == 0) {\n Thread.sleep((long) Math.floor((1 - load) * 100));\n }\n }\n } catch (Exception e) {\n logger.error(\"Error happened\", e);\n }\n }",
"@Override\r\n public void run() {\n d5++;\r\n if (d5 == 1) {\r\n onReceive(new byte[]{Message.TIMER_MESSAGE, Message.TFP5_EXPIRE});\r\n }\r\n\r\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"private synchronized void reStartTimer(){\n handler.removeCallbacks(null);\n handler.postDelayed(new Runnable(){\n @Override\n public void run(){\n if (running) reStartTimer();\n update();\n }\n }, TURN_DELAY_MILLIS);\n }",
"public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }",
"@Override\n\t\tpublic void run(){\n\t\t\tinvalidate();\n\t\t}",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"private void doTheAutoRefresh() {\n handler.postDelayed(new Runnable() {\n @Override\n public void run() {\n\n setDatatoList();\n }\n }, 120000);\n }",
"public void run() {\n\t\t\tif (minutes == 0 && hours > 0) {\n\t\t\t\thours--;\n\t\t\t\tminutes = 60;\n\t\t\t}\n\t\t\tif (seconds == 0 && minutes > 0) {\n\t\t\t\tminutes--;\n\t\t\t\tseconds = 60;\n\t\t\t\tClientUI.clientHandler.handleMessageFromClientUI(\"getExamChanges:::\" + examID);\n\t\t\t\tString[] respond = stringSplitter.dollarSplit((String) ClientHandler.returnMessage);\n\t\t\t\tif (respond[0].equals(\"approved\") && flag) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tupdateClock(respond[1]);\n\t\t\t\t}\n\t\t\t\tif (respond[0].equals(\"locked\")) {\n\t\t\t\t\thours = 0;\n\t\t\t\t\tminutes = 0;\n\t\t\t\t\tseconds = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tseconds--;\n\t\t\ttimeString = String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\n\t\t\tTimerDisplayTxt.setText(timeString);\n\t\t\tif (hours == 0 && minutes == 0 && seconds == 0)\n\t\t\t\texemTimeOver();\n\t\t}",
"public void run() {\n isRunningTime = true;\n\n coolDownTime.put(target, coolDownTime.get(target) - 1);\n\n if(coolDownTime.get(target) <= 0) {\n coolDownTime.remove(target);\n\n target.sendMessage(DwD + ChatColor.GOLD + \"Your Dark Cloud cooldown has expired.\");\n\n isRunningTime = false;\n\n taskCoolDownToCancel.cancel();\n }\n }",
"@Override\n public void run() {\n Thread ct = Thread.currentThread();\n while (ct == h1) {\n calcula();\n lblHora.setText(hora + \":\" + minutos + \":\" + segundos + \":\" + ampm);\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n }",
"@Override\n public void run() {\n System.out.println(\"hello\");\n loadunsendmessage();\n if(tmr==0){\n handler.postDelayed(this, 10000);\n }\n }",
"public void refresh(int milliseconds){\n final Handler handler = new Handler();\n\n final Runnable runnable = new Runnable() {\n @Override\n public void run() {\n getUserProfile();\n }\n };\n handler.postDelayed(runnable, milliseconds);\n }",
"private void scheduleResetEveryMillis(final int milliseconds) {\n Timer timer = new Timer();\n timer.scheduleAtFixedRate(new APIResetTask(theapi), milliseconds, milliseconds);\n }",
"@Override\r\n\tpublic void run() {\n\t\twhile(true){\r\n\t\t\trepaint();\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(2000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void run() {\n\t\tfor(int i = 0;i < seconds;i++) {\n\t\t\ttry\n\t\t\t{\n\t\t\t Thread.sleep(1000);\t\t//Ping every 1 second\n\t\t\t dataset.addToDataset(pinger.pingIpAddress(), Integer.toString(pinger.getPingCount()));\n\t\t\t chart.paintAgain(chart, dataset.getDataset(),ip);\n\t\t\t}\n\t\t\tcatch(InterruptedException e)\n\t\t\t{\n\t\t\t Thread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }",
"public int setInterval(){\r\n if(interval == 0){\r\n gamePanel.setGameLoop(false);\r\n\r\n gamePanel.GameOver();\r\n time.cancel();\r\n }\r\n return --interval;\r\n }",
"@Override\n\tpublic void refresh() {\n\t\thandler.postDelayed(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trefreshListView.stopRefresh();\n\t\t\t}\n\t\t}, 2000);\n\t\t\n\t}"
] | [
"0.7621495",
"0.7356082",
"0.7147195",
"0.6978512",
"0.6892569",
"0.67218494",
"0.6716056",
"0.66955024",
"0.66809195",
"0.6591964",
"0.6557329",
"0.65297747",
"0.6432694",
"0.64317214",
"0.64219993",
"0.63611853",
"0.6354576",
"0.6341665",
"0.6336421",
"0.6316394",
"0.6281239",
"0.62319964",
"0.6216252",
"0.6182402",
"0.61683834",
"0.61476725",
"0.6131813",
"0.6127383",
"0.61159426",
"0.61104345",
"0.6102958",
"0.60853463",
"0.6074593",
"0.607126",
"0.6050258",
"0.60445076",
"0.600764",
"0.60006577",
"0.59977406",
"0.59925175",
"0.59858793",
"0.59826666",
"0.5980944",
"0.5959386",
"0.59569454",
"0.5954123",
"0.5949717",
"0.5931704",
"0.5928959",
"0.59095204",
"0.5897483",
"0.589739",
"0.58838814",
"0.58826494",
"0.58807373",
"0.58795327",
"0.5877506",
"0.58732945",
"0.58695835",
"0.5867029",
"0.5860257",
"0.5854897",
"0.58544517",
"0.58393097",
"0.5838477",
"0.5832225",
"0.5830853",
"0.58306175",
"0.58265245",
"0.5820093",
"0.58188665",
"0.5816846",
"0.5816846",
"0.5816846",
"0.5816846",
"0.5816846",
"0.5816846",
"0.58146036",
"0.5814031",
"0.58091074",
"0.58056307",
"0.58056307",
"0.5802394",
"0.5791842",
"0.5791232",
"0.5790129",
"0.5790129",
"0.5790129",
"0.5790129",
"0.5788131",
"0.57877403",
"0.5786419",
"0.5785162",
"0.5784525",
"0.57826704",
"0.57808",
"0.5780501",
"0.5778431",
"0.5776587",
"0.5775482",
"0.5775316"
] | 0.0 | -1 |
Check if the encoder is plugged in | public static boolean checkEncoder(TalonSRX... motors)
{
boolean result = true;
for (TalonSRX t : motors)
{
boolean isPresent = t.getSensorCollection().getPulseWidthRiseToRiseUs() != 0;
if (isPresent)
{
System.out.println(String.format("Motor %d encoder present", t.getDeviceID()));
}
else
{
ConsoleLogger.error(String.format("Encoder not present for talon %d", t.getDeviceID()));
}
result &= isPresent;
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean getCodecEnabled(String codec) throws IOException, InterruptedException {\n return pi4jSystemInfoConnector.getCodecEnabled(codec);\r\n }",
"public boolean isSetInputEncoding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(INPUTENCODING$16) != null;\n }\n }",
"boolean hasBitrate();",
"public boolean enabled() {\n return CompressorJNI.getCompressor(m_pcm);\n }",
"public boolean micEnabled();",
"@Override\n public boolean isConnected()\n {\n // hacky, but should work\n return motor.getFirmwareString() != null;\n }",
"boolean hasQuality();",
"boolean hasQuality();",
"boolean hasCaptureProbabilities();",
"public boolean isScanning() { return scanning; }",
"@java.lang.Override\n public boolean hasMpegCenc() {\n return encryptionModeCase_ == 6;\n }",
"public boolean audioAdaptiveJittcompEnabled();",
"public boolean isScanning() {\n return scanning;\n }",
"public boolean isSetEncoding() {\n return this.encoding != null;\n }",
"@java.lang.Override\n public boolean hasMpegCenc() {\n return encryptionModeCase_ == 6;\n }",
"public boolean requiresCustomCodec()\n/* */ {\n/* 498 */ return false;\n/* */ }",
"public boolean isKnown();",
"boolean isROM();",
"public boolean isSetOutputEncoding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(OUTPUTENCODING$18) != null;\n }\n }",
"public boolean isUncoded() {\n return this.code == null;\n }",
"public void ConfigEncoder() {\n\t\tRobotMap.backLeft.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.backLeft.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.backLeft.setSelectedSensorPosition(0, 0, 1);\n\t\tRobotMap.backLeft.setSensorPhase(true);\n\t\tRobotMap.backLeft.setSafetyEnabled(false);\n\t\tRobotMap.frontLeft.setInverted(true);\n\t\tRobotMap.backLeft.setInverted(true);\n\n\t\tRobotMap.frontRight.setStatusFramePeriod(StatusFrameEnhanced.Status_2_Feedback0, 1, 1);\n\t\tRobotMap.frontRight.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, 0, 1);\n\t\tRobotMap.frontRight.setSelectedSensorPosition(0, 0, 1);\n\t\tRobotMap.frontRight.setSensorPhase(true);\n\t\tRobotMap.frontRight.setSafetyEnabled(false);\n\n\t\tRobotMap.frontLeft.setSafetyEnabled(false);\n\t\tRobotMap.backLeft.setSafetyEnabled(false);\n\n\t\tSystem.out.println(\"encoder initialize\");\n\t}",
"public boolean isSuppressed();",
"boolean hasByteCode();",
"public default boolean hasDetector() {\n\t\treturn false;\n\t}",
"@Override\n public Switch compressorRunningSwitch() {\n return pcm::enabled;\n }",
"boolean hasModbusProc();",
"boolean hasPitch();",
"boolean hasPitch();",
"Integer getAutoencoderFilter();",
"boolean hasInputConfig();",
"boolean hasInputConfig();",
"boolean hasInputConfig();",
"public boolean isDriverInitialized() {\r\n\t\tif (driver == null)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"public boolean iCurrentInputSourceHasSignal() {\n\t\treturn mTVInputManager.getDefaultOutput().hasSignal();\n\t}",
"public boolean qrcodeVideoPreviewEnabled();",
"public boolean hasDriver() {\n return fieldSetFlags()[6];\n }",
"public boolean needFaceDetection() {\n return true;\n }",
"public void onEncoderClosed();",
"boolean hasCompatibilityState();",
"public Boolean isEncoded() {\n return this.encoded;\n }",
"boolean hasUnknown71();",
"public boolean hasIdentificationAlgorithms() {\n\n \n return identificationAlgorithms != null;\n\n }",
"public boolean getGenerateEncodeParam() {\n/* 324 */ return this.generateEncodeParam;\n/* */ }",
"private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}",
"public boolean isConnected(){\r\n return (id!=-1 && matlabEng!=null); \r\n }",
"public boolean isAnyAudioPolicyRegistered() {\n return !registeredAudioPolicies.isEmpty();\n }",
"boolean isSetCryptProviderTypeExtSource();",
"abstract protected boolean isReadyToJog() throws GkException;",
"boolean hasDevice();",
"public default boolean hasScanDataConsumer() {\n\t\treturn false;\n\t}",
"public boolean canRegister() {\n return true;\n }",
"boolean hasRecognizer();",
"boolean hasShotChangeDetectionConfig();",
"@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}",
"public boolean isMediaEncryptionMandatory();",
"@Override\r\n public boolean isKnown ()\r\n {\r\n Shape shape = getShape();\r\n\r\n return (shape != null) && (shape != Shape.NOISE);\r\n }",
"boolean hasRecode();",
"boolean hasChannel();",
"boolean hasChannel();",
"public boolean needFaceDetection() {\n return false;\n }",
"@Override\n\tpublic boolean isHardware(){\n\t\treturn false;\n\t}",
"boolean hasSignal();",
"public boolean isPowerSource()\r\n {\r\n return true;\r\n }",
"public boolean isEncodeDefaults() {\n return encodeDefaults;\n }",
"boolean isSetAlgIdExtSource();",
"public boolean isEncodingAlpha();",
"public boolean isSetDriver() {\n\t\treturn this.driver != null;\n\t}",
"boolean hasUnknown();",
"public boolean hasConverter() {\n return getConverter() != null;\n }",
"boolean isSetPluginstate();",
"public boolean isConnected() {\r\n\t\treturn backend != null;\r\n\t}",
"boolean hasNative();",
"boolean hasUnknown2();",
"boolean hasUnknown2();",
"boolean hasUnknown2();",
"public boolean hasRegistry() {\n return registry_ != null;\n }",
"Codec getCurrentCodec();",
"public static boolean encodingSupported(String encoding) {\r\n\t\tboolean supported = true;\r\n\t\ttry {\r\n\t\t\tCharToByteConverter.getConverter(encoding);\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\tsupported = false;\r\n\t\t}\r\n\t\treturn supported;\r\n\t}",
"public boolean videoAdaptiveJittcompEnabled();",
"protected boolean registerSensor() {\n final android.hardware.Sensor sensor = mSensorConfig.getUnderlyingSensor();\n final int reportingDelay = mSensorConfig.getReportingDelayUs();\n final int samplingDelay = mSensorConfig.getSamplingDelayUs();\n final SensorManager sensorManager = (SensorManager) mContext.getSystemService(Context.SENSOR_SERVICE);\n isRegistered = sensorManager.registerListener(this, sensor, samplingDelay, reportingDelay);\n return isRegistered;\n }",
"private boolean isScanResultShowing() {\n return getFragmentManager().findFragmentById(R.id.fragment_container) instanceof ScanResultFragment;\n }",
"public boolean IsAvailable()\n\t{\n\t\treturn mbHasAccelerometer;\n\t}",
"public boolean getEnableProductionEncodingHack() {\r\n \t\treturn Boolean.valueOf(properties.getProperty(KEY_ENABLE_PROD_ENCODING_HACK));\r\n \t}",
"public boolean isHotkeySet ()\n {\n return keyCode != null;\n }",
"boolean hasFixedHotwordGain();",
"public boolean isSupportWebP() {\n return ImageInitBusinss.getInstance() != null && ImageInitBusinss.getInstance().getStrategySupport().isSupportWebP();\n }",
"public boolean isSetSourceCharged() {\n return this.sourceCharged != null;\n }",
"boolean hasScaler();",
"boolean hasRegistry();",
"boolean hasQualityMax();",
"public boolean getExpectsRawCCFromSynth() \n {\n return false;\n }",
"private Boolean isExternalBackendRunning() {\n\t\ttry {\n\t\t\tHttpResponse response = this.http.get(this.guid);\n\t\t\tif (HTTP.getCode(response) != 200) {\n\t\t\t\tHTTP.release(response);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn HTTP.getString(response).equals(Backend.OUTPUT_GUID);\n\t\t} catch (IOException exception) {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean isSink();",
"public static boolean m128359d() {\n if (!C39182e.m125104g()) {\n return false;\n }\n return C35563c.f93231M.mo93305a(Property.EnableVideoImageMixed);\n }",
"boolean hasSaveSensor();",
"boolean hasSource();",
"public boolean enabled()\n {\n return binLog != null;\n }",
"boolean hasUnknown4();",
"boolean isSetCryptProviderTypeExt();",
"private boolean isEncryptionSupported() {\n // Note, this can be implemented as\n // return getEncryptionStatus() != DevicePolicyManager.ENCRYPTION_STATUS_UNSUPPORTED;\n // But is provided as a separate internal method if there's a faster way to do a\n // simple check for supported-or-not.\n return getEncryptionStatus() != DevicePolicyManager.ENCRYPTION_STATUS_UNSUPPORTED;\n }"
] | [
"0.6367775",
"0.62668806",
"0.6223938",
"0.5921665",
"0.59155405",
"0.5906242",
"0.5880857",
"0.5880857",
"0.580257",
"0.5756842",
"0.5707319",
"0.5683113",
"0.56578857",
"0.5649548",
"0.5609988",
"0.55897224",
"0.557805",
"0.55578166",
"0.55464697",
"0.5520989",
"0.5485624",
"0.5485091",
"0.5475878",
"0.54639256",
"0.54575187",
"0.5456714",
"0.5447924",
"0.5447924",
"0.5441182",
"0.5432274",
"0.5432274",
"0.5432274",
"0.5425886",
"0.54200995",
"0.54175735",
"0.5406602",
"0.539641",
"0.5383752",
"0.53834474",
"0.5382363",
"0.5369992",
"0.5366241",
"0.5364575",
"0.5352182",
"0.5349462",
"0.53474253",
"0.534324",
"0.5336682",
"0.5333642",
"0.5328806",
"0.5315934",
"0.53051025",
"0.5296705",
"0.52838033",
"0.5282218",
"0.5280024",
"0.5276949",
"0.5264227",
"0.5264227",
"0.52604365",
"0.5259072",
"0.52573276",
"0.525495",
"0.5254905",
"0.5253558",
"0.5238004",
"0.52361345",
"0.5233434",
"0.5233343",
"0.5232755",
"0.52294445",
"0.52232563",
"0.5219116",
"0.5219116",
"0.5219116",
"0.5214158",
"0.5211692",
"0.52106434",
"0.5210126",
"0.52059656",
"0.52043647",
"0.52027214",
"0.51974595",
"0.519692",
"0.5194401",
"0.51895225",
"0.5183019",
"0.51805955",
"0.517393",
"0.51683164",
"0.51624393",
"0.51609385",
"0.5154959",
"0.5154002",
"0.515176",
"0.5148071",
"0.51479256",
"0.51420313",
"0.5141797",
"0.5140925"
] | 0.57029605 | 11 |
Check if motor controller needs a software update | public static boolean checkFirmware(BaseMotorController... motors)
{
final int expectedFirmwares = 0x0308; // VictorSPX firmware in sync (2018)
boolean result = true;
for (BaseMotorController t : motors)
{
final int version = t.getFirmwareVersion();
final boolean isUpToDate = version == expectedFirmwares;
final int address = t.getDeviceID();
System.out.println(String.format("Motor %d firmware %s", address, (isUpToDate) ? "okay" : "too old"));
result &= isUpToDate;
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean updateSoftware()\n\t{\n\t\tif (this.updater.checkNewSoftwareUpdate() == false)\n\t\t{\n\t\t\tSystem.out.println(\"Can't connect to the server\");\n\t\t}\n\t\t\n\t\tif (this.updater.isNeedUpdate() == false)\n\t\t{\n\t\t\tthis.view.setState(new String (\"There is no update\"));\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tthis.view.setState(new String(\"Need New Update\"));\n\t\tthis.view.addProgress();\n\t\t\n\t\tthis.view.setState(new String(\"Start Core Update\"));\n\t\tif (this.updater.updateCore() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.setState(new String(\"Core Update Done\"));\n\t\tthis.view.addProgress();\n\t\t\n\t\tthis.view.setState(new String(\"Start Navigation Update\"));\n\t\tif (this.updater.updateNavigation() == false)\n\t\t{\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Navigation Update Done\"));\n\t\t\n\t\tthis.view.setState(new String(\"Start Plugins List Update\"));\n\t\tif (this.updater.updatePluginList() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Plugins List Update Done\"));\n\t\tthis.view.setState(new String(\"Start Workspace Update\"));\n\t\tif (this.updater.updateWorkspace() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Workspace Update Done\"));\n\t\tthis.view.setState(new String(\"Installing Update\"));\n\t\tif (this.updater.patchUpdate() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.setState(new String(\"Medley Update Done\"));\n\t\tthis.view.addProgress();\n\t\tthis.view.showPopUpSucces();\n\t\treturn true;\n\t}",
"private void checkUpdateAvailability() {\n\t\t\n\t\t// Grab the data from the device and manifest\n\t\tString currentVersion = Utils.getProp(\"ro.ota.version\");\n\t\tcurrentVersion = currentVersion.replaceAll(\"[^0-9]\", \"\"); // Strip anyhting not a number\n\t\tString manifestVer = results.getVersion();\n\t\tmanifestVer = manifestVer.replaceAll(\"[^0-9]\", \"\");\n\n\t\t// Parse ints\n\t\tint manifestNumber = Integer.parseInt(manifestVer);\n\t\tint currentNumber = Integer.parseInt(currentVersion);\n\t\t\n\t\t// Pad out to be at least 5 digits long\n\t\t// That way, 1.2 shows bigger than 1.1.1\n\t\t// Because 12000 > 11100\n\t\t// Without this it would show 12 > 111\n\t\tif(manifestVer.length() <= 2){\n\t\t\tmanifestNumber *= 1000;\n\t\t} else if(manifestVer.length() <= 3) {\n\t\t\tmanifestNumber *= 100;\n\t\t} else if(manifestVer.length() <= 4) {\n\t\t\tmanifestNumber *= 10;\n\t\t}\n\t\t\n\t\t// Same again\n\t\tif(currentVersion.length() <= 2){\n\t\t\tcurrentNumber *= 1000;\n\t\t} else if(currentVersion.length() <= 3) {\n\t\t\tcurrentNumber *= 100;\n\t\t} else if(currentVersion.length() <= 4) {\n\t\t\tcurrentNumber *= 10;\n\t\t}\n\t\t\n\t\t// Set pref\n\t\tPreferences.setUpdateAvailable(mContext, manifestNumber > currentNumber);\n\t}",
"private void checkForUpdate() {\n\t\tdouble updateversion = Double.parseDouble(MySoup.getUpdateVersion(SITE));\n\t\tdouble currentversion = Double.parseDouble(VERSION);\n\t\tif (updateversion > currentversion) {\n\t\t\tdisplayAlert(\"\", \"Update available, would you like to install it?\", this);\n\t\t}\n\t}",
"public void checkForUpdate();",
"public void checkFirmwareVersion()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfor (SensorData sensorData : sCollect.getList())\n\t\t\t{\n\t\t\t\tif (sensorData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t\t{\n\t\t\t\t\tif (!ConnectionManager.getInstance().currentSensor(0).getFirwareVersion()\n\t\t\t\t\t\t\t.equals(sensorData.getFirmware()))\n\t\t\t\t\t{\n\t\t\t\t\t\trestApiUpdate(ConnectionManager.getInstance().currentSensor(0).getSerialNumber(), \"firmware\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}catch (SensorNotFoundException e){\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t\t\n\n\t}",
"@Override\n public boolean isConnected()\n {\n // hacky, but should work\n return motor.getFirmwareString() != null;\n }",
"public void checkForUpdate(String currentVersion);",
"boolean hasSoftware();",
"boolean hasUpdate();",
"boolean hasUpdate();",
"public boolean checkForUpdate() throws Exception {\r\n\t\tboolean updateAvaible=false;\r\n\t\tString md5=\"\";\r\n\t\tif(IJ.is64Bit()){\r\n\t\t\tif(IJ.isWindows()){\r\n\t\t\t\tmd5=FileParser.getMD5Checksum(ClassManagement.updateSite+File.separator+\"matlabengine64w.exe\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn updateAvaible;\r\n\t}",
"boolean needUpdate();",
"@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}",
"protected boolean checkServoCommandThread(){\r\n try {\r\n if(!isOpen()) open();\r\n return true;\r\n } catch (HardwareInterfaceException ex) {\r\n log.warning(ex.toString());\r\n return false;\r\n }\r\n }",
"private void checkForUpdates(){\n\t\tlong now = System.currentTimeMillis();\r\n\t\tif(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){\r\n\t\t\tlong lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING));\r\n\t\t\tlong day = 86400000; // milli-seconds in a day\r\n\t\t\tif((now - lastUpdateTime) < day){\r\n\t\t\t\treturn; // Don't need to check as a check has been made in the last 24hrs. \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetStatusBarText(\"Checking for updates...\"); \r\n\t\t\r\n HttpClient webConnection = new HttpClient();\r\n \t\tProperties webSideProps; \r\n \t\ttry{\r\n \t\t\twebSideProps = webConnection.getProperties(\"http://www.zygomeme.com/version_prop.txt\");\r\n \t\t}\r\n \t\tcatch(SocketTimeoutException ste){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + ste);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tcatch(UnknownHostException uhe){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + uhe);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tif(webSideProps == null || webSideProps.isEmpty()){\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tint latestVersionAvailable = Integer.parseInt(webSideProps.get(\"version_number\").toString());\r\n \t\tif(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){\r\n \t\t\tsetStatusBarText(\"A new version of ZygoMeme York is now available. You can now upgrade to Version \" + webSideProps.getProperty(\"version_string\") + \" \" + \r\n \t\t\t\t\twebSideProps.get(\"stage\")); \r\n \t\t}\r\n \t\telse{\r\n \t\t\tsetStatusBarText(\"Update check has been made - application is up to date.\"); \r\n \t\t}\r\n\r\n \t\t// To get here the properties will have been updated\r\n\t\tpropertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, \"\" + now);\r\n\r\n\t\t// Save the properties straight away so that the new last \"check for update\" time is recorded\r\n\t\ttry {\r\n\t\t\tpropertiesMemento.saveProperties(this);\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(\"Unable to save properties\");\r\n\t\t}\r\n\t}",
"private static boolean updatesImplementsCompatible(Mode actual) {\n boolean result;\n if /**/(actual.equals(UPDATES) || actual.equals(CLEARS)\n || actual.equals(RESTORES) || actual.equals(PRESERVES)) {\n result = true;\n }\n else {\n result = false;\n }\n return result;\n }",
"boolean hasTsUpdate();",
"public boolean canUpdate();",
"private void doWiperAvailabiltiyCheck()\n {\n // Hardcode for now to make sure WPS is not triggered\n bWiperAvailable = true;\n\n mWifi = (WifiManager)getSystemService(mContext.WIFI_SERVICE);\n\n if ((mWifi == null) || ( (locationManager == null)|| ((locationProvider = locationManager.getProvider(LocationManager.NETWORK_PROVIDER )) == null)))\n {\n Log.e(TAG,\" Disable wiper : No object for WPS / Wifi Scans \");\n bWiperAvailable = false;\n }\n\n\n // call native function to trigger RPC from A11-> A9\n // informing about WPS capability\n //\n native_notify_wiper_available(bWiperAvailable);\n\n if (Config.LOGV)\n {\n Log.v(TAG, \"Wiper: Availability Check \"+ bWiperAvailable);\n }\n }",
"private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }",
"public void checkForUpdates(){\n if (mPrefs.getBoolean(PREF_ENABLED, true) && isStale()){\n// forceCheckForUpdates();\n }\n }",
"private boolean checkBatteryLevelOK() {\n return true;\n }",
"boolean hasUpdateUfsMode();",
"public boolean isDynamicUpdateRqstRCVD();",
"public boolean takeControl() {\n\t\tif (Squirrel.us.getDistance() <= 30 && Squirrel.notDetected)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }",
"public boolean updateRequired() {\r\n\r\n // Run at 10 frames per second\r\n final long TARGET_FPS = 10;\r\n // There are 1000 milliseconds in a second\r\n final long MILLIS_PER_SECOND = 1000;\r\n\r\n // Are we due to update the frame\r\n if (mNextFrameTime <= System.currentTimeMillis()) {\r\n // Tenth of a second has passed\r\n\r\n // Setup when the next update will be triggered\r\n mNextFrameTime = System.currentTimeMillis()\r\n + MILLIS_PER_SECOND / TARGET_FPS;\r\n\r\n // Return true so that the update and draw\r\n // methods are executed\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"public void updateCheck(){\n\t\tnew UpdateHandler.Builder(ChefDashboardActivity.this)\n\t\t\t\t.setContent(\"New Version Found\")\n\t\t\t\t.setTitle(\"Update Found\")\n\t\t\t\t.setUpdateText(\"Yes\")\n\t\t\t\t.setCancelText(\"No\")\n\t\t\t\t.showDefaultAlert(true)\n\t\t\t\t.showWhatsNew(true)\n\t\t\t\t.setCheckerCount(2)\n\t\t\t\t.setOnUpdateFoundLister(new UpdateHandler.Builder.UpdateListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onUpdateFound(boolean newVersion, String whatsNew) {\n\t\t\t\t\t\t//tv.setText(tv.getText() + \"\\n\\nUpdate Found : \" + newVersion + \"\\n\\nWhat's New\\n\" + whatsNew);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setOnUpdateClickLister(new UpdateHandler.Builder.UpdateClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onUpdateClick(boolean newVersion, String whatsNew) {\n\t\t\t\t\t\tLog.v(\"onUpdateClick\", String.valueOf(newVersion));\n\t\t\t\t\t\tLog.v(\"onUpdateClick\", whatsNew);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setOnCancelClickLister(new UpdateHandler.Builder.UpdateCancelListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancelClick() {\n\t\t\t\t\t\tLog.v(\"onCancelClick\", \"Cancelled\");\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.build();\n\t}",
"public static String checkSystem(String version) {\n \n if (MainFormJFrame.cashMachine.isEnabled()) {\n try {\n \n Connection connection = SingletonConnection.getConnection();\n \n Statement statement = connection.createStatement();\n String queryString = (\"SELECT `newversion`, `maintenance` FROM system_update\");\n ResultSet rs = statement.executeQuery(queryString);\n \n String checkVersion;\n Boolean checkmaintenance;\n \n while (rs.next()) {\n \n System.out.println(rs.getString(1));\n System.out.println(rs.getBoolean(2));\n \n checkVersion = rs.getString(1);\n checkmaintenance = rs.getBoolean(2);\n \n if ((!softwareVersion.equals(checkVersion)) && (checkmaintenance.equals(softwareMaintenance))) {\n MainFormJFrame.cashMachine.changePanel(new UpdateSystemPanel());\n }\n \n else if ((!softwareVersion.equals(checkVersion)) && (!checkmaintenance.equals(softwareMaintenance)) || ((softwareVersion.equals(checkVersion)) && (!checkmaintenance.equals(softwareMaintenance)))) {\n MainFormJFrame.cashMachine.changePanel(new MaintenanceSystemPanel());\n }\n else {\n MainFormJFrame.cashMachine.changePanel(new LoginPanel());\n }\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }\n return softwareVersion;\n }",
"boolean motorsAreBusy();",
"default boolean isNeedToBeUpdated()\n {\n return getUpdateState().isUpdated();\n }",
"public boolean IsAvailable()\n\t{\n\t\treturn mbHasAccelerometer;\n\t}",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"boolean updateEnabling();",
"@VTID(39)\n boolean getRequireManualUpdate();",
"public void check4update() {\r\n\t\tfinal String[] versionCheck = FileUtils.isUpdateAvailable();\r\n\t\tif (new Boolean(versionCheck[0])) {\r\n\t\t\t//if (true) {\r\n\t\t\tMessageBox messageDialog = new MessageBox(GDE.shell, SWT.YES | SWT.NO | SWT.ICON_QUESTION);\r\n\t\t\tmessageDialog.setText(GDE.NAME_LONG);\r\n\t\t\tmessageDialog.setMessage(Messages.getString(MessageIds.GDE_MSGI0052)\r\n\t\t\t//\t\t\t\t+ Messages.getString(MessageIds.GDE_MSGI0056, this.settings.getLocale().equals(Locale.GERMAN) \r\n\t\t\t//\t\t\t\t? new String[] {\r\n\t\t\t//\t\t\t\t\t\"1) Korrektur der initialen Messwert-Synchronisation\\n\",\r\n\t\t\t//\t\t\t\t\t\"2) Korrektur vom Junsi iCharger 206, 208, 306, 3010 konstanten Zeitschritt auf 2 Sekunden\\n\",\r\n\t\t\t//\t\t\t\t\t\"3) Korrektur des Problems bei mehrfachen kopieren der Grafik in die Zwischenablage\\n\",\r\n\t\t\t//\t\t\t\t\t\"4) Korrektur der JLog2 Kontext sensitiven Hilfeseite Auswahl\\n\",\r\n\t\t\t//\t\t\t\t\t\"5) Korrektur des JLog2 Konfigurationsdialoges - Sicherungsknopf wurde nicht aktiviert\\n\",\r\n\t\t\t//\t\t\t\t\t\"6) Korrektur des Fehlers beim Laden der Farben von der OSD-Datei\\n\",\r\n\t\t\t//\t\t\t\t\t\"7) CSV2SerialAdapter - Fehlender Status wird jetzt als Fehler erkannt\\n\",\r\n\t\t\t//\t\t\t\t\t\"8) HoTTAdapter - Korrektur der Einlesealgorithmus bei ausgewählter Kanalinformation und Empfänger\\n\",\r\n\t\t\t//\t\t\t\t\t\"9) HoTTAdapter* - Anpassung der Käpazitätsfilter an die aktuelle Leistung (ESC, GAM, EAM)\\n\",\r\n\t\t\t//\t\t\t\t\t\"10) HoTTAdapter* - Anpassung des Stromfilters beim ESC\",\r\n\t\t\t//\t\t\t\t\t\"11) HoTTAdapter2* - Korrektur der Skalensynchronisationsreferenz in der Konfiguration Kanäle und MotorControl\\n\",\r\n\t\t\t//\t\t\t\t\t\"12) GPS-Logger* - GPX-Export ermöglicht z.B. Garmin Virb\\n\",\r\n\t\t\t//\t\t\t\t\t\"13) UniLog2 - Korrektur fehlender M-Link Werte aus der Logdatei\\n\",\r\n\t\t\t//\t\t\t\t\t\"14) UniLog2 - Korrektur des Vehaltens bei Veränderung der Symbole und Einheiten bei M-Link Werten\\n\",\r\n\t\t\t//\t\t\t\t\t\"15) Junsi iCharger 4010 Duo Unterstützung hinzugefügt (lesen von der SD-Karte)\\n\",\r\n\t\t\t//\t\t\t\t\t\"16) Linux CDC ACM Geräte als ttyACM* serieller Port hinzugefügt\\n\"\r\n\t\t\t//\t\t\t}\r\n\t\t\t//\t\t\t: new String[] {\r\n\t\t\t//\t\t\t\t\t\"1) fix initial synchronization of measurements\\n\",\r\n\t\t\t//\t\t\t\t\t\"2) fix Junsi iCharger 206, 208, 306, 3010 constant time step to 2 seconds\\n\",\r\n\t\t\t//\t\t\t\t\t\"3) fix problem while copy graphics into clip board several time in sequence\\n\",\r\n\t\t\t//\t\t\t\t\t\"4) fix JLog2 context help page selection\\n\",\r\n\t\t\t//\t\t\t\t\t\"5) fix JLog2 configuration dialog - set drop downs to editable false since this event wasn't handled and does not activate save button\\n\",\r\n\t\t\t//\t\t\t\t\t\"6) fix error not loading color from OSD file some colors (1,1,1)\\n\",\r\n\t\t\t//\t\t\t\t\t\"7) CSV2SerialAdapter - fix error handling of missing status\\n\",\r\n\t\t\t//\t\t\t\t\t\"8) HoTTAdapter - fix receiver only with channels times 10 error\\n\",\r\n\t\t\t//\t\t\t\t\t\"9) HoTTAdapter* - adapt capacity filter according actual power\\n\",\r\n\t\t\t//\t\t\t\t\t\"10) HoTTAdapter* - adapt current filter\\n\",\r\n\t\t\t//\t\t\t\t\t\"11) HoTTAdapter2* - correct scale sync reference in configuration Channels and SpeedControl\\n\",\r\n\t\t\t//\t\t\t\t\t\"12) GPS-Logger* - enable GPX export (Garmin Virb)\\n\",\r\n\t\t\t//\t\t\t\t\t\"13) UniLog2 - fix missing parsing of M-Link data\\n\",\r\n\t\t\t//\t\t\t\t\t\"14) UniLog2 - fix configuration of symbol and unit for M-Link measurements\\n\",\r\n\t\t\t//\t\t\t\t\t\"15) add Junsi iCharger 4010 Duo support (read log from SD storage)\\n\",\r\n\t\t\t//\t\t\t\t\t\"16) add port enumeration ttyACM* Linux CDC ACM devices\\n\" \r\n\t\t\t//\t\t\t})\r\n\t\t\t);\r\n\t\t\tif (SWT.YES == messageDialog.open()) {\r\n\t\t\t\tnew Thread(\"Download\") {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tString downloadUrl = \"http://download.savannah.gnu.org/releases/dataexplorer/\";\r\n\t\t\t\t\t\t\tString arch = System.getProperty(\"sun.arch.data.model\");\r\n\t\t\t\t\t\t\tString version = versionCheck[1];\r\n\t\t\t\t\t\t\tString filename = GDE.STRING_EMPTY;\r\n\t\t\t\t\t\t\tif (GDE.IS_WINDOWS) //DataExplorer_Setup_3.0.8_win64.exe\r\n\t\t\t\t\t\t\t\tfilename = \"DataExplorer_Setup_\" + version + \"_win\" + arch + GDE.FILE_ENDING_DOT_EXE;\r\n\t\t\t\t\t\t\telse if (GDE.IS_LINUX) //dataexplorer-3.0.8-bin_GNULinux_x86_64.tar.gz\r\n\t\t\t\t\t\t\t\tfilename = \"dataexplorer-\" + version + \"-bin_GNULinux_x86_\" + arch + \".tar.gz\";\r\n\t\t\t\t\t\t\telse if (GDE.IS_MAC) //DataExplorer-3.0.8_Mac_64.dmg\r\n\t\t\t\t\t\t\t\tfilename = \"DataExplorer-\" + version + \"_Mac_\" + arch + \".dmg\";\r\n\r\n\t\t\t\t\t\t\tfinal String targetFilePath = GDE.JAVA_IO_TMPDIR + GDE.FILE_SEPARATOR_UNIX + filename;\r\n\r\n\t\t\t\t\t\t\tif (!new File(targetFilePath).exists()) FileUtils.downloadFile(new URL(downloadUrl + filename), targetFilePath);\r\n\r\n\t\t\t\t\t\t\tGDE.display.syncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tif (GDE.IS_LINUX) {\r\n\t\t\t\t\t\t\t\t\t\tURL url = GDE.class.getProtectionDomain().getCodeSource().getLocation();\r\n\t\t\t\t\t\t\t\t\t\tif (url.getFile().endsWith(GDE.FILE_ENDING_DOT_JAR)) {\r\n\t\t\t\t\t\t\t\t\t\t\tString installpath = url.getFile().substring(0, url.getPath().lastIndexOf(GDE.FILE_SEPARATOR_UNIX));\r\n\t\t\t\t\t\t\t\t\t\t\tinstallpath = installpath.substring(0, installpath.lastIndexOf(GDE.FILE_SEPARATOR_UNIX));\r\n\t\t\t\t\t\t\t\t\t\t\tString command = \"cd \" + installpath + \"; sudo tar -xzf \" + targetFilePath + \"\\\"\";\r\n\t\t\t\t\t\t\t\t\t\t\tlog.log(Level.OFF, \"command = \" + command);\r\n\t\t\t\t\t\t\t\t\t\t\tMessageBox message = new MessageBox(GDE.shell, SWT.ICON_INFORMATION);\r\n\t\t\t\t\t\t\t\t\t\t\tmessage.setText(GDE.NAME_LONG);\r\n\t\t\t\t\t\t\t\t\t\t\tmessage.setMessage(Messages.getString(MessageIds.GDE_MSGI0055, new String[] { command }));\r\n\t\t\t\t\t\t\t\t\t\t\tmessage.open();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tMessageBox message = new MessageBox(GDE.shell, SWT.YES | SWT.NO | SWT.ICON_INFORMATION);\r\n\t\t\t\t\t\t\t\t\t\tmessage.setText(GDE.NAME_LONG);\r\n\t\t\t\t\t\t\t\t\t\tmessage.setMessage(Messages.getString(MessageIds.GDE_MSGI0053));\r\n\t\t\t\t\t\t\t\t\t\tif (SWT.YES == message.open()) {\r\n\t\t\t\t\t\t\t\t\t\t\tOperatingSystemHelper.launchInstallApplication(targetFilePath);\r\n\t\t\t\t\t\t\t\t\t\t\tGDE.shell.dispose();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean isPowered(){\n\t\tint value = sensor.readRawValue();\n\t\tDiscoveryVehicle.getMonitor().log(\"raw: \"+value);\n//\t\treturn Button.ENTER.isDown();\n\t\treturn (value < Configuration.HYDROGEN_MEASURE_TRIGGER_PRECISION);\n\t}",
"public static void checkAndDisableFramework (Context context) {\n PackageManager pm = context.getPackageManager();\n ComponentName [] frameworkComponents = {new ComponentName(context, BrightnessActivity.class),\n new ComponentName(context, CellularDataActivity.class),\n new ComponentName(context, BackgroundDataActivity.class)};\n ComponentName processorSpeedComponent = new ComponentName(context, ProcessorSpeedActivity.class);\n\n try {\n pm.getPackageInfo(SMART_ACTIONS_FRAMEWORK, PackageManager.GET_ACTIVITIES);\n updateComponentStates(pm, frameworkComponents, PackageManager.COMPONENT_ENABLED_STATE_ENABLED);\n\n if (isFrameworkOld(context)) {\n //FW apk is old. Disable processor speed.\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);\n } else {\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);\n }\n\n } catch (NameNotFoundException e) {\n Log.w(TAG, \"Smart Actions framework not present on the device\");\n updateComponentStates(pm, frameworkComponents, PackageManager.COMPONENT_ENABLED_STATE_DISABLED);\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);\n }\n }",
"public boolean isAutomaticBuild() {\n return !needsGoodsToBuild() && getUpgradesFrom() == null;\n }",
"boolean hasUpdateTriggerTime();",
"@Test\n public void trackingEnabled_reliabilityTriggerAfterUpdate_tooSoon() throws Exception {\n // Set up device configuration.\n configureTrackingEnabled();\n\n int retriesAllowed = 5;\n int checkDelayMillis = 5 * 60 * 1000;\n configureReliabilityConfigSettings(retriesAllowed, checkDelayMillis);\n\n PackageVersions currentPackageVersions = new PackageVersions(1, 1);\n PackageVersions newPackageVersions = new PackageVersions(2, 2);\n\n // Simulate there being a newer version installed than the one recorded in storage.\n configureValidApplications(currentPackageVersions);\n\n // Force the storage into a state we want.\n mPackageStatusStorage.forceCheckStateForTests(\n PackageStatus.CHECK_COMPLETED_SUCCESS, currentPackageVersions);\n\n // Initialize the package tracker.\n assertTrue(mPackageTracker.start());\n\n // Check the intent helper is properly configured.\n checkIntentHelperInitializedAndReliabilityTrackingEnabled();\n\n // Check the initial storage state.\n checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, currentPackageVersions);\n\n // Simulate a package update trigger.\n simulatePackageInstallation(newPackageVersions);\n\n // Assert the PackageTracker did trigger an update.\n checkUpdateCheckTriggered(newPackageVersions);\n CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken();\n\n // Increment the clock, but not enough.\n mFakeClock.incrementClock(checkDelayMillis - 1);\n\n // Simulate a reliability trigger.\n mPackageTracker.triggerUpdateIfNeeded(false /* packageChanged */);\n\n // Assert the PackageTracker did not trigger an update.\n mFakeIntentHelper.assertUpdateNotTriggered();\n checkPackageStorageStatus(PackageStatus.CHECK_STARTED, newPackageVersions);\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n\n // Increment the clock slightly more. Should now consider the response overdue.\n mFakeClock.incrementClock(2);\n\n // Simulate a reliability trigger.\n mPackageTracker.triggerUpdateIfNeeded(false /* packageChanged */);\n\n // Triggering should have happened.\n checkUpdateCheckTriggered(newPackageVersions);\n CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken();\n\n // Check a new token was generated.\n assertFalse(token1.equals(token2));\n }",
"private static boolean updateRequired(Context context) {\r\n\t\tSharedPreferences pref = context.getSharedPreferences(\r\n\t\t\t\tUSER_ID_SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);\r\n\r\n\t\tif (pref.contains(LAST_UPDATE)) {\r\n\r\n\t\t\tLong lastUpdate = pref.getLong(LAST_UPDATE, -1);\r\n\t\t\tLong now = new Date().getTime();\r\n\r\n\t\t\treturn (now - lastUpdate) > TIME_IN_MILLIS;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean canUpdate() {\r\n\t\treturn true;\r\n\t}",
"private static void checkUpdate() throws Exception {\n\t\tfinal Properties updateProperties = new CachedResource<Properties>(getApplicationProperty(\"update.url\"), Properties.class, CachedResource.ONE_DAY, 0, 0) {\n\n\t\t\t@Override\n\t\t\tpublic Properties process(ByteBuffer data) {\n\t\t\t\ttry {\n\t\t\t\t\tProperties properties = new Properties();\n\t\t\t\t\tNodeList fields = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteBufferInputStream(data)).getFirstChild().getChildNodes();\n\t\t\t\t\tfor (int i = 0; i < fields.getLength(); i++) {\n\t\t\t\t\t\tproperties.setProperty(fields.item(i).getNodeName(), fields.item(i).getTextContent().trim());\n\t\t\t\t\t}\n\t\t\t\t\treturn properties;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}.get();\n\n\t\t// check if update is required\n\t\tint latestRev = Integer.parseInt(updateProperties.getProperty(\"revision\"));\n\t\tint currentRev = getApplicationRevisionNumber();\n\n\t\tif (latestRev > currentRev && currentRev > 0) {\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfinal JDialog dialog = new JDialog(JFrame.getFrames()[0], updateProperties.getProperty(\"title\"), ModalityType.APPLICATION_MODAL);\n\t\t\t\t\tfinal JPanel pane = new JPanel(new MigLayout(\"fill, nogrid, insets dialog\"));\n\t\t\t\t\tdialog.setContentPane(pane);\n\n\t\t\t\t\tpane.add(new JLabel(ResourceManager.getIcon(\"window.icon.medium\")), \"aligny top\");\n\t\t\t\t\tpane.add(new JLabel(updateProperties.getProperty(\"message\")), \"gap 10, wrap paragraph:push\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Download\", ResourceManager.getIcon(\"dialog.continue\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(URI.create(updateProperties.getProperty(\"download\")));\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag ok\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Details\", ResourceManager.getIcon(\"action.report\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(URI.create(updateProperties.getProperty(\"discussion\")));\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag help2\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Ignore\", ResourceManager.getIcon(\"dialog.cancel\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag cancel\");\n\n\t\t\t\t\tdialog.pack();\n\t\t\t\t\tdialog.setLocation(getOffsetLocation(dialog.getOwner()));\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"public boolean hasUpdate(VehicleState change) {\n\n return !this.equals(change);\n }",
"private void checkAndActivateCPU() {\n statusController.checkIfCPU();\n if (modelCheck.isCurrentPlayerCPU()) {\n CPU.actionSequence();\n }\n }",
"public boolean isOn() throws Exception;",
"public void checkVersion() {\r\n \ttry {\r\n \t\tURL versionInfo = new URL(versionURL);\r\n \t\tURLConnection versionInfoConnection = versionInfo.openConnection();\r\n \t\tBufferedReader inputStream = new BufferedReader(new InputStreamReader(versionInfoConnection.getInputStream()));\r\n \t\tString remoteVersion = inputStream.readLine();\r\n \t\tif(remoteVersion.equals(version))\r\n \t\t\tmessage.setText(\"VERSION: \" + version +\"\\nYou have the most current release.\");\r\n \t\telse {\r\n \t\t\tString[] versionList = version.split(\"\\\\.\");\r\n \t\t\tString[] remoteVersionList = remoteVersion.split(\"\\\\.\");\r\n \t\t\tif(versionList.length < 3 || remoteVersionList.length < 3) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to confirm if updates are availble,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(Integer.parseInt(versionList[0]) < Integer.parseInt(remoteVersionList[0])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(Integer.parseInt(versionList[1]) < Integer.parseInt(remoteVersionList[1])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(Integer.parseInt(versionList[2]) < Integer.parseInt(remoteVersionList[2])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(versionList.length < remoteVersionList.length) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nYou have the most current release.\");\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tcatch(NumberFormatException e) {\r\n\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to confirm if updates are availble,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n\t\t\tupdateButton.setEnabled(true);\r\n \t}\r\n \tcatch(Exception e){\r\n \t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to connect to server to check version\");\r\n \t}\r\n }",
"private boolean isNeedSwitchModem() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNeedSwitchModem():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNeedSwitchModem():boolean\");\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }",
"boolean isSetKeyWheel();",
"@SuppressLint({\"CommitPrefEdits\"})\n public void checkForUpdates() {\n synchronized (this.preferenceStore) {\n if (this.preferenceStore.get().contains(\"last_update_check\")) {\n this.preferenceStore.save(this.preferenceStore.edit().remove(\"last_update_check\"));\n }\n }\n long currentTimeMillis = this.currentTimeProvider.getCurrentTimeMillis();\n long j = ((long) this.betaSettings.updateSuspendDurationSeconds) * 1000;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Check for updates delay: \");\n sb.append(j);\n Fabric.getLogger().d(\"Beta\", sb.toString());\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Check for updates last check time: \");\n sb2.append(getLastCheckTimeMillis());\n Fabric.getLogger().d(\"Beta\", sb2.toString());\n long lastCheckTimeMillis2 = getLastCheckTimeMillis() + j;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Check for updates current time: \");\n sb3.append(currentTimeMillis);\n sb3.append(\", next check time: \");\n sb3.append(lastCheckTimeMillis2);\n Fabric.getLogger().d(\"Beta\", sb3.toString());\n if (currentTimeMillis >= lastCheckTimeMillis2) {\n try {\n performUpdateCheck();\n } finally {\n setLastCheckTimeMillis(currentTimeMillis);\n }\n } else {\n Fabric.getLogger().d(\"Beta\", \"Check for updates next check time was not passed\");\n }\n }",
"boolean hasModbusProc();",
"@Override\n public int checkStatus(){\n return InputOutputController.STATUS_READY;\n }",
"public void mo1540b(boolean manual) {\n if (manual) {\n C2201w.m8370a((int) C0965R.string.ota_no_find_new_version);\n }\n }",
"protected boolean isAvailable() {\r\n\t\treturn true;\r\n\t}",
"public boolean canRequestPower();",
"boolean hasCurrentVersion();",
"private static boolean isReadyForUse(IReasoner reasoner) {\r\n boolean result = false;\r\n if (null != reasoner) {\r\n ReasonerDescriptor desc = reasoner.getDescriptor();\r\n if (null != desc) {\r\n result = desc.isReadyForUse();\r\n }\r\n }\r\n return result;\r\n }",
"default boolean doesUpdateExist(String version) {\n return !getLatestVersion().getVersion().equals(version);\n }",
"private boolean checkForUpdates(boolean force) {\n long lastCheckMillis = mPrefs.getLong(PREF_LAST_CHECK_ATTEMPT_TIME_NAME, PREF_LAST_CHECK_ATTEMPT_TIME_DEFAULT);\n Logger.i(\"Last check time %s\", mSdfLog.format(new Date(lastCheckMillis)));\n if (force || (Math.abs(System.currentTimeMillis() - lastCheckMillis) > CHECK_THRESHOLD_MS)) {\n if (mOnWantUpdateCheckListener != null) {\n if (mOnWantUpdateCheckListener.onWantUpdateCheck(!force/*checkOnly*/)) {\n mPrefs.edit().putLong(PREF_LAST_CHECK_ATTEMPT_TIME_NAME, System.currentTimeMillis()).commit();\n return true;\n }\n }\n }\n return false;\n }",
"private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }",
"public abstract boolean isAvailable();",
"public abstract boolean isAvailable();",
"public void checkAndUpdate( boolean forceUpdate ) {\n\t\t// First of all check for network connectivity without which we can't update\n\t\tif( isNetworkAvailable( ) ) {\n\n\t\t\t// If we are forcing update, don't bother getting version for comparison\n\t\t\tif( !forceUpdate ) {\n\t\t\t\tforceUpdate = updateIsRequired( );\n\t\t\t}\n\n\t\t\t// If we are forcing the update, do it\n\t\t\tif( forceUpdate ) {\n\t\t\t\tupdateDatabase( );\n\t\t\t}\n\t\t} else {\n\t\t\tLog.e( getClass( ).getCanonicalName(), \"Network unavailable. Cannot update.\" );\n\t\t}\n\t}",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"public void update() {\n\t\tif (!uiDone)\n\t\t\tinitializeUI();\n\t\t\n Vehicle vehicle = (Vehicle) unit;\n\n // Update driver button if necessary.\n boolean driverChange = false;\n if (driverCache == null) {\n if (vehicle.getOperator() != null) driverChange = true;\n }\n else if (!driverCache.equals(vehicle.getOperator())) driverChange = true;\n if (driverChange) {\n driverCache = vehicle.getOperator();\n if (driverCache == null) {\n driverButton.setVisible(false);\n }\n else {\n driverButton.setVisible(true);\n driverButton.setText(driverCache.getOperatorName());\n }\n }\n\n // Update status label\n if (!vehicle.sameStatusTypes(statusCache, vehicle.getStatusTypes())) {\n statusCache = vehicle.getStatusTypes();\n statusLabel.setText(vehicle.printStatusTypes());\n }\n\n // Update beacon label\n if (beaconCache != vehicle.isBeaconOn()) {\n \tbeaconCache = vehicle.isBeaconOn();\n \tif (beaconCache) beaconLabel.setText(\"On\");\n \telse beaconLabel.setText(\"Off\");\n }\n\n // Update speed label\n if (speedCache != vehicle.getSpeed()) {\n speedCache = vehicle.getSpeed();\n speedLabel.setText(\"\" + formatter.format(speedCache) + \" km/h\");\n }\n\n // Update elevation label if ground vehicle.\n if (vehicle instanceof GroundVehicle) {\n GroundVehicle gVehicle = (GroundVehicle) vehicle;\n double currentElevation = gVehicle.getElevation();\n if (elevationCache != currentElevation) {\n elevationCache = currentElevation;\n elevationLabel.setText(formatter.format(elevationCache) + \" km\");\n }\n }\n\n Mission mission = missionManager.getMissionForVehicle(vehicle);\n \n boolean hasDestination = false;\n \t\t\n if ((mission != null) && (mission instanceof VehicleMission)\n && ((VehicleMission) mission).getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) {\n \tNavPoint destinationPoint = ((VehicleMission) mission).getNextNavpoint();\n \t\n \thasDestination = true;\n \t\n \tif (destinationPoint.isSettlementAtNavpoint()) {\n \t\t// If destination is settlement, update destination button.\n \t\tif (destinationSettlementCache != destinationPoint.getSettlement()) {\n \t\t\tdestinationSettlementCache = destinationPoint.getSettlement();\n \t\t\tdestinationButton.setText(destinationSettlementCache.getName());\n \t\t\taddDestinationButton();\n \t\t\tdestinationTextCache = \"\";\n \t\t}\n \t}\n \telse {\n// \t\tif (destinationTextCache != \"\") {\n \t\t\t// If destination is coordinates, update destination text label.\n \t\t\tdestinationTextCache = Conversion.capitalize(destinationPoint.getDescription());//\"A Navpoint\";\n \t\t\tdestinationTextLabel.setText(destinationTextCache);\n \t\t\taddDestinationTextLabel();\n destinationSettlementCache = null;\n// \t\t}\n \t}\n }\n \n if (!hasDestination) {\n \t// If destination is none, update destination text label.\n \tif (destinationTextCache != \"\") {\n \t\tdestinationTextCache = \"\";\n \t\tdestinationTextLabel.setText(destinationTextCache);\n \t\taddDestinationTextLabel();\n \t\tdestinationSettlementCache = null;\n \t}\n }\n \n\n // Update latitude and longitude panels if necessary.\n if ((mission != null) && (mission instanceof VehicleMission)\n && ((VehicleMission) mission).getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n \tif (destinationLocationCache == null)\n \t\tdestinationLocationCache = new Coordinates(vehicleMission.getNextNavpoint().getLocation());\n \telse \n \t\tdestinationLocationCache.setCoords(vehicleMission.getNextNavpoint().getLocation());\n destinationLatitudeLabel.setText(\"\" +\n destinationLocationCache.getFormattedLatitudeString());\n destinationLongitudeLabel.setText(\"\" +\n destinationLocationCache.getFormattedLongitudeString());\n }\n else {\n \tif (destinationLocationCache != null) {\n \t\tdestinationLocationCache = null;\n destinationLatitudeLabel.setText(\"\");\n destinationLongitudeLabel.setText(\"\");\n \t}\n }\n\n // Update distance to destination if necessary.\n if ((mission != null) && (mission instanceof VehicleMission)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n \ttry {\n \t\tif (distanceCache != vehicleMission.getCurrentLegRemainingDistance()) {\n \t\t\tdistanceCache = vehicleMission.getCurrentLegRemainingDistance();\n \t\t\tdistanceLabel.setText(\"\" + formatter.format(distanceCache) + \" km\");\n \t\t}\n \t}\n \tcatch (Exception e) {\n \t\tlogger.log(Level.SEVERE,\"Error getting current leg remaining distance.\");\n \t\t\te.printStackTrace(System.err);\n \t}\n }\n else {\n \tdistanceCache = 0D;\n \tdistanceLabel.setText(\"\");\n }\n\n // Update ETA if necessary\n if ((mission != null) && (mission instanceof VehicleMission)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n if (vehicleMission.getLegETA() != null) {\n if (!etaCache.equals(vehicleMission.getLegETA().toString())) {\n etaCache = vehicleMission.getLegETA().toString();\n etaLabel.setText(\"\" + etaCache);\n }\n }\n }\n else {\n \tetaCache = \"\";\n \tetaLabel.setText(\"\");\n }\n\n // Update direction display\n directionDisplay.update();\n\n // Update terrain display\n terrainDisplay.update();\n }",
"public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }",
"public boolean isUpdate() {\r\n\t\treturn update;\r\n\t}",
"private void waitForCurrentShutterEnabled() {\n if (mIsVersionI || mIsVersionJ || mIsVersionK) {\n mDevice.wait(Until.hasObject(By.res(UI_PACKAGE_NAME, UI_SHUTTER_BUTTON_ID_3X).enabled(true)),\n SHUTTER_WAIT_TIME);\n } else {\n mDevice.wait(Until.hasObject(By.res(UI_PACKAGE_NAME, UI_SHUTTER_BUTTON_ID_2X).enabled(true)),\n SHUTTER_WAIT_TIME);\n }\n }",
"@Override\n\t\tprotected Version doInBackground(Void... params) {\n\t\t\treturn new UpdateApk(getApplicationContext()).hasNewVersion();\n\t\t}",
"public void motorSafetyCheck() {\r\n if (leftMotor_0.getMotorType() == MotorType.kBrushed\r\n || leftMotor_1.getMotorType() == MotorType.kBrushed\r\n || leftMotor_2.getMotorType() == MotorType.kBrushed\r\n || rightMotor_0.getMotorType() == MotorType.kBrushed\r\n || rightMotor_1.getMotorType() == MotorType.kBrushed\r\n || rightMotor_2.getMotorType() == MotorType.kBrushed) {\r\n System.out.println(\"Brushed motor selected\");\r\n System.exit(0);\r\n }\r\n }",
"public boolean isToDeploy() {\r\n\t\treturn attachUpdates>0 || catUpdates>0 || catTransUpdates>0 || prodUpdates>0 || prodTransUpdates>0 || menuUpdates>0;\r\n\t}",
"@Override\n\tpublic void checkUpdateClient() {\n\t}",
"public void updateController() {\n\t\tjoystickLXAxis = controller.getRawAxis(portJoystickLXAxis);\t\t//returns a value [-1,1]\n\t\tjoystickLYAxis = controller.getRawAxis(portJoystickLYAxis);\t\t//returns a value [-1,1]\n\t\tjoystickLPress = controller.getRawButton(portJoystickLPress);\t//returns a value {0,1}\n\t\t\n\t\t//right joystick update\n\t\tjoystickRXAxis = controller.getRawAxis(portJoystickRXAxis);\t\t//returns a value [-1,1]\n\t\tjoystickRYAxis = controller.getRawAxis(portJoystickRYAxis);\t\t//returns a value [-1,1]\n\t\tjoystickRPress = controller.getRawButton(portJoystickRPress);\t//returns a value {0,1}\n\t\t\n\t\t//trigger updates\n\t\ttriggerL = controller.getRawAxis(portTriggerL);\t\t//returns a value [0,1]\n\t\ttriggerR = controller.getRawAxis(portTriggerR);\t\t//returns a value [0,1]\n\t\t\n\t\t//bumper updates\n\t\tbumperL = controller.getRawButton(portBumperL);\t\t//returns a value {0,1}\n\t\tbumperR = controller.getRawButton(portBumperR);\t\t//returns a value {0,1}\n\t\t\n\t\t//button updates\n\t\tbuttonX = controller.getRawButton(portButtonX);\t\t//returns a value {0,1}\n\t\tbuttonY = controller.getRawButton(portButtonY);\t\t//returns a value {0,1}\n\t\tbuttonA = controller.getRawButton(portButtonA);\t\t//returns a value {0,1}\n\t\tbuttonB = controller.getRawButton(portButtonB);\t\t//returns a value {0,1}\n\t\t\n\t\tbuttonBack = controller.getRawButton(portButtonBack);\t//returns a value {0,1}\n\t\tbuttonStart = controller.getRawButton(portButtonStart);\t//returns a value {0,1}\n\t\t\n\t\t//toggle checks\n\t\ttankDriveBool = checkButton(buttonX, tankDriveBool, portButtonX);\t\t//toggles boolean if button is pressed\n\t\tfastBool = checkButton(buttonB, fastBool, portButtonB);\t\t\t\t\t//toggles boolean if button is pressed\n\t\t\n\t\t\n\t\t//d-pad/POV updates\n\t\tdPad = controller.getPOV(portDPad);\t\t//returns a value {-1,0,45,90,135,180,225,270,315}\n\n\t\t//d-pad/POV turns\n\t\tif (dPad != -1) {\n\t\t\tdPad = 360 - dPad; //Converts the clockwise dPad rotation into a Gyro-readable counterclockwise rotation.\n\t\t\trotateTo(dPad);\n\t\t}\n\t\t\n\t\tjoystickDeadZone();\n\t}",
"@Override\n\tpublic boolean isHardware(){\n\t\treturn false;\n\t}",
"Boolean isAvailable();",
"public Boolean isReady()\n {\n return (sensorModules != null && !sensorModules.isEmpty());\n }",
"@Override\n\tpublic boolean supportsUpdate() {\n\t\treturn false;\n\t}",
"private void checkUpdateCheckTriggered(PackageVersions packageVersions) {\n // Assert the PackageTracker attempted to trigger an update.\n mFakeIntentHelper.assertUpdateTriggered();\n\n // If an update check was triggered reliability triggering should always be enabled to\n // ensure that it can be completed if it fails.\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n\n // Check the expected storage state.\n checkPackageStorageStatus(PackageStatus.CHECK_STARTED, packageVersions);\n }",
"public synchronized boolean isMotorStarted() {\n return isMotorStarted;\n }",
"public boolean updated() {\n return (!getText().equals(\"0.0.0.0\"));\n }",
"boolean isDegraded();",
"@DISPID(12)\n\t// = 0xc. The runtime will prefer the VTID if present\n\t@VTID(21)\n\tboolean updated();",
"public boolean isUpdateRequired(int maximumUpdateTime)\n\t{\n\t\t\n\t\tboolean needToUpdate = false;\n\t\t\n\t\tfor (Journey j : journeyManager.journeys())\n\t\t{\n\t\t\tneedToUpdate |= (j.remainingTime() == 0);\n\t\t}\n\t\t\n\t\tDuration diff = new Duration(lastUpdated, new DateTime());\n\t\tLog.i(\"Updater\", Long.toString(diff.getStandardMinutes()));\n\t\t\n\t\tneedToUpdate |= (diff.getStandardMinutes() > maximumUpdateTime);\n\t\t\n\t\treturn needToUpdate;\n\t}",
"protected boolean enableDNSAndTestConfigUpdate() throws Throwable {\n if (enableDNS() &&\n rebootAndWait(\"all\") &&\n verifyHivecfg() //&&\n //upgradeChecker()\n ) {\n okToProceed = true;\n return true;\n }\n return false;\n }",
"private boolean needWait(Context context) {\n String flag = get2thDexSHA1(context);\n SharedPreferences sp = context.getSharedPreferences(\n getPackageInfo().versionName, MODE_MULTI_PROCESS);\n String saveValue = sp.getString(KEY_DEX2_SHA1, \"\");\n return !StringUtils.equals(flag, saveValue);\n }",
"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 }",
"public void enableUpdate() {\n\t\tupdate = true;\n\t}",
"boolean isCalibrating();",
"boolean hasStatusChanged();",
"public boolean isReady();",
"public boolean isReady();",
"private boolean isNeedReloadModem(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNeedReloadModem(int):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNeedReloadModem(int):boolean\");\n }",
"public void ondemandSetupIsDone();"
] | [
"0.6866685",
"0.6805362",
"0.6574942",
"0.6473765",
"0.637106",
"0.61946857",
"0.618664",
"0.6123209",
"0.60928327",
"0.60928327",
"0.60352516",
"0.60197526",
"0.5966222",
"0.5919129",
"0.59159946",
"0.59158945",
"0.5871697",
"0.5840785",
"0.5835281",
"0.5818724",
"0.58174574",
"0.5812585",
"0.5807538",
"0.58041275",
"0.5787471",
"0.57496697",
"0.5747085",
"0.5709519",
"0.5702275",
"0.56999636",
"0.5692029",
"0.5655506",
"0.5649802",
"0.5648233",
"0.56309426",
"0.5624986",
"0.56043446",
"0.56010187",
"0.55746675",
"0.55729824",
"0.55684143",
"0.55630744",
"0.5544989",
"0.5544524",
"0.5541422",
"0.55362684",
"0.552395",
"0.54947233",
"0.54824436",
"0.54816025",
"0.54816025",
"0.54745996",
"0.54676414",
"0.5460405",
"0.54525495",
"0.54499114",
"0.54396325",
"0.54347456",
"0.5433416",
"0.5432642",
"0.5427159",
"0.5418342",
"0.541433",
"0.5411302",
"0.5405677",
"0.5405677",
"0.5388083",
"0.5387596",
"0.5387596",
"0.5387596",
"0.5387596",
"0.5375001",
"0.53722745",
"0.5371792",
"0.5370458",
"0.5367688",
"0.53655624",
"0.53635633",
"0.5360693",
"0.5360042",
"0.5357158",
"0.53566766",
"0.53562814",
"0.5353172",
"0.534944",
"0.53402716",
"0.5338718",
"0.5336218",
"0.5335552",
"0.533447",
"0.53337806",
"0.5332586",
"0.5320823",
"0.5318545",
"0.5317042",
"0.5311316",
"0.5311296",
"0.5311296",
"0.53104764",
"0.5306357"
] | 0.6562339 | 3 |
Check if motor controller needs a software update | public static boolean checkFirmware(List<BaseMotorController> motors1, BaseMotorController... motors2)
{
List<BaseMotorController> all = new ArrayList<BaseMotorController>(motors1);
all.addAll(Arrays.asList(motors2));
return checkFirmware(all);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean updateSoftware()\n\t{\n\t\tif (this.updater.checkNewSoftwareUpdate() == false)\n\t\t{\n\t\t\tSystem.out.println(\"Can't connect to the server\");\n\t\t}\n\t\t\n\t\tif (this.updater.isNeedUpdate() == false)\n\t\t{\n\t\t\tthis.view.setState(new String (\"There is no update\"));\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tthis.view.setState(new String(\"Need New Update\"));\n\t\tthis.view.addProgress();\n\t\t\n\t\tthis.view.setState(new String(\"Start Core Update\"));\n\t\tif (this.updater.updateCore() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.setState(new String(\"Core Update Done\"));\n\t\tthis.view.addProgress();\n\t\t\n\t\tthis.view.setState(new String(\"Start Navigation Update\"));\n\t\tif (this.updater.updateNavigation() == false)\n\t\t{\n\t\t\treturn false;\n\t\t\t\n\t\t}\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Navigation Update Done\"));\n\t\t\n\t\tthis.view.setState(new String(\"Start Plugins List Update\"));\n\t\tif (this.updater.updatePluginList() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Plugins List Update Done\"));\n\t\tthis.view.setState(new String(\"Start Workspace Update\"));\n\t\tif (this.updater.updateWorkspace() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tthis.view.addProgress();\n\t\tthis.view.setState(new String(\"Workspace Update Done\"));\n\t\tthis.view.setState(new String(\"Installing Update\"));\n\t\tif (this.updater.patchUpdate() == false)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tthis.view.setState(new String(\"Medley Update Done\"));\n\t\tthis.view.addProgress();\n\t\tthis.view.showPopUpSucces();\n\t\treturn true;\n\t}",
"private void checkUpdateAvailability() {\n\t\t\n\t\t// Grab the data from the device and manifest\n\t\tString currentVersion = Utils.getProp(\"ro.ota.version\");\n\t\tcurrentVersion = currentVersion.replaceAll(\"[^0-9]\", \"\"); // Strip anyhting not a number\n\t\tString manifestVer = results.getVersion();\n\t\tmanifestVer = manifestVer.replaceAll(\"[^0-9]\", \"\");\n\n\t\t// Parse ints\n\t\tint manifestNumber = Integer.parseInt(manifestVer);\n\t\tint currentNumber = Integer.parseInt(currentVersion);\n\t\t\n\t\t// Pad out to be at least 5 digits long\n\t\t// That way, 1.2 shows bigger than 1.1.1\n\t\t// Because 12000 > 11100\n\t\t// Without this it would show 12 > 111\n\t\tif(manifestVer.length() <= 2){\n\t\t\tmanifestNumber *= 1000;\n\t\t} else if(manifestVer.length() <= 3) {\n\t\t\tmanifestNumber *= 100;\n\t\t} else if(manifestVer.length() <= 4) {\n\t\t\tmanifestNumber *= 10;\n\t\t}\n\t\t\n\t\t// Same again\n\t\tif(currentVersion.length() <= 2){\n\t\t\tcurrentNumber *= 1000;\n\t\t} else if(currentVersion.length() <= 3) {\n\t\t\tcurrentNumber *= 100;\n\t\t} else if(currentVersion.length() <= 4) {\n\t\t\tcurrentNumber *= 10;\n\t\t}\n\t\t\n\t\t// Set pref\n\t\tPreferences.setUpdateAvailable(mContext, manifestNumber > currentNumber);\n\t}",
"private void checkForUpdate() {\n\t\tdouble updateversion = Double.parseDouble(MySoup.getUpdateVersion(SITE));\n\t\tdouble currentversion = Double.parseDouble(VERSION);\n\t\tif (updateversion > currentversion) {\n\t\t\tdisplayAlert(\"\", \"Update available, would you like to install it?\", this);\n\t\t}\n\t}",
"public static boolean checkFirmware(BaseMotorController... motors)\n {\n final int expectedFirmwares = 0x0308; // VictorSPX firmware in sync (2018)\n boolean result = true;\n\n for (BaseMotorController t : motors)\n {\n final int version = t.getFirmwareVersion();\n final boolean isUpToDate = version == expectedFirmwares;\n final int address = t.getDeviceID();\n\n System.out.println(String.format(\"Motor %d firmware %s\", address, (isUpToDate) ? \"okay\" : \"too old\"));\n result &= isUpToDate;\n }\n return result;\n }",
"public void checkForUpdate();",
"public void checkFirmwareVersion()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfor (SensorData sensorData : sCollect.getList())\n\t\t\t{\n\t\t\t\tif (sensorData.getId().equals(ConnectionManager.getInstance().currentSensor(0).getSerialNumber()))\n\t\t\t\t{\n\t\t\t\t\tif (!ConnectionManager.getInstance().currentSensor(0).getFirwareVersion()\n\t\t\t\t\t\t\t.equals(sensorData.getFirmware()))\n\t\t\t\t\t{\n\t\t\t\t\t\trestApiUpdate(ConnectionManager.getInstance().currentSensor(0).getSerialNumber(), \"firmware\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}catch (SensorNotFoundException e){\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t\t\n\n\t}",
"@Override\n public boolean isConnected()\n {\n // hacky, but should work\n return motor.getFirmwareString() != null;\n }",
"public void checkForUpdate(String currentVersion);",
"boolean hasSoftware();",
"boolean hasUpdate();",
"boolean hasUpdate();",
"public boolean checkForUpdate() throws Exception {\r\n\t\tboolean updateAvaible=false;\r\n\t\tString md5=\"\";\r\n\t\tif(IJ.is64Bit()){\r\n\t\t\tif(IJ.isWindows()){\r\n\t\t\t\tmd5=FileParser.getMD5Checksum(ClassManagement.updateSite+File.separator+\"matlabengine64w.exe\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn updateAvaible;\r\n\t}",
"boolean needUpdate();",
"@Override\n\tprotected void checkHardware() {\n\t\tsuper.checkHardware();\n\t}",
"protected boolean checkServoCommandThread(){\r\n try {\r\n if(!isOpen()) open();\r\n return true;\r\n } catch (HardwareInterfaceException ex) {\r\n log.warning(ex.toString());\r\n return false;\r\n }\r\n }",
"private void checkForUpdates(){\n\t\tlong now = System.currentTimeMillis();\r\n\t\tif(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){\r\n\t\t\tlong lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING));\r\n\t\t\tlong day = 86400000; // milli-seconds in a day\r\n\t\t\tif((now - lastUpdateTime) < day){\r\n\t\t\t\treturn; // Don't need to check as a check has been made in the last 24hrs. \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetStatusBarText(\"Checking for updates...\"); \r\n\t\t\r\n HttpClient webConnection = new HttpClient();\r\n \t\tProperties webSideProps; \r\n \t\ttry{\r\n \t\t\twebSideProps = webConnection.getProperties(\"http://www.zygomeme.com/version_prop.txt\");\r\n \t\t}\r\n \t\tcatch(SocketTimeoutException ste){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + ste);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tcatch(UnknownHostException uhe){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + uhe);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tif(webSideProps == null || webSideProps.isEmpty()){\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tint latestVersionAvailable = Integer.parseInt(webSideProps.get(\"version_number\").toString());\r\n \t\tif(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){\r\n \t\t\tsetStatusBarText(\"A new version of ZygoMeme York is now available. You can now upgrade to Version \" + webSideProps.getProperty(\"version_string\") + \" \" + \r\n \t\t\t\t\twebSideProps.get(\"stage\")); \r\n \t\t}\r\n \t\telse{\r\n \t\t\tsetStatusBarText(\"Update check has been made - application is up to date.\"); \r\n \t\t}\r\n\r\n \t\t// To get here the properties will have been updated\r\n\t\tpropertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, \"\" + now);\r\n\r\n\t\t// Save the properties straight away so that the new last \"check for update\" time is recorded\r\n\t\ttry {\r\n\t\t\tpropertiesMemento.saveProperties(this);\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(\"Unable to save properties\");\r\n\t\t}\r\n\t}",
"private static boolean updatesImplementsCompatible(Mode actual) {\n boolean result;\n if /**/(actual.equals(UPDATES) || actual.equals(CLEARS)\n || actual.equals(RESTORES) || actual.equals(PRESERVES)) {\n result = true;\n }\n else {\n result = false;\n }\n return result;\n }",
"boolean hasTsUpdate();",
"public boolean canUpdate();",
"private void doWiperAvailabiltiyCheck()\n {\n // Hardcode for now to make sure WPS is not triggered\n bWiperAvailable = true;\n\n mWifi = (WifiManager)getSystemService(mContext.WIFI_SERVICE);\n\n if ((mWifi == null) || ( (locationManager == null)|| ((locationProvider = locationManager.getProvider(LocationManager.NETWORK_PROVIDER )) == null)))\n {\n Log.e(TAG,\" Disable wiper : No object for WPS / Wifi Scans \");\n bWiperAvailable = false;\n }\n\n\n // call native function to trigger RPC from A11-> A9\n // informing about WPS capability\n //\n native_notify_wiper_available(bWiperAvailable);\n\n if (Config.LOGV)\n {\n Log.v(TAG, \"Wiper: Availability Check \"+ bWiperAvailable);\n }\n }",
"private boolean checkExecution() {\n if (!checkPhoneStatusOK()) {\n return false;\n }\n if (!checkBatteryLevelOK()) {\n return false;\n }\n return true;\n }",
"public void checkForUpdates(){\n if (mPrefs.getBoolean(PREF_ENABLED, true) && isStale()){\n// forceCheckForUpdates();\n }\n }",
"private boolean checkBatteryLevelOK() {\n return true;\n }",
"boolean hasUpdateUfsMode();",
"public boolean isDynamicUpdateRqstRCVD();",
"public boolean takeControl() {\n\t\tif (Squirrel.us.getDistance() <= 30 && Squirrel.notDetected)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }",
"public boolean updateRequired() {\r\n\r\n // Run at 10 frames per second\r\n final long TARGET_FPS = 10;\r\n // There are 1000 milliseconds in a second\r\n final long MILLIS_PER_SECOND = 1000;\r\n\r\n // Are we due to update the frame\r\n if (mNextFrameTime <= System.currentTimeMillis()) {\r\n // Tenth of a second has passed\r\n\r\n // Setup when the next update will be triggered\r\n mNextFrameTime = System.currentTimeMillis()\r\n + MILLIS_PER_SECOND / TARGET_FPS;\r\n\r\n // Return true so that the update and draw\r\n // methods are executed\r\n return true;\r\n }\r\n\r\n return false;\r\n }",
"public void updateCheck(){\n\t\tnew UpdateHandler.Builder(ChefDashboardActivity.this)\n\t\t\t\t.setContent(\"New Version Found\")\n\t\t\t\t.setTitle(\"Update Found\")\n\t\t\t\t.setUpdateText(\"Yes\")\n\t\t\t\t.setCancelText(\"No\")\n\t\t\t\t.showDefaultAlert(true)\n\t\t\t\t.showWhatsNew(true)\n\t\t\t\t.setCheckerCount(2)\n\t\t\t\t.setOnUpdateFoundLister(new UpdateHandler.Builder.UpdateListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onUpdateFound(boolean newVersion, String whatsNew) {\n\t\t\t\t\t\t//tv.setText(tv.getText() + \"\\n\\nUpdate Found : \" + newVersion + \"\\n\\nWhat's New\\n\" + whatsNew);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setOnUpdateClickLister(new UpdateHandler.Builder.UpdateClickListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onUpdateClick(boolean newVersion, String whatsNew) {\n\t\t\t\t\t\tLog.v(\"onUpdateClick\", String.valueOf(newVersion));\n\t\t\t\t\t\tLog.v(\"onUpdateClick\", whatsNew);\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setOnCancelClickLister(new UpdateHandler.Builder.UpdateCancelListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancelClick() {\n\t\t\t\t\t\tLog.v(\"onCancelClick\", \"Cancelled\");\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.build();\n\t}",
"public static String checkSystem(String version) {\n \n if (MainFormJFrame.cashMachine.isEnabled()) {\n try {\n \n Connection connection = SingletonConnection.getConnection();\n \n Statement statement = connection.createStatement();\n String queryString = (\"SELECT `newversion`, `maintenance` FROM system_update\");\n ResultSet rs = statement.executeQuery(queryString);\n \n String checkVersion;\n Boolean checkmaintenance;\n \n while (rs.next()) {\n \n System.out.println(rs.getString(1));\n System.out.println(rs.getBoolean(2));\n \n checkVersion = rs.getString(1);\n checkmaintenance = rs.getBoolean(2);\n \n if ((!softwareVersion.equals(checkVersion)) && (checkmaintenance.equals(softwareMaintenance))) {\n MainFormJFrame.cashMachine.changePanel(new UpdateSystemPanel());\n }\n \n else if ((!softwareVersion.equals(checkVersion)) && (!checkmaintenance.equals(softwareMaintenance)) || ((softwareVersion.equals(checkVersion)) && (!checkmaintenance.equals(softwareMaintenance)))) {\n MainFormJFrame.cashMachine.changePanel(new MaintenanceSystemPanel());\n }\n else {\n MainFormJFrame.cashMachine.changePanel(new LoginPanel());\n }\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }\n return softwareVersion;\n }",
"boolean motorsAreBusy();",
"default boolean isNeedToBeUpdated()\n {\n return getUpdateState().isUpdated();\n }",
"public boolean IsAvailable()\n\t{\n\t\treturn mbHasAccelerometer;\n\t}",
"public void requestUpdate(){\n shouldUpdate = true;\n }",
"boolean updateEnabling();",
"@VTID(39)\n boolean getRequireManualUpdate();",
"public void check4update() {\r\n\t\tfinal String[] versionCheck = FileUtils.isUpdateAvailable();\r\n\t\tif (new Boolean(versionCheck[0])) {\r\n\t\t\t//if (true) {\r\n\t\t\tMessageBox messageDialog = new MessageBox(GDE.shell, SWT.YES | SWT.NO | SWT.ICON_QUESTION);\r\n\t\t\tmessageDialog.setText(GDE.NAME_LONG);\r\n\t\t\tmessageDialog.setMessage(Messages.getString(MessageIds.GDE_MSGI0052)\r\n\t\t\t//\t\t\t\t+ Messages.getString(MessageIds.GDE_MSGI0056, this.settings.getLocale().equals(Locale.GERMAN) \r\n\t\t\t//\t\t\t\t? new String[] {\r\n\t\t\t//\t\t\t\t\t\"1) Korrektur der initialen Messwert-Synchronisation\\n\",\r\n\t\t\t//\t\t\t\t\t\"2) Korrektur vom Junsi iCharger 206, 208, 306, 3010 konstanten Zeitschritt auf 2 Sekunden\\n\",\r\n\t\t\t//\t\t\t\t\t\"3) Korrektur des Problems bei mehrfachen kopieren der Grafik in die Zwischenablage\\n\",\r\n\t\t\t//\t\t\t\t\t\"4) Korrektur der JLog2 Kontext sensitiven Hilfeseite Auswahl\\n\",\r\n\t\t\t//\t\t\t\t\t\"5) Korrektur des JLog2 Konfigurationsdialoges - Sicherungsknopf wurde nicht aktiviert\\n\",\r\n\t\t\t//\t\t\t\t\t\"6) Korrektur des Fehlers beim Laden der Farben von der OSD-Datei\\n\",\r\n\t\t\t//\t\t\t\t\t\"7) CSV2SerialAdapter - Fehlender Status wird jetzt als Fehler erkannt\\n\",\r\n\t\t\t//\t\t\t\t\t\"8) HoTTAdapter - Korrektur der Einlesealgorithmus bei ausgewählter Kanalinformation und Empfänger\\n\",\r\n\t\t\t//\t\t\t\t\t\"9) HoTTAdapter* - Anpassung der Käpazitätsfilter an die aktuelle Leistung (ESC, GAM, EAM)\\n\",\r\n\t\t\t//\t\t\t\t\t\"10) HoTTAdapter* - Anpassung des Stromfilters beim ESC\",\r\n\t\t\t//\t\t\t\t\t\"11) HoTTAdapter2* - Korrektur der Skalensynchronisationsreferenz in der Konfiguration Kanäle und MotorControl\\n\",\r\n\t\t\t//\t\t\t\t\t\"12) GPS-Logger* - GPX-Export ermöglicht z.B. Garmin Virb\\n\",\r\n\t\t\t//\t\t\t\t\t\"13) UniLog2 - Korrektur fehlender M-Link Werte aus der Logdatei\\n\",\r\n\t\t\t//\t\t\t\t\t\"14) UniLog2 - Korrektur des Vehaltens bei Veränderung der Symbole und Einheiten bei M-Link Werten\\n\",\r\n\t\t\t//\t\t\t\t\t\"15) Junsi iCharger 4010 Duo Unterstützung hinzugefügt (lesen von der SD-Karte)\\n\",\r\n\t\t\t//\t\t\t\t\t\"16) Linux CDC ACM Geräte als ttyACM* serieller Port hinzugefügt\\n\"\r\n\t\t\t//\t\t\t}\r\n\t\t\t//\t\t\t: new String[] {\r\n\t\t\t//\t\t\t\t\t\"1) fix initial synchronization of measurements\\n\",\r\n\t\t\t//\t\t\t\t\t\"2) fix Junsi iCharger 206, 208, 306, 3010 constant time step to 2 seconds\\n\",\r\n\t\t\t//\t\t\t\t\t\"3) fix problem while copy graphics into clip board several time in sequence\\n\",\r\n\t\t\t//\t\t\t\t\t\"4) fix JLog2 context help page selection\\n\",\r\n\t\t\t//\t\t\t\t\t\"5) fix JLog2 configuration dialog - set drop downs to editable false since this event wasn't handled and does not activate save button\\n\",\r\n\t\t\t//\t\t\t\t\t\"6) fix error not loading color from OSD file some colors (1,1,1)\\n\",\r\n\t\t\t//\t\t\t\t\t\"7) CSV2SerialAdapter - fix error handling of missing status\\n\",\r\n\t\t\t//\t\t\t\t\t\"8) HoTTAdapter - fix receiver only with channels times 10 error\\n\",\r\n\t\t\t//\t\t\t\t\t\"9) HoTTAdapter* - adapt capacity filter according actual power\\n\",\r\n\t\t\t//\t\t\t\t\t\"10) HoTTAdapter* - adapt current filter\\n\",\r\n\t\t\t//\t\t\t\t\t\"11) HoTTAdapter2* - correct scale sync reference in configuration Channels and SpeedControl\\n\",\r\n\t\t\t//\t\t\t\t\t\"12) GPS-Logger* - enable GPX export (Garmin Virb)\\n\",\r\n\t\t\t//\t\t\t\t\t\"13) UniLog2 - fix missing parsing of M-Link data\\n\",\r\n\t\t\t//\t\t\t\t\t\"14) UniLog2 - fix configuration of symbol and unit for M-Link measurements\\n\",\r\n\t\t\t//\t\t\t\t\t\"15) add Junsi iCharger 4010 Duo support (read log from SD storage)\\n\",\r\n\t\t\t//\t\t\t\t\t\"16) add port enumeration ttyACM* Linux CDC ACM devices\\n\" \r\n\t\t\t//\t\t\t})\r\n\t\t\t);\r\n\t\t\tif (SWT.YES == messageDialog.open()) {\r\n\t\t\t\tnew Thread(\"Download\") {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tString downloadUrl = \"http://download.savannah.gnu.org/releases/dataexplorer/\";\r\n\t\t\t\t\t\t\tString arch = System.getProperty(\"sun.arch.data.model\");\r\n\t\t\t\t\t\t\tString version = versionCheck[1];\r\n\t\t\t\t\t\t\tString filename = GDE.STRING_EMPTY;\r\n\t\t\t\t\t\t\tif (GDE.IS_WINDOWS) //DataExplorer_Setup_3.0.8_win64.exe\r\n\t\t\t\t\t\t\t\tfilename = \"DataExplorer_Setup_\" + version + \"_win\" + arch + GDE.FILE_ENDING_DOT_EXE;\r\n\t\t\t\t\t\t\telse if (GDE.IS_LINUX) //dataexplorer-3.0.8-bin_GNULinux_x86_64.tar.gz\r\n\t\t\t\t\t\t\t\tfilename = \"dataexplorer-\" + version + \"-bin_GNULinux_x86_\" + arch + \".tar.gz\";\r\n\t\t\t\t\t\t\telse if (GDE.IS_MAC) //DataExplorer-3.0.8_Mac_64.dmg\r\n\t\t\t\t\t\t\t\tfilename = \"DataExplorer-\" + version + \"_Mac_\" + arch + \".dmg\";\r\n\r\n\t\t\t\t\t\t\tfinal String targetFilePath = GDE.JAVA_IO_TMPDIR + GDE.FILE_SEPARATOR_UNIX + filename;\r\n\r\n\t\t\t\t\t\t\tif (!new File(targetFilePath).exists()) FileUtils.downloadFile(new URL(downloadUrl + filename), targetFilePath);\r\n\r\n\t\t\t\t\t\t\tGDE.display.syncExec(new Runnable() {\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\tif (GDE.IS_LINUX) {\r\n\t\t\t\t\t\t\t\t\t\tURL url = GDE.class.getProtectionDomain().getCodeSource().getLocation();\r\n\t\t\t\t\t\t\t\t\t\tif (url.getFile().endsWith(GDE.FILE_ENDING_DOT_JAR)) {\r\n\t\t\t\t\t\t\t\t\t\t\tString installpath = url.getFile().substring(0, url.getPath().lastIndexOf(GDE.FILE_SEPARATOR_UNIX));\r\n\t\t\t\t\t\t\t\t\t\t\tinstallpath = installpath.substring(0, installpath.lastIndexOf(GDE.FILE_SEPARATOR_UNIX));\r\n\t\t\t\t\t\t\t\t\t\t\tString command = \"cd \" + installpath + \"; sudo tar -xzf \" + targetFilePath + \"\\\"\";\r\n\t\t\t\t\t\t\t\t\t\t\tlog.log(Level.OFF, \"command = \" + command);\r\n\t\t\t\t\t\t\t\t\t\t\tMessageBox message = new MessageBox(GDE.shell, SWT.ICON_INFORMATION);\r\n\t\t\t\t\t\t\t\t\t\t\tmessage.setText(GDE.NAME_LONG);\r\n\t\t\t\t\t\t\t\t\t\t\tmessage.setMessage(Messages.getString(MessageIds.GDE_MSGI0055, new String[] { command }));\r\n\t\t\t\t\t\t\t\t\t\t\tmessage.open();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\t\tMessageBox message = new MessageBox(GDE.shell, SWT.YES | SWT.NO | SWT.ICON_INFORMATION);\r\n\t\t\t\t\t\t\t\t\t\tmessage.setText(GDE.NAME_LONG);\r\n\t\t\t\t\t\t\t\t\t\tmessage.setMessage(Messages.getString(MessageIds.GDE_MSGI0053));\r\n\t\t\t\t\t\t\t\t\t\tif (SWT.YES == message.open()) {\r\n\t\t\t\t\t\t\t\t\t\t\tOperatingSystemHelper.launchInstallApplication(targetFilePath);\r\n\t\t\t\t\t\t\t\t\t\t\tGDE.shell.dispose();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}.start();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean isPowered(){\n\t\tint value = sensor.readRawValue();\n\t\tDiscoveryVehicle.getMonitor().log(\"raw: \"+value);\n//\t\treturn Button.ENTER.isDown();\n\t\treturn (value < Configuration.HYDROGEN_MEASURE_TRIGGER_PRECISION);\n\t}",
"public static void checkAndDisableFramework (Context context) {\n PackageManager pm = context.getPackageManager();\n ComponentName [] frameworkComponents = {new ComponentName(context, BrightnessActivity.class),\n new ComponentName(context, CellularDataActivity.class),\n new ComponentName(context, BackgroundDataActivity.class)};\n ComponentName processorSpeedComponent = new ComponentName(context, ProcessorSpeedActivity.class);\n\n try {\n pm.getPackageInfo(SMART_ACTIONS_FRAMEWORK, PackageManager.GET_ACTIVITIES);\n updateComponentStates(pm, frameworkComponents, PackageManager.COMPONENT_ENABLED_STATE_ENABLED);\n\n if (isFrameworkOld(context)) {\n //FW apk is old. Disable processor speed.\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);\n } else {\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_ENABLED, PackageManager.DONT_KILL_APP);\n }\n\n } catch (NameNotFoundException e) {\n Log.w(TAG, \"Smart Actions framework not present on the device\");\n updateComponentStates(pm, frameworkComponents, PackageManager.COMPONENT_ENABLED_STATE_DISABLED);\n pm.setComponentEnabledSetting(processorSpeedComponent,\n PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP);\n }\n }",
"public boolean isAutomaticBuild() {\n return !needsGoodsToBuild() && getUpgradesFrom() == null;\n }",
"boolean hasUpdateTriggerTime();",
"@Test\n public void trackingEnabled_reliabilityTriggerAfterUpdate_tooSoon() throws Exception {\n // Set up device configuration.\n configureTrackingEnabled();\n\n int retriesAllowed = 5;\n int checkDelayMillis = 5 * 60 * 1000;\n configureReliabilityConfigSettings(retriesAllowed, checkDelayMillis);\n\n PackageVersions currentPackageVersions = new PackageVersions(1, 1);\n PackageVersions newPackageVersions = new PackageVersions(2, 2);\n\n // Simulate there being a newer version installed than the one recorded in storage.\n configureValidApplications(currentPackageVersions);\n\n // Force the storage into a state we want.\n mPackageStatusStorage.forceCheckStateForTests(\n PackageStatus.CHECK_COMPLETED_SUCCESS, currentPackageVersions);\n\n // Initialize the package tracker.\n assertTrue(mPackageTracker.start());\n\n // Check the intent helper is properly configured.\n checkIntentHelperInitializedAndReliabilityTrackingEnabled();\n\n // Check the initial storage state.\n checkPackageStorageStatus(PackageStatus.CHECK_COMPLETED_SUCCESS, currentPackageVersions);\n\n // Simulate a package update trigger.\n simulatePackageInstallation(newPackageVersions);\n\n // Assert the PackageTracker did trigger an update.\n checkUpdateCheckTriggered(newPackageVersions);\n CheckToken token1 = mFakeIntentHelper.captureAndResetLastToken();\n\n // Increment the clock, but not enough.\n mFakeClock.incrementClock(checkDelayMillis - 1);\n\n // Simulate a reliability trigger.\n mPackageTracker.triggerUpdateIfNeeded(false /* packageChanged */);\n\n // Assert the PackageTracker did not trigger an update.\n mFakeIntentHelper.assertUpdateNotTriggered();\n checkPackageStorageStatus(PackageStatus.CHECK_STARTED, newPackageVersions);\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n\n // Increment the clock slightly more. Should now consider the response overdue.\n mFakeClock.incrementClock(2);\n\n // Simulate a reliability trigger.\n mPackageTracker.triggerUpdateIfNeeded(false /* packageChanged */);\n\n // Triggering should have happened.\n checkUpdateCheckTriggered(newPackageVersions);\n CheckToken token2 = mFakeIntentHelper.captureAndResetLastToken();\n\n // Check a new token was generated.\n assertFalse(token1.equals(token2));\n }",
"private static boolean updateRequired(Context context) {\r\n\t\tSharedPreferences pref = context.getSharedPreferences(\r\n\t\t\t\tUSER_ID_SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);\r\n\r\n\t\tif (pref.contains(LAST_UPDATE)) {\r\n\r\n\t\t\tLong lastUpdate = pref.getLong(LAST_UPDATE, -1);\r\n\t\t\tLong now = new Date().getTime();\r\n\r\n\t\t\treturn (now - lastUpdate) > TIME_IN_MILLIS;\r\n\t\t} else {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean canUpdate() {\r\n\t\treturn true;\r\n\t}",
"private static void checkUpdate() throws Exception {\n\t\tfinal Properties updateProperties = new CachedResource<Properties>(getApplicationProperty(\"update.url\"), Properties.class, CachedResource.ONE_DAY, 0, 0) {\n\n\t\t\t@Override\n\t\t\tpublic Properties process(ByteBuffer data) {\n\t\t\t\ttry {\n\t\t\t\t\tProperties properties = new Properties();\n\t\t\t\t\tNodeList fields = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteBufferInputStream(data)).getFirstChild().getChildNodes();\n\t\t\t\t\tfor (int i = 0; i < fields.getLength(); i++) {\n\t\t\t\t\t\tproperties.setProperty(fields.item(i).getNodeName(), fields.item(i).getTextContent().trim());\n\t\t\t\t\t}\n\t\t\t\t\treturn properties;\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}.get();\n\n\t\t// check if update is required\n\t\tint latestRev = Integer.parseInt(updateProperties.getProperty(\"revision\"));\n\t\tint currentRev = getApplicationRevisionNumber();\n\n\t\tif (latestRev > currentRev && currentRev > 0) {\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tfinal JDialog dialog = new JDialog(JFrame.getFrames()[0], updateProperties.getProperty(\"title\"), ModalityType.APPLICATION_MODAL);\n\t\t\t\t\tfinal JPanel pane = new JPanel(new MigLayout(\"fill, nogrid, insets dialog\"));\n\t\t\t\t\tdialog.setContentPane(pane);\n\n\t\t\t\t\tpane.add(new JLabel(ResourceManager.getIcon(\"window.icon.medium\")), \"aligny top\");\n\t\t\t\t\tpane.add(new JLabel(updateProperties.getProperty(\"message\")), \"gap 10, wrap paragraph:push\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Download\", ResourceManager.getIcon(\"dialog.continue\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(URI.create(updateProperties.getProperty(\"download\")));\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag ok\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Details\", ResourceManager.getIcon(\"action.report\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tDesktop.getDesktop().browse(URI.create(updateProperties.getProperty(\"discussion\")));\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag help2\");\n\t\t\t\t\tpane.add(new JButton(new AbstractAction(\"Ignore\", ResourceManager.getIcon(\"dialog.cancel\")) {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\t\t\t\tdialog.setVisible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t}), \"tag cancel\");\n\n\t\t\t\t\tdialog.pack();\n\t\t\t\t\tdialog.setLocation(getOffsetLocation(dialog.getOwner()));\n\t\t\t\t\tdialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"public boolean hasUpdate(VehicleState change) {\n\n return !this.equals(change);\n }",
"private void checkAndActivateCPU() {\n statusController.checkIfCPU();\n if (modelCheck.isCurrentPlayerCPU()) {\n CPU.actionSequence();\n }\n }",
"public boolean isOn() throws Exception;",
"public void checkVersion() {\r\n \ttry {\r\n \t\tURL versionInfo = new URL(versionURL);\r\n \t\tURLConnection versionInfoConnection = versionInfo.openConnection();\r\n \t\tBufferedReader inputStream = new BufferedReader(new InputStreamReader(versionInfoConnection.getInputStream()));\r\n \t\tString remoteVersion = inputStream.readLine();\r\n \t\tif(remoteVersion.equals(version))\r\n \t\t\tmessage.setText(\"VERSION: \" + version +\"\\nYou have the most current release.\");\r\n \t\telse {\r\n \t\t\tString[] versionList = version.split(\"\\\\.\");\r\n \t\t\tString[] remoteVersionList = remoteVersion.split(\"\\\\.\");\r\n \t\t\tif(versionList.length < 3 || remoteVersionList.length < 3) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to confirm if updates are availble,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(Integer.parseInt(versionList[0]) < Integer.parseInt(remoteVersionList[0])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(Integer.parseInt(versionList[1]) < Integer.parseInt(remoteVersionList[1])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(Integer.parseInt(versionList[2]) < Integer.parseInt(remoteVersionList[2])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(versionList.length < remoteVersionList.length) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nYou have the most current release.\");\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tcatch(NumberFormatException e) {\r\n\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to confirm if updates are availble,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n\t\t\tupdateButton.setEnabled(true);\r\n \t}\r\n \tcatch(Exception e){\r\n \t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to connect to server to check version\");\r\n \t}\r\n }",
"private boolean isNeedSwitchModem() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNeedSwitchModem():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNeedSwitchModem():boolean\");\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"private void checkForUpdates() {\n UpdateManager.register(this);\n }",
"public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }",
"boolean isSetKeyWheel();",
"@SuppressLint({\"CommitPrefEdits\"})\n public void checkForUpdates() {\n synchronized (this.preferenceStore) {\n if (this.preferenceStore.get().contains(\"last_update_check\")) {\n this.preferenceStore.save(this.preferenceStore.edit().remove(\"last_update_check\"));\n }\n }\n long currentTimeMillis = this.currentTimeProvider.getCurrentTimeMillis();\n long j = ((long) this.betaSettings.updateSuspendDurationSeconds) * 1000;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Check for updates delay: \");\n sb.append(j);\n Fabric.getLogger().d(\"Beta\", sb.toString());\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Check for updates last check time: \");\n sb2.append(getLastCheckTimeMillis());\n Fabric.getLogger().d(\"Beta\", sb2.toString());\n long lastCheckTimeMillis2 = getLastCheckTimeMillis() + j;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Check for updates current time: \");\n sb3.append(currentTimeMillis);\n sb3.append(\", next check time: \");\n sb3.append(lastCheckTimeMillis2);\n Fabric.getLogger().d(\"Beta\", sb3.toString());\n if (currentTimeMillis >= lastCheckTimeMillis2) {\n try {\n performUpdateCheck();\n } finally {\n setLastCheckTimeMillis(currentTimeMillis);\n }\n } else {\n Fabric.getLogger().d(\"Beta\", \"Check for updates next check time was not passed\");\n }\n }",
"boolean hasModbusProc();",
"@Override\n public int checkStatus(){\n return InputOutputController.STATUS_READY;\n }",
"public void mo1540b(boolean manual) {\n if (manual) {\n C2201w.m8370a((int) C0965R.string.ota_no_find_new_version);\n }\n }",
"protected boolean isAvailable() {\r\n\t\treturn true;\r\n\t}",
"public boolean canRequestPower();",
"boolean hasCurrentVersion();",
"private static boolean isReadyForUse(IReasoner reasoner) {\r\n boolean result = false;\r\n if (null != reasoner) {\r\n ReasonerDescriptor desc = reasoner.getDescriptor();\r\n if (null != desc) {\r\n result = desc.isReadyForUse();\r\n }\r\n }\r\n return result;\r\n }",
"default boolean doesUpdateExist(String version) {\n return !getLatestVersion().getVersion().equals(version);\n }",
"private boolean checkForUpdates(boolean force) {\n long lastCheckMillis = mPrefs.getLong(PREF_LAST_CHECK_ATTEMPT_TIME_NAME, PREF_LAST_CHECK_ATTEMPT_TIME_DEFAULT);\n Logger.i(\"Last check time %s\", mSdfLog.format(new Date(lastCheckMillis)));\n if (force || (Math.abs(System.currentTimeMillis() - lastCheckMillis) > CHECK_THRESHOLD_MS)) {\n if (mOnWantUpdateCheckListener != null) {\n if (mOnWantUpdateCheckListener.onWantUpdateCheck(!force/*checkOnly*/)) {\n mPrefs.edit().putLong(PREF_LAST_CHECK_ATTEMPT_TIME_NAME, System.currentTimeMillis()).commit();\n return true;\n }\n }\n }\n return false;\n }",
"private void check() {\n ShedSolar.instance.haps.post( Events.WEATHER_REPORT_MISSED );\n LOGGER.info( \"Failed to receive weather report\" );\n\n // check again...\n startChecker();\n }",
"public abstract boolean isAvailable();",
"public abstract boolean isAvailable();",
"public void checkAndUpdate( boolean forceUpdate ) {\n\t\t// First of all check for network connectivity without which we can't update\n\t\tif( isNetworkAvailable( ) ) {\n\n\t\t\t// If we are forcing update, don't bother getting version for comparison\n\t\t\tif( !forceUpdate ) {\n\t\t\t\tforceUpdate = updateIsRequired( );\n\t\t\t}\n\n\t\t\t// If we are forcing the update, do it\n\t\t\tif( forceUpdate ) {\n\t\t\t\tupdateDatabase( );\n\t\t\t}\n\t\t} else {\n\t\t\tLog.e( getClass( ).getCanonicalName(), \"Network unavailable. Cannot update.\" );\n\t\t}\n\t}",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"boolean isAvailable();",
"public void update() {\n\t\tif (!uiDone)\n\t\t\tinitializeUI();\n\t\t\n Vehicle vehicle = (Vehicle) unit;\n\n // Update driver button if necessary.\n boolean driverChange = false;\n if (driverCache == null) {\n if (vehicle.getOperator() != null) driverChange = true;\n }\n else if (!driverCache.equals(vehicle.getOperator())) driverChange = true;\n if (driverChange) {\n driverCache = vehicle.getOperator();\n if (driverCache == null) {\n driverButton.setVisible(false);\n }\n else {\n driverButton.setVisible(true);\n driverButton.setText(driverCache.getOperatorName());\n }\n }\n\n // Update status label\n if (!vehicle.sameStatusTypes(statusCache, vehicle.getStatusTypes())) {\n statusCache = vehicle.getStatusTypes();\n statusLabel.setText(vehicle.printStatusTypes());\n }\n\n // Update beacon label\n if (beaconCache != vehicle.isBeaconOn()) {\n \tbeaconCache = vehicle.isBeaconOn();\n \tif (beaconCache) beaconLabel.setText(\"On\");\n \telse beaconLabel.setText(\"Off\");\n }\n\n // Update speed label\n if (speedCache != vehicle.getSpeed()) {\n speedCache = vehicle.getSpeed();\n speedLabel.setText(\"\" + formatter.format(speedCache) + \" km/h\");\n }\n\n // Update elevation label if ground vehicle.\n if (vehicle instanceof GroundVehicle) {\n GroundVehicle gVehicle = (GroundVehicle) vehicle;\n double currentElevation = gVehicle.getElevation();\n if (elevationCache != currentElevation) {\n elevationCache = currentElevation;\n elevationLabel.setText(formatter.format(elevationCache) + \" km\");\n }\n }\n\n Mission mission = missionManager.getMissionForVehicle(vehicle);\n \n boolean hasDestination = false;\n \t\t\n if ((mission != null) && (mission instanceof VehicleMission)\n && ((VehicleMission) mission).getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) {\n \tNavPoint destinationPoint = ((VehicleMission) mission).getNextNavpoint();\n \t\n \thasDestination = true;\n \t\n \tif (destinationPoint.isSettlementAtNavpoint()) {\n \t\t// If destination is settlement, update destination button.\n \t\tif (destinationSettlementCache != destinationPoint.getSettlement()) {\n \t\t\tdestinationSettlementCache = destinationPoint.getSettlement();\n \t\t\tdestinationButton.setText(destinationSettlementCache.getName());\n \t\t\taddDestinationButton();\n \t\t\tdestinationTextCache = \"\";\n \t\t}\n \t}\n \telse {\n// \t\tif (destinationTextCache != \"\") {\n \t\t\t// If destination is coordinates, update destination text label.\n \t\t\tdestinationTextCache = Conversion.capitalize(destinationPoint.getDescription());//\"A Navpoint\";\n \t\t\tdestinationTextLabel.setText(destinationTextCache);\n \t\t\taddDestinationTextLabel();\n destinationSettlementCache = null;\n// \t\t}\n \t}\n }\n \n if (!hasDestination) {\n \t// If destination is none, update destination text label.\n \tif (destinationTextCache != \"\") {\n \t\tdestinationTextCache = \"\";\n \t\tdestinationTextLabel.setText(destinationTextCache);\n \t\taddDestinationTextLabel();\n \t\tdestinationSettlementCache = null;\n \t}\n }\n \n\n // Update latitude and longitude panels if necessary.\n if ((mission != null) && (mission instanceof VehicleMission)\n && ((VehicleMission) mission).getTravelStatus().equals(TravelMission.TRAVEL_TO_NAVPOINT)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n \tif (destinationLocationCache == null)\n \t\tdestinationLocationCache = new Coordinates(vehicleMission.getNextNavpoint().getLocation());\n \telse \n \t\tdestinationLocationCache.setCoords(vehicleMission.getNextNavpoint().getLocation());\n destinationLatitudeLabel.setText(\"\" +\n destinationLocationCache.getFormattedLatitudeString());\n destinationLongitudeLabel.setText(\"\" +\n destinationLocationCache.getFormattedLongitudeString());\n }\n else {\n \tif (destinationLocationCache != null) {\n \t\tdestinationLocationCache = null;\n destinationLatitudeLabel.setText(\"\");\n destinationLongitudeLabel.setText(\"\");\n \t}\n }\n\n // Update distance to destination if necessary.\n if ((mission != null) && (mission instanceof VehicleMission)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n \ttry {\n \t\tif (distanceCache != vehicleMission.getCurrentLegRemainingDistance()) {\n \t\t\tdistanceCache = vehicleMission.getCurrentLegRemainingDistance();\n \t\t\tdistanceLabel.setText(\"\" + formatter.format(distanceCache) + \" km\");\n \t\t}\n \t}\n \tcatch (Exception e) {\n \t\tlogger.log(Level.SEVERE,\"Error getting current leg remaining distance.\");\n \t\t\te.printStackTrace(System.err);\n \t}\n }\n else {\n \tdistanceCache = 0D;\n \tdistanceLabel.setText(\"\");\n }\n\n // Update ETA if necessary\n if ((mission != null) && (mission instanceof VehicleMission)) {\n VehicleMission vehicleMission = (VehicleMission) mission;\n if (vehicleMission.getLegETA() != null) {\n if (!etaCache.equals(vehicleMission.getLegETA().toString())) {\n etaCache = vehicleMission.getLegETA().toString();\n etaLabel.setText(\"\" + etaCache);\n }\n }\n }\n else {\n \tetaCache = \"\";\n \tetaLabel.setText(\"\");\n }\n\n // Update direction display\n directionDisplay.update();\n\n // Update terrain display\n terrainDisplay.update();\n }",
"public boolean isAvailable(){\r\n // return statement\r\n return (veh == null);\r\n }",
"public boolean isUpdate() {\r\n\t\treturn update;\r\n\t}",
"private void waitForCurrentShutterEnabled() {\n if (mIsVersionI || mIsVersionJ || mIsVersionK) {\n mDevice.wait(Until.hasObject(By.res(UI_PACKAGE_NAME, UI_SHUTTER_BUTTON_ID_3X).enabled(true)),\n SHUTTER_WAIT_TIME);\n } else {\n mDevice.wait(Until.hasObject(By.res(UI_PACKAGE_NAME, UI_SHUTTER_BUTTON_ID_2X).enabled(true)),\n SHUTTER_WAIT_TIME);\n }\n }",
"@Override\n\t\tprotected Version doInBackground(Void... params) {\n\t\t\treturn new UpdateApk(getApplicationContext()).hasNewVersion();\n\t\t}",
"public void motorSafetyCheck() {\r\n if (leftMotor_0.getMotorType() == MotorType.kBrushed\r\n || leftMotor_1.getMotorType() == MotorType.kBrushed\r\n || leftMotor_2.getMotorType() == MotorType.kBrushed\r\n || rightMotor_0.getMotorType() == MotorType.kBrushed\r\n || rightMotor_1.getMotorType() == MotorType.kBrushed\r\n || rightMotor_2.getMotorType() == MotorType.kBrushed) {\r\n System.out.println(\"Brushed motor selected\");\r\n System.exit(0);\r\n }\r\n }",
"public boolean isToDeploy() {\r\n\t\treturn attachUpdates>0 || catUpdates>0 || catTransUpdates>0 || prodUpdates>0 || prodTransUpdates>0 || menuUpdates>0;\r\n\t}",
"@Override\n\tpublic void checkUpdateClient() {\n\t}",
"public void updateController() {\n\t\tjoystickLXAxis = controller.getRawAxis(portJoystickLXAxis);\t\t//returns a value [-1,1]\n\t\tjoystickLYAxis = controller.getRawAxis(portJoystickLYAxis);\t\t//returns a value [-1,1]\n\t\tjoystickLPress = controller.getRawButton(portJoystickLPress);\t//returns a value {0,1}\n\t\t\n\t\t//right joystick update\n\t\tjoystickRXAxis = controller.getRawAxis(portJoystickRXAxis);\t\t//returns a value [-1,1]\n\t\tjoystickRYAxis = controller.getRawAxis(portJoystickRYAxis);\t\t//returns a value [-1,1]\n\t\tjoystickRPress = controller.getRawButton(portJoystickRPress);\t//returns a value {0,1}\n\t\t\n\t\t//trigger updates\n\t\ttriggerL = controller.getRawAxis(portTriggerL);\t\t//returns a value [0,1]\n\t\ttriggerR = controller.getRawAxis(portTriggerR);\t\t//returns a value [0,1]\n\t\t\n\t\t//bumper updates\n\t\tbumperL = controller.getRawButton(portBumperL);\t\t//returns a value {0,1}\n\t\tbumperR = controller.getRawButton(portBumperR);\t\t//returns a value {0,1}\n\t\t\n\t\t//button updates\n\t\tbuttonX = controller.getRawButton(portButtonX);\t\t//returns a value {0,1}\n\t\tbuttonY = controller.getRawButton(portButtonY);\t\t//returns a value {0,1}\n\t\tbuttonA = controller.getRawButton(portButtonA);\t\t//returns a value {0,1}\n\t\tbuttonB = controller.getRawButton(portButtonB);\t\t//returns a value {0,1}\n\t\t\n\t\tbuttonBack = controller.getRawButton(portButtonBack);\t//returns a value {0,1}\n\t\tbuttonStart = controller.getRawButton(portButtonStart);\t//returns a value {0,1}\n\t\t\n\t\t//toggle checks\n\t\ttankDriveBool = checkButton(buttonX, tankDriveBool, portButtonX);\t\t//toggles boolean if button is pressed\n\t\tfastBool = checkButton(buttonB, fastBool, portButtonB);\t\t\t\t\t//toggles boolean if button is pressed\n\t\t\n\t\t\n\t\t//d-pad/POV updates\n\t\tdPad = controller.getPOV(portDPad);\t\t//returns a value {-1,0,45,90,135,180,225,270,315}\n\n\t\t//d-pad/POV turns\n\t\tif (dPad != -1) {\n\t\t\tdPad = 360 - dPad; //Converts the clockwise dPad rotation into a Gyro-readable counterclockwise rotation.\n\t\t\trotateTo(dPad);\n\t\t}\n\t\t\n\t\tjoystickDeadZone();\n\t}",
"@Override\n\tpublic boolean isHardware(){\n\t\treturn false;\n\t}",
"Boolean isAvailable();",
"public Boolean isReady()\n {\n return (sensorModules != null && !sensorModules.isEmpty());\n }",
"@Override\n\tpublic boolean supportsUpdate() {\n\t\treturn false;\n\t}",
"private void checkUpdateCheckTriggered(PackageVersions packageVersions) {\n // Assert the PackageTracker attempted to trigger an update.\n mFakeIntentHelper.assertUpdateTriggered();\n\n // If an update check was triggered reliability triggering should always be enabled to\n // ensure that it can be completed if it fails.\n mFakeIntentHelper.assertReliabilityTriggerScheduled();\n\n // Check the expected storage state.\n checkPackageStorageStatus(PackageStatus.CHECK_STARTED, packageVersions);\n }",
"public synchronized boolean isMotorStarted() {\n return isMotorStarted;\n }",
"public boolean updated() {\n return (!getText().equals(\"0.0.0.0\"));\n }",
"boolean isDegraded();",
"@DISPID(12)\n\t// = 0xc. The runtime will prefer the VTID if present\n\t@VTID(21)\n\tboolean updated();",
"public boolean isUpdateRequired(int maximumUpdateTime)\n\t{\n\t\t\n\t\tboolean needToUpdate = false;\n\t\t\n\t\tfor (Journey j : journeyManager.journeys())\n\t\t{\n\t\t\tneedToUpdate |= (j.remainingTime() == 0);\n\t\t}\n\t\t\n\t\tDuration diff = new Duration(lastUpdated, new DateTime());\n\t\tLog.i(\"Updater\", Long.toString(diff.getStandardMinutes()));\n\t\t\n\t\tneedToUpdate |= (diff.getStandardMinutes() > maximumUpdateTime);\n\t\t\n\t\treturn needToUpdate;\n\t}",
"protected boolean enableDNSAndTestConfigUpdate() throws Throwable {\n if (enableDNS() &&\n rebootAndWait(\"all\") &&\n verifyHivecfg() //&&\n //upgradeChecker()\n ) {\n okToProceed = true;\n return true;\n }\n return false;\n }",
"private boolean needWait(Context context) {\n String flag = get2thDexSHA1(context);\n SharedPreferences sp = context.getSharedPreferences(\n getPackageInfo().versionName, MODE_MULTI_PROCESS);\n String saveValue = sp.getString(KEY_DEX2_SHA1, \"\");\n return !StringUtils.equals(flag, saveValue);\n }",
"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 }",
"public void enableUpdate() {\n\t\tupdate = true;\n\t}",
"boolean isCalibrating();",
"boolean hasStatusChanged();",
"public boolean isReady();",
"public boolean isReady();",
"private boolean isNeedReloadModem(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNeedReloadModem(int):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNeedReloadModem(int):boolean\");\n }",
"public void ondemandSetupIsDone();"
] | [
"0.6866685",
"0.6805362",
"0.6574942",
"0.6562339",
"0.6473765",
"0.637106",
"0.61946857",
"0.618664",
"0.6123209",
"0.60928327",
"0.60928327",
"0.60352516",
"0.60197526",
"0.5966222",
"0.5919129",
"0.59159946",
"0.59158945",
"0.5871697",
"0.5840785",
"0.5835281",
"0.5818724",
"0.58174574",
"0.5812585",
"0.5807538",
"0.58041275",
"0.5787471",
"0.57496697",
"0.5747085",
"0.5709519",
"0.5702275",
"0.56999636",
"0.5692029",
"0.5655506",
"0.5649802",
"0.5648233",
"0.56309426",
"0.5624986",
"0.56043446",
"0.56010187",
"0.55746675",
"0.55729824",
"0.55684143",
"0.55630744",
"0.5544989",
"0.5544524",
"0.5541422",
"0.55362684",
"0.552395",
"0.54947233",
"0.54824436",
"0.54816025",
"0.54816025",
"0.54745996",
"0.54676414",
"0.5460405",
"0.54525495",
"0.54499114",
"0.54396325",
"0.54347456",
"0.5433416",
"0.5432642",
"0.5427159",
"0.5418342",
"0.541433",
"0.5411302",
"0.5405677",
"0.5405677",
"0.5388083",
"0.5387596",
"0.5387596",
"0.5387596",
"0.5387596",
"0.5375001",
"0.53722745",
"0.5371792",
"0.5370458",
"0.5367688",
"0.53655624",
"0.53635633",
"0.5360693",
"0.5360042",
"0.5357158",
"0.53566766",
"0.53562814",
"0.5353172",
"0.534944",
"0.53402716",
"0.5338718",
"0.5336218",
"0.5335552",
"0.533447",
"0.53337806",
"0.5332586",
"0.5320823",
"0.5318545",
"0.5317042",
"0.5311316",
"0.5311296",
"0.5311296",
"0.53104764",
"0.5306357"
] | 0.0 | -1 |
Check speed CAN messages are sent. Visually able to see potential performance improvements/issues. | public static boolean checkFrameRates(TalonSRX t) // TODO pass in criteria (ex: CurrentLimits)?
{
boolean result = true;
List<FrameCriteria> expectations = Arrays.asList(new FrameCriteria[] {
new FrameCriteria(StatusFrameEnhanced.Status_1_General, 5, CRITERIA.NO_FASTER_THAN),
new FrameCriteria(StatusFrameEnhanced.Status_1_General, 20, CRITERIA.NO_SLOWER_THAN),
new FrameCriteria(StatusFrameEnhanced.Status_2_Feedback0, 5, CRITERIA.NO_FASTER_THAN),
new FrameCriteria(StatusFrameEnhanced.Status_10_MotionMagic, 10, CRITERIA.NO_FASTER_THAN),
new FrameCriteria(StatusFrameEnhanced.Status_13_Base_PIDF0, 100, CRITERIA.NO_FASTER_THAN),
});
ConsoleLogger.info(String.format("Motor %d Frames:", t.getDeviceID()));
for (FrameCriteria criteria : expectations)
{
int actual = t.getStatusFramePeriod(criteria.frame, 0);
ConsoleLogger.info(String.format("%s: %d ms", criteria.frame, actual));
result &= criteria.verify(actual);
}
System.out.println(String.format("Motor %d frames %s", t.getDeviceID(), (result) ? "okay" : "failed"));
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkSpeed() {\n\t\tboolean flag = oTest.checkSpeed();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Override\n public void handleMessage(Message msg) {\n sendEmptyMessageDelayed(0, 3000);\n if (resClient.getSendBufferFreePercent() <= 0.05) {\n Toast.makeText(StreamingActivity.this, \"sendbuffer is full,netspeed is low!\", Toast.LENGTH_SHORT).show();\n }\n }",
"void check_and_send(){\r\n\t\twhile(not_ack_yet <= WINDOW_SIZE){\r\n\t\t\tif(covered_datagrams >= total_datagrams)\r\n\t\t\t\treturn;\r\n\t\t\t//send one data more\r\n\t\t\tcovered_datagrams++;\r\n\t\t\tbyte[] data_to_send = Helper.get_bytes(data_send,(covered_datagrams-1)*BLOCK_SIZE,BLOCK_SIZE);\r\n\t\t\tDataDatagram send = new DataDatagram((short)the_connection.session_num,\r\n\t\t\t\t\t(short)(covered_datagrams),data_to_send,the_connection);\r\n\t\t\tsend.send_datagram();\r\n\t\t\tput_and_set_timer(send);\r\n\t\t}\r\n\t}",
"private void updateNetworkSpeed() {\n Message obtain = Message.obtain();\n obtain.what = 200000;\n long j = 0;\n if (isDemoOrDrive() || this.mDisabled || !this.mIsNetworkConnected) {\n obtain.arg1 = 0;\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n return;\n }\n long currentTimeMillis = System.currentTimeMillis();\n long totalByte = getTotalByte();\n if (totalByte == 0) {\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n totalByte = getTotalByte();\n }\n long j2 = this.mLastTime;\n if (j2 != 0 && currentTimeMillis > j2) {\n long j3 = this.mTotalBytes;\n if (!(j3 == 0 || totalByte == 0 || totalByte <= j3)) {\n j = ((totalByte - j3) * 1000) / (currentTimeMillis - j2);\n }\n }\n obtain.arg1 = 1;\n obtain.obj = Long.valueOf(j);\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = currentTimeMillis;\n this.mTotalBytes = totalByte;\n postUpdateNetworkSpeedDelay((long) this.mNetworkUpdateInterval);\n }",
"boolean hasMPPerSecond();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"public boolean canTransmitMessages()\n {\n return true;\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00001000) == 0x00001000);\n }",
"boolean isSending();",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"boolean isTransmitting();",
"public static boolean isConnectionFast(int type, int subType){\n if(type==ConnectivityManager.TYPE_WIFI){\n \tSystem.out.println(\"WIFI\");\n \t\n return true;\n }else if(type==ConnectivityManager.TYPE_MOBILE){\n \t\n \tSystem.out.println(\"mobile\");\n \t\n switch(subType){\n case TelephonyManager.NETWORK_TYPE_1xRTT:\n return false; // ~ 50-100 kbps\n case TelephonyManager.NETWORK_TYPE_CDMA:\n return false; // ~ 14-64 kbps\n case TelephonyManager.NETWORK_TYPE_EDGE:\n return false; // ~ 50-100 kbps\n case TelephonyManager.NETWORK_TYPE_EVDO_0:\n return true; // ~ 400-1000 kbps\n case TelephonyManager.NETWORK_TYPE_EVDO_A:\n return true; // ~ 600-1400 kbps\n case TelephonyManager.NETWORK_TYPE_GPRS:\n \tSystem.out.println(\"GPRS\");\n return false; // ~ 100 kbps\n case TelephonyManager.NETWORK_TYPE_HSDPA:\n return true; // ~ 2-14 Mbps\n case TelephonyManager.NETWORK_TYPE_HSPA:\n return true; // ~ 700-1700 kbps\n case TelephonyManager.NETWORK_TYPE_HSUPA:\n return true; // ~ 1-23 Mbps\n case TelephonyManager.NETWORK_TYPE_UMTS:\n \tSystem.out.println(\"UMTS\");\n return true; // ~ 400-7000 kbps\n /*\n * Above API level 7, make sure to set android:targetSdkVersion \n * to appropriate level to use these\n */\n case TelephonyManager.NETWORK_TYPE_EHRPD: // API level 11 \n return true; // ~ 1-2 Mbps\n case TelephonyManager.NETWORK_TYPE_EVDO_B: // API level 9\n return true; // ~ 5 Mbps\n case TelephonyManager.NETWORK_TYPE_HSPAP: // API level 13\n return true; // ~ 10-20 Mbps\n case TelephonyManager.NETWORK_TYPE_IDEN: // API level 8\n return false; // ~25 kbps \n case TelephonyManager.NETWORK_TYPE_LTE: // API level 11\n return true; // ~ 10+ Mbps\n // Unknown\n case TelephonyManager.NETWORK_TYPE_UNKNOWN:\n default:\n return false;\n }\n }else{\n return false;\n }\n }",
"public void run(){\n long startTime = System.nanoTime();\n long elapsedTime = System.nanoTime() - startTime;\n while(elapsedTime<500000000 && p.acknowledged == false){\n //echo(\"Waiting\");\n elapsedTime = System.nanoTime() - startTime;\n if(p.acknowledged == true){\n return;\n }\n }\n if(elapsedTime>= 500000000)\n {\n p.timed = true;\n //System.out.println(\"thread timed out at packet \"+ p.getSeq());\n for(int i=p.getSeq(); i<p.getSeq()+window; i++){\n if(i<packets.size()){\n packets.get(i).sent = false;\n }\n }\n //p.sent = false;\n }\n\n\n }",
"boolean hasSimspeed();",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"private boolean isGettingData(){\n int available;\n long startTime = System.nanoTime();\n int timeout = 100;\n InputStream inStream = null;\n flushStream();\n try {\n if(socket!=null)\n inStream = socket.getInputStream();\n Thread.sleep(100); //The Arduino keeps sending data for 100ms after it is told to stop\n }catch(IOException | InterruptedException e){}\n try {\n while (true) {\n available = inStream.available();\n if (available > 0) {\n return true;\n }\n Thread.sleep(1);\n long estimatedTime = System.nanoTime() - startTime;\n long estimatedMillis = TimeUnit.MILLISECONDS.convert(estimatedTime,\n TimeUnit.NANOSECONDS);\n if (estimatedMillis > timeout){\n return false; //timeout, no data coming\n }\n }\n }catch(IOException | InterruptedException | NullPointerException e){\n Log.d(\"Exception\", \"Exception\");\n }\n return false;\n }",
"boolean hasSendTime();",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"@Ignore\n @Test\n public void testPerformanceFuserOnly() throws JAXBException, ClassNotFoundException, Exception\n {\n int num_messages = 20000;\n int num_samples = 10;\n \n long total = 0;\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n \n for( int i = 0; i < num_samples; i++ )\n {\n long proc_time = sendMatmFlightMsgs( num_messages );\n total = total + proc_time;\n min = Math.min( min, proc_time );\n max = Math.max( max, proc_time );\n }\n \n log.info( \"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\" );\n log.info( \"Ran \" + num_samples + \" samples. Avg Time = \" + ( total / num_samples ) + \n \", Min Time = \" + min + \", Max Time = \" + max );\n log.info( \"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\" ); \n }",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"boolean hasReceiveTime();",
"@Test\n\tpublic void testFastRequestMessageChokedAllowedFastOverLimit() throws Exception {\n\n\t\t// Given\n\t\tfinal PieceDatabase pieceDatabase = MockPieceDatabase.create (\"111111111111111\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\t\tBlockDescriptor request = new BlockDescriptor (14, 0, 16384);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveNoneMessage());\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveAllMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (1));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (2));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (3));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (4));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (6));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (9));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (10));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (12));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (13));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (14));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\n\t\t// When\n\t\t// They request an Allowed Fast piece while choked but over the allowed piece count\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (0));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (1));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (2));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (3));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (4));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (5));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (6));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (7));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (8));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveMessage (9));\n\t\tmockConnection.mockInput (PeerProtocolBuilder.requestMessage (request));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.rejectRequestMessage (request));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tassertTrue (mockConnection.isOpen());\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}",
"boolean hasSendReading();",
"public boolean hasSpeed() {\n return ((bitField0_ & 0x00000800) == 0x00000800);\n }",
"@Scheduled(fixedRate = 2000)\n private void doSendRpcUsage() {\n List<MethodCallDTO> items = stats.values()\n .stream()\n .map(stat -> new MethodCallDTO(\n stat.name,\n stat.count.longValue(),\n stat.lastCall.longValue(),\n stat.lastResult.get(),\n stat.curl))\n .sorted((s1, s2) -> s1.getMethodName().compareTo(s2.getMethodName()))\n .collect(Collectors.toList());\n\n clientMessageService.sendToTopic(\"/topic/rpcUsage\", items);\n }",
"@Test\n\tpublic void testFastRequestMessageChokedAllowedFast() throws Exception {\n\n\t\t// Given\n\t\tfinal PieceDatabase pieceDatabase = MockPieceDatabase.create (\"1\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\t\tBlockDescriptor request = new BlockDescriptor (0, 0, 16384);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveNoneMessage());\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveAllMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (0));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\n\t\t// When\n\t\t// They request an Allowed Fast piece while choked\n\t\tmockConnection.mockInput (PeerProtocolBuilder.requestMessage (request));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.pieceMessage (\n\t\t\t\trequest,\n\t\t\t\tpieceDatabase.readPiece (request.getPieceNumber()).getBlock (request)\n\t\t));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tassertTrue (mockConnection.isOpen());\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}",
"@Test\n\tpublic void testFastAllowedFastMessage() throws Exception {\n\n\t\t// Given\n\t\tfinal PieceDatabase pieceDatabase = MockPieceDatabase.create (\"00000\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tfinal BlockDescriptor requestDescriptor = new BlockDescriptor (2, 0, 16384);\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (true);\n\t\twhen(peerSetContext.requestManager.allocateRequests (any (ManageablePeer.class), anyInt(), eq (true)))\n\t\t\t\t.thenReturn (Arrays.asList (new BlockDescriptor[] { requestDescriptor }))\n\t\t\t\t.thenReturn (new ArrayList<BlockDescriptor>());\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\n\t\t// When\n\t\t// They send an Allowed Fast message, allowing us to make a request while choked\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveAllMessage());\n\t\tmockConnection.mockInput (PeerProtocolBuilder.allowedFastMessage (2));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveNoneMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.interestedMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.requestMessage (requestDescriptor));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tverify(peerSetContext.requestManager).pieceAllowedFast (handler, 2);\n\t\tassertTrue (mockConnection.isOpen());\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}",
"boolean isReceiving();",
"public void testMaximumMessages() throws Exception {\n for (int i = 0; i < 1024 + 1; i++) {\n sendMessage(i);\n waitForMs(50);\n }\n\n sendMessage(0);\n waitForMs(40);\n // Check if the oldest one has been already evicted.\n CellBroadcastMessage cbmTest =\n (CellBroadcastMessage) mServiceIntentToVerify.getExtras().get(\"message\");\n CellBroadcastMessage cbm = new CellBroadcastMessage(createMessage(0));\n\n compareCellBroadCastMessage(cbm, cbmTest);\n mActivityIntentToVerify = null;\n }",
"private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}",
"boolean hasBitrate();",
"public boolean isConnectionActive ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _bbCanSend;\r\n\t\t}\r\n\t}",
"private boolean canSend() {\n\n if (StringUtils.isEmpty(constructedCommand())) return false;\n\n int beginIndex = constructedCommand()\n .indexOf(serialProperties.getCmdBeginMarker());\n int endIndex = constructedCommand()\n .indexOf(serialProperties.getCmdEndMarker());\n\n return beginIndex != -1 && endIndex != -1 && beginIndex < endIndex;\n }",
"@Override\n\tprotected Result check() throws Exception {\n\t\tif (failedMessageMeter != null && failedMessageMeter.getFifteenMinuteRate() > 0) {\n\t\t\treturn Result.unhealthy(\">1 messages failed to be sent to Kafka in the past 15minutes\");\n\t\t} else {\n\t\t\treturn Result.healthy();\n\t\t}\n\t}",
"public boolean isCharged();",
"public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }",
"@Test\n\tpublic void testFastHaveAllMessage() throws Exception {\n\n\t\t// Given\n\t\tfinal PieceDatabase pieceDatabase = MockPieceDatabase.create (\"00000\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (true);\n\t\twhen(peerSetContext.requestManager.allocateRequests (any (ManageablePeer.class), anyInt(), eq (false))).thenReturn (new ArrayList<BlockDescriptor>());\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveAllMessage());\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveNoneMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.interestedMessage());\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tassertTrue (mockConnection.isOpen());\n\t\tassertEquals (5, handler.getRemoteBitField().cardinality());\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}",
"private void TestSerialInput() {\r\n int now = GetMills(), nby = now - PrioSeriTime;\r\n SerialPortSwapper myPort = surrealPort;\r\n if (myPort == null) return; // otherwise test for input, fwd to listener..\r\n PrioSeriTime = now;\r\n if (SpeakEasy) if (nby > 222) // should be every ms, but seems not..\r\n System.out.println(FormatMillis(\" (LATE TSI) +\", nby)\r\n + FormatMillis(\" @ \", now));\r\n if (CountingPulses > 0) { // once each second, ask for current count..\r\n PCtime = PCtime + nby; // count actual elapsed time\r\n if (PCtime >= CountingPulses) { // always logs..\r\n Send3bytes(REPORT_PULSECOUNT, 0, 0); // pin + is ignored\r\n PCtime = PCtime - CountingPulses;\r\n }\r\n } //~if\r\n try {\r\n nby = surrealPort.getInputBufferBytesCount();\r\n if (nby <= 0) return;\r\n if (OneSerEvt == null) // ProcInp only looks at type, so keep this one..\r\n OneSerEvt = new SerialPortEvent(\r\n CommPortNo, SerialPort.MASK_RXCHAR, nby);\r\n ProcessInput(OneSerEvt);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n }",
"public boolean hasSimspeed() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"private void checkChargeTime() {\n\t\tif (elapsedTimeSeconds > chargeTimeP1) {\n\t\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\t}\n\t}",
"public void verifySpeeds() {\n double maxStartSpeed = 0.0;\n double[] startSpeeds = new double[segments.size() + 1];\n startSpeeds[segments.size()] = 0.0;\n for (int i = segments.size() - 1; i >= 0; i--) {\n PathSegment segment = segments.get(i);\n maxStartSpeed += Math\n .sqrt(maxStartSpeed * maxStartSpeed + 2 * maxAccel * segment.getLength());\n startSpeeds[i] = segment.getStartState().vel();\n if (startSpeeds[i] > maxStartSpeed) {\n startSpeeds[i] = maxStartSpeed;\n }\n maxStartSpeed = startSpeeds[i];\n }\n for (int i = 0; i < segments.size(); i++) {\n PathSegment segment = segments.get(i);\n double endSpeed = startSpeeds[i + 1];\n MotionState startState = (i > 0) ? segments.get(i - 1).getEndState() : new MotionState(0, 0, 0, 0);\n startState = new MotionState(0, 0, startState.vel(), startState.vel());\n segment.createMotionProfiler(startState, endSpeed);\n }\n }",
"public void testIO(){\r\n // Don't do this every iteration because it's too expensive\r\n if(testIOTimer.get() < 0.5) {\r\n return;\r\n }\r\n testIOTimer.reset();\r\n NetworkTable table = NetworkTable.getTable(\"Status\");\r\n table.putNumber(\"dioData\", digitalModule.getAllDIO());\r\n for(int i = 1; i <= 10; i++) {\r\n table.putNumber(\"pwm\" + i, digitalModule.getPWM(i));\r\n }\r\n \r\n for(int i = 1; i <= 8; i++) {\r\n table.putNumber(\"analog\" + i, ((int)(analogModule.getVoltage(i) * 1000) / 1000.0));\r\n }\r\n }",
"public boolean hasSimspeed() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"private synchronized boolean sendBatch() {\n if (fPending.isEmpty()) {\n return true;\n }\n\n final long nowMs = Clock.now();\n\n if (this.fHostSelector != null) {\n host = this.fHostSelector.selectBaseHost();\n }\n\n final String httpurl = MRConstants.makeUrl(host, fTopic, props.getProperty(DmaapClientConst.PROTOCOL),\n props.getProperty(DmaapClientConst.PARTITION));\n\n try {\n\n final ByteArrayOutputStream baseStream = new ByteArrayOutputStream();\n OutputStream os = baseStream;\n final String contentType = props.getProperty(DmaapClientConst.CONTENT_TYPE);\n if (contentType.equalsIgnoreCase(MRFormat.JSON.toString())) {\n JSONArray jsonArray = parseJSON();\n os.write(jsonArray.toString().getBytes());\n os.close();\n\n } else if (contentType.equalsIgnoreCase(CONTENT_TYPE_TEXT)) {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA.toString())\n || (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString()))) {\n if (contentType.equalsIgnoreCase(MRFormat.CAMBRIA_ZIP.toString())) {\n os = new GZIPOutputStream(baseStream);\n }\n for (TimestampedMessage m : fPending) {\n\n os.write((\"\" + m.fPartition.length()).getBytes());\n os.write('.');\n os.write((\"\" + m.fMsg.length()).getBytes());\n os.write('.');\n os.write(m.fPartition.getBytes());\n os.write(m.fMsg.getBytes());\n os.write('\\n');\n }\n os.close();\n } else {\n for (TimestampedMessage m : fPending) {\n os.write(m.fMsg.getBytes());\n\n }\n os.close();\n }\n\n final long startMs = Clock.now();\n if (ProtocolType.DME2.getValue().equalsIgnoreCase(protocolFlag)) {\n\n configureDME2();\n\n this.wait(5);\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), url + subContextPath, nowMs - fPending.peek().timestamp);\n }\n sender.setPayload(os.toString());\n String dmeResponse = sender.sendAndWait(5000L);\n\n logTime(startMs, dmeResponse);\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AUTH_KEY.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result =\n postAuth(new PostAuthDataObject().setPath(httpurl).setData(baseStream.toByteArray())\n .setContentType(contentType).setAuthKey(authKey).setAuthDate(authDate)\n .setUsername(username).setPassword(password).setProtocolFlag(protocolFlag));\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.AAF_AUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = post(httpurl, baseStream.toByteArray(), contentType, username, password,\n protocolFlag);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n\n if (ProtocolType.HTTPNOAUTH.getValue().equalsIgnoreCase(protocolFlag)) {\n if (fPending.peek() != null) {\n logSendMessage(fPending.size(), httpurl, nowMs - fPending.peek().timestamp);\n }\n final JSONObject result = postNoAuth(httpurl, baseStream.toByteArray(), contentType);\n\n // Here we are checking for error response. If HTTP status\n // code is not within the http success response code\n // then we consider this as error and return false\n if (result.getInt(JSON_STATUS) < 200 || result.getInt(JSON_STATUS) > 299) {\n return false;\n }\n logTime(startMs, result.toString());\n fPending.clear();\n return true;\n }\n } catch (InterruptedException e) {\n getLog().warn(\"Interrupted!\", e);\n // Restore interrupted state...\n Thread.currentThread().interrupt();\n } catch (Exception x) {\n getLog().warn(x.getMessage(), x);\n }\n return false;\n }",
"public void check() {\n\t\t\ttry {\n\t\t\t\twhile (num < MAX) {\n\t\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\t\tlong workingNum = num;\n\t\t\t\t\tif (isPrime(workingNum)) {\n\t\t\t\t\t\tif (workingNum == 1)\n\t\t\t\t\t\t\tworkingNum = 2;\n\t\t\t\t\t\tmsg.obj = workingNum;\n\t\t\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t\t\tThread.sleep(500);\n\t\t\t\t\t}\n\n\t\t\t\t\tnum += 2;\n\n\t\t\t\t}\n\n\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\tLog.d(TAG, \"Counter has reached Max\");\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.putString(\"max\", \"Counter has reached Max\");\n\t\t\t\tmsg.setData(bundle);\n\t\t\t\thandler.sendMessage(msg);\n\n\t\t\t\t// If the Thread is interrupted.\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tLog.d(TAG, \"Thread interrupted\");\n\t\t\t}\n\n\t\t}",
"public MonitorResult checkDhxSend() {\r\n MonitorResult result = new MonitorResult();\r\n result.setComponent(\"DHX_SEND\");\r\n\r\n logger.info(\"Testing DHX_SEND...\");\r\n\r\n double duration = 0;\r\n Date start = new Date();\r\n long startTime = start.getTime();\r\n\r\n /*\r\n * 1. Query ADIT database for all documents that are meant for sending\r\n * to DHX. If there are messages that are not sent to DHX in the\r\n * specified period, then the connection is broken.\r\n */\r\n\r\n // 1. Query ADIT database\r\n try {\r\n long comparisonDateMs = (new Date()).getTime();\r\n comparisonDateMs = comparisonDateMs - getMonitorConfiguration().getDocumentSendToDhxInterval();\r\n Date comparisonDate = new Date(comparisonDateMs);\r\n\r\n List<DocumentSharing> documentSharings = getDocumentSharingDAO().getDVKSharings(comparisonDate);\r\n\r\n if (documentSharings != null && documentSharings.size() > 0) {\r\n // DVK connection down - documents were found, that have not\r\n // been sent to DVK in time\r\n throw new AditInternalException(\"Number of documents not sent to DVK client in time: \"\r\n + documentSharings.size());\r\n } else {\r\n logger.debug(\"No document sharings found for DVK (with status 'missing' - 100)\");\r\n result.setSuccess(true);\r\n }\r\n\r\n Date end = new Date();\r\n long endTime = end.getTime();\r\n duration = (endTime - startTime) / 1000.0;\r\n result.setDuration(duration);\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error while testing DVK_SEND: \", e);\r\n result.setSuccess(false);\r\n List<String> exceptions = new ArrayList<String>();\r\n exceptions.add(e.getMessage());\r\n result.setExceptions(exceptions);\r\n }\r\n\r\n return result;\r\n }",
"private boolean analyzeCommand(String line, PrintWriter outputStream)\n\t{\n\t\t\n\t\t\n\t\tint periodIndex =line.indexOf('.');\n\t\tthis.adjustPing(System.currentTimeMillis());\n\t\t\n\t\tif (periodIndex <= 0 || periodIndex == line.length() - 1)\n\t\t{\n\t\t\toutputStream.println(\"Invalid Command: \" + line);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tString command = line.substring(0, periodIndex);\n\t\tString subCommand = line.substring(periodIndex + 1);\n\t\t\n\t\tif (command.equals(\"UID\"))\n\t\t{\n\t\t\tif(verifyUID(subCommand))\n\t\t\t{\n\t\t\t\t//System.out.println(\"Valid uid\");\n\t\t\t\toutputStream.println(\"Valid UID. Accepting client connection.\");\n\t\t\t\treturn true;\n\t\t\t} else\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(command.equals(\"A\"))\n\t\t{\n\t\t\toutputStream.println(\"Thank you for the audio bytes! (Old TCP implementation)\");\n\t\t\t\n\t\t\t//if the number of buffers is > than the ping ratio, play the audio from one buffer\n\t\t\t\n\t\t\t//if the ping is greater than the audio rate, then create a buffer of twice the size and play from there.\n\t\t\treturn true;\n\t\t\t \n\t\t\n\t\t}\n\n\t\tif (command.equals(\"F\"))\n\t\t{\n\t\t\t\n\t\t\tString[] specifications = subCommand.split(this.regex);\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tfloat sampleRate = Float.parseFloat(specifications[0]);\n\t\t\t\tint sampleSizeInBits = Integer.parseInt(specifications[1]);\n\t\t\t\tint channels = Integer.parseInt(specifications[2]);\n\t\t\t\tint frameSize = Integer.parseInt(specifications[3]);\n\t\t\t\tfloat frameRate = Float.parseFloat(specifications[4]);\n\t\t\t\tclientAudioFormat = new AudioFormat(AudioFormat.Encoding.PCM_SIGNED, sampleRate, sampleSizeInBits, channels, frameSize, frameRate, false);\n\t\t\t\n\t\t\t} catch (NumberFormatException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\toutputStream.println(\"Invalid number format for one or more audio format specifications\");\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t} catch(ArrayIndexOutOfBoundsException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t\toutputStream.println(\"Invalid number of audio format specifications\");\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (command.equals(\"S\"))\n\t\t{\n\t\t\tString[] specifications = subCommand.split(this.regex);\n\n\t\t\tif (!specifications[0].equals(\"clumpSize\")) {\n\t\t\t\tif (subCommand.equals(\"disconnect\")) {\n\t\t\t\t\t//reset client stuff\n\t\t\t\t\t//System.out.println(\"Closing client connection.\");\n\t\t\t\t\tthis.closeClientConnection();\n\t\t\t\t}\n\n\t\t\t\tif (subCommand.equals(\"close\")) {\n\t\t\t\t\t//closes the server.\n\t\t\t\t\t//System.out.println(\"Closing server.\");\n\t\t\t\t\tthis.closeServer();\n\t\t\t\t}\n\n\t\t\t\tif (subCommand.equals(\"udp\")) {\n\t\t\t\t\t//System.out.println(\"Beginning UDP transition.\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsetupUDP(this.portNumber);\n\t\t\t\t\t} catch (SocketException e) {\n\t\t\t\t\t\t//System.out.println(\"Could not open socket\");\n\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else\n\t\t\t{\n\t\t\t\tif (specifications[0].equals(\"clumpSize\")) {\n\t\t\t\t\tint clumpSize = Integer.parseInt(specifications[1]);\n\t\t\t\t\t//System.out.println(\"Setting clump size to : \" + clumpSize);\n\t\t\t\t\tthis.clumpSize = clumpSize;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"void beginSendData(){\n stopSendThread = false;\n final Thread thread = new Thread(new Runnable() {\n\n public void run() {\n while(!Thread.currentThread().isInterrupted() && !stopSendThread){\n try{\n try {\n Thread.currentThread().sleep(100);\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n String string = \":1\" + (char)speedLeft + (char)speedRight + \"@\";\n try {\n os.write(string.getBytes());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n } catch (Exception e){\n e.printStackTrace();\n stopSendThread = true;\n }\n\n\n }\n\n }\n });\n thread.start();\n System.out.println(\"koniec funkcji startsend\");\n }",
"public static boolean isConnectedFast(Context context){\n NetworkInfo info = Connectivity.getNetworkInfo(context);\n return (info != null && info.isConnected() && Connectivity.isConnectionFast(info.getType(),info.getSubtype()));\n }",
"final protected void sendCounterClock() {\n\t\tNode cn = peers.iterator().next();\n\t\tif (serial - cn.serial == 1 || (cn.serial - serial != 1 && cn.serial > serial))\n\t\t\tsend(cn);\n\t\telse\n\t\t\tsendAllBut(cn);\n\t}",
"public boolean CheckTimeInLevel(){\n \n Long comparetime = ((System.nanoTime() - StartTimeInLevel)/1000000000);\n \n return (comparetime>TILData.critpoints.get((int)speed));\n // stop tetris because this subject is an outlier for this level\n \n \n }",
"boolean hasHPPerSecond();",
"public static boolean testMonobit(byte[] data) \r\n {\r\n if( data.length != 2500 )\r\n throw new IllegalArgumentException(\"2500 bytes expected\");\r\n \r\n int total = 0;\r\n for(int i=0; i<2500; i++) {\r\n int hi = ONE_COUNT[ (data[i]>>4) & 0xF ];\r\n int lo = ONE_COUNT[ (data[i] ) & 0xF ];\r\n total += hi + lo;\r\n }\r\n \r\n return (9654 < total) && (total < 10346);\r\n }",
"private void checkSpeedAndReserved()\n\t{\n\t\t// only check every 5 seconds\n\t\tif(mainloop_loop_count % MAINLOOP_FIVE_SECOND_INTERVAL != 0)\n\t\t\treturn;\n\n\t\tfinal int\t\t\t\tnbPieces\t=_nbPieces;\n\t\tfinal PEPieceImpl[] pieces =pePieces;\n\t\t//for every piece\n\t\tfor (int i =0; i <nbPieces; i++)\n\t\t{\n\t\t\t// placed before null-check in case it really removes a piece\n\t\t\tcheckEmptyPiece(i);\n\n\n\t\t\tfinal PEPieceImpl pePiece =pieces[i];\n\t\t\t// these checks are only against pieces being downloaded\n\t\t\t// yet needing requests still/again\n\t\t\tif (pePiece !=null)\n\t\t\t{\n\t\t\t\tfinal long timeSinceActivity =pePiece.getTimeSinceLastActivity()/1000;\t\t\t\t\n\n\t\t\t\tint pieceSpeed =pePiece.getSpeed();\n\t\t\t\t// block write speed slower than piece speed\n\t\t\t\tif (pieceSpeed > 0 && timeSinceActivity*pieceSpeed*0.25 > DiskManager.BLOCK_SIZE/1024)\n\t\t\t\t{\n\t\t\t\t\tif(pePiece.getNbUnrequested() > 2)\n\t\t\t\t\t\tpePiece.setSpeed(pieceSpeed-1);\n\t\t\t\t\telse\n\t\t\t\t\t\tpePiece.setSpeed(0);\n\t\t\t\t}\n\n\n\t\t\t\tif(timeSinceActivity > 120)\n\t\t\t\t{\n\t\t\t\t\tpePiece.setSpeed(0);\n\t\t\t\t\t// has reserved piece gone stagnant?\n\t\t\t\t\tfinal String reservingPeer =pePiece.getReservedBy();\n\t\t\t\t\tif(reservingPeer !=null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfinal PEPeerTransport pt = getTransportFromAddress(reservingPeer);\n\t\t\t\t\t\t// Peer is too slow; Ban them and unallocate the piece\n\t\t\t\t\t\t// but, banning is no good for peer types that get pieces reserved\n\t\t\t\t\t\t// to them for other reasons, such as special seed peers\n\t\t\t\t\t\tif (needsMD5CheckOnCompletion(i))\n\t\t\t\t\t\t\tbadPeerDetected(reservingPeer, i);\n\t\t\t\t\t\telse if (pt != null)\n\t\t\t\t\t\t\tcloseAndRemovePeer(pt, \"Reserved piece data timeout; 120 seconds\", true);\n\n\t\t\t\t\t\tpePiece.setReservedBy(null);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!piecePicker.isInEndGameMode()){\n\t\t\t\t\t\tpePiece.checkRequests();\n\t\t\t\t\t}\n\n\t\t\t\t\tcheckEmptyPiece(i);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}",
"public static boolean isConnectionMetered(Context context){\n ConnectivityManager manager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n return manager != null && manager.isActiveNetworkMetered();\n }",
"public void send_message(){\n logical_clock++;\n System.out.println(\"Send Message Clock:\" +logical_clock);\n encrypt(logical_clock);\n\n }",
"boolean hasReceived();",
"@Test\n\tpublic void testFastBitfieldMessage() throws Exception {\n\n\t\t// Given\n\t\tfinal PieceDatabase pieceDatabase = MockPieceDatabase.create (\"00000\", 16384);\n\t\tBitField wantedPieces = pieceDatabase.getPresentPieces().not();\n\t\tpieceDatabase.start (true);\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\twhen(peerSetContext.requestManager.piecesAvailable (any (ManageablePeer.class))).thenReturn (true);\n\t\twhen(peerSetContext.requestManager.allocateRequests (any (ManageablePeer.class), anyInt(), eq (false))).thenReturn (new ArrayList<BlockDescriptor>());\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\n\t\t// When\n\t\tmockConnection.mockInput (PeerProtocolBuilder.bitfieldMessage (wantedPieces));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveNoneMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (0));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (1));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (2));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (3));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (4));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.interestedMessage());\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tassertTrue (mockConnection.isOpen());\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}",
"private boolean moreServerContent() {\n Stopwatch stopwatch = Stopwatch.createStarted();\n boolean moreDataAvailable;\n try {\n if (resIterator == null) {\n return false;\n }\n moreDataAvailable = resIterator.hasNext();\n recordSuccessMetric(MESSAGE_LATENCY_MS, stopwatch.elapsed(MILLISECONDS));\n } catch (Exception e) {\n recordErrorMetric(MESSAGE_LATENCY_MS, stopwatch.elapsed(MILLISECONDS), e);\n throw e;\n }\n if (!moreDataAvailable) {\n cancelCurrentRequest();\n }\n return moreDataAvailable;\n }",
"@Test\n\tpublic void testFastRequestMessageChokedNotAllowedFast() throws Exception {\n\n\t\t// Given\n\t\tfinal PieceDatabase pieceDatabase = MockPieceDatabase.create (\"111111111111111\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, mock (RequestManager.class), null);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), true, false);\n\t\tBlockDescriptor requestDescriptor = new BlockDescriptor (0, 0, 16384);\n\n\t\t// WHen\n\t\tmockConnection.mockInput (PeerProtocolBuilder.haveNoneMessage());\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.haveAllMessage());\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (1));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (2));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (3));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (4));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (6));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (9));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (10));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (12));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (13));\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.allowedFastMessage (14));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\n\t\t// When\n\t\t// They request a non Allowed Fast piece while choked\n\t\tmockConnection.mockInput (PeerProtocolBuilder.requestMessage (requestDescriptor));\n\t\thandler.connectionReady (mockConnection, true, true);\n\n\t\t// Then\n\t\tmockConnection.mockExpectOutput (PeerProtocolBuilder.rejectRequestMessage (requestDescriptor));\n\t\tmockConnection.mockExpectNoMoreOutput();\n\t\tassertTrue (mockConnection.isOpen());\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}",
"public boolean hasMPPerSecond() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasMPPerSecond() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() > 0)\n/* */ {\n/* 175 */ i = 5000L;\n/* */ }\n/* */ \n/* 178 */ long j = System.currentTimeMillis();\n/* */ \n/* 180 */ if (j > this.timeLastActivityMs + i)\n/* */ {\n/* 182 */ terminate(new InterruptedException(\"Timeout \" + i));\n/* */ }\n/* */ } \n/* */ }",
"private boolean checkBatteryLevelOK() {\n return true;\n }",
"private void stressTest() {\n\t\t\n\t\tTimerTask task = new TimerTask() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tint count = 1;\n\t\t\t\tint len = 100;\n\t\t\t\tint maxCount = 1000000;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Start stress test...\");\n\t\t\t\twhile (count <= maxCount) {\n\t\t\t\t\t\n\t\t\t\t\tif ((count % 1000) == 0) {\n\t\t\t\t\t\tSystem.out.println(\"Count: \" + count + \" of \" + maxCount);\n\t\t\t\t\t\tSystem.gc();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong larray[] = new long[len];\n\t\t\t\t\t\n\t\t\t\t\tlarray[0] = count;\n\t\t\t\t\tlarray[len-1] = count;\n\t\t\t\t\t\n\t\t\t\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\t\t\t\tmessage.setPayload(larray);\n\t\t\t\t\tsend(message);\n\n\t\t\t\t\t\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tThread.sleep(25);\n//\t\t\t\t\t} catch (InterruptedException e) {\n//\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t}\n\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Done.\");\n\n\t\t\t}\n\n\t\t};\n\n\t\tTimer timer = new Timer();\n\t\t// one time schedule\n\t\ttimer.schedule(task, 2000L);\n\t}",
"boolean isAvailable( long millis );",
"@Override\n\tprotected void sendSuccess(int seq) throws IOException {\n\t\tSR.updateBufferSlotTimerSender(seq, BufferSlotTimer.SENT);\n\t\tSR.output.append(\"(S) - Packet \" + seq + \" SENT \\n\");\n\t\tSR.updateNextSequenceSnd();\n\t\tSR.getFlyingPart(seq).setY(0);\n\t\tSR.getFlyingPart(seq).setAck(false);\n\t\tSR.getFlyingPart(seq).setVisible(true);\n\t\tSR.getBufferSlotTimerSender(seq).startTimerAnimation(new TimerTask() {\n\n\t\t\tint times = 0;\n\t\t\tprivate final int timesMax = (BufferSlotTimer.SEC_DELIVERY * 1000) / BufferSlotTimer.MSEC_ANIM;\n\t\t\tprivate final double distStep = SR.DISTANCE_BETWEEN_BUFFERS / timesMax;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\t++times;\n\t\t\t\tif (times > timesMax) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tbyte[] serializedMessage = serialization(new Packet(false, seq));\n\t\t\t\t\t\tmSocket.send(new DatagramPacket(serializedMessage, serializedMessage.length, mAddrReciever,\n\t\t\t\t\t\t\t\tPORT_RECEIVER));\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSR.getFlyingPart(seq).setVisible(false);\n\t\t\t\t\tSR.repaint();\n\t\t\t\t\tSR.getBufferSlotTimerSender(seq).stopTimerAnimation();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tSR.getFlyingPart(seq).setY((int) (distStep * times));\n\t\t\t\tSR.repaint();\n\t\t\t}\n\t\t});\n\t\tSR.getBufferSlotTimerSender(seq).startTimerTimeout(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\n\t\t\t\ttry {\n\t\t\t\t\tSR.retransmit();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Run process failed at packet sender: \" +e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void cekStatusGPSpeed() {\n\t\t\n\t\tlokasimanager = (LocationManager) Kecepatan.this.getSystemService(Context.LOCATION_SERVICE);\n\t\t\n\t\tcekGpsNet = new CekGPSNet(Kecepatan.this);\n\t\tisInternet = cekGpsNet.cekStatsInternet();\n\t\tisNetworkNyala = cekGpsNet.cekStatsNetwork();\n\t\tisGPSNyala = cekGpsNet.cekStatsGPS();\n\t\t\n\t\tstatusInternet = cekGpsNet.getKondisiNetwork(isInternet, isNetworkNyala);\n\t\tstatusGPS = cekGpsNet.getKondisiGPS(isGPSNyala);\n\t\t\n\t\tLog.w(\"STATUS GPS INTERNET\", \"GPS \" + statusGPS + \" INTERNET \" + statusInternet);\n\t\t\n\t\tif (statusInternet == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListNetwork);\n\t\t\tLog.w(\"Network\", \"Network\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG NETWORK\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif (statusGPS == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListGPS);\n\t\t\tLog.w(\"GPS\", \"GPS\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG GPS\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public void sendLog() {\n\t\tcommon.waitFor(5000);\n\t\tcommon.isElementDiplayed(sendButton);\n\t\tsendButton.click();\n\t\tcommon.isElementDiplayed(sucessMessage);\n\t\tsendButton.click();\n\n\t}",
"public boolean execute() {\n\t\t\t\t\n\t\tif( numberOfEncoders == 1) {\n\t\t\tif (Math.abs(rightDistanceTraveled - distance) <= error || Math.abs(leftDistanceTraveled - distance) <= error) {\n\t\t\t\tthis.reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if( numberOfEncoders == 2) {\n\t\t\tif (Math.abs(leftDistanceTraveled - distance) <= error && Math.abs(rightDistanceTraveled - distance) <= error ) {\n\t\t\t\tthis.reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n//\t\t\tif(Math.abs(prevErrorLeft - leftDistanceTraveled) <= 3 && Math.abs(prevErrorRight - rightDistanceTraveled) <= 3 && stallStartTime == 0) {\n//\t\t\t\tstallStartTime = System.currentTimeMillis();\n//\t\t\t} else {\n//\t\t\t\tstallStartTime = 0;\n//\t\t\t}\n\t\t}\n//\t\tSystem.out.println(stallStartTime + \" \" + Math.abs(prevErrorLeft - leftDistanceTraveled));\n//\t\tif(stallStartTime + timeout > System.currentTimeMillis()) {\n//\t\t\tthis.reset();\n//\t\t\treturn true;\n//\t\t}\n\t\t\n\t\tif(Math.abs(leftDistanceTraveled - distance) > error) {\n\t\t\tleftDistanceTraveled = SensorInputControl.getInstance().getEncoder(SensorType.DRIVE_TRAIN_LEFT_ENCODER).getDistance();\n\t\t\tleftDriveOutput = leftDistanceControlLoop.getPID(distance, leftDistanceTraveled);\n\t\t\t\n\t\t\tif(leftDriveOutput > 0) {\n\t\t\t\tleftDriveOutput = (leftDriveOutput < AutoDriveForward.MIN_SPEED ? AutoDriveForward.MIN_SPEED : leftDriveOutput);\n\t\t\t} else if(leftDriveOutput < 0) {\n\t\t\t\tleftDriveOutput = (leftDriveOutput > -AutoDriveForward.MIN_SPEED ? -AutoDriveForward.MIN_SPEED : leftDriveOutput);\n\t\t\t}\n\t\t} else {\n\t\t\tleftDistanceControlLoop.reset();\n\t\t\tleftDriveOutput = 0;\n\t\t}\n\t\t\n\t\tif(Math.abs(rightDistanceTraveled - distance) > error) {\n\t\t\trightDistanceTraveled = -SensorInputControl.getInstance().getEncoder(SensorType.DRIVE_TRAIN_RIGHT_ENCODER).getDistance();\n\t\t\trightDriveOutput = rightDistanceControlLoop.getPID(distance, rightDistanceTraveled);\n\t\t\t\n\t\t\tif(rightDriveOutput > 0) {\n\t\t\t\trightDriveOutput = (rightDriveOutput < AutoDriveForward.MIN_SPEED ? AutoDriveForward.MIN_SPEED : rightDriveOutput);\n\t\t\t} else if (rightDriveOutput < 0) {\n\t\t\t\trightDriveOutput = (rightDriveOutput > -AutoDriveForward.MIN_SPEED ? -AutoDriveForward.MIN_SPEED : rightDriveOutput);\n\t\t\t}\n\t\t} else {\n\t\t\trightDistanceControlLoop.reset();\n\t\t\trightDriveOutput = 0;\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"AutoDriveFwd::[left speed, right speed] \" + leftDriveOutput + \", \" + rightDriveOutput);\n\t\t\n\t\tDrivetrainControl.getInstance().setLeftDriveSpeed(-leftDriveOutput);\n\t\tDrivetrainControl.getInstance().setRightDriveSpeed(-rightDriveOutput);\n\t\t\n\t\tprevErrorLeft = leftDistanceTraveled - distance;\n\t\tprevErrorRight = rightDistanceTraveled - distance;\n\n\t\t\n\t\treturn false;\n\t\t\n\t}",
"public boolean dataIsReady()\n {\n boolean[] status = m_receiver.getBufferStatus();\n if (status.length == 0)\n {\n return false;\n }\n for (boolean b : status)\n {\n if (!b)\n return false;\n }\n return true;\n }",
"private synchronized void m16565c() {\n if (!(this.f14719b || this.f14723f.hasMessages(this.f14724g))) {\n this.f14723f.sendMessageDelayed(this.f14723f.obtainMessage(this.f14724g), 2000);\n }\n }",
"@Override\n public void run() {\n int time = 59;\n while (time >= -1) {\n try {\n Message message = new Message();\n message.what = AppConfig.CHECKCODE;\n message.obj = time;\n handler.sendMessage(message);\n Thread.sleep(1000);\n time--;\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"public void timeoutCheckAndRetransmit() throws IOException{\n\t\tfor ( int j=0; j<window.size(); j++ ){\n\t\t\tif (window.get(j).counter > DEFAULT_COUNTER_BOUND && window.get(j).acked == false){//retransmit this packet\n\t\t\t\treTransmit( j );\n\t\t\t\tSystem.out.println(\"SRSender \"+senderID+\" > \"+\"retransmit< \"+window.get(j).indexS+\", \"+(window.get(j).indexE-1)+\">\");\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}",
"@Override\n \n public void run() {\n try {\n sc = new Socket(HOST, PUERTO);\n\n in = new DataInputStream(sc.getInputStream());\n out = new DataOutputStream(sc.getOutputStream());\n \n String msg = \"\";\n String reply = \"True\";\n \n do {\n out.writeUTF(reply);\n \n msg = in.readUTF();\n if (msg.startsWith(\"Bus\")) {\n Filter(msg,Bus1,Bus2,Bus3,Bus4,Bus5);\n ChangeColorLabels(msg);\n }\n } while (!msg.equals(\"False\"));\n\n if (msg.equals(\"False\")) {\n reply = \"False\";\n out.writeUTF(reply);\n sc.close();\n }\n } catch (Exception e) {\n e.getMessage();\n }\n }",
"boolean hasDecodedAudioTimeoutMs();",
"boolean hasDecodedAudioTimeoutMs();",
"@Override\n\tboolean allow() {\n\t\tlong curTime = System.currentTimeMillis()/1000 * 1000;\n\t\tlong boundary = curTime - 1000;\n\t\tsynchronized (log) {\n\t\t\t//1. Remove old ones before the lower boundary\n\t\t\twhile (!log.isEmpty() && log.element() <= boundary) {\n\t\t\t\tlog.poll();\n\t\t\t}\n\t\t\t//2. Add / log the new time\n\t\t\tlog.add(curTime);\n\t\t\tboolean allow = log.size() <= maxReqPerUnitTime;\n\t\t\tSystem.out.println(curTime + \", log size = \" + log.size()+\", allow=\"+allow);\n\t\t\treturn allow;\n\t\t}\n\t}",
"@Test\n public void largeMessageVolumeTest_buffered() {\n int batches = 15;\n int batchSize = 5_000;\n List<Long> sendReceiveTimings = new ArrayList<>();\n List<Long> sendTimings = new ArrayList<>();\n for(int i = 0; i< batches; i++) {\n List<String> messages = messages(batchSize, 100);\n long startTime = System.currentTimeMillis();\n for (String message : messages) {\n publisher.publishBuffered(topic, message.getBytes());\n }\n publisher.flushBatchers();\n sendTimings.add(System.currentTimeMillis()-startTime);\n List<NSQMessage> nsqMessages = handler1.drainMessagesOrTimeOut(batchSize);\n sendReceiveTimings.add(System.currentTimeMillis()-startTime);\n\n validateReceivedAllMessages(messages,nsqMessages,true);\n LOGGER.info(\"published batch {} of {}\",i,batches);\n }\n\n double sendAverageMillis = sendTimings.stream().mapToLong(e -> e).average().getAsDouble();\n double throughput = batchSize/sendAverageMillis*1000;\n LOGGER.info(\"Average send time for {} messages: {} millis, {} op/s\", batchSize, sendAverageMillis, throughput);\n\n double totalAverageMillis = sendReceiveTimings.stream().mapToLong(e -> e).average().getAsDouble();\n throughput = batchSize/totalAverageMillis*1000;\n LOGGER.info(\"Average send time for {} messages: {} millis, {} op/s\", batchSize, totalAverageMillis, throughput);\n }",
"public static void sendPackets(ArrayList<Packet> packetList) throws Exception {\r\n int firstSNinWindow = 0;\r\n final int numAcks = Packet.numAcksAllowed;\r\n final int maxSN = Packet.maxSequenceNum;\r\n boolean[] sentCorrectly = new boolean[Packet.maxSequenceNum];\r\n Timer[] timers = new Timer[maxSN];\r\n boolean totallyDone = false;\r\n int numOfAcks = numAcks;\r\n \r\n System.out.println(\"Number of packets: \" + packetList.size() + \"\\n\\n\");\r\n \r\n while (!totallyDone) { \r\n // Figure out which packets to send:\r\n ArrayList<Packet> packetsToSend = new ArrayList<Packet>();\r\n for (int i = 0; i < numAcks; i++) {\r\n if (!sentCorrectly[(firstSNinWindow + i) % maxSN] && (firstSNinWindow + i) < packetList.size()) {\r\n Packet sendPacket = packetList.get(firstSNinWindow + i);\r\n packetsToSend.add(sendPacket);\r\n if (timers[(firstSNinWindow + i) % maxSN] == null) {\r\n Timer time = new Timer();\r\n time.schedule(new PacketTimer(sendPacket, time), 40);\r\n timers[(firstSNinWindow + i) % maxSN] = time;\r\n }\r\n }\r\n }\r\n \r\n // Send the packets:\r\n send(packetsToSend);\r\n \r\n // Wait for ACK/NAK vector:\r\n Packet ACKvector = waitForACK();\r\n boolean[] newACKs = ACKvector.decodeACK();\r\n int firstACK = ACKvector.getACKNum();\r\n numOfAcks = ACKvector.getNumOfAcks();\r\n \r\n // Adjust ACK bools:\r\n if (Math.abs(firstACK - (firstSNinWindow % maxSN)) > numAcks) {\r\n firstACK += firstSNinWindow / maxSN; // Adjust the firstACK number\r\n }\r\n for (int i = 0; i < numOfAcks; i++) {\r\n int index = (firstSNinWindow + i) % maxSN;\r\n sentCorrectly[index] = sentCorrectly[index] || newACKs[i];\r\n if (newACKs[i] && timers[i] != null) {\r\n timers[i].cancel();\r\n }\r\n }\r\n \r\n // Move window forwards:\r\n while (sentCorrectly[firstSNinWindow % maxSN]) {\r\n sentCorrectly[(firstSNinWindow + numAcks) % maxSN] = false;\r\n if (timers[(firstSNinWindow + numAcks) % maxSN] != null) {\r\n timers[(firstSNinWindow + numAcks) % maxSN].cancel();\r\n timers[(firstSNinWindow + numAcks) % maxSN] = null;\r\n }\r\n firstSNinWindow++;\r\n }\r\n \r\n // Check if we're totally done:\r\n if (firstSNinWindow >= packetList.size()) {\r\n totallyDone = true;\r\n }\r\n }\r\n \r\n System.out.println(\"All packets have been transmitted correctly!\");\r\n \r\n // Make sure all timers are stopped:\r\n for (int i = 0; i < maxSN; i++) {\r\n if (timers[i] != null) {\r\n timers[i].cancel();\r\n }\r\n }\r\n }",
"private boolean isFull() {\n\t\treturn nbmsg==getSize();\n\t}",
"public boolean isAbleToBeAllocated( )\r\n {\r\n // Do not allow allocation if it's too slow!\r\n if (lastTransferRateBPS < ServiceManager.sCfg.minimumAllowedTransferRate\r\n && lastTransferRateBPS > 0)\r\n {\r\n addToCandidateLog( \"Refusing candidate allocation as last transfer rate was only \" \r\n + lastTransferRateBPS + \" bps\");\r\n NLogger.debug( NLoggerNames.Download_Candidate_Allocate,\r\n \"Refusing candidate allocation as last transfer rate was only \" \r\n + lastTransferRateBPS + \" bps\");\r\n return false;\r\n }\r\n long currentTime = System.currentTimeMillis();\r\n return statusTimeout <= currentTime;\r\n }",
"@Override\r\n\tpublic void showSpeed() {\n\t\tSystem.out.println(\"i can run at 100km/h\");\r\n\t}",
"private boolean sendCircuit(Secs1MessageBlock block)\n\t\t\tthrows SecsSendMessageException, SecsException, InterruptedException {\n\t\t\n\t\tthis.notifyLog(new Secs1TrySendMessageBlockLog(block));\n\t\t\n\t\tthis.sendBytes(block.getBytes());\n\t\t\n\t\tByte b = this.circuitQueue.pollByte(this.secs1Config().timeout().t2());\n\t\t\n\t\tif ( b == null ) {\n\t\t\t\n\t\t\tthis.notifyLog(Secs1TimeoutT2AckCircuitControlLog.newInstance(block));\n\t\t\treturn false;\n\t\t\t\n\t\t} else if ( b.byteValue() == ACK ) {\n\t\t\t\n\t\t\tthis.notifyLog(new Secs1SendedMessageBlockLog(block));\n\t\t\treturn true;\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tthis.notifyLog(Secs1NotReceiveAckCircuitControlLog.newInstance(block, b));\n\t\t\treturn false;\n\t\t}\n\t}",
"public int latencyMsgsPerSec()\n\t{\n\t\treturn _latencyMsgsPerSec;\n\t}",
"public Long getSendSuccessResponseTimes()\r\n {\r\n return sendSuccessResponseTimes;\r\n }",
"@Test\n\tpublic void testGetBlockBytesSentCounter() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"0\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tPeerServices peerServices = mock (PeerServices.class);\n\t\tPeerSetContext peerSetContext = new PeerSetContext (peerServices, pieceDatabase, null, null);\n\t\tMockConnection mockConnection = new MockConnection();\n\t\tPeerHandler handler = new PeerHandler (peerSetContext, mockConnection, new PeerID(), new PeerStatistics(), false, false);\n\n\t\t// When\n\t\tPeerID remotePeerID = new PeerID();\n\t\tmockConnection.mockInput (PeerProtocolBuilder.handshake (false, false, pieceDatabase.getInfo().getHash(), remotePeerID));\n\t\thandler.connectionReady (mockConnection, true, false);\n\n\t\t// Then\n\t\tassertEquals (0, handler.getStatistics().getCounter(PeerStatistics.Type.BLOCK_BYTES_SENT).getTotal());\n\n\n\t\tpieceDatabase.terminate (true);\n\n\t}",
"public void listen() {\n DeviceManager cpuUsage = new CPUUsageManager();\n cpuUsage.printStatus();\n \n }",
"private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = true;\n\t\t} else {\n\t\t\tisAbleToFire = false;\n\t\t}\n\t}",
"private final boolean message_ready ()\n {\n \n if (msg_source == null)\n return false;\n \n in_progress = msg_source.pull_msg ();\n if (in_progress == null) {\n return false;\n }\n\n // Get the message size.\n int size = in_progress.size ();\n\n // Account for the 'flags' byte.\n size++;\n\n // For messages less than 255 bytes long, write one byte of message size.\n // For longer messages write 0xff escape character followed by 8-byte\n // message size. In both cases 'flags' field follows.\n \n if (size < 255) {\n tmpbuf[0] = (byte)size;\n tmpbuf[1] = (byte) (in_progress.flags () & Msg.more);\n next_step (tmpbuf, 2, size_ready, false);\n }\n else {\n ByteBuffer b = ByteBuffer.wrap(tmpbuf);\n b.put((byte)0xff);\n b.putLong(size);\n b.put((byte) (in_progress.flags () & Msg.more));\n next_step (tmpbuf, 10, size_ready, false);\n }\n \n return true;\n }"
] | [
"0.60616255",
"0.60275775",
"0.59819865",
"0.57595044",
"0.5675014",
"0.56506616",
"0.56506616",
"0.56506616",
"0.56506616",
"0.56506616",
"0.56506616",
"0.5648086",
"0.5591059",
"0.5591059",
"0.5589531",
"0.5582543",
"0.5577786",
"0.5577786",
"0.55770427",
"0.55761415",
"0.556499",
"0.5541399",
"0.55373526",
"0.5534719",
"0.54898936",
"0.54869395",
"0.5479418",
"0.5475174",
"0.54652",
"0.5455475",
"0.54444927",
"0.54345655",
"0.54327583",
"0.5430085",
"0.54200214",
"0.5358598",
"0.5344782",
"0.5307879",
"0.5300531",
"0.526979",
"0.5265285",
"0.5262151",
"0.5258136",
"0.5253628",
"0.52345395",
"0.5224632",
"0.52007335",
"0.5192452",
"0.51799506",
"0.51754653",
"0.5174194",
"0.516662",
"0.5161525",
"0.51439595",
"0.5141232",
"0.5125175",
"0.50973994",
"0.50855374",
"0.508083",
"0.5073727",
"0.5073039",
"0.5072453",
"0.5066556",
"0.50566053",
"0.50420463",
"0.5041928",
"0.50302815",
"0.50205636",
"0.5016764",
"0.5011149",
"0.500813",
"0.4994336",
"0.4981394",
"0.49802262",
"0.49729624",
"0.49652457",
"0.49577585",
"0.49448806",
"0.49412572",
"0.49310264",
"0.49166462",
"0.49093857",
"0.4909221",
"0.49075037",
"0.4902799",
"0.4897691",
"0.48942706",
"0.48942706",
"0.4894136",
"0.4889146",
"0.48879847",
"0.4887617",
"0.48822412",
"0.4880385",
"0.4874119",
"0.48631746",
"0.4861307",
"0.4857806",
"0.48574027",
"0.48529467",
"0.48524812"
] | 0.0 | -1 |
Check the encoder reads positive position changes for positive commanded values, used in closed loop | public static boolean checkSensorPhase(double percentVoltage, TalonSRX... motors)
{
double movementDuration = 0.25;
List<TalonSRX> motorsUnderTest = Arrays.asList(motors); // Must set all at once to safely move subsystems
List<Integer> initialPositions = new ArrayList<Integer>();
for (TalonSRX motor : motorsUnderTest)
{
initialPositions.add(motor.getSelectedSensorPosition(0));
}
setMotors(motorsUnderTest, percentVoltage);
Timer.delay(movementDuration);
setMotors(motorsUnderTest, 0.0);
return verifySensorPhasePositive(motorsUnderTest, initialPositions);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkOverflow() {\n\t\tfor(int i = 0; i < hand.size(); i++) {\n\t\t\tif(hand.get(i).getValue() == 11) {\n\t\t\t\thand.get(i).makeSoft();\n\t\t\t\tSystem.out.println(\"The value of the \" + hand.get(i) +\" was changed to 1\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"private boolean priorsGotNegativeValues(NumericSequenceData priorsequence) {\n for (int i=0;i<priorsequence.getSize();i++) {\n if (priorsequence.getValueAtRelativePosition(i)<0) return true;\n }\n return false;\n }",
"private void testEncoder() {\n\n flMotor.setPower(0.50);\n frMotor.setPower(0.50);\n blMotor.setPower(0.50);\n brMotor.setPower(0.50);\n\n // wait while opmode is active and left motor is busy running to position.\n\n while (opModeIsActive() && flMotor.isBusy()) {\n telemetry.addData(\"encoder-fwd-left\", flMotor.getCurrentPosition() + \" busy=\" + flMotor.isBusy());\n telemetry.addData(\"encoder-fwd-right\", frMotor.getCurrentPosition() + \" busy=\" + frMotor.isBusy());\n telemetry.addData(\"encoder-bck-left\", blMotor.getCurrentPosition() + \" busy=\" + blMotor.isBusy());\n telemetry.addData(\"encoder-bck-right\", brMotor.getCurrentPosition() + \" busy=\" + brMotor.isBusy());\n telemetry.update();\n idle();\n }\n\n // set motor power to zero to turn off motors. The motors stop on their own but\n // power is still applied so we turn off the power.\n\n flMotor.setPower(0.0);\n frMotor.setPower(0.0);\n blMotor.setPower(0.0);\n brMotor.setPower(0.0);\n\n // wait 5 sec to you can observe the final encoder position.\n\n resetStartTime();\n\n while (opModeIsActive() && getRuntime() < 5) {\n telemetry.addData(\"encoder-fwd-left-end\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-fwd-right-end\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-bck-left-end\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-bck-right-end\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n\n // From current position back up to starting point. In this example instead of\n // having the motor monitor the encoder we will monitor the encoder ourselves.\n\n flMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n frMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n blMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n brMotor.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n flMotor.setTargetPosition(0);\n frMotor.setTargetPosition(0);\n blMotor.setTargetPosition(0);\n brMotor.setTargetPosition(0);\n\n // Power sign matters again as we are running without encoder.\n flMotor.setPower(-0.50);\n frMotor.setPower(-0.50);\n blMotor.setPower(-0.50);\n brMotor.setPower(-0.50);\n\n while (opModeIsActive() && flMotor.getCurrentPosition() > flMotor.getTargetPosition()) {\n telemetry.addData(\"encoder-back-left\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-left\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n\n // set motor power to zero to stop motors.\n flMotor.setPower(0.0);\n frMotor.setPower(0.0);\n blMotor.setPower(0.0);\n brMotor.setPower(0.0);\n\n resetStartTime();\n\n while (opModeIsActive() && getRuntime() < 5) {\n telemetry.addData(\"encoder-back-left-end\", flMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right-end\", frMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-left-end\", blMotor.getCurrentPosition());\n telemetry.addData(\"encoder-back-right-end\", brMotor.getCurrentPosition());\n telemetry.update();\n idle();\n }\n }",
"boolean incLowValue() { return true; }",
"int canon_has_lowbits()\n{\n BytePtr test = new BytePtr(0x4000);\n int ret=1, i;\n\n CTOJ.fseek (ifp, 0, CTOJ.SEEK_SET);\n CTOJ.fread (test, 1, /*sizeof test*/0x4000, ifp);\n for (i=540; i < /*sizeof test*/0x4000 - 1; i++)\n if ( CTOJ.toUnsigned(test.at(i)) == 0xff) {\n if (test.at(i+1) != 0) return 1;\n ret=0;\n }\n return ret;\n}",
"private boolean priorsGotNegativeValues(NumericDataset priors) {\n for (FeatureSequenceData data:priors.getAllSequences()) {\n NumericSequenceData priorsequence=(NumericSequenceData)data;\n for (int i=0;i<priorsequence.getSize();i++) {\n if (priorsequence.getValueAtRelativePosition(i)<0) return true;\n }\n }\n return false;\n }",
"@Override\n protected boolean isFinished() {\n //stop once the left side is high enough\n return Robot.myLifter.getLeftEncoder() < pos;\n }",
"private void checkResetUnderflow(int register) {\r\n\t\t/* register values smaller than or equal to 0*/\r\n\t\tif(sim40.memory[register] <= 0) {\r\n\t\t\tsetRegToMin(register);\r\n\t\t\r\n\t\t}\r\n\t}",
"boolean updateValue() {\n boolean ret;\n\n if (Math.abs(curUtilityValue - nextUtilityValue) < Math.abs(curUtilityValue) * MAX_ERR_PERCENT / 100)\n ret = true;\n else {\n ret = false;\n // System.out.println(\" no match cell: x: \"+x+\" y: \"+y);\n }\n curUtilityValue = nextUtilityValue;\n return ret;\n\n }",
"public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }",
"@Override\r\n\tpublic boolean pushValuesBackward() {\r\n\t\tboolean mod = false;\r\n\r\n\t\tValue resultBusValue = getResultBus().getValue();\r\n\r\n\t\tValue newValue = new Value(resultBusValue.getSize(),\r\n\t\t\t\tresultBusValue.isSigned());\r\n\r\n\t\tfor (int i = 0; i < resultBusValue.getSize(); i++) {\r\n\t\t\tBit bit = resultBusValue.getBit(i);\r\n\t\t\tif (!bit.isCare()) {\r\n\t\t\t\tnewValue.setBit(i, Bit.DONT_CARE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmod |= getDataPorts().get(0).pushValueBackward(newValue);\r\n\r\n\t\treturn mod;\r\n\t}",
"@Override\r\n\tpublic boolean pushValuesForward() {\r\n\t\tboolean mod = false;\r\n\r\n\t\tValue in0 = getDataPorts().get(0).getValue();\r\n\r\n\t\tint newSize = in0.getSize();\r\n\t\tboolean isSigned = in0.isSigned();\r\n\r\n\t\tValue newValue = new Value(newSize, isSigned);\r\n\r\n\t\tfor (int i = 0; i < newSize; i++) {\r\n\t\t\tBit bit = in0.getBit(i);\r\n\r\n\t\t\tif (!bit.isCare()) {\r\n\t\t\t\t/*\r\n\t\t\t\t * Don't-cares will be ignored going forward.\r\n\t\t\t\t */\r\n\t\t\t\tnewValue.setBit(i, Bit.DONT_CARE);\r\n\t\t\t} else if (bit.isConstant()) {\r\n\t\t\t\t/*\r\n\t\t\t\t * Push the inversion of the constant.\r\n\t\t\t\t */\r\n\t\t\t\tnewValue.setBit(i, bit.isOn() ? Bit.ZERO : Bit.ONE);\r\n\t\t\t} else {\r\n\t\t\t\t/*\r\n\t\t\t\t * Otherwise just push a generic CARE until we're sure that\r\n\t\t\t\t * there's a Value on the result Bus.\r\n\t\t\t\t */\r\n\t\t\t\tnewValue.setBit(0, Bit.CARE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// update all bits above the carry out bit to be signed\r\n\t\t// extended of carry out bit\r\n\t\tif (getResultBus().getValue() != null) {\r\n\t\t\tif (!in0.isConstant()) {\r\n\t\t\t\tint compactedSize = Math.min(newSize, in0.getCompactedSize());\r\n\t\t\t\tBit carryoutBit = getResultBus().getValue().getBit(\r\n\t\t\t\t\t\tcompactedSize - 1);\r\n\r\n\t\t\t\tfor (int i = compactedSize; i < newSize; i++) {\r\n\t\t\t\t\tif (newValue.getBit(i) != Bit.DONT_CARE)\r\n\t\t\t\t\t\tnewValue.setBit(i, carryoutBit);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmod |= getResultBus().pushValueForward(newValue);\r\n\r\n\t\tfor (int i = 0; i < newSize; i++) {\r\n\t\t\tBit bit = in0.getBit(i);\r\n\t\t\tif (!bit.isGlobal()) {\r\n\t\t\t\t/*\r\n\t\t\t\t * Set the inversion shortcut if appropriate.\r\n\t\t\t\t */\r\n\t\t\t\tgetResultBus().getValue().getBit(i).setInvertedBit(bit);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn mod;\r\n\t}",
"@Test\n public void testValidResolution() {\n System.out.println(\"validResolution\");\n BinaryEncoder instance = new BinaryEncoder();\n boolean result;\n\n result = instance.validResolution(-1);\n assertEquals(false, result);\n result = instance.validResolution(0);\n assertEquals(false, result);\n \n result = instance.validResolution(instance.RESOLUTION_MIN-1);\n assertEquals(false, result);\n result = instance.validResolution(instance.RESOLUTION_MIN-2);\n assertEquals(false, result);\n\n result = instance.validResolution(instance.RESOLUTION_MAX+1);\n assertEquals(false, result);\n result = instance.validResolution(instance.RESOLUTION_MAX+1);\n assertEquals(false, result);\n \n for (int i=instance.RESOLUTION_MIN; i <= instance.RESOLUTION_MAX; i++) {\n result = instance.validResolution(i);\n assertEquals(true, result);\n }\n }",
"public boolean hasChanges() {\n return Math.abs(this.x) > 1.0E-5f || Math.abs(this.y) > 1.0E-5f || Math.abs(this.scale - this.minimumScale) > 1.0E-5f || Math.abs(this.rotation) > 1.0E-5f || Math.abs(this.orientation) > 1.0E-5f;\n }",
"private boolean correctValues() {\n try {\n //TODO: check COM ports\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n return true;\n }",
"private int findZero(){\r\n\t\t// configure stuff\r\n\t\tint channelConfiguration = AudioFormat.CHANNEL_CONFIGURATION_MONO;\r\n\t\tint audioEncoding = AudioFormat.ENCODING_PCM_16BIT;\r\n\t\tint bufferSize = AudioRecord.getMinBufferSize(FREQUENCY, channelConfiguration, audioEncoding);\r\n\t\tAudioRecord audioRecord = new AudioRecord(MediaRecorder.AudioSource.MIC, FREQUENCY, channelConfiguration,audioEncoding, bufferSize);\r\n\r\n\t\tshort[] buffer = new short[bufferSize];\r\n\t\taudioRecord.startRecording();\r\n\t\tint bufferReadResult = audioRecord.read(buffer, 0, bufferSize);\r\n\t\taudioRecord.stop();\r\n\t\tint sum = 0;\r\n\t\tfor (int b = bufferReadResult * (2/3); b < bufferReadResult; b++) {\r\n\t\t\tsum += buffer[b];\r\n\t\t}\r\n\t\tif (bufferReadResult == 0){\r\n\t\t\treturn this.offset;\r\n\t\t}\r\n\t\t\r\n\t\treturn -1*(sum/bufferReadResult);\r\n\t}",
"boolean updatePolicy() {\n double maxUtilityVal = -Double.MAX_VALUE;\n //if(x==19&&y==0)\n // System.out.println(\"minVal: \"+maxUtilityVal);\n for (int i = 0; i < AbsoluteDirection.values().length; i++) {\n double proposedValue = calculateUtility(AbsoluteDirection.values()[i]);\n // if(x==19&&y==0) {\n // System.out.println(\"Proposed value at cell \" + x + \", \" + y + \" is\" + proposedValue);\n\n // }\n if (proposedValue > maxUtilityVal) {\n policyDirection = AbsoluteDirection.values()[i];\n nextUtilityValue = proposedValue; // update curValues to nextValues at the end of iteration\n maxUtilityVal = proposedValue;\n }\n }\n\n return true;\n }",
"public boolean checkFrameValid() {\n return explosionFrame < explosions.length;\n }",
"@Test\n public void encodeAsIntArrayNegative()\n {\n final int value = -5;\n final BinaryEncoder encoder = new BinaryEncoder(-8, 8, 1.0);\n final int[] result = encoder.encodeAsIntArray(value);\n if (IS_VERBOSE)\n {\n System.out.println(\"result = \" + Arrays.toString(result));\n }\n assertNotNull(result);\n assertEquals(4, result.length);\n assertEquals(0, result[0]);\n assertEquals(0, result[1]);\n assertEquals(1, result[2]);\n assertEquals(1, result[3]);\n }",
"@Override\n protected boolean checkSeqResetSeqNum() {\n return false;\n }",
"public void zero()\n {\n encoderOffset = -getEncoder().getPosition();\n }",
"private long searchSPSandPPS()\n {\n ByteBuffer[] inputBuffers = encoder.getInputBuffers();\n ByteBuffer[] outputBuffers = encoder.getOutputBuffers();\n BufferInfo info = new BufferInfo();\n byte[] csd = new byte[128];\n int len = 0;\n int p = 4;\n int q = 4;\n long elapsed = 0;\n long now = timestamp();\n\n while (elapsed < 3000000 && (SPS == null || PPS == null))\n {\n // Some encoders won't give us the SPS and PPS unless they receive something to encode first...\n int bufferIndex = encoder.dequeueInputBuffer(1000000 / FRAMERATE);\n if (bufferIndex >= 0)\n {\n check(inputBuffers[bufferIndex].capacity() >= data.length, \"The input buffer is not big enough.\");\n inputBuffers[bufferIndex].clear();\n inputBuffers[bufferIndex].put(data, 0, data.length);\n encoder.queueInputBuffer(bufferIndex, 0, data.length, timestamp(), 0);\n }\n else\n {\n Log.e(TAG,\"No buffer available !\");\n }\n\n // We are looking for the SPS and the PPS here. As always, Android is very inconsistent, I have observed that some\n // encoders will give those parameters through the MediaFormat object (that is the normal behaviour).\n // But some other will not, in that case we try to find a NAL unit of type 7 or 8 in the byte stream outputed by the encoder...\n\n int index = encoder.dequeueOutputBuffer(info, 1000000 / FRAMERATE);\n\n if (index == MediaCodec.INFO_OUTPUT_FORMAT_CHANGED)\n {\n // The PPS and PPS should be there\n MediaFormat format = encoder.getOutputFormat();\n ByteBuffer spsb = format.getByteBuffer(\"csd-0\");\n ByteBuffer ppsb = format.getByteBuffer(\"csd-1\");\n SPS = new byte[spsb.capacity() - 4];\n spsb.position(4);\n spsb.get(SPS,0, SPS.length);\n PPS = new byte[ppsb.capacity() - 4];\n ppsb.position(4);\n ppsb.get(PPS,0, PPS.length);\n break;\n }\n else if (index == MediaCodec.INFO_OUTPUT_BUFFERS_CHANGED)\n {\n outputBuffers = encoder.getOutputBuffers();\n }\n else if (index >= 0)\n {\n len = info.size;\n if (len < 128)\n {\n outputBuffers[index].get(csd,0,len);\n if (len > 0 && csd[0] == 0 && csd[1] == 0 && csd[2] == 0 && csd[3] == 1)\n {\n // Parses the SPS and PPS, they could be in two different packets and in a different order\n //depending on the phone so we don't make any assumption about that\n while (p < len)\n {\n while (!(csd[p + 0] == 0 && csd[p + 1] == 0 && csd[p + 2] == 0 && csd[p + 3] == 1) && p + 3 < len)\n {\n p++;\n }\n\n if (p + 3 >= len)\n {\n p=len;\n }\n\n if ((csd[q] & 0x1F) == 7)\n {\n SPS = new byte[p - q];\n System.arraycopy(csd, q, SPS, 0, p - q);\n }\n else\n {\n PPS = new byte[p - q];\n System.arraycopy(csd, q, PPS, 0, p - q);\n }\n\n p += 4;\n q = p;\n }\n }\n }\n\n encoder.releaseOutputBuffer(index, false);\n }\n\n elapsed = timestamp() - now;\n }\n\n check(PPS != null && SPS != null, \"Could not determine the SPS & PPS.\");\n base64PPS = Base64.encodeToString(PPS, 0, PPS.length, Base64.NO_WRAP);\n base64SPS = Base64.encodeToString(SPS, 0, SPS.length, Base64.NO_WRAP);\n\n return elapsed;\n }",
"public boolean isSolved(){ return getRemainingValues() == 0; }",
"boolean incHighValue() { return true; }",
"public boolean isOffsetCorrected() {\n\t\treturn offsetCorrection;\n\t}",
"private double readPositive1(JTextField field, double oldValue, String title) {\n boolean isOK = true;\n double newValue = 1;\n try{\n //test input\n newValue = Double.parseDouble(field.getText());\n }\n catch (NumberFormatException e){\n //Error message\n JOptionPane.showMessageDialog(null,\n NOT_A_NUMBER,\n title,\n JOptionPane.ERROR_MESSAGE);\n isOK = false;\n }\n if (newValue <-1 ^ newValue >1){\n //ERROR message\n JOptionPane.showMessageDialog(null,\n NOT_ACCEPTED,\n title,\n JOptionPane.ERROR_MESSAGE);\n isOK = false;\n }\n if (isOK){\n return newValue;\n }\n else {\n field.setText(numberFormatter.format(oldValue));\n return oldValue;\n }\n\n }",
"public int encodeValue(BerCoder coder, EncoderOutput sink)\n\t throws EncoderException\n {\n\tint len0 = 0;\n\tFullPositionVector temp0 = this;\n\n\tif (temp0.speedConfidence != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.speedConfidence.byteArrayValue()), 0x89);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"speedConfidence\", \"SpeedandHeadingandThrottleConfidence\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.posConfidence != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.posConfidence.byteArrayValue()), 0x88);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"posConfidence\", \"PositionConfidenceSet\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.timeConfidence != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(coder.encodeEnumerated(temp0.timeConfidence, sink), 0x87);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"timeConfidence\", \"TimeConfidence\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.posAccuracy != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.posAccuracy.byteArrayValue()), 0x86);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"posAccuracy\", \"PositionalAccuracy\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.speed != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.speed.byteArrayValue()), 0x85);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"speed\", \"TransmissionAndSpeed\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.heading != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(coder.encodeInteger(temp0.heading, sink), 0x84);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"heading\", \"Heading\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.elevation != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.elevation.byteArrayValue()), 0x83);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"elevation\", \"Elevation\");\n\t\tthrow ee;\n\t }\n\t}\n\ttry {\n\t len0 += sink.encodeLengthTag(coder.encodeInteger(temp0.lat, sink), 0x82);\n\t} catch (Exception e) {\n\t EncoderException ee = EncoderException.wrapException(e);\n\t ee.appendFieldContext(\"lat\", \"Latitude\");\n\t throw ee;\n\t}\n\ttry {\n\t len0 += sink.encodeLengthTag(coder.encodeInteger(temp0._long, sink), 0x81);\n\t} catch (Exception e) {\n\t EncoderException ee = EncoderException.wrapException(e);\n\t ee.appendFieldContext(\"long\", \"Longitude\");\n\t throw ee;\n\t}\n\tif (temp0.utcTime != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(temp0.utcTime.encodeValue(coder, sink), 0xA0);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"utcTime\", \"DDateTime\");\n\t\tthrow ee;\n\t }\n\t}\n\n\treturn len0;\n }",
"public void updateEncoders() {\n leftEnc.updateRate();\n rightEnc.updateRate();\n }",
"synchronized boolean resetWasUsed() {\n\n boolean result = lastValue != currValue;\n\n lastValue = currValue;\n\n return result;\n }",
"private int[] enquadramentoInsercaoDeBits(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Insercao de Bits]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Insercao de Bits]\\n\");\n Thread.sleep(velocidade);\n\n //Byte Flag que contem a sequencia de bits \"0111110\"\n final int byteFlag = 126;//00000000 00000000 00000000 01111110\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\t[Bits de Flag [01111110] = 126]\\n\\n\");\n Thread.sleep(velocidade);\n\n String auxiliar = \"\";\n Boolean SE = true;\n\n for (int inteiro : quadro) {\n //System.out.println(\"Quadro\");\n int quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(inteiro);\n ManipuladorDeBit.imprimirBits(inteiro);\n //System.out.println(\"Bits deslocados\");\n inteiro = ManipuladorDeBit.deslocarBits(inteiro);\n ManipuladorDeBit.imprimirBits(inteiro);\n int inteiroByte = ManipuladorDeBit.getPrimeiroByte(inteiro);\n\n if (inteiroByte == byteFlag) {//Inicio do Quadro\n SE = !SE;//Iniciar a Busca pelo Byte de Fim de Quadro\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n quantidadeByte--;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\tIC [\" + inteiroByte + \"] \");\n }\n\n if (!SE) {\n\n ManipuladorDeBit.imprimirBits(inteiro);\n\n for (int i=1; i<=quantidadeByte; i++) {\n int dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n System.out.println(\"asdfasdf\\n\");\n ManipuladorDeBit.imprimirBits(dado);\n\n if (dado == byteFlag) {//Verificando se encontrou o Byte de Flag\n SE = !SE;//Encontrou o Byte de Fim de Quadro\n } else {\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [ \");\n\n int novoQuadro = 0;\n\n Boolean cincoBits1 = ManipuladorDeBit.cincoBitsSequenciais(dado,1);\n if (cincoBits1) {\n\n dado = ManipuladorDeBit.deslocarBits(dado);\n ManipuladorDeBit.imprimirBits(dado);\n\n //Cria um inteiro com 1 no bit mais a esquerda e 0s em outros locais\n int displayMask = 1 << 31;//10000000 00000000 00000000 00000000\n //Para cada bit exibe 0 ou 1\n for (int b=1, cont=0; b<=8; b++) {\n //Utiliza displayMask para isolar o bit\n int bit = (dado & displayMask) == 0 ? 0 : 1;\n\n if (cont == 5) {\n cont = 0;//Zerando o contador\n dado <<= 1;//Desloca 1 bit para a esquerda\n bit = (dado & displayMask) == 0 ? 0 : 1;\n }\n\n if (b == 8) {//Quando chegar no Ultimo Bit\n inteiro <<= 8;//Deslocando 8 bits para esquerda\n dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n dado = ManipuladorDeBit.deslocarBits(dado);\n ManipuladorDeBit.imprimirBits(dado);\n\n novoQuadro <<= 1;//Deslocando 1 bit para a esquerda\n novoQuadro |= ManipuladorDeBit.pegarBitNaPosicao(dado,1);//Adicionando o bit ao novoDado\n\n ManipuladorDeBit.imprimirBits(novoQuadro);\n\n auxiliar += (char) novoQuadro;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(novoQuadro + \" ]\\n\");\n Thread.sleep(velocidade);\n i++;\n\n } else {//Colocando o Bit no novoQuadro\n novoQuadro <<= 1;//Deslocando 1 bit para a esquerda\n novoQuadro |= bit;//Adicionando o bit ao novoDado\n dado <<= 1;//Desloca 1 bit para a esquerda\n }\n\n if (bit == 1) {//Quando for um bit 1\n cont++;\n } else {//Caso vinher um bit 0\n cont = 0;\n }\n }\n\n } else {//Caso nao tem uma sequencia de 5 Bits 1's\n auxiliar += (char) dado;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(dado + \" ]\\n\");\n Thread.sleep(velocidade);\n }\n }\n \n inteiro <<= 8;//Deslocando 8 bits para a esquerda;\n }\n\n }\n }\n\n //Novo Quadro de Carga Util\n int[] quadroDesenquadrado = new int[auxiliar.length()];\n //Adicionando as informacoes de Carga Util no QuadroDesenquadrado\n for (int i=0; i<auxiliar.length(); i++) {\n quadroDesenquadrado[i] = (int) auxiliar.charAt(i);\n ManipuladorDeBit.imprimirBits(quadroDesenquadrado[i]);\n }\n\n return quadroDesenquadrado;\n }",
"public void checkPosition(){\n int absPos = mArm.getSensorCollection().getPulseWidthPosition();\n // mArm.configSelectedFeedbackSensor(FeedbackDevice.QuadEncoder);\n mArm.setSelectedSensorPosition(absPos - offset);\n }",
"private void coverExistingValues() \n {\n for(int i = 1; i <= gDim; i++)\n {\n for(int j = 1; j <= gDim; j++)\n {\n //If the board has a value at the current position, cover the satisfied rows and columns\n if(board[i - 1][j - 1] != null)\n {\n int rowIndex = rcvToMatrixRow(i, j, board[i - 1][j - 1]);\n coverSatisfiedColumns(ecmCoveredCols, rowIndex);\n coverSatisfiedRows(ecmCoveredRows, rowIndex);\n }\n }\n }\n }",
"boolean isSetRawOffset();",
"boolean isValidStreamProcessor(int[] buffer) throws RawDataEventException;",
"public static int encodeValue(PerCoder coder, OutputBitStream sink, FullPositionVector data)\n\t throws IOException, EncoderException, EncodeFailedException\n {\n\tint nbits = 0;\n\n\tsink.writeBit(false);\n\tsink.writeBit(data.utcTime != null);\n\tsink.writeBit(data.elevation != null);\n\tsink.writeBit(data.heading != null);\n\tsink.writeBit(data.speed != null);\n\tsink.writeBit(data.posAccuracy != null);\n\tsink.writeBit(data.timeConfidence != null);\n\tsink.writeBit(data.posConfidence != null);\n\tsink.writeBit(data.speedConfidence != null);\n\tnbits += 9;\n\tif (data.utcTime != null) {\n\t // Encode field 'utcTime'\n\t try {\n\t\tDDateTime item1 = data.utcTime;\n\n\t\tnbits += DDateTime.encodeValue(coder, sink, item1);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"utcTime\", \"DDateTime\");\n\t\tthrow ee;\n\t }\n\t}\n\t// Encode field 'long'\n\ttry {\n\t Longitude item1 = data._long;\n\t long temp1 = item1.longValue();\n\n\t if (temp1 < -1800000000 || temp1 > 1800000001)\n\t\tthrow new EncoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t nbits += coder.encodeConstrainedWholeNumber(temp1, -1800000000, 1800000001, sink);\n\t} catch (Exception e) {\n\t EncoderException ee = EncoderException.wrapException(e);\n\t ee.appendFieldContext(\"long\", \"Longitude\");\n\t throw ee;\n\t}\n\t// Encode field 'lat'\n\ttry {\n\t Latitude item1 = data.lat;\n\t long temp1 = item1.longValue();\n\n\t if (temp1 < -900000000 || temp1 > 900000001)\n\t\tthrow new EncoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t nbits += coder.encodeConstrainedWholeNumber(temp1, -900000000, 900000001, sink);\n\t} catch (Exception e) {\n\t EncoderException ee = EncoderException.wrapException(e);\n\t ee.appendFieldContext(\"lat\", \"Latitude\");\n\t throw ee;\n\t}\n\tif (data.elevation != null) {\n\t // Encode field 'elevation'\n\t try {\n\t\tElevation item1 = data.elevation;\n\t\tint len1 = item1.getSize();\n\n\t\tif (len1 != 2)\n\t\t throw new EncoderException(com.oss.util.ExceptionDescriptor._sizeConstraint, null, \"length = \" + len1);\n\t\tnbits += com.oss.coders.per.PerOctets.encode(coder, item1.byteArrayValue(), 2, 2, sink);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"elevation\", \"Elevation\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (data.heading != null) {\n\t // Encode field 'heading'\n\t try {\n\t\tHeading item1 = data.heading;\n\t\tlong temp1 = item1.longValue();\n\n\t\tif (temp1 < 0 || temp1 > 28800)\n\t\t throw new EncoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t\tnbits += coder.encodeConstrainedWholeNumber(temp1, 0, 28800, sink);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"heading\", \"Heading\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (data.speed != null) {\n\t // Encode field 'speed'\n\t try {\n\t\tTransmissionAndSpeed item1 = data.speed;\n\t\tint len1 = item1.getSize();\n\n\t\tif (len1 != 2)\n\t\t throw new EncoderException(com.oss.util.ExceptionDescriptor._sizeConstraint, null, \"length = \" + len1);\n\t\tnbits += com.oss.coders.per.PerOctets.encode(coder, item1.byteArrayValue(), 2, 2, sink);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"speed\", \"TransmissionAndSpeed\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (data.posAccuracy != null) {\n\t // Encode field 'posAccuracy'\n\t try {\n\t\tPositionalAccuracy item1 = data.posAccuracy;\n\t\tint len1 = item1.getSize();\n\n\t\tif (len1 != 4)\n\t\t throw new EncoderException(com.oss.util.ExceptionDescriptor._sizeConstraint, null, \"length = \" + len1);\n\t\tnbits += com.oss.coders.per.PerOctets.encode(coder, item1.byteArrayValue(), 4, 4, sink);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"posAccuracy\", \"PositionalAccuracy\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (data.timeConfidence != null) {\n\t // Encode field 'timeConfidence'\n\t try {\n\t\tTimeConfidence item1 = data.timeConfidence;\n\t\tint idx1 = item1.indexOf();\n\n\t\tif (idx1 < 0)\n\t\t throw new EncoderException(com.oss.util.ExceptionDescriptor._not_enumerated, null, \"value = \" + item1.longValue());\n\t\tnbits += (coder.encodeConstrainedWholeNumber(idx1, 0, 39, sink));\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"timeConfidence\", \"TimeConfidence\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (data.posConfidence != null) {\n\t // Encode field 'posConfidence'\n\t try {\n\t\tPositionConfidenceSet item1 = data.posConfidence;\n\t\tint len1 = item1.getSize();\n\n\t\tif (len1 != 1)\n\t\t throw new EncoderException(com.oss.util.ExceptionDescriptor._sizeConstraint, null, \"length = \" + len1);\n\t\tnbits += com.oss.coders.per.PerOctets.encode(coder, item1.byteArrayValue(), 1, 1, sink);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"posConfidence\", \"PositionConfidenceSet\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (data.speedConfidence != null) {\n\t // Encode field 'speedConfidence'\n\t try {\n\t\tSpeedandHeadingandThrottleConfidence item1 = data.speedConfidence;\n\t\tint len1 = item1.getSize();\n\n\t\tif (len1 != 1)\n\t\t throw new EncoderException(com.oss.util.ExceptionDescriptor._sizeConstraint, null, \"length = \" + len1);\n\t\tnbits += com.oss.coders.per.PerOctets.encode(coder, item1.byteArrayValue(), 1, 1, sink);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"speedConfidence\", \"SpeedandHeadingandThrottleConfidence\");\n\t\tthrow ee;\n\t }\n\t}\n\n\treturn nbits;\n }",
"public boolean isInCorrectPosition() {\n return originalPos == currentPos;\n }",
"boolean judgeValid()\r\n\t{\r\n\t\tif(loc.i>=0 && loc.i<80 && loc.j>=0 && loc.j<80 && des.i>=0 && des.i<80 && des.j>=0 && des.j<80)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}",
"@Override\r\n protected boolean isFinished() {\r\n return RobotMap.colorEncoder.getPosition() >= 27;\r\n }",
"public boolean failedQC(){\n\t\treturn testBitwiseFlag(512);\n\t}",
"protected boolean avoidNegativeCoordinates() {\n \t\treturn false;\n \t}",
"private boolean compareChromaPanes(boolean crossed)\n {\n int d;\n int f = 0;\n\n for (int j = 0; j < NB_DECODED; j++)\n {\n if (decodedVideo[j] != null)\n {\n // We compare the U and V pane before and after\n if (!crossed)\n {\n for (int i = size; i < 3 * size / 2; i += 1)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i] & 0xFF);\n d = d < 0 ? -d : d;\n if (d > 50)\n {\n f++;\n break;\n }\n }\n\n // We compare the V pane before with the U pane after\n }\n else\n {\n for (int i = size; i < 3 * size / 2; i += 2)\n {\n d = (initialImage[i] & 0xFF) - (decodedVideo[j][i + 1] & 0xFF);\n d = d < 0 ? -d : d;\n if (d > 50)\n {\n f++;\n }\n }\n }\n }\n }\n\n return f <= NB_DECODED / 2;\n }",
"public boolean Vacia (){\n return cima==-1;\n \n }",
"private boolean m18343d() throws WriteException {\n boolean audioProcessorNeedsEndOfStream = false;\n if (this.f16602V == -1) {\n this.f16602V = this.f16629w ? 0 : this.f16596P.length;\n audioProcessorNeedsEndOfStream = true;\n }\n while (true) {\n int i = this.f16602V;\n AudioProcessor[] audioProcessorArr = this.f16596P;\n if (i < audioProcessorArr.length) {\n AudioProcessor audioProcessor = audioProcessorArr[i];\n if (audioProcessorNeedsEndOfStream) {\n audioProcessor.mo25044g();\n }\n m18346f(-9223372036854775807L);\n if (!audioProcessor.mo25038b()) {\n return false;\n }\n audioProcessorNeedsEndOfStream = true;\n this.f16602V++;\n } else {\n ByteBuffer byteBuffer = this.f16599S;\n if (byteBuffer != null) {\n m18336b(byteBuffer, -9223372036854775807L);\n if (this.f16599S != null) {\n return false;\n }\n }\n this.f16602V = -1;\n return true;\n }\n }\n }",
"protected boolean colaVacia() {\r\n return ini == -1;\r\n }",
"public boolean justMoved() {\n\n\t\tdouble[] scores = compareFrames(length-1, length-2);\n\n\t\tSystem.out.println(scores[0]);\n\n\t\treturn scores[0] > MOVEMENT_THRESHOLD; // || scores[1] > ROTATION_THRESHOLD;\n\t}",
"public void copiedMeasureDecoder(Integer chordNote,Integer[]previousChord, Integer[] playedChord){\n /* int c=0;\n int a=0;\n int b=0;\n int x0=0;\n int x1=0;*/\n int d1=0;\n int d2=0;\n\n\n\n for (int i=0;i<melodyNotes.length;i++){\n if(melodyNotes[i]==chordNote)\n d1=i;\n }\n for (int i=0;i<melodyNotes.length;i++){\n if(melodyNotes[i]==melody.get(melodyCounter))\n d2=i;\n /* if(melodyNotes[i]==playedChord[1])\n a=i;\n if(melodyNotes[i]==previousChord[1])\n b=i;*/\n }\n /*if(a<b){\n x0=a-b;\n x1=7+x1;\n }else{\n x0=a-b;\n x1=x0-7;\n }*/\n if(d1>d2) {\n binaryOutput += \"0\";\n }else {\n binaryOutput += \"1\";\n }\n for(int i = 0;i<4;i++){\n for(int j =0; j < rhytm.get(beatCounter).length;j++){\n if(rhytm.get(beatCounter)[j]!=null)\n if ((!rhytm.get(beatCounter)[j].equals(\"Ri\")) && (!rhytm.get(beatCounter)[j].equals(\"Rs\"))) {\n melodyCounter++;\n }\n }\n beatCounter++;\n }\n\n\n}",
"public boolean isCardChanged() throws IOException {\n int result = checkCardMovement0();\n if (result < 0) {\n String err_msg = getErrorMessage0();\n if (err_msg != null)\n throw new IOException(err_msg);\n else\n throw new IOException(\"Checking of card movement failed\");\n }\n if (result == 0) {\n return false;\n } else {\n return true;\n }\n }",
"@Test(timeout = 4000)\n public void test08() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[5];\n byte byte0 = (byte)0;\n byte byte1 = (byte)83;\n byte byte2 = (byte)3;\n byte byte3 = (byte)0;\n byte byte4 = (byte)0;\n Range range0 = Range.ofLength(3149L);\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.iterator(byteArray0, range0);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // range [ 0 .. 3148 ]/0B is out of range of sequence which is only [ 0 .. -1 ]/0B\n //\n verifyException(\"org.jcvi.jillion.core.residue.nt.DefaultNucleotideCodec$IteratorImpl\", e);\n }\n }",
"private boolean OK() {\r\n return in == saves[save-1];\r\n }",
"@Test\n public void testConstructor3Negative()\n {\n final BinaryEncoder encoder = new BinaryEncoder(-8, 8, 1.0);\n assertThat(encoder.getMin(), is(-8.0));\n assertThat(encoder.getMax(), is(8.0));\n assertThat(encoder.getDelta(), is(1.0));\n assertThat(encoder.getLength(), is(4));\n }",
"boolean hasFixedHotwordGain();",
"public boolean execute() {\n\t\t\t\t\n\t\tif( numberOfEncoders == 1) {\n\t\t\tif (Math.abs(rightDistanceTraveled - distance) <= error || Math.abs(leftDistanceTraveled - distance) <= error) {\n\t\t\t\tthis.reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if( numberOfEncoders == 2) {\n\t\t\tif (Math.abs(leftDistanceTraveled - distance) <= error && Math.abs(rightDistanceTraveled - distance) <= error ) {\n\t\t\t\tthis.reset();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n//\t\t\tif(Math.abs(prevErrorLeft - leftDistanceTraveled) <= 3 && Math.abs(prevErrorRight - rightDistanceTraveled) <= 3 && stallStartTime == 0) {\n//\t\t\t\tstallStartTime = System.currentTimeMillis();\n//\t\t\t} else {\n//\t\t\t\tstallStartTime = 0;\n//\t\t\t}\n\t\t}\n//\t\tSystem.out.println(stallStartTime + \" \" + Math.abs(prevErrorLeft - leftDistanceTraveled));\n//\t\tif(stallStartTime + timeout > System.currentTimeMillis()) {\n//\t\t\tthis.reset();\n//\t\t\treturn true;\n//\t\t}\n\t\t\n\t\tif(Math.abs(leftDistanceTraveled - distance) > error) {\n\t\t\tleftDistanceTraveled = SensorInputControl.getInstance().getEncoder(SensorType.DRIVE_TRAIN_LEFT_ENCODER).getDistance();\n\t\t\tleftDriveOutput = leftDistanceControlLoop.getPID(distance, leftDistanceTraveled);\n\t\t\t\n\t\t\tif(leftDriveOutput > 0) {\n\t\t\t\tleftDriveOutput = (leftDriveOutput < AutoDriveForward.MIN_SPEED ? AutoDriveForward.MIN_SPEED : leftDriveOutput);\n\t\t\t} else if(leftDriveOutput < 0) {\n\t\t\t\tleftDriveOutput = (leftDriveOutput > -AutoDriveForward.MIN_SPEED ? -AutoDriveForward.MIN_SPEED : leftDriveOutput);\n\t\t\t}\n\t\t} else {\n\t\t\tleftDistanceControlLoop.reset();\n\t\t\tleftDriveOutput = 0;\n\t\t}\n\t\t\n\t\tif(Math.abs(rightDistanceTraveled - distance) > error) {\n\t\t\trightDistanceTraveled = -SensorInputControl.getInstance().getEncoder(SensorType.DRIVE_TRAIN_RIGHT_ENCODER).getDistance();\n\t\t\trightDriveOutput = rightDistanceControlLoop.getPID(distance, rightDistanceTraveled);\n\t\t\t\n\t\t\tif(rightDriveOutput > 0) {\n\t\t\t\trightDriveOutput = (rightDriveOutput < AutoDriveForward.MIN_SPEED ? AutoDriveForward.MIN_SPEED : rightDriveOutput);\n\t\t\t} else if (rightDriveOutput < 0) {\n\t\t\t\trightDriveOutput = (rightDriveOutput > -AutoDriveForward.MIN_SPEED ? -AutoDriveForward.MIN_SPEED : rightDriveOutput);\n\t\t\t}\n\t\t} else {\n\t\t\trightDistanceControlLoop.reset();\n\t\t\trightDriveOutput = 0;\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"AutoDriveFwd::[left speed, right speed] \" + leftDriveOutput + \", \" + rightDriveOutput);\n\t\t\n\t\tDrivetrainControl.getInstance().setLeftDriveSpeed(-leftDriveOutput);\n\t\tDrivetrainControl.getInstance().setRightDriveSpeed(-rightDriveOutput);\n\t\t\n\t\tprevErrorLeft = leftDistanceTraveled - distance;\n\t\tprevErrorRight = rightDistanceTraveled - distance;\n\n\t\t\n\t\treturn false;\n\t\t\n\t}",
"@Test void test1() {\n\t\tAztecCode marker = new AztecEncoder().addUpper(\"C\").addPunctuation(\"!!!\").addDigit(\"0\").addPunctuation(\"!!\").fixate();\n\t\tclearMarker(marker);\n\n\t\tassertTrue(new AztecDecoder().process(marker));\n\n\t\tassertEquals(\"C!!!0!!\", marker.message);\n\t\tassertEquals(0, marker.totalBitErrors);\n\t}",
"public boolean invariantHolds() {\n \t\t// Check that all bits will fit in byte array\n \t\tfinal int arrayLengthAsBits = value.length*8;\n \t\tif (lengthAsBits > arrayLengthAsBits) { return false; }\n \n \t\t// Check consistency of 'lengthAsBits' and 'bitsInLastByte'\n \t\tfinal int partialByteIndex = (lengthAsBits-1)/8;\n \t\tif (bitsInLastByte != (lengthAsBits - (8*partialByteIndex))) {\n \t\t\treturn false;\n \t\t}\n \t\t// Special case for empty bitsets since they will have\n \t\t// 'partialByteIndex'==0, but this isn't a legal index into\n \t\t// the byte array\n \t\tif (value.length==0) { return true; }\n \n \t\t// Check that the last used (possibly partial) byte doesn't\n \t\t// contain any unused bit positions that are set.\n \t\tbyte partialByte = value[partialByteIndex];\n \t\tpartialByte <<= bitsInLastByte; // must be zero after shift\n \n \t\t// Check the remaining completely unused bytes (if any)\n \t\tfor (int i = partialByteIndex+1; i < value.length; ++i) {\n \t\t\tpartialByte |= value[i];\n \t\t}\n \t\treturn (partialByte==0);\n \t}",
"public void encircleFalseTest()\n\t{\n\t\tData d = new Data();\n\t\td.set(15, 29);\n\t\td.set(17, 19);\n\t\tassertFalse(d.isEncircled(29));\n\t}",
"boolean checkWin() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n seq.next();\n in.next();\n if (!seq.hasNext() && !in.hasNext()) {\n return true;\n }\n }\n return false;\n }",
"private boolean m13722a(ExtractorInput extractorInput) throws IOException, InterruptedException {\n long length;\n if (this.f11103v == 0) {\n if (!extractorInput.readFully(this.f11095n.f6929a, 0, 8, true)) {\n return false;\n }\n this.f11103v = 8;\n this.f11095n.m8388c(0);\n this.f11102u = this.f11095n.m8401m();\n this.f11101t = this.f11095n.m8403o();\n }\n if (this.f11102u == 1) {\n extractorInput.readFully(this.f11095n.f6929a, 8, 8);\n this.f11103v += 8;\n this.f11102u = this.f11095n.m8411w();\n } else if (this.f11102u == 0) {\n length = extractorInput.getLength();\n if (length == -1 && !this.f11097p.isEmpty()) {\n length = ((C3637a) this.f11097p.peek()).aQ;\n }\n if (length != -1) {\n this.f11102u = (length - extractorInput.getPosition()) + ((long) this.f11103v);\n }\n }\n if (this.f11102u < ((long) this.f11103v)) {\n throw new ParserException(\"Atom size less than header length (unsupported).\");\n }\n long position = extractorInput.getPosition() - ((long) this.f11103v);\n if (this.f11101t == C2087a.f5824K) {\n int size = this.f11090i.size();\n for (int i = 0; i < size; i++) {\n C2102i c2102i = ((C2085b) this.f11090i.valueAt(i)).f5790b;\n c2102i.f5939b = position;\n c2102i.f5941d = position;\n c2102i.f5940c = position;\n }\n }\n if (this.f11101t == C2087a.f5847h) {\n this.f11077C = null;\n this.f11105x = position + this.f11102u;\n if (this.f11085K == null) {\n this.f11082H.seekMap(new C3605b(this.f11075A, position));\n this.f11085K = true;\n }\n this.f11100s = 2;\n return true;\n }\n if (m13730b(this.f11101t)) {\n length = (extractorInput.getPosition() + this.f11102u) - 8;\n this.f11097p.add(new C3637a(this.f11101t, length));\n if (this.f11102u == ((long) this.f11103v)) {\n m13710a(length);\n } else {\n m13709a();\n }\n } else if (m13721a(this.f11101t) != null) {\n if (this.f11103v != 8) {\n throw new ParserException(\"Leaf atom defines extended atom size (unsupported).\");\n } else if (this.f11102u > 2147483647L) {\n throw new ParserException(\"Leaf atom with length > 2147483647 (unsupported).\");\n } else {\n this.f11104w = new C2302k((int) this.f11102u);\n System.arraycopy(this.f11095n.f6929a, 0, this.f11104w.f6929a, 0, 8);\n this.f11100s = 1;\n }\n } else if (this.f11102u > 2147483647L) {\n throw new ParserException(\"Skipping atom with length > 2147483647 (unsupported).\");\n } else {\n this.f11104w = null;\n this.f11100s = 1;\n }\n return true;\n }",
"public int encodeValue(DerCoder coder, EncoderOutput sink)\n\t throws EncoderException\n {\n\tint len0 = 0;\n\tFullPositionVector temp0 = this;\n\n\tif (temp0.speedConfidence != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.speedConfidence.byteArrayValue()), 0x89);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"speedConfidence\", \"SpeedandHeadingandThrottleConfidence\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.posConfidence != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.posConfidence.byteArrayValue()), 0x88);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"posConfidence\", \"PositionConfidenceSet\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.timeConfidence != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(coder.encodeEnumerated(temp0.timeConfidence, sink), 0x87);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"timeConfidence\", \"TimeConfidence\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.posAccuracy != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.posAccuracy.byteArrayValue()), 0x86);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"posAccuracy\", \"PositionalAccuracy\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.speed != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.speed.byteArrayValue()), 0x85);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"speed\", \"TransmissionAndSpeed\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.heading != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(coder.encodeInteger(temp0.heading, sink), 0x84);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"heading\", \"Heading\");\n\t\tthrow ee;\n\t }\n\t}\n\tif (temp0.elevation != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(sink.write(temp0.elevation.byteArrayValue()), 0x83);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"elevation\", \"Elevation\");\n\t\tthrow ee;\n\t }\n\t}\n\ttry {\n\t len0 += sink.encodeLengthTag(coder.encodeInteger(temp0.lat, sink), 0x82);\n\t} catch (Exception e) {\n\t EncoderException ee = EncoderException.wrapException(e);\n\t ee.appendFieldContext(\"lat\", \"Latitude\");\n\t throw ee;\n\t}\n\ttry {\n\t len0 += sink.encodeLengthTag(coder.encodeInteger(temp0._long, sink), 0x81);\n\t} catch (Exception e) {\n\t EncoderException ee = EncoderException.wrapException(e);\n\t ee.appendFieldContext(\"long\", \"Longitude\");\n\t throw ee;\n\t}\n\tif (temp0.utcTime != null) {\n\t try {\n\t\tlen0 += sink.encodeLengthTag(temp0.utcTime.encodeValue(coder, sink), 0xA0);\n\t } catch (Exception e) {\n\t\tEncoderException ee = EncoderException.wrapException(e);\n\t\tee.appendFieldContext(\"utcTime\", \"DDateTime\");\n\t\tthrow ee;\n\t }\n\t}\n\n\treturn len0;\n }",
"boolean isCurrentTrackDataCrcPosition(int position) {\n return currentTrackData[position].isCrcPosition(position);\n }",
"boolean aInverter(int[] coorXY){\n System.out.println(\"I found an inverter at: \" + Arrays.toString(coorXY));\n if(inverter.size() == 0)return false;\n\n for (int i = 0; i < inverter.size(); i++) {\n int coorX = inverter.get(i)[0];\n int coorY = inverter.get(i)[1];\n\n int[] inver = new int[]{coorX, coorY};\n\n if(Arrays.equals(inver, coorXY))return true;\n\n }\n\n return false;\n }",
"public boolean isUnderflow() {\n\t\treturn (dataSize() < Math.ceil(degree / 2.0) - 1);\n\t}",
"private static boolean checkZero(int[] count) {\n\t\tfor (int i = 0; i < count.length; i++) {\n\t\t\tif (count[i] != 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"boolean checkError() {\n Iterator<Integer> seq = sequence.iterator();\n Iterator<Integer> in = input.iterator();\n\n while (seq.hasNext() && in.hasNext()) {\n int a = seq.next();\n int b = in.next();\n if (a != b) {\n attempts++;\n return true;\n }\n }\n return false;\n }",
"@Test\n\tpublic void positiveTest() {\n\t\tint input[] ={1, 4, 5, 6, 15};\n\t\t//here 1 represent that NQueen arrangement is possible\n\t\t// We have to type cast boolean to int because JUnit Array Equals function does'nt support boolean array\n\t\tint expecteds[] = {1, 1, 1, 1, 1};\n\t\tint actuals[] = new int[input.length];\n\t\tfor(int i=0; i<input.length; i++){\n\t\t\tNQueen q = new NQueen(input[i]);\n\t\t\tactuals[i] = q.nQueen(0) ? 1 : 0;\n\t\t}\n\t\tassertArrayEquals(expecteds, actuals);\n\t}",
"@Override\r\n\tpublic boolean pushValuesForward() {\r\n\t\tboolean isModified = false;\r\n\t\tfor (Port port : getPorts()) {\r\n\t\t\tif (port == getClockPort() || port == getResetPort()\r\n\t\t\t\t\t|| port == getGoPort() && port.getValue() == null) {\r\n\t\t\t\t/*\r\n\t\t\t\t * Do nothing for clock or reset, since they are not passed out\r\n\t\t\t\t * of the OutBuf's module. Also do nothing if the go is not\r\n\t\t\t\t * being fed with a value.\r\n\t\t\t\t */\r\n\t\t\t} else {\r\n\t\t\t\tfinal Value pushedValue = port.getValue();\r\n\t\t\t\tif (pushedValue == null) {\r\n\t\t\t\t\tthrow new NullPointerException(\r\n\t\t\t\t\t\t\t\"Null pointer on pushedValue: \"\r\n\t\t\t\t\t\t\t\t\t+ port.getPeer().showIDLogical()\r\n\t\t\t\t\t\t\t\t\t+ \" Owner: \"\r\n\t\t\t\t\t\t\t\t\t+ this.getOwner().getIDGlobalType()\r\n\t\t\t\t\t\t\t\t\t+ \" Line: \"\r\n\t\t\t\t\t\t\t\t\t+ this.getOwner().getIDSourceInfo()\r\n\t\t\t\t\t\t\t\t\t\t\t.getSourceLine());\r\n\t\t\t\t}\r\n\t\t\t\t/*\r\n\t\t\t\t * If the Bus doesn't have a Value yet, create one.\r\n\t\t\t\t */\r\n\t\t\t\tValue peerValue = port.getPeer().getValue();\r\n\t\t\t\tif (peerValue == null) {\r\n\t\t\t\t\tport.getPeer().setSize(pushedValue.getSize(),\r\n\t\t\t\t\t\t\tpushedValue.isSigned());\r\n\t\t\t\t\tpeerValue = port.getPeer().getValue();\r\n\t\t\t\t\tisModified = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * Rather than depending on the behavior of\r\n\t\t\t\t * Bus.pushValueForward(Value), we need to be more precise here,\r\n\t\t\t\t * since an OutBuf is part Module and part Component. Compare\r\n\t\t\t\t * each pair of Bits.\r\n\t\t\t\t */\r\n\t\t\t\tfor (int i = 0; i < pushedValue.getSize(); i++) {\r\n\t\t\t\t\tfinal Bit pushedBit = pushedValue.getBit(i);\r\n\t\t\t\t\tfinal Bit peerBit = peerValue.getBit(i);\r\n\r\n\t\t\t\t\tif (!pushedValue.bitEquals(i, peerValue, i)\r\n\t\t\t\t\t\t\t&& peerBit.isCare()) {\r\n\t\t\t\t\t\tif (getOwner().isOpaque()) {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * If this OutBuf lives in an opaque Module, then we\r\n\t\t\t\t\t\t\t * have to avoid pushing through internal non-global\r\n\t\t\t\t\t\t\t * Bits. Since we don't push don't-cares, that only\r\n\t\t\t\t\t\t\t * leaves constants as viable propagatees.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tif (pushedBit.isConstant()) {\r\n\t\t\t\t\t\t\t\tpeerValue.setBit(i, pushedBit);\r\n\t\t\t\t\t\t\t\tisModified = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (pushedBit.isConstant()\r\n\t\t\t\t\t\t\t\t|| !pushedBit.isGlobal()) {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Otherwise, this OutBuf lives in a transparent\r\n\t\t\t\t\t\t\t * Module, and we can push through both constant and\r\n\t\t\t\t\t\t\t * internal Bus Bits.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tpeerValue.setBit(i, pushedBit);\r\n\t\t\t\t\t\t\tisModified = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (pushedValue.getCompactedSize() != peerValue\r\n\t\t\t\t\t\t.getCompactedSize()) {\r\n\t\t\t\t\tfinal Bit msb = peerValue.getBit(pushedValue\r\n\t\t\t\t\t\t\t.getCompactedSize() - 1);\r\n\t\t\t\t\tfor (int i = pushedValue.getCompactedSize(); i < peerValue\r\n\t\t\t\t\t\t\t.getSize(); i++) {\r\n\t\t\t\t\t\tpeerValue.setBit(i, msb);\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 isModified;\r\n\t}",
"private boolean isPositive() {\n return this._isPositive;\n }",
"private void testAndUpdateControlFields(int startFieldNr) {\n\t\t\n\t\tboolean consistent = true;\n\t\t\n\t\t//test and correct y\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\tif (parseTextFieldValue(_controlPoints[i][1]) == -1.0f) {\n\t\t\t\tconsistent = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//test and correct x at startFieldNr and above\n\t\tfor (int i = startFieldNr; i >= 0; i--) {\n\t\t\tfloat value1 = parseTextFieldValue(_controlPoints[i][0]);\n\t\t\tif (value1 == -1.0f) {\n\t\t\t\t//check field value\n\t\t\t\tconsistent = false;\n\t\t\t} else {\n\t\t\t\t//field value ok check if it is greater than the field above\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tfloat value2 = parseTextFieldValue(_controlPoints[i-1][0]);\n\t\t\t\t\tif (value2 > value1) {\n\t\t\t\t\t\t//value 2 has to be <= value1 change it\n\t\t\t\t\t\t_controlPoints[i-1][0].setText(String.valueOf(value1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t//test and correct x at startFieldNr and below\n\t\tfor (int i = startFieldNr; i < _controlPoints.length; i++) {\n\t\t\tfloat value1 = parseTextFieldValue(_controlPoints[i][0]);\n\t\t\tif (value1 == -1.0f) {\n\t\t\t\t//check field value\n\t\t\t\tconsistent = false;\n\t\t\t} else {\n\t\t\t\t//field value ok check if it is smaller than the field below\n\t\t\t\tif (i < (_controlPoints.length-1)) {\n\t\t\t\t\tfloat value2 = parseTextFieldValue(_controlPoints[i+1][0]);\n\t\t\t\t\tif (value2 < value1) {\n\t\t\t\t\t\t//value 2 has to be >= value1 change it\n\t\t\t\t\t\t_controlPoints[i+1][0].setText(String.valueOf(value1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t_isConsistent = consistent;\n\t\t_changeListener.pointsChanged(consistent);\n\t}",
"public boolean checkUpDown() {\r\n\t\tif (p1[0] + p1[3] + p1[6] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p1[1] + p1[4] + p1[7] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p1[2] + p1[5] + p1[8] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[0] + p2[3] + p2[6] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[1] + p2[4] + p2[7] == 15)\r\n\t\t\treturn true;\r\n\t\telse if (p2[2] + p2[5] + p2[8] == 15)\r\n\t\t\treturn true;\r\n\r\n\t\treturn false;\r\n\t}",
"public short[] updateAudioTxBuf()\n\t{\n\t\taudioTxBufLength = sampleBit * (bitLength1+bitLength2+bitLength3)+352*2;\t\n\t\tshort[] audioTxBuf = new short[audioTxBufLength];\n\t\tcounter_k = 0;\n\n\t\tinitEncoderTxData();\n\n\t\tfor(counter_i=0;counter_i<bitLength1;counter_i++)\n\t\t{\n\t\t\t\tfor(counter_j=0;counter_j<sampleBit;counter_j++)\n\t\t\t\t{\n\t\t\t\t\taudioTxBuf[counter_k] = highLevel[counter_j];\t//Samsung, Xiaomi(MIUI)\n//\t\t\t\t\taudioTxBuf[counter_k] = lowLevel[counter_j];\t//else\n\t\t\t\t\tcounter_k++;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tfor (int i = 1; i < 352; i++) {\n\t\t\taudioTxBuf[counter_k+i]= (short)0;\t\n\t\t}\n\t\tcounter_k=counter_k+351;\n\t\tfor(counter_i=0;counter_i<bitLength2;counter_i++)\n\t\t{\n\t\t\t\tfor(counter_j=0;counter_j<sampleBit;counter_j++)\n\t\t\t\t{\n\t\t\t\t\taudioTxBuf[counter_k] = highLevel[counter_j];\t//Samsung, Xiaomi(MIUI)\n//\t\t\t\t\taudioTxBuf[counter_k] = lowLevel[counter_j];\t//else\n\t\t\t\t\tcounter_k++;\n\t\t\t\t}\t\t\t\n\t\t\t\n\t\t}\t\n\t\tfor (int i = 1; i < 352; i++) {\n\t\t\taudioTxBuf[counter_k+i]= (short) 0;\t\t\t\n\t\t}\n\t\tcounter_k=counter_k+351;\n\t\tfor(counter_i=0;counter_i<bitLength3;counter_i++)\n\t\t{\n\t\t\t\tfor(counter_j=0;counter_j<sampleBit;counter_j++)\n\t\t\t\t{\n\t\t\t\t\taudioTxBuf[counter_k] = highLevel[counter_j];\t//Samsung, Xiaomi(MIUI)\n//\t\t\t\t\taudioTxBuf[counter_k] = lowLevel[counter_j];\t//else\n\t\t\t\t\tcounter_k++;\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tcounter_k=0;\n\t\treturn audioTxBuf;\n\t}",
"private boolean isResolvable() {\n\t\tfinal int sourceParity = board.calculateParity() % 2;\n\t\tfinal int targetParity = goal.calculateParity() % 2;\n\t\treturn (((sourceParity != 0) && (targetParity != 0)) || ((sourceParity == 0) && (targetParity == 0)));\n\t}",
"private boolean checkNoDataAfterEnd(long pos) {\n if (!bytes.inside(pos, 4L))\n return true;\n if (pos <= bytes.writeLimit() - 4) {\n final int value = bytes.bytesStore().readVolatileInt(pos);\n if (value != 0) {\n String text;\n long pos0 = bytes.readPosition();\n try {\n bytes.readPosition(pos);\n text = bytes.toDebugString();\n } finally {\n bytes.readPosition(pos0);\n }\n throw new IllegalStateException(\"Data was written after the end of the message, zero out data before rewinding \" + text);\n }\n }\n return true;\n }",
"boolean evolveCurrentAngle() {\n float checkSum = 0;\n for (int i = 0; i < 2; i++) {\n float delta = target_angle[i] - angle[i];\n float sign = 1;\n if (Math.abs(delta) > Math.PI) {\n // go the other way\n boolean isPos = delta > 0;\n sign = -1;\n delta = (float) (2 * Math.PI - Math.abs(delta));\n if (!isPos) delta = -delta;\n }\n angle[i] += sign * 0.1f * delta;\n if (angle[i] > Math.PI) angle[i] = (float) -(2 * Math.PI - angle[i]);\n if (angle[i] < -Math.PI) angle[i] = (float) (2 * Math.PI - angle[i]);\n checkSum += Math.abs(delta);\n }\n\n float delta = target_angle[2] - angle[2];\n float sign = 1;\n if (Math.abs(delta) > Math.PI / 2) {\n // go the other way\n boolean isPos = delta > 0;\n sign = -1;\n delta = (float) (Math.PI - Math.abs(delta));\n if (!isPos) delta = -delta;\n }\n angle[2] += sign * 0.1f * delta;\n if (angle[2] > Math.PI / 2) angle[2] = (float) -(Math.PI - angle[2]);\n if (angle[2] < -Math.PI / 2) angle[2] = (float) (Math.PI - angle[2]);\n checkSum += Math.abs(delta);\n\n if (checkSum < 0.0001) {\n for (int i = 0; i < target_angle.length; i++) {\n angle[i] = target_angle[i];\n }\n return false;\n }\n return true;\n }",
"public boolean[] map(LocusContext context, SAMRecord read) {\n boolean[] errorsPerCycle = new boolean[read.getReadLength() + 1];\n \n byte[] bases = read.getReadBases();\n byte[] contig = context.getReferenceContig().getBases();\n byte[] sq = (byte[]) read.getAttribute(\"SQ\");\n \n int totalMismatches = 0;\n \n for (int cycle = 0, offset = (int) context.getPosition(); cycle < bases.length; cycle++, offset++) {\n byte compBase;\n \n switch (contig[offset]) {\n case 'A':\n case 'a': compBase = 'A'; break;\n case 'C':\n case 'c': compBase = 'C'; break;\n case 'G':\n case 'g': compBase = 'G'; break;\n case 'T':\n case 't': compBase = 'T'; break;\n default: compBase = '.'; break;\n }\n \n if (compBase != '.') {\n if (useNextBestBase) {\n int nextBestBaseIndex = QualityUtils.compressedQualityToBaseIndex(sq[cycle]);\n byte nextBestBase;\n switch (nextBestBaseIndex) {\n case 0: nextBestBase = 'A'; break;\n case 1: nextBestBase = 'C'; break;\n case 2: nextBestBase = 'G'; break;\n case 3: nextBestBase = 'T'; break;\n default: nextBestBase = '.'; break;\n }\n \n if (nextBestBase != '.') {\n errorsPerCycle[cycle] = !(bases[cycle] == compBase || nextBestBase == compBase);\n totalMismatches = (!(bases[cycle] == compBase || nextBestBase == compBase)) ? 1 : 0;\n }\n } else {\n errorsPerCycle[cycle] = !(bases[cycle] == compBase);\n totalMismatches += (!(bases[cycle] == compBase)) ? 1 : 0;\n }\n }\n }\n \n /*\n if (totalMismatches > 4) {\n for (int cycle = 0; cycle < bases.length; cycle++) { System.out.print((char) bases[cycle]); } System.out.print(\"\\n\");\n for (int cycle = 0, offset = (int) context.getPosition(); cycle < bases.length; cycle++, offset++) { System.out.print((char) contig[offset]); } System.out.print(\"\\n\");\n System.out.println(totalMismatches + \"\\n\");\n }\n */\n\n // We encode that we saw a read in the last position of the array.\n // That way we know what to normalize by, and we get thread safety!\n errorsPerCycle[errorsPerCycle.length - 1] = true;\n \n return errorsPerCycle;\n }",
"public boolean acceptFrame(EvDecimal frame);",
"boolean validateOffset() {\n\t\t\tint num = entriesByIndex.size() + 1; // assuming 0, plus 1-N)\n\t\t\tfor (int index : entriesByIndex.keySet()) {\n\t\t\t\tif (index > num || index < 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"@Override\n\tpublic boolean\n\tisZero()\n\t{\n\t\treturn( data[0] == 0 && data[1] == 0 && data[2] == 0 );\n\t}",
"static void insertion(BufferedImage img, BufferedImage waterImg, int width, int height, StringBuilder binary, int[] Estimator_pos) {\n int block_num = 0;\r\n int msg_counter = 0;\r\n\r\n for (int x = 0; x < width; x++) {\r\n for (int y = 0; y < height; y++) {\r\n\r\n int b1 = img.getRGB(x, y);\r\n int p1 = (b1 >> 16) & 0xff;\r\n int b2 = img.getRGB(x, y + 1);\r\n int p2 = (b2 >> 16) & 0xff;\r\n int b3 = img.getRGB(x + 1, y);\r\n int p3 = (b3 >> 16) & 0xff;\r\n int b4 = img.getRGB(x + 1, y + 1);\r\n int p4 = (b4 >> 16) & 0xff;\r\n\r\n //geting a random 1-4 for estimator\r\n Random rn = new Random();\r\n int estimator = rn.nextInt(4) + 1;\r\n //System.out.println(estimator);\r\n Estimator_pos[block_num] = estimator;\r\n// System.out.println(\" p1 : \"+p1 + \"| p2 : \" + p2 + \"| p3 : \" + p3 + \"| p4 : \" + p4);\r\n //-----------comparing estimator with pixels ------------------\r\n if ((p1 < 255) && (p2 < 255) && (p3 < 255) && (p4 < 255)) {\r\n\r\n // System.out.println(estimator);\r\n switch (estimator) {\r\n\r\n case 1: //------------------------------------------------------------------------------------- case 1\r\n //System.out.println(\"case 1\");\r\n estimator = p1;\r\n ////writing back estimator \r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 2: //------------------------------------------------------------------------------------- case 2\r\n //System.out.println(\"case 2\");\r\n estimator = p2;\r\n ////writing back estimator \r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 3: //------------------------------------------------------------------------------------- case 3\r\n //System.out.println(\"case 3\");\r\n estimator = p3;\r\n ////writing back estimator\r\n\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p4) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p4 = p4 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p4 = p4 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p4 > 0) {\r\n\r\n p4 = p4 - 2;\r\n } else if (estimator - p4 < 0) {\r\n p4 = p4 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n break;\r\n case 4: //------------------------------------------------------------------------------------- case 4\r\n estimator = p4;\r\n //wrinting back estimator pixel\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n //System.out.println(\"case 4\");\r\n //compare with pixel a\r\n //System.out.println(\"comparing with a\");\r\n if (Math.abs(estimator - p1) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p1 = p1 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p1 = p1 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p1 > 0) {\r\n\r\n p1 = p1 - 2;\r\n } else if (estimator - p1 < 0) {\r\n p1 = p1 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n\r\n //compare with pixel b\r\n //System.out.println(\"comparing with b\");\r\n if (Math.abs(estimator - p2) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p2 = p2 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p2 = p2 - 2;\r\n }\r\n msg_counter++;\r\n }\r\n } else if (estimator - p2 > 0) {\r\n\r\n p2 = p2 - 2;\r\n } else if (estimator - p2 < 0) {\r\n p2 = p2 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x, y + 1, p2);\r\n\r\n //compare with pixel c\r\n //System.out.println(\"comparing with c\");\r\n if (Math.abs(estimator - p3) < 2) {\r\n if (msg_counter < binary.length()) {\r\n if (Character.getNumericValue(binary.charAt(msg_counter)) == 1) {\r\n p3 = p3 + 2;\r\n } else if (Character.getNumericValue(binary.charAt(msg_counter)) == 0) {\r\n p3 = p3 - 2;\r\n }\r\n msg_counter++;\r\n\r\n }\r\n } else if (estimator - p3 > 0) {\r\n\r\n p3 = p3 - 2;\r\n } else if (estimator - p3 < 0) {\r\n p3 = p3 + 2;\r\n }\r\n //System.out.println(p1 + \" \" + p2 + \" \" + p3 + \" \" + p4);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x + 1, y, p3);\r\n\r\n break;\r\n }\r\n// p1 = (p1 >> 16) & 0xff;\r\n// p2 = (p2 >> 16) & 0xff;\r\n// p3 = (p3 >> 16) & 0xff;\r\n// p4 = (p4 >> 16) & 0xff;\r\n// System.out.println(\" p1 : \"+p1 + \"| p2 : \" + p2 + \"| p3 : \" + p3 + \"| p4 : \" + p4);\r\n\r\n } else {\r\n p1 = (p1 << 16) | (p1 << 8) | p1;\r\n waterImg.setRGB(x, y, p1);\r\n p2 = (p2 << 16) | (p2 << 8) | p2;\r\n waterImg.setRGB(x + 1, y, p2);\r\n p3 = (p3 << 16) | (p3 << 8) | p3;\r\n waterImg.setRGB(x, y + 1, p3);\r\n p4 = (p4 << 16) | (p4 << 8) | p4;\r\n waterImg.setRGB(x + 1, y + 1, p4);\r\n\r\n }\r\n block_num = block_num + 1;\r\n\r\n y++;\r\n\r\n }\r\n x++;\r\n }\r\n\r\n }",
"@java.lang.Override\n public boolean hasPositiveFrameTagsCount() {\n return positiveFrameTagsCount_ != null;\n }",
"private boolean checkCycle() {\n for (int i = 0; i < 26; i++) {\n color[i] = 0;\n }\n for (int i = 0; i < 26; i++) {\n if (color[i] != -1 && BFS(i)) return true;\n }\n return false;\n }",
"boolean isOverflow() {\r\n\r\n if (values.size() > branchingFactor - 1) {\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean checkRemainingRes() {\n for (int i = 0; i < playingField.getPlayingField().length; i++) {\n for (int j = 0; j < playingField.getPlayingField()[i].length; j++) {\n if (playingField.getPlayingField()[i][j].getResources() > 0) {\n return true;\n }\n }\n }\n return false;\n }",
"public void reportIrreversibleChange() {\r\n Assert.isTrue(isReceiving());\r\n irreversibleChangeReported = true;\r\n }",
"boolean validConsecutiveMotion(IMotion m1);",
"@java.lang.Override\n public boolean hasCorrect() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"protected boolean isFinished() {\r\n if (Math.abs(motorWithEncoder.getSetpoint() - motorWithEncoder.getPosition()) < 0.5) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"public void initEncoderTxData()\n\t{\n\t\tfor(counter_i=0;counter_i<sampleBit;counter_i++)\n\t\t{\n\t\t\thighLevel[counter_i] = (short) (audioAM * (-Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t\tlowLevel[counter_i] = (short) (audioAM * (Math.sin(Math.PI * counter_i /sampleBit * 2)));\n\t\t}\n\t}",
"public void update()\n {\n int l_zeroes = 0;\n int r_zeroes = 0;\n if(this.pre_comma() != 0)\n {\n for (int i = 0; i < this.pre_comma(); i++)\n {\n if(this.raw_value[i] != '0') break;\n else l_zeroes++;\n }\n }\n\n // deleting right side useless zeroes\n if(this.post_comma_digits > 0)\n {\n for(int i = this.raw_value.length-1; i >= this.raw_value.length-1-this.post_comma_digits; i--)\n {\n if(this.raw_value[i] != '0') break;\n else r_zeroes++;\n }\n this.post_comma_digits = this.post_comma_digits - r_zeroes;\n }\n //checking zero\n if (this.raw_value.length-l_zeroes-r_zeroes == 0)\n ZERO.copy(this);\n else\n {\n char[] new_raw_value = new char[this.raw_value.length-l_zeroes-r_zeroes];\n for(int i = 0; i < new_raw_value.length; i++)\n {\n new_raw_value[i] = this.raw_value[i+l_zeroes];\n }\n this.raw_value = new_raw_value;\n }\n }",
"@Test(timeout = 4000)\n public void test05() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[5];\n byteArray0[0] = (byte)89;\n byteArray0[1] = (byte)71;\n byte byte0 = (byte)0;\n byteArray0[2] = (byte)0;\n int int0 = (-3383);\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.getUngappedOffsetFor(byteArray0, (-3383));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"private static int[] makePositive(byte a[]) {\n int keep, k;\n int byteLength = a.length;\n\n // Find first non-sign (0xff) byte of input\n for (keep=0; keep < byteLength && a[keep] == -1; keep++)\n ;\n\n\n /* Allocate output array. If all non-sign bytes are 0x00, we must\n * allocate space for one extra output byte. */\n for (k=keep; k < byteLength && a[k] == 0; k++)\n ;\n\n int extraByte = (k == byteLength) ? 1 : 0;\n int intLength = ((byteLength - keep + extraByte) + 3) >>> 2;\n int result[] = new int[intLength];\n\n /* Copy one's complement of input into output, leaving extra\n * byte (if it exists) == 0x00 */\n int b = byteLength - 1;\n for (int i = intLength-1; i >= 0; i--) {\n result[i] = a[b--] & 0xff;\n int numBytesToTransfer = Math.min(3, b-keep+1);\n if (numBytesToTransfer < 0)\n numBytesToTransfer = 0;\n for (int j=8; j <= 8*numBytesToTransfer; j += 8)\n result[i] |= ((a[b--] & 0xff) << j);\n\n // Mask indicates which bits must be complemented\n int mask = -1 >>> (8*(3-numBytesToTransfer));\n result[i] = ~result[i] & mask;\n }\n\n // Add one to one's complement to generate two's complement\n for (int i=result.length-1; i >= 0; i--) {\n result[i] = (int)((result[i] & LONG_MASK) + 1);\n if (result[i] != 0)\n break;\n }\n\n return result;\n }",
"public int getEncPosition() {\n //System.out.println(this.EncX.getRaw() + \"raw\");\n return (int) (1000 * this.EncX.getDistance());\n //return (int)(1000 * this.EncX.getRaw() / 8.6);\n \n }",
"@java.lang.Override\n public boolean hasCorrect() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"private void updateNegativeFlagOnComp(int register, int address){\r\n\t\tif(sim40.memory[register] <= sim40.memory[address]){\r\n\t\t\tswitchOnFlag(1);\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\tswitchOffFlag(1);\r\n\t\t}\r\n\t}",
"protected boolean isDiscarded()\n {\n return m_cUnits == -1;\n }",
"public boolean hasSeq() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"private boolean m13819a(C2302k c2302k, byte[] bArr, int i) {\n int min = Math.min(c2302k.m8385b(), i - this.f11304d);\n boolean z = true;\n if (min <= 0) {\n return true;\n }\n if (bArr == null) {\n c2302k.m8390d(min);\n } else {\n c2302k.m8384a(bArr, this.f11304d, min);\n }\n this.f11304d += min;\n if (this.f11304d != i) {\n z = false;\n }\n return z;\n }",
"private boolean m145493d(MotionEvent motionEvent) {\n if (motionEvent.getPointerCount() != this.f119298r) {\n return true;\n }\n for (int i = 0; i < this.f119297q.length; i++) {\n if (this.f119297q[i] != -1 && this.f119297q[i] != i) {\n return true;\n }\n }\n return false;\n }",
"public static boolean vcheck() {\n for (int i = 0; i < card.length; i++) { // rows\n int sum = 0;\n for (int j = 0; j < card.length; j++) { // what coloum\n sum = sum + card[i][j]; // last sum plus the number in the cordinate\n }\n if (sum == 0) {\n System.out.println(\"BINGO\");\n System.out.println(\"The numbers called is \" + called);\n return true;\n\n }\n\n }\n return false;\n\n }",
"public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }",
"private void updatePosition() {\n\t\tfor (int i = 0; i < encoders.length; i++) {\n\t\t\tdRot[i] = (encoders[i].get() - lastEncPos[i]) / this.cyclesPerRev;\n\t\t\tdPos[i] = dRot[i] * wheelDiameter * Math.PI;\n\t\t\tlastEncPos[i] = encoders[i].get();\n\t\t}\n\t\t\n\t\tdLinearPos = (dPos[0] + dPos[1]) / 2;\n\t\t\n\t\tposition[2] = Math.toRadians(gyro.getAngle()) + gyroOffset;\n\t\tposition[0] += dLinearPos * Math.sin(position[2]);\n\t\tposition[1] += dLinearPos * Math.cos(position[2]);\n\t}",
"public void frameNoteDecoder(Integer[] frameNotes){\n //for(int i = 0;i<1;i++){\n for(int j =0; j < rhytm.get(beatCounter).length;j++){\n if(rhytm.get(beatCounter)[j]!=null)\n if ((!rhytm.get(beatCounter)[j].equals(\"Ri\")) && (!rhytm.get(beatCounter)[j].equals(\"Rs\"))) {\n melodyCounter++;\n }\n }\n beatCounter++;\n //}\n\n if(beatCounter==15) {\n for (int i = 0; i < frameNotes.length; i++) {\n if (melody.get(melodyCounter) == frameNotes[i]) {\n if (i < 2) {\n binaryOutput += \"0\";\n binaryOutput += Integer.toBinaryString(i);\n } else {\n binaryOutput += Integer.toBinaryString(i);\n }\n }\n }\n }\n if(beatCounter==31) {\n for (int i = 0; i < frameNotes.length; i++) {\n if (melody.get(melodyCounter) == frameNotes[i]) {\n binaryOutput += Integer.toBinaryString(i);\n }\n }\n }\n beatCounter++;\n melodyCounter++;\n\n\n}",
"private boolean isGoodState() {\n\t resetMask();\n\t checkHorizontal();\n\t checkVertical();\n\n\t for(int i = 0; i < maskArray.length; i++){\n\t for (int j = 0; j < maskArray[i].length; j++){\n\n\t if (maskArray[i][j] == 1){\n\t return false;\n\t }\n\n\t }\n\t }\n\n\t return true;\n }"
] | [
"0.59030646",
"0.5862398",
"0.5633115",
"0.5597317",
"0.5527633",
"0.54965746",
"0.54855",
"0.53658825",
"0.5360141",
"0.534039",
"0.53388226",
"0.5336219",
"0.5317288",
"0.52911156",
"0.5268445",
"0.52497256",
"0.52194977",
"0.5205087",
"0.514465",
"0.5140067",
"0.51177937",
"0.50982094",
"0.5077341",
"0.507604",
"0.50635225",
"0.5006153",
"0.5005589",
"0.50020796",
"0.5000338",
"0.49977648",
"0.49961197",
"0.4990512",
"0.4984675",
"0.4982932",
"0.49824056",
"0.4970104",
"0.4969623",
"0.4964946",
"0.49628007",
"0.4951453",
"0.49439096",
"0.49413338",
"0.49394625",
"0.4926783",
"0.49244985",
"0.49236473",
"0.491353",
"0.4903474",
"0.49004215",
"0.48927477",
"0.48876354",
"0.48737296",
"0.48633167",
"0.4862457",
"0.48599482",
"0.48474738",
"0.4846075",
"0.48382175",
"0.48370337",
"0.48319602",
"0.48317647",
"0.48316905",
"0.48282695",
"0.4822374",
"0.48220894",
"0.48220453",
"0.481762",
"0.48169214",
"0.48164988",
"0.4814907",
"0.4807012",
"0.48048106",
"0.48024255",
"0.48023522",
"0.47971466",
"0.47967198",
"0.47848788",
"0.47844076",
"0.47821888",
"0.47760716",
"0.4774991",
"0.47729358",
"0.47690544",
"0.4767909",
"0.47656676",
"0.47650695",
"0.47647995",
"0.47577655",
"0.47545514",
"0.4754265",
"0.4754199",
"0.4752161",
"0.47519842",
"0.47493693",
"0.47436807",
"0.47423214",
"0.47413984",
"0.47392496",
"0.4738254",
"0.47350532",
"0.47333354"
] | 0.0 | -1 |
getDriver(); // argument is mandatory | public static void main(String[] args) {
String str = getDriver("chrome");
System.out.println(str);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Driver getDriver();",
"public void selectDriver();",
"public abstract String getDriver();",
"public String getDriver() {\r\n return driver;\r\n }",
"public String getDriver() {\n return driver;\n }",
"public String getDriver() {\n return driver;\n }",
"void createDriver(Driver driver);",
"public void setDriver(String driver) {\r\n this.driver = driver;\r\n }",
"protected abstract String getDriverClassName();",
"public void initializeDriver() {\n }",
"public void startDriver();",
"public abstract String getDriver() throws DataServiceException;",
"public java.lang.CharSequence getDriver() {\n return driver;\n }",
"public String getDriver()\n {\n return m_driverName;\n }",
"public java.lang.CharSequence getDriver() {\n return driver;\n }",
"public static WebDriver getDriver(){\n if(driver==null){\n //get the driver type from properties file\n\n String browser=ConfigurationReader.getPropery(\"browser\");\n switch(browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n }\n }\n\n return driver;\n }",
"public String getDriverClass() {\n return driverClass;\n }",
"private static String createDriver() {\n\t\tBFLogger.logDebug(\"Creating new \" + RuntimeParameters.PARAM_1.toString() + \" driver.\");\n\t\t\n\t\tString driver = \"created driver\";\n\t\treturn driver;\n\t}",
"private static WebDriver driver() {\n\t\treturn null;\r\n\t}",
"public String getDriverName() {\n return driverName;\n }",
"public DatabaseDriver getDriver() {\r\n return driver;\r\n }",
"protected String getDriverName() {\n\t\treturn driver.getName();\n\t}",
"public WebDriver getDriver(){\r\n\t\treturn this.driver;\r\n\t\t\t \r\n\t\t }",
"public static String getDriver(){\n\t\treturn HIVE_DRIVER;\n\t}",
"void updateDriver(Driver driver);",
"public WebDriver getDriver(){\n\t\treturn driver;\n\t}",
"public boolean isSingleDriver() {\n return true;\n }",
"public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}",
"public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}",
"String getParentDriverName();",
"public interface IDriver {\n\n /** Get Device Name. */\n public String getDevice();\n\n /** Get Device Id. */\n public String getDeviceId();\n\n /** Get Device version. */\n public String getVersion();\n \n /** Execute command:<code>cmd</code> \n * with arguments<code>args</code> \n * (and/or <code>argsBytes</code>) and return the result. \n * @param cmd Command.\n * @param args Array with arguments for the Command.\n * @param argsBytes Array with byte arguments for the Command.\n * @return Return an object array, this the result list of Command.\n * @throw DriverException Error in Command.\n * @throw UnsupportedDriverOperation Unsupported Command in driver version.\n */\n public Object[] exec(String cmd, String args[], byte[] argsBytes) \n throws DriverException, UnsupportedDriverOperation;\n \n}",
"public abstract void run(WebDriver driver);",
"public static WebDriver setupDriver()\r\n\t{\r\n\t driver = getWebDriver();\r\n\t return driver;\r\n\t}",
"public void setDriver(final Driver driver) {\n\t\tthis.driver = driver;\n\t}",
"public void setDriver(java.lang.CharSequence value) {\n this.driver = value;\n }",
"public void setDriverClass(String driverClass) {\n this.driverClass = driverClass;\n }",
"@BeforeClass\n @Parameters({\"browser\", \"url\"})\n // Step 2: create a method with appropriate params\n void setup(String mBrowser, String mUrl){\n // Step 3: make use of the parameters\n if(mBrowser.equalsIgnoreCase(\"chrome\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/chromedriver_win32/chromedriver.exe\");\n driver = new ChromeDriver();\n }else if(mBrowser.equalsIgnoreCase(\"firefox\")){\n System.setProperty(\"webdriver.chrome.driver\",\"C:/firefox_win32/firefoxdriver.exe\");\n driver = new FirefoxDriver();\n }\n // Step 3: make use of the parameters\n driver.get(mUrl);\n }",
"public Driver getDriver() throws InterruptedException {\n return drivers.take();\n }",
"public interface InternalsDriver {\n Optional<String> getStatisticsProviderName();\n Optional<String> getStatisticsProviderSetup();\n Optional<String> refreshStatisticsProviderSetup();\n}",
"SeleniumFactory getSeleniumFactory();",
"public WebDriver getDriver() {\n return driver;\n }",
"public WebDriver getDriver() {\n return driver;\n }",
"public DriverService getDriverService() {\n return driverService;\n }",
"public WebDriver getDriver() {\n\t\tSystem.out.println(\"Inside DriverFactory.getDriver\");\n\t\tif (webDriver == null) {\n\t\t\twebDriver = launchDriver();\n\t\t}\n\t\treturn webDriver;\n\t}",
"private static WebDriver getDriver(browsers browser) {\n\t\t\t\tLOG.log(Level.CONFIG, \"Requested driver: \" + browser);\n\t\t// 1. WebDriver instance is not created yet\n\t\tif (driver == null) {\n\t\t\tLOG.log(Level.CONFIG, \"No previous driver found\");\n\t\t\tdriver = newWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\ttry {\n\t\t\tdriver.getCurrentUrl();//touch with stick\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t\tnewWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\treturn driver;\n\t}",
"public interface DriverCapabilities {\r\n\r\n\t/**\r\n\t * Allows custom capabilities to be set.\r\n\t * \r\n\t * @param browser\r\n\t * The browser to set capabilities specific to browser being\r\n\t * used.\r\n\t * @param caps\r\n\t * The capabilities object to add additional capabilities to.\r\n\t */\r\n\tvoid getCapabilties(Browser browser, DesiredCapabilities caps);\r\n}",
"protected WebDriver getDriver() {\n return Web.getDriver(Browser.CHROME, server.getURL() + \"TEST\", By.className(\"AuO\"));\n }",
"public String getDriver() {\n\t\t\tif (mDriver == null) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + DRIVER);\n\t\t\t\tif (list == null || list.isEmpty()) return null;\n\t\t\t\tmDriver = list.get(0);\n\t\t\t}\n\t\t\treturn mDriver;\n\t\t}",
"private Driver() {\n\n }",
"public String getSoftwareDriverId();",
"private PerfectoDriverFactory() {\n\n\t}",
"JGraphicDriverConfig(/*JGraphicDriver driver*/) {\n//\t\tthis.driver = driver;\n\t}",
"public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}",
"public void setDriver(String driver) {\n this.driver = driver;\n saveProperties();\n }",
"public static WebDriver getDriver() {\n\t\treturn driver;\n\t}",
"private Driver(){\n }",
"@Test\n public void testGetScriptDriver_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n ScriptDriver result = fixture.getScriptDriver();\n\n assertNotNull(result);\n assertEquals(\"SilkPerformer\", result.name());\n assertEquals(\"SilkPerformer\", result.toString());\n assertEquals(1, result.ordinal());\n }",
"public WebDriver getDriver() {\n\t\treturn driver;\n\t}",
"@JsonProperty(\"driver\")\n public ToolComponent getDriver() {\n return driver;\n }",
"public interface WebDriverHandler {\n\t/**\n\t * Extracts the integrated web driver and configures the system properties\n\t * @param tempFiles A collection to place references to any temporary files in\n\t */\n\tvoid configureWebDriver(@NotNull List<File> tempFiles);\n}",
"public String getDriver() {\n return jdbcDriver;\n }",
"public void setDriverDobj(JdbcDriver driver)\n {\n _driver = driver;\n }",
"public static AppiumDriver getDriver(){\n return appiumDriverList.get(0);\n }",
"public static WebDriver getDriver(){\n if(driverPool.get()==null) {\n synchronized ((Driver.class)) {\n\n\n\n\n /*\n we read our browser type from configuration file using .getProperty method we\n creating in configuration Reader class.\n */\n String browserType = ConfigurationReader.getProperty(\"browser\");\n\n /*\n Depending on the browser type our switch statement will determine\n to open specific type of browser/driver\n */\n\n // we use this not testBase we use this test base just for practice\n switch (browserType) {\n\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driverPool.set(new ChromeDriver());\n driverPool.get().manage().window().maximize();\n driverPool.get().manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n break;\n\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n driverPool.get().manage().window().maximize();\n driverPool.get().manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n break;\n\n }\n }\n\n }\n /*\n Same driver instance will be return every time we call Driver.getDriver(); method\n */\n return driverPool.get();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tString browser =\"firefox\";\n\t\tswitch (browser) {\n\t\t\n\t\tcase \"chrome\":\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver=new ChromeDriver();\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"IE\":\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver= new InternetExplorerDriver();\n\t\tbreak;\n\t\t\n\t\tdefault:\n\t\t\tSystem.out.println(\"please pass the correct browser :\" + browser);\n\t\t}\n\n\t}",
"public void testGetDriver1() throws TelosysToolsException {\n\t\tgetDriverFromFile( TestsEnv.getTestFileAbsolutePath(\"/myfolder1/derbyclient.jar\") );\r\n\t}",
"public static WebDriver getDriver(String browsername)\n\t{\n\t\t\n\t\tWebDriver dri;\n\t\t\n\t\t\n\t\tif(browsername.equalsIgnoreCase(\"chrome\")) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Chrome_Driver\\\\chromedriver.exe\"); \n\t\tdri = new ChromeDriver();\n\t\t}\n\t\t\n\t\telse{\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\",\"C:\\\\Edge_Driver\\\\msedgedriver.exe\"); \n\t\t\tdri = new ChromeDriver(); //replace else if loop with switch\n\t\t\t\n\t\t}\n\t\t\n//\t\telse{\n//\t\t\t\n//\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Chrome_Driver\\\\chromedriver.exe\"); \n//\t\t\tdri = new ChromeDriver();\n//\t\t\t\n//\t\t}\n\t\t\n\t\treturn dri;\n\t\t\n\t}",
"public RegisterPage(WebDriver driver){ this.driver = driver; }",
"public static WebDriver getDriver() {\n\t\t\n\t\tString driver = System.getProperty(\"selenium.driver\");\n\t\tif(driver.equals(\"ie\")) {\n\t\t\treturn getIEDriver();\n\t\t\t\n\t\t}\n\t\telse if(driver.equals(\"chrome\")) {\n\t\t\treturn getChromeDriver();\n\t\t}\n\t\t\telse if(driver.equals(\"firefox\")) {\n\t\t\t\treturn getFirefoxriver();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"System property selenium driver is not set\");\n\t\t}\n\t}",
"public void setDriverName(String driverName) {\n this.driverName = driverName;\n }",
"public DriverConfig createDriver()\n {\n DriverConfig driver = new DriverConfig(this);\n \n _driverList.add(driver);\n \n return driver;\n }",
"private WebDriver getDriver() {\n return new ChromeDriver();\n }",
"public static WebDriver getDriver() {\n return driver;\n }",
"public AddDriver() {\n initComponents();\n showDrivers();\n }",
"public WebDriver getWebDriver() {\n\t\tString driverName = getProperty(\"driver\");\n\t\tif (driverName.equals(\"firefox\")) {\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (driverName.equals(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\main\\\\resources\\\\binaries\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t} \n\t\treturn driver;\n\t}",
"private void ucitajDrajver()throws Exception{\r\n db.loadDriver();\r\n }",
"protected WebDriver newDriver() {\n SupportedWebDriver supportedDriverType = Configuration.getDriverType();\n return webDriverFactory.newInstanceOf(supportedDriverType);\n }",
"private TestDriverImpl getTestDriver(VerboseStream stream)\n throws IOException, ClassNotFoundException, SQLException\n {\n if (null == _driver) {\n try {\n Class.forName(\"jdbc.db.TestDriverImpl\");\n }\n catch (ClassNotFoundException e) {\n stream.writeVerbose(\"Test driver class not found\");\n throw e;\n }\n \n try {\n _driver = (TestDriverImpl)DriverManager.getDriver(TestDriverImpl.TEST_URL_START);\n }\n catch (SQLException e)\n {\n stream.writeVerbose(\"Failed to get test driver\");\n throw e;\n }\n }\n\n return _driver;\n }",
"public Start (WebDriver driver) {\n\t\tthis.driver=driver;\n\t}",
"public String getSoftwareDriverVersion();",
"public ELogin(WebDriver driver)\r\n{\r\n\tthis.driver =driver;\r\n\t//System.out.println(\"Elogin as been instantiated\");\r\n}",
"public interface PeripheralSoftwareDriverInterface extends DriverBaseDataEventListener {\r\n\r\n /**\r\n * Is set in the BaseDriver, you can overwrite it, but for debugging\r\n * purposes not handy\r\n */\r\n public final static String DriverBaseName = \"driver:port\";\r\n\r\n /**\r\n * Returns the driver DB id.\r\n * @return \r\n */\r\n public int getId();\r\n \r\n /**\r\n * Starts the driver and runs the thread\r\n */\r\n public void startDriver();\r\n\r\n /**\r\n * Stops the driver and the thread the driver is running in\r\n */\r\n public void stopDriver();\r\n\r\n /**\r\n * Returns the Hardware driver which belongs to the given running software\r\n * driver.\r\n *\r\n * @return\r\n */\r\n public Peripheral getHardwareDriverFromSoftwareDriver();\r\n\r\n \r\n /**\r\n * Returns the hardware driver.\r\n * @return \r\n */\r\n public PeripheralHardwareDriverInterface getHardwareDriver();\r\n \r\n /**\r\n * Returns the amount of active devices attached to this driver.\r\n *\r\n * @return\r\n */\r\n public int getRunningDevicesCount();\r\n\r\n /**\r\n * Returns a list of running devices whom belong to this driver.\r\n *\r\n * @return\r\n */\r\n public List<Device> getRunningDevices();\r\n\r\n /**\r\n * Send a batch of commands through the proxy. This method is preferred when\r\n * sending multiple commands at once with a build in delay. this function\r\n * should create a batch with a default name (anonymous)\r\n *\r\n * @param batchData Strings with commands\r\n * @see #runBatch()\r\n * @see #runBatch(java.lang.String)\r\n */\r\n public void addBatch(List<Map<String, String>> batchData);\r\n\r\n /**\r\n * Send a batch of commands through the proxy. This method is preferred when\r\n * sending multiple commands at once with a build in delay.\r\n *\r\n * @param batchData Strings with commands\r\n * @param batchName String with the name of the batch to use later on with\r\n * runBatch()\r\n * @see #runBatch()\r\n * @see #runBatch(java.lang.String)\r\n */\r\n public void addBatch(List<Map<String, String>> batchData, String batchName);\r\n\r\n /**\r\n * Runs the batch previously set with the anonymous addBatch\r\n */\r\n public void runBatch();\r\n\r\n /**\r\n * Runs the batch previously set with addBatch with a batchName\r\n *\r\n * @param batchName Name of the batch to run\r\n */\r\n public void runBatch(String batchName);\r\n\r\n /**\r\n * Sends the data to the hardware itself\r\n *\r\n * @param data The data to send\r\n * @param prefix When having multiple devices supported by the hardware a\r\n * prefix can distinct the device in your hardware\r\n * @return result of the send command\r\n * @throws java.io.IOException\r\n * @Obsolete Use writeBytes.\r\n */\r\n public boolean sendData(String data, String prefix) throws IOException;\r\n\r\n /**\r\n * Sends the data to the hardware itself\r\n *\r\n * @param data The data to send\r\n * @return the result of the command\r\n * @throws java.io.IOException\r\n * @Obsolete Use WriteBytes.\r\n */\r\n public boolean sendData(String data) throws IOException;\r\n\r\n /**\r\n * Retrieves the name of the class.\r\n *\r\n * @return the name of the class\r\n */\r\n public String getName();\r\n\r\n /**\r\n * For adding an hardware driver.\r\n *\r\n * @param l\r\n */\r\n public void setPeripheralEventListener(PeripheralHardwareDriverInterface l);\r\n\r\n /**\r\n * for removing an hardware driver.\r\n *\r\n * @param l\r\n */\r\n public void removePeripheralEventListener(PeripheralHardwareDriverInterface l);\r\n\r\n /**\r\n * Handles data received from the hardware driver to be used by overwriting\r\n * classes.\r\n *\r\n * @param oEvent\r\n */\r\n @Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);\r\n\r\n /**\r\n * Driver proxy for hardware data.\r\n *\r\n * @param oEvent\r\n */\r\n public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);\r\n\r\n /**\r\n * Returns the package name of the driver as used in the database.\r\n *\r\n * @return The package name of this class\r\n */\r\n public String getPackageName();\r\n\r\n /**\r\n * Adds a device to the listers for whom data can exist.\r\n *\r\n * @param device\r\n */\r\n public void addDeviceListener(DeviceDriverListener device);\r\n\r\n /**\r\n * Removes a device from the listeners list.\r\n *\r\n * @param device\r\n */\r\n public void removeDeviceListener(DeviceDriverListener device);\r\n\r\n /**\r\n * Handle the data coming from a device driver to dispatch to the hardware\r\n * driver. With this function you can do stuff with the data. For example if\r\n * needed change from string to byte array?\r\n *\r\n * @param device\r\n * @param group\r\n * @param set\r\n * @param deviceData\r\n * @return A string which represents a result, human readable please.\r\n * @throws java.io.IOException\r\n */\r\n public boolean handleDeviceData(Device device, String group, String set, String deviceData) throws IOException;\r\n\r\n /**\r\n * Handles data coming from a device as is in the request!\r\n * @param device\r\n * @param request\r\n * @return\r\n * @throws IOException \r\n */\r\n public boolean handleDeviceData(Device device, DeviceCommandRequest request) throws IOException;\r\n \r\n /**\r\n * Sets the driver DB id.\r\n * @param driverDBId \r\n */\r\n public void setId(int driverDBId);\r\n \r\n /**\r\n * Sets the named id\r\n * @param dbNameId\r\n */\r\n public void setNamedId(String dbNameId);\r\n \r\n /**\r\n * Gets the named id\r\n * @return \r\n */\r\n public String getNamedId();\r\n \r\n /**\r\n * Returns if the driver supports custom devices.\r\n * @return \r\n */\r\n public boolean hasCustom();\r\n \r\n /**\r\n * Set if a driver has custom devices.\r\n * @param hasCustom\r\n * @return \r\n */\r\n public void setHasCustom(boolean hasCustom);\r\n \r\n /**\r\n * Returns the software driver id.\r\n *\r\n * @param softwareId\r\n */\r\n public void setSoftwareDriverId(String softwareId);\r\n\r\n /**\r\n * Returns the version set in the driver.\r\n *\r\n * @param softwareIdVersion\r\n */\r\n public void setSoftwareDriverVersion(String softwareIdVersion);\r\n\r\n /**\r\n * Returns the software driver id.\r\n *\r\n * @return\r\n */\r\n public String getSoftwareDriverId();\r\n\r\n /**\r\n * Returns the version set in the driver.\r\n *\r\n * @return\r\n */\r\n public String getSoftwareDriverVersion();\r\n\r\n /**\r\n * Returns true if there is a web presentation present.\r\n *\r\n * @return\r\n */\r\n public boolean hasPresentation();\r\n\r\n /**\r\n * Sets a web presentation;\r\n *\r\n * @param pres\r\n */\r\n public void addWebPresentationGroup(WebPresentationGroup pres);\r\n\r\n /**\r\n * Returns the web presentation.\r\n *\r\n * @return\r\n */\r\n public List<WebPresentationGroup> getWebPresentationGroups();\r\n\r\n /**\r\n * Sets the friendlyname.\r\n * @param name \r\n */\r\n public void setFriendlyName(String name);\r\n \r\n /**\r\n * Returns the friendlyname.\r\n * @return \r\n */\r\n public String getFriendlyName();\r\n \r\n /**\r\n * Sets a link with the device service.\r\n * @param deviceServiceLink \r\n */\r\n public void setDeviceServiceLink(PeripheralDriverDeviceMutationInterface deviceServiceLink);\r\n \r\n /**\r\n * Removes a device service link.\r\n */\r\n public void removeDeviceServiceLink();\r\n \r\n /**\r\n * Indicator to let know a device is loaded.\r\n * @param device \r\n */\r\n public void deviceLoaded(Device device);\r\n \r\n}",
"public static void main(String[] args) {\n\t\t\r\n\t\tString browser = \"ff\";\r\n\t\t\r\n\t\tif(browser.equalsIgnoreCase(\"chrome\"))\r\n\t\t{\r\n\t\t\tWebDriverManager.chromedriver().setup();\r\n\t\t\tWebDriver dr = new ChromeDriver();\r\n\t\t}\r\n\t\r\n\t\t if(browser.equalsIgnoreCase(\"ff\"))\r\n\t\t{\r\n\t\t\tWebDriverManager.firefoxdriver().setup();\r\n\t\t\tWebDriver dr = new FirefoxDriver();\r\n\t\t}\r\n\t\t\r\n\t\t if(browser.equalsIgnoreCase(\"IE\"))\r\n\t\t{\r\n\t\t\tWebDriverManager.iedriver().setup();\r\n\t\t\tWebDriver dr = new InternetExplorerDriver();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public String getJdbcDriver()\n {\n return getDriverDobj() == null ? \"\" : getDriverDobj().getDriver();\n }",
"public java.lang.String getDriverid() {\n return driverid;\n }",
"public WebDriver getDriver() {\n\t\t\treturn this.driver;\r\n\t\t}",
"public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}",
"@Override\r\n\tpublic Shop_Driver findDriverByID(String driverid) {\n\t\treturn shopdriverDao.getById(driverid);\r\n\t}",
"public String getDbdriver() {\n return dbdriver;\n }",
"public static void main(String[] args) {\n\t\tDriver driver = new BenzDriver();\r\n\t\tCar car = driver.driverCar();\r\n\t\tcar.driver();\r\n\t}",
"public AppiumDriver getDriver() {\n return appiumDriver;\n }",
"public java.lang.String getDriverid() {\n return driverid;\n }",
"public synchronized static WebDriver getDriver() {\n //if webdriver object doesn't exist\n //create it\n if (driverPool.get() == null) {\n //specify browser type in configuration.properties file\n String browser = ConfigurationReader.getProperty(\"browser\").toLowerCase();\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"--start-maximized\");\n driverPool.set(new ChromeDriver(chromeOptions));\n break;\n case \"chromeheadless\":\n //to run chrome without interface (headless mode)\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions options = new ChromeOptions();\n options.setHeadless(true);\n driverPool.set(new ChromeDriver(options));\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n break;\n default:\n throw new RuntimeException(\"Wrong browser name!\");\n }\n }\n return driverPool.get();\n }",
"@Override\n protected void startDriver(IOSCapabilities caps) {\n }",
"public void testGetDriver2() throws TelosysToolsException {\n\t\tgetDriverFromFile( TestsEnv.getTestFileAbsolutePath(\"/my folder/derbyclient.jar\") );\r\n\t}",
"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 WebDriver getDriver() {\r\n\t\tif (driver == null)\r\n\t\t\tdriver = createDriver();\r\n\t\treturn driver;\r\n\t}",
"public synchronized static WebDriver getDriver(String browser) {\n //if webdriver object doesn't exist\n //create it\n if (driverPool.get() == null) {\n //specify browser type in configuration.properties file\n\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.addArguments(\"--start-maximized\");\n driverPool.set(new ChromeDriver(chromeOptions));\n break;\n case \"chromeheadless\":\n //to run chrome without interface (headless mode)\n WebDriverManager.chromedriver().version(\"79\").setup();\n ChromeOptions options = new ChromeOptions();\n options.setHeadless(true);\n driverPool.set(new ChromeDriver(options));\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driverPool.set(new FirefoxDriver());\n break;\n default:\n throw new RuntimeException(\"Wrong browser name!\");\n }\n }\n return driverPool.get();\n }",
"public static void main(String[] args) {\n\t\tDriver driveClass = new Driver();\r\n\t\tdriveClass.runDriver();\r\n\t}",
"public static WebDriver getDriver() {\n return driver.get();\n }"
] | [
"0.89940023",
"0.84208065",
"0.8269401",
"0.7520563",
"0.74661916",
"0.74661916",
"0.74257",
"0.7344885",
"0.7176095",
"0.70536554",
"0.70138264",
"0.70072633",
"0.69557184",
"0.6941041",
"0.68648154",
"0.6843621",
"0.6832828",
"0.672223",
"0.6692424",
"0.66550386",
"0.658413",
"0.6550686",
"0.6542432",
"0.6541234",
"0.64582723",
"0.64274126",
"0.6383901",
"0.6274576",
"0.6272902",
"0.6255458",
"0.6212696",
"0.62105477",
"0.6209707",
"0.62093055",
"0.6207591",
"0.61948884",
"0.61833555",
"0.6177696",
"0.61549646",
"0.6150076",
"0.61499584",
"0.61499584",
"0.61459744",
"0.61433375",
"0.61370623",
"0.61313844",
"0.6129134",
"0.6121756",
"0.61177033",
"0.6110554",
"0.60983294",
"0.60973746",
"0.6090149",
"0.60853994",
"0.6071096",
"0.6060024",
"0.605709",
"0.6055405",
"0.60396063",
"0.6039585",
"0.60262984",
"0.60252607",
"0.6024239",
"0.60159504",
"0.6007729",
"0.60012424",
"0.5999607",
"0.5992172",
"0.5986062",
"0.59851533",
"0.597966",
"0.5976898",
"0.5963188",
"0.59616536",
"0.59583455",
"0.59579366",
"0.5955687",
"0.5952425",
"0.59509283",
"0.5949935",
"0.5929728",
"0.59221655",
"0.59140414",
"0.5902576",
"0.5897091",
"0.58963877",
"0.589556",
"0.58882636",
"0.5878512",
"0.5869324",
"0.5857329",
"0.5838125",
"0.5837528",
"0.58302927",
"0.58221865",
"0.5821109",
"0.58206415",
"0.5820305",
"0.5810288",
"0.58092403"
] | 0.6098721 | 50 |
Makes a transaction specified in the OrderTransfer object. | @Transactional
public long makeTransaction(OrderTransfer orderTransfer) throws IOException {
long securityCode = orderTransfer.getSecurityCode();
long barCode = orderTransfer.getBarCode();
Client client = clientRepo.findBySecurityCode(securityCode);
Product product = productRepo.findByBarCode(barCode);
BigDecimal convertedPrice = converter.convert(product.getPrice(), client.getCountry());
String formattedPrice = format(convertedPrice, client.getCountry());
StoreOrder storeOrder = new StoreOrder(client, product, formattedPrice, new Date());
orderRepo.save(storeOrder);
return storeOrder.getNumber();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Transaction createTransaction(Credentials user, TransactionType tt) throws RelationException;",
"public void createTransaction(Transaction trans);",
"public abstract Response makeTransfer(Transaction transaction) throws AccountNotFoundException, InsufficientFundsException;",
"public long createTransaction(Credentials c, TransactionType tt) throws RelationException;",
"Transaction createTransaction(Settings settings);",
"private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }",
"private Transaction setUpTransaction(double amount, Transaction.Operation operation, String username){\n Transaction transaction = new Transaction();\n transaction.setDate(Date.valueOf(LocalDate.now()));\n transaction.setAmount(amount);\n transaction.setOperation(operation);\n transaction.setUserId(userRepository.getByUsername(username).getId());\n return transaction;\n }",
"void sendTransaction(IUserAccount target, ITransaction trans, IUserAccount user);",
"void create(Order order);",
"Transaction createTransaction();",
"protected final Transaction createTransaction(TransactionTypeKeys type) {\n\t\tTransaction trans = null;\n\t\tString payee = getForm().getPayFrom();\n\t\tdouble amount = parseAmount();\n\n\t\t// Put amount in proper form.\n\t\tif ((type == INCOME && amount < 0.0)\n\t\t\t\t|| (type == EXPENSE && amount >= 0.0)) {\n\t\t\tamount = -amount;\n\t\t}\n\n\t\t// Put payee in proper form.\n\t\tpayee = purgeIdentifier(payee);\n\n\t\ttrans = new Transaction(getForm().getField(CHECK_NUMBER).getText(),\n\t\t\t\tparseDate(), payee, Money.of(amount,\n\t\t\t\t\t\tUI_CURRENCY_SYMBOL.getCurrency()), getCategory(),\n\t\t\t\tgetForm().getField(NOTES).getText());\n\n\t\t// Set attributes not applicable in the constructor.\n\t\ttrans.setIsReconciled(getForm().getButton(PENDING).isSelected() == false);\n\n\t\tif (isInEditMode() == true) {\n\t\t\ttrans.setLabel(getEditModeTransaction().getLabel());\n\t\t}\n\n\t\treturn trans;\n\t}",
"Order placeNewOrder(Order order, Project project, User user);",
"public int makeTransfer(int tr_amount, int from_account, int to_account, int from_final_balance, int to_final_balance) {\n int generated_id = 0;\n\n try {\n operationLock.lock();\n executeTransfer(generated_id = currentOperationId++, tr_amount, from_account,\n to_account, from_final_balance, to_final_balance, rawDataSource.getConnection());\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n operationLock.unlock();\n }\n\n updateBalance(from_account, from_final_balance);\n updateBalance(to_account, to_final_balance);\n\n return generated_id;\n }",
"public void makeTransaction(Item item, String type) {\n\t\tthis.item = item;\n\t\ttransactionType = type;\n\t}",
"public void makeTransaction(Transaction transaction)\n throws BalanceNotAvailableException, TransactionIdNotUniqueException, TransactionTypeInCorrectException {\n\n if (checkTransactionId(transaction.getTransactionId())) {\n throw new TransactionIdNotUniqueException(\"Transaction Id should be unique\");\n } else if (transaction.getTransactionType().equalsIgnoreCase(\"debit\")) {\n if (checkAvailableBalance(transaction.getAccountId(), transaction.getAmount())) {\n throw new BalanceNotAvailableException(\"Balance Not Available\");\n }\n updateAccountBalance(transaction.getAccountId(),\n getAccountBalance(transaction.getAccountId()) - transaction.getAmount());\n transactionRepository.save(transaction);\n } else if (transaction.getTransactionType().equalsIgnoreCase(\"credit\")) {\n updateAccountBalance(transaction.getAccountId(),\n getAccountBalance(transaction.getAccountId()) + transaction.getAmount());\n transactionRepository.save(transaction);\n } else {\n throw new TransactionTypeInCorrectException(\"Transaction type should be debit or credit\");\n }\n }",
"public Transaction createTransaction(double amount, long timestamp) {\n Transaction transaction = new Transaction();\n transaction.setAmount(amount);\n transaction.setTimestamp(timestamp);\n return transaction;\n }",
"@Test(groups = \"Transactions Tests\", description = \"Create new transaction\")\n\tpublic void createNewTransaction() {\n\t\tMainScreen.clickAccountItem(\"Income\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Salary\");\n\t\tTransactionsScreen.clickAddTransactionBtn();\n\t\tTransactionsScreen.typeTransactionDescription(\"Extra income\");\n\t\tTransactionsScreen.typeTransactionAmount(\"300\");\n\t\tTransactionsScreen.clickTransactionType();\n\t\tTransactionsScreen.typeTransactionNote(\"Extra income from this month\");\n\t\tTransactionsScreen.clickSaveBtn();\n\t\tTransactionsScreen.transactionItem(\"Extra income\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$300\"));\n\t\ttest.log(Status.PASS, \"Sub-account created successfully and the value is correct\");\n\n\t\t//Testing if the transaction was created in the 'Double Entry' account, if the value is correct and logging the result to the report\n\t\treturnToHomeScreen();\n\t\tMainScreen.clickAccountItem(\"Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Current Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Cash in Wallet\");\n\t\tTransactionsScreen.transactionItem(\"Extra income\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$300\"));\n\t\ttest.log(Status.PASS, \"'Double Entry' account also have the transaction and the value is correct\");\n\n\t}",
"@Override\n public void makeTransfer(BigInteger sender, BigInteger recipient, BigDecimal amount)\n throws InsufficientFundsException, GenericBankNowException {\n if (isTheSameAccount(sender, recipient)) {\n throw new GenericBankNowException(\"Sender and recipient are the same accounts\");\n } else {\n Account accountSender = accountDao.getAccountByIban(sender);\n if (hasEfficientFunds(accountSender, amount)) {\n throw new InsufficientFundsException(\"Insufficient funds to proceed transfer\");\n } else {\n Account accountRecipient = accountDao.getAccountByIban(recipient);\n accountSender.setBalance(accountSender.getBalance().subtract(amount));\n accountRecipient.setBalance(accountRecipient.getBalance().add(amount));\n\n accountDao.updateAccount(accountSender);\n accountDao.updateAccount(accountRecipient);\n\n transactionDao.storeTransaction(new Transaction(sender, recipient, amount, TransactionType.TRANSFER));\n }\n }\n }",
"private Tx createTransaction(BitCoinResponseDTO btcDTO, SellerBitcoinInfo sbi) {\n\t\t\n\t\tTx tx = new Tx();\n\t\t\n\t\t\n\t\ttx.setDate(new Date());\n\t\ttx.setAmountOfMoney(btcDTO.getPrice_amount());\n\t\ttx.setStatus(TxStatus.PENDING);\n\t\ttx.setRecieverAddress(btcDTO.getPayment_url());\n\t\ttx.setorder_id(btcDTO.getId()); //ovaj id je na coin gate-u i moram ga cuvati u transakciji\n\t\ttx.setTxDescription(\"Porudzbina je kreirana od strane korisnika\");\n\t\ttx.setSbi(sbi);\n\t\t\n\t\t//trebace ovde jos da se setuje id korisnika koji je kreirao porudzbinu kako bi kasnije mogao da getuje sve\n\t\t//njegove transakcije\n\t\t\n\t\t\n\t\treturn tx;\n\t\t\n\t}",
"protected abstract Txn createTxn(Txn parent, IsolationLevel level) throws Exception;",
"protected abstract Transaction createAndAdd();",
"@Override\n public TransactionModel createTransaction(String custId, LocalDateTime transactionTime, String accountNumber, TransactionType type, BigDecimal amount,String description)\n {\n return transactionDao.createTransaction(custId,accountNumber,transactionTime,type,amount,description);\n }",
"public MOrder createTransferOrder(Integer newDocTypeID) throws Exception{\n\t\t// Crear el pedido idéntico\n\t\tMOrder newOrder = new MOrder(getCtx(), 0, get_TrxName());\n\t\tMOrder.copyValues(this, newOrder);\n\t\tnewOrder.setC_DocTypeTarget_ID(newDocTypeID);\n\t\tnewOrder.setC_DocType_ID(newDocTypeID);\n\t\t// Intercambiar el depósito y organización origen por destino \n\t\tnewOrder.setAD_Org_ID(getAD_Org_Transfer_ID());\n\t\tnewOrder.setAD_Org_Transfer_ID(getAD_Org_ID());\n\t\tnewOrder.setM_Warehouse_ID(getM_Warehouse_Transfer_ID());\n\t\tnewOrder.setM_Warehouse_Transfer_ID(getM_Warehouse_ID());\n\t\tnewOrder.setRef_Order_ID(getID());\n\t\tnewOrder.setDocStatus(DOCSTATUS_Drafted);\n\t\tnewOrder.setDocAction(DOCACTION_Complete);\n\t\tnewOrder.setProcessed(false);\n\t\t// Guardar\n\t\tif(!newOrder.save()){\n\t\t\tthrow new Exception(CLogger.retrieveErrorAsString());\n\t\t}\n\t\t// Copiar las líneas\n\t\tMOrderLine newOrderLine;\n\t\tBigDecimal pendingQty;\n\t\tfor (MOrderLine orderLine : getLines(true)) {\n\t\t\tnewOrderLine = new MOrderLine(getCtx(), 0, get_TrxName());\n\t\t\tMOrderLine.copyValues(orderLine, newOrderLine);\n\t\t\tpendingQty = orderLine.getQtyOrdered().subtract(orderLine.getQtyDelivered());\n\t\t\t\n\t\t\tnewOrderLine.setC_Order_ID(newOrder.getID());\n\t\t\tnewOrderLine.setQty(pendingQty);\n\t\t\tnewOrderLine.setQtyReserved(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setQtyInvoiced(pendingQty);\n\t\t\tnewOrderLine.setQtyDelivered(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setQtyTransferred(BigDecimal.ZERO);\n\t\t\tnewOrderLine.setPrice(orderLine.getPriceEntered());\n\t\t\tnewOrderLine.setRef_OrderLine_ID(orderLine.getID());\n\t\t\tnewOrderLine.setProcessed(false);\n\t\t\tnewOrderLine.setM_Warehouse_ID(newOrder.getM_Warehouse_ID());\n\t\t\tnewOrderLine.setAD_Org_ID(newOrder.getAD_Org_ID());\n\t\t\tif(!newOrderLine.save()){\n\t\t\t\tthrow new Exception(CLogger.retrieveErrorAsString());\n\t\t\t}\n\t\t}\n\t\treturn newOrder;\n\t}",
"public Invoice createInvoice(Order order);",
"@Override\r\n\tpublic void makePayment(Payment p, int amount) {\n\t\t\r\n\t}",
"private static Transaction makeATransaction(Stock stock, Order arrivedOrder,\n Order oppositeAlreadyPlacedOrder,\n AtomicLong serialTime) {\n long quantityOfTransaction = Math.min(arrivedOrder.getQuantity(),\n oppositeAlreadyPlacedOrder.getQuantity());\n\n Transaction transaction = null;\n\n // create Transaction:\n if (arrivedOrder.getOrderDirection() == OrderDirection.BUY) {\n transaction = new Transaction(stock, arrivedOrder.getTimeStamp(),\n quantityOfTransaction,\n oppositeAlreadyPlacedOrder.getDesiredLimitPrice(),\n arrivedOrder.getRequestingUser(),\n oppositeAlreadyPlacedOrder.getRequestingUser(),\n serialTime.get());\n serialTime.set(serialTime.get() + 1);\n } else if (arrivedOrder.getOrderDirection() == OrderDirection.SELL) {\n transaction = new Transaction(stock, arrivedOrder.getTimeStamp(),\n quantityOfTransaction,\n oppositeAlreadyPlacedOrder.getDesiredLimitPrice(),\n oppositeAlreadyPlacedOrder.getRequestingUser(),\n arrivedOrder.getRequestingUser(), serialTime.get());\n serialTime.set(serialTime.get() + 1);\n }\n\n // add Transaction:\n stock.getDataBase().getSuccessfullyFinishedTransactions()\n .getCollection().addFirst(transaction);\n MessagePrint.println(MessagePrint.Stream.OUT,\n Message.Out.StockDataBase.newSuccessAdd(transaction));\n afterExecuteOrderAndTransactionContainer.getTransactions()\n .addFirst(transaction);\n\n return transaction;\n }",
"public void create(Order order) {\n order_dao.create(order);\n }",
"TransactionResponseDTO transferTransaction(TransactionRequestDTO transactionRequestDTO);",
"public Transaction createTransactionInWindow(double amount) {\n return createTransaction(amount, System.currentTimeMillis());\n }",
"public boolean requestTransaction(String name,String reason,double amount){\n Transaction t1 = new Transaction(name,reason,amount);\n boolean done=t1.registertransaction();\n \n return done; \n \n}",
"public boolean makeTransfer(int originAccNo, int targetAccNo, float amount) {\n Account origAccount = getAccountByAccountNo(originAccNo);\n Account targetAccount = getAccountByAccountNo(targetAccNo);\n if (checkIfEnough(origAccount, amount)) {\n origAccount.setBalance(origAccount.getBalance() - amount);\n targetAccount.setBalance(targetAccount.getBalance() + amount);\n //update the two accounts after the transaction\n saveOrUpdate(origAccount);\n saveOrUpdate(targetAccount);\n //save transaction to database with current timestamp\n Transaction transaction = new Transaction();\n transaction.setAccountNo(originAccNo);\n transaction.setTime(new Timestamp(new Date().getTime()));\n transaction.setType(\"transfer from\");\n transactionRepository.save(transaction);\n Transaction transaction2 = new Transaction();\n transaction2.setAccountNo(targetAccNo);\n transaction2.setTime(new Timestamp(new Date().getTime()));\n transaction2.setType(\"transfer to\");\n transactionRepository.save(transaction2);\n\n return true;\n } else {\n return false;\n }\n }",
"OrderDTO create(OrderDTO orderDTO);",
"@Override\n public Transfer makeTransfer(String counterAccount, Money amount)\n throws BusinessException {\n if (amount.greaterThan(this.transferLimit)) {\n throw new BusinessException(\"Limit exceeded!\");\n }\n // 2. Assuming result is 9-digit bank account number, validate 11-test:\n int sum = AccountChekSum(counterAccount);\n\n if (sum % 11 == 0) {\n // 3. Look up counter account and make transfer object:\n Transfer result = doTransfer(counterAccount,amount);\n return result;\n } else {\n throw new BusinessException(\"Invalid account number!\");\n }\n }",
"public Transaction(JsonObject transObj) {\n this.symbol = transObj.get(\"symbol\").getAsString();\n this.price = transObj.get(\"price\").getAsDouble();\n this.volume = transObj.get(\"volume\").getAsInt();\n this.type = transObj.get(\"type\").getAsString(); //buy or sell\n this.date = transObj.get(\"date\").getAsString();\n this.time = transObj.get(\"time\").getAsString();\n this.profitFromSell = transObj.get(\"profitFromSell\").getAsDouble();\n this.averagePurchasePrice = transObj.get(\"averagePurchasePrice\").getAsDouble();\n }",
"public void makeTrans(final double newAmount) {\n this.amount = newAmount;\n balance = balance + amount;\n }",
"public void create(Order order) {\n\t\torderDao.create(order);\n\t}",
"public Receipt recordTransaction(Transaction t) throws RemoteException;",
"public Transaction(int somme, int payeur, int receveur) {\r\n\t\tthis.somme = somme;\r\n\t\tthis.payeur = payeur;\r\n\t\tthis.receveur = receveur;\r\n\t}",
"public abstract void generateReceipt(Transaction trans);",
"public Transaction getDummyTransaction(String action) {\n\n\t\t// Long payerAccountNum = 111l;\n\t\tLong payerRealmNum = 0l;\n\t\tLong payerShardNum = 0l;\n\t\t// Long nodeAccountNum=123l;\n\t\tLong nodeRealmNum = 0l;\n\t\tLong nodeShardNum = 0l;\n\t\tlong transactionFee = 0l;\n\t\tTimestamp startTime =\n\t\t\t\tRequestBuilder.getTimestamp(Instant.now(Clock.systemUTC()).minusSeconds(13));\n\t\tDuration transactionDuration = RequestBuilder.getDuration(100);\n\t\tboolean generateRecord = false;\n\t\tString memo = \"UnitTesting\";\n\t\tint thresholdValue = 10;\n\t\tList<Key> keyList = new ArrayList<>();\n\t\tKeyPair pair = new KeyPairGenerator().generateKeyPair();\n\t\tbyte[] pubKey = ((EdDSAPublicKey) pair.getPublic()).getAbyte();\n\t\tKey akey =\n\t\t\t\tKey.newBuilder().setEd25519(ByteString.copyFromUtf8((MiscUtils.commonsBytesToHex(pubKey)))).build();\n\t\tPrivateKey priv = pair.getPrivate();\n\t\tkeyList.add(akey);\n\t\tlong initBal = 100;\n\t\tlong sendRecordThreshold = 5;\n\t\tlong receiveRecordThreshold = 5;\n\t\tboolean receiverSign = false;\n\t\tDuration autoRenew = RequestBuilder.getDuration(100);\n\t\t;\n\t\tlong proxyAccountNum = 12345l;\n\t\tlong proxyRealmNum = 0l;\n\t\tlong proxyShardNum = 0l;\n\t\tint proxyFraction = 10;\n\t\tint maxReceiveProxyFraction = 10;\n\t\tlong shardID = 0l;\n\t\tlong realmID = 0l;\n\n\t\tTransaction trx = null;\n\t\tSignatureList sigList = SignatureList.getDefaultInstance();\n\t\tTimestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\n\t\t/**\n\t\t * SignatureList sigList = SignatureList.getDefaultInstance(); Transaction transferTx =\n\t\t * RequestBuilder.getCryptoTransferRequest( payer.getAccountNum(), payer.getRealmNum(),\n\t\t * payer.getShardNum(), nodeAccount.getAccountNum(), nodeAccount.getRealmNum(),\n\t\t * nodeAccount.getShardNum(), 800, timestamp, transactionDuration, false, \"test\", sigList,\n\t\t * payer.getAccountNum(), -100l, nodeAccount.getAccountNum(), 100l); transferTx =\n\t\t * TransactionSigner.signTransaction(transferTx, accountKeys.get(payer));\n\t\t */\n\n\t\tif (\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t\ttrx = RequestBuilder.getCryptoTransferRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 800, timestamp,\n\t\t\t\t\ttransactionDuration, false, \"test\", sigList, payerAccountId.getAccountNum(), -100l,\n\t\t\t\t\tnodeAccountId.getAccountNum(), 100l);\n\t\t\t// trx = TransactionSigner.signTransaction(trx, account2keyMap.get(payerAccountId));\n\t\t}\n\n\t\tif (\"createContract\".equalsIgnoreCase(action)) {\n\t\t\tFileID fileID = FileID.newBuilder().setFileNum(9999l).setRealmNum(1l).setShardNum(2l).build();\n\n\t\t\ttrx = RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t\t\t\tpayerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t\t\t\tnodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 50000000000l, timestamp,\n\t\t\t\t\ttransactionDuration, true, \"createContract\", DEFAULT_CONTRACT_OP_GAS, fileID,\n\t\t\t\t\tByteString.EMPTY, 0, transactionDuration,\n\t\t\t\t\tSignatureList.newBuilder().addSigs(\n\t\t\t\t\t\t\tSignature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t\t\t\t\t\t.build(),\n\t\t\t\t\t\"\");\n\t\t}\n\n\t\t// if(\"SolidityIDQuery\".equalsIgnoreCase(action)) {\n\t\t// long durationInSeconds = DAY_SEC * 30;\n\t\t// * Duration contractAutoRenew = Duration.newBuilder().setSeconds(durationInSeconds).build();\n\t\t// * Timestamp timestamp = TestHelper.getDefaultCurrentTimestampUTC();\n\t\t// * Duration transactionDuration = RequestBuilder.getDuration(30, 0);\n\t\t// * Transaction createContractRequest =\n\t\t// RequestBuilder.getCreateContractRequest(payerAccountId.getAccountNum(),\n\t\t// * payerAccountId.getRealmNum(), payerAccountId.getShardNum(), nodeAccountId.getAccountNum(),\n\t\t// * nodeAccountId.getRealmNum(), nodeAccountId.getShardNum(), 100l, timestamp,\n\t\t// transactionDuration, true, \"createContract\",\n\t\t// * DEFAULT_CONTRACT_OP_GAS, contractFile, ByteString.EMPTY, 0, contractAutoRenew,\n\t\t// * SignatureList.newBuilder()\n\t\t// *\n\t\t// .addSigs(Signature.newBuilder().setEd25519(ByteString.copyFrom(\"testsignature\".getBytes())))\n\t\t// * .build());\n\t\t// }\n\n\t\treturn trx;\n\n\t}",
"@Override\n\tpublic int insertOrderTrading(Order_TradingVO otvo) {\n\t\treturn sql.insert(\"insertOrderTrading\", otvo);\n\t}",
"public void transact() {\n\t\truPay.transact();\n\n\t}",
"public int createPurchaseOrder(PurchaseOrder purchaseOrder){\n try {\n session.save(purchaseOrder);\n tx.commit();\n } catch (Exception e) {\n e.printStackTrace();\n tx.rollback();\n return 0 ;\n }\n return 0;\n }",
"private Transaction creatTransaction(Bill bill, boolean b) {\n Transaction transaction = new Transaction();\n transaction.setDateOfTransaction(new Date());\n transaction.setCostOfTransaction(String.valueOf(bill.getCostOfBill()));\n transaction.setSerialOfTransaction(new TransactionSerialProducer().serialProducer());\n transaction.setFinished(b);\n transaction.setTypeOfTransaction(\"پرداخت قبض\");\n transaction.setBillingId(bill.getBillingId());\n transaction.setPaymentCode(bill.getPaymentCode());\n dbHelper = new DBHelper();\n dbHelper.insertTransaction(transaction);\n return transaction;\n }",
"TradeItem createTradeItem(Account proposer, Flippo proposerFlippo, Account receiver, Flippo receiverFlippo);",
"void pay(Order order);",
"@Test\n public void customerCanPerformTransferBetweenAccounts() {\n String ownerId = \"ownerId\";\n Account accountFrom = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n Account accountTo = AccountFactory.createAccount(AccountFactory.AccountType.SAVINGS, ownerId);\n\n // Put some money in the from account\n Transaction transaction = new Transaction.Builder().setDescription(\"Test\").setAmount(DollarAmount.fromInt(100)).setType(Transaction.Type.DEPOSIT).build();\n accountFrom.applyTransaction(transaction);\n assertEquals(accountFrom.getAccountBalance(), DollarAmount.fromInt(100));\n\n // Attempt transfer\n Account.transfer(accountFrom, accountTo, DollarAmount.fromInt(30));\n\n // Assert transfer was successful\n assertEquals(DollarAmount.fromInt(70), accountFrom.getAccountBalance());\n assertEquals(DollarAmount.fromInt(30), accountTo.getAccountBalance());\n }",
"public void transaction() throws DBException {\n\t\tUsersTransaction transaction = new UsersTransaction();\n\t\tScanner scan = new Scanner(System.in);\n\t\tLogger.info(\"================TRANSACTION DETAILS TO DONATE======================\");\n\t\tLogger.info(\"Enter the transaction ID\");\n\t\ttransactionId = scan.nextInt();\n\t\tLogger.info(\"Enter the donor ID\");\n\t\tdonorId = scan.nextInt();\n\t\tLogger.info(\"Enter the fund Id\");\n\t\tfundRequestId = scan.nextInt();\n\t\tLogger.info(\"Enter the amount to be funded\");\n\t\ttargetAmount = scan.nextInt();\n\t\ttransaction.setTransactionId(transactionId);\n\t\ttransaction.setDonorId(donorId);\n\t\ttransaction.setFundRequestId(fundRequestId);\n\t\ttransaction.setTargetAmount(targetAmount);\n\t\tinsert(transaction);\n\t\tdonorFundRequest(reqType);\n\t}",
"Purchase create(Purchase purchase) throws SQLException, DAOException;",
"ResponseDTO createPurchase(PurchaseOrderDTO purchaseOrderDTO) throws ApiException, IOException;",
"public Transaction startTransaction(){\n\t\ttr = new Transaction(db);\n\t\treturn tr;\n\t}",
"private void rewardTransaction (PublicKey recipient, ArrayList<Transfer> transfers) {\n int rewardTransferId = 0;\n if (!transfers.isEmpty()) {\n Transfer latestTransfer = this.transfers.get(this.transfers.size() - 1);\n rewardTransferId = latestTransfer.transferId + 1;\n }\n\n transfers.add(new Transfer(100, recipient, rewardTransferId));\n }",
"public SIPClientTransaction createClientTransaction(\n MessageChannel\tencapsulatedMessageChannel\n ) {\n \n return new SIPClientTransaction\n ( this, encapsulatedMessageChannel );\n \n }",
"public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}",
"UndoableTransaction(RitUndoManager manager, String name, String details,\r\n BackupRepository repository) {\r\n this.manager = manager;\r\n this.name = name;\r\n this.repository = repository;\r\n// this.getRepository().clean();\r\n this.details = details;\r\n\r\n if (RitUndoManager.debug) {\r\n log.debug(\"Created UNDO \" + getPresentationName() + \" \" +\r\n details + \" with repository on \" + repository.getBackupDir());\r\n }\r\n }",
"public PaymentTransaction(java.lang.String alias) {\n\t\tsuper(alias, edu.uga.csci4050.group3.jooq.team3.Team3.TEAM3, edu.uga.csci4050.group3.jooq.team3.tables.PaymentTransaction.PAYMENT_TRANSACTION);\n\t}",
"protected Txn createTxn(Txn parent, IsolationLevel level,\r\n int timeout, TimeUnit unit)\r\n throws Exception\r\n {\r\n return createTxn(parent, level);\r\n }",
"protected abstract Object newTransaction(int isolationLevel) throws TransactionInfrastructureException;",
"@Suspendable\n @Override\n public SignedTransaction call() throws FlowException {\n\n Party notary = getServiceHub().getNetworkMapCache().getNotaryIdentities().get(0);\n//\n\n // Source\n AccountInfo issuerOwner = subFlow(new AccountInfoByName(acctNameSource)).get(0).getState().getData();\n PublicKey issuerOwnerKey = getServiceHub().getKeyManagementService().freshKey(issuerOwner.getIdentifier().getId());\n AnonymousParty issuerOwnerAnonParty = new AnonymousParty(issuerOwnerKey);\n\n AccountInfo targetOwner = subFlow(new AccountInfoByName(acctNameTarget)).get(0).getState().getData();\n PublicKey targetOwnerKey = getServiceHub().getKeyManagementService().freshKey(issuerOwner.getIdentifier().getId());\n AnonymousParty targetOwnerAnonParty = new AnonymousParty(targetOwnerKey);\n\n\n AssetForAccountState outputAsset = new AssetForAccountState(issuerOwnerAnonParty, targetOwnerAnonParty,\n asset.getState().getData().getName(), asset.getState().getData().getValue());\n\n\n TransactionBuilder txBuilder = new TransactionBuilder(notary)\n .addInputState(asset)\n .addOutputState(outputAsset, AssetForAccountContract.ID)\n .addCommand(new AssetForAccountContract.Commands.Transfer(), issuerOwnerKey);\n\n txBuilder.verify(getServiceHub());\n\n SignedTransaction fullySignedTransaction = getServiceHub().signInitialTransaction(txBuilder, issuerOwnerKey);\n\n //return fullySignedTransaction;\n return subFlow(new FinalityFlow(fullySignedTransaction, Collections.emptyList()));\n }",
"@Test\n public void testCreatePurchaseOrder() throws Exception {\n System.out.println(\"createPurchaseOrder\");\n Long factoryId = 1L;\n Long contractId = 2L;\n Double purchaseAmount = 4D;\n Long storeId = 2L;\n String destination = \"store\";\n Calendar deliveryDate = Calendar.getInstance();\n deliveryDate.set(2015, 0, 13);\n Boolean isManual = false;\n Boolean isToStore = true;\n PurchaseOrderEntity result = PurchaseOrderManagementModule.createPurchaseOrder(factoryId, contractId, purchaseAmount, storeId, destination, deliveryDate, isManual, isToStore);\n assertNotNull(result);\n }",
"public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }",
"@Override\n\tpublic int createTransaction(BankTransaction transaction) throws BusinessException {\n\t\tint tran = 0;\n\t\t\n\t\ttry {\n\t\t\tConnection connection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"insert into dutybank.transactions (account_id, transaction_type, amount, transaction_date) values(?,?,?,?)\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\t\n\t\t\tpreparedStatement.setInt(1, transaction.getAccountid());\n\t\t\tpreparedStatement.setString(2, transaction.getTransactiontype());\n\t\t\tpreparedStatement.setDouble(3, transaction.getTransactionamount());\n\t\t\tpreparedStatement.setDate(4, new java.sql.Date(transaction.getTransactiondate().getTime()));\n\n\t\t\t\n\t\t\ttran = preparedStatement.executeUpdate();\n\t\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some internal error has occurred while inserting data\");\n\t\t}\n\t\t\n\n\t\treturn tran;\n\t}",
"public PaymentTransaction() {\n\t\tsuper(\"PAYMENT_TRANSACTION\", edu.uga.csci4050.group3.jooq.team3.Team3.TEAM3);\n\t}",
"public static void newTrans(Transaction t) {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\tload();\r\n\t\ttransList.add(t);\r\n\t\tsave();\r\n\t}",
"@Override\r\n\tpublic Order create(Order order) {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();) {\r\n\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders(customer_id) values(%d)\",\r\n\t\t\t\t\torder.getCustomer().getId()));\r\n\t\t\t\tHashMap<Item, Long> items = order.getItems();\r\n\t\t\t\tfor (Entry<Item, Long> entry : items.entrySet()) {\r\n\t\t\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders_items(order_id, item_id, quantity) \"\r\n\t\t\t\t\t\t\t+ \"values(last_insert_id(), %d, %d)\", entry.getKey().getId(), entry.getValue()));\r\n\t\t\t\t}\r\n\t\t\treturn readLatest();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private void makeTransfer(String withdrawAmt, String depositAcct){\n //assume this will come as numbers only (Keyboard restricted to numbers)\n Double transferAmt = Double.valueOf(withdrawAmt);\n\n //make transfer\n customer.transferFund(currAcctName, depositAcct, transferAmt);\n\n //reset transfer value\n ((EditText)findViewById(R.id.transferAmt)).setText(\"\");\n\n //update balance\n ((TextView) findViewById(R.id.fromAmt)).setText(customer.getBalanceString(currAcctName));\n }",
"@Override\n\tpublic int newTransaction(String username, long amount, String type, String message) {\n\t\ttry {\n\t\t\tdb.getTransaction().begin();\n\t\t\tTransaction trans = new Transaction(username, amount, type, message);\n\t\t\tdb.persist(trans);\n\t\t\tdb.getTransaction().commit();\n\t\t\treturn trans.getId();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Upps, Something happened in the database\");\n\t\t\treturn -1;\n\t\t}\n\t}",
"void startTransaction();",
"public static void createTransaction() throws IOException {\n\t\t\n\t\tDate date = new Date((long) random(100000000));\n\t\tString date2 = \"'19\" + date.getYear() + \"-\" + (random(12)+1) + \"-\" + (random(28)+1) + \"'\";\n\t\tint amount = random(10000);\n\t\tint cid = random(SSNmap.size()) + 1;\n\t\tint vid = random(venders.size()) + 1;\n\t\t\n\t\twhile(ownership.get(cid) == null)\n\t\t\tcid = random(SSNmap.size()) + 1;\n\t\tString cc = ownership.get(cid).get(random(ownership.get(cid).size()));\n\t\t\n\t\twriter.write(\"INSERT INTO Transaction (Id, Date, vid, cid, CCNum, amount) Values (\" + tid++ +\", \" \n\t\t\t\t+ date2 + \", \" + vid + \", \" + cid + \", '\" + cc + \"', \" + amount + line);\n\t\twriter.flush();\n\t}",
"@Override\n\tpublic void buyTtx(int contentId, int userId) {\n\t\tContent content=new Content();\n\t\tcontent = contentMapper.getSingleConten(contentId);\n\t\tTrx trx = new Trx();\n\t\tlong time = System.currentTimeMillis();\n\t\ttrx.setContentId(contentId);\n\t\ttrx.setPersonId(userId);\n\t\ttrx.setPrice(content.getPrice());\n\t\ttrx.setTime(time);\n\t\ttrxMapper.addTtx(trx);\n\n\t}",
"public static void beginTransaction(int trans_id, String trans_type) {\n\n // System.out.println(\"beginTransaction\");\n long currTime = time;\n time++;\n Transaction txn = new Transaction(trans_id, currTime, trans_type);\n transactions.put(trans_id, txn);\n\n if (trans_type == \"RO\") {\n setVariableListForReadOnlyTxn(txn);\n System.out.println(\"T\" + trans_id + \" begins and is Read Only\");\n } else {\n System.out.println(\"T\" + trans_id + \" begins\");\n }\n\n\n }",
"private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }",
"public Transaction(int id, double amount, Date date, Account account, String payee) {\n super(id);\n setAmount(amount);\n setAccount(account);\n setPayee(payee);\n setDate(date);\n }",
"public IBankTransfert payment();",
"public void placeOrder(TradeOrder order) {\r\n\t\tString msg = \"New order: \";\r\n\t\tif (order.isBuy()) {\r\n\t\t\tbuy.add(order);\r\n\t\t\tmsg += \"Buy \";\r\n\r\n\t\t}\r\n\r\n\t\tif (order.isSell()) {\r\n\t\t\tsell.add(order);\r\n\t\t\tmsg += \"Sell \";\r\n\t\t}\r\n\r\n\t\tmsg += this.getSymbol() + \" (\" + this.getName() + \")\";\r\n\t\tmsg += \"\\n\" + order.getShares() + \" shares at \";\r\n\r\n\t\tif (order.isLimit())\r\n\t\t\tmsg += money.format(order.getPrice());\r\n\t\telse\r\n\t\t\tmsg += \"market\";\r\n\t\tdayVolume += order.getShares();\r\n\t\torder.getTrader().receiveMessage(msg);\r\n\t\t\r\n\t}",
"@Override\n public Order create(Order order) {\n this.orders.add(order);\n save();\n return order;\n }",
"public MiradorTransaction(FujabaTransaction fujaba_tx) {\n tx_name_ = fujaba_tx.getName();\n tx_id_ = fujaba_tx.getId();\n merge_side_ = fujaba_tx.getMergeSide();\n initialize(fujaba_tx);\n }",
"@Path(\"transaction\")\n @Service({\"transaction\"})\n public ResponseMessage processTransfer(Transaction t) {\n return tsi.processTransfer(t);\n }",
"Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);",
"public Transaction createTransaction(final Context context, final int adj, final long fee) throws HomeException\r\n {\r\n // TODO 2009-11-17 if this method is only used during recurring recharge then the rate will always be 1\r\n return RecurringRechargeSupport.createRechargeTransaction(context, getSub(), itemRate_, adj, fee, getAgentName(),\r\n getRealBillingDate(context), origServiceEndDate_, sub_.getSubscriptionType());\r\n }",
"private void handleTransaction() throws Exception {\r\n\t\tString receiver;\r\n\t\tString amount;\r\n\t\tMessage sendTransaction = new Message().addData(\"task\", \"transaction\").addData(\"message\", \"do_transaction\");\r\n\t\tMessage response;\r\n\r\n\t\tthis.connectionData.getTerminal().write(\"enter receiver\");\r\n\t\treceiver = this.connectionData.getTerminal().read();\r\n\r\n\t\t// tries until a amount is typed that's between 1 and 10 (inclusive)\r\n\t\tdo {\r\n\t\t\tthis.connectionData.getTerminal().write(\"enter amount (1-10)\");\r\n\t\t\tamount = this.connectionData.getTerminal().read();\r\n\t\t} while (!amount.matches(\"[0-9]|10\"));\r\n\r\n\t\t// does the transaction\r\n\t\tsendTransaction.addData(\"receiver\", this.connectionData.getAes().encode(receiver)).addData(\"amount\",\r\n\t\t\t\tthis.connectionData.getAes().encode(amount));\r\n\r\n\t\tthis.connectionData.getConnection().write(sendTransaction);\r\n\r\n\t\tresponse = this.connectionData.getConnection().read();\r\n\t\tif (response.getData(\"message\").equals(\"success\")) {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction done\");\r\n\t\t} else {\r\n\t\t\tthis.connectionData.getTerminal().write(\"transaction failed. entered correct username?\");\r\n\t\t}\r\n\t}",
"void makeMarketBuyOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);",
"public Transaction addTransaction(User user, TransactionForm transactionForm) {\n return addTransactions(user, ImmutableList.of(transactionForm)).get(0);\n }",
"@Test\n public void proveraTransfera() {\n Account ivana = mobi.openAccount(\"Ivana\");\n Account pera = mobi.openAccount(\"Pera\");\n\n mobi.payInMoney(ivana.getNumber(), 5000.0);\n mobi.transferMoney(ivana.getNumber(), pera.getNumber(), 2000.0);\n //ocekujemo da nakon ovoga ivana ima 3000, a pera 2000\n\n SoftAssert sa = new SoftAssert();\n sa.assertEquals(ivana.getAmount(), 3000.0);\n sa.assertEquals(pera.getAmount(), 2000.0);\n\n sa.assertAll();\n }",
"public void transferMoney(float amount, String transferToNumber) {}",
"public void addTransaction(Transaction trans)\n {\n SolrInputDocument solr_doc = new SolrInputDocument();\n solr_doc.setField(\"type\",\"Transaction\");\n solr_doc.setField(\"hashBlock\",trans.getHashBlock());\n solr_doc.setField(\"trans_id_split\",trans.getTrans_id_split());\n solr_doc.setField(\"transaction_id\",trans.getTransaction_id());\n solr_doc.setField(\"transaction_fee\",trans.getTransaction_fee());\n solr_doc.setField(\"transaction_size_kb\",trans.getTransaction_size_kb());\n solr_doc.setField(\"from_amout\",trans.getFrom_amout());\n solr_doc.setField(\"to_amount\",trans.getTo_amount());\n\n try {\n client.add(solr_doc);\n } catch (SolrServerException | IOException e) {\n e.printStackTrace();\n }\n\n commit();\n\n }",
"public Transfer(Account from, int[] amounts, Account to) {\n this.from = from;\n this.amounts = amounts;\n this.to = to;\n }",
"public void executeTransaction(Transaction transaction) {\n logger.info(\"Execute money transaction: {}\", transaction);\n validateTransaction(transaction);\n transferHKD(transaction);\n }",
"public static Transaction generateCreationTransaction(String strPrivateKey) {\n List<Creation> creations = new ArrayList<>();\n List<Input> inputs = new ArrayList<>();\n List<Output> outputs = new ArrayList<>();\n\n // Get address from private key\n BigInteger privateKey = Bitcoin.decodePrivateKey(strPrivateKey);\n byte[] publicKey = Bitcoin.generatePublicKey(privateKey);\n String address = Bitcoin.publicKeyToAddress(publicKey);\n\n // Create 1 coupon\n Creation creation = new Creation(address, 1);\n creations.add(creation);\n\n // Send the coupon to the creator\n Output output = new Output(address, 1, address);\n outputs.add(output);\n\n // Create transaction, sign it and return it\n Transaction transaction = new Transaction(creations, inputs, outputs);\n transaction.signTransaction(privateKey);\n return transaction;\n\n }",
"@RequestMapping(path=\"/createOrder\", method = RequestMethod.POST, produces = \"application/json\", consumes = \"application/json\")\n\tpublic ResponseEntity<PaymentResponseDTO> createOrder(@RequestBody PaymentRequestDTO btcDTO) { \n\t\tlogger.info(\"Init payment\");\n\t\t\n\t\tSellerBitcoinInfo sbi = bitcoinRepo.findByidMagazine(btcDTO.getSellerId());\n\t\t\n\t\tSystem.out.println(\"ADDRESS \" + sbi.getBitcoinAddress());\n\t\t\n\t\tString token = sbi.getBitcoinAddress();\n\t\t\n\t\tString authToken = \"Bearer \" + token;\n\t\t//trebali bismo da kreiramo transakciju koja ce biti u stanju \"pending\" sve dok korisnik ne plati ili mu ne istekne odredjeno vreme\n\t\t\n\t\t//txRepo.save(tx);\n\t\t//RestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\t//restTemplate.getForEntity(\"https://google.rs\", String.class);\n\t\t//restTemplate.getForEntity(\"https://api.coingate.com/v2/ping\", String.class);\n\t\t\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.add(\"Authorization\", authToken);\t \n\t\t\n\t\tSystem.out.println(\"Amount: \" + btcDTO.getAmount());\n\t\t\n\t\tCreateOrderRequestDTO order = new CreateOrderRequestDTO(\"1111\", btcDTO.getAmount(), \"BTC\", \"DO_NOT_CONVERT\", \"Title\", \"Description\", \"https://localhost:4200/success\", \"https://localhost:4200/failed\", \"https://localhost:4200/success\", \"token\");\n\t\t\n\t\tResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders\", HttpMethod.POST,\n\t\t\t\tnew HttpEntity<Object>(order, headers), Object.class);\n\t\t\n\t\tlogger.info(responseEntity.getBody().toString());\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\tBitCoinResponseDTO btcResponse = new BitCoinResponseDTO();\n\n\t\tbtcResponse = mapper.convertValue(responseEntity.getBody(), BitCoinResponseDTO.class);\n\t\t\n\t\tString paymentUrl = btcResponse.getPayment_url();\n\t\t\n\t\tlogger.info(paymentUrl);\n\t\t\n\t\tTx tx = createTransaction(btcResponse,sbi);\n\t\ttxRepo.save(tx);\n\t\t\n\t\tTxInfoDto txInfo = new TxInfoDto();\n\t\ttxInfo.setOrderId(btcDTO.getOrderId());\n\t\ttxInfo.setServiceWhoHandlePayment(\"https://localhost:8764/bitCoin\");\n\t\ttxInfo.setPaymentId(tx.getorder_id()); //ovde se nalazi orderId koji je i na coingate-u\n\t\t\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tResponseEntity<TxInfoDto> r = restTemplate.postForEntity(\"https://localhost:8111/request/updateTxAfterPaymentInit\", txInfo, TxInfoDto.class);\n\t\t\n\t\t//BitCoinResponseDTO response = parser.parseList(responseEntity.getBody().toString());\n\t\t\n\t\t//BitCoinResponseDTO responseDTO = responseEntity.;\n\t\t\n\t\t//String pageToRedirec = responseDTO.getPayment_url();\n\t\t\n\t\t//restTemplate.exchange\n\t\t//ResponseEntity<String> response = restTemplate.postForEntity(\"https://api-sandbox.coingate.com/v2/orders\", btcDTO, String.class);\n\t\t\n\t\tPaymentResponseDTO responseDTO = new PaymentResponseDTO();\n\t\tresponseDTO.setPaymentUrl(paymentUrl);\n\t\tresponseDTO.setPaymentId(1l);\n\n\t\tSTATIC_ID = btcResponse.getId();\n\t\tSTATIC_TOKEN = authToken;\n\t\tIS_CREATE = true;\n\t\t\n\t\t//scheduleFixedDelayTask();\n\t\t//scheduleFixedDelayTask(btcResponse.getId(), authToken);\n\t\t\n\t\treturn new ResponseEntity<PaymentResponseDTO>(responseDTO,HttpStatus.OK);\n\t}",
"@Test\n\tpublic void testAddTransaction(){\n setDoubleEntryEnabled(true);\n\t\tsetDefaultTransactionType(TransactionType.DEBIT);\n validateTransactionListDisplayed();\n\n\t\tonView(withId(R.id.fab_create_transaction)).perform(click());\n\n\t\tonView(withId(R.id.input_transaction_name)).perform(typeText(\"Lunch\"));\n\t\tonView(withId(R.id.input_transaction_amount)).perform(typeText(\"899\"));\n\t\tonView(withId(R.id.input_transaction_type))\n\t\t\t\t.check(matches(allOf(isDisplayed(), withText(R.string.label_receive))))\n\t\t\t\t.perform(click())\n\t\t\t\t.check(matches(withText(R.string.label_spend)));\n\n\t\tString expectedValue = NumberFormat.getInstance().format(-899);\n\t\tonView(withId(R.id.input_transaction_amount)).check(matches(withText(expectedValue)));\n\n int transactionsCount = getTransactionCount();\n\t\tonView(withId(R.id.menu_save)).perform(click());\n\n validateTransactionListDisplayed();\n\n List<Transaction> transactions = mTransactionsDbAdapter.getAllTransactionsForAccount(DUMMY_ACCOUNT_UID);\n assertThat(transactions).hasSize(2);\n Transaction transaction = transactions.get(0);\n\t\tassertThat(transaction.getSplits()).hasSize(2);\n\n assertThat(getTransactionCount()).isEqualTo(transactionsCount + 1);\n }",
"Transaction save(Transaction transaction);",
"public int startTransaction();",
"QuoteItem createQuoteItem();",
"protected abstract Order createOrder(Cuisine cuisine);",
"public void completeOrderTransaction(Transaction trans){\n }",
"TransactionType createTransactionType();",
"Order addOrder(String orderId, Order order) throws OrderBookOrderException;",
"@Override\n public void makePayment(Item item, Customer customer, double amount) {\n itemRepo.createPayment(item,customer,amount);\n }",
"public void makePayment()\n\t{\n\t\tif(this.inProgress())\n\t\t{\n\t\t\tthis.total += this.getPaymentDue();\n\t\t\tthis.currentTicket.setPaymentTime(this.clock.getTime());\n\t\t}\t\t\n\t}"
] | [
"0.6964084",
"0.68859524",
"0.6853995",
"0.6620889",
"0.6395483",
"0.62260586",
"0.6211164",
"0.6208816",
"0.6171219",
"0.60645443",
"0.601914",
"0.6005035",
"0.5999166",
"0.5948976",
"0.58615756",
"0.58563215",
"0.58321595",
"0.5827192",
"0.5820144",
"0.5815678",
"0.5790647",
"0.5764155",
"0.5723517",
"0.5722249",
"0.5699609",
"0.5687538",
"0.5669613",
"0.564694",
"0.56431526",
"0.5613733",
"0.5604844",
"0.5600683",
"0.558327",
"0.55754256",
"0.5574209",
"0.55683523",
"0.5561894",
"0.55435485",
"0.5525392",
"0.55183023",
"0.55174315",
"0.550874",
"0.5482836",
"0.5472342",
"0.5463045",
"0.54449975",
"0.54376245",
"0.5420599",
"0.542038",
"0.5418892",
"0.54053736",
"0.54038763",
"0.5403082",
"0.53808004",
"0.53444254",
"0.53282577",
"0.5326843",
"0.5320954",
"0.53144044",
"0.52910644",
"0.528662",
"0.52855676",
"0.52837974",
"0.5279943",
"0.52742046",
"0.5272224",
"0.52645314",
"0.5261331",
"0.52418953",
"0.52183956",
"0.52181906",
"0.5216429",
"0.5212925",
"0.52107364",
"0.52031624",
"0.5197973",
"0.519103",
"0.5183046",
"0.5179108",
"0.51728135",
"0.5165598",
"0.51649237",
"0.51642305",
"0.5163807",
"0.51612175",
"0.51564807",
"0.515525",
"0.51541746",
"0.51451486",
"0.5142144",
"0.51365453",
"0.5133813",
"0.5128277",
"0.51274574",
"0.5123143",
"0.5120458",
"0.51169497",
"0.5116129",
"0.5112588",
"0.5105225"
] | 0.70225924 | 0 |
The interface for the vcms discussion remote service. This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely. | @JSONWebService
@Transactional(isolation = Isolation.PORTAL, rollbackFor = {
PortalException.class, SystemException.class})
public interface VcmsDiscussionService {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link VcmsDiscussionServiceUtil} to access the vcms discussion remote service. Add custom service methods to {@link com.vportal.portlet.vcms.service.impl.VcmsDiscussionServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
*/
public com.vportal.portlet.vcms.model.VcmsDiscussion addDiscussion(
java.lang.String visitorName, java.lang.String visitorEmail,
java.lang.String visitorPhone, long groupId, long companyId,
java.lang.String articleId, java.lang.String title,
java.lang.String content, boolean hasAttachment,
java.lang.String language, boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
public com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(
java.lang.String discussionId, java.lang.String visitorName,
java.lang.String visitorEmail, java.lang.String visitorPhone,
long groupId, long companyId, java.lang.String articleId,
java.lang.String title, java.lang.String content,
boolean hasAttachment, boolean approved, java.lang.String language)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
public com.vportal.portlet.vcms.model.VcmsDiscussion updateDiscussion(
com.vportal.portlet.vcms.model.VcmsDiscussion discussion)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
public void deleteDiscussion(java.lang.String discussionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
public void deleteDiscussions(java.lang.String[] discussionIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
public void deleteDiscussions(java.lang.String articleId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
public void deleteDiscussions(java.lang.String articleId, boolean approved)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public com.vportal.portlet.vcms.model.VcmsDiscussion getDiscussion(
java.lang.String discussionId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(
java.lang.String articleId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussions(
java.lang.String articleId, boolean approved)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L(
long groupId, java.lang.String language)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByP_L_A(
long groupId, java.lang.String language, boolean approved)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> getDiscussionsByA_P_L_A(
java.lang.String articleId, long groupId, java.lang.String language,
boolean approved)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<com.vportal.portlet.vcms.model.VcmsDiscussion> searchDiscussionByA_P_L_K(
java.lang.String articleId, long groupId, java.lang.String language,
java.lang.String keyword, boolean approved, boolean isTitle,
boolean isContent, java.lang.String select)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
public int countByApproval(long groupId, java.lang.String language,
boolean approved)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
java.rmi.RemoteException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Remote\r\npublic interface NoteMailManagerRemote\r\n extends NoteMailManager\r\n{\r\n\r\n\r\n}",
"public interface VSGroupChat extends Remote {\n\n void register(VSGCListener listener, VSGCGroup group) throws RemoteException;\n void post(VSGCListener listener, VSGCMessage message) throws RemoteException;\n ArrayList<VSGCMessage> getHistory(VSGCGroup group) throws IllegalArgumentException, RemoteException;\n ArrayList<VSGCGroup> getGroups() throws RemoteException;\n void addGroup(VSGCGroup group) throws RemoteException;\n}",
"@RemoteServiceRelativePath(\"reviewerAdminService\")\npublic interface ReviewerAdminService extends RemoteService {\n\t\n\tpublic Organization saveOrganization(Organization organization) throws Exception;\n\t\n\tpublic Collection<Organization> getOrganizations(String organizationName) throws Exception;\n\n\tpublic Organization getOrganization(String organizationName) throws Exception;\n\t\n\tpublic OrganizationProperty saveOrganizationProperty(OrganizationProperty organizationProperty) throws Exception;\n\t\n\tpublic Organization deleteOrganization(Organization organization) throws Exception;\n\t\n\tpublic Collection<User> getUsers(User user) throws Exception;\n\t\n\tpublic User saveUser(User user) throws Exception;\n\t\n\tpublic User getLoggedUser() throws Exception;\n\n\tpublic Organization checkOrganizationProperties(Organization organization) throws Exception;\n\t\n\tpublic void logout() throws Exception;\n\t\n\tpublic void forceUsersChangePassword(Organization organization,List<String> roles) throws Exception;\n}",
"@Remote\r\npublic interface ViewAnniversaireManagerRemote\r\n extends ViewAnniversaireManager\r\n{\r\n\r\n\r\n}",
"public interface CommunityService extends WorkspaceService\r\n{\r\n\r\n static final String COMMUNITY_SERVICE_KEY = \"COMMUNITY_SERVICE_KEY\";\r\n\r\n /**\r\n * Creations of a Community object reference.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return Community object reference\r\n * @exception CommunityException\r\n */\r\n Community createCommunity( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creations of a Community storage instance.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return CommunityStorage community storage\r\n * @exception CommunityException\r\n */\r\n CommunityStorage createCommunityStorage( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creation of a Community object reference based on a supplied storage object.\r\n * @param store a community storage object\r\n * @return Community a Community object reference\r\n * @exception CommunityException\r\n */\r\n Community getCommunityReference( CommunityStorage store ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Returns a reference to a Community given a persistent storage object identifier.\r\n * @param pid community short persistent identifier\r\n * @return Desktop the corresponding PID\r\n * @exception NotFound if the supplied pid does not matach a know desktop\r\n */\r\n Community getCommunityReference( byte[] pid )\r\n throws NotFound;\r\n\r\n}",
"@RemoteServiceRelativePath(\"study\")\npublic interface StudyService extends RemoteService {\n\tStudyInfo getStudyInfo();\n\tStudyRun getStudyRun(String groupName, String caseName, String participant);\n\tboolean recordRunResults(StudyRunResults results);\n}",
"public interface RemoteClientService extends Remote {\n\n /**\n * Returns a ClientDTO object with the given id.\n * @param sessionId session id to gain access\n * @param id database id of the client\n * @return a client dto with the given id\n * @throws RemoteException mandatory\n * @throws UserNotLoggedInException is thrown if the sessionId is invalid\n */\n ClientDTO getById(String sessionId, int id) throws RemoteException, UserNotLoggedInException;\n\n /**\n * Returns all clients.\n * @param sessionId session id to gain access\n * @return list with all clients\n * @throws RemoteException mandatory\n * @throws UserNotLoggedInException is thrown if the sessionId is invalid\n */\n List<ClientDTO> getList(String sessionId) throws RemoteException, UserNotLoggedInException;\n}",
"@Remote\r\npublic interface ReponseToCommandeDAORemote\r\n extends ReponseToCommandeDAO\r\n{\r\n\r\n\r\n}",
"@RemoteServiceRelativePath(\"user\")\npublic interface Login extends RemoteService {\n public Pair<UserSession, String> getUserSession(String browserUrl);\n\n public Group[] getGroups(User user);\n\n void createNewMember(User user, Contact profile/*, Group[] groups*/);\n\n List<Payee> getPayeesForGroup(Serializable serializable);\n\n Payee addPayeeForGroup(Payee payee, Group group);\n\n void addGroup(User user, Group group);\n\n void deleteGroup(User user, Group group);\n\n void inviteUserToGroup(User user, Group group, String emailAddress);\n\n void createShare(Membership membership, Share.ShareType shareType, Float amount);\n\n Share[] getShares(Group group);\n\n Boolean createSharesFromInvite(User user, String invKey);\n\n Membership assignMembership(User to, User from, Group group);\n}",
"public interface IRemoteMessageService {\n\n void unsubscribeToMessage(UnSubscribeToMessage cmd);\n\n /**\n * Sets a message element to a specified value\n */\n void setElementValue(SetElementValue cmd);\n\n void zeroizeElement(ZeroizeElement cmd);\n\n /**\n * Notifies service to send message updates to the specified ip address\n */\n SubscriptionDetails subscribeToMessage(SubscribeToMessage cmd);\n\n Set<? extends DataType> getAvailablePhysicalTypes();\n\n boolean startRecording(RecordCommand cmd);\n\n InetSocketAddress getRecorderSocketAddress();\n\n InetSocketAddress getMsgUpdateSocketAddress();\n\n void stopRecording();\n\n void terminateService();\n\n void reset();\n\n void setupRecorder(IMessageEntryFactory factory);\n\n public Map<String, Throwable> getCancelledSubscriptions();\n}",
"protected RemoteApi getRemoteApi() {\n return getLockssDaemon().getRemoteApi();\n }",
"@Remote\r\npublic interface InscriptionChoiceDAORemote\r\n extends InscriptionChoiceDAO\r\n{\r\n\r\n\r\n}",
"@Remote\r\npublic interface CmUserDocstatusAccessFacadeRemote extends UtopiaBasicUsecaseBean<CmUserDocstatusAccess, CmUserDocstatusAccess> {\r\n\r\n\tpublic List<CmDocStatus> getUserAccessibleDocStatuses(Long userId,Map<String,Object>context);\r\n}",
"@Remote\npublic interface PasseUneCommande {\n\n public Commande passeUneCommande(Double prixHT,String rendezvous,String cookies);\n\n public List<String> choisirCookies();\n\n public List<Commande> getCommandes();\n\n\n}",
"@ProviderType\npublic interface VcmsDiscussionPersistence extends BasePersistence<VcmsDiscussion> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link VcmsDiscussionUtil} to access the vcms discussion persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the vcms discussions where groupId = ? and language = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = ? and language = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = ? and language = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = ? and language = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L(long groupId,\n\t\tjava.lang.String language, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = ? and language = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = ? and language = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_First(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = ? and language = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = ? and language = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_Last(long groupId,\n\t\tjava.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = ? and language = ?.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = ? and language = ? from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t*/\n\tpublic void removeByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = ? and language = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L(long groupId, java.lang.String language);\n\n\t/**\n\t* Returns all the vcms discussions where groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where groupId = ? and language = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = ? and language = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where groupId = ? and language = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByP_L_A(long groupId,\n\t\tjava.lang.String language, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_First(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByP_L_A_Last(long groupId,\n\t\tjava.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByP_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, long groupId, java.lang.String language,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where groupId = ? and language = ? and approved = ? from the database.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByP_L_A(long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_P_L_A(\n\t\tjava.lang.String articleId, long groupId, java.lang.String language,\n\t\tboolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_First(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_P_L_A_Last(java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_P_L_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tlong groupId, java.lang.String language, boolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = ? and groupId = ? and language = ? and approved = ? from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = ? and groupId = ? and language = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param groupId the group ID\n\t* @param language the language\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_P_L_A(java.lang.String articleId, long groupId,\n\t\tjava.lang.String language, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = ? and approved = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByA_A(\n\t\tjava.lang.String articleId, boolean approved, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_First(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByA_A_Last(java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = ? and approved = ?.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByA_A_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tboolean approved,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = ? and approved = ? from the database.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t*/\n\tpublic void removeByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = ? and approved = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param approved the approved\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByA_A(java.lang.String articleId, boolean approved);\n\n\t/**\n\t* Returns all the vcms discussions where articleId = ?.\n\t*\n\t* @param articleId the article ID\n\t* @return the matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId);\n\n\t/**\n\t* Returns a range of all the vcms discussions where articleId = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions where articleId = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param articleId the article ID\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of matching vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findByArticle(\n\t\tjava.lang.String articleId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the first vcms discussion in the ordered set where articleId = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_First(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion findByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the last vcms discussion in the ordered set where articleId = ?.\n\t*\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching vcms discussion, or <code>null</code> if a matching vcms discussion could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByArticle_Last(java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns the vcms discussions before and after the current vcms discussion in the ordered set where articleId = ?.\n\t*\n\t* @param discussionId the primary key of the current vcms discussion\n\t* @param articleId the article ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion[] findByArticle_PrevAndNext(\n\t\tjava.lang.String discussionId, java.lang.String articleId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Removes all the vcms discussions where articleId = ? from the database.\n\t*\n\t* @param articleId the article ID\n\t*/\n\tpublic void removeByArticle(java.lang.String articleId);\n\n\t/**\n\t* Returns the number of vcms discussions where articleId = ?.\n\t*\n\t* @param articleId the article ID\n\t* @return the number of matching vcms discussions\n\t*/\n\tpublic int countByArticle(java.lang.String articleId);\n\n\t/**\n\t* Caches the vcms discussion in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussion the vcms discussion\n\t*/\n\tpublic void cacheResult(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Caches the vcms discussions in the entity cache if it is enabled.\n\t*\n\t* @param vcmsDiscussions the vcms discussions\n\t*/\n\tpublic void cacheResult(java.util.List<VcmsDiscussion> vcmsDiscussions);\n\n\t/**\n\t* Creates a new vcms discussion with the primary key. Does not add the vcms discussion to the database.\n\t*\n\t* @param discussionId the primary key for the new vcms discussion\n\t* @return the new vcms discussion\n\t*/\n\tpublic VcmsDiscussion create(java.lang.String discussionId);\n\n\t/**\n\t* Removes the vcms discussion with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion that was removed\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion remove(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\tpublic VcmsDiscussion updateImpl(VcmsDiscussion vcmsDiscussion);\n\n\t/**\n\t* Returns the vcms discussion with the primary key or throws a {@link NoSuchVcmsDiscussionException} if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion\n\t* @throws NoSuchVcmsDiscussionException if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion findByPrimaryKey(java.lang.String discussionId)\n\t\tthrows NoSuchVcmsDiscussionException;\n\n\t/**\n\t* Returns the vcms discussion with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param discussionId the primary key of the vcms discussion\n\t* @return the vcms discussion, or <code>null</code> if a vcms discussion with the primary key could not be found\n\t*/\n\tpublic VcmsDiscussion fetchByPrimaryKey(java.lang.String discussionId);\n\n\t@Override\n\tpublic java.util.Map<java.io.Serializable, VcmsDiscussion> fetchByPrimaryKeys(\n\t\tjava.util.Set<java.io.Serializable> primaryKeys);\n\n\t/**\n\t* Returns all the vcms discussions.\n\t*\n\t* @return the vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll();\n\n\t/**\n\t* Returns a range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @return the range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator);\n\n\t/**\n\t* Returns an ordered range of all the vcms discussions.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link VcmsDiscussionModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of vcms discussions\n\t* @param end the upper bound of the range of vcms discussions (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @param retrieveFromCache whether to retrieve from the finder cache\n\t* @return the ordered range of vcms discussions\n\t*/\n\tpublic java.util.List<VcmsDiscussion> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<VcmsDiscussion> orderByComparator,\n\t\tboolean retrieveFromCache);\n\n\t/**\n\t* Removes all the vcms discussions from the database.\n\t*/\n\tpublic void removeAll();\n\n\t/**\n\t* Returns the number of vcms discussions.\n\t*\n\t* @return the number of vcms discussions\n\t*/\n\tpublic int countAll();\n}",
"@Remote\r\npublic interface ConfigMailDAORemote\r\n extends ConfigMailDAO\r\n{\r\n\r\n\r\n}",
"@Remote\r\npublic interface MenuActionManagerRemote\r\n extends MenuActionManager\r\n{\r\n\r\n\r\n}",
"public interface NogServer extends Remote {\n \n /**\n * getParticipants\n * @return list of participants\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public ArrayList<Participant> getParticipants() throws RemoteException;\n \n /**\n * putParticipants\n * @param tableParticipants list of participantDTO\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void putParticipants(ArrayList<ParticipantDTO> tableParticipants) throws RemoteException;\n \n /**\n * register a client\n * @param client remote client\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void registerClient(Client client) throws RemoteException;\n \n /**\n * deRegister client\n * @param client remote client\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void deRegisterClient(Client client) throws RemoteException;\n \n /**\n * Edit participant\n * @param p edited participant\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void editParticipant(ParticipantDTO p) throws RemoteException;\n \n /**\n * Add new participant\n * @param p participant to add\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void addParticipant(ParticipantDTO p) throws RemoteException;\n \n /**\n * Delete participant\n * @param p participant to delete\n * @throws RemoteException thrown when problem with remote method-call occurs.\n */\n public void deleteParticipant(ParticipantDTO p) throws RemoteException;\n \n}",
"public interface IRemoteClient extends IClient {\t\n\tString getUuid();\n\t\n\t/**\n\t * Send a message to the remote client\n\t * @param msg\n\t */\n\tvoid sendMessage(String msg);\n\t\n\t/**\n\t * Disconnect the client, ending any existing sessions.\n\t * This must be thread safe, as it can be called from a worker thread.\n\t */\n\tvoid disconnect(String reason);\n\t\n\t/**\n\t * Whether this Client is connected.\n\t * If this is false, any message received and sent should be ignored.\n\t * This must be thread safe.\n\t * @return\n\t */\n\tboolean isConnected();\n}",
"@Remote\r\npublic interface LigneBulletinClasseDAORemote\r\n extends LigneBulletinClasseDAO\r\n{\r\n\r\n\r\n}",
"@RemoteServiceRelativePath(\"MembersService\")\r\npublic interface MembersService extends RemoteService {\r\n\tpublic List<MemberLocalDto> getMembers();\r\n\tpublic List<MemberLocalDto> getLastMembers(int numberToDisplay);\r\n\tpublic List<MemberLocalDto> getMembers(MemberLocalDto member) throws EmptyMemberListException;\r\n\tpublic List<MemberLocalDto> delete(MemberLocalDto member) throws DoNotExistException;\r\n\tpublic List<MemberLocalDto> delete(MemberLocalDto member, MemberLocalDto attributes) throws DoNotExistException;\r\n\tpublic List<MemberLocalDto> deleteLastMember(MemberLocalDto member,int numberToDisplay) throws DoNotExistException;\r\n\tpublic List<MemberLocalDto> create(MemberLocalDto member) throws AlReadyExistException,EmptyException;\r\n\tpublic MemberLocalDto update(MemberLocalDto member) throws DoNotExistException;\r\n\tpublic MemberLocalDto getMember(long id);\r\n}",
"@Remote\r\npublic interface RappelManagerRemote\r\n extends RappelManager\r\n{\r\n\r\n\r\n}",
"@Remote\r\npublic interface AdministrarGestionarLocalesCentroComercialBORemote {\r\n\r\n /**\r\n * Metodo encargado de obtener los registros de LocalCentroComercial de la\r\n * base de datos\r\n *\r\n * @return Lista de LocalCentroComercial\r\n */\r\n public List<LocalCentroComercial> consultarLocalesCentroComercialRegistrados();\r\n\r\n /**\r\n * Metodo encargado de obtener los registros de LocalCentroComercial por\r\n * medio de parametros de busqueda\r\n *\r\n * @param filtros Parametros de busqueda\r\n * @return Lista de LocalCentroComercial\r\n */\r\n public List<LocalCentroComercial> consultarLocalesCentroComercialPorParametro(Map<String, String> filtros);\r\n\r\n /**\r\n * Metodo encargado de obtener un LocalCentroComercial por medio de su id\r\n *\r\n * @param idLocalCentroComercial Id del local\r\n * @return LocalCentroComercial identificado por el id dado\r\n */\r\n public LocalCentroComercial obtenerLocalCentroComercialPorID(BigInteger idLocalCentroComercial);\r\n\r\n /**\r\n * Metodo encargado de actualizar la informacion de un LocalCentroComercial\r\n *\r\n * @param localCentroComercial LocalCentroComercial a editar\r\n */\r\n public void actualizarInformacionLocalCentroComercial(LocalCentroComercial localCentroComercial);\r\n\r\n /**\r\n * Metodo encargado de registrar un LocalCentroComercial en la base de datos\r\n *\r\n * @param localCentroComercialNuevo LocalCentroComercial a registrar\r\n */\r\n public void almacenarNuevoLocalCentroComercialEnSistema(LocalCentroComercial localCentroComercialNuevo);\r\n\r\n /**\r\n * Metodo encargado de validar si el numero de local ya esta registradp\r\n *\r\n * @param numeroLocal Numero local\r\n * @return true -> no existe / false -> ya existe\r\n */\r\n public Boolean obtenerLocalPorNumeroLocal(String numeroLocal);\r\n}",
"public interface ChatInterface extends Remote {\r\n void postMessage(String msg) throws RemoteException;\r\n\r\n String getName() throws RemoteException;\r\n\r\n void setClient(ChatInterface c) throws RemoteException;\r\n\r\n ChatInterface getClient() throws RemoteException;\r\n\r\n}",
"@RemoteServiceRelativePath(\"solr-system\")\npublic interface SolrSystemService extends RemoteService {\n\n\t/**\n\t * Create a new system\n\t * \n\t * @param systemDTO\n\t * The system to create\n\t * @param userDTO\n\t * The user that creates the system\n\t */\n\tvoid createSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Update a selected system\n\t * \n\t * @param systemDTO\n\t * The system to update\n\t * @param userDTO\n\t * The user that updates the system\n\t */\n\tvoid updateSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Delete a system\n\t * \n\t * @param systemDTO\n\t * The system to delete\n\t * @param userDTO\n\t * The user that deletes the system\n\t */\n\tvoid deleteSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Show a list of all the systems the system can communicate with\n\t * \n\t * @param userDTO\n\t * the user that requested the systems\n\t * @return A list of all the available systems\n\t */\n\tList<SolrSystemDTO> showAllSolrSystems(UserDTO userDTO);\n\n\tboolean optimize(SolrSystemDTO sustemDTO, UserDTO userDTO);\n}",
"@Remote\r\npublic interface BonLivraisonManagerRemote\r\n extends BonLivraisonManager\r\n{\r\n\r\n\r\n}",
"@Remote\r\npublic interface ActionItemManagerRemote\r\n extends ActionItemManager\r\n{\r\n\r\n\r\n}",
"public interface ChannelsService {\n\n /**\n * Gets the Facebook data-ref to create send to messenger button.\n *\n * @param callback Callback with the result.\n */\n void createFbOptInState(@Nullable Callback<ComapiResult<String>> callback);\n }",
"public interface JahiaContentManagementService extends RemoteService {\n void abortWorkflow(String processId, String provider) throws GWTJahiaServiceException;\n\n void activateVersioning(List<String> path) throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowComment> addCommentToWorkflow(GWTJahiaWorkflow task, String comment);\n\n void assignAndCompleteTask(GWTJahiaWorkflowTask task, GWTJahiaWorkflowOutcome outcome, List<GWTJahiaNodeProperty> properties) throws GWTJahiaServiceException;\n\n void checkExistence(String path) throws GWTJahiaServiceException;\n\n void checkWriteable(List<String> paths) throws GWTJahiaServiceException;\n\n void cleanReferences(String path) throws GWTJahiaServiceException;\n\n void clearAllLocks(String path, boolean processChildNodes) throws GWTJahiaServiceException;\n\n void closeEditEngine(String nodepath) throws GWTJahiaServiceException;\n\n Set<String> compareAcl(GWTJahiaNodeACL nodeAcl, List<GWTJahiaNode> reference) throws GWTJahiaServiceException;\n\n GWTJahiaNodeACE createDefaultUsersGroupACE(List<String> permissions, boolean grand) throws GWTJahiaServiceException;\n\n GWTJahiaNode createFolder(String parentPath, String name) throws GWTJahiaServiceException;\n\n GWTJahiaNode createGoogleGadgetPortletInstance(String path, String name, String script) throws GWTJahiaServiceException;\n\n GWTJahiaNode createNode(String parentPath, GWTJahiaNode newNode) throws GWTJahiaServiceException;\n\n GWTJahiaNode createNode(String parentPath, String name, String nodeType, List<String> mixin, GWTJahiaNodeACL acl, List<GWTJahiaNodeProperty> props, Map<String, List<GWTJahiaNodeProperty>> langCodeProperties, List<GWTJahiaNode> subNodes, Map<String, String> parentNodes, boolean forceCreation) throws GWTJahiaServiceException;\n\n GWTJahiaNode createNodeAndMoveBefore(String path, String name, String nodeType, List<String> mixin, GWTJahiaNodeACL acl, List<GWTJahiaNodeProperty> properties, Map<String, List<GWTJahiaNodeProperty>> langCodeProperties) throws GWTJahiaServiceException;\n\n GWTJahiaNode createPortletInstance(String path, GWTJahiaNewPortletInstance wiz) throws GWTJahiaServiceException;\n\n GWTJahiaNode createRSSPortletInstance(String path, String name, String url) throws GWTJahiaServiceException;\n\n GWTJahiaNode createModule(String moduleName, String artifactId, String groupId, String siteType, String source) throws GWTJahiaServiceException;\n\n GWTJahiaNode checkoutModule(String moduleId, String scmURI, String scmType, String branchOrTag, String sources) throws GWTJahiaServiceException;\n\n void cropImage(String path, String target, int top, int left, int width, int height, boolean forceReplace) throws GWTJahiaServiceException;\n\n /**\n * Deletes all completed job details.\n *\n * @return the number of deleted jobs\n * @throws GWTJahiaServiceException in case of an error\n */\n Integer deleteAllCompletedJobs() throws GWTJahiaServiceException;\n\n /**\n * Deletes a job either already executed or not yet executed. Don't try to call this on a running job as the\n * behavior will not be determined.\n *\n * @param jobName\n * @param groupName\n * @return\n * @throws GWTJahiaServiceException\n */\n Boolean deleteJob(String jobName, String groupName) throws GWTJahiaServiceException;\n\n GWTJahiaNode deletePaths(List<String> paths) throws GWTJahiaServiceException;\n\n void deployTemplates(String templatesPath, String sitePath) throws GWTJahiaServiceException;\n GWTJahiaPortletOutputBean drawPortletInstanceOutput(String windowID, String entryPointIDStr, String pathInfo, String queryString);\n\n void flush(String path) throws GWTJahiaServiceException;\n\n void flushAll() throws GWTJahiaServiceException;\n\n void flushSite(String siteUUID) throws GWTJahiaServiceException;\n\n GWTJahiaNode generateWar(String moduleId) throws GWTJahiaServiceException;\n\n RpcMap releaseModule(String moduleId, GWTModuleReleaseInfo releaseInfo) throws GWTJahiaServiceException;\n\n /**\n * Returns the information, required for performing a release of the module: distribution server, Jahia Private App Store etc.\n *\n * @param moduleId the Id of the module which will be released\n * @return a map with the release info: distribution server, Jahia Private App Store etc\n * @throws GWTJahiaServiceException\n * in case of an error\n */\n GWTModuleReleaseInfo getInfoForModuleRelease(String moduleId) throws GWTJahiaServiceException;\n\n String getAbsolutePath(String path) throws GWTJahiaServiceException;\n\n /**\n * Retrieves the list of job groups from the scheduler, to be used for example for filtering by group.\n *\n * @return\n * @throws GWTJahiaServiceException\n */\n List<String> getAllJobGroupNames() throws GWTJahiaServiceException;\n\n List<GWTJahiaSite> getAvailableSites ();\n\n List<GWTJahiaChannel> getChannels() throws GWTJahiaServiceException;\n\n /**\n * Retrieves the history of modifications on a content node.\n *\n * @param nodeIdentifier the identifier of the node for which to retrieve the history\n * @param offset the paging offset\n * @param limit the limit of entries to retrieve\n * @return a paging list of history entries for the specified node identifier.\n * @throws GWTJahiaServiceException\n */\n PagingLoadResult<GWTJahiaContentHistoryEntry> getContentHistory(String nodeIdentifier, int offset, int limit) throws GWTJahiaServiceException;\n\n /**\n * Returns a list of node types with name and label populated that are the\n * sub-types of the specified base type.\n *\n *\n * @param baseTypes the node type name to find sub-types\n * @param displayStudioElement\n * @return a list of node types with name and label populated that are the\n * sub-types of the specified base type\n */\n List<GWTJahiaNodeType> getContentTypes(List<String> baseTypes, boolean includeSubTypes, boolean displayStudioElement) throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeType> getContentTypesAsTree(List<String> nodeTypes, List<String> excludedNodeTypes,\n boolean includeSubTypes) throws GWTJahiaServiceException;\n\n GWTEditConfiguration getEditConfiguration(String path, String name, String enforcedWorkspace) throws GWTJahiaServiceException;\n\n String getExportUrl(String path) throws GWTJahiaServiceException;\n\n GWTChoiceListInitializer getFieldInitializerValues(String typeName, String propertyName, String parentPath, Map<String, List<GWTJahiaNodePropertyValue>> dependentValues) throws GWTJahiaServiceException;\n\n List<String> getNamespaces();\n\n GWTJahiaToolbar getGWTToolbars(String toolbarGroup) throws GWTJahiaServiceException;\n\n\n String getHighlighted(String original, String amendment) throws GWTJahiaServiceException;\n\n /**\n * Retrieve job list using pagination and sorting if supported. Also can take an optional groupName list for\n * filtering.\n *\n * @param offset the offset for pagination\n * @param limit the limit for pagination (the size of the page)\n * @param sortField the field on which to sort\n * @param sortDir the direction in which to sort\n * @param groupState\n * @param groupNames normally this should be passed as a Set, but it seems that GWT has trouble serializing a\n * Set, so we use a list instead.\n * @return a Pagination-ready list of job details\n * @throws GWTJahiaServiceException\n */\n PagingLoadResult<GWTJahiaJobDetail> getJobs(int offset, int limit, String sortField, String sortDir, String groupState, List<String> groupNames) throws GWTJahiaServiceException;\n\n GWTManagerConfiguration getManagerConfiguration(String name, String path) throws GWTJahiaServiceException;\n\n GWTJahiaNodeType getNodeType(String names) throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeType> getNodeTypes(List<String> names) throws GWTJahiaServiceException;\n\n String getNodeURL(String servlet, String path, Date versionDate, String versionLabel, String workspace, String locale, boolean findDisplayable) throws GWTJahiaServiceException;\n\n String getNodeURLByIdentifier(String servlet, String identifier, Date versionDate, String versionLabel,\n String workspace, String locale) throws GWTJahiaServiceException;\n List<GWTJahiaNode> getNodes(List<String> path, List<String> fields) throws GWTJahiaServiceException;\n Map<String, List<? extends ModelData>> getNodesAndTypes(List<ModelData> getNodesParams, List<String> types) throws GWTJahiaServiceException;\n PagingLoadResult<GWTJahiaNode> getNodesByCategory(GWTJahiaNode category, int offset, int limit) throws GWTJahiaServiceException;\n\n int getNumberOfTasksForUser() throws GWTJahiaServiceException;\n\n Map<String, Object> getPollData(Set<String> keys) throws GWTJahiaServiceException;\n\n List<GWTJahiaNode> getPortalNodes(String targetAreaName);\n\n GWTJahiaGetPropertiesResult getProperties(String path, String langCode) throws GWTJahiaServiceException;\n\n /**\n * Get the publication status information for multiple nodes by their identifier.\n * Check is done against the current session locale.\n *\n * @param uuids uuids to get publication info from\n * @param allSubTree check on the whole subtree or no.\n * @param checkForUnpublication allow to check for element which have been unpublished\n * @return a List of GWTJahiaPublicationInfo object filled with the right status for the publication state of this path\n * @throws GWTJahiaServiceException\n */\n List<GWTJahiaPublicationInfo> getPublicationInfo(List<String> uuids, boolean allSubTree,\n boolean checkForUnpublication) throws GWTJahiaServiceException;\n\n /**\n * Get the publication status information for multiple nodes by their identifier.\n * Check is done against the set of languages provided.\n *\n * @param uuids uuids to get publication info from\n * @param allSubTree check on the whole subtree or no.\n * @param checkForUnpublication allow to check for element which have been unpublished\n * @param languages Set of languages from which we want information\n * @return a List of GWTJahiaPublicationInfo object filled with the right status for the publication state of this path\n * @throws GWTJahiaServiceException\n */\n List<GWTJahiaPublicationInfo> getPublicationInfo(List<String> uuids, boolean allSubTree, boolean checkForUnpublication, Set<String> languages) throws GWTJahiaServiceException;\n\n GWTRenderResult getRenderedContent(String path, String workspace, String locale, String template, String configuration, Map<String, List<String>> contextParams, boolean editMode,\n String configName, String channelIdentifier, String channelVariant) throws GWTJahiaServiceException;\n\n List<GWTJahiaNode> getRoot(List<String> paths, List<String> nodeTypes, List<String> mimeTypes, List<String> filters, List<String> fields, List<String> selectedNodes, List<String> openPaths, boolean checkSubChild, boolean displayHiddenTypes, List<String> hiddenTypes, String hiddenRegex, boolean useUILocale) throws GWTJahiaServiceException;\n\n List<GWTJahiaNode> getSavedSearch() throws GWTJahiaServiceException;\n\n Map<String, String> getStoredPasswordsProviders() throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeType> getSubNodeTypes(List<String> names) throws GWTJahiaServiceException;\n\n /**\n * Retrieves a list of URL mapping objects for current node and locale.\n *\n * @param node node to retrieve mapping for\n * @param locale current locale\n * @return a list of URL mapping objects for current node and locale\n * @throws GWTJahiaServiceException in case of an error\n */\n List<GWTJahiaUrlMapping> getUrlMappings(GWTJahiaNode node, String locale) throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeUsage> getUsages(List<String> paths) throws GWTJahiaServiceException;\n\n List<GWTJahiaNodeVersion> getVersions(String path) throws GWTJahiaServiceException;\n\n PagingLoadResult<GWTJahiaNodeVersion> getVersions(GWTJahiaNode node, int limit, int offset) throws GWTJahiaServiceException;\n\n ModelData getVisibilityInformation(String path) throws GWTJahiaServiceException;\n\n GWTJahiaNodeType getWFFormForNodeAndNodeType(String formResourceName)\n throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowComment> getWorkflowComments(GWTJahiaWorkflow workflow);\n\n Map<String, GWTJahiaWorkflowDefinition> getWorkflowDefinitions(List<String> workflowDefinitionIds) throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowHistoryItem> getWorkflowHistoryForUser() throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowHistoryItem> getWorkflowHistoryProcesses(String nodeId,\n String locale) throws GWTJahiaServiceException;\n\n List<GWTJahiaWorkflowHistoryItem> getWorkflowHistoryTasks(String provider, String processId) throws GWTJahiaServiceException;\n\n Map<GWTJahiaWorkflowType, List<GWTJahiaWorkflowDefinition>> getWorkflowRules(String path) throws GWTJahiaServiceException;\n\n List<GWTJahiaJobDetail> importContent(String parentPath, String fileKey, Boolean replaceContent) throws GWTJahiaServiceException;\n\n GWTJahiaCreateEngineInitBean initializeCreateEngine(String typeName, String parentPath, String targetName) throws GWTJahiaServiceException;\n\n GWTJahiaCreatePortletInitBean initializeCreatePortletEngine(String typeName, String parentPath) throws GWTJahiaServiceException;\n\n GWTJahiaEditEngineInitBean initializeEditEngine(String nodePath, boolean tryToLockNode) throws GWTJahiaServiceException;\n\n GWTJahiaEditEngineInitBean initializeEditEngine(List<String> paths, boolean tryToLockNode) throws GWTJahiaServiceException;\n\n SessionValidationResult isValidSession() throws GWTJahiaServiceException;\n\n PagingLoadResult<GWTJahiaNode> lsLoad(String parentPath, List<String> nodeTypes, List<String> mimeTypes, List<String> filters, List<String> fields, boolean checkSubChild, int limit, int offset, boolean displayHiddenTypes, List<String> hiddenTypes, String hiddenRegex, boolean showOnlyNodesWithTemplates, boolean useUILocale) throws GWTJahiaServiceException;\n\n void markForDeletion(List<String> paths, String comment) throws GWTJahiaServiceException;\n\n public void move(List<String> sourcePaths, String targetPath) throws GWTJahiaServiceException;\n\n public void moveAtEnd(List<String> sourcePaths, String targetPath) throws GWTJahiaServiceException;\n\n public void moveOnTopOf(List<String> sourcePaths, String targetPath) throws GWTJahiaServiceException;\n\n void paste(List<String> pathsToCopy, String destinationPath, String newName, boolean cut, List<String> childNodeTypesToSkip) throws GWTJahiaServiceException;\n\n void pasteReferences(List<String> pathsToCopy, String destinationPath, String newName) throws GWTJahiaServiceException;\n\n /**\n * Publish the specified uuids.\n *\n * @param uuids the list of node uuids to publish, will not auto publish the parents\n */\n void publish(List<String> uuids, List<GWTJahiaNodeProperty> properties, List<String> comments) throws GWTJahiaServiceException;\n\n void publish(List<String> uuids, List<GWTJahiaNodeProperty> properties, List<String> comments, String language) throws GWTJahiaServiceException;\n\n GWTJahiaNode rename(String path, String newName) throws GWTJahiaServiceException;\n\n void resizeImage(String path, String target, int width, int height, boolean forceReplace) throws GWTJahiaServiceException;\n\n void restoreNode(GWTJahiaNodeVersion gwtJahiaNodeVersion, boolean allSubTree) throws GWTJahiaServiceException;\n\n void restoreNodeByIdentifierAndDate(String identifier, Date versionDate, String versionLabel, boolean allSubTree) throws GWTJahiaServiceException;\n\n void rotateImage(String path, String target, boolean clockwise, boolean forceReplace) throws GWTJahiaServiceException;\n\n GWTJahiaNode sendToSourceControl(String moduleId, String scmURI, String scmType) throws GWTJahiaServiceException;\n\n void saveModule(String moduleId, String message) throws GWTJahiaServiceException;\n\n RpcMap saveNode(GWTJahiaNode node, GWTJahiaNodeACL acl, Map<String, List<GWTJahiaNodeProperty>> langCodeProperties, List<GWTJahiaNodeProperty> sharedProperties, Set<String> removedTypes) throws GWTJahiaServiceException;\n\n void saveOpenPathsForRepository(String repositoryType, List<String> paths) throws GWTJahiaServiceException;\n\n void saveProperties(List<GWTJahiaNode> nodes, List<GWTJahiaNodeProperty> newProps, Set<String> removedTypes) throws GWTJahiaServiceException;\n\n void savePropertiesAndACL(List<GWTJahiaNode> nodes, GWTJahiaNodeACL acl, Map<String, List<GWTJahiaNodeProperty>> langCodeProperties, List<GWTJahiaNodeProperty> sharedProperties, Set<String> removedTypes) throws GWTJahiaServiceException;\n\n void saveSearch(GWTJahiaSearchQuery searchQuery, String path, String name, boolean onTopOf) throws GWTJahiaServiceException;\n\n PagingLoadResult<GWTJahiaNode> search(GWTJahiaSearchQuery search, int limit, int offset, boolean showOnlyNodesWithTemplates) throws GWTJahiaServiceException;\n\n List<GWTJahiaNode> search(String searchString, int limit, List<String> nodeTypes, List<String> mimeTypes, List<String> filters) throws GWTJahiaServiceException;\n\n List<GWTJahiaPortletDefinition> searchPortlets(String match) throws GWTJahiaServiceException;\n\n PagingLoadResult<GWTJahiaNode> searchSQL(String searchString, int limit, int offset, List<String> nodeTypes, List<String> fields, boolean sortOnDisplayName) throws GWTJahiaServiceException;\n\n /**\n * Updates the module's pom.xml file with the specified distribution server details and returns the module release information.\n *\n * @param module\n * the module to update distribution management information\n * @param info\n * the module info containing server ID, server URL or Private App Store URL\n * @return the updated module release info\n * @throws GWTJahiaServiceException\n * in case of an error\n */\n GWTModuleReleaseInfo setDistributionServerForModule(String module, GWTModuleReleaseInfo info)\n throws GWTJahiaServiceException;\n\n void setLock(List<String> paths, boolean locked) throws GWTJahiaServiceException;\n\n void startWorkflow(String path, GWTJahiaWorkflowDefinition workflowDefinition, List<GWTJahiaNodeProperty> properties, List<String> comments) throws GWTJahiaServiceException;\n\n void startWorkflow(List<String> uuids, GWTJahiaWorkflowDefinition def,\n List<GWTJahiaNodeProperty> properties, List<String> comments, Map<String, Object> args, String locale) throws GWTJahiaServiceException;\n\n void storePasswordForProvider(String providerKey, String username, String password) throws GWTJahiaServiceException;\n\n void undeletePaths(List<String> path) throws GWTJahiaServiceException;\n\n /**\n * Unpublish the specified path and its subnodes.\n *\n * @param uuids the list of node uuids to publish, will not auto publish the parents\n */\n void unpublish(List<String> uuids) throws GWTJahiaServiceException;\n\n void unzip(List<String> paths) throws GWTJahiaServiceException;\n\n String updateModule(String moduleId) throws GWTJahiaServiceException;\n\n void addToSourceControl(String moduleId, GWTJahiaNode node) throws GWTJahiaServiceException;\n\n void markConflictAsResolved(String moduleId, GWTJahiaNode node) throws GWTJahiaServiceException;\n\n void compileAndDeploy(String moduleId) throws GWTJahiaServiceException;\n\n void uploadedFile(List<String[]> uploadeds) throws GWTJahiaServiceException;\n\n /**\n * Validates the HTML texts against WCAG rules. This method allows to validate multiple texts at once to be able to check WCAG rules for\n * all rich text fields in the engine.\n *\n * @param richTexts\n * a map of HTML texts to be validated, keyed by field IDs ( {@link CKEditorField#getItemId()})\n * @return the WCAG validation results, keyed by the original field IDs ( {@link CKEditorField#getItemId()})\n */\n Map<String, WCAGValidationResult> validateWCAG(Map<String, String> richTexts);\n\n void zip(List<String> paths, String archiveName) throws GWTJahiaServiceException;\n\n /**\n * Request to an online service the translations for all the values of a list of properties\n *\n * @param properties a list of properties\n * @param definitions the corresponding list of property definitions\n * @param srcLanguage the source language code\n * @param destLanguage the destination language code\n * @param siteUUID the site UUID\n * @return the properties with their values translated\n * @throws GWTJahiaServiceException\n */\n List<GWTJahiaNodeProperty> translate(List<GWTJahiaNodeProperty> properties, List<GWTJahiaItemDefinition> definitions, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;\n\n /**\n * Request to an online service the translations for the values of a property\n *\n * @param property a property\n * @param definition the corresponding property definition\n * @param srcLanguage the source language code\n * @param destLanguage the destination language code\n * @param siteUUID the site UUID\n * @return the property with its values translated\n * @throws GWTJahiaServiceException\n */\n GWTJahiaNodeProperty translate(GWTJahiaNodeProperty property, GWTJahiaItemDefinition definition, String srcLanguage, String destLanguage, String siteUUID) throws GWTJahiaServiceException;\n\n RpcMap initializeCodeEditor(String path, boolean isNew, String nodeType, String fileType) throws GWTJahiaServiceException;\n\n /**\n * Retrieve tags regarding a given prefix and using the TagSuggester service\n *\n * @param prefix The text used to match the tags to retrieve\n * @param startPath The path used to search the tags\n * @param minCount Minimum usage count for a tag to be return\n * @param limit Limit of tags return\n * @param offset Offset used in the query\n * @param sortByCount Sort tags by count\n * @return the matching tags retrieved\n */\n List<GWTJahiaValueDisplayBean> getTags(String prefix, String startPath, Long minCount, Long limit, Long offset, boolean sortByCount) throws GWTJahiaServiceException;\n\n /**\n * Retrieve all currently available registered permissions.\n *\n * The list of permissions may change during runtime. This can happen for instance after module deployment or when\n * a user's session gets directed to a new server on fail-over. The permissions for a node are held in a BitSet variable,\n * where the bits point to indexes in the permissions list. This makes it very important that on resolving the permissions from\n * the BitSet we use the very same permissions list, which was used when creating the BitSet.\n *\n * As the list is cached on the client and bcause of the possibility that the list changed on the server, we may detect that the\n * list has to be reloaded.\n *\n * @return the permissions retrieved\n */\n List<String> getAvailablePermissions() throws GWTJahiaServiceException;\n\n /**\n * Convert a given tag using the TagHandler service,\n * used to made transformation on the tags before save or display them.\n *\n * @param tag The tag to convert\n * @return the converted tag\n */\n String convertTag(String tag);\n\n /**\n * get the warning messages to display in the admin toolbars\n *\n * @return the warning messages\n */\n String getToolbarWarnings() throws GWTJahiaServiceException;\n\n /**\n * Returns the path of the displayble node for the specified one.\n *\n * @param nodePath the path of the target node\n * @param fallbackToHomePage if true, use the homepage as fallback if no resource found\n * @return the path of the displayble node for the specified one\n * @throws GWTJahiaServiceException in case of a JCR access error\n */\n String getDisplayableNodePath(String nodePath, boolean fallbackToHomePage) throws GWTJahiaServiceException;\n\n public static class App {\n private static JahiaContentManagementServiceAsync app = null;\n private static int windowId = Random.nextInt();\n public static synchronized JahiaContentManagementServiceAsync getInstance() {\n if (app == null) {\n String relativeServiceEntryPoint = createEntryPointUrl();\n String serviceEntryPoint = URL.getAbsoluteURL(relativeServiceEntryPoint);\n app = (JahiaContentManagementServiceAsync) GWT.create(JahiaContentManagementService.class);\n ((ServiceDefTarget) app).setServiceEntryPoint(serviceEntryPoint);\n\n JahiaGWTParameters.addUpdater(new JahiaGWTParameters.UrlUpdater() {\n\n @Override\n public void updateEntryPointUrl() {\n String relativeServiceEntryPoint = createEntryPointUrl();\n String serviceEntryPoint = URL.getAbsoluteURL(relativeServiceEntryPoint);\n ((ServiceDefTarget) app).setServiceEntryPoint(serviceEntryPoint);\n }\n });\n }\n return app;\n }\n\n public static int getWindowId() {\n return windowId;\n }\n\n private static String createEntryPointUrl() {\n if (JahiaGWTParameters.getReactSiteKey() != null && JahiaGWTParameters.getReactLanguage() != null) {\n return JahiaGWTParameters.getServiceEntryPoint() + \"contentManager.gwt?lang=\" + JahiaGWTParameters.getReactLanguage() + \"&site=/sites/\" + JahiaGWTParameters.getReactSiteKey() + \"&workspace=\" + JahiaGWTParameters.getWorkspace() + \"&windowId=\" + windowId;\n } else {\n return JahiaGWTParameters.getServiceEntryPoint() + \"contentManager.gwt?lang=\" + JahiaGWTParameters.getLanguage() + \"&site=\" + JahiaGWTParameters.getSiteUUID() + \"&workspace=\" + JahiaGWTParameters.getWorkspace() + \"&windowId=\" + windowId;\n }\n }\n }\n}",
"public String getRemoteContainerId()\n {\n return remoteContainerId;\n }",
"public interface IConversationsManagePresenter {\n void setCoversationListView(IConversationListView view);\n void deleteCoversation();\n void deleteChatRecord();\n void showRecentConvs();\n void initReload(boolean toDB);\n void handleMessage(IMMessage message);\n void allRead();\n void markReadById();\n void removeEvent();\n\n\n}",
"@Remote\r\npublic interface EcheanceReglementManagerRemote\r\n extends EcheanceReglementManager\r\n{\r\n\r\n\r\n}",
"public interface IServiceAppAuthenticationClient {\n\n\t/**\n\t * This method gets the <strong>App</strong> authenticated by the Service. It uses Kerberos Protocol\n\t * to achieve mutual authentication between the App and the Service \n\t * @param url \n\t * <code>String</code> url of the web service to be invoked to authenticate App Service Ticket\n\t * @param serviceTicket \n\t * <code>ServiceTicket</code> Kerberos Service Ticket required to access the service\n\t * @return\n\t * <code>AppSession</code> \n\t * @throws IOException\n\t * In case there are some errors encountered while retrieving information\n\t * @throws RestClientException\n\t * If the status of the response is not <strong>200</strong>. The server side error message and error \n\t * response code can be accessed using <code>getMessage</code> and <code>getErrorCode</code> methods respectively\n\t * @throws ResponseDecryptionException \n\t * If the Application was unable to decrypt the Response sent by the server\n\t */\n\tAppSession authenticateAppServiceTicket(String url,\n\t\t\tServiceTicket serviceTicket) throws IOException, RestClientException, ResponseDecryptionException;\n\n}",
"@RemoteServiceRelativePath(\"data\")\npublic interface DataService extends RemoteService {\n\n\tUserInfo loginFromSession();\n\n\tvoid logout();\n\n\tIBasic save(IBasic iBasic);\n\n\tList<IBasic> saves(List<IBasic> iBasics);\n\n\tvoid delete(IBasic iBasic);\n\n\tvoid deletes(List<IBasic> iBasics);\n\n\tList<Product> getAllProducts();\n\n\tList<ActivityInfo> getActivities();\n\n\tList<ActionInfo> getActions();\n}",
"public interface MessagingService {\n\n /**\n * Checks whether message receivers are registered for this channel.\n * \n * @param ccid the channel id\n * @return <code>true</code> if there are message receivers on this channel,\n * <code>false</code> if not.\n */\n boolean hasMessageReceiver(String ccid);\n\n /**\n * Passes the message to the registered message receiver.\n * \n * @param ccid the channel to pass the message on\n * @param serializedMessage the message to send (serialized SMRF message)\n */\n void passMessageToReceiver(String ccid, byte[] serializedMessage);\n\n /**\n * Check whether the messaging component is responsible to send messages on\n * this channel.<br>\n * \n * In scenarios with only one messaging component, this will always return\n * <code>true</code>. In scenarios in which channels are assigned to several\n * messaging components, only the component that the channel was assigned\n * to, returns <code>true</code>.\n * \n * @param ccid\n * the channel ID or cluster controller ID, respectively.\n * @return <code>true</code> if the messaging component is responsible for\n * forwarding messages on this channel, <code>false</code>\n * otherwise.\n */\n boolean isAssignedForChannel(String ccid);\n\n /**\n * Check whether the messaging component was responsible before but the\n * channel has been assigned to a new messaging component in the mean time.\n * \n * @param ccid the channel id\n * @return <code>true</code> if the messaging component was responsible\n * before but isn't any more, <code>false</code> if it either never\n * was responsible or still is responsible.\n */\n boolean hasChannelAssignmentMoved(String ccid);\n}",
"public interface IRemoteInvoke {\n\n void invoke(JSONObject paramJson);\n\n}",
"public interface IMirrorService {\n\n// Result validateAndUpdateMirrorLoginInfo(String vSessionId);\n\n}",
"@Remote\npublic interface PublisherQueueProxySessionRemote {\n\n void addQueueData(int publisherId, int publishType, String fingerprint,\n PublisherQueueVolatileInformation queueData, int publishStatus) throws CreateException;\n\n void removeQueueData(java.lang.String pk);\n\n void updateData(java.lang.String pk, int status, int tryCounter);\n\n Collection<PublisherQueueData> getEntriesByFingerprint(String fingerprint);\n\n int[] getPendingEntriesCountForPublisherInIntervals(int publisherId, int[] lowerBounds, int[] upperBounds);\n\n int getPendingEntriesCountForPublisher(int publisherId);\n\n Collection<PublisherQueueData> getPendingEntriesForPublisher(int publisherId);\n \n PublishingResult plainFifoTryAlwaysLimit100EntriesOrderByTimeCreated(AuthenticationToken admin, BasePublisher publisher);\n\n /** Removes all entries in PublisherQueueData for a given publishers. Used in tests only */\n void removePublisherQueueEntries(String publisherName);\n}",
"interface IDiscussionPostView {\n\n void startDiscussionPostActivity();\n void displayErrorToast();\n void showProgressDialog();\n void hideProgressDialog();\n\n}",
"public interface InstructorControllerInterface extends Remote {\n\n\t/**\n\t * @param username\n\t * @param password\n\t * @return\n\t * @throws RemoteException\n\t */\n\tpublic Instructor login(String username, String password) throws RemoteException;\n\n\t/**\n\t * @param instructor\n\t * @throws RemoteException\n\t */\n\tpublic void saveProfile(Instructor instructor) throws RemoteException;\n}",
"public interface BrokerInterface extends Remote {\n /**\n * Subscribes to a game\n * @param subscriber the interface on which the broker calls the dispatch message method\n * @param clientId the unique id of the client to find in which game it belongs\n * @throws RemoteException\n */\n public void subscribe(SubscriberInterface subscriber, UUID clientId) throws RemoteException;\n}",
"@SuppressWarnings(\"serial\")\r\n@Remote\r\npublic interface PtJJdwcyFacadeRemote {\r\n\t/**\r\n\t * Perform an initial save of a previously unsaved PtJJdwcy entity. All\r\n\t * subsequent persist actions of this entity should use the #update()\r\n\t * method.\r\n\t * \r\n\t * @param entity\r\n\t * PtJJdwcy entity to persist\r\n\t * @throws RuntimeException\r\n\t * when the operation fails\r\n\t */\r\n\tpublic void save(PtJJdwcy entity);\r\n\r\n\t/**\r\n\t * Delete a persistent PtJJdwcy entity.\r\n\t * \r\n\t * @param entity\r\n\t * PtJJdwcy entity to delete\r\n\t * @throws RuntimeException\r\n\t * when the operation fails\r\n\t */\r\n\tpublic void deleteMulti(String ids);\r\n\r\n\t/**\r\n\t * Persist a previously saved PtJJdwcy entity and return it or a copy of it\r\n\t * to the sender. A copy of the PtJJdwcy entity parameter is returned when\r\n\t * the JPA persistence mechanism has not previously been tracking the\r\n\t * updated entity.\r\n\t * \r\n\t * @param entity\r\n\t * PtJJdwcy entity to update\r\n\t * @return PtJJdwcy the persisted PtJJdwcy entity instance, may not be the\r\n\t * same\r\n\t * @throws RuntimeException\r\n\t * if the operation fails\r\n\t */\r\n\tpublic PtJJdwcy update(PtJJdwcy entity);\r\n\r\n\tpublic PtJJdwcy findById(Long id);\r\n\r\n\t/**\r\n\t * Find all PtJJdwcy entities with a specific property value.\r\n\t * \r\n\t * @param propertyName\r\n\t * the name of the PtJJdwcy property to query\r\n\t * @param value\r\n\t * the property value to match\r\n\t * @return List<PtJJdwcy> found by query\r\n\t */\r\n\tpublic List<PtJJdwcy> findByProperty(String propertyName, Object value);\r\n\r\n\tpublic List<PtJJdwcy> findByWorkerCode(Object workerCode);\r\n\r\n\tpublic List<PtJJdwcy> findByJdzyId(Object jdzyId);\r\n\r\n\tpublic List<PtJJdwcy> findByNetDuty(Object netDuty);\r\n\r\n\tpublic List<PtJJdwcy> findByEnterpriseCode(Object enterpriseCode);\r\n\r\n\t/**\r\n\t * Find all PtJJdwcy entities.\r\n\t * \r\n\t * @return List<PtJJdwcy> all PtJJdwcy entities\r\n\t */\r\n\tpublic PageObject findAll(String jdzyId,String enterpriseCode,final int... rowStartIdxAndCount);\r\n}",
"public interface CommunicationService {\n public String postDeployment(UnitDeliveryResource unitDeliveryResource);\n\n public String postService(UnitServiceResource unitServiceResource);\n\n public boolean checkLocality(UnitDeliveryResource unitDeliveryResource);\n\n public List<SiteReource> getSites();\n}",
"public QCloudLifecycleCredentials onRemoteCredentialReceived(String jsonContent) throws QCloudClientException {\n return null;\n }",
"public interface IBillingServer extends Remote {\r\n\r\n\t/**\r\n\t * \r\n\t * @param username\r\n\t * @param password\r\n\t * @return null if user not authorized, access otherwise\r\n\t * @throws RemoteException\r\n\t */\r\n\tIBillingServerSecure login(String username, String password) throws RemoteException;\r\n}",
"public interface DemoService extends Remote {\r\n public final static String SERVICE_NAME = \"DemoService\";\r\n \r\n public String doTask(String[] args) throws RemoteException;\r\n}",
"public interface IcsHmiPortalInterface {\r\n\t\r\n\t/** The HMI application(s) will call this method in order to receive incoming\r\n\t * Objects and notifications from the IcsDirector.\r\n\t * \r\n\t * @param listener The listener that will be registered.\r\n\t */\r\n\tpublic void addDirectorToHmiEventListener( DirectorToHmiEventListener listener );\r\n\t\r\n\t/** The HMI application will use this method to send a text message to Choeo. \r\n\t * \r\n\t * @param jsonTextMessage\r\n\t * \r\n\t * @return <code>true</code> if the json oject was decoded successfully and the text message\r\n\t * has been queued to be sent to Choreo.\r\n\t */\r\n\tpublic boolean sendTextMessageToChoreo( String jsonTextMessage );\r\n\t\r\n\t/** Inform the director that the specified message has been viewed by the driver.\r\n\t * \r\n\t * @param messageId The id of the message that was viewed.\r\n\t * @return <code>true</code> if the specified message id is associated with a received text message. If the \r\n\t * message id doesn't match a received message in the datbase <code>false</code> will be returned instead.\r\n\t */\r\n\tpublic boolean setMessageIsReadStatus( long messageId );\r\n\r\n\t/** Request the director to validate the given PIN code. If the PIN is valid, the \r\n\t * Director will notify the OBU that a valid PIN was entered on the touchscreen. \r\n\t * This may not result in a valid logon if the OBU has already validated a logon source\r\n\t * With a higher order of precedence (i.e. DTCO card). The HMI should not consider \r\n\t * that a logon exists until it receives the ObuLogonEvent object.\r\n\t * \r\n\t * @param pin The PIN code to be validated.\r\n\t * @return <code>true</code> if the PIN is valid. <code>false</code> otherwise.\r\n\t */\r\n\tpublic boolean validatePin( String pin );\r\n\t\r\n\t/** The End User License Agreement (EULA) has been accepted by the specified driver. The Director \r\n\t * will update the database with this information so that the EULA will not need to be shown to \r\n\t * this driver in the future.\r\n\t * \r\n\t * @param driverIdType The type associated with the currently logged on driver.\r\n\t * @param driverId The identifier string associated with the currently logged on driver.\r\n\t * @return <code>true</code> if the EULA was previously accepted by the specified driver. <code>false</code> otherwise.\r\n\t */\r\n\tpublic boolean eulaIsAcceptedBy( byte driverIdType, String driverId );\r\n\t\r\n\t/** Get the configuration object for the specified driver. The configuration information will be fetched via\r\n\t * the data broker if there is existing configuration information for the specified driver.\r\n\t * \r\n\t * @param driverIdType The type associated with the currently logged on driver.\r\n\t * @param driverId The identifier string associated with the currently logged on driver.\r\n\t * @return The object that contains the specified drivers configuration info. If there is no existing confiuration\r\n\t * for the requested driver then null will be returned.\r\n\t */\r\n\tpublic DriverConfiguration getDriverConfiguration( byte driverIdType, String driverId );\r\n\r\n\t/** Store a driver's configuration information. This will be written to persistant storage by the data broker.\r\n\t * \r\n\t * @param driverIdType The type associated with the currently logged on driver.\r\n\t * @param driverId The identifier string associated with the currently logged on driver.\r\n\t * @param configuration The configuration data to store and associate with the specified driver.\r\n\t * @return\r\n\t */\r\n\tpublic boolean setDriverConfiguration( byte driverIdType, String driverId, DriverConfiguration configuration );\r\n\t\r\n\t/** Return the content of a pre-defined text message in the specified language. \r\n\t * \r\n\t * @param language The language as ISO 639-2 requested for the pre-defined message. \r\n\t * @param preDefindeMsgId The pre-defined or \"Standard message\" identifier (Currently\r\n\t * \t\t there are 5 pre-defined messages defined ). \r\n\t * @return A string which contains the content of the pre-defined messaged in the specified language.\r\n\t */\r\n\tpublic String getPredefinedTextMessage( String language, int preDefindeMsgId );\r\n\t\r\n\t\r\n\tpublic static final int DRIVING_TIP_CATEGORY_SCORE = 1;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_IDLING = 2; /// catagory representing vehicle idle time.\r\n\tpublic static final int DRIVING_TIP_CATEGORY_OVER_REV = 3;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_HARSH_THROTTLE = 4;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_BRAKING = 5;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_CRUISE_CONTROL = 6;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_COASTING = 7;\r\n\tpublic static final int DRIVING_TIP_LEVEL_NEEDS_IMPROVEMENT = 1;\r\n\tpublic static final int DRIVING_TIP_LEVEL_MEETS_TARGET = 2;\r\n\tpublic static final int DRIVING_TIP_LEVEL_GOOD_JOB = 3;\r\n\t\r\n\r\n\t/** Get a driving tip for the specified category, language, and level. \r\n\t *\r\n\t * @param category The category of driving tip desired. Should be one of {@code DRIVING_TIP_CATEGORY_SCORE \r\n\t * DRIVING_TIP_CATEGORY_IDLING, DRIVING_TIP_CATEGORY_OVER_REV, DRIVING_TIP_CATEGORY_HARSH_THROTTLE, \r\n\t * DRIVING_TIP_CATEGORY_CRUISE_CONTROL DRIVING_TIP_CATEGORY_COASTING}\r\n\t * @param language The desired language for the requested tip.\r\n\t * @param level An indication of how the results of the given shift compare against the targets. This will \r\n\t * help select a more appropriate tip to suit the specific condition. \r\n\t * @return A driving tip for the selected category in the selected language. The tip will be relevant to the category and the driver's current score against targets.\r\n\t * \r\n\t */\r\n\tpublic String getDrivingTip( int category, String language, int level );\r\n\t\r\n\t/** Fetch all messages for this vehicle and also those addressed to the driver that is currently logged on to the ICS.\r\n\t * The messages will be returned as an array of JSON Text Message objects that are sorted by date in descending order.\r\n\t * \r\n\t * @return A string containing an array of JSON TextMessage objects. If no messages are found addressed to the vehicle or current driver null will be returned.\r\n\t */\r\n\tpublic String getTextMessagesForVehicleAndCurrentDriver();\r\n}",
"public interface VideoAnalyzerManagementClient {\n /**\n * Gets The ID of the target subscription.\n *\n * @return the subscriptionId value.\n */\n String getSubscriptionId();\n\n /**\n * Gets server parameter.\n *\n * @return the endpoint value.\n */\n String getEndpoint();\n\n /**\n * Gets Api Version.\n *\n * @return the apiVersion value.\n */\n String getApiVersion();\n\n /**\n * Gets The HTTP pipeline to send requests through.\n *\n * @return the httpPipeline value.\n */\n HttpPipeline getHttpPipeline();\n\n /**\n * Gets The default poll interval for long-running operation.\n *\n * @return the defaultPollInterval value.\n */\n Duration getDefaultPollInterval();\n\n /**\n * Gets the OperationsClient object to access its operations.\n *\n * @return the OperationsClient object.\n */\n OperationsClient getOperations();\n\n /**\n * Gets the VideoAnalyzersClient object to access its operations.\n *\n * @return the VideoAnalyzersClient object.\n */\n VideoAnalyzersClient getVideoAnalyzers();\n\n /**\n * Gets the LocationsClient object to access its operations.\n *\n * @return the LocationsClient object.\n */\n LocationsClient getLocations();\n\n /**\n * Gets the EdgeModulesClient object to access its operations.\n *\n * @return the EdgeModulesClient object.\n */\n EdgeModulesClient getEdgeModules();\n\n /**\n * Gets the VideosClient object to access its operations.\n *\n * @return the VideosClient object.\n */\n VideosClient getVideos();\n\n /**\n * Gets the AccessPoliciesClient object to access its operations.\n *\n * @return the AccessPoliciesClient object.\n */\n AccessPoliciesClient getAccessPolicies();\n}",
"@RemoteServiceRelativePath(\"rpc/userservice\")\r\npublic interface UserService extends RemoteService {\r\n\r\n public boolean isLogin();\r\n\r\n public boolean hasAccess(Long userId);\r\n \r\n public boolean isAdmin();\r\n\r\n public Artist getArtist(Long artistId);\r\n \r\n public User getCurrentUser();\r\n\r\n public List<LinkObject<String>> getArtistNames(List<Long> ids);\r\n\r\n public Artist getAsArtist(User user);\r\n \r\n public User addMoney(int amount);\r\n \r\n public void sendRequest(String msg, int type);\r\n}",
"public interface TelIpManageService {\n\n public List<CallCenter> queryCallCenters();\n\n public void updateCallCenter(CallCenter callCenter);\n\n\tpublic void deleteCallCenters(List<Integer> callCenterIDs);\n\n\tpublic void addCallCenter(CallCenter callCenter);\n\n\tpublic CallCenter queryCallCenter(Integer callCenterID);\n}",
"public interface CommunicationUser {\n\t\n\t/**\n\t * Provide communication API that allows for communication with other object in the simulator.\n\t * Method is a callback for the registration of the object in {@link CommunicationModel}\n\t * @param api the access to the communication infrastructure \n\t */\n\tvoid setCommunicationAPI(CommunicationAPI api);\n\t\n\t/**\n\t * Get position. The position is required to determine the entities you can communicate with \n\t * @return positing on the communication user or <code>null</code> if object is not positioned \n\t */\n\tPoint getPosition();\n\t\n\t/**\n\t * Get the distance in which you want to communicate. \n\t * @return\n\t */\n\tdouble getRadius();\n\t\n\t/**\n\t * Get the connection reliability. This is probability (0,1] that the message is send/received.\n\t * When two entities communicate the probability of message delivery is a product of their reliability. \n\t * @return\n\t */\n\tdouble getReliability();\n\t\n\t/**\n\t * Receive the message. Multiple messages might be delivered during one tick of the simulator. \n\t * The simple implementation of handling multiple messages is provided in {@link Mailbox} \n\t * @param message delivered\n\t */\n\tvoid receive(Message message);\n}",
"@Remote\npublic interface IEventsResource {\n\n public String createEvent(EventTO newEventTO, String idApp) throws EntityNotFoundException, UnauthorizedException;\n\n public EventTO getEvent(String id, String idApp) throws EntityNotFoundException, UnauthorizedException;\n\n public List<EventTO> getEvents(String idApp) throws EntityNotFoundException;\n\n public Response restCreateEvent(EventTO newEventTO, String idApp) throws EntityNotFoundException, UnauthorizedException;\n}",
"public interface ChatList extends Remote {\r\n\r\n Chat newChat(String s) throws RemoteException;\r\n\r\n Vector allChats() throws RemoteException;\r\n\r\n int getVersion() throws RemoteException;\r\n\r\n boolean newName(String s) throws RemoteException;\r\n \r\n boolean deleteName(String s) throws RemoteException;\r\n\r\n void print() throws RemoteException;\r\n\r\n void registration(ChatList l) throws RemoteException;\r\n}",
"public interface ForumService {\n List<Forum> getForums();\n}",
"public interface ISecurityMonitorService {\n\n\n}",
"public interface CollabService {\n\n /**\n * Requesting a lease of for a content path.\n * \n * @param page page path where this content is located in\n * @param uid page edit session ID requesting the lease\n * @param path path of the content to be leased\n * @param userId ID of the requesting user\n * @throws UserNotFoundException if the user data has not been created on this\n * instance yet\n * @throws RejectedException if the lease cannot be granted\n */\n void lease(String page, String uid, String path, String userId) throws UserNotFoundException, RejectedException;\n\n /**\n * Return a previously granted lease.\n * \n * @param page page path where the lease applied\n * @param uid page edit session ID requesting the release\n * @throws UserNotFoundException if the user data has not been created on this\n * instance yet\n */\n void release(String page, String uid) throws UserNotFoundException;\n\n /**\n * Capturing that a page edit session of a user is terminated.\n * \n * @param page page path where the page edit session was active on\n * @param uid page edit session ID to terminate\n */\n void exit(String page, String uid);\n\n /**\n * Processes a content change on a page.\n * \n * @param page page path where the change occurred\n * @param paths content paths which got modified\n * @param refreshPaths the paths within the page content which should get\n * refreshed\n */\n void update(String page, Collection<String> paths, Collection<String> refreshPaths);\n\n /**\n * Inquiring if content is available for lease.\n * \n * @param page page containing the content\n * @param uid page edit session ID inquiring about the lease\n * @param path path of the content to be potentially leased\n * @return if the content is either available for lease, or the active lease\n * belongs to the same user\n */\n boolean mayLease(String page, String uid, String path);\n\n /**\n * Tracks a new user active on this page.\n * \n * @param page page where the user is active on\n * @param userId ID of the new user\n * @param uid new page edit session ID for this user\n */\n void addUser(String page, String userId, String uid);\n\n /**\n * Provides the currently active users on a page.\n * \n * @param page page for which to return the users\n * @return display names of all current users on this page\n */\n Set<String> getUsers(String page);\n\n /**\n * Get all active lease on a page for other page edit session IDs.\n * \n * @param page page for which to return the leases\n * @param excludeUid page edit session ID for which not to return any lease.\n * This should be the requesting session's ID.\n * @return mapping between leased content paths and their lease owner's display\n * name\n */\n Map<String, String> getLeases(String page, String excludeUid);\n\n /**\n * Retrieve update history for a page after a given minimum time.\n * \n * @param page page for which to return the updates\n * @param minTime will only return updates newer than this timestamp\n * @return list of all newer updates on this page\n */\n List<Update> getUpdates(String page, long minTime);\n\n /**\n * Checks if the extension has collected data about a specific page.\n * \n * @param page path of the page\n * @return if any collaboration data has been collected for this page\n */\n boolean hasPage(String page);\n\n /**\n * Returns the display name for a user ID.\n * \n * @param userId ID of the user\n * @return display name of the user\n */\n String getUserName(String userId);\n\n}",
"@Remote\r\npublic interface ProductServiceRemote {\r\n long addProduct(Product product);\r\n}",
"public interface InterfaceServeurClient extends Remote {\n\n\tpublic void setServeur(InterfaceServeurClient serveur) throws RemoteException;\n\tpublic void setListeClient(ArrayList<InterfaceServeurClient> client) throws RemoteException;\n\tpublic Partie getPartie() throws RemoteException;\n\tpublic void ajouterClient(InterfaceServeurClient client) throws RemoteException;\n\tpublic boolean retirerClient(InterfaceServeurClient client) throws RemoteException;\n\tpublic InterfaceServeurClient getServeur() throws RemoteException;\n\tpublic String getNamespace() throws RemoteException;\n\tpublic String getNomJoueur() throws RemoteException;\n\tpublic int getIdObjetPartie() throws RemoteException;\n\tpublic void setIdObjetPartie(int idObjetPartie) throws RemoteException;\n\tpublic ArrayList<Dynastie> getListeDynastie() throws RemoteException;\n\tpublic void setListeDynastie(ArrayList<Dynastie> liste) throws RemoteException;\n\tpublic ArrayList<Dynastie> getListeDynastieDispo() throws RemoteException;\n\tpublic void setJoueur(Joueur j) throws RemoteException;\n\n\tpublic boolean deconnecter() throws RemoteException;\n\n\tpublic void notifierChangement(ArrayList<Object> args) throws RemoteException;\n\tpublic void addListener(ChangeListener listener) throws RemoteException;\n\tpublic void removeListener(ChangeListener listener) throws RemoteException;\n\tpublic void clearListeners() throws RemoteException;\n\tpublic Joueur getJoueur() throws RemoteException;\n\tpublic void setPartieCourante(Partie partie) throws RemoteException;\n\tpublic ArrayList<InterfaceServeurClient> getClients() throws RemoteException;\n\tpublic boolean send(Action action, int idClient) throws RemoteException;\n\tpublic void passerTour() throws RemoteException;\n\n\tpublic void switchJoueurEstPret(InterfaceServeurClient client) throws RemoteException;\n\tpublic void switchJoueurPret() throws RemoteException;\n\tpublic boolean setDynastieOfClient(InterfaceServeurClient client, Dynastie dynastie) throws RemoteException;\n\tpublic void setDynastie(Dynastie d) throws RemoteException;\n\tpublic void libererDynastie(Dynastie d) throws RemoteException;\n\tpublic int getUniqueId() throws RemoteException;\n\n\tpublic void envoyerNouveauConflit(Conflits conflit, int idClient) throws RemoteException;\n\tpublic void envoyerRenforts(ArrayList<TuileCivilisation> renforts, Joueur joueur) throws RemoteException;\n\tpublic boolean piocherCartesManquantes(Joueur j) throws RemoteException;\n\tpublic void finirPartie() throws RemoteException;\n\tpublic void envoyerPointsAttribues(Joueur joueur) throws RemoteException;\n\tpublic ArrayList<Joueur> recupererListeJoueurPartie() throws RemoteException;\n\tpublic void chargerPartie() throws RemoteException;\n}",
"public interface ILamportServer extends Remote {\n public String SERVICE_NAME = \"LAMPORT_RMI\"; // Nom du service\n \n /**\n * Envoie un Message REQUEST aux autres serveurs pour annoncer le fait de \n * vouloir rentrer dans la section critique\n * @param message Le message envoyé avec une requête\n * @throws RemoteException \n */\n public void request(Message message) throws RemoteException;\n \n /**\n * Envoi du Message RESPONSE après avoir Reçu le Message REQUEST\n * @param message Le message envoyé avec une réponse\n * @throws RemoteException \n */\n public void response(Message message) throws RemoteException;\n \n /**\n * Envoie du message FREE pour indiquer aux autres serveur que l'on sort de\n * la section critique\n * @param message Le message envoyé pour libérer la section critique\n * @throws RemoteException \n */\n public void freeSC(Message message) throws RemoteException;\n \n /**\n * Métode pour modifier la variable globalle dans tous les serveurs\n * @param newValue La nouvelle valeur de la variable\n * @throws RemoteException \n */\n public void setVariableGlobally(int newValue) throws RemoteException;\n}",
"@Remote\r\npublic interface EquJWorkticketsFacadeRemote {\r\n\t/**\r\n\t * 增加\r\n\t */\r\n\t//public void save(EquJWorktickets entity);\r\n\r\n\t/**\r\n\t * 删除\r\n\t */\r\n\tpublic void delete(EquJWorktickets entity);\r\n\r\n\t/**\r\n\t * 修改\r\n\t */\r\n\tpublic EquJWorktickets update(EquJWorktickets entity);\r\n\r\n\tpublic EquJWorktickets findById(Long id);\r\n\t\r\n\t/**\r\n\t * 根据工单编号查找\r\n\t * @param woCode 工单编号\r\n\t * @return List<EquJWorktickets>\r\n\t */\r\n\tpublic List<EquJWorktickets> findBywoCode(String woCode);\r\n\t\r\n\t/**\r\n\t * 根据woCode与woticketCode删除\r\n\t * @param String woCode\r\n\t * @param String woticketCode\r\n\t */\r\n\tpublic void deleteMutil(String woCode,String woticketCodes);\r\n\t/**\r\n\t * 根据woCode查找对用所有的工作票编号\r\n\t * @param woCode\r\n\t * @return String woticketCode\r\n\t */\r\n\tpublic String findAllWorkTicketCodeBywoCode(String woCode);\r\n\t/**\r\n\t * 根据工单编号查找对应所有工作票详细列表\r\n\t * @param workticketCode\r\n\t * @return\r\n\t */\r\n\tpublic List<WorkticketInfo> getWorkticketListByWorkticketCode(String woCode);\r\n\t/**\r\n\t * 判断是否有重复的工作票号\r\n\t * @param workticketNo\r\n\t * @return\r\n\t */\r\n\tpublic boolean checkSame(String workticketNo);\r\n\t/**\r\n\t * 增加\r\n\t * @param entity\r\n\t * @return\r\n\t */\r\n\tpublic boolean save(EquJWorktickets entity);\r\n\tpublic void delWorkticket(String busiNo,String entryId);\r\n\tpublic String getWfSql(Long workflowNo);\r\n}",
"public interface ContentService {\n\n public String getConteng(String logMsg);\n}",
"public interface MQLEditorService {\n void refreshMetadataDomains( XulServiceCallback<List<MqlDomain>> callback );\n\n void getMetadataDomains( XulServiceCallback<List<MqlDomain>> callback );\n\n void getDomainByName( String name, XulServiceCallback<MqlDomain> callback );\n\n void saveQuery( MqlQuery model, XulServiceCallback<String> callback );\n\n void serializeModel( MqlQuery query, XulServiceCallback<String> callback );\n\n void deserializeModel( String serializedQuery, XulServiceCallback<MqlQuery> callback );\n\n void getPreviewData( MqlQuery query, int page, int limit, XulServiceCallback<String[][]> callback );\n}",
"public interface RemoteCoordinator extends Remote, Identify {\n /**\n * a method to add a Peer to this RemoteCoordinator's list of available Peers\n * called by a MembershipManager\n *\n * @param peer the Uuid of the Peer to be added\n */\n void addPeer(Uuid peer) throws RemoteException;\n\n /**\n * a method to remove a Peer from this RemoteCoordinator's list of available Peers\n * called by a MembershipManager\n *\n * @param peer the Uuid of the Peer to be removed\n */\n void removePeer(Uuid peer) throws RemoteException;\n\n /**\n * a method to get the Uuid of a live Peer in this Coordinator's list of active Peers,\n * removing any dead Peers encountered along the way from the service\n *\n * @return the Uuid of a live Peer\n */\n Uuid getActivePeer() throws RemoteException, NotBoundException;\n\n /**\n * a method to get the list of active Peers from this RemoteCoordinator\n * called by the MembershipManager when bringing new RemoteCoordinators online\n *\n * @return the list of available Uuids from this RemoteCoordinator\n */\n List<Uuid> getActivePeers() throws RemoteException;\n\n /**\n * a method to set the map of active Peers for this RemoteCoordinator\n * called by the MembershipManager when bringing new RemoteCoordinators online\n */\n void setActivePeers(List<Uuid> activePeers) throws RemoteException;\n\n /**\n * a method to assign a JobId to a JobCoordinator\n * called by a User\n * delegates responsibility to its corresponding Coordinator method\n *\n * @param jobId the JobId of the Job being assigned\n * @return true if the job was successfully assigned, false otherwise\n * @throws RemoteException\n */\n boolean assignJob(JobId jobId) throws RemoteException;\n\n /**\n * a method to get an allocation of TaskManagers\n * called by a JobManager\n *\n * @param numRequested the number of TaskManagers being requested by the JobManager\n * @return a list of Uuids to be used by the calling JobManager as TaskManagers\n * @throws RemoteException\n */\n List<Uuid> getTaskManagers(int numRequested) throws RemoteException;\n}",
"interface ServerSideCommand extends RemoteApiCommand {\n\n /** An http connection to AppEngine. */\n interface Connection {\n\n void prefetchXsrfToken();\n\n /** Send a POST request. TODO(mmuller): change to sendPostRequest() */\n String send(\n String endpoint, Map<String, ?> params, MediaType contentType, @Nullable byte[] payload)\n throws IOException;\n\n String sendGetRequest(String endpoint, Map<String, ?> params) throws IOException;\n\n Map<String, Object> sendJson(String endpoint, Map<String, ?> object) throws IOException;\n\n String getServerUrl();\n }\n\n void setConnection(Connection connection);\n}",
"public String getRemoteUser() {\n return remoteUser;\n }",
"ServiceRemoteOffice() {\r\n\t\tsuper();\r\n\r\n\t\ttry {\r\n\t\t\tloadRemoteOfficeComponents();\r\n\t\t\tpopulateWithResourceBundleValues();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t}\r\n\t}",
"public interface IRemoteDataSource {\n\n\n /**\n * Retrieves the system remote configuration from the remote data source.\n *\n * @return - the retrieved RemoteConfiguration, null if some error is detected.\n */\n @Nullable\n RemoteConfiguration getSystemConfiguration();\n\n\n /**\n * Retrieves the list of movies from the remote data source.\n *\n * @return - the retrieved Movies in a MoviePage, null if some error is detected.\n */\n @Nullable\n MoviePage getMovies();\n\n\n /**\n * Retrieves the list of genres for movies from the remote data source.\n *\n * @return - the retrieved GenresPage from the server or null if an error is detected.\n */\n @Nullable\n GenresPage getGenres();\n}",
"public interface ServiceMessenger\n{\n\t/* public: ServiceMessager interface */\n\n\tpublic void sendEvent(Event event);\n}",
"public interface LiveChannelService {\n\n public void forbidLiveStream(LiveChannel liveChannel , Course course) throws Exception;\n\n public void resumeLiveStream(LiveChannel liveChannel , Course course) throws Exception;\n\n public LiveChannel getDefaultLiveChannel();\n\n /**\n * 取得当前课程用的直播通道\n * @param course\n * @return\n */\n public LiveChannel getCourseLiveAddr( Course course);\n\n public String getPushAddress(String originUrl, LiveChannel liveChannel , String courseId);\n\n String getPlayAddress(String roomId, String courseId, LiveChannel mainLiveChannel);\n\n /**\n * 录制\n * @param course\n * @param domain\n * @param env\n */\n public void saveRecord(Course course , String domain , String env);\n\n public ActResultDto liveNotify(String courseId , String action );\n\n /**\n * 取得课程roomToken\n * @param courseId\n * @param userId\n * @return\n */\n public Map<String , String> getRoomToken(Long courseId , Long userId) throws Exception;\n\n /**\n * 删除课程room\n * @param courseId\n * @return\n */\n public void delRoom(Long courseId ) ;\n\n public void updateConvert(String courseId);\n public void create(String courseId);\n /**\n * 判断课程下视频流在七牛上是否存在\n * @param courseId\n * @return\n */\n boolean getStreamIsExist(Long courseId);\n}",
"public ClientLoginService(){\n this(MessageConnection.CHANNEL_DEFAULT_RELIABLE);\n }",
"@Remote\npublic interface EntrepriseFacadeRemote {\n\n Entreprise create(Entreprise entreprise);\n\n Entreprise edit(Entreprise entreprise);\n\n boolean remove(Entreprise entreprise);\n\n boolean contains(Entreprise entreprise);\n \n public List<Entreprise> getEntreprises();\n}",
"public void setRemoteUser(String remoteUser) {\n this.remoteUser=remoteUser;\n }",
"public interface SubjectProvider {\n\n /** Implementer for å gi tilgang til pålogget bruker. (dette variere fra container til container). */ \n public String getUserIdentity();\n \n}",
"public interface Communicator {\n public void respond(String data);\n public void goTo(String data);\n public void createSession(String key,String Value);\n public String getSession();\n}",
"public interface IngestHandlerService extends Remote {\r\n\r\n String ingest(String xmlData, String resourceType, SecurityContext securityContext) throws EscidocException,\r\n RemoteException;\r\n\r\n String ingest(String xmlData, String resourceType, String authHandle, Boolean restAccess) throws EscidocException,\r\n RemoteException;\r\n\r\n}",
"public interface CommunityService {\n\n UserParticipationService getUserParticipationService();\n\n UserParticipationConfirmationService getUserParticipationConfirmationService();\n\n OrganizationParticipationService getOrganizationParticipationService();\n\n FeedbackService getFeedbackService();\n\n ModelService getModelService();\n\n void setModelService( ModelService modelService );\n\n Analyst getAnalyst();\n\n AbstractModelObjectDao getDao();\n\n void setPlanCommunity( PlanCommunity planCommunity );\n\n <T extends ModelObject> T find( Class<T> clazz, long id, Date dateOfRecord ) throws NotFoundException;\n\n boolean exists( Class<? extends ModelObject> clazz, Long id, Date dateOfRecord );\n\n boolean canHaveParentAgency( final String name, String parentName );\n\n List<Agency> findAncestors( String agencyName );\n\n boolean isCustodianOf( ChannelsUser user, Organization placeholder );\n\n CommunityCommitments getAllCommitments( Boolean includeToSelf );\n\n CommunityCommitments findAllCommitments( Flow flow, Boolean includeToSelf );\n\n CommunityAssignments getAllAssignments();\n\n CommunityCommitments findAllBypassCommitments( final Flow flow );\n\n void clearCache();\n\n void onDestroy();\n\n PlanCommunity getPlanCommunity();\n\n CollaborationModel getPlan();\n\n ParticipationManager getParticipationManager();\n\n UserRecordService getUserRecordService();\n\n RegisteredOrganizationService getRegisteredOrganizationService();\n\n CollaborationPlanAnalyst getCollaborationPlanAnalyst();\n\n UserUploadService getUserUploadService();\n\n Boolean isCommunityPlanner( ChannelsUser user );\n\n List<ChannelsUser> getCommunityPlanners( );\n\n List<String> getCommunityPlannerUsernames();\n\n\n /**\n * Find all user issues about a model object\n *\n * @param identifiable an object with an id\n * @return list of issues\n */\n List<UserIssue> findAllUserIssues( Identifiable identifiable );\n\n <T extends Identifiable> List<T> listKnownIdentifiables( Class<T> clazz );\n\n <T extends ModelObject> List<T> list( Class<T> clazz );\n\n <T extends ModelEntity> List<T> listActualEntities( Class<T> clazz, boolean mustBeReferenced );\n\n <T extends ModelEntity> T findOrCreate( Class<T> clazz, String name );\n\n <T extends ModelObject> T find( Class<T> clazz, long id ) throws NotFoundException;\n\n <T extends ModelEntity> T findOrCreate( Class<T> clazz, String name, long id );\n\n <T extends ModelEntity> T findOrCreateType( Class<T> clazz, String name, long id );\n\n\n void update( ModelObject mo );\n\n /**\n * Find an actual entity by given name. If none, create it for given domain,\n * renaming it to avoid conflicts if needed.\n *\n * @param clazz the kind of model object\n * @param name the name\n * @param <T> a subclass of model object\n * @return the object or null if name is null or empty\n */\n <T extends ModelEntity> T safeFindOrCreate( Class<T> clazz, String name );\n\n /**\n * Find an actual entity by given name. If none, create it for given domain,\n * renaming it to avoid conflicts if needed.\n * If id is not null, assign the entity the given id if created.\n *\n * @param clazz the kind of model object\n * @param name the name\n * @param id an id\n * @param <T> a subclass of model object\n * @return the object or null if name is null or empty\n */\n <T extends ModelEntity> T safeFindOrCreate( Class<T> clazz, String name, Long id );\n\n /**\n * List all user issues about a given model object.\n * @param modelObject a model object\n * @return a list of issues.\n */\n List<Issue> listUserIssues( ModelObject modelObject );\n\n /**\n * Persist a model object at a given id.\n * @param modelObject a model object\n * @param id an id\n */\n void add( ModelObject modelObject, Long id );\n\n /**\n * Find an entity type by name, if it exists.\n *\n * @param entityClass a model entity class\n * @param name a string\n * @param <T> a subclass of model entity\n * @return a model entity or null\n */\n <T extends ModelEntity> T findEntityType( Class<T> entityClass, String name );\n\n /**\n * Find an actual entity by name, if it exists.\n *\n * @param entityClass a model entity class\n * @param name a string\n * @param <T> a subclass of model entity\n * @return a model entity or null\n */\n <T extends ModelEntity> T findActualEntity( Class<T> entityClass, String name );\n\n /**\n * Whether the community service is for a domain community.\n * @return a boolean\n */\n boolean isForDomain();\n\n /**\n * Remove a persistent model object.\n *\n * @param object the object\n */\n void remove( ModelObject object );\n\n /**\n * Find all placeholder places not bound by the plan community.\n * @return a list of places\n */\n List<Place> findUnboundLocationPlaceholders();\n /**\n * Find all placeholder assets not bound by the plan community.\n * @return a list of assets\n */\n List<MaterialAsset> findUnboundAssetPlaceholders();\n /**\n * resolve a place to itself or its bound location if bound.\n * @param place a place\n * @return the resolved place\n */\n Place resolveLocation( Place place );\n\n /**\n * resolve an asset to itself or its bound asset if bound.\n * @param asset a material asset\n * @return the resolved asset\n */\n MaterialAsset resolveAsset( MaterialAsset asset );\n /**\n * Get the appropriate doctor.\n * @return a doctor\n */\n Doctor getDoctor();\n\n /**\n * Remove obsolete data.\n */\n void cleanUp();\n\n /**\n * Find all media for which contact info is required from the user to fulfill participation requirements.\n * @param user a Channels user\n * @return a list of transmission media\n */\n List<TransmissionMedium> findMissingContactInfoMedia( ChannelsUser user );\n\n /**\n * Make plan community url.\n * @return a string\n */\n String makePlanCommunityUrl();\n\n /**\n * Make plan community participation url.\n * @return a string\n */\n String makePlanCommunityParticipationUrl();\n\n /**\n * Follow the forwarding tree and collect al nodes.\n * @param communityAssignment the assignment to start from\n * @param asset the asset the request for which may be forwarded\n * @param assetIncoming whether the asset is being received (incoming) or delivered\n * @param allCommitments all commitments\n * @return a list oc community assignments\n */\n List<CommunityAssignment> resolveForwarding( CommunityAssignment communityAssignment,\n MaterialAsset asset,\n boolean assetIncoming,\n CommunityCommitments allCommitments );\n\n }",
"@Remote\npublic interface PaymentRemote {\n\n /**\n * API address\n */\n static final String BASE_URL = \"https://test-api.pin.net.au/1\";\n /**\n * API secret key\n */\n static final String API_KEY_SECRET = \"***REMOVED***\";\n\n /**\n *\n */\n static final String PASSWORD = \"\";\n\n /**\n * createCustomer is used to create a customer return ResponseDTO\n *\n * @param pinCustomerPost\n * @return\n */\n SerialResponse createCustomer(PinCustomerPost pinCustomerPost);\n\n /**\n * charge function is used to charge the money\n *\n * @param pinChargePost\n * @return\n */\n SerialResponse charge(PinChargePost pinChargePost);\n\n /**\n * CreateRecipient function is used to create a recipient\n *\n * @param pinRecipientPost\n * @return\n */\n SerialResponse createRecipient(PinRecipientPost pinRecipientPost);\n\n /**\n * transfer function is used to transfer the money from API owner to bank account\n *\n * @param pinTransferPost\n * @return\n */\n SerialResponse transfer(PinTransferPost pinTransferPost);\n\n /**\n * Returns the details of a recipient. Note: A bank account is inside a recipient\n *\n * @param recipientToken\n * @return\n */\n JsonObject fetchRecipient(String recipientToken);\n\n /**\n * editRecipient function is used to edit the information of the recipient\n *\n * @param recipientToken\n * @param pinRecipientPut\n * @return\n */\n SerialResponse editRecipient(String recipientToken, PinRecipientPut pinRecipientPut);\n}",
"public interface SingleAccessPoint {\t\n\t\n\t/**\n\t * This method returns some kind of message to the client, which could be anything\n\t * and needs to be implemented for the concrete accesspoint\n\t */\n\tpublic void returnMessage(String message);\n\t\n\t/**\n\t * \n\t * @param message Message to display\n\t * @return AuthenticationToken that needs to be compatible with backend.\n\t */\n\tpublic AuthenticationToken getAuthentication(String message);\n\t\n\n\t\t\n\t\n\t\n}",
"public interface Client {\n\n\t/**\n\t * Provides the ID of the current user. In case the application doesn't have\n\t * authentication, a static ID must be defined.\n\t * \n\t * @return the ID of the current user.\n\t */\n\tString getUserId();\n\n\t/**\n\t * Provides the username of the current user. In case the application\n\t * doesn't have authentication, a static ID must be defined.\n\t * \n\t * @return the username of the current user.\n\t */\n\tString getUserUsername();\n\n\t/**\n\t * Provides the password of the current user. In case the application\n\t * doesn't have authentication, a static password must be defined.\n\t * \n\t * @return the password of the current user.\n\t */\n\tString getUserPassword();\n\t\n\t/**\n\t * Provides the password hash of the current user.\n\t * \n\t * @return the password hash of the current user.\n\t */\n\tString getUserPasswordHash();\n\t\n\t/**\n\t * Sets the password hash of the current user\n\t * \n\t * @param passwordHash the password hash of the current user.\n\t */\n\tvoid setUserPasswordHash(String passwordHash);\n\n\t/**\n\t * Sets the username of the current user\n\t * \n\t * @param username the username of the current user.\n\t */\n\tvoid setUserUsername(String username);\n\n\t/**\n\t * Provides the ability to clear the user ID, username and user password.\n\t */\n\tvoid logout();\n\t\n\t/**\n\t * Provides the ability to track the current menu item.\n\t */\n\tvoid setMenuItem(MenuItem menuItem);\n\t\n\t/**\n\t * Provides the ability to track the current resource item.\n\t */\n\tvoid setResourceItem(BaseContentItem resourceItem);\n\t\n\t/**\n\t * Provides the ability to open a resource.\n\t */\n\tvoid openResource(String resourcePath);\n\t\n\t/**\n\t * Gets a value for a key on the native storage. Native storage is provided by the framework. It consists in a way to store key/value pairs. Like the HTML5 DB, this kind of storage is cleaned up automatically if the user removes the application. This storage should be used specially if you want to share data between the HTML content and native side of the application, otherwise we highly recommend use HTML5 DB. There are two ways of store data on the native storage, globally and content-specific.\n\t *\n\t * <p>\n\t * <strong>Globally</strong>\n\t * It's global on the application. The key can be retrieved from any content in any part of the system, as well as in any part of the native code. You must take care that the key can be used by other content developer. Below you can find the API calls to store and retrieve key/value pairs.\n\t * <ul>\n\t * <li>clientPlugin.getValue(MFStoreType.GLOBAL, key, callback);</li>\n\t * </ul>\n\t * </p>\n\t * <p>\n\t * <strong>Content-specific</strong>\n\t * It's connected to the current resource/menu-item. Below you can find the API calls to store and retrieve key/value pairs.\n\t * <ul>\n\t * <li>clientPlugin.getValue(MFStoreType.SPECIFIC, key, callback);</li>\n\t * </ul>\n\t * </p>\n\t * \n\t * @param type\t\tThe type of the native storage.\n\t * @param key\t\tThe key name.\n\t */\n\tString getValue(String type, String key);\n\t\n\t/**\n\t * Sets a value for a key on the native storage. Native storage is provided by the framework. It consists in a way to store key/value pairs. Like the HTML5 DB, this kind of storage is cleaned up automatically if the user removes the application. This storage should be used specially if you want to share data between the HTML content and native side of the application, otherwise we highly recommend use HTML5 DB. There are two ways of store data on the native storage, globally and content-specific.\n\t * <p>\n\t * <strong>Globally</strong>\n\t * It's global on the application. The key can be retrieved from any content in any part of the system, as well as in any part of the native code. You must take care that the key can be used by other content developer. Below you can find the API calls to store and retrieve key/value pairs.\n\t * <ul>\n\t * <li>clientPlugin.setValue(MFStoreType.GLOBAL, key, value, callback);</li>\n\t * </ul>\n\t * </p>\n\t * <p>\n\t * <strong>Content-specific</strong>\n\t * It's connected to the current resource/menu-item. Below you can find the API calls to store and retrieve key/value pairs.\n\t * <ul>\n\t * <li>clientPlugin.setValue(MFStoreType.SPECIFIC, key, value, callback);</li>\n\t * </ul>\n\t * </p>\n\t * \n\t * @param type\t\tThe type of the native storage.\n\t * @param key\t\tThe key name.\n\t * @param value\t\tThe value.\n\t */\n\tboolean setValue(String type, String key, String value);\n\n\t/**\n\t * Forces a sync. This method should be only used when user has set\n\t * {@link SyncType} to MANUAL.\n\t * \n\t */\n\tvoid sync();\n\n\t/**\n\t * Tracks the access to the current object. The time spent on this object is\n\t * calculated between calls to this method.\n\t * \n\t * @param sender\t\t\tThe sender. This will be 'mf' for internal mobile framework calls. It's a string value.\n\t * @param additionalInfo \tOptional additional information. This information must be used by content developers to track internal pages.\n\t */\n\tvoid track(String sender, String additionalInfo);\n\t\n\t/**\n\t * Tracks some information.\n\t * \n\t * @param sender\t\t\tThe sender. This will be 'mf' for internal mobile framework calls. It's a string value.\n\t * @param objectId\t\t\tObjectId.\n\t * @param additionalInfo \tOptional additional information. This information must be used by content developers to track internal pages.\n\t */\n\tvoid track(String sender, String objectId, String additionalInfo);\n\n\t/**\n\t * Provides the list of all available packages, installed or not.\n\t * \n\t * @param callback\n\t * the list of all available packages.\n\t */\n\tvoid getPackageCatalogue(PackageCatalogueRetrieved callback);\n\t\n\t/**\n\t * Retrieves the local path root for a particular course.\n\t * \n\t * @param courseId\t\t\tThe course id.\n\t * @param phoneGapCallback\tThe PhoneGap callback.\n\t * @param callback\t\t\tThe callback function. \n\t */\n\tvoid getCourseLocalPathRoot(String courseId, String phoneGapCallback, GetCourseLocalPathRootCompleted callback);\n\t\n\t/**\n\t * Retrieves the local path root for the currently opened course.\n\t * \n\t * @param phoneGapCallback\tThe PhoneGap callback.\n\t * @param callback\t\t\tThe callback function. \n\t */\n\tvoid getCurrentCourseLocalPathRoot(String phoneGapCallback, GetCourseLocalPathRootCompleted callback);\n\t\n\t/**\n\t * Initialises a temporary folder for the currently opened course.\n\t * If the folder already exists, the folder will be cleared. If it does not exist, it will be created.\n\t * \n\t * Callback will return a JSON object with the following key and value pairs:\n\t * \ttempFolderPath\tThe full local path to the temporary folder in the course directory. E.g. /mnt/sdcard/.../{uniqueCourseFolderId}/temp\n\t * \n\t * Error callback will return a JSON object with the following key and value pairs:\n\t * error\t\t\tAn error string to determine why the native method call failed.\n\t * \n\t * @param phoneGapCallback\tThe PhoneGap callback.\n\t * @param callback\t\t\tThe callback function. \n\t */\n\tvoid initialiseCurrentCourseLocalTempFolder(String phoneGapCallback, InitialiseCurrentCourseLocalTempFolderCompleted callback);\n\t\n\t/**\n\t * Clears the temporary folder for the currently opened course.\n\t * If the folder exists, the folder will be cleared and removed. If the folder does not exist, an error will occur.\n\t * \n\t * Callback will not return a value and will be invoked when the operation has finished.\n\t * \n\t * Error callback will return a JSON object with the following key and value pairs:\n\t * error\t\t\tAn error string to determine why the native method call failed.\n\t * \n\t * @param phoneGapCallback\tThe PhoneGap callback.\n\t * @param callback\t\t\tThe callback function.\n\t */\n\tvoid clearCurrentCourseLocalTempFolder(String phoneGapCallback, PhoneGapOperationNoResultCompleted callback);\n}",
"@RemoteServiceRelativePath(\"news\")\npublic interface NewsService extends RemoteService {\n ArrayList<News> getNews(int number) throws IllegalArgumentException;\n}",
"public interface MessageListService {\n\n List<Conversation> getUserConversations(String uuid);\n}",
"public interface SysPermissionService {\n}",
"public interface ChatService {\n public Object requestRongToken(Member member) throws Exception;\n}",
"public interface MnemeService\n{\n\t/** The type string for this application: should not change over time as it may be stored in various parts of persistent entities. */\n\tstatic final String APPLICATION_ID = \"sakai:mneme\";\n\n\t/** Event tracking event for deleting an assessment. */\n\tstatic final String ASSESSMENT_DELETE = \"mneme.assessment.delete\";\n\n\t/** Event tracking event for changing an assessment. */\n\tstatic final String ASSESSMENT_EDIT = \"mneme.assessment.edit\";\n\n\t/** Event tracking event for creating an assessment. */\n\tstatic final String ASSESSMENT_NEW = \"mneme.assessment.new\";\n\n\t/** Event tracking event for publishing an assessment. */\n\tstatic final String ASSESSMENT_PUBLISH = \"mneme.assessment.publish\";\n\n\t/** The sub-type for assessment in references (/mneme/assessment/...) */\n\tstatic final String ASSESSMENT_TYPE = \"assessment\";\n\n\t/** Event tracking event for un-publishing an assessment. */\n\tstatic final String ASSESSMENT_UNPUBLISH = \"mneme.assessment.unpublish\";\n\n\t/** The security function used to check if users can setup a formal course evaluation. */\n\tstatic final String COURSE_EVAL_PERMISSION = \"mneme.course.eval\";\n\n\t/** Event tracking event for download submissions for question. */\n\tstatic final String DOWNLOAD_SQ = \"mneme.download.sq\";\n\n\t/** The number of ms we allow answers and completions of submissions after hard deadlines. */\n\tstatic final long GRACE = 2 * 60 * 1000;\n\n\t/** The security function used to check if users can grade tests. */\n\tstatic final String GRADE_PERMISSION = \"mneme.grade\";\n\n\t/** The security function used to check if users have guest access. */\n\tstatic final String GUEST_PERMISSION = \"mneme.guest\";\n\n\t/** The security function used to check if users can manage tests. */\n\tstatic final String MANAGE_PERMISSION = \"mneme.manage\";\n\n\t/** Event tracking event for deleting a pool. */\n\tstatic final String POOL_DELETE = \"mneme.pool.delete\";\n\n\t/** Event tracking event for changing a pool. */\n\tstatic final String POOL_EDIT = \"mneme.pool.edit\";\n\n\t/** Event tracking event for creating a pool. */\n\tstatic final String POOL_NEW = \"mneme.pool.new\";\n\n\t/** The sub-type for pool in references (/mneme/pool/...) */\n\tstatic final String POOL_TYPE = \"pool\";\n\n\t/** Event tracking event for deleting a question. */\n\tstatic final String QUESTION_DELETE = \"mneme.question.delete\";\n\n\t/** Event tracking event for changing a question. */\n\tstatic final String QUESTION_EDIT = \"mneme.question.edit\";\n\n\t/** Event tracking event for creating a question. */\n\tstatic final String QUESTION_NEW = \"mneme.question.new\";\n\n\t/** The sub-type for question in references (/mneme/question/...) */\n\tstatic final String QUESTION_TYPE = \"question\";\n\n\t/** This string starts the references to resources in this service. */\n\tstatic final String REFERENCE_ROOT = \"/mneme\";\n\n\t/** Event tracking event for adding a submission. */\n\tstatic final String SUBMISSION_ADD = \"mneme.submit\";\n\n\t/** Event tracking event for answering a question in a submission. */\n\tstatic final String SUBMISSION_ANSWER = \"mneme.answer\";\n\n\t/** Event tracking event for the system automatically completing a submission. */\n\tstatic final String SUBMISSION_AUTO_COMPLETE = \"mneme.auto_complete\";\n\n\t/** Event tracking event for completing a submission. */\n\tstatic final String SUBMISSION_COMPLETE = \"mneme.complete\";\n\n\t/** Event tracking event for re-entering a submission. */\n\tstatic final String SUBMISSION_CONTINUE = \"mneme.continue\";\n\n\t/** Event tracking event for entering a submission. */\n\tstatic final String SUBMISSION_ENTER = \"mneme.enter\";\n\n\t/** Event tracking event for grading a submission. */\n\tstatic final String SUBMISSION_GRADE = \"mneme.grade\";\n\n\t/** Event tracking event for reviewing a submission. */\n\tstatic final String SUBMISSION_REVIEW = \"mneme.review\";\n\n\t/** The sub-type for submissions in references (/mneme/submission/...) */\n\tstatic final String SUBMISSION_TYPE = \"submission\";\n\n\t/** The security function used to check if users can submit to an assessment. */\n\tstatic final String SUBMIT_PERMISSION = \"mneme.submit\";\n\n\t/**\n\t * Find a question plugin for this question type.\n\t * \n\t * @param type\n\t * The question type.\n\t * @return The question plugin for this question type, or null if none found.\n\t */\n\tQuestionPlugin getQuestionPlugin(String type);\n\n\t/**\n\t * Access all the quesiton plugins, sorted by the (localized) type name.\n\t * \n\t * @return A List of all the quesiton plugins, sorted by the (localized) type name.\n\t */\n\tList<QuestionPlugin> getQuestionPlugins();\n\n\t/**\n\t * Register a question plugin.\n\t * \n\t * @param plugin\n\t * The question plugin.\n\t */\n\tvoid registerQuestionPlugin(QuestionPlugin plugin);\n}",
"public interface IAfiliacionServiceBean {\n PeticionRespuesta callRemoteService(PeticionRespuesta peticionRespuesta) throws IsspolException;\n}",
"public interface MnsService {\n\n void init();\n\n String pop();\n\n boolean sendMsg(BaseConsumer.Message entity);\n\n String getTopicName();\n\n void destroy();\n}",
"@Override\n\t\tpublic String getRemoteUser() {\n\t\t\treturn null;\n\t\t}",
"public interface ChannelServiceI {\r\n Channel createChannel(Channel channel);\r\n\r\n int updateChannelUser(int id);\r\n\r\n int minusChannelUser(int id);\r\n\r\n List<Channel> getChannelPage(Channel channel);\r\n\r\n int count();\r\n\r\n Channel getChannel(String channelToken);\r\n\r\n List<Channel> getUserChannel(Channel channel);\r\n\r\n int deleteUser(Integer id);\r\n\r\n List<Channel> getUserChannelTotal(Channel channel);\r\n\r\n int updateChannel(Channel channel);\r\n}",
"public interface NotificationProxy extends Remote {\n \n /**\n * Registers the calling client, allocating an auto-generate clientId through which \n * this server will reach the client in the future. \n * @param clientSocket \n * @return clientId - the auto-generated client id\n * @throws java.rmi.RemoteException\n */\n public String registerClient(String clientSocket) throws RemoteException;\n \n /**\n * Unregisters the client identified by the given client id\n * @param clientId \n * @throws java.rmi.RemoteException \n */\n public void unregisterClient(String clientId) throws RemoteException;\n \n \n /**\n * Subscribe the client to the specified topic.\n * If the topic does not exist, a new one is create\n * @param name the name of the topic\n * @param clientId\n * @throws Exception\n * @throws java.rmi.RemoteException\n */\n public void subscribe(String name, String clientId) throws Exception, RemoteException;\n \n /**\n * Unsubscribe the client from the specified topic.\n * If the topic does not exists, nothing happens\n * @param name the name of the topic\n * @param clientId\n * @throws java.rmi.RemoteException\n */\n public void unsubscribe(String name, String clientId) throws RemoteException;\n \n /**\n * Deletes the specified topic, without notifying the subscribers \n * that they were unsubscribed\n * @param nume the name of the topic\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException - if the topic does not exist\n */\n public void deleteTopic(String nume) throws RemoteException;\n \n /**\n * Deletes the specified topic, and may be notifying all the subscribers \n * that they were unsubscribed\n * @param nume the name of the topic\n * @param notifySubscribers\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException - if the topic does not exist\n */\n public void deleteTopic(String nume, boolean notifySubscribers) throws RemoteException;\n \n /**\n * Deletes the specified topic, notifying all the subscribers with the specified data\n * that they were unsubscribed\n * @param nume the name of the topic\n * @param data data for the subscribers\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException - if the topic does not exist\n */\n public void deleteTopic(String nume, Object data) throws RemoteException;\n \n /**\n * Notifies all the subscribers of this topic that something happened\n * @param name - the name of the topic\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException\n */\n public void notifyTopic(String name) throws RemoteException;\n \n /**\n * Send this data to all subscribers of specified topic\n * @param data - the data to be sent to the listeners\n * @param name - the name of the topic\n * @throws java.rmi.RemoteException\n * @throws TopicDoesNotExistException\n */\n public void dataNotifyTopic(Object data, String name) throws RemoteException;\n \n /**\n * Tests if the specified topic exists\n * @param topicName - the name of the topic\n * @return true - if the topic exists, false otherwise\n * @throws java.rmi.RemoteException\n */\n public boolean exists(String topicName) throws RemoteException;\n \n /**\n * \n * @param name - the name of the topic\n * @return the subscribers count of the specified topic\n * @throws java.rmi.RemoteException\n */\n public int getSubscribersCount(String name) throws RemoteException;\n \n}",
"public interface IMaintenanceEngineerService {\n\n void post(MaintenanceEngineerPayload payload, IErrorCallback callback);\n\n void get(Long id, IErrorCallback errorCallback);\n}",
"public interface GrabTicketQueryService {\n\n\n /**\n * 抢票查询\n * @param method\n * @param train_date\n * @param from_station\n * @param to_station\n * @return\n */\n JSONObject grabTicketQuery(String uid, String partnerid, String method, String from_station, String to_station, String from_station_name, String to_station_name, String train_date, String purpose_codes);\n// JSONObject grabTicketQuery(String partnerid, String method, String from_station, String to_station, String train_date, String purpose_codes);\n}",
"public interface IHouseVideoRealtimeService {\r\n /**\r\n * 直播列表\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveList(String params) throws Exception;\r\n\r\n /**\r\n * 直播添加\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveCreate(String params) throws Exception;\r\n\r\n /**\r\n * 直播详情\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveDetail(String params)throws Exception;\r\n\r\n /**\r\n * 直播修改\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveUpdate(String params) throws Exception;\r\n\r\n /**\r\n * 直播删除\r\n * @param params\r\n * @return\r\n * @throws Exception\r\n */\r\n String liveDelete(String params) throws Exception;\r\n}",
"@RemoteServiceRelativePath(\"updateAgreementSiteNote\")\npublic interface UpdateAgreementSiteNoteService extends RemoteService {\n\tUpdateResponse<AgreementSiteInstance> updateAgreementSiteNote(AgreementSiteInstance instance) throws IllegalArgumentException;\n}",
"@RemoteServiceRelativePath(\"UserRemote\")\r\npublic interface UserRemote extends RemoteService\r\n{\r\n\t/**\r\n\t * Utility class for simplifing access to the instance of async service.\r\n\t */\r\n\tpublic static class Util {\r\n\t\tprivate static UserRemoteAsync instance;\r\n\t\tpublic static UserRemoteAsync getInstance(){\r\n\t\t\tif (instance == null) {\r\n\t\t\t\tinstance = (UserRemoteAsync) GWT.create(UserRemote.class);\r\n\t\t\t}\r\n\t\t\treturn instance;\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * load the user (without message from its login)\r\n\t */\r\n\tpublic User loadUserByLogin(String login);\r\n\t\r\n\t/**\r\n * Save the argument user\r\n * @param user the user to save or create\r\n * @return the created user\r\n */\r\n\tpublic User saveUser(User user);\r\n\t\r\n}",
"public interface NewPrivateMessageHandler {\n void onNewPrivateMessage(String sessionId, Comment privateMessage);\n}",
"public interface Process extends Remote {\n\t\n\t/**\n\t * This method tells if the process is alive and can participate in leader election.\n\t * @return\n\t * @throws RemoteException\n\t */\n\tpublic boolean isAlive() throws RemoteException;\n\t\n\t/**\n\t * This method tells if the process in a leader in distributed environment.\n\t * @return\n\t * @throws RemoteException\n\t */\n\tpublic boolean isLeader() throws RemoteException;\n\t\n\t/**\n\t * This method gets the logical clock value (random) for this process.\n\t * @return\n\t * @throws RemoteException\n\t */\n\tpublic int getLogicalClock() throws RemoteException;\n\t\n\t/**\n\t * This method gets the process name, given during initialization.\n\t * @return\n\t * @throws RemoteException\n\t */\n\tpublic String getProcessName() throws RemoteException;\n\t\n\t/**\n\t * This method gets called in election to compare the logical clock values.\n\t * @param message\n\t * @return\n\t * @throws RemoteException\n\t */\n\tpublic boolean inquiry(Message message) throws RemoteException;\n\t\n\t/**\n\t * This method is called to announce victory after the election.\n\t * @param message\n\t * @return\n\t * @throws RemoteException\n\t */\n\tpublic boolean victory(Message message) throws RemoteException;\n\n}",
"@Remote\r\npublic interface PrioriteDAORemote\r\n extends PrioriteDAO\r\n{\r\n\r\n\r\n}",
"public interface IChatNotificationService {\n void userLoggedIn(User user);\n void userLoggedOut(User user);\n void newMessage(Message message);\n}",
"@Override\n\tpublic boolean isRemote() {\n\t\treturn remote;\n\t}",
"public interface PlayerServer extends Server {\n\n /**\n * Upload a critter to the server.\n *\n * @param critterFileContent The string content of the critter definition\n * file.\n * @returns the name of the critter on the server, as it would be used in a\n * world definition\n * @throws RemoteException\n */\n @RemoteVisibility(Permission.USER)\n public String uploadCritter(byte []token, String uname, String critterFileContent) throws RemoteException;\n}"
] | [
"0.57463074",
"0.57133484",
"0.57045436",
"0.56824183",
"0.5631137",
"0.56110835",
"0.55472654",
"0.5504452",
"0.5464434",
"0.54596716",
"0.544885",
"0.54470414",
"0.5374772",
"0.5366038",
"0.5365301",
"0.53328174",
"0.52972966",
"0.5295797",
"0.5275198",
"0.52467376",
"0.52353066",
"0.5225957",
"0.5205036",
"0.519145",
"0.5181036",
"0.51721126",
"0.51687133",
"0.5160324",
"0.5156758",
"0.51270586",
"0.5115101",
"0.5096392",
"0.5093192",
"0.50900656",
"0.508643",
"0.507928",
"0.50678825",
"0.5059313",
"0.50585",
"0.50488186",
"0.50448275",
"0.5041806",
"0.50298584",
"0.50252527",
"0.50242287",
"0.5014528",
"0.50138426",
"0.5013832",
"0.5003909",
"0.5000632",
"0.49971023",
"0.49964002",
"0.49898857",
"0.49879652",
"0.49855396",
"0.4984138",
"0.49811015",
"0.4979991",
"0.49769238",
"0.49762398",
"0.49701914",
"0.49422637",
"0.49285033",
"0.49282655",
"0.49274492",
"0.49201232",
"0.4915325",
"0.49150217",
"0.49117577",
"0.490451",
"0.49006575",
"0.48935494",
"0.48923337",
"0.48895496",
"0.48884267",
"0.48838764",
"0.4881411",
"0.48748767",
"0.48697823",
"0.4863546",
"0.48610067",
"0.4852225",
"0.4846069",
"0.4845441",
"0.48396274",
"0.48387992",
"0.48290735",
"0.48262212",
"0.48210108",
"0.48198193",
"0.4814874",
"0.48139617",
"0.48086277",
"0.48065814",
"0.48007938",
"0.47874126",
"0.4769875",
"0.4769194",
"0.47681525",
"0.47649798"
] | 0.7054812 | 0 |
Main entry point method. Will start application. | public static void main(String[] args) throws FrameworkException
{
int port = 1234; // Default application port
if (args.length > 0) {
port = Integer.parseInt(args[0]);
}
start(port);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n startApplication();\n }",
"public static void main(String arg[]) {\n\n\t\tUtility.runApplication();\n\t}",
"public static void main(String[] args) {\n\t\trunApplication();\n\t}",
"public static void main(final String... args) {\n\n Application.launch();\n }",
"public static void main(String[] args) {\n Startup.main(args);\n }",
"public static void main( String[] args )\n\t{\n\t\trunApp();\n\t}",
"public static void main(String args[]){\n\n createConnection();\n\n if (conn == null) {\n System.err.println(\"Failed to establish connection!\");\n }\n\n new App();\n\n }",
"public static void main(String[] args) {\r\n SunSpotHostApplication app = new SunSpotHostApplication();\r\n app.run();\r\n }",
"public static void main(String[] args) {\n new MyApp();\n }",
"public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }",
"public static void main(String[] args) {\n\t\tnew LoipeApp();\n\t}",
"public static void main(String[] args) {\r\n\t\t/* application object */\r\n\t\tCustomersApp myAp = new CustomersApp();\r\n\t\t/* run the application */\r\n\t\tmyAp.run();\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\n Application.launch(args);\n }",
"public static void main(String[] args) {\n Application.launch(args);\n }",
"public static void main(String[] args) {\n\t\tnew App();\r\n\t}",
"public static void main(String[] args) {\n // Configure MongoDB and Morphia\n \n \n // Define route handlers\n get(\"/\", PersonController.sayHello);\n }",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"public static void main(String[] args)\n { \n // Create a new instance of the application and make the currently\n \tEntryPoint theApp = new EntryPoint(); \n \t// running thread the application's event dispatch thread.\n theApp.enterEventDispatcher();\n }",
"public static void main(String[] args)\n {\n Injector guice = Guice.createInjector(new DiscountGuiceModule());\n\n // Inject the application which contains a separate object graph which contains all the business logic\n // When we call the top level class, BasicApplication, guice will inject every static dependency that we request\n // via @Inject\n BasicApplication basicApplication = guice.getInstance(BasicApplication.class);\n\n // now start the application\n basicApplication.start();\n }",
"public static void main(String[] args) {\n SimpleUserInterface app = new SimpleUserInterface();\n app.start();\n }",
"public static void main (String[] args) {\n launch(args);\n }",
"public static void main(String[] args) {\n\t\tApplication.launch(args); // Not needed for running from the command line\n\t}",
"public static void main(String[] args) {\n App.main(args);\n }",
"public static void main(String[] args) {\r\n \t\r\n // Creates new controller named the main controller\r\n GlobalResources.MainControl = new Control();\r\n // Starts main application\r\n GlobalResources.MainControl.StartApplication();\r\n }",
"public static void main(String args[])\r\n\t{\r\n\t\tstart();\r\n\t}",
"public static void main (String [] args) throws IOException {\n\t\tlogger.info(\"This is Team 18's Weather App - starting...\");\n\n\t\t// data\n\t\tlogger.info(\"Initializing weather data components\");\n\t\tLocalWeatherData localData = new LocalWeatherData();\n\t\tShortTermData shortTermData = new ShortTermData();\n\t\tDataRequester dataRequester = new DataRequester(localData,shortTermData);\n\t\tlogger.info(\"End of weather data components\");\n\n\t\tRefreshButton refreshButton = new RefreshButton(dataRequester);\n\n\t\t// views\n\t\tlogger.info(\"Initializing weather views/tabs\");\n\t\tLocalWeatherView localView = new LocalWeatherView(localData, refreshButton);\n\t\tShortTermView shortView = new ShortTermView(shortTermData);\n\t\tSelectionPage selectionPage = new SelectionPage(localView, shortView, dataRequester);\n\t\tlogger.info(\"End of views\");\n\n\t\t// place views into tabs\n\t\tlogger.info(\"Putting views into tabs\");\n\t\tTabbedViews tabs = new TabbedViews(selectionPage, localView, shortView);\n\n\t\t//main window/frame\n\t\tlogger.info(\"Initializing main JFrame with tabbed view\");\n\t\tJFrame mainFrame = new JFrame(\"Team18 Weather\");\n\t\tmainFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tmainFrame.setBackground(Color.WHITE);\n\t\tmainFrame.setSize(600, 450);\n\t\tmainFrame.add(tabs, BorderLayout.CENTER);\n\t\tmainFrame.setVisible(true);\n\t\tlogger.info(\"Main window created\");\n\t}",
"public void startApp()\r\n\t{\n\t}",
"public static void main(String[] args) {\n new GraphicStudyApp();\n }",
"public static void main(String[] args) {\n\t\tHelloWorld.init();\n\t}",
"public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }",
"public static void main(String[] args) throws Exception {\n\n Application.launch(sample.Main.class, args);\n }",
"public static void main(String... args) {\n doMain().run();\n }",
"public static void main(String[] args) {\n //launch it\n launch();\n }",
"public static void main(String[] args)\n {\n\n DemoCliApp demo = new DemoCliApp();\n demo.run();\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() {\n \n }",
"public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }",
"public static void main(String[] args) {\n DatabaseController.login();\r\n\r\n //Log in to email\r\n Email.login();\r\n\r\n //Update local database - in real deployment this would run twice per day, not every startup\r\n SyncMain.main(new String[]{});\r\n\r\n //Load cached data\r\n CSVController.loadFiles();\r\n\r\n //Start GUI\r\n launch(args);\r\n\r\n }",
"public static void main(String[] args){\n try {\n GameClient.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n Application.launch(App.class, args);\n }",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}",
"public static void main(final String[] args) throws Exception {\n new ApiApplication().run(args);\n }",
"public static void main(String[] args){\r\n\t\tstart();\r\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}",
"public static void main(String[] args) {\n launch(args);\r\n \r\n }",
"public static void main (String[] arg) {\n\n\n\n\t\tLwjglApplicationConfiguration config = new LwjglApplicationConfiguration();\n\t\tnew LwjglApplication(new RogueStarClient(), config);\n\t}",
"public static void main(String[] args){\n // app.run(args);\r\n new SpringApplicationBuilder(MainApplication.class).web(true).run(args);\r\n }",
"public static void main ( String[] args ) {\n PhoneBook myApp = new PhoneBook(); \r\n }",
"public static void main(String[] args) {\n // This is how a javafx class is run.\n // This will cause the start method to run.\n // You don't need to change main.\n launch(args);\n }",
"public static void main(java.lang.String[] args)\r\n {\r\n // Insert code to start the application here.\r\n WatchListTableModule demo = new WatchListTableModule(null);\r\n demo.mainImpl();\r\n }",
"public static void main(String[] args) {\n\n\t\t//Start Elasticsearch\n\t\tstartConnect();\n\n\t\tSpringApplication.run(KnowledgeHubApplication.class, args);\n\n\t}",
"public static void main(String[] args) {\n if (Config.Api.URL.contains(\"localhost\")) {\n Server.main(new String[0]);\n }\n Lwjgl3ApplicationConfiguration config = new Lwjgl3ApplicationConfiguration();\n config.setTitle(Config.Game.TITLE);\n config.setWindowedMode(Config.Game.WIDTH, Config.Game.HEIGHT);\n config.setWindowIcon(Config.Game.ICON);\n config.setResizable(false);\n new Lwjgl3Application(new BubbleSpinner(), config);\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) {\n launch(args);\n\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 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 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 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 AuctionApp() {\r\n runAuctionApp();\r\n }",
"public static void main(String[] args) throws Exception {\n Application app = new Application();\r\n\r\n // Plug the server resource.\r\n app.setInboundRoot(HelloServerResource.class);\r\n\r\n // Instantiating the HTTP server and listening on port 8111\r\n new Server(Protocol.HTTP, 8111, app).start();\r\n }",
"public static void main(String[] args) {\n\n launch(args);\n }",
"public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}",
"public static void main(String[] args) {\r\n\r\n\t\tStartFrame.getInstance().showFrame();\r\n\t\tlogr.info(\"starting\");\r\n\r\n\t}",
"public static void main(String[] args)\n {\n new StartMain(args).go();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tApplication.launch(args);\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\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 launch(args);\r\n }",
"public static void main(String[] args) {\n WeatherApplication gui = new WeatherApplication( );\n \n // make window visible\n gui.setVisible( true );\n \n }",
"public static void main(String[] args) {\r\n new MAth().start(args);\r\n\r\n \r\n // TODO code application logic here\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 launch(args);\n }"
] | [
"0.74179363",
"0.7116715",
"0.7105455",
"0.6869621",
"0.68419385",
"0.68213487",
"0.6818836",
"0.6768056",
"0.67474604",
"0.67416364",
"0.67238903",
"0.6710905",
"0.67097425",
"0.6686813",
"0.6676405",
"0.6658963",
"0.6646482",
"0.664209",
"0.6639221",
"0.66359824",
"0.66244847",
"0.6624099",
"0.66103184",
"0.6610303",
"0.66078424",
"0.6605006",
"0.65992206",
"0.6584929",
"0.6563764",
"0.6557101",
"0.6556864",
"0.65560156",
"0.6552886",
"0.6538198",
"0.65331787",
"0.6530216",
"0.6526077",
"0.6516676",
"0.65154886",
"0.65081567",
"0.650392",
"0.65000075",
"0.6498192",
"0.6486376",
"0.6486376",
"0.6482927",
"0.648214",
"0.6480579",
"0.6479034",
"0.64767104",
"0.64708817",
"0.64700836",
"0.64550996",
"0.6453344",
"0.6453344",
"0.64469135",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.64429307",
"0.6437138",
"0.6434785",
"0.6430627",
"0.64256406",
"0.64235216",
"0.6423285",
"0.6419553",
"0.6418429",
"0.64182687",
"0.64182687",
"0.64182687",
"0.6414587",
"0.6414449",
"0.64057046",
"0.64057046",
"0.64057046",
"0.64057046",
"0.64057046",
"0.64057046"
] | 0.6572601 | 28 |
Initialise system components, start application. | public static Kernel start(int port)
{
Kernel app = Kernel.newInstance();
Container container = app.getContainer();
// Forms
container.add(new ServiceDefinition<>(AnnualReviewType.class));
container.add(new ServiceDefinition<>(UserType.class));
// Managers
container.add(new ServiceDefinition<>(AccessDecisionManager.class, YuconzAccessDecisionManager.class));
container.add(new ServiceDefinition<>(YuconzAuthenticationManager.class));
container.add(new ServiceDefinition<>(Hibernate.class));
container.add(new ServiceDefinition<>(LogManager.class))
.addMethodCallDefinitions(new MethodCallDefinition(
"setAuthenticationManager",
new ServiceReference<>(YuconzAuthenticationManager.class)
));
container.add(new ServiceDefinition<>(RecordManager.class));
container.add(new ServiceDefinition<>(AnnualReviewManager.class));
container.add(new ServiceDefinition<>(FormManager.class));
container.add(new ServiceDefinition<>(AuthorisationManager.class))
.addMethodCallDefinitions(new MethodCallDefinition(
"setAuthenticationManager",
new ServiceReference<>(YuconzAuthenticationManager.class)
));
// Resolvers
container.add(new ServiceDefinition<>(UserResolver.class));
container.add(new ServiceDefinition<>(RecordResolver.class));
// JTwig Functions
container.add(new ServiceDefinition<>(CurrentUserFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(CurrentRoleFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(FormRenderFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(FormStartRenderFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(FormEndRenderFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(ActivePageFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(IsGrantedFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(RangeFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(ServiceFunction.class)).addTag("jtwig.function");
container.add(new ServiceDefinition<>(LocalDateFunction.class)).addTag("jtwig.function");
// Voters
container.add(new ServiceDefinition<>(PersonalDetailsVoter.class)).addTag("authentication.voter");
container.add(new ServiceDefinition<>(RecordVoter.class)).addTag("authentication.voter");
container.add(new ServiceDefinition<>(AnnualReviewVoter.class)).addTag("authentication.voter");
container.add(new ServiceDefinition<>(AuthorisationVoter.class)).addTag("authentication.voter");
container.getServiceDefinition(FrameworkServer.class).setConfigurationReference(new PlainReference<>(new Configuration()
{
@Override
public int getPort()
{
return port;
}
}));
app.boot();
Router router = container.get(Router.class);
// Records
router.registerController(AppController.class);
router.registerController(StaticController.class);
router.registerController(AuthenticationController.class);
router.registerController(DashboardController.class);
router.registerController(EmployeesController.class);
router.registerController(RecordController.class);
router.registerController(AnnualReviewController.class);
FormManager formManager = container.get(FormManager.class);
formManager.getRenderers().removeIf(r -> r.getClass().equals(ChoiceRenderer.class));
formManager.addRenderer(CustomChoiceRenderer.class);
formManager.addRenderer(DateRenderer.class);
app.start();
return app;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startUp() {\n\t\t/* Language of App */\n\t\t\n\t\t/* Init Icons */\n\t\tPaintShop.initIcons(display);\n\t\t/* Init all components */\n\t\tinitComponents();\n\t\t\n\t\t\n\t}",
"@Override\n protected final void startApplication() throws Exception {\n if (!checkSimulationDirectory()) {\n // There is no path and it is either not possible to set a path or the user aborted the corresponding dialog.\n System.exit(0);\n }\n \n MessageDialog.getInstance();\n \n try {\n SwingUtilities.invokeAndWait(() -> {\n try{\n initializeComponentContainer();\n } catch(Exception e){\n MessageDialog.getInstance().message(\"Exception while initializing component container: \" + e.getMessage());\n }\n });\n } catch (InterruptedException | InvocationTargetException e) {\n throw new Exception(\"Exception during startup.\", e);\n }\n createMainClass();\n }",
"protected void initApplication() throws Exception {\r\n\t\tthis.updateDynamicWelcomeText(\"Initializing application subsystem...\");\r\n\r\n\t\t// default (true) is that ImageIO caches images to disk when they are\r\n\t\t// read!\r\n\t\tImageIO.setUseCache(false);\r\n\r\n\t\t// Use of MediaLib acceleration or not\r\n\t\t// JAI 1.1.3 native acceleration problems:\r\n\t\t// SubSampleAverage: sometimes black lines around tiles (Pyramid\r\n\t\t// Dimension)\r\n\t\tSystem.setProperty(\"com.sun.media.jai.disableMediaLib\", \"true\");\r\n\r\n\t\t// initialize all IQM user operators for JAI\r\n\t\tCommonTools.setDefaultToolTipDelays();\r\n\r\n\t\t// initialize the factories, registries and dynamic menus\r\n\t\tTaskFactory.getInstance();\r\n\t\tPluginRegistry.getInstance();\r\n\t\tOperatorRegistry.getInstance();\r\n\t\tPluginMenu.getInstance();\r\n\t\t// initialize the Groovy script engine\r\n\r\n\t\t// initialize the workflow control classes\r\n\t\tTank.getInstance();\r\n\t\tManager.getInstance();\r\n\t\tLook.getInstance();\r\n\t\tPlot.getInstance();\r\n\t\tTable.getInstance();\r\n\t\tText.getInstance();\r\n\r\n\t\t// register other singletons\r\n\t\tDialogUtil.getInstance();\r\n\r\n\t\t// register all standard operators\r\n\t\tOperatorRegistryHelper.registerImageOperators();\r\n\t\tOperatorRegistryHelper.registerPlotOperators();\r\n\r\n\t\t// initialize the custom cursors\r\n\t\tCursorFactory.initializeCustomCursors();\r\n\r\n\t\t// register the plugins\r\n\t\tthis.loadPlugins();\r\n\r\n\t\t// TileCache Memory, etc..\r\n\t\tthis.setJAIDefaultOptions();\r\n\t}",
"public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }",
"private void startBootstrapServices() {\n traceBeginAndSlog(\"StartWatchdog\");\n Watchdog watchdog = Watchdog.getInstance();\n watchdog.start();\n traceEnd();\n if (MAPLE_ENABLE) {\n this.mPrimaryZygotePreload = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$UyrPns7R814gZEylCbDKhe8It4.INSTANCE, \"PrimaryZygotePreload\");\n }\n Slog.i(TAG, \"Reading configuration...\");\n traceBeginAndSlog(\"ReadingSystemConfig\");\n SystemServerInitThreadPool.get().submit($$Lambda$YWiwiKm_Qgqb55C6tTuq_n2JzdY.INSTANCE, \"ReadingSystemConfig\");\n traceEnd();\n traceBeginAndSlog(\"StartInstaller\");\n this.installer = (Installer) this.mSystemServiceManager.startService(Installer.class);\n traceEnd();\n traceBeginAndSlog(\"DeviceIdentifiersPolicyService\");\n this.mSystemServiceManager.startService(DeviceIdentifiersPolicyService.class);\n traceEnd();\n traceBeginAndSlog(\"UriGrantsManagerService\");\n this.mSystemServiceManager.startService(UriGrantsManagerService.Lifecycle.class);\n traceEnd();\n traceBeginAndSlog(\"StartActivityManager\");\n ActivityTaskManagerService atm = this.mSystemServiceManager.startService(ActivityTaskManagerService.Lifecycle.class).getService();\n this.mActivityManagerService = ActivityManagerService.Lifecycle.startService(this.mSystemServiceManager, atm);\n this.mActivityManagerService.setSystemServiceManager(this.mSystemServiceManager);\n this.mActivityManagerService.setInstaller(this.installer);\n this.mWindowManagerGlobalLock = atm.getGlobalLock();\n traceEnd();\n traceBeginAndSlog(\"StartPowerManager\");\n try {\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(\"com.android.server.power.HwPowerManagerService\");\n } catch (RuntimeException e) {\n Slog.w(TAG, \"create HwPowerManagerService failed\");\n this.mPowerManagerService = (PowerManagerService) this.mSystemServiceManager.startService(PowerManagerService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartThermalManager\");\n this.mSystemServiceManager.startService(ThermalManagerService.class);\n traceEnd();\n try {\n Slog.i(TAG, \"PG Manager service\");\n this.mPGManagerService = PGManagerService.getInstance(this.mSystemContext);\n } catch (Throwable e2) {\n reportWtf(\"PG Manager service\", e2);\n }\n traceBeginAndSlog(\"InitPowerManagement\");\n this.mActivityManagerService.initPowerManagement();\n traceEnd();\n traceBeginAndSlog(\"StartRecoverySystemService\");\n this.mSystemServiceManager.startService(RecoverySystemService.class);\n traceEnd();\n RescueParty.noteBoot(this.mSystemContext);\n traceBeginAndSlog(\"StartLightsService\");\n try {\n this.mSystemServiceManager.startService(\"com.android.server.lights.LightsServiceBridge\");\n } catch (RuntimeException e3) {\n Slog.w(TAG, \"create LightsServiceBridge failed\");\n this.mSystemServiceManager.startService(LightsService.class);\n }\n traceEnd();\n traceBeginAndSlog(\"StartSidekickService\");\n if (SystemProperties.getBoolean(\"config.enable_sidekick_graphics\", false)) {\n this.mSystemServiceManager.startService(WEAR_SIDEKICK_SERVICE_CLASS);\n }\n traceEnd();\n traceBeginAndSlog(\"StartDisplayManager\");\n this.mDisplayManagerService = (DisplayManagerService) this.mSystemServiceManager.startService(DisplayManagerService.class);\n traceEnd();\n try {\n this.mSystemServiceManager.startService(\"com.android.server.security.HwSecurityService\");\n Slog.i(TAG, \"HwSecurityService start success\");\n } catch (Exception e4) {\n Slog.e(TAG, \"can't start HwSecurityService service\");\n }\n traceBeginAndSlog(\"WaitForDisplay\");\n this.mSystemServiceManager.startBootPhase(100);\n traceEnd();\n String cryptState = (String) VoldProperties.decrypt().orElse(\"\");\n if (ENCRYPTING_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Detected encryption in progress - only parsing core apps\");\n this.mOnlyCore = true;\n } else if (ENCRYPTED_STATE.equals(cryptState)) {\n Slog.w(TAG, \"Device encrypted - only parsing core apps\");\n this.mOnlyCore = true;\n }\n HwBootCheck.bootSceneEnd(100);\n HwBootFail.setBootTimer(false);\n HwBootCheck.bootSceneStart(105, 900000);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_start\", (int) SystemClock.elapsedRealtime());\n }\n traceBeginAndSlog(\"StartPackageManagerService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"packagemanagermain\");\n this.mPackageManagerService = PackageManagerService.main(this.mSystemContext, this.installer, this.mFactoryTestMode != 0, this.mOnlyCore);\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n this.mFirstBoot = this.mPackageManagerService.isFirstBoot();\n this.mPackageManager = this.mSystemContext.getPackageManager();\n Slog.i(TAG, \"Finish_StartPackageManagerService\");\n traceEnd();\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n MetricsLogger.histogram((Context) null, \"boot_package_manager_init_ready\", (int) SystemClock.elapsedRealtime());\n HwBootCheck.addBootInfo(\"[bootinfo]\\nisFirstBoot: \" + this.mFirstBoot + \"\\nisUpgrade: \" + this.mPackageManagerService.isUpgrade());\n HwBootCheck.bootSceneStart(101, JobStatus.DEFAULT_TRIGGER_MAX_DELAY);\n HwBootFail.setBootTimer(true);\n }\n HwBootCheck.bootSceneEnd(105);\n if (!this.mOnlyCore && !SystemProperties.getBoolean(\"config.disable_otadexopt\", false)) {\n traceBeginAndSlog(\"StartOtaDexOptService\");\n try {\n Watchdog.getInstance().pauseWatchingCurrentThread(\"moveab\");\n OtaDexoptService.main(this.mSystemContext, this.mPackageManagerService);\n } catch (Throwable th) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n throw th;\n }\n Watchdog.getInstance().resumeWatchingCurrentThread(\"moveab\");\n traceEnd();\n }\n traceBeginAndSlog(\"StartUserManagerService\");\n this.mSystemServiceManager.startService(UserManagerService.LifeCycle.class);\n traceEnd();\n traceBeginAndSlog(\"InitAttributerCache\");\n AttributeCache.init(this.mSystemContext);\n traceEnd();\n traceBeginAndSlog(\"SetSystemProcess\");\n this.mActivityManagerService.setSystemProcess();\n traceEnd();\n traceBeginAndSlog(\"InitWatchdog\");\n watchdog.init(this.mSystemContext, this.mActivityManagerService);\n traceEnd();\n this.mDisplayManagerService.setupSchedulerPolicies();\n traceBeginAndSlog(\"StartOverlayManagerService\");\n this.mSystemServiceManager.startService(new OverlayManagerService(this.mSystemContext, this.installer));\n traceEnd();\n traceBeginAndSlog(\"StartSensorPrivacyService\");\n this.mSystemServiceManager.startService(new SensorPrivacyService(this.mSystemContext));\n traceEnd();\n if (SystemProperties.getInt(\"persist.sys.displayinset.top\", 0) > 0) {\n this.mActivityManagerService.updateSystemUiContext();\n ((DisplayManagerInternal) LocalServices.getService(DisplayManagerInternal.class)).onOverlayChanged();\n }\n this.mSensorServiceStart = SystemServerInitThreadPool.get().submit($$Lambda$SystemServer$oG4I04QJrkzCGs6IcMTKU2211A.INSTANCE, START_SENSOR_SERVICE);\n } catch (Throwable th2) {\n Watchdog.getInstance().resumeWatchingCurrentThread(\"packagemanagermain\");\n throw th2;\n }\n }",
"public void startup() throws Exception\n {\n //\n // instantiate the runtime root application block\n //\n\n synchronized( m_state )\n {\n if( !isStartable() ) return;\n if( getLogger().isDebugEnabled() )\n {\n getLogger().debug( \"application assembly\" );\n }\n\n try\n {\n setState( ASSEMBLY );\n m_model.assemble();\n }\n catch( Exception e )\n {\n setState( INITIALIZED );\n final String error =\n \"Cannot assemble application due to exception.\";\n throw new KernelException( error, e );\n }\n catch( Throwable e )\n {\n setState( INITIALIZED );\n final String error =\n \"Cannot assemble application due to throwable.\";\n throw new KernelRuntimeException( error, e );\n }\n\n if( getLogger().isDebugEnabled() )\n {\n getLogger().debug( \"application deployment\" );\n }\n\n try\n {\n setState( DEPLOYMENT );\n m_model.commission();\n }\n catch( Exception e )\n {\n setState( INITIALIZED );\n final String error =\n \"Cannot deploy application.\";\n throw new KernelException( error, e );\n }\n catch( Throwable e )\n {\n setState( INITIALIZED );\n final String error =\n \"Cannot deploy application.\";\n throw new KernelRuntimeException( error, e );\n }\n \n setState( STARTED );\n }\n }",
"private void initialize() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Starting Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // start\n try {\n\t\t\t\tBootstrap.main(commandLineArgs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n }",
"private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desired for test.\r\n\t\tBPCC_Util.setLogLevel(LogLevelEnum.DEBUG);\r\n\t\t\r\n\t\t// Initialize class global variables.\r\n\t\tinitVars();\r\n\t\t\r\n\t\tcreateAndShowGUI();\r\n\t}",
"private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }",
"public void startup() {\n\t\tstart();\n }",
"public void startApp()\r\n\t{\n\t}",
"@Override\n public synchronized void startIT() {\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n Tracer.emitEvent(Tracer.Event.START.getId(), Tracer.Event.START.getType());\n }\n\n // Console Log\n Thread.currentThread().setName(\"APPLICATION\");\n if (COMPSs_VERSION == null) {\n LOGGER.warn(\"Starting COMPSs Runtime\");\n } else if (COMPSs_BUILDNUMBER == null) {\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION);\n } else if (COMPSs_BUILDNUMBER.endsWith(\"rnull\")) {\n COMPSs_BUILDNUMBER = COMPSs_BUILDNUMBER.substring(0, COMPSs_BUILDNUMBER.length() - 6);\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION + \" (build \" + COMPSs_BUILDNUMBER + \")\");\n } else {\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION + \" (build \" + COMPSs_BUILDNUMBER + \")\");\n }\n\n // Init Runtime\n if (!initialized) {\n // Application\n synchronized (this) {\n LOGGER.debug(\"Initializing components\");\n\n // Initialize object registry for bindings if needed\n // String lang = System.getProperty(COMPSsConstants.LANG);\n // if (lang != COMPSsConstants.Lang.JAVA.name() && oReg == null) {\n // oReg = new ObjectRegistry(this);\n // }\n\n // Initialize main runtime components\n td = new TaskDispatcher();\n ap = new AccessProcessor(td);\n\n // Initialize runtime tools components\n if (GraphGenerator.isEnabled()) {\n graphMonitor = new GraphGenerator();\n ap.setGM(graphMonitor);\n }\n if (RuntimeMonitor.isEnabled()) {\n runtimeMonitor = new RuntimeMonitor(ap, td, graphMonitor, Long.parseLong(System.getProperty(COMPSsConstants.MONITOR)));\n }\n\n // Log initialization\n initialized = true;\n LOGGER.debug(\"Ready to process tasks\");\n }\n } else {\n // Service\n String className = Thread.currentThread().getStackTrace()[2].getClassName();\n LOGGER.debug(\"Initializing \" + className + \"Itf\");\n try {\n td.addInterface(Class.forName(className + \"Itf\"));\n } catch (ClassNotFoundException cnfe) {\n ErrorManager.fatal(\"Error adding interface \" + className + \"Itf\", cnfe);\n }\n }\n\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n }\n\n }",
"private static void setupOsgi() {\r\n FrameworkStarter.getInstance().start();\r\n }",
"public void initApp() {\r\n\t\tUtilities.program=this;\r\n\t\ttouchList = new Hashtable<Integer, Touch>();\r\n\r\n\t\t// DB\r\n\t\tqueryManager = new QueryManager(this);\r\n\r\n\t\tlong timer = System.currentTimeMillis();\r\n\t\tresults = queryManager.getCrashesALL();\r\n\t\tSystem.out.println(System.currentTimeMillis() - timer);\r\n\t\ttimer = System.currentTimeMillis();\r\n\r\n\t\t// MARKERS\r\n\t\tUtilities.markerShape = loadShape(\"marker.svg\");\r\n\t\tmarkerList = updateMarkerList();\r\n\t\t\r\n\t\t\r\n\t\t// GRID\r\n\t\tgm = new GridManager(this, map, results);\r\n\t\tSystem.out.println(\"InitApp1\");\r\n\t\tgm.computeGridValues();\r\n\t\tSystem.out.println(System.currentTimeMillis() - timer);\r\n\t\t\r\n\t\t// OTHER\r\n\t\tUtilities.font = this.loadFont(\"Helvetica-Bold-100.vlw\");\r\n\t\t\r\n\t\t\r\n\t}",
"protected void start() {\n if (!this.init || this.started) {\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\n }\n }",
"public static void InitializeSystems()\n\t{\n\t\tif (_systems.size() < 1)\n\t\t{\n\t\t\tSystem.out.println(\"ERROR - no systems! (InitializeSystems)\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _systems.size(); i++)\n\t\t\t_systems.get(i).Start();\n\t}",
"private void run() {\n try {\n traceBeginAndSlog(\"InitBeforeStartServices\");\n SystemProperties.set(SYSPROP_START_COUNT, String.valueOf(this.mStartCount));\n SystemProperties.set(SYSPROP_START_ELAPSED, String.valueOf(this.mRuntimeStartElapsedTime));\n SystemProperties.set(SYSPROP_START_UPTIME, String.valueOf(this.mRuntimeStartUptime));\n EventLog.writeEvent((int) EventLogTags.SYSTEM_SERVER_START, Integer.valueOf(this.mStartCount), Long.valueOf(this.mRuntimeStartUptime), Long.valueOf(this.mRuntimeStartElapsedTime));\n if (System.currentTimeMillis() < 86400000) {\n Slog.w(TAG, \"System clock is before 1970; setting to 1970.\");\n SystemClock.setCurrentTimeMillis(86400000);\n }\n if (!SystemProperties.get(\"persist.sys.language\").isEmpty()) {\n SystemProperties.set(\"persist.sys.locale\", Locale.getDefault().toLanguageTag());\n SystemProperties.set(\"persist.sys.language\", \"\");\n SystemProperties.set(\"persist.sys.country\", \"\");\n SystemProperties.set(\"persist.sys.localevar\", \"\");\n }\n Binder.setWarnOnBlocking(true);\n PackageItemInfo.forceSafeLabels();\n SQLiteGlobal.sDefaultSyncMode = \"FULL\";\n SQLiteCompatibilityWalFlags.init((String) null);\n Slog.i(TAG, \"Entered the Android system server!\");\n int uptimeMillis = (int) SystemClock.elapsedRealtime();\n EventLog.writeEvent((int) EventLogTags.BOOT_PROGRESS_SYSTEM_RUN, uptimeMillis);\n if (!this.mRuntimeRestart) {\n MetricsLogger.histogram((Context) null, \"boot_system_server_init\", uptimeMillis);\n Jlog.d(30, \"JL_BOOT_PROGRESS_SYSTEM_RUN\");\n }\n SystemProperties.set(\"persist.sys.dalvik.vm.lib.2\", VMRuntime.getRuntime().vmLibrary());\n VMRuntime.getRuntime().clearGrowthLimit();\n VMRuntime.getRuntime().setTargetHeapUtilization(0.8f);\n Build.ensureFingerprintProperty();\n Environment.setUserRequired(true);\n BaseBundle.setShouldDefuse(true);\n Parcel.setStackTraceParceling(true);\n BinderInternal.disableBackgroundScheduling(true);\n BinderInternal.setMaxThreads(31);\n Process.setThreadPriority(-2);\n Process.setCanSelfBackground(false);\n Looper.prepareMainLooper();\n Looper.getMainLooper().setSlowLogThresholdMs(SLOW_DISPATCH_THRESHOLD_MS, SLOW_DELIVERY_THRESHOLD_MS);\n System.loadLibrary(\"android_servers\");\n if (Build.IS_DEBUGGABLE) {\n initZygoteChildHeapProfiling();\n }\n performPendingShutdown();\n createSystemContext();\n HwFeatureLoader.SystemServiceFeature.loadFeatureFramework(this.mSystemContext);\n this.mSystemServiceManager = new SystemServiceManager(this.mSystemContext);\n this.mSystemServiceManager.setStartInfo(this.mRuntimeRestart, this.mRuntimeStartElapsedTime, this.mRuntimeStartUptime);\n LocalServices.addService(SystemServiceManager.class, this.mSystemServiceManager);\n SystemServerInitThreadPool.get();\n traceEnd();\n try {\n traceBeginAndSlog(\"StartServices\");\n startBootstrapServices();\n startCoreServices();\n startOtherServices();\n SystemServerInitThreadPool.shutdown();\n Slog.i(TAG, \"Finish_StartServices\");\n traceEnd();\n StrictMode.initVmDefaults(null);\n if (!this.mRuntimeRestart && !isFirstBootOrUpgrade()) {\n int uptimeMillis2 = (int) SystemClock.elapsedRealtime();\n MetricsLogger.histogram((Context) null, \"boot_system_server_ready\", uptimeMillis2);\n if (uptimeMillis2 > 60000) {\n Slog.wtf(SYSTEM_SERVER_TIMING_TAG, \"SystemServer init took too long. uptimeMillis=\" + uptimeMillis2);\n }\n }\n LogBufferUtil.closeLogBufferAsNeed(this.mSystemContext);\n if (!VMRuntime.hasBootImageSpaces()) {\n Slog.wtf(TAG, \"Runtime is not running with a boot image!\");\n }\n Looper.loop();\n throw new RuntimeException(\"Main thread loop unexpectedly exited\");\n } catch (Throwable th) {\n Slog.i(TAG, \"Finish_StartServices\");\n traceEnd();\n throw th;\n }\n } catch (Throwable th2) {\n traceEnd();\n throw th2;\n }\n }",
"protected void start() {\n if (!this.init || this.started) {\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\n }\n }",
"protected void start() {\n if (!this.init || this.started) {\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\n }\n }",
"public void start() {\r\n\t\tsetupWWD();\r\n\t\tsetupStatusBar();\r\n\t\tsetupViewControllers();\r\n\t\tsetupSky();\r\n\t\t//setupAnnotationToggling();\r\n\r\n\t\t// Center the application on the screen.\r\n\t\tWWUtil.alignComponent(null, this, AVKey.CENTER);\r\n\t\t\r\n\t\tgetLayerEnableCmd().run(); // Enable/disable the desired layers.\r\n\t}",
"protected void start() {\r\n if (!this.init || this.started) {\r\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\r\n }\r\n }",
"@Override\n\tpublic void init() throws Exception {\n //the code present in this method is executed as soon as the application loads that is even before it starts\n\t\tsuper.init(); //super keyword invokes the init methods as per the definition in the Application class\n \n\t}",
"public final void start() {\n logger.info(\"Application started.\");\n try {\n getAttributes();\n\n initSystem();\n\n assertDisplayCreated();\n\n timer = Timer.getTimer();\n \n initGame();\n\n //main loop\n while (!finished && !display.isClosing()) {\n //determine time elapsed since last frame\n updateTime();\n\n //handle input events prior to updating the scene\n // - some applications may want to put this into update of the game state\n InputSystem.update();\n\n //update game state, pass amount of elapsed time\n update(frametime);\n\n //render, do not use interpolation parameter\n render(-1.0f);\n\n //swap buffers\n display.getRenderer().displayBackBuffer();\n\n Thread.yield();\n }\n } catch (Throwable t) {\n logger.logp(Level.SEVERE, this.getClass().toString(), \"start()\", \"Exception in game loop\", t);\n } finally {\n cleanup();\n }\n logger.info(\"Application ending.\");\n\n if (display != null) {\n display.reset();\n }\n quit();\n }",
"public void init() {\n\t\tThread appThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tSwingUtilities.invokeAndWait(doHelloWorld);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished on \" + Thread.currentThread());\n\t\t\t}\n\t\t};\n\t\tappThread.start();\n\t}",
"public void start() {\n\t\tSystem.out.println(\"开启系统1\");\r\n\t}",
"public void startup() throws JyroException {\n\t\tClassLoader loader = java.lang.Thread.currentThread().getContextClassLoader();\n\t\tplatform = new JyroPlatform(name, home, loader, null);\n\t\tplatform.startup();\n\t\treturn;\n\t}",
"public void start() {\n\t\tinitializeComponents();\r\n\r\n\t\tint userChoice;\r\n\r\n\t\tdo {\r\n\t\t\t// Display start menu\r\n\t\t\tview.displayMainMenu();\r\n\r\n\t\t\t// Get users choice\r\n\t\t\tuserChoice = view.requestUserChoice();\r\n\r\n\t\t\t// Run the respective service\r\n\t\t\tswitch (userChoice) {\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tservice.register();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tservice.login();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tservice.forgotPassword();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tservice.logout();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tservice.displayAllUserInfo(); // Secret method\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\"Invalid choice\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (userChoice != 4);\r\n\t}",
"public void start() {\r\n try {\r\n // Using command line args instead \r\n // System.setProperty(\"org.lwjgl.librarypath\", new File(\"lib/lwjgl-2.9.2/native/windows\").getAbsolutePath());\r\n createWindow();\r\n initGL();\r\n render();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void init() {\r\n\t\tGetRunningProgramsGR request = new GetRunningProgramsGR(\r\n\t\t\t\tRunningServicesListViewAdapter.this.runningServicesActivity.getApplicationContext());\r\n\t\trequest.setServerName(RunningServicesListViewAdapter.this.serverName);\r\n\t\tnew GuiRequestHandler(RunningServicesListViewAdapter.this.runningServicesActivity,\r\n\t\t\t\tRunningServicesListViewAdapter.this, true).execute(request);\r\n\t}",
"public abstract void startup();",
"@Override\n public void initialize() {\n\n try {\n /* Bring up the API server */\n logger.info(\"loading API server\");\n apiServer.start();\n logger.info(\"API server started. Say Hello!\");\n /* Bring up the Dashboard server */\n logger.info(\"Loading Dashboard Server\");\n if (dashboardServer.isStopped()) { // it may have been started when Flux is run in COMBINED mode\n dashboardServer.start();\n }\n logger.info(\"Dashboard server has started. Say Hello!\");\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public void boot() throws Exception {\n main = new Main();\n // add routes\n main.addRouteBuilder(this.getRouteBuilder());\n // add event listener\n main.addMainListener(this.getMainListener(getClass()));\n // run until you terminate the JVM\n System.out.println(\"Starting Camel. Use ctrl + c to terminate the JVM.\\n\");\n main.run();\n }",
"private void init() {\n safeLevel = config.getSafeLevel();\n \n // Construct key services\n loadService = config.createLoadService(this);\n posix = POSIXFactory.getPOSIX(new JRubyPOSIXHandler(this), RubyInstanceConfig.nativeEnabled);\n javaSupport = new JavaSupport(this);\n \n if (RubyInstanceConfig.POOLING_ENABLED) {\n executor = new ThreadPoolExecutor(\n RubyInstanceConfig.POOL_MIN,\n RubyInstanceConfig.POOL_MAX,\n RubyInstanceConfig.POOL_TTL,\n TimeUnit.SECONDS,\n new SynchronousQueue<Runnable>(),\n new DaemonThreadFactory());\n }\n \n // initialize the root of the class hierarchy completely\n initRoot();\n \n // Set up the main thread in thread service\n threadService.initMainThread();\n \n // Get the main threadcontext (gets constructed for us)\n ThreadContext tc = getCurrentContext();\n \n // Construct the top-level execution frame and scope for the main thread\n tc.prepareTopLevel(objectClass, topSelf);\n \n // Initialize all the core classes\n bootstrap();\n \n // Initialize the \"dummy\" class used as a marker\n dummyClass = new RubyClass(this, classClass);\n dummyClass.freeze(tc);\n \n // Create global constants and variables\n RubyGlobal.createGlobals(tc, this);\n \n // Prepare LoadService and load path\n getLoadService().init(config.loadPaths());\n \n booting = false;\n \n // initialize builtin libraries\n initBuiltins();\n \n if(config.isProfiling()) {\n getLoadService().require(\"jruby/profiler/shutdown_hook\");\n }\n \n // Require in all libraries specified on command line\n for (String scriptName : config.requiredLibraries()) {\n loadService.require(scriptName);\n }\n }",
"public void startup(){}",
"public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}",
"public void autonomousInit() {\n \tNetworkCommAssembly.start();\n }",
"@Override\n public void prepare() {\n applicationDeployer.initialize();\n this.initialize();\n }",
"public static void init() {\n\n\t\tsnapshot = new SnapshotService();\n\t\tlog.info(\"App init...\");\n\t}",
"public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}",
"public void initEasyJWeb() {\r\n\t\tlogger.info(I18n.getLocaleMessage(\"core.execute.EasyJWeb.initialization.applications\"));\r\n\t\tif (resourceLoader == null) {\r\n\t\t\tif (servletContext != null)\r\n\t\t\t\tresourceLoader = new ServletContextResourceLoader(\r\n\t\t\t\t\t\tservletContext);\r\n\t\t\telse\r\n\t\t\t\tresourceLoader = new FileResourceLoader();\r\n\t\t}\r\n\t\tinitContainer();\r\n\t\tFrameworkEngine.setWebConfig(webConfig);// 初始化框架工具\r\n\t\tFrameworkEngine.setContainer(container);// 在引擎中安装容器\r\n\t\tAjaxUtil.setServiceContainer(new AjaxServiceContainer(container));// 初始化Ajax容器服务\r\n\t\tinitTemplate(); // 初始化模版\r\n\t\tinvokeApps();// 在应用启动的时候启动一些配置好的应用\r\n\t\thaveInitEasyJWeb = true;\r\n\t\tlogger.info(I18n.getLocaleMessage(\"core.EasyJWeb.initialized\"));\r\n\t}",
"public void initialize() {\n\n getStartUp();\n }",
"public void start() {\n\t\tstartFilesConfig(true);\n\t\tstartSpamFilterTest(false);\n\t}",
"public void run() {\n Runtime.getRuntime().addShutdownHook(new MNOSManagerShutdownHook(this));\n\n OFNiciraVendorExtensions.initialize();\n\n this.startDatabase();\n\n try {\n final ServerBootstrap switchServerBootStrap = this\n .createServerBootStrap();\n\n this.setServerBootStrapParams(switchServerBootStrap);\n\n switchServerBootStrap.setPipelineFactory(this.pfact);\n final InetSocketAddress sa = this.ofHost == null ? new InetSocketAddress(\n this.ofPort) : new InetSocketAddress(this.ofHost,\n this.ofPort);\n this.sg.add(switchServerBootStrap.bind(sa));\n }catch (final Exception e){\n throw new RuntimeException(e);\n }\n\n }",
"protected void applicationInitalize() throws OwConfigurationException, OwServerException\r\n {\n OwConfiguration.applicationInitalize(this);\r\n }",
"private static void initForProd() {\r\n try {\r\n appTokenManager = new AppTokenManager();\r\n app = new CerberusApp(301L, \"3dd25f8ef8429ffe\",\r\n \"526fbde088cc285a957f8c2b26f4ca404a93a3fb29e0dc9f6189de8f87e63151\");\r\n appTokenManager.addApp(app);\r\n appTokenManager.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\").getHandlers()[0]);\n Logger.getLogger(\"\").addHandler(consoleHandler);\n \n createCanvas(appClass);\n \n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n \n SwingUtilities.invokeLater(new Runnable(){\n public void run(){\n JPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\n createFrame();\n \n //currentPanel.add(canvas, BorderLayout.CENTER);\n mMainFrame.pack();\n startApp();\n mMainFrame.setLocationRelativeTo(null);\n mMainFrame.setVisible(true);\n }\n });\n \n \n }",
"public Object start(IApplicationContext context) {\r\n\t\tSystem.out.println(\"org.cytoscape.product.start()...\");\r\n\t\tjava.text.DateFormat dateFormat = new java.text.SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n java.util.Date date = new java.util.Date();\r\n System.out.println(\" at : \" + dateFormat.format(date));\r\n\r\n\t\t// Start Cytoscape.application bundle here ??? \r\n\t\t//????\r\n\t\t//????\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(10000); //sleep 10 seconds...\r\n\t\t\t}\r\n\t\t\tcatch(InterruptedException ie){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn IApplication.EXIT_OK;\r\n\t}",
"public static void init() {\n if (initialized) {\n return;\n }\n initialized = true;\n DebugOptions.DEV_ROOT_PATH = \"engine/src/main/resources/\";\n GL20 mockGL = new MockGL();\n Gdx.gl = mockGL;\n Gdx.gl20 = mockGL;\n\n ServiceRegistry serviceRegistry = new ServiceRegistry();\n serviceRegistry\n .with(FacadeModuleConfig.class)\n .lifetime(Lifetime.Singleton)\n .use(TestModuleConfig::new);\n serviceRegistry\n .with(ModulePathScanner.class)\n .lifetime(Lifetime.Singleton);\n\n final HeadlessApplication application = new HeadlessApplication(new SolApplication(100, serviceRegistry), new HeadlessApplicationConfiguration());\n game = ((SolApplication) application.getApplicationListener()).getGame();\n }",
"public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }",
"public void launch() throws NotBoundException, IOException\n\t{\n\t\t//call method to connect to server\t\t\n\t\tServerManager serverConnect = initialConnect();\t\n\t\n\t\t//get Setup menu from server\n\t\tSetUpMenu newSetup = new SetUpMenu(serverConnect);\n\t\tnewSetup.welcomeMenu();\n\t}",
"public void init() throws SystemStartupException\n {\n super.init();\n }",
"public static void main(String[] args) {\n startApplication();\n }",
"private void initThings() {\n\t\tmyApp = (MyApp) getApplicationContext();\n\t\tnextIntent = new Intent(this, AnimActivity2.class);\n\t\t// nextIntent = new Intent(this, SelectEventActivity.class);\n\t\tnextIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK\n\t\t\t\t| Intent.FLAG_ACTIVITY_CLEAR_TASK);\n\t\tuserDAO = new UserDAO(this);\n\t\tdialog = new CreateDialog(this);\n\t\tprogressDialog = dialog.createProgressDialog(null, \"Logging In\", false,\n\t\t\t\tnull, false);\n\t\ttypeface = myApp.getTypefaceRegular();\n\n\t\t// <<<<<<< HEAD\n\t\t//\n\t\t// GsonBuilder builder = new GsonBuilder();\n\t\t// gson = builder.create();\n\t\t//\n\t\t// queue = Volley.newRequestQueue(this);\n\t\t// =======\n\t\t// >>>>>>> parent of 48afbfc... setup android again\n\t}",
"private void startComponents(){\n\n if(isAllowed(sentinel)){\n SentinelComponent sentinelComponent = new SentinelComponent(getInstance());\n sentinelComponent.getCanonicalName();\n }\n\n if(isAllowed(\"fileserver\")){\n FileServer fileServer = new FileServer(getInstance());\n fileServer.getCanonicalName();\n }\n\n if(isAllowed(\"manager\")){\n ManagerComponent Manager = new ManagerComponent(getInstance());\n Manager.getCanonicalName();\n }\n\n// if(isAllowed(\"sdk\")){\n// SDK sdk = new SDK(getInstance());\n// sdk.getCanonicalName();\n// }\n\n if(isAllowed(\"centrum\")){\n CentrumComponent centrum1 = new CentrumComponent(getInstance(), null);\n centrum1.getCanonicalName();\n }\n\n }",
"@PostConstruct\n public void init() {\n String[] commandPathPatterns = new String[]{\"classpath*:/commands/**\",\n \"classpath*:/crash/commands/**\"};\n\n // Patterns to use to look for configurations.\n String[] configPathPatterns = new String[]{\"classpath*:/crash/*\"};\n\n // Comma-separated list of commands to disable.\n String[] disabledCommands = new String[]{\"jpa*\", \"jdbc*\", \"jndi*\"};\n\n // Comma-separated list of plugins to disable. Certain plugins are disabled by default\n // based on the environment.\n String[] disabledPlugins = new String[0];\n\n FS commandFileSystem = createFileSystem(\n commandPathPatterns,\n disabledCommands);\n FS configurationFileSystem = createFileSystem(\n configPathPatterns, new String[0]);\n\n PluginDiscovery discovery = new BeanFactoryFilteringPluginDiscovery(\n this.resourceLoader.getClassLoader(), this.beanFactory,\n disabledPlugins);\n\n PluginContext context = new PluginContext(discovery,\n createPluginContextAttributes(), commandFileSystem,\n configurationFileSystem, this.resourceLoader.getClassLoader());\n\n context.refresh();\n start(context);\n }",
"public void autonomousInit() {\n\t\tautonomousCommand.start();\r\n\t}",
"public void autonomousInit() {\n if (autonomousCommand != null) autonomousCommand.start();\n }",
"public void startApp() {\r\n\t\ttry {\r\n\t\t\tFXMLLoader loader;\r\n\t\t\t// load the FXML resource\r\n\t\t\tif (isRegister) {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeRegister.fxml\", new BorderPane(), \"Register\");\r\n\t\t\t\tHomeRegisterController regiController = loader.getController();\r\n\t\t\t\tregiController.setMain(this);\r\n\t\t\t} else {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeIdentification.fxml\", new BorderPane(), \"Identification\");\r\n\t\t\t\tHomeIdentificationController identiController = loader.getController();\r\n\t\t\t\tidentiController.setMain(this);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public ClientApp()\n\t{\n\t\tinitComponents();\n\t\tafterInitComponents();\n\t}",
"public static void start() {\n final Context appContext = ContextUtils.getApplicationContext();\n tryObtainingDataDirLock(appContext);\n // We must post to the UI thread to cover the case that the user\n // has invoked Chromium startup by using the (thread-safe)\n // CookieManager rather than creating a WebView.\n ThreadUtils.runOnUiThreadBlocking(new Runnable() {\n @Override\n public void run() {\n boolean multiProcess = CommandLine.getInstance().hasSwitch(\n AwSwitches.WEBVIEW_SANDBOXED_RENDERER);\n if (multiProcess) {\n // Have a background thread warm up a renderer process now, so that this can\n // proceed in parallel to the browser process initialisation.\n AsyncTask.THREAD_POOL_EXECUTOR.execute(new Runnable() {\n @Override\n public void run() {\n ChildProcessLauncher.warmUp(appContext);\n }\n });\n }\n // The policies are used by browser startup, so we need to register the policy\n // providers before starting the browser process. This only registers java objects\n // and doesn't need the native library.\n CombinedPolicyProvider.get().registerProvider(new AwPolicyProvider(appContext));\n\n try {\n BrowserStartupController.get(appContext, LibraryProcessType.PROCESS_WEBVIEW)\n .startBrowserProcessesSync(!multiProcess);\n } catch (ProcessInitException e) {\n throw new RuntimeException(\"Cannot initialize WebView\", e);\n }\n }\n });\n }",
"void startup();",
"void startup();",
"public void init() {\n // These data structures are initialized here because other\n // module's startUp() might be called before ours\n this.systemStartTime = System.currentTimeMillis();\n }",
"@Override\n public synchronized void startInternal() throws Exception {\n createConnection();\n\n // ensure root dirs exist\n createRootDir(znodeWorkingPath);\n createRootDir(zkRootNodePath);\n createRootDir(rmDTSecretManagerRoot);\n createRootDir(rmAppRoot);\n }",
"private void initAppComponent() {\n mAppComponent = DaggerAppComponent.builder()\n .appModule(new AppModule(this))\n .build();\n }",
"@Override\r\n\tprotected Void doInBackground() throws Exception {\r\n\t\tSystem.out.println(\"IQM: Initializing application and constructing GUI elements...\");\r\n\r\n\t\t// check for configuration files and its contents\r\n\t\tthis.initConfiguration();\r\n\r\n\t\t// this.runWelcomeScreenThread();\r\n\t\tthis.runCleanerTaskThread();\r\n\r\n\t\t// initialize the application\r\n\t\tthis.initApplication();\r\n\r\n\t\t// ###################\r\n\t\t// CORE\r\n\t\t// initialize and show the main IQM frame\r\n\t\tthis.updateDynamicWelcomeText(\"Constructing and initializing user interface...\");\r\n\t\tMainFrame mainFrame = new MainFrame();\r\n\r\n\t\t// defaults = \"core\" version of IQM\r\n\t\tmainFrame.initializeDefaults();\r\n\t\t// END CORE\r\n\t\t// ###################\r\n\r\n\t\t// activate the initial menus: all items but the GENERATOR type are\r\n\t\t// deactivated at startup\r\n\t\tApplicationObserver.setInitialMenuActivation();\r\n\r\n\t\tthis.startMemoryMonitorThread();\r\n\r\n\t\tthis.updateDynamicWelcomeText(\"Done, application is launching...\");\r\n\r\n\t\tSystem.out.println(\"IQM: Done.\");\r\n\t\treturn null;\r\n\t}",
"public MainGUI() {\n\t\tString xmlpath = \"classpath:applicationContext.xml\";\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlpath);\n\t\t\n\t\tcenter = (CenterController)applicationContext.getBean(\"CenterController\");\n\t\t\n\t\tinitialize();\n\t\t\n\t}",
"public void activate(BundleContext context) {\r\n\r\n // define the global ServiceRegistryAccessFactory for components and GUI code\r\n // TODO initialize from another location?\r\n ServiceRegistry.setAccessFactory(new OsgiServiceRegistryAccessFactory(context));\r\n\r\n bootstrapSettings = BootstrapConfiguration.getInstance();\r\n\r\n initializeProfileDirFromBootstrapSettings();\r\n initializeConfigurablePaths();\r\n loadRootConfiguration(false);\r\n initializeGeneralSettings();\r\n\r\n // initialize parent temp directory root\r\n initializeParentTempDirectoryRoot(generalSettings.getTempDirectoryOverride());\r\n\r\n initializeInstanceTempDirectoryRoot();\r\n\r\n if (PROPERTY_SUBSTITUTION_MECHANISM_ENABLED) {\r\n initializePropertySubstitution();\r\n }\r\n }",
"public void autonomousInit() {\n \n }",
"private final void doSetup() {\r\n \tsetEnvironmentVariables();\r\n \t\r\n \tcreateAppWindows();\r\n \t\r\n \tcreateAppPages();\r\n\r\n \t//Set the default resource bundle. This necessary even for non-L10N tests, because even they\r\n \t// need to call localizeFieldLocators()\r\n\t\tsetResourceBundle(DDConstants.DEFAULT_L10N_BUNDLE);\r\n\t\t\r\n\t\t//MUST be called after super.setup!!!\r\n \t//NOTE that ddUser is the equivalent of a user that is found in the setup screen.\r\n \t// The user that logs in to the app is known as the auto user. Until we figure out\r\n \t// whether that model applies, don't call this.\r\n \t//setDDUser();\r\n }",
"public void start( BundleContext bc ) throws Exception {\r\n\t\tinitLogger(bc);\r\n\t\t\r\n\t\tfindSearcher(bc);\r\n\t\t\r\n\t\tregisterService(bc);\r\n\t\t\r\n\t\tregisterServlets(bc);\r\n\t}",
"private void initializeStartup()\n {\n /* Turn off Limelight LED when first started up so it doesn't blind drive team. */\n m_limelight.turnOffLED();\n\n /* Start ultrasonics. */\n m_chamber.startUltrasonics();\n }",
"@Override\n protected void setup() {\n // exception handling for invoke the main2();\n try {\n main2();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // create central agent of the application\n try {\n AgentController Main = main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n try {\n showResualt();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void startup() {\n }",
"public void bootConsumer() throws Exception {\n\t\tmain = new Main();\r\n\t\t// bind MyBean into the registry\r\n\t\tmain.bind(\"foo\", new AsimpleBean());\r\n\t\t// add routes\r\n\t\tmain.addRouteBuilder(new SubRouteBuilder());\r\n\r\n\t\t// add event listener\r\n\t\tmain.addMainListener(new SubEvents());\r\n\t\t// run until you terminate the JVM\r\n\t\tSystem.out.println(\"Starting Camel. Use ctrl + c to terminate the JVM.\\n\");\r\n\t\tmain.run();\r\n\t}",
"@Override\n public void init() {\n String[] args = this.getParameters().getRaw().toArray(new String[0]);\n // We run Spring context initialization at the time of JavaFX initialization:\n springContext = SpringApplication.run(MainApp.class, args);\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }",
"public void initializer() {\r\n runLater(() -> this.main = new ApplicationMain(handler));\r\n }",
"public void startApp() {\n\n\t\tboolean isContinue = true;\n\t\tint i = 0;\n\t\twhile (isContinue) {\n\t\t\ti = displayAppMenu();\n\t\t\texecuteMenuItem(i);\n\n\t\t\tif (i == APP_EXIT) {\n\t\t\t\tisContinue = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void autonomousInit() {\n }",
"public void autonomousInit() {\n }",
"@Override\n protected void startUp() {\n }",
"public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}",
"public void start(){\r\n if (isInitOk){\r\n if (firstStart) {\r\n firstStart = false;\r\n String userHome = System.getProperty(\"user.home\");\r\n String installDirName = userHome + File.separator + \".jogl_ext\"\r\n + File.separator + installDirectory; // should manage jogl versions here\r\n\r\n final File installDir = new File(installDirName);\r\n\r\n Thread refresher = new Thread() {\r\n public void run() {\r\n refreshJOGL(installDir);\r\n }\r\n };\r\n refresher.setPriority(Thread.NORM_PRIORITY - 1);\r\n refresher.start();\r\n } else if (joglStarted) {\r\n // we have to start again the applet (start can be called multiple times,\r\n // e.g once per tabbed browsing\r\n subApplet.start();\r\n }\r\n }\r\n }",
"private void setup() {\n this.primaryStage.setTitle(Constants.APP_NAME);\n\n this.root = new VBox();\n root.setAlignment(Pos.TOP_CENTER);\n root.getChildren().addAll(getMenuBar());\n\n Scene scene = new Scene(root);\n this.primaryStage.setScene(scene);\n\n // set the default game level.\n setGameLevel(GameLevel.BEGINNER);\n\n // fix the size of the game window.\n this.primaryStage.setResizable(false);\n this.primaryStage.show();\n }",
"@Override\n\tpublic void start(BundleContext context) throws Exception {\n\t\t// TODO Auto-generated method stub\n////\t\tsuper.start(context);\n//\t\tServiceReference serviceReference = context.getServiceReference(Application.class.getName());\n//\t\tservice = (Application) context.getService(serviceReference);\n//\t\tSystem.out.println(\"Activator.init() \" + service);\n////\t\tApplication.launch(null);\n//\t\ttry {\n//\t\t\t\n//\t\t\tnew JFXPanel();\n//\t\t\t\n//\t\t\tPlatform.runLater(new Runnable() {\n//\t\t\t\t\n//\t\t\t\t@Override\n//\t\t\t\tpublic void run() {\n//\t\t\t\t\ttry {\n//\t\t\t\t\t\tservice.start(new Stage());\n//\t\t\t\t\t\tservice.launch(null);\n//\t\t\t\t\t\t\n//\t\t\t\t\t\tSystem.out.println(\"Activator.init() Service is launched and started\");\n//\t\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\tSystem.err.println(\"\" + e);\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t});\n//\t\t} catch (Exception e) {\n//\t\t\tSystem.err.println(e);\n//\t\t\tservice.start(new Stage());\n//\t\t}\n\t}",
"public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}",
"private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }",
"public StockApp()\n {\n reader = new InputReader();\n manager = new StockManager();\n menuSetup();\n }",
"public void start() {\n io.println(\"Welcome to 2SAT-solver app!\\n\");\n String command = \"\";\n run = true;\n while (run) {\n while (true) {\n io.println(\"\\nType \\\"new\\\" to insert an CNF, \\\"help\\\" for help or \\\"exit\\\" to exit the application\");\n command = io.nextLine();\n if (command.equals(\"new\") || command.equals(\"help\") || command.equals(\"exit\")) {\n break;\n }\n io.println(\"Invalid command. Please try again.\");\n }\n switch (command) {\n case \"new\":\n insertNew();\n break;\n case \"help\":\n displayHelp();\n break;\n case \"exit\":\n io.println(\"Thank you for using this app.\");\n run = false;\n }\n\n }\n }",
"public void initOsgi();",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }",
"public static void initialize()\n\t{\n\t\t// USB\n\t\tdriveJoystick = new EJoystick(getConstantAsInt(USB_DRIVE_STICK));\n\t\tcontrolGamepad = new EGamepad(getConstantAsInt(USB_CONTROL_GAMEPAD));\n\n\t\t// Power Panel\n\t\tpowerPanel = new PowerDistributionPanel();\n\n\t\t//Compressor\n\t\tcompressor = new Compressor(Constants.getConstantAsInt(Constants.PCM_CAN));\n\t\tcompressor.start();\n\t}",
"public Launcher()\n {\n // Loading (or creating) the preferences file\n // TODO: handle read/create file failed (maybe with an error popup?)\n boolean settingsLoaded = settings.checkAndLoad();\n\n if (!settingsLoaded) {\n System.exit(-10);\n }\n\n LoginController loginController = configureController(new LoginController());\n configureController(new ContactsController());\n configureController(new ConversationsController());\n\n /**\n * --------------------------\n * Event listeners\n * --------------------------\n */\n eventManager.attach(MvcEvent.WINDOW_CLOSING, new SaveOnExitListener());\n\n\n /**\n * --------------------------\n * Running the application\n * --------------------------\n */\n loginController.displayLogin();\n }",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"@Override\n public void init() {\n UserThread.setExecutor(Platform::runLater);\n UserThread.setTimerClass(UITimer.class);\n\n shutDownHandler = this::stop;\n BisqApp.shutDownHandler = this::stop;\n CommonSetup.setup(this::showErrorPopup);\n CoreSetup.setup(bisqEnvironment);\n }",
"public MainApp() {\n initComponents();\n }",
"@OnThread(Tag.Any)\n private void bootBluej()\n {\n initializeBoot();\n try {\n URLClassLoader runtimeLoader = new URLClassLoader(runtimeClassPath, bootLoader);\n \n // Construct a bluej.Main object. This starts BlueJ \"proper\".\n Class<?> mainClass = Class.forName(\"bluej.Main\", true, runtimeLoader);\n mainClass.getDeclaredConstructor().newInstance();\n \n } catch (ClassNotFoundException | InstantiationException | NoSuchMethodException \n | InvocationTargetException | IllegalAccessException exc) {\n throw new RuntimeException(exc);\n }\n }",
"private void startSkeletons() {\n if (this.skeletons_started) return;\n\n this.add_registration_api();\n this.registration_skeleton.start();\n this.add_service_api();\n this.service_skeleton.start();\n\n this.skeletons_started = true;\n }",
"public void initContext() {\n\t\tClassLoader originalContextClassLoader =\n\t\t\t\tThread.currentThread().getContextClassLoader();\n\t\tThread.currentThread().setContextClassLoader(MY_CLASS_LOADER);\n\t\t//this.setClassLoader(MY_CLASS_LOADER);\n\n\t\tcontext = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\tsetParent(context);\n\n\n\t\t// reset the original CL, to try to prevent crashing with\n\t\t// other Java AI implementations\n\t\tThread.currentThread().setContextClassLoader(originalContextClassLoader);\n\t}"
] | [
"0.7255831",
"0.7232779",
"0.71898526",
"0.69586235",
"0.68421334",
"0.68220764",
"0.6786215",
"0.6777654",
"0.67743737",
"0.6723446",
"0.67141753",
"0.67136204",
"0.66948825",
"0.6629729",
"0.662298",
"0.65829855",
"0.6565706",
"0.6550542",
"0.6550542",
"0.65355337",
"0.65166366",
"0.6446042",
"0.64438444",
"0.6434524",
"0.6421784",
"0.64177316",
"0.64132243",
"0.64128673",
"0.63921106",
"0.63912886",
"0.6371254",
"0.63658667",
"0.6359147",
"0.6347501",
"0.63442534",
"0.6338439",
"0.6319984",
"0.62837005",
"0.628146",
"0.62744343",
"0.6269156",
"0.6264214",
"0.6252049",
"0.62489426",
"0.6223099",
"0.6203286",
"0.6199191",
"0.619835",
"0.61945283",
"0.61726886",
"0.6163154",
"0.61621016",
"0.61504996",
"0.61493367",
"0.61302876",
"0.6127036",
"0.6112029",
"0.6110588",
"0.608904",
"0.60804445",
"0.60708153",
"0.60708153",
"0.60665953",
"0.606516",
"0.6060131",
"0.6051103",
"0.60507894",
"0.60473424",
"0.604668",
"0.6041458",
"0.60393983",
"0.6033899",
"0.60332656",
"0.602575",
"0.60153013",
"0.60041887",
"0.59965557",
"0.5996455",
"0.5990656",
"0.59788704",
"0.59788704",
"0.59785116",
"0.5978455",
"0.59686166",
"0.59681875",
"0.596798",
"0.5966544",
"0.59623224",
"0.59606624",
"0.59504145",
"0.5937512",
"0.59342235",
"0.59342235",
"0.5933563",
"0.59329987",
"0.5932345",
"0.5930019",
"0.5923112",
"0.5916749",
"0.5914231",
"0.5907468"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.